1var Tv=Object.defineProperty;var v=(a,e)=>Tv(a,"name",{value:e,configurable:!0});import{c as et,b as _l}from"./react-vendor-Dco-0PLI.js";import{_ as fi}from"./jspdf.es.min-CTh7xQmJ.js";import"./supabase-Cwmic9fw.js";var bt=v(function(a){return a&&a.Math===Math&&a},"check"),V=bt(typeof globalThis=="object"&&globalThis)||bt(typeof window=="object"&&window)||bt(typeof self=="object"&&self)||bt(typeof et=="object"&&et)||bt(typeof et=="object"&&et)||function(){return this}()||Function("return this")(),kt={},L=v(function(a){try{return!!a()}catch{return!0}},"fails$m"),$v=L,ce=!$v(function(){return Object.defineProperty({},1,{get:v(function(){return 7},"get")})[1]!==7}),Sv=L,Gr=!Sv(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")}),wv=Gr,er=Function.prototype.call,X=wv?er.bind(er):function(){return er.apply(er,arguments)},kl={},jl={}.propertyIsEnumerable,Bl=Object.getOwnPropertyDescriptor,Cv=Bl&&!jl.call({1:2},1);kl.f=Cv?v(function(e){var t=Bl(this,e);return!!t&&t.enumerable},"propertyIsEnumerable"):jl;var En=v(function(a,e){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:e}},"createPropertyDescriptor$3"),Ul=Gr,Fl=Function.prototype,ci=Fl.call,Ev=Ul&&Fl.bind.bind(ci,ci),_=Ul?Ev:function(a){return function(){return ci.apply(a,arguments)}},zl=_,Av=zl({}.toString),Pv=zl("".slice),Ye=v(function(a){return Pv(Av(a),8,-1)},"classofRaw$2"),Rv=_,Nv=L,Iv=Ye,Oa=Object,Mv=Rv("".split),Hl=Nv(function(){return!Oa("z").propertyIsEnumerable(0)})?function(a){return Iv(a)==="String"?Mv(a,""):Oa(a)}:Oa,Xr=v(function(a){return a==null},"isNullOrUndefined$4"),Vv=Xr,Dv=TypeError,ge=v(function(a){if(Vv(a))throw new Dv("Can't call method on "+a);return a},"requireObjectCoercible$b"),Lv=Hl,_v=ge,jt=v(function(a){return Lv(_v(a))},"toIndexedObject$5"),Ta=typeof document=="object"&&document.all,k=typeof Ta>"u"&&Ta!==void 0?function(a){return typeof a=="function"||a===Ta}:function(a){return typeof a=="function"},kv=k,ae=v(function(a){return typeof a=="object"?a!==null:kv(a)},"isObject$e"),$a=V,jv=k,Bv=v(function(a){return jv(a)?a:void 0},"aFunction"),Ge=v(function(a,e){return arguments.length<2?Bv($a[a]):$a[a]&&$a[a][e]},"getBuiltIn$7"),Uv=_,Wr=Uv({}.isPrototypeOf),Fv=V,bo=Fv.navigator,xo=bo&&bo.userAgent,Bt=xo?String(xo):"",Yl=V,Sa=Bt,Oo=Yl.process,To=Yl.Deno,$o=Oo&&Oo.versions||To&&To.version,So=$o&&$o.v8,ve,Cr;So&&(ve=So.split("."),Cr=ve[0]>0&&ve[0]<4?1:+(ve[0]+ve[1]));!Cr&&Sa&&(ve=Sa.match(/Edge\/(\d+)/),(!ve||ve[1]>=74)&&(ve=Sa.match(/Chrome\/(\d+)/),ve&&(Cr=+ve[1])));var An=Cr,wo=An,zv=L,Hv=V,Yv=Hv.String,Gl=!!Object.getOwnPropertySymbols&&!zv(function(){var a=Symbol("symbol detection");return!Yv(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&wo&&wo<41}),Gv=Gl,Xl=Gv&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Xv=Ge,Wv=k,qv=Wr,Qv=Xl,Kv=Object,Wl=Qv?function(a){return typeof a=="symbol"}:function(a){var e=Xv("Symbol");return Wv(e)&&qv(e.prototype,Kv(a))},Zv=String,qr=v(function(a){try{return Zv(a)}catch{return"Object"}},"tryToString$4"),Jv=k,ef=qr,tf=TypeError,Se=v(function(a){if(Jv(a))return a;throw new tf(ef(a)+" is not a function")},"aCallable$9"),rf=Se,af=Xr,dt=v(function(a,e){var t=a[e];return af(t)?void 0:rf(t)},"getMethod$6"),wa=X,Ca=k,Ea=ae,nf=TypeError,sf=v(function(a,e){var t,r;if(e==="string"&&Ca(t=a.toString)&&!Ea(r=wa(t,a))||Ca(t=a.valueOf)&&!Ea(r=wa(t,a))||e!=="string"&&Ca(t=a.toString)&&!Ea(r=wa(t,a)))return r;throw new nf("Can't convert object to primitive value")},"ordinaryToPrimitive$1"),ql={exports:{}},Co=V,of=Object.defineProperty,Pn=v(function(a,e){try{of(Co,a,{value:e,configurable:!0,writable:!0})}catch{Co[a]=e}return e},"defineGlobalProperty$3"),uf=V,lf=Pn,Eo="__core-js_shared__",Ao=ql.exports=uf[Eo]||lf(Eo,{});(Ao.versions||(Ao.versions=[])).push({version:"3.46.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Rn=ql.exports,Po=Rn,Nn=v(function(a,e){return Po[a]||(Po[a]=e||{})},"shared$4"),hf=ge,vf=Object,Qr=v(function(a){return vf(hf(a))},"toObject$4"),ff=_,cf=Qr,gf=ff({}.hasOwnProperty),de=Object.hasOwn||v(function(e,t){return gf(cf(e),t)},"hasOwn"),df=_,pf=0,yf=Math.random(),mf=df(1.1.toString),Ql=v(function(a){return"Symbol("+(a===void 0?"":a)+")_"+mf(++pf+yf,36)},"uid$2"),bf=V,xf=Nn,Ro=de,Of=Ql,Tf=Gl,$f=Xl,tt=bf.Symbol,Aa=xf("wks"),Sf=$f?tt.for||tt:tt&&tt.withoutSetter||Of,Y=v(function(a){return Ro(Aa,a)||(Aa[a]=Tf&&Ro(tt,a)?tt[a]:Sf("Symbol."+a)),Aa[a]},"wellKnownSymbol$i"),wf=X,No=ae,Io=Wl,Cf=dt,Ef=sf,Af=Y,Pf=TypeError,Rf=Af("toPrimitive"),Nf=v(function(a,e){if(!No(a)||Io(a))return a;var t=Cf(a,Rf),r;if(t){if(e===void 0&&(e="default"),r=wf(t,a,e),!No(r)||Io(r))return r;throw new Pf("Can't convert object to primitive value")}return e===void 0&&(e="number"),Ef(a,e)},"toPrimitive$2"),If=Nf,Mf=Wl,Kl=v(function(a){var e=If(a,"string");return Mf(e)?e:e+""},"toPropertyKey$3"),Vf=V,Mo=ae,gi=Vf.document,Df=Mo(gi)&&Mo(gi.createElement),Kr=v(function(a){return Df?gi.createElement(a):{}},"documentCreateElement$2"),Lf=ce,_f=L,kf=Kr,Zl=!Lf&&!_f(function(){return Object.defineProperty(kf("div"),"a",{get:v(function(){return 7},"get")}).a!==7}),jf=ce,Bf=X,Uf=kl,Ff=En,zf=jt,Hf=Kl,Yf=de,Gf=Zl,Vo=Object.getOwnPropertyDescriptor;kt.f=jf?Vo:v(function(e,t){if(e=zf(e),t=Hf(t),Gf)try{return Vo(e,t)}catch{}if(Yf(e,t))return Ff(!Bf(Uf.f,e,t),e[t])},"getOwnPropertyDescriptor");var we={},Xf=ce,Wf=L,Jl=Xf&&Wf(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}
1),qf=ae,Qf=String,Kf=TypeError,J=v(function(a){if(qf(a))return a;throw new Kf(Qf(a)+" is not an object")},"anObject$f"),Zf=ce,Jf=Zl,ec=Jl,tr=J,Do=Kl,tc=TypeError,Pa=Object.defineProperty,rc=Object.getOwnPropertyDescriptor,Ra="enumerable",Na="configurable",Ia="writable";we.f=Zf?ec?v(function(e,t,r){if(tr(e),t=Do(t),tr(r),typeof e=="function"&&t==="prototype"&&"value"in r&&Ia in r&&!r[Ia]){var i=rc(e,t);i&&i[Ia]&&(e[t]=r.value,r={configurable:Na in r?r[Na]:i[Na],enumerable:Ra in r?r[Ra]:i[Ra],writable:!1})}return Pa(e,t,r)},"defineProperty"):Pa:v(function(e,t,r){if(tr(e),t=Do(t),tr(r),Jf)try{return Pa(e,t,r)}catch{}if("get"in r||"set"in r)throw new tc("Accessors not supported");return"value"in r&&(e[t]=r.value),e},"defineProperty");var ac=ce,ic=we,nc=En,Ut=ac?function(a,e,t){return ic.f(a,e,nc(1,t))}:function(a,e,t){return a[e]=t,a},eh={exports:{}},di=ce,sc=de,th=Function.prototype,oc=di&&Object.getOwnPropertyDescriptor,rh=sc(th,"name"),uc=rh&&v(function(){},"something").name==="something",lc=rh&&(!di||di&&oc(th,"name").configurable),Zr={PROPER:uc,CONFIGURABLE:lc},hc=_,vc=k,pi=Rn,fc=hc(Function.toString);vc(pi.inspectSource)||(pi.inspectSource=function(a){return fc(a)});var In=pi.inspectSource,cc=V,gc=k,Lo=cc.WeakMap,dc=gc(Lo)&&/native code/.test(String(Lo)),pc=Nn,yc=Ql,_o=pc("keys"),Mn=v(function(a){return _o[a]||(_o[a]=yc(a))},"sharedKey$3"),Vn={},mc=dc,ah=V,bc=ae,xc=Ut,Ma=de,Va=Rn,Oc=Mn,Tc=Vn,ko="Object already initialized",yi=ah.TypeError,$c=ah.WeakMap,Er,Mt,Ar,Sc=v(function(a){return Ar(a)?Mt(a):Er(a,{})},"enforce"),wc=v(function(a){return function(e){var t;if(!bc(e)||(t=Mt(e)).type!==a)throw new yi("Incompatible receiver, "+a+" required");return t}},"getterFor");if(mc||Va.state){var ye=Va.state||(Va.state=new $c);ye.get=ye.get,ye.has=ye.has,ye.set=ye.set,Er=v(function(a,e){if(ye.has(a))throw new yi(ko);return e.facade=a,ye.set(a,e),e},"set$1"),Mt=v(function(a){return ye.get(a)||{}},"get"),Ar=v(function(a){return ye.has(a)},"has")}else{var Qe=Oc("state");Tc[Qe]=!0,Er=v(function(a,e){if(Ma(a,Qe))throw new yi(ko);return e.facade=a,xc(a,Qe,e),e},"set$1"),Mt=v(function(a){return Ma(a,Qe)?a[Qe]:{}},"get"),Ar=v(function(a){return Ma(a,Qe)},"has")}var Jr={set:Er,get:Mt,has:Ar,enforce:Sc,getterFor:wc},Dn=_,Cc=L,Ec=k,rr=de,mi=ce,Ac=Zr.CONFIGURABLE,Pc=In,ih=Jr,Rc=ih.enforce,Nc=ih.get,jo=String,xr=Object.defineProperty,Ic=Dn("".slice),Mc=Dn("".replace),Vc=Dn([].join),Dc=mi&&!Cc(function(){return xr(function(){},"length",{value:8}).length!==8}),Lc=String(String).split("String"),_c=eh.exports=function(a,e,t){Ic(jo(e),0,7)==="Symbol("&&(e="["+Mc(jo(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!rr(a,"name")||Ac&&a.name!==e)&&(mi?xr(a,"name",{value:e,configurable:!0}):a.name=e),Dc&&t&&rr(t,"arity")&&a.length!==t.arity&&xr(a,"length",{value:t.arity});try{t&&rr(t,"constructor")&&t.constructor?mi&&xr(a,"prototype",{writable:!1}):a.prototype&&(a.prototype=void 0)}catch{}var r=Rc(a);return rr(r,"source")||(r.source=Vc(Lc,typeof e=="string"?e:"")),a};Function.prototype.toString=_c(v(function(){return Ec(this)&&Nc(this).source||Pc(this)},"toString"),"toString");var nh=eh.exports,kc=k,jc=we,Bc=nh,Uc=Pn,Xe=v(function(a,e,t,r){r||(r={});var i=r.enumerable,n=r.name!==void 0?r.name:e;if(kc(t)&&Bc(t,n,r),r.global)i?a[e]=t:Uc(e,t);else{try{r.unsafe?a[e]&&(i=!0):delete a[e]}catch{}i?a[e]=t:jc.f(a,e,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return a},"defineBuiltIn$7"),sh={},Fc=Math.ceil,zc=Math.floor,Hc=Math.trunc||v(function(e){var t=+e;return(t>0?zc:Fc)(t)},"trunc"),Yc=Hc,ea=v(function(a){var e=+a;return e!==e||e===0?0:Yc(e)},"toIntegerOrInfinity$4"),Gc=ea,Xc=Math.max,Wc=Math.min,qc=v(function(a,e){var t=Gc(a);return t<0?Xc(t+e,0):Wc(t,e)},"toAbsoluteIndex$1"),Qc=ea,Kc=Math.min,pt=v(function(a){var e=Qc(a);return e>0?Kc(e,9007199254740991):0},"toLength$6"),Zc=pt,Ln=v(function(a){return Zc(a.length)},"lengthOfArrayLike$3"),Jc=jt,eg=qc,tg=Ln,rg=v(function(a){return function(e,t,r){var i=Jc(e),n=tg(i);if(n===0)return!a&&-1;var o=eg(r,n),s;if(a&&t!==t){for(;n>o;)if(s=i[o++],s!==s)return!0}else for(;n>o;o++)if((a||o in i)&&i[o]===t)return a||o||0;return!a&&-1}},"createMethod$3"),oh={indexOf:rg(!1)},ag=_,Da=de,ig=jt,ng=oh.indexOf,sg=Vn,Bo=ag([].push),uh=v(function(a,e){var t=ig(a),r=0,i=[],n;for(n in t)!Da(sg,n)&&Da(t,n)&&Bo(i,n);for(;e.length>r;)Da(t,n=e[r++])&&(~ng(i,n)||Bo(i,n));return i},"objectKeysInternal"),_n=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
1ing","toString","valueOf"],og=uh,ug=_n,lg=ug.concat("length","prototype");sh.f=Object.getOwnPropertyNames||v(function(e){return og(e,lg)},"getOwnPropertyNames");var lh={};lh.f=Object.getOwnPropertySymbols;var hg=Ge,vg=_,fg=sh,cg=lh,gg=J,dg=vg([].concat),pg=hg("Reflect","ownKeys")||v(function(e){var t=fg.f(gg(e)),r=cg.f;return r?dg(t,r(e)):t},"ownKeys"),Uo=de,yg=pg,mg=kt,bg=we,xg=v(function(a,e,t){for(var r=yg(e),i=bg.f,n=mg.f,o=0;o<r.length;o++){var s=r[o];!Uo(a,s)&&!(t&&Uo(t,s))&&i(a,s,n(e,s))}},"copyConstructorProperties$1"),Og=L,Tg=k,$g=/#|\.prototype\./,Ft=v(function(a,e){var t=wg[Sg(a)];return t===Eg?!0:t===Cg?!1:Tg(e)?Og(e):!!e},"isForced$2"),Sg=Ft.normalize=function(a){return String(a).replace($g,".").toLowerCase()},wg=Ft.data={},Cg=Ft.NATIVE="N",Eg=Ft.POLYFILL="P",hh=Ft,ar=V,Ag=kt.f,Pg=Ut,Rg=Xe,Ng=Pn,Ig=xg,Mg=hh,ee=v(function(a,e){var t=a.target,r=a.global,i=a.stat,n,o,s,u,l,h;if(r?o=ar:i?o=ar[t]||Ng(t,{}):o=ar[t]&&ar[t].prototype,o)for(s in e){if(l=e[s],a.dontCallGetSet?(h=Ag(o,s),u=h&&h.value):u=o[s],n=Mg(r?s:t+(i?".":"#")+s,a.forced),!n&&u!==void 0){if(typeof l==typeof u)continue;Ig(l,u)}(a.sham||u&&u.sham)&&Pg(l,"sham",!0),Rg(o,s,l,a)}},"_export"),xt=V,Vg=Bt,Dg=Ye,ir=v(function(a){return Vg.slice(0,a.length)===a},"userAgentStartsWith"),vh=function(){return ir("Bun/")?"BUN":ir("Cloudflare-Workers")?"CLOUDFLARE":ir("Deno/")?"DENO":ir("Node.js/")?"NODE":xt.Bun&&typeof Bun.version=="string"?"BUN":xt.Deno&&typeof Deno.version=="object"?"DENO":Dg(xt.process)==="process"?"NODE":xt.window&&xt.document?"BROWSER":"REST"}(),Lg=vh,ta=Lg==="NODE",_g=V,kg=_g,jg=_,Bg=Se,Ug=v(function(a,e,t){try{return jg(Bg(Object.getOwnPropertyDescriptor(a,e)[t]))}catch{}},"functionUncurryThisAccessor"),Fg=ae,zg=v(function(a){return Fg(a)||a===null},"isPossiblePrototype$1"),Hg=zg,Yg=String,Gg=TypeError,Xg=v(function(a){if(Hg(a))return a;throw new Gg("Can't set "+Yg(a)+" as a prototype")},"aPossiblePrototype$1"),Wg=Ug,qg=ae,Qg=ge,Kg=Xg,fh=Object.setPrototypeOf||("__proto__"in{}?function(){var a=!1,e={},t;try{t=Wg(Object.prototype,"__proto__","set"),t(e,[]),a=e instanceof Array}catch{}return v(function(i,n){return Qg(i),Kg(n),qg(i)&&(a?t(i,n):i.__proto__=n),i},"setPrototypeOf")}():void 0),Zg=we.f,Jg=de,ed=Y,Fo=ed("toStringTag"),ra=v(function(a,e,t){a&&!t&&(a=a.prototype),a&&!Jg(a,Fo)&&Zg(a,Fo,{configurable:!0,value:e})},"setToStringTag$4"),zo=nh,td=we,rd=v(function(a,e,t){return t.get&&zo(t.get,e,{getter:!0}),t.set&&zo(t.set,e,{setter:!0}),td.f(a,e,t)},"defineBuiltInAccessor$1"),ad=Ge,id=rd,nd=Y,sd=ce,Ho=nd("species"),od=v(function(a){var e=ad(a);sd&&e&&!e[Ho]&&id(e,Ho,{configurable:!0,get:v(function(){return this},"get")})},"setSpecies$1"),ud=Wr,ld=TypeError,hd=v(function(a,e){if(ud(e,a))return a;throw new ld("Incorrect invocation")},"anInstance$1"),vd=Y,fd=vd("toStringTag"),ch={};ch[fd]="z";var cd=String(ch)==="[object z]",gd=cd,dd=k,Or=Ye,pd=Y,yd=pd("toStringTag"),md=Object,bd=Or(function(){return arguments}())==="Arguments",xd=v(function(a,e){try{return a[e]}catch{}},"tryGet"),kn=gd?Or:function(a){var e,t,r;return a===void 0?"Undefined":a===null?"Null":typeof(t=xd(e=md(a),yd))=="string"?t:bd?Or(e):(r=Or(e))==="Object"&&dd(e.callee)?"Arguments":r},Od=_,Td=L,gh=k,$d=kn,Sd=Ge,wd=In,dh=v(function(){},"noop$1"),ph=Sd("Reflect","construct"),jn=/^\s*(?:class|function)\b/,Cd=Od(jn.exec),Ed=!jn.test(dh),Ot=v(function(e){if(!gh(e))return!1;try{return ph(dh,[],e),!0}catch{return!1}},"isConstructor"),yh=v(function(e){if(!gh(e))return!1;switch($d(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ed||!!Cd(jn,wd(e))}catch{return!0}},"isConstructor");yh.sham=!0;var Ad=!ph||Td(function(){var a;return Ot(Ot.call)||!Ot(Object)||!Ot(function(){a=!0})||a})?yh:Ot,Pd=Ad,Rd=qr,Nd=TypeError,Id=v(function(a){if(Pd(a))return a;throw new Nd(Rd(a)+" is not a constructor")},"aConstructor$1"),Yo=J,Md=Id,Vd=Xr,Dd=Y,Ld=Dd("species"),mh=v(function(a,e){var t=Yo(a).constructor,r;return t===void 0||Vd(r=Yo(t)[Ld])?e:Md(r)},"speciesConstructor$2"),_d=Gr,bh=Function.prototype,Go=bh.apply,Xo=bh.call,xh=typeof Reflect=="object"&&Reflect.apply||(_d?Xo.bind(Go):function(){return Xo.apply(Go,arguments)}
1),kd=Ye,jd=_,aa=v(function(a){if(kd(a)==="Function")return jd(a)},"functionUncurryThisClause"),Wo=aa,Bd=Se,Ud=Gr,Fd=Wo(Wo.bind),Bn=v(function(a,e){return Bd(a),e===void 0?a:Ud?Fd(a,e):function(){return a.apply(e,arguments)}},"functionBindContext"),zd=Ge,Oh=zd("document","documentElement"),Hd=_,Yd=Hd([].slice),Gd=TypeError,Xd=v(function(a,e){if(a<e)throw new Gd("Not enough arguments");return a},"validateArgumentsLength$1"),Wd=Bt,Th=/(?:ipad|iphone|ipod).*applewebkit/i.test(Wd),ne=V,qd=xh,Qd=Bn,qo=k,Kd=de,$h=L,Qo=Oh,Zd=Yd,Ko=Kr,Jd=Xd,ep=Th,tp=ta,bi=ne.setImmediate,Zo=ne.clearImmediate,rp=ne.process,La=ne.Dispatch,ap=ne.Function,Jo=ne.MessageChannel,ip=ne.String,_a=0,Et={},eu="onreadystatechange",Vt,Ve,ka,ja;$h(function(){Vt=ne.location});var Un=v(function(a){if(Kd(Et,a)){var e=Et[a];delete Et[a],e()}},"run"),Ba=v(function(a){return function(){Un(a)}},"runner"),tu=v(function(a){Un(a.data)},"eventListener"),ru=v(function(a){ne.postMessage(ip(a),Vt.protocol+"//"+Vt.host)},"globalPostMessageDefer");(!bi||!Zo)&&(bi=v(function(e){Jd(arguments.length,1);var t=qo(e)?e:ap(e),r=Zd(arguments,1);return Et[++_a]=function(){qd(t,void 0,r)},Ve(_a),_a},"setImmediate"),Zo=v(function(e){delete Et[e]},"clearImmediate"),tp?Ve=v(function(a){rp.nextTick(Ba(a))},"defer"):La&&La.now?Ve=v(function(a){La.now(Ba(a))},"defer"):Jo&&!ep?(ka=new Jo,ja=ka.port2,ka.port1.onmessage=tu,Ve=Qd(ja.postMessage,ja)):ne.addEventListener&&qo(ne.postMessage)&&!ne.importScripts&&Vt&&Vt.protocol!=="file:"&&!$h(ru)?(Ve=ru,ne.addEventListener("message",tu,!1)):eu in Ko("script")?Ve=v(function(a){Qo.appendChild(Ko("script"))[eu]=function(){Qo.removeChild(this),Un(a)}},"defer"):Ve=v(function(a){setTimeout(Ba(a),0)},"defer"));var Sh={set:bi},au=V,np=ce,sp=Object.getOwnPropertyDescriptor,op=v(function(a){if(!np)return au[a];var e=sp(au,a);return e&&e.value},"safeGetBuiltIn$1"),wh=v(function(){this.head=null,this.tail=null},"Queue$2");wh.prototype={add:v(function(a){var e={item:a,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},"add"),get:v(function(){var a=this.head;if(a){var e=this.head=a.next;return e===null&&(this.tail=null),a.item}},"get")};var Ch=wh,up=Bt,lp=/ipad|iphone|ipod/i.test(up)&&typeof Pebble<"u",hp=Bt,vp=/web0s(?!.*chrome)/i.test(hp),lt=V,fp=op,iu=Bn,Ua=Sh.set,cp=Ch,gp=Th,dp=lp,pp=vp,Fa=ta,nu=lt.MutationObserver||lt.WebKitMutationObserver,su=lt.document,ou=lt.process,nr=lt.Promise,xi=fp("queueMicrotask"),Ke,za,Ha,sr,uu;if(!xi){var or=new cp,ur=v(function(){var a,e;for(Fa&&(a=ou.domain)&&a.exit();e=or.get();)try{e()}catch(t){throw or.head&&Ke(),t}a&&a.enter()},"flush");!gp&&!Fa&&!pp&&nu&&su?(za=!0,Ha=su.createTextNode(""),new nu(ur).observe(Ha,{characterData:!0}),Ke=v(function(){Ha.data=za=!za},"notify$1")):!dp&&nr&&nr.resolve?(sr=nr.resolve(void 0),sr.constructor=nr,uu=iu(sr.then,sr),Ke=v(function(){uu(ur)},"notify$1")):Fa?Ke=v(function(){ou.nextTick(ur)},"notify$1"):(Ua=iu(Ua,lt),Ke=v(function(){Ua(ur)},"notify$1")),xi=v(function(a){or.head||Ke(),or.add(a)},"microtask$1")}var yp=xi,mp=v(function(a,e){try{arguments.length===1?console.error(a):console.error(a,e)}catch{}},"hostReportErrors$1"),Fn=v(function(a){try{return{error:!1,value:a()}}catch(e){return{error:!0,value:e}}},"perform$3"),bp=V,ia=bp.Promise,xp=V,At=ia,Op=k,Tp=hh,$p=In,Sp=Y,lu=vh,Ya=An;At&&At.prototype;var wp=Sp("species"),Oi=!1,Eh=Op(xp.PromiseRejectionEvent),Cp=Tp("Promise",function(){var a=$p(At),e=a!==String(At);if(!e&&Ya===66)return!0;if(!Ya||Ya<51||!/native code/.test(a)){var t=new At(function(n){n(1)}),r=v(function(n){n(function(){},function(){})},"FakePromise"),i=t.constructor={};if(i[wp]=r,Oi=t.then(function(){})instanceof r,!Oi)return!0}return!e&&(lu==="BROWSER"||lu==="DENO")&&!Eh}),zt={CONSTRUCTOR:Cp,REJECTION_EVENT:Eh,SUBCLASSING:Oi},yt={},hu=Se,Ep=TypeError,Ap=v(function(a){var e,t;this.promise=new a(function(r,i){if(e!==void 0||t!==void 0)throw new Ep("Bad Promise constructor");e=r,t=i}),this.resolve=hu(e),this.reject=hu(t)},"PromiseCapability");yt.f=function(a){return new Ap(a)};var Pp=ee,Pr=ta,Pe=V,Rp=kg,ht=X,vu=Xe,fu=fh,Np=ra,Ip=od,Mp=Se,Tr=k,Vp=ae,Dp=hd,Lp=mh,Ah=Sh.set,zn=yp,_p=mp,kp=Fn,jp=Ch,Ph=Jr,Rr=ia,Hn=zt,Rh=yt,na="Promise",Nh=Hn.CONSTRUCTOR,Bp=Hn.REJECTION_EVENT,Up=Hn.SUBCLASSING,Ga=Ph.getterFor(na),Fp=Ph.set,Je=Rr&&Rr.prototype,je=Rr,lr=Je,Ih=Pe.TypeError,Ti=Pe.document,Yn=Pe.process,$i=Rh.f,zp=$i,Hp=!!(Ti&&Ti.createEvent&&Pe.dispatchEvent),Mh="unhandledrejection",Yp="rejectionhandled",cu=0,Vh=1,Gp=2,Gn=1,Dh=2,hr,gu,Lh,du,_h=v(function(a){var e;return Vp(a)&&Tr(e=a.then)?e:!1},"isThenable"),kh=v(function(a,e){var t=e.value,r=e.state===Vh,i=r?a.ok:a.fail,n=a.resolve,o=a.reject,s=a.domain,u,l,h;try{i?(r||(e.rejection===Dh&&Wp(e),e.rejection=Gn),i===!0?u=t:(s&&s.enter(),u=i(t),s&&(s.exit(),h=!0)),u===a.promise?o(new Ih("Promise-chain cycle")):(l=_h(u))?ht(l,u,n,o):n(u)):o(t)}catch(c){s&&!h&&s.exit(),o(c)}},"callReaction"),jh=v(function(a,e){a.notified||(a.notified=!0,zn(function(){for(var t=a.reactions,r;r=t.get();)kh(r,a);a.notified=!1,e&&!a.rejection&&Xp(a)}))},"notify"),Bh=v(function(a,e,t){var r,i;Hp?(r=Ti.createEvent("Event"),r.promise=e,r.reason=t,r.initEvent(a,!1,!0),Pe.dispatchEvent(r)):r={promise:e,reason:t},!Bp&&(i=Pe["on"+a])?i(r):a===Mh&&_p("Unhandled promise rejection",t)},"dispatchEvent"),Xp=v(function(a){ht(Ah,Pe,function(){var e=a.facade,t=a.value,r=pu(a),i;if(r&&(i=kp(function(){Pr?Yn.emit("unhandledRejection",t,e):Bh(Mh,e,t)}
1),a.rejection=Pr||pu(a)?Dh:Gn,i.error))throw i.value})},"onUnhandled"),pu=v(function(a){return a.rejection!==Gn&&!a.parent},"isUnhandled"),Wp=v(function(a){ht(Ah,Pe,function(){var e=a.facade;Pr?Yn.emit("rejectionHandled",e):Bh(Yp,e,a.value)})},"onHandleUnhandled"),rt=v(function(a,e,t){return function(r){a(e,r,t)}},"bind$1"),st=v(function(a,e,t){a.done||(a.done=!0,t&&(a=t),a.value=e,a.state=Gp,jh(a,!0))},"internalReject"),Si=v(function(a,e,t){if(!a.done){a.done=!0,t&&(a=t);try{if(a.facade===e)throw new Ih("Promise can't be resolved itself");var r=_h(e);r?zn(function(){var i={done:!1};try{ht(r,e,rt(Si,i,a),rt(st,i,a))}catch(n){st(i,n,a)}}):(a.value=e,a.state=Vh,jh(a,!1))}catch(i){st({done:!1},i,a)}}},"internalResolve");if(Nh&&(je=v(function(e){Dp(this,lr),Mp(e),ht(hr,this);var t=Ga(this);try{e(rt(Si,t),rt(st,t))}catch(r){st(t,r)}},"Promise"),lr=je.prototype,hr=v(function(e){Fp(this,{type:na,done:!1,notified:!1,parent:!1,reactions:new jp,rejection:!1,state:cu,value:null})},"Promise"),hr.prototype=vu(lr,"then",v(function(e,t){var r=Ga(this),i=$i(Lp(this,je));return r.parent=!0,i.ok=Tr(e)?e:!0,i.fail=Tr(t)&&t,i.domain=Pr?Yn.domain:void 0,r.state===cu?r.reactions.add(i):zn(function(){kh(i,r)}),i.promise},"then")),gu=v(function(){var a=new hr,e=Ga(a);this.promise=a,this.resolve=rt(Si,e),this.reject=rt(st,e)},"OwnPromiseCapability"),Rh.f=$i=v(function(a){return a===je||a===Lh?new gu(a):zp(a)},"newPromiseCapability$1"),Tr(Rr)&&Je!==Object.prototype)){du=Je.then,Up||vu(Je,"then",v(function(e,t){var r=this;return new je(function(i,n){ht(du,r,i,n)}).then(e,t)},"then"),{unsafe:!0});try{delete Je.constructor}catch{}fu&&fu(Je,lr)}Pp({global:!0,constructor:!0,wrap:!0,forced:Nh},{Promise:je});Lh=Rp.Promise;Np(je,na,!1);Ip(na);var Ht={},qp=Y,Qp=Ht,Kp=qp("iterator"),Zp=Array.prototype,Jp=v(function(a){return a!==void 0&&(Qp.Array===a||Zp[Kp]===a)},"isArrayIteratorMethod$1"),ey=kn,yu=dt,ty=Xr,ry=Ht,ay=Y,iy=ay("iterator"),Uh=v(function(a){if(!ty(a))return yu(a,iy)||yu(a,"@@iterator")||ry[ey(a)]},"getIteratorMethod$2"),ny=X,sy=Se,oy=J,uy=qr,ly=Uh,hy=TypeError,vy=v(function(a,e){var t=arguments.length<2?ly(a):e;if(sy(t))return oy(ny(t,a));throw new hy(uy(a)+" is not iterable")},"getIterator$1"),fy=X,mu=J,cy=dt,gy=v(function(a,e,t){var r,i;mu(a);try{if(r=cy(a,"return"),!r){if(e==="throw")throw t;return t}r=fy(r,a)}catch(n){i=!0,r=n}if(e==="throw")throw t;if(i)throw r;return mu(r),t},"iteratorClose$1"),dy=Bn,py=X,yy=J,my=qr,by=Jp,xy=Ln,bu=Wr,Oy=vy,Ty=Uh,xu=gy,$y=TypeError,$r=v(function(a,e){this.stopped=a,this.result=e},"Result"),Ou=$r.prototype,Fh=v(function(a,e,t){var r=t&&t.that,i=!!(t&&t.AS_ENTRIES),n=!!(t&&t.IS_RECORD),o=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),u=dy(e,r),l,h,c,g,f,d,p,y=v(function(O){return l&&xu(l,"normal"),new $r(!0,O)},"stop"),m=v(function(O){return i?(yy(O),s?u(O[0],O[1],y):u(O[0],O[1])):s?u(O,y):u(O)},"callFn");if(n)l=a.iterator;else if(o)l=a;else{if(h=Ty(a),!h)throw new $y(my(a)+" is not iterable");if(by(h)){for(c=0,g=xy(a);g>c;c++)if(f=m(a[c]),f&&bu(Ou,f))return f;return new $r(!1)}l=Oy(a,h)}for(d=n?a.next:l.next;!(p=py(d,l)).done;){try{f=m(p.value)}catch(O){xu(l,"throw",O)}if(typeof f=="object"&&f&&bu(Ou,f))return f}return new $r(!1)},"iterate$2"),Sy=Y,zh=Sy("iterator"),Hh=!1;try{var wy=0,Tu={next:v(function(){return{done:!!wy++}},"next"),return:v(function(){Hh=!0},"return")};Tu[zh]=function(){return this},Array.from(Tu,function(){throw 2})}catch{}var Cy=v(function(a,e){try{if(!e&&!Hh)return!1}catch{return!1}var t=!1;try{var r={};r[zh]=function(){return{next:v(function(){return{done:t=!0}},"next")}},a(r)}catch{}return t},"checkCorrectnessOfIteration$1"),Ey=ia,Ay=Cy,Py=zt.CONSTRUCTOR,Yh=Py||!Ay(function(a){Ey.all(a).then(void 0,function(){})}),Ry=ee,Ny=X,Iy=Se,My=yt,Vy=Fn,Dy=Fh,Ly=Yh;Ry({target:"Promise",stat:!0,forced:Ly},{all:v(function(e){var t=this,r=My.f(t),i=r.resolve,n=r.reject,o=Vy(function(){var s=Iy(t.resolve),u=[],l=0,h=1;Dy(e,function(c){var g=l++,f=!1;h++,Ny(s,t,c).then(function(d){f||(f=!0,u[g]=d,--h||i(u))},n)}),--h||i(u)});return o.error&&n(o.value),r.promise},"all")});var _y=ee,ky=zt.CONSTRUCTOR,wi=ia,jy=Ge,By=k,Uy=Xe,$u=wi&&wi.prototype;_y({target:"Promise",proto:!0,forced:ky,real:!0},{catch:v(function(a){return this.then(void 0,a)},"catch")});if(By(wi)){var Su=jy("Promise").prototype.catch;$u.catch!==Su&&Uy($u,"catch",Su,{unsafe:!0})}var Fy=ee,zy=X,Hy=Se,Yy=yt,Gy=Fn,Xy=Fh,Wy=Yh;Fy({target:"Promise",stat:!0,forced:Wy},{race:v(function(e){var t=this,r=Yy.f(t),i=r.reject,n=Gy(function(){var o=Hy(t.resolve);Xy(e,function(s){zy(o,t,s).then(r.resolve,i)})});return n.error&&i(n.value),r.promise},"race")});var qy=ee,Qy=yt,Ky=zt.CONSTRUCTOR;qy({target:"Promise",stat:!0,forced:Ky},{reject:v(function(e){var t=Qy.f(this),r=t.reject;return r(e),t.promise},"reject")});var Zy=J,Jy=ae,e0=yt,t0=v(function(a,e){if(Zy(a),Jy(e)&&e.constructor===a)return e;var t=e0.f(a),r=t.resolve;return r(e),t.promise},"promiseResolve$1"),r0=ee,a0=Ge,i0=zt.CONSTRUCTOR,n0=t0;a0("Promise");r0({target:"Promise",stat:!0,forced:i0},{resolve:v(function(e){return n0(this,e)},"resolve")});function wu(a,e,t,r,i,n,o){try{var s=a[n](o),u=s.value}catch(l){return void t(l)}s.done?e(u):Promise.resolve(u).then(r,i)}v(wu,"asyncGeneratorStep");function Te(a){return function(){var e=this,t=arguments;return new Promise(function(r,i){var n=a.apply(e,t);function o(u){wu(n,r,i,o,s,"next",u)}v(o,"_next");function s(u){wu(n,r,i,o,s,"throw",u)}v(s,"_throw"),o(void 0)})}}v(Te,"_asyncToGenerator");
1var s0=kn,o0=String,me=v(function(a){if(s0(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return o0(a)},"toString$9"),u0=J,Gh=v(function(){var a=u0(this),e="";return a.hasIndices&&(e+="d"),a.global&&(e+="g"),a.ignoreCase&&(e+="i"),a.multiline&&(e+="m"),a.dotAll&&(e+="s"),a.unicode&&(e+="u"),a.unicodeSets&&(e+="v"),a.sticky&&(e+="y"),e},"regexpFlags$1"),Xn=L,l0=V,Wn=l0.RegExp,qn=Xn(function(){var a=Wn("a","y");return a.lastIndex=2,a.exec("abcd")!==null});qn||Xn(function(){return!Wn("a","y").sticky});var h0=qn||Xn(function(){var a=Wn("^r","gy");return a.lastIndex=2,a.exec("str")!==null}),Xh={BROKEN_CARET:h0,UNSUPPORTED_Y:qn},Wh={},v0=uh,f0=_n,c0=Object.keys||v(function(e){return v0(e,f0)},"keys"),g0=ce,d0=Jl,p0=we,y0=J,m0=jt,b0=c0;Wh.f=g0&&!d0?Object.defineProperties:v(function(e,t){y0(e);for(var r=m0(t),i=b0(t),n=i.length,o=0,s;n>o;)p0.f(e,s=i[o++],r[s]);return e},"defineProperties");var x0=J,O0=Wh,Cu=_n,T0=Vn,$0=Oh,S0=Kr,w0=Mn,Eu=">",Au="<",Ci="prototype",Ei="script",qh=w0("IE_PROTO"),Xa=v(function(){},"EmptyConstructor"),Qh=v(function(a){return Au+Ei+Eu+a+Au+"/"+Ei+Eu},"scriptTag"),Pu=v(function(a){a.write(Qh("")),a.close();var e=a.parentWindow.Object;return a=null,e},"NullProtoObjectViaActiveX"),C0=v(function(){var a=S0("iframe"),e="java"+Ei+":",t;return a.style.display="none",$0.appendChild(a),a.src=String(e),t=a.contentWindow.document,t.open(),t.write(Qh("document.F=Object")),t.close(),t.F},"NullProtoObjectViaIFrame"),vr,Sr=v(function(){try{vr=new ActiveXObject("htmlfile")}catch{}Sr=typeof document<"u"?document.domain&&vr?Pu(vr):C0():Pu(vr);for(var a=Cu.length;a--;)delete Sr[Ci][Cu[a]];return Sr()},"NullProtoObject");T0[qh]=!0;var Qn=Object.create||v(function(e,t){var r;return e!==null?(Xa[Ci]=x0(e),r=new Xa,Xa[Ci]=null,r[qh]=e):r=Sr(),t===void 0?r:O0.f(r,t)},"create"),E0=L,A0=V,P0=A0.RegExp,R0=E0(function(){var a=P0(".","s");return!(a.dotAll&&a.test(` 2`)&&a.flags==="s")}),N0=L,I0=V,M0=I0.RegExp,V0=N0(function(){var a=M0("(?<a>b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$<a>c")!=="bc"}),at=X,sa=_,D0=me,L0=Gh,_0=Xh,k0=Nn,j0=Qn,B0=Jr.get,U0=R0,F0=V0,z0=k0("native-string-replace",String.prototype.replace),Nr=RegExp.prototype.exec,Ai=Nr,H0=sa("".charAt),Y0=sa("".indexOf),G0=sa("".replace),Wa=sa("".slice),Pi=function(){var a=/a/,e=/b*/g;return at(Nr,a,"a"),at(Nr,e,"a"),a.lastIndex!==0||e.lastIndex!==0}(),Kh=_0.BROKEN_CARET,Ri=/()??/.exec("")[1]!==void 0,X0=Pi||Ri||Kh||U0||F0;X0&&(Ai=v(function(e){var t=this,r=B0(t),i=D0(e),n=r.raw,o,s,u,l,h,c,g;if(n)return n.lastIndex=t.lastIndex,o=at(Ai,n,i),t.lastIndex=n.lastIndex,o;var f=r.groups,d=Kh&&t.sticky,p=at(L0,t),y=t.source,m=0,O=i;if(d&&(p=G0(p,"y",""),Y0(p,"g")===-1&&(p+="g"),O=Wa(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&H0(i,t.lastIndex-1)!==` 3`)&&(y="(?: "+y+")",O=" "+O,m++),s=new RegExp("^(?:"+y+")",p)),Ri&&(s=new RegExp("^"+y+"$(?!\\s)",p)),Pi&&(u=t.lastIndex),l=at(Nr,d?s:t,O),d?l?(l.input=Wa(l.input,m),l[0]=Wa(l[0],m),l.index=t.lastIndex,t.lastIndex+=l[0].length):t.lastIndex=0:Pi&&l&&(t.lastIndex=t.global?l.index+l[0].length:u),Ri&&l&&l.length>1&&at(z0,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=j0(null),h=0;h<f.length;h++)g=f[h],c[g[0]]=l[g[1]];return l},"exec"));var Kn=Ai,W0=ee,Ru=Kn;W0({target:"RegExp",proto:!0,forced:/./.exec!==Ru},{exec:Ru});var Nu=X,Iu=Xe,q0=Kn,Mu=L,Zh=Y,Q0=Ut,K0=Zh("species"),qa=RegExp.prototype,Zn=v(function(a,e,t,r){var i=Zh(a),n=!Mu(function(){var l={};return l[i]=function(){return 7},""[a](l)!==7}),o=n&&!Mu(function(){var l=!1,h=/a/;return a==="split"&&(h={},h.constructor={},h.constructor[K0]=function(){return h},h.flags="",h[i]=/./[i]),h.exec=function(){return l=!0,null},h[i](""),!l});if(!n||!o||t){var s=/./[i],u=e(i,""[a],function(l,h,c,g,f){var d=h.exec;return d===q0||d===qa.exec?n&&!f?{done:!0,value:Nu(s,h,c,g)}:{done:!0,value:Nu(l,c,h,g)}:{done:!1}});Iu(String.prototype,a,u[0]),Iu(qa,i,u[1])}r&&Q0(qa[i],"sham",!0)},"fixRegexpWellKnownSymbolLogic"),Jn=_,Z0=ea,J0=me,em=ge,tm=Jn("".charAt),Vu=Jn("".charCodeAt),rm=Jn("".slice),am=v(function(a){return function(e,t){var r=J0(em(e)),i=Z0(t),n=r.length,o,s;return i<0||i>=n?a?"":void 0:(o=Vu(r,i),o<55296||o>56319||i+1===n||(s=Vu(r,i+1))<56320||s>57343?a?tm(r,i):o:a?rm(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},"createMethod$2"),im={charAt:am(!0)},nm=im.charAt,es=v(function(a,e,t){return e+(t?nm(a,e).length:1)},"advanceStringIndex$3"),sm=V,om=L,Du=sm.RegExp,um=!om(function(){var a=!0;try{Du(".","d")}catch{a=!1}var e={},t="",r=a?"dgimsy":"gimsy",i=v(function(u,l){Object.defineProperty(e,u,{get:v(function(){return t+=l,!0},"get")})},"addGetter"),n={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};a&&(n.hasIndices="d");for(var o in n)i(o,n[o]);var s=Object.getOwnPropertyDescriptor(Du.prototype,"flags").get.call(e);return s!==r||t!==r}),lm={correct:um},hm=X,vm=de,fm=Wr,Lu=lm,cm=Gh,gm=RegExp.prototype,ts=Lu.correct?function(a){return a.flags}:function(a){return!Lu.correct&&fm(gm,a)&&!vm(a,"flags")?hm(cm,a):a.flags},_u=X,dm=J,pm=k,ym=Ye,mm=Kn,bm=TypeError,rs=v(function(a,e){var t=a.exec;if(pm(t)){var r=_u(t,a,e);return r!==null&&dm(r),r}if(ym(a)==="RegExp")return _u(mm,a,e);throw new bm("RegExp#exec called on incompatible receiver")},"regexpExecAbstract"),xm=X,Om=_,Tm=Zn,$m=J,Sm=ae,wm=pt,fr=me,Cm=ge,Em=dt,Am=es,Pm=ts,ku=rs,ju=Om("".indexOf);Tm("match",function(a,e,t){return[v(function(i){var n=Cm(this),o=Sm(i)?Em(i,a):void 0;return o?xm(o,i,n):new RegExp(i)[a](fr(n))},"match"),function(r){var i=$m(this),n=fr(r),o=t(e,i,n);if(o.done)return o.value;var s=fr(Pm(i));if(ju(s,"g")===-1)return ku(i,n);var u=ju(s,"u")!==-1;i.lastIndex=0;for(var l=[],h=0,c;(c=ku(i,n))!==null;){var g=fr(c[0]);l[h]=g,g===""&&(i.lastIndex=Am(n,wm(i.lastIndex),u)),h++}return h===0?null:l}]});var as=_,Rm=Qr,Nm=Math.floor,Qa=as("".charAt),Im=as("".replace),Ka=as("".slice),Mm=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Vm=/\$([$&'`]|\d{1,2})/g,Dm=v(function(a,e,t,r,i,n){var o=t+a.length,s=r.length,u=Vm;
3return i!==void 0&&(i=Rm(i),u=Mm),Im(n,u,function(l,h){var c;switch(Qa(h,0)){case"$":return"$";case"&":return a;case"`":return Ka(e,0,t);case"'":return Ka(e,o);case"<":c=i[Ka(h,1,-1)];break;default:var g=+h;if(g===0)return l;if(g>s){var f=Nm(g/10);return f===0?l:f<=s?r[f-1]===void 0?Qa(h,1):r[f-1]+Qa(h,1):l}c=r[g-1]}return c===void 0?"":c})},"getSubstitution$1"),Lm=xh,Bu=X,oa=_,_m=Zn,km=L,jm=J,Bm=k,Um=ae,Fm=ea,zm=pt,De=me,Hm=ge,Ym=es,Gm=dt,Xm=Dm,Wm=ts,qm=rs,Qm=Y,Ni=Qm("replace"),Km=Math.max,Zm=Math.min,Jm=oa([].concat),Za=oa([].push),cr=oa("".indexOf),Uu=oa("".slice),eb=v(function(a){return a===void 0?a:String(a)},"maybeToString"),tb=function(){return"a".replace(/./,"$0")==="$0"}(),Fu=function(){return/./[Ni]?/./[Ni]("a","$0")==="":!1}(),rb=!km(function(){var a=/./;return a.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(a,"$<a>")!=="7"});_m("replace",function(a,e,t){var r=Fu?"$":"$0";return[v(function(n,o){var s=Hm(this),u=Um(n)?Gm(n,Ni):void 0;return u?Bu(u,n,s,o):Bu(e,De(s),n,o)},"replace"),function(i,n){var o=jm(this),s=De(i);if(typeof n=="string"&&cr(n,r)===-1&&cr(n,"$<")===-1){var u=t(e,o,s,n);if(u.done)return u.value}var l=Bm(n);l||(n=De(n));var h=De(Wm(o)),c=cr(h,"g")!==-1,g;c&&(g=cr(h,"u")!==-1,o.lastIndex=0);for(var f=[],d;d=qm(o,s),!(d===null||(Za(f,d),!c));){var p=De(d[0]);p===""&&(o.lastIndex=Ym(s,zm(o.lastIndex),g))}for(var y="",m=0,O=0;O<f.length;O++){d=f[O];for(var x=De(d[0]),T=Km(Zm(Fm(d.index),s.length),0),E=[],w,$=1;$<d.length;$++)Za(E,eb(d[$]));var A=d.groups;if(l){var P=Jm([x],E,T,s);A!==void 0&&Za(P,A),w=De(Lm(n,void 0,P))}else w=Xm(x,s,T,E,A,n);T>=m&&(y+=Uu(s,m,T)+w,m=T+x.length)}return y+Uu(s,m)}]},!rb||!tb||Fu);var ab=ae,ib=Ye,nb=Y,sb=nb("match"),ob=v(function(a){var e;return ab(a)&&((e=a[sb])!==void 0?!!e:ib(a)==="RegExp")},"isRegexp"),ub=ob,lb=TypeError,is=v(function(a){if(ub(a))throw new lb("The method doesn't accept regular expressions");return a},"notARegexp"),hb=Y,vb=hb("match"),ns=v(function(a){var e=/./;try{"/./"[a](e)}catch{try{return e[vb]=!1,"/./"[a](e)}catch{}}return!1},"correctIsRegexpLogic"),fb=ee,cb=aa,gb=kt.f,db=pt,zu=me,pb=is,yb=ge,mb=ns,bb=cb("".slice),xb=Math.min,Jh=mb("startsWith"),Ob=!Jh&&!!function(){var a=gb(String.prototype,"startsWith");return a&&!a.writable}();fb({target:"String",proto:!0,forced:!Ob&&!Jh},{startsWith:v(function(e){var t=zu(yb(this));pb(e);var r=db(xb(arguments.length>1?arguments[1]:void 0,t.length)),i=zu(e);return bb(t,r,r+i.length)===i},"startsWith")});var Tb=Y,$b=Qn,Sb=we.f,Ii=Tb("unscopables"),Mi=Array.prototype;Mi[Ii]===void 0&&Sb(Mi,Ii,{configurable:!0,value:$b(null)});var wb=v(function(a){Mi[Ii][a]=!0},"addToUnscopables$1"),Cb=L,Eb=!Cb(function(){function a(){}return v(a,"F"),a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype}),Ab=de,Pb=k,Rb=Qr,Nb=Mn,Ib=Eb,Hu=Nb("IE_PROTO"),Vi=Object,Mb=Vi.prototype,ev=Ib?Vi.getPrototypeOf:function(a){var e=Rb(a);if(Ab(e,Hu))return e[Hu];var t=e.constructor;return Pb(t)&&e instanceof t?t.prototype:e instanceof Vi?Mb:null},Vb=L,Db=k,Lb=ae,Yu=ev,_b=Xe,kb=Y,Di=kb("iterator"),tv=!1,Fe,Ja,ei;[].keys&&(ei=[].keys(),"next"in ei?(Ja=Yu(Yu(ei)),Ja!==Object.prototype&&(Fe=Ja)):tv=!0);var jb=!Lb(Fe)||Vb(function(){var a={};return Fe[Di].call(a)!==a});jb&&(Fe={});Db(Fe[Di])||_b(Fe,Di,function(){return this});var rv={IteratorPrototype:Fe,BUGGY_SAFARI_ITERATORS:tv},Bb=rv.IteratorPrototype,Ub=Qn,Fb=En,zb=ra,Hb=Ht,Yb=v(function(){return this},"returnThis$1"),Gb=v(function(a,e,t,r){var i=e+" Iterator";return a.prototype=Ub(Bb,{next:Fb(+!r,t)}),zb(a,i,!1),Hb[i]=Yb,a},"iteratorCreateConstructor"),Xb=ee,Wb=X,av=Zr,qb=k,Qb=Gb,Gu=ev,Xu=fh,Kb=ra,Zb=Ut,ti=Xe,Jb=Y,e1=Ht,iv=rv,t1=av.PROPER,r1=av.CONFIGURABLE,Wu=iv.IteratorPrototype,gr=iv.BUGGY_SAFARI_ITERATORS,Tt=Jb("iterator"),qu="keys",$t="values",Qu="entries",a1=v(function(){return this},"returnThis"),i1=v(function(a,e,t,r,i,n,o){Qb(t,e,r);var s=v(function(m){if(m===i&&g)return g;if(!gr&&m&&m in h)return h[m];switch(m){case qu:return v(function(){return new t(this,m)},"keys");case $t:return v(function(){return new t(this,m)},"values");case Qu:return v(function(){return new t(this,m)},"entries")}return function(){return new t(this)}},"getIterationMethod"),u=e+" Iterator",l=!1,h=a.prototype,c=h[Tt]||h["@@iterator"]||i&&h[i],g=!gr&&c||s(i),f=e==="Array"&&h.entries||c,d,p,y;if(f&&(d=Gu(f.call(new a)),d!==Object.prototype&&d.next&&(Gu(d)!==Wu&&(Xu?Xu(d,Wu):qb(d[Tt])||ti(d,Tt,a1)),Kb(d,u,!0))),t1&&i===$t&&c&&c.name!==$t&&(r1?Zb(h,"name",$t):(l=!0,g=v(function(){return Wb(c,this)},"values"))),i)if(p={values:s($t),keys:n?g:s(qu),entries:s(Qu)},o)for(y in p)(gr||l||!(y in h))&&ti(h,y,p[y]);else Xb({target:e,proto:!0,forced:gr||l},p);return h[Tt]!==g&&ti(h,Tt,g,{name:i}),e1[e]=g,p},"iteratorDefine"),n1=v(function(a,e){return{value:a,done:e}}
3,"createIterResultObject$1"),s1=jt,ss=wb,Ku=Ht,nv=Jr,o1=we.f,u1=i1,dr=n1,l1=ce,sv="Array Iterator",h1=nv.set,v1=nv.getterFor(sv),f1=u1(Array,"Array",function(a,e){h1(this,{type:sv,target:s1(a),index:0,kind:e})},function(){var a=v1(this),e=a.target,t=a.index++;if(!e||t>=e.length)return a.target=null,dr(void 0,!0);switch(a.kind){case"keys":return dr(t,!1);case"values":return dr(e[t],!1)}return dr([t,e[t]],!1)},"values"),Zu=Ku.Arguments=Ku.Array;ss("keys");ss("values");ss("entries");if(l1&&Zu.name!=="values")try{o1(Zu,"name",{value:"values"})}catch{}var c1={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},g1=Kr,ri=g1("span").classList,Ju=ri&&ri.constructor&&ri.constructor.prototype,d1=Ju===Object.prototype?void 0:Ju,el=V,ov=c1,p1=d1,wt=f1,tl=Ut,y1=ra,m1=Y,ai=m1("iterator"),ii=wt.values,uv=v(function(a,e){if(a){if(a[ai]!==ii)try{tl(a,ai,ii)}catch{a[ai]=ii}if(y1(a,e,!0),ov[e]){for(var t in wt)if(a[t]!==wt[t])try{tl(a,t,wt[t])}catch{a[t]=wt[t]}}}},"handlePrototype");for(var ni in ov)uv(el[ni]&&el[ni].prototype,ni);uv(p1,"DOMTokenList");function b1(a,e){if(fi(a)!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var r=t.call(a,e);if(fi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}v(b1,"toPrimitive");function x1(a){var e=b1(a,"string");return fi(e)=="symbol"?e:e+""}v(x1,"toPropertyKey");function os(a,e,t){return(e=x1(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}v(os,"_defineProperty");var O1=Se,T1=Qr,$1=Hl,S1=Ln,rl=TypeError,al="Reduce of empty array with no initial value",w1=v(function(a){return function(e,t,r,i){var n=T1(e),o=$1(n),s=S1(n);if(O1(t),s===0&&r<2)throw new rl(al);var u=a?s-1:0,l=a?-1:1;if(r<2)for(;;){if(u in o){i=o[u],u+=l;break}if(u+=l,a?u<0:s<=u)throw new rl(al)}for(;a?u>=0:s>u;u+=l)u in o&&(i=t(i,o[u],u,n));return i}},"createMethod$1"),C1={left:w1(!1)},E1=L,lv=v(function(a,e){var t=[][a];return!!t&&E1(function(){t.call(null,e||function(){return 1},1)})},"arrayMethodIsStrict$2"),A1=ee,P1=C1.left,R1=lv,il=An,N1=ta,I1=!N1&&il>79&&il<83,M1=I1||!R1("reduce");A1({target:"Array",proto:!0,forced:M1},{reduce:v(function(e){var t=arguments.length;return P1(this,e,t,t>1?arguments[1]:void 0)},"reduce")});var V1=ee,D1=aa,L1=kt.f,_1=pt,nl=me,k1=is,j1=ge,B1=ns,U1=D1("".slice),F1=Math.min,hv=B1("endsWith"),z1=!hv&&!!function(){var a=L1(String.prototype,"endsWith");return a&&!a.writable}();V1({target:"String",proto:!0,forced:!z1&&!hv},{endsWith:v(function(e){var t=nl(j1(this));k1(e);var r=arguments.length>1?arguments[1]:void 0,i=t.length,n=r===void 0?i:F1(_1(r),i),o=nl(e);return U1(t,n-o.length,n)===o},"endsWith")});var si=X,vv=_,H1=Zn,Y1=J,G1=ae,X1=ge,W1=mh,q1=es,Q1=pt,sl=me,K1=dt,ol=rs,Z1=Xh,J1=L,Ze=Z1.UNSUPPORTED_Y,e2=4294967295,t2=Math.min,oi=vv([].push),ui=vv("".slice),r2=!J1(function(){var a=/(?:)/,e=a.exec;a.exec=function(){return e.apply(this,arguments)};var t="ab".split(a);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),ul="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;H1("split",function(a,e,t){var r="0".split(void 0,0).length?function(i,n){return i===void 0&&n===0?[]:si(e,this,i,n)}:e;return[v(function(n,o){var s=X1(this),u=G1(n)?K1(n,a):void 0;return u?si(u,n,s,o):si(r,sl(s),n,o)},"split"),function(i,n){var o=Y1(this),s=sl(i);if(!ul){var u=t(r,o,s,n,r!==e);if(u.done)return u.value}var l=W1(o,RegExp),h=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Ze?"g":"y"),g=new l(Ze?"^(?:"+o.source+")":o,c),f=n===void 0?e2:n>>>0;if(f===0)return[];if(s.length===0)return ol(g,s)===null?[s]:[];for(var d=0,p=0,y=[];p<s.length;){g.lastIndex=Ze?0:p;var m=ol(g,Ze?ui(s,p):s),O;if(m===null||(O=t2(Q1(g.lastIndex+(Ze?p:0)),s.length))===d)p=q1(s,p,h);else{if(oi(y,ui(s,d,p)),y.length===f)return y;for(var x=1;x<=m.length-1;x++)if(oi(y,m[x]),y.length===f)return y;p=d=O}}return oi(y,ui(s,d)),y}]},ul||!r2,Ze);var ua={exports:{}},Ct={exports:{}};(function(){var a,e,t,r,i,n;typeof performance<"u"&&performance!==null&&performance.now?Ct.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(Ct.exports=function(){return(a()-i)/1e6},e=process.hrtime,a=v(function(){var o;return o=e(),o[0]*1e9+o[1]},"getNanoSeconds"),r=a(),n=process.uptime()*1e9,i=r-n):Date.now?(Ct.exports=function(){return Date.now()-t},t=Date.now()):(Ct.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(et);var a2=Ct.exports,i2=a2,Oe=typeof window>"u"?et:window,pr=["moz","webkit"],ot="AnimationFrame",vt=Oe["request"+ot],Dt=Oe["cancel"+ot]||Oe["cancelRequest"+ot];for(var St=0;!vt&&St<pr.length;St++)vt=Oe[pr[St]+"Request"+ot],Dt=Oe[pr[St]+"Cancel"+ot]||Oe[pr[St]+"CancelRequest"+ot];if(!vt||!Dt){var li=0,ll=0,Le=[],n2=1e3/60;
3vt=v(function(a){if(Le.length===0){var e=i2(),t=Math.max(0,n2-(e-li));li=t+e,setTimeout(function(){var r=Le.slice(0);Le.length=0;for(var i=0;i<r.length;i++)if(!r[i].cancelled)try{r[i].callback(li)}catch(n){setTimeout(function(){throw n},0)}},Math.round(t))}return Le.push({handle:++ll,callback:a,cancelled:!1}),ll},"raf"),Dt=v(function(a){for(var e=0;e<Le.length;e++)Le[e].handle===a&&(Le[e].cancelled=!0)},"caf")}ua.exports=function(a){return vt.call(Oe,a)};ua.exports.cancel=function(){Dt.apply(Oe,arguments)};ua.exports.polyfill=function(a){a||(a=Oe),a.requestAnimationFrame=vt,a.cancelAnimationFrame=Dt};var s2=ua.exports;const hi=_l(s2);var fv=` 4\v\f\r  áââââââ ââââââ¯âã\u2028\u2029\uFEFF`,o2=_,u2=ge,l2=me,Li=fv,hl=o2("".replace),h2=RegExp("^["+Li+"]+"),v2=RegExp("(^|[^"+Li+"])["+Li+"]+$"),f2=v(function(a){return function(e){var t=l2(u2(e));return a&1&&(t=hl(t,h2,"")),a&2&&(t=hl(t,v2,"$1")),t}},"createMethod"),c2={trim:f2(3)},g2=Zr.PROPER,d2=L,vl=fv,fl="â á ",p2=v(function(a){return d2(function(){return!!vl[a]()||fl[a]()!==fl||g2&&vl[a].name!==a})},"stringTrimForced"),y2=ee,m2=c2.trim,b2=p2;y2({target:"String",proto:!0,forced:b2("trim")},{trim:v(function(){return m2(this)},"trim")});var x2=v(function(a){this.ok=!1,this.alpha=1,a.charAt(0)=="#"&&(a=a.substr(1,6)),a=a.replace(/ /g,""),a=a.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:"90ee9
40",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"};a=e[a]||a;for(var t=[{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:v(function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3]),parseFloat(u[4])]},"process")},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:v(function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]},"process")},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:v(function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]},"process")},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:v(function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]},"process")}],r=0;r<t.length;r++){var i=t[r].re,n=t[r].process,o=i.exec(a);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<t.length;l++)for(var h=t[l].example,c=0;c<h.length;c++)u[u.length]=h[c];for(var g in e)u[u.length]=g;var f=document.createElement("ul");f.setAttribute("id","rgbcolor-examples");for(var l=0;l<u.length;l++)try{var d=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());d.appendChild(y),d.appendChild(m),f.appendChild(d)}catch{}return f}},"rgbcolor");const _i=_l(x2);var O2=ee,T2=aa,$2=oh.indexOf,S2=lv,ki=T2([].indexOf),cv=!!ki&&1/ki([1],1,-0)<0,w2=cv||!S2("indexOf");O2({target:"Array",proto:!0,forced:w2},{indexOf:v(function(e){var t=arguments.length>1?arguments[1]:void 0;return cv?ki(this,e,t)||0:$2(this,e,t)},"indexOf")});var C2=ee,E2=_,A2=is,P2=ge,cl=me,R2=ns,N2=E2("".indexOf);C2({target:"String",proto:!0,forced:!R2("includes")},{includes:v(function(e){return!!~N2(cl(P2(this)),cl(A2(e)),arguments.length>1?arguments[1]:void 0)},"includes")});var I2=Ye,M2=Array.isArray||v(function(e){return I2(e)==="Array"},"isArray"),V2=ee,D2=_,L2=M2,_2=D2([].reverse),gl=[1,2];V2({target:"Array",proto:!0,forced:String(gl)===String(gl.reverse())},{reverse:v(function(){return L2(this)&&(this.length=this.length),_2(this)},"reverse")});/*! ***************************************************************************** 5Copyright (c) Microsoft Corporation. 6 7Permission to use, copy, modify, and/or distribute this software for any 8purpose with or without fee is hereby granted. 9 10THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 11REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 12AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 13INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 14LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 15OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16PERFORMANCE OF THIS SOFTWARE. 17***************************************************************************** */var gv=v(function(a,e){return(gv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])})(a,e)},"t");function dv(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=a}
vendor: 16,823 bytes, lines 17-18
17v(t,"i"),gv(a,e),a.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}v(dv,"r");function k2(a){var e="";Array.isArray(a)||(a=[a]);for(var t=0;t<a.length;t++){var r=a[t];if(r.type===b.CLOSE_PATH)e+="z";else if(r.type===b.HORIZ_LINE_TO)e+=(r.relative?"h":"H")+r.x;else if(r.type===b.VERT_LINE_TO)e+=(r.relative?"v":"V")+r.y;else if(r.type===b.MOVE_TO)e+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===b.LINE_TO)e+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===b.CURVE_TO)e+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===b.SMOOTH_CURVE_TO)e+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===b.QUAD_TO)e+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===b.SMOOTH_QUAD_TO)e+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==b.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+t+".");e+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return e}v(k2,"e");function ji(a,e){var t=a[0],r=a[1];return[t*Math.cos(e)-r*Math.sin(e),t*Math.sin(e)+r*Math.cos(e)]}v(ji,"i");function he(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];for(var t=0;t<a.length;t++)if(typeof a[t]!="number")throw new Error("assertNumbers arguments["+t+"] is not a number. "+typeof a[t]+" == typeof "+a[t]);return!0}v(he,"a");var Ee=Math.PI;function vi(a,e,t){a.lArcFlag=a.lArcFlag===0?0:1,a.sweepFlag=a.sweepFlag===0?0:1;var r=a.rX,i=a.rY,n=a.x,o=a.y;r=Math.abs(a.rX),i=Math.abs(a.rY);var s=ji([(e-n)/2,(t-o)/2],-a.xRot/180*Ee),u=s[0],l=s[1],h=Math.pow(u,2)/Math.pow(r,2)+Math.pow(l,2)/Math.pow(i,2);1<h&&(r*=Math.sqrt(h),i*=Math.sqrt(h)),a.rX=r,a.rY=i;var c=Math.pow(r,2)*Math.pow(l,2)+Math.pow(i,2)*Math.pow(u,2),g=(a.lArcFlag!==a.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(i,2)-c)/c)),f=r*l/i*g,d=-i*u/r*g,p=ji([f,d],a.xRot/180*Ee);a.cX=p[0]+(e+n)/2,a.cY=p[1]+(t+o)/2,a.phi1=Math.atan2((l-d)/i,(u-f)/r),a.phi2=Math.atan2((-l-d)/i,(-u-f)/r),a.sweepFlag===0&&a.phi2>a.phi1&&(a.phi2-=2*Ee),a.sweepFlag===1&&a.phi2<a.phi1&&(a.phi2+=2*Ee),a.phi1*=180/Ee,a.phi2*=180/Ee}v(vi,"o");function dl(a,e,t){he(a,e,t);var r=a*a+e*e-t*t;if(0>r)return[];if(r===0)return[[a*t/(a*a+e*e),e*t/(a*a+e*e)]];var i=Math.sqrt(r);return[[(a*t+e*i)/(a*a+e*e),(e*t-a*i)/(a*a+e*e)],[(a*t-e*i)/(a*a+e*e),(e*t+a*i)/(a*a+e*e)]]}v(dl,"s");var U,be=Math.PI/180;function pl(a,e,t){return(1-t)*a+t*e}v(pl,"c$1");function yl(a,e,t,r){return a+Math.cos(r/180*Ee)*e+Math.sin(r/180*Ee)*t}v(yl,"y");function ml(a,e,t,r){var i=1e-6,n=e-a,o=t-e,s=3*n+3*(r-t)-6*o,u=6*(o-n),l=3*n;return Math.abs(s)<i?[-l/u]:function(h,c,g){var f=h*h/4-c;if(f<-g)return[];if(f<=g)return[-h/2];var d=Math.sqrt(f);return[-h/2-d,-h/2+d]}(u/s,l/s,i)}v(ml,"p");function bl(a,e,t,r,i){var n=1-i;return a*(n*n*n)+e*(3*n*n*i)+t*(3*n*i*i)+r*(i*i*i)}v(bl,"m$1");(function(a){function e(){return i(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})}v(e,"r");function t(){var s=NaN,u=NaN,l=NaN,h=NaN;return i(function(c,g,f){return c.type&b.SMOOTH_CURVE_TO&&(c.type=b.CURVE_TO,s=isNaN(s)?g:s,u=isNaN(u)?f:u,c.x1=c.relative?g-s:2*g-s,c.y1=c.relative?f-u:2*f-u),c.type&b.CURVE_TO?(s=c.relative?g+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)?g:l,h=isNaN(h)?f:h,c.x1=c.relative?g-l:2*g-l,c.y1=c.relative?f-h:2*f-h),c.type&b.QUAD_TO?(l=c.relative?g+c.x1:c.x1,h=c.relative?f+c.y1:c.y1):(l=NaN,h=NaN),c})}v(t,"e");function r(){var s=NaN,u=NaN;return i(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 g=l.x1,f=l.y1;l.type=b.CURVE_TO,l.x1=((l.relative?0:h)+2*g)/3,l.y1=((l.relative?0:c)+2*f)/3,l.x2=(l.x+2*g)/3,l.y2=(l.y+2*f)/3}else s=NaN,u=NaN;return l})}v(r,"n");function i(s){var u=0,l=0,h=NaN,c=NaN;return function(g){if(isNaN(h)&&!(g.type&b.MOVE_TO))throw new Error("path must start with moveto");var f=s(g,u,l,h,c);return g.type&b.CLOSE_PATH&&(u=h,l=c),g.x!==void 0&&(u=g.relative?u+g.x:g.x),g.y!==void 0&&(l=g.relative?l+g.y:g.y),g.type&b.MOVE_TO&&(h=u,c=l),f}}v(i,"u");function n(s,u,l,h,c,g){return he(s,u,l,h,c,g),i(function(f,d,p,y){var m=f.x1,O=f.x2,x=f.relative&&!isNaN(y),T=f.x!==void 0?f.x:x?0:d,E=f.y!==void 0?f.y:x?0:p;function w(ue){return ue*ue}v(w,"l"),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:d),f.x!==void 0&&(f.x=f.x*s+E*l+(x?0:c)),f.y!==void 0&&(f.y=T*u+f.y*h+(x?0:g)),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:g)),f.x2!==void 0&&(f.x2=f.x2*s+f.y2*l+(x?0:c)),f.y2!==void 0&&(f.y2=O*u+f.y2*h+(x?0:g));var $=s*h-u*l;if(f.xRot!==void 0&&(s!==1||u!==0||l!==0||h!==1))if($===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),D=Math.cos(A),j=1/w(f.rX),R=1/w(f.rY),W=w(D)*j+w(P)*R,q=2*P*D*(j-R),H=w(P)*j+w(D)*R,Q=W*h*h-q*u*h+H*u*u,G=q*(s*h+u*l)-2*(W*l*h+H*s*u),K=W*l*l-q*s*l+H*s*s,N=(Math.atan2(G,Q-K)+Math.PI)%Math.PI/2,I=Math.sin(N),Z=Math.cos(N);f.rX=Math.abs($)/Math.sqrt(Q*w(Z)+G*I*Z+K*w(I)),f.rY=Math.abs($)/Math.sqrt(Q*w(I)-G*I*Z+K*w(Z)),f.xRot=180*N/Math.PI}return f.sweepFlag!==void 0&&0>$&&(f.sweepFlag=+!f.sweepFlag),f})}v(n,"O");function o(){return function(s){var u={};for(var l in s)u[l]=s[l];return u}}v(o,"l"),a.ROUND=function(s){function u(l){return Math.round(l*s)/s}return v(u,"r"),s===void 0&&(s=1e13),he(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}},a.TO_ABS=e,a.TO_REL=function(){return i(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})},a.NORMALIZE_HVZ=function(s,u,l){return s===void 0&&(s=!0),u===void 0&&(u=!0),l===void 0&&(l=!0),i(function(h,c,g,f,d){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:g),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?d-g:d),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})},a.NORMALIZE_ST=t,a.QT_TO_C=r,a.INFO=i,a.SANITIZE=function(s){s===void 0&&(s=0),he(s);var u=NaN,l=NaN,h=NaN,c=NaN;return i(function(g,f,d,p,y){var m=Math.abs,O=!1,x=0,T=0;if(g.type&b.SMOOTH_CURVE_TO&&(x=isNaN(u)?0:f-u,T=isNaN(l)?0:d-l),g.type&(b.CURVE_TO|b.SMOOTH_CURVE_TO)?(u=g.relative?f+g.x2:g.x2,l=g.relative?d+g.y2:g.y2):(u=NaN,l=NaN),g.type&b.SMOOTH_QUAD_TO?(h=isNaN(h)?f:2*f-h,c=isNaN(c)?d:2*d-c):g.type&b.QUAD_TO?(h=g.relative?f+g.x1:g.x1,c=g.relative?d+g.y1:g.y2):(h=NaN,c=NaN),g.type&b.LINE_COMMANDS||g.type&b.ARC&&(g.rX===0||g.rY===0||!g.lArcFlag)||g.type&b.CURVE_TO||g.type&b.SMOOTH_CURVE_TO||g.type&b.QUAD_TO||g.type&b.SMOOTH_QUAD_TO){var E=g.x===void 0?0:g.relative?g.x:g.x-f,w=g.y===void 0?0:g.relative?g.y:g.y-d;x=isNaN(h)?g.x1===void 0?x:g.relative?g.x:g.x1-f:h-f,T=isNaN(c)?g.y1===void 0?T:g.relative?g.y:g.y1-d:c-d;var $=g.x2===void 0?0:g.relative?g.x:g.x2-f,A=g.y2===void 0?0:g.relative?g.y:g.y2-d;m(E)<=s&&m(w)<=s&&m(x)<=s&&m(T)<=s&&m($)<=s&&m(A)<=s&&(O=!0)}return g.type&b.CLOSE_PATH&&m(f-p)<=s&&m(d-y)<=s&&(O=!0),O?[]:g})},a.MATRIX=n,a.ROTATE=function(s,u,l){u===void 0&&(u=0),l===void 0&&(l=0),he(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)},a.TRANSLATE=function(s,u){return u===void 0&&(u=0),he(s,u),n(1,0,0,1,s,u)},a.SCALE=function(s,u){return u===void 0&&(u=s),he(s,u),n(s,0,0,u,0,0)},a.SKEW_X=function(s){return he(s),n(1,0,Math.atan(s),1,0,0)},a.SKEW_Y=function(s){return he(s),n(1,Math.atan(s),0,1,0,0)},a.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),he(s),n(-1,0,0,1,s,0)},a.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),he(s),n(1,0,0,-1,0,s)},a.A_TO_C=function(){return i(function(s,u,l){return b.ARC===s.type?function(h,c,g){var f,d,p,y;h.cX||vi(h,c,g);for(var m=Math.min(h.phi1,h.phi2),O=Math.max(h.phi1,h.phi2)-m,x=Math.ceil(O/90),T=new Array(x),E=c,w=g,$=0;$<x;$++){var A=pl(h.phi1,h.phi2,$/x),P=pl(h.phi1,h.phi2,($+1)/x),D=P-A,j=4/3*Math.tan(D*be/4),R=[Math.cos(A*be)-j*Math.sin(A*be),Math.sin(A*be)+j*Math.cos(A*be)],W=R[0],q=R[1],H=[Math.cos(P*be),Math.sin(P*be)],Q=H[0],G=H[1],K=[Q+j*Math.sin(P*be),G-j*Math.cos(P*be)],N=K[0],I=K[1];T[$]={relative:h.relative,type:b.CURVE_TO};var Z=v(function(ue,pe){var Ce=ji([ue*h.rX,pe*h.rY],h.xRot),We=Ce[0],Yt=Ce[1];return[h.cX+We,h.cY+Yt]},"H");f=Z(W,q),T[$].x1=f[0],T[$].y1=f[1],d=Z(N,I),T[$].x2=d[0],T[$].y2=d[1],p=Z(Q,G),T[$].x=p[0],T[$].y=p[1],h.relative&&(T[$].x1-=E,T[$].y1-=w,T[$].x2-=E,T[$].y2-=w,T[$].x-=E,T[$].y-=w),E=(y=[T[$].x,T[$].y])[0],w=y[1]}return T}(s,s.relative?0:u,s.relative?0:l):s})},a.ANNOTATE_ARCS=function(){return i(function(s,u,l){return s.relative&&(u=0,l=0),b.ARC===s.type&&vi(s,u,l),s})},a.CLONE=o,a.CALCULATE_BOUNDS=function(){var s=v(function(g){var f={};for(var d in g)f[d]=g[d];return f},"t"),u=e(),l=r(),h=t(),c=i(function(g,f,d){var p=h(l(u(s(g))));function y(I){I>c.maxX&&(c.maxX=I),I<c.minX&&(c.minX=I)}v(y,"O");function m(I){I>c.maxY&&(c.maxY=I),I<c.minY&&(c.minY=I)}if(v(m,"l"),p.type&b.DRAWING_COMMANDS&&(y(f),m(d)),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 O=0,x=ml(f,p.x1,p.x2,p.x);O<x.length;O++)0<(N=x[O])&&1>N&&y(bl(f,p.x1,p.x2,p.x,N));for(var T=0,E=ml(d,p.y1,p.y2,p.y);T<E.length;T++)0<(N=E[T])&&1>N&&m(bl(d,p.y1,p.y2,p.y,N))}if(p.type&b.ARC){y(p.x),m(p.y),vi(p,f,d);for(var w=p.xRot/180*Math.PI,$=Math.cos(w)*p.rX,A=Math.sin(w)*p.rX,P=-Math.sin(w)*p.rY,D=Math.cos(w)*p.rY,j=p.phi1<p.phi2?[p.phi1,p.phi2]:-180>p.phi2?[p.phi2+360,p.phi1+360]:[p.phi2,p.phi1],R=j[0],W=j[1],q=function(I){var Z=I[0],ue=I[1],pe=180*Math.atan2(ue,Z)/Math.PI;return pe<R?pe+360:pe},H=0,Q=dl(P,-$,0).map(q);H<Q.length;H++)(N=Q[H])>R&&N<W&&y(yl(p.cX,$,P,N));for(var G=0,K=dl(D,-A,0).map(q);G<K.length;G++){var N;(N=K[G])>R&&N<W&&m(yl(p.cY,A,D,N))}}return g});return c.minX=1/0,c.maxX=-1/0,c.minY=1/0,c.maxY=-1/0,c}})(U||(U={}));var le,pv=function(){function a(){}return v(a,"t"),a.prototype.round=function(e){return this.transform(U.ROUND(e))},a.prototype.toAbs=function(){return this.transform(U.TO_ABS())},a.prototype.toRel=function(){return this.transform(U.TO_REL())},a.prototype.normalizeHVZ=function(e,t,r){return this.transform(U.NORMALIZE_HVZ(e,t,r))},a.prototype.normalizeST=function(){return this.transform(U.NORMALIZE_ST())},a.prototype.qtToC=function(){return this.transform(U.QT_TO_C())},a.prototype.aToC=function(){return this.transform(U.A_TO_C())},a.prototype.sanitize=function(e){return this.transform(U.SANITIZE(e))},a.prototype.translate=function(e,t){return this.transform(U.TRANSLATE(e,t))},a.prototype.scale=function(e,t){return this.transform(U.SCALE(e,t))},a.prototype.rotate=function(e,t,r){return this.transform(U.ROTATE(e,t,r))},a.prototype.matrix=function(e,t,r,i,n,o){return this.transform(U.MATRIX(e,t,r,i,n,o))},a.prototype.skewX=function(e){return this.transform(U.SKEW_X(e))},a.prototype.skewY=function(e){return this.transform(U.SKEW_Y(e))},a.prototype.xSymmetry=function(e){return this.transform(U.X_AXIS_SYMMETRY(e))},a.prototype.ySymmetry=function(e){return this.transform(U.Y_AXIS_SYMMETRY(e))},a.prototype.annotateArcs=function(){return this.transform(U.ANNOTATE_ARCS())},a}(),j2=v(function(a){return a===" "||a===" "||a==="\r"||a===` 18`},"T"),xl=v(function(a){return 48<=a.charCodeAt(0)&&a.charCodeAt(0)<=57},"v"),B2=function(a){function e(){var t=a.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return v(e,"e"),dv(e,a),e.prototype.finish=function(t){if(t===void 0&&(t=[]),this.parse(" ",t),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,r){var i=this;r===void 0&&(r=[]);for(var n=function(c){r.push(c),i.curArgs.length=0,i.canParseCommandOrComma=!0},o=0;o<t.length;o++){var s=t[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=xl(s)&&(this.curNumber==="0"&&s==="0"||u);if(!xl(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===U2[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(!j2(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 r.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 r},e.prototype.transform=function(t){return Object.create(this,{parse:{value:v(function(r,i){i===void 0&&(i=[]);for(var n=0,o=Object.getPrototypeOf(this).parse.call(this,r);
18n<o.length;n++){var s=o[n],u=t(s);Array.isArray(u)?i.push.apply(i,u):i.push(u)}return i},"value")}})},e}(pv),b=function(a){function e(t){var r=a.call(this)||this;return r.commands=typeof t=="string"?e.parse(t):t,r}return v(e,"i"),dv(e,a),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=U.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var r=[],i=0,n=this.commands;i<n.length;i++){var o=t(n[i]);Array.isArray(o)?r.push.apply(r,o):r.push(o)}return this.commands=r,this},e.encode=function(t){return k2(t)},e.parse=function(t){var r=new B2,i=[];return r.parse(t,i),r.finish(i),i},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}(pv),U2=((le={})[b.MOVE_TO]=2,le[b.LINE_TO]=2,le[b.HORIZ_LINE_TO]=1,le[b.VERT_LINE_TO]=1,le[b.CLOSE_PATH]=0,le[b.QUAD_TO]=4,le[b.SMOOTH_QUAD_TO]=2,le[b.CURVE_TO]=6,le[b.SMOOTH_CURVE_TO]=4,le[b.ARC]=7,le),F2=Zr.PROPER,z2=Xe,H2=J,Ol=me,Y2=L,G2=ts,us="toString",yv=RegExp.prototype,mv=yv[us],X2=Y2(function(){return mv.call({source:"a",flags:"b"})!=="/a/b"}),W2=F2&&mv.name!==us;(X2||W2)&&z2(yv,us,v(function(){var e=H2(this),t=Ol(e.source),r=Ol(G2(e));return"/"+t+"/"+r},"toString"),{unsafe:!0});function wr(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wr=v(function(e){return typeof e},"_typeof"):wr=v(function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},"_typeof"),wr(a)}v(wr,"_typeof");function q2(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}v(q2,"_classCallCheck");var Q2=[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,39
vendor: 4,815 bytes, line 18
186,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],K2=[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 Z2(a,e,t,r,i){if(typeof a=="string"&&(a=document.getElementById(a)),!a||wr(a)!=="object"||!("getContext"in a))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var n=a.getContext("2d");try{return n.getImageData(e,t,r,i)}catch(o){throw new Error("unable to access image data: "+o)}}v(Z2,"getImageDataFromCanvas");function J2(a,e,t,r,i,n){if(!(isNaN(n)||n<1)){n|=0;var o=Z2(a,e,t,r,i);o=ex(o,e,t,r,i,n),a.getContext("2d").putImageData(o,e,t)}}v(J2,"processCanvasRGBA");function ex(a,e,t,r,i,n){for(var o=a.data,s=2*n+1,u=r-1,l=i-1,h=n+1,c=h*(h+1)/2,g=new Tl,f=g,d,p=1;p<s;p++)f=f.next=new Tl,p===h&&(d=f);f.next=g;for(var y=null,m=null,O=0,x=0,T=Q2[n],E=K2[n],w=0;w<i;w++){f=g;for(var $=o[x],A=o[x+1],P=o[x+2],D=o[x+3],j=0;j<h;j++)f.r=$,f.g=A,f.b=P,f.a=D,f=f.next;for(var R=0,W=0,q=0,H=0,Q=h*$,G=h*A,K=h*P,N=h*D,I=c*$,Z=c*A,ue=c*P,pe=c*D,Ce=1;Ce<h;Ce++){var We=x+((u<Ce?u:Ce)<<2),Yt=o[We],lo=o[We+1],ho=o[We+2],vo=o[We+3],Gt=h-Ce;I+=(f.r=Yt)*Gt,Z+=(f.g=lo)*Gt,ue+=(f.b=ho)*Gt,pe+=(f.a=vo)*Gt,R+=Yt,W+=lo,q+=ho,H+=vo,f=f.next}y=g,m=d;for(var la=0;la<r;la++){var ha=pe*T>>>E;if(o[x+3]=ha,ha!==0){var va=255/ha;o[x]=(I*T>>>E)*va,o[x+1]=(Z*T>>>E)*va,o[x+2]=(ue*T>>>E)*va}else o[x]=o[x+1]=o[x+2]=0;I-=Q,Z-=G,ue-=K,pe-=N,Q-=y.r,G-=y.g,K-=y.b,N-=y.a;var Re=la+n+1;Re=O+(Re<u?Re:u)<<2,R+=y.r=o[Re],W+=y.g=o[Re+1],q+=y.b=o[Re+2],H+=y.a=o[Re+3],I+=R,Z+=W,ue+=q,pe+=H,y=y.next;var Xt=m,fo=Xt.r,co=Xt.g,go=Xt.b,po=Xt.a;Q+=fo,G+=co,K+=go,N+=po,R-=fo,W-=co,q-=go,H-=po,m=m.next,x+=4}O+=r}for(var qe=0;qe<r;qe++){x=qe<<2;var Ne=o[x],Ie=o[x+1],Me=o[x+2],te=o[x+3],fa=h*Ne,ca=h*Ie,ga=h*Me,da=h*te,Wt=c*Ne,qt=c*Ie,Qt=c*Me,Kt=c*te;f=g;for(var yo=0;yo<h;yo++)f.r=Ne,f.g=Ie,f.b=Me,f.a=te,f=f.next;for(var mo=r,pa=0,ya=0,ma=0,ba=0,Zt=1;Zt<=n;Zt++){x=mo+qe<<2;var Jt=h-Zt;Wt+=(f.r=Ne=o[x])*Jt,qt+=(f.g=Ie=o[x+1])*Jt,Qt+=(f.b=Me=o[x+2])*Jt,Kt+=(f.a=te=o[x+3])*Jt,ba+=Ne,pa+=Ie,ya+=Me,ma+=te,f=f.next,Zt<l&&(mo+=r)}x=qe,y=g,m=d;for(var xa=0;xa<i;xa++){var re=x<<2;o[re+3]=te=Kt*T>>>E,te>0?(te=255/te,o[re]=(Wt*T>>>E)*te,o[re+1]=(qt*T>>>E)*te,o[re+2]=(Qt*T>>>E)*te):o[re]=o[re+1]=o[re+2]=0,Wt-=fa,qt-=ca,Qt-=ga,Kt-=da,fa-=y.r,ca-=y.g,ga-=y.b,da-=y.a,re=qe+((re=xa+h)<l?re:l)*r<<2,Wt+=ba+=y.r=o[re],qt+=pa+=y.g=o[re+1],Qt+=ya+=y.b=o[re+2],Kt+=ma+=y.a=o[re+3],y=y.next,fa+=Ne=m.r,ca+=Ie=m.g,ga+=Me=m.b,da+=te=m.a,ba-=Ne,pa-=Ie,ya-=Me,ma-=te,m=m.next,x+=r}}return a}v(ex,"processImageDataRGBA");var Tl=v(function a(){q2(this,a),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null},"BlurStack");function tx(){var{DOMParser:a}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:a,createCanvas(t,r){return new OffscreenCanvas(t,r)},createImage(t){return Te(function*(){var r=yield fetch(t),i=yield r.blob(),n=yield createImageBitmap(i);return n})()}};return(typeof DOMParser<"u"||typeof a>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}v(tx,"offscreen");function rx(a){var{DOMParser:e,canvas:t,fetch:r}=a;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:r,createCanvas:t.createCanvas,createImage:t.loadImage}}v(rx,"node");var Mx=Object.freeze({__proto__:null,offscreen:tx,node:rx});function mt(a){return a.replace(/(?!\u3000)\s+/gm," ")}v(mt,"compressSpaces");function ax(a){return a.replace(/^[\n \t]+/,"")}v(ax,"trimLeft");function ix(a){return a.replace(/[\n \t]+$/,"")}v(ix,"trimRight");function se(a){var e=(a||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}v(se,"toNumbers");var nx=/^[A-Z-]+$/;function sx(a){return nx.test(a)?a.toLowerCase():a}v(sx,"normalizeAttributeName");function bv(a){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a)||[];return e[2]||e[3]||e[4]}v(bv,"parseExternalUrl");function ox(a){if(!a.startsWith("rgb"))return a;var e=3,t=a.replace(/\d+(\.\d+)?/g,(r,i)=>
18e--&&i?String(Math.round(parseFloat(r))):r);return t}v(ox,"normalizeColor");var ux=/(\[[^\]]+\])/g,lx=/(#[^\s+>~.[:]+)/g,hx=/(\.[^\s+>~.[:]+)/g,vx=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,fx=/(:[\w-]+\([^)]*\))/gi,cx=/(:[^\s+>~.[:]+)/g,gx=/([^\s+>~.[:]+)/g;function _e(a,e){var t=e.exec(a);return t?[a.replace(e," "),t.length]:[a,0]}v(_e,"findSelectorMatch");function dx(a){var e=[0,0,0],t=a.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[t,r]=_e(t,ux),e[1]+=r,[t,r]=_e(t,lx),e[0]+=r,[t,r]=_e(t,hx),e[1]+=r,[t,r]=_e(t,vx),e[2]+=r,[t,r]=_e(t,fx),e[1]+=r,[t,r]=_e(t,cx),e[1]+=r,t=t.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[t,r]=_e(t,gx),e[2]+=r,e.join("")}v(dx,"getSelectorSpecificity");var ut=1e-8;function $l(a){return Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2))}v($l,"vectorMagnitude");function Bi(a,e){return(a[0]*e[0]+a[1]*e[1])/($l(a)*$l(e))}v(Bi,"vectorsRatio");function Sl(a,e){return(a[0]*e[1]<a[1]*e[0]?-1:1)*Math.acos(Bi(a,e))}v(Sl,"vectorsAngle");function wl(a){return a*a*a}v(wl,"CB1");function Cl(a){return 3*a*a*(1-a)}v(Cl,"CB2");function El(a){return 3*a*(1-a)*(1-a)}v(El,"CB3");function Al(a){return(1-a)*(1-a)*(1-a)}v(Al,"CB4");function Pl(a){return a*a}v(Pl,"QB1");function Rl(a){return 2*a*(1-a)}v(Rl,"QB2");function Nl(a){return(1-a)*(1-a)}v(Nl,"QB3");const Be=class Be{constructor(e,t,r){this.document=e,this.name=t,this.value=r,this.isNormalizedColor=!1}static empty(e){return new Be(e,"EMPTY","")}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:r}=this;return mt(this.getString()).trim().split(e).map(i=>new Be(t,r,i))}hasValue(e){var{value:t}=this;return t!==null&&t!==""&&(e||t!==0)&&typeof t<"u"}isString(e){var{value:t}=this,r=typeof t=="string";return!r||!e?r:e.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:t}=this,r=parseFloat(t);return this.isString(/%$/)&&(r/=100),r}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=ox(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(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,i]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(r);default:{var o=this.getNumber();return t&&o<1?o*n.computeSize(r):o}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,e,t);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?Be.textBaselineMapping[this.get
vendor: 8,151 bytes, line 18
18String()]:null}addOpacity(e){for(var t=this.getColor(),r=t.length,i=0,n=0;n<r&&(t[n]===","&&i++,i!==3);n++);if(e.hasValue()&&this.isString()&&i!==3){var o=new _i(t);o.ok&&(o.alpha=e.getNumber(),t=o.toRGBA())}return new Be(this.document,this.name,t)}};v(Be,"Property");let S=Be;S.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"};const ls=class ls{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,t){this.viewPorts.push({width:e,height:t})}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)}};v(ls,"ViewPort");let Ui=ls;const it=class it{constructor(e,t){this.x=e,this.y=t}static parse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[r=t,i=t]=se(e);return new it(r,i)}static parseScale(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=t,i=r]=se(e);return new it(r,i)}static parsePath(e){for(var t=se(e),r=t.length,i=[],n=0;n<r;n+=2)i.push(new it(t[n],t[n+1]));return i}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:t,y:r}=this,i=t*e[0]+r*e[2]+e[4],n=t*e[1]+r*e[3]+e[5];this.x=i,this.y=n}};v(it,"Point");let z=it;const hs=class hs{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:t,onMouseMove:r}=this,i=e.ctx.canvas;i.onclick=t,i.onmousemove=r,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:t,eventElements:r}=this,{style:i}=e.ctx.canvas;i&&(i.cursor=""),t.forEach((n,o)=>{for(var{run:s}=n,u=r[o];u;)s(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((n,o)=>{var{x:s,y:u}=n;!i[o]&&t.isPointInPath&&t.isPointInPath(s,u)&&(i[o]=e)})}}checkBoundingBox(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((n,o)=>{var{x:s,y:u}=n;!i[o]&&t.isPointInBox(s,u)&&(i[o]=e)})}}mapXY(e,t){for(var{window:r,ctx:i}=this.screen,n=new z(e,t),o=i.canvas;o;)n.x-=o.offsetLeft,n.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(n.x+=r.scrollX),r.scrollY&&(n.y+=r.scrollY),n}onClick(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:r,run(i){i.onClick&&i.onClick()}})}onMouseMove(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:r,run(i){i.onMouseMove&&i.onMouseMove()}})}};v(hs,"Mouse");let Fi=hs;var xv=typeof window<"u"?window:null,Ov=typeof fetch<"u"?fetch.bind(void 0):null;const vs=class vs{constructor(e){var{fetch:t=Ov,window:r=xv}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Ui,this.mouse=new Fi(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(t=>t());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:r,aspectRatio:i,width:n,desiredWidth:o,height:s,desiredHeight:u,minX:l=0,minY:h=0,refX:c,refY:g,clip:f=!1,clipX:d=0,clipY:p=0}=e,y=mt(i).replace(/^defer\s/,""),[m,O]=y.split(" "),x=m||"xMidYMid",T=O||"meet",E=n/o,w=s/u,$=Math.min(E,w),A=Math.max(E,w),P=o,D=u;T==="meet"&&(P*=$,D*=$),T==="slice"&&(P*=A,D*=A);var j=new S(t,"refX",c),R=new S(t,"refY",g),W=j.hasValue()&&R.hasValue();if(W&&r.translate(-$*j.getPixels("x"),-$*R.getPixels("y")),f){var q=$*d,H=$*p;r.beginPath(),r.moveTo(q,H),r.lineTo(n,H),r.lineTo(n,s),r.lineTo(q,s),r.closePath(),r.clip()}if(!W){var Q=T==="meet"&&$===w,G=T==="slice"&&A===w,K=T==="meet"&&$===E,N=T==="slice"&&A===E;x.startsWith("xMid")&&(Q||G)&&r.translate(n/2-P/2,0),x.endsWith("YMid")&&(K||N)&&r.translate(0,s/2-D/2),x.startsWith("xMax")&&(Q||G)&&r.translate(n-P,0),x.endsWith("YMax")&&(K||N)&&r.translate(0,s-D)}switch(!0){case x==="none":r.scale(E,w);break;case T==="meet":r.scale($,$);break;case T==="slice":r.scale(A,A);break}r.translate(-l,-h)}start(e){var{enableRedraw:t=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:n=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:u,scaleHeight:l,offsetX:h,offsetY:c}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:g,mouse:f}=this,d=1e3/g;if(this.frameDuration=d,this.readyPromise=new Promise(x=>{this.resolveReady=x}),this.isReady()&&this.render(e,n,o,u,l,h,c),!!t){var p=Date.now(),y=p,m=0,O=v(()=>{p=Date.now(),m=p-y,m>=d&&(y=p-m%d,this.shouldUpdate(i,s)&&(this.render(e,n,o,u,l,h,c),f.runEvents())),this.intervalId=hi(O)},"tick");r||f.start(),this.intervalId=hi(O)}}stop(){this.intervalId&&(hi.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:r}=this,i=this.animations.reduce((n,o)=>o.update(r)||n,!1);if(i)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,r,i,n,o,s){var{CLIENT_WIDTH:u,CLIENT_HEIGHT:l,viewPort:h,ctx:c,isFirstRender:g}=this,f=c.canvas;h.clear(),f.width&&f.height?h.setCurrent(f.width,f.height):h.setCurrent(u,l);var d=e.getStyle("width"),p=e.getStyle("height");!t&&(g||typeof i!="number"&&typeof n!="number")&&(d.hasValue()&&(f.width=d.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),p.hasValue()&&(f.height=p.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var y=f.clientWidth||f.width,m=f.clientHeight||f.height;if(t&&d.hasValue()&&p.hasValue()&&(y=d.getPixels("x"),m=p.getPixels("y")),h.setCurrent(y,m),typeof o=="number"&&e.getAttribute("x",!0).setValue(o),typeof s=="number"&&e.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof n=="number"){var O=se(e.getAttribute("viewBox").getString()),x=0,T=0;if(typeof i=="number"){var E=e.getStyle("width");E.hasValue()?x=E.getPixels("x")/i:isNaN(O[2])||(x=O[2]/i)}if(typeof n=="number"){var w=e.getStyle("height");w.hasValue()?T=w.getPixels("y")/n:isNaN(O[3])||(T=O[3]/n)}x||(x=T),T||(T=x),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(n);var $=e.getStyle("transform",!0,!0);$.setValue("".concat($.getString()," scale(").concat(1/x,", ").concat(1/T,")"))}r||c.clearRect(0,0,y,m),e.render(c),g&&(this.isFirstRender=!1)}};v(vs,"Screen");let ft=vs;ft.defaultWindow=xv;ft.defaultFetch=Ov;var{defaultFetch:px}=ft,yx=typeof DOMParser<"u"?DOMParser:null;const fs=class fs{constructor(){var{fetch:e=px,DOMParser:t=yx}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return Te(function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return Te(function*(){var r=yield t.fetch(e),i=yield r.text();return t.parseFromString(i)})()}};v(fs,"Parser");let Pt=fs;const cs=class cs{constructor(e,t){this.type="translate",this.point=null,this.point=z.parse(t)}apply(e){var{x:t,y:r}=this.point;e.translate(t||0,r||0)}
18unapply(e){var{x:t,y:r}=this.point;e.translate(-1*t||0,-1*r||0)}applyToPoint(e){var{x:t,y:r}=this.point;e.applyTransform([1,0,0,1,t||0,r||0])}};v(cs,"Translate");let zi=cs;const gs=class gs{constructor(e,t,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=se(t);this.angle=new S(e,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(e){var{cx:t,cy:r,originX:i,originY:n,angle:o}=this,s=t+i.getPixels("x"),u=r+n.getPixels("y");e.translate(s,u),e.rotate(o.getRadians()),e.translate(-s,-u)}unapply(e){var{cx:t,cy:r,originX:i,originY:n,angle:o}=this,s=t+i.getPixels("x"),u=r+n.getPixels("y");e.translate(s,u),e.rotate(-1*o.getRadians()),e.translate(-s,-u)}applyToPoint(e){var{cx:t,cy:r,angle:i}=this,n=i.getRadians();e.applyTransform([1,0,0,1,t||0,r||0]),e.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),e.applyTransform([1,0,0,1,-t||0,-r||0])}};v(gs,"Rotate");let Hi=gs;const ds=class ds{constructor(e,t,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=z.parseScale(t);(i.x===0||i.y===0)&&(i.x=ut,i.y=ut),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(e){var{scale:{x:t,y:r},originX:i,originY:n}=this,o=i.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(t,r||t),e.translate(-o,-s)}unapply(e){var{scale:{x:t,y:r},originX:i,originY:n}=this,o=i.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(1/t,1/r||t),e.translate(-o,-s)}applyToPoint(e){var{x:t,y:r}=this.scale;e.applyTransform([t||0,0,0,r||0,0,0])}};v(ds,"Scale");let Yi=ds;const ps=class ps{constructor(e,t,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=se(t),this.originX=r[0],this.originY=r[1]}apply(e){var{originX:t,originY:r,matrix:i}=this,n=t.getPixels("x"),o=r.getPixels("y");e.translate(n,o),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),e.translate(-n,-o)}unapply(e){var{originX:t,originY:r,matrix:i}=this,n=i[0],o=i[2],s=i[4],u=i[1],l=i[3],h=i[5],c=0,g=0,f=1,d=1/(n*(l*f-h*g)-o*(u*f-h*c)+s*(u*g-l*c)),p=t.getPixels("x"),y=r.getPixels("y");e.translate(p,y),e.transform(d*(l*f-h*g),d*(h*c-u*f),d*(s*g-o*f),d*(n*f-s*c),d*(o*h-s*l),d*(s*u-n*h)),e.translate(-p,-y)}applyToPoint(e){e.applyTransform(this.matrix)}};v(ps,"Matrix");let Ir=ps;const ys=class ys extends Ir{constructor(e,t,r){super(e,t,r),this.type="skew",this.angle=null,this.angle=new S(e,"angle",t)}};v(ys,"Skew");let Mr=ys;const ms=class ms extends Mr{constructor(e,t,r){super(e,t,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}};v(ms,"SkewX");let Gi=ms;const bs=class bs extends Mr{constructor(e,t,r){super(e,t,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}};v(bs,"SkewY");let Xi=bs;function mx(a){return mt(a).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}v(mx,"parseTransforms");function bx(a){var[e,t]=a.split("(");return[e.trim(),t.trim().replace(")","")]}v(bx,"parseTransform");const Rt=class Rt{constructor(e,t,r){this.document=e,this.transforms=[];var i=mx(t);i.forEach(n=>{if(n!=="none"){var[o,s]=bx(n),u=Rt.transformTypes[o];typeof u<"u"&&this.transforms.push(new u(this.document,s,r))}})}static fromElement(e,t){var r=t.getStyle("transform",!1,!0),[i,n=i]=t.getStyle("transform-origin",!1,!0).split(),o=[i,n];return r.hasValue()?new Rt(e,r.getString(),o):null}apply(e){for(var{transforms:t}=this,r=t.length,i=0;i<r;i++)t[i].apply(e)}unapply(e){for(var{transforms:t}=this,r=t.length,i=r-1;i>=0;i--)t[i].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,r=t.length,i=0;i<r;i++)t[i].applyToPoint(e)}};v(Rt,"Transform");let ct=Rt;ct.transformTypes={translate:zi,rotate:Hi,scale:Yi,matrix:Ir,skewX:Gi,skewY:Xi};const Nt=class Nt{constructor(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=t,this.captureTextNodes=r,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],
vendor: 51,956 bytes, line 18
18!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(s=>{var u=sx(s.nodeName);this.attributes[u]=new S(e,u,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(s=>s.trim());i.forEach(s=>{if(s){var[u,l]=s.split(":").map(h=>h.trim());this.styles[u]=new S(e,u,l)}})}var{definitions:n}=e,o=this.getAttribute("id");o.hasValue()&&(n[o.getString()]||(n[o.getString()]=this)),Array.from(t.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(r&&(s.nodeType===3||s.nodeType===4)){var u=e.createTextNode(s);u.getText().length>0&&this.addChild(u)}})}}getAttribute(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[e];if(!r&&t){var i=new S(this.document,e,"");return this.attributes[e]=i,i}return r||S.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return S.empty(this.document)}getStyle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[e];if(i)return i;var n=this.getAttribute(e);if(n!=null&&n.hasValue())return this.styles[e]=n,n;if(!r){var{parent:o}=this;if(o){var s=o.getStyle(e);if(s!=null&&s.hasValue())return s}}if(t){var u=new S(this.document,e,"");return this.styles[e]=u,u}return i||S.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=ct.fromElement(this.document,this);t&&t.apply(e);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof Nt?e:this.document.createElement(e);t.parent=this,Nt.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t,{node:r}=this;if(typeof r.matches=="function")return r.matches(e);var i=(t=r.getAttribute)===null||t===void 0?void 0:t.call(r,"class");return!i||i===""?!1:i.split(" ").some(n=>".".concat(n)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var r in e)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=e[r],n=t[r];if(i)for(var o in i){var s=this.stylesSpecificity[o];typeof s>"u"&&(s="000"),n>=s&&(this.styles[o]=i[o],this.stylesSpecificity[o]=n)}}}removeStyles(e,t){var r=t.reduce((i,n)=>{var o=e.getStyle(n);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[...i,[n,s]]},[]);return r}restoreStyles(e,t){t.forEach(r=>{var[i,n]=r;e.getStyle(i,!0).setValue(n)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}};v(Nt,"Element");let M=Nt;M.ignoreChildTypes=["title"];const xs=class xs extends M{constructor(e,t,r){super(e,t,r)}};v(xs,"UnknownElement");let Wi=xs;function xx(a){var e=a.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}v(xx,"wrapFontFamily");function Ox(a){return typeof process>"u"?a:a.trim().split(",").map(xx).join(",")}v(Ox,"prepareFontFamily");function Tx(a){if(!a)return"";var e=a.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:""}}v(Tx,"prepareFontStyle");function $x(a){if(!a)return"";var e=a.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:""}}v($x,"prepareFontWeight");const Ae=class Ae{constructor(e,t,r,i,n,o){var s=o?typeof o=="string"?Ae.parse(o):o:{};this.fontFamily=n||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=t||s.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r="",i="",n="",o="",s="",u=mt(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return u.forEach(h=>{switch(!0){case(!l.fontStyle&&Ae.styles.includes(h)):h!=="inherit"&&(r=h),l.fontStyle=!0;break;case(!l.fontVariant&&Ae.variants.includes(h)):h!=="inherit"&&(i=h),l.fontStyle=!0,l.fontVariant=!0;break;case(!l.fontWeight&&Ae.weights.includes(h)):h!=="inherit"&&(n=h),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:h!=="inherit"&&([o]=h.split("/")),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:h!=="inherit"&&(s+=h)}}),new Ae(r,i,n,o,s,t)}toString(){return[Tx(this.fontStyle),this.fontVariant,$x(this.fontWeight),this.fontSize,Ox(this.fontFamily)].join(" ").trim()}};v(Ae,"Font");let fe=Ae;fe.styles="normal|italic|oblique|inherit";fe.variants="normal|small-caps|inherit";fe.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";const Os=class Os{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=r,this.y2=i,this.addPoint(e,t),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){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 t<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:r,x2:i,y2:n}=e;this.addPoint(t,r),this.addPoint(i,n)}}sumCubic(e,t,r,i,n){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*r+3*(1-e)*Math.pow(e,2)*i+Math.pow(e,3)*n}bezierCurveAdd(e,t,r,i,n){var o=6*t-12*r+6*i,s=-3*t+9*r-9*i+3*n,u=3*r-3*t;if(s===0){if(o===0)return;var l=-u/o;0<l&&l<1&&(e?this.addX(this.sumCubic(l,t,r,i,n)):this.addY(this.sumCubic(l,t,r,i,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,t,r,i,n)):this.addY(this.sumCubic(c,t,r,i,n)));var g=(-o-Math.sqrt(h))/(2*s);0<g&&g<1&&(e?this.addX(this.sumCubic(g,t,r,i,n)):this.addY(this.sumCubic(g,t,r,i,n)))}}addBezierCurve(e,t,r,i,n,o,s,u){this.addPoint(e,t),this.addPoint(s,u),this.bezierCurveAdd(!0,e,r,n,s),this.bezierCurveAdd(!1,t,i,o,u)}addQuadraticCurve(e,t,r,i,n,o){var s=e+.6666666666666666*(r-e),u=t+2/3*(i-t),l=s+1/3*(n-e),h=u+1/3*(o-t);this.addBezierCurve(e,t,s,l,u,h,n,o)}isPointInBox(e,t){var{x1:r,y1:i,x2:n,y2:o}=this;return r<=e&&e<=n&&i<=t&&t<=o}};v(Os,"BoundingBox");let oe=Os;const Ts=class Ts 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 z(0,0),this.control=new z(0,0),this.current=new z(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:t}=this;return e>=t.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",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new z(this.command[e],this.command[t]);return this.makeAbsolute(r)}getAsControlPoint(e,t){var r=this.getPoint(e,t);return this.control=r,r}getAsCurrentPoint(e,t){var r=this.getPoint(e,t);return this.current=r,r}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:t,y:r},control:{x:i,y:n}}=this,o=new z(2*t-i,2*r-n);return o}makeAbsolute(e){if(this.command.relative){var{x:t,y:r}=this.current;e.x+=t,e.y+=r}return e}addMarker(e,t,r){var{points:i,angles:n}=this;r&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,r=0;r<t;r++)if(!e[r]){for(var i=r+1;i<t;i++)if(e[i]){e[r]=e[i];break}}return e}};v(Ts,"PathParser");let C=Ts;const $s=class $s extends M{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,t=this;t;){var r=t.getStyle("opacity",!1,!0);r.hasValue(!0)&&(e*=r.getNumber()),t=t.parent}return e}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!t){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,i);s&&(e.fillStyle=s)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var u=r.getColor();u!=="inherit"&&(e.fillStyle=u==="none"?"rgba(0,0,0,0)":u)}if(i.hasValue()){var l=new S(this.document,"fill",e.fillStyle).addOpacity(i).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 g=new S(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=g}var f=this.getStyle("stroke-width");if(f.hasValue()){var d=f.getPixels();e.lineWidth=d||ut}var p=this.getStyle("stroke-linecap"),y=this.getStyle("stroke-linejoin"),m=this.getStyle("stroke-miterlimit"),O=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()),O.hasValue()&&O.getString()!=="none"){var T=se(O.getString());typeof e.setLineDash<"u"?e.setLineDash(T):typeof e.webkitLineDash<"u"?e.webkitLineDash=T:typeof e.mozDash<"u"&&!(T.length===1&&T[0]===0)&&(e.mozDash=T);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 w=this.getStyle("font"),$=this.getStyle("font-style"),A=this.getStyle("font-variant"),P=this.getStyle("font-weight"),D=this.getStyle("font-size"),j=this.getStyle("font-family"),R=new fe($.getString(),A.getString(),P.getString(),D.hasValue()?"".concat(D.getPixels(!0),"px"):"",j.getString(),fe.parse(w.getString(),e.font));$.setValue(R.fontStyle),A.setValue(R.fontVariant),P.setValue(R.fontWeight),D.setValue(R.fontSize),j.setValue(R.fontFamily),e.font=R.toString(),D.isPixels()&&(this.document.emSize=D.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}};v($s,"RenderedElement");let $e=$s;const ie=class ie extends $e{constructor(e,t,r){super(e,t,r),this.type="path",this.pathParser=null,this.pathParser=new C(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,r=new oe;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case C.MOVE_TO:this.pathM(e,r);break;case C.LINE_TO:this.pathL(e,r);break;case C.HORIZ_LINE_TO:this.pathH(e,r);break;case C.VERT_LINE_TO:this.pathV(e,r);break;case C.CURVE_TO:this.pathC(e,r);break;case C.SMOOTH_CURVE_TO:this.pathS(e,r);break;case C.QUAD_TO:this.pathQ(e,r);break;case C.SMOOTH_QUAD_TO:this.pathT(e,r);break;case C.ARC:this.pathA(e,r);break;case C.CLOSE_PATH:this.pathZ(e,r);break}return r}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),r=e.getMarkerAngles(),i=t.map((n,o)=>[n,r[o]]);return i}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");e.fillStyle!==""&&(t.getString("inherit")!=="inherit"?e.fill(t.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 r=this.getMarkers();if(r){var i=r.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]=r[0];u.render(e,l,h)}if(o.isUrlDefinition())for(var c=o.getDefinition(),g=1;g<i;g++){var[f,d]=r[g];c.render(e,f,d)}if(s.isUrlDefinition()){var p=s.getDefinition(),[y,m]=r[i];p.render(e,y,m)}}}static pathM(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){var{pathParser:r}=this,{point:i}=ie.pathM(r),{x:n,y:o}=i;r.addMarker(i),t.addPoint(n,o),e&&e.moveTo(n,o)}static pathL(e){var{current:t}=e,r=e.getAsCurrentPoint();return{current:t,point:r}}pathL(e,t){var{pathParser:r}=this,{current:i,point:n}=ie.pathL(r),{x:o,y:s}=n;r.addMarker(n,i),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathH(e){var{current:t,command:r}=e,i=new z((r.relative?t.x:0)+r.x,t.y);return e.current=i,{current:t,point:i}}pathH(e,t){var{pathParser:r}=this,{current:i,point:n}=ie.pathH(r),{x:o,y:s}=n;r.addMarker(n,i),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathV(e){var{current:t,command:r}=e,i=new z(t.x,(r.relative?t.y:0)+r.y);return e.current=i,{current:t,point:i}}pathV(e,t){var{pathParser:r}=this,{current:i,point:n}=ie.pathV(r),{x:o,y:s}=n;r.addMarker(n,i),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathC(e){var{current:t}=e,r=e.getPoint("x1","y1"),i=e.getAsControlPoint("x2","y2"),n=e.getAsCurrentPoint();return{current:t,point:r,controlPoint:i,currentPoint:n}}pathC(e,t){var{pathParser:r}=this,{current:i,point:n,controlPoint:o,currentPoint:s}=ie.pathC(r);r.addMarker(s,o,n),t.addBezierCurve(i.x,i.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:t}=e,r=e.getReflectedControlPoint(),i=e.getAsControlPoint("x2","y2"),n=e.getAsCurrentPoint();return{current:t,point:r,controlPoint:i,currentPoint:n}}pathS(e,t){var{pathParser:r}=this,{current:i,point:n,controlPoint:o,currentPoint:s}=ie.pathS(r);r.addMarker(s,o,n),t.addBezierCurve(i.x,i.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:t}=e,r=e.getAsControlPoint("x1","y1"),i=e.getAsCurrentPoint();return{current:t,controlPoint:r,currentPoint:i}}pathQ(e,t){var{pathParser:r}=this,{current:i,controlPoint:n,currentPoint:o}=ie.pathQ(r);r.addMarker(o,n,n),t.addQuadraticCurve(i.x,i.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:t}=e,r=e.getReflectedControlPoint();e.control=r;var i=e.getAsCurrentPoint();return{current:t,controlPoint:r,currentPoint:i}}pathT(e,t){var{pathParser:r}=this,{current:i,controlPoint:n,currentPoint:o}=ie.pathT(r);r.addMarker(o,n,n),t.addQuadraticCurve(i.x,i.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:t,command:r}=e,{rX:i,rY:n,xRot:o,lArcFlag:s,sweepFlag:u}=r,l=o*(Math.PI/180),h=e.getAsCurrentPoint(),c=new z(Math.cos(l)*(t.x-h.x)/2+Math.sin(l)*(t.y-h.y)/2,-Math.sin(l)*(t.x-h.x)/2+Math.cos(l)*(t.y-h.y)/2),g=Math.pow(c.x,2)/Math.pow(i,2)+Math.pow(c.y,2)/Math.pow(n,2);g>1&&(i*=Math.sqrt(g),n*=Math.sqrt(g));var f=(s===u?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(n,2)-Math.pow(i,2)*Math.pow(c.y,2)-Math.pow(n,2)*Math.pow(c.x,2))/(Math.pow(i,2)*Math.pow(c.y,2)+Math.pow(n,2)*Math.pow(c.x,2)));isNaN(f)&&(f=0);var d=new z(f*i*c.y/n,f*-n*c.x/i),p=new z((t.x+h.x)/2+Math.cos(l)*d.x-Math.sin(l)*d.y,(t.y+h.y)/2+Math.sin(l)*d.x+Math.cos(l)*d.y),y=Sl([1,0],[(c.x-d.x)/i,(c.y-d.y)/n]),m=[(c.x-d.x)/i,(c.y-d.y)/n],O=[(-c.x-d.x)/i,(-c.y-d.y)/n],x=Sl(m,O);return Bi(m,O)<=-1&&(x=Math.PI),Bi(m,O)>=1&&(x=0),{currentPoint:h,rX:i,rY:n,sweepFlag:u,xAxisRotation:l,centp:p,a1:y,ad:x}}pathA(e,t){var{pathParser:r}=this,{currentPoint:i,rX:n,rY:o,sweepFlag:s,xAxisRotation:u,centp:l,a1:h,ad:c}=ie.pathA(r),g=1-s?1:-1,f=h+g*(c/2),d=new z(l.x+n*Math.cos(f),l.y+o*Math.sin(f));if(r.addMarkerAngle(d,f-g*Math.PI/2),r.addMarkerAngle(i,f-g*Math.PI),t.addPoint(i.x,i.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,t){ie.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}};v(ie,"PathElement");let F=ie;const Ss=class Ss extends F{constructor(e,t,r){super(e,t,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}};v(Ss,"GlyphElement");let Vr=Ss;const It=class It extends $e{constructor(e,t,r){super(e,t,new.target===It?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,t);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((r,i)=>{var n=this.getChildBoundingBox(e,this,this,i);t?t.addBoundingBox(n):t=n}),t}getFontSize(){var{document:e,parent:t}=this,r=fe.parse(e.ctx.font).fontSize,i=t.getStyle("font-size").getNumber(r);return i}getTElementBoundingBox(e){var t=this.getFontSize();return new oe(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,r){var i=t[r],n=null;if(e.isArabic){var o=t.length,s=t[r-1],u=t[r+1],l="isolated";if((r===0||s===" ")&&r<o-1&&u!==" "&&(l="terminal"),r>0&&s!==" "&&r<o-1&&u!==" "&&(l="medial"),r>0&&s!==" "&&(r===o-1||u===" ")&&(l="initial"),typeof e.glyphs[i]<"u"){var h=e.glyphs[i];n=h instanceof Vr?h:h[l]}}else n=e.glyphs[i];return n||(n=e.missingGlyph),n}getText(){return""}getTextFromNode(e){var t=e||this.node,r=Array.from(t.parentNode.childNodes),i=r.indexOf(t),n=r.length-1,o=mt(t.textContent||"");return i===0&&(o=ax(o)),i===n&&(o=ix(o)),o}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((r,i)=>{this.renderChild(e,this,this,i)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:t,parent:r}=this,i=this.getText(),n=r.getStyle("font-family").getDefinition();if(n){for(var{unitsPerEm:o}=n.fontFace,s=fe.parse(t.ctx.font),u=r.getStyle("font-size").getNumber(s.fontSize),l=r.getStyle("font-style").getString(s.fontStyle),h=u/o,c=n.isRTL?i.split("").reverse().join(""):i,g=se(r.getAttribute("dx").getString()),f=c.length,d=0;d<f;d++){var p=this.getGlyph(n,c,d);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 g[d]<"u"&&!isNaN(g[d])&&(this.x+=g[d])}return}var{x:m,y:O}=this;e.fillStyle&&e.fillText(i,m,O),e.strokeStyle&&e.strokeText(i,m,O)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),r=!1,i=0;t==="start"&&!r||t==="end"&&r?i=e.x-this.minX:t==="end"&&!r||t==="start"&&r?i=e.x-this.maxX:i=e.x-(this.minX+this.maxX)/2;for(var n=this.textChunkStart;n<this.leafTexts.length;n++)this.leafTexts[n].x+=i;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((t,r)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,r,i){var n=r.children[i];n.children.length>0?n.children.forEach((o,s)=>{t.adjustChildCoordinatesRecursiveCore(e,t,n,s)}):this.adjustChildCoordinates(e,t,r,i)}adjustChildCoordinates(e,t,r,i){var n=r.children[i];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;i===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 g=n.measureText(e);return c&&(t.x-=g),o.hasValue()?(t.applyAnchoring(),n.x=o.getPixels("x"),u.hasValue()&&(n.x+=u.getPixels("x"))):(u.hasValue()&&(t.x+=u.getPixels("x")),n.x=t.x),t.x=n.x,c||(t.x+=g),s.hasValue()?(n.y=s.getPixels("y"),l.hasValue()&&(n.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),n.y=t.y),t.y=n.y,t.leafTexts.push(n),t.minX=Math.min(t.minX,n.x,n.x+g),t.maxX=Math.max(t.maxX,n.x,n.x+g),n.clearContext(e),e.restore(),n}getChildBoundingBox(e,t,r,i){var n=r.children[i];if(typeof n.getBoundingBox!="function")return null;var o=n.getBoundingBox(e);return o?(n.children.forEach((s,u)=>{var l=t.getChildBoundingBox(e,t,n,u);o.addBoundingBox(l)}),o):null}renderChild(e,t,r,i){var n=r.children[i];n.render(e),n.children.forEach((o,s)=>{t.renderChild(e,t,n,s)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var r=this.getText(),i=this.measureTargetText(e,r);return this.measureCache=i,i}measureTargetText(e,t){if(!t.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var n=this.getFontSize(),o=i.isRTL?t.split("").reverse().join(""):t,s=se(r.getAttribute("dx").getString()),u=o.length,l=0,h=0;h<u;h++){var c=this.getGlyph(i,o,h);l+=(c.horizAdvX||i.horizAdvX)*n/i.fontFace.unitsPerEm,typeof s[h]<"u"&&!isNaN(s[h])&&(l+=s[h])}return l}if(!e.measureText)return t.length*10;e.save(),this.setContext(e,!0);var{width:g}=e.measureText(t);return this.clearContext(e),e.restore(),g}getInheritedAttribute(e){for(var t=this;t instanceof It&&t.isFirstChild();){var r=t.parent.getAttribute(e);if(r.hasValue(!0))return r.getValue("0");t=t.parent}return null}};v(It,"TextElement");let ze=It;const zr=class zr extends ze{constructor(e,t,r){super(e,t,new.target===zr?!0:r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}};v(zr,"TSpanElement");let Dr=zr;const ws=class ws extends Dr{constructor(){super(...arguments),this.type="textNode"}};v(ws,"TextNode");let qi=ws;const Cs=class Cs extends $e{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:r}=this,{screen:i,window:n}=r,o=e.canvas;if(i.setDefaults(e),o.style&&typeof e.font<"u"&&n&&typeof n.getComputedStyle<"u"){e.font=n.getComputedStyle(o).getPropertyValue("font");var s=new S(r,"fontSize",fe.parse(e.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:u,height:l}=i.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var h=this.getAttribute("refX"),c=this.getAttribute("refY"),g=this.getAttribute("viewBox"),f=g.hasValue()?se(g.getString()):null,d=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",p=0,y=0,m=0,O=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,O=y,p=0,y=0)),i.viewPort.setCurrent(u,l),this.node&&(!this.parent||((t=this.node.parentNode)===null||t===void 0?void 0:t.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]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:u,height:i.viewPort.height,desiredHeight:l,minX:p,minY:y,refX:h.getValue(),refY:c.getValue(),clip:d,clipX:m,clipY:O}),f&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(u,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),n=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=i.getNumber(0),l=n.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(e),n.setValue(t),o.hasValue()||o.setValue("0 0 ".concat(u||e," ").concat(l||t)),s.hasValue()){var c=this.getStyle("width"),g=this.getStyle("height");c.hasValue()&&c.setValue("".concat(e,"px")),g.hasValue()&&g.setValue("".concat(t,"px"))}}};v(Cs,"SVGElement");let He=Cs;const Es=class Es extends F{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=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,i/2),l=Math.min(l,n/2),e){var h=4*((Math.sqrt(2)-1)/3);e.beginPath(),n>0&&i>0&&(e.moveTo(t+u,r),e.lineTo(t+i-u,r),e.bezierCurveTo(t+i-u+h*u,r,t+i,r+l-h*l,t+i,r+l),e.lineTo(t+i,r+n-l),e.bezierCurveTo(t+i,r+n-l+h*l,t+i-u+h*u,r+n,t+i-u,r+n),e.lineTo(t+u,r+n),e.bezierCurveTo(t+u-h*u,r+n,t,r+n-l+h*l,t,r+n-l),e.lineTo(t,r+l),e.bezierCurveTo(t,r+l-h*l,t+u-h*u,r,t+u,r),e.closePath())}return new oe(t,r,t+i,r+n)}getMarkers(){return null}};v(Es,"RectElement");let Lr=Es;const As=class As extends F{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(t,r,i,0,Math.PI*2,!1),e.closePath()),new oe(t-i,r-i,t+i,r+i)}getMarkers(){return null}};v(As,"CircleElement");let Qi=As;const Ps=class Ps extends F{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&r>0&&i>0&&(e.beginPath(),e.moveTo(n+r,o),e.bezierCurveTo(n+r,o+t*i,n+t*r,o+i,n,o+i),e.bezierCurveTo(n-t*r,o+i,n-r,o+t*i,n-r,o),e.bezierCurveTo(n-r,o-t*i,n-t*r,o-i,n,o-i),e.bezierCurveTo(n+t*r,o-i,n+r,o-t*i,n+r,o),e.closePath()),new oe(n-r,o-i,n+r,o+i)}getMarkers(){return null}};v(Ps,"EllipseElement");let Ki=Ps;const Rs=class Rs extends F{constructor(){super(...arguments),this.type="line"}getPoints(){return[new z(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new z(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:r},{x:i,y:n}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,r),e.lineTo(i,n)),new oe(t,r,i,n)}getMarkers(){var[e,t]=this.getPoints(),r=e.angleTo(t);return[[e,r],[t,r]]}};v(Rs,"LineElement");let Zi=Rs;const Ns=class Ns extends F{constructor(e,t,r){super(e,t,r),this.type="polyline",this.points=[],this.points=z.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:r,y:i}]=t,n=new oe(r,i);return e&&(e.beginPath(),e.moveTo(r,i)),t.forEach(o=>{var{x:s,y:u}=o;n.addPoint(s,u),e&&e.lineTo(s,u)}),n}getMarkers(){var{points:e}=this,t=e.length-1,r=[];return e.forEach((i,n)=>{n!==t&&r.push([i,i.angleTo(e[n+1])])}),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}};v(Ns,"PolylineElement");let _r=Ns;const Is=class Is extends _r{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:r,y:i}]=this.points;return e&&(e.lineTo(r,i),e.closePath()),t}};v(Is,"PolygonElement");let Ji=Is;const Ms=class Ms extends M{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,r){var i=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),o=new He(this.document,null);o.attributes.viewBox=new S(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new S(this.document,"width","".concat(i,"px")),o.attributes.height=new S(this.document,"height","".concat(n,"px")),o.attributes.transform=new S(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(i,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)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var g=-1;g<=1;g++)u.save(),o.attributes.x=new S(this.document,"x",c*s.width),o.attributes.y=new S(this.document,"y",g*s.height),o.render(u),u.restore();var f=e.createPattern(s,"repeat");return f}};v(Ms,"PatternElement");let en=Ms;const Vs=class Vs extends M{constructor(){super(...arguments),this.type="marker"}render(e,t,r){if(t){var{x:i,y:n}=t,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,n),o==="auto"&&e.rotate(r),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var u=new He(this.document,null);u.type=this.type,u.attributes.viewBox=new S(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new S(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new S(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new S(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new S(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new S(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new S(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new S(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(-r),e.translate(-i,-n)}}};v(Vs,"MarkerElement");let tn=Vs;const Ds=class Ds extends M{constructor(){super(...arguments),this.type="defs"}render(){}};v(Ds,"DefsElement");let rn=Ds;const Ls=class Ls extends $e{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new oe;return this.children.forEach(r=>{t.addBoundingBox(r.getBoundingBox(e))}),t}};v(Ls,"GElement");let Lt=Ls;const _s=class _s extends M{constructor(e,t,r){super(e,t,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:n}=this;n.forEach(o=>{o.type==="stop"&&i.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:n}=i,o=this.getGradient(e,t);if(!o)return this.addParentOpacity(r,n[n.length-1].color);if(n.forEach(y=>{o.addColorStop(y.offset,this.addParentOpacity(r,y.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:l}=s.screen,[h]=l.viewPorts,c=new Lr(s,null);c.attributes.x=new S(s,"x",-u/3),c.attributes.y=new S(s,"y",-u/3),c.attributes.width=new S(s,"width",u),c.attributes.height=new S(s,"height",u);var g=new Lt(s,null);g.attributes.transform=new S(s,"transform",this.getAttribute("gradientTransform").getValue()),g.children=[c];var f=new He(s,null);f.attributes.x=new S(s,"x",0),f.attributes.y=new S(s,"y",0),f.attributes.width=new S(s,"width",h.width),f.attributes.height=new S(s,"height",h.height),f.children=[g];var d=s.createCanvas(h.width,h.height),p=d.getContext("2d");return p.fillStyle=o,f.render(p),p.createPattern(d,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){if(e.hasValue()){var r=new S(this.document,"color",t);return r.addOpacity(e).getColor()}return t}};v(_s,"GradientElement");let kr=_s;const ks=class ks extends kr{constructor(e,t,r){super(e,t,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=r?t.getBoundingBox(e):null;if(r&&!i)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===s&&o===u?null:e.createLinearGradient(n,o,s,u)}};v(ks,"LinearGradientElement");let an=ks;const js=class js extends kr{constructor(e,t,r){super(e,t,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=t.getBoundingBox(e);if(r&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=n,u=o;this.getAttribute("fx").hasValue()&&(s=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,u,h,n,o,l)}};v(js,"RadialGradientElement");let nn=js;const Bs=class Bs extends M{constructor(e,t,r){super(e,t,r),this.type="stop";var i=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=i,this.color=o.getColor()}};v(Bs,"StopElement");let sn=Bs;const Us=class Us extends M{constructor(e,t,r){super(e,t,r),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 S(e,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:r,to:i}=this.getProgress(),n=r.getNumber()+(i.getNumber()-r.getNumber())*t;return e==="%"&&(n*=100),"".concat(n).concat(e)}update(e){var{parent:t}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=r.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,r.setValue(t.animationFrozen?t.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,")")}r.setValue(o),n=!0}return n}getProgress(){var{document:e,values:t}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var i=r.progress*(t.getValue().length-1),n=Math.floor(i),o=Math.ceil(i);r.from=new S(e,"from",parseFloat(t.getValue()[n])),r.to=new S(e,"to",parseFloat(t.getValue()[o])),r.progress=(i-n)/(o-n)}else r.from=this.from,r.to=this.to;return r}};v(Us,"AnimateElement");let _t=Us;const Fs=class Fs extends _t{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:t,to:r}=this.getProgress(),i=new _i(t.getColor()),n=new _i(r.getColor());if(i.ok&&n.ok){var o=i.r+(n.r-i.r)*e,s=i.g+(n.g-i.g)*e,u=i.b+(n.b-i.b)*e;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(s),", ").concat(Math.floor(u),")")}return this.getAttribute("from").getColor()}};v(Fs,"AnimateColorElement");let on=Fs;const zs=class zs extends _t{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:t,to:r}=this.getProgress(),i=se(t.getString()),n=se(r.getString()),o=i.map((s,u)=>{var l=n[u];return s+(l-s)*e}).join(" ");return o}};v(zs,"AnimateTransformElement");let un=zs;const Hs=class Hs extends M{constructor(e,t,r){super(e,t,r),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=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()&&(i[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=o;break;case"glyph":{var u=o;u.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[u.unicode]>"u"&&(this.glyphs[u.unicode]=Object.create(null)),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u;break}}}render(){}};v(Hs,"FontElement");let ln=Hs;const Ys=class Ys extends M{constructor(e,t,r){super(e,t,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}};v(Ys,"FontFaceElement");let hn=Ys;const Gs=class Gs extends F{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}};v(Gs,"MissingGlyphElement");let vn=Gs;const Xs=class Xs extends ze{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}};v(Xs,"TRefElement");let fn=Xs;const Ws=class Ws extends ze{constructor(e,t,r){super(e,t,r),this.type="a";var{childNodes:i}=t,n=i[0],o=i.length>0&&Array.from(i).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:t,x:r,y:i}=this,{mouse:n}=t.screen,o=new S(t,"fontSize",fe.parse(t.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new oe(r,i-o.getPixels("y"),r+this.measureText(e),i))}else if(this.children.length>0){var s=new Lt(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"}};v(Ws,"AElement");let cn=Ws;function Il(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}v(Il,"ownKeys$2");function yr(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Il(Object(t),!0).forEach(function(r){os(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Il(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}v(yr,"_objectSpread$2");const qs=class qs extends ze{constructor(e,t,r){super(e,t,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var i=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(i)}getText(){return this.text}path(e){var{dataArray:t}=this;e&&e.beginPath(),t.forEach(r=>{var{type:i,points:n}=r;switch(i){case C.LINE_TO:e&&e.lineTo(n[0],n[1]);break;case C.MOVE_TO:e&&e.moveTo(n[0],n[1]);break;case C.CURVE_TO:e&&e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case C.QUAD_TO:e&&e.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case C.ARC:{var[o,s,u,l,h,c,g,f]=n,d=u>l?u:l,p=u>l?1:u/l,y=u>l?l/u:1;e&&(e.translate(o,s),e.rotate(g),e.scale(p,y),e.arc(0,0,d,h,h+c,!!(1-f)),e.scale(1/p,1/y),e.rotate(-g),e.translate(-o,-s));break}case C.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,n=e.fillStyle;t==="underline"&&e.beginPath(),i.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(),t==="underline"&&(s===0&&e.moveTo(u.x,u.y+r/8),e.lineTo(l.x,l.y+r/5))}),t==="underline"&&(e.lineWidth=r/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,t,r,i,n,o,s,u,l){var h=o,c=this.measureText(e,u);u===" "&&t==="justify"&&r<i&&(c+=(i-r)/n),l>-1&&(h+=this.getLetterSpacingAt(l));var g=this.textHeight/20,f=this.getEquidistantPointOnPath(h,g,0),d=this.getEquidistantPointOnPath(h+c,g,0),p={p0:f,p1:d},y=f&&d?Math.atan2(d.y-f.y,d.x-f.x):0;if(s){var m=Math.cos(Math.PI/2+y)*s,O=Math.cos(-y)*s;p.p0=yr(yr({},f),{},{x:f.x+m,y:f.y+O}),p.p1=yr(yr({},d),{},{x:d.x+m,y:d.y+O})}return h+=c,{offset:h,segment:p,rotation:y}}measureText(e,t){var{measuresCache:r}=this,i=t||this.getText();if(r.has(i))return r.get(i);var n=this.measureTargetText(e,i);return r.set(i,n),n}setTextData(e){if(!this.glyphInfo){var t=this.getText(),r=t.split(""),i=t.split(" ").length-1,n=this.parent.getAttribute("dx").split().map(T=>T.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=[],g=t.length;this.letterSpacingCache=c;for(var f=0;f<g;f++)c.push(typeof n[f]<"u"?n[f]:h);var d=c.reduce((T,E,w)=>w===0?0:T+E||0,0),p=this.measureText(e),y=Math.max(p+d,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var m=this.getPathLength(),O=this.getStyle("startOffset").getNumber(0)*m,x=0;(s==="middle"||s==="center")&&(x=-y/2),(s==="end"||s==="right")&&(x=-y),x+=O,r.forEach((T,E)=>{var{offset:w,segment:$,rotation:A}=this.findSegmentToFitChar(e,s,y,m,i,x,o,T,E);x=w,!(!$.p0||!$.p1)&&this.glyphInfo.push({text:r[E],p0:$.p0,p1:$.p1,rotation:A})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:r}=e;for(r.reset();!r.isEnd();){var{current:i}=r,n=i?i.x:0,o=i?i.y:0,s=r.next(),u=s.type,l=[];switch(s.type){case C.MOVE_TO:this.pathM(r,l);break;case C.LINE_TO:u=this.pathL(r,l);break;case C.HORIZ_LINE_TO:u=this.pathH(r,l);break;case C.VERT_LINE_TO:u=this.pathV(r,l);break;case C.CURVE_TO:this.pathC(r,l);break;case C.SMOOTH_CURVE_TO:u=this.pathS(r,l);break;case C.QUAD_TO:this.pathQ(r,l);break;case C.SMOOTH_QUAD_TO:u=this.pathT(r,l);break;case C.ARC:l=this.pathA(r);break;case C.CLOSE_PATH:F.pathZ(r);break}s.type!==C.CLOSE_PATH?t.push({type:u,points:l,start:{x:n,y:o},pathLength:this.calcLength(n,o,u,l)}):t.push({type:C.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:r,y:i}=F.pathM(e).point;t.push(r,i)}pathL(e,t){var{x:r,y:i}=F.pathL(e).point;return t.push(r,i),C.LINE_TO}pathH(e,t){var{x:r,y:i}=F.pathH(e).point;return t.push(r,i),C.LINE_TO}pathV(e,t){var{x:r,y:i}=F.pathV(e).point;return t.push(r,i),C.LINE_TO}pathC(e,t){var{point:r,controlPoint:i,currentPoint:n}=F.pathC(e);t.push(r.x,r.y,i.x,i.y,n.x,n.y)}pathS(e,t){var{point:r,controlPoint:i,currentPoint:n}=F.pathS(e);return t.push(r.x,r.y,i.x,i.y,n.x,n.y),C.CURVE_TO}pathQ(e,t){var{controlPoint:r,currentPoint:i}=F.pathQ(e);t.push(r.x,r.y,i.x,i.y)}pathT(e,t){var{controlPoint:r,currentPoint:i}=F.pathT(e);return t.push(r.x,r.y,i.x,i.y),C.QUAD_TO}pathA(e){var{rX:t,rY:r,sweepFlag:i,xAxisRotation:n,centp:o,a1:s,ad:u}=F.pathA(e);return i===0&&u>0&&(u-=2*Math.PI),i===1&&u<0&&(u+=2*Math.PI),[o.x,o.y,t,r,s,u,n,i]}calcLength(e,t,r,i){var n=0,o=null,s=null,u=0;switch(r){case C.LINE_TO:return this.getLineLength(e,t,i[0],i[1]);case C.CURVE_TO:for(n=0,o=this.getPointOnCubicBezier(0,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),u=.01;u<=1;u+=.01)s=this.getPointOnCubicBezier(u,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case C.QUAD_TO:for(n=0,o=this.getPointOnQuadraticBezier(0,e,t,i[0],i[1],i[2],i[3]),u=.01;u<=1;u+=.01)s=this.getPointOnQuadraticBezier(u,e,t,i[0],i[1],i[2],i[3]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case C.ARC:{n=0;var l=i[4],h=i[5],c=i[4]+h,g=Math.PI/180;if(Math.abs(l-c)<g&&(g=Math.abs(l-c)),o=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),h<0)for(u=l-g;u>c;u-=g)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(u=l+g;u<c;u+=g)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),n}}return 0}getPointOnLine(e,t,r,i,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:t,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,u=(n-r)/(i-t+ut),l=Math.sqrt(e*e/(1+u*u));i<t&&(l*=-1);var h=u*l,c=null;if(i===t)c={x:o,y:s+h};else if((s-r)/(o-t+ut)===u)c={x:o+l,y:s+h};else{var g=0,f=0,d=this.getLineLength(t,r,i,n);if(d<ut)return null;var p=(o-t)*(i-t)+(s-r)*(n-r);p/=d*d,g=t+p*(i-t),f=r+p*(n-r);var y=this.getLineLength(o,s,g,f),m=Math.sqrt(e*e-y*y);l=Math.sqrt(m*m/(1+u*u)),i<t&&(l*=-1),h=u*l,c={x:g+l,y:f+h}}return c}getPointOnPath(e){var t=this.getPathLength(),r=0,i=null;if(e<-5e-5||e-5e-5>t)return null;var{dataArray:n}=this;for(var o of n){if(o&&(o.pathLength<5e-5||r+o.pathLength+5e-5<e)){r+=o.pathLength;continue}var s=e-r,u=0;switch(o.type){case C.LINE_TO:i=this.getPointOnLine(s,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case C.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;i=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break}case C.CURVE_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnCubicBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case C.QUAD_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(i)return i;break}return null}getLineLength(e,t,r,i){return Math.sqrt((r-e)*(r-e)+(i-t)*(i-t))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,r,i,n,o,s,u,l){var h=u*wl(e)+o*Cl(e)+i*El(e)+t*Al(e),c=l*wl(e)+s*Cl(e)+n*El(e)+r*Al(e);return{x:h,y:c}}getPointOnQuadraticBezier(e,t,r,i,n,o,s){var u=o*Pl(e)+i*Rl(e)+t*Nl(e),l=s*Pl(e)+n*Rl(e)+r*Nl(e);return{x:u,y:l}}getPointOnEllipticalArc(e,t,r,i,n,o){var s=Math.cos(o),u=Math.sin(o),l={x:r*Math.cos(n),y:i*Math.sin(n)};return{x:e+(l.x*s-l.y*u),y:t+(l.x*u+l.y*s)}}buildEquidistantCache(e,t){var r=this.getPathLength(),i=t||.25,n=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==i){this.equidistantCache={step:n,precision:i,points:[]};for(var o=0,s=0;s<=r;s+=i){var u=this.getPointOnPath(s),l=this.getPointOnPath(s+i);!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,t,r){if(this.buildEquidistantCache(t,r),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}};v(qs,"TextPathElement");let gn=qs;var Sx=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;const Qs=class Qs extends $e{constructor(e,t,r){super(e,t,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var n=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);e.images.push(this),n?this.loadSvg(i):this.loadImage(i),this.isSvg=n}}loadImage(e){var t=this;return Te(function*(){try{var r=yield t.document.createImage(e);t.image=r}catch(i){console.error('Error while loading image "'.concat(e,'":'),i)}t.loaded=!0})()}loadSvg(e){var t=this;return Te(function*(){var r=Sx.exec(e);if(r){var i=r[5];r[4]==="base64"?t.image=atob(i):t.image=decodeURIComponent(i)}else try{var n=yield t.document.fetch(e),o=yield n.text();t.image=o}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}t.loaded=!0})()}renderChildren(e){var{document:t,image:r,loaded:i}=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(!(!i||!r||!s||!u)){if(e.save(),e.translate(n,o),this.isSvg){var l=t.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;t.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)}
18e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new oe(e,t,e+r,t+i)}};v(Qs,"ImageElement");let dn=Qs;const Ks=class Ks extends $e{constructor(){super(...arguments),this.type="symbol"}render(e){}};v(Ks,"SymbolElement");let pn=Ks;const Zs=class Zs{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var r=this;return Te(function*(){try{var{document:i}=r,n=yield i.canvg.parser.load(t),o=n.getElementsByTagName("font");Array.from(o).forEach(s=>{var u=i.createElement(s);i.definitions[e]=u})}catch(s){console.error('Error while loading font "'.concat(t,'":'),s)}r.loaded=!0})()}};v(Zs,"SVGFontLoader");let yn=Zs;const Js=class Js extends M{constructor(e,t,r){super(e,t,r),this.type="style";var i=mt(Array.from(t.childNodes).map(o=>o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),n=i.split("}");n.forEach(o=>{var s=o.trim();if(s){var u=s.split("{"),l=u[0].split(","),h=u[1].split(";");l.forEach(c=>{var g=c.trim();if(g){var f=e.styles[g]||{};if(h.forEach(y=>{var m=y.indexOf(":"),O=y.substr(0,m).trim(),x=y.substr(m+1,y.length-m).trim();O&&x&&(f[O]=new S(e,O,x))}),e.styles[g]=f,e.stylesSpecificity[g]=dx(g),g==="@font-face"){var d=f["font-family"].getString().replace(/"|'/g,""),p=f.src.getString().split(",");p.forEach(y=>{if(y.indexOf('format("svg")')>0){var m=bv(y);m&&new yn(e).load(d,m)}})}}})}})}};v(Js,"StyleElement");let jr=Js;jr.parseExternalUrl=bv;const eo=class eo extends $e{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),r=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:r}=this;if(r){var i=r;if(r.type==="symbol"&&(i=new He(t,null),i.attributes.viewBox=new S(t,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new S(t,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new S(t,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new S(t,"opacity",this.calculateOpacity())),i.type==="svg"){var n=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);n.hasValue()&&(i.attributes.width=new S(t,"width",n.getString())),o.hasValue()&&(i.attributes.height=new S(t,"height",o.getString()))}var s=i.parent;i.parent=this,i.render(e),i.parent=s}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return ct.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}};v(eo,"UseElement");let mn=eo;function mr(a,e,t,r,i,n){return a[t*r*4+e*4+n]}v(mr,"imGet");function br(a,e,t,r,i,n,o){a[t*r*4+e*4+n]=o}v(br,"imSet");function B(a,e,t){var r=a[e];return r*t}v(B,"m");function xe(a,e,t,r){return e+Math.cos(a)*t+Math.sin(a)*r}v(xe,"c");const to=class to extends M{constructor(e,t,r){super(e,t,r),this.type="feColorMatrix";var i=se(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var n=i[0];i=[.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=i[0]*Math.PI/180;i=[xe(o,.213,.787,-.213),xe(o,.715,-.715,-.715),xe(o,.072,-.072,.928),0,0,xe(o,.213,-.213,.143),xe(o,.715,.285,.14),xe(o,.072,-.072,-.283),0,0,xe(o,.213,-.213,-.787),xe(o,.715,-.715,.715),xe(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,r,i,n){for(var{includeOpacity:o,matrix:s}=this,u=e.getImageData(0,0,i,n),l=0;l<n;l++)for(var h=0;h<i;h++){var c=mr(u.data,h,l,i,n,0),g=mr(u.data,h,l,i,n,1),f=mr(u.data,h,l,i,n,2),d=mr(u.data,h,l,i,n,3),p=B(s,0,c)+B(s,1,g)+B(s,2,f)+B(s,3,d)+B(s,4,1),y=B(s,5,c)+B(s,6,g)+B(s,7,f)+B(s,8,d)+B(s,9,1),m=B(s,10,c)+B(s,11,g)+B(s,12,f)+B(s,13,d)+B(s,14,1),O=B(s,15,c)+B(s,16,g)+B(s,17,f)+B(s,18,d)+B(s,19,1);o&&(p=0,y=0,m=0,O*=d/255),br(u.data,h,l,i,n,0,p),br(u.data,h,l,i,n,1,y),br(u.data,h,l,i,n,2,m),br(u.data,h,l,i,n,3,O)}e.clearRect(0,0,i,n),e.putImageData(u,0,0)}};v(to,"FeColorMatrixElement");let Br=to;const Hr=class Hr extends M{constructor(){super(...arguments),this.type="mask"}apply(e,t){var{document:r}=this,i=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!o&&!s){var u=new oe;
18this.children.forEach(d=>{u.addBoundingBox(d.getBoundingBox(e))}),i=Math.floor(u.x1),n=Math.floor(u.y1),o=Math.floor(u.width),s=Math.floor(u.height)}var l=this.removeStyles(t,Hr.ignoreStyles),h=r.createCanvas(i+o,n+s),c=h.getContext("2d");r.screen.setDefaults(c),this.renderChildren(c),new Br(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(c,0,0,i+o,n+s);var g=r.createCanvas(i+o,n+s),f=g.getContext("2d");r.screen.setDefaults(f),t.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=c.createPattern(h,"no-repeat"),f.fillRect(0,0,i+o,n+s),e.fillStyle=f.createPattern(g,"no-repeat"),e.fillRect(0,0,i+o,n+s),this.restoreStyles(t,l)}render(e){}};v(Hr,"MaskElement");let Ur=Hr;Ur.ignoreStyles=["mask","transform","clip-path"];var Ml=v(()=>{},"noop");const ro=class ro extends M{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,r=Reflect.getPrototypeOf(e),{beginPath:i,closePath:n}=e;r&&(r.beginPath=Ml,r.closePath=Ml),Reflect.apply(i,e,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?o.elementTransform():null;s||(s=ct.fromElement(t,o)),s&&s.apply(e),o.path(e),r&&(r.closePath=n),s&&s.unapply(e)}}),Reflect.apply(n,e,[]),e.clip(),r&&(r.beginPath=i,r.closePath=n)}render(e){}};v(ro,"ClipPathElement");let bn=ro;const Yr=class Yr extends M{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:r,children:i}=this,n=t.getBoundingBox(e);if(n){var o=0,s=0;i.forEach(m=>{var O=m.extraFilterDistance||0;o=Math.max(o,O),s=Math.max(s,O)});var u=Math.floor(n.width),l=Math.floor(n.height),h=u+2*o,c=l+2*s;if(!(h<1||c<1)){var g=Math.floor(n.x),f=Math.floor(n.y),d=this.removeStyles(t,Yr.ignoreStyles),p=r.createCanvas(h,c),y=p.getContext("2d");r.screen.setDefaults(y),y.translate(-g+o,-f+s),t.render(y),i.forEach(m=>{typeof m.apply=="function"&&m.apply(y,0,0,h,c)}),e.drawImage(p,0,0,h,c,g-o,f-s,h,c),this.restoreStyles(t,d)}}}render(e){}};v(Yr,"FilterElement");let Fr=Yr;Fr.ignoreStyles=["filter","transform","clip-path"];const ao=class ao extends M{constructor(e,t,r){super(e,t,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,r,i,n){}};v(ao,"FeDropShadowElement");let xn=ao;const io=class io extends M{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,r,i,n){}};v(io,"FeMorphologyElement");let On=io;const no=class no extends M{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,r,i,n){}};v(no,"FeCompositeElement");let Tn=no;const so=class so extends M{constructor(e,t,r){super(e,t,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,r,i,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)),J2(l,t,r,i,n,s),u&&u.removeChild(l)}};v(so,"FeGaussianBlurElement");let $n=so;const oo=class oo extends M{constructor(){super(...arguments),this.type="title"}};v(oo,"TitleElement");let Sn=oo;const uo=class uo extends M{constructor(){super(...arguments),this.type="desc"}};v(uo,"DescElement");let wn=uo;var wx={svg:He,rect:Lr,circle:Qi,ellipse:Ki,line:Zi,polyline:_r,polygon:Ji,path:F,pattern:en,marker:tn,defs:rn,linearGradient:an,radialGradient:nn,stop:sn,animate:_t,animateColor:on,animateTransform:un,font:ln,"font-face":hn,"missing-glyph":vn,glyph:Vr,text:ze,tspan:Dr,tref:fn,a:cn,textPath:gn,image:dn,g:Lt,symbol:pn,style:jr,use:mn,mask:Ur,clipPath:bn,filter:Fr,feDropShadow:xn,feMorphology:On,feComposite:Tn,feColorMatrix:Br,feGaussianBlur:$n,title:Sn,desc:wn};function Vl(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}v(Vl,"ownKeys$1");function Cx(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Vl(Object(t),!0).forEach(function(r){os(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Vl(Object(t)).forEac
18h(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}v(Cx,"_objectSpread$1");function Ex(a,e){var t=document.createElement("canvas");return t.width=a,t.height=e,t}v(Ex,"createCanvas");function Ax(a){return Cn.apply(this,arguments)}v(Ax,"createImage");function Cn(){return Cn=Te(function*(a){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=document.createElement("img");return e&&(t.crossOrigin="Anonymous"),new Promise((r,i)=>{t.onload=()=>{r(t)},t.onerror=(n,o,s,u,l)=>{i(l)},t.src=a})}),Cn.apply(this,arguments)}v(Cn,"_createImage");const nt=class nt{constructor(e){var{rootEmSize:t=12,emSize:r=12,createCanvas:i=nt.createCanvas,createImage:n=nt.createImage,anonymousCrossOrigin:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,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=e.screen,this.rootEmSize=t,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(n,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return typeof t=="boolean"?(r,i)=>e(r,typeof i=="boolean"?i:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),r=nt.elementTypes[t];return typeof r<"u"?new r(this,e):new Wi(this,e)}createTextNode(e){return new qi(this,e)}setViewBox(e){this.screen.setViewBox(Cx({document:this},e))}};v(nt,"Document");let gt=nt;gt.createCanvas=Ex;gt.createImage=Ax;gt.elementTypes=wx;function Dl(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}v(Dl,"ownKeys");function ke(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Dl(Object(t),!0).forEach(function(r){os(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Dl(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}v(ke,"_objectSpread");
vendor: 3,004 bytes, line 18
18const Ue=class Ue{constructor(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Pt(r),this.screen=new ft(e,r),this.options=r;var i=new gt(this,r),n=i.createDocumentElement(t);this.document=i,this.documentElement=n}static from(e,t){var r=arguments;return Te(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:{},n=new Pt(i),o=yield n.parse(t);return new Ue(e,o,i)})()}static fromString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new Pt(r),n=i.parseFromString(t);return new Ue(e,n,r)}fork(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ue.from(e,t,ke(ke({},this.options),r))}forkString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ue.fromString(e,t,ke(ke({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return Te(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:{};t.start(ke({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:t,screen:r,options:i}=this;r.start(t,ke(ke({enableRedraw:!0},i),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,t,r)}};v(Ue,"Canvg");let Ll=Ue;export{cn as AElement,on as AnimateColorElement,_t as AnimateElement,un as AnimateTransformElement,oe as BoundingBox,wl as CB1,Cl as CB2,El as CB3,Al as CB4,Ll as Canvg,Qi as CircleElement,bn as ClipPathElement,rn as DefsElement,wn as DescElement,gt as Document,M as Element,Ki as EllipseElement,Br as FeColorMatrixElement,Tn as FeCompositeElement,xn as FeDropShadowElement,$n as FeGaussianBlurElement,On as FeMorphologyElement,Fr as FilterElement,fe as Font,ln as FontElement,hn as FontFaceElement,Lt as GElement,Vr as GlyphElement,kr as GradientElement,dn as ImageElement,Zi as LineElement,an as LinearGradientElement,tn as MarkerElement,Ur as MaskElement,Ir as Matrix,vn as MissingGlyphElement,Fi as Mouse,ut as PSEUDO_ZERO,Pt as Parser,F as PathElement,C as PathParser,en as PatternElement,z as Point,Ji as PolygonElement,_r as PolylineElement,S as Property,Pl as QB1,Rl as QB2,Nl as QB3,nn as RadialGradientElement,Lr as RectElement,$e as RenderedElement,Hi as Rotate,He as SVGElement,yn as SVGFontLoader,Yi as Scale,ft as Screen,Mr as Skew,Gi as SkewX,Xi as SkewY,sn as StopElement,jr as StyleElement,pn as SymbolElement,fn as TRefElement,Dr as TSpanElement,ze as TextElement,gn as TextPathElement,Sn as TitleElement,ct as Transform,zi as Translate,Wi as UnknownElement,mn as UseElement,Ui as ViewPort,mt as compressSpaces,Ll as default,dx as getSelectorSpecificity,sx as normalizeAttributeName,ox as normalizeColor,bv as parseExternalUrl,Mx as presets,se as toNumbers,ax as trimLeft,ix as trimRight,$l as vectorMagnitude,Sl as vectorsAngle,Bi as vectorsRatio};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.