(self.webpackChunk=self.webpackChunk||[]).push([[3754],{94907:function(d,S,n){var l=n(97671);(function(){var f,v,g,y,T,x;typeof performance!="undefined"&&performance!==null&&performance.now?d.exports=function(){return performance.now()}:typeof l!="undefined"&&l!==null&&l.hrtime?(d.exports=function(){return(f()-T)/1e6},v=l.hrtime,f=function(){var b;return b=v(),b[0]*1e9+b[1]},y=f(),x=l.uptime()*1e9,T=y-x):Date.now?(d.exports=function(){return Date.now()-g},g=Date.now()):(d.exports=function(){return new Date().getTime()-g},g=new Date().getTime())}).call(this)},32772:function(d,S,n){for(var l=n(94907),f=typeof window=="undefined"?n.g:window,v=["moz","webkit"],g="AnimationFrame",y=f["request"+g],T=f["cancel"+g]||f["cancelRequest"+g],x=0;!y&&x3&&(this.alpha=T[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 x=this.r.toString(16),b=this.g.toString(16),C=this.b.toString(16);return x.length==1&&(x="0"+x),b.length==1&&(b="0"+b),C.length==1&&(C="0"+C),"#"+x+b+C},this.getHelpXML=function(){for(var x=new Array,b=0;b "+I.toRGB()+" -> "+I.toHex());M.appendChild(w),M.appendChild(F),P.appendChild(M)}catch(j){}return P}}},25499:function(d,S,n){"use strict";var l=n(11800),f=n(16199),v=TypeError;d.exports=function(g){if(l(g))return g;throw new v(f(g)+" is not a function")}},48274:function(d,S,n){"use strict";var l=n(83174),f=n(16199),v=TypeError;d.exports=function(g){if(l(g))return g;throw new v(f(g)+" is not a constructor")}},30828:function(d,S,n){"use strict";var l=n(7086),f=String,v=TypeError;d.exports=function(g){if(l(g))return g;throw new v("Can't set "+f(g)+" as a prototype")}},64744:function(d,S,n){"use strict";var l=n(22171),f=n(40079),v=n(92402).f,g=l("unscopables"),y=Array.prototype;y[g]===void 0&&v(y,g,{configurable:!0,value:f(null)}),d.exports=function(T){y[g][T]=!0}},78938:function(d,S,n){"use strict";var l=n(38095).charAt;d.exports=function(f,v,g){return v+(g?l(f,v).length:1)}},70271:function(d,S,n){"use strict";var l=n(93527),f=TypeError;d.exports=function(v,g){if(l(g,v))return v;throw new f("Incorrect invocation")}},14752:function(d,S,n){"use strict";var l=n(46638),f=String,v=TypeError;d.exports=function(g){if(l(g))return g;throw new v(f(g)+" is not an object")}},76879:function(d,S,n){"use strict";var l=n(18295),f=n(95374),v=n(5668),g=function(y){return function(T,x,b){var C=l(T),A=v(C);if(A===0)return!y&&-1;var R=f(b,A),P;if(y&&x!==x){for(;A>R;)if(P=C[R++],P!==P)return!0}else for(;A>R;R++)if((y||R in C)&&C[R]===x)return y||R||0;return!y&&-1}};d.exports={includes:g(!0),indexOf:g(!1)}},67055:function(d,S,n){"use strict";var l=n(73130);d.exports=function(f,v){var g=[][f];return!!g&&l(function(){g.call(null,v||function(){return 1},1)})}},45333:function(d,S,n){"use strict";var l=n(25499),f=n(57866),v=n(910),g=n(5668),y=TypeError,T="Reduce of empty array with no initial value",x=function(b){return function(C,A,R,P){var M=f(C),I=v(M),w=g(M);if(l(A),w===0&&R<2)throw new y(T);var F=b?w-1:0,Y=b?-1:1;if(R<2)for(;;){if(F in I){P=I[F],F+=Y;break}if(F+=Y,b?F<0:w<=F)throw new y(T)}for(;b?F>=0:w>F;F+=Y)F in I&&(P=A(P,I[F],F,M));return P}};d.exports={left:x(!1),right:x(!0)}},29986:function(d,S,n){"use strict";var l=n(37725);d.exports=l([].slice)},16961:function(d,S,n){"use strict";var l=n(22171),f=l("iterator"),v=!1;try{var g=0,y={next:function(){return{done:!!g++}},return:function(){v=!0}};y[f]=function(){return this},Array.from(y,function(){throw 2})}catch(T){}d.exports=function(T,x){try{if(!x&&!v)return!1}catch(A){return!1}var b=!1;try{var C={};C[f]=function(){return{next:function(){return{done:b=!0}}}},T(C)}catch(A){}return b}},60380:function(d,S,n){"use strict";var l=n(37725),f=l({}.toString),v=l("".slice);d.exports=function(g){return v(f(g),8,-1)}},11298:function(d,S,n){"use strict";var l=n(28043),f=n(11800),v=n(60380),g=n(22171),y=g("toStringTag"),T=Object,x=v(function(){return arguments}())==="Arguments",b=function(C,A){try{return C[A]}catch(R){}};d.exports=l?v:function(C){var A,R,P;return C===void 0?"Undefined":C===null?"Null":typeof(R=b(A=T(C),y))=="string"?R:x?v(A):(P=v(A))==="Object"&&f(A.callee)?"Arguments":P}},9301:function(d,S,n){"use strict";var l=n(57430),f=n(58905),v=n(54398),g=n(92402);d.exports=function(y,T,x){for(var b=f(T),C=g.f,A=v.f,R=0;R0&&x[0]<4?1:+(x[0]+x[1])),!b&&f&&(x=f.match(/Edge\/(\d+)/),(!x||x[1]>=74)&&(x=f.match(/Chrome\/(\d+)/),x&&(b=+x[1]))),d.exports=b},84526:function(d,S,n){"use strict";var l=n(93755),f=n(15856),v=n(60380),g=function(y){return f.slice(0,y.length)===y};d.exports=function(){return g("Bun/")?"BUN":g("Cloudflare-Workers")?"CLOUDFLARE":g("Deno/")?"DENO":g("Node.js/")?"NODE":l.Bun&&typeof Bun.version=="string"?"BUN":l.Deno&&typeof Deno.version=="object"?"DENO":v(l.process)==="process"?"NODE":l.window&&l.document?"BROWSER":"REST"}()},82372:function(d,S,n){"use strict";var l=n(93755),f=n(54398).f,v=n(30600),g=n(11406),y=n(31463),T=n(9301),x=n(26657);d.exports=function(b,C){var A=b.target,R=b.global,P=b.stat,M,I,w,F,Y,j;if(R?I=l:P?I=l[A]||y(A,{}):I=l[A]&&l[A].prototype,I)for(w in C){if(Y=C[w],b.dontCallGetSet?(j=f(I,w),F=j&&j.value):F=I[w],M=x(R?w:A+(P?".":"#")+w,b.forced),!M&&F!==void 0){if(typeof Y==typeof F)continue;T(Y,F)}(b.sham||F&&F.sham)&&v(Y,"sham",!0),g(I,w,Y,b)}}},73130:function(d){"use strict";d.exports=function(S){try{return!!S()}catch(n){return!0}}},78381:function(d,S,n){"use strict";n(24343);var l=n(65318),f=n(11406),v=n(1513),g=n(73130),y=n(22171),T=n(30600),x=y("species"),b=RegExp.prototype;d.exports=function(C,A,R,P){var M=y(C),I=!g(function(){var j={};return j[M]=function(){return 7},""[C](j)!==7}),w=I&&!g(function(){var j=!1,B=/a/;if(C==="split"){var $={};$[x]=function(){return B},B={constructor:$,flags:""},B[M]=/./[M]}return B.exec=function(){return j=!0,null},B[M](""),!j});if(!I||!w||R){var F=/./[M],Y=A(M,""[C],function(j,B,$,X,Q){var _=B.exec;return _===v||_===b.exec?I&&!Q?{done:!0,value:l(F,B,$,X)}:{done:!0,value:l(j,$,B,X)}:{done:!1}});f(String.prototype,C,Y[0]),f(b,M,Y[1])}P&&T(b[M],"sham",!0)}},71016:function(d,S,n){"use strict";var l=n(34549),f=Function.prototype,v=f.apply,g=f.call;d.exports=typeof Reflect=="object"&&Reflect.apply||(l?g.bind(v):function(){return g.apply(v,arguments)})},8206:function(d,S,n){"use strict";var l=n(64866),f=n(25499),v=n(34549),g=l(l.bind);d.exports=function(y,T){return f(y),T===void 0?y:v?g(y,T):function(){return y.apply(T,arguments)}}},34549:function(d,S,n){"use strict";var l=n(73130);d.exports=!l(function(){var f=function(){}.bind();return typeof f!="function"||f.hasOwnProperty("prototype")})},65318:function(d,S,n){"use strict";var l=n(34549),f=Function.prototype.call;d.exports=l?f.bind(f):function(){return f.apply(f,arguments)}},80100:function(d,S,n){"use strict";var l=n(73679),f=n(57430),v=Function.prototype,g=l&&Object.getOwnPropertyDescriptor,y=f(v,"name"),T=y&&function(){}.name==="something",x=y&&(!l||l&&g(v,"name").configurable);d.exports={EXISTS:y,PROPER:T,CONFIGURABLE:x}},49410:function(d,S,n){"use strict";var l=n(37725),f=n(25499);d.exports=function(v,g,y){try{return l(f(Object.getOwnPropertyDescriptor(v,g)[y]))}catch(T){}}},64866:function(d,S,n){"use strict";var l=n(60380),f=n(37725);d.exports=function(v){if(l(v)==="Function")return f(v)}},37725:function(d,S,n){"use strict";var l=n(34549),f=Function.prototype,v=f.call,g=l&&f.bind.bind(v,v);d.exports=l?g:function(y){return function(){return v.apply(y,arguments)}}},4609:function(d,S,n){"use strict";var l=n(93755),f=n(11800),v=function(g){return f(g)?g:void 0};d.exports=function(g,y){return arguments.length<2?v(l[g]):l[g]&&l[g][y]}},48573:function(d,S,n){"use strict";var l=n(11298),f=n(55884),v=n(92606),g=n(85233),y=n(22171),T=y("iterator");d.exports=function(x){if(!v(x))return f(x,T)||f(x,"@@iterator")||g[l(x)]}},11998:function(d,S,n){"use strict";var l=n(65318),f=n(25499),v=n(14752),g=n(16199),y=n(48573),T=TypeError;d.exports=function(x,b){var C=arguments.length<2?y(x):b;if(f(C))return v(l(C,x));throw new T(g(x)+" is not iterable")}},55884:function(d,S,n){"use strict";var l=n(25499),f=n(92606);d.exports=function(v,g){var y=v[g];return f(y)?void 0:l(y)}},92506:function(d,S,n){"use strict";var l=n(37725),f=n(57866),v=Math.floor,g=l("".charAt),y=l("".replace),T=l("".slice),x=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,b=/\$([$&'`]|\d{1,2})/g;d.exports=function(C,A,R,P,M,I){var w=R+C.length,F=P.length,Y=b;return M!==void 0&&(M=f(M),Y=x),y(I,Y,function(j,B){var $;switch(g(B,0)){case"$":return"$";case"&":return C;case"`":return T(A,0,R);case"'":return T(A,w);case"<":$=M[T(B,1,-1)];break;default:var X=+B;if(X===0)return j;if(X>F){var Q=v(X/10);return Q===0?j:Q<=F?P[Q-1]===void 0?g(B,1):P[Q-1]+g(B,1):j}$=P[X-1]}return $===void 0?"":$})}},93755:function(d,S,n){"use strict";var l=function(f){return f&&f.Math===Math&&f};d.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof n.g=="object"&&n.g)||l(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},57430:function(d,S,n){"use strict";var l=n(37725),f=n(57866),v=l({}.hasOwnProperty);d.exports=Object.hasOwn||function(y,T){return v(f(y),T)}},33614:function(d){"use strict";d.exports={}},50358:function(d){"use strict";d.exports=function(S,n){try{arguments.length===1?console.error(S):console.error(S,n)}catch(l){}}},65757:function(d,S,n){"use strict";var l=n(4609);d.exports=l("document","documentElement")},84436:function(d,S,n){"use strict";var l=n(73679),f=n(73130),v=n(27139);d.exports=!l&&!f(function(){return Object.defineProperty(v("div"),"a",{get:function(){return 7}}).a!==7})},910:function(d,S,n){"use strict";var l=n(37725),f=n(73130),v=n(60380),g=Object,y=l("".split);d.exports=f(function(){return!g("z").propertyIsEnumerable(0)})?function(T){return v(T)==="String"?y(T,""):g(T)}:g},79321:function(d,S,n){"use strict";var l=n(37725),f=n(11800),v=n(54163),g=l(Function.toString);f(v.inspectSource)||(v.inspectSource=function(y){return g(y)}),d.exports=v.inspectSource},23836:function(d,S,n){"use strict";var l=n(86639),f=n(93755),v=n(46638),g=n(30600),y=n(57430),T=n(54163),x=n(81196),b=n(33614),C="Object already initialized",A=f.TypeError,R=f.WeakMap,P,M,I,w=function(B){return I(B)?M(B):P(B,{})},F=function(B){return function($){var X;if(!v($)||(X=M($)).type!==B)throw new A("Incompatible receiver, "+B+" required");return X}};if(l||T.state){var Y=T.state||(T.state=new R);Y.get=Y.get,Y.has=Y.has,Y.set=Y.set,P=function(B,$){if(Y.has(B))throw new A(C);return $.facade=B,Y.set(B,$),$},M=function(B){return Y.get(B)||{}},I=function(B){return Y.has(B)}}else{var j=x("state");b[j]=!0,P=function(B,$){if(y(B,j))throw new A(C);return $.facade=B,g(B,j,$),$},M=function(B){return y(B,j)?B[j]:{}},I=function(B){return y(B,j)}}d.exports={set:P,get:M,has:I,enforce:w,getterFor:F}},21871:function(d,S,n){"use strict";var l=n(22171),f=n(85233),v=l("iterator"),g=Array.prototype;d.exports=function(y){return y!==void 0&&(f.Array===y||g[v]===y)}},60221:function(d,S,n){"use strict";var l=n(60380);d.exports=Array.isArray||function(v){return l(v)==="Array"}},11800:function(d){"use strict";var S=typeof document=="object"&&document.all;d.exports=typeof S=="undefined"&&S!==void 0?function(n){return typeof n=="function"||n===S}:function(n){return typeof n=="function"}},83174:function(d,S,n){"use strict";var l=n(37725),f=n(73130),v=n(11800),g=n(11298),y=n(4609),T=n(79321),x=function(){},b=y("Reflect","construct"),C=/^\s*(?:class|function)\b/,A=l(C.exec),R=!C.test(x),P=function(w){if(!v(w))return!1;try{return b(x,[],w),!0}catch(F){return!1}},M=function(w){if(!v(w))return!1;switch(g(w)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return R||!!A(C,T(w))}catch(F){return!0}};M.sham=!0,d.exports=!b||f(function(){var I;return P(P.call)||!P(Object)||!P(function(){I=!0})||I})?M:P},26657:function(d,S,n){"use strict";var l=n(73130),f=n(11800),v=/#|\.prototype\./,g=function(C,A){var R=T[y(C)];return R===b?!0:R===x?!1:f(A)?l(A):!!A},y=g.normalize=function(C){return String(C).replace(v,".").toLowerCase()},T=g.data={},x=g.NATIVE="N",b=g.POLYFILL="P";d.exports=g},92606:function(d){"use strict";d.exports=function(S){return S==null}},46638:function(d,S,n){"use strict";var l=n(11800);d.exports=function(f){return typeof f=="object"?f!==null:l(f)}},7086:function(d,S,n){"use strict";var l=n(46638);d.exports=function(f){return l(f)||f===null}},77667:function(d){"use strict";d.exports=!1},62494:function(d,S,n){"use strict";var l=n(46638),f=n(60380),v=n(22171),g=v("match");d.exports=function(y){var T;return l(y)&&((T=y[g])!==void 0?!!T:f(y)==="RegExp")}},54486:function(d,S,n){"use strict";var l=n(4609),f=n(11800),v=n(93527),g=n(90590),y=Object;d.exports=g?function(T){return typeof T=="symbol"}:function(T){var x=l("Symbol");return f(x)&&v(x.prototype,y(T))}},92948:function(d,S,n){"use strict";var l=n(8206),f=n(65318),v=n(14752),g=n(16199),y=n(21871),T=n(5668),x=n(93527),b=n(11998),C=n(48573),A=n(77647),R=TypeError,P=function(I,w){this.stopped=I,this.result=w},M=P.prototype;d.exports=function(I,w,F){var Y=F&&F.that,j=!!(F&&F.AS_ENTRIES),B=!!(F&&F.IS_RECORD),$=!!(F&&F.IS_ITERATOR),X=!!(F&&F.INTERRUPTED),Q=l(w,Y),_,k,lt,tt,et,st,ot,yt=function(J){return _&&A(_,"normal"),new P(!0,J)},Z=function(J){return j?(v(J),X?Q(J[0],J[1],yt):Q(J[0],J[1])):X?Q(J,yt):Q(J)};if(B)_=I.iterator;else if($)_=I;else{if(k=C(I),!k)throw new R(g(I)+" is not iterable");if(y(k)){for(lt=0,tt=T(I);tt>lt;lt++)if(et=Z(I[lt]),et&&x(M,et))return et;return new P(!1)}_=b(I,k)}for(st=B?I.next:_.next;!(ot=f(st,_)).done;){try{et=Z(ot.value)}catch(J){A(_,"throw",J)}if(typeof et=="object"&&et&&x(M,et))return et}return new P(!1)}},77647:function(d,S,n){"use strict";var l=n(65318),f=n(14752),v=n(55884);d.exports=function(g,y,T){var x,b;f(g);try{if(x=v(g,"return"),!x){if(y==="throw")throw T;return T}x=l(x,g)}catch(C){b=!0,x=C}if(y==="throw")throw T;if(b)throw x;return f(x),T}},27975:function(d,S,n){"use strict";var l=n(10638).IteratorPrototype,f=n(40079),v=n(2262),g=n(21812),y=n(85233),T=function(){return this};d.exports=function(x,b,C,A){var R=b+" Iterator";return x.prototype=f(l,{next:v(+!A,C)}),g(x,R,!1,!0),y[R]=T,x}},58302:function(d,S,n){"use strict";var l=n(82372),f=n(65318),v=n(77667),g=n(80100),y=n(11800),T=n(27975),x=n(96228),b=n(30424),C=n(21812),A=n(30600),R=n(11406),P=n(22171),M=n(85233),I=n(10638),w=g.PROPER,F=g.CONFIGURABLE,Y=I.IteratorPrototype,j=I.BUGGY_SAFARI_ITERATORS,B=P("iterator"),$="keys",X="values",Q="entries",_=function(){return this};d.exports=function(k,lt,tt,et,st,ot,yt){T(tt,lt,et);var Z=function(Vt){if(Vt===st&&ht)return ht;if(!j&&Vt&&Vt in mt)return mt[Vt];switch(Vt){case $:return function(){return new tt(this,Vt)};case X:return function(){return new tt(this,Vt)};case Q:return function(){return new tt(this,Vt)}}return function(){return new tt(this)}},J=lt+" Iterator",wt=!1,mt=k.prototype,ut=mt[B]||mt["@@iterator"]||st&&mt[st],ht=!j&&ut||Z(st),N=lt==="Array"&&mt.entries||ut,ft,Ut,At;if(N&&(ft=x(N.call(new k)),ft!==Object.prototype&&ft.next&&(!v&&x(ft)!==Y&&(b?b(ft,Y):y(ft[B])||R(ft,B,_)),C(ft,J,!0,!0),v&&(M[J]=_))),w&&st===X&&ut&&ut.name!==X&&(!v&&F?A(mt,"name",X):(wt=!0,ht=function(){return f(ut,this)})),st)if(Ut={values:Z(X),keys:ot?ht:Z($),entries:Z(Q)},yt)for(At in Ut)(j||wt||!(At in mt))&&R(mt,At,Ut[At]);else l({target:lt,proto:!0,forced:j||wt},Ut);return(!v||yt)&&mt[B]!==ht&&R(mt,B,ht,{name:st}),M[lt]=ht,Ut}},10638:function(d,S,n){"use strict";var l=n(73130),f=n(11800),v=n(46638),g=n(40079),y=n(96228),T=n(11406),x=n(22171),b=n(77667),C=x("iterator"),A=!1,R,P,M;[].keys&&(M=[].keys(),"next"in M?(P=y(y(M)),P!==Object.prototype&&(R=P)):A=!0);var I=!v(R)||l(function(){var w={};return R[C].call(w)!==w});I?R={}:b&&(R=g(R)),f(R[C])||T(R,C,function(){return this}),d.exports={IteratorPrototype:R,BUGGY_SAFARI_ITERATORS:A}},85233:function(d){"use strict";d.exports={}},5668:function(d,S,n){"use strict";var l=n(56005);d.exports=function(f){return l(f.length)}},56684:function(d,S,n){"use strict";var l=n(37725),f=n(73130),v=n(11800),g=n(57430),y=n(73679),T=n(80100).CONFIGURABLE,x=n(79321),b=n(23836),C=b.enforce,A=b.get,R=String,P=Object.defineProperty,M=l("".slice),I=l("".replace),w=l([].join),F=y&&!f(function(){return P(function(){},"length",{value:8}).length!==8}),Y=String(String).split("String"),j=d.exports=function(B,$,X){M(R($),0,7)==="Symbol("&&($="["+I(R($),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),X&&X.getter&&($="get "+$),X&&X.setter&&($="set "+$),(!g(B,"name")||T&&B.name!==$)&&(y?P(B,"name",{value:$,configurable:!0}):B.name=$),F&&X&&g(X,"arity")&&B.length!==X.arity&&P(B,"length",{value:X.arity});try{X&&g(X,"constructor")&&X.constructor?y&&P(B,"prototype",{writable:!1}):B.prototype&&(B.prototype=void 0)}catch(_){}var Q=C(B);return g(Q,"source")||(Q.source=w(Y,typeof $=="string"?$:"")),B};Function.prototype.toString=j(function(){return v(this)&&A(this).source||x(this)},"toString")},75638:function(d){"use strict";var S=Math.ceil,n=Math.floor;d.exports=Math.trunc||function(f){var v=+f;return(v>0?n:S)(v)}},94734:function(d,S,n){"use strict";var l=n(93755),f=n(28096),v=n(8206),g=n(84812).set,y=n(76408),T=n(54394),x=n(21825),b=n(42637),C=n(12264),A=l.MutationObserver||l.WebKitMutationObserver,R=l.document,P=l.process,M=l.Promise,I=f("queueMicrotask"),w,F,Y,j,B;if(!I){var $=new y,X=function(){var Q,_;for(C&&(Q=P.domain)&&Q.exit();_=$.get();)try{_()}catch(k){throw $.head&&w(),k}Q&&Q.enter()};!T&&!C&&!b&&A&&R?(F=!0,Y=R.createTextNode(""),new A(X).observe(Y,{characterData:!0}),w=function(){Y.data=F=!F}):!x&&M&&M.resolve?(j=M.resolve(void 0),j.constructor=M,B=v(j.then,j),w=function(){B(X)}):C?w=function(){P.nextTick(X)}:(g=v(g,l),w=function(){g(X)}),I=function(Q){$.head||w(),$.add(Q)}}d.exports=I},52878:function(d,S,n){"use strict";var l=n(25499),f=TypeError,v=function(g){var y,T;this.promise=new g(function(x,b){if(y!==void 0||T!==void 0)throw new f("Bad Promise constructor");y=x,T=b}),this.resolve=l(y),this.reject=l(T)};d.exports.f=function(g){return new v(g)}},54914:function(d,S,n){"use strict";var l=n(62494),f=TypeError;d.exports=function(v){if(l(v))throw new f("The method doesn't accept regular expressions");return v}},40079:function(d,S,n){"use strict";var l=n(14752),f=n(54315),v=n(46367),g=n(33614),y=n(65757),T=n(27139),x=n(81196),b=">",C="<",A="prototype",R="script",P=x("IE_PROTO"),M=function(){},I=function(B){return C+R+b+B+C+"/"+R+b},w=function(B){B.write(I("")),B.close();var $=B.parentWindow.Object;return B=null,$},F=function(){var B=T("iframe"),$="java"+R+":",X;return B.style.display="none",y.appendChild(B),B.src=String($),X=B.contentWindow.document,X.open(),X.write(I("document.F=Object")),X.close(),X.F},Y,j=function(){try{Y=new ActiveXObject("htmlfile")}catch($){}j=typeof document!="undefined"?document.domain&&Y?w(Y):F():w(Y);for(var B=v.length;B--;)delete j[A][v[B]];return j()};g[P]=!0,d.exports=Object.create||function($,X){var Q;return $!==null?(M[A]=l($),Q=new M,M[A]=null,Q[P]=$):Q=j(),X===void 0?Q:f.f(Q,X)}},54315:function(d,S,n){"use strict";var l=n(73679),f=n(66577),v=n(92402),g=n(14752),y=n(18295),T=n(1417);S.f=l&&!f?Object.defineProperties:function(b,C){g(b);for(var A=y(C),R=T(C),P=R.length,M=0,I;P>M;)v.f(b,I=R[M++],A[I]);return b}},92402:function(d,S,n){"use strict";var l=n(73679),f=n(84436),v=n(66577),g=n(14752),y=n(76155),T=TypeError,x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,C="enumerable",A="configurable",R="writable";S.f=l?v?function(M,I,w){if(g(M),I=y(I),g(w),typeof M=="function"&&I==="prototype"&&"value"in w&&R in w&&!w[R]){var F=b(M,I);F&&F[R]&&(M[I]=w.value,w={configurable:A in w?w[A]:F[A],enumerable:C in w?w[C]:F[C],writable:!1})}return x(M,I,w)}:x:function(M,I,w){if(g(M),I=y(I),g(w),f)try{return x(M,I,w)}catch(F){}if("get"in w||"set"in w)throw new T("Accessors not supported");return"value"in w&&(M[I]=w.value),M}},54398:function(d,S,n){"use strict";var l=n(73679),f=n(65318),v=n(31559),g=n(2262),y=n(18295),T=n(76155),x=n(57430),b=n(84436),C=Object.getOwnPropertyDescriptor;S.f=l?C:function(R,P){if(R=y(R),P=T(P),b)try{return C(R,P)}catch(M){}if(x(R,P))return g(!f(v.f,R,P),R[P])}},94254:function(d,S,n){"use strict";var l=n(30559),f=n(46367),v=f.concat("length","prototype");S.f=Object.getOwnPropertyNames||function(y){return l(y,v)}},3266:function(d,S){"use strict";S.f=Object.getOwnPropertySymbols},96228:function(d,S,n){"use strict";var l=n(57430),f=n(11800),v=n(57866),g=n(81196),y=n(67715),T=g("IE_PROTO"),x=Object,b=x.prototype;d.exports=y?x.getPrototypeOf:function(C){var A=v(C);if(l(A,T))return A[T];var R=A.constructor;return f(R)&&A instanceof R?R.prototype:A instanceof x?b:null}},93527:function(d,S,n){"use strict";var l=n(37725);d.exports=l({}.isPrototypeOf)},30559:function(d,S,n){"use strict";var l=n(37725),f=n(57430),v=n(18295),g=n(76879).indexOf,y=n(33614),T=l([].push);d.exports=function(x,b){var C=v(x),A=0,R=[],P;for(P in C)!f(y,P)&&f(C,P)&&T(R,P);for(;b.length>A;)f(C,P=b[A++])&&(~g(R,P)||T(R,P));return R}},1417:function(d,S,n){"use strict";var l=n(30559),f=n(46367);d.exports=Object.keys||function(g){return l(g,f)}},31559:function(d,S){"use strict";var n={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,f=l&&!n.call({1:2},1);S.f=f?function(g){var y=l(this,g);return!!y&&y.enumerable}:n},30424:function(d,S,n){"use strict";var l=n(49410),f=n(46638),v=n(72337),g=n(30828);d.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var y=!1,T={},x;try{x=l(Object.prototype,"__proto__","set"),x(T,[]),y=T instanceof Array}catch(b){}return function(C,A){return v(C),g(A),f(C)&&(y?x(C,A):C.__proto__=A),C}}():void 0)},90487:function(d,S,n){"use strict";var l=n(65318),f=n(11800),v=n(46638),g=TypeError;d.exports=function(y,T){var x,b;if(T==="string"&&f(x=y.toString)&&!v(b=l(x,y))||f(x=y.valueOf)&&!v(b=l(x,y))||T!=="string"&&f(x=y.toString)&&!v(b=l(x,y)))return b;throw new g("Can't convert object to primitive value")}},58905:function(d,S,n){"use strict";var l=n(4609),f=n(37725),v=n(94254),g=n(3266),y=n(14752),T=f([].concat);d.exports=l("Reflect","ownKeys")||function(b){var C=v.f(y(b)),A=g.f;return A?T(C,A(b)):C}},74022:function(d,S,n){"use strict";var l=n(93755);d.exports=l},66850:function(d){"use strict";d.exports=function(S){try{return{error:!1,value:S()}}catch(n){return{error:!0,value:n}}}},98060:function(d,S,n){"use strict";var l=n(93755),f=n(74199),v=n(11800),g=n(26657),y=n(79321),T=n(22171),x=n(84526),b=n(77667),C=n(59410),A=f&&f.prototype,R=T("species"),P=!1,M=v(l.PromiseRejectionEvent),I=g("Promise",function(){var w=y(f),F=w!==String(f);if(!F&&C===66||b&&!(A.catch&&A.finally))return!0;if(!C||C<51||!/native code/.test(w)){var Y=new f(function($){$(1)}),j=function($){$(function(){},function(){})},B=Y.constructor={};if(B[R]=j,P=Y.then(function(){})instanceof j,!P)return!0}return!F&&(x==="BROWSER"||x==="DENO")&&!M});d.exports={CONSTRUCTOR:I,REJECTION_EVENT:M,SUBCLASSING:P}},74199:function(d,S,n){"use strict";var l=n(93755);d.exports=l.Promise},46374:function(d,S,n){"use strict";var l=n(14752),f=n(46638),v=n(52878);d.exports=function(g,y){if(l(g),f(y)&&y.constructor===g)return y;var T=v.f(g),x=T.resolve;return x(y),T.promise}},23056:function(d,S,n){"use strict";var l=n(74199),f=n(16961),v=n(98060).CONSTRUCTOR;d.exports=v||!f(function(g){l.all(g).then(void 0,function(){})})},76408:function(d){"use strict";var S=function(){this.head=null,this.tail=null};S.prototype={add:function(n){var l={item:n,next:null},f=this.tail;f?f.next=l:this.head=l,this.tail=l},get:function(){var n=this.head;if(n){var l=this.head=n.next;return l===null&&(this.tail=null),n.item}}},d.exports=S},10253:function(d,S,n){"use strict";var l=n(65318),f=n(14752),v=n(11800),g=n(60380),y=n(1513),T=TypeError;d.exports=function(x,b){var C=x.exec;if(v(C)){var A=l(C,x,b);return A!==null&&f(A),A}if(g(x)==="RegExp")return l(y,x,b);throw new T("RegExp#exec called on incompatible receiver")}},1513:function(d,S,n){"use strict";var l=n(65318),f=n(37725),v=n(11315),g=n(65317),y=n(88797),T=n(2896),x=n(40079),b=n(23836).get,C=n(62008),A=n(3072),R=T("native-string-replace",String.prototype.replace),P=RegExp.prototype.exec,M=P,I=f("".charAt),w=f("".indexOf),F=f("".replace),Y=f("".slice),j=function(){var Q=/a/,_=/b*/g;return l(P,Q,"a"),l(P,_,"a"),Q.lastIndex!==0||_.lastIndex!==0}(),B=y.BROKEN_CARET,$=/()??/.exec("")[1]!==void 0,X=j||$||B||C||A;X&&(M=function(_){var k=this,lt=b(k),tt=v(_),et=lt.raw,st,ot,yt,Z,J,wt,mt;if(et)return et.lastIndex=k.lastIndex,st=l(M,et,tt),k.lastIndex=et.lastIndex,st;var ut=lt.groups,ht=B&&k.sticky,N=l(g,k),ft=k.source,Ut=0,At=tt;if(ht&&(N=F(N,"y",""),w(N,"g")===-1&&(N+="g"),At=Y(tt,k.lastIndex),k.lastIndex>0&&(!k.multiline||k.multiline&&I(tt,k.lastIndex-1)!==` `)&&(ft="(?: "+ft+")",At=" "+At,Ut++),ot=new RegExp("^(?:"+ft+")",N)),$&&(ot=new RegExp("^"+ft+"$(?!\\s)",N)),j&&(yt=k.lastIndex),Z=l(P,ht?ot:k,At),ht?Z?(Z.input=Y(Z.input,Ut),Z[0]=Y(Z[0],Ut),Z.index=k.lastIndex,k.lastIndex+=Z[0].length):k.lastIndex=0:j&&Z&&(k.lastIndex=k.global?Z.index+Z[0].length:yt),$&&Z&&Z.length>1&&l(R,Z[0],ot,function(){for(J=1;Jb)","g");return g.exec("b").groups.a!=="b"||"b".replace(g,"$c")!=="bc"})},72337:function(d,S,n){"use strict";var l=n(92606),f=TypeError;d.exports=function(v){if(l(v))throw new f("Can't call method on "+v);return v}},28096:function(d,S,n){"use strict";var l=n(93755),f=n(73679),v=Object.getOwnPropertyDescriptor;d.exports=function(g){if(!f)return l[g];var y=v(l,g);return y&&y.value}},29842:function(d,S,n){"use strict";var l=n(4609),f=n(36096),v=n(22171),g=n(73679),y=v("species");d.exports=function(T){var x=l(T);g&&x&&!x[y]&&f(x,y,{configurable:!0,get:function(){return this}})}},21812:function(d,S,n){"use strict";var l=n(92402).f,f=n(57430),v=n(22171),g=v("toStringTag");d.exports=function(y,T,x){y&&!x&&(y=y.prototype),y&&!f(y,g)&&l(y,g,{configurable:!0,value:T})}},81196:function(d,S,n){"use strict";var l=n(2896),f=n(24088),v=l("keys");d.exports=function(g){return v[g]||(v[g]=f(g))}},54163:function(d,S,n){"use strict";var l=n(77667),f=n(93755),v=n(31463),g="__core-js_shared__",y=d.exports=f[g]||v(g,{});(y.versions||(y.versions=[])).push({version:"3.48.0",mode:l?"pure":"global",copyright:"\xA9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"})},2896:function(d,S,n){"use strict";var l=n(54163);d.exports=function(f,v){return l[f]||(l[f]=v||{})}},14099:function(d,S,n){"use strict";var l=n(14752),f=n(48274),v=n(92606),g=n(22171),y=g("species");d.exports=function(T,x){var b=l(T).constructor,C;return b===void 0||v(C=l(b)[y])?x:f(C)}},38095:function(d,S,n){"use strict";var l=n(37725),f=n(30921),v=n(11315),g=n(72337),y=l("".charAt),T=l("".charCodeAt),x=l("".slice),b=function(C){return function(A,R){var P=v(g(A)),M=f(R),I=P.length,w,F;return M<0||M>=I?C?"":void 0:(w=T(P,M),w<55296||w>56319||M+1===I||(F=T(P,M+1))<56320||F>57343?C?y(P,M):w:C?x(P,M,M+2):(w-55296<<10)+(F-56320)+65536)}};d.exports={codeAt:b(!1),charAt:b(!0)}},2659:function(d,S,n){"use strict";var l=n(80100).PROPER,f=n(73130),v=n(29528),g="\u200B\x85\u180E";d.exports=function(y){return f(function(){return!!v[y]()||g[y]()!==g||l&&v[y].name!==y})}},99407:function(d,S,n){"use strict";var l=n(37725),f=n(72337),v=n(11315),g=n(29528),y=l("".replace),T=RegExp("^["+g+"]+"),x=RegExp("(^|[^"+g+"])["+g+"]+$"),b=function(C){return function(A){var R=v(f(A));return C&1&&(R=y(R,T,"")),C&2&&(R=y(R,x,"$1")),R}};d.exports={start:b(1),end:b(2),trim:b(3)}},3494:function(d,S,n){"use strict";var l=n(59410),f=n(73130),v=n(93755),g=v.String;d.exports=!!Object.getOwnPropertySymbols&&!f(function(){var y=Symbol("symbol detection");return!g(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&l&&l<41})},84812:function(d,S,n){"use strict";var l=n(93755),f=n(71016),v=n(8206),g=n(11800),y=n(57430),T=n(73130),x=n(65757),b=n(29986),C=n(27139),A=n(51631),R=n(54394),P=n(12264),M=l.setImmediate,I=l.clearImmediate,w=l.process,F=l.Dispatch,Y=l.Function,j=l.MessageChannel,B=l.String,$=0,X={},Q="onreadystatechange",_,k,lt,tt;T(function(){_=l.location});var et=function(Z){if(y(X,Z)){var J=X[Z];delete X[Z],J()}},st=function(Z){return function(){et(Z)}},ot=function(Z){et(Z.data)},yt=function(Z){l.postMessage(B(Z),_.protocol+"//"+_.host)};(!M||!I)&&(M=function(J){A(arguments.length,1);var wt=g(J)?J:Y(J),mt=b(arguments,1);return X[++$]=function(){f(wt,void 0,mt)},k($),$},I=function(J){delete X[J]},P?k=function(Z){w.nextTick(st(Z))}:F&&F.now?k=function(Z){F.now(st(Z))}:j&&!R?(lt=new j,tt=lt.port2,lt.port1.onmessage=ot,k=v(tt.postMessage,tt)):l.addEventListener&&g(l.postMessage)&&!l.importScripts&&_&&_.protocol!=="file:"&&!T(yt)?(k=yt,l.addEventListener("message",ot,!1)):Q in C("script")?k=function(Z){x.appendChild(C("script"))[Q]=function(){x.removeChild(this),et(Z)}}:k=function(Z){setTimeout(st(Z),0)}),d.exports={set:M,clear:I}},95374:function(d,S,n){"use strict";var l=n(30921),f=Math.max,v=Math.min;d.exports=function(g,y){var T=l(g);return T<0?f(T+y,0):v(T,y)}},18295:function(d,S,n){"use strict";var l=n(910),f=n(72337);d.exports=function(v){return l(f(v))}},30921:function(d,S,n){"use strict";var l=n(75638);d.exports=function(f){var v=+f;return v!==v||v===0?0:l(v)}},56005:function(d,S,n){"use strict";var l=n(30921),f=Math.min;d.exports=function(v){var g=l(v);return g>0?f(g,9007199254740991):0}},57866:function(d,S,n){"use strict";var l=n(72337),f=Object;d.exports=function(v){return f(l(v))}},77152:function(d,S,n){"use strict";var l=n(65318),f=n(46638),v=n(54486),g=n(55884),y=n(90487),T=n(22171),x=TypeError,b=T("toPrimitive");d.exports=function(C,A){if(!f(C)||v(C))return C;var R=g(C,b),P;if(R){if(A===void 0&&(A="default"),P=l(R,C,A),!f(P)||v(P))return P;throw new x("Can't convert object to primitive value")}return A===void 0&&(A="number"),y(C,A)}},76155:function(d,S,n){"use strict";var l=n(77152),f=n(54486);d.exports=function(v){var g=l(v,"string");return f(g)?g:g+""}},28043:function(d,S,n){"use strict";var l=n(22171),f=l("toStringTag"),v={};v[f]="z",d.exports=String(v)==="[object z]"},11315:function(d,S,n){"use strict";var l=n(11298),f=String;d.exports=function(v){if(l(v)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return f(v)}},16199:function(d){"use strict";var S=String;d.exports=function(n){try{return S(n)}catch(l){return"Object"}}},24088:function(d,S,n){"use strict";var l=n(37725),f=0,v=Math.random(),g=l(1.1.toString);d.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+g(++f+v,36)}},90590:function(d,S,n){"use strict";var l=n(3494);d.exports=l&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},66577:function(d,S,n){"use strict";var l=n(73679),f=n(73130);d.exports=l&&f(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},51631:function(d){"use strict";var S=TypeError;d.exports=function(n,l){if(n1?arguments[1]:void 0;return T?y(this,C,A)||0:v(this,C,A)}})},46220:function(d,S,n){"use strict";var l=n(18295),f=n(64744),v=n(85233),g=n(23836),y=n(92402).f,T=n(58302),x=n(70133),b=n(77667),C=n(73679),A="Array Iterator",R=g.set,P=g.getterFor(A);d.exports=T(Array,"Array",function(I,w){R(this,{type:A,target:l(I),index:0,kind:w})},function(){var I=P(this),w=I.target,F=I.index++;if(!w||F>=w.length)return I.target=null,x(void 0,!0);switch(I.kind){case"keys":return x(F,!1);case"values":return x(w[F],!1)}return x([F,w[F]],!1)},"values");var M=v.Arguments=v.Array;if(f("keys"),f("values"),f("entries"),!b&&C&&M.name!=="values")try{y(M,"name",{value:"values"})}catch(I){}},79075:function(d,S,n){"use strict";var l=n(82372),f=n(45333).left,v=n(67055),g=n(59410),y=n(12264),T=!y&&g>79&&g<83,x=T||!v("reduce");l({target:"Array",proto:!0,forced:x},{reduce:function(C){var A=arguments.length;return f(this,C,A,A>1?arguments[1]:void 0)}})},36342:function(d,S,n){"use strict";var l=n(82372),f=n(37725),v=n(60221),g=f([].reverse),y=[1,2];l({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return v(this)&&(this.length=this.length),g(this)}})},86487:function(d,S,n){"use strict";var l=n(82372),f=n(65318),v=n(25499),g=n(52878),y=n(66850),T=n(92948),x=n(23056);l({target:"Promise",stat:!0,forced:x},{all:function(C){var A=this,R=g.f(A),P=R.resolve,M=R.reject,I=y(function(){var w=v(A.resolve),F=[],Y=0,j=1;T(C,function(B){var $=Y++,X=!1;j++,f(w,A,B).then(function(Q){X||(X=!0,F[$]=Q,--j||P(F))},M)}),--j||P(F)});return I.error&&M(I.value),R.promise}})},95690:function(d,S,n){"use strict";var l=n(82372),f=n(77667),v=n(98060).CONSTRUCTOR,g=n(74199),y=n(4609),T=n(11800),x=n(11406),b=g&&g.prototype;if(l({target:"Promise",proto:!0,forced:v,real:!0},{catch:function(A){return this.then(void 0,A)}}),!f&&T(g)){var C=y("Promise").prototype.catch;b.catch!==C&&x(b,"catch",C,{unsafe:!0})}},93677:function(d,S,n){"use strict";var l=n(82372),f=n(77667),v=n(12264),g=n(93755),y=n(74022),T=n(65318),x=n(11406),b=n(30424),C=n(21812),A=n(29842),R=n(25499),P=n(11800),M=n(46638),I=n(70271),w=n(14099),F=n(84812).set,Y=n(94734),j=n(50358),B=n(66850),$=n(76408),X=n(23836),Q=n(74199),_=n(98060),k=n(52878),lt="Promise",tt=_.CONSTRUCTOR,et=_.REJECTION_EVENT,st=_.SUBCLASSING,ot=X.getterFor(lt),yt=X.set,Z=Q&&Q.prototype,J=Q,wt=Z,mt=g.TypeError,ut=g.document,ht=g.process,N=k.f,ft=N,Ut=!!(ut&&ut.createEvent&&g.dispatchEvent),At="unhandledrejection",Vt="rejectionhandled",qt=0,ie=1,Qt=2,le=1,he=2,_t,fe,ce,Zt,ve=function(W){var nt;return M(W)&&P(nt=W.then)?nt:!1},ge=function(W,nt){var gt=nt.value,dt=nt.state===ie,bt=dt?W.ok:W.fail,me=W.resolve,Le=W.reject,xe=W.domain,Ee,te,$e;try{bt?(dt||(nt.rejection===he&&Ze(nt),nt.rejection=le),bt===!0?Ee=gt:(xe&&xe.enter(),Ee=bt(gt),xe&&(xe.exit(),$e=!0)),Ee===W.promise?Le(new mt("Promise-chain cycle")):(te=ve(Ee))?T(te,Ee,me,Le):me(Ee)):Le(gt)}catch(ae){xe&&!$e&&xe.exit(),Le(ae)}},de=function(W,nt){W.notified||(W.notified=!0,Y(function(){for(var gt=W.reactions,dt;dt=gt.get();)ge(dt,W);W.notified=!1,nt&&!W.rejection&&Kt(W)}))},pe=function(W,nt,gt){var dt,bt;Ut?(dt=ut.createEvent("Event"),dt.promise=nt,dt.reason=gt,dt.initEvent(W,!1,!0),g.dispatchEvent(dt)):dt={promise:nt,reason:gt},!et&&(bt=g["on"+W])?bt(dt):W===At&&j("Unhandled promise rejection",gt)},Kt=function(W){T(F,g,function(){var nt=W.facade,gt=W.value,dt=ze(W),bt;if(dt&&(bt=B(function(){v?ht.emit("unhandledRejection",gt,nt):pe(At,nt,gt)}),W.rejection=v||ze(W)?he:le,bt.error))throw bt.value})},ze=function(W){return W.rejection!==le&&!W.parent},Ze=function(W){T(F,g,function(){var nt=W.facade;v?ht.emit("rejectionHandled",nt):pe(Vt,nt,W.value)})},It=function(W,nt,gt){return function(dt){W(nt,dt,gt)}},ye=function(W,nt,gt){W.done||(W.done=!0,gt&&(W=gt),W.value=nt,W.state=Qt,de(W,!0))},De=function(W,nt,gt){if(!W.done){W.done=!0,gt&&(W=gt);try{if(W.facade===nt)throw new mt("Promise can't be resolved itself");var dt=ve(nt);dt?Y(function(){var bt={done:!1};try{T(dt,nt,It(De,bt,W),It(ye,bt,W))}catch(me){ye(bt,me,W)}}):(W.value=nt,W.state=ie,de(W,!1))}catch(bt){ye({done:!1},bt,W)}}};if(tt&&(J=function(nt){I(this,wt),R(nt),T(_t,this);var gt=ot(this);try{nt(It(De,gt),It(ye,gt))}catch(dt){ye(gt,dt)}},wt=J.prototype,_t=function(nt){yt(this,{type:lt,done:!1,notified:!1,parent:!1,reactions:new $,rejection:!1,state:qt,value:null})},_t.prototype=x(wt,"then",function(nt,gt){var dt=ot(this),bt=N(w(this,J));return dt.parent=!0,bt.ok=P(nt)?nt:!0,bt.fail=P(gt)&>,bt.domain=v?ht.domain:void 0,dt.state===qt?dt.reactions.add(bt):Y(function(){ge(bt,dt)}),bt.promise}),fe=function(){var W=new _t,nt=ot(W);this.promise=W,this.resolve=It(De,nt),this.reject=It(ye,nt)},k.f=N=function(W){return W===J||W===ce?new fe(W):ft(W)},!f&&P(Q)&&Z!==Object.prototype)){Zt=Z.then,st||x(Z,"then",function(nt,gt){var dt=this;return new J(function(bt,me){T(Zt,dt,bt,me)}).then(nt,gt)},{unsafe:!0});try{delete Z.constructor}catch(W){}b&&b(Z,wt)}l({global:!0,constructor:!0,wrap:!0,forced:tt},{Promise:J}),ce=y.Promise,C(J,lt,!1,!0),A(lt)},91597:function(d,S,n){"use strict";n(93677),n(86487),n(95690),n(6523),n(25011),n(64056)},6523:function(d,S,n){"use strict";var l=n(82372),f=n(65318),v=n(25499),g=n(52878),y=n(66850),T=n(92948),x=n(23056);l({target:"Promise",stat:!0,forced:x},{race:function(C){var A=this,R=g.f(A),P=R.reject,M=y(function(){var I=v(A.resolve);T(C,function(w){f(I,A,w).then(R.resolve,P)})});return M.error&&P(M.value),R.promise}})},25011:function(d,S,n){"use strict";var l=n(82372),f=n(52878),v=n(98060).CONSTRUCTOR;l({target:"Promise",stat:!0,forced:v},{reject:function(y){var T=f.f(this),x=T.reject;return x(y),T.promise}})},64056:function(d,S,n){"use strict";var l=n(82372),f=n(4609),v=n(77667),g=n(74199),y=n(98060).CONSTRUCTOR,T=n(46374),x=f("Promise"),b=v&&!y;l({target:"Promise",stat:!0,forced:v||y},{resolve:function(A){return T(b&&this===x?g:this,A)}})},24343:function(d,S,n){"use strict";var l=n(82372),f=n(1513);l({target:"RegExp",proto:!0,forced:/./.exec!==f},{exec:f})},57815:function(d,S,n){"use strict";var l=n(80100).PROPER,f=n(11406),v=n(14752),g=n(11315),y=n(73130),T=n(13836),x="toString",b=RegExp.prototype,C=b[x],A=y(function(){return C.call({source:"a",flags:"b"})!=="/a/b"}),R=l&&C.name!==x;(A||R)&&f(b,x,function(){var M=v(this),I=g(M.source),w=g(T(M));return"/"+I+"/"+w},{unsafe:!0})},30303:function(d,S,n){"use strict";var l=n(82372),f=n(64866),v=n(54398).f,g=n(56005),y=n(11315),T=n(54914),x=n(72337),b=n(37101),C=n(77667),A=f("".slice),R=Math.min,P=b("endsWith"),M=!C&&!P&&!!function(){var I=v(String.prototype,"endsWith");return I&&!I.writable}();l({target:"String",proto:!0,forced:!M&&!P},{endsWith:function(w){var F=y(x(this));T(w);var Y=arguments.length>1?arguments[1]:void 0,j=F.length,B=Y===void 0?j:R(g(Y),j),$=y(w);return A(F,B-$.length,B)===$}})},80027:function(d,S,n){"use strict";var l=n(82372),f=n(37725),v=n(54914),g=n(72337),y=n(11315),T=n(37101),x=f("".indexOf);l({target:"String",proto:!0,forced:!T("includes")},{includes:function(C){return!!~x(y(g(this)),y(v(C)),arguments.length>1?arguments[1]:void 0)}})},8474:function(d,S,n){"use strict";var l=n(65318),f=n(37725),v=n(78381),g=n(14752),y=n(46638),T=n(56005),x=n(11315),b=n(72337),C=n(55884),A=n(78938),R=n(13836),P=n(10253),M=f("".indexOf);v("match",function(I,w,F){return[function(j){var B=b(this),$=y(j)?C(j,I):void 0;return $?l($,j,B):new RegExp(j)[I](x(B))},function(Y){var j=g(this),B=x(Y),$=F(w,j,B);if($.done)return $.value;var X=x(R(j));if(M(X,"g")===-1)return P(j,B);var Q=M(X,"u")!==-1;j.lastIndex=0;for(var _=[],k=0,lt;(lt=P(j,B))!==null;){var tt=x(lt[0]);_[k]=tt,tt===""&&(j.lastIndex=A(B,T(j.lastIndex),Q)),k++}return k===0?null:_}]})},86914:function(d,S,n){"use strict";var l=n(71016),f=n(65318),v=n(37725),g=n(78381),y=n(73130),T=n(14752),x=n(11800),b=n(46638),C=n(30921),A=n(56005),R=n(11315),P=n(72337),M=n(78938),I=n(55884),w=n(92506),F=n(13836),Y=n(10253),j=n(22171),B=j("replace"),$=Math.max,X=Math.min,Q=v([].concat),_=v([].push),k=v("".indexOf),lt=v("".slice),tt=function(yt){return yt===void 0?yt:String(yt)},et=function(){return"a".replace(/./,"$0")==="$0"}(),st=function(){return/./[B]?/./[B]("a","$0")==="":!1}(),ot=!y(function(){var yt=/./;return yt.exec=function(){var Z=[];return Z.groups={a:"7"},Z},"".replace(yt,"$")!=="7"});g("replace",function(yt,Z,J){var wt=st?"$":"$0";return[function(ut,ht){var N=P(this),ft=b(ut)?I(ut,B):void 0;return ft?f(ft,ut,N,ht):f(Z,R(N),ut,ht)},function(mt,ut){var ht=T(this),N=R(mt);if(typeof ut=="string"&&k(ut,wt)===-1&&k(ut,"$<")===-1){var ft=J(Z,ht,N,ut);if(ft.done)return ft.value}var Ut=x(ut);Ut||(ut=R(ut));var At=R(F(ht)),Vt=k(At,"g")!==-1,qt;Vt&&(qt=k(At,"u")!==-1,ht.lastIndex=0);for(var ie=[],Qt;Qt=Y(ht,N),!(Qt===null||(_(ie,Qt),!Vt));){var le=R(Qt[0]);le===""&&(ht.lastIndex=M(N,A(ht.lastIndex),qt))}for(var he="",_t=0,fe=0;fe=_t&&(he+=lt(N,_t,Zt)+ge,_t=Zt+ce.length)}return he+lt(N,_t)}]},!ot||!et||st)},95265:function(d,S,n){"use strict";var l=n(65318),f=n(37725),v=n(78381),g=n(14752),y=n(46638),T=n(72337),x=n(14099),b=n(78938),C=n(56005),A=n(11315),R=n(55884),P=n(10253),M=n(88797),I=n(73130),w=M.UNSUPPORTED_Y,F=4294967295,Y=Math.min,j=f([].push),B=f("".slice),$=!I(function(){var Q=/(?:)/,_=Q.exec;Q.exec=function(){return _.apply(this,arguments)};var k="ab".split(Q);return k.length!==2||k[0]!=="a"||k[1]!=="b"}),X="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;v("split",function(Q,_,k){var lt="0".split(void 0,0).length?function(tt,et){return tt===void 0&&et===0?[]:l(_,this,tt,et)}:_;return[function(et,st){var ot=T(this),yt=y(et)?R(et,Q):void 0;return yt?l(yt,et,ot,st):l(lt,A(ot),et,st)},function(tt,et){var st=g(this),ot=A(tt);if(!X){var yt=k(lt,st,ot,et,lt!==_);if(yt.done)return yt.value}var Z=x(st,RegExp),J=st.unicode,wt=(st.ignoreCase?"i":"")+(st.multiline?"m":"")+(st.unicode?"u":"")+(w?"g":"y"),mt=new Z(w?"^(?:"+st.source+")":st,wt),ut=et===void 0?F:et>>>0;if(ut===0)return[];if(ot.length===0)return P(mt,ot)===null?[ot]:[];for(var ht=0,N=0,ft=[];N1?arguments[1]:void 0,F.length)),j=y(w);return A(F,Y,Y+j.length)===j}})},59483:function(d,S,n){"use strict";var l=n(82372),f=n(99407).trim,v=n(2659);l({target:"String",proto:!0,forced:v("trim")},{trim:function(){return f(this)}})},50610:function(d,S,n){"use strict";var l=n(93755),f=n(53164),v=n(68376),g=n(46220),y=n(30600),T=n(21812),x=n(22171),b=x("iterator"),C=g.values,A=function(P,M){if(P){if(P[b]!==C)try{y(P,b,C)}catch(w){P[b]=C}if(T(P,M,!0),f[M]){for(var I in g)if(P[I]!==g[I])try{y(P,I,g[I])}catch(w){P[I]=g[I]}}}};for(var R in f)A(l[R]&&l[R].prototype,R);A(v,"DOMTokenList")},63754:function(d,S,n){"use strict";n.r(S),n.d(S,{AElement:function(){return un},AnimateColorElement:function(){return en},AnimateElement:function(){return qe},AnimateTransformElement:function(){return rn},BoundingBox:function(){return kt},CB1:function(){return hr},CB2:function(){return fr},CB3:function(){return cr},CB4:function(){return vr},Canvg:function(){return Ne},CircleElement:function(){return Xr},ClipPathElement:function(){return pn},DefsElement:function(){return Jr},DescElement:function(){return On},Document:function(){return ue},Element:function(){return Ct},EllipseElement:function(){return Wr},FeColorMatrixElement:function(){return br},FeCompositeElement:function(){return xn},FeDropShadowElement:function(){return yn},FeGaussianBlurElement:function(){return En},FeMorphologyElement:function(){return mn},FilterElement:function(){return We},Font:function(){return zt},FontElement:function(){return nn},FontFaceElement:function(){return an},GElement:function(){return Je},GlyphElement:function(){return xr},GradientElement:function(){return Or},ImageElement:function(){return fn},LineElement:function(){return Qr},LinearGradientElement:function(){return qr},MarkerElement:function(){return kr},MaskElement:function(){return Xe},Matrix:function(){return yr},MissingGlyphElement:function(){return sn},Mouse:function(){return Br},PSEUDO_ZERO:function(){return ae},Parser:function(){return ke},PathElement:function(){return xt},PathParser:function(){return it},PatternElement:function(){return Kr},Point:function(){return Rt},PolygonElement:function(){return Zr},PolylineElement:function(){return Tr},Property:function(){return q},QB1:function(){return gr},QB2:function(){return dr},QB3:function(){return pr},RadialGradientElement:function(){return _r},RectElement:function(){return Er},RenderedElement:function(){return Oe},Rotate:function(){return Gr},SVGElement:function(){return Be},SVGFontLoader:function(){return vn},Scale:function(){return zr},Screen:function(){return He},Skew:function(){return mr},SkewX:function(){return $r},SkewY:function(){return Hr},StopElement:function(){return tn},StyleElement:function(){return Sr},SymbolElement:function(){return cn},TRefElement:function(){return on},TSpanElement:function(){return Ye},TextElement:function(){return se},TextPathElement:function(){return hn},TitleElement:function(){return Tn},Transform:function(){return Te},Translate:function(){return jr},UnknownElement:function(){return Yr},UseElement:function(){return gn},ViewPort:function(){return Lr},compressSpaces:function(){return Kt},default:function(){return Ne},getSelectorSpecificity:function(){return $e},normalizeAttributeName:function(){return De},normalizeColor:function(){return nt},parseExternalUrl:function(){return W},presets:function(){return pe},toNumbers:function(){return It},trimLeft:function(){return ze},trimRight:function(){return Ze},vectorMagnitude:function(){return ur},vectorsAngle:function(){return lr},vectorsRatio:function(){return Ke}});var l=n(91597),f=n(11576),v=n(8474),g=n(86914),y=n(5542),T=n(46220),x=n(50610),b=n(18642),C=n(79075),A=n(30303),R=n(95265),P=n(32772),M=n(59483),I=n(45810),w=n(1261),F=n(80027),Y=n(36342);var j=function(h,t){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])})(h,t)};function B(h,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=h}j(h,t),h.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function $(h){var t="";Array.isArray(h)||(h=[h]);for(var e=0;eh.phi1&&(h.phi2-=2*_),h.sweepFlag===1&&h.phi2r)return[];if(r===0)return[[h*e/(h*h+t*t),t*e/(h*h+t*t)]];var i=Math.sqrt(r);return[[(h*e+t*i)/(h*h+t*t),(t*e-h*i)/(h*h+t*t)],[(h*e-t*i)/(h*h+t*t),(t*e+h*i)/(h*h+t*t)]]}var tt,et=Math.PI/180;function st(h,t,e){return(1-e)*h+e*t}function ot(h,t,e,r){return h+Math.cos(r/180*_)*t+Math.sin(r/180*_)*e}function yt(h,t,e,r){var i=1e-6,a=t-h,o=e-t,s=3*a+3*(r-e)-6*o,u=6*(o-a),c=3*a;return Math.abs(s)H&&(m.sweepFlag=+!m.sweepFlag),m})}function o(){return function(s){var u={};for(var c in s)u[c]=s[c];return u}}h.ROUND=function(s){function u(c){return Math.round(c*s)/s}return s===void 0&&(s=1e13),Q(s),function(c){return c.x1!==void 0&&(c.x1=u(c.x1)),c.y1!==void 0&&(c.y1=u(c.y1)),c.x2!==void 0&&(c.x2=u(c.x2)),c.y2!==void 0&&(c.y2=u(c.y2)),c.x!==void 0&&(c.x=u(c.x)),c.y!==void 0&&(c.y=u(c.y)),c.rX!==void 0&&(c.rX=u(c.rX)),c.rY!==void 0&&(c.rY=u(c.rY)),c}},h.TO_ABS=t,h.TO_REL=function(){return i(function(s,u,c){return s.relative||(s.x1!==void 0&&(s.x1-=u),s.y1!==void 0&&(s.y1-=c),s.x2!==void 0&&(s.x2-=u),s.y2!==void 0&&(s.y2-=c),s.x!==void 0&&(s.x-=u),s.y!==void 0&&(s.y-=c),s.relative=!0),s})},h.NORMALIZE_HVZ=function(s,u,c){return s===void 0&&(s=!0),u===void 0&&(u=!0),c===void 0&&(c=!0),i(function(p,E,O,m,D){if(isNaN(m)&&!(p.type&N.MOVE_TO))throw new Error("path must start with moveto");return u&&p.type&N.HORIZ_LINE_TO&&(p.type=N.LINE_TO,p.y=p.relative?0:O),c&&p.type&N.VERT_LINE_TO&&(p.type=N.LINE_TO,p.x=p.relative?0:E),s&&p.type&N.CLOSE_PATH&&(p.type=N.LINE_TO,p.x=p.relative?m-E:m,p.y=p.relative?D-O:D),p.type&N.ARC&&(p.rX===0||p.rY===0)&&(p.type=N.LINE_TO,delete p.rX,delete p.rY,delete p.xRot,delete p.lArcFlag,delete p.sweepFlag),p})},h.NORMALIZE_ST=e,h.QT_TO_C=r,h.INFO=i,h.SANITIZE=function(s){s===void 0&&(s=0),Q(s);var u=NaN,c=NaN,p=NaN,E=NaN;return i(function(O,m,D,V,L){var U=Math.abs,K=!1,G=0,z=0;if(O.type&N.SMOOTH_CURVE_TO&&(G=isNaN(u)?0:m-u,z=isNaN(c)?0:D-c),O.type&(N.CURVE_TO|N.SMOOTH_CURVE_TO)?(u=O.relative?m+O.x2:O.x2,c=O.relative?D+O.y2:O.y2):(u=NaN,c=NaN),O.type&N.SMOOTH_QUAD_TO?(p=isNaN(p)?m:2*m-p,E=isNaN(E)?D:2*D-E):O.type&N.QUAD_TO?(p=O.relative?m+O.x1:O.x1,E=O.relative?D+O.y1:O.y2):(p=NaN,E=NaN),O.type&N.LINE_COMMANDS||O.type&N.ARC&&(O.rX===0||O.rY===0||!O.lArcFlag)||O.type&N.CURVE_TO||O.type&N.SMOOTH_CURVE_TO||O.type&N.QUAD_TO||O.type&N.SMOOTH_QUAD_TO){var rt=O.x===void 0?0:O.relative?O.x:O.x-m,at=O.y===void 0?0:O.relative?O.y:O.y-D;G=isNaN(p)?O.x1===void 0?G:O.relative?O.x:O.x1-m:p-m,z=isNaN(E)?O.y1===void 0?z:O.relative?O.y:O.y1-D:E-D;var H=O.x2===void 0?0:O.relative?O.x:O.x2-m,ct=O.y2===void 0?0:O.relative?O.y:O.y2-D;U(rt)<=s&&U(at)<=s&&U(G)<=s&&U(z)<=s&&U(H)<=s&&U(ct)<=s&&(K=!0)}return O.type&N.CLOSE_PATH&&U(m-V)<=s&&U(D-L)<=s&&(K=!0),K?[]:O})},h.MATRIX=a,h.ROTATE=function(s,u,c){u===void 0&&(u=0),c===void 0&&(c=0),Q(s,u,c);var p=Math.sin(s),E=Math.cos(s);return a(E,p,-p,E,u-u*E+c*p,c-u*p-c*E)},h.TRANSLATE=function(s,u){return u===void 0&&(u=0),Q(s,u),a(1,0,0,1,s,u)},h.SCALE=function(s,u){return u===void 0&&(u=s),Q(s,u),a(s,0,0,u,0,0)},h.SKEW_X=function(s){return Q(s),a(1,0,Math.atan(s),1,0,0)},h.SKEW_Y=function(s){return Q(s),a(1,Math.atan(s),0,1,0,0)},h.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),Q(s),a(-1,0,0,1,s,0)},h.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),Q(s),a(1,0,0,-1,0,s)},h.A_TO_C=function(){return i(function(s,u,c){return N.ARC===s.type?function(p,E,O){var m,D,V,L;p.cX||k(p,E,O);for(var U=Math.min(p.phi1,p.phi2),K=Math.max(p.phi1,p.phi2)-U,G=Math.ceil(K/90),z=new Array(G),rt=E,at=O,H=0;HE.maxX&&(E.maxX=Ot),OtE.maxY&&(E.maxY=Ot),OtEt&&L(Z(m,V.x1,V.x2,V.x,Et));for(var z=0,rt=yt(D,V.y1,V.y2,V.y);zEt&&U(Z(D,V.y1,V.y2,V.y,Et))}if(V.type&N.ARC){L(V.x),U(V.y),k(V,m,D);for(var at=V.xRot/180*Math.PI,H=Math.cos(at)*V.rX,ct=Math.sin(at)*V.rX,vt=-Math.sin(at)*V.rY,pt=Math.cos(at)*V.rY,St=V.phi1V.phi2?[V.phi2+360,V.phi1+360]:[V.phi2,V.phi1],Tt=St[0],Lt=St[1],Bt=function(Ot){var Ft=Ot[0],Gt=Ot[1],Ht=180*Math.atan2(Gt,Ft)/Math.PI;return HtTt&&EtTt&&Etp)throw new SyntaxError('Expected positive number, got "'+p+'" at index "'+o+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"')}this.curArgs.push(p),this.curArgs.length===ft[this.curCommandType]&&(N.HORIZ_LINE_TO===this.curCommandType?a({type:N.HORIZ_LINE_TO,relative:this.curCommandRelative,x:p}):N.VERT_LINE_TO===this.curCommandType?a({type:N.VERT_LINE_TO,relative:this.curCommandRelative,y:p}):this.curCommandType===N.MOVE_TO||this.curCommandType===N.LINE_TO||this.curCommandType===N.SMOOTH_QUAD_TO?(a({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),N.MOVE_TO===this.curCommandType&&(this.curCommandType=N.LINE_TO)):this.curCommandType===N.CURVE_TO?a({type:N.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===N.SMOOTH_CURVE_TO?a({type:N.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===N.QUAD_TO?a({type:N.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===N.ARC&&a({type:N.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(!mt(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(c)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)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,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=N.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=N.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=N.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=N.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=N.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=N.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=N.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=N.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=N.ARC,this.curCommandRelative=s==="a"}else r.push({type:N.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,i){i===void 0&&(i=[]);for(var a=0,o=Object.getPrototypeOf(this).parse.call(this,r);a>>rt;if(o[G+3]=Ce,Ce!==0){var Ae=255/Ce;o[G]=(Ot*z>>>rt)*Ae,o[G+1]=(Ft*z>>>rt)*Ae,o[G+2]=(Gt*z>>>rt)*Ae}else o[G]=o[G+1]=o[G+2]=0;Ot-=Mt,Ft-=Nt,Gt-=jt,Ht-=Et,Mt-=L.r,Nt-=L.g,jt-=L.b,Et-=L.a;var re=be+a+1;re=K+(re>>rt,Xt>0?(Xt=255/Xt,o[Wt]=(rr*z>>>rt)*Xt,o[Wt+1]=(nr*z>>>rt)*Xt,o[Wt+2]=(ir*z>>>rt)*Xt):o[Wt]=o[Wt+1]=o[Wt+2]=0,rr-=Ar,nr-=Pr,ir-=Rr,ar-=Nr,Ar-=L.r,Pr-=L.g,Rr-=L.b,Nr-=L.a,Wt=ne+((Wt=Dr+p)>>G,o[H+1]=Mt*K>>>G,o[H+2]=Nt*K>>>G,Pt-=Tt,Mt-=Lt,Nt-=Bt,Tt-=L.r,Lt-=L.g,Bt-=L.b,z=at+((z=Ht+a+1)>>G,o[z+1]=Ce*K>>>G,o[z+2]=Ae*K>>>G,be-=Fe,Ce-=Ue,Ae-=Se,Fe-=L.r,Ue-=L.g,Se-=L.b,z=$t+((z=ne+p)0&&arguments[0]!==void 0?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:h,createCanvas(e,r){return new OffscreenCanvas(e,r)},createImage(e){return(0,f.Z)(function*(){var r=yield fetch(e),i=yield r.blob(),a=yield createImageBitmap(i);return a})()}};return(typeof DOMParser!="undefined"||typeof h=="undefined")&&Reflect.deleteProperty(t,"DOMParser"),t}function de(h){var{DOMParser:t,canvas:e,fetch:r}=h;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:e.createCanvas,createImage:e.loadImage}}var pe=Object.freeze({__proto__:null,offscreen:ge,node:de});function Kt(h){return h.replace(/(?!\u3000)\s+/gm," ")}function ze(h){return h.replace(/^[\n \t]+/,"")}function Ze(h){return h.replace(/[\n \t]+$/,"")}function It(h){var t=(h||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return t.map(parseFloat)}var ye=/^[A-Z-]+$/;function De(h){return ye.test(h)?h.toLowerCase():h}function W(h){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(h)||[];return t[2]||t[3]||t[4]}function nt(h){if(!h.startsWith("rgb"))return h;var t=3,e=h.replace(/\d+(\.\d+)?/g,(r,i)=>t--&&i?String(Math.round(parseFloat(r))):r);return e}var gt=/(\[[^\]]+\])/g,dt=/(#[^\s+>~.[:]+)/g,bt=/(\.[^\s+>~.[:]+)/g,me=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,Le=/(:[\w-]+\([^)]*\))/gi,xe=/(:[^\s+>~.[:]+)/g,Ee=/([^\s+>~.[:]+)/g;function te(h,t){var e=t.exec(h);return e?[h.replace(t," "),e.length]:[h,0]}function $e(h){var t=[0,0,0],e=h.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[e,r]=te(e,gt),t[1]+=r,[e,r]=te(e,dt),t[0]+=r,[e,r]=te(e,bt),t[1]+=r,[e,r]=te(e,me),t[2]+=r,[e,r]=te(e,Le),t[1]+=r,[e,r]=te(e,xe),t[1]+=r,e=e.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[e,r]=te(e,Ee),t[2]+=r,t.join("")}var ae=1e-8;function ur(h){return Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2))}function Ke(h,t){return(h[0]*t[0]+h[1]*t[1])/(ur(h)*ur(t))}function lr(h,t){return(h[0]*t[1]0&&arguments[0]!==void 0?arguments[0]:" ",{document:e,name:r}=this;return Kt(this.getString()).trim().split(t).map(i=>new q(e,r,i))}hasValue(t){var{value:e}=this;return e!==null&&e!==""&&(t||e!==0)&&typeof e!="undefined"}isString(t){var{value:e}=this,r=typeof e=="string";return!r||!t?r:t.test(e)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return typeof t=="undefined"||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return typeof t=="undefined"?0:parseFloat(t);var{value:e}=this,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}getString(t){return typeof t=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(t)}getColor(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=nt(e),this.value=e),e}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,i]=typeof t=="boolean"?[void 0,t]:[t],{viewPort:a}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(a.computeSize("x"),a.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(a.computeSize("x"),a.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*a.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*a.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 this.getNumber()*15;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()*a.computeSize(r);default:{var o=this.getNumber();return e&&o<1?o*a.computeSize(r):o}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3: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 t=this.getString(),e=/#([^)'"]+)/.exec(t);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}getFillStyleDefinition(t,e){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,t,e);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,t,e)}return null}getTextBaseline(){return this.hasValue()?q.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var e=this.getColor(),r=e.length,i=0,a=0;a1&&arguments[1]!==void 0?arguments[1]:0,[r=e,i=e]=It(t);return new Rt(r,i)}static parseScale(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=e,i=r]=It(t);return new Rt(r,i)}static parsePath(t){for(var e=It(t),r=e.length,i=[],a=0;a0}runEvents(){if(this.working){var{screen:t,events:e,eventElements:r}=this,{style:i}=t.ctx.canvas;i&&(i.cursor=""),e.forEach((a,o)=>{for(var{run:s}=a,u=r[o];u;)s(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(t,e){if(!(!this.working||!e)){var{events:r,eventElements:i}=this;r.forEach((a,o)=>{var{x:s,y:u}=a;!i[o]&&e.isPointInPath&&e.isPointInPath(s,u)&&(i[o]=t)})}}checkBoundingBox(t,e){if(!(!this.working||!e)){var{events:r,eventElements:i}=this;r.forEach((a,o)=>{var{x:s,y:u}=a;!i[o]&&e.isPointInBox(s,u)&&(i[o]=t)})}}mapXY(t,e){for(var{window:r,ctx:i}=this.screen,a=new Rt(t,e),o=i.canvas;o;)a.x-=o.offsetLeft,a.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(a.x+=r.scrollX),r.scrollY&&(a.y+=r.scrollY),a}onClick(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:r,run(i){i.onClick&&i.onClick()}})}onMouseMove(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:r,run(i){i.onMouseMove&&i.onMouseMove()}})}}var Fr=typeof window!="undefined"?window:null,Ur=typeof fetch!="undefined"?fetch.bind(void 0):null;class He{constructor(t){var{fetch:e=Ur,window:r=Fr}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Lr,this.mouse=new Br(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=e}wait(t){this.waits.push(t)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every(e=>e());return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}setDefaults(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}setViewBox(t){var{document:e,ctx:r,aspectRatio:i,width:a,desiredWidth:o,height:s,desiredHeight:u,minX:c=0,minY:p=0,refX:E,refY:O,clip:m=!1,clipX:D=0,clipY:V=0}=t,L=Kt(i).replace(/^defer\s/,""),[U,K]=L.split(" "),G=U||"xMidYMid",z=K||"meet",rt=a/o,at=s/u,H=Math.min(rt,at),ct=Math.max(rt,at),vt=o,pt=u;z==="meet"&&(vt*=H,pt*=H),z==="slice"&&(vt*=ct,pt*=ct);var St=new q(e,"refX",E),Tt=new q(e,"refY",O),Lt=St.hasValue()&&Tt.hasValue();if(Lt&&r.translate(-H*St.getPixels("x"),-H*Tt.getPixels("y")),m){var Bt=H*D,Pt=H*V;r.beginPath(),r.moveTo(Bt,Pt),r.lineTo(a,Pt),r.lineTo(a,s),r.lineTo(Bt,s),r.closePath(),r.clip()}if(!Lt){var Mt=z==="meet"&&H===at,Nt=z==="slice"&&ct===at,jt=z==="meet"&&H===rt,Et=z==="slice"&&ct===rt;G.startsWith("xMid")&&(Mt||Nt)&&r.translate(a/2-vt/2,0),G.endsWith("YMid")&&(jt||Et)&&r.translate(0,s/2-pt/2),G.startsWith("xMax")&&(Mt||Nt)&&r.translate(a-vt,0),G.endsWith("YMax")&&(jt||Et)&&r.translate(0,s-pt)}switch(!0){case G==="none":r.scale(rt,at);break;case z==="meet":r.scale(H,H);break;case z==="slice":r.scale(ct,ct);break}r.translate(-c,-p)}start(t){var{enableRedraw:e=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:a=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:u,scaleHeight:c,offsetX:p,offsetY:E}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:O,mouse:m}=this,D=1e3/O;if(this.frameDuration=D,this.readyPromise=new Promise(G=>{this.resolveReady=G}),this.isReady()&&this.render(t,a,o,u,c,p,E),!!e){var V=Date.now(),L=V,U=0,K=()=>{V=Date.now(),U=V-L,U>=D&&(L=V-U%D,this.shouldUpdate(i,s)&&(this.render(t,a,o,u,c,p,E),m.runEvents())),this.intervalId=P(K)};r||m.start(),this.intervalId=P(K)}}stop(){this.intervalId&&(P.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,e){if(!t){var{frameDuration:r}=this,i=this.animations.reduce((a,o)=>o.update(r)||a,!1);if(i)return!0}return!!(typeof e=="function"&&e()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(t,e,r,i,a,o,s){var{CLIENT_WIDTH:u,CLIENT_HEIGHT:c,viewPort:p,ctx:E,isFirstRender:O}=this,m=E.canvas;p.clear(),m.width&&m.height?p.setCurrent(m.width,m.height):p.setCurrent(u,c);var D=t.getStyle("width"),V=t.getStyle("height");!e&&(O||typeof i!="number"&&typeof a!="number")&&(D.hasValue()&&(m.width=D.getPixels("x"),m.style&&(m.style.width="".concat(m.width,"px"))),V.hasValue()&&(m.height=V.getPixels("y"),m.style&&(m.style.height="".concat(m.height,"px"))));var L=m.clientWidth||m.width,U=m.clientHeight||m.height;if(e&&D.hasValue()&&V.hasValue()&&(L=D.getPixels("x"),U=V.getPixels("y")),p.setCurrent(L,U),typeof o=="number"&&t.getAttribute("x",!0).setValue(o),typeof s=="number"&&t.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof a=="number"){var K=It(t.getAttribute("viewBox").getString()),G=0,z=0;if(typeof i=="number"){var rt=t.getStyle("width");rt.hasValue()?G=rt.getPixels("x")/i:isNaN(K[2])||(G=K[2]/i)}if(typeof a=="number"){var at=t.getStyle("height");at.hasValue()?z=at.getPixels("y")/a:isNaN(K[3])||(z=K[3]/a)}G||(G=z),z||(z=G),t.getAttribute("width",!0).setValue(i),t.getAttribute("height",!0).setValue(a);var H=t.getStyle("transform",!0,!0);H.setValue("".concat(H.getString()," scale(").concat(1/G,", ").concat(1/z,")"))}r||E.clearRect(0,0,L,U),t.render(E),O&&(this.isFirstRender=!1)}}He.defaultWindow=Fr,He.defaultFetch=Ur;var{defaultFetch:Pn}=He,Rn=typeof DOMParser!="undefined"?DOMParser:null;class ke{constructor(){var{fetch:t=Pn,DOMParser:e=Rn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return(0,f.Z)(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,f.Z)(function*(){var r=yield e.fetch(t),i=yield r.text();return e.parseFromString(i)})()}}class jr{constructor(t,e){this.type="translate",this.point=null,this.point=Rt.parse(e)}apply(t){var{x:e,y:r}=this.point;t.translate(e||0,r||0)}unapply(t){var{x:e,y:r}=this.point;t.translate(-1*e||0,-1*r||0)}applyToPoint(t){var{x:e,y:r}=this.point;t.applyTransform([1,0,0,1,e||0,r||0])}}class Gr{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=It(e);this.angle=new q(t,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(t){var{cx:e,cy:r,originX:i,originY:a,angle:o}=this,s=e+i.getPixels("x"),u=r+a.getPixels("y");t.translate(s,u),t.rotate(o.getRadians()),t.translate(-s,-u)}unapply(t){var{cx:e,cy:r,originX:i,originY:a,angle:o}=this,s=e+i.getPixels("x"),u=r+a.getPixels("y");t.translate(s,u),t.rotate(-1*o.getRadians()),t.translate(-s,-u)}applyToPoint(t){var{cx:e,cy:r,angle:i}=this,a=i.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(a),Math.sin(a),-Math.sin(a),Math.cos(a),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}class zr{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=Rt.parseScale(e);(i.x===0||i.y===0)&&(i.x=ae,i.y=ae),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:i,originY:a}=this,o=i.getPixels("x"),s=a.getPixels("y");t.translate(o,s),t.scale(e,r||e),t.translate(-o,-s)}unapply(t){var{scale:{x:e,y:r},originX:i,originY:a}=this,o=i.getPixels("x"),s=a.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 yr{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=It(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:i}=this,a=e.getPixels("x"),o=r.getPixels("y");t.translate(a,o),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),t.translate(-a,-o)}unapply(t){var{originX:e,originY:r,matrix:i}=this,a=i[0],o=i[2],s=i[4],u=i[1],c=i[3],p=i[5],E=0,O=0,m=1,D=1/(a*(c*m-p*O)-o*(u*m-p*E)+s*(u*O-c*E)),V=e.getPixels("x"),L=r.getPixels("y");t.translate(V,L),t.transform(D*(c*m-p*O),D*(p*E-u*m),D*(s*O-o*m),D*(a*m-s*E),D*(o*p-s*c),D*(s*u-a*p)),t.translate(-V,-L)}applyToPoint(t){t.applyTransform(this.matrix)}}class mr extends yr{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new q(t,"angle",e)}}class $r extends mr{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class Hr extends mr{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function Nn(h){return Kt(h).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function In(h){var[t,e]=h.split("(");return[t.trim(),e.trim().replace(")","")]}class Te{constructor(t,e,r){this.document=t,this.transforms=[];var i=Nn(e);i.forEach(a=>{if(a!=="none"){var[o,s]=In(a),u=Te.transformTypes[o];typeof u!="undefined"&&this.transforms.push(new u(this.document,s,r))}})}static fromElement(t,e){var r=e.getStyle("transform",!1,!0),[i,a=i]=e.getStyle("transform-origin",!1,!0).split(),o=[i,a];return r.hasValue()?new Te(t,r.getString(),o):null}apply(t){for(var{transforms:e}=this,r=e.length,i=0;i=0;i--)e[i].unapply(t)}applyToPoint(t){for(var{transforms:e}=this,r=e.length,i=0;i2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=t,this.node=e,this.captureTextNodes=r,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!e||e.nodeType!==1)){if(Array.from(e.attributes).forEach(s=>{var u=De(s.nodeName);this.attributes[u]=new q(t,u,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(s=>s.trim());i.forEach(s=>{if(s){var[u,c]=s.split(":").map(p=>p.trim());this.styles[u]=new q(t,u,c)}})}var{definitions:a}=t,o=this.getAttribute("id");o.hasValue()&&(a[o.getString()]||(a[o.getString()]=this)),Array.from(e.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(r&&(s.nodeType===3||s.nodeType===4)){var u=t.createTextNode(s);u.getText().length>0&&this.addChild(u)}})}}getAttribute(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[t];if(!r&&e){var i=new q(this.document,t,"");return this.attributes[t]=i,i}return r||q.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if(t==="href"||t.endsWith(":href"))return this.attributes[t];return q.empty(this.document)}getStyle(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[t];if(i)return i;var a=this.getAttribute(t);if(a!=null&&a.hasValue())return this.styles[t]=a,a;if(!r){var{parent:o}=this;if(o){var s=o.getStyle(t);if(s!=null&&s.hasValue())return s}}if(e){var u=new q(this.document,t,"");return this.styles[t]=u,u}return i||q.empty(this.document)}render(t){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}setContext(t){}applyEffects(t){var e=Te.fromElement(this.document,this);e&&e.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(t)}}clearContext(t){}renderChildren(t){this.children.forEach(e=>{e.render(t)})}addChild(t){var e=t instanceof Ct?t:this.document.createElement(t);e.parent=this,Ct.ignoreChildTypes.includes(e.type)||this.children.push(e)}matchesSelector(t){var e,{node:r}=this;if(typeof r.matches=="function")return r.matches(t);var i=(e=r.getAttribute)===null||e===void 0?void 0:e.call(r,"class");return!i||i===""?!1:i.split(" ").some(a=>".".concat(a)===t)}addStylesFromStyleDefinition(){var{styles:t,stylesSpecificity:e}=this.document;for(var r in t)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=t[r],a=e[r];if(i)for(var o in i){var s=this.stylesSpecificity[o];typeof s=="undefined"&&(s="000"),a>=s&&(this.styles[o]=i[o],this.stylesSpecificity[o]=a)}}}removeStyles(t,e){var r=e.reduce((i,a)=>{var o=t.getStyle(a);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[...i,[a,s]]},[]);return r}restoreStyles(t,e){e.forEach(r=>{var[i,a]=r;t.getStyle(i,!0).setValue(a)})}isFirstChild(){var t;return((t=this.parent)===null||t===void 0?void 0:t.children.indexOf(this))===0}}Ct.ignoreChildTypes=["title"];class Yr extends Ct{constructor(t,e,r){super(t,e,r)}}function Mn(h){var t=h.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function wn(h){return typeof ve=="undefined"?h:h.trim().split(",").map(Mn).join(",")}function Vn(h){if(!h)return"";var t=h.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 Dn(h){if(!h)return"";var t=h.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:""}}class zt{constructor(t,e,r,i,a,o){var s=o?typeof o=="string"?zt.parse(o):o:{};this.fontFamily=a||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=t||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=e||s.fontVariant}static parse(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,r="",i="",a="",o="",s="",u=Kt(t).trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return u.forEach(p=>{switch(!0){case(!c.fontStyle&&zt.styles.includes(p)):p!=="inherit"&&(r=p),c.fontStyle=!0;break;case(!c.fontVariant&&zt.variants.includes(p)):p!=="inherit"&&(i=p),c.fontStyle=!0,c.fontVariant=!0;break;case(!c.fontWeight&&zt.weights.includes(p)):p!=="inherit"&&(a=p),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:p!=="inherit"&&([o]=p.split("/")),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:p!=="inherit"&&(s+=p)}}),new zt(r,i,a,o,s,e)}toString(){return[Vn(this.fontStyle),this.fontVariant,Dn(this.fontWeight),this.fontSize,wn(this.fontFamily)].join(" ").trim()}}zt.styles="normal|italic|oblique|inherit",zt.variants="normal|small-caps|inherit",zt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class kt{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=i,this.addPoint(t,e),this.addPoint(r,i)}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!="undefined"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),tthis.x2&&(this.x2=t)),typeof e!="undefined"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),ethis.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:i,y2:a}=t;this.addPoint(e,r),this.addPoint(i,a)}}sumCubic(t,e,r,i,a){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*i+Math.pow(t,3)*a}bezierCurveAdd(t,e,r,i,a){var o=6*e-12*r+6*i,s=-3*e+9*r-9*i+3*a,u=3*r-3*e;if(s===0){if(o===0)return;var c=-u/o;0=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new Rt(this.command[t],this.command[e]);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!==N.CURVE_TO&&t!==N.SMOOTH_CURVE_TO&&t!==N.QUAD_TO&&t!==N.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:i,y:a}}=this,o=new Rt(2*e-i,2*r-a);return o}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:i,angles:a}=this;r&&a.length>0&&!a[a.length-1]&&(a[a.length-1]=i[i.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;r1&&arguments[1]!==void 0?arguments[1]:!1;if(!e){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),a=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,i);s&&(t.fillStyle=s)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var u=r.getColor();u!=="inherit"&&(t.fillStyle=u==="none"?"rgba(0,0,0,0)":u)}if(i.hasValue()){var c=new q(this.document,"fill",t.fillStyle).addOpacity(i).getColor();t.fillStyle=c}if(a.isUrlDefinition()){var p=a.getFillStyleDefinition(this,o);p&&(t.strokeStyle=p)}else if(a.hasValue()){a.getString()==="currentColor"&&a.setValue(this.getStyle("color").getColor());var E=a.getString();E!=="inherit"&&(t.strokeStyle=E==="none"?"rgba(0,0,0,0)":E)}if(o.hasValue()){var O=new q(this.document,"stroke",t.strokeStyle).addOpacity(o).getString();t.strokeStyle=O}var m=this.getStyle("stroke-width");if(m.hasValue()){var D=m.getPixels();t.lineWidth=D||ae}var V=this.getStyle("stroke-linecap"),L=this.getStyle("stroke-linejoin"),U=this.getStyle("stroke-miterlimit"),K=this.getStyle("stroke-dasharray"),G=this.getStyle("stroke-dashoffset");if(V.hasValue()&&(t.lineCap=V.getString()),L.hasValue()&&(t.lineJoin=L.getString()),U.hasValue()&&(t.miterLimit=U.getNumber()),K.hasValue()&&K.getString()!=="none"){var z=It(K.getString());typeof t.setLineDash!="undefined"?t.setLineDash(z):typeof t.webkitLineDash!="undefined"?t.webkitLineDash=z:typeof t.mozDash!="undefined"&&!(z.length===1&&z[0]===0)&&(t.mozDash=z);var rt=G.getPixels();typeof t.lineDashOffset!="undefined"?t.lineDashOffset=rt:typeof t.webkitLineDashOffset!="undefined"?t.webkitLineDashOffset=rt:typeof t.mozDashOffset!="undefined"&&(t.mozDashOffset=rt)}}if(this.modifiedEmSizeStack=!1,typeof t.font!="undefined"){var at=this.getStyle("font"),H=this.getStyle("font-style"),ct=this.getStyle("font-variant"),vt=this.getStyle("font-weight"),pt=this.getStyle("font-size"),St=this.getStyle("font-family"),Tt=new zt(H.getString(),ct.getString(),vt.getString(),pt.hasValue()?"".concat(pt.getPixels(!0),"px"):"",St.getString(),zt.parse(at.getString(),t.font));H.setValue(Tt.fontStyle),ct.setValue(Tt.fontVariant),vt.setValue(Tt.fontWeight),pt.setValue(Tt.fontSize),St.setValue(Tt.fontFamily),t.font=Tt.toString(),pt.isPixels()&&(this.document.emSize=pt.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class xt extends Oe{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new it(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new kt;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case it.MOVE_TO:this.pathM(t,r);break;case it.LINE_TO:this.pathL(t,r);break;case it.HORIZ_LINE_TO:this.pathH(t,r);break;case it.VERT_LINE_TO:this.pathV(t,r);break;case it.CURVE_TO:this.pathC(t,r);break;case it.SMOOTH_CURVE_TO:this.pathS(t,r);break;case it.QUAD_TO:this.pathQ(t,r);break;case it.SMOOTH_QUAD_TO:this.pathT(t,r);break;case it.ARC:this.pathA(t,r);break;case it.CLOSE_PATH:this.pathZ(t,r);break}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles(),i=e.map((a,o)=>[a,r[o]]);return i}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");t.fillStyle!==""&&(e.getString("inherit")!=="inherit"?t.fill(e.getString()):t.fill()),t.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var i=r.length-1,a=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(a.isUrlDefinition()){var u=a.getDefinition(),[c,p]=r[0];u.render(t,c,p)}if(o.isUrlDefinition())for(var E=o.getDefinition(),O=1;O1&&(i*=Math.sqrt(O),a*=Math.sqrt(O));var m=(s===u?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(a,2)-Math.pow(i,2)*Math.pow(E.y,2)-Math.pow(a,2)*Math.pow(E.x,2))/(Math.pow(i,2)*Math.pow(E.y,2)+Math.pow(a,2)*Math.pow(E.x,2)));isNaN(m)&&(m=0);var D=new Rt(m*i*E.y/a,m*-a*E.x/i),V=new Rt((e.x+p.x)/2+Math.cos(c)*D.x-Math.sin(c)*D.y,(e.y+p.y)/2+Math.sin(c)*D.x+Math.cos(c)*D.y),L=lr([1,0],[(E.x-D.x)/i,(E.y-D.y)/a]),U=[(E.x-D.x)/i,(E.y-D.y)/a],K=[(-E.x-D.x)/i,(-E.y-D.y)/a],G=lr(U,K);return Ke(U,K)<=-1&&(G=Math.PI),Ke(U,K)>=1&&(G=0),{currentPoint:p,rX:i,rY:a,sweepFlag:u,xAxisRotation:c,centp:V,a1:L,ad:G}}pathA(t,e){var{pathParser:r}=this,{currentPoint:i,rX:a,rY:o,sweepFlag:s,xAxisRotation:u,centp:c,a1:p,ad:E}=xt.pathA(r),O=1-s?1:-1,m=p+O*(E/2),D=new Rt(c.x+a*Math.cos(m),c.y+o*Math.sin(m));if(r.addMarkerAngle(D,m-O*Math.PI/2),r.addMarkerAngle(i,m-O*Math.PI),e.addPoint(i.x,i.y),t&&!isNaN(p)&&!isNaN(E)){var V=a>o?a:o,L=a>o?1:a/o,U=a>o?o/a:1;t.translate(c.x,c.y),t.rotate(u),t.scale(L,U),t.arc(0,0,V,p,p+E,!!(1-s)),t.scale(1/L,1/U),t.rotate(-u),t.translate(-c.x,-c.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){xt.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class xr extends xt{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 se extends Oe{constructor(t,e,r){super(t,e,new.target===se?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(t,e);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(this.type!=="text")return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var e=null;return this.children.forEach((r,i)=>{var a=this.getChildBoundingBox(t,this,this,i);e?e.addBoundingBox(a):e=a}),e}getFontSize(){var{document:t,parent:e}=this,r=zt.parse(t.ctx.font).fontSize,i=e.getStyle("font-size").getNumber(r);return i}getTElementBoundingBox(t){var e=this.getFontSize();return new kt(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var i=e[r],a=null;if(t.isArabic){var o=e.length,s=e[r-1],u=e[r+1],c="isolated";if((r===0||s===" ")&&r0&&s!==" "&&r0&&s!==" "&&(r===o-1||u===" ")&&(c="initial"),typeof t.glyphs[i]!="undefined"){var p=t.glyphs[i];a=p instanceof xr?p:p[c]}}else a=t.glyphs[i];return a||(a=t.missingGlyph),a}getText(){return""}getTextFromNode(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),i=r.indexOf(e),a=r.length-1,o=Kt(e.textContent||"");return i===0&&(o=ze(o)),i===a&&(o=Ze(o)),o}renderChildren(t){if(this.type!=="text"){this.renderTElementChildren(t);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach((r,i)=>{this.renderChild(t,this,this,i)});var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}renderTElementChildren(t){var{document:e,parent:r}=this,i=this.getText(),a=r.getStyle("font-family").getDefinition();if(a){for(var{unitsPerEm:o}=a.fontFace,s=zt.parse(e.ctx.font),u=r.getStyle("font-size").getNumber(s.fontSize),c=r.getStyle("font-style").getString(s.fontStyle),p=u/o,E=a.isRTL?i.split("").reverse().join(""):i,O=It(r.getAttribute("dx").getString()),m=E.length,D=0;D=this.leafTexts.length)){var t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start"),r=!1,i=0;e==="start"&&!r||e==="end"&&r?i=t.x-this.minX:e==="end"&&!r||e==="start"&&r?i=t.x-this.maxX:i=t.x-(this.minX+this.maxX)/2;for(var a=this.textChunkStart;a{this.adjustChildCoordinatesRecursiveCore(t,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(t,e,r,i){var a=r.children[i];a.children.length>0?a.children.forEach((o,s)=>{e.adjustChildCoordinatesRecursiveCore(t,e,a,s)}):this.adjustChildCoordinates(t,e,r,i)}adjustChildCoordinates(t,e,r,i){var a=r.children[i];if(typeof a.measureText!="function")return a;t.save(),a.setContext(t,!0);var o=a.getAttribute("x"),s=a.getAttribute("y"),u=a.getAttribute("dx"),c=a.getAttribute("dy"),p=a.getStyle("font-family").getDefinition(),E=!!p&&p.isRTL;i===0&&(o.hasValue()||o.setValue(a.getInheritedAttribute("x")),s.hasValue()||s.setValue(a.getInheritedAttribute("y")),u.hasValue()||u.setValue(a.getInheritedAttribute("dx")),c.hasValue()||c.setValue(a.getInheritedAttribute("dy")));var O=a.measureText(t);return E&&(e.x-=O),o.hasValue()?(e.applyAnchoring(),a.x=o.getPixels("x"),u.hasValue()&&(a.x+=u.getPixels("x"))):(u.hasValue()&&(e.x+=u.getPixels("x")),a.x=e.x),e.x=a.x,E||(e.x+=O),s.hasValue()?(a.y=s.getPixels("y"),c.hasValue()&&(a.y+=c.getPixels("y"))):(c.hasValue()&&(e.y+=c.getPixels("y")),a.y=e.y),e.y=a.y,e.leafTexts.push(a),e.minX=Math.min(e.minX,a.x,a.x+O),e.maxX=Math.max(e.maxX,a.x,a.x+O),a.clearContext(t),t.restore(),a}getChildBoundingBox(t,e,r,i){var a=r.children[i];if(typeof a.getBoundingBox!="function")return null;var o=a.getBoundingBox(t);return o?(a.children.forEach((s,u)=>{var c=e.getChildBoundingBox(t,e,a,u);o.addBoundingBox(c)}),o):null}renderChild(t,e,r,i){var a=r.children[i];a.render(t),a.children.forEach((o,s)=>{e.renderChild(t,e,a,s)})}measureText(t){var{measureCache:e}=this;if(~e)return e;var r=this.getText(),i=this.measureTargetText(t,r);return this.measureCache=i,i}measureTargetText(t,e){if(!e.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var a=this.getFontSize(),o=i.isRTL?e.split("").reverse().join(""):e,s=It(r.getAttribute("dx").getString()),u=o.length,c=0,p=0;p0?"":this.getTextFromNode()}getText(){return this.text}}class Ln extends Ye{constructor(){super(...arguments),this.type="textNode"}}class Be extends Oe{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:r}=this,{screen:i,window:a}=r,o=t.canvas;if(i.setDefaults(t),o.style&&typeof t.font!="undefined"&&a&&typeof a.getComputedStyle!="undefined"){t.font=a.getComputedStyle(o).getPropertyValue("font");var s=new q(r,"fontSize",zt.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:u,height:c}=i.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 p=this.getAttribute("refX"),E=this.getAttribute("refY"),O=this.getAttribute("viewBox"),m=O.hasValue()?It(O.getString()):null,D=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",V=0,L=0,U=0,K=0;m&&(V=m[0],L=m[1]),this.root||(u=this.getStyle("width").getPixels("x"),c=this.getStyle("height").getPixels("y"),this.type==="marker"&&(U=V,K=L,V=0,L=0)),i.viewPort.setCurrent(u,c),this.node&&(!this.parent||((e=this.node.parentNode)===null||e===void 0?void 0:e.nodeName)==="foreignObject")&&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&&(u=m[2],c=m[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:u,height:i.viewPort.height,desiredHeight:c,minX:V,minY:L,refX:p.getValue(),refY:E.getValue(),clip:D,clipX:U,clipY:K}),m&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(u,c))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),a=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=i.getNumber(0),c=a.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var p=this.getAttribute("preserveAspectRatio");p.hasValue()&&p.setValue(p.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(t),a.setValue(e),o.hasValue()||o.setValue("0 0 ".concat(u||t," ").concat(c||e)),s.hasValue()){var E=this.getStyle("width"),O=this.getStyle("height");E.hasValue()&&E.setValue("".concat(t,"px")),O.hasValue()&&O.setValue("".concat(e,"px"))}}}class Er extends xt{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),a=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),u=o.getPixels("x"),c=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(c=u),s.hasValue()&&!o.hasValue()&&(u=c),u=Math.min(u,i/2),c=Math.min(c,a/2),t){var p=4*((Math.sqrt(2)-1)/3);t.beginPath(),a>0&&i>0&&(t.moveTo(e+u,r),t.lineTo(e+i-u,r),t.bezierCurveTo(e+i-u+p*u,r,e+i,r+c-p*c,e+i,r+c),t.lineTo(e+i,r+a-c),t.bezierCurveTo(e+i,r+a-c+p*c,e+i-u+p*u,r+a,e+i-u,r+a),t.lineTo(e+u,r+a),t.bezierCurveTo(e+u-p*u,r+a,e,r+a-c+p*c,e,r+a-c),t.lineTo(e,r+c),t.bezierCurveTo(e,r+c-p*c,e+u-p*u,r,e+u,r),t.closePath())}return new kt(e,r,e+i,r+a)}getMarkers(){return null}}class Xr extends xt{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return t&&i>0&&(t.beginPath(),t.arc(e,r,i,0,Math.PI*2,!1),t.closePath()),new kt(e-i,r-i,e+i,r+i)}getMarkers(){return null}}class Wr extends xt{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),a=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return t&&r>0&&i>0&&(t.beginPath(),t.moveTo(a+r,o),t.bezierCurveTo(a+r,o+e*i,a+e*r,o+i,a,o+i),t.bezierCurveTo(a-e*r,o+i,a-r,o+e*i,a-r,o),t.bezierCurveTo(a-r,o-e*i,a-e*r,o-i,a,o-i),t.bezierCurveTo(a+e*r,o-i,a+r,o-e*i,a+r,o),t.closePath()),new kt(a-r,o-i,a+r,o+i)}getMarkers(){return null}}class Qr extends xt{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Rt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Rt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:i,y:a}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(i,a)),new kt(e,r,i,a)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class Tr extends xt{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=Rt.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:i}]=e,a=new kt(r,i);return t&&(t.beginPath(),t.moveTo(r,i)),e.forEach(o=>{var{x:s,y:u}=o;a.addPoint(s,u),t&&t.lineTo(s,u)}),a}getMarkers(){var{points:t}=this,e=t.length-1,r=[];return t.forEach((i,a)=>{a!==e&&r.push([i,i.angleTo(t[a+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class Zr extends Tr{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:i}]=this.points;return t&&(t.lineTo(r,i),t.closePath()),e}}class Kr extends Ct{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var i=this.getStyle("width").getPixels("x",!0),a=this.getStyle("height").getPixels("y",!0),o=new Be(this.document,null);o.attributes.viewBox=new q(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new q(this.document,"width","".concat(i,"px")),o.attributes.height=new q(this.document,"height","".concat(a,"px")),o.attributes.transform=new q(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(i,a),u=s.getContext("2d"),c=this.getAttribute("x"),p=this.getAttribute("y");c.hasValue()&&p.hasValue()&&u.translate(c.getPixels("x",!0),p.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var E=-1;E<=1;E++)for(var O=-1;O<=1;O++)u.save(),o.attributes.x=new q(this.document,"x",E*s.width),o.attributes.y=new q(this.document,"y",O*s.height),o.render(u),u.restore();var m=t.createPattern(s,"repeat");return m}}class kr extends Ct{constructor(){super(...arguments),this.type="marker"}render(t,e,r){if(e){var{x:i,y:a}=e,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(i,a),o==="auto"&&t.rotate(r),s==="strokeWidth"&&t.scale(t.lineWidth,t.lineWidth),t.save();var u=new Be(this.document,null);u.type=this.type,u.attributes.viewBox=new q(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new q(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new q(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new q(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new q(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new q(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new q(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new q(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(t),t.restore(),s==="strokeWidth"&&t.scale(1/t.lineWidth,1/t.lineWidth),o==="auto"&&t.rotate(-r),t.translate(-i,-a)}}}class Jr extends Ct{constructor(){super(...arguments),this.type="defs"}render(){}}class Je extends Oe{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new kt;return this.children.forEach(r=>{e.addBoundingBox(r.getBoundingBox(t))}),e}}class Or extends Ct{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:a}=this;a.forEach(o=>{o.type==="stop"&&i.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:a}=i,o=this.getGradient(t,e);if(!o)return this.addParentOpacity(r,a[a.length-1].color);if(a.forEach(L=>{o.addColorStop(L.offset,this.addParentOpacity(r,L.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:c}=s.screen,[p]=c.viewPorts,E=new Er(s,null);E.attributes.x=new q(s,"x",-u/3),E.attributes.y=new q(s,"y",-u/3),E.attributes.width=new q(s,"width",u),E.attributes.height=new q(s,"height",u);var O=new Je(s,null);O.attributes.transform=new q(s,"transform",this.getAttribute("gradientTransform").getValue()),O.children=[E];var m=new Be(s,null);m.attributes.x=new q(s,"x",0),m.attributes.y=new q(s,"y",0),m.attributes.width=new q(s,"width",p.width),m.attributes.height=new q(s,"height",p.height),m.children=[O];var D=s.createCanvas(p.width,p.height),V=D.getContext("2d");return V.fillStyle=o,m.render(V),V.createPattern(D,"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){if(t.hasValue()){var r=new q(this.document,"color",e);return r.addOpacity(t).getColor()}return e}}class qr extends Or{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r=this.getGradientUnits()==="objectBoundingBox",i=r?e.getBoundingBox(t):null;if(r&&!i)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 a=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return a===s&&o===u?null:t.createLinearGradient(a,o,s,u)}}class _r extends Or{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=this.getGradientUnits()==="objectBoundingBox",i=e.getBoundingBox(t);if(r&&!i)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 a=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=a,u=o;this.getAttribute("fx").hasValue()&&(s=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var c=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),p=this.getAttribute("fr").getPixels();return t.createRadialGradient(s,u,p,a,o,c)}}class tn extends Ct{constructor(t,e,r){super(t,e,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),a=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);o.getString()===""&&o.setValue("#000"),a.hasValue()&&(o=o.addOpacity(a)),this.offset=i,this.color=o.getColor()}}class qe extends Ct{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 q(t,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return t==="CSS"?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:r,to:i}=this.getProgress(),a=r.getNumber()+(i.getNumber()-r.getNumber())*e;return t==="%"&&(a*=100),"".concat(a).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 i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=t;var a=!1;if(this.begin{var c=a[u];return s+(c-s)*t}).join(" ");return o}}class nn extends Ct{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=t,{children:a}=this;for(var o of a)switch(o.type){case"font-face":{this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(i[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=o;break;case"glyph":{var u=o;u.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[u.unicode]=="undefined"&&(this.glyphs[u.unicode]=Object.create(null)),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u;break}}}render(){}}class an extends Ct{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 sn extends xt{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class on extends se{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 un extends se{constructor(t,e,r){super(t,e,r),this.type="a";var{childNodes:i}=e,a=i[0],o=i.length>0&&Array.from(i).every(s=>s.nodeType===3);this.hasText=o,this.text=o?this.getTextFromNode(a):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:r,y:i}=this,{mouse:a}=e.screen,o=new q(e,"fontSize",zt.parse(e.ctx.font).fontSize);a.isWorking()&&a.checkBoundingBox(this,new kt(r,i-o.getPixels("y"),r+this.measureText(t),i))}else if(this.children.length>0){var s=new Je(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(){var t=this.document.ctx;t.canvas.style.cursor="pointer"}}function ln(h,t){var e=Object.keys(h);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(h);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable})),e.push.apply(e,r)}return e}function _e(h){for(var t=1;t{var{type:i,points:a}=r;switch(i){case it.LINE_TO:t&&t.lineTo(a[0],a[1]);break;case it.MOVE_TO:t&&t.moveTo(a[0],a[1]);break;case it.CURVE_TO:t&&t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case it.QUAD_TO:t&&t.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case it.ARC:{var[o,s,u,c,p,E,O,m]=a,D=u>c?u:c,V=u>c?1:u/c,L=u>c?c/u:1;t&&(t.translate(o,s),t.rotate(O),t.scale(V,L),t.arc(0,0,D,p,p+E,!!(1-m)),t.scale(1/V,1/L),t.rotate(-O),t.translate(-o,-s));break}case it.CLOSE_PATH:t&&t.closePath();break}})}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,a=t.fillStyle;e==="underline"&&t.beginPath(),i.forEach((o,s)=>{var{p0:u,p1:c,rotation:p,text:E}=o;t.save(),t.translate(u.x,u.y),t.rotate(p),t.fillStyle&&t.fillText(E,0,0),t.strokeStyle&&t.strokeText(E,0,0),t.restore(),e==="underline"&&(s===0&&t.moveTo(u.x,u.y+r/8),t.lineTo(c.x,c.y+r/5))}),e==="underline"&&(t.lineWidth=r/20,t.strokeStyle=a,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[t]||0}findSegmentToFitChar(t,e,r,i,a,o,s,u,c){var p=o,E=this.measureText(t,u);u===" "&&e==="justify"&&r-1&&(p+=this.getLetterSpacingAt(c));var O=this.textHeight/20,m=this.getEquidistantPointOnPath(p,O,0),D=this.getEquidistantPointOnPath(p+E,O,0),V={p0:m,p1:D},L=m&&D?Math.atan2(D.y-m.y,D.x-m.x):0;if(s){var U=Math.cos(Math.PI/2+L)*s,K=Math.cos(-L)*s;V.p0=_e(_e({},m),{},{x:m.x+U,y:m.y+K}),V.p1=_e(_e({},D),{},{x:D.x+U,y:D.y+K})}return p+=E,{offset:p,segment:V,rotation:L}}measureText(t,e){var{measuresCache:r}=this,i=e||this.getText();if(r.has(i))return r.get(i);var a=this.measureTargetText(t,i);return r.set(i,a),a}setTextData(t){if(!this.glyphInfo){var e=this.getText(),r=e.split(""),i=e.split(" ").length-1,a=this.parent.getAttribute("dx").split().map(z=>z.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),c=this.parent.getStyle("letter-spacing"),p=0;!u.hasValue()||u.getValue()==="inherit"?p=c.getPixels():u.hasValue()&&u.getValue()!=="initial"&&u.getValue()!=="unset"&&(p=u.getPixels());var E=[],O=e.length;this.letterSpacingCache=E;for(var m=0;mat===0?0:z+rt||0,0),V=this.measureText(t),L=Math.max(V+D,0);this.textWidth=V,this.textHeight=this.getFontSize(),this.glyphInfo=[];var U=this.getPathLength(),K=this.getStyle("startOffset").getNumber(0)*U,G=0;(s==="middle"||s==="center")&&(G=-L/2),(s==="end"||s==="right")&&(G=-L),G+=K,r.forEach((z,rt)=>{var{offset:at,segment:H,rotation:ct}=this.findSegmentToFitChar(t,s,L,U,i,G,o,z,rt);G=at,!(!H.p0||!H.p1)&&this.glyphInfo.push({text:r[rt],p0:H.p0,p1:H.p1,rotation:ct})})}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:r}=t;for(r.reset();!r.isEnd();){var{current:i}=r,a=i?i.x:0,o=i?i.y:0,s=r.next(),u=s.type,c=[];switch(s.type){case it.MOVE_TO:this.pathM(r,c);break;case it.LINE_TO:u=this.pathL(r,c);break;case it.HORIZ_LINE_TO:u=this.pathH(r,c);break;case it.VERT_LINE_TO:u=this.pathV(r,c);break;case it.CURVE_TO:this.pathC(r,c);break;case it.SMOOTH_CURVE_TO:u=this.pathS(r,c);break;case it.QUAD_TO:this.pathQ(r,c);break;case it.SMOOTH_QUAD_TO:u=this.pathT(r,c);break;case it.ARC:c=this.pathA(r);break;case it.CLOSE_PATH:xt.pathZ(r);break}s.type!==it.CLOSE_PATH?e.push({type:u,points:c,start:{x:a,y:o},pathLength:this.calcLength(a,o,u,c)}):e.push({type:it.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:i}=xt.pathM(t).point;e.push(r,i)}pathL(t,e){var{x:r,y:i}=xt.pathL(t).point;return e.push(r,i),it.LINE_TO}pathH(t,e){var{x:r,y:i}=xt.pathH(t).point;return e.push(r,i),it.LINE_TO}pathV(t,e){var{x:r,y:i}=xt.pathV(t).point;return e.push(r,i),it.LINE_TO}pathC(t,e){var{point:r,controlPoint:i,currentPoint:a}=xt.pathC(t);e.push(r.x,r.y,i.x,i.y,a.x,a.y)}pathS(t,e){var{point:r,controlPoint:i,currentPoint:a}=xt.pathS(t);return e.push(r.x,r.y,i.x,i.y,a.x,a.y),it.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:i}=xt.pathQ(t);e.push(r.x,r.y,i.x,i.y)}pathT(t,e){var{controlPoint:r,currentPoint:i}=xt.pathT(t);return e.push(r.x,r.y,i.x,i.y),it.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:i,xAxisRotation:a,centp:o,a1:s,ad:u}=xt.pathA(t);return i===0&&u>0&&(u-=2*Math.PI),i===1&&u<0&&(u+=2*Math.PI),[o.x,o.y,e,r,s,u,a,i]}calcLength(t,e,r,i){var a=0,o=null,s=null,u=0;switch(r){case it.LINE_TO:return this.getLineLength(t,e,i[0],i[1]);case it.CURVE_TO:for(a=0,o=this.getPointOnCubicBezier(0,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),u=.01;u<=1;u+=.01)s=this.getPointOnCubicBezier(u,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case it.QUAD_TO:for(a=0,o=this.getPointOnQuadraticBezier(0,t,e,i[0],i[1],i[2],i[3]),u=.01;u<=1;u+=.01)s=this.getPointOnQuadraticBezier(u,t,e,i[0],i[1],i[2],i[3]),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case it.ARC:{a=0;var c=i[4],p=i[5],E=i[4]+p,O=Math.PI/180;if(Math.abs(c-E)E;u-=O)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(u=c+O;u5&&arguments[5]!==void 0?arguments[5]:e,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,u=(a-r)/(i-e+ae),c=Math.sqrt(t*t/(1+u*u));ie)return null;var{dataArray:a}=this;for(var o of a){if(o&&(o.pathLength<5e-5||r+o.pathLength+5e-5=0&&u>E)break;i=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break}case it.CURVE_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnCubicBezier(u,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 it.QUAD_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(i)return i;break}return null}getLineLength(t,e,r,i){return Math.sqrt((r-t)*(r-t)+(i-e)*(i-e))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((t,e)=>e.pathLength>0?t+e.pathLength:t,0)),this.pathLength}getPointOnCubicBezier(t,e,r,i,a,o,s,u,c){var p=u*hr(t)+o*fr(t)+i*cr(t)+e*vr(t),E=c*hr(t)+s*fr(t)+a*cr(t)+r*vr(t);return{x:p,y:E}}getPointOnQuadraticBezier(t,e,r,i,a,o,s){var u=o*gr(t)+i*dr(t)+e*pr(t),c=s*gr(t)+a*dr(t)+r*pr(t);return{x:u,y:c}}getPointOnEllipticalArc(t,e,r,i,a,o){var s=Math.cos(o),u=Math.sin(o),c={x:r*Math.cos(a),y:i*Math.sin(a)};return{x:t+(c.x*s-c.y*u),y:e+(c.x*u+c.y*s)}}buildEquidistantCache(t,e){var r=this.getPathLength(),i=e||.25,a=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==a||this.equidistantCache.precision!==i){this.equidistantCache={step:a,precision:i,points:[]};for(var o=0,s=0;s<=r;s+=i){var u=this.getPointOnPath(s),c=this.getPointOnPath(s+i);!u||!c||(o+=this.getLineLength(u.x,u.y,c.x,c.y),o>=a&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:s}),o-=a))}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var i=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var Bn=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class fn extends Oe{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var a=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);t.images.push(this),a?this.loadSvg(i):this.loadImage(i),this.isSvg=a}}loadImage(t){var e=this;return(0,f.Z)(function*(){try{var r=yield e.document.createImage(t);e.image=r}catch(i){console.error('Error while loading image "'.concat(t,'":'),i)}e.loaded=!0})()}loadSvg(t){var e=this;return(0,f.Z)(function*(){var r=Bn.exec(t);if(r){var i=r[5];r[4]==="base64"?e.image=atob(i):e.image=decodeURIComponent(i)}else try{var a=yield e.document.fetch(t),o=yield a.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:i}=this,a=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!(!i||!r||!s||!u)){if(t.save(),t.translate(a,o),this.isSvg){var c=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:u});c.document.documentElement.parent=this,c.render()}else{var p=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:p.width,height:u,desiredHeight:p.height}),this.loaded&&(typeof p.complete=="undefined"||p.complete)&&t.drawImage(p,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new kt(t,e,t+r,e+i)}}class cn extends Oe{constructor(){super(...arguments),this.type="symbol"}render(t){}}class vn{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var r=this;return(0,f.Z)(function*(){try{var{document:i}=r,a=yield i.canvg.parser.load(e),o=a.getElementsByTagName("font");Array.from(o).forEach(s=>{var u=i.createElement(s);i.definitions[t]=u})}catch(s){console.error('Error while loading font "'.concat(e,'":'),s)}r.loaded=!0})()}}class Sr extends Ct{constructor(t,e,r){super(t,e,r),this.type="style";var i=Kt(Array.from(e.childNodes).map(o=>o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),a=i.split("}");a.forEach(o=>{var s=o.trim();if(s){var u=s.split("{"),c=u[0].split(","),p=u[1].split(";");c.forEach(E=>{var O=E.trim();if(O){var m=t.styles[O]||{};if(p.forEach(L=>{var U=L.indexOf(":"),K=L.substr(0,U).trim(),G=L.substr(U+1,L.length-U).trim();K&&G&&(m[K]=new q(t,K,G))}),t.styles[O]=m,t.stylesSpecificity[O]=$e(O),O==="@font-face"){var D=m["font-family"].getString().replace(/"|'/g,""),V=m.src.getString().split(",");V.forEach(L=>{if(L.indexOf('format("svg")')>0){var U=W(L);U&&new vn(t).load(D,U)}})}}})}})}}Sr.parseExternalUrl=W;class gn extends Oe{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 i=r;if(r.type==="symbol"&&(i=new Be(e,null),i.attributes.viewBox=new q(e,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new q(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new q(e,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new q(e,"opacity",this.calculateOpacity())),i.type==="svg"){var a=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);a.hasValue()&&(i.attributes.width=new q(e,"width",a.getString())),o.hasValue()&&(i.attributes.height=new q(e,"height",o.getString()))}var s=i.parent;i.parent=this,i.render(t),i.parent=s}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return Te.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function tr(h,t,e,r,i,a){return h[e*r*4+t*4+a]}function er(h,t,e,r,i,a,o){h[e*r*4+t*4+a]=o}function Dt(h,t,e){var r=h[t];return r*e}function oe(h,t,e,r){return t+Math.cos(h)*e+Math.sin(h)*r}class br extends Ct{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var i=It(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var a=i[0];i=[.213+.787*a,.715-.715*a,.072-.072*a,0,0,.213-.213*a,.715+.285*a,.072-.072*a,0,0,.213-.213*a,.715-.715*a,.072+.928*a,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var o=i[0]*Math.PI/180;i=[oe(o,.213,.787,-.213),oe(o,.715,-.715,-.715),oe(o,.072,-.072,.928),0,0,oe(o,.213,-.213,.143),oe(o,.715,.285,.14),oe(o,.072,-.072,-.283),0,0,oe(o,.213,-.213,-.787),oe(o,.715,-.715,.715),oe(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[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];break}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,i,a){for(var{includeOpacity:o,matrix:s}=this,u=t.getImageData(0,0,i,a),c=0;c{u.addBoundingBox(D.getBoundingBox(t))}),i=Math.floor(u.x1),a=Math.floor(u.y1),o=Math.floor(u.width),s=Math.floor(u.height)}var c=this.removeStyles(e,Xe.ignoreStyles),p=r.createCanvas(i+o,a+s),E=p.getContext("2d");r.screen.setDefaults(E),this.renderChildren(E),new br(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(E,0,0,i+o,a+s);var O=r.createCanvas(i+o,a+s),m=O.getContext("2d");r.screen.setDefaults(m),e.render(m),m.globalCompositeOperation="destination-in",m.fillStyle=E.createPattern(p,"no-repeat"),m.fillRect(0,0,i+o,a+s),t.fillStyle=m.createPattern(O,"no-repeat"),t.fillRect(0,0,i+o,a+s),this.restoreStyles(e,c)}render(t){}}Xe.ignoreStyles=["mask","transform","clip-path"];var dn=()=>{};class pn extends Ct{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:i,closePath:a}=t;r&&(r.beginPath=dn,r.closePath=dn),Reflect.apply(i,t,[]),this.children.forEach(o=>{if(typeof o.path!="undefined"){var s=typeof o.elementTransform!="undefined"?o.elementTransform():null;s||(s=Te.fromElement(e,o)),s&&s.apply(t),o.path(t),r&&(r.closePath=a),s&&s.unapply(t)}}),Reflect.apply(a,t,[]),t.clip(),r&&(r.beginPath=i,r.closePath=a)}render(t){}}class We extends Ct{constructor(){super(...arguments),this.type="filter"}apply(t,e){var{document:r,children:i}=this,a=e.getBoundingBox(t);if(a){var o=0,s=0;i.forEach(U=>{var K=U.extraFilterDistance||0;o=Math.max(o,K),s=Math.max(s,K)});var u=Math.floor(a.width),c=Math.floor(a.height),p=u+2*o,E=c+2*s;if(!(p<1||E<1)){var O=Math.floor(a.x),m=Math.floor(a.y),D=this.removeStyles(e,We.ignoreStyles),V=r.createCanvas(p,E),L=V.getContext("2d");r.screen.setDefaults(L),L.translate(-O+o,-m+s),e.render(L),i.forEach(U=>{typeof U.apply=="function"&&U.apply(L,0,0,p,E)}),t.drawImage(V,0,0,p,E,O-o,m-s,p,E),this.restoreStyles(e,D)}}}render(t){}}We.ignoreStyles=["filter","transform","clip-path"];class yn extends Ct{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,i,a){}}class mn extends Ct{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,i,a){}}class xn extends Ct{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,i,a){}}class En extends Ct{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,i,a){var{document:o,blurRadius:s}=this,u=o.window?o.window.document.body:null,c=t.canvas;c.id=o.getUniqueId(),u&&(c.style.display="none",u.appendChild(c)),he(c,e,r,i,a,s),u&&u.removeChild(c)}}class Tn extends Ct{constructor(){super(...arguments),this.type="title"}}class On extends Ct{constructor(){super(...arguments),this.type="desc"}}var Fn={svg:Be,rect:Er,circle:Xr,ellipse:Wr,line:Qr,polyline:Tr,polygon:Zr,path:xt,pattern:Kr,marker:kr,defs:Jr,linearGradient:qr,radialGradient:_r,stop:tn,animate:qe,animateColor:en,animateTransform:rn,font:nn,"font-face":an,"missing-glyph":sn,glyph:xr,text:se,tspan:Ye,tref:on,a:un,textPath:hn,image:fn,g:Je,symbol:cn,style:Sr,use:gn,mask:Xe,clipPath:pn,filter:We,feDropShadow:yn,feMorphology:mn,feComposite:xn,feColorMatrix:br,feGaussianBlur:En,title:Tn,desc:On};function Sn(h,t){var e=Object.keys(h);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(h);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable})),e.push.apply(e,r)}return e}function Un(h){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:!1,e=document.createElement("img");return t&&(e.crossOrigin="Anonymous"),new Promise((r,i)=>{e.onload=()=>{r(e)},e.onerror=(a,o,s,u,c)=>{i(c)},e.src=h})}),Cr.apply(this,arguments)}class ue{constructor(t){var{rootEmSize:e=12,emSize:r=12,createCanvas:i=ue.createCanvas,createImage:a=ue.createImage,anonymousCrossOrigin:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=t,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=e,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(a,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(t,e){return typeof e=="boolean"?(r,i)=>t(r,typeof i=="boolean"?i:e):t}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:t}=this;return t[t.length-1]}set emSize(t){var{emSizeStack:e}=this;e.push(t)}popEmSize(){var{emSizeStack:t}=this;t.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(t=>t.loaded)}isFontsLoaded(){return this.fonts.every(t=>t.loaded)}createDocumentElement(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}createElement(t){var e=t.nodeName.replace(/^[^:]+:/,""),r=ue.elementTypes[e];return typeof r!="undefined"?new r(this,t):new Yr(this,t)}createTextNode(t){return new Ln(this,t)}setViewBox(t){this.screen.setViewBox(Un({document:this},t))}}ue.createCanvas=jn,ue.createImage=Gn,ue.elementTypes=Fn;function bn(h,t){var e=Object.keys(h);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(h);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable})),e.push.apply(e,r)}return e}function Re(h){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new ke(r),this.screen=new He(t,r),this.options=r;var i=new ue(this,r),a=i.createDocumentElement(e);this.document=i,this.documentElement=a}static from(t,e){var r=arguments;return(0,f.Z)(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:{},a=new ke(i),o=yield a.parse(e);return new Ne(t,o,i)})()}static fromString(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new ke(r),a=i.parseFromString(e);return new Ne(t,a,r)}fork(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ne.from(t,e,Re(Re({},this.options),r))}forkString(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ne.fromString(t,e,Re(Re({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return(0,f.Z)(function*(){var r=t.length>0&&t[0]!==void 0?t[0]:{};e.start(Re({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield e.ready(),e.stop()})()}start(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:e,screen:r,options:i}=this;r.start(e,Re(Re({enableRedraw:!0},i),t))}stop(){this.screen.stop()}resize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(t,e,r)}}}}]);