-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path399.bd25c46f0d8c2011.js
1 lines (1 loc) · 149 KB
/
399.bd25c46f0d8c2011.js
1
(self.webpackChunkMyMoney=self.webpackChunkMyMoney||[]).push([[399],{4270:function(p){(function(){var S,a,f,v,c,d;"undefined"!=typeof performance&&null!==performance&&performance.now?p.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(p.exports=function(){return(S()-c)/1e6},a=process.hrtime,v=(S=function(){var y;return 1e9*(y=a())[0]+y[1]})(),d=1e9*process.uptime(),c=v-d):Date.now?(p.exports=function(){return Date.now()-f},f=Date.now()):(p.exports=function(){return(new Date).getTime()-f},f=(new Date).getTime())}).call(this)},6489:(p,S,a)=>{for(var f=a(4270),v="undefined"==typeof window?global:window,c=["moz","webkit"],d="AnimationFrame",y=v["request"+d],b=v["cancel"+d]||v["cancelRequest"+d],T=0;!y&&T<c.length;T++)y=v[c[T]+"Request"+d],b=v[c[T]+"Cancel"+d]||v[c[T]+"CancelRequest"+d];if(!y||!b){var O=0,A=0,P=[];y=function(C){if(0===P.length){var N=f(),w=Math.max(0,16.666666666666668-(N-O));O=w+N,setTimeout(function(){var L=P.slice(0);P.length=0;for(var D=0;D<L.length;D++)if(!L[D].cancelled)try{L[D].callback(O)}catch(H){setTimeout(function(){throw H},0)}},Math.round(w))}return P.push({handle:++A,callback:C,cancelled:!1}),A},b=function(C){for(var N=0;N<P.length;N++)P[N].handle===C&&(P[N].cancelled=!0)}}p.exports=function(C){return y.call(v,C)},p.exports.cancel=function(){b.apply(v,arguments)},p.exports.polyfill=function(C){C||(C=v),C.requestAnimationFrame=y,C.cancelAnimationFrame=b}},1239:p=>{p.exports=function(S){this.ok=!1,this.alpha=1,"#"==S.charAt(0)&&(S=S.substr(1,6)),S=(S=S.replace(/ /g,"")).toLowerCase();var a={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};S=a[S]||S;for(var f=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(T){return[parseInt(T[1]),parseInt(T[2]),parseInt(T[3]),parseFloat(T[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(T){return[parseInt(T[1]),parseInt(T[2]),parseInt(T[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(T){return[parseInt(T[1],16),parseInt(T[2],16),parseInt(T[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(T){return[parseInt(T[1]+T[1],16),parseInt(T[2]+T[2],16),parseInt(T[3]+T[3],16)]}}],v=0;v<f.length;v++){var d=f[v].process,y=f[v].re.exec(S);if(y){var b=d(y);this.r=b[0],this.g=b[1],this.b=b[2],b.length>3&&(this.alpha=b[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var T=this.r.toString(16),O=this.g.toString(16),A=this.b.toString(16);return 1==T.length&&(T="0"+T),1==O.length&&(O="0"+O),1==A.length&&(A="0"+A),"#"+T+O+A},this.getHelpXML=function(){for(var T=new Array,O=0;O<f.length;O++)for(var A=f[O].example,P=0;P<A.length;P++)T[T.length]=A[P];for(var R in a)T[T.length]=R;var C=document.createElement("ul");for(C.setAttribute("id","rgbcolor-examples"),O=0;O<T.length;O++)try{var N=document.createElement("li"),w=new RGBColor(T[O]),L=document.createElement("div");L.style.cssText="margin: 3px; border: 1px solid black; background:"+w.toHex()+"; color:"+w.toHex(),L.appendChild(document.createTextNode("test"));var D=document.createTextNode(" "+T[O]+" -> "+w.toRGB()+" -> "+w.toHex());N.appendChild(L),N.appendChild(D),C.appendChild(N)}catch(X){}return C}}},9662:(p,S,a)=>{var f=a(7854),v=a(614),c=a(6330),d=f.TypeError;p.exports=function(y){if(v(y))return y;throw d(c(y)+" is not a function")}},9483:(p,S,a)=>{var f=a(7854),v=a(4411),c=a(6330),d=f.TypeError;p.exports=function(y){if(v(y))return y;throw d(c(y)+" is not a constructor")}},6077:(p,S,a)=>{var f=a(7854),v=a(614),c=f.String,d=f.TypeError;p.exports=function(y){if("object"==typeof y||v(y))return y;throw d("Can't set "+c(y)+" as a prototype")}},1223:(p,S,a)=>{var f=a(5112),v=a(30),c=a(3070),d=f("unscopables"),y=Array.prototype;null==y[d]&&c.f(y,d,{configurable:!0,value:v(null)}),p.exports=function(b){y[d][b]=!0}},1530:(p,S,a)=>{"use strict";var f=a(8710).charAt;p.exports=function(v,c,d){return c+(d?f(v,c).length:1)}},5787:(p,S,a)=>{var f=a(7854),v=a(7976),c=f.TypeError;p.exports=function(d,y){if(v(y,d))return d;throw c("Incorrect invocation")}},9670:(p,S,a)=>{var f=a(7854),v=a(111),c=f.String,d=f.TypeError;p.exports=function(y){if(v(y))return y;throw d(c(y)+" is not an object")}},1318:(p,S,a)=>{var f=a(5656),v=a(1400),c=a(6244),d=function(y){return function(b,T,O){var C,A=f(b),P=c(A),R=v(O,P);if(y&&T!=T){for(;P>R;)if((C=A[R++])!=C)return!0}else for(;P>R;R++)if((y||R in A)&&A[R]===T)return y||R||0;return!y&&-1}};p.exports={includes:d(!0),indexOf:d(!1)}},9341:(p,S,a)=>{"use strict";var f=a(7293);p.exports=function(v,c){var d=[][v];return!!d&&f(function(){d.call(null,c||function(){throw 1},1)})}},3671:(p,S,a)=>{var f=a(7854),v=a(9662),c=a(7908),d=a(8361),y=a(6244),b=f.TypeError,T=function(O){return function(A,P,R,C){v(P);var N=c(A),w=d(N),L=y(N),D=O?L-1:0,H=O?-1:1;if(R<2)for(;;){if(D in w){C=w[D],D+=H;break}if(D+=H,O?D<0:L<=D)throw b("Reduce of empty array with no initial value")}for(;O?D>=0:L>D;D+=H)D in w&&(C=P(C,w[D],D,N));return C}};p.exports={left:T(!1),right:T(!0)}},1589:(p,S,a)=>{var f=a(7854),v=a(1400),c=a(6244),d=a(6135),y=f.Array,b=Math.max;p.exports=function(T,O,A){for(var P=c(T),R=v(O,P),C=v(void 0===A?P:A,P),N=y(b(C-R,0)),w=0;R<C;R++,w++)d(N,w,T[R]);return N.length=w,N}},206:(p,S,a)=>{var f=a(1702);p.exports=f([].slice)},7072:(p,S,a)=>{var v=a(5112)("iterator"),c=!1;try{var d=0,y={next:function(){return{done:!!d++}},return:function(){c=!0}};y[v]=function(){return this},Array.from(y,function(){throw 2})}catch(b){}p.exports=function(b,T){if(!T&&!c)return!1;var O=!1;try{var A={};A[v]=function(){return{next:function(){return{done:O=!0}}}},b(A)}catch(P){}return O}},4326:(p,S,a)=>{var f=a(1702),v=f({}.toString),c=f("".slice);p.exports=function(d){return c(v(d),8,-1)}},648:(p,S,a)=>{var f=a(7854),v=a(1694),c=a(614),d=a(4326),b=a(5112)("toStringTag"),T=f.Object,O="Arguments"==d(function(){return arguments}());p.exports=v?d:function(P){var R,C,N;return void 0===P?"Undefined":null===P?"Null":"string"==typeof(C=function(P,R){try{return P[R]}catch(C){}}(R=T(P),b))?C:O?d(R):"Object"==(N=d(R))&&c(R.callee)?"Arguments":N}},9920:(p,S,a)=>{var f=a(2597),v=a(3887),c=a(1236),d=a(3070);p.exports=function(y,b,T){for(var O=v(b),A=d.f,P=c.f,R=0;R<O.length;R++){var C=O[R];!f(y,C)&&(!T||!f(T,C))&&A(y,C,P(b,C))}}},4964:(p,S,a)=>{var v=a(5112)("match");p.exports=function(c){var d=/./;try{"/./"[c](d)}catch(y){try{return d[v]=!1,"/./"[c](d)}catch(b){}}return!1}},8544:(p,S,a)=>{var f=a(7293);p.exports=!f(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},4994:(p,S,a)=>{"use strict";var f=a(3383).IteratorPrototype,v=a(30),c=a(9114),d=a(8003),y=a(7497),b=function(){return this};p.exports=function(T,O,A,P){var R=O+" Iterator";return T.prototype=v(f,{next:c(+!P,A)}),d(T,R,!1,!0),y[R]=b,T}},8880:(p,S,a)=>{var f=a(9781),v=a(3070),c=a(9114);p.exports=f?function(d,y,b){return v.f(d,y,c(1,b))}:function(d,y,b){return d[y]=b,d}},9114:p=>{p.exports=function(S,a){return{enumerable:!(1&S),configurable:!(2&S),writable:!(4&S),value:a}}},6135:(p,S,a)=>{"use strict";var f=a(4948),v=a(3070),c=a(9114);p.exports=function(d,y,b){var T=f(y);T in d?v.f(d,T,c(0,b)):d[T]=b}},654:(p,S,a)=>{"use strict";var f=a(2109),v=a(6916),c=a(1913),d=a(6530),y=a(614),b=a(4994),T=a(9518),O=a(7674),A=a(8003),P=a(8880),R=a(1320),C=a(5112),N=a(7497),w=a(3383),L=d.PROPER,D=d.CONFIGURABLE,H=w.IteratorPrototype,X=w.BUGGY_SAFARI_ITERATORS,j=C("iterator"),K="keys",Z="values",at="entries",Y=function(){return this};p.exports=function($,gt,mt,et,ht,Tt,it){b(mt,gt,et);var M,dt,At,k=function(ct){if(ct===ht&&bt)return bt;if(!X&&ct in _)return _[ct];switch(ct){case K:case Z:case at:return function(){return new mt(this,ct)}}return function(){return new mt(this)}},J=gt+" Iterator",q=!1,_=$.prototype,xt=_[j]||_["@@iterator"]||ht&&_[ht],bt=!X&&xt||k(ht),Nt="Array"==gt&&_.entries||xt;if(Nt&&(M=T(Nt.call(new $)))!==Object.prototype&&M.next&&(!c&&T(M)!==H&&(O?O(M,H):y(M[j])||R(M,j,Y)),A(M,J,!0,!0),c&&(N[J]=Y)),L&&ht==Z&&xt&&xt.name!==Z&&(!c&&D?P(_,"name",Z):(q=!0,bt=function(){return v(xt,this)})),ht)if(dt={values:k(Z),keys:Tt?bt:k(K),entries:k(at)},it)for(At in dt)(X||q||!(At in _))&&R(_,At,dt[At]);else f({target:gt,proto:!0,forced:X||q},dt);return(!c||it)&&_[j]!==bt&&R(_,j,bt,{name:ht}),N[gt]=bt,dt}},9781:(p,S,a)=>{var f=a(7293);p.exports=!f(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},317:(p,S,a)=>{var f=a(7854),v=a(111),c=f.document,d=v(c)&&v(c.createElement);p.exports=function(y){return d?c.createElement(y):{}}},8324:p=>{p.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:(p,S,a)=>{var v=a(317)("span").classList,c=v&&v.constructor&&v.constructor.prototype;p.exports=c===Object.prototype?void 0:c},7871:p=>{p.exports="object"==typeof window},1528:(p,S,a)=>{var f=a(8113),v=a(7854);p.exports=/ipad|iphone|ipod/i.test(f)&&void 0!==v.Pebble},6833:(p,S,a)=>{var f=a(8113);p.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(f)},5268:(p,S,a)=>{var f=a(4326),v=a(7854);p.exports="process"==f(v.process)},1036:(p,S,a)=>{var f=a(8113);p.exports=/web0s(?!.*chrome)/i.test(f)},8113:(p,S,a)=>{var f=a(5005);p.exports=f("navigator","userAgent")||""},7392:(p,S,a)=>{var T,O,f=a(7854),v=a(8113),c=f.process,d=f.Deno,y=c&&c.versions||d&&d.version,b=y&&y.v8;b&&(O=(T=b.split("."))[0]>0&&T[0]<4?1:+(T[0]+T[1])),!O&&v&&(!(T=v.match(/Edge\/(\d+)/))||T[1]>=74)&&(T=v.match(/Chrome\/(\d+)/))&&(O=+T[1]),p.exports=O},748:p=>{p.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(p,S,a)=>{var f=a(7854),v=a(1236).f,c=a(8880),d=a(1320),y=a(3505),b=a(9920),T=a(4705);p.exports=function(O,A){var w,L,D,H,X,P=O.target,R=O.global,C=O.stat;if(w=R?f:C?f[P]||y(P,{}):(f[P]||{}).prototype)for(L in A){if(H=A[L],D=O.noTargetGet?(X=v(w,L))&&X.value:w[L],!T(R?L:P+(C?".":"#")+L,O.forced)&&void 0!==D){if(typeof H==typeof D)continue;b(H,D)}(O.sham||D&&D.sham)&&c(H,"sham",!0),d(w,L,H,O)}}},7293:p=>{p.exports=function(S){try{return!!S()}catch(a){return!0}}},7007:(p,S,a)=>{"use strict";a(4916);var f=a(1702),v=a(1320),c=a(2261),d=a(7293),y=a(5112),b=a(8880),T=y("species"),O=RegExp.prototype;p.exports=function(A,P,R,C){var N=y(A),w=!d(function(){var X={};return X[N]=function(){return 7},7!=""[A](X)}),L=w&&!d(function(){var X=!1,j=/a/;return"split"===A&&((j={}).constructor={},j.constructor[T]=function(){return j},j.flags="",j[N]=/./[N]),j.exec=function(){return X=!0,null},j[N](""),!X});if(!w||!L||R){var D=f(/./[N]),H=P(N,""[A],function(X,j,K,Z,at){var Y=f(X),$=j.exec;return $===c||$===O.exec?w&&!at?{done:!0,value:D(j,K,Z)}:{done:!0,value:Y(K,j,Z)}:{done:!1}});v(String.prototype,A,H[0]),v(O,N,H[1])}C&&b(O[N],"sham",!0)}},2104:(p,S,a)=>{var f=a(4374),v=Function.prototype,c=v.apply,d=v.call;p.exports="object"==typeof Reflect&&Reflect.apply||(f?d.bind(c):function(){return d.apply(c,arguments)})},9974:(p,S,a)=>{var f=a(1702),v=a(9662),c=a(4374),d=f(f.bind);p.exports=function(y,b){return v(y),void 0===b?y:c?d(y,b):function(){return y.apply(b,arguments)}}},4374:(p,S,a)=>{var f=a(7293);p.exports=!f(function(){var v=function(){}.bind();return"function"!=typeof v||v.hasOwnProperty("prototype")})},6916:(p,S,a)=>{var f=a(4374),v=Function.prototype.call;p.exports=f?v.bind(v):function(){return v.apply(v,arguments)}},6530:(p,S,a)=>{var f=a(9781),v=a(2597),c=Function.prototype,d=f&&Object.getOwnPropertyDescriptor,y=v(c,"name"),b=y&&"something"===function(){}.name,T=y&&(!f||f&&d(c,"name").configurable);p.exports={EXISTS:y,PROPER:b,CONFIGURABLE:T}},1702:(p,S,a)=>{var f=a(4374),v=Function.prototype,d=v.call,y=f&&v.bind.bind(d,d);p.exports=f?function(b){return b&&y(b)}:function(b){return b&&function(){return d.apply(b,arguments)}}},5005:(p,S,a)=>{var f=a(7854),v=a(614),c=function(d){return v(d)?d:void 0};p.exports=function(d,y){return arguments.length<2?c(f[d]):f[d]&&f[d][y]}},1246:(p,S,a)=>{var f=a(648),v=a(8173),c=a(7497),y=a(5112)("iterator");p.exports=function(b){if(null!=b)return v(b,y)||v(b,"@@iterator")||c[f(b)]}},8554:(p,S,a)=>{var f=a(7854),v=a(6916),c=a(9662),d=a(9670),y=a(6330),b=a(1246),T=f.TypeError;p.exports=function(O,A){var P=arguments.length<2?b(O):A;if(c(P))return d(v(P,O));throw T(y(O)+" is not iterable")}},8173:(p,S,a)=>{var f=a(9662);p.exports=function(v,c){var d=v[c];return null==d?void 0:f(d)}},647:(p,S,a)=>{var f=a(1702),v=a(7908),c=Math.floor,d=f("".charAt),y=f("".replace),b=f("".slice),T=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,O=/\$([$&'`]|\d{1,2})/g;p.exports=function(A,P,R,C,N,w){var L=R+A.length,D=C.length,H=O;return void 0!==N&&(N=v(N),H=T),y(w,H,function(X,j){var K;switch(d(j,0)){case"$":return"$";case"&":return A;case"`":return b(P,0,R);case"'":return b(P,L);case"<":K=N[b(j,1,-1)];break;default:var Z=+j;if(0===Z)return X;if(Z>D){var at=c(Z/10);return 0===at?X:at<=D?void 0===C[at-1]?d(j,1):C[at-1]+d(j,1):X}K=C[Z-1]}return void 0===K?"":K})}},7854:p=>{var S=function(a){return a&&a.Math==Math&&a};p.exports=S("object"==typeof globalThis&&globalThis)||S("object"==typeof window&&window)||S("object"==typeof self&&self)||S("object"==typeof global&&global)||function(){return this}()||Function("return this")()},2597:(p,S,a)=>{var f=a(1702),v=a(7908),c=f({}.hasOwnProperty);p.exports=Object.hasOwn||function(y,b){return c(v(y),b)}},3501:p=>{p.exports={}},842:(p,S,a)=>{var f=a(7854);p.exports=function(v,c){var d=f.console;d&&d.error&&(1==arguments.length?d.error(v):d.error(v,c))}},490:(p,S,a)=>{var f=a(5005);p.exports=f("document","documentElement")},4664:(p,S,a)=>{var f=a(9781),v=a(7293),c=a(317);p.exports=!f&&!v(function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a})},8361:(p,S,a)=>{var f=a(7854),v=a(1702),c=a(7293),d=a(4326),y=f.Object,b=v("".split);p.exports=c(function(){return!y("z").propertyIsEnumerable(0)})?function(T){return"String"==d(T)?b(T,""):y(T)}:y},2788:(p,S,a)=>{var f=a(1702),v=a(614),c=a(5465),d=f(Function.toString);v(c.inspectSource)||(c.inspectSource=function(y){return d(y)}),p.exports=c.inspectSource},9909:(p,S,a)=>{var N,w,L,f=a(8536),v=a(7854),c=a(1702),d=a(111),y=a(8880),b=a(2597),T=a(5465),O=a(6200),A=a(3501),P="Object already initialized",R=v.TypeError;if(f||T.state){var X=T.state||(T.state=new(0,v.WeakMap)),j=c(X.get),K=c(X.has),Z=c(X.set);N=function(Y,$){if(K(X,Y))throw new R(P);return $.facade=Y,Z(X,Y,$),$},w=function(Y){return j(X,Y)||{}},L=function(Y){return K(X,Y)}}else{var at=O("state");A[at]=!0,N=function(Y,$){if(b(Y,at))throw new R(P);return $.facade=Y,y(Y,at,$),$},w=function(Y){return b(Y,at)?Y[at]:{}},L=function(Y){return b(Y,at)}}p.exports={set:N,get:w,has:L,enforce:function(Y){return L(Y)?w(Y):N(Y,{})},getterFor:function(Y){return function($){var gt;if(!d($)||(gt=w($)).type!==Y)throw R("Incompatible receiver, "+Y+" required");return gt}}}},7659:(p,S,a)=>{var f=a(5112),v=a(7497),c=f("iterator"),d=Array.prototype;p.exports=function(y){return void 0!==y&&(v.Array===y||d[c]===y)}},1349:(p,S,a)=>{var f=a(4326);p.exports=Array.isArray||function(c){return"Array"==f(c)}},614:p=>{p.exports=function(S){return"function"==typeof S}},4411:(p,S,a)=>{var f=a(1702),v=a(7293),c=a(614),d=a(648),y=a(5005),b=a(2788),T=function(){},O=[],A=y("Reflect","construct"),P=/^\s*(?:class|function)\b/,R=f(P.exec),C=!P.exec(T),N=function(D){if(!c(D))return!1;try{return A(T,O,D),!0}catch(H){return!1}},w=function(D){if(!c(D))return!1;switch(d(D)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return C||!!R(P,b(D))}catch(H){return!0}};w.sham=!0,p.exports=!A||v(function(){var L;return N(N.call)||!N(Object)||!N(function(){L=!0})||L})?w:N},4705:(p,S,a)=>{var f=a(7293),v=a(614),c=/#|\.prototype\./,d=function(A,P){var R=b[y(A)];return R==O||R!=T&&(v(P)?f(P):!!P)},y=d.normalize=function(A){return String(A).replace(c,".").toLowerCase()},b=d.data={},T=d.NATIVE="N",O=d.POLYFILL="P";p.exports=d},111:(p,S,a)=>{var f=a(614);p.exports=function(v){return"object"==typeof v?null!==v:f(v)}},1913:p=>{p.exports=!1},7850:(p,S,a)=>{var f=a(111),v=a(4326),d=a(5112)("match");p.exports=function(y){var b;return f(y)&&(void 0!==(b=y[d])?!!b:"RegExp"==v(y))}},2190:(p,S,a)=>{var f=a(7854),v=a(5005),c=a(614),d=a(7976),y=a(3307),b=f.Object;p.exports=y?function(T){return"symbol"==typeof T}:function(T){var O=v("Symbol");return c(O)&&d(O.prototype,b(T))}},408:(p,S,a)=>{var f=a(7854),v=a(9974),c=a(6916),d=a(9670),y=a(6330),b=a(7659),T=a(6244),O=a(7976),A=a(8554),P=a(1246),R=a(9212),C=f.TypeError,N=function(L,D){this.stopped=L,this.result=D},w=N.prototype;p.exports=function(L,D,H){var Y,$,gt,mt,et,ht,Tt,j=!(!H||!H.AS_ENTRIES),K=!(!H||!H.IS_ITERATOR),Z=!(!H||!H.INTERRUPTED),at=v(D,H&&H.that),it=function(J){return Y&&R(Y,"normal",J),new N(!0,J)},k=function(J){return j?(d(J),Z?at(J[0],J[1],it):at(J[0],J[1])):Z?at(J,it):at(J)};if(K)Y=L;else{if(!($=P(L)))throw C(y(L)+" is not iterable");if(b($)){for(gt=0,mt=T(L);mt>gt;gt++)if((et=k(L[gt]))&&O(w,et))return et;return new N(!1)}Y=A(L,$)}for(ht=Y.next;!(Tt=c(ht,Y)).done;){try{et=k(Tt.value)}catch(J){R(Y,"throw",J)}if("object"==typeof et&&et&&O(w,et))return et}return new N(!1)}},9212:(p,S,a)=>{var f=a(6916),v=a(9670),c=a(8173);p.exports=function(d,y,b){var T,O;v(d);try{if(!(T=c(d,"return"))){if("throw"===y)throw b;return b}T=f(T,d)}catch(A){O=!0,T=A}if("throw"===y)throw b;if(O)throw T;return v(T),b}},3383:(p,S,a)=>{"use strict";var P,R,C,f=a(7293),v=a(614),c=a(30),d=a(9518),y=a(1320),b=a(5112),T=a(1913),O=b("iterator"),A=!1;[].keys&&("next"in(C=[].keys())?(R=d(d(C)))!==Object.prototype&&(P=R):A=!0),null==P||f(function(){var w={};return P[O].call(w)!==w})?P={}:T&&(P=c(P)),v(P[O])||y(P,O,function(){return this}),p.exports={IteratorPrototype:P,BUGGY_SAFARI_ITERATORS:A}},7497:p=>{p.exports={}},6244:(p,S,a)=>{var f=a(7466);p.exports=function(v){return f(v.length)}},5948:(p,S,a)=>{var L,D,H,X,j,K,Z,at,f=a(7854),v=a(9974),c=a(1236).f,d=a(261).set,y=a(6833),b=a(1528),T=a(1036),O=a(5268),A=f.MutationObserver||f.WebKitMutationObserver,P=f.document,R=f.process,C=f.Promise,N=c(f,"queueMicrotask"),w=N&&N.value;w||(L=function(){var Y,$;for(O&&(Y=R.domain)&&Y.exit();D;){$=D.fn,D=D.next;try{$()}catch(gt){throw D?X():H=void 0,gt}}H=void 0,Y&&Y.enter()},y||O||T||!A||!P?!b&&C&&C.resolve?((Z=C.resolve(void 0)).constructor=C,at=v(Z.then,Z),X=function(){at(L)}):O?X=function(){R.nextTick(L)}:(d=v(d,f),X=function(){d(L)}):(j=!0,K=P.createTextNode(""),new A(L).observe(K,{characterData:!0}),X=function(){K.data=j=!j})),p.exports=w||function(Y){var $={fn:Y,next:void 0};H&&(H.next=$),D||(D=$,X()),H=$}},3366:(p,S,a)=>{var f=a(7854);p.exports=f.Promise},133:(p,S,a)=>{var f=a(7392),v=a(7293);p.exports=!!Object.getOwnPropertySymbols&&!v(function(){var c=Symbol();return!String(c)||!(Object(c)instanceof Symbol)||!Symbol.sham&&f&&f<41})},8536:(p,S,a)=>{var f=a(7854),v=a(614),c=a(2788),d=f.WeakMap;p.exports=v(d)&&/native code/.test(c(d))},8523:(p,S,a)=>{"use strict";var f=a(9662),v=function(c){var d,y;this.promise=new c(function(b,T){if(void 0!==d||void 0!==y)throw TypeError("Bad Promise constructor");d=b,y=T}),this.resolve=f(d),this.reject=f(y)};p.exports.f=function(c){return new v(c)}},3929:(p,S,a)=>{var f=a(7854),v=a(7850),c=f.TypeError;p.exports=function(d){if(v(d))throw c("The method doesn't accept regular expressions");return d}},30:(p,S,a)=>{var H,f=a(9670),v=a(4640),c=a(748),d=a(3501),y=a(490),b=a(317),T=a(6200),P="prototype",R="script",C=T("IE_PROTO"),N=function(){},w=function(j){return"<"+R+">"+j+"</"+R+">"},L=function(j){j.write(w("")),j.close();var K=j.parentWindow.Object;return j=null,K},X=function(){try{H=new ActiveXObject("htmlfile")}catch(K){}X="undefined"!=typeof document?document.domain&&H?L(H):function(){var Z,j=b("iframe");return j.style.display="none",y.appendChild(j),j.src=String("javascript:"),(Z=j.contentWindow.document).open(),Z.write(w("document.F=Object")),Z.close(),Z.F}():L(H);for(var j=c.length;j--;)delete X[P][c[j]];return X()};d[C]=!0,p.exports=Object.create||function(K,Z){var at;return null!==K?(N[P]=f(K),at=new N,N[P]=null,at[C]=K):at=X(),void 0===Z?at:v.f(at,Z)}},4640:(p,S,a)=>{var f=a(9781),v=a(3353),c=a(3070),d=a(9670),y=a(5656),b=a(1956);S.f=f&&!v?Object.defineProperties:function(O,A){d(O);for(var w,P=y(A),R=b(A),C=R.length,N=0;C>N;)c.f(O,w=R[N++],P[w]);return O}},3070:(p,S,a)=>{var f=a(7854),v=a(9781),c=a(4664),d=a(3353),y=a(9670),b=a(4948),T=f.TypeError,O=Object.defineProperty,A=Object.getOwnPropertyDescriptor,P="enumerable",R="configurable",C="writable";S.f=v?d?function(w,L,D){if(y(w),L=b(L),y(D),"function"==typeof w&&"prototype"===L&&"value"in D&&C in D&&!D[C]){var H=A(w,L);H&&H[C]&&(w[L]=D.value,D={configurable:R in D?D[R]:H[R],enumerable:P in D?D[P]:H[P],writable:!1})}return O(w,L,D)}:O:function(w,L,D){if(y(w),L=b(L),y(D),c)try{return O(w,L,D)}catch(H){}if("get"in D||"set"in D)throw T("Accessors not supported");return"value"in D&&(w[L]=D.value),w}},1236:(p,S,a)=>{var f=a(9781),v=a(6916),c=a(5296),d=a(9114),y=a(5656),b=a(4948),T=a(2597),O=a(4664),A=Object.getOwnPropertyDescriptor;S.f=f?A:function(R,C){if(R=y(R),C=b(C),O)try{return A(R,C)}catch(N){}if(T(R,C))return d(!v(c.f,R,C),R[C])}},8006:(p,S,a)=>{var f=a(6324),c=a(748).concat("length","prototype");S.f=Object.getOwnPropertyNames||function(y){return f(y,c)}},5181:(p,S)=>{S.f=Object.getOwnPropertySymbols},9518:(p,S,a)=>{var f=a(7854),v=a(2597),c=a(614),d=a(7908),y=a(6200),b=a(8544),T=y("IE_PROTO"),O=f.Object,A=O.prototype;p.exports=b?O.getPrototypeOf:function(P){var R=d(P);if(v(R,T))return R[T];var C=R.constructor;return c(C)&&R instanceof C?C.prototype:R instanceof O?A:null}},7976:(p,S,a)=>{var f=a(1702);p.exports=f({}.isPrototypeOf)},6324:(p,S,a)=>{var f=a(1702),v=a(2597),c=a(5656),d=a(1318).indexOf,y=a(3501),b=f([].push);p.exports=function(T,O){var C,A=c(T),P=0,R=[];for(C in A)!v(y,C)&&v(A,C)&&b(R,C);for(;O.length>P;)v(A,C=O[P++])&&(~d(R,C)||b(R,C));return R}},1956:(p,S,a)=>{var f=a(6324),v=a(748);p.exports=Object.keys||function(d){return f(d,v)}},5296:(p,S)=>{"use strict";var a={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,v=f&&!a.call({1:2},1);S.f=v?function(d){var y=f(this,d);return!!y&&y.enumerable}:a},7674:(p,S,a)=>{var f=a(1702),v=a(9670),c=a(6077);p.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var b,d=!1,y={};try{(b=f(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(y,[]),d=y instanceof Array}catch(T){}return function(O,A){return v(O),c(A),d?b(O,A):O.__proto__=A,O}}():void 0)},2140:(p,S,a)=>{var f=a(7854),v=a(6916),c=a(614),d=a(111),y=f.TypeError;p.exports=function(b,T){var O,A;if("string"===T&&c(O=b.toString)&&!d(A=v(O,b))||c(O=b.valueOf)&&!d(A=v(O,b))||"string"!==T&&c(O=b.toString)&&!d(A=v(O,b)))return A;throw y("Can't convert object to primitive value")}},3887:(p,S,a)=>{var f=a(5005),v=a(1702),c=a(8006),d=a(5181),y=a(9670),b=v([].concat);p.exports=f("Reflect","ownKeys")||function(O){var A=c.f(y(O)),P=d.f;return P?b(A,P(O)):A}},2534:p=>{p.exports=function(S){try{return{error:!1,value:S()}}catch(a){return{error:!0,value:a}}}},9478:(p,S,a)=>{var f=a(9670),v=a(111),c=a(8523);p.exports=function(d,y){if(f(d),v(y)&&y.constructor===d)return y;var b=c.f(d);return(0,b.resolve)(y),b.promise}},8572:p=>{var S=function(){this.head=null,this.tail=null};S.prototype={add:function(a){var f={item:a,next:null};this.head?this.tail.next=f:this.head=f,this.tail=f},get:function(){var a=this.head;if(a)return this.head=a.next,this.tail===a&&(this.tail=null),a.item}},p.exports=S},2248:(p,S,a)=>{var f=a(1320);p.exports=function(v,c,d){for(var y in c)f(v,y,c[y],d);return v}},1320:(p,S,a)=>{var f=a(7854),v=a(614),c=a(2597),d=a(8880),y=a(3505),b=a(2788),T=a(9909),O=a(6530).CONFIGURABLE,A=T.get,P=T.enforce,R=String(String).split("String");(p.exports=function(C,N,w,L){var K,D=!!L&&!!L.unsafe,H=!!L&&!!L.enumerable,X=!!L&&!!L.noTargetGet,j=L&&void 0!==L.name?L.name:N;v(w)&&("Symbol("===String(j).slice(0,7)&&(j="["+String(j).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!c(w,"name")||O&&w.name!==j)&&d(w,"name",j),(K=P(w)).source||(K.source=R.join("string"==typeof j?j:""))),C!==f?(D?!X&&C[N]&&(H=!0):delete C[N],H?C[N]=w:d(C,N,w)):H?C[N]=w:y(N,w)})(Function.prototype,"toString",function(){return v(this)&&A(this).source||b(this)})},7651:(p,S,a)=>{var f=a(7854),v=a(6916),c=a(9670),d=a(614),y=a(4326),b=a(2261),T=f.TypeError;p.exports=function(O,A){var P=O.exec;if(d(P)){var R=v(P,O,A);return null!==R&&c(R),R}if("RegExp"===y(O))return v(b,O,A);throw T("RegExp#exec called on incompatible receiver")}},2261:(p,S,a)=>{"use strict";var at,Y,f=a(6916),v=a(1702),c=a(1340),d=a(7066),y=a(2999),b=a(2309),T=a(30),O=a(9909).get,A=a(9441),P=a(7168),R=b("native-string-replace",String.prototype.replace),C=RegExp.prototype.exec,N=C,w=v("".charAt),L=v("".indexOf),D=v("".replace),H=v("".slice),X=(Y=/b*/g,f(C,at=/a/,"a"),f(C,Y,"a"),0!==at.lastIndex||0!==Y.lastIndex),j=y.BROKEN_CARET,K=void 0!==/()??/.exec("")[1];(X||K||j||A||P)&&(N=function(Y){var ht,Tt,it,k,J,q,_,$=this,gt=O($),mt=c(Y),et=gt.raw;if(et)return et.lastIndex=$.lastIndex,ht=f(N,et,mt),$.lastIndex=et.lastIndex,ht;var xt=gt.groups,bt=j&&$.sticky,Nt=f(d,$),M=$.source,dt=0,At=mt;if(bt&&(Nt=D(Nt,"y",""),-1===L(Nt,"g")&&(Nt+="g"),At=H(mt,$.lastIndex),$.lastIndex>0&&(!$.multiline||$.multiline&&"\n"!==w(mt,$.lastIndex-1))&&(M="(?: "+M+")",At=" "+At,dt++),Tt=new RegExp("^(?:"+M+")",Nt)),K&&(Tt=new RegExp("^"+M+"$(?!\\s)",Nt)),X&&(it=$.lastIndex),k=f(C,bt?Tt:$,At),bt?k?(k.input=H(k.input,dt),k[0]=H(k[0],dt),k.index=$.lastIndex,$.lastIndex+=k[0].length):$.lastIndex=0:X&&k&&($.lastIndex=$.global?k.index+k[0].length:it),K&&k&&k.length>1&&f(R,k[0],Tt,function(){for(J=1;J<arguments.length-2;J++)void 0===arguments[J]&&(k[J]=void 0)}),k&&xt)for(k.groups=q=T(null),J=0;J<xt.length;J++)q[(_=xt[J])[0]]=k[_[1]];return k}),p.exports=N},7066:(p,S,a)=>{"use strict";var f=a(9670);p.exports=function(){var v=f(this),c="";return v.global&&(c+="g"),v.ignoreCase&&(c+="i"),v.multiline&&(c+="m"),v.dotAll&&(c+="s"),v.unicode&&(c+="u"),v.sticky&&(c+="y"),c}},2999:(p,S,a)=>{var f=a(7293),c=a(7854).RegExp,d=f(function(){var T=c("a","y");return T.lastIndex=2,null!=T.exec("abcd")}),y=d||f(function(){return!c("a","y").sticky}),b=d||f(function(){var T=c("^r","gy");return T.lastIndex=2,null!=T.exec("str")});p.exports={BROKEN_CARET:b,MISSED_STICKY:y,UNSUPPORTED_Y:d}},9441:(p,S,a)=>{var f=a(7293),c=a(7854).RegExp;p.exports=f(function(){var d=c(".","s");return!(d.dotAll&&d.exec("\n")&&"s"===d.flags)})},7168:(p,S,a)=>{var f=a(7293),c=a(7854).RegExp;p.exports=f(function(){var d=c("(?<a>b)","g");return"b"!==d.exec("b").groups.a||"bc"!=="b".replace(d,"$<a>c")})},4488:(p,S,a)=>{var v=a(7854).TypeError;p.exports=function(c){if(null==c)throw v("Can't call method on "+c);return c}},3505:(p,S,a)=>{var f=a(7854),v=Object.defineProperty;p.exports=function(c,d){try{v(f,c,{value:d,configurable:!0,writable:!0})}catch(y){f[c]=d}return d}},6340:(p,S,a)=>{"use strict";var f=a(5005),v=a(3070),c=a(5112),d=a(9781),y=c("species");p.exports=function(b){var T=f(b);d&&T&&!T[y]&&(0,v.f)(T,y,{configurable:!0,get:function(){return this}})}},8003:(p,S,a)=>{var f=a(3070).f,v=a(2597),d=a(5112)("toStringTag");p.exports=function(y,b,T){y&&!T&&(y=y.prototype),y&&!v(y,d)&&f(y,d,{configurable:!0,value:b})}},6200:(p,S,a)=>{var f=a(2309),v=a(9711),c=f("keys");p.exports=function(d){return c[d]||(c[d]=v(d))}},5465:(p,S,a)=>{var f=a(7854),v=a(3505),c="__core-js_shared__",d=f[c]||v(c,{});p.exports=d},2309:(p,S,a)=>{var f=a(1913),v=a(5465);(p.exports=function(c,d){return v[c]||(v[c]=void 0!==d?d:{})})("versions",[]).push({version:"3.20.3",mode:f?"pure":"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:(p,S,a)=>{var f=a(9670),v=a(9483),d=a(5112)("species");p.exports=function(y,b){var O,T=f(y).constructor;return void 0===T||null==(O=f(T)[d])?b:v(O)}},8710:(p,S,a)=>{var f=a(1702),v=a(9303),c=a(1340),d=a(4488),y=f("".charAt),b=f("".charCodeAt),T=f("".slice),O=function(A){return function(P,R){var L,D,C=c(d(P)),N=v(R),w=C.length;return N<0||N>=w?A?"":void 0:(L=b(C,N))<55296||L>56319||N+1===w||(D=b(C,N+1))<56320||D>57343?A?y(C,N):L:A?T(C,N,N+2):D-56320+(L-55296<<10)+65536}};p.exports={codeAt:O(!1),charAt:O(!0)}},6091:(p,S,a)=>{var f=a(6530).PROPER,v=a(7293),c=a(1361);p.exports=function(y){return v(function(){return!!c[y]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[y]()||f&&c[y].name!==y})}},3111:(p,S,a)=>{var f=a(1702),v=a(4488),c=a(1340),d=a(1361),y=f("".replace),b="["+d+"]",T=RegExp("^"+b+b+"*"),O=RegExp(b+b+"*$"),A=function(P){return function(R){var C=c(v(R));return 1&P&&(C=y(C,T,"")),2&P&&(C=y(C,O,"")),C}};p.exports={start:A(1),end:A(2),trim:A(3)}},261:(p,S,a)=>{var at,Y,$,gt,f=a(7854),v=a(2104),c=a(9974),d=a(614),y=a(2597),b=a(7293),T=a(490),O=a(206),A=a(317),P=a(6833),R=a(5268),C=f.setImmediate,N=f.clearImmediate,w=f.process,L=f.Dispatch,D=f.Function,H=f.MessageChannel,X=f.String,j=0,K={},Z="onreadystatechange";try{at=f.location}catch(it){}var mt=function(it){if(y(K,it)){var k=K[it];delete K[it],k()}},et=function(it){return function(){mt(it)}},ht=function(it){mt(it.data)},Tt=function(it){f.postMessage(X(it),at.protocol+"//"+at.host)};(!C||!N)&&(C=function(k){var J=O(arguments,1);return K[++j]=function(){v(d(k)?k:D(k),void 0,J)},Y(j),j},N=function(k){delete K[k]},R?Y=function(it){w.nextTick(et(it))}:L&&L.now?Y=function(it){L.now(et(it))}:H&&!P?(gt=($=new H).port2,$.port1.onmessage=ht,Y=c(gt.postMessage,gt)):f.addEventListener&&d(f.postMessage)&&!f.importScripts&&at&&"file:"!==at.protocol&&!b(Tt)?(Y=Tt,f.addEventListener("message",ht,!1)):Y=Z in A("script")?function(it){T.appendChild(A("script"))[Z]=function(){T.removeChild(this),mt(it)}}:function(it){setTimeout(et(it),0)}),p.exports={set:C,clear:N}},1400:(p,S,a)=>{var f=a(9303),v=Math.max,c=Math.min;p.exports=function(d,y){var b=f(d);return b<0?v(b+y,0):c(b,y)}},5656:(p,S,a)=>{var f=a(8361),v=a(4488);p.exports=function(c){return f(v(c))}},9303:p=>{var S=Math.ceil,a=Math.floor;p.exports=function(f){var v=+f;return v!=v||0===v?0:(v>0?a:S)(v)}},7466:(p,S,a)=>{var f=a(9303),v=Math.min;p.exports=function(c){return c>0?v(f(c),9007199254740991):0}},7908:(p,S,a)=>{var f=a(7854),v=a(4488),c=f.Object;p.exports=function(d){return c(v(d))}},7593:(p,S,a)=>{var f=a(7854),v=a(6916),c=a(111),d=a(2190),y=a(8173),b=a(2140),T=a(5112),O=f.TypeError,A=T("toPrimitive");p.exports=function(P,R){if(!c(P)||d(P))return P;var N,C=y(P,A);if(C){if(void 0===R&&(R="default"),N=v(C,P,R),!c(N)||d(N))return N;throw O("Can't convert object to primitive value")}return void 0===R&&(R="number"),b(P,R)}},4948:(p,S,a)=>{var f=a(7593),v=a(2190);p.exports=function(c){var d=f(c,"string");return v(d)?d:d+""}},1694:(p,S,a)=>{var c={};c[a(5112)("toStringTag")]="z",p.exports="[object z]"===String(c)},1340:(p,S,a)=>{var f=a(7854),v=a(648),c=f.String;p.exports=function(d){if("Symbol"===v(d))throw TypeError("Cannot convert a Symbol value to a string");return c(d)}},6330:(p,S,a)=>{var v=a(7854).String;p.exports=function(c){try{return v(c)}catch(d){return"Object"}}},9711:(p,S,a)=>{var f=a(1702),v=0,c=Math.random(),d=f(1..toString);p.exports=function(y){return"Symbol("+(void 0===y?"":y)+")_"+d(++v+c,36)}},3307:(p,S,a)=>{var f=a(133);p.exports=f&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(p,S,a)=>{var f=a(9781),v=a(7293);p.exports=f&&v(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},5112:(p,S,a)=>{var f=a(7854),v=a(2309),c=a(2597),d=a(9711),y=a(133),b=a(3307),T=v("wks"),O=f.Symbol,A=O&&O.for,P=b?O:O&&O.withoutSetter||d;p.exports=function(R){if(!c(T,R)||!y&&"string"!=typeof T[R]){var C="Symbol."+R;T[R]=y&&c(O,R)?O[R]:b&&A?A(C):P(C)}return T[R]}},1361:p=>{p.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},2772:(p,S,a)=>{"use strict";var f=a(2109),v=a(1702),c=a(1318).indexOf,d=a(9341),y=v([].indexOf),b=!!y&&1/y([1],1,-0)<0,T=d("indexOf");f({target:"Array",proto:!0,forced:b||!T},{indexOf:function(A){var P=arguments.length>1?arguments[1]:void 0;return b?y(this,A,P)||0:c(this,A,P)}})},6992:(p,S,a)=>{"use strict";var f=a(5656),v=a(1223),c=a(7497),d=a(9909),y=a(3070).f,b=a(654),T=a(1913),O=a(9781),A="Array Iterator",P=d.set,R=d.getterFor(A);p.exports=b(Array,"Array",function(N,w){P(this,{type:A,target:f(N),index:0,kind:w})},function(){var N=R(this),w=N.target,L=N.kind,D=N.index++;return!w||D>=w.length?(N.target=void 0,{value:void 0,done:!0}):"keys"==L?{value:D,done:!1}:"values"==L?{value:w[D],done:!1}:{value:[D,w[D]],done:!1}},"values");var C=c.Arguments=c.Array;if(v("keys"),v("values"),v("entries"),!T&&O&&"values"!==C.name)try{y(C,"name",{value:"values"})}catch(N){}},5827:(p,S,a)=>{"use strict";var f=a(2109),v=a(3671).left,c=a(9341),d=a(7392),y=a(5268);f({target:"Array",proto:!0,forced:!c("reduce")||!y&&d>79&&d<83},{reduce:function(A){var P=arguments.length;return v(this,A,P,P>1?arguments[1]:void 0)}})},5069:(p,S,a)=>{"use strict";var f=a(2109),v=a(1702),c=a(1349),d=v([].reverse),y=[1,2];f({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return c(this)&&(this.length=this.length),d(this)}})},8674:(p,S,a)=>{"use strict";var Ce,Ge,Gt,Qe,f=a(2109),v=a(1913),c=a(7854),d=a(5005),y=a(6916),b=a(3366),T=a(1320),O=a(2248),A=a(7674),P=a(8003),R=a(6340),C=a(9662),N=a(614),w=a(111),L=a(5787),D=a(2788),H=a(408),X=a(7072),j=a(6707),K=a(261).set,Z=a(5948),at=a(9478),Y=a(842),$=a(8523),gt=a(2534),mt=a(8572),et=a(9909),ht=a(4705),Tt=a(5112),it=a(7871),k=a(5268),J=a(7392),q=Tt("species"),_="Promise",xt=et.getterFor(_),bt=et.set,Nt=et.getterFor(_),M=b&&b.prototype,dt=b,At=M,ct=c.TypeError,jt=c.document,qt=c.process,Ht=$.f,ae=Ht,ve=!!(jt&&jt.createEvent&&c.dispatchEvent),re=N(c.PromiseRejectionEvent),ce="unhandledrejection",ne=!1,de=ht(_,function(){var z=D(dt),tt=z!==String(dt);if(!tt&&66===J||v&&!At.finally)return!0;if(J>=51&&/native code/.test(z))return!1;var st=new dt(function(Lt){Lt(1)}),ot=function(Lt){Lt(function(){},function(){})};return(st.constructor={})[q]=ot,!(ne=st.then(function(){})instanceof ot)||!tt&&it&&!re}),He=de||!X(function(z){dt.all(z).catch(function(){})}),Ye=function(z){var tt;return!(!w(z)||!N(tt=z.then))&&tt},ke=function(z,tt){var Qt,ye,se,st=tt.value,ot=1==tt.state,vt=ot?z.ok:z.fail,Lt=z.resolve,_t=z.reject,Wt=z.domain;try{vt?(ot||(2===tt.rejection&&gr(tt),tt.rejection=1),!0===vt?Qt=st:(Wt&&Wt.enter(),Qt=vt(st),Wt&&(Wt.exit(),se=!0)),Qt===z.promise?_t(ct("Promise-chain cycle")):(ye=Ye(Qt))?y(ye,Qt,Lt,_t):Lt(Qt)):_t(st)}catch(rt){Wt&&!se&&Wt.exit(),_t(rt)}},Ke=function(z,tt){z.notified||(z.notified=!0,Z(function(){for(var ot,st=z.reactions;ot=st.get();)ke(ot,z);z.notified=!1,tt&&!z.rejection&&cr(z)}))},Ze=function(z,tt,st){var ot,vt;ve?((ot=jt.createEvent("Event")).promise=tt,ot.reason=st,ot.initEvent(z,!1,!0),c.dispatchEvent(ot)):ot={promise:tt,reason:st},!re&&(vt=c["on"+z])?vt(ot):z===ce&&Y("Unhandled promise rejection",st)},cr=function(z){y(K,c,function(){var vt,tt=z.facade,st=z.value;if(Je(z)&&(vt=gt(function(){k?qt.emit("unhandledRejection",st,tt):Ze(ce,tt,st)}),z.rejection=k||Je(z)?2:1,vt.error))throw vt.value})},Je=function(z){return 1!==z.rejection&&!z.parent},gr=function(z){y(K,c,function(){var tt=z.facade;k?qt.emit("rejectionHandled",tt):Ze("rejectionhandled",tt,z.value)})},pe=function(z,tt,st){return function(ot){z(tt,ot,st)}},$t=function(z,tt,st){z.done||(z.done=!0,st&&(z=st),z.value=tt,z.state=2,Ke(z,!0))},Le=function(z,tt,st){if(!z.done){z.done=!0,st&&(z=st);try{if(z.facade===tt)throw ct("Promise can't be resolved itself");var ot=Ye(tt);ot?Z(function(){var vt={done:!1};try{y(ot,tt,pe(Le,vt,z),pe($t,vt,z))}catch(Lt){$t(vt,Lt,z)}}):(z.value=tt,z.state=1,Ke(z,!1))}catch(vt){$t({done:!1},vt,z)}}};if(de&&(dt=function(tt){L(this,At),C(tt),y(Ce,this);var st=xt(this);try{tt(pe(Le,st),pe($t,st))}catch(ot){$t(st,ot)}},(Ce=function(tt){bt(this,{type:_,done:!1,notified:!1,parent:!1,reactions:new mt,rejection:!1,state:0,value:void 0})}).prototype=O(At=dt.prototype,{then:function(tt,st){var ot=Nt(this),vt=Ht(j(this,dt));return ot.parent=!0,vt.ok=!N(tt)||tt,vt.fail=N(st)&&st,vt.domain=k?qt.domain:void 0,0==ot.state?ot.reactions.add(vt):Z(function(){ke(vt,ot)}),vt.promise},catch:function(z){return this.then(void 0,z)}}),Ge=function(){var z=new Ce,tt=xt(z);this.promise=z,this.resolve=pe(Le,tt),this.reject=pe($t,tt)},$.f=Ht=function(z){return z===dt||z===Gt?new Ge(z):ae(z)},!v&&N(b)&&M!==Object.prototype)){Qe=M.then,ne||(T(M,"then",function(tt,st){var ot=this;return new dt(function(vt,Lt){y(Qe,ot,vt,Lt)}).then(tt,st)},{unsafe:!0}),T(M,"catch",At.catch,{unsafe:!0}));try{delete M.constructor}catch(z){}A&&A(M,At)}f({global:!0,wrap:!0,forced:de},{Promise:dt}),P(dt,_,!1,!0),R(_),Gt=d(_),f({target:_,stat:!0,forced:de},{reject:function(tt){var st=Ht(this);return y(st.reject,void 0,tt),st.promise}}),f({target:_,stat:!0,forced:v||de},{resolve:function(tt){return at(v&&this===Gt?dt:this,tt)}}),f({target:_,stat:!0,forced:He},{all:function(tt){var st=this,ot=Ht(st),vt=ot.resolve,Lt=ot.reject,_t=gt(function(){var Wt=C(st.resolve),Qt=[],ye=0,se=1;H(tt,function(rt){var qe=ye++,Rt=!1;se++,y(Wt,st,rt).then(function(_e){Rt||(Rt=!0,Qt[qe]=_e,--se||vt(Qt))},Lt)}),--se||vt(Qt)});return _t.error&&Lt(_t.value),ot.promise},race:function(tt){var st=this,ot=Ht(st),vt=ot.reject,Lt=gt(function(){var _t=C(st.resolve);H(tt,function(Wt){y(_t,st,Wt).then(ot.resolve,vt)})});return Lt.error&&vt(Lt.value),ot.promise}})},4916:(p,S,a)=>{"use strict";var f=a(2109),v=a(2261);f({target:"RegExp",proto:!0,forced:/./.exec!==v},{exec:v})},9714:(p,S,a)=>{"use strict";var f=a(1702),v=a(6530).PROPER,c=a(1320),d=a(9670),y=a(7976),b=a(1340),T=a(7293),O=a(7066),A="toString",P=RegExp.prototype,R=P[A],C=f(O);(T(function(){return"/a/b"!=R.call({source:"a",flags:"b"})})||v&&R.name!=A)&&c(RegExp.prototype,A,function(){var D=d(this),H=b(D.source),X=D.flags;return"/"+H+"/"+b(void 0===X&&y(P,D)&&!("flags"in P)?C(D):X)},{unsafe:!0})},7852:(p,S,a)=>{"use strict";var L,f=a(2109),v=a(1702),c=a(1236).f,d=a(7466),y=a(1340),b=a(3929),T=a(4488),O=a(4964),A=a(1913),P=v("".endsWith),R=v("".slice),C=Math.min,N=O("endsWith");f({target:"String",proto:!0,forced:!(!A&&!N&&(L=c(String.prototype,"endsWith"),L&&!L.writable)||N)},{endsWith:function(D){var H=y(T(this));b(D);var X=arguments.length>1?arguments[1]:void 0,j=H.length,K=void 0===X?j:C(d(X),j),Z=y(D);return P?P(H,Z,K):R(H,K-Z.length,K)===Z}})},2023:(p,S,a)=>{"use strict";var f=a(2109),v=a(1702),c=a(3929),d=a(4488),y=a(1340),b=a(4964),T=v("".indexOf);f({target:"String",proto:!0,forced:!b("includes")},{includes:function(A){return!!~T(y(d(this)),y(c(A)),arguments.length>1?arguments[1]:void 0)}})},4723:(p,S,a)=>{"use strict";var f=a(6916),v=a(7007),c=a(9670),d=a(7466),y=a(1340),b=a(4488),T=a(8173),O=a(1530),A=a(7651);v("match",function(P,R,C){return[function(w){var L=b(this),D=null==w?void 0:T(w,P);return D?f(D,w,L):new RegExp(w)[P](y(L))},function(N){var w=c(this),L=y(N),D=C(R,w,L);if(D.done)return D.value;if(!w.global)return A(w,L);var H=w.unicode;w.lastIndex=0;for(var K,X=[],j=0;null!==(K=A(w,L));){var Z=y(K[0]);X[j]=Z,""===Z&&(w.lastIndex=O(L,d(w.lastIndex),H)),j++}return 0===j?null:X}]})},5306:(p,S,a)=>{"use strict";var f=a(2104),v=a(6916),c=a(1702),d=a(7007),y=a(7293),b=a(9670),T=a(614),O=a(9303),A=a(7466),P=a(1340),R=a(4488),C=a(1530),N=a(8173),w=a(647),L=a(7651),H=a(5112)("replace"),X=Math.max,j=Math.min,K=c([].concat),Z=c([].push),at=c("".indexOf),Y=c("".slice),$=function(ht){return void 0===ht?ht:String(ht)},gt="$0"==="a".replace(/./,"$0"),mt=!!/./[H]&&""===/./[H]("a","$0");d("replace",function(ht,Tt,it){var k=mt?"$":"$0";return[function(q,_){var xt=R(this),bt=null==q?void 0:N(q,H);return bt?v(bt,q,xt,_):v(Tt,P(xt),q,_)},function(J,q){var _=b(this),xt=P(J);if("string"==typeof q&&-1===at(q,k)&&-1===at(q,"$<")){var bt=it(Tt,_,xt,q);if(bt.done)return bt.value}var Nt=T(q);Nt||(q=P(q));var M=_.global;if(M){var dt=_.unicode;_.lastIndex=0}for(var At=[];;){var ct=L(_,xt);if(null===ct||(Z(At,ct),!M))break;""===P(ct[0])&&(_.lastIndex=C(xt,A(_.lastIndex),dt))}for(var qt="",Ht=0,ae=0;ae<At.length;ae++){for(var ve=P((ct=At[ae])[0]),re=X(j(O(ct.index),xt.length),0),ce=[],Oe=1;Oe<ct.length;Oe++)Z(ce,$(ct[Oe]));var ge=ct.groups;if(Nt){var ie=K([ve],ce,re,xt);void 0!==ge&&Z(ie,ge);var Ve=P(f(q,void 0,ie))}else Ve=w(ve,xt,re,ce,ge,q);re>=Ht&&(qt+=Y(xt,Ht,re)+Ve,Ht=re+ve.length)}return qt+Y(xt,Ht)}]},!!y(function(){var ht=/./;return ht.exec=function(){var Tt=[];return Tt.groups={a:"7"},Tt},"7"!=="".replace(ht,"$<a>")})||!gt||mt)},3123:(p,S,a)=>{"use strict";var f=a(2104),v=a(6916),c=a(1702),d=a(7007),y=a(7850),b=a(9670),T=a(4488),O=a(6707),A=a(1530),P=a(7466),R=a(1340),C=a(8173),N=a(1589),w=a(7651),L=a(2261),D=a(2999),H=a(7293),X=D.UNSUPPORTED_Y,j=4294967295,K=Math.min,Z=[].push,at=c(/./.exec),Y=c(Z),$=c("".slice);d("split",function(mt,et,ht){var Tt;return Tt="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(it,k){var J=R(T(this)),q=void 0===k?j:k>>>0;if(0===q)return[];if(void 0===it)return[J];if(!y(it))return v(et,J,it,q);for(var M,dt,At,_=[],bt=0,Nt=new RegExp(it.source,(it.ignoreCase?"i":"")+(it.multiline?"m":"")+(it.unicode?"u":"")+(it.sticky?"y":"")+"g");(M=v(L,Nt,J))&&!((dt=Nt.lastIndex)>bt&&(Y(_,$(J,bt,M.index)),M.length>1&&M.index<J.length&&f(Z,_,N(M,1)),At=M[0].length,bt=dt,_.length>=q));)Nt.lastIndex===M.index&&Nt.lastIndex++;return bt===J.length?(At||!at(Nt,""))&&Y(_,""):Y(_,$(J,bt)),_.length>q?N(_,0,q):_}:"0".split(void 0,0).length?function(it,k){return void 0===it&&0===k?[]:v(et,this,it,k)}:et,[function(k,J){var q=T(this),_=null==k?void 0:C(k,mt);return _?v(_,k,q,J):v(Tt,R(q),k,J)},function(it,k){var J=b(this),q=R(it),_=ht(Tt,J,q,k,Tt!==et);if(_.done)return _.value;var xt=O(J,RegExp),bt=J.unicode,M=new xt(X?"^(?:"+J.source+")":J,(J.ignoreCase?"i":"")+(J.multiline?"m":"")+(J.unicode?"u":"")+(X?"g":"y")),dt=void 0===k?j:k>>>0;if(0===dt)return[];if(0===q.length)return null===w(M,q)?[q]:[];for(var At=0,ct=0,jt=[];ct<q.length;){M.lastIndex=X?0:ct;var Ht,qt=w(M,X?$(q,ct):q);if(null===qt||(Ht=K(P(M.lastIndex+(X?ct:0)),q.length))===At)ct=A(q,ct,bt);else{if(Y(jt,$(q,At,ct)),jt.length===dt)return jt;for(var ae=1;ae<=qt.length-1;ae++)if(Y(jt,qt[ae]),jt.length===dt)return jt;ct=At=Ht}}return Y(jt,$(q,At)),jt}]},!!H(function(){var mt=/(?:)/,et=mt.exec;mt.exec=function(){return et.apply(this,arguments)};var ht="ab".split(mt);return 2!==ht.length||"a"!==ht[0]||"b"!==ht[1]}),X)},3157:(p,S,a)=>{"use strict";var L,f=a(2109),v=a(1702),c=a(1236).f,d=a(7466),y=a(1340),b=a(3929),T=a(4488),O=a(4964),A=a(1913),P=v("".startsWith),R=v("".slice),C=Math.min,N=O("startsWith");f({target:"String",proto:!0,forced:!(!A&&!N&&(L=c(String.prototype,"startsWith"),L&&!L.writable)||N)},{startsWith:function(D){var H=y(T(this));b(D);var X=d(C(arguments.length>1?arguments[1]:void 0,H.length)),j=y(D);return P?P(H,j,X):R(H,X,X+j.length)===j}})},3210:(p,S,a)=>{"use strict";var f=a(2109),v=a(3111).trim;f({target:"String",proto:!0,forced:a(6091)("trim")},{trim:function(){return v(this)}})},3948:(p,S,a)=>{var f=a(7854),v=a(8324),c=a(8509),d=a(6992),y=a(8880),b=a(5112),T=b("iterator"),O=b("toStringTag"),A=d.values,P=function(C,N){if(C){if(C[T]!==A)try{y(C,T,A)}catch(L){C[T]=A}if(C[O]||y(C,O,N),v[N])for(var w in d)if(C[w]!==d[w])try{y(C,w,d[w])}catch(L){C[w]=d[w]}}};for(var R in v)P(f[R]&&f[R].prototype,R);P(c,"DOMTokenList")},7399:(p,S,a)=>{"use strict";function v(u,t,e,r,n,i,o){try{var s=u[i](o),l=s.value}catch(h){return void e(h)}s.done?t(l):Promise.resolve(l).then(r,n)}function c(u){return function(){var t=this,e=arguments;return new Promise(function(r,n){var i=u.apply(t,e);function o(l){v(i,r,n,o,s,"next",l)}function s(l){v(i,r,n,o,s,"throw",l)}o(void 0)})}}function A(u,t,e){return t in u?Object.defineProperty(u,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):u[t]=e,u}a.r(S),a.d(S,{AElement:()=>nn,AnimateColorElement:()=>Jr,AnimateElement:()=>nr,AnimateTransformElement:()=>qr,BoundingBox:()=>te,CB1:()=>vt,CB2:()=>Lt,CB3:()=>_t,CB4:()=>Wt,Canvg:()=>Re,CircleElement:()=>Gr,ClipPathElement:()=>gn,DefsElement:()=>Qr,DescElement:()=>Tn,Document:()=>Sn,Element:()=>It,EllipseElement:()=>Hr,FeColorMatrixElement:()=>br,FeCompositeElement:()=>mn,FeDropShadowElement:()=>pn,FeGaussianBlurElement:()=>xn,FeMorphologyElement:()=>yn,FilterElement:()=>dn,Font:()=>Ae,FontElement:()=>_r,FontFaceElement:()=>tn,GElement:()=>rr,GlyphElement:()=>mr,GradientElement:()=>Tr,ImageElement:()=>on,LineElement:()=>Yr,LinearGradientElement:()=>kr,MarkerElement:()=>Wr,MaskElement:()=>vn,Matrix:()=>pr,MissingGlyphElement:()=>en,Mouse:()=>_e,PSEUDO_ZERO:()=>z,Parser:()=>tr,PathElement:()=>St,PathParser:()=>lt,PatternElement:()=>$r,Point:()=>Rt,PolygonElement:()=>Xr,PolylineElement:()=>Er,Property:()=>rt,QB1:()=>Qt,QB2:()=>ye,QB3:()=>se,RadialGradientElement:()=>Kr,RectElement:()=>xr,RenderedElement:()=>me,Rotate:()=>Fr,SVGElement:()=>De,SVGFontLoader:()=>un,Scale:()=>Br,Screen:()=>dr,Skew:()=>yr,SkewX:()=>Ur,SkewY:()=>jr,StopElement:()=>Zr,StyleElement:()=>hn,SymbolElement:()=>ln,TRefElement:()=>rn,TSpanElement:()=>Xe,TextElement:()=>he,TextPathElement:()=>sn,TitleElement:()=>En,Transform:()=>er,Translate:()=>Dr,UnknownElement:()=>zr,UseElement:()=>fn,ViewPort:()=>qe,compressSpaces:()=>ne,default:()=>Re,getSelectorSpecificity:()=>Le,normalizeAttributeName:()=>de,normalizeColor:()=>Ye,parseExternalUrl:()=>He,presets:()=>We,toNumbers:()=>Gt,trimLeft:()=>Ce,trimRight:()=>Ge,vectorMagnitude:()=>tt,vectorsAngle:()=>ot,vectorsRatio:()=>st}),a(8674),a(4723),a(5306),a(3157),a(6992),a(3948),a(5827),a(7852),a(3123);var N=a(6489),L=(a(3210),a(1239)),j=(a(2772),a(2023),a(5069),function(u,t){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])})(u,t)});function K(u,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=u}j(u,t),u.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}function at(u,t){var e=u[0],r=u[1];return[e*Math.cos(t)-r*Math.sin(t),e*Math.sin(t)+r*Math.cos(t)]}function Y(){for(var u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];for(var e=0;e<u.length;e++)if("number"!=typeof u[e])throw new Error("assertNumbers arguments["+e+"] is not a number. "+typeof u[e]+" == typeof "+u[e]);return!0}var $=Math.PI;function gt(u,t,e){u.lArcFlag=0===u.lArcFlag?0:1,u.sweepFlag=0===u.sweepFlag?0:1;var r=u.rX,n=u.rY,i=u.x,o=u.y;r=Math.abs(u.rX),n=Math.abs(u.rY);var s=at([(t-i)/2,(e-o)/2],-u.xRot/180*$),l=s[0],h=s[1],g=Math.pow(l,2)/Math.pow(r,2)+Math.pow(h,2)/Math.pow(n,2);1<g&&(r*=Math.sqrt(g),n*=Math.sqrt(g)),u.rX=r,u.rY=n;var x=Math.pow(r,2)*Math.pow(h,2)+Math.pow(n,2)*Math.pow(l,2),E=(u.lArcFlag!==u.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(n,2)-x)/x)),m=r*h/n*E,I=-n*l/r*E,V=at([m,I],u.xRot/180*$);u.cX=V[0]+(t+i)/2,u.cY=V[1]+(e+o)/2,u.phi1=Math.atan2((h-I)/n,(l-m)/r),u.phi2=Math.atan2((-h-I)/n,(-l-m)/r),0===u.sweepFlag&&u.phi2>u.phi1&&(u.phi2-=2*$),1===u.sweepFlag&&u.phi2<u.phi1&&(u.phi2+=2*$),u.phi1*=180/$,u.phi2*=180/$}function mt(u,t,e){Y(u,t,e);var r=u*u+t*t-e*e;if(0>r)return[];if(0===r)return[[u*e/(u*u+t*t),t*e/(u*u+t*t)]];var n=Math.sqrt(r);return[[(u*e+t*n)/(u*u+t*t),(t*e-u*n)/(u*u+t*t)],[(u*e-t*n)/(u*u+t*t),(t*e+u*n)/(u*u+t*t)]]}var et,ht=Math.PI/180;function Tt(u,t,e){return(1-e)*u+e*t}function it(u,t,e,r){return u+Math.cos(r/180*$)*t+Math.sin(r/180*$)*e}function k(u,t,e,r){var n=1e-6,i=t-u,o=e-t,s=3*i+3*(r-e)-6*o,l=6*(o-i),h=3*i;return Math.abs(s)<n?[-h/l]:function(g,x,E){void 0===E&&(E=1e-6);var m=g*g/4-x;if(m<-E)return[];if(m<=E)return[-g/2];var I=Math.sqrt(m);return[-g/2-I,-g/2+I]}(l/s,h/s,n)}function J(u,t,e,r,n){var i=1-n;return u*(i*i*i)+t*(3*i*i*n)+e*(3*i*n*n)+r*(n*n*n)}!function(u){function t(){return n(function(s,l,h){return s.relative&&(void 0!==s.x1&&(s.x1+=l),void 0!==s.y1&&(s.y1+=h),void 0!==s.x2&&(s.x2+=l),void 0!==s.y2&&(s.y2+=h),void 0!==s.x&&(s.x+=l),void 0!==s.y&&(s.y+=h),s.relative=!1),s})}function e(){var s=NaN,l=NaN,h=NaN,g=NaN;return n(function(x,E,m){return x.type&M.SMOOTH_CURVE_TO&&(x.type=M.CURVE_TO,s=isNaN(s)?E:s,l=isNaN(l)?m:l,x.x1=x.relative?E-s:2*E-s,x.y1=x.relative?m-l:2*m-l),x.type&M.CURVE_TO?(s=x.relative?E+x.x2:x.x2,l=x.relative?m+x.y2:x.y2):(s=NaN,l=NaN),x.type&M.SMOOTH_QUAD_TO&&(x.type=M.QUAD_TO,h=isNaN(h)?E:h,g=isNaN(g)?m:g,x.x1=x.relative?E-h:2*E-h,x.y1=x.relative?m-g:2*m-g),x.type&M.QUAD_TO?(h=x.relative?E+x.x1:x.x1,g=x.relative?m+x.y1:x.y1):(h=NaN,g=NaN),x})}function r(){var s=NaN,l=NaN;return n(function(h,g,x){if(h.type&M.SMOOTH_QUAD_TO&&(h.type=M.QUAD_TO,s=isNaN(s)?g:s,l=isNaN(l)?x:l,h.x1=h.relative?g-s:2*g-s,h.y1=h.relative?x-l:2*x-l),h.type&M.QUAD_TO){s=h.relative?g+h.x1:h.x1,l=h.relative?x+h.y1:h.y1;var E=h.x1,m=h.y1;h.type=M.CURVE_TO,h.x1=((h.relative?0:g)+2*E)/3,h.y1=((h.relative?0:x)+2*m)/3,h.x2=(h.x+2*E)/3,h.y2=(h.y+2*m)/3}else s=NaN,l=NaN;return h})}function n(s){var l=0,h=0,g=NaN,x=NaN;return function(E){if(isNaN(g)&&!(E.type&M.MOVE_TO))throw new Error("path must start with moveto");var m=s(E,l,h,g,x);return E.type&M.CLOSE_PATH&&(l=g,h=x),void 0!==E.x&&(l=E.relative?l+E.x:E.x),void 0!==E.y&&(h=E.relative?h+E.y:E.y),E.type&M.MOVE_TO&&(g=l,x=h),m}}function i(s,l,h,g,x,E){return Y(s,l,h,g,x,E),n(function(m,I,V,F){var B=m.x1,Q=m.x2,G=m.relative&&!isNaN(F),U=void 0!==m.x?m.x:G?0:I,nt=void 0!==m.y?m.y:G?0:V;function ut(Yt){return Yt*Yt}m.type&M.HORIZ_LINE_TO&&0!==l&&(m.type=M.LINE_TO,m.y=m.relative?0:V),m.type&M.VERT_LINE_TO&&0!==h&&(m.type=M.LINE_TO,m.x=m.relative?0:I),void 0!==m.x&&(m.x=m.x*s+nt*h+(G?0:x)),void 0!==m.y&&(m.y=U*l+m.y*g+(G?0:E)),void 0!==m.x1&&(m.x1=m.x1*s+m.y1*h+(G?0:x)),void 0!==m.y1&&(m.y1=B*l+m.y1*g+(G?0:E)),void 0!==m.x2&&(m.x2=m.x2*s+m.y2*h+(G?0:x)),void 0!==m.y2&&(m.y2=Q*l+m.y2*g+(G?0:E));var W=s*g-l*h;if(void 0!==m.xRot&&(1!==s||0!==l||0!==h||1!==g))if(0===W)delete m.rX,delete m.rY,delete m.xRot,delete m.lArcFlag,delete m.sweepFlag,m.type=M.LINE_TO;else{var ft=m.xRot*Math.PI/180,pt=Math.sin(ft),Et=Math.cos(ft),Ot=1/ut(m.rX),Pt=1/ut(m.rY),Ft=ut(Et)*Ot+ut(pt)*Pt,Bt=2*pt*Et*(Ot-Pt),Mt=ut(pt)*Ot+ut(Et)*Pt,Vt=Ft*g*g-Bt*l*g+Mt*l*l,wt=Bt*(s*g+l*h)-2*(Ft*h*g+Mt*s*l),zt=Ft*h*h-Bt*s*h+Mt*s*s,Ct=(Math.atan2(wt,Vt-zt)+Math.PI)%Math.PI/2,yt=Math.sin(Ct),Ut=Math.cos(Ct);m.rX=Math.abs(W)/Math.sqrt(Vt*ut(Ut)+wt*yt*Ut+zt*ut(yt)),m.rY=Math.abs(W)/Math.sqrt(Vt*ut(yt)-wt*yt*Ut+zt*ut(Ut)),m.xRot=180*Ct/Math.PI}return void 0!==m.sweepFlag&&0>W&&(m.sweepFlag=+!m.sweepFlag),m})}u.ROUND=function(s){function l(h){return Math.round(h*s)/s}return void 0===s&&(s=1e13),Y(s),function(h){return void 0!==h.x1&&(h.x1=l(h.x1)),void 0!==h.y1&&(h.y1=l(h.y1)),void 0!==h.x2&&(h.x2=l(h.x2)),void 0!==h.y2&&(h.y2=l(h.y2)),void 0!==h.x&&(h.x=l(h.x)),void 0!==h.y&&(h.y=l(h.y)),void 0!==h.rX&&(h.rX=l(h.rX)),void 0!==h.rY&&(h.rY=l(h.rY)),h}},u.TO_ABS=t,u.TO_REL=function(){return n(function(s,l,h){return s.relative||(void 0!==s.x1&&(s.x1-=l),void 0!==s.y1&&(s.y1-=h),void 0!==s.x2&&(s.x2-=l),void 0!==s.y2&&(s.y2-=h),void 0!==s.x&&(s.x-=l),void 0!==s.y&&(s.y-=h),s.relative=!0),s})},u.NORMALIZE_HVZ=function(s,l,h){return void 0===s&&(s=!0),void 0===l&&(l=!0),void 0===h&&(h=!0),n(function(g,x,E,m,I){if(isNaN(m)&&!(g.type&M.MOVE_TO))throw new Error("path must start with moveto");return l&&g.type&M.HORIZ_LINE_TO&&(g.type=M.LINE_TO,g.y=g.relative?0:E),h&&g.type&M.VERT_LINE_TO&&(g.type=M.LINE_TO,g.x=g.relative?0:x),s&&g.type&M.CLOSE_PATH&&(g.type=M.LINE_TO,g.x=g.relative?m-x:m,g.y=g.relative?I-E:I),g.type&M.ARC&&(0===g.rX||0===g.rY)&&(g.type=M.LINE_TO,delete g.rX,delete g.rY,delete g.xRot,delete g.lArcFlag,delete g.sweepFlag),g})},u.NORMALIZE_ST=e,u.QT_TO_C=r,u.INFO=n,u.SANITIZE=function(s){void 0===s&&(s=0),Y(s);var l=NaN,h=NaN,g=NaN,x=NaN;return n(function(E,m,I,V,F){var B=Math.abs,Q=!1,G=0,U=0;if(E.type&M.SMOOTH_CURVE_TO&&(G=isNaN(l)?0:m-l,U=isNaN(h)?0:I-h),E.type&(M.CURVE_TO|M.SMOOTH_CURVE_TO)?(l=E.relative?m+E.x2:E.x2,h=E.relative?I+E.y2:E.y2):(l=NaN,h=NaN),E.type&M.SMOOTH_QUAD_TO?(g=isNaN(g)?m:2*m-g,x=isNaN(x)?I:2*I-x):E.type&M.QUAD_TO?(g=E.relative?m+E.x1:E.x1,x=E.relative?I+E.y1:E.y2):(g=NaN,x=NaN),E.type&M.LINE_COMMANDS||E.type&M.ARC&&(0===E.rX||0===E.rY||!E.lArcFlag)||E.type&M.CURVE_TO||E.type&M.SMOOTH_CURVE_TO||E.type&M.QUAD_TO||E.type&M.SMOOTH_QUAD_TO){var nt=void 0===E.x?0:E.relative?E.x:E.x-m,ut=void 0===E.y?0:E.relative?E.y:E.y-I;G=isNaN(g)?void 0===E.x1?G:E.relative?E.x:E.x1-m:g-m,U=isNaN(x)?void 0===E.y1?U:E.relative?E.y:E.y1-I:x-I;var W=void 0===E.x2?0:E.relative?E.x:E.x2-m,ft=void 0===E.y2?0:E.relative?E.y:E.y2-I;B(nt)<=s&&B(ut)<=s&&B(G)<=s&&B(U)<=s&&B(W)<=s&&B(ft)<=s&&(Q=!0)}return E.type&M.CLOSE_PATH&&B(m-V)<=s&&B(I-F)<=s&&(Q=!0),Q?[]:E})},u.MATRIX=i,u.ROTATE=function(s,l,h){void 0===l&&(l=0),void 0===h&&(h=0),Y(s,l,h);var g=Math.sin(s),x=Math.cos(s);return i(x,g,-g,x,l-l*x+h*g,h-l*g-h*x)},u.TRANSLATE=function(s,l){return void 0===l&&(l=0),Y(s,l),i(1,0,0,1,s,l)},u.SCALE=function(s,l){return void 0===l&&(l=s),Y(s,l),i(s,0,0,l,0,0)},u.SKEW_X=function(s){return Y(s),i(1,0,Math.atan(s),1,0,0)},u.SKEW_Y=function(s){return Y(s),i(1,Math.atan(s),0,1,0,0)},u.X_AXIS_SYMMETRY=function(s){return void 0===s&&(s=0),Y(s),i(-1,0,0,1,s,0)},u.Y_AXIS_SYMMETRY=function(s){return void 0===s&&(s=0),Y(s),i(1,0,0,-1,0,s)},u.A_TO_C=function(){return n(function(s,l,h){return M.ARC===s.type?function(g,x,E){var m,I,V,F;g.cX||gt(g,x,E);for(var B=Math.min(g.phi1,g.phi2),Q=Math.max(g.phi1,g.phi2)-B,G=Math.ceil(Q/90),U=new Array(G),nt=x,ut=E,W=0;W<G;W++){var ft=Tt(g.phi1,g.phi2,W/G),pt=Tt(g.phi1,g.phi2,(W+1)/G),Ot=4/3*Math.tan((pt-ft)*ht/4),Pt=[Math.cos(ft*ht)-Ot*Math.sin(ft*ht),Math.sin(ft*ht)+Ot*Math.cos(ft*ht)],Ft=Pt[0],Bt=Pt[1],Mt=[Math.cos(pt*ht),Math.sin(pt*ht)],Vt=Mt[0],wt=Mt[1],zt=[Vt+Ot*Math.sin(pt*ht),wt-Ot*Math.cos(pt*ht)],Ct=zt[0],yt=zt[1];U[W]={relative:g.relative,type:M.CURVE_TO};var Ut=function(Yt,kt){var Xt=at([Yt*g.rX,kt*g.rY],g.xRot);return[g.cX+Xt[0],g.cY+Xt[1]]};m=Ut(Ft,Bt),U[W].x1=m[0],U[W].y1=m[1],I=Ut(Ct,yt),U[W].x2=I[0],U[W].y2=I[1],V=Ut(Vt,wt),U[W].x=V[0],U[W].y=V[1],g.relative&&(U[W].x1-=nt,U[W].y1-=ut,U[W].x2-=nt,U[W].y2-=ut,U[W].x-=nt,U[W].y-=ut),nt=(F=[U[W].x,U[W].y])[0],ut=F[1]}return U}(s,s.relative?0:l,s.relative?0:h):s})},u.ANNOTATE_ARCS=function(){return n(function(s,l,h){return s.relative&&(l=0,h=0),M.ARC===s.type&>(s,l,h),s})},u.CLONE=function o(){return function(s){var l={};for(var h in s)l[h]=s[h];return l}},u.CALCULATE_BOUNDS=function(){var l=t(),h=r(),g=e(),x=n(function(E,m,I){var V=g(h(l(function(E){var m={};for(var I in E)m[I]=E[I];return m}(E))));function F(yt){yt>x.maxX&&(x.maxX=yt),yt<x.minX&&(x.minX=yt)}function B(yt){yt>x.maxY&&(x.maxY=yt),yt<x.minY&&(x.minY=yt)}if(V.type&M.DRAWING_COMMANDS&&(F(m),B(I)),V.type&M.HORIZ_LINE_TO&&F(V.x),V.type&M.VERT_LINE_TO&&B(V.y),V.type&M.LINE_TO&&(F(V.x),B(V.y)),V.type&M.CURVE_TO){F(V.x),B(V.y);for(var Q=0,G=k(m,V.x1,V.x2,V.x);Q<G.length;Q++)0<(Ct=G[Q])&&1>Ct&&F(J(m,V.x1,V.x2,V.x,Ct));for(var U=0,nt=k(I,V.y1,V.y2,V.y);U<nt.length;U++)0<(Ct=nt[U])&&1>Ct&&B(J(I,V.y1,V.y2,V.y,Ct))}if(V.type&M.ARC){F(V.x),B(V.y),gt(V,m,I);for(var ut=V.xRot/180*Math.PI,W=Math.cos(ut)*V.rX,ft=Math.sin(ut)*V.rX,pt=-Math.sin(ut)*V.rY,Et=Math.cos(ut)*V.rY,Ot=V.phi1<V.phi2?[V.phi1,V.phi2]:-180>V.phi2?[V.phi2+360,V.phi1+360]:[V.phi2,V.phi1],Pt=Ot[0],Ft=Ot[1],Bt=function(yt){var kt=180*Math.atan2(yt[1],yt[0])/Math.PI;return kt<Pt?kt+360:kt},Mt=0,Vt=mt(pt,-W,0).map(Bt);Mt<Vt.length;Mt++)(Ct=Vt[Mt])>Pt&&Ct<Ft&&F(it(V.cX,W,pt,Ct));for(var wt=0,zt=mt(Et,-ft,0).map(Bt);wt<zt.length;wt++){var Ct;(Ct=zt[wt])>Pt&&Ct<Ft&&B(it(V.cY,ft,Et,Ct))}}return E});return x.minX=1/0,x.maxX=-1/0,x.minY=1/0,x.maxY=-1/0,x}}(et||(et={}));var q,_=function(){function u(){}return u.prototype.round=function(t){return this.transform(et.ROUND(t))},u.prototype.toAbs=function(){return this.transform(et.TO_ABS())},u.prototype.toRel=function(){return this.transform(et.TO_REL())},u.prototype.normalizeHVZ=function(t,e,r){return this.transform(et.NORMALIZE_HVZ(t,e,r))},u.prototype.normalizeST=function(){return this.transform(et.NORMALIZE_ST())},u.prototype.qtToC=function(){return this.transform(et.QT_TO_C())},u.prototype.aToC=function(){return this.transform(et.A_TO_C())},u.prototype.sanitize=function(t){return this.transform(et.SANITIZE(t))},u.prototype.translate=function(t,e){return this.transform(et.TRANSLATE(t,e))},u.prototype.scale=function(t,e){return this.transform(et.SCALE(t,e))},u.prototype.rotate=function(t,e,r){return this.transform(et.ROTATE(t,e,r))},u.prototype.matrix=function(t,e,r,n,i,o){return this.transform(et.MATRIX(t,e,r,n,i,o))},u.prototype.skewX=function(t){return this.transform(et.SKEW_X(t))},u.prototype.skewY=function(t){return this.transform(et.SKEW_Y(t))},u.prototype.xSymmetry=function(t){return this.transform(et.X_AXIS_SYMMETRY(t))},u.prototype.ySymmetry=function(t){return this.transform(et.Y_AXIS_SYMMETRY(t))},u.prototype.annotateArcs=function(){return this.transform(et.ANNOTATE_ARCS())},u}(),xt=function(u){return" "===u||"\t"===u||"\r"===u||"\n"===u},bt=function(u){return"0".charCodeAt(0)<=u.charCodeAt(0)&&u.charCodeAt(0)<="9".charCodeAt(0)},Nt=function(u){function t(){var e=u.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return K(t,u),t.prototype.finish=function(e){if(void 0===e&&(e=[]),this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,r){var n=this;void 0===r&&(r=[]);for(var i=function(x){r.push(x),n.curArgs.length=0,n.canParseCommandOrComma=!0},o=0;o<e.length;o++){var s=e[o],l=!(this.curCommandType!==M.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),h=bt(s)&&("0"===this.curNumber&&"0"===s||l);if(!bt(s)||h)if("e"!==s&&"E"!==s)if("-"!==s&&"+"!==s||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==s||this.curNumberHasExp||this.curNumberHasDecimal||l){if(this.curNumber&&-1!==this.curCommandType){var g=Number(this.curNumber);if(isNaN(g))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===M.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>g)throw new SyntaxError('Expected positive number, got "'+g+'" at index "'+o+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"');this.curArgs.push(g),this.curArgs.length===dt[this.curCommandType]&&(M.HORIZ_LINE_TO===this.curCommandType?i({type:M.HORIZ_LINE_TO,relative:this.curCommandRelative,x:g}):M.VERT_LINE_TO===this.curCommandType?i({type:M.VERT_LINE_TO,relative:this.curCommandRelative,y:g}):this.curCommandType===M.MOVE_TO||this.curCommandType===M.LINE_TO||this.curCommandType===M.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),M.MOVE_TO===this.curCommandType&&(this.curCommandType=M.LINE_TO)):this.curCommandType===M.CURVE_TO?i({type:M.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===M.SMOOTH_CURVE_TO?i({type:M.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===M.QUAD_TO?i({type:M.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===M.ARC&&i({type:M.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!xt(s))if(","===s&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==s&&"-"!==s&&"."!==s)if(h)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==s&&"Z"!==s)if("h"===s||"H"===s)this.curCommandType=M.HORIZ_LINE_TO,this.curCommandRelative="h"===s;else if("v"===s||"V"===s)this.curCommandType=M.VERT_LINE_TO,this.curCommandRelative="v"===s;else if("m"===s||"M"===s)this.curCommandType=M.MOVE_TO,this.curCommandRelative="m"===s;else if("l"===s||"L"===s)this.curCommandType=M.LINE_TO,this.curCommandRelative="l"===s;else if("c"===s||"C"===s)this.curCommandType=M.CURVE_TO,this.curCommandRelative="c"===s;else if("s"===s||"S"===s)this.curCommandType=M.SMOOTH_CURVE_TO,this.curCommandRelative="s"===s;else if("q"===s||"Q"===s)this.curCommandType=M.QUAD_TO,this.curCommandRelative="q"===s;else if("t"===s||"T"===s)this.curCommandType=M.SMOOTH_QUAD_TO,this.curCommandRelative="t"===s;else{if("a"!==s&&"A"!==s)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=M.ARC,this.curCommandRelative="a"===s}else r.push({type:M.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal="."===s}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return r},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(r,n){void 0===n&&(n=[]);for(var i=0,o=Object.getPrototypeOf(this).parse.call(this,r);i<o.length;i++){var l=e(o[i]);Array.isArray(l)?n.push.apply(n,l):n.push(l)}return n}}})},t}(_),M=function(u){function t(e){var r=u.call(this)||this;return r.commands="string"==typeof e?t.parse(e):e,r}return K(t,u),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=et.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var r=[],n=0,i=this.commands;n<i.length;n++){var o=e(i[n]);Array.isArray(o)?r.push.apply(r,o):r.push(o)}return this.commands=r,this},t.encode=function(e){return function Z(u){var t="";Array.isArray(u)||(u=[u]);for(var e=0;e<u.length;e++){var r=u[e];if(r.type===M.CLOSE_PATH)t+="z";else if(r.type===M.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===M.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===M.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===M.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===M.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===M.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===M.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===M.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==M.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+e+".");t+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return t}(e)},t.parse=function(e){var r=new Nt,n=[];return r.parse(e,n),r.finish(n),n},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(_),dt=((q={})[M.MOVE_TO]=2,q[M.LINE_TO]=2,q[M.HORIZ_LINE_TO]=1,q[M.VERT_LINE_TO]=1,q[M.CLOSE_PATH]=0,q[M.QUAD_TO]=4,q[M.SMOOTH_QUAD_TO]=2,q[M.CURVE_TO]=6,q[M.SMOOTH_CURVE_TO]=4,q[M.ARC]=7,q);function ct(u){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(u)}a(9714);var qt=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Ht=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function re(u,t,e,r,n,i){if(!(isNaN(i)||i<1)){i|=0;var o=function ve(u,t,e,r,n){if("string"==typeof u&&(u=document.getElementById(u)),!u||"object"!==ct(u)||!("getContext"in u))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=u.getContext("2d");try{return i.getImageData(t,e,r,n)}catch(o){throw new Error("unable to access image data: "+o)}}(u,t,e,r,n);o=function ce(u,t,e,r,n,i){for(var I,o=u.data,s=2*i+1,l=r-1,h=n-1,g=i+1,x=g*(g+1)/2,E=new ie,m=E,V=1;V<s;V++)m=m.next=new ie,V===g&&(I=m);m.next=E;for(var F=null,B=null,Q=0,G=0,U=qt[i],nt=Ht[i],ut=0;ut<n;ut++){m=E;for(var W=o[G],ft=o[G+1],pt=o[G+2],Et=o[G+3],Ot=0;Ot<g;Ot++)m.r=W,m.g=ft,m.b=pt,m.a=Et,m=m.next;for(var Pt=0,Ft=0,Bt=0,Mt=0,Vt=g*W,wt=g*ft,zt=g*pt,Ct=g*Et,yt=x*W,Ut=x*ft,Yt=x*pt,kt=x*Et,Xt=1;Xt<g;Xt++){var Kt=G+((l<Xt?l:Xt)<<2),ee=o[Kt],oe=o[Kt+1],Fe=o[Kt+2],Be=o[Kt+3],xe=g-Xt;yt+=(m.r=ee)*xe,Ut+=(m.g=oe)*xe,Yt+=(m.b=Fe)*xe,kt+=(m.a=Be)*xe,Pt+=ee,Ft+=oe,Bt+=Fe,Mt+=Be,m=m.next}F=E,B=I;for(var Ee=0;Ee<r;Ee++){var Te=kt*U>>nt;if(o[G+3]=Te,0!==Te){var be=255/Te;o[G]=(yt*U>>nt)*be,o[G+1]=(Ut*U>>nt)*be,o[G+2]=(Yt*U>>nt)*be}else o[G]=o[G+1]=o[G+2]=0;yt-=Vt,Ut-=wt,Yt-=zt,kt-=Ct,Vt-=F.r,wt-=F.g,zt-=F.b,Ct-=F.a;var le=Ee+i+1;yt+=Pt+=F.r=o[le=Q+(le<l?le:l)<<2],Ut+=Ft+=F.g=o[le+1],Yt+=Bt+=F.b=o[le+2],kt+=Mt+=F.a=o[le+3],F=F.next;var Ue=B.r,je=B.g,Ne=B.b,$e=B.a;Vt+=Ue,wt+=je,zt+=Ne,Ct+=$e,Pt-=Ue,Ft-=je,Bt-=Ne,Mt-=$e,B=B.next,G+=4}Q+=r}for(var ue=0;ue<r;ue++){var Me=o[G=ue<<2],Ie=o[G+1],we=o[G+2],Zt=o[G+3],Or=g*Me,Cr=g*Ie,Ar=g*we,Pr=g*Zt,or=x*Me,lr=x*Ie,ur=x*we,hr=x*Zt;m=E;for(var Cn=0;Cn<g;Cn++)m.r=Me,m.g=Ie,m.b=we,m.a=Zt,m=m.next;for(var An=r,Rr=0,Nr=0,Mr=0,Ir=0,fr=1;fr<=i;fr++){var vr=g-fr;or+=(m.r=Me=o[G=An+ue<<2])*vr,lr+=(m.g=Ie=o[G+1])*vr,ur+=(m.b=we=o[G+2])*vr,hr+=(m.a=Zt=o[G+3])*vr,Ir+=Me,Rr+=Ie,Nr+=we,Mr+=Zt,m=m.next,fr<h&&(An+=r)}G=ue,F=E,B=I;for(var wr=0;wr<n;wr++){var Jt=G<<2;o[Jt+3]=Zt=hr*U>>nt,Zt>0?(o[Jt]=(or*U>>nt)*(Zt=255/Zt),o[Jt+1]=(lr*U>>nt)*Zt,o[Jt+2]=(ur*U>>nt)*Zt):o[Jt]=o[Jt+1]=o[Jt+2]=0,or-=Or,lr-=Cr,ur-=Ar,hr-=Pr,Or-=F.r,Cr-=F.g,Ar-=F.b,Pr-=F.a,Jt=ue+((Jt=wr+g)<h?Jt:h)*r<<2,or+=Ir+=F.r=o[Jt],lr+=Rr+=F.g=o[Jt+1],ur+=Nr+=F.b=o[Jt+2],hr+=Mr+=F.a=o[Jt+3],F=F.next,Or+=Me=B.r,Cr+=Ie=B.g,Ar+=we=B.b,Pr+=Zt=B.a,Ir-=Me,Rr-=Ie,Nr-=we,Mr-=Zt,B=B.next,G+=r}}return u}(o,0,0,r,n,i),u.getContext("2d").putImageData(o,t,e)}}var ie=function u(){(function jt(u,t){if(!(u instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null},We=Object.freeze({__proto__:null,offscreen:function Ve(){var{DOMParser:u}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:u,createCanvas:(e,r)=>new OffscreenCanvas(e,r),createImage:e=>c(function*(){var r=yield fetch(e),n=yield r.blob();return yield createImageBitmap(n)})()};return("undefined"!=typeof DOMParser||void 0===u)&&Reflect.deleteProperty(t,"DOMParser"),t},node:function ze(u){var{DOMParser:t,canvas:e,fetch:r}=u;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:e.createCanvas,createImage:e.loadImage}}});function ne(u){return u.replace(/(?!\u3000)\s+/gm," ")}function Ce(u){return u.replace(/^[\n \t]+/,"")}function Ge(u){return u.replace(/[\n \t]+$/,"")}function Gt(u){return((u||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var Qe=/^[A-Z-]+$/;function de(u){return Qe.test(u)?u.toLowerCase():u}function He(u){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(u)||[];return t[2]||t[3]||t[4]}function Ye(u){if(!u.startsWith("rgb"))return u;var t=3;return u.replace(/\d+(\.\d+)?/g,(r,n)=>t--&&n?String(Math.round(parseFloat(r))):r)}var ke=/(\[[^\]]+\])/g,Ke=/(#[^\s+>~.[:]+)/g,Ze=/(\.[^\s+>~.[:]+)/g,cr=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,Je=/(:[\w-]+\([^)]*\))/gi,gr=/(:[^\s+>~.[:]+)/g,pe=/([^\s+>~.[:]+)/g;function $t(u,t){var e=t.exec(u);return e?[u.replace(t," "),e.length]:[u,0]}function Le(u){var t=[0,0,0],e=u.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[e,r]=$t(e,ke),t[1]+=r,[e,r]=$t(e,Ke),t[0]+=r,[e,r]=$t(e,Ze),t[1]+=r,[e,r]=$t(e,cr),t[2]+=r,[e,r]=$t(e,Je),t[1]+=r,[e,r]=$t(e,gr),t[1]+=r,e=e.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[e,r]=$t(e,pe),t[2]+=r,t.join("")}var z=1e-8;function tt(u){return Math.sqrt(Math.pow(u[0],2)+Math.pow(u[1],2))}function st(u,t){return(u[0]*t[0]+u[1]*t[1])/(tt(u)*tt(t))}function ot(u,t){return(u[0]*t[1]<u[1]*t[0]?-1:1)*Math.acos(st(u,t))}function vt(u){return u*u*u}function Lt(u){return 3*u*u*(1-u)}function _t(u){return 3*u*(1-u)*(1-u)}function Wt(u){return(1-u)*(1-u)*(1-u)}function Qt(u){return u*u}function ye(u){return 2*u*(1-u)}function se(u){return(1-u)*(1-u)}let rt=(()=>{class u{constructor(e,r,n){this.document=e,this.name=r,this.value=n,this.isNormalizedColor=!1}static empty(e){return new u(e,"EMPTY","")}split(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:r,name:n}=this;return ne(this.getString()).trim().split(e).map(i=>new u(r,n,i))}hasValue(e){var{value:r}=this;return null!==r&&""!==r&&(e||0!==r)&&void 0!==r}isString(e){var{value:r}=this,n="string"==typeof r;return n&&e?e.test(r):n}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return void 0===e||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return void 0===e?0:parseFloat(e);var{value:r}=this,n=parseFloat(r);return this.isString(/%$/)&&(n/=100),n}getString(e){return void 0===e||this.hasValue()?void 0===this.value?"":String(this.value):String(e)}getColor(e){var r=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,r=Ye(r),this.value=r),r}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[n,i]="boolean"==typeof e?[void 0,e]:[e],{viewPort:o}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(o.computeSize("x"),o.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(o.computeSize("x"),o.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*o.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*o.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&i:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*o.computeSize(n);default:var s=this.getNumber();return r&&s<1?s*o.computeSize(n):s}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),r=/#([^)'"]+)/.exec(e);return r&&(r=r[1]),r||(r=e),this.document.definitions[r]}getFillStyleDefinition(e,r){var n=this.getDefinition();if(!n)return null;if("function"==typeof n.createGradient)return n.createGradient(this.document.ctx,e,r);if("function"==typeof n.createPattern){if(n.getHrefAttribute().hasValue()){var i=n.getAttribute("patternTransform");n=n.getHrefAttribute().getDefinition(),i.hasValue()&&n.getAttribute("patternTransform",!0).setValue(i.value)}return n.createPattern(this.document.ctx,e,r)}return null}getTextBaseline(){return this.hasValue()?u.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var r=this.getColor(),n=r.length,i=0,o=0;o<n&&(","===r[o]&&i++,3!==i);o++);if(e.hasValue()&&this.isString()&&3!==i){var s=new L(r);s.ok&&(s.alpha=e.getNumber(),r=s.toRGBA())}return new u(this.document,this.name,r)}}return u.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"},u})();class qe{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(t,e){this.viewPorts.push({width:t,height:e})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:t}=this;return t[t.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(t){return"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Rt{constructor(t,e){this.x=t,this.y=e}static parse(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[r=e,n=e]=Gt(t);return new Rt(r,n)}static parseScale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[r=e,n=r]=Gt(t);return new Rt(r,n)}static parsePath(t){for(var e=Gt(t),r=e.length,n=[],i=0;i<r;i+=2)n.push(new Rt(e[i],e[i+1]));return n}angleTo(t){return Math.atan2(t.y-this.y,t.x-this.x)}applyTransform(t){var{x:e,y:r}=this,i=e*t[1]+r*t[3]+t[5];this.x=e*t[0]+r*t[2]+t[4],this.y=i}}class _e{constructor(t){this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:t,onClick:e,onMouseMove:r}=this,n=t.ctx.canvas;n.onclick=e,n.onmousemove=r,this.working=!0}}stop(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:t,events:e,eventElements:r}=this,{style:n}=t.ctx.canvas;n&&(n.cursor=""),e.forEach((i,o)=>{for(var{run:s}=i,l=r[o];l;)s(l),l=l.parent}),this.events=[],this.eventElements=[]}}checkPath(t,e){if(this.working&&e){var{events:r,eventElements:n}=this;r.forEach((i,o)=>{var{x:s,y:l}=i;!n[o]&&e.isPointInPath&&e.isPointInPath(s,l)&&(n[o]=t)})}}checkBoundingBox(t,e){if(this.working&&e){var{events:r,eventElements:n}=this;r.forEach((i,o)=>{var{x:s,y:l}=i;!n[o]&&e.isPointInBox(s,l)&&(n[o]=t)})}}mapXY(t,e){for(var{window:r,ctx:n}=this.screen,i=new Rt(t,e),o=n.canvas;o;)i.x-=o.offsetLeft,i.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(i.x+=r.scrollX),r.scrollY&&(i.y+=r.scrollY),i}onClick(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:r,run(n){n.onClick&&n.onClick()}})}onMouseMove(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:r,run(n){n.onMouseMove&&n.onMouseMove()}})}}var Vr="undefined"!=typeof window?window:null,Lr="undefined"!=typeof fetch?fetch.bind(void 0):null;let dr=(()=>{class u{constructor(e){var{fetch:r=Lr,window:n=Vr}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new qe,this.mouse=new _e(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=r}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(r=>r());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:r,ctx:n,aspectRatio:i,width:o,desiredWidth:s,height:l,desiredHeight:h,minX:g=0,minY:x=0,refX:E,refY:m,clip:I=!1,clipX:V=0,clipY:F=0}=e,B=ne(i).replace(/^defer\s/,""),[Q,G]=B.split(" "),U=Q||"xMidYMid",nt=G||"meet",ut=o/s,W=l/h,ft=Math.min(ut,W),pt=Math.max(ut,W),Et=s,Ot=h;"meet"===nt&&(Et*=ft,Ot*=ft),"slice"===nt&&(Et*=pt,Ot*=pt);var Pt=new rt(r,"refX",E),Ft=new rt(r,"refY",m),Bt=Pt.hasValue()&&Ft.hasValue();if(Bt&&n.translate(-ft*Pt.getPixels("x"),-ft*Ft.getPixels("y")),I){var Mt=ft*V,Vt=ft*F;n.beginPath(),n.moveTo(Mt,Vt),n.lineTo(o,Vt),n.lineTo(o,l),n.lineTo(Mt,l),n.closePath(),n.clip()}if(!Bt){var wt="meet"===nt&&ft===W,zt="slice"===nt&&pt===W,Ct="meet"===nt&&ft===ut,yt="slice"===nt&&pt===ut;U.startsWith("xMid")&&(wt||zt)&&n.translate(o/2-Et/2,0),U.endsWith("YMid")&&(Ct||yt)&&n.translate(0,l/2-Ot/2),U.startsWith("xMax")&&(wt||zt)&&n.translate(o-Et,0),U.endsWith("YMax")&&(Ct||yt)&&n.translate(0,l-Ot)}switch(!0){case"none"===U:n.scale(ut,W);break;case"meet"===nt:n.scale(ft,ft);break;case"slice"===nt:n.scale(pt,pt)}n.translate(-g,-x)}start(e){var{enableRedraw:r=!1,ignoreMouse:n=!1,ignoreAnimation:i=!1,ignoreDimensions:o=!1,ignoreClear:s=!1,forceRedraw:l,scaleWidth:h,scaleHeight:g,offsetX:x,offsetY:E}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:m,mouse:I}=this,V=1e3/m;if(this.frameDuration=V,this.readyPromise=new Promise(U=>{this.resolveReady=U}),this.isReady()&&this.render(e,o,s,h,g,x,E),r){var F=Date.now(),B=F,Q=0,G=()=>{F=Date.now(),(Q=F-B)>=V&&(B=F-Q%V,this.shouldUpdate(i,l)&&(this.render(e,o,s,h,g,x,E),I.runEvents())),this.intervalId=N(G)};n||I.start(),this.intervalId=N(G)}}stop(){this.intervalId&&(N.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,r){if(!e){var{frameDuration:n}=this;if(this.animations.reduce((o,s)=>s.update(n)||o,!1))return!0}return!!("function"==typeof r&&r()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,r,n,i,o,s,l){var{CLIENT_WIDTH:h,CLIENT_HEIGHT:g,viewPort:x,ctx:E,isFirstRender:m}=this,I=E.canvas;x.clear(),I.width&&I.height?x.setCurrent(I.width,I.height):x.setCurrent(h,g);var V=e.getStyle("width"),F=e.getStyle("height");!r&&(m||"number"!=typeof i&&"number"!=typeof o)&&(V.hasValue()&&(I.width=V.getPixels("x"),I.style&&(I.style.width="".concat(I.width,"px"))),F.hasValue()&&(I.height=F.getPixels("y"),I.style&&(I.style.height="".concat(I.height,"px"))));var B=I.clientWidth||I.width,Q=I.clientHeight||I.height;if(r&&V.hasValue()&&F.hasValue()&&(B=V.getPixels("x"),Q=F.getPixels("y")),x.setCurrent(B,Q),"number"==typeof s&&e.getAttribute("x",!0).setValue(s),"number"==typeof l&&e.getAttribute("y",!0).setValue(l),"number"==typeof i||"number"==typeof o){var G=Gt(e.getAttribute("viewBox").getString()),U=0,nt=0;if("number"==typeof i){var ut=e.getStyle("width");ut.hasValue()?U=ut.getPixels("x")/i:isNaN(G[2])||(U=G[2]/i)}if("number"==typeof o){var W=e.getStyle("height");W.hasValue()?nt=W.getPixels("y")/o:isNaN(G[3])||(nt=G[3]/o)}U||(U=nt),nt||(nt=U),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(o);var ft=e.getStyle("transform",!0,!0);ft.setValue("".concat(ft.getString()," scale(").concat(1/U,", ").concat(1/nt,")"))}n||E.clearRect(0,0,B,Q),e.render(E),m&&(this.isFirstRender=!1)}}return u.defaultWindow=Vr,u.defaultFetch=Lr,u})();var{defaultFetch:Pn}=dr,Rn="undefined"!=typeof DOMParser?DOMParser:null;class tr{constructor(){var{fetch:t=Pn,DOMParser:e=Rn}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return c(function*(){return t.startsWith("<")?e.parseFromString(t):e.load(t)})()}parseFromString(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch(r){return this.checkDocument(e.parseFromString(t,"text/xml"))}}checkDocument(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}load(t){var e=this;return c(function*(){var r=yield e.fetch(t),n=yield r.text();return e.parseFromString(n)})()}}class Dr{constructor(t,e){this.type="translate",this.point=null,this.point=Rt.parse(e)}apply(t){var{x:e,y:r}=this.point;t.translate(e||0,r||0)}unapply(t){var{x:e,y:r}=this.point;t.translate(-1*e||0,-1*r||0)}applyToPoint(t){var{x:e,y:r}=this.point;t.applyTransform([1,0,0,1,e||0,r||0])}}class Fr{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var n=Gt(e);this.angle=new rt(t,"angle",n[0]),this.originX=r[0],this.originY=r[1],this.cx=n[1]||0,this.cy=n[2]||0}apply(t){var{cx:e,cy:r,originX:n,originY:i,angle:o}=this,s=e+n.getPixels("x"),l=r+i.getPixels("y");t.translate(s,l),t.rotate(o.getRadians()),t.translate(-s,-l)}unapply(t){var{cx:e,cy:r,originX:n,originY:i,angle:o}=this,s=e+n.getPixels("x"),l=r+i.getPixels("y");t.translate(s,l),t.rotate(-1*o.getRadians()),t.translate(-s,-l)}applyToPoint(t){var{cx:e,cy:r,angle:n}=this,i=n.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}class Br{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var n=Rt.parseScale(e);(0===n.x||0===n.y)&&(n.x=z,n.y=z),this.scale=n,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:n,originY:i}=this,o=n.getPixels("x"),s=i.getPixels("y");t.translate(o,s),t.scale(e,r||e),t.translate(-o,-s)}unapply(t){var{scale:{x:e,y:r},originX:n,originY:i}=this,o=n.getPixels("x"),s=i.getPixels("y");t.translate(o,s),t.scale(1/e,1/r||e),t.translate(-o,-s)}applyToPoint(t){var{x:e,y:r}=this.scale;t.applyTransform([e||0,0,0,r||0,0,0])}}class pr{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Gt(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:n}=this,i=e.getPixels("x"),o=r.getPixels("y");t.translate(i,o),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),t.translate(-i,-o)}unapply(t){var{originX:e,originY:r,matrix:n}=this,i=n[0],o=n[2],s=n[4],l=n[1],h=n[3],g=n[5],I=1/(i*(1*h-0*g)-o*(1*l-0*g)+s*(0*l-0*h)),V=e.getPixels("x"),F=r.getPixels("y");t.translate(V,F),t.transform(I*(1*h-0*g),I*(0*g-1*l),I*(0*s-1*o),I*(1*i-0*s),I*(o*g-s*h),I*(s*l-i*g)),t.translate(-V,-F)}applyToPoint(t){t.applyTransform(this.matrix)}}class yr extends pr{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new rt(t,"angle",e)}}class Ur extends yr{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class jr extends yr{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}let er=(()=>{class u{constructor(e,r,n){this.document=e,this.transforms=[];var i=function Nn(u){return ne(u).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(r);i.forEach(o=>{if("none"!==o){var[s,l]=function Mn(u){var[t,e]=u.split("(");return[t.trim(),e.trim().replace(")","")]}(o),h=u.transformTypes[s];void 0!==h&&this.transforms.push(new h(this.document,l,n))}})}static fromElement(e,r){var n=r.getStyle("transform",!1,!0),[i,o=i]=r.getStyle("transform-origin",!1,!0).split(),s=[i,o];return n.hasValue()?new u(e,n.getString(),s):null}apply(e){for(var{transforms:r}=this,n=r.length,i=0;i<n;i++)r[i].apply(e)}unapply(e){for(var{transforms:r}=this,i=r.length-1;i>=0;i--)r[i].unapply(e)}applyToPoint(e){for(var{transforms:r}=this,n=r.length,i=0;i<n;i++)r[i].applyToPoint(e)}}return u.transformTypes={translate:Dr,rotate:Fr,scale:Br,matrix:pr,skewX:Ur,skewY:jr},u})(),It=(()=>{class u{constructor(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=e,this.node=r,this.captureTextNodes=n,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){Array.from(r.attributes).forEach(l=>{var h=de(l.nodeName);this.attributes[h]=new rt(e,h,l.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map(l=>l.trim()).forEach(l=>{if(l){var[h,g]=l.split(":").map(x=>x.trim());this.styles[h]=new rt(e,h,g)}});var{definitions:o}=e,s=this.getAttribute("id");s.hasValue()&&(o[s.getString()]||(o[s.getString()]=this)),Array.from(r.childNodes).forEach(l=>{if(1===l.nodeType)this.addChild(l);else if(n&&(3===l.nodeType||4===l.nodeType)){var h=e.createTextNode(l);h.getText().length>0&&this.addChild(h)}})}}getAttribute(e){var n=this.attributes[e];if(!n&&arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var i=new rt(this.document,e,"");return this.attributes[e]=i,i}return n||rt.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if("href"===e||e.endsWith(":href"))return this.attributes[e];return rt.empty(this.document)}getStyle(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.styles[e];if(i)return i;var o=this.getAttribute(e);if(null!=o&&o.hasValue())return this.styles[e]=o,o;if(!n){var{parent:s}=this;if(s){var l=s.getStyle(e);if(null!=l&&l.hasValue())return l}}if(r){var h=new rt(this.document,e,"");return this.styles[e]=h,h}return i||rt.empty(this.document)}render(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var r=this.getStyle("mask").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var n=this.getStyle("filter").getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var r=er.fromElement(this.document,this);r&&r.apply(e);var n=this.getStyle("clip-path",!1,!0);if(n.hasValue()){var i=n.getDefinition();i&&i.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(r=>{r.render(e)})}addChild(e){var r=e instanceof u?e:this.document.createElement(e);r.parent=this,u.ignoreChildTypes.includes(r.type)||this.children.push(r)}matchesSelector(e){var r,{node:n}=this;if("function"==typeof n.matches)return n.matches(e);var i=null===(r=n.getAttribute)||void 0===r?void 0:r.call(n,"class");return!(!i||""===i)&&i.split(" ").some(o=>".".concat(o)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:r}=this.document;for(var n in e)if(!n.startsWith("@")&&this.matchesSelector(n)){var i=e[n],o=r[n];if(i)for(var s in i){var l=this.stylesSpecificity[s];void 0===l&&(l="000"),o>=l&&(this.styles[s]=i[s],this.stylesSpecificity[s]=o)}}}removeStyles(e,r){return r.reduce((i,o)=>{var s=e.getStyle(o);if(!s.hasValue())return i;var l=s.getString();return s.setValue(""),[...i,[o,l]]},[])}restoreStyles(e,r){r.forEach(n=>{var[i,o]=n;e.getStyle(i,!0).setValue(o)})}isFirstChild(){var e;return 0===(null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this))}}return u.ignoreChildTypes=["title"],u})();class zr extends It{constructor(t,e,r){super(t,e,r)}}function In(u){var t=u.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function wn(u){return"undefined"==typeof process?u:u.trim().split(",").map(In).join(",")}function Vn(u){if(!u)return"";var t=u.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function Ln(u){if(!u)return"";var t=u.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}let Ae=(()=>{class u{constructor(e,r,n,i,o,s){var l=s?"string"==typeof s?u.parse(s):s:{};this.fontFamily=o||l.fontFamily,this.fontSize=i||l.fontSize,this.fontStyle=e||l.fontStyle,this.fontWeight=n||l.fontWeight,this.fontVariant=r||l.fontVariant}static parse(){var r=arguments.length>1?arguments[1]:void 0,n="",i="",o="",s="",l="",h=ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),g={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return h.forEach(x=>{switch(!0){case!g.fontStyle&&u.styles.includes(x):"inherit"!==x&&(n=x),g.fontStyle=!0;break;case!g.fontVariant&&u.variants.includes(x):"inherit"!==x&&(i=x),g.fontStyle=!0,g.fontVariant=!0;break;case!g.fontWeight&&u.weights.includes(x):"inherit"!==x&&(o=x),g.fontStyle=!0,g.fontVariant=!0,g.fontWeight=!0;break;case!g.fontSize:"inherit"!==x&&([s]=x.split("/")),g.fontStyle=!0,g.fontVariant=!0,g.fontWeight=!0,g.fontSize=!0;break;default:"inherit"!==x&&(l+=x)}}),new u(n,i,o,s,l,r)}toString(){return[Vn(this.fontStyle),this.fontVariant,Ln(this.fontWeight),this.fontSize,wn(this.fontFamily)].join(" ").trim()}}return u.styles="normal|italic|oblique|inherit",u.variants="normal|small-caps|inherit",u.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",u})();class te{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=n,this.addPoint(t,e),this.addPoint(r,n)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,e){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),void 0!==e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:e,y1:r,x2:n,y2:i}=t;this.addPoint(e,r),this.addPoint(n,i)}}sumCubic(t,e,r,n,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*n+Math.pow(t,3)*i}bezierCurveAdd(t,e,r,n,i){var o=6*e-12*r+6*n,s=-3*e+9*r-9*n+3*i,l=3*r-3*e;if(0!==s){var g=Math.pow(o,2)-4*l*s;if(!(g<0)){var x=(-o+Math.sqrt(g))/(2*s);0<x&&x<1&&(t?this.addX(this.sumCubic(x,e,r,n,i)):this.addY(this.sumCubic(x,e,r,n,i)));var E=(-o-Math.sqrt(g))/(2*s);0<E&&E<1&&(t?this.addX(this.sumCubic(E,e,r,n,i)):this.addY(this.sumCubic(E,e,r,n,i)))}}else{if(0===o)return;var h=-l/o;0<h&&h<1&&(t?this.addX(this.sumCubic(h,e,r,n,i)):this.addY(this.sumCubic(h,e,r,n,i)))}}addBezierCurve(t,e,r,n,i,o,s,l){this.addPoint(t,e),this.addPoint(s,l),this.bezierCurveAdd(!0,t,r,i,s),this.bezierCurveAdd(!1,e,n,o,l)}addQuadraticCurve(t,e,r,n,i,o){var s=t+.6666666666666666*(r-t),l=e+2/3*(n-e);this.addBezierCurve(t,e,s,s+1/3*(i-t),l,l+1/3*(o-e),i,o)}isPointInBox(t,e){var{x1:r,y1:n,x2:i,y2:o}=this;return r<=t&&t<=i&&n<=e&&e<=o}}class lt extends M{constructor(t){super(t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Rt(0,0),this.control=new Rt(0,0),this.current=new Rt(0,0),this.points=[],this.angles=[]}isEnd(){var{i:t,commands:e}=this;return t>=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var r=new Rt(this.command[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x"],this.command[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y"]);return this.makeAbsolute(r)}getAsControlPoint(t,e){var r=this.getPoint(t,e);return this.control=r,r}getAsCurrentPoint(t,e){var r=this.getPoint(t,e);return this.current=r,r}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==M.CURVE_TO&&t!==M.SMOOTH_CURVE_TO&&t!==M.QUAD_TO&&t!==M.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:n,y:i}}=this;return new Rt(2*e-n,2*r-i)}makeAbsolute(t){if(this.command.relative){var{x:e,y:r}=this.current;t.x+=e,t.y+=r}return t}addMarker(t,e,r){var{points:n,angles:i}=this;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}addMarkerAngle(t,e){this.points.push(t),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,e=t.length,r=0;r<e;r++)if(!t[r])for(var n=r+1;n<e;n++)if(t[n]){t[r]=t[n];break}return t}}class me extends It{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,n);s&&(t.fillStyle=s)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var l=r.getColor();"inherit"!==l&&(t.fillStyle="none"===l?"rgba(0,0,0,0)":l)}if(n.hasValue()){var h=new rt(this.document,"fill",t.fillStyle).addOpacity(n).getColor();t.fillStyle=h}if(i.isUrlDefinition()){var g=i.getFillStyleDefinition(this,o);g&&(t.strokeStyle=g)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var x=i.getString();"inherit"!==x&&(t.strokeStyle="none"===x?"rgba(0,0,0,0)":x)}if(o.hasValue()){var E=new rt(this.document,"stroke",t.strokeStyle).addOpacity(o).getString();t.strokeStyle=E}var m=this.getStyle("stroke-width");if(m.hasValue()){var I=m.getPixels();t.lineWidth=I||z}var V=this.getStyle("stroke-linecap"),F=this.getStyle("stroke-linejoin"),B=this.getStyle("stroke-miterlimit"),Q=this.getStyle("stroke-dasharray"),G=this.getStyle("stroke-dashoffset");if(V.hasValue()&&(t.lineCap=V.getString()),F.hasValue()&&(t.lineJoin=F.getString()),B.hasValue()&&(t.miterLimit=B.getNumber()),Q.hasValue()&&"none"!==Q.getString()){var U=Gt(Q.getString());void 0!==t.setLineDash?t.setLineDash(U):void 0!==t.webkitLineDash?t.webkitLineDash=U:void 0!==t.mozDash&&(1!==U.length||0!==U[0])&&(t.mozDash=U);var nt=G.getPixels();void 0!==t.lineDashOffset?t.lineDashOffset=nt:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=nt:void 0!==t.mozDashOffset&&(t.mozDashOffset=nt)}}if(this.modifiedEmSizeStack=!1,void 0!==t.font){var ut=this.getStyle("font"),W=this.getStyle("font-style"),ft=this.getStyle("font-variant"),pt=this.getStyle("font-weight"),Et=this.getStyle("font-size"),Ot=this.getStyle("font-family"),Pt=new Ae(W.getString(),ft.getString(),pt.getString(),Et.hasValue()?"".concat(Et.getPixels(!0),"px"):"",Ot.getString(),Ae.parse(ut.getString(),t.font));W.setValue(Pt.fontStyle),ft.setValue(Pt.fontVariant),pt.setValue(Pt.fontWeight),Et.setValue(Pt.fontSize),Ot.setValue(Pt.fontFamily),t.font=Pt.toString(),Et.isPixels()&&(this.document.emSize=Et.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class St extends me{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new lt(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new te;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case lt.MOVE_TO:this.pathM(t,r);break;case lt.LINE_TO:this.pathL(t,r);break;case lt.HORIZ_LINE_TO:this.pathH(t,r);break;case lt.VERT_LINE_TO:this.pathV(t,r);break;case lt.CURVE_TO:this.pathC(t,r);break;case lt.SMOOTH_CURVE_TO:this.pathS(t,r);break;case lt.QUAD_TO:this.pathQ(t,r);break;case lt.SMOOTH_QUAD_TO:this.pathT(t,r);break;case lt.ARC:this.pathA(t,r);break;case lt.CLOSE_PATH:this.pathZ(t,r)}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles();return e.map((i,o)=>[i,r[o]])}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var n=r.length-1,i=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(i.isUrlDefinition()){var l=i.getDefinition(),[h,g]=r[0];l.render(t,h,g)}if(o.isUrlDefinition())for(var x=o.getDefinition(),E=1;E<n;E++){var[m,I]=r[E];x.render(t,m,I)}if(s.isUrlDefinition()){var V=s.getDefinition(),[F,B]=r[n];V.render(t,F,B)}}}static pathM(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}pathM(t,e){var{pathParser:r}=this,{point:n}=St.pathM(r),{x:i,y:o}=n;r.addMarker(n),e.addPoint(i,o),t&&t.moveTo(i,o)}static pathL(t){var{current:e}=t;return{current:e,point:t.getAsCurrentPoint()}}pathL(t,e){var{pathParser:r}=this,{current:n,point:i}=St.pathL(r),{x:o,y:s}=i;r.addMarker(i,n),e.addPoint(o,s),t&&t.lineTo(o,s)}static pathH(t){var{current:e,command:r}=t,n=new Rt((r.relative?e.x:0)+r.x,e.y);return t.current=n,{current:e,point:n}}pathH(t,e){var{pathParser:r}=this,{current:n,point:i}=St.pathH(r),{x:o,y:s}=i;r.addMarker(i,n),e.addPoint(o,s),t&&t.lineTo(o,s)}static pathV(t){var{current:e,command:r}=t,n=new Rt(e.x,(r.relative?e.y:0)+r.y);return t.current=n,{current:e,point:n}}pathV(t,e){var{pathParser:r}=this,{current:n,point:i}=St.pathV(r),{x:o,y:s}=i;r.addMarker(i,n),e.addPoint(o,s),t&&t.lineTo(o,s)}static pathC(t){var{current:e}=t;return{current:e,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathC(t,e){var{pathParser:r}=this,{current:n,point:i,controlPoint:o,currentPoint:s}=St.pathC(r);r.addMarker(s,o,i),e.addBezierCurve(n.x,n.y,i.x,i.y,o.x,o.y,s.x,s.y),t&&t.bezierCurveTo(i.x,i.y,o.x,o.y,s.x,s.y)}static pathS(t){var{current:e}=t;return{current:e,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathS(t,e){var{pathParser:r}=this,{current:n,point:i,controlPoint:o,currentPoint:s}=St.pathS(r);r.addMarker(s,o,i),e.addBezierCurve(n.x,n.y,i.x,i.y,o.x,o.y,s.x,s.y),t&&t.bezierCurveTo(i.x,i.y,o.x,o.y,s.x,s.y)}static pathQ(t){var{current:e}=t;return{current:e,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}pathQ(t,e){var{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:o}=St.pathQ(r);r.addMarker(o,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,o.x,o.y),t&&t.quadraticCurveTo(i.x,i.y,o.x,o.y)}static pathT(t){var{current:e}=t,r=t.getReflectedControlPoint();return t.control=r,{current:e,controlPoint:r,currentPoint:t.getAsCurrentPoint()}}pathT(t,e){var{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:o}=St.pathT(r);r.addMarker(o,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,o.x,o.y),t&&t.quadraticCurveTo(i.x,i.y,o.x,o.y)}static pathA(t){var{current:e,command:r}=t,{rX:n,rY:i,xRot:o,lArcFlag:s,sweepFlag:l}=r,h=o*(Math.PI/180),g=t.getAsCurrentPoint(),x=new Rt(Math.cos(h)*(e.x-g.x)/2+Math.sin(h)*(e.y-g.y)/2,-Math.sin(h)*(e.x-g.x)/2+Math.cos(h)*(e.y-g.y)/2),E=Math.pow(x.x,2)/Math.pow(n,2)+Math.pow(x.y,2)/Math.pow(i,2);E>1&&(n*=Math.sqrt(E),i*=Math.sqrt(E));var m=(s===l?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(x.y,2)-Math.pow(i,2)*Math.pow(x.x,2))/(Math.pow(n,2)*Math.pow(x.y,2)+Math.pow(i,2)*Math.pow(x.x,2)));isNaN(m)&&(m=0);var I=new Rt(m*n*x.y/i,m*-i*x.x/n),V=new Rt((e.x+g.x)/2+Math.cos(h)*I.x-Math.sin(h)*I.y,(e.y+g.y)/2+Math.sin(h)*I.x+Math.cos(h)*I.y),F=ot([1,0],[(x.x-I.x)/n,(x.y-I.y)/i]),B=[(x.x-I.x)/n,(x.y-I.y)/i],Q=[(-x.x-I.x)/n,(-x.y-I.y)/i],G=ot(B,Q);return st(B,Q)<=-1&&(G=Math.PI),st(B,Q)>=1&&(G=0),{currentPoint:g,rX:n,rY:i,sweepFlag:l,xAxisRotation:h,centp:V,a1:F,ad:G}}pathA(t,e){var{pathParser:r}=this,{currentPoint:n,rX:i,rY:o,sweepFlag:s,xAxisRotation:l,centp:h,a1:g,ad:x}=St.pathA(r),E=1-s?1:-1,m=g+E*(x/2),I=new Rt(h.x+i*Math.cos(m),h.y+o*Math.sin(m));if(r.addMarkerAngle(I,m-E*Math.PI/2),r.addMarkerAngle(n,m-E*Math.PI),e.addPoint(n.x,n.y),t&&!isNaN(g)&&!isNaN(x)){var V=i>o?i:o,F=i>o?1:i/o,B=i>o?o/i:1;t.translate(h.x,h.y),t.rotate(l),t.scale(F,B),t.arc(0,0,V,g,g+x,Boolean(1-s)),t.scale(1/F,1/B),t.rotate(-l),t.translate(-h.x,-h.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){St.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class mr extends St{constructor(t,e,r){super(t,e,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class he extends me{constructor(t,e,r){super(t,e,new.target===he||r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){super.setContext(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(t){if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var e=null;return this.children.forEach((r,n)=>{var i=this.getChildBoundingBox(t,this,this,n);e?e.addBoundingBox(i):e=i}),e}getFontSize(){var{document:t,parent:e}=this,r=Ae.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}getTElementBoundingBox(t){var e=this.getFontSize();return new te(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var n=e[r],i=null;if(t.isArabic){var o=e.length,s=e[r-1],l=e[r+1],h="isolated";if((0===r||" "===s)&&r<o-1&&" "!==l&&(h="terminal"),r>0&&" "!==s&&r<o-1&&" "!==l&&(h="medial"),r>0&&" "!==s&&(r===o-1||" "===l)&&(h="initial"),void 0!==t.glyphs[n]){var g=t.glyphs[n];i=g instanceof mr?g:g[h]}}else i=t.glyphs[n];return i||(i=t.missingGlyph),i}getText(){return""}getTextFromNode(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),n=r.indexOf(e),i=r.length-1,o=ne(e.textContent||"");return 0===n&&(o=Ce(o)),n===i&&(o=Ge(o)),o}renderChildren(t){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach((r,n)=>{this.renderChild(t,this,this,n)});var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}renderTElementChildren(t){var{document:e,parent:r}=this,n=this.getText(),i=r.getStyle("font-family").getDefinition();if(i)for(var{unitsPerEm:o}=i.fontFace,s=Ae.parse(e.ctx.font),l=r.getStyle("font-size").getNumber(s.fontSize),h=r.getStyle("font-style").getString(s.fontStyle),g=l/o,x=i.isRTL?n.split("").reverse().join(""):n,E=Gt(r.getAttribute("dx").getString()),m=x.length,I=0;I<m;I++){var V=this.getGlyph(i,x,I);t.translate(this.x,this.y),t.scale(g,-g);var F=t.lineWidth;t.lineWidth=t.lineWidth*o/l,"italic"===h&&t.transform(1,0,.4,1,0,0),V.render(t),"italic"===h&&t.transform(1,0,-.4,1,0,0),t.lineWidth=F,t.scale(1/g,-1/g),t.translate(-this.x,-this.y),this.x+=l*(V.horizAdvX||i.horizAdvX)/o,void 0!==E[I]&&!isNaN(E[I])&&(this.x+=E[I])}else{var{x:B,y:Q}=this;t.fillStyle&&t.fillText(n,B,Q),t.strokeStyle&&t.strokeText(n,B,Q)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var n,t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start");n="start"===e?t.x-this.minX:"end"===e?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=n;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(t){this.children.forEach((e,r)=>{this.adjustChildCoordinatesRecursiveCore(t,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(t,e,r,n){var i=r.children[n];i.children.length>0?i.children.forEach((o,s)=>{e.adjustChildCoordinatesRecursiveCore(t,e,i,s)}):this.adjustChildCoordinates(t,e,r,n)}adjustChildCoordinates(t,e,r,n){var i=r.children[n];if("function"!=typeof i.measureText)return i;t.save(),i.setContext(t,!0);var o=i.getAttribute("x"),s=i.getAttribute("y"),l=i.getAttribute("dx"),h=i.getAttribute("dy"),g=i.getStyle("font-family").getDefinition(),x=Boolean(g)&&g.isRTL;0===n&&(o.hasValue()||o.setValue(i.getInheritedAttribute("x")),s.hasValue()||s.setValue(i.getInheritedAttribute("y")),l.hasValue()||l.setValue(i.getInheritedAttribute("dx")),h.hasValue()||h.setValue(i.getInheritedAttribute("dy")));var E=i.measureText(t);return x&&(e.x-=E),o.hasValue()?(e.applyAnchoring(),i.x=o.getPixels("x"),l.hasValue()&&(i.x+=l.getPixels("x"))):(l.hasValue()&&(e.x+=l.getPixels("x")),i.x=e.x),e.x=i.x,x||(e.x+=E),s.hasValue()?(i.y=s.getPixels("y"),h.hasValue()&&(i.y+=h.getPixels("y"))):(h.hasValue()&&(e.y+=h.getPixels("y")),i.y=e.y),e.y=i.y,e.leafTexts.push(i),e.minX=Math.min(e.minX,i.x,i.x+E),e.maxX=Math.max(e.maxX,i.x,i.x+E),i.clearContext(t),t.restore(),i}getChildBoundingBox(t,e,r,n){var i=r.children[n];if("function"!=typeof i.getBoundingBox)return null;var o=i.getBoundingBox(t);return o?(i.children.forEach((s,l)=>{var h=e.getChildBoundingBox(t,e,i,l);o.addBoundingBox(h)}),o):null}renderChild(t,e,r,n){var i=r.children[n];i.render(t),i.children.forEach((o,s)=>{e.renderChild(t,e,i,s)})}measureText(t){var{measureCache:e}=this;if(~e)return e;var r=this.getText(),n=this.measureTargetText(t,r);return this.measureCache=n,n}measureTargetText(t,e){if(!e.length)return 0;var{parent:r}=this,n=r.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),o=n.isRTL?e.split("").reverse().join(""):e,s=Gt(r.getAttribute("dx").getString()),l=o.length,h=0,g=0;g<l;g++)h+=(this.getGlyph(n,o,g).horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,void 0!==s[g]&&!isNaN(s[g])&&(h+=s[g]);return h}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);var{width:E}=t.measureText(e);return this.clearContext(t),t.restore(),E}getInheritedAttribute(t){for(var e=this;e instanceof he&&e.isFirstChild();){var r=e.parent.getAttribute(t);if(r.hasValue(!0))return r.getValue("0");e=e.parent}return null}}class Xe extends he{constructor(t,e,r){super(t,e,new.target===Xe||r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class Dn extends Xe{constructor(){super(...arguments),this.type="textNode"}}class De extends me{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:r}=this,{screen:n,window:i}=r,o=t.canvas;if(n.setDefaults(t),o.style&&void 0!==t.font&&i&&void 0!==i.getComputedStyle){t.font=i.getComputedStyle(o).getPropertyValue("font");var s=new rt(r,"fontSize",Ae.parse(t.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:l,height:h}=n.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var g=this.getAttribute("refX"),x=this.getAttribute("refY"),E=this.getAttribute("viewBox"),m=E.hasValue()?Gt(E.getString()):null,I=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),V=0,F=0,B=0,Q=0;m&&(V=m[0],F=m[1]),this.root||(l=this.getStyle("width").getPixels("x"),h=this.getStyle("height").getPixels("y"),"marker"===this.type&&(B=V,Q=F,V=0,F=0)),n.viewPort.setCurrent(l,h),this.node&&(!this.parent||"foreignObject"===(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName))&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),m&&(l=m[2],h=m[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:l,height:n.viewPort.height,desiredHeight:h,minX:V,minY:F,refX:g.getValue(),refY:x.getValue(),clip:I,clipX:B,clipY:Q}),m&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(l,h))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),l=n.getNumber(0),h=i.getNumber(0);if(r)if("string"==typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var g=this.getAttribute("preserveAspectRatio");g.hasValue()&&g.setValue(g.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(t),i.setValue(e),o.hasValue()||o.setValue("0 0 ".concat(l||t," ").concat(h||e)),s.hasValue()){var x=this.getStyle("width"),E=this.getStyle("height");x.hasValue()&&x.setValue("".concat(t,"px")),E.hasValue()&&E.setValue("".concat(e,"px"))}}}class xr extends St{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),l=o.getPixels("x"),h=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(h=l),s.hasValue()&&!o.hasValue()&&(l=h),l=Math.min(l,n/2),h=Math.min(h,i/2),t){var g=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&n>0&&(t.moveTo(e+l,r),t.lineTo(e+n-l,r),t.bezierCurveTo(e+n-l+g*l,r,e+n,r+h-g*h,e+n,r+h),t.lineTo(e+n,r+i-h),t.bezierCurveTo(e+n,r+i-h+g*h,e+n-l+g*l,r+i,e+n-l,r+i),t.lineTo(e+l,r+i),t.bezierCurveTo(e+l-g*l,r+i,e,r+i-h+g*h,e,r+i-h),t.lineTo(e,r+h),t.bezierCurveTo(e,r+h-g*h,e+l-g*l,r,e+l,r),t.closePath())}return new te(e,r,e+n,r+i)}getMarkers(){return null}}class Gr extends St{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return t&&n>0&&(t.beginPath(),t.arc(e,r,n,0,2*Math.PI,!1),t.closePath()),new te(e-n,r-n,e+n,r+n)}getMarkers(){return null}}class Hr extends St{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return t&&r>0&&n>0&&(t.beginPath(),t.moveTo(i+r,o),t.bezierCurveTo(i+r,o+e*n,i+e*r,o+n,i,o+n),t.bezierCurveTo(i-e*r,o+n,i-r,o+e*n,i-r,o),t.bezierCurveTo(i-r,o-e*n,i-e*r,o-n,i,o-n),t.bezierCurveTo(i+e*r,o-n,i+r,o-e*n,i+r,o),t.closePath()),new te(i-r,o-n,i+r,o+n)}getMarkers(){return null}}class Yr extends St{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Rt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Rt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:n,y:i}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(n,i)),new te(e,r,n,i)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class Er extends St{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=Rt.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:n}]=e,i=new te(r,n);return t&&(t.beginPath(),t.moveTo(r,n)),e.forEach(o=>{var{x:s,y:l}=o;i.addPoint(s,l),t&&t.lineTo(s,l)}),i}getMarkers(){var{points:t}=this,e=t.length-1,r=[];return t.forEach((n,i)=>{i!==e&&r.push([n,n.angleTo(t[i+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class Xr extends Er{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:n}]=this.points;return t&&(t.lineTo(r,n),t.closePath()),e}}class $r extends It{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new De(this.document,null);o.attributes.viewBox=new rt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new rt(this.document,"width","".concat(n,"px")),o.attributes.height=new rt(this.document,"height","".concat(i,"px")),o.attributes.transform=new rt(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(n,i),l=s.getContext("2d"),h=this.getAttribute("x"),g=this.getAttribute("y");h.hasValue()&&g.hasValue()&&l.translate(h.getPixels("x",!0),g.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var x=-1;x<=1;x++)for(var E=-1;E<=1;E++)l.save(),o.attributes.x=new rt(this.document,"x",x*s.width),o.attributes.y=new rt(this.document,"y",E*s.height),o.render(l),l.restore();return t.createPattern(s,"repeat")}}class Wr extends It{constructor(){super(...arguments),this.type="marker"}render(t,e,r){if(e){var{x:n,y:i}=e,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(n,i),"auto"===o&&t.rotate(r),"strokeWidth"===s&&t.scale(t.lineWidth,t.lineWidth),t.save();var l=new De(this.document,null);l.type=this.type,l.attributes.viewBox=new rt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.refX=new rt(this.document,"refX",this.getAttribute("refX").getValue()),l.attributes.refY=new rt(this.document,"refY",this.getAttribute("refY").getValue()),l.attributes.width=new rt(this.document,"width",this.getAttribute("markerWidth").getValue()),l.attributes.height=new rt(this.document,"height",this.getAttribute("markerHeight").getValue()),l.attributes.overflow=new rt(this.document,"overflow",this.getAttribute("overflow").getValue()),l.attributes.fill=new rt(this.document,"fill",this.getAttribute("fill").getColor("black")),l.attributes.stroke=new rt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),l.children=this.children,l.render(t),t.restore(),"strokeWidth"===s&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===o&&t.rotate(-r),t.translate(-n,-i)}}}class Qr extends It{constructor(){super(...arguments),this.type="defs"}render(){}}class rr extends me{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new te;return this.children.forEach(r=>{e.addBoundingBox(r.getBoundingBox(t))}),e}}class Tr extends It{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:n,children:i}=this;i.forEach(o=>{"stop"===o.type&&n.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var{stops:i}=n,o=this.getGradient(t,e);if(!o)return this.addParentOpacity(r,i[i.length-1].color);if(i.forEach(F=>{o.addColorStop(F.offset,this.addParentOpacity(r,F.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:l,viewPort:h}=s.screen,[g]=h.viewPorts,x=new xr(s,null);x.attributes.x=new rt(s,"x",-l/3),x.attributes.y=new rt(s,"y",-l/3),x.attributes.width=new rt(s,"width",l),x.attributes.height=new rt(s,"height",l);var E=new rr(s,null);E.attributes.transform=new rt(s,"transform",this.getAttribute("gradientTransform").getValue()),E.children=[x];var m=new De(s,null);m.attributes.x=new rt(s,"x",0),m.attributes.y=new rt(s,"y",0),m.attributes.width=new rt(s,"width",g.width),m.attributes.height=new rt(s,"height",g.height),m.children=[E];var I=s.createCanvas(g.width,g.height),V=I.getContext("2d");return V.fillStyle=o,m.render(V),V.createPattern(I,"no-repeat")}return o}inheritStopContainer(t){this.attributesToInherit.forEach(e=>{!this.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())})}addParentOpacity(t,e){return t.hasValue()?new rt(this.document,"color",e).addOpacity(t).getColor():e}}class kr extends Tr{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=r?e.getBoundingBox(t):null;if(r&&!n)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),l=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===s&&o===l?null:t.createLinearGradient(i,o,s,l)}}class Kr extends Tr{constructor(t,e,r){super(t,e,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=e.getBoundingBox(t);if(r&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=i,l=o;this.getAttribute("fx").hasValue()&&(s=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(l=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var h=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),g=this.getAttribute("fr").getPixels();return t.createRadialGradient(s,l,g,i,o,h)}}class Zr extends It{constructor(t,e,r){super(t,e,r),this.type="stop";var n=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);""===o.getString()&&o.setValue("#000"),i.hasValue()&&(o=o.addOpacity(i)),this.offset=n,this.color=o.getColor()}}class nr extends It{constructor(t,e,r){super(t,e,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new rt(t,"values",null);var n=this.getAttribute("values");n.hasValue()&&this.values.setValue(n.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:r,to:n}=this.getProgress(),i=r.getNumber()+(n.getNumber()-r.getNumber())*e;return"%"===t&&(i*=100),"".concat(i).concat(t)}update(t){var{parent:e}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==n||this.frozen){if("remove"===n&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var i=!1;if(this.begin<this.duration){var o=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var l=s.getString();o="".concat(l,"(").concat(o,")")}r.setValue(o),i=!0}return i}getProgress(){var{document:t,values:e}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var n=r.progress*(e.getValue().length-1),i=Math.floor(n),o=Math.ceil(n);r.from=new rt(t,"from",parseFloat(e.getValue()[i])),r.to=new rt(t,"to",parseFloat(e.getValue()[o])),r.progress=(n-i)/(o-i)}else r.from=this.from,r.to=this.to;return r}}class Jr extends nr{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),n=new L(e.getColor()),i=new L(r.getColor());if(n.ok&&i.ok){var s=n.g+(i.g-n.g)*t,l=n.b+(i.b-n.b)*t;return"rgb(".concat(Math.floor(n.r+(i.r-n.r)*t),", ").concat(Math.floor(s),", ").concat(Math.floor(l),")")}return this.getAttribute("from").getColor()}}class qr extends nr{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),n=Gt(e.getString()),i=Gt(r.getString());return n.map((s,l)=>s+(i[l]-s)*t).join(" ")}}class _r extends It{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:n}=t,{children:i}=this;for(var o of i)switch(o.type){case"font-face":this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(n[s.getString()]=this);break;case"missing-glyph":this.missingGlyph=o;break;case"glyph":var l=o;l.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[l.unicode]&&(this.glyphs[l.unicode]={}),this.glyphs[l.unicode][l.arabicForm]=l):this.glyphs[l.unicode]=l}}render(){}}class tn extends It{constructor(t,e,r){super(t,e,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class en extends St{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class rn extends he{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}class nn extends he{constructor(t,e,r){super(t,e,r),this.type="a";var{childNodes:n}=e,i=n[0],o=n.length>0&&Array.from(n).every(s=>3===s.nodeType);this.hasText=o,this.text=o?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:r,y:n}=this,{mouse:i}=e.screen,o=new rt(e,"fontSize",Ae.parse(e.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new te(r,n-o.getPixels("y"),r+this.measureText(t),n))}else if(this.children.length>0){var s=new rr(this.document,null);s.children=this.children,s.parent=this,s.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function an(u,t){var e=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(u,n).enumerable})),e.push.apply(e,r)}return e}function ar(u){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?an(Object(e),!0).forEach(function(r){A(u,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(e)):an(Object(e)).forEach(function(r){Object.defineProperty(u,r,Object.getOwnPropertyDescriptor(e,r))})}return u}class sn extends he{constructor(t,e,r){super(t,e,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var n=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(n)}getText(){return this.text}path(t){var{dataArray:e}=this;t&&t.beginPath(),e.forEach(r=>{var{type:n,points:i}=r;switch(n){case lt.LINE_TO:t&&t.lineTo(i[0],i[1]);break;case lt.MOVE_TO:t&&t.moveTo(i[0],i[1]);break;case lt.CURVE_TO:t&&t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case lt.QUAD_TO:t&&t.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case lt.ARC:var[o,s,l,h,g,x,E,m]=i,I=l>h?l:h,V=l>h?1:l/h,F=l>h?h/l:1;t&&(t.translate(o,s),t.rotate(E),t.scale(V,F),t.arc(0,0,I,g,g+x,Boolean(1-m)),t.scale(1/V,1/F),t.rotate(-E),t.translate(-o,-s));break;case lt.CLOSE_PATH:t&&t.closePath()}})}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:n}=this,i=t.fillStyle;"underline"===e&&t.beginPath(),n.forEach((o,s)=>{var{p0:l,p1:h,rotation:g,text:x}=o;t.save(),t.translate(l.x,l.y),t.rotate(g),t.fillStyle&&t.fillText(x,0,0),t.strokeStyle&&t.strokeText(x,0,0),t.restore(),"underline"===e&&(0===s&&t.moveTo(l.x,l.y+r/8),t.lineTo(h.x,h.y+r/5))}),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=i,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){return this.letterSpacingCache[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0]||0}findSegmentToFitChar(t,e,r,n,i,o,s,l,h){var g=o,x=this.measureText(t,l);" "===l&&"justify"===e&&r<n&&(x+=(n-r)/i),h>-1&&(g+=this.getLetterSpacingAt(h));var E=this.textHeight/20,m=this.getEquidistantPointOnPath(g,E,0),I=this.getEquidistantPointOnPath(g+x,E,0),V={p0:m,p1:I},F=m&&I?Math.atan2(I.y-m.y,I.x-m.x):0;if(s){var B=Math.cos(Math.PI/2+F)*s,Q=Math.cos(-F)*s;V.p0=ar(ar({},m),{},{x:m.x+B,y:m.y+Q}),V.p1=ar(ar({},I),{},{x:I.x+B,y:I.y+Q})}return{offset:g+=x,segment:V,rotation:F}}measureText(t,e){var{measuresCache:r}=this,n=e||this.getText();if(r.has(n))return r.get(n);var i=this.measureTargetText(t,n);return r.set(n,i),i}setTextData(t){if(!this.glyphInfo){var e=this.getText(),r=e.split(""),n=e.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(U=>U.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),l=this.getStyle("letter-spacing"),h=this.parent.getStyle("letter-spacing"),g=0;l.hasValue()&&"inherit"!==l.getValue()?l.hasValue()&&"initial"!==l.getValue()&&"unset"!==l.getValue()&&(g=l.getPixels()):g=h.getPixels();var x=[],E=e.length;this.letterSpacingCache=x;for(var m=0;m<E;m++)x.push(void 0!==i[m]?i[m]:g);var I=x.reduce((U,nt,ut)=>0===ut?0:U+nt||0,0),V=this.measureText(t),F=Math.max(V+I,0);this.textWidth=V,this.textHeight=this.getFontSize(),this.glyphInfo=[];var B=this.getPathLength(),Q=this.getStyle("startOffset").getNumber(0)*B,G=0;("middle"===s||"center"===s)&&(G=-F/2),("end"===s||"right"===s)&&(G=-F),G+=Q,r.forEach((U,nt)=>{var{offset:ut,segment:W,rotation:ft}=this.findSegmentToFitChar(t,s,F,B,n,G,o,U,nt);G=ut,W.p0&&W.p1&&this.glyphInfo.push({text:r[nt],p0:W.p0,p1:W.p1,rotation:ft})})}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:r}=t;for(r.reset();!r.isEnd();){var{current:n}=r,i=n?n.x:0,o=n?n.y:0,s=r.next(),l=s.type,h=[];switch(s.type){case lt.MOVE_TO:this.pathM(r,h);break;case lt.LINE_TO:l=this.pathL(r,h);break;case lt.HORIZ_LINE_TO:l=this.pathH(r,h);break;case lt.VERT_LINE_TO:l=this.pathV(r,h);break;case lt.CURVE_TO:this.pathC(r,h);break;case lt.SMOOTH_CURVE_TO:l=this.pathS(r,h);break;case lt.QUAD_TO:this.pathQ(r,h);break;case lt.SMOOTH_QUAD_TO:l=this.pathT(r,h);break;case lt.ARC:h=this.pathA(r);break;case lt.CLOSE_PATH:St.pathZ(r)}e.push(s.type!==lt.CLOSE_PATH?{type:l,points:h,start:{x:i,y:o},pathLength:this.calcLength(i,o,l,h)}:{type:lt.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:n}=St.pathM(t).point;e.push(r,n)}pathL(t,e){var{x:r,y:n}=St.pathL(t).point;return e.push(r,n),lt.LINE_TO}pathH(t,e){var{x:r,y:n}=St.pathH(t).point;return e.push(r,n),lt.LINE_TO}pathV(t,e){var{x:r,y:n}=St.pathV(t).point;return e.push(r,n),lt.LINE_TO}pathC(t,e){var{point:r,controlPoint:n,currentPoint:i}=St.pathC(t);e.push(r.x,r.y,n.x,n.y,i.x,i.y)}pathS(t,e){var{point:r,controlPoint:n,currentPoint:i}=St.pathS(t);return e.push(r.x,r.y,n.x,n.y,i.x,i.y),lt.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:n}=St.pathQ(t);e.push(r.x,r.y,n.x,n.y)}pathT(t,e){var{controlPoint:r,currentPoint:n}=St.pathT(t);return e.push(r.x,r.y,n.x,n.y),lt.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:n,xAxisRotation:i,centp:o,a1:s,ad:l}=St.pathA(t);return 0===n&&l>0&&(l-=2*Math.PI),1===n&&l<0&&(l+=2*Math.PI),[o.x,o.y,e,r,s,l,i,n]}calcLength(t,e,r,n){var i=0,o=null,s=null,l=0;switch(r){case lt.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case lt.CURVE_TO:for(i=0,o=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),l=.01;l<=1;l+=.01)s=this.getPointOnCubicBezier(l,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return i;case lt.QUAD_TO:for(i=0,o=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),l=.01;l<=1;l+=.01)s=this.getPointOnQuadraticBezier(l,t,e,n[0],n[1],n[2],n[3]),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return i;case lt.ARC:i=0;var h=n[4],g=n[5],x=n[4]+g,E=Math.PI/180;if(Math.abs(h-x)<E&&(E=Math.abs(h-x)),o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],h,0),g<0)for(l=h-E;l>x;l-=E)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(l=h+E;l<x;l+=E)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],x,0),i+this.getLineLength(o.x,o.y,s.x,s.y)}return 0}getPointOnLine(t,e,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,l=(i-r)/(n-e+z),h=Math.sqrt(t*t/(1+l*l));n<e&&(h*=-1);var g=l*h,x=null;if(n===e)x={x:o,y:s+g};else if((s-r)/(o-e+z)===l)x={x:o+h,y:s+g};else{var E,m,I=this.getLineLength(e,r,n,i);if(I<z)return null;var V=(o-e)*(n-e)+(s-r)*(i-r),F=this.getLineLength(o,s,E=e+(V/=I*I)*(n-e),m=r+V*(i-r)),B=Math.sqrt(t*t-F*F);h=Math.sqrt(B*B/(1+l*l)),n<e&&(h*=-1),x={x:E+h,y:m+(g=l*h)}}return x}getPointOnPath(t){var e=this.getPathLength(),r=0,n=null;if(t<-5e-5||t-5e-5>e)return null;var{dataArray:i}=this;for(var o of i){if(!o||!(o.pathLength<5e-5||r+o.pathLength+5e-5<t)){var s=t-r,l=0;switch(o.type){case lt.LINE_TO:n=this.getPointOnLine(s,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case lt.ARC:var g=o.points[5],x=o.points[4]+g;if(l=o.points[4]+s/o.pathLength*g,g<0&&l<x||g>=0&&l>x)break;n=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],l,o.points[6]);break;case lt.CURVE_TO:(l=s/o.pathLength)>1&&(l=1),n=this.getPointOnCubicBezier(l,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case lt.QUAD_TO:(l=s/o.pathLength)>1&&(l=1),n=this.getPointOnQuadraticBezier(l,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3])}if(n)return n;break}r+=o.pathLength}return null}getLineLength(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((t,e)=>e.pathLength>0?t+e.pathLength:t,0)),this.pathLength}getPointOnCubicBezier(t,e,r,n,i,o,s,l,h){return{x:l*vt(t)+o*Lt(t)+n*_t(t)+e*Wt(t),y:h*vt(t)+s*Lt(t)+i*_t(t)+r*Wt(t)}}getPointOnQuadraticBezier(t,e,r,n,i,o,s){return{x:o*Qt(t)+n*ye(t)+e*se(t),y:s*Qt(t)+i*ye(t)+r*se(t)}}getPointOnEllipticalArc(t,e,r,n,i,o){var s=Math.cos(o),l=Math.sin(o),h_x=r*Math.cos(i),h_y=n*Math.sin(i);return{x:t+(h_x*s-h_y*l),y:e+(h_x*l+h_y*s)}}buildEquidistantCache(t,e){var r=this.getPathLength(),n=e||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var o=0,s=0;s<=r;s+=n){var l=this.getPointOnPath(s),h=this.getPointOnPath(s+n);!l||!h||(o+=this.getLineLength(l.x,l.y,h.x,h.y))>=i&&(this.equidistantCache.points.push({x:l.x,y:l.y,distance:s}),o-=i)}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var n=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}var Fn=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class on extends me{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;var n=this.getHrefAttribute().getString();if(n){var i=n.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(n);t.images.push(this),i?this.loadSvg(n):this.loadImage(n),this.isSvg=i}}loadImage(t){var e=this;return c(function*(){try{var r=yield e.document.createImage(t);e.image=r}catch(n){console.error('Error while loading image "'.concat(t,'":'),n)}e.loaded=!0})()}loadSvg(t){var e=this;return c(function*(){var r=Fn.exec(t);if(r){var n=r[5];e.image="base64"===r[4]?atob(n):decodeURIComponent(n)}else try{var i=yield e.document.fetch(t),o=yield i.text();e.image=o}catch(s){console.error('Error while loading image "'.concat(t,'":'),s)}e.loaded=!0})()}renderChildren(t){var{document:e,image:r,loaded:n}=this,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y");if(n&&r&&s&&l){if(t.save(),t.translate(i,o),this.isSvg){var h=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:l});h.document.documentElement.parent=this,h.render()}else{var g=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:g.width,height:l,desiredHeight:g.height}),this.loaded&&(void 0===g.complete||g.complete)&&t.drawImage(g,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new te(t,e,t+r,e+n)}}class ln extends me{constructor(){super(...arguments),this.type="symbol"}render(t){}}class un{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var r=this;return c(function*(){try{var{document:n}=r,o=(yield n.canvg.parser.load(e)).getElementsByTagName("font");Array.from(o).forEach(s=>{var l=n.createElement(s);n.definitions[t]=l})}catch(s){console.error('Error while loading font "'.concat(e,'":'),s)}r.loaded=!0})()}}let hn=(()=>{class u extends It{constructor(e,r,n){super(e,r,n),this.type="style",ne(Array.from(r.childNodes).map(s=>s.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(s=>{var l=s.trim();if(l){var h=l.split("{"),g=h[0].split(","),x=h[1].split(";");g.forEach(E=>{var m=E.trim();if(m){var I=e.styles[m]||{};if(x.forEach(B=>{var Q=B.indexOf(":"),G=B.substr(0,Q).trim(),U=B.substr(Q+1,B.length-Q).trim();G&&U&&(I[G]=new rt(e,G,U))}),e.styles[m]=I,e.stylesSpecificity[m]=Le(m),"@font-face"===m){var V=I["font-family"].getString().replace(/"|'/g,"");I.src.getString().split(",").forEach(B=>{if(B.indexOf('format("svg")')>0){var Q=He(B);Q&&new un(e).load(V,Q)}})}}})}})}}return u.parseExternalUrl=He,u})();class fn extends me{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}path(t){var{element:e}=this;e&&e.path(t)}renderChildren(t){var{document:e,element:r}=this;if(r){var n=r;if("symbol"===r.type&&((n=new De(e,null)).attributes.viewBox=new rt(e,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new rt(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new rt(e,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new rt(e,"opacity",this.calculateOpacity())),"svg"===n.type){var i=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new rt(e,"width",i.getString())),o.hasValue()&&(n.attributes.height=new rt(e,"height",o.getString()))}var s=n.parent;n.parent=this,n.render(t),n.parent=s}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return er.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function ir(u,t,e,r,n,i){return u[e*r*4+4*t+i]}function sr(u,t,e,r,n,i,o){u[e*r*4+4*t+i]=o}function Dt(u,t,e){return u[t]*e}function fe(u,t,e,r){return t+Math.cos(u)*e+Math.sin(u)*r}class br extends It{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var n=Gt(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var i=n[0];n=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var o=n[0]*Math.PI/180;n=[fe(o,.213,.787,-.213),fe(o,.715,-.715,-.715),fe(o,.072,-.072,.928),0,0,fe(o,.213,-.213,.143),fe(o,.715,.285,.14),fe(o,.072,-.072,-.283),0,0,fe(o,.213,-.213,-.787),fe(o,.715,-.715,.715),fe(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=n,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,n,i){for(var{includeOpacity:o,matrix:s}=this,l=t.getImageData(0,0,n,i),h=0;h<i;h++)for(var g=0;g<n;g++){var x=ir(l.data,g,h,n,0,0),E=ir(l.data,g,h,n,0,1),m=ir(l.data,g,h,n,0,2),I=ir(l.data,g,h,n,0,3),V=Dt(s,0,x)+Dt(s,1,E)+Dt(s,2,m)+Dt(s,3,I)+Dt(s,4,1),F=Dt(s,5,x)+Dt(s,6,E)+Dt(s,7,m)+Dt(s,8,I)+Dt(s,9,1),B=Dt(s,10,x)+Dt(s,11,E)+Dt(s,12,m)+Dt(s,13,I)+Dt(s,14,1),Q=Dt(s,15,x)+Dt(s,16,E)+Dt(s,17,m)+Dt(s,18,I)+Dt(s,19,1);o&&(V=0,F=0,B=0,Q*=I/255),sr(l.data,g,h,n,0,0,V),sr(l.data,g,h,n,0,1,F),sr(l.data,g,h,n,0,2,B),sr(l.data,g,h,n,0,3,Q)}t.clearRect(0,0,n,i),t.putImageData(l,0,0)}}let vn=(()=>{class u extends It{constructor(){super(...arguments),this.type="mask"}apply(e,r){var{document:n}=this,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y");if(!s&&!l){var h=new te;this.children.forEach(V=>{h.addBoundingBox(V.getBoundingBox(e))}),i=Math.floor(h.x1),o=Math.floor(h.y1),s=Math.floor(h.width),l=Math.floor(h.height)}var g=this.removeStyles(r,u.ignoreStyles),x=n.createCanvas(i+s,o+l),E=x.getContext("2d");n.screen.setDefaults(E),this.renderChildren(E),new br(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(E,0,0,i+s,o+l);var m=n.createCanvas(i+s,o+l),I=m.getContext("2d");n.screen.setDefaults(I),r.render(I),I.globalCompositeOperation="destination-in",I.fillStyle=E.createPattern(x,"no-repeat"),I.fillRect(0,0,i+s,o+l),e.fillStyle=I.createPattern(m,"no-repeat"),e.fillRect(0,0,i+s,o+l),this.restoreStyles(r,g)}render(e){}}return u.ignoreStyles=["mask","transform","clip-path"],u})();var cn=()=>{};class gn extends It{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:n,closePath:i}=t;r&&(r.beginPath=cn,r.closePath=cn),Reflect.apply(n,t,[]),this.children.forEach(o=>{if(void 0!==o.path){var s=void 0!==o.elementTransform?o.elementTransform():null;s||(s=er.fromElement(e,o)),s&&s.apply(t),o.path(t),r&&(r.closePath=i),s&&s.unapply(t)}}),Reflect.apply(i,t,[]),t.clip(),r&&(r.beginPath=n,r.closePath=i)}render(t){}}let dn=(()=>{class u extends It{constructor(){super(...arguments),this.type="filter"}apply(e,r){var{document:n,children:i}=this,o=r.getBoundingBox(e);if(o){var s=0,l=0;i.forEach(Q=>{var G=Q.extraFilterDistance||0;s=Math.max(s,G),l=Math.max(l,G)});var h=Math.floor(o.width),g=Math.floor(o.height),x=h+2*s,E=g+2*l;if(!(x<1||E<1)){var m=Math.floor(o.x),I=Math.floor(o.y),V=this.removeStyles(r,u.ignoreStyles),F=n.createCanvas(x,E),B=F.getContext("2d");n.screen.setDefaults(B),B.translate(-m+s,-I+l),r.render(B),i.forEach(Q=>{"function"==typeof Q.apply&&Q.apply(B,0,0,x,E)}),e.drawImage(F,0,0,x,E,m-s,I-l,x,E),this.restoreStyles(r,V)}}}render(e){}}return u.ignoreStyles=["filter","transform","clip-path"],u})();class pn extends It{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,n,i){}}class yn extends It{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,n,i){}}class mn extends It{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,n,i){}}class xn extends It{constructor(t,e,r){super(t,e,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,e,r,n,i){var{document:o,blurRadius:s}=this,l=o.window?o.window.document.body:null,h=t.canvas;h.id=o.getUniqueId(),l&&(h.style.display="none",l.appendChild(h)),re(h,e,r,n,i,s),l&&l.removeChild(h)}}class En extends It{constructor(){super(...arguments),this.type="title"}}class Tn extends It{constructor(){super(...arguments),this.type="desc"}}var Bn={svg:De,rect:xr,circle:Gr,ellipse:Hr,line:Yr,polyline:Er,polygon:Xr,path:St,pattern:$r,marker:Wr,defs:Qr,linearGradient:kr,radialGradient:Kr,stop:Zr,animate:nr,animateColor:Jr,animateTransform:qr,font:_r,"font-face":tn,"missing-glyph":en,glyph:mr,text:he,tspan:Xe,tref:rn,a:nn,textPath:sn,image:on,g:rr,symbol:ln,style:hn,use:fn,mask:vn,clipPath:gn,filter:dn,feDropShadow:pn,feMorphology:yn,feComposite:mn,feColorMatrix:br,feGaussianBlur:xn,title:En,desc:Tn};function bn(u,t){var e=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(u,n).enumerable})),e.push.apply(e,r)}return e}function jn(u,t){var e=document.createElement("canvas");return e.width=u,e.height=t,e}function zn(u){return Sr.apply(this,arguments)}function Sr(){return Sr=c(function*(u){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=document.createElement("img");return t&&(e.crossOrigin="Anonymous"),new Promise((r,n)=>{e.onload=()=>{r(e)},e.onerror=(i,o,s,l,h)=>{n(h)},e.src=u})}),Sr.apply(this,arguments)}let Sn=(()=>{class u{constructor(e){var{rootEmSize:r=12,emSize:n=12,createCanvas:i=u.createCanvas,createImage:o=u.createImage,anonymousCrossOrigin:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=r,this.emSize=n,this.createCanvas=i,this.createImage=this.bindCreateImage(o,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,r){return"boolean"==typeof r?(n,i)=>e(n,"boolean"==typeof i?i:r):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:r}=this;r.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var r=this.createElement(e.documentElement);return r.root=!0,r.addStylesFromStyleDefinition(),this.documentElement=r,r}createElement(e){var r=e.nodeName.replace(/^[^:]+:/,""),n=u.elementTypes[r];return void 0!==n?new n(this,e):new zr(this,e)}createTextNode(e){return new Dn(this,e)}setViewBox(e){this.screen.setViewBox(function Un(u){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(e),!0).forEach(function(r){A(u,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(e)):bn(Object(e)).forEach(function(r){Object.defineProperty(u,r,Object.getOwnPropertyDescriptor(e,r))})}return u}({document:this},e))}}return u.createCanvas=jn,u.createImage=zn,u.elementTypes=Bn,u})();function On(u,t){var e=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(u,n).enumerable})),e.push.apply(e,r)}return e}function Pe(u){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?On(Object(e),!0).forEach(function(r){A(u,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(e)):On(Object(e)).forEach(function(r){Object.defineProperty(u,r,Object.getOwnPropertyDescriptor(e,r))})}return u}class Re{constructor(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new tr(r),this.screen=new dr(t,r),this.options=r;var n=new Sn(this,r),i=n.createDocumentElement(e);this.document=n,this.documentElement=i}static from(t,e){var r=arguments;return c(function*(){var n=r.length>2&&void 0!==r[2]?r[2]:{},i=new tr(n),o=yield i.parse(e);return new Re(t,o,n)})()}static fromString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new tr(r).parseFromString(e);return new Re(t,i,r)}fork(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Re.from(t,e,Pe(Pe({},this.options),r))}forkString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Re.fromString(t,e,Pe(Pe({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return c(function*(){e.start(Pe({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},t.length>0&&void 0!==t[0]?t[0]:{})),yield e.ready(),e.stop()})()}start(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:e,screen:r,options:n}=this;r.start(e,Pe(Pe({enableRedraw:!0},n),t))}stop(){this.screen.stop()}resize(t){this.documentElement.resize(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}}}}]);