@colijnit/sharedcomponents 261.20.0 → 261.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ import{f as d,h as Z}from"./chunk-H5HZ6YB3.js";var M=d((Ii,Us)=>{"use strict";var br=function(i){return i&&i.Math===Math&&i};Us.exports=br(typeof globalThis=="object"&&globalThis)||br(typeof window=="object"&&window)||br(typeof self=="object"&&self)||br(typeof global=="object"&&global)||br(typeof Ii=="object"&&Ii)||(function(){return this})()||Function("return this")()});var _=d((VO,js)=>{"use strict";js.exports=function(i){try{return!!i()}catch{return!0}}});var ue=d((_O,Fs)=>{"use strict";var Tg=_();Fs.exports=!Tg(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var xr=d((DO,zs)=>{"use strict";var Og=_();zs.exports=!Og(function(){var i=(function(){}).bind();return typeof i!="function"||i.hasOwnProperty("prototype")})});var H=d((LO,$s)=>{"use strict";var Sg=xr(),st=Function.prototype.call;$s.exports=Sg?st.bind(st):function(){return st.apply(st,arguments)}});var Xs=d(Ys=>{"use strict";var Gs={}.propertyIsEnumerable,Hs=Object.getOwnPropertyDescriptor,Eg=Hs&&!Gs.call({1:2},1);Ys.f=Eg?function(e){var r=Hs(this,e);return!!r&&r.enumerable}:Gs});var ot=d((BO,Ws)=>{"use strict";Ws.exports=function(i,e){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:e}}});var D=d((UO,Zs)=>{"use strict";var Qs=xr(),Ks=Function.prototype,Mi=Ks.call,wg=Qs&&Ks.bind.bind(Mi,Mi);Zs.exports=Qs?wg:function(i){return function(){return Mi.apply(i,arguments)}}});var Ae=d((jO,eo)=>{"use strict";var Js=D(),Cg=Js({}.toString),qg=Js("".slice);eo.exports=function(i){return qg(Cg(i),8,-1)}});var _i=d((FO,ro)=>{"use strict";var Ag=D(),Pg=_(),Rg=Ae(),Vi=Object,Ng=Ag("".split);ro.exports=Pg(function(){return!Vi("z").propertyIsEnumerable(0)})?function(i){return Rg(i)==="String"?Ng(i,""):Vi(i)}:Vi});var Tr=d((zO,to)=>{"use strict";to.exports=function(i){return i==null}});var le=d(($O,io)=>{"use strict";var Ig=Tr(),Mg=TypeError;io.exports=function(i){if(Ig(i))throw new Mg("Can't call method on "+i);return i}});var Ke=d((GO,ao)=>{"use strict";var Vg=_i(),_g=le();ao.exports=function(i){return Vg(_g(i))}});var k=d((HO,no)=>{"use strict";var Di=typeof document=="object"&&document.all;no.exports=typeof Di>"u"&&Di!==void 0?function(i){return typeof i=="function"||i===Di}:function(i){return typeof i=="function"}});var te=d((YO,so)=>{"use strict";var Dg=k();so.exports=function(i){return typeof i=="object"?i!==null:Dg(i)}});var Pe=d((XO,oo)=>{"use strict";var Li=M(),Lg=k(),kg=function(i){return Lg(i)?i:void 0};oo.exports=function(i,e){return arguments.length<2?kg(Li[i]):Li[i]&&Li[i][e]}});var Or=d((WO,uo)=>{"use strict";var Bg=D();uo.exports=Bg({}.isPrototypeOf)});var Ze=d((QO,co)=>{"use strict";var Ug=M(),lo=Ug.navigator,ho=lo&&lo.userAgent;co.exports=ho?String(ho):""});var lt=d((KO,mo)=>{"use strict";var yo=M(),ki=Ze(),fo=yo.process,vo=yo.Deno,go=fo&&fo.versions||vo&&vo.version,po=go&&go.v8,fe,ut;po&&(fe=po.split("."),ut=fe[0]>0&&fe[0]<4?1:+(fe[0]+fe[1]));!ut&&ki&&(fe=ki.match(/Edge\/(\d+)/),(!fe||fe[1]>=74)&&(fe=ki.match(/Chrome\/(\d+)/),fe&&(ut=+fe[1])));mo.exports=ut});var Bi=d((ZO,xo)=>{"use strict";var bo=lt(),jg=_(),Fg=M(),zg=Fg.String;xo.exports=!!Object.getOwnPropertySymbols&&!jg(function(){var i=Symbol("symbol detection");return!zg(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&bo&&bo<41})});var Ui=d((JO,To)=>{"use strict";var $g=Bi();To.exports=$g&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ji=d((eS,Oo)=>{"use strict";var Gg=Pe(),Hg=k(),Yg=Or(),Xg=Ui(),Wg=Object;Oo.exports=Xg?function(i){return typeof i=="symbol"}:function(i){var e=Gg("Symbol");return Hg(e)&&Yg(e.prototype,Wg(i))}});var Sr=d((rS,So)=>{"use strict";var Qg=String;So.exports=function(i){try{return Qg(i)}catch{return"Object"}}});var be=d((tS,Eo)=>{"use strict";var Kg=k(),Zg=Sr(),Jg=TypeError;Eo.exports=function(i){if(Kg(i))return i;throw new Jg(Zg(i)+" is not a function")}});var ke=d((iS,wo)=>{"use strict";var ed=be(),rd=Tr();wo.exports=function(i,e){var r=i[e];return rd(r)?void 0:ed(r)}});var qo=d((aS,Co)=>{"use strict";var Fi=H(),zi=k(),$i=te(),td=TypeError;Co.exports=function(i,e){var r,t;if(e==="string"&&zi(r=i.toString)&&!$i(t=Fi(r,i))||zi(r=i.valueOf)&&!$i(t=Fi(r,i))||e!=="string"&&zi(r=i.toString)&&!$i(t=Fi(r,i)))return t;throw new td("Can't convert object to primitive value")}});var ve=d((nS,Ao)=>{"use strict";Ao.exports=!1});var ht=d((sS,Ro)=>{"use strict";var Po=M(),id=Object.defineProperty;Ro.exports=function(i,e){try{id(Po,i,{value:e,configurable:!0,writable:!0})}catch{Po[i]=e}return e}});var ct=d((oS,Mo)=>{"use strict";var ad=ve(),nd=M(),sd=ht(),No="__core-js_shared__",Io=Mo.exports=nd[No]||sd(No,{});(Io.versions||(Io.versions=[])).push({version:"3.48.0",mode:ad?"pure":"global",copyright:"\xA9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var ft=d((uS,_o)=>{"use strict";var Vo=ct();_o.exports=function(i,e){return Vo[i]||(Vo[i]=e||{})}});var Er=d((lS,Do)=>{"use strict";var od=le(),ud=Object;Do.exports=function(i){return ud(od(i))}});var he=d((hS,Lo)=>{"use strict";var ld=D(),hd=Er(),cd=ld({}.hasOwnProperty);Lo.exports=Object.hasOwn||function(e,r){return cd(hd(e),r)}});var Gi=d((cS,ko)=>{"use strict";var fd=D(),vd=0,gd=Math.random(),dd=fd(1.1.toString);ko.exports=function(i){return"Symbol("+(i===void 0?"":i)+")_"+dd(++vd+gd,36)}});var z=d((fS,Uo)=>{"use strict";var pd=M(),yd=ft(),Bo=he(),md=Gi(),bd=Bi(),xd=Ui(),Je=pd.Symbol,Hi=yd("wks"),Td=xd?Je.for||Je:Je&&Je.withoutSetter||md;Uo.exports=function(i){return Bo(Hi,i)||(Hi[i]=bd&&Bo(Je,i)?Je[i]:Td("Symbol."+i)),Hi[i]}});var $o=d((vS,zo)=>{"use strict";var Od=H(),jo=te(),Fo=ji(),Sd=ke(),Ed=qo(),wd=z(),Cd=TypeError,qd=wd("toPrimitive");zo.exports=function(i,e){if(!jo(i)||Fo(i))return i;var r=Sd(i,qd),t;if(r){if(e===void 0&&(e="default"),t=Od(r,i,e),!jo(t)||Fo(t))return t;throw new Cd("Can't convert object to primitive value")}return e===void 0&&(e="number"),Ed(i,e)}});var Yi=d((gS,Go)=>{"use strict";var Ad=$o(),Pd=ji();Go.exports=function(i){var e=Ad(i,"string");return Pd(e)?e:e+""}});var wr=d((dS,Yo)=>{"use strict";var Rd=M(),Ho=te(),Xi=Rd.document,Nd=Ho(Xi)&&Ho(Xi.createElement);Yo.exports=function(i){return Nd?Xi.createElement(i):{}}});var Wi=d((pS,Xo)=>{"use strict";var Id=ue(),Md=_(),Vd=wr();Xo.exports=!Id&&!Md(function(){return Object.defineProperty(Vd("div"),"a",{get:function(){return 7}}).a!==7})});var Cr=d(Qo=>{"use strict";var _d=ue(),Dd=H(),Ld=Xs(),kd=ot(),Bd=Ke(),Ud=Yi(),jd=he(),Fd=Wi(),Wo=Object.getOwnPropertyDescriptor;Qo.f=_d?Wo:function(e,r){if(e=Bd(e),r=Ud(r),Fd)try{return Wo(e,r)}catch{}if(jd(e,r))return kd(!Dd(Ld.f,e,r),e[r])}});var Qi=d((mS,Ko)=>{"use strict";var zd=ue(),$d=_();Ko.exports=zd&&$d(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var J=d((bS,Zo)=>{"use strict";var Gd=te(),Hd=String,Yd=TypeError;Zo.exports=function(i){if(Gd(i))return i;throw new Yd(Hd(i)+" is not an object")}});var Te=d(eu=>{"use strict";var Xd=ue(),Wd=Wi(),Qd=Qi(),vt=J(),Jo=Yi(),Kd=TypeError,Ki=Object.defineProperty,Zd=Object.getOwnPropertyDescriptor,Zi="enumerable",Ji="configurable",ea="writable";eu.f=Xd?Qd?function(e,r,t){if(vt(e),r=Jo(r),vt(t),typeof e=="function"&&r==="prototype"&&"value"in t&&ea in t&&!t[ea]){var a=Zd(e,r);a&&a[ea]&&(e[r]=t.value,t={configurable:Ji in t?t[Ji]:a[Ji],enumerable:Zi in t?t[Zi]:a[Zi],writable:!1})}return Ki(e,r,t)}:Ki:function(e,r,t){if(vt(e),r=Jo(r),vt(t),Wd)try{return Ki(e,r,t)}catch{}if("get"in t||"set"in t)throw new Kd("Accessors not supported");return"value"in t&&(e[r]=t.value),e}});var er=d((TS,ru)=>{"use strict";var Jd=ue(),ep=Te(),rp=ot();ru.exports=Jd?function(i,e,r){return ep.f(i,e,rp(1,r))}:function(i,e,r){return i[e]=r,i}});var qr=d((OS,iu)=>{"use strict";var ra=ue(),tp=he(),tu=Function.prototype,ip=ra&&Object.getOwnPropertyDescriptor,ta=tp(tu,"name"),ap=ta&&(function(){}).name==="something",np=ta&&(!ra||ra&&ip(tu,"name").configurable);iu.exports={EXISTS:ta,PROPER:ap,CONFIGURABLE:np}});var gt=d((SS,au)=>{"use strict";var sp=D(),op=k(),ia=ct(),up=sp(Function.toString);op(ia.inspectSource)||(ia.inspectSource=function(i){return up(i)});au.exports=ia.inspectSource});var ou=d((ES,su)=>{"use strict";var lp=M(),hp=k(),nu=lp.WeakMap;su.exports=hp(nu)&&/native code/.test(String(nu))});var dt=d((wS,lu)=>{"use strict";var cp=ft(),fp=Gi(),uu=cp("keys");lu.exports=function(i){return uu[i]||(uu[i]=fp(i))}});var pt=d((CS,hu)=>{"use strict";hu.exports={}});var Pr=d((qS,vu)=>{"use strict";var vp=ou(),fu=M(),gp=te(),dp=er(),aa=he(),na=ct(),pp=dt(),yp=pt(),cu="Object already initialized",sa=fu.TypeError,mp=fu.WeakMap,yt,Ar,mt,bp=function(i){return mt(i)?Ar(i):yt(i,{})},xp=function(i){return function(e){var r;if(!gp(e)||(r=Ar(e)).type!==i)throw new sa("Incompatible receiver, "+i+" required");return r}};vp||na.state?(ge=na.state||(na.state=new mp),ge.get=ge.get,ge.has=ge.has,ge.set=ge.set,yt=function(i,e){if(ge.has(i))throw new sa(cu);return e.facade=i,ge.set(i,e),e},Ar=function(i){return ge.get(i)||{}},mt=function(i){return ge.has(i)}):(Be=pp("state"),yp[Be]=!0,yt=function(i,e){if(aa(i,Be))throw new sa(cu);return e.facade=i,dp(i,Be,e),e},Ar=function(i){return aa(i,Be)?i[Be]:{}},mt=function(i){return aa(i,Be)});var ge,Be;vu.exports={set:yt,get:Ar,has:mt,enforce:bp,getterFor:xp}});var la=d((AS,pu)=>{"use strict";var ua=D(),Tp=_(),Op=k(),bt=he(),oa=ue(),Sp=qr().CONFIGURABLE,Ep=gt(),du=Pr(),wp=du.enforce,Cp=du.get,gu=String,xt=Object.defineProperty,qp=ua("".slice),Ap=ua("".replace),Pp=ua([].join),Rp=oa&&!Tp(function(){return xt(function(){},"length",{value:8}).length!==8}),Np=String(String).split("String"),Ip=pu.exports=function(i,e,r){qp(gu(e),0,7)==="Symbol("&&(e="["+Ap(gu(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!bt(i,"name")||Sp&&i.name!==e)&&(oa?xt(i,"name",{value:e,configurable:!0}):i.name=e),Rp&&r&&bt(r,"arity")&&i.length!==r.arity&&xt(i,"length",{value:r.arity});try{r&&bt(r,"constructor")&&r.constructor?oa&&xt(i,"prototype",{writable:!1}):i.prototype&&(i.prototype=void 0)}catch{}var t=wp(i);return bt(t,"source")||(t.source=Pp(Np,typeof e=="string"?e:"")),i};Function.prototype.toString=Ip(function(){return Op(this)&&Cp(this).source||Ep(this)},"toString")});var Re=d((PS,yu)=>{"use strict";var Mp=k(),Vp=Te(),_p=la(),Dp=ht();yu.exports=function(i,e,r,t){t||(t={});var a=t.enumerable,n=t.name!==void 0?t.name:e;if(Mp(r)&&_p(r,n,t),t.global)a?i[e]=r:Dp(e,r);else{try{t.unsafe?i[e]&&(a=!0):delete i[e]}catch{}a?i[e]=r:Vp.f(i,e,{value:r,enumerable:!1,configurable:!t.nonConfigurable,writable:!t.nonWritable})}return i}});var bu=d((RS,mu)=>{"use strict";var Lp=Math.ceil,kp=Math.floor;mu.exports=Math.trunc||function(e){var r=+e;return(r>0?kp:Lp)(r)}});var Rr=d((NS,xu)=>{"use strict";var Bp=bu();xu.exports=function(i){var e=+i;return e!==e||e===0?0:Bp(e)}});var Ou=d((IS,Tu)=>{"use strict";var Up=Rr(),jp=Math.max,Fp=Math.min;Tu.exports=function(i,e){var r=Up(i);return r<0?jp(r+e,0):Fp(r,e)}});var Ue=d((MS,Su)=>{"use strict";var zp=Rr(),$p=Math.min;Su.exports=function(i){var e=zp(i);return e>0?$p(e,9007199254740991):0}});var Tt=d((VS,Eu)=>{"use strict";var Gp=Ue();Eu.exports=function(i){return Gp(i.length)}});var ha=d((_S,Cu)=>{"use strict";var Hp=Ke(),Yp=Ou(),Xp=Tt(),wu=function(i){return function(e,r,t){var a=Hp(e),n=Xp(a);if(n===0)return!i&&-1;var o=Yp(t,n),s;if(i&&r!==r){for(;n>o;)if(s=a[o++],s!==s)return!0}else for(;n>o;o++)if((i||o in a)&&a[o]===r)return i||o||0;return!i&&-1}};Cu.exports={includes:wu(!0),indexOf:wu(!1)}});var fa=d((DS,Au)=>{"use strict";var Wp=D(),ca=he(),Qp=Ke(),Kp=ha().indexOf,Zp=pt(),qu=Wp([].push);Au.exports=function(i,e){var r=Qp(i),t=0,a=[],n;for(n in r)!ca(Zp,n)&&ca(r,n)&&qu(a,n);for(;e.length>t;)ca(r,n=e[t++])&&(~Kp(a,n)||qu(a,n));return a}});var Ot=d((LS,Pu)=>{"use strict";Pu.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Nu=d(Ru=>{"use strict";var Jp=fa(),ey=Ot(),ry=ey.concat("length","prototype");Ru.f=Object.getOwnPropertyNames||function(e){return Jp(e,ry)}});var Mu=d(Iu=>{"use strict";Iu.f=Object.getOwnPropertySymbols});var _u=d((US,Vu)=>{"use strict";var ty=Pe(),iy=D(),ay=Nu(),ny=Mu(),sy=J(),oy=iy([].concat);Vu.exports=ty("Reflect","ownKeys")||function(e){var r=ay.f(sy(e)),t=ny.f;return t?oy(r,t(e)):r}});var ku=d((jS,Lu)=>{"use strict";var Du=he(),uy=_u(),ly=Cr(),hy=Te();Lu.exports=function(i,e,r){for(var t=uy(e),a=hy.f,n=ly.f,o=0;o<t.length;o++){var s=t[o];!Du(i,s)&&!(r&&Du(r,s))&&a(i,s,n(e,s))}}});var va=d((FS,Bu)=>{"use strict";var cy=_(),fy=k(),vy=/#|\.prototype\./,Nr=function(i,e){var r=dy[gy(i)];return r===yy?!0:r===py?!1:fy(e)?cy(e):!!e},gy=Nr.normalize=function(i){return String(i).replace(vy,".").toLowerCase()},dy=Nr.data={},py=Nr.NATIVE="N",yy=Nr.POLYFILL="P";Bu.exports=Nr});var ee=d((zS,Uu)=>{"use strict";var St=M(),my=Cr().f,by=er(),xy=Re(),Ty=ht(),Oy=ku(),Sy=va();Uu.exports=function(i,e){var r=i.target,t=i.global,a=i.stat,n,o,s,u,l,h;if(t?o=St:a?o=St[r]||Ty(r,{}):o=St[r]&&St[r].prototype,o)for(s in e){if(l=e[s],i.dontCallGetSet?(h=my(o,s),u=h&&h.value):u=o[s],n=Sy(t?s:r+(a?".":"#")+s,i.forced),!n&&u!==void 0){if(typeof l==typeof u)continue;Oy(l,u)}(i.sham||u&&u.sham)&&by(l,"sham",!0),xy(o,s,l,i)}}});var ga=d(($S,ju)=>{"use strict";var Ir=M(),Ey=Ze(),wy=Ae(),Et=function(i){return Ey.slice(0,i.length)===i};ju.exports=(function(){return Et("Bun/")?"BUN":Et("Cloudflare-Workers")?"CLOUDFLARE":Et("Deno/")?"DENO":Et("Node.js/")?"NODE":Ir.Bun&&typeof Bun.version=="string"?"BUN":Ir.Deno&&typeof Deno.version=="object"?"DENO":wy(Ir.process)==="process"?"NODE":Ir.window&&Ir.document?"BROWSER":"REST"})()});var Mr=d((GS,Fu)=>{"use strict";var Cy=ga();Fu.exports=Cy==="NODE"});var $u=d((HS,zu)=>{"use strict";var qy=M();zu.exports=qy});var Hu=d((YS,Gu)=>{"use strict";var Ay=D(),Py=be();Gu.exports=function(i,e,r){try{return Ay(Py(Object.getOwnPropertyDescriptor(i,e)[r]))}catch{}}});var Xu=d((XS,Yu)=>{"use strict";var Ry=te();Yu.exports=function(i){return Ry(i)||i===null}});var Qu=d((WS,Wu)=>{"use strict";var Ny=Xu(),Iy=String,My=TypeError;Wu.exports=function(i){if(Ny(i))return i;throw new My("Can't set "+Iy(i)+" as a prototype")}});var da=d((QS,Ku)=>{"use strict";var Vy=Hu(),_y=te(),Dy=le(),Ly=Qu();Ku.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var i=!1,e={},r;try{r=Vy(Object.prototype,"__proto__","set"),r(e,[]),i=e instanceof Array}catch{}return function(a,n){return Dy(a),Ly(n),_y(a)&&(i?r(a,n):a.__proto__=n),a}})():void 0)});var Vr=d((KS,Ju)=>{"use strict";var ky=Te().f,By=he(),Uy=z(),Zu=Uy("toStringTag");Ju.exports=function(i,e,r){i&&!r&&(i=i.prototype),i&&!By(i,Zu)&&ky(i,Zu,{configurable:!0,value:e})}});var tl=d((ZS,rl)=>{"use strict";var el=la(),jy=Te();rl.exports=function(i,e,r){return r.get&&el(r.get,e,{getter:!0}),r.set&&el(r.set,e,{setter:!0}),jy.f(i,e,r)}});var nl=d((JS,al)=>{"use strict";var Fy=Pe(),zy=tl(),$y=z(),Gy=ue(),il=$y("species");al.exports=function(i){var e=Fy(i);Gy&&e&&!e[il]&&zy(e,il,{configurable:!0,get:function(){return this}})}});var ol=d((eE,sl)=>{"use strict";var Hy=Or(),Yy=TypeError;sl.exports=function(i,e){if(Hy(e,i))return i;throw new Yy("Incorrect invocation")}});var hl=d((rE,ll)=>{"use strict";var Xy=z(),Wy=Xy("toStringTag"),ul={};ul[Wy]="z";ll.exports=String(ul)==="[object z]"});var Ct=d((tE,cl)=>{"use strict";var Qy=hl(),Ky=k(),wt=Ae(),Zy=z(),Jy=Zy("toStringTag"),e0=Object,r0=wt((function(){return arguments})())==="Arguments",t0=function(i,e){try{return i[e]}catch{}};cl.exports=Qy?wt:function(i){var e,r,t;return i===void 0?"Undefined":i===null?"Null":typeof(r=t0(e=e0(i),Jy))=="string"?r:r0?wt(e):(t=wt(e))==="Object"&&Ky(e.callee)?"Arguments":t}});var yl=d((iE,pl)=>{"use strict";var i0=D(),a0=_(),fl=k(),n0=Ct(),s0=Pe(),o0=gt(),vl=function(){},gl=s0("Reflect","construct"),pa=/^\s*(?:class|function)\b/,u0=i0(pa.exec),l0=!pa.test(vl),_r=function(e){if(!fl(e))return!1;try{return gl(vl,[],e),!0}catch{return!1}},dl=function(e){if(!fl(e))return!1;switch(n0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l0||!!u0(pa,o0(e))}catch{return!0}};dl.sham=!0;pl.exports=!gl||a0(function(){var i;return _r(_r.call)||!_r(Object)||!_r(function(){i=!0})||i})?dl:_r});var bl=d((aE,ml)=>{"use strict";var h0=yl(),c0=Sr(),f0=TypeError;ml.exports=function(i){if(h0(i))return i;throw new f0(c0(i)+" is not a constructor")}});var ya=d((nE,Tl)=>{"use strict";var xl=J(),v0=bl(),g0=Tr(),d0=z(),p0=d0("species");Tl.exports=function(i,e){var r=xl(i).constructor,t;return r===void 0||g0(t=xl(r)[p0])?e:v0(t)}});var ma=d((sE,wl)=>{"use strict";var y0=xr(),El=Function.prototype,Ol=El.apply,Sl=El.call;wl.exports=typeof Reflect=="object"&&Reflect.apply||(y0?Sl.bind(Ol):function(){return Sl.apply(Ol,arguments)})});var Dr=d((oE,Cl)=>{"use strict";var m0=Ae(),b0=D();Cl.exports=function(i){if(m0(i)==="Function")return b0(i)}});var qt=d((uE,Al)=>{"use strict";var ql=Dr(),x0=be(),T0=xr(),O0=ql(ql.bind);Al.exports=function(i,e){return x0(i),e===void 0?i:T0?O0(i,e):function(){return i.apply(e,arguments)}}});var ba=d((lE,Pl)=>{"use strict";var S0=Pe();Pl.exports=S0("document","documentElement")});var Nl=d((hE,Rl)=>{"use strict";var E0=D();Rl.exports=E0([].slice)});var Ml=d((cE,Il)=>{"use strict";var w0=TypeError;Il.exports=function(i,e){if(i<e)throw new w0("Not enough arguments");return i}});var xa=d((fE,Vl)=>{"use strict";var C0=Ze();Vl.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(C0)});var Pa=d((vE,zl)=>{"use strict";var ne=M(),q0=ma(),A0=qt(),_l=k(),P0=he(),Fl=_(),Dl=ba(),R0=Nl(),Ll=wr(),N0=Ml(),I0=xa(),M0=Mr(),Ca=ne.setImmediate,qa=ne.clearImmediate,V0=ne.process,Ta=ne.Dispatch,_0=ne.Function,kl=ne.MessageChannel,D0=ne.String,Oa=0,Lr={},Bl="onreadystatechange",kr,je,Sa,Ea;Fl(function(){kr=ne.location});var Aa=function(i){if(P0(Lr,i)){var e=Lr[i];delete Lr[i],e()}},wa=function(i){return function(){Aa(i)}},Ul=function(i){Aa(i.data)},jl=function(i){ne.postMessage(D0(i),kr.protocol+"//"+kr.host)};(!Ca||!qa)&&(Ca=function(e){N0(arguments.length,1);var r=_l(e)?e:_0(e),t=R0(arguments,1);return Lr[++Oa]=function(){q0(r,void 0,t)},je(Oa),Oa},qa=function(e){delete Lr[e]},M0?je=function(i){V0.nextTick(wa(i))}:Ta&&Ta.now?je=function(i){Ta.now(wa(i))}:kl&&!I0?(Sa=new kl,Ea=Sa.port2,Sa.port1.onmessage=Ul,je=A0(Ea.postMessage,Ea)):ne.addEventListener&&_l(ne.postMessage)&&!ne.importScripts&&kr&&kr.protocol!=="file:"&&!Fl(jl)?(je=jl,ne.addEventListener("message",Ul,!1)):Bl in Ll("script")?je=function(i){Dl.appendChild(Ll("script"))[Bl]=function(){Dl.removeChild(this),Aa(i)}}:je=function(i){setTimeout(wa(i),0)});zl.exports={set:Ca,clear:qa}});var Hl=d((gE,Gl)=>{"use strict";var $l=M(),L0=ue(),k0=Object.getOwnPropertyDescriptor;Gl.exports=function(i){if(!L0)return $l[i];var e=k0($l,i);return e&&e.value}});var Ra=d((dE,Xl)=>{"use strict";var Yl=function(){this.head=null,this.tail=null};Yl.prototype={add:function(i){var e={item:i,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var i=this.head;if(i){var e=this.head=i.next;return e===null&&(this.tail=null),i.item}}};Xl.exports=Yl});var Ql=d((pE,Wl)=>{"use strict";var B0=Ze();Wl.exports=/ipad|iphone|ipod/i.test(B0)&&typeof Pebble<"u"});var Zl=d((yE,Kl)=>{"use strict";var U0=Ze();Kl.exports=/web0s(?!.*chrome)/i.test(U0)});var nh=d((mE,ah)=>{"use strict";var tr=M(),j0=Hl(),Jl=qt(),Na=Pa().set,F0=Ra(),z0=xa(),$0=Ql(),G0=Zl(),Ia=Mr(),eh=tr.MutationObserver||tr.WebKitMutationObserver,rh=tr.document,th=tr.process,At=tr.Promise,_a=j0("queueMicrotask"),rr,Ma,Va,Pt,ih;_a||(Br=new F0,Ur=function(){var i,e;for(Ia&&(i=th.domain)&&i.exit();e=Br.get();)try{e()}catch(r){throw Br.head&&rr(),r}i&&i.enter()},!z0&&!Ia&&!G0&&eh&&rh?(Ma=!0,Va=rh.createTextNode(""),new eh(Ur).observe(Va,{characterData:!0}),rr=function(){Va.data=Ma=!Ma}):!$0&&At&&At.resolve?(Pt=At.resolve(void 0),Pt.constructor=At,ih=Jl(Pt.then,Pt),rr=function(){ih(Ur)}):Ia?rr=function(){th.nextTick(Ur)}:(Na=Jl(Na,tr),rr=function(){Na(Ur)}),_a=function(i){Br.head||rr(),Br.add(i)});var Br,Ur;ah.exports=_a});var oh=d((bE,sh)=>{"use strict";sh.exports=function(i,e){try{arguments.length===1?console.error(i):console.error(i,e)}catch{}}});var Rt=d((xE,uh)=>{"use strict";uh.exports=function(i){try{return{error:!1,value:i()}}catch(e){return{error:!0,value:e}}}});var ir=d((TE,lh)=>{"use strict";var H0=M();lh.exports=H0.Promise});var ar=d((OE,vh)=>{"use strict";var Y0=M(),jr=ir(),X0=k(),W0=va(),Q0=gt(),K0=z(),hh=ga(),Z0=ve(),Da=lt(),ch=jr&&jr.prototype,J0=K0("species"),La=!1,fh=X0(Y0.PromiseRejectionEvent),em=W0("Promise",function(){var i=Q0(jr),e=i!==String(jr);if(!e&&Da===66||Z0&&!(ch.catch&&ch.finally))return!0;if(!Da||Da<51||!/native code/.test(i)){var r=new jr(function(n){n(1)}),t=function(n){n(function(){},function(){})},a=r.constructor={};if(a[J0]=t,La=r.then(function(){})instanceof t,!La)return!0}return!e&&(hh==="BROWSER"||hh==="DENO")&&!fh});vh.exports={CONSTRUCTOR:em,REJECTION_EVENT:fh,SUBCLASSING:La}});var nr=d((SE,dh)=>{"use strict";var gh=be(),rm=TypeError,tm=function(i){var e,r;this.promise=new i(function(t,a){if(e!==void 0||r!==void 0)throw new rm("Bad Promise constructor");e=t,r=a}),this.resolve=gh(e),this.reject=gh(r)};dh.exports.f=function(i){return new tm(i)}});var _h=d(()=>{"use strict";var im=ee(),am=ve(),Vt=Mr(),Ne=M(),nm=$u(),lr=H(),ph=Re(),yh=da(),sm=Vr(),om=nl(),um=be(),Mt=k(),lm=te(),hm=ol(),cm=ya(),Oh=Pa().set,Fa=nh(),fm=oh(),vm=Rt(),gm=Ra(),Sh=Pr(),_t=ir(),za=ar(),Eh=nr(),Dt="Promise",wh=za.CONSTRUCTOR,dm=za.REJECTION_EVENT,pm=za.SUBCLASSING,ka=Sh.getterFor(Dt),ym=Sh.set,sr=_t&&_t.prototype,Fe=_t,Nt=sr,Ch=Ne.TypeError,Ba=Ne.document,$a=Ne.process,Ua=Eh.f,mm=Ua,bm=!!(Ba&&Ba.createEvent&&Ne.dispatchEvent),qh="unhandledrejection",xm="rejectionhandled",mh=0,Ah=1,Tm=2,Ga=1,Ph=2,It,bh,Rh,xh,Nh=function(i){var e;return lm(i)&&Mt(e=i.then)?e:!1},Ih=function(i,e){var r=e.value,t=e.state===Ah,a=t?i.ok:i.fail,n=i.resolve,o=i.reject,s=i.domain,u,l,h;try{a?(t||(e.rejection===Ph&&Sm(e),e.rejection=Ga),a===!0?u=r:(s&&s.enter(),u=a(r),s&&(s.exit(),h=!0)),u===i.promise?o(new Ch("Promise-chain cycle")):(l=Nh(u))?lr(l,u,n,o):n(u)):o(r)}catch(c){s&&!h&&s.exit(),o(c)}},Mh=function(i,e){i.notified||(i.notified=!0,Fa(function(){for(var r=i.reactions,t;t=r.get();)Ih(t,i);i.notified=!1,e&&!i.rejection&&Om(i)}))},Vh=function(i,e,r){var t,a;bm?(t=Ba.createEvent("Event"),t.promise=e,t.reason=r,t.initEvent(i,!1,!0),Ne.dispatchEvent(t)):t={promise:e,reason:r},!dm&&(a=Ne["on"+i])?a(t):i===qh&&fm("Unhandled promise rejection",r)},Om=function(i){lr(Oh,Ne,function(){var e=i.facade,r=i.value,t=Th(i),a;if(t&&(a=vm(function(){Vt?$a.emit("unhandledRejection",r,e):Vh(qh,e,r)}),i.rejection=Vt||Th(i)?Ph:Ga,a.error))throw a.value})},Th=function(i){return i.rejection!==Ga&&!i.parent},Sm=function(i){lr(Oh,Ne,function(){var e=i.facade;Vt?$a.emit("rejectionHandled",e):Vh(xm,e,i.value)})},or=function(i,e,r){return function(t){i(e,t,r)}},ur=function(i,e,r){i.done||(i.done=!0,r&&(i=r),i.value=e,i.state=Tm,Mh(i,!0))},ja=function(i,e,r){if(!i.done){i.done=!0,r&&(i=r);try{if(i.facade===e)throw new Ch("Promise can't be resolved itself");var t=Nh(e);t?Fa(function(){var a={done:!1};try{lr(t,e,or(ja,a,i),or(ur,a,i))}catch(n){ur(a,n,i)}}):(i.value=e,i.state=Ah,Mh(i,!1))}catch(a){ur({done:!1},a,i)}}};if(wh&&(Fe=function(e){hm(this,Nt),um(e),lr(It,this);var r=ka(this);try{e(or(ja,r),or(ur,r))}catch(t){ur(r,t)}},Nt=Fe.prototype,It=function(e){ym(this,{type:Dt,done:!1,notified:!1,parent:!1,reactions:new gm,rejection:!1,state:mh,value:null})},It.prototype=ph(Nt,"then",function(e,r){var t=ka(this),a=Ua(cm(this,Fe));return t.parent=!0,a.ok=Mt(e)?e:!0,a.fail=Mt(r)&&r,a.domain=Vt?$a.domain:void 0,t.state===mh?t.reactions.add(a):Fa(function(){Ih(a,t)}),a.promise}),bh=function(){var i=new It,e=ka(i);this.promise=i,this.resolve=or(ja,e),this.reject=or(ur,e)},Eh.f=Ua=function(i){return i===Fe||i===Rh?new bh(i):mm(i)},!am&&Mt(_t)&&sr!==Object.prototype)){xh=sr.then,pm||ph(sr,"then",function(e,r){var t=this;return new Fe(function(a,n){lr(xh,t,a,n)}).then(e,r)},{unsafe:!0});try{delete sr.constructor}catch{}yh&&yh(sr,Nt)}im({global:!0,constructor:!0,wrap:!0,forced:wh},{Promise:Fe});Rh=nm.Promise;sm(Fe,Dt,!1,!0);om(Dt)});var hr=d((CE,Dh)=>{"use strict";Dh.exports={}});var kh=d((qE,Lh)=>{"use strict";var Em=z(),wm=hr(),Cm=Em("iterator"),qm=Array.prototype;Lh.exports=function(i){return i!==void 0&&(wm.Array===i||qm[Cm]===i)}});var Ha=d((AE,Uh)=>{"use strict";var Am=Ct(),Bh=ke(),Pm=Tr(),Rm=hr(),Nm=z(),Im=Nm("iterator");Uh.exports=function(i){if(!Pm(i))return Bh(i,Im)||Bh(i,"@@iterator")||Rm[Am(i)]}});var Fh=d((PE,jh)=>{"use strict";var Mm=H(),Vm=be(),_m=J(),Dm=Sr(),Lm=Ha(),km=TypeError;jh.exports=function(i,e){var r=arguments.length<2?Lm(i):e;if(Vm(r))return _m(Mm(r,i));throw new km(Dm(i)+" is not iterable")}});var Gh=d((RE,$h)=>{"use strict";var Bm=H(),zh=J(),Um=ke();$h.exports=function(i,e,r){var t,a;zh(i);try{if(t=Um(i,"return"),!t){if(e==="throw")throw r;return r}t=Bm(t,i)}catch(n){a=!0,t=n}if(e==="throw")throw r;if(a)throw t;return zh(t),r}});var Ya=d((NE,Wh)=>{"use strict";var jm=qt(),Fm=H(),zm=J(),$m=Sr(),Gm=kh(),Hm=Tt(),Hh=Or(),Ym=Fh(),Xm=Ha(),Yh=Gh(),Wm=TypeError,Lt=function(i,e){this.stopped=i,this.result=e},Xh=Lt.prototype;Wh.exports=function(i,e,r){var t=r&&r.that,a=!!(r&&r.AS_ENTRIES),n=!!(r&&r.IS_RECORD),o=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),u=jm(e,t),l,h,c,v,f,g,p,y=function(T){return l&&Yh(l,"normal"),new Lt(!0,T)},m=function(T){return a?(zm(T),s?u(T[0],T[1],y):u(T[0],T[1])):s?u(T,y):u(T)};if(n)l=i.iterator;else if(o)l=i;else{if(h=Xm(i),!h)throw new Wm($m(i)+" is not iterable");if(Gm(h)){for(c=0,v=Hm(i);v>c;c++)if(f=m(i[c]),f&&Hh(Xh,f))return f;return new Lt(!1)}l=Ym(i,h)}for(g=n?i.next:l.next;!(p=Fm(g,l)).done;){try{f=m(p.value)}catch(T){Yh(l,"throw",T)}if(typeof f=="object"&&f&&Hh(Xh,f))return f}return new Lt(!1)}});var ec=d((IE,Jh)=>{"use strict";var Qm=z(),Kh=Qm("iterator"),Zh=!1;try{Qh=0,Xa={next:function(){return{done:!!Qh++}},return:function(){Zh=!0}},Xa[Kh]=function(){return this},Array.from(Xa,function(){throw 2})}catch{}var Qh,Xa;Jh.exports=function(i,e){try{if(!e&&!Zh)return!1}catch{return!1}var r=!1;try{var t={};t[Kh]=function(){return{next:function(){return{done:r=!0}}}},i(t)}catch{}return r}});var Wa=d((ME,rc)=>{"use strict";var Km=ir(),Zm=ec(),Jm=ar().CONSTRUCTOR;rc.exports=Jm||!Zm(function(i){Km.all(i).then(void 0,function(){})})});var tc=d(()=>{"use strict";var eb=ee(),rb=H(),tb=be(),ib=nr(),ab=Rt(),nb=Ya(),sb=Wa();eb({target:"Promise",stat:!0,forced:sb},{all:function(e){var r=this,t=ib.f(r),a=t.resolve,n=t.reject,o=ab(function(){var s=tb(r.resolve),u=[],l=0,h=1;nb(e,function(c){var v=l++,f=!1;h++,rb(s,r,c).then(function(g){f||(f=!0,u[v]=g,--h||a(u))},n)}),--h||a(u)});return o.error&&n(o.value),t.promise}})});var ac=d(()=>{"use strict";var ob=ee(),ub=ve(),lb=ar().CONSTRUCTOR,Ka=ir(),hb=Pe(),cb=k(),fb=Re(),ic=Ka&&Ka.prototype;ob({target:"Promise",proto:!0,forced:lb,real:!0},{catch:function(i){return this.then(void 0,i)}});!ub&&cb(Ka)&&(Qa=hb("Promise").prototype.catch,ic.catch!==Qa&&fb(ic,"catch",Qa,{unsafe:!0}));var Qa});var nc=d(()=>{"use strict";var vb=ee(),gb=H(),db=be(),pb=nr(),yb=Rt(),mb=Ya(),bb=Wa();vb({target:"Promise",stat:!0,forced:bb},{race:function(e){var r=this,t=pb.f(r),a=t.reject,n=yb(function(){var o=db(r.resolve);mb(e,function(s){gb(o,r,s).then(t.resolve,a)})});return n.error&&a(n.value),t.promise}})});var sc=d(()=>{"use strict";var xb=ee(),Tb=nr(),Ob=ar().CONSTRUCTOR;xb({target:"Promise",stat:!0,forced:Ob},{reject:function(e){var r=Tb.f(this),t=r.reject;return t(e),r.promise}})});var uc=d((FE,oc)=>{"use strict";var Sb=J(),Eb=te(),wb=nr();oc.exports=function(i,e){if(Sb(i),Eb(e)&&e.constructor===i)return e;var r=wb.f(i),t=r.resolve;return t(e),r.promise}});var cc=d(()=>{"use strict";var Cb=ee(),qb=Pe(),lc=ve(),Ab=ir(),hc=ar().CONSTRUCTOR,Pb=uc(),Rb=qb("Promise"),Nb=lc&&!hc;Cb({target:"Promise",stat:!0,forced:lc||hc},{resolve:function(e){return Pb(Nb&&this===Rb?Ab:this,e)}})});var fc=d(()=>{"use strict";_h();tc();ac();nc();sc();cc()});var de=d((XE,gc)=>{"use strict";var Ib=Ct(),Mb=String;gc.exports=function(i){if(Ib(i)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Mb(i)}});var Za=d((WE,dc)=>{"use strict";var Vb=J();dc.exports=function(){var i=Vb(this),e="";return i.hasIndices&&(e+="d"),i.global&&(e+="g"),i.ignoreCase&&(e+="i"),i.multiline&&(e+="m"),i.dotAll&&(e+="s"),i.unicode&&(e+="u"),i.unicodeSets&&(e+="v"),i.sticky&&(e+="y"),e}});var tn=d((QE,pc)=>{"use strict";var Ja=_(),_b=M(),en=_b.RegExp,rn=Ja(function(){var i=en("a","y");return i.lastIndex=2,i.exec("abcd")!==null}),Db=rn||Ja(function(){return!en("a","y").sticky}),Lb=rn||Ja(function(){var i=en("^r","gy");return i.lastIndex=2,i.exec("str")!==null});pc.exports={BROKEN_CARET:Lb,MISSED_STICKY:Db,UNSUPPORTED_Y:rn}});var mc=d((KE,yc)=>{"use strict";var kb=fa(),Bb=Ot();yc.exports=Object.keys||function(e){return kb(e,Bb)}});var xc=d(bc=>{"use strict";var Ub=ue(),jb=Qi(),Fb=Te(),zb=J(),$b=Ke(),Gb=mc();bc.f=Ub&&!jb?Object.defineProperties:function(e,r){zb(e);for(var t=$b(r),a=Gb(r),n=a.length,o=0,s;n>o;)Fb.f(e,s=a[o++],t[s]);return e}});var Fr=d((JE,qc)=>{"use strict";var Hb=J(),Yb=xc(),Tc=Ot(),Xb=pt(),Wb=ba(),Qb=wr(),Kb=dt(),Oc=">",Sc="<",nn="prototype",sn="script",wc=Kb("IE_PROTO"),an=function(){},Cc=function(i){return Sc+sn+Oc+i+Sc+"/"+sn+Oc},Ec=function(i){i.write(Cc("")),i.close();var e=i.parentWindow.Object;return i=null,e},Zb=function(){var i=Qb("iframe"),e="java"+sn+":",r;return i.style.display="none",Wb.appendChild(i),i.src=String(e),r=i.contentWindow.document,r.open(),r.write(Cc("document.F=Object")),r.close(),r.F},kt,Bt=function(){try{kt=new ActiveXObject("htmlfile")}catch{}Bt=typeof document<"u"?document.domain&&kt?Ec(kt):Zb():Ec(kt);for(var i=Tc.length;i--;)delete Bt[nn][Tc[i]];return Bt()};Xb[wc]=!0;qc.exports=Object.create||function(e,r){var t;return e!==null?(an[nn]=Hb(e),t=new an,an[nn]=null,t[wc]=e):t=Bt(),r===void 0?t:Yb.f(t,r)}});var Pc=d((ew,Ac)=>{"use strict";var Jb=_(),ex=M(),rx=ex.RegExp;Ac.exports=Jb(function(){var i=rx(".","s");return!(i.dotAll&&i.test(`
2
+ `)&&i.flags==="s")})});var Nc=d((rw,Rc)=>{"use strict";var tx=_(),ix=M(),ax=ix.RegExp;Rc.exports=tx(function(){var i=ax("(?<a>b)","g");return i.exec("b").groups.a!=="b"||"b".replace(i,"$<a>c")!=="bc"})});var Ft=d((tw,Mc)=>{"use strict";var cr=H(),jt=D(),nx=de(),sx=Za(),ox=tn(),ux=ft(),lx=Fr(),hx=Pr().get,cx=Pc(),fx=Nc(),vx=ux("native-string-replace",String.prototype.replace),Ut=RegExp.prototype.exec,un=Ut,gx=jt("".charAt),dx=jt("".indexOf),px=jt("".replace),on=jt("".slice),ln=(function(){var i=/a/,e=/b*/g;return cr(Ut,i,"a"),cr(Ut,e,"a"),i.lastIndex!==0||e.lastIndex!==0})(),Ic=ox.BROKEN_CARET,hn=/()??/.exec("")[1]!==void 0,yx=ln||hn||Ic||cx||fx;yx&&(un=function(e){var r=this,t=hx(r),a=nx(e),n=t.raw,o,s,u,l,h,c,v;if(n)return n.lastIndex=r.lastIndex,o=cr(un,n,a),r.lastIndex=n.lastIndex,o;var f=t.groups,g=Ic&&r.sticky,p=cr(sx,r),y=r.source,m=0,T=a;if(g&&(p=px(p,"y",""),dx(p,"g")===-1&&(p+="g"),T=on(a,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&gx(a,r.lastIndex-1)!==`
3
+ `)&&(y="(?: "+y+")",T=" "+T,m++),s=new RegExp("^(?:"+y+")",p)),hn&&(s=new RegExp("^"+y+"$(?!\\s)",p)),ln&&(u=r.lastIndex),l=cr(Ut,g?s:r,T),g?l?(l.input=on(l.input,m),l[0]=on(l[0],m),l.index=r.lastIndex,r.lastIndex+=l[0].length):r.lastIndex=0:ln&&l&&(r.lastIndex=r.global?l.index+l[0].length:u),hn&&l&&l.length>1&&cr(vx,l[0],s,function(){for(h=1;h<arguments.length-2;h++)arguments[h]===void 0&&(l[h]=void 0)}),l&&f)for(l.groups=c=lx(null),h=0;h<f.length;h++)v=f[h],c[v[0]]=l[v[1]];return l});Mc.exports=un});var _c=d(()=>{"use strict";var mx=ee(),Vc=Ft();mx({target:"RegExp",proto:!0,forced:/./.exec!==Vc},{exec:Vc})});var zt=d((nw,Uc)=>{"use strict";_c();var Dc=H(),Lc=Re(),bx=Ft(),kc=_(),Bc=z(),xx=er(),Tx=Bc("species"),cn=RegExp.prototype;Uc.exports=function(i,e,r,t){var a=Bc(i),n=!kc(function(){var l={};return l[a]=function(){return 7},""[i](l)!==7}),o=n&&!kc(function(){var l=!1,h=/a/;if(i==="split"){var c={};c[Tx]=function(){return h},h={constructor:c,flags:""},h[a]=/./[a]}return h.exec=function(){return l=!0,null},h[a](""),!l});if(!n||!o||r){var s=/./[a],u=e(a,""[i],function(l,h,c,v,f){var g=h.exec;return g===bx||g===cn.exec?n&&!f?{done:!0,value:Dc(s,h,c,v)}:{done:!0,value:Dc(l,c,h,v)}:{done:!1}});Lc(String.prototype,i,u[0]),Lc(cn,a,u[1])}t&&xx(cn[a],"sham",!0)}});var $c=d((sw,zc)=>{"use strict";var fn=D(),Ox=Rr(),Sx=de(),Ex=le(),wx=fn("".charAt),jc=fn("".charCodeAt),Cx=fn("".slice),Fc=function(i){return function(e,r){var t=Sx(Ex(e)),a=Ox(r),n=t.length,o,s;return a<0||a>=n?i?"":void 0:(o=jc(t,a),o<55296||o>56319||a+1===n||(s=jc(t,a+1))<56320||s>57343?i?wx(t,a):o:i?Cx(t,a,a+2):(o-55296<<10)+(s-56320)+65536)}};zc.exports={codeAt:Fc(!1),charAt:Fc(!0)}});var $t=d((ow,Gc)=>{"use strict";var qx=$c().charAt;Gc.exports=function(i,e,r){return e+(r?qx(i,e).length:1)}});var Xc=d((uw,Yc)=>{"use strict";var Ax=M(),Px=_(),Hc=Ax.RegExp,Rx=!Px(function(){var i=!0;try{Hc(".","d")}catch{i=!1}var e={},r="",t=i?"dgimsy":"gimsy",a=function(u,l){Object.defineProperty(e,u,{get:function(){return r+=l,!0}})},n={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};i&&(n.hasIndices="d");for(var o in n)a(o,n[o]);var s=Object.getOwnPropertyDescriptor(Hc.prototype,"flags").get.call(e);return s!==t||r!==t});Yc.exports={correct:Rx}});var Gt=d((lw,Qc)=>{"use strict";var Nx=H(),Ix=he(),Mx=Or(),Wc=Xc(),Vx=Za(),_x=RegExp.prototype;Qc.exports=Wc.correct?function(i){return i.flags}:function(i){return!Wc.correct&&Mx(_x,i)&&!Ix(i,"flags")?Nx(Vx,i):i.flags}});var Ht=d((hw,Zc)=>{"use strict";var Kc=H(),Dx=J(),Lx=k(),kx=Ae(),Bx=Ft(),Ux=TypeError;Zc.exports=function(i,e){var r=i.exec;if(Lx(r)){var t=Kc(r,i,e);return t!==null&&Dx(t),t}if(kx(i)==="RegExp")return Kc(Bx,i,e);throw new Ux("RegExp#exec called on incompatible receiver")}});var rf=d(()=>{"use strict";var jx=H(),Fx=D(),zx=zt(),$x=J(),Gx=te(),Hx=Ue(),Yt=de(),Yx=le(),Xx=ke(),Wx=$t(),Qx=Gt(),Jc=Ht(),ef=Fx("".indexOf);zx("match",function(i,e,r){return[function(a){var n=Yx(this),o=Gx(a)?Xx(a,i):void 0;return o?jx(o,a,n):new RegExp(a)[i](Yt(n))},function(t){var a=$x(this),n=Yt(t),o=r(e,a,n);if(o.done)return o.value;var s=Yt(Qx(a));if(ef(s,"g")===-1)return Jc(a,n);var u=ef(s,"u")!==-1;a.lastIndex=0;for(var l=[],h=0,c;(c=Jc(a,n))!==null;){var v=Yt(c[0]);l[h]=v,v===""&&(a.lastIndex=Wx(n,Hx(a.lastIndex),u)),h++}return h===0?null:l}]})});var af=d((vw,tf)=>{"use strict";var dn=D(),Kx=Er(),Zx=Math.floor,vn=dn("".charAt),Jx=dn("".replace),gn=dn("".slice),e1=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,r1=/\$([$&'`]|\d{1,2})/g;tf.exports=function(i,e,r,t,a,n){var o=r+i.length,s=t.length,u=r1;return a!==void 0&&(a=Kx(a),u=e1),Jx(n,u,function(l,h){var c;switch(vn(h,0)){case"$":return"$";case"&":return i;case"`":return gn(e,0,r);case"'":return gn(e,o);case"<":c=a[gn(h,1,-1)];break;default:var v=+h;if(v===0)return l;if(v>s){var f=Zx(v/10);return f===0?l:f<=s?t[f-1]===void 0?vn(h,1):t[f-1]+vn(h,1):l}c=t[v-1]}return c===void 0?"":c})}});var uf=d(()=>{"use strict";var t1=ma(),nf=H(),Wt=D(),i1=zt(),a1=_(),n1=J(),s1=k(),o1=te(),u1=Rr(),l1=Ue(),ze=de(),h1=le(),c1=$t(),f1=ke(),v1=af(),g1=Gt(),d1=Ht(),p1=z(),yn=p1("replace"),y1=Math.max,m1=Math.min,b1=Wt([].concat),pn=Wt([].push),Xt=Wt("".indexOf),sf=Wt("".slice),x1=function(i){return i===void 0?i:String(i)},T1=(function(){return"a".replace(/./,"$0")==="$0"})(),of=(function(){return/./[yn]?/./[yn]("a","$0")==="":!1})(),O1=!a1(function(){var i=/./;return i.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(i,"$<a>")!=="7"});i1("replace",function(i,e,r){var t=of?"$":"$0";return[function(n,o){var s=h1(this),u=o1(n)?f1(n,yn):void 0;return u?nf(u,n,s,o):nf(e,ze(s),n,o)},function(a,n){var o=n1(this),s=ze(a);if(typeof n=="string"&&Xt(n,t)===-1&&Xt(n,"$<")===-1){var u=r(e,o,s,n);if(u.done)return u.value}var l=s1(n);l||(n=ze(n));var h=ze(g1(o)),c=Xt(h,"g")!==-1,v;c&&(v=Xt(h,"u")!==-1,o.lastIndex=0);for(var f=[],g;g=d1(o,s),!(g===null||(pn(f,g),!c));){var p=ze(g[0]);p===""&&(o.lastIndex=c1(s,l1(o.lastIndex),v))}for(var y="",m=0,T=0;T<f.length;T++){g=f[T];for(var x=ze(g[0]),O=y1(m1(u1(g.index),s.length),0),E=[],C,S=1;S<g.length;S++)pn(E,x1(g[S]));var A=g.groups;if(l){var P=b1([x],E,O,s);A!==void 0&&pn(P,A),C=ze(t1(n,void 0,P))}else C=v1(x,s,O,E,A,n);O>=m&&(y+=sf(s,m,O)+C,m=O+x.length)}return y+sf(s,m)}]},!O1||!T1||of)});var hf=d((pw,lf)=>{"use strict";var S1=te(),E1=Ae(),w1=z(),C1=w1("match");lf.exports=function(i){var e;return S1(i)&&((e=i[C1])!==void 0?!!e:E1(i)==="RegExp")}});var Qt=d((yw,cf)=>{"use strict";var q1=hf(),A1=TypeError;cf.exports=function(i){if(q1(i))throw new A1("The method doesn't accept regular expressions");return i}});var Kt=d((mw,ff)=>{"use strict";var P1=z(),R1=P1("match");ff.exports=function(i){var e=/./;try{"/./"[i](e)}catch{try{return e[R1]=!1,"/./"[i](e)}catch{}}return!1}});var df=d(()=>{"use strict";var N1=ee(),I1=Dr(),M1=Cr().f,V1=Ue(),vf=de(),_1=Qt(),D1=le(),L1=Kt(),k1=ve(),B1=I1("".slice),U1=Math.min,gf=L1("startsWith"),j1=!k1&&!gf&&!!(function(){var i=M1(String.prototype,"startsWith");return i&&!i.writable})();N1({target:"String",proto:!0,forced:!j1&&!gf},{startsWith:function(e){var r=vf(D1(this));_1(e);var t=V1(U1(arguments.length>1?arguments[1]:void 0,r.length)),a=vf(e);return B1(r,t,t+a.length)===a}})});var yf=d((Tw,pf)=>{"use strict";var F1=z(),z1=Fr(),$1=Te().f,mn=F1("unscopables"),bn=Array.prototype;bn[mn]===void 0&&$1(bn,mn,{configurable:!0,value:z1(null)});pf.exports=function(i){bn[mn][i]=!0}});var bf=d((Ow,mf)=>{"use strict";var G1=_();mf.exports=!G1(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})});var Tn=d((Sw,Tf)=>{"use strict";var H1=he(),Y1=k(),X1=Er(),W1=dt(),Q1=bf(),xf=W1("IE_PROTO"),xn=Object,K1=xn.prototype;Tf.exports=Q1?xn.getPrototypeOf:function(i){var e=X1(i);if(H1(e,xf))return e[xf];var r=e.constructor;return Y1(r)&&e instanceof r?r.prototype:e instanceof xn?K1:null}});var wn=d((Ew,Ef)=>{"use strict";var Z1=_(),J1=k(),e2=te(),r2=Fr(),Of=Tn(),t2=Re(),i2=z(),a2=ve(),En=i2("iterator"),Sf=!1,Oe,On,Sn;[].keys&&(Sn=[].keys(),"next"in Sn?(On=Of(Of(Sn)),On!==Object.prototype&&(Oe=On)):Sf=!0);var n2=!e2(Oe)||Z1(function(){var i={};return Oe[En].call(i)!==i});n2?Oe={}:a2&&(Oe=r2(Oe));J1(Oe[En])||t2(Oe,En,function(){return this});Ef.exports={IteratorPrototype:Oe,BUGGY_SAFARI_ITERATORS:Sf}});var Cf=d((ww,wf)=>{"use strict";var s2=wn().IteratorPrototype,o2=Fr(),u2=ot(),l2=Vr(),h2=hr(),c2=function(){return this};wf.exports=function(i,e,r,t){var a=e+" Iterator";return i.prototype=o2(s2,{next:u2(+!t,r)}),l2(i,a,!1,!0),h2[a]=c2,i}});var Lf=d((Cw,Df)=>{"use strict";var f2=ee(),v2=H(),Zt=ve(),Vf=qr(),g2=k(),d2=Cf(),qf=Tn(),Af=da(),p2=Vr(),y2=er(),Cn=Re(),m2=z(),Pf=hr(),_f=wn(),b2=Vf.PROPER,x2=Vf.CONFIGURABLE,Rf=_f.IteratorPrototype,Jt=_f.BUGGY_SAFARI_ITERATORS,zr=m2("iterator"),Nf="keys",$r="values",If="entries",Mf=function(){return this};Df.exports=function(i,e,r,t,a,n,o){d2(r,e,t);var s=function(m){if(m===a&&v)return v;if(!Jt&&m&&m in h)return h[m];switch(m){case Nf:return function(){return new r(this,m)};case $r:return function(){return new r(this,m)};case If:return function(){return new r(this,m)}}return function(){return new r(this)}},u=e+" Iterator",l=!1,h=i.prototype,c=h[zr]||h["@@iterator"]||a&&h[a],v=!Jt&&c||s(a),f=e==="Array"&&h.entries||c,g,p,y;if(f&&(g=qf(f.call(new i)),g!==Object.prototype&&g.next&&(!Zt&&qf(g)!==Rf&&(Af?Af(g,Rf):g2(g[zr])||Cn(g,zr,Mf)),p2(g,u,!0,!0),Zt&&(Pf[u]=Mf))),b2&&a===$r&&c&&c.name!==$r&&(!Zt&&x2?y2(h,"name",$r):(l=!0,v=function(){return v2(c,this)})),a)if(p={values:s($r),keys:n?v:s(Nf),entries:s(If)},o)for(y in p)(Jt||l||!(y in h))&&Cn(h,y,p[y]);else f2({target:e,proto:!0,forced:Jt||l},p);return(!Zt||o)&&h[zr]!==v&&Cn(h,zr,v,{name:a}),Pf[e]=v,p}});var Bf=d((qw,kf)=>{"use strict";kf.exports=function(i,e){return{value:i,done:e}}});var An=d((Aw,$f)=>{"use strict";var T2=Ke(),qn=yf(),Uf=hr(),Ff=Pr(),O2=Te().f,S2=Lf(),ei=Bf(),E2=ve(),w2=ue(),zf="Array Iterator",C2=Ff.set,q2=Ff.getterFor(zf);$f.exports=S2(Array,"Array",function(i,e){C2(this,{type:zf,target:T2(i),index:0,kind:e})},function(){var i=q2(this),e=i.target,r=i.index++;if(!e||r>=e.length)return i.target=null,ei(void 0,!0);switch(i.kind){case"keys":return ei(r,!1);case"values":return ei(e[r],!1)}return ei([r,e[r]],!1)},"values");var jf=Uf.Arguments=Uf.Array;qn("keys");qn("values");qn("entries");if(!E2&&w2&&jf.name!=="values")try{O2(jf,"name",{value:"values"})}catch{}});var Hf=d((Pw,Gf)=>{"use strict";Gf.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}});var Wf=d((Rw,Xf)=>{"use strict";var A2=wr(),Pn=A2("span").classList,Yf=Pn&&Pn.constructor&&Pn.constructor.prototype;Xf.exports=Yf===Object.prototype?void 0:Yf});var ev=d(()=>{"use strict";var Qf=M(),Zf=Hf(),P2=Wf(),Gr=An(),Kf=er(),R2=Vr(),N2=z(),Rn=N2("iterator"),Nn=Gr.values,Jf=function(i,e){if(i){if(i[Rn]!==Nn)try{Kf(i,Rn,Nn)}catch{i[Rn]=Nn}if(R2(i,e,!0),Zf[e]){for(var r in Gr)if(i[r]!==Gr[r])try{Kf(i,r,Gr[r])}catch{i[r]=Gr[r]}}}};for(ri in Zf)Jf(Qf[ri]&&Qf[ri].prototype,ri);var ri;Jf(P2,"DOMTokenList")});var ov=d((jw,sv)=>{"use strict";var I2=be(),M2=Er(),V2=_i(),_2=Tt(),iv=TypeError,av="Reduce of empty array with no initial value",nv=function(i){return function(e,r,t,a){var n=M2(e),o=V2(n),s=_2(n);if(I2(r),s===0&&t<2)throw new iv(av);var u=i?s-1:0,l=i?-1:1;if(t<2)for(;;){if(u in o){a=o[u],u+=l;break}if(u+=l,i?u<0:s<=u)throw new iv(av)}for(;i?u>=0:s>u;u+=l)u in o&&(a=r(a,o[u],u,n));return a}};sv.exports={left:nv(!1),right:nv(!0)}});var In=d((Fw,uv)=>{"use strict";var D2=_();uv.exports=function(i,e){var r=[][i];return!!r&&D2(function(){r.call(null,e||function(){return 1},1)})}});var hv=d(()=>{"use strict";var L2=ee(),k2=ov().left,B2=In(),lv=lt(),U2=Mr(),j2=!U2&&lv>79&&lv<83,F2=j2||!B2("reduce");L2({target:"Array",proto:!0,forced:F2},{reduce:function(e){var r=arguments.length;return k2(this,e,r,r>1?arguments[1]:void 0)}})});var vv=d(()=>{"use strict";var z2=ee(),$2=Dr(),G2=Cr().f,H2=Ue(),cv=de(),Y2=Qt(),X2=le(),W2=Kt(),Q2=ve(),K2=$2("".slice),Z2=Math.min,fv=W2("endsWith"),J2=!Q2&&!fv&&!!(function(){var i=G2(String.prototype,"endsWith");return i&&!i.writable})();z2({target:"String",proto:!0,forced:!J2&&!fv},{endsWith:function(e){var r=cv(X2(this));Y2(e);var t=arguments.length>1?arguments[1]:void 0,a=r.length,n=t===void 0?a:Z2(H2(t),a),o=cv(e);return K2(r,n-o.length,n)===o}})});var mv=d(()=>{"use strict";var Mn=H(),yv=D(),eT=zt(),rT=J(),tT=te(),iT=le(),aT=ya(),nT=$t(),sT=Ue(),gv=de(),oT=ke(),dv=Ht(),uT=tn(),lT=_(),fr=uT.UNSUPPORTED_Y,hT=4294967295,cT=Math.min,Vn=yv([].push),_n=yv("".slice),fT=!lT(function(){var i=/(?:)/,e=i.exec;i.exec=function(){return e.apply(this,arguments)};var r="ab".split(i);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),pv="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;eT("split",function(i,e,r){var t="0".split(void 0,0).length?function(a,n){return a===void 0&&n===0?[]:Mn(e,this,a,n)}:e;return[function(n,o){var s=iT(this),u=tT(n)?oT(n,i):void 0;return u?Mn(u,n,s,o):Mn(t,gv(s),n,o)},function(a,n){var o=rT(this),s=gv(a);if(!pv){var u=r(t,o,s,n,t!==e);if(u.done)return u.value}var l=aT(o,RegExp),h=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(fr?"g":"y"),v=new l(fr?"^(?:"+o.source+")":o,c),f=n===void 0?hT:n>>>0;if(f===0)return[];if(s.length===0)return dv(v,s)===null?[s]:[];for(var g=0,p=0,y=[];p<s.length;){v.lastIndex=fr?0:p;var m=dv(v,fr?_n(s,p):s),T;if(m===null||(T=cT(sT(v.lastIndex+(fr?p:0)),s.length))===g)p=nT(s,p,h);else{if(Vn(y,_n(s,g,p)),y.length===f)return y;for(var x=1;x<=m.length-1;x++)if(Vn(y,m[x]),y.length===f)return y;p=g=T}}return Vn(y,_n(s,g)),y}]},pv||!fT,fr)});var xv=d((bv,Hr)=>{(function(){var i,e,r,t,a,n;typeof performance<"u"&&performance!==null&&performance.now?Hr.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(Hr.exports=function(){return(i()-a)/1e6},e=process.hrtime,i=function(){var o;return o=e(),o[0]*1e9+o[1]},t=i(),n=process.uptime()*1e9,a=t-n):Date.now?(Hr.exports=function(){return Date.now()-r},r=Date.now()):(Hr.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(bv)});var Ov=d((Ww,ni)=>{var vT=xv(),Se=typeof window>"u"?global:window,ii=["moz","webkit"],gr="AnimationFrame",dr=Se["request"+gr],Yr=Se["cancel"+gr]||Se["cancelRequest"+gr];for(vr=0;!dr&&vr<ii.length;vr++)dr=Se[ii[vr]+"Request"+gr],Yr=Se[ii[vr]+"Cancel"+gr]||Se[ii[vr]+"CancelRequest"+gr];var vr;(!dr||!Yr)&&(ai=0,Dn=0,Ie=[],Tv=1e3/60,dr=function(i){if(Ie.length===0){var e=vT(),r=Math.max(0,Tv-(e-ai));ai=r+e,setTimeout(function(){var t=Ie.slice(0);Ie.length=0;for(var a=0;a<t.length;a++)if(!t[a].cancelled)try{t[a].callback(ai)}catch(n){setTimeout(function(){throw n},0)}},Math.round(r))}return Ie.push({handle:++Dn,callback:i,cancelled:!1}),Dn},Yr=function(i){for(var e=0;e<Ie.length;e++)Ie[e].handle===i&&(Ie[e].cancelled=!0)});var ai,Dn,Ie,Tv;ni.exports=function(i){return dr.call(Se,i)};ni.exports.cancel=function(){Yr.apply(Se,arguments)};ni.exports.polyfill=function(i){i||(i=Se),i.requestAnimationFrame=dr,i.cancelAnimationFrame=Yr}});var Ln=d((Qw,Sv)=>{"use strict";Sv.exports=`
4
+ \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var Cv=d((Kw,wv)=>{"use strict";var gT=D(),dT=le(),pT=de(),Bn=Ln(),Ev=gT("".replace),yT=RegExp("^["+Bn+"]+"),mT=RegExp("(^|[^"+Bn+"])["+Bn+"]+$"),kn=function(i){return function(e){var r=pT(dT(e));return i&1&&(r=Ev(r,yT,"")),i&2&&(r=Ev(r,mT,"$1")),r}};wv.exports={start:kn(1),end:kn(2),trim:kn(3)}});var Rv=d((Zw,Pv)=>{"use strict";var bT=qr().PROPER,xT=_(),qv=Ln(),Av="\u200B\x85\u180E";Pv.exports=function(i){return xT(function(){return!!qv[i]()||Av[i]()!==Av||bT&&qv[i].name!==i})}});var Nv=d(()=>{"use strict";var TT=ee(),OT=Cv().trim,ST=Rv();TT({target:"String",proto:!0,forced:ST("trim")},{trim:function(){return OT(this)}})});var Mv=d((rC,Iv)=>{Iv.exports=function(i){this.ok=!1,this.alpha=1,i.charAt(0)=="#"&&(i=i.substr(1,6)),i=i.replace(/ /g,""),i=i.toLowerCase();var e={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"};i=e[i]||i;for(var r=[{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(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3]),parseFloat(u[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(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],t=0;t<r.length;t++){var a=r[t].re,n=r[t].process,o=a.exec(i);if(o){var s=n(o);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[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 u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l<r.length;l++)for(var h=r[l].example,c=0;c<h.length;c++)u[u.length]=h[c];for(var v in e)u[u.length]=v;var f=document.createElement("ul");f.setAttribute("id","rgbcolor-examples");for(var l=0;l<u.length;l++)try{var g=document.createElement("li"),p=new RGBColor(u[l]),y=document.createElement("div");y.style.cssText="margin: 3px; border: 1px solid black; background:"+p.toHex()+"; color:"+p.toHex(),y.appendChild(document.createTextNode("test"));var m=document.createTextNode(" "+u[l]+" -> "+p.toRGB()+" -> "+p.toHex());g.appendChild(y),g.appendChild(m),f.appendChild(g)}catch{}return f}}});var _v=d(()=>{"use strict";var ET=ee(),wT=Dr(),CT=ha().indexOf,qT=In(),Un=wT([].indexOf),Vv=!!Un&&1/Un([1],1,-0)<0,AT=Vv||!qT("indexOf");ET({target:"Array",proto:!0,forced:AT},{indexOf:function(e){var r=arguments.length>1?arguments[1]:void 0;return Vv?Un(this,e,r)||0:CT(this,e,r)}})});var Lv=d(()=>{"use strict";var PT=ee(),RT=D(),NT=Qt(),IT=le(),Dv=de(),MT=Kt(),VT=RT("".indexOf);PT({target:"String",proto:!0,forced:!MT("includes")},{includes:function(e){return!!~VT(Dv(IT(this)),Dv(NT(e)),arguments.length>1?arguments[1]:void 0)}})});var Bv=d((sC,kv)=>{"use strict";var _T=Ae();kv.exports=Array.isArray||function(e){return _T(e)==="Array"}});var jv=d(()=>{"use strict";var DT=ee(),LT=D(),kT=Bv(),BT=LT([].reverse),Uv=[1,2];DT({target:"Array",proto:!0,forced:String(Uv)===String(Uv.reverse())},{reverse:function(){return kT(this)&&(this.length=this.length),BT(this)}})});var eg=d(()=>{"use strict";var $T=qr().PROPER,GT=Re(),HT=J(),Kv=de(),YT=_(),XT=Gt(),zn="toString",Zv=RegExp.prototype,Jv=Zv[zn],WT=YT(function(){return Jv.call({source:"a",flags:"b"})!=="/a/b"}),QT=$T&&Jv.name!==zn;(WT||QT)&&GT(Zv,zn,function(){var e=HT(this),r=Kv(e.source),t=Kv(XT(e));return"/"+r+"/"+t},{unsafe:!0})});var vC=Z(fc(),1);function vc(i,e,r,t,a,n,o){try{var s=i[n](o),u=s.value}catch(l){return void r(l)}s.done?e(u):Promise.resolve(u).then(t,a)}function xe(i){return function(){var e=this,r=arguments;return new Promise(function(t,a){var n=i.apply(e,r);function o(u){vc(n,t,a,o,s,"next",u)}function s(u){vc(n,t,a,o,s,"throw",u)}o(void 0)})}}var dC=Z(rf(),1),pC=Z(uf(),1),yC=Z(df(),1),mC=Z(An(),1),bC=Z(ev(),1);function $e(i){"@babel/helpers - typeof";return $e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(i)}function rv(i,e){if($e(i)!="object"||!i)return i;var r=i[Symbol.toPrimitive];if(r!==void 0){var t=r.call(i,e||"default");if($e(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function tv(i){var e=rv(i,"string");return $e(e)=="symbol"?e:e+""}function ti(i,e,r){return(e=tv(e))in i?Object.defineProperty(i,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[e]=r,i}var TC=Z(hv(),1),OC=Z(vv(),1),SC=Z(mv(),1),hi=Z(Ov(),1),EC=Z(Nv(),1),ci=Z(Mv(),1),wC=Z(_v(),1),CC=Z(Lv(),1),qC=Z(jv(),1);var Xv=function(i,e){return(Xv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a])})(i,e)};function Wv(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=i}Xv(i,e),i.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function UT(i){var e="";Array.isArray(i)||(i=[i]);for(var r=0;r<i.length;r++){var t=i[r];if(t.type===b.CLOSE_PATH)e+="z";else if(t.type===b.HORIZ_LINE_TO)e+=(t.relative?"h":"H")+t.x;else if(t.type===b.VERT_LINE_TO)e+=(t.relative?"v":"V")+t.y;else if(t.type===b.MOVE_TO)e+=(t.relative?"m":"M")+t.x+" "+t.y;else if(t.type===b.LINE_TO)e+=(t.relative?"l":"L")+t.x+" "+t.y;else if(t.type===b.CURVE_TO)e+=(t.relative?"c":"C")+t.x1+" "+t.y1+" "+t.x2+" "+t.y2+" "+t.x+" "+t.y;else if(t.type===b.SMOOTH_CURVE_TO)e+=(t.relative?"s":"S")+t.x2+" "+t.y2+" "+t.x+" "+t.y;else if(t.type===b.QUAD_TO)e+=(t.relative?"q":"Q")+t.x1+" "+t.y1+" "+t.x+" "+t.y;else if(t.type===b.SMOOTH_QUAD_TO)e+=(t.relative?"t":"T")+t.x+" "+t.y;else{if(t.type!==b.ARC)throw new Error('Unexpected command type "'+t.type+'" at index '+r+".");e+=(t.relative?"a":"A")+t.rX+" "+t.rY+" "+t.xRot+" "+ +t.lArcFlag+" "+ +t.sweepFlag+" "+t.x+" "+t.y}}return e}function Fn(i,e){var r=i[0],t=i[1];return[r*Math.cos(e)-t*Math.sin(e),r*Math.sin(e)+t*Math.cos(e)]}function ye(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];for(var r=0;r<i.length;r++)if(typeof i[r]!="number")throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof i[r]+" == typeof "+i[r]);return!0}var Me=Math.PI;function jn(i,e,r){i.lArcFlag=i.lArcFlag===0?0:1,i.sweepFlag=i.sweepFlag===0?0:1;var t=i.rX,a=i.rY,n=i.x,o=i.y;t=Math.abs(i.rX),a=Math.abs(i.rY);var s=Fn([(e-n)/2,(r-o)/2],-i.xRot/180*Me),u=s[0],l=s[1],h=Math.pow(u,2)/Math.pow(t,2)+Math.pow(l,2)/Math.pow(a,2);1<h&&(t*=Math.sqrt(h),a*=Math.sqrt(h)),i.rX=t,i.rY=a;var c=Math.pow(t,2)*Math.pow(l,2)+Math.pow(a,2)*Math.pow(u,2),v=(i.lArcFlag!==i.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(t,2)*Math.pow(a,2)-c)/c)),f=t*l/a*v,g=-a*u/t*v,p=Fn([f,g],i.xRot/180*Me);i.cX=p[0]+(e+n)/2,i.cY=p[1]+(r+o)/2,i.phi1=Math.atan2((l-g)/a,(u-f)/t),i.phi2=Math.atan2((-l-g)/a,(-u-f)/t),i.sweepFlag===0&&i.phi2>i.phi1&&(i.phi2-=2*Me),i.sweepFlag===1&&i.phi2<i.phi1&&(i.phi2+=2*Me),i.phi1*=180/Me,i.phi2*=180/Me}function Fv(i,e,r){ye(i,e,r);var t=i*i+e*e-r*r;if(0>t)return[];if(t===0)return[[i*r/(i*i+e*e),e*r/(i*i+e*e)]];var a=Math.sqrt(t);return[[(i*r+e*a)/(i*i+e*e),(e*r-i*a)/(i*i+e*e)],[(i*r-e*a)/(i*i+e*e),(e*r+i*a)/(i*i+e*e)]]}var U,Ee=Math.PI/180;function zv(i,e,r){return(1-r)*i+r*e}function $v(i,e,r,t){return i+Math.cos(t/180*Me)*e+Math.sin(t/180*Me)*r}function Gv(i,e,r,t){var a=1e-6,n=e-i,o=r-e,s=3*n+3*(t-r)-6*o,u=6*(o-n),l=3*n;return Math.abs(s)<a?[-l/u]:(function(h,c,v){v===void 0&&(v=1e-6);var f=h*h/4-c;if(f<-v)return[];if(f<=v)return[-h/2];var g=Math.sqrt(f);return[-h/2-g,-h/2+g]})(u/s,l/s,a)}function Hv(i,e,r,t,a){var n=1-a;return i*(n*n*n)+e*(3*n*n*a)+r*(3*n*a*a)+t*(a*a*a)}(function(i){function e(){return a(function(s,u,l){return s.relative&&(s.x1!==void 0&&(s.x1+=u),s.y1!==void 0&&(s.y1+=l),s.x2!==void 0&&(s.x2+=u),s.y2!==void 0&&(s.y2+=l),s.x!==void 0&&(s.x+=u),s.y!==void 0&&(s.y+=l),s.relative=!1),s})}function r(){var s=NaN,u=NaN,l=NaN,h=NaN;return a(function(c,v,f){return c.type&b.SMOOTH_CURVE_TO&&(c.type=b.CURVE_TO,s=isNaN(s)?v:s,u=isNaN(u)?f:u,c.x1=c.relative?v-s:2*v-s,c.y1=c.relative?f-u:2*f-u),c.type&b.CURVE_TO?(s=c.relative?v+c.x2:c.x2,u=c.relative?f+c.y2:c.y2):(s=NaN,u=NaN),c.type&b.SMOOTH_QUAD_TO&&(c.type=b.QUAD_TO,l=isNaN(l)?v:l,h=isNaN(h)?f:h,c.x1=c.relative?v-l:2*v-l,c.y1=c.relative?f-h:2*f-h),c.type&b.QUAD_TO?(l=c.relative?v+c.x1:c.x1,h=c.relative?f+c.y1:c.y1):(l=NaN,h=NaN),c})}function t(){var s=NaN,u=NaN;return a(function(l,h,c){if(l.type&b.SMOOTH_QUAD_TO&&(l.type=b.QUAD_TO,s=isNaN(s)?h:s,u=isNaN(u)?c:u,l.x1=l.relative?h-s:2*h-s,l.y1=l.relative?c-u:2*c-u),l.type&b.QUAD_TO){s=l.relative?h+l.x1:l.x1,u=l.relative?c+l.y1:l.y1;var v=l.x1,f=l.y1;l.type=b.CURVE_TO,l.x1=((l.relative?0:h)+2*v)/3,l.y1=((l.relative?0:c)+2*f)/3,l.x2=(l.x+2*v)/3,l.y2=(l.y+2*f)/3}else s=NaN,u=NaN;return l})}function a(s){var u=0,l=0,h=NaN,c=NaN;return function(v){if(isNaN(h)&&!(v.type&b.MOVE_TO))throw new Error("path must start with moveto");var f=s(v,u,l,h,c);return v.type&b.CLOSE_PATH&&(u=h,l=c),v.x!==void 0&&(u=v.relative?u+v.x:v.x),v.y!==void 0&&(l=v.relative?l+v.y:v.y),v.type&b.MOVE_TO&&(h=u,c=l),f}}function n(s,u,l,h,c,v){return ye(s,u,l,h,c,v),a(function(f,g,p,y){var m=f.x1,T=f.x2,x=f.relative&&!isNaN(y),O=f.x!==void 0?f.x:x?0:g,E=f.y!==void 0?f.y:x?0:p;function C(ce){return ce*ce}f.type&b.HORIZ_LINE_TO&&u!==0&&(f.type=b.LINE_TO,f.y=f.relative?0:p),f.type&b.VERT_LINE_TO&&l!==0&&(f.type=b.LINE_TO,f.x=f.relative?0:g),f.x!==void 0&&(f.x=f.x*s+E*l+(x?0:c)),f.y!==void 0&&(f.y=O*u+f.y*h+(x?0:v)),f.x1!==void 0&&(f.x1=f.x1*s+f.y1*l+(x?0:c)),f.y1!==void 0&&(f.y1=m*u+f.y1*h+(x?0:v)),f.x2!==void 0&&(f.x2=f.x2*s+f.y2*l+(x?0:c)),f.y2!==void 0&&(f.y2=T*u+f.y2*h+(x?0:v));var S=s*h-u*l;if(f.xRot!==void 0&&(s!==1||u!==0||l!==0||h!==1))if(S===0)delete f.rX,delete f.rY,delete f.xRot,delete f.lArcFlag,delete f.sweepFlag,f.type=b.LINE_TO;else{var A=f.xRot*Math.PI/180,P=Math.sin(A),V=Math.cos(A),L=1/C(f.rX),N=1/C(f.rY),X=C(V)*L+C(P)*N,W=2*P*V*(L-N),G=C(P)*L+C(V)*N,Q=X*h*h-W*u*h+G*u*u,Y=W*(s*h+u*l)-2*(X*l*h+G*s*u),K=X*l*l-W*s*l+G*s*s,I=(Math.atan2(Y,Q-K)+Math.PI)%Math.PI/2,R=Math.sin(I),re=Math.cos(I);f.rX=Math.abs(S)/Math.sqrt(Q*C(re)+Y*R*re+K*C(R)),f.rY=Math.abs(S)/Math.sqrt(Q*C(R)-Y*R*re+K*C(re)),f.xRot=180*I/Math.PI}return f.sweepFlag!==void 0&&0>S&&(f.sweepFlag=+!f.sweepFlag),f})}function o(){return function(s){var u={};for(var l in s)u[l]=s[l];return u}}i.ROUND=function(s){function u(l){return Math.round(l*s)/s}return s===void 0&&(s=1e13),ye(s),function(l){return l.x1!==void 0&&(l.x1=u(l.x1)),l.y1!==void 0&&(l.y1=u(l.y1)),l.x2!==void 0&&(l.x2=u(l.x2)),l.y2!==void 0&&(l.y2=u(l.y2)),l.x!==void 0&&(l.x=u(l.x)),l.y!==void 0&&(l.y=u(l.y)),l.rX!==void 0&&(l.rX=u(l.rX)),l.rY!==void 0&&(l.rY=u(l.rY)),l}},i.TO_ABS=e,i.TO_REL=function(){return a(function(s,u,l){return s.relative||(s.x1!==void 0&&(s.x1-=u),s.y1!==void 0&&(s.y1-=l),s.x2!==void 0&&(s.x2-=u),s.y2!==void 0&&(s.y2-=l),s.x!==void 0&&(s.x-=u),s.y!==void 0&&(s.y-=l),s.relative=!0),s})},i.NORMALIZE_HVZ=function(s,u,l){return s===void 0&&(s=!0),u===void 0&&(u=!0),l===void 0&&(l=!0),a(function(h,c,v,f,g){if(isNaN(f)&&!(h.type&b.MOVE_TO))throw new Error("path must start with moveto");return u&&h.type&b.HORIZ_LINE_TO&&(h.type=b.LINE_TO,h.y=h.relative?0:v),l&&h.type&b.VERT_LINE_TO&&(h.type=b.LINE_TO,h.x=h.relative?0:c),s&&h.type&b.CLOSE_PATH&&(h.type=b.LINE_TO,h.x=h.relative?f-c:f,h.y=h.relative?g-v:g),h.type&b.ARC&&(h.rX===0||h.rY===0)&&(h.type=b.LINE_TO,delete h.rX,delete h.rY,delete h.xRot,delete h.lArcFlag,delete h.sweepFlag),h})},i.NORMALIZE_ST=r,i.QT_TO_C=t,i.INFO=a,i.SANITIZE=function(s){s===void 0&&(s=0),ye(s);var u=NaN,l=NaN,h=NaN,c=NaN;return a(function(v,f,g,p,y){var m=Math.abs,T=!1,x=0,O=0;if(v.type&b.SMOOTH_CURVE_TO&&(x=isNaN(u)?0:f-u,O=isNaN(l)?0:g-l),v.type&(b.CURVE_TO|b.SMOOTH_CURVE_TO)?(u=v.relative?f+v.x2:v.x2,l=v.relative?g+v.y2:v.y2):(u=NaN,l=NaN),v.type&b.SMOOTH_QUAD_TO?(h=isNaN(h)?f:2*f-h,c=isNaN(c)?g:2*g-c):v.type&b.QUAD_TO?(h=v.relative?f+v.x1:v.x1,c=v.relative?g+v.y1:v.y2):(h=NaN,c=NaN),v.type&b.LINE_COMMANDS||v.type&b.ARC&&(v.rX===0||v.rY===0||!v.lArcFlag)||v.type&b.CURVE_TO||v.type&b.SMOOTH_CURVE_TO||v.type&b.QUAD_TO||v.type&b.SMOOTH_QUAD_TO){var E=v.x===void 0?0:v.relative?v.x:v.x-f,C=v.y===void 0?0:v.relative?v.y:v.y-g;x=isNaN(h)?v.x1===void 0?x:v.relative?v.x:v.x1-f:h-f,O=isNaN(c)?v.y1===void 0?O:v.relative?v.y:v.y1-g:c-g;var S=v.x2===void 0?0:v.relative?v.x:v.x2-f,A=v.y2===void 0?0:v.relative?v.y:v.y2-g;m(E)<=s&&m(C)<=s&&m(x)<=s&&m(O)<=s&&m(S)<=s&&m(A)<=s&&(T=!0)}return v.type&b.CLOSE_PATH&&m(f-p)<=s&&m(g-y)<=s&&(T=!0),T?[]:v})},i.MATRIX=n,i.ROTATE=function(s,u,l){u===void 0&&(u=0),l===void 0&&(l=0),ye(s,u,l);var h=Math.sin(s),c=Math.cos(s);return n(c,h,-h,c,u-u*c+l*h,l-u*h-l*c)},i.TRANSLATE=function(s,u){return u===void 0&&(u=0),ye(s,u),n(1,0,0,1,s,u)},i.SCALE=function(s,u){return u===void 0&&(u=s),ye(s,u),n(s,0,0,u,0,0)},i.SKEW_X=function(s){return ye(s),n(1,0,Math.atan(s),1,0,0)},i.SKEW_Y=function(s){return ye(s),n(1,Math.atan(s),0,1,0,0)},i.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),ye(s),n(-1,0,0,1,s,0)},i.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),ye(s),n(1,0,0,-1,0,s)},i.A_TO_C=function(){return a(function(s,u,l){return b.ARC===s.type?(function(h,c,v){var f,g,p,y;h.cX||jn(h,c,v);for(var m=Math.min(h.phi1,h.phi2),T=Math.max(h.phi1,h.phi2)-m,x=Math.ceil(T/90),O=new Array(x),E=c,C=v,S=0;S<x;S++){var A=zv(h.phi1,h.phi2,S/x),P=zv(h.phi1,h.phi2,(S+1)/x),V=P-A,L=4/3*Math.tan(V*Ee/4),N=[Math.cos(A*Ee)-L*Math.sin(A*Ee),Math.sin(A*Ee)+L*Math.cos(A*Ee)],X=N[0],W=N[1],G=[Math.cos(P*Ee),Math.sin(P*Ee)],Q=G[0],Y=G[1],K=[Q+L*Math.sin(P*Ee),Y-L*Math.cos(P*Ee)],I=K[0],R=K[1];O[S]={relative:h.relative,type:b.CURVE_TO};var re=function(ce,me){var qe=Fn([ce*h.rX,me*h.rY],h.xRot),We=qe[0],Kr=qe[1];return[h.cX+We,h.cY+Kr]};f=re(X,W),O[S].x1=f[0],O[S].y1=f[1],g=re(I,R),O[S].x2=g[0],O[S].y2=g[1],p=re(Q,Y),O[S].x=p[0],O[S].y=p[1],h.relative&&(O[S].x1-=E,O[S].y1-=C,O[S].x2-=E,O[S].y2-=C,O[S].x-=E,O[S].y-=C),E=(y=[O[S].x,O[S].y])[0],C=y[1]}return O})(s,s.relative?0:u,s.relative?0:l):s})},i.ANNOTATE_ARCS=function(){return a(function(s,u,l){return s.relative&&(u=0,l=0),b.ARC===s.type&&jn(s,u,l),s})},i.CLONE=o,i.CALCULATE_BOUNDS=function(){var s=function(v){var f={};for(var g in v)f[g]=v[g];return f},u=e(),l=t(),h=r(),c=a(function(v,f,g){var p=h(l(u(s(v))));function y(R){R>c.maxX&&(c.maxX=R),R<c.minX&&(c.minX=R)}function m(R){R>c.maxY&&(c.maxY=R),R<c.minY&&(c.minY=R)}if(p.type&b.DRAWING_COMMANDS&&(y(f),m(g)),p.type&b.HORIZ_LINE_TO&&y(p.x),p.type&b.VERT_LINE_TO&&m(p.y),p.type&b.LINE_TO&&(y(p.x),m(p.y)),p.type&b.CURVE_TO){y(p.x),m(p.y);for(var T=0,x=Gv(f,p.x1,p.x2,p.x);T<x.length;T++)0<(I=x[T])&&1>I&&y(Hv(f,p.x1,p.x2,p.x,I));for(var O=0,E=Gv(g,p.y1,p.y2,p.y);O<E.length;O++)0<(I=E[O])&&1>I&&m(Hv(g,p.y1,p.y2,p.y,I))}if(p.type&b.ARC){y(p.x),m(p.y),jn(p,f,g);for(var C=p.xRot/180*Math.PI,S=Math.cos(C)*p.rX,A=Math.sin(C)*p.rX,P=-Math.sin(C)*p.rY,V=Math.cos(C)*p.rY,L=p.phi1<p.phi2?[p.phi1,p.phi2]:-180>p.phi2?[p.phi2+360,p.phi1+360]:[p.phi2,p.phi1],N=L[0],X=L[1],W=function(R){var re=R[0],ce=R[1],me=180*Math.atan2(ce,re)/Math.PI;return me<N?me+360:me},G=0,Q=Fv(P,-S,0).map(W);G<Q.length;G++)(I=Q[G])>N&&I<X&&y($v(p.cX,S,P,I));for(var Y=0,K=Fv(V,-A,0).map(W);Y<K.length;Y++){var I;(I=K[Y])>N&&I<X&&m($v(p.cY,A,V,I))}}return v});return c.minX=1/0,c.maxX=-1/0,c.minY=1/0,c.maxY=-1/0,c}})(U||(U={}));var pe,Qv=(function(){function i(){}return i.prototype.round=function(e){return this.transform(U.ROUND(e))},i.prototype.toAbs=function(){return this.transform(U.TO_ABS())},i.prototype.toRel=function(){return this.transform(U.TO_REL())},i.prototype.normalizeHVZ=function(e,r,t){return this.transform(U.NORMALIZE_HVZ(e,r,t))},i.prototype.normalizeST=function(){return this.transform(U.NORMALIZE_ST())},i.prototype.qtToC=function(){return this.transform(U.QT_TO_C())},i.prototype.aToC=function(){return this.transform(U.A_TO_C())},i.prototype.sanitize=function(e){return this.transform(U.SANITIZE(e))},i.prototype.translate=function(e,r){return this.transform(U.TRANSLATE(e,r))},i.prototype.scale=function(e,r){return this.transform(U.SCALE(e,r))},i.prototype.rotate=function(e,r,t){return this.transform(U.ROTATE(e,r,t))},i.prototype.matrix=function(e,r,t,a,n,o){return this.transform(U.MATRIX(e,r,t,a,n,o))},i.prototype.skewX=function(e){return this.transform(U.SKEW_X(e))},i.prototype.skewY=function(e){return this.transform(U.SKEW_Y(e))},i.prototype.xSymmetry=function(e){return this.transform(U.X_AXIS_SYMMETRY(e))},i.prototype.ySymmetry=function(e){return this.transform(U.Y_AXIS_SYMMETRY(e))},i.prototype.annotateArcs=function(){return this.transform(U.ANNOTATE_ARCS())},i})(),jT=function(i){return i===" "||i===" "||i==="\r"||i===`
5
+ `},Yv=function(i){return 48<=i.charCodeAt(0)&&i.charCodeAt(0)<=57},FT=(function(i){function e(){var r=i.call(this)||this;return r.curNumber="",r.curCommandType=-1,r.curCommandRelative=!1,r.canParseCommandOrComma=!0,r.curNumberHasExp=!1,r.curNumberHasExpDigits=!1,r.curNumberHasDecimal=!1,r.curArgs=[],r}return Wv(e,i),e.prototype.finish=function(r){if(r===void 0&&(r=[]),this.parse(" ",r),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return r},e.prototype.parse=function(r,t){var a=this;t===void 0&&(t=[]);for(var n=function(c){t.push(c),a.curArgs.length=0,a.canParseCommandOrComma=!0},o=0;o<r.length;o++){var s=r[o],u=!(this.curCommandType!==b.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),l=Yv(s)&&(this.curNumber==="0"&&s==="0"||u);if(!Yv(s)||l)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||u){if(this.curNumber&&this.curCommandType!==-1){var h=Number(this.curNumber);if(isNaN(h))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===b.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>h)throw new SyntaxError('Expected positive number, got "'+h+'" at index "'+o+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"')}this.curArgs.push(h),this.curArgs.length===zT[this.curCommandType]&&(b.HORIZ_LINE_TO===this.curCommandType?n({type:b.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):b.VERT_LINE_TO===this.curCommandType?n({type:b.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===b.MOVE_TO||this.curCommandType===b.LINE_TO||this.curCommandType===b.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),b.MOVE_TO===this.curCommandType&&(this.curCommandType=b.LINE_TO)):this.curCommandType===b.CURVE_TO?n({type:b.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===b.SMOOTH_CURVE_TO?n({type:b.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===b.QUAD_TO?n({type:b.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===b.ARC&&n({type:b.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(!jT(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(l)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=b.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=b.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=b.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=b.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=b.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=b.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=b.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=b.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=b.ARC,this.curCommandRelative=s==="a"}else t.push({type:b.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 t},e.prototype.transform=function(r){return Object.create(this,{parse:{value:function(t,a){a===void 0&&(a=[]);for(var n=0,o=Object.getPrototypeOf(this).parse.call(this,t);n<o.length;n++){var s=o[n],u=r(s);Array.isArray(u)?a.push.apply(a,u):a.push(u)}return a}}})},e})(Qv),b=(function(i){function e(r){var t=i.call(this)||this;return t.commands=typeof r=="string"?e.parse(r):r,t}return Wv(e,i),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var r=U.CALCULATE_BOUNDS();return this.transform(r),r},e.prototype.transform=function(r){for(var t=[],a=0,n=this.commands;a<n.length;a++){var o=r(n[a]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return this.commands=t,this},e.encode=function(r){return UT(r)},e.parse=function(r){var t=new FT,a=[];return t.parse(r,a),t.finish(a),a},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e})(Qv),zT=((pe={})[b.MOVE_TO]=2,pe[b.LINE_TO]=2,pe[b.HORIZ_LINE_TO]=1,pe[b.VERT_LINE_TO]=1,pe[b.CLOSE_PATH]=0,pe[b.QUAD_TO]=4,pe[b.SMOOTH_QUAD_TO]=2,pe[b.CURVE_TO]=6,pe[b.SMOOTH_CURVE_TO]=4,pe[b.ARC]=7,pe);var PC=Z(eg(),1);function si(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?si=function(e){return typeof e}:si=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},si(i)}function KT(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}var ZT=[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],JT=[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 eO(i,e,r,t,a){if(typeof i=="string"&&(i=document.getElementById(i)),!i||si(i)!=="object"||!("getContext"in i))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var n=i.getContext("2d");try{return n.getImageData(e,r,t,a)}catch(o){throw new Error("unable to access image data: "+o)}}function tg(i,e,r,t,a,n){if(!(isNaN(n)||n<1)){n|=0;var o=eO(i,e,r,t,a);o=rO(o,e,r,t,a,n),i.getContext("2d").putImageData(o,e,r)}}function rO(i,e,r,t,a,n){for(var o=i.data,s=2*n+1,u=t-1,l=a-1,h=n+1,c=h*(h+1)/2,v=new rg,f=v,g,p=1;p<s;p++)f=f.next=new rg,p===h&&(g=f);f.next=v;for(var y=null,m=null,T=0,x=0,O=ZT[n],E=JT[n],C=0;C<a;C++){f=v;for(var S=o[x],A=o[x+1],P=o[x+2],V=o[x+3],L=0;L<h;L++)f.r=S,f.g=A,f.b=P,f.a=V,f=f.next;for(var N=0,X=0,W=0,G=0,Q=h*S,Y=h*A,K=h*P,I=h*V,R=c*S,re=c*A,ce=c*P,me=c*V,qe=1;qe<h;qe++){var We=x+((u<qe?u:qe)<<2),Kr=o[We],Ns=o[We+1],Is=o[We+2],Ms=o[We+3],Zr=h-qe;R+=(f.r=Kr)*Zr,re+=(f.g=Ns)*Zr,ce+=(f.b=Is)*Zr,me+=(f.a=Ms)*Zr,N+=Kr,X+=Ns,W+=Is,G+=Ms,f=f.next}y=v,m=g;for(var xi=0;xi<t;xi++){var Ti=me*O>>>E;if(o[x+3]=Ti,Ti!==0){var Oi=255/Ti;o[x]=(R*O>>>E)*Oi,o[x+1]=(re*O>>>E)*Oi,o[x+2]=(ce*O>>>E)*Oi}else o[x]=o[x+1]=o[x+2]=0;R-=Q,re-=Y,ce-=K,me-=I,Q-=y.r,Y-=y.g,K-=y.b,I-=y.a;var Ve=xi+n+1;Ve=T+(Ve<u?Ve:u)<<2,N+=y.r=o[Ve],X+=y.g=o[Ve+1],W+=y.b=o[Ve+2],G+=y.a=o[Ve+3],R+=N,re+=X,ce+=W,me+=G,y=y.next;var Jr=m,Vs=Jr.r,_s=Jr.g,Ds=Jr.b,Ls=Jr.a;Q+=Vs,Y+=_s,K+=Ds,I+=Ls,N-=Vs,X-=_s,W-=Ds,G-=Ls,m=m.next,x+=4}T+=t}for(var Qe=0;Qe<t;Qe++){x=Qe<<2;var _e=o[x],De=o[x+1],Le=o[x+2],ie=o[x+3],Si=h*_e,Ei=h*De,wi=h*Le,Ci=h*ie,et=c*_e,rt=c*De,tt=c*Le,it=c*ie;f=v;for(var ks=0;ks<h;ks++)f.r=_e,f.g=De,f.b=Le,f.a=ie,f=f.next;for(var Bs=t,qi=0,Ai=0,Pi=0,Ri=0,at=1;at<=n;at++){x=Bs+Qe<<2;var nt=h-at;et+=(f.r=_e=o[x])*nt,rt+=(f.g=De=o[x+1])*nt,tt+=(f.b=Le=o[x+2])*nt,it+=(f.a=ie=o[x+3])*nt,Ri+=_e,qi+=De,Ai+=Le,Pi+=ie,f=f.next,at<l&&(Bs+=t)}x=Qe,y=v,m=g;for(var Ni=0;Ni<a;Ni++){var ae=x<<2;o[ae+3]=ie=it*O>>>E,ie>0?(ie=255/ie,o[ae]=(et*O>>>E)*ie,o[ae+1]=(rt*O>>>E)*ie,o[ae+2]=(tt*O>>>E)*ie):o[ae]=o[ae+1]=o[ae+2]=0,et-=Si,rt-=Ei,tt-=wi,it-=Ci,Si-=y.r,Ei-=y.g,wi-=y.b,Ci-=y.a,ae=Qe+((ae=Ni+h)<l?ae:l)*t<<2,et+=Ri+=y.r=o[ae],rt+=qi+=y.g=o[ae+1],tt+=Ai+=y.b=o[ae+2],it+=Pi+=y.a=o[ae+3],y=y.next,Si+=_e=m.r,Ei+=De=m.g,wi+=Le=m.b,Ci+=ie=m.a,Ri-=_e,qi-=De,Ai-=Le,Pi-=ie,m=m.next,x+=t}}return i}var rg=function i(){KT(this,i),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function tO(){var{DOMParser:i}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:i,createCanvas(r,t){return new OffscreenCanvas(r,t)},createImage(r){return xe(function*(){var t=yield fetch(r),a=yield t.blob(),n=yield createImageBitmap(a);return n})()}};return(typeof DOMParser<"u"||typeof i>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function iO(i){var{DOMParser:e,canvas:r,fetch:t}=i;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:t,createCanvas:r.createCanvas,createImage:r.loadImage}}var NC=Object.freeze({__proto__:null,offscreen:tO,node:iO});function mr(i){return i.replace(/(?!\u3000)\s+/gm," ")}function aO(i){return i.replace(/^[\n \t]+/,"")}function nO(i){return i.replace(/[\n \t]+$/,"")}function se(i){var e=(i||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var sO=/^[A-Z-]+$/;function oO(i){return sO.test(i)?i.toLowerCase():i}function ig(i){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(i)||[];return e[2]||e[3]||e[4]}function uO(i){if(!i.startsWith("rgb"))return i;var e=3,r=i.replace(/\d+(\.\d+)?/g,(t,a)=>e--&&a?String(Math.round(parseFloat(t))):t);return r}var lO=/(\[[^\]]+\])/g,hO=/(#[^\s+>~.[:]+)/g,cO=/(\.[^\s+>~.[:]+)/g,fO=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,vO=/(:[\w-]+\([^)]*\))/gi,gO=/(:[^\s+>~.[:]+)/g,dO=/([^\s+>~.[:]+)/g;function Ge(i,e){var r=e.exec(i);return r?[i.replace(e," "),r.length]:[i,0]}function pO(i){var e=[0,0,0],r=i.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),t=0;return[r,t]=Ge(r,lO),e[1]+=t,[r,t]=Ge(r,hO),e[0]+=t,[r,t]=Ge(r,cO),e[1]+=t,[r,t]=Ge(r,fO),e[2]+=t,[r,t]=Ge(r,vO),e[1]+=t,[r,t]=Ge(r,gO),e[1]+=t,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[r,t]=Ge(r,dO),e[2]+=t,e.join("")}var pr=1e-8;function ag(i){return Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2))}function $n(i,e){return(i[0]*e[0]+i[1]*e[1])/(ag(i)*ag(e))}function ng(i,e){return(i[0]*e[1]<i[1]*e[0]?-1:1)*Math.acos($n(i,e))}function sg(i){return i*i*i}function og(i){return 3*i*i*(1-i)}function ug(i){return 3*i*(1-i)*(1-i)}function lg(i){return(1-i)*(1-i)*(1-i)}function hg(i){return i*i}function cg(i){return 2*i*(1-i)}function fg(i){return(1-i)*(1-i)}var w=(()=>{class i{constructor(r,t,a){this.document=r,this.name=t,this.value=a,this.isNormalizedColor=!1}static empty(r){return new i(r,"EMPTY","")}split(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:a}=this;return mr(this.getString()).trim().split(r).map(n=>new i(t,a,n))}hasValue(r){var{value:t}=this;return t!==null&&t!==""&&(r||t!==0)&&typeof t<"u"}isString(r){var{value:t}=this,a=typeof t=="string";return!a||!r?a:r.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var r=this.getString();switch(!0){case r.endsWith("px"):case/^[0-9]+$/.test(r):return!0;default:return!1}}setValue(r){return this.value=r,this}getValue(r){return typeof r>"u"||this.hasValue()?this.value:r}getNumber(r){if(!this.hasValue())return typeof r>"u"?0:parseFloat(r);var{value:t}=this,a=parseFloat(t);return this.isString(/%$/)&&(a/=100),a}getString(r){return typeof r>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(r)}getColor(r){var t=this.getString(r);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=uO(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[a,n]=typeof r=="boolean"?[void 0,r]:[r],{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 this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&n):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*o.computeSize(a);default:{var s=this.getNumber();return t&&s<1?s*o.computeSize(a):s}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var r=this.getString(),t=/#([^)'"]+)/.exec(r);return t&&(t=t[1]),t||(t=r),this.document.definitions[t]}getFillStyleDefinition(r,t){var a=this.getDefinition();if(!a)return null;if(typeof a.createGradient=="function")return a.createGradient(this.document.ctx,r,t);if(typeof a.createPattern=="function"){if(a.getHrefAttribute().hasValue()){var n=a.getAttribute("patternTransform");a=a.getHrefAttribute().getDefinition(),n.hasValue()&&a.getAttribute("patternTransform",!0).setValue(n.value)}return a.createPattern(this.document.ctx,r,t)}return null}getTextBaseline(){return this.hasValue()?i.textBaselineMapping[this.getString()]:null}addOpacity(r){for(var t=this.getColor(),a=t.length,n=0,o=0;o<a&&(t[o]===","&&n++,n!==3);o++);if(r.hasValue()&&this.isString()&&n!==3){var s=new ci.default(t);s.ok&&(s.alpha=r.getNumber(),t=s.toRGBA())}return new i(this.document,this.name,t)}}return i.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"},i})(),Gn=class{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,r){this.viewPorts.push({width:e,height:r})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return typeof e=="number"?e:e==="x"?this.width:e==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},$=class i{constructor(e,r){this.x=e,this.y=r}static parse(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[t=r,a=r]=se(e);return new i(t,a)}static parseScale(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[t=r,a=t]=se(e);return new i(t,a)}static parsePath(e){for(var r=se(e),t=r.length,a=[],n=0;n<t;n+=2)a.push(new i(r[n],r[n+1]));return a}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:r,y:t}=this,a=r*e[0]+t*e[2]+e[4],n=r*e[1]+t*e[3]+e[5];this.x=a,this.y=n}},Hn=class{constructor(e){this.screen=e,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:e,onClick:r,onMouseMove:t}=this,a=e.ctx.canvas;a.onclick=r,a.onmousemove=t,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:r,eventElements:t}=this,{style:a}=e.ctx.canvas;a&&(a.cursor=""),r.forEach((n,o)=>{for(var{run:s}=n,u=t[o];u;)s(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(e,r){if(!(!this.working||!r)){var{events:t,eventElements:a}=this;t.forEach((n,o)=>{var{x:s,y:u}=n;!a[o]&&r.isPointInPath&&r.isPointInPath(s,u)&&(a[o]=e)})}}checkBoundingBox(e,r){if(!(!this.working||!r)){var{events:t,eventElements:a}=this;t.forEach((n,o)=>{var{x:s,y:u}=n;!a[o]&&r.isPointInBox(s,u)&&(a[o]=e)})}}mapXY(e,r){for(var{window:t,ctx:a}=this.screen,n=new $(e,r),o=a.canvas;o;)n.x-=o.offsetLeft,n.y-=o.offsetTop,o=o.offsetParent;return t.scrollX&&(n.x+=t.scrollX),t.scrollY&&(n.y+=t.scrollY),n}onClick(e){var{x:r,y:t}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:r,y:t,run(a){a.onClick&&a.onClick()}})}onMouseMove(e){var{x:r,y:t}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:r,y:t,run(a){a.onMouseMove&&a.onMouseMove()}})}},vg=typeof window<"u"?window:null,gg=typeof fetch<"u"?fetch.bind(void 0):null,xg=(()=>{class i{constructor(r){var{fetch:t=gg,window:a=vg}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=r,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Gn,this.mouse=new Hn(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=a,this.fetch=t}wait(r){this.waits.push(r)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var r=this.waits.every(t=>t());return r&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=r,r}setDefaults(r){r.strokeStyle="rgba(0,0,0,0)",r.lineCap="butt",r.lineJoin="miter",r.miterLimit=4}setViewBox(r){var{document:t,ctx:a,aspectRatio:n,width:o,desiredWidth:s,height:u,desiredHeight:l,minX:h=0,minY:c=0,refX:v,refY:f,clip:g=!1,clipX:p=0,clipY:y=0}=r,m=mr(n).replace(/^defer\s/,""),[T,x]=m.split(" "),O=T||"xMidYMid",E=x||"meet",C=o/s,S=u/l,A=Math.min(C,S),P=Math.max(C,S),V=s,L=l;E==="meet"&&(V*=A,L*=A),E==="slice"&&(V*=P,L*=P);var N=new w(t,"refX",v),X=new w(t,"refY",f),W=N.hasValue()&&X.hasValue();if(W&&a.translate(-A*N.getPixels("x"),-A*X.getPixels("y")),g){var G=A*p,Q=A*y;a.beginPath(),a.moveTo(G,Q),a.lineTo(o,Q),a.lineTo(o,u),a.lineTo(G,u),a.closePath(),a.clip()}if(!W){var Y=E==="meet"&&A===S,K=E==="slice"&&P===S,I=E==="meet"&&A===C,R=E==="slice"&&P===C;O.startsWith("xMid")&&(Y||K)&&a.translate(o/2-V/2,0),O.endsWith("YMid")&&(I||R)&&a.translate(0,u/2-L/2),O.startsWith("xMax")&&(Y||K)&&a.translate(o-V,0),O.endsWith("YMax")&&(I||R)&&a.translate(0,u-L)}switch(!0){case O==="none":a.scale(C,S);break;case E==="meet":a.scale(A,A);break;case E==="slice":a.scale(P,P);break}a.translate(-h,-c)}start(r){var{enableRedraw:t=!1,ignoreMouse:a=!1,ignoreAnimation:n=!1,ignoreDimensions:o=!1,ignoreClear:s=!1,forceRedraw:u,scaleWidth:l,scaleHeight:h,offsetX:c,offsetY:v}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:f,mouse:g}=this,p=1e3/f;if(this.frameDuration=p,this.readyPromise=new Promise(O=>{this.resolveReady=O}),this.isReady()&&this.render(r,o,s,l,h,c,v),!!t){var y=Date.now(),m=y,T=0,x=()=>{y=Date.now(),T=y-m,T>=p&&(m=y-T%p,this.shouldUpdate(n,u)&&(this.render(r,o,s,l,h,c,v),g.runEvents())),this.intervalId=(0,hi.default)(x)};a||g.start(),this.intervalId=(0,hi.default)(x)}}stop(){this.intervalId&&(hi.default.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(r,t){if(!r){var{frameDuration:a}=this,n=this.animations.reduce((o,s)=>s.update(a)||o,!1);if(n)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(r,t,a,n,o,s,u){var{CLIENT_WIDTH:l,CLIENT_HEIGHT:h,viewPort:c,ctx:v,isFirstRender:f}=this,g=v.canvas;c.clear(),g.width&&g.height?c.setCurrent(g.width,g.height):c.setCurrent(l,h);var p=r.getStyle("width"),y=r.getStyle("height");!t&&(f||typeof n!="number"&&typeof o!="number")&&(p.hasValue()&&(g.width=p.getPixels("x"),g.style&&(g.style.width="".concat(g.width,"px"))),y.hasValue()&&(g.height=y.getPixels("y"),g.style&&(g.style.height="".concat(g.height,"px"))));var m=g.clientWidth||g.width,T=g.clientHeight||g.height;if(t&&p.hasValue()&&y.hasValue()&&(m=p.getPixels("x"),T=y.getPixels("y")),c.setCurrent(m,T),typeof s=="number"&&r.getAttribute("x",!0).setValue(s),typeof u=="number"&&r.getAttribute("y",!0).setValue(u),typeof n=="number"||typeof o=="number"){var x=se(r.getAttribute("viewBox").getString()),O=0,E=0;if(typeof n=="number"){var C=r.getStyle("width");C.hasValue()?O=C.getPixels("x")/n:isNaN(x[2])||(O=x[2]/n)}if(typeof o=="number"){var S=r.getStyle("height");S.hasValue()?E=S.getPixels("y")/o:isNaN(x[3])||(E=x[3]/o)}O||(O=E),E||(E=O),r.getAttribute("width",!0).setValue(n),r.getAttribute("height",!0).setValue(o);var A=r.getStyle("transform",!0,!0);A.setValue("".concat(A.getString()," scale(").concat(1/O,", ").concat(1/E,")"))}a||v.clearRect(0,0,m,T),r.render(v),f&&(this.isFirstRender=!1)}}return i.defaultWindow=vg,i.defaultFetch=gg,i})(),{defaultFetch:yO}=xg,mO=typeof DOMParser<"u"?DOMParser:null,Xr=class{constructor(){var{fetch:e=yO,DOMParser:r=mO}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=r}parse(e){var r=this;return xe(function*(){return e.startsWith("<")?r.parseFromString(e):r.load(e)})()}parseFromString(e){var r=new this.DOMParser;try{return this.checkDocument(r.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(r.parseFromString(e,"text/xml"))}}checkDocument(e){var r=e.getElementsByTagName("parsererror")[0];if(r)throw new Error(r.textContent);return e}load(e){var r=this;return xe(function*(){var t=yield r.fetch(e),a=yield t.text();return r.parseFromString(a)})()}},Yn=class{constructor(e,r){this.type="translate",this.point=null,this.point=$.parse(r)}apply(e){var{x:r,y:t}=this.point;e.translate(r||0,t||0)}unapply(e){var{x:r,y:t}=this.point;e.translate(-1*r||0,-1*t||0)}applyToPoint(e){var{x:r,y:t}=this.point;e.applyTransform([1,0,0,1,r||0,t||0])}},Xn=class{constructor(e,r,t){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var a=se(r);this.angle=new w(e,"angle",a[0]),this.originX=t[0],this.originY=t[1],this.cx=a[1]||0,this.cy=a[2]||0}apply(e){var{cx:r,cy:t,originX:a,originY:n,angle:o}=this,s=r+a.getPixels("x"),u=t+n.getPixels("y");e.translate(s,u),e.rotate(o.getRadians()),e.translate(-s,-u)}unapply(e){var{cx:r,cy:t,originX:a,originY:n,angle:o}=this,s=r+a.getPixels("x"),u=t+n.getPixels("y");e.translate(s,u),e.rotate(-1*o.getRadians()),e.translate(-s,-u)}applyToPoint(e){var{cx:r,cy:t,angle:a}=this,n=a.getRadians();e.applyTransform([1,0,0,1,r||0,t||0]),e.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),e.applyTransform([1,0,0,1,-r||0,-t||0])}},Wn=class{constructor(e,r,t){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var a=$.parseScale(r);(a.x===0||a.y===0)&&(a.x=pr,a.y=pr),this.scale=a,this.originX=t[0],this.originY=t[1]}apply(e){var{scale:{x:r,y:t},originX:a,originY:n}=this,o=a.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(r,t||r),e.translate(-o,-s)}unapply(e){var{scale:{x:r,y:t},originX:a,originY:n}=this,o=a.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(1/r,1/t||r),e.translate(-o,-s)}applyToPoint(e){var{x:r,y:t}=this.scale;e.applyTransform([r||0,0,0,t||0,0,0])}},fi=class{constructor(e,r,t){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=se(r),this.originX=t[0],this.originY=t[1]}apply(e){var{originX:r,originY:t,matrix:a}=this,n=r.getPixels("x"),o=t.getPixels("y");e.translate(n,o),e.transform(a[0],a[1],a[2],a[3],a[4],a[5]),e.translate(-n,-o)}unapply(e){var{originX:r,originY:t,matrix:a}=this,n=a[0],o=a[2],s=a[4],u=a[1],l=a[3],h=a[5],c=0,v=0,f=1,g=1/(n*(l*f-h*v)-o*(u*f-h*c)+s*(u*v-l*c)),p=r.getPixels("x"),y=t.getPixels("y");e.translate(p,y),e.transform(g*(l*f-h*v),g*(h*c-u*f),g*(s*v-o*f),g*(n*f-s*c),g*(o*h-s*l),g*(s*u-n*h)),e.translate(-p,-y)}applyToPoint(e){e.applyTransform(this.matrix)}},vi=class extends fi{constructor(e,r,t){super(e,r,t),this.type="skew",this.angle=null,this.angle=new w(e,"angle",r)}},Qn=class extends vi{constructor(e,r,t){super(e,r,t),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}},Kn=class extends vi{constructor(e,r,t){super(e,r,t),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}};function bO(i){return mr(i).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function xO(i){var[e,r]=i.split("(");return[e.trim(),r.trim().replace(")","")]}var Rs=(()=>{class i{constructor(r,t,a){this.document=r,this.transforms=[];var n=bO(t);n.forEach(o=>{if(o!=="none"){var[s,u]=xO(o),l=i.transformTypes[s];typeof l<"u"&&this.transforms.push(new l(this.document,u,a))}})}static fromElement(r,t){var a=t.getStyle("transform",!1,!0),[n,o=n]=t.getStyle("transform-origin",!1,!0).split(),s=[n,o];return a.hasValue()?new i(r,a.getString(),s):null}apply(r){for(var{transforms:t}=this,a=t.length,n=0;n<a;n++)t[n].apply(r)}unapply(r){for(var{transforms:t}=this,a=t.length,n=a-1;n>=0;n--)t[n].unapply(r)}applyToPoint(r){for(var{transforms:t}=this,a=t.length,n=0;n<a;n++)t[n].applyToPoint(r)}}return i.transformTypes={translate:Yn,rotate:Xn,scale:Wn,matrix:fi,skewX:Qn,skewY:Kn},i})(),B=(()=>{class i{constructor(r,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=r,this.node=t,this.captureTextNodes=a,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(u=>{var l=oO(u.nodeName);this.attributes[l]=new w(r,l,u.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var n=this.getAttribute("style").getString().split(";").map(u=>u.trim());n.forEach(u=>{if(u){var[l,h]=u.split(":").map(c=>c.trim());this.styles[l]=new w(r,l,h)}})}var{definitions:o}=r,s=this.getAttribute("id");s.hasValue()&&(o[s.getString()]||(o[s.getString()]=this)),Array.from(t.childNodes).forEach(u=>{if(u.nodeType===1)this.addChild(u);else if(a&&(u.nodeType===3||u.nodeType===4)){var l=r.createTextNode(u);l.getText().length>0&&this.addChild(l)}})}}getAttribute(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=this.attributes[r];if(!a&&t){var n=new w(this.document,r,"");return this.attributes[r]=n,n}return a||w.empty(this.document)}getHrefAttribute(){for(var r in this.attributes)if(r==="href"||r.endsWith(":href"))return this.attributes[r];return w.empty(this.document)}getStyle(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.styles[r];if(n)return n;var o=this.getAttribute(r);if(o!=null&&o.hasValue())return this.styles[r]=o,o;if(!a){var{parent:s}=this;if(s){var u=s.getStyle(r);if(u!=null&&u.hasValue())return u}}if(t){var l=new w(this.document,r,"");return this.styles[r]=l,l}return n||w.empty(this.document)}render(r){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(r.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(r),t.apply(r,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var a=this.getStyle("filter").getDefinition();a&&(this.applyEffects(r),a.apply(r,this))}else this.setContext(r),this.renderChildren(r),this.clearContext(r);r.restore()}}setContext(r){}applyEffects(r){var t=Rs.fromElement(this.document,this);t&&t.apply(r);var a=this.getStyle("clip-path",!1,!0);if(a.hasValue()){var n=a.getDefinition();n&&n.apply(r)}}clearContext(r){}renderChildren(r){this.children.forEach(t=>{t.render(r)})}addChild(r){var t=r instanceof i?r:this.document.createElement(r);t.parent=this,i.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(r){var t,{node:a}=this;if(typeof a.matches=="function")return a.matches(r);var n=(t=a.getAttribute)===null||t===void 0?void 0:t.call(a,"class");return!n||n===""?!1:n.split(" ").some(o=>".".concat(o)===r)}addStylesFromStyleDefinition(){var{styles:r,stylesSpecificity:t}=this.document;for(var a in r)if(!a.startsWith("@")&&this.matchesSelector(a)){var n=r[a],o=t[a];if(n)for(var s in n){var u=this.stylesSpecificity[s];typeof u>"u"&&(u="000"),o>=u&&(this.styles[s]=n[s],this.stylesSpecificity[s]=o)}}}removeStyles(r,t){var a=t.reduce((n,o)=>{var s=r.getStyle(o);if(!s.hasValue())return n;var u=s.getString();return s.setValue(""),[...n,[o,u]]},[]);return a}restoreStyles(r,t){t.forEach(a=>{var[n,o]=a;r.getStyle(n,!0).setValue(o)})}isFirstChild(){var r;return((r=this.parent)===null||r===void 0?void 0:r.children.indexOf(this))===0}}return i.ignoreChildTypes=["title"],i})(),Zn=class extends B{constructor(e,r,t){super(e,r,t)}};function TO(i){var e=i.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function OO(i){return typeof process>"u"?i:i.trim().split(",").map(TO).join(",")}function SO(i){if(!i)return"";var e=i.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function EO(i){if(!i)return"";var e=i.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}var yr=(()=>{class i{constructor(r,t,a,n,o,s){var u=s?typeof s=="string"?i.parse(s):s:{};this.fontFamily=o||u.fontFamily,this.fontSize=n||u.fontSize,this.fontStyle=r||u.fontStyle,this.fontWeight=a||u.fontWeight,this.fontVariant=t||u.fontVariant}static parse(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,a="",n="",o="",s="",u="",l=mr(r).trim().split(" "),h={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(c=>{switch(!0){case(!h.fontStyle&&i.styles.includes(c)):c!=="inherit"&&(a=c),h.fontStyle=!0;break;case(!h.fontVariant&&i.variants.includes(c)):c!=="inherit"&&(n=c),h.fontStyle=!0,h.fontVariant=!0;break;case(!h.fontWeight&&i.weights.includes(c)):c!=="inherit"&&(o=c),h.fontStyle=!0,h.fontVariant=!0,h.fontWeight=!0;break;case!h.fontSize:c!=="inherit"&&([s]=c.split("/")),h.fontStyle=!0,h.fontVariant=!0,h.fontWeight=!0,h.fontSize=!0;break;default:c!=="inherit"&&(u+=c)}}),new i(a,n,o,s,u,t)}toString(){return[SO(this.fontStyle),this.fontVariant,EO(this.fontWeight),this.fontSize,OO(this.fontFamily)].join(" ").trim()}}return i.styles="normal|italic|oblique|inherit",i.variants="normal|small-caps|inherit",i.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",i})(),oe=class{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=r,this.x2=t,this.y2=a,this.addPoint(e,r),this.addPoint(t,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(e,r){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof r<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=r,this.y2=r),r<this.y1&&(this.y1=r),r>this.y2&&(this.y2=r))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:r,y1:t,x2:a,y2:n}=e;this.addPoint(r,t),this.addPoint(a,n)}}sumCubic(e,r,t,a,n){return Math.pow(1-e,3)*r+3*Math.pow(1-e,2)*e*t+3*(1-e)*Math.pow(e,2)*a+Math.pow(e,3)*n}bezierCurveAdd(e,r,t,a,n){var o=6*r-12*t+6*a,s=-3*r+9*t-9*a+3*n,u=3*t-3*r;if(s===0){if(o===0)return;var l=-u/o;0<l&&l<1&&(e?this.addX(this.sumCubic(l,r,t,a,n)):this.addY(this.sumCubic(l,r,t,a,n)));return}var h=Math.pow(o,2)-4*u*s;if(!(h<0)){var c=(-o+Math.sqrt(h))/(2*s);0<c&&c<1&&(e?this.addX(this.sumCubic(c,r,t,a,n)):this.addY(this.sumCubic(c,r,t,a,n)));var v=(-o-Math.sqrt(h))/(2*s);0<v&&v<1&&(e?this.addX(this.sumCubic(v,r,t,a,n)):this.addY(this.sumCubic(v,r,t,a,n)))}}addBezierCurve(e,r,t,a,n,o,s,u){this.addPoint(e,r),this.addPoint(s,u),this.bezierCurveAdd(!0,e,t,n,s),this.bezierCurveAdd(!1,r,a,o,u)}addQuadraticCurve(e,r,t,a,n,o){var s=e+.6666666666666666*(t-e),u=r+2/3*(a-r),l=s+1/3*(n-e),h=u+1/3*(o-r);this.addBezierCurve(e,r,s,l,u,h,n,o)}isPointInBox(e,r){var{x1:t,y1:a,x2:n,y2:o}=this;return t<=e&&e<=n&&a<=r&&r<=o}},q=class extends b{constructor(e){super(e.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 $(0,0),this.control=new $(0,0),this.current=new $(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:r}=this;return e>=r.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",t=new $(this.command[e],this.command[r]);return this.makeAbsolute(t)}getAsControlPoint(e,r){var t=this.getPoint(e,r);return this.control=t,t}getAsCurrentPoint(e,r){var t=this.getPoint(e,r);return this.current=t,t}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==b.CURVE_TO&&e!==b.SMOOTH_CURVE_TO&&e!==b.QUAD_TO&&e!==b.SMOOTH_QUAD_TO)return this.current;var{current:{x:r,y:t},control:{x:a,y:n}}=this,o=new $(2*r-a,2*t-n);return o}makeAbsolute(e){if(this.command.relative){var{x:r,y:t}=this.current;e.x+=r,e.y+=t}return e}addMarker(e,r,t){var{points:a,angles:n}=this;t&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=a[a.length-1].angleTo(t)),this.addMarkerAngle(e,r?r.angleTo(e):null)}addMarkerAngle(e,r){this.points.push(e),this.angles.push(r)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,r=e.length,t=0;t<r;t++)if(!e[t]){for(var a=t+1;a<r;a++)if(e[a]){e[t]=e[a];break}}return e}},Ce=class extends B{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,r=this;r;){var t=r.getStyle("opacity",!1,!0);t.hasValue(!0)&&(e*=t.getNumber()),r=r.parent}return e}setContext(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!r){var t=this.getStyle("fill"),a=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(t.isUrlDefinition()){var s=t.getFillStyleDefinition(this,a);s&&(e.fillStyle=s)}else if(t.hasValue()){t.getString()==="currentColor"&&t.setValue(this.getStyle("color").getColor());var u=t.getColor();u!=="inherit"&&(e.fillStyle=u==="none"?"rgba(0,0,0,0)":u)}if(a.hasValue()){var l=new w(this.document,"fill",e.fillStyle).addOpacity(a).getColor();e.fillStyle=l}if(n.isUrlDefinition()){var h=n.getFillStyleDefinition(this,o);h&&(e.strokeStyle=h)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var c=n.getString();c!=="inherit"&&(e.strokeStyle=c==="none"?"rgba(0,0,0,0)":c)}if(o.hasValue()){var v=new w(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=v}var f=this.getStyle("stroke-width");if(f.hasValue()){var g=f.getPixels();e.lineWidth=g||pr}var p=this.getStyle("stroke-linecap"),y=this.getStyle("stroke-linejoin"),m=this.getStyle("stroke-miterlimit"),T=this.getStyle("stroke-dasharray"),x=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(e.lineCap=p.getString()),y.hasValue()&&(e.lineJoin=y.getString()),m.hasValue()&&(e.miterLimit=m.getNumber()),T.hasValue()&&T.getString()!=="none"){var O=se(T.getString());typeof e.setLineDash<"u"?e.setLineDash(O):typeof e.webkitLineDash<"u"?e.webkitLineDash=O:typeof e.mozDash<"u"&&!(O.length===1&&O[0]===0)&&(e.mozDash=O);var E=x.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=E:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=E:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=E)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var C=this.getStyle("font"),S=this.getStyle("font-style"),A=this.getStyle("font-variant"),P=this.getStyle("font-weight"),V=this.getStyle("font-size"),L=this.getStyle("font-family"),N=new yr(S.getString(),A.getString(),P.getString(),V.hasValue()?"".concat(V.getPixels(!0),"px"):"",L.getString(),yr.parse(C.getString(),e.font));S.setValue(N.fontStyle),A.setValue(N.fontVariant),P.setValue(N.fontWeight),V.setValue(N.fontSize),L.setValue(N.fontFamily),e.font=N.toString(),V.isPixels()&&(this.document.emSize=V.getPixels(),this.modifiedEmSizeStack=!0)}r||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}},F=class i extends Ce{constructor(e,r,t){super(e,r,t),this.type="path",this.pathParser=null,this.pathParser=new q(this.getAttribute("d").getString())}path(e){var{pathParser:r}=this,t=new oe;for(r.reset(),e&&e.beginPath();!r.isEnd();)switch(r.next().type){case q.MOVE_TO:this.pathM(e,t);break;case q.LINE_TO:this.pathL(e,t);break;case q.HORIZ_LINE_TO:this.pathH(e,t);break;case q.VERT_LINE_TO:this.pathV(e,t);break;case q.CURVE_TO:this.pathC(e,t);break;case q.SMOOTH_CURVE_TO:this.pathS(e,t);break;case q.QUAD_TO:this.pathQ(e,t);break;case q.SMOOTH_QUAD_TO:this.pathT(e,t);break;case q.ARC:this.pathA(e,t);break;case q.CLOSE_PATH:this.pathZ(e,t);break}return t}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,r=e.getMarkerPoints(),t=e.getMarkerAngles(),a=r.map((n,o)=>[n,t[o]]);return a}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var r=this.getStyle("fill-rule");e.fillStyle!==""&&(r.getString("inherit")!=="inherit"?e.fill(r.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var t=this.getMarkers();if(t){var a=t.length-1,n=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(n.isUrlDefinition()){var u=n.getDefinition(),[l,h]=t[0];u.render(e,l,h)}if(o.isUrlDefinition())for(var c=o.getDefinition(),v=1;v<a;v++){var[f,g]=t[v];c.render(e,f,g)}if(s.isUrlDefinition()){var p=s.getDefinition(),[y,m]=t[a];p.render(e,y,m)}}}static pathM(e){var r=e.getAsCurrentPoint();return e.start=e.current,{point:r}}pathM(e,r){var{pathParser:t}=this,{point:a}=i.pathM(t),{x:n,y:o}=a;t.addMarker(a),r.addPoint(n,o),e&&e.moveTo(n,o)}static pathL(e){var{current:r}=e,t=e.getAsCurrentPoint();return{current:r,point:t}}pathL(e,r){var{pathParser:t}=this,{current:a,point:n}=i.pathL(t),{x:o,y:s}=n;t.addMarker(n,a),r.addPoint(o,s),e&&e.lineTo(o,s)}static pathH(e){var{current:r,command:t}=e,a=new $((t.relative?r.x:0)+t.x,r.y);return e.current=a,{current:r,point:a}}pathH(e,r){var{pathParser:t}=this,{current:a,point:n}=i.pathH(t),{x:o,y:s}=n;t.addMarker(n,a),r.addPoint(o,s),e&&e.lineTo(o,s)}static pathV(e){var{current:r,command:t}=e,a=new $(r.x,(t.relative?r.y:0)+t.y);return e.current=a,{current:r,point:a}}pathV(e,r){var{pathParser:t}=this,{current:a,point:n}=i.pathV(t),{x:o,y:s}=n;t.addMarker(n,a),r.addPoint(o,s),e&&e.lineTo(o,s)}static pathC(e){var{current:r}=e,t=e.getPoint("x1","y1"),a=e.getAsControlPoint("x2","y2"),n=e.getAsCurrentPoint();return{current:r,point:t,controlPoint:a,currentPoint:n}}pathC(e,r){var{pathParser:t}=this,{current:a,point:n,controlPoint:o,currentPoint:s}=i.pathC(t);t.addMarker(s,o,n),r.addBezierCurve(a.x,a.y,n.x,n.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(n.x,n.y,o.x,o.y,s.x,s.y)}static pathS(e){var{current:r}=e,t=e.getReflectedControlPoint(),a=e.getAsControlPoint("x2","y2"),n=e.getAsCurrentPoint();return{current:r,point:t,controlPoint:a,currentPoint:n}}pathS(e,r){var{pathParser:t}=this,{current:a,point:n,controlPoint:o,currentPoint:s}=i.pathS(t);t.addMarker(s,o,n),r.addBezierCurve(a.x,a.y,n.x,n.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(n.x,n.y,o.x,o.y,s.x,s.y)}static pathQ(e){var{current:r}=e,t=e.getAsControlPoint("x1","y1"),a=e.getAsCurrentPoint();return{current:r,controlPoint:t,currentPoint:a}}pathQ(e,r){var{pathParser:t}=this,{current:a,controlPoint:n,currentPoint:o}=i.pathQ(t);t.addMarker(o,n,n),r.addQuadraticCurve(a.x,a.y,n.x,n.y,o.x,o.y),e&&e.quadraticCurveTo(n.x,n.y,o.x,o.y)}static pathT(e){var{current:r}=e,t=e.getReflectedControlPoint();e.control=t;var a=e.getAsCurrentPoint();return{current:r,controlPoint:t,currentPoint:a}}pathT(e,r){var{pathParser:t}=this,{current:a,controlPoint:n,currentPoint:o}=i.pathT(t);t.addMarker(o,n,n),r.addQuadraticCurve(a.x,a.y,n.x,n.y,o.x,o.y),e&&e.quadraticCurveTo(n.x,n.y,o.x,o.y)}static pathA(e){var{current:r,command:t}=e,{rX:a,rY:n,xRot:o,lArcFlag:s,sweepFlag:u}=t,l=o*(Math.PI/180),h=e.getAsCurrentPoint(),c=new $(Math.cos(l)*(r.x-h.x)/2+Math.sin(l)*(r.y-h.y)/2,-Math.sin(l)*(r.x-h.x)/2+Math.cos(l)*(r.y-h.y)/2),v=Math.pow(c.x,2)/Math.pow(a,2)+Math.pow(c.y,2)/Math.pow(n,2);v>1&&(a*=Math.sqrt(v),n*=Math.sqrt(v));var f=(s===u?-1:1)*Math.sqrt((Math.pow(a,2)*Math.pow(n,2)-Math.pow(a,2)*Math.pow(c.y,2)-Math.pow(n,2)*Math.pow(c.x,2))/(Math.pow(a,2)*Math.pow(c.y,2)+Math.pow(n,2)*Math.pow(c.x,2)));isNaN(f)&&(f=0);var g=new $(f*a*c.y/n,f*-n*c.x/a),p=new $((r.x+h.x)/2+Math.cos(l)*g.x-Math.sin(l)*g.y,(r.y+h.y)/2+Math.sin(l)*g.x+Math.cos(l)*g.y),y=ng([1,0],[(c.x-g.x)/a,(c.y-g.y)/n]),m=[(c.x-g.x)/a,(c.y-g.y)/n],T=[(-c.x-g.x)/a,(-c.y-g.y)/n],x=ng(m,T);return $n(m,T)<=-1&&(x=Math.PI),$n(m,T)>=1&&(x=0),{currentPoint:h,rX:a,rY:n,sweepFlag:u,xAxisRotation:l,centp:p,a1:y,ad:x}}pathA(e,r){var{pathParser:t}=this,{currentPoint:a,rX:n,rY:o,sweepFlag:s,xAxisRotation:u,centp:l,a1:h,ad:c}=i.pathA(t),v=1-s?1:-1,f=h+v*(c/2),g=new $(l.x+n*Math.cos(f),l.y+o*Math.sin(f));if(t.addMarkerAngle(g,f-v*Math.PI/2),t.addMarkerAngle(a,f-v*Math.PI),r.addPoint(a.x,a.y),e&&!isNaN(h)&&!isNaN(c)){var p=n>o?n:o,y=n>o?1:n/o,m=n>o?o/n:1;e.translate(l.x,l.y),e.rotate(u),e.scale(y,m),e.arc(0,0,p,h,h+c,!!(1-s)),e.scale(1/y,1/m),e.rotate(-u),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,r){i.pathZ(this.pathParser),e&&r.x1!==r.x2&&r.y1!==r.y2&&e.closePath()}},gi=class extends F{constructor(e,r,t){super(e,r,t),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}},Ye=class i extends Ce{constructor(e,r,t){super(e,r,new.target===i?!0:t),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,r);var t=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();t&&(e.textBaseline=t)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var r=null;return this.children.forEach((t,a)=>{var n=this.getChildBoundingBox(e,this,this,a);r?r.addBoundingBox(n):r=n}),r}getFontSize(){var{document:e,parent:r}=this,t=yr.parse(e.ctx.font).fontSize,a=r.getStyle("font-size").getNumber(t);return a}getTElementBoundingBox(e){var r=this.getFontSize();return new oe(this.x,this.y-r,this.x+this.measureText(e),this.y)}getGlyph(e,r,t){var a=r[t],n=null;if(e.isArabic){var o=r.length,s=r[t-1],u=r[t+1],l="isolated";if((t===0||s===" ")&&t<o-1&&u!==" "&&(l="terminal"),t>0&&s!==" "&&t<o-1&&u!==" "&&(l="medial"),t>0&&s!==" "&&(t===o-1||u===" ")&&(l="initial"),typeof e.glyphs[a]<"u"){var h=e.glyphs[a];n=h instanceof gi?h:h[l]}}else n=e.glyphs[a];return n||(n=e.missingGlyph),n}getText(){return""}getTextFromNode(e){var r=e||this.node,t=Array.from(r.parentNode.childNodes),a=t.indexOf(r),n=t.length-1,o=mr(r.textContent||"");return a===0&&(o=aO(o)),a===n&&(o=nO(o)),o}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((t,a)=>{this.renderChild(e,this,this,a)});var{mouse:r}=this.document.screen;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:r,parent:t}=this,a=this.getText(),n=t.getStyle("font-family").getDefinition();if(n){for(var{unitsPerEm:o}=n.fontFace,s=yr.parse(r.ctx.font),u=t.getStyle("font-size").getNumber(s.fontSize),l=t.getStyle("font-style").getString(s.fontStyle),h=u/o,c=n.isRTL?a.split("").reverse().join(""):a,v=se(t.getAttribute("dx").getString()),f=c.length,g=0;g<f;g++){var p=this.getGlyph(n,c,g);e.translate(this.x,this.y),e.scale(h,-h);var y=e.lineWidth;e.lineWidth=e.lineWidth*o/u,l==="italic"&&e.transform(1,0,.4,1,0,0),p.render(e),l==="italic"&&e.transform(1,0,-.4,1,0,0),e.lineWidth=y,e.scale(1/h,-1/h),e.translate(-this.x,-this.y),this.x+=u*(p.horizAdvX||n.horizAdvX)/o,typeof v[g]<"u"&&!isNaN(v[g])&&(this.x+=v[g])}return}var{x:m,y:T}=this;e.fillStyle&&e.fillText(a,m,T),e.strokeStyle&&e.strokeText(a,m,T)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],r=e.getStyle("text-anchor").getString("start"),t=!1,a=0;r==="start"&&!t||r==="end"&&t?a=e.x-this.minX:r==="end"&&!t||r==="start"&&t?a=e.x-this.maxX:a=e.x-(this.minX+this.maxX)/2;for(var n=this.textChunkStart;n<this.leafTexts.length;n++)this.leafTexts[n].x+=a;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((r,t)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,t)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,r,t,a){var n=t.children[a];n.children.length>0?n.children.forEach((o,s)=>{r.adjustChildCoordinatesRecursiveCore(e,r,n,s)}):this.adjustChildCoordinates(e,r,t,a)}adjustChildCoordinates(e,r,t,a){var n=t.children[a];if(typeof n.measureText!="function")return n;e.save(),n.setContext(e,!0);var o=n.getAttribute("x"),s=n.getAttribute("y"),u=n.getAttribute("dx"),l=n.getAttribute("dy"),h=n.getStyle("font-family").getDefinition(),c=!!h&&h.isRTL;a===0&&(o.hasValue()||o.setValue(n.getInheritedAttribute("x")),s.hasValue()||s.setValue(n.getInheritedAttribute("y")),u.hasValue()||u.setValue(n.getInheritedAttribute("dx")),l.hasValue()||l.setValue(n.getInheritedAttribute("dy")));var v=n.measureText(e);return c&&(r.x-=v),o.hasValue()?(r.applyAnchoring(),n.x=o.getPixels("x"),u.hasValue()&&(n.x+=u.getPixels("x"))):(u.hasValue()&&(r.x+=u.getPixels("x")),n.x=r.x),r.x=n.x,c||(r.x+=v),s.hasValue()?(n.y=s.getPixels("y"),l.hasValue()&&(n.y+=l.getPixels("y"))):(l.hasValue()&&(r.y+=l.getPixels("y")),n.y=r.y),r.y=n.y,r.leafTexts.push(n),r.minX=Math.min(r.minX,n.x,n.x+v),r.maxX=Math.max(r.maxX,n.x,n.x+v),n.clearContext(e),e.restore(),n}getChildBoundingBox(e,r,t,a){var n=t.children[a];if(typeof n.getBoundingBox!="function")return null;var o=n.getBoundingBox(e);return o?(n.children.forEach((s,u)=>{var l=r.getChildBoundingBox(e,r,n,u);o.addBoundingBox(l)}),o):null}renderChild(e,r,t,a){var n=t.children[a];n.render(e),n.children.forEach((o,s)=>{r.renderChild(e,r,n,s)})}measureText(e){var{measureCache:r}=this;if(~r)return r;var t=this.getText(),a=this.measureTargetText(e,t);return this.measureCache=a,a}measureTargetText(e,r){if(!r.length)return 0;var{parent:t}=this,a=t.getStyle("font-family").getDefinition();if(a){for(var n=this.getFontSize(),o=a.isRTL?r.split("").reverse().join(""):r,s=se(t.getAttribute("dx").getString()),u=o.length,l=0,h=0;h<u;h++){var c=this.getGlyph(a,o,h);l+=(c.horizAdvX||a.horizAdvX)*n/a.fontFace.unitsPerEm,typeof s[h]<"u"&&!isNaN(s[h])&&(l+=s[h])}return l}if(!e.measureText)return r.length*10;e.save(),this.setContext(e,!0);var{width:v}=e.measureText(r);return this.clearContext(e),e.restore(),v}getInheritedAttribute(e){for(var r=this;r instanceof i&&r.isFirstChild();){var t=r.parent.getAttribute(e);if(t.hasValue(!0))return t.getValue("0");r=r.parent}return null}},di=class i extends Ye{constructor(e,r,t){super(e,r,new.target===i?!0:t),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}},Jn=class extends di{constructor(){super(...arguments),this.type="textNode"}},Xe=class extends Ce{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var r,{document:t}=this,{screen:a,window:n}=t,o=e.canvas;if(a.setDefaults(e),o.style&&typeof e.font<"u"&&n&&typeof n.getComputedStyle<"u"){e.font=n.getComputedStyle(o).getPropertyValue("font");var s=new w(t,"fontSize",yr.parse(e.font).fontSize);s.hasValue()&&(t.rootEmSize=s.getPixels("y"),t.emSize=t.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:l}=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 h=this.getAttribute("refX"),c=this.getAttribute("refY"),v=this.getAttribute("viewBox"),f=v.hasValue()?se(v.getString()):null,g=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",p=0,y=0,m=0,T=0;f&&(p=f[0],y=f[1]),this.root||(u=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(m=p,T=y,p=0,y=0)),a.viewPort.setCurrent(u,l),this.node&&(!this.parent||((r=this.node.parentNode)===null||r===void 0?void 0:r.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),f&&(u=f[2],l=f[3]),t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a.viewPort.width,desiredWidth:u,height:a.viewPort.height,desiredHeight:l,minX:p,minY:y,refX:h.getValue(),refY:c.getValue(),clip:g,clipX:m,clipY:T}),f&&(a.viewPort.removeCurrent(),a.viewPort.setCurrent(u,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=this.getAttribute("width",!0),n=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=a.getNumber(0),l=n.getNumber(0);if(t)if(typeof t=="string")this.getAttribute("preserveAspectRatio",!0).setValue(t);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(a.setValue(e),n.setValue(r),o.hasValue()||o.setValue("0 0 ".concat(u||e," ").concat(l||r)),s.hasValue()){var c=this.getStyle("width"),v=this.getStyle("height");c.hasValue()&&c.setValue("".concat(e,"px")),v.hasValue()&&v.setValue("".concat(r,"px"))}}},pi=class extends F{constructor(){super(...arguments),this.type="rect"}path(e){var r=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),a=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),u=o.getPixels("x"),l=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(l=u),s.hasValue()&&!o.hasValue()&&(u=l),u=Math.min(u,a/2),l=Math.min(l,n/2),e){var h=4*((Math.sqrt(2)-1)/3);e.beginPath(),n>0&&a>0&&(e.moveTo(r+u,t),e.lineTo(r+a-u,t),e.bezierCurveTo(r+a-u+h*u,t,r+a,t+l-h*l,r+a,t+l),e.lineTo(r+a,t+n-l),e.bezierCurveTo(r+a,t+n-l+h*l,r+a-u+h*u,t+n,r+a-u,t+n),e.lineTo(r+u,t+n),e.bezierCurveTo(r+u-h*u,t+n,r,t+n-l+h*l,r,t+n-l),e.lineTo(r,t+l),e.bezierCurveTo(r,t+l-h*l,r+u-h*u,t,r+u,t),e.closePath())}return new oe(r,t,r+a,t+n)}getMarkers(){return null}},es=class extends F{constructor(){super(...arguments),this.type="circle"}path(e){var r=this.getAttribute("cx").getPixels("x"),t=this.getAttribute("cy").getPixels("y"),a=this.getAttribute("r").getPixels();return e&&a>0&&(e.beginPath(),e.arc(r,t,a,0,Math.PI*2,!1),e.closePath()),new oe(r-a,t-a,r+a,t+a)}getMarkers(){return null}},rs=class extends F{constructor(){super(...arguments),this.type="ellipse"}path(e){var r=4*((Math.sqrt(2)-1)/3),t=this.getAttribute("rx").getPixels("x"),a=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&t>0&&a>0&&(e.beginPath(),e.moveTo(n+t,o),e.bezierCurveTo(n+t,o+r*a,n+r*t,o+a,n,o+a),e.bezierCurveTo(n-r*t,o+a,n-t,o+r*a,n-t,o),e.bezierCurveTo(n-t,o-r*a,n-r*t,o-a,n,o-a),e.bezierCurveTo(n+r*t,o-a,n+t,o-r*a,n+t,o),e.closePath()),new oe(n-t,o-a,n+t,o+a)}getMarkers(){return null}},ts=class extends F{constructor(){super(...arguments),this.type="line"}getPoints(){return[new $(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new $(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:r,y:t},{x:a,y:n}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(r,t),e.lineTo(a,n)),new oe(r,t,a,n)}getMarkers(){var[e,r]=this.getPoints(),t=e.angleTo(r);return[[e,t],[r,t]]}},yi=class extends F{constructor(e,r,t){super(e,r,t),this.type="polyline",this.points=[],this.points=$.parsePath(this.getAttribute("points").getString())}path(e){var{points:r}=this,[{x:t,y:a}]=r,n=new oe(t,a);return e&&(e.beginPath(),e.moveTo(t,a)),r.forEach(o=>{var{x:s,y:u}=o;n.addPoint(s,u),e&&e.lineTo(s,u)}),n}getMarkers(){var{points:e}=this,r=e.length-1,t=[];return e.forEach((a,n)=>{n!==r&&t.push([a,a.angleTo(e[n+1])])}),t.length>0&&t.push([e[e.length-1],t[t.length-1][1]]),t}},is=class extends yi{constructor(){super(...arguments),this.type="polygon"}path(e){var r=super.path(e),[{x:t,y:a}]=this.points;return e&&(e.lineTo(t,a),e.closePath()),r}},as=class extends B{constructor(){super(...arguments),this.type="pattern"}createPattern(e,r,t){var a=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),o=new Xe(this.document,null);o.attributes.viewBox=new w(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new w(this.document,"width","".concat(a,"px")),o.attributes.height=new w(this.document,"height","".concat(n,"px")),o.attributes.transform=new w(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(a,n),u=s.getContext("2d"),l=this.getAttribute("x"),h=this.getAttribute("y");l.hasValue()&&h.hasValue()&&u.translate(l.getPixels("x",!0),h.getPixels("y",!0)),t.hasValue()?this.styles["fill-opacity"]=t:Reflect.deleteProperty(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var v=-1;v<=1;v++)u.save(),o.attributes.x=new w(this.document,"x",c*s.width),o.attributes.y=new w(this.document,"y",v*s.height),o.render(u),u.restore();var f=e.createPattern(s,"repeat");return f}},ns=class extends B{constructor(){super(...arguments),this.type="marker"}render(e,r,t){if(r){var{x:a,y:n}=r,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(a,n),o==="auto"&&e.rotate(t),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var u=new Xe(this.document,null);u.type=this.type,u.attributes.viewBox=new w(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new w(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new w(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new w(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new w(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new w(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new w(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new w(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(e),e.restore(),s==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),o==="auto"&&e.rotate(-t),e.translate(-a,-n)}}},ss=class extends B{constructor(){super(...arguments),this.type="defs"}render(){}},Wr=class extends Ce{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var r=new oe;return this.children.forEach(t=>{r.addBoundingBox(t.getBoundingBox(e))}),r}},mi=class extends B{constructor(e,r,t){super(e,r,t),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:a,children:n}=this;n.forEach(o=>{o.type==="stop"&&a.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,r,t){var a=this;this.getHrefAttribute().hasValue()&&(a=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(a));var{stops:n}=a,o=this.getGradient(e,r);if(!o)return this.addParentOpacity(t,n[n.length-1].color);if(n.forEach(y=>{o.addColorStop(y.offset,this.addParentOpacity(t,y.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:l}=s.screen,[h]=l.viewPorts,c=new pi(s,null);c.attributes.x=new w(s,"x",-u/3),c.attributes.y=new w(s,"y",-u/3),c.attributes.width=new w(s,"width",u),c.attributes.height=new w(s,"height",u);var v=new Wr(s,null);v.attributes.transform=new w(s,"transform",this.getAttribute("gradientTransform").getValue()),v.children=[c];var f=new Xe(s,null);f.attributes.x=new w(s,"x",0),f.attributes.y=new w(s,"y",0),f.attributes.width=new w(s,"width",h.width),f.attributes.height=new w(s,"height",h.height),f.children=[v];var g=s.createCanvas(h.width,h.height),p=g.getContext("2d");return p.fillStyle=o,f.render(p),p.createPattern(g,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach(r=>{!this.getAttribute(r).hasValue()&&e.getAttribute(r).hasValue()&&this.getAttribute(r,!0).setValue(e.getAttribute(r).getValue())})}addParentOpacity(e,r){if(e.hasValue()){var t=new w(this.document,"color",r);return t.addOpacity(e).getColor()}return r}},os=class extends mi{constructor(e,r,t){super(e,r,t),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,r){var t=this.getGradientUnits()==="objectBoundingBox",a=t?r.getBoundingBox(e):null;if(t&&!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 n=t?a.x+a.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=t?a.y+a.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=t?a.x+a.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=t?a.y+a.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===s&&o===u?null:e.createLinearGradient(n,o,s,u)}},us=class extends mi{constructor(e,r,t){super(e,r,t),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,r){var t=this.getGradientUnits()==="objectBoundingBox",a=r.getBoundingBox(e);if(t&&!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 n=t?a.x+a.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=t?a.y+a.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=n,u=o;this.getAttribute("fx").hasValue()&&(s=t?a.x+a.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=t?a.y+a.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=t?(a.width+a.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,u,h,n,o,l)}},ls=class extends B{constructor(e,r,t){super(e,r,t),this.type="stop";var a=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);o.getString()===""&&o.setValue("#000"),n.hasValue()&&(o=o.addOpacity(n)),this.offset=a,this.color=o.getColor()}},Qr=class extends B{constructor(e,r,t){super(e,r,t),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.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 w(e,"values",null);var a=this.getAttribute("values");a.hasValue()&&this.values.setValue(a.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),r=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(r,!0):this.parent.getAttribute(r,!0)}calcValue(){var{initialUnits:e}=this,{progress:r,from:t,to:a}=this.getProgress(),n=t.getNumber()+(a.getNumber()-t.getNumber())*r;return e==="%"&&(n*=100),"".concat(n).concat(e)}update(e){var{parent:r}=this,t=this.getProperty();if(this.initialValue||(this.initialValue=t.getString(),this.initialUnits=t.getUnits()),this.duration>this.maxDuration){var a=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(a==="freeze"&&!this.frozen)this.frozen=!0,r.animationFrozen=!0,r.animationFrozenValue=t.getString();else if(a==="remove"&&!this.removed)return this.removed=!0,t.setValue(r.animationFrozen?r.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var n=!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,")")}t.setValue(o),n=!0}return n}getProgress(){var{document:e,values:r}=this,t={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(r.hasValue()){var a=t.progress*(r.getValue().length-1),n=Math.floor(a),o=Math.ceil(a);t.from=new w(e,"from",parseFloat(r.getValue()[n])),t.to=new w(e,"to",parseFloat(r.getValue()[o])),t.progress=(a-n)/(o-n)}else t.from=this.from,t.to=this.to;return t}},hs=class extends Qr{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:r,to:t}=this.getProgress(),a=new ci.default(r.getColor()),n=new ci.default(t.getColor());if(a.ok&&n.ok){var o=a.r+(n.r-a.r)*e,s=a.g+(n.g-a.g)*e,u=a.b+(n.b-a.b)*e;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(s),", ").concat(Math.floor(u),")")}return this.getAttribute("from").getColor()}},cs=class extends Qr{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:r,to:t}=this.getProgress(),a=se(r.getString()),n=se(t.getString()),o=a.map((s,u)=>{var l=n[u];return s+(l-s)*e}).join(" ");return o}},fs=class extends B{constructor(e,r,t){super(e,r,t),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:a}=e,{children:n}=this;for(var o of n)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,typeof this.glyphs[u.unicode]>"u"&&(this.glyphs[u.unicode]=Object.create(null)),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u;break}}}render(){}},vs=class extends B{constructor(e,r,t){super(e,r,t),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}},gs=class extends F{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}},ds=class extends Ye{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var r=e.children[0];if(r)return r.getText()}return""}},ps=class extends Ye{constructor(e,r,t){super(e,r,t),this.type="a";var{childNodes:a}=r,n=a[0],o=a.length>0&&Array.from(a).every(s=>s.nodeType===3);this.hasText=o,this.text=o?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:r,x:t,y:a}=this,{mouse:n}=r.screen,o=new w(r,"fontSize",yr.parse(r.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new oe(t,a-o.getPixels("y"),t+this.measureText(e),a))}else if(this.children.length>0){var s=new Wr(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}};function dg(i,e){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(i);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),r.push.apply(r,t)}return r}function oi(i){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?dg(Object(r),!0).forEach(function(t){ti(i,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):dg(Object(r)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})}return i}var ys=class extends Ye{constructor(e,r,t){super(e,r,t),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(e){var{dataArray:r}=this;e&&e.beginPath(),r.forEach(t=>{var{type:a,points:n}=t;switch(a){case q.LINE_TO:e&&e.lineTo(n[0],n[1]);break;case q.MOVE_TO:e&&e.moveTo(n[0],n[1]);break;case q.CURVE_TO:e&&e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case q.QUAD_TO:e&&e.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case q.ARC:{var[o,s,u,l,h,c,v,f]=n,g=u>l?u:l,p=u>l?1:u/l,y=u>l?l/u:1;e&&(e.translate(o,s),e.rotate(v),e.scale(p,y),e.arc(0,0,g,h,h+c,!!(1-f)),e.scale(1/p,1/y),e.rotate(-v),e.translate(-o,-s));break}case q.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var r=this.parent.getStyle("text-decoration").getString(),t=this.getFontSize(),{glyphInfo:a}=this,n=e.fillStyle;r==="underline"&&e.beginPath(),a.forEach((o,s)=>{var{p0:u,p1:l,rotation:h,text:c}=o;e.save(),e.translate(u.x,u.y),e.rotate(h),e.fillStyle&&e.fillText(c,0,0),e.strokeStyle&&e.strokeText(c,0,0),e.restore(),r==="underline"&&(s===0&&e.moveTo(u.x,u.y+t/8),e.lineTo(l.x,l.y+t/5))}),r==="underline"&&(e.lineWidth=t/20,e.strokeStyle=n,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,r,t,a,n,o,s,u,l){var h=o,c=this.measureText(e,u);u===" "&&r==="justify"&&t<a&&(c+=(a-t)/n),l>-1&&(h+=this.getLetterSpacingAt(l));var v=this.textHeight/20,f=this.getEquidistantPointOnPath(h,v,0),g=this.getEquidistantPointOnPath(h+c,v,0),p={p0:f,p1:g},y=f&&g?Math.atan2(g.y-f.y,g.x-f.x):0;if(s){var m=Math.cos(Math.PI/2+y)*s,T=Math.cos(-y)*s;p.p0=oi(oi({},f),{},{x:f.x+m,y:f.y+T}),p.p1=oi(oi({},g),{},{x:g.x+m,y:g.y+T})}return h+=c,{offset:h,segment:p,rotation:y}}measureText(e,r){var{measuresCache:t}=this,a=r||this.getText();if(t.has(a))return t.get(a);var n=this.measureTargetText(e,a);return t.set(a,n),n}setTextData(e){if(!this.glyphInfo){var r=this.getText(),t=r.split(""),a=r.split(" ").length-1,n=this.parent.getAttribute("dx").split().map(O=>O.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),h=0;!u.hasValue()||u.getValue()==="inherit"?h=l.getPixels():u.hasValue()&&u.getValue()!=="initial"&&u.getValue()!=="unset"&&(h=u.getPixels());var c=[],v=r.length;this.letterSpacingCache=c;for(var f=0;f<v;f++)c.push(typeof n[f]<"u"?n[f]:h);var g=c.reduce((O,E,C)=>C===0?0:O+E||0,0),p=this.measureText(e),y=Math.max(p+g,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var m=this.getPathLength(),T=this.getStyle("startOffset").getNumber(0)*m,x=0;(s==="middle"||s==="center")&&(x=-y/2),(s==="end"||s==="right")&&(x=-y),x+=T,t.forEach((O,E)=>{var{offset:C,segment:S,rotation:A}=this.findSegmentToFitChar(e,s,y,m,a,x,o,O,E);x=C,!(!S.p0||!S.p1)&&this.glyphInfo.push({text:t[E],p0:S.p0,p1:S.p1,rotation:A})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var r=[],{pathParser:t}=e;for(t.reset();!t.isEnd();){var{current:a}=t,n=a?a.x:0,o=a?a.y:0,s=t.next(),u=s.type,l=[];switch(s.type){case q.MOVE_TO:this.pathM(t,l);break;case q.LINE_TO:u=this.pathL(t,l);break;case q.HORIZ_LINE_TO:u=this.pathH(t,l);break;case q.VERT_LINE_TO:u=this.pathV(t,l);break;case q.CURVE_TO:this.pathC(t,l);break;case q.SMOOTH_CURVE_TO:u=this.pathS(t,l);break;case q.QUAD_TO:this.pathQ(t,l);break;case q.SMOOTH_QUAD_TO:u=this.pathT(t,l);break;case q.ARC:l=this.pathA(t);break;case q.CLOSE_PATH:F.pathZ(t);break}s.type!==q.CLOSE_PATH?r.push({type:u,points:l,start:{x:n,y:o},pathLength:this.calcLength(n,o,u,l)}):r.push({type:q.CLOSE_PATH,points:[],pathLength:0})}return r}pathM(e,r){var{x:t,y:a}=F.pathM(e).point;r.push(t,a)}pathL(e,r){var{x:t,y:a}=F.pathL(e).point;return r.push(t,a),q.LINE_TO}pathH(e,r){var{x:t,y:a}=F.pathH(e).point;return r.push(t,a),q.LINE_TO}pathV(e,r){var{x:t,y:a}=F.pathV(e).point;return r.push(t,a),q.LINE_TO}pathC(e,r){var{point:t,controlPoint:a,currentPoint:n}=F.pathC(e);r.push(t.x,t.y,a.x,a.y,n.x,n.y)}pathS(e,r){var{point:t,controlPoint:a,currentPoint:n}=F.pathS(e);return r.push(t.x,t.y,a.x,a.y,n.x,n.y),q.CURVE_TO}pathQ(e,r){var{controlPoint:t,currentPoint:a}=F.pathQ(e);r.push(t.x,t.y,a.x,a.y)}pathT(e,r){var{controlPoint:t,currentPoint:a}=F.pathT(e);return r.push(t.x,t.y,a.x,a.y),q.QUAD_TO}pathA(e){var{rX:r,rY:t,sweepFlag:a,xAxisRotation:n,centp:o,a1:s,ad:u}=F.pathA(e);return a===0&&u>0&&(u-=2*Math.PI),a===1&&u<0&&(u+=2*Math.PI),[o.x,o.y,r,t,s,u,n,a]}calcLength(e,r,t,a){var n=0,o=null,s=null,u=0;switch(t){case q.LINE_TO:return this.getLineLength(e,r,a[0],a[1]);case q.CURVE_TO:for(n=0,o=this.getPointOnCubicBezier(0,e,r,a[0],a[1],a[2],a[3],a[4],a[5]),u=.01;u<=1;u+=.01)s=this.getPointOnCubicBezier(u,e,r,a[0],a[1],a[2],a[3],a[4],a[5]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case q.QUAD_TO:for(n=0,o=this.getPointOnQuadraticBezier(0,e,r,a[0],a[1],a[2],a[3]),u=.01;u<=1;u+=.01)s=this.getPointOnQuadraticBezier(u,e,r,a[0],a[1],a[2],a[3]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case q.ARC:{n=0;var l=a[4],h=a[5],c=a[4]+h,v=Math.PI/180;if(Math.abs(l-c)<v&&(v=Math.abs(l-c)),o=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],l,0),h<0)for(u=l-v;u>c;u-=v)s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],u,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(u=l+v;u<c;u+=v)s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],u,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],c,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),n}}return 0}getPointOnLine(e,r,t,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:r,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:t,u=(n-t)/(a-r+pr),l=Math.sqrt(e*e/(1+u*u));a<r&&(l*=-1);var h=u*l,c=null;if(a===r)c={x:o,y:s+h};else if((s-t)/(o-r+pr)===u)c={x:o+l,y:s+h};else{var v=0,f=0,g=this.getLineLength(r,t,a,n);if(g<pr)return null;var p=(o-r)*(a-r)+(s-t)*(n-t);p/=g*g,v=r+p*(a-r),f=t+p*(n-t);var y=this.getLineLength(o,s,v,f),m=Math.sqrt(e*e-y*y);l=Math.sqrt(m*m/(1+u*u)),a<r&&(l*=-1),h=u*l,c={x:v+l,y:f+h}}return c}getPointOnPath(e){var r=this.getPathLength(),t=0,a=null;if(e<-5e-5||e-5e-5>r)return null;var{dataArray:n}=this;for(var o of n){if(o&&(o.pathLength<5e-5||t+o.pathLength+5e-5<e)){t+=o.pathLength;continue}var s=e-t,u=0;switch(o.type){case q.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 q.ARC:{var l=o.points[4],h=o.points[5],c=o.points[4]+h;if(u=l+s/o.pathLength*h,h<0&&u<c||h>=0&&u>c)break;a=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break}case q.CURVE_TO:u=s/o.pathLength,u>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 q.QUAD_TO:u=s/o.pathLength,u>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]);break}if(a)return a;break}return null}getLineLength(e,r,t,a){return Math.sqrt((t-e)*(t-e)+(a-r)*(a-r))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,r)=>r.pathLength>0?e+r.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,r,t,a,n,o,s,u,l){var h=u*sg(e)+o*og(e)+a*ug(e)+r*lg(e),c=l*sg(e)+s*og(e)+n*ug(e)+t*lg(e);return{x:h,y:c}}getPointOnQuadraticBezier(e,r,t,a,n,o,s){var u=o*hg(e)+a*cg(e)+r*fg(e),l=s*hg(e)+n*cg(e)+t*fg(e);return{x:u,y:l}}getPointOnEllipticalArc(e,r,t,a,n,o){var s=Math.cos(o),u=Math.sin(o),l={x:t*Math.cos(n),y:a*Math.sin(n)};return{x:e+(l.x*s-l.y*u),y:r+(l.x*u+l.y*s)}}buildEquidistantCache(e,r){var t=this.getPathLength(),a=r||.25,n=e||t/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==a){this.equidistantCache={step:n,precision:a,points:[]};for(var o=0,s=0;s<=t;s+=a){var u=this.getPointOnPath(s),l=this.getPointOnPath(s+a);!u||!l||(o+=this.getLineLength(u.x,u.y,l.x,l.y),o>=n&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:s}),o-=n))}}}getEquidistantPointOnPath(e,r,t){if(this.buildEquidistantCache(r,t),e<0||e-this.getPathLength()>5e-5)return null;var a=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[a]||null}},wO=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,ms=class extends Ce{constructor(e,r,t){super(e,r,t),this.type="image",this.loaded=!1;var a=this.getHrefAttribute().getString();if(a){var n=a.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(a);e.images.push(this),n?this.loadSvg(a):this.loadImage(a),this.isSvg=n}}loadImage(e){var r=this;return xe(function*(){try{var t=yield r.document.createImage(e);r.image=t}catch(a){console.error('Error while loading image "'.concat(e,'":'),a)}r.loaded=!0})()}loadSvg(e){var r=this;return xe(function*(){var t=wO.exec(e);if(t){var a=t[5];t[4]==="base64"?r.image=atob(a):r.image=decodeURIComponent(a)}else try{var n=yield r.document.fetch(e),o=yield n.text();r.image=o}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}r.loaded=!0})()}renderChildren(e){var{document:r,image:t,loaded:a}=this,n=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||!t||!s||!u)){if(e.save(),e.translate(n,o),this.isSvg){var l=r.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:u});l.document.documentElement.parent=this,l.render()}else{var h=this.image;r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:h.width,height:u,desiredHeight:h.height}),this.loaded&&(typeof h.complete>"u"||h.complete)&&e.drawImage(h,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),t=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");return new oe(e,r,e+t,r+a)}},bs=class extends Ce{constructor(){super(...arguments),this.type="symbol"}render(e){}},xs=class{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,r){var t=this;return xe(function*(){try{var{document:a}=t,n=yield a.canvg.parser.load(r),o=n.getElementsByTagName("font");Array.from(o).forEach(s=>{var u=a.createElement(s);a.definitions[e]=u})}catch(s){console.error('Error while loading font "'.concat(r,'":'),s)}t.loaded=!0})()}},CO=(()=>{class i extends B{constructor(r,t,a){super(r,t,a),this.type="style";var n=mr(Array.from(t.childNodes).map(s=>s.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),o=n.split("}");o.forEach(s=>{var u=s.trim();if(u){var l=u.split("{"),h=l[0].split(","),c=l[1].split(";");h.forEach(v=>{var f=v.trim();if(f){var g=r.styles[f]||{};if(c.forEach(m=>{var T=m.indexOf(":"),x=m.substr(0,T).trim(),O=m.substr(T+1,m.length-T).trim();x&&O&&(g[x]=new w(r,x,O))}),r.styles[f]=g,r.stylesSpecificity[f]=pO(f),f==="@font-face"){var p=g["font-family"].getString().replace(/"|'/g,""),y=g.src.getString().split(",");y.forEach(m=>{if(m.indexOf('format("svg")')>0){var T=ig(m);T&&new xs(r).load(p,T)}})}}})}})}}return i.parseExternalUrl=ig,i})(),Ts=class extends Ce{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var r=this.getAttribute("x"),t=this.getAttribute("y");r.hasValue()&&e.translate(r.getPixels("x"),0),t.hasValue()&&e.translate(0,t.getPixels("y"))}path(e){var{element:r}=this;r&&r.path(e)}renderChildren(e){var{document:r,element:t}=this;if(t){var a=t;if(t.type==="symbol"&&(a=new Xe(r,null),a.attributes.viewBox=new w(r,"viewBox",t.getAttribute("viewBox").getString()),a.attributes.preserveAspectRatio=new w(r,"preserveAspectRatio",t.getAttribute("preserveAspectRatio").getString()),a.attributes.overflow=new w(r,"overflow",t.getAttribute("overflow").getString()),a.children=t.children,t.styles.opacity=new w(r,"opacity",this.calculateOpacity())),a.type==="svg"){var n=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);n.hasValue()&&(a.attributes.width=new w(r,"width",n.getString())),o.hasValue()&&(a.attributes.height=new w(r,"height",o.getString()))}var s=a.parent;a.parent=this,a.render(e),a.parent=s}}getBoundingBox(e){var{element:r}=this;return r?r.getBoundingBox(e):null}elementTransform(){var{document:e,element:r}=this;return Rs.fromElement(e,r)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}};function ui(i,e,r,t,a,n){return i[r*t*4+e*4+n]}function li(i,e,r,t,a,n,o){i[r*t*4+e*4+n]=o}function j(i,e,r){var t=i[e];return t*r}function we(i,e,r,t){return e+Math.cos(i)*r+Math.sin(i)*t}var bi=class extends B{constructor(e,r,t){super(e,r,t),this.type="feColorMatrix";var a=se(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var n=a[0];a=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var o=a[0]*Math.PI/180;a=[we(o,.213,.787,-.213),we(o,.715,-.715,-.715),we(o,.072,-.072,.928),0,0,we(o,.213,-.213,.143),we(o,.715,.285,.14),we(o,.072,-.072,-.283),0,0,we(o,.213,-.213,-.787),we(o,.715,-.715,.715),we(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];break}this.matrix=a,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,r,t,a,n){for(var{includeOpacity:o,matrix:s}=this,u=e.getImageData(0,0,a,n),l=0;l<n;l++)for(var h=0;h<a;h++){var c=ui(u.data,h,l,a,n,0),v=ui(u.data,h,l,a,n,1),f=ui(u.data,h,l,a,n,2),g=ui(u.data,h,l,a,n,3),p=j(s,0,c)+j(s,1,v)+j(s,2,f)+j(s,3,g)+j(s,4,1),y=j(s,5,c)+j(s,6,v)+j(s,7,f)+j(s,8,g)+j(s,9,1),m=j(s,10,c)+j(s,11,v)+j(s,12,f)+j(s,13,g)+j(s,14,1),T=j(s,15,c)+j(s,16,v)+j(s,17,f)+j(s,18,g)+j(s,19,1);o&&(p=0,y=0,m=0,T*=g/255),li(u.data,h,l,a,n,0,p),li(u.data,h,l,a,n,1,y),li(u.data,h,l,a,n,2,m),li(u.data,h,l,a,n,3,T)}e.clearRect(0,0,a,n),e.putImageData(u,0,0)}},qO=(()=>{class i extends B{constructor(){super(...arguments),this.type="mask"}apply(r,t){var{document:a}=this,n=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 l=new oe;this.children.forEach(p=>{l.addBoundingBox(p.getBoundingBox(r))}),n=Math.floor(l.x1),o=Math.floor(l.y1),s=Math.floor(l.width),u=Math.floor(l.height)}var h=this.removeStyles(t,i.ignoreStyles),c=a.createCanvas(n+s,o+u),v=c.getContext("2d");a.screen.setDefaults(v),this.renderChildren(v),new bi(a,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(v,0,0,n+s,o+u);var f=a.createCanvas(n+s,o+u),g=f.getContext("2d");a.screen.setDefaults(g),t.render(g),g.globalCompositeOperation="destination-in",g.fillStyle=v.createPattern(c,"no-repeat"),g.fillRect(0,0,n+s,o+u),r.fillStyle=g.createPattern(f,"no-repeat"),r.fillRect(0,0,n+s,o+u),this.restoreStyles(t,h)}render(r){}}return i.ignoreStyles=["mask","transform","clip-path"],i})(),pg=()=>{},Os=class extends B{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:r}=this,t=Reflect.getPrototypeOf(e),{beginPath:a,closePath:n}=e;t&&(t.beginPath=pg,t.closePath=pg),Reflect.apply(a,e,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?o.elementTransform():null;s||(s=Rs.fromElement(r,o)),s&&s.apply(e),o.path(e),t&&(t.closePath=n),s&&s.unapply(e)}}),Reflect.apply(n,e,[]),e.clip(),t&&(t.beginPath=a,t.closePath=n)}render(e){}},AO=(()=>{class i extends B{constructor(){super(...arguments),this.type="filter"}apply(r,t){var{document:a,children:n}=this,o=t.getBoundingBox(r);if(o){var s=0,u=0;n.forEach(T=>{var x=T.extraFilterDistance||0;s=Math.max(s,x),u=Math.max(u,x)});var l=Math.floor(o.width),h=Math.floor(o.height),c=l+2*s,v=h+2*u;if(!(c<1||v<1)){var f=Math.floor(o.x),g=Math.floor(o.y),p=this.removeStyles(t,i.ignoreStyles),y=a.createCanvas(c,v),m=y.getContext("2d");a.screen.setDefaults(m),m.translate(-f+s,-g+u),t.render(m),n.forEach(T=>{typeof T.apply=="function"&&T.apply(m,0,0,c,v)}),r.drawImage(y,0,0,c,v,f-s,g-u,c,v),this.restoreStyles(t,p)}}}render(r){}}return i.ignoreStyles=["filter","transform","clip-path"],i})(),Ss=class extends B{constructor(e,r,t){super(e,r,t),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,r,t,a,n){}},Es=class extends B{constructor(){super(...arguments),this.type="feMorphology"}apply(e,r,t,a,n){}},ws=class extends B{constructor(){super(...arguments),this.type="feComposite"}apply(e,r,t,a,n){}},Cs=class extends B{constructor(e,r,t){super(e,r,t),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,r,t,a,n){var{document:o,blurRadius:s}=this,u=o.window?o.window.document.body:null,l=e.canvas;l.id=o.getUniqueId(),u&&(l.style.display="none",u.appendChild(l)),tg(l,r,t,a,n,s),u&&u.removeChild(l)}},qs=class extends B{constructor(){super(...arguments),this.type="title"}},As=class extends B{constructor(){super(...arguments),this.type="desc"}},PO={svg:Xe,rect:pi,circle:es,ellipse:rs,line:ts,polyline:yi,polygon:is,path:F,pattern:as,marker:ns,defs:ss,linearGradient:os,radialGradient:us,stop:ls,animate:Qr,animateColor:hs,animateTransform:cs,font:fs,"font-face":vs,"missing-glyph":gs,glyph:gi,text:Ye,tspan:di,tref:ds,a:ps,textPath:ys,image:ms,g:Wr,symbol:bs,style:CO,use:Ts,mask:qO,clipPath:Os,filter:AO,feDropShadow:Ss,feMorphology:Es,feComposite:ws,feColorMatrix:bi,feGaussianBlur:Cs,title:qs,desc:As};function yg(i,e){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(i);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),r.push.apply(r,t)}return r}function RO(i){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?yg(Object(r),!0).forEach(function(t){ti(i,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):yg(Object(r)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})}return i}function NO(i,e){var r=document.createElement("canvas");return r.width=i,r.height=e,r}function IO(i){return Ps.apply(this,arguments)}function Ps(){return Ps=xe(function*(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=document.createElement("img");return e&&(r.crossOrigin="Anonymous"),new Promise((t,a)=>{r.onload=()=>{t(r)},r.onerror=(n,o,s,u,l)=>{a(l)},r.src=i})}),Ps.apply(this,arguments)}var MO=(()=>{class i{constructor(r){var{rootEmSize:t=12,emSize:a=12,createCanvas:n=i.createCanvas,createImage:o=i.createImage,anonymousCrossOrigin:s}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=r,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=r.screen,this.rootEmSize=t,this.emSize=a,this.createCanvas=n,this.createImage=this.bindCreateImage(o,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(r,t){return typeof t=="boolean"?(a,n)=>r(a,typeof n=="boolean"?n:t):r}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:r}=this;return r[r.length-1]}set emSize(r){var{emSizeStack:t}=this;t.push(r)}popEmSize(){var{emSizeStack:r}=this;r.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(r=>r.loaded)}isFontsLoaded(){return this.fonts.every(r=>r.loaded)}createDocumentElement(r){var t=this.createElement(r.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(r){var t=r.nodeName.replace(/^[^:]+:/,""),a=i.elementTypes[t];return typeof a<"u"?new a(this,r):new Zn(this,r)}createTextNode(r){return new Jn(this,r)}setViewBox(r){this.screen.setViewBox(RO({document:this},r))}}return i.createCanvas=NO,i.createImage=IO,i.elementTypes=PO,i})();function mg(i,e){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(i);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),r.push.apply(r,t)}return r}function He(i){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?mg(Object(r),!0).forEach(function(t){ti(i,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):mg(Object(r)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})}return i}var bg=class i{constructor(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Xr(t),this.screen=new xg(e,t),this.options=t;var a=new MO(this,t),n=a.createDocumentElement(r);this.document=a,this.documentElement=n}static from(e,r){var t=arguments;return xe(function*(){var a=t.length>2&&t[2]!==void 0?t[2]:{},n=new Xr(a),o=yield n.parse(r);return new i(e,o,a)})()}static fromString(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=new Xr(t),n=a.parseFromString(r);return new i(e,n,t)}fork(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return i.from(e,r,He(He({},this.options),t))}forkString(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return i.fromString(e,r,He(He({},this.options),t))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,r=this;return xe(function*(){var t=e.length>0&&e[0]!==void 0?e[0]:{};r.start(He({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},t)),yield r.ready(),r.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:r,screen:t,options:a}=this;t.start(r,He(He({enableRedraw:!0},a),e))}stop(){this.screen.stop()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,r,t)}};export{ps as AElement,hs as AnimateColorElement,Qr as AnimateElement,cs as AnimateTransformElement,oe as BoundingBox,sg as CB1,og as CB2,ug as CB3,lg as CB4,bg as Canvg,es as CircleElement,Os as ClipPathElement,ss as DefsElement,As as DescElement,MO as Document,B as Element,rs as EllipseElement,bi as FeColorMatrixElement,ws as FeCompositeElement,Ss as FeDropShadowElement,Cs as FeGaussianBlurElement,Es as FeMorphologyElement,AO as FilterElement,yr as Font,fs as FontElement,vs as FontFaceElement,Wr as GElement,gi as GlyphElement,mi as GradientElement,ms as ImageElement,ts as LineElement,os as LinearGradientElement,ns as MarkerElement,qO as MaskElement,fi as Matrix,gs as MissingGlyphElement,Hn as Mouse,pr as PSEUDO_ZERO,Xr as Parser,F as PathElement,q as PathParser,as as PatternElement,$ as Point,is as PolygonElement,yi as PolylineElement,w as Property,hg as QB1,cg as QB2,fg as QB3,us as RadialGradientElement,pi as RectElement,Ce as RenderedElement,Xn as Rotate,Xe as SVGElement,xs as SVGFontLoader,Wn as Scale,xg as Screen,vi as Skew,Qn as SkewX,Kn as SkewY,ls as StopElement,CO as StyleElement,bs as SymbolElement,ds as TRefElement,di as TSpanElement,Ye as TextElement,ys as TextPathElement,qs as TitleElement,Rs as Transform,Yn as Translate,Zn as UnknownElement,Ts as UseElement,Gn as ViewPort,mr as compressSpaces,bg as default,pO as getSelectorSpecificity,oO as normalizeAttributeName,uO as normalizeColor,ig as parseExternalUrl,NC as presets,se as toNumbers,aO as trimLeft,nO as trimRight,ag as vectorMagnitude,ng as vectorsAngle,$n as vectorsRatio};
@@ -0,0 +1,2 @@
1
+ import"./chunk-H5HZ6YB3.js";var{entries:_t,setPrototypeOf:ct,isFrozen:Yt,getPrototypeOf:Xt,getOwnPropertyDescriptor:jt}=Object,{freeze:S,seal:y,create:ve}=Object,{apply:ke,construct:Ue}=typeof Reflect<"u"&&Reflect;S||(S=function(o){return o});y||(y=function(o){return o});ke||(ke=function(o,l){for(var a=arguments.length,c=new Array(a>2?a-2:0),O=2;O<a;O++)c[O-2]=arguments[O];return o.apply(l,c)});Ue||(Ue=function(o){for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return new o(...a)});var ce=R(Array.prototype.forEach),Vt=R(Array.prototype.lastIndexOf),ft=R(Array.prototype.pop),q=R(Array.prototype.push),$t=R(Array.prototype.splice),ue=R(String.prototype.toLowerCase),Ie=R(String.prototype.toString),Ce=R(String.prototype.match),K=R(String.prototype.replace),qt=R(String.prototype.indexOf),Kt=R(String.prototype.trim),L=R(Object.prototype.hasOwnProperty),h=R(RegExp.prototype.test),Z=Zt(TypeError);function R(s){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return ke(s,o,a)}}function Zt(s){return function(){for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return Ue(s,l)}}function r(s,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ue;ct&&ct(s,null);let a=o.length;for(;a--;){let c=o[a];if(typeof c=="string"){let O=l(c);O!==c&&(Yt(o)||(o[a]=O),c=O)}s[c]=!0}return s}function Jt(s){for(let o=0;o<s.length;o++)L(s,o)||(s[o]=null);return s}function I(s){let o=ve(null);for(let[l,a]of _t(s))L(s,l)&&(Array.isArray(a)?o[l]=Jt(a):a&&typeof a=="object"&&a.constructor===Object?o[l]=I(a):o[l]=a);return o}function J(s,o){for(;s!==null;){let a=jt(s,o);if(a){if(a.get)return R(a.get);if(typeof a.value=="function")return R(a.value)}s=Xt(s)}function l(){return null}return l}var ut=S(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Me=S(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),we=S(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Qt=S(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),xe=S(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),en=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mt=S(["#text"]),pt=S(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Pe=S(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),dt=S(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fe=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tn=y(/\{\{[\w\W]*|[\w\W]*\}\}/gm),nn=y(/<%[\w\W]*|[\w\W]*%>/gm),on=y(/\$\{[\w\W]*/gm),an=y(/^data-[\-\w.\u00B7-\uFFFF]+$/),rn=y(/^aria-[\-\w]+$/),gt=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sn=y(/^(?:\w+script|data):/i),ln=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),At=y(/^html$/i),cn=y(/^[a-z][.\w]*(-[.\w]+)+$/i),Tt=Object.freeze({__proto__:null,ARIA_ATTR:rn,ATTR_WHITESPACE:ln,CUSTOM_ELEMENT:cn,DATA_ATTR:an,DOCTYPE_NAME:At,ERB_EXPR:nn,IS_ALLOWED_URI:gt,IS_SCRIPT_OR_DATA:sn,MUSTACHE_EXPR:tn,TMPLIT_EXPR:on}),Q={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},fn=function(){return typeof window>"u"?null:window},un=function(o,l){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let a=null,c="data-tt-policy-suffix";l&&l.hasAttribute(c)&&(a=l.getAttribute(c));let O="dompurify"+(a?"#"+a:"");try{return o.createPolicy(O,{createHTML(v){return v},createScriptURL(v){return v}})}catch{return console.warn("TrustedTypes policy "+O+" could not be created."),null}},Et=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ht(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fn(),o=i=>ht(i);if(o.version="3.3.1",o.removed=[],!s||!s.document||s.document.nodeType!==Q.document||!s.Element)return o.isSupported=!1,o;let{document:l}=s,a=l,c=a.currentScript,{DocumentFragment:O,HTMLTemplateElement:v,Node:me,Element:Fe,NodeFilter:B,NamedNodeMap:St=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:Rt,DOMParser:Ot,trustedTypes:ee}=s,Y=Fe.prototype,Dt=J(Y,"cloneNode"),yt=J(Y,"remove"),Lt=J(Y,"nextSibling"),bt=J(Y,"childNodes"),te=J(Y,"parentNode");if(typeof v=="function"){let i=l.createElement("template");i.content&&i.content.ownerDocument&&(l=i.content.ownerDocument)}let g,X="",{implementation:pe,createNodeIterator:Nt,createDocumentFragment:It,getElementsByTagName:Ct}=l,{importNode:Mt}=a,A=Et();o.isSupported=typeof _t=="function"&&typeof te=="function"&&pe&&pe.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:de,ERB_EXPR:Te,TMPLIT_EXPR:Ee,DATA_ATTR:wt,ARIA_ATTR:xt,IS_SCRIPT_OR_DATA:Pt,ATTR_WHITESPACE:He,CUSTOM_ELEMENT:vt}=Tt,{IS_ALLOWED_URI:ze}=Tt,d=null,Ge=r({},[...ut,...Me,...we,...xe,...mt]),T=null,We=r({},[...pt,...Pe,...dt,...fe]),u=Object.seal(ve(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),j=null,_e=null,k=Object.seal(ve(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Be=!0,ge=!0,Ye=!1,Xe=!0,U=!1,ne=!0,x=!1,Ae=!1,he=!1,F=!1,oe=!1,ie=!1,je=!0,Ve=!1,kt="user-content-",Se=!0,V=!1,H={},b=null,Re=r({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),$e=null,qe=r({},["audio","video","img","source","image","track"]),Oe=null,Ke=r({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ae="http://www.w3.org/1998/Math/MathML",re="http://www.w3.org/2000/svg",C="http://www.w3.org/1999/xhtml",z=C,De=!1,ye=null,Ut=r({},[ae,re,C],Ie),se=r({},["mi","mo","mn","ms","mtext"]),le=r({},["annotation-xml"]),Ft=r({},["title","style","font","a","script"]),$=null,Ht=["application/xhtml+xml","text/html"],zt="text/html",p=null,G=null,Gt=l.createElement("form"),Ze=function(e){return e instanceof RegExp||e instanceof Function},Le=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(G&&G===e)){if((!e||typeof e!="object")&&(e={}),e=I(e),$=Ht.indexOf(e.PARSER_MEDIA_TYPE)===-1?zt:e.PARSER_MEDIA_TYPE,p=$==="application/xhtml+xml"?Ie:ue,d=L(e,"ALLOWED_TAGS")?r({},e.ALLOWED_TAGS,p):Ge,T=L(e,"ALLOWED_ATTR")?r({},e.ALLOWED_ATTR,p):We,ye=L(e,"ALLOWED_NAMESPACES")?r({},e.ALLOWED_NAMESPACES,Ie):Ut,Oe=L(e,"ADD_URI_SAFE_ATTR")?r(I(Ke),e.ADD_URI_SAFE_ATTR,p):Ke,$e=L(e,"ADD_DATA_URI_TAGS")?r(I(qe),e.ADD_DATA_URI_TAGS,p):qe,b=L(e,"FORBID_CONTENTS")?r({},e.FORBID_CONTENTS,p):Re,j=L(e,"FORBID_TAGS")?r({},e.FORBID_TAGS,p):I({}),_e=L(e,"FORBID_ATTR")?r({},e.FORBID_ATTR,p):I({}),H=L(e,"USE_PROFILES")?e.USE_PROFILES:!1,Be=e.ALLOW_ARIA_ATTR!==!1,ge=e.ALLOW_DATA_ATTR!==!1,Ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Xe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,U=e.SAFE_FOR_TEMPLATES||!1,ne=e.SAFE_FOR_XML!==!1,x=e.WHOLE_DOCUMENT||!1,F=e.RETURN_DOM||!1,oe=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,je=e.SANITIZE_DOM!==!1,Ve=e.SANITIZE_NAMED_PROPS||!1,Se=e.KEEP_CONTENT!==!1,V=e.IN_PLACE||!1,ze=e.ALLOWED_URI_REGEXP||gt,z=e.NAMESPACE||C,se=e.MATHML_TEXT_INTEGRATION_POINTS||se,le=e.HTML_INTEGRATION_POINTS||le,u=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ze(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ze(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),U&&(ge=!1),oe&&(F=!0),H&&(d=r({},mt),T=[],H.html===!0&&(r(d,ut),r(T,pt)),H.svg===!0&&(r(d,Me),r(T,Pe),r(T,fe)),H.svgFilters===!0&&(r(d,we),r(T,Pe),r(T,fe)),H.mathMl===!0&&(r(d,xe),r(T,dt),r(T,fe))),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?k.tagCheck=e.ADD_TAGS:(d===Ge&&(d=I(d)),r(d,e.ADD_TAGS,p))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?k.attributeCheck=e.ADD_ATTR:(T===We&&(T=I(T)),r(T,e.ADD_ATTR,p))),e.ADD_URI_SAFE_ATTR&&r(Oe,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(b===Re&&(b=I(b)),r(b,e.FORBID_CONTENTS,p)),e.ADD_FORBID_CONTENTS&&(b===Re&&(b=I(b)),r(b,e.ADD_FORBID_CONTENTS,p)),Se&&(d["#text"]=!0),x&&r(d,["html","head","body"]),d.table&&(r(d,["tbody"]),delete j.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=e.TRUSTED_TYPES_POLICY,X=g.createHTML("")}else g===void 0&&(g=un(ee,c)),g!==null&&typeof X=="string"&&(X=g.createHTML(""));S&&S(e),G=e}},Je=r({},[...Me,...we,...Qt]),Qe=r({},[...xe,...en]),Wt=function(e){let t=te(e);(!t||!t.tagName)&&(t={namespaceURI:z,tagName:"template"});let n=ue(e.tagName),f=ue(t.tagName);return ye[e.namespaceURI]?e.namespaceURI===re?t.namespaceURI===C?n==="svg":t.namespaceURI===ae?n==="svg"&&(f==="annotation-xml"||se[f]):!!Je[n]:e.namespaceURI===ae?t.namespaceURI===C?n==="math":t.namespaceURI===re?n==="math"&&le[f]:!!Qe[n]:e.namespaceURI===C?t.namespaceURI===re&&!le[f]||t.namespaceURI===ae&&!se[f]?!1:!Qe[n]&&(Ft[n]||!Je[n]):!!($==="application/xhtml+xml"&&ye[e.namespaceURI]):!1},N=function(e){q(o.removed,{element:e});try{te(e).removeChild(e)}catch{yt(e)}},P=function(e,t){try{q(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{q(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(F||oe)try{N(t)}catch{}else try{t.setAttribute(e,"")}catch{}},et=function(e){let t=null,n=null;if(he)e="<remove></remove>"+e;else{let m=Ce(e,/^[\r\n\t ]+/);n=m&&m[0]}$==="application/xhtml+xml"&&z===C&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let f=g?g.createHTML(e):e;if(z===C)try{t=new Ot().parseFromString(f,$)}catch{}if(!t||!t.documentElement){t=pe.createDocument(z,"template",null);try{t.documentElement.innerHTML=De?X:f}catch{}}let _=t.body||t.documentElement;return e&&n&&_.insertBefore(l.createTextNode(n),_.childNodes[0]||null),z===C?Ct.call(t,x?"html":"body")[0]:x?t.documentElement:_},tt=function(e){return Nt.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},be=function(e){return e instanceof Rt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof St)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},nt=function(e){return typeof me=="function"&&e instanceof me};function M(i,e,t){ce(i,n=>{n.call(o,e,t,G)})}let ot=function(e){let t=null;if(M(A.beforeSanitizeElements,e,null),be(e))return N(e),!0;let n=p(e.nodeName);if(M(A.uponSanitizeElement,e,{tagName:n,allowedTags:d}),ne&&e.hasChildNodes()&&!nt(e.firstElementChild)&&h(/<[/\w!]/g,e.innerHTML)&&h(/<[/\w!]/g,e.textContent)||e.nodeType===Q.progressingInstruction||ne&&e.nodeType===Q.comment&&h(/<[/\w]/g,e.data))return N(e),!0;if(!(k.tagCheck instanceof Function&&k.tagCheck(n))&&(!d[n]||j[n])){if(!j[n]&&at(n)&&(u.tagNameCheck instanceof RegExp&&h(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n)))return!1;if(Se&&!b[n]){let f=te(e)||e.parentNode,_=bt(e)||e.childNodes;if(_&&f){let m=_.length;for(let D=m-1;D>=0;--D){let w=Dt(_[D],!0);w.__removalCount=(e.__removalCount||0)+1,f.insertBefore(w,Lt(e))}}}return N(e),!0}return e instanceof Fe&&!Wt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&h(/<\/no(script|embed|frames)/i,e.innerHTML)?(N(e),!0):(U&&e.nodeType===Q.text&&(t=e.textContent,ce([de,Te,Ee],f=>{t=K(t,f," ")}),e.textContent!==t&&(q(o.removed,{element:e.cloneNode()}),e.textContent=t)),M(A.afterSanitizeElements,e,null),!1)},it=function(e,t,n){if(je&&(t==="id"||t==="name")&&(n in l||n in Gt))return!1;if(!(ge&&!_e[t]&&h(wt,t))){if(!(Be&&h(xt,t))){if(!(k.attributeCheck instanceof Function&&k.attributeCheck(t,e))){if(!T[t]||_e[t]){if(!(at(e)&&(u.tagNameCheck instanceof RegExp&&h(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))&&(u.attributeNameCheck instanceof RegExp&&h(u.attributeNameCheck,t)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(t,e))||t==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&h(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n))))return!1}else if(!Oe[t]){if(!h(ze,K(n,He,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&qt(n,"data:")===0&&$e[e])){if(!(Ye&&!h(Pt,K(n,He,"")))){if(n)return!1}}}}}}}return!0},at=function(e){return e!=="annotation-xml"&&Ce(e,vt)},rt=function(e){M(A.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||be(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:T,forceKeepAttr:void 0},f=t.length;for(;f--;){let _=t[f],{name:m,namespaceURI:D,value:w}=_,W=p(m),Ne=w,E=m==="value"?Ne:Kt(Ne);if(n.attrName=W,n.attrValue=E,n.keepAttr=!0,n.forceKeepAttr=void 0,M(A.uponSanitizeAttribute,e,n),E=n.attrValue,Ve&&(W==="id"||W==="name")&&(P(m,e),E=kt+E),ne&&h(/((--!?|])>)|<\/(style|title|textarea)/i,E)){P(m,e);continue}if(W==="attributename"&&Ce(E,"href")){P(m,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){P(m,e);continue}if(!Xe&&h(/\/>/i,E)){P(m,e);continue}U&&ce([de,Te,Ee],lt=>{E=K(E,lt," ")});let st=p(e.nodeName);if(!it(st,W,E)){P(m,e);continue}if(g&&typeof ee=="object"&&typeof ee.getAttributeType=="function"&&!D)switch(ee.getAttributeType(st,W)){case"TrustedHTML":{E=g.createHTML(E);break}case"TrustedScriptURL":{E=g.createScriptURL(E);break}}if(E!==Ne)try{D?e.setAttributeNS(D,m,E):e.setAttribute(m,E),be(e)?N(e):ft(o.removed)}catch{P(m,e)}}M(A.afterSanitizeAttributes,e,null)},Bt=function i(e){let t=null,n=tt(e);for(M(A.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)M(A.uponSanitizeShadowNode,t,null),ot(t),rt(t),t.content instanceof O&&i(t.content);M(A.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,f=null,_=null;if(De=!i,De&&(i="<!-->"),typeof i!="string"&&!nt(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw Z("dirty is not a string, aborting")}else throw Z("toString is not a function");if(!o.isSupported)return i;if(Ae||Le(e),o.removed=[],typeof i=="string"&&(V=!1),V){if(i.nodeName){let w=p(i.nodeName);if(!d[w]||j[w])throw Z("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof me)t=et("<!---->"),n=t.ownerDocument.importNode(i,!0),n.nodeType===Q.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!F&&!U&&!x&&i.indexOf("<")===-1)return g&&ie?g.createHTML(i):i;if(t=et(i),!t)return F?null:ie?X:""}t&&he&&N(t.firstChild);let m=tt(V?i:t);for(;f=m.nextNode();)ot(f),rt(f),f.content instanceof O&&Bt(f.content);if(V)return i;if(F){if(oe)for(_=It.call(t.ownerDocument);t.firstChild;)_.appendChild(t.firstChild);else _=t;return(T.shadowroot||T.shadowrootmode)&&(_=Mt.call(a,_,!0)),_}let D=x?t.outerHTML:t.innerHTML;return x&&d["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&h(At,t.ownerDocument.doctype.name)&&(D="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
2
+ `+D),U&&ce([de,Te,Ee],w=>{D=K(D,w," ")}),g&&ie?g.createHTML(D):D},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Le(i),Ae=!0},o.clearConfig=function(){G=null,Ae=!1},o.isValidAttribute=function(i,e,t){G||Le({});let n=p(i),f=p(e);return it(n,f,t)},o.addHook=function(i,e){typeof e=="function"&&q(A[i],e)},o.removeHook=function(i,e){if(e!==void 0){let t=Vt(A[i],e);return t===-1?void 0:$t(A[i],t,1)[0]}return ft(A[i])},o.removeHooks=function(i){A[i]=[]},o.removeAllHooks=function(){A=Et()},o}var mn=ht();export{mn as default};
Binary file
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en" data-beasties-container>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Sharedcomponents</title>
6
+ <base href="/">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1">
8
+ <link rel="icon" type="image/x-icon" href="favicon.ico">
9
+ <style>html,body{width:100%;height:100%;margin:0;overflow:hidden}*{box-sizing:border-box;padding:0;margin:0}</style><link rel="stylesheet" href="styles-S3SWDQ4V.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-S3SWDQ4V.css"></noscript></head>
10
+ <body>
11
+ <app-root></app-root>
12
+ <link rel="modulepreload" href="chunk-H5HZ6YB3.js"><script src="polyfills-5FDKUQTZ.js" type="module"></script><script src="main-AKBSJVK6.js" type="module"></script></body>
13
+ </html>