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