vendor: 2,919 bytes, line 1
1(self.webpackChunkFamilyHappy_Babysitter=self.webpackChunkFamilyHappy_Babysitter||[]).push([[687],{644:function(p){(function(){var O,a,f,v,g,d;typeof performance<"u"&&null!==performance&&performance.now?p.exports=function(){return performance.now()}:typeof process<"u"&&null!==process&&process.hrtime?(p.exports=function(){return(O()-g)/1e6},a=process.hrtime,v=(O=function(){var y;return 1e9*(y=a())[0]+y[1]})(),d=1e9*process.uptime(),g=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)},6742:(p,O,a)=>{for(var f=a(644),v=typeof window>"u"?global:window,g=["moz","webkit"],d="AnimationFrame",y=v["request"+d],b=v["cancel"+d]||v["cancelRequest"+d],T=0;!y&&T<g.length;T++)y=v[g[T]+"Request"+d],b=v[g[T]+"Cancel"+d]||v[g[T]+"CancelRequest"+d];if(!y||!b){var S=0,P=0,C=[];y=function(A){if(0===C.length){var M=f(),I=Math.max(0,16.666666666666668-(M-S));S=I+M,setTimeout(function(){var L=C.slice(0);C.length=0;for(var D=0;D<L.length;D++)if(!L[D].cancelled)try{L[D].callback(S)}catch(G){setTimeout(function(){throw G},0)}},Math.round(I))}return C.push({handle:++P,callback:A,cancelled:!1}),P},b=function(A){for(var M=0;M<C.length;M++)C[M].handle===A&&(C[M].cancelled=!0)}}p.exports=function(A){return y.call(v,A)},p.exports.cancel=function(){b.apply(v,arguments)},p.exports.polyfill=function(A){A||(A=v),A.requestAnimationFrame=y,A.cancelAnimationFrame=b}},6310:p=>{p.exports=function(O){this.ok=!1,this.alpha=1,"#"==O.charAt(0)&&(O=O.substr(1,6)),O=(O=O.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:"90ee9
10",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"};O=a[O]||O;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(O);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),S=this.g.toString(16),P=this.b.toString(16);return 1==T.length&&(T="0"+T),1==S.length&&(S="0"+S),1==P.length&&(P="0"+P),"#"+T+S+P},this.getHelpXML=function(){for(var T=new Array,S=0;S<f.length;S++)for(var P=f[S].example,C=0;C<P.length;C++)T[T.length]=P[C];for(var R in a)T[T.length]=R;var A=document.createElement("ul");for(A.setAttribute("id","rgbcolor-examples"),S=0;S<T.length;S++)try{var M=document.createElement("li"),I=new RGBColor(T[S]),L=document.createElement("div");L.style.cssText="margin: 3px; border: 1px solid black; background:"+I.toHex()+"; color:"+I.toHex(),L.appendChild(document.createTextNode("test"));var D=document.createTextNode(" "+T[S]+" -> "+I.toRGB()+" -> "+I.toHex());M.appendChild(L),M.appendChild(D),A.appendChild(M)}catch(Y){}return A}}},4601:(p,O,a)=>{var f=a(200),v=a(8420),g=a(3838),d=f.TypeError;p.exports=function(y){if(v(y))return y;throw d(g(y)+" is not a function")}},7849:(p,O,a)=>{var f=a(200),v=a(1466),g=a(3838),d=f.TypeError;p.exports=function(y){if(v(y))return y;throw d(g(y)+" is not a constructor")}},7473:(p,O,a)=>{var f=a(200),v=a(8420),g=f.String,d=f.TypeError;p.exports=function(y){if("object"==typeof y||v(y))return y;throw d("Can't set "+g(y)+" as a prototype")}},298:(p,O,a)=>{var f=a(1602),v=a(3105),g=a(3610),d=f("unscopables"),y=Array.prototype;null==y[d]&&g.f(y,d,{configurable:!0,value:v(null)}),p.exports=function(b){y[d][b]=!0}},7234:(p,O,a)=>{"use strict";var f=a(7804).charAt;p.exports=function(v,g,d){return g+(d?f(v,g).length:1)}},5190:(p,O,a)=>{var f=a(200),v=a(7658),g=f.TypeError;p.exports=function(d,y){if(v(y,d))return d;throw g("Incorrect invocation")}},3938:(p,O,a)=>{var f=a(200),v=a(5335),g=f.String,d=f.TypeError;p.exports=function(y){if(v(y))return y;throw d(g(y)+" is not an object")}},8186:(p,O,a)=>
1{var f=a(5476),v=a(6539),g=a(3493),d=function(y){return function(b,T,S){var A,P=f(b),C=g(P),R=v(S,C);if(y&&T!=T){for(;C>R;)if((A=P[R++])!=A)return!0}else for(;C>R;R++)if((y||R in P)&&P[R]===T)return y||R||0;return!y&&-1}};p.exports={includes:d(!0),indexOf:d(!1)}},2349:(p,O,a)=>{"use strict";var f=a(2074);p.exports=function(v,g){var d=[][v];return!!d&&f(function(){d.call(null,g||function(){throw 1},1)})}},2237:(p,O,a)=>{var f=a(200),v=a(4601),g=a(2612),d=a(8664),y=a(3493),b=f.TypeError,T=function(S){return function(P,C,R,A){v(C);var M=g(P),I=d(M),L=y(M),D=S?L-1:0,G=S?-1:1;if(R<2)for(;;){if(D in I){A=I[D],D+=G;break}if(D+=G,S?D<0:L<=D)throw b("Reduce of empty array with no initial value")}for(;S?D>=0:L>D;D+=G)D in I&&(A=C(A,I[D],D,M));return A}};p.exports={left:T(!1),right:T(!0)}},6056:(p,O,a)=>{var f=a(200),v=a(6539),g=a(3493),d=a(2057),y=f.Array,b=Math.max;p.exports=function(T,S,P){for(var C=g(T),R=v(S,C),A=v(void 0===P?C:P,C),M=y(b(A-R,0)),I=0;R<A;R++,I++)d(M,I,T[R]);return M.length=I,M}},9609:(p,O,a)=>{var f=a(281);p.exports=f([].slice)},7499:(p,O,a)=>{var v=a(1602)("iterator"),g=!1;try{var d=0,y={next:function(){return{done:!!d++}},return:function(){g=!0}};y[v]=function(){return this},Array.from(y,function(){throw 2})}catch(b){}p.exports=function(b,T){if(!T&&!g)return!1;var S=!1;try{var P={};P[v]=function(){return{next:function(){return{done:S=!0}}}},b(P)}catch(C){}return S}},8569:(p,O,a)=>{var f=a(281),v=f({}.toString),g=f("".slice);p.exports=function(d){return g(v(d),8,-1)}},3062:(p,O,a)=>{var f=a(200),v=a(3129),g=a(8420),d=a(8569),b=a(1602)("toStringTag"),T=f.Object,S="Arguments"==d(function(){return arguments}());p.exports=v?d:function(C){var R,A,M;return void 0===C?"Undefined":null===C?"Null":"string"==typeof(A=function(C,R){try{return C[R]}catch(A){}}(R=T(C),b))?A:S?d(R):"Object"==(M=d(R))&&g(R.callee)?"Arguments":M}},4361:(p,O,a)=>{var f=a(6490),v=a(5816),g=a(7632),d=a(3610);p.exports=function(y,b,T){for(var S=v(b),P=d.f,C=g.f,R=0;R<S.length;R++){var A=S[R];!f(y,A)&&(!T||!f(T,A))&&P(y,A,C(b,A))}}},4177:(p,O,a)=>{var v=a(1602)("match");p.exports=function(g){var d=/./;try{"/./"[g](d)}catch(y){try{return d[v]=!1,"/./"[g](d)}catch(b){}}return!1}},7168:(p,O,a)=>{var f=a(2074);p.exports=!f(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},2147:(p,O,a)=>{"use strict";var f=a(9306).IteratorPrototype,v=a(3105),g=a(6843),d=a(5282),y=a(2228),b=function(){return this};p.exports=function(T,S,P,C){var R=S+" Iterator";return T.prototype=v(f,{next:g(+!C,P)}),d(T,R,!1,!0),y[R]=b,T}},7712:(p,O,a)=>{var f=a(5077),v=a(3610),g=a(6843);p.exports=f?function(d,y,b){return v.f(d,y,g(1,b))}:function(d,y,b){return d[y]=b,d}},6843:p=>{p.exports=function(O,a){return{enumerable:!(1&O),configurable:!(2&O),writable:!(4&O),value:a}}},2057:(p,O,a)=>{"use strict";var f=a(6032),v=a(3610),g=a(6843);p.exports=function(d,y,b){var T=f(y);T in d?v.f(d,T,g(0,b)):d[T]=b}},5723:(p,O,a)=>{"use strict";var f=a(1605),v=a(2368),g=a(6926),d=a(2071),y=a(8420),b=a(2147),T=a(7970),S=a(9686),P=a(5282),C=a(7712),R=a(7485),A=a(1602),M=a(2228),I=a(9306),L=d.PROPER,D=d.CONFIGURABLE,G=I.IteratorPrototype,Y=I.BUGGY_SAFARI_ITERATORS,j=A("iterator"),q="keys",Z="values",J="entries",X=function(){return this};p.exports=function(W,pt,at,lt,gt,St,nt){b(at,pt,lt);var ft,yt,mt,K=function(Et){if(Et===gt&&Pt)return Pt;if(!Y&&Et in et)return et[Et];switch(Et){case q:case Z:case J:return function(){return new at(this,Et)}}return function(){return new at(this)}},Q=pt+" Iterator",it=!1,et=W.prototype,xt=et[j]||et["@@iterator"]||gt&&et[gt],Pt=!Y&&xt||K(gt),w="Array"==pt&&et.entries||xt;if(w&&(ft=T(w.call(new W)))!==Object.prototype&&ft.next&&(!g&&T(ft)!==G&&(S?S(ft,G):y(ft[j])||R(ft,j,X)),P(ft,Q,!0,!0),g&&(M[Q]=X)),L&>==Z&&xt&&xt.name!==Z&&(!g&&D?C(et,"name",Z):(it=!0,Pt=function(){return v(xt,this)})),gt)if(yt={values:K(Z),keys:St?Pt:K(q),entries:K(J)},nt)for(mt in yt)(Y||it||!(mt in et))&&R(et,mt,yt[mt]);else f({target:pt,proto:!0,forced:Y||it},yt);return(!g||nt)&&et[j]!==Pt&&R(et,j,Pt,{name:gt}),M[pt]=Pt,yt}},5077:(p,O,a)=>{var f=a(2074);p.exports=!f(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}}
1)[1]})},3262:(p,O,a)=>{var f=a(200),v=a(5335),g=f.document,d=v(g)&&v(g.createElement);p.exports=function(y){return d?g.createElement(y):{}}},5549: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}},2975:(p,O,a)=>{var v=a(3262)("span").classList,g=v&&v.constructor&&v.constructor.prototype;p.exports=g===Object.prototype?void 0:g},8523:p=>{p.exports="object"==typeof window},2671:(p,O,a)=>{var f=a(7061),v=a(200);p.exports=/ipad|iphone|ipod/i.test(f)&&void 0!==v.Pebble},2050:(p,O,a)=>{var f=a(7061);p.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(f)},5223:(p,O,a)=>{var f=a(8569),v=a(200);p.exports="process"==f(v.process)},4318:(p,O,a)=>{var f=a(7061);p.exports=/web0s(?!.*chrome)/i.test(f)},7061:(p,O,a)=>{var f=a(6492);p.exports=f("navigator","userAgent")||""},6845:(p,O,a)=>{var T,S,f=a(200),v=a(7061),g=f.process,d=f.Deno,y=g&&g.versions||d&&d.version,b=y&&y.v8;b&&(S=(T=b.split("."))[0]>0&&T[0]<4?1:+(T[0]+T[1])),!S&&v&&(!(T=v.match(/Edge\/(\d+)/))||T[1]>=74)&&(T=v.match(/Chrome\/(\d+)/))&&(S=+T[1]),p.exports=S},290:p=>{p.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1605:(p,O,a)=>{var f=a(200),v=a(7632).f,g=a(7712),d=a(7485),y=a(5975),b=a(4361),T=a(4977);p.exports=function(S,P){var I,L,D,G,Y,C=S.target,R=S.global,A=S.stat;if(I=R?f:A?f[C]||y(C,{}):(f[C]||{}).prototype)for(L in P){if(G=P[L],D=S.noTargetGet?(Y=v(I,L))&&Y.value:I[L],!T(R?L:C+(A?".":"#")+L,S.forced)&&void 0!==D){if(typeof G==typeof D)continue;b(G,D)}(S.sham||D&&D.sham)&&g(G,"sham",!0),d(I,L,G,S)}}},2074:p=>{p.exports=function(O){try{return!!O()}catch(a){return!0}}},779:(p,O,a)=>{"use strict";a(7136);var f=a(281),v=a(7485),g=a(54),d=a(2074),y=a(1602),b=a(7712),T=y("species"),S=RegExp.prototype;p.exports=function(P,C,R,A){var M=y(P),I=!d(function(){var Y={};return Y[M]=function(){return 7},7!=""[P](Y)}),L=I&&!d(function(){var Y=!1,j=/a/;return"split"===P&&((j={}).constructor={},j.constructor[T]=function(){return j},j.flags="",j[M]=/./[M]),j.exec=function(){return Y=!0,null},j[M](""),!Y});if(!I||!L||R){var D=f(/./[M]),G=C(M,""[P],function(Y,j,q,Z,J){var X=f(Y),W=j.exec;return W===g||W===S.exec?I&&!J?{done:!0,value:D(j,q,Z)}:{done:!0,value:X(q,j,Z)}:{done:!1}});v(String.prototype,P,G[0]),v(S,M,G[1])}A&&b(S[M],"sham",!0)}},9070:(p,O,a)=>{var f=a(8823),v=Function.prototype,g=v.apply,d=v.call;p.exports="object"==typeof Reflect&&Reflect.apply||(f?d.bind(g):function(){return d.apply(g,arguments)})},6885:(p,O,a)=>{var f=a(281),v=a(4601),g=a(8823),d=f(f.bind);p.exports=function(y,b){return v(y),void 0===b?y:g?d(y,b):function(){return y.apply(b,arguments)}}},8823:(p,O,a)=>{var f=a(2074);p.exports=!f(function(){var v=function(){}.bind();return"function"!=typeof v||v.hasOwnProperty("prototype")})},2368:(p,O,a)=>{var f=a(8823),v=Function.prototype.call;p.exports=f?v.bind(v):function(){return v.apply(v,arguments)}},2071:(p,O,a)=>{var f=a(5077),v=a(6490),g=Function.prototype,d=f&&Object.getOwnPropertyDescriptor,y=v(g,"name"),b=y&&"something"===function(){}.name,T=y&&(!f||f&&d(g,"name").configurable);p.exports={EXISTS:y,PROPER:b,CONFIGURABLE:T}},281:(p,O,a)=>{var f=a(8823),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)}}},6492:(p,O,a)=>{var f=a(200),v=a(8420);p.exports=function(d,y){return arguments.length<2?function(d){return v(d)?d:void 0}(f[d]):f[d]&&f[d][y]}},1898:(p,O,a)=>{var f=a(3062),v=a(6457),g=a(2228),y=a(1602)("iterator");p.exports=function(b){if(null!=b)return v(b,y)||v(b,"@@iterator")||g[f(b)]}},9526:(p,O,a)=>{var f=a(200),v=a(2368),g=a(4601),d=a(3938),y=a(3838),b=a(1898),T=f.TypeError;p.exports=function(S,P){var C=arguments.length<2?b(S):P;if(g(C))return d(v(C,S));throw T(y(S)+" is not iterable")}},6457:(p,O,a)=>{var f=a(4601);p.exports=function(v,g){var d=v[g];return null==d?void 0:f(d)}},4433:(p,O,a)=>{var f=a(281),v=a(2612),g=Math.floor,d=f("".charAt),y=f("".replace),b=f("".slice),T=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,S=/\$([$&'`]|\d{1,2})/g;p.exports=function(P,C,R,A,M,I){var L=R+P.length,D=A.length,G=S;return void 0!==M&&(M=v(M),G=T),y(I,G,function(Y,j){var q;switch(d(j,0)){case"$":return"$";case"&":return P;case"`":return b(C,0,R);case"'":return b(C,L);
1case"<":q=M[b(j,1,-1)];break;default:var Z=+j;if(0===Z)return Y;if(Z>D){var J=g(Z/10);return 0===J?Y:J<=D?void 0===A[J-1]?d(j,1):A[J-1]+d(j,1):Y}q=A[Z-1]}return void 0===q?"":q})}},200:p=>{var O=function(a){return a&&a.Math==Math&&a};p.exports=O("object"==typeof globalThis&&globalThis)||O("object"==typeof window&&window)||O("object"==typeof self&&self)||O("object"==typeof global&&global)||function(){return this}()||Function("return this")()},6490:(p,O,a)=>{var f=a(281),v=a(2612),g=f({}.hasOwnProperty);p.exports=Object.hasOwn||function(y,b){return g(v(y),b)}},7708:p=>{p.exports={}},9778:(p,O,a)=>{var f=a(200);p.exports=function(v,g){var d=f.console;d&&d.error&&(1==arguments.length?d.error(v):d.error(v,g))}},8890:(p,O,a)=>{var f=a(6492);p.exports=f("document","documentElement")},7694:(p,O,a)=>{var f=a(5077),v=a(2074),g=a(3262);p.exports=!f&&!v(function(){return 7!=Object.defineProperty(g("div"),"a",{get:function(){return 7}}).a})},8664:(p,O,a)=>{var f=a(200),v=a(281),g=a(2074),d=a(8569),y=f.Object,b=v("".split);p.exports=g(function(){return!y("z").propertyIsEnumerable(0)})?function(T){return"String"==d(T)?b(T,""):y(T)}:y},9965:(p,O,a)=>{var f=a(281),v=a(8420),g=a(9310),d=f(Function.toString);v(g.inspectSource)||(g.inspectSource=function(y){return d(y)}),p.exports=g.inspectSource},9206:(p,O,a)=>{var M,I,L,f=a(2886),v=a(200),g=a(281),d=a(5335),y=a(7712),b=a(6490),T=a(9310),S=a(5904),P=a(7708),C="Object already initialized",R=v.TypeError;if(f||T.state){var Y=T.state||(T.state=new(0,v.WeakMap)),j=g(Y.get),q=g(Y.has),Z=g(Y.set);M=function(X,W){if(q(Y,X))throw new R(C);return W.facade=X,Z(Y,X,W),W},I=function(X){return j(Y,X)||{}},L=function(X){return q(Y,X)}}else{var J=S("state");P[J]=!0,M=function(X,W){if(b(X,J))throw new R(C);return W.facade=X,y(X,J,W),W},I=function(X){return b(X,J)?X[J]:{}},L=function(X){return b(X,J)}}p.exports={set:M,get:I,has:L,enforce:function(X){return L(X)?I(X):M(X,{})},getterFor:function(X){return function(W){var pt;if(!d(W)||(pt=I(W)).type!==X)throw R("Incompatible receiver, "+X+" required");return pt}}}},9034:(p,O,a)=>{var f=a(1602),v=a(2228),g=f("iterator"),d=Array.prototype;p.exports=function(y){return void 0!==y&&(v.Array===y||d[g]===y)}},8679:(p,O,a)=>{var f=a(8569);p.exports=Array.isArray||function(g){return"Array"==f(g)}},8420:p=>{p.exports=function(O){return"function"==typeof O}},1466:(p,O,a)=>{var f=a(281),v=a(2074),g=a(8420),d=a(3062),y=a(6492),b=a(9965),T=function(){},S=[],P=y("Reflect","construct"),C=/^\s*(?:class|function)\b/,R=f(C.exec),A=!C.exec(T),M=function(D){if(!g(D))return!1;try{return P(T,S,D),!0}catch(G){return!1}},I=function(D){if(!g(D))return!1;switch(d(D)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return A||!!R(C,b(D))}catch(G){return!0}};I.sham=!0,p.exports=!P||v(function(){var L;return M(M.call)||!M(Object)||!M(function(){L=!0})||L})?I:M},4977:(p,O,a)=>{var f=a(2074),v=a(8420),g=/#|\.prototype\./,d=function(P,C){var R=b[y(P)];return R==S||R!=T&&(v(C)?f(C):!!C)},y=d.normalize=function(P){return String(P).replace(g,".").toLowerCase()},b=d.data={},T=d.NATIVE="N",S=d.POLYFILL="P";p.exports=d},5335:(p,O,a)=>{var f=a(8420);p.exports=function(v){return"object"==typeof v?null!==v:f(v)}},6926:p=>{p.exports=!1},2449:(p,O,a)=>{var f=a(5335),v=a(8569),d=a(1602)("match");p.exports=function(y){var b;return f(y)&&(void 0!==(b=y[d])?!!b:"RegExp"==v(y))}},2328:(p,O,a)=>{var f=a(200),v=a(6492),g=a(8420),d=a(7658),y=a(5225),b=f.Object;p.exports=y?function(T){return"symbol"==typeof T}:function(T){var S=v("Symbol");return g(S)&&d(S.prototype,b(T))}},2929:(p,O,a)=>{var f=a(200),v=a(6885),g=a(2368),d=a(3938),y=a(3838),b=a(9034),T=a(3493),S=a(7658),P=a(9526),C=a(1898),R=a(9868),A=f.TypeError,M=function(L,D){this.stopped=L,this.result=D},I=M.prototype;p.exports=function(L,D,G){var X,W,pt,at,lt,gt,St,j=!(!G||!G.AS_ENTRIES),q=!(!G||!G.IS_ITERATOR),Z=!(!G||!G.INTERRUPTED),J=v(D,G&&G.that),nt=function(Q){return X&&R(X,"normal",Q),new M(!0,Q)},K=function(Q){return j?(d(Q),Z?J(Q[0],Q[1],nt):J(Q[0],Q[1])):Z?J(Q,nt):J(Q)};if(q)X=L;else{if(!(W=C(L)))throw A(y(L)+" is not iterable");if(b(W)){for(pt=0,at=T(L);at>pt;pt++)if((lt=K(L[pt]))&&S(I,lt))return lt;return new M(!1)}X=P(L,W)}for(gt=X.next;!(St=g(gt,X)).done;){try{lt=K(St.value)}catch(Q){R(X,"throw",Q)}if("object"==typeof lt&<&&S(I,lt))return lt}return new M(!1)}},9868:(p,O,a)=>
1{var f=a(2368),v=a(3938),g=a(6457);p.exports=function(d,y,b){var T,S;v(d);try{if(!(T=g(d,"return"))){if("throw"===y)throw b;return b}T=f(T,d)}catch(P){S=!0,T=P}if("throw"===y)throw b;if(S)throw T;return v(T),b}},9306:(p,O,a)=>{"use strict";var C,R,A,f=a(2074),v=a(8420),g=a(3105),d=a(7970),y=a(7485),b=a(1602),T=a(6926),S=b("iterator"),P=!1;[].keys&&("next"in(A=[].keys())?(R=d(d(A)))!==Object.prototype&&(C=R):P=!0),null==C||f(function(){var I={};return C[S].call(I)!==I})?C={}:T&&(C=g(C)),v(C[S])||y(C,S,function(){return this}),p.exports={IteratorPrototype:C,BUGGY_SAFARI_ITERATORS:P}},2228:p=>{p.exports={}},3493:(p,O,a)=>{var f=a(3747);p.exports=function(v){return f(v.length)}},7462:(p,O,a)=>{var L,D,G,Y,j,q,Z,J,f=a(200),v=a(6885),g=a(7632).f,d=a(4922).set,y=a(2050),b=a(2671),T=a(4318),S=a(5223),P=f.MutationObserver||f.WebKitMutationObserver,C=f.document,R=f.process,A=f.Promise,M=g(f,"queueMicrotask"),I=M&&M.value;I||(L=function(){var X,W;for(S&&(X=R.domain)&&X.exit();D;){W=D.fn,D=D.next;try{W()}catch(pt){throw D?Y():G=void 0,pt}}G=void 0,X&&X.enter()},y||S||T||!P||!C?!b&&A&&A.resolve?((Z=A.resolve(void 0)).constructor=A,J=v(Z.then,Z),Y=function(){J(L)}):S?Y=function(){R.nextTick(L)}:(d=v(d,f),Y=function(){d(L)}):(j=!0,q=C.createTextNode(""),new P(L).observe(q,{characterData:!0}),Y=function(){q.data=j=!j})),p.exports=I||function(X){var W={fn:X,next:void 0};G&&(G.next=W),D||(D=W,Y()),G=W}},3737:(p,O,a)=>{var f=a(200);p.exports=f.Promise},1849:(p,O,a)=>{var f=a(6845),v=a(2074);p.exports=!!Object.getOwnPropertySymbols&&!v(function(){var g=Symbol();return!String(g)||!(Object(g)instanceof Symbol)||!Symbol.sham&&f&&f<41})},2886:(p,O,a)=>{var f=a(200),v=a(8420),g=a(9965),d=f.WeakMap;p.exports=v(d)&&/native code/.test(g(d))},9836:(p,O,a)=>{"use strict";var f=a(4601),v=function(g){var d,y;this.promise=new g(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(g){return new v(g)}},2588:(p,O,a)=>{var f=a(200),v=a(2449),g=f.TypeError;p.exports=function(d){if(v(d))throw g("The method doesn't accept regular expressions");return d}},3105:(p,O,a)=>{var G,f=a(3938),v=a(5318),g=a(290),d=a(7708),y=a(8890),b=a(3262),T=a(5904),C="prototype",R="script",A=T("IE_PROTO"),M=function(){},I=function(j){return"<"+R+">"+j+"</"+R+">"},L=function(j){j.write(I("")),j.close();var q=j.parentWindow.Object;return j=null,q},Y=function(){try{G=new ActiveXObject("htmlfile")}catch(q){}Y=typeof document<"u"?document.domain&&G?L(G):function(){var Z,j=b("iframe"),q="java"+R+":";return j.style.display="none",y.appendChild(j),j.src=String(q),(Z=j.contentWindow.document).open(),Z.write(I("document.F=Object")),Z.close(),Z.F}():L(G);for(var j=g.length;j--;)delete Y[C][g[j]];return Y()};d[A]=!0,p.exports=Object.create||function(q,Z){var J;return null!==q?(M[C]=f(q),J=new M,M[C]=null,J[A]=q):J=Y(),void 0===Z?J:v.f(J,Z)}},5318:(p,O,a)=>{var f=a(5077),v=a(4491),g=a(3610),d=a(3938),y=a(5476),b=a(1641);O.f=f&&!v?Object.defineProperties:function(S,P){d(S);for(var I,C=y(P),R=b(P),A=R.length,M=0;A>M;)g.f(S,I=R[M++],C[I]);return S}},3610:(p,O,a)=>{var f=a(200),v=a(5077),g=a(7694),d=a(4491),y=a(3938),b=a(6032),T=f.TypeError,S=Object.defineProperty,P=Object.getOwnPropertyDescriptor,C="enumerable",R="configurable",A="writable";O.f=v?d?function(I,L,D){if(y(I),L=b(L),y(D),"function"==typeof I&&"prototype"===L&&"value"in D&&A in D&&!D[A]){var G=P(I,L);G&&G[A]&&(I[L]=D.value,D={configurable:R in D?D[R]:G[R],enumerable:C in D?D[C]:G[C],writable:!1})}return S(I,L,D)}:S:function(I,L,D){if(y(I),L=b(L),y(D),g)try{return S(I,L,D)}catch(G){}if("get"in D||"set"in D)throw T("Accessors not supported");return"value"in D&&(I[L]=D.value),I}},7632:(p,O,a)=>{var f=a(5077),v=a(2368),g=a(9304),d=a(6843),y=a(5476),b=a(6032),T=a(6490),S=a(7694),P=Object.getOwnPropertyDescriptor;O.f=f?P:function(R,A){if(R=y(R),A=b(A),S)try{return P(R,A)}catch(M){}if(T(R,A))return d(!v(g.f,R,A),R[A])}},4789:(p,O,a)=>{var f=a(6347),g=a(290).concat("length","prototype");O.f=Object.getOwnPropertyNames||function(y){return f(y,g)}},8916:(p,O)=>{O.f=Object.getOwnPropertySymbols},7970:(p,O,a)=>{var f=a(200),v=a(6490),g=a(8420),d=a(2612),y=a(5904),b=a(7168),T=y("IE_PROTO"),S=f.Object,P=S.prototype;p.exports=b?S.getPrototypeOf:function(C){var R=d(C);if(v(R,T))return R[T];var A=R.constructor;return g(A)&&R instanceof A?A.prototype:R instanceof S?P:null}},7658:(p,O,a)=>{var f=a(281);p.exports=f({}.isPrototypeOf)},6347:(p,O,a)=>
1{var f=a(281),v=a(6490),g=a(5476),d=a(8186).indexOf,y=a(7708),b=f([].push);p.exports=function(T,S){var A,P=g(T),C=0,R=[];for(A in P)!v(y,A)&&v(P,A)&&b(R,A);for(;S.length>C;)v(P,A=S[C++])&&(~d(R,A)||b(R,A));return R}},1641:(p,O,a)=>{var f=a(6347),v=a(290);p.exports=Object.keys||function(d){return f(d,v)}},9304:(p,O)=>{"use strict";var a={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,v=f&&!a.call({1:2},1);O.f=v?function(d){var y=f(this,d);return!!y&&y.enumerable}:a},9686:(p,O,a)=>{var f=a(281),v=a(3938),g=a(7473);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(S,P){return v(S),g(P),d?b(S,P):S.__proto__=P,S}}():void 0)},9751:(p,O,a)=>{var f=a(200),v=a(2368),g=a(8420),d=a(5335),y=f.TypeError;p.exports=function(b,T){var S,P;if("string"===T&&g(S=b.toString)&&!d(P=v(S,b))||g(S=b.valueOf)&&!d(P=v(S,b))||"string"!==T&&g(S=b.toString)&&!d(P=v(S,b)))return P;throw y("Can't convert object to primitive value")}},5816:(p,O,a)=>{var f=a(6492),v=a(281),g=a(4789),d=a(8916),y=a(3938),b=v([].concat);p.exports=f("Reflect","ownKeys")||function(S){var P=g.f(y(S)),C=d.f;return C?b(P,C(S)):P}},242:p=>{p.exports=function(O){try{return{error:!1,value:O()}}catch(a){return{error:!0,value:a}}}},9803:(p,O,a)=>{var f=a(3938),v=a(5335),g=a(9836);p.exports=function(d,y){if(f(d),v(y)&&y.constructor===d)return y;var b=g.f(d);return(0,b.resolve)(y),b.promise}},7600:p=>{var O=function(){this.head=null,this.tail=null};O.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=O},3075:(p,O,a)=>{var f=a(7485);p.exports=function(v,g,d){for(var y in g)f(v,y,g[y],d);return v}},7485:(p,O,a)=>{var f=a(200),v=a(8420),g=a(6490),d=a(7712),y=a(5975),b=a(9965),T=a(9206),S=a(2071).CONFIGURABLE,P=T.get,C=T.enforce,R=String(String).split("String");(p.exports=function(A,M,I,L){var q,D=!!L&&!!L.unsafe,G=!!L&&!!L.enumerable,Y=!!L&&!!L.noTargetGet,j=L&&void 0!==L.name?L.name:M;v(I)&&("Symbol("===String(j).slice(0,7)&&(j="["+String(j).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!g(I,"name")||S&&I.name!==j)&&d(I,"name",j),(q=C(I)).source||(q.source=R.join("string"==typeof j?j:""))),A!==f?(D?!Y&&A[M]&&(G=!0):delete A[M],G?A[M]=I:d(A,M,I)):G?A[M]=I:y(M,I)})(Function.prototype,"toString",function(){return v(this)&&P(this).source||b(this)})},6793:(p,O,a)=>{var f=a(200),v=a(2368),g=a(3938),d=a(8420),y=a(8569),b=a(54),T=f.TypeError;p.exports=function(S,P){var C=S.exec;if(d(C)){var R=v(C,S,P);return null!==R&&g(R),R}if("RegExp"===y(S))return v(b,S,P);throw T("RegExp#exec called on incompatible receiver")}},54:(p,O,a)=>{"use strict";var J,X,f=a(2368),v=a(281),g=a(5362),d=a(6844),y=a(2192),b=a(2),T=a(3105),S=a(9206).get,P=a(1036),C=a(8121),R=b("native-string-replace",String.prototype.replace),A=RegExp.prototype.exec,M=A,I=v("".charAt),L=v("".indexOf),D=v("".replace),G=v("".slice),Y=(X=/b*/g,f(A,J=/a/,"a"),f(A,X,"a"),0!==J.lastIndex||0!==X.lastIndex),j=y.BROKEN_CARET,q=void 0!==/()??/.exec("")[1];(Y||q||j||P||C)&&(M=function(X){var gt,St,nt,K,Q,it,et,W=this,pt=S(W),at=g(X),lt=pt.raw;if(lt)return lt.lastIndex=W.lastIndex,gt=f(M,lt,at),W.lastIndex=lt.lastIndex,gt;var xt=pt.groups,Pt=j&&W.sticky,w=f(d,W),ft=W.source,yt=0,mt=at;if(Pt&&(w=D(w,"y",""),-1===L(w,"g")&&(w+="g"),mt=G(at,W.lastIndex),W.lastIndex>0&&(!W.multiline||W.multiline&&"\n"!==I(at,W.lastIndex-1))&&(ft="(?: "+ft+")",mt=" "+mt,yt++),St=new RegExp("^(?:"+ft+")",w)),q&&(St=new RegExp("^"+ft+"$(?!\\s)",w)),Y&&(nt=W.lastIndex),K=f(A,Pt?St:W,mt),Pt?K?(K.input=G(K.input,yt),K[0]=G(K[0],yt),K.index=W.lastIndex,W.lastIndex+=K[0].length):W.lastIndex=0:Y&&K&&(W.lastIndex=W.global?K.index+K[0].length:nt),q&&K&&K.length>1&&f(R,K[0],St,function(){for(Q=1;Q<arguments.length-2;Q++)void 0===arguments[Q]&&(K[Q]=void 0)}),K&&xt)for(K.groups=it=T(null),Q=0;Q<xt.length;Q++)it[(et=xt[Q])[0]]=K[et[1]];return K}),p.exports=M},6844:(p,O,a)=>{"use strict";var f=a(3938);p.exports=function(){var v=f(this),g="";return v.global&&(g+="g"),v.ignoreCase&&(g+="i"),v.multiline&&(g+="m"),v.dotAll&&(g+="s"),v.unicode&&(g+="u"),v.sticky&&(g+="y"),g}},2192:(p,O,a)=>
1{var f=a(2074),g=a(200).RegExp,d=f(function(){var T=g("a","y");return T.lastIndex=2,null!=T.exec("abcd")}),y=d||f(function(){return!g("a","y").sticky}),b=d||f(function(){var T=g("^r","gy");return T.lastIndex=2,null!=T.exec("str")});p.exports={BROKEN_CARET:b,MISSED_STICKY:y,UNSUPPORTED_Y:d}},1036:(p,O,a)=>{var f=a(2074),g=a(200).RegExp;p.exports=f(function(){var d=g(".","s");return!(d.dotAll&&d.exec("\n")&&"s"===d.flags)})},8121:(p,O,a)=>{var f=a(2074),g=a(200).RegExp;p.exports=f(function(){var d=g("(?<a>b)","g");return"b"!==d.exec("b").groups.a||"bc"!=="b".replace(d,"$<a>c")})},1229:(p,O,a)=>{var v=a(200).TypeError;p.exports=function(g){if(null==g)throw v("Can't call method on "+g);return g}},5975:(p,O,a)=>{var f=a(200),v=Object.defineProperty;p.exports=function(g,d){try{v(f,g,{value:d,configurable:!0,writable:!0})}catch(y){f[g]=d}return d}},3524:(p,O,a)=>{"use strict";var f=a(6492),v=a(3610),g=a(1602),d=a(5077),y=g("species");p.exports=function(b){var T=f(b);d&&T&&!T[y]&&(0,v.f)(T,y,{configurable:!0,get:function(){return this}})}},5282:(p,O,a)=>{var f=a(3610).f,v=a(6490),d=a(1602)("toStringTag");p.exports=function(y,b,T){y&&!T&&(y=y.prototype),y&&!v(y,d)&&f(y,d,{configurable:!0,value:b})}},5904:(p,O,a)=>{var f=a(2),v=a(665),g=f("keys");p.exports=function(d){return g[d]||(g[d]=v(d))}},9310:(p,O,a)=>{var f=a(200),v=a(5975),g="__core-js_shared__",d=f[g]||v(g,{});p.exports=d},2:(p,O,a)=>{var f=a(6926),v=a(9310);(p.exports=function(g,d){return v[g]||(v[g]=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"})},3444:(p,O,a)=>{var f=a(3938),v=a(7849),d=a(1602)("species");p.exports=function(y,b){var S,T=f(y).constructor;return void 0===T||null==(S=f(T)[d])?b:v(S)}},7804:(p,O,a)=>{var f=a(281),v=a(9328),g=a(5362),d=a(1229),y=f("".charAt),b=f("".charCodeAt),T=f("".slice),S=function(P){return function(C,R){var L,D,A=g(d(C)),M=v(R),I=A.length;return M<0||M>=I?P?"":void 0:(L=b(A,M))<55296||L>56319||M+1===I||(D=b(A,M+1))<56320||D>57343?P?y(A,M):L:P?T(A,M,M+2):D-56320+(L-55296<<10)+65536}};p.exports={codeAt:S(!1),charAt:S(!0)}},9233:(p,O,a)=>{var f=a(2071).PROPER,v=a(2074),g=a(5073);p.exports=function(y){return v(function(){return!!g[y]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[y]()||f&&g[y].name!==y})}},9163:(p,O,a)=>{var f=a(281),v=a(1229),g=a(5362),d=a(5073),y=f("".replace),b="["+d+"]",T=RegExp("^"+b+b+"*"),S=RegExp(b+b+"*$"),P=function(C){return function(R){var A=g(v(R));return 1&C&&(A=y(A,T,"")),2&C&&(A=y(A,S,"")),A}};p.exports={start:P(1),end:P(2),trim:P(3)}},4922:(p,O,a)=>{var J,X,W,pt,f=a(200),v=a(9070),g=a(6885),d=a(8420),y=a(6490),b=a(2074),T=a(8890),S=a(9609),P=a(3262),C=a(2050),R=a(5223),A=f.setImmediate,M=f.clearImmediate,I=f.process,L=f.Dispatch,D=f.Function,G=f.MessageChannel,Y=f.String,j=0,q={},Z="onreadystatechange";try{J=f.location}catch(nt){}var at=function(nt){if(y(q,nt)){var K=q[nt];delete q[nt],K()}},lt=function(nt){return function(){at(nt)}},gt=function(nt){at(nt.data)},St=function(nt){f.postMessage(Y(nt),J.protocol+"//"+J.host)};(!A||!M)&&(A=function(K){var Q=S(arguments,1);return q[++j]=function(){v(d(K)?K:D(K),void 0,Q)},X(j),j},M=function(K){delete q[K]},R?X=function(nt){I.nextTick(lt(nt))}:L&&L.now?X=function(nt){L.now(lt(nt))}:G&&!C?(pt=(W=new G).port2,W.port1.onmessage=gt,X=g(pt.postMessage,pt)):f.addEventListener&&d(f.postMessage)&&!f.importScripts&&J&&"file:"!==J.protocol&&!b(St)?(X=St,f.addEventListener("message",gt,!1)):X=Z in P("script")?function(nt){T.appendChild(P("script"))[Z]=function(){T.removeChild(this),at(nt)}}:function(nt){setTimeout(lt(nt),0)}),p.exports={set:A,clear:M}},6539:(p,O,a)=>{var f=a(9328),v=Math.max,g=Math.min;p.exports=function(d,y){var b=f(d);return b<0?v(b+y,0):g(b,y)}},5476:(p,O,a)=>{var f=a(8664),v=a(1229);p.exports=function(g){return f(v(g))}},9328:p=>{var O=Math.ceil,a=Math.floor;p.exports=function(f){var v=+f;return v!=v||0===v?0:(v>0?a:O)(v)}},3747:(p,O,a)=>{var f=a(9328),v=Math.min;p.exports=function(g){return g>0?v(f(g),9007199254740991):0}},2612:(p,O,a)=>{var f=a(200),v=a(1229),g=f.Object;p.exports=function(d){return g(v(d))}},874:(p,O,a)=>{var f=a(200),v=a(2368),g=a(5335),d=a(2328),y=a(6457),b=a(9751),T=a(1602),S=f.TypeError,P=T("toPrimitive");p.exports=function(C,R){if(!g(C)||d(C))return C;var M,A=y(C,P);if(A){if(void 0===R&&(R="default"),M=v(A,C,R),!g(M)||d(M))return M;throw S("Can't convert object to primitive value")}return void 0===R&&(R="number"),b(C,R)}},6032:(p,O,a)=>{var f=a(874),v=a(2328);p.exports=function(g){var d=f(g,"string");
1return v(d)?d:d+""}},3129:(p,O,a)=>{var g={};g[a(1602)("toStringTag")]="z",p.exports="[object z]"===String(g)},5362:(p,O,a)=>{var f=a(200),v=a(3062),g=f.String;p.exports=function(d){if("Symbol"===v(d))throw TypeError("Cannot convert a Symbol value to a string");return g(d)}},3838:(p,O,a)=>{var v=a(200).String;p.exports=function(g){try{return v(g)}catch(d){return"Object"}}},665:(p,O,a)=>{var f=a(281),v=0,g=Math.random(),d=f(1..toString);p.exports=function(y){return"Symbol("+(void 0===y?"":y)+")_"+d(++v+g,36)}},5225:(p,O,a)=>{var f=a(1849);p.exports=f&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4491:(p,O,a)=>{var f=a(5077),v=a(2074);p.exports=f&&v(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},1602:(p,O,a)=>{var f=a(200),v=a(2),g=a(6490),d=a(665),y=a(1849),b=a(5225),T=v("wks"),S=f.Symbol,P=S&&S.for,C=b?S:S&&S.withoutSetter||d;p.exports=function(R){if(!g(T,R)||!y&&"string"!=typeof T[R]){var A="Symbol."+R;T[R]=y&&g(S,R)?S[R]:b&&P?P(A):C(A)}return T[R]}},5073: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"},9693:(p,O,a)=>{"use strict";var f=a(1605),v=a(281),g=a(8186).indexOf,d=a(2349),y=v([].indexOf),b=!!y&&1/y([1],1,-0)<0,T=d("indexOf");f({target:"Array",proto:!0,forced:b||!T},{indexOf:function(P){var C=arguments.length>1?arguments[1]:void 0;return b?y(this,P,C)||0:g(this,P,C)}})},8665:(p,O,a)=>{"use strict";var f=a(5476),v=a(298),g=a(2228),d=a(9206),y=a(3610).f,b=a(5723),T=a(6926),S=a(5077),P="Array Iterator",C=d.set,R=d.getterFor(P);p.exports=b(Array,"Array",function(M,I){C(this,{type:P,target:f(M),index:0,kind:I})},function(){var M=R(this),I=M.target,L=M.kind,D=M.index++;return!I||D>=I.length?(M.target=void 0,{value:void 0,done:!0}):"keys"==L?{value:D,done:!1}:"values"==L?{value:I[D],done:!1}:{value:[D,I[D]],done:!1}},"values");var A=g.Arguments=g.Array;if(v("keys"),v("values"),v("entries"),!T&&S&&"values"!==A.name)try{y(A,"name",{value:"values"})}catch(M){}},533:(p,O,a)=>{"use strict";var f=a(1605),v=a(2237).left,g=a(2349),d=a(6845),y=a(5223);f({target:"Array",proto:!0,forced:!g("reduce")||!y&&d>79&&d<83},{reduce:function(P){var C=arguments.length;return v(this,P,C,C>1?arguments[1]:void 0)}})},557:(p,O,a)=>{"use strict";var f=a(1605),v=a(281),g=a(8679),d=v([].reverse),y=[1,2];f({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return g(this)&&(this.length=this.length),d(this)}})},9193:(p,O,a)=>{"use strict";var Ae,Gt,He,Ye,f=a(1605),v=a(6926),g=a(200),d=a(6492),y=a(2368),b=a(3737),T=a(7485),S=a(3075),P=a(9686),C=a(5282),R=a(3524),A=a(4601),M=a(8420),I=a(5335),L=a(5190),D=a(9965),G=a(2929),Y=a(7499),j=a(3444),q=a(4922).set,Z=a(7462),J=a(9803),X=a(9778),W=a(9836),pt=a(242),at=a(7600),lt=a(9206),gt=a(4977),St=a(1602),nt=a(8523),K=a(5223),Q=a(6845),it=St("species"),et="Promise",xt=lt.getterFor(et),Pt=lt.set,w=lt.getterFor(et),ft=b&&b.prototype,yt=b,mt=ft,Et=g.TypeError,Lt=g.document,qt=g.process,Yt=W.f,te=Yt,ge=!!(Lt&&Lt.createEvent&&g.dispatchEvent),ie=M(g.PromiseRejectionEvent),de="unhandledrejection",Le=!1,he=gt(et,function(){var H=D(yt),tt=H!==String(yt);if(!tt&&66===Q||v&&!mt.finally)return!0;if(Q>=51&&/native code/.test(H))return!1;var st=new yt(function(Dt){Dt(1)}),ot=function(Dt){Dt(function(){},function(){})};return(st.constructor={})[it]=ot,!(Le=st.then(function(){})instanceof ot)||!tt&&nt&&!ie}),Qe=he||!Y(function(H){yt.all(H).catch(function(){})}),ke=function(H){var tt;return!(!I(H)||!M(tt=H.then))&&tt},Ke=function(H,tt){var Qt,pe,_,st=tt.value,ot=1==tt.state,ct=ot?H.ok:H.fail,Dt=H.resolve,_t=H.reject,Wt=H.domain;try{ct?(ot||(2===tt.rejection&&gr(tt),tt.rejection=1),!0===ct?Qt=st:(Wt&&Wt.enter(),Qt=ct(st),Wt&&(Wt.exit(),_=!0)),Qt===H.promise?_t(Et("Promise-chain cycle")):(pe=ke(Qt))?y(pe,Qt,Dt,_t):Dt(Qt)):_t(st)}catch(De){Wt&&!_&&Wt.exit(),_t(De)}},Ze=function(H,tt){H.notified||(H.notified=!0,Z(function(){for(var ot,st=H.reactions;ot=st.get();)Ke(ot,H);H.notified=!1,tt&&!H.rejection&&cr(H)}))},Je=function(H,tt,st){var ot,ct;ge?((ot=Lt.createEvent("Event")).promise=tt,ot.reason=st,ot.initEvent(H,!1,!0),g.dispatchEvent(ot)):ot={promise:tt,reason:st},!ie&&(ct=g["on"+H])?ct(ot):H===de&&X("Unhandled promise rejection",st)},cr=function(H){y(q,g,function(){var ct,tt=H.facade,st=H.value;if(qe(H)&&(ct=pt(function(){K?qt.emit("unhandledRejection",st,tt):Je(de,tt,st)}
1),H.rejection=K||qe(H)?2:1,ct.error))throw ct.value})},qe=function(H){return 1!==H.rejection&&!H.parent},gr=function(H){y(q,g,function(){var tt=H.facade;K?qt.emit("rejectionHandled",tt):Je("rejectionhandled",tt,H.value)})},$t=function(H,tt,st){return function(ot){H(tt,ot,st)}},fe=function(H,tt,st){H.done||(H.done=!0,st&&(H=st),H.value=tt,H.state=2,Ze(H,!0))},ae=function(H,tt,st){if(!H.done){H.done=!0,st&&(H=st);try{if(H.facade===tt)throw Et("Promise can't be resolved itself");var ot=ke(tt);ot?Z(function(){var ct={done:!1};try{y(ot,tt,$t(ae,ct,H),$t(fe,ct,H))}catch(Dt){fe(ct,Dt,H)}}):(H.value=tt,H.state=1,Ze(H,!1))}catch(ct){fe({done:!1},ct,H)}}};if(he&&(yt=function(tt){L(this,mt),A(tt),y(Ae,this);var st=xt(this);try{tt($t(ae,st),$t(fe,st))}catch(ot){fe(st,ot)}},(Ae=function(tt){Pt(this,{type:et,done:!1,notified:!1,parent:!1,reactions:new at,rejection:!1,state:0,value:void 0})}).prototype=S(mt=yt.prototype,{then:function(tt,st){var ot=w(this),ct=Yt(j(this,yt));return ot.parent=!0,ct.ok=!M(tt)||tt,ct.fail=M(st)&&st,ct.domain=K?qt.domain:void 0,0==ot.state?ot.reactions.add(ct):Z(function(){Ke(ct,ot)}),ct.promise},catch:function(H){return this.then(void 0,H)}}),Gt=function(){var H=new Ae,tt=xt(H);this.promise=H,this.resolve=$t(ae,tt),this.reject=$t(fe,tt)},W.f=Yt=function(H){return H===yt||H===He?new Gt(H):te(H)},!v&&M(b)&&ft!==Object.prototype)){Ye=ft.then,Le||(T(ft,"then",function(tt,st){var ot=this;return new yt(function(ct,Dt){y(Ye,ot,ct,Dt)}).then(tt,st)},{unsafe:!0}),T(ft,"catch",mt.catch,{unsafe:!0}));try{delete ft.constructor}catch(H){}P&&P(ft,mt)}f({global:!0,wrap:!0,forced:he},{Promise:yt}),C(yt,et,!1,!0),R(et),He=d(et),f({target:et,stat:!0,forced:he},{reject:function(tt){var st=Yt(this);return y(st.reject,void 0,tt),st.promise}}),f({target:et,stat:!0,forced:v||he},{resolve:function(tt){return J(v&&this===He?yt:this,tt)}}),f({target:et,stat:!0,forced:Qe},{all:function(tt){var st=this,ot=Yt(st),ct=ot.resolve,Dt=ot.reject,_t=pt(function(){var Wt=A(st.resolve),Qt=[],pe=0,_=1;G(tt,function(De){var Nt=pe++,Xe=!1;_++,y(Wt,st,De).then(function(_e){Xe||(Xe=!0,Qt[Nt]=_e,--_||ct(Qt))},Dt)}),--_||ct(Qt)});return _t.error&&Dt(_t.value),ot.promise},race:function(tt){var st=this,ot=Yt(st),ct=ot.reject,Dt=pt(function(){var _t=A(st.resolve);G(tt,function(Wt){y(_t,st,Wt).then(ot.resolve,ct)})});return Dt.error&&ct(Dt.value),ot.promise}})},7136:(p,O,a)=>{"use strict";var f=a(1605),v=a(54);f({target:"RegExp",proto:!0,forced:/./.exec!==v},{exec:v})},6048:(p,O,a)=>{"use strict";var f=a(281),v=a(2071).PROPER,g=a(7485),d=a(3938),y=a(7658),b=a(5362),T=a(2074),S=a(6844),P="toString",C=RegExp.prototype,R=C[P],A=f(S);(T(function(){return"/a/b"!=R.call({source:"a",flags:"b"})})||v&&R.name!=P)&&g(RegExp.prototype,P,function(){var D=d(this),G=b(D.source),Y=D.flags;return"/"+G+"/"+b(void 0===Y&&y(C,D)&&!("flags"in C)?A(D):Y)},{unsafe:!0})},7500:(p,O,a)=>{"use strict";var L,f=a(1605),v=a(281),g=a(7632).f,d=a(3747),y=a(5362),b=a(2588),T=a(1229),S=a(4177),P=a(6926),C=v("".endsWith),R=v("".slice),A=Math.min,M=S("endsWith");f({target:"String",proto:!0,forced:!(!P&&!M&&(L=g(String.prototype,"endsWith"),L&&!L.writable)||M)},{endsWith:function(D){var G=y(T(this));b(D);var Y=arguments.length>1?arguments[1]:void 0,j=G.length,q=void 0===Y?j:A(d(Y),j),Z=y(D);return C?C(G,Z,q):R(G,q-Z.length,q)===Z}})},3148:(p,O,a)=>{"use strict";var f=a(1605),v=a(281),g=a(2588),d=a(1229),y=a(5362),b=a(4177),T=v("".indexOf);f({target:"String",proto:!0,forced:!b("includes")},{includes:function(P){return!!~T(y(d(this)),y(g(P)),arguments.length>1?arguments[1]:void 0)}})},8636:(p,O,a)=>{"use strict";var f=a(2368),v=a(779),g=a(3938),d=a(3747),y=a(5362),b=a(1229),T=a(6457),S=a(7234),P=a(6793);v("match",function(C,R,A){return[function(I){var L=b(this),D=null==I?void 0:T(I,C);return D?f(D,I,L):new RegExp(I)[C](y(L))},function(M){var I=g(this),L=y(M),D=A(R,I,L);if(D.done)return D.value;if(!I.global)return P(I,L);var G=I.unicode;I.lastIndex=0;for(var q,Y=[],j=0;null!==(q=P(I,L));){var Z=y(q[0]);Y[j]=Z,""===Z&&(I.lastIndex=S(L,d(I.lastIndex),G)),j++}return 0===j?null:Y}]})},173:(p,O,a)=>{"use strict";var f=a(9070),v=a(2368),g=a(281),d=a(779),y=a(2074),b=a(3938),T=a(8420),S=a(9328),P=a(3747),C=a(5362),R=a(1229),A=a(7234),M=a(6457),I=a(4433),L=a(6793),G=a(1602)("replace"),Y=Math.max,j=Math.min,q=g([].concat),Z=g([].push),J=g("".indexOf),X=g("".slice),W=function(gt){return void 0===gt?gt:String(gt)},pt="$0"==="a".replace(/./,"$0"),at=!!/./[G]&&""===/./[G]("a","$0");
vendor: 1,094 bytes, line 1
1d("replace",function(gt,St,nt){var K=at?"$":"$0";return[function(it,et){var xt=R(this),Pt=null==it?void 0:M(it,G);return Pt?v(Pt,it,xt,et):v(St,C(xt),it,et)},function(Q,it){var et=b(this),xt=C(Q);if("string"==typeof it&&-1===J(it,K)&&-1===J(it,"$<")){var Pt=nt(St,et,xt,it);if(Pt.done)return Pt.value}var w=T(it);w||(it=C(it));var ft=et.global;if(ft){var yt=et.unicode;et.lastIndex=0}for(var mt=[];;){var Et=L(et,xt);if(null===Et||(Z(mt,Et),!ft))break;""===C(Et[0])&&(et.lastIndex=A(xt,P(et.lastIndex),yt))}for(var qt="",Yt=0,te=0;te<mt.length;te++){for(var ge=C((Et=mt[te])[0]),ie=Y(j(S(Et.index),xt.length),0),de=[],Se=1;Se<Et.length;Se++)Z(de,W(Et[Se]));var ne=Et.groups;if(w){var Oe=q([ge],de,ie,xt);void 0!==ne&&Z(Oe,ne);var Ve=C(f(it,void 0,Oe))}else Ve=I(ge,xt,ie,de,ne,it);ie>=Yt&&(qt+=X(xt,Yt,ie)+Ve,Yt=ie+ge.length)}return qt+X(xt,Yt)}]},!!y(function(){var gt=/./;return gt.exec=function(){var St=[];return St.groups={a:"7"},St},"7"!=="".replace(gt,"$<a>")})||!pt||at)},8649:(p,O,a)=>{"use strict";var f=a(9070),v=a(2368),g=a(281),d=a(779),y=a(2449),b=a(3938),T=a(1229),S=a(3444),P=a(
vendor: 71,182 bytes, line 1
17234),C=a(3747),R=a(5362),A=a(6457),M=a(6056),I=a(6793),L=a(54),D=a(2192),G=a(2074),Y=D.UNSUPPORTED_Y,j=4294967295,q=Math.min,Z=[].push,J=g(/./.exec),X=g(Z),W=g("".slice);d("split",function(at,lt,gt){var St;return St="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(nt,K){var Q=R(T(this)),it=void 0===K?j:K>>>0;if(0===it)return[];if(void 0===nt)return[Q];if(!y(nt))return v(lt,Q,nt,it);for(var ft,yt,mt,et=[],Pt=0,w=new RegExp(nt.source,(nt.ignoreCase?"i":"")+(nt.multiline?"m":"")+(nt.unicode?"u":"")+(nt.sticky?"y":"")+"g");(ft=v(L,w,Q))&&!((yt=w.lastIndex)>Pt&&(X(et,W(Q,Pt,ft.index)),ft.length>1&&ft.index<Q.length&&f(Z,et,M(ft,1)),mt=ft[0].length,Pt=yt,et.length>=it));)w.lastIndex===ft.index&&w.lastIndex++;return Pt===Q.length?(mt||!J(w,""))&&X(et,""):X(et,W(Q,Pt)),et.length>it?M(et,0,it):et}:"0".split(void 0,0).length?function(nt,K){return void 0===nt&&0===K?[]:v(lt,this,nt,K)}:lt,[function(K,Q){var it=T(this),et=null==K?void 0:A(K,at);return et?v(et,K,it,Q):v(St,R(it),K,Q)},function(nt,K){var Q=b(this),it=R(nt),et=gt(St,Q,it,K,St!==lt);if(et.done)return et.value;var xt=S(Q,RegExp),Pt=Q.unicode,ft=new xt(Y?"^(?:"+Q.source+")":Q,(Q.ignoreCase?"i":"")+(Q.multiline?"m":"")+(Q.unicode?"u":"")+(Y?"g":"y")),yt=void 0===K?j:K>>>0;if(0===yt)return[];if(0===it.length)return null===I(ft,it)?[it]:[];for(var mt=0,Et=0,Lt=[];Et<it.length;){ft.lastIndex=Y?0:Et;var Yt,qt=I(ft,Y?W(it,Et):it);if(null===qt||(Yt=q(C(ft.lastIndex+(Y?Et:0)),it.length))===mt)Et=P(it,Et,Pt);else{if(X(Lt,W(it,mt,Et)),Lt.length===yt)return Lt;for(var te=1;te<=qt.length-1;te++)if(X(Lt,qt[te]),Lt.length===yt)return Lt;Et=mt=Yt}}return X(Lt,W(it,mt)),Lt}]},!!G(function(){var at=/(?:)/,lt=at.exec;at.exec=function(){return lt.apply(this,arguments)};var gt="ab".split(at);return 2!==gt.length||"a"!==gt[0]||"b"!==gt[1]}),Y)},4989:(p,O,a)=>{"use strict";var L,f=a(1605),v=a(281),g=a(7632).f,d=a(3747),y=a(5362),b=a(2588),T=a(1229),S=a(4177),P=a(6926),C=v("".startsWith),R=v("".slice),A=Math.min,M=S("startsWith");f({target:"String",proto:!0,forced:!(!P&&!M&&(L=g(String.prototype,"startsWith"),L&&!L.writable)||M)},{startsWith:function(D){var G=y(T(this));b(D);var Y=d(A(arguments.length>1?arguments[1]:void 0,G.length)),j=y(D);return C?C(G,j,Y):R(G,Y,Y+j.length)===j}})},8329:(p,O,a)=>{"use strict";var f=a(1605),v=a(9163).trim;f({target:"String",proto:!0,forced:a(9233)("trim")},{trim:function(){return v(this)}})},4602:(p,O,a)=>{var f=a(200),v=a(5549),g=a(2975),d=a(8665),y=a(7712),b=a(1602),T=b("iterator"),S=b("toStringTag"),P=d.values,C=function(A,M){if(A){if(A[T]!==P)try{y(A,T,P)}catch(L){A[T]=P}if(A[S]||y(A,S,M),v[M])for(var I in d)if(A[I]!==d[I])try{y(A,I,d[I])}catch(L){A[I]=d[I]}}};for(var R in v)C(f[R]&&f[R].prototype,R);C(g,"DOMTokenList")},4687:(p,O,a)=>{"use strict";a.r(O),a.d(O,{AElement:()=>rn,AnimateColorElement:()=>Zr,AnimateElement:()=>nr,AnimateTransformElement:()=>Jr,BoundingBox:()=>ee,CB1:()=>ot,CB2:()=>ct,CB3:()=>Dt,CB4:()=>_t,Canvg:()=>Re,CircleElement:()=>zr,ClipPathElement:()=>cn,DefsElement:()=>Wr,DescElement:()=>En,Document:()=>bn,Element:()=>It,EllipseElement:()=>Gr,FeColorMatrixElement:()=>br,FeCompositeElement:()=>yn,FeDropShadowElement:()=>dn,FeGaussianBlurElement:()=>mn,FeMorphologyElement:()=>pn,FilterElement:()=>gn,Font:()=>Ce,FontElement:()=>qr,FontFaceElement:()=>_r,GElement:()=>rr,GlyphElement:()=>mr,GradientElement:()=>Tr,ImageElement:()=>sn,LineElement:()=>Hr,LinearGradientElement:()=>Qr,MarkerElement:()=>$r,MaskElement:()=>fn,Matrix:()=>pr,MissingGlyphElement:()=>tn,Mouse:()=>Xe,PSEUDO_ZERO:()=>ae,Parser:()=>tr,PathElement:()=>Ot,PathParser:()=>ut,PatternElement:()=>Xr,Point:()=>Nt,PolygonElement:()=>Yr,PolylineElement:()=>Er,Property:()=>_,QB1:()=>Wt,QB2:()=>Qt,QB3:()=>pe,RadialGradientElement:()=>kr,RectElement:()=>xr,RenderedElement:()=>ye,Rotate:()=>Dr,SVGElement:()=>Fe,SVGFontLoader:()=>ln,Scale:()=>Fr,Screen:()=>dr,Skew:()=>yr,SkewX:()=>Br,SkewY:()=>Ur,StopElement:()=>Kr,StyleElement:()=>un,SymbolElement:()=>on,TRefElement:()=>en,TSpanElement:()=>$e,TextElement:()=>ve,TextPathElement:()=>an,TitleElement:()=>xn,Transform:()=>er,Translate:()=>Lr,UnknownElement:()=>jr,UseElement:()=>hn,ViewPort:()=>De,compressSpaces:()=>se,default:()=>Re,getSelectorSpecificity:()=>fe,normalizeAttributeName:()=>Ye,normalizeColor:()=>Qe,parseExternalUrl:()=>he,presets:()=>Ge,toNumbers:()=>Gt,trimLeft:()=>Le,trimRight:()=>Ae,vectorMagnitude:()=>H,vectorsAngle:()=>st,vectorsRatio:()=>tt}),a(9193);var v=a(467),S=(a(8636),a(173),a(4989),a(8665),a(4602),a(1660)),A=(a(533),a(7500),a(8649),a(6742)),I=(a(8329),a(6310)),Y=(a(9693),a(3148),a(557),function(u,t){return(Y=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 j(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}Y(u,t),u.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}function Z(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 J(){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 X=Math.PI;function W(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=Z([(t-i)/2,(e-o)/2],-u.xRot/180*X),l=s[0],h=s[1],c=Math.pow(l,2)/Math.pow(r,2)+Math.pow(h,2)/Math.pow(n,2);1<c&&(r*=Math.sqrt(c),n*=Math.sqrt(c)),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,N=-n*l/r*E,V=Z([m,N],u.xRot/180*X);u.cX=V[0]+(t+i)/2,u.cY=V[1]+(e+o)/2,u.phi1=Math.atan2((h-N)/n,(l-m)/r),u.phi2=Math.atan2((-h-N)/n,(-l-m)/r),0===u.sweepFlag&&u.phi2>u.phi1&&(u.phi2-=2*X),1===u.sweepFlag&&u.phi2<u.phi1&&(u.phi2+=2*X),u.phi1*=180/X,u.phi2*=180/X}function pt(u,t,e){J(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 at,lt=Math.PI/180;function gt(u,t,e){return(1-e)*u+e*t}function St(u,t,e,r){return u+Math.cos(r/180*X)*t+Math.sin(r/180*X)*e}function nt(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(c,x,E){void 0===E&&(E=1e-6);var m=c*c/4-x;if(m<-E)return[];if(m<=E)return[-c/2];var N=Math.sqrt(m);return[-c/2-N,-c/2+N]}(l/s,h/s,n)}function K(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,c=NaN;return n(function(x,E,m){return x.type&w.SMOOTH_CURVE_TO&&(x.type=w.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&w.CURVE_TO?(s=x.relative?E+x.x2:x.x2,l=x.relative?m+x.y2:x.y2):(s=NaN,l=NaN),x.type&w.SMOOTH_QUAD_TO&&(x.type=w.QUAD_TO,h=isNaN(h)?E:h,c=isNaN(c)?m:c,x.x1=x.relative?E-h:2*E-h,x.y1=x.relative?m-c:2*m-c),x.type&w.QUAD_TO?(h=x.relative?E+x.x1:x.x1,c=x.relative?m+x.y1:x.y1):(h=NaN,c=NaN),x})}function r(){var s=NaN,l=NaN;return n(function(h,c,x){if(h.type&w.SMOOTH_QUAD_TO&&(h.type=w.QUAD_TO,s=isNaN(s)?c:s,l=isNaN(l)?x:l,h.x1=h.relative?c-s:2*c-s,h.y1=h.relative?x-l:2*x-l),h.type&w.QUAD_TO){s=h.relative?c+h.x1:h.x1,l=h.relative?x+h.y1:h.y1;var E=h.x1,m=h.y1;h.type=w.CURVE_TO,h.x1=((h.relative?0:c)+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,c=NaN,x=NaN;return function(E){if(isNaN(c)&&!(E.type&w.MOVE_TO))throw new Error("path must start with moveto");var m=s(E,l,h,c,x);return E.type&w.CLOSE_PATH&&(l=c,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&w.MOVE_TO&&(c=l,x=h),m}}function i(s,l,h,c,x,E){return J(s,l,h,c,x,E),n(function(m,N,V,F){var B=m.x1,k=m.x2,z=m.relative&&!isNaN(F),U=void 0!==m.x?m.x:z?0:N,rt=void 0!==m.y?m.y:z?0:V;function ht(Ht){return Ht*Ht}m.type&w.HORIZ_LINE_TO&&0!==l&&(m.type=w.LINE_TO,m.y=m.relative?0:V),m.type&w.VERT_LINE_TO&&0!==h&&(m.type=w.LINE_TO,m.x=m.relative?0:N),void 0!==m.x&&(m.x=m.x*s+rt*h+(z?0:x)),void 0!==m.y&&(m.y=U*l+m.y*c+(z?0:E)),void 0!==m.x1&&(m.x1=m.x1*s+m.y1*h+(z?0:x)),void 0!==m.y1&&(m.y1=B*l+m.y1*c+(z?0:E)),void 0!==m.x2&&(m.x2=m.x2*s+m.y2*h+(z?0:x)),void 0!==m.y2&&(m.y2=k*l+m.y2*c+(z?0:E));var $=s*c-l*h;if(void 0!==m.xRot&&(1!==s||0!==l||0!==h||1!==c))if(0===$)delete m.rX,delete m.rY,delete m.xRot,delete m.lArcFlag,delete m.sweepFlag,m.type=w.LINE_TO;else{var vt=m.xRot*Math.PI/180,dt=Math.sin(vt),bt=Math.cos(vt),At=1/ht(m.rX),Rt=1/ht(m.rY),Bt=ht(bt)*At+ht(dt)*Rt,Ut=2*dt*bt*(At-Rt),Mt=ht(dt)*At+ht(bt)*Rt,Vt=Bt*c*c-Ut*l*c+Mt*l*l,wt=Ut*(s*c+l*h)-2*(Bt*h*c+Mt*s*l),zt=Bt*h*h-Ut*s*h+Mt*s*s,Ct=(Math.atan2(wt,Vt-zt)+Math.PI)%Math.PI/2,Tt=Math.sin(Ct),jt=Math.cos(Ct);m.rX=Math.abs($)/Math.sqrt(Vt*ht(jt)+wt*Tt*jt+zt*ht(Tt)),m.rY=Math.abs($)/Math.sqrt(Vt*ht(Tt)-wt*Tt*jt+zt*ht(jt)),m.xRot=180*Ct/Math.PI}return void 0!==m.sweepFlag&&0>$&&(m.sweepFlag=+!m.sweepFlag),m})}u.ROUND=function(s){function l(h){return Math.round(h*s)/s}return void 0===s&&(s=1e13),J(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(c,x,E,m,N){if(isNaN(m)&&!(c.type&w.MOVE_TO))throw new Error("path must start with moveto");return l&&c.type&w.HORIZ_LINE_TO&&(c.type=w.LINE_TO,c.y=c.relative?0:E),h&&c.type&w.VERT_LINE_TO&&(c.type=w.LINE_TO,c.x=c.relative?0:x),s&&c.type&w.CLOSE_PATH&&(c.type=w.LINE_TO,c.x=c.relative?m-x:m,c.y=c.relative?N-E:N),c.type&w.ARC&&(0===c.rX||0===c.rY)&&(c.type=w.LINE_TO,delete c.rX,delete c.rY,delete c.xRot,delete c.lArcFlag,delete c.sweepFlag),c})},u.NORMALIZE_ST=e,u.QT_TO_C=r,u.INFO=n,u.SANITIZE=function(s){void 0===s&&(s=0),J(s);var l=NaN,h=NaN,c=NaN,x=NaN;return n(function(E,m,N,V,F){var B=Math.abs,k=!1,z=0,U=0;if(E.type&w.SMOOTH_CURVE_TO&&(z=isNaN(l)?0:m-l,U=isNaN(h)?0:N-h),E.type&(w.CURVE_TO|w.SMOOTH_CURVE_TO)?(l=E.relative?m+E.x2:E.x2,h=E.relative?N+E.y2:E.y2):(l=NaN,h=NaN),E.type&w.SMOOTH_QUAD_TO?(c=isNaN(c)?m:2*m-c,x=isNaN(x)?N:2*N-x):E.type&w.QUAD_TO?(c=E.relative?m+E.x1:E.x1,x=E.relative?N+E.y1:E.y2):(c=NaN,x=NaN),E.type&w.LINE_COMMANDS||E.type&w.ARC&&(0===E.rX||0===E.rY||!E.lArcFlag)||E.type&w.CURVE_TO||E.type&w.SMOOTH_CURVE_TO||E.type&w.QUAD_TO||E.type&w.SMOOTH_QUAD_TO){var rt=void 0===E.x?0:E.relative?E.x:E.x-m,ht=void 0===E.y?0:E.relative?E.y:E.y-N;z=isNaN(c)?void 0===E.x1?z:E.relative?E.x:E.x1-m:c-m,U=isNaN(x)?void 0===E.y1?U:E.relative?E.y:E.y1-N:x-N;var $=void 0===E.x2?0:E.relative?E.x:E.x2-m,vt=void 0===E.y2?0:E.relative?E.y:E.y2-N;B(rt)<=s&&B(ht)<=s&&B(z)<=s&&B(U)<=s&&B($)<=s&&B(vt)<=s&&(k=!0)}return E.type&w.CLOSE_PATH&&B(m-V)<=s&&B(N-F)<=s&&(k=!0),k?[]:E})},u.MATRIX=i,u.ROTATE=function(s,l,h){void 0===l&&(l=0),void 0===h&&(h=0),J(s,l,h);var c=Math.sin(s),x=Math.cos(s);return i(x,c,-c,x,l-l*x+h*c,h-l*c-h*x)},u.TRANSLATE=function(s,l){return void 0===l&&(l=0),J(s,l),i(1,0,0,1,s,l)},u.SCALE=function(s,l){return void 0===l&&(l=s),J(s,l),i(s,0,0,l,0,0)},u.SKEW_X=function(s){return J(s),i(1,0,Math.atan(s),1,0,0)},u.SKEW_Y=function(s){return J(s),i(1,Math.atan(s),0,1,0,0)},u.X_AXIS_SYMMETRY=function(s){return void 0===s&&(s=0),J(s),i(-1,0,0,1,s,0)},u.Y_AXIS_SYMMETRY=function(s){return void 0===s&&(s=0),J(s),i(1,0,0,-1,0,s)},u.A_TO_C=function(){return n(function(s,l,h){return w.ARC===s.type?function(c,x,E){var m,N,V,F;c.cX||W(c,x,E);for(var B=Math.min(c.phi1,c.phi2),k=Math.max(c.phi1,c.phi2)-B,z=Math.ceil(k/90),U=new Array(z),rt=x,ht=E,$=0;$<z;$++){var vt=gt(c.phi1,c.phi2,$/z),dt=gt(c.phi1,c.phi2,($+1)/z),At=4/3*Math.tan((dt-vt)*lt/4),Rt=[Math.cos(vt*lt)-At*Math.sin(vt*lt),Math.sin(vt*lt)+At*Math.cos(vt*lt)],Bt=Rt[0],Ut=Rt[1],Mt=[Math.cos(dt*lt),Math.sin(dt*lt)],Vt=Mt[0],wt=Mt[1],zt=[Vt+At*Math.sin(dt*lt),wt-At*Math.cos(dt*lt)],Ct=zt[0],Tt=zt[1];U[$]={relative:c.relative,type:w.CURVE_TO};var jt=function(Ht,kt){var Xt=Z([Ht*c.rX,kt*c.rY],c.xRot);return[c.cX+Xt[0],c.cY+Xt[1]]};m=jt(Bt,Ut),U[$].x1=m[0],U[$].y1=m[1],N=jt(Ct,Tt),U[$].x2=N[0],U[$].y2=N[1],V=jt(Vt,wt),U[$].x=V[0],U[$].y=V[1],c.relative&&(U[$].x1-=rt,U[$].y1-=ht,U[$].x2-=rt,U[$].y2-=ht,U[$].x-=rt,U[$].y-=ht),rt=(F=[U[$].x,U[$].y])[0],ht=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),w.ARC===s.type&&W(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(),c=e(),x=n(function(E,m,N){var V=c(h(l(function(E){var m={};for(var N in E)m[N]=E[N];return m}(E))));function F(Tt){Tt>x.maxX&&(x.maxX=Tt),Tt<x.minX&&(x.minX=Tt)}function B(Tt){Tt>x.maxY&&(x.maxY=Tt),Tt<x.minY&&(x.minY=Tt)}if(V.type&w.DRAWING_COMMANDS&&(F(m),B(N)),V.type&w.HORIZ_LINE_TO&&F(V.x),V.type&w.VERT_LINE_TO&&B(V.y),V.type&w.LINE_TO&&(F(V.x),B(V.y)),V.type&w.CURVE_TO){F(V.x),B(V.y);for(var k=0,z=nt(m,V.x1,V.x2,V.x);k<z.length;k++)0<(Ct=z[k])&&1>Ct&&F(K(m,V.x1,V.x2,V.x,Ct));for(var U=0,rt=nt(N,V.y1,V.y2,V.y);U<rt.length;U++)0<(Ct=rt[U])&&1>Ct&&B(K(N,V.y1,V.y2,V.y,Ct))}if(V.type&w.ARC){F(V.x),B(V.y),W(V,m,N);for(var ht=V.xRot/180*Math.PI,$=Math.cos(ht)*V.rX,vt=Math.sin(ht)*V.rX,dt=-Math.sin(ht)*V.rY,bt=Math.cos(ht)*V.rY,At=V.phi1<V.phi2?[V.phi1,V.phi2]:-180>V.phi2?[V.phi2+360,V.phi1+360]:[V.phi2,V.phi1],Rt=At[0],Bt=At[1],Ut=function(Tt){var kt=180*Math.atan2(Tt[1],Tt[0])/Math.PI;return kt<Rt?kt+360:kt},Mt=0,Vt=pt(dt,-$,0).map(Ut);Mt<Vt.length;Mt++)(Ct=Vt[Mt])>Rt&&Ct<Bt&&F(St(V.cX,$,dt,Ct));for(var wt=0,zt=pt(bt,-vt,0).map(Ut);wt<zt.length;wt++){var Ct;(Ct=zt[wt])>Rt&&Ct<Bt&&B(St(V.cY,vt,bt,Ct))}}return E});return x.minX=1/0,x.maxX=-1/0,x.minY=1/0,x.maxY=-1/0,x}}(at||(at={}));var Q,it=function(){function u(){}return u.prototype.round=function(t){return this.transform(at.ROUND(t))},u.prototype.toAbs=function(){return this.transform(at.TO_ABS())},u.prototype.toRel=function(){return this.transform(at.TO_REL())},u.prototype.normalizeHVZ=function(t,e,r){return this.transform(at.NORMALIZE_HVZ(t,e,r))},u.prototype.normalizeST=function(){return this.transform(at.NORMALIZE_ST())},u.prototype.qtToC=function(){return this.transform(at.QT_TO_C())},u.prototype.aToC=function(){return this.transform(at.A_TO_C())},u.prototype.sanitize=function(t){return this.transform(at.SANITIZE(t))},u.prototype.translate=function(t,e){return this.transform(at.TRANSLATE(t,e))},u.prototype.scale=function(t,e){return this.transform(at.SCALE(t,e))},u.prototype.rotate=function(t,e,r){return this.transform(at.ROTATE(t,e,r))},u.prototype.matrix=function(t,e,r,n,i,o){return this.transform(at.MATRIX(t,e,r,n,i,o))},u.prototype.skewX=function(t){return this.transform(at.SKEW_X(t))},u.prototype.skewY=function(t){return this.transform(at.SKEW_Y(t))},u.prototype.xSymmetry=function(t){return this.transform(at.X_AXIS_SYMMETRY(t))},u.prototype.ySymmetry=function(t){return this.transform(at.Y_AXIS_SYMMETRY(t))},u.prototype.annotateArcs=function(){return this.transform(at.ANNOTATE_ARCS())},u}(),et=function(u){return" "===u||"\t"===u||"\r"===u||"\n"===u},xt=function(u){return 48<=u.charCodeAt(0)&&u.charCodeAt(0)<=57},Pt=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 j(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!==w.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),h=xt(s)&&("0"===this.curNumber&&"0"===s||l);if(!xt(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 c=Number(this.curNumber);if(isNaN(c))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===w.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>c)throw new SyntaxError('Expected positive number, got "'+c+'" 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(c),this.curArgs.length===ft[this.curCommandType]&&(w.HORIZ_LINE_TO===this.curCommandType?i({type:w.HORIZ_LINE_TO,relative:this.curCommandRelative,x:c}):w.VERT_LINE_TO===this.curCommandType?i({type:w.VERT_LINE_TO,relative:this.curCommandRelative,y:c}):this.curCommandType===w.MOVE_TO||this.curCommandType===w.LINE_TO||this.curCommandType===w.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),w.MOVE_TO===this.curCommandType&&(this.curCommandType=w.LINE_TO)):this.curCommandType===w.CURVE_TO?i({type:w.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===w.SMOOTH_CURVE_TO?i({type:w.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.QUAD_TO?i({type:w.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.ARC&&i({type:w.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(!et(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=w.HORIZ_LINE_TO,this.curCommandRelative="h"===s;else if("v"===s||"V"===s)this.curCommandType=w.VERT_LINE_TO,this.curCommandRelative="v"===s;else if("m"===s||"M"===s)this.curCommandType=w.MOVE_TO,this.curCommandRelative="m"===s;else if("l"===s||"L"===s)this.curCommandType=w.LINE_TO,this.curCommandRelative="l"===s;else if("c"===s||"C"===s)this.curCommandType=w.CURVE_TO,this.curCommandRelative="c"===s;else if("s"===s||"S"===s)this.curCommandType=w.SMOOTH_CURVE_TO,this.curCommandRelative="s"===s;else if("q"===s||"Q"===s)this.curCommandType=w.QUAD_TO,this.curCommandRelative="q"===s;else if("t"===s||"T"===s)this.curCommandType=w.SMOOTH_QUAD_TO,this.curCommandRelative="t"===s;else{if("a"!==s&&"A"!==s)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=w.ARC,this.curCommandRelative="a"===s}else r.push({type:w.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}(it),w=function(u){function t(e){var r=u.call(this)||this;return r.commands="string"==typeof e?t.parse(e):e,r}return j(t,u),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=at.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 q(u){var t="";Array.isArray(u)||(u=[u]);for(var e=0;e<u.length;e++){var r=u[e];if(r.type===w.CLOSE_PATH)t+="z";else if(r.type===w.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===w.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===w.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===w.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===w.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===w.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===w.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===w.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==w.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 Pt,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}(it),ft=((Q={})[w.MOVE_TO]=2,Q[w.LINE_TO]=2,Q[w.HORIZ_LINE_TO]=1,Q[w.VERT_LINE_TO]=1,Q[w.CLOSE_PATH]=0,Q[w.QUAD_TO]=4,Q[w.SMOOTH_QUAD_TO]=2,Q[w.CURVE_TO]=6,Q[w.SMOOTH_CURVE_TO]=4,Q[w.ARC]=7,Q);function mt(u){return(mt="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(6048);var Lt=[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],qt=[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 ge(u,t,e,r,n,i){if(!(isNaN(i)||i<1)){i|=0;var o=function te(u,t,e,r,n){if("string"==typeof u&&(u=document.getElementById(u)),!u||"object"!==mt(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 ie(u,t,e,r,n,i){for(var N,o=u.data,s=2*i+1,l=r-1,h=n-1,c=i+1,x=c*(c+1)/2,E=new ne,m=E,V=1;V<s;V++)m=m.next=new ne,V===c&&(N=m);m.next=E;for(var F=null,B=null,k=0,z=0,U=Lt[i],rt=qt[i],ht=0;ht<n;ht++){m=E;for(var $=o[z],vt=o[z+1],dt=o[z+2],bt=o[z+3],At=0;At<c;At++)m.r=$,m.g=vt,m.b=dt,m.a=bt,m=m.next;for(var Rt=0,Bt=0,Ut=0,Mt=0,Vt=c*$,wt=c*vt,zt=c*dt,Ct=c*bt,Tt=x*$,jt=x*vt,Ht=x*dt,kt=x*bt,Xt=1;Xt<c;Xt++){var Kt=z+((l<Xt?l:Xt)<<2),re=o[Kt],oe=o[Kt+1],Be=o[Kt+2],Ue=o[Kt+3],me=c-Xt;Tt+=(m.r=re)*me,jt+=(m.g=oe)*me,Ht+=(m.b=Be)*me,kt+=(m.a=Ue)*me,Rt+=re,Bt+=oe,Ut+=Be,Mt+=Ue,m=m.next}F=E,B=N;for(var xe=0;xe<r;xe++){var Ee=kt*U>>rt;if(o[z+3]=Ee,0!==Ee){var Te=255/Ee;o[z]=(Tt*U>>rt)*Te,o[z+1]=(jt*U>>rt)*Te,o[z+2]=(Ht*U>>rt)*Te}else o[z]=o[z+1]=o[z+2]=0;Tt-=Vt,jt-=wt,Ht-=zt,kt-=Ct,Vt-=F.r,wt-=F.g,zt-=F.b,Ct-=F.a;var le=xe+i+1;Tt+=Rt+=F.r=o[le=k+(le<l?le:l)<<2],jt+=Bt+=F.g=o[le+1],Ht+=Ut+=F.b=o[le+2],kt+=Mt+=F.a=o[le+3],F=F.next;var je=B.r,ze=B.g,Ne=B.b,We=B.a;Vt+=je,wt+=ze,zt+=Ne,Ct+=We,Rt-=je,Bt-=ze,Ut-=Ne,Mt-=We,B=B.next,z+=4}k+=r}for(var ue=0;ue<r;ue++){var Me=o[z=ue<<2],Ie=o[z+1],we=o[z+2],Zt=o[z+3],Or=c*Me,Ar=c*Ie,Cr=c*we,Pr=c*Zt,or=x*Me,lr=x*Ie,ur=x*we,hr=x*Zt;m=E;for(var On=0;On<c;On++)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=c-fr;or+=(m.r=Me=o[z=An+ue<<2])*vr,lr+=(m.g=Ie=o[z+1])*vr,ur+=(m.b=we=o[z+2])*vr,hr+=(m.a=Zt=o[z+3])*vr,Ir+=Me,Rr+=Ie,Nr+=we,Mr+=Zt,m=m.next,fr<h&&(An+=r)}z=ue,F=E,B=N;for(var wr=0;wr<n;wr++){var Jt=z<<2;o[Jt+3]=Zt=hr*U>>rt,Zt>0?(o[Jt]=(or*U>>rt)*(Zt=255/Zt),o[Jt+1]=(lr*U>>rt)*Zt,o[Jt+2]=(ur*U>>rt)*Zt):o[Jt]=o[Jt+1]=o[Jt+2]=0,or-=Or,lr-=Ar,ur-=Cr,hr-=Pr,Or-=F.r,Ar-=F.g,Cr-=F.b,Pr-=F.a,Jt=ue+((Jt=wr+c)<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,Ar+=Ie=B.g,Cr+=we=B.b,Pr+=Zt=B.a,Ir-=Me,Rr-=Ie,Nr-=we,Mr-=Zt,B=B.next,z+=r}}return u}(o,0,0,r,n,i),u.getContext("2d").putImageData(o,t,e)}}var ne=function u(){(function Et(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},Ge=Object.freeze({__proto__:null,offscreen:function Oe(){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=>(0,v.A)(function*(){var r=yield fetch(e),n=yield r.blob();return yield createImageBitmap(n)})()};return(typeof DOMParser<"u"||typeof u>"u")&&Reflect.deleteProperty(t,"DOMParser"),t},node:function Ve(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 se(u){return u.replace(/(?!\u3000)\s+/gm," ")}function Le(u){return u.replace(/^[\n \t]+/,"")}function Ae(u){return u.replace(/[\n \t]+$/,"")}function Gt(u){return((u||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var He=/^[A-Z-]+$/;function Ye(u){return He.test(u)?u.toLowerCase():u}function he(u){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(u)||[];return t[2]||t[3]||t[4]}function Qe(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,Je=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,cr=/(:[\w-]+\([^)]*\))/gi,qe=/(:[^\s+>~.[:]+)/g,gr=/([^\s+>~.[:]+)/g;function $t(u,t){var e=t.exec(u);return e?[u.replace(t," "),e.length]:[u,0]}function fe(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,Je),t[2]+=r,[e,r]=$t(e,cr),t[1]+=r,[e,r]=$t(e,qe),t[1]+=r,e=e.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[e,r]=$t(e,gr),t[2]+=r,t.join("")}var ae=1e-8;function H(u){return Math.sqrt(Math.pow(u[0],2)+Math.pow(u[1],2))}function tt(u,t){return(u[0]*t[0]+u[1]*t[1])/(H(u)*H(t))}function st(u,t){return(u[0]*t[1]<u[1]*t[0]?-1:1)*Math.acos(tt(u,t))}function ot(u){return u*u*u}function ct(u){return 3*u*u*(1-u)}function Dt(u){return 3*u*(1-u)*(1-u)}function _t(u){return(1-u)*(1-u)*(1-u)}function Wt(u){return u*u}function Qt(u){return 2*u*(1-u)}function pe(u){return(1-u)*(1-u)}let _=(()=>{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 se(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)&&typeof r<"u"}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 typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:r}=this,n=parseFloat(r);return this.isString(/%$/)&&(n/=100),n}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var r=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,r=Qe(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 I(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 De{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 Nt{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 Nt(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 Nt(r,n)}static parsePath(t){for(var e=Gt(t),r=e.length,n=[],i=0;i<r;i+=2)n.push(new Nt(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 Xe{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 Nt(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 _e=typeof window<"u"?window:null,Vr=typeof fetch<"u"?fetch.bind(void 0):null;let dr=(()=>{class u{constructor(e){var{fetch:r=Vr,window:n=_e}=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 De,this.mouse=new Xe(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:c=0,minY:x=0,refX:E,refY:m,clip:N=!1,clipX:V=0,clipY:F=0}=e,B=se(i).replace(/^defer\s/,""),[k,z]=B.split(" "),U=k||"xMidYMid",rt=z||"meet",ht=o/s,$=l/h,vt=Math.min(ht,$),dt=Math.max(ht,$),bt=s,At=h;"meet"===rt&&(bt*=vt,At*=vt),"slice"===rt&&(bt*=dt,At*=dt);var Rt=new _(r,"refX",E),Bt=new _(r,"refY",m),Ut=Rt.hasValue()&&Bt.hasValue();if(Ut&&n.translate(-vt*Rt.getPixels("x"),-vt*Bt.getPixels("y")),N){var Mt=vt*V,Vt=vt*F;n.beginPath(),n.moveTo(Mt,Vt),n.lineTo(o,Vt),n.lineTo(o,l),n.lineTo(Mt,l),n.closePath(),n.clip()}if(!Ut){var wt="meet"===rt&&vt===$,zt="slice"===rt&&dt===$,Ct="meet"===rt&&vt===ht,Tt="slice"===rt&&dt===ht;U.startsWith("xMid")&&(wt||zt)&&n.translate(o/2-bt/2,0),U.endsWith("YMid")&&(Ct||Tt)&&n.translate(0,l/2-At/2),U.startsWith("xMax")&&(wt||zt)&&n.translate(o-bt,0),U.endsWith("YMax")&&(Ct||Tt)&&n.translate(0,l-At)}switch(!0){case"none"===U:n.scale(ht,$);break;case"meet"===rt:n.scale(vt,vt);break;case"slice"===rt:n.scale(dt,dt)}n.translate(-c,-x)}start(e){var{enableRedraw:r=!1,ignoreMouse:n=!1,ignoreAnimation:i=!1,ignoreDimensions:o=!1,ignoreClear:s=!1,forceRedraw:l,scaleWidth:h,scaleHeight:c,offsetX:x,offsetY:E}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:m,mouse:N}=this,V=1e3/m;if(this.frameDuration=V,this.readyPromise=new Promise(U=>{this.resolveReady=U}),this.isReady()&&this.render(e,o,s,h,c,x,E),r){var F=Date.now(),B=F,k=0,z=()=>{F=Date.now(),(k=F-B)>=V&&(B=F-k%V,this.shouldUpdate(i,l)&&(this.render(e,o,s,h,c,x,E),N.runEvents())),this.intervalId=A(z)};n||N.start(),this.intervalId=A(z)}}stop(){this.intervalId&&(A.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:c,viewPort:x,ctx:E,isFirstRender:m}=this,N=E.canvas;x.clear(),N.width&&N.height?x.setCurrent(N.width,N.height):x.setCurrent(h,c);var V=e.getStyle("width"),F=e.getStyle("height");!r&&(m||"number"!=typeof i&&"number"!=typeof o)&&(V.hasValue()&&(N.width=V.getPixels("x"),N.style&&(N.style.width="".concat(N.width,"px"))),F.hasValue()&&(N.height=F.getPixels("y"),N.style&&(N.style.height="".concat(N.height,"px"))));var B=N.clientWidth||N.width,k=N.clientHeight||N.height;if(r&&V.hasValue()&&F.hasValue()&&(B=V.getPixels("x"),k=F.getPixels("y")),x.setCurrent(B,k),"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 z=Gt(e.getAttribute("viewBox").getString()),U=0,rt=0;if("number"==typeof i){var ht=e.getStyle("width");ht.hasValue()?U=ht.getPixels("x")/i:isNaN(z[2])||(U=z[2]/i)}if("number"==typeof o){var $=e.getStyle("height");$.hasValue()?rt=$.getPixels("y")/o:isNaN(z[3])||(rt=z[3]/o)}U||(U=rt),rt||(rt=U),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(o);var vt=e.getStyle("transform",!0,!0);vt.setValue("".concat(vt.getString()," scale(").concat(1/U,", ").concat(1/rt,")"))}n||E.clearRect(0,0,B,k),e.render(E),m&&(this.isFirstRender=!1)}}return u.defaultWindow=_e,u.defaultFetch=Vr,u})();var{defaultFetch:Cn}=dr,Pn=typeof DOMParser<"u"?DOMParser:null;class tr{constructor(){var{fetch:t=Cn,DOMParser:e=Pn}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return(0,v.A)(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(0,v.A)(function*(){var r=yield e.fetch(t),n=yield r.text();return e.parseFromString(n)})()}}class Lr{constructor(t,e){this.type="translate",this.point=null,this.point=Nt.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 Dr{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 _(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 Fr{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var n=Nt.parseScale(e);(0===n.x||0===n.y)&&(n.x=ae,n.y=ae),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],c=n[5],N=1/(i*(1*h-0*c)-o*(1*l-0*c)+s*(0*l-0*h)),V=e.getPixels("x"),F=r.getPixels("y");t.translate(V,F),t.transform(N*(1*h-0*c),N*(0*c-1*l),N*(0*s-1*o),N*(1*i-0*s),N*(o*c-s*h),N*(s*l-i*c)),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 _(t,"angle",e)}}class Br 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 Ur 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 Rn(u){return se(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 Nn(u){var[t,e]=u.split("(");return[t.trim(),e.trim().replace(")","")]}(o),h=u.transformTypes[s];typeof h<"u"&&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:Lr,rotate:Dr,scale:Fr,matrix:pr,skewX:Br,skewY:Ur},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=Ye(l.nodeName);this.attributes[h]=new _(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,c]=l.split(":").map(x=>x.trim());this.styles[h]=new _(e,h,c)}});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 _(this.document,e,"");return this.attributes[e]=i,i}return n||_.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if("href"===e||e.endsWith(":href"))return this.attributes[e];return _.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 _(this.document,e,"");return this.styles[e]=h,h}return i||_.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];typeof l>"u"&&(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 jr extends It{constructor(t,e,r){super(t,e,r)}}function Mn(u){var t=u.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function In(u){return typeof process>"u"?u:u.trim().split(",").map(Mn).join(",")}function wn(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 Vn(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 Ce=(()=>{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=se(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return h.forEach(x=>{switch(!0){case!c.fontStyle&&u.styles.includes(x):"inherit"!==x&&(n=x),c.fontStyle=!0;break;case!c.fontVariant&&u.variants.includes(x):"inherit"!==x&&(i=x),c.fontStyle=!0,c.fontVariant=!0;break;case!c.fontWeight&&u.weights.includes(x):"inherit"!==x&&(o=x),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:"inherit"!==x&&([s]=x.split("/")),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:"inherit"!==x&&(l+=x)}}),new u(n,i,o,s,l,r)}toString(){return[wn(this.fontStyle),this.fontVariant,Vn(this.fontWeight),this.fontSize,In(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 ee{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){typeof t<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),typeof e<"u"&&((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 c=Math.pow(o,2)-4*l*s;if(!(c<0)){var x=(-o+Math.sqrt(c))/(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(c))/(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 ut extends w{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 Nt(0,0),this.control=new Nt(0,0),this.current=new Nt(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 Nt(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!==w.CURVE_TO&&t!==w.SMOOTH_CURVE_TO&&t!==w.QUAD_TO&&t!==w.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:n,y:i}}=this;return new Nt(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 ye 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 _(this.document,"fill",t.fillStyle).addOpacity(n).getColor();t.fillStyle=h}if(i.isUrlDefinition()){var c=i.getFillStyleDefinition(this,o);c&&(t.strokeStyle=c)}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 _(this.document,"stroke",t.strokeStyle).addOpacity(o).getString();t.strokeStyle=E}var m=this.getStyle("stroke-width");if(m.hasValue()){var N=m.getPixels();t.lineWidth=N||ae}var V=this.getStyle("stroke-linecap"),F=this.getStyle("stroke-linejoin"),B=this.getStyle("stroke-miterlimit"),k=this.getStyle("stroke-dasharray"),z=this.getStyle("stroke-dashoffset");if(V.hasValue()&&(t.lineCap=V.getString()),F.hasValue()&&(t.lineJoin=F.getString()),B.hasValue()&&(t.miterLimit=B.getNumber()),k.hasValue()&&"none"!==k.getString()){var U=Gt(k.getString());typeof t.setLineDash<"u"?t.setLineDash(U):typeof t.webkitLineDash<"u"?t.webkitLineDash=U:typeof t.mozDash<"u"&&(1!==U.length||0!==U[0])&&(t.mozDash=U);var rt=z.getPixels();typeof t.lineDashOffset<"u"?t.lineDashOffset=rt:typeof t.webkitLineDashOffset<"u"?t.webkitLineDashOffset=rt:typeof t.mozDashOffset<"u"&&(t.mozDashOffset=rt)}}if(this.modifiedEmSizeStack=!1,typeof t.font<"u"){var ht=this.getStyle("font"),$=this.getStyle("font-style"),vt=this.getStyle("font-variant"),dt=this.getStyle("font-weight"),bt=this.getStyle("font-size"),At=this.getStyle("font-family"),Rt=new Ce($.getString(),vt.getString(),dt.getString(),bt.hasValue()?"".concat(bt.getPixels(!0),"px"):"",At.getString(),Ce.parse(ht.getString(),t.font));$.setValue(Rt.fontStyle),vt.setValue(Rt.fontVariant),dt.setValue(Rt.fontWeight),bt.setValue(Rt.fontSize),At.setValue(Rt.fontFamily),t.font=Rt.toString(),bt.isPixels()&&(this.document.emSize=bt.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Ot extends ye{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new ut(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new ee;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case ut.MOVE_TO:this.pathM(t,r);break;case ut.LINE_TO:this.pathL(t,r);break;case ut.HORIZ_LINE_TO:this.pathH(t,r);break;case ut.VERT_LINE_TO:this.pathV(t,r);break;case ut.CURVE_TO:this.pathC(t,r);break;case ut.SMOOTH_CURVE_TO:this.pathS(t,r);break;case ut.QUAD_TO:this.pathQ(t,r);break;case ut.SMOOTH_QUAD_TO:this.pathT(t,r);break;case ut.ARC:this.pathA(t,r);break;case ut.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,c]=r[0];l.render(t,h,c)}if(o.isUrlDefinition())for(var x=o.getDefinition(),E=1;E<n;E++){var[m,N]=r[E];x.render(t,m,N)}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}=Ot.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}=Ot.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 Nt((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}=Ot.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 Nt(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}=Ot.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}=Ot.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}=Ot.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}=Ot.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}=Ot.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),c=t.getAsCurrentPoint(),x=new Nt(Math.cos(h)*(e.x-c.x)/2+Math.sin(h)*(e.y-c.y)/2,-Math.sin(h)*(e.x-c.x)/2+Math.cos(h)*(e.y-c.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 N=new Nt(m*n*x.y/i,m*-i*x.x/n),V=new Nt((e.x+c.x)/2+Math.cos(h)*N.x-Math.sin(h)*N.y,(e.y+c.y)/2+Math.sin(h)*N.x+Math.cos(h)*N.y),F=st([1,0],[(x.x-N.x)/n,(x.y-N.y)/i]),B=[(x.x-N.x)/n,(x.y-N.y)/i],k=[(-x.x-N.x)/n,(-x.y-N.y)/i],z=st(B,k);return tt(B,k)<=-1&&(z=Math.PI),tt(B,k)>=1&&(z=0),{currentPoint:c,rX:n,rY:i,sweepFlag:l,xAxisRotation:h,centp:V,a1:F,ad:z}}pathA(t,e){var{pathParser:r}=this,{currentPoint:n,rX:i,rY:o,sweepFlag:s,xAxisRotation:l,centp:h,a1:c,ad:x}=Ot.pathA(r),E=1-s?1:-1,m=c+E*(x/2),N=new Nt(h.x+i*Math.cos(m),h.y+o*Math.sin(m));if(r.addMarkerAngle(N,m-E*Math.PI/2),r.addMarkerAngle(n,m-E*Math.PI),e.addPoint(n.x,n.y),t&&!isNaN(c)&&!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,c,c+x,!!(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){Ot.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class mr extends Ot{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 ve extends ye{constructor(t,e,r){super(t,e,new.target===ve||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=Ce.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}getTElementBoundingBox(t){var e=this.getFontSize();return new ee(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"),typeof t.glyphs[n]<"u"){var c=t.glyphs[n];i=c instanceof mr?c:c[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=se(e.textContent||"");return 0===n&&(o=Le(o)),n===i&&(o=Ae(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=Ce.parse(e.ctx.font),l=r.getStyle("font-size").getNumber(s.fontSize),h=r.getStyle("font-style").getString(s.fontStyle),c=l/o,x=i.isRTL?n.split("").reverse().join(""):n,E=Gt(r.getAttribute("dx").getString()),m=x.length,N=0;N<m;N++){var V=this.getGlyph(i,x,N);t.translate(this.x,this.y),t.scale(c,-c);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/c,-1/c),t.translate(-this.x,-this.y),this.x+=l*(V.horizAdvX||i.horizAdvX)/o,typeof E[N]<"u"&&!isNaN(E[N])&&(this.x+=E[N])}else{var{x:B,y:k}=this;t.fillStyle&&t.fillText(n,B,k),t.strokeStyle&&t.strokeText(n,B,k)}}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"),c=i.getStyle("font-family").getDefinition(),x=!!c&&c.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,c=0;c<l;c++)h+=(this.getGlyph(n,o,c).horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,typeof s[c]<"u"&&!isNaN(s[c])&&(h+=s[c]);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 ve&&e.isFirstChild();){var r=e.parent.getAttribute(t);if(r.hasValue(!0))return r.getValue("0");e=e.parent}return null}}class $e extends ve{constructor(t,e,r){super(t,e,new.target===$e||r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class Ln extends $e{constructor(){super(...arguments),this.type="textNode"}}class Fe extends ye{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&&typeof t.font<"u"&&i&&typeof i.getComputedStyle<"u"){t.font=i.getComputedStyle(o).getPropertyValue("font");var s=new _(r,"fontSize",Ce.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 c=this.getAttribute("refX"),x=this.getAttribute("refY"),E=this.getAttribute("viewBox"),m=E.hasValue()?Gt(E.getString()):null,N=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),V=0,F=0,B=0,k=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,k=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:c.getValue(),refY:x.getValue(),clip:N,clipX:B,clipY:k}),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 c=this.getAttribute("preserveAspectRatio");c.hasValue()&&c.setValue(c.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 Ot{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 c=(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+c*l,r,e+n,r+h-c*h,e
vendor: 4,486 bytes, line 1
1+n,r+h),t.lineTo(e+n,r+i-h),t.bezierCurveTo(e+n,r+i-h+c*h,e+n-l+c*l,r+i,e+n-l,r+i),t.lineTo(e+l,r+i),t.bezierCurveTo(e+l-c*l,r+i,e,r+i-h+c*h,e,r+i-h),t.lineTo(e,r+h),t.bezierCurveTo(e,r+h-c*h,e+l-c*l,r,e+l,r),t.closePath())}return new ee(e,r,e+n,r+i)}getMarkers(){return null}}class zr extends Ot{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 ee(e-n,r-n,e+n,r+n)}getMarkers(){return null}}class Gr extends Ot{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 ee(i-r,o-n,i+r,o+n)}getMarkers(){return null}}class Hr extends Ot{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Nt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Nt(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 ee(e,r,n,i)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class Er extends Ot{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=Nt.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:n}]=e,i=new ee(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 Yr 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 Xr 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 Fe(this.document,null);o.attributes.viewBox=new _(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new _(this.document,"width","".concat(n,"px")),o.attributes.height=new _(this.document,"height","".concat(i,"px")),o.attributes.transform=new _(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"),c=this.getAttribute("y");h.hasValue()&&c.hasValue()&&l.translate(h.getPixels("x",!0),c.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 _(this.document,"x",x*s.width),o.attributes.y=new _(this.document,"y",E*s.height),o.render(l),l.restore();return t.createPattern(s,"repeat")}}class $r 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 Fe(this.document,null);l.type=this.type,l.attributes.viewBox=new _(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.refX=new _(this.document,"refX",this.getAttribute("refX").getValue()),l.attributes.refY=new _(this.document,"refY",this.getAttribute("refY").getValue()),l.attributes.width=new _(this.document,"width",this.getAttribute("markerWidth").getValue()),l.attributes.height=new _(this.document,"height",this.getAttribute("markerHeight").getValue()),l.attributes.overflow=new _(this.document,"overflow",this.getAttribute("overflow").getValue()),l.attributes.fill=new _(this.document,"fill",this.getAttribute("fill").getColor("black")),l.attributes.stroke=new _(this.document,"stroke",this.getAttribute("stroke").getValue("none")),l.children=this.children,l.render(t),t.restore(
vendor: 32,058 bytes, line 1
1),"strokeWidth"===s&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===o&&t.rotate(-r),t.translate(-n,-i)}}}class Wr extends It{constructor(){super(...arguments),this.type="defs"}render(){}}class rr extends ye{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new ee;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,[c]=h.viewPorts,x=new xr(s,null);x.attributes.x=new _(s,"x",-l/3),x.attributes.y=new _(s,"y",-l/3),x.attributes.width=new _(s,"width",l),x.attributes.height=new _(s,"height",l);var E=new rr(s,null);E.attributes.transform=new _(s,"transform",this.getAttribute("gradientTransform").getValue()),E.children=[x];var m=new Fe(s,null);m.attributes.x=new _(s,"x",0),m.attributes.y=new _(s,"y",0),m.attributes.width=new _(s,"width",c.width),m.attributes.height=new _(s,"height",c.height),m.children=[E];var N=s.createCanvas(c.width,c.height),V=N.getContext("2d");return V.fillStyle=o,m.render(V),V.createPattern(N,"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 _(this.document,"color",e).addOpacity(t).getColor():e}}class Qr 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(),c=this.getAttribute("fr").getPixels();return t.createRadialGradient(s,l,c,i,o,h)}}class Kr 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 _(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 _(t,"from",parseFloat(e.getValue()[i])),r.to=new _(t,"to",parseFloat(e.getValue()[o])),r.progress=(n-i)/(o-i)}else r.from=this.from,r.to=this.to;return r}}class Zr extends nr{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),n=new I(e.getColor()),i=new I(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 Jr 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 qr 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,typeof this.glyphs[l.unicode]>"u"&&(this.glyphs[l.unicode]={}),this.glyphs[l.unicode][l.arabicForm]=l):this.glyphs[l.unicode]=l}}render(){}}class _r 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 tn extends Ot{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class en extends ve{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 rn extends ve{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 _(e,"fontSize",Ce.parse(e.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new ee(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 nn(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?nn(Object(e),!0).forEach(function(r){(0,S.A)(u,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(e)):nn(Object(e)).forEach(function(r){Object.defineProperty(u,r,Object.getOwnPropertyDescriptor(e,r))})}return u}class an extends ve{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 ut.LINE_TO:t&&t.lineTo(i[0],i[1]);break;case ut.MOVE_TO:t&&t.moveTo(i[0],i[1]);break;case ut.CURVE_TO:t&&t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case ut.QUAD_TO:t&&t.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case ut.ARC:var[o,s,l,h,c,x,E,m]=i,N=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,N,c,c+x,!!(1-m)),t.scale(1/V,1/F),t.rotate(-E),t.translate(-o,-s));break;case ut.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:c,text:x}=o;t.save(),t.translate(l.x,l.y),t.rotate(c),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 c=o,x=this.measureText(t,l);" "===l&&"justify"===e&&r<n&&(x+=(n-r)/i),h>-1&&(c+=this.getLetterSpacingAt(h));var E=this.textHeight/20,m=this.getEquidistantPointOnPath(c,E,0),N=this.getEquidistantPointOnPath(c+x,E,0),V={p0:m,p1:N},F=m&&N?Math.atan2(N.y-m.y,N.x-m.x):0;if(s){var B=Math.cos(Math.PI/2+F)*s,k=Math.cos(-F)*s;V.p0=ar(ar({},m),{},{x:m.x+B,y:m.y+k}),V.p1=ar(ar({},N),{},{x:N.x+B,y:N.y+k})}return{offset:c+=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"),c=0;l.hasValue()&&"inherit"!==l.getValue()?l.hasValue()&&"initial"!==l.getValue()&&"unset"!==l.getValue()&&(c=l.getPixels()):c=h.getPixels();var x=[],E=e.length;this.letterSpacingCache=x;for(var m=0;m<E;m++)x.push(typeof i[m]<"u"?i[m]:c);var N=x.reduce((U,rt,ht)=>0===ht?0:U+rt||0,0),V=this.measureText(t),F=Math.max(V+N,0);this.textWidth=V,this.textHeight=this.getFontSize(),this.glyphInfo=[];var B=this.getPathLength(),k=this.getStyle("startOffset").getNumber(0)*B,z=0;("middle"===s||"center"===s)&&(z=-F/2),("end"===s||"right"===s)&&(z=-F),z+=k,r.forEach((U,rt)=>{var{offset:ht,segment:$,rotation:vt}=this.findSegmentToFitChar(t,s,F,B,n,z,o,U,rt);z=ht,$.p0&&$.p1&&this.glyphInfo.push({text:r[rt],p0:$.p0,p1:$.p1,rotation:vt})})}}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 ut.MOVE_TO:this.pathM(r,h);break;case ut.LINE_TO:l=this.pathL(r,h);break;case ut.HORIZ_LINE_TO:l=this.pathH(r,h);break;case ut.VERT_LINE_TO:l=this.pathV(r,h);break;case ut.CURVE_TO:this.pathC(r,h);break;case ut.SMOOTH_CURVE_TO:l=this.pathS(r,h);break;case ut.QUAD_TO:this.pathQ(r,h);break;case ut.SMOOTH_QUAD_TO:l=this.pathT(r,h);break;case ut.ARC:h=this.pathA(r);break;case ut.CLOSE_PATH:Ot.pathZ(r)}e.push(s.type!==ut.CLOSE_PATH?{type:l,points:h,start:{x:i,y:o},pathLength:this.calcLength(i,o,l,h)}:{type:ut.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:n}=Ot.pathM(t).point;e.push(r,n)}pathL(t,e){var{x:r,y:n}=Ot.pathL(t).point;return e.push(r,n),ut.LINE_TO}pathH(t,e){var{x:r,y:n}=Ot.pathH(t).point;return e.push(r,n),ut.LINE_TO}pathV(t,e){var{x:r,y:n}=Ot.pathV(t).point;return e.push(r,n),ut.LINE_TO}pathC(t,e){var{point:r,controlPoint:n,currentPoint:i}=Ot.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}=Ot.pathS(t);return e.push(r.x,r.y,n.x,n.y,i.x,i.y),ut.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:n}=Ot.pathQ(t);e.push(r.x,r.y,n.x,n.y)}pathT(t,e){var{controlPoint:r,currentPoint:n}=Ot.pathT(t);return e.push(r.x,r.y,n.x,n.y),ut.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:n,xAxisRotation:i,centp:o,a1:s,ad:l}=Ot.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 ut.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case ut.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 ut.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 ut.ARC:i=0;var h=n[4],c=n[5],x=n[4]+c,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),c<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+ae),h=Math.sqrt(t*t/(1+l*l));n<e&&(h*=-1);var c=l*h,x=null;if(n===e)x={x:o,y:s+c};else if((s-r)/(o-e+ae)===l)x={x:o+h,y:s+c};else{var E,m,N=this.getLineLength(e,r,n,i);if(N<ae)return null;var V=(o-e)*(n-e)+(s-r)*(i-r),F=this.getLineLength(o,s,E=e+(V/=N*N)*(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+(c=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 ut.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 ut.ARC:var c=o.points[5],x=o.points[4]+c;if(l=o.points[4]+s/o.pathLength*c,c<0&&l<x||c>=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 ut.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 ut.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*ot(t)+o*ct(t)+n*Dt(t)+e*_t(t),y:h*ot(t)+s*ct(t)+i*Dt(t)+r*_t(t)}}getPointOnQuadraticBezier(t,e,r,n,i,o,s){return{x:o*Wt(t)+n*Qt(t)+e*pe(t),y:s*Wt(t)+i*Qt(t)+r*pe(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 Dn=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class sn extends ye{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(0,v.A)(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(0,v.A)(function*(){var r=Dn.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 c=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:c.width,height:l,desiredHeight:c.height}),this.loaded&&(typeof c.complete>"u"||c.complete)&&t.drawImage(c,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 ee(t,e,t+r,e+n)}}class on extends ye{constructor(){super(...arguments),this.type="symbol"}render(t){}}class ln{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var r=this;return(0,v.A)(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 un=(()=>{class u extends It{constructor(e,r,n){super(e,r,n),this.type="style",se(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("{"),c=h[0].split(","),x=h[1].split(";");c.forEach(E=>{var m=E.trim();if(m){var N=e.styles[m]||{};if(x.forEach(B=>{var k=B.indexOf(":"),z=B.substr(0,k).trim(),U=B.substr(k+1,B.length-k).trim();z&&U&&(N[z]=new _(e,z,U))}),e.styles[m]=N,e.stylesSpecificity[m]=fe(m),"@font-face"===m){var V=N["font-family"].getString().replace(/"|'/g,"");N.src.getString().split(",").forEach(B=>{if(B.indexOf('format("svg")')>0){var k=he(B);k&&new ln(e).load(V,k)}})}}})}})}}return u.parseExternalUrl=he,u})();class hn extends ye{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 Fe(e,null)).attributes.viewBox=new _(e,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new _(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new _(e,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new _(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 _(e,"width",i.getString())),o.hasValue()&&(n.attributes.height=new _(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 Ft(u,t,e){return u[t]*e}function ce(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=[ce(o,.213,.787,-.213),ce(o,.715,-.715,-.715),ce(o,.072,-.072,.928),0,0,ce(o,.213,-.213,.143),ce(o,.715,.285,.14),ce(o,.072,-.072,-.283),0,0,ce(o,.213,-.213,-.787),ce(o,.715,-.715,.715),ce(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 c=0;c<n;c++){var x=ir(l.data,c,h,n,0,0),E=ir(l.data,c,h,n,0,1),m=ir(l.data,c,h,n,0,2),N=ir(l.data,c,h,n,0,3),V=Ft(s,0,x)+Ft(s,1,E)+Ft(s,2,m)+Ft(s,3,N)+Ft(s,4,1),F=Ft(s,5,x)+Ft(s,6,E)+Ft(s,7,m)+Ft(s,8,N)+Ft(s,9,1),B=Ft(s,10,x)+Ft(s,11,E)+Ft(s,12,m)+Ft(s,13,N)+Ft(s,14,1),k=Ft(s,15,x)+Ft(s,16,E)+Ft(s,17,m)+Ft(s,18,N)+Ft(s,19,1);o&&(V=0,F=0,B=0,k*=N/255),sr(l.data,c,h,n,0,0,V),sr(l.data,c,h,n,0,1,F),sr(l.data,c,h,n,0,2,B),sr(l.data,c,h,n,0,3,k)}t.clearRect(0,0,n,i),t.putImageData(l,0,0)}}let fn=(()=>{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 ee;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 c=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),N=m.getContext("2d");n.screen.setDefaults(N),r.render(N),N.globalCompositeOperation="destination-in",N.fillStyle=E.createPattern(x,"no-repeat"),N.fillRect(0,0,i+s,o+l),e.fillStyle=N.createPattern(m,"no-repeat"),e.fillRect(0,0,i+s,o+l),this.restoreStyles(r,c)}render(e){}}return u.ignoreStyles=["mask","transform","clip-path"],u})();var vn=()=>{};class cn 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=vn,r.closePath=vn),Reflect.apply(n,t,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?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 gn=(()=>{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(k=>{var z=k.extraFilterDistance||0;s=Math.max(s,z),l=Math.max(l,z)});var h=Math.floor(o.width),c=Math.floor(o.height),x=h+2*s,E=c+2*l;if(!(x<1||E<1)){var m=Math.floor(o.x),N=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,-N+l),r.render(B),i.forEach(k=>{"function"==typeof k.apply&&k.apply(B,0,0,x,E)}),e.drawImage(F,0,0,x,E,m-s,N-l,x,E),this.restoreStyles(r,V)}}}render(e){}}return u.ignoreStyles=["filter","transform","clip-path"],u})();class dn extends It{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,n,i){}}class pn extends It{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,n,i){}}class yn extends It{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,n,i){}}class mn 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)),ge(h,e,r,n,i,s),l&&l.removeChild(h)}}class xn extends It{constructor(){super(...arguments),this.type="title"}}class En extends It{constructor(){super(...arguments),this.type="desc"}}var Fn={svg:Fe,rect:xr,circle:zr,ellipse:Gr,line:Hr,polyline:Er,polygon:Yr,path:Ot,pattern:Xr,marker:$r,defs:Wr,linearGradient:Qr,radialGradient:kr,stop:Kr,animate:nr,animateColor:Zr,animateTransform:Jr,font:qr,"font-face":_r,"missing-glyph":tn,glyph:mr,text:ve,tspan:$e,tref:en,a:rn,textPath:an,image:sn,g:rr,symbol:on,style:un,use:hn,mask:fn,clipPath:cn,filter:gn,feDropShadow:dn,feMorphology:pn,feComposite:yn,feColorMatrix:br,feGaussianBlur:mn,title:xn,desc:En};function Tn(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 Un(u,t){var e=document.createElement("canvas");return e.width=u,e.height=t,e}function jn(u){return Sr.apply(this,arguments)}function Sr(){return Sr=(0,v.A)(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 bn=(()=>{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 typeof n<"u"?new n(this,e):new jr(this,e)}createTextNode(e){return new Ln(this,e)}setViewBox(e){this.screen.setViewBox(function Bn(u){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(e),!0).forEach(function(r){(0,S.A)(u,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(e)):Tn(Object(e)).forEach(function(r){Object.defineProperty(u,r,Object.getOwnPropertyDescriptor(e,r))})}return u}({document:this},e))}}return u.createCanvas=Un,u.createImage=jn,u.elementTypes=Fn,u})();function Sn(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?Sn(Object(e),!0).forEach(function(r){(0,S.A)(u,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(e)):Sn(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 bn(this,r),i=n.createDocumentElement(e);this.document=n,this.documentElement=i}static from(t,e){var r=arguments;return(0,v.A)(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(0,v.A)(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])}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.