@sparkle-learning/core 0.0.26 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{PrivateRoute-cee9b061.js → PrivateRoute-81e20cbf.js} +4 -38
- package/dist/cjs/feed.service-032c2ecc.js +124 -0
- package/dist/cjs/header-mobile-collapse_60.cjs.entry.js +5 -3
- package/dist/cjs/index.cjs.js +2 -1
- package/dist/cjs/{index.es-91493ac6.js → index.es-11437480.js} +5 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/localstorage.service-6346a41d.js +40 -0
- package/dist/cjs/{purify-ed567052.js → purify-a443f0eb.js} +1 -1
- package/dist/cjs/sparkle-animation-player.cjs.entry.js +55 -49
- package/dist/cjs/sparkle-character-intro.cjs.entry.js +26 -0
- package/dist/cjs/sparkle-core.cjs.js +1 -1
- package/dist/cjs/sparkle-goal-form.cjs.entry.js +9 -8
- package/dist/cjs/{feed.service-518d18fd.js → util-b0e2ec9f.js} +1 -121
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.js +78 -66
- package/dist/collection/components/sparkle-character-intro/assets/characters/character-img.jpg +0 -0
- package/dist/collection/components/sparkle-character-intro/assets/characters/jen.png +0 -0
- package/dist/collection/components/sparkle-character-intro/assets/characters/kimberly.png +0 -0
- package/dist/collection/components/sparkle-character-intro/assets/characters/valeria.png +0 -0
- package/dist/collection/components/sparkle-character-intro/assets/characters/yuna.png +0 -0
- package/dist/collection/components/sparkle-character-intro/assets/characters/zynab.png +0 -0
- package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.css +67 -0
- package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.js +64 -0
- package/dist/collection/components/sparkle-course-root/sparkle-course-root.js +48 -43
- package/dist/collection/util.js +1 -0
- package/dist/esm/{PrivateRoute-9f0973bb.js → PrivateRoute-df0d1e6b.js} +1 -35
- package/dist/esm/feed.service-694d3d54.js +119 -0
- package/dist/esm/header-mobile-collapse_60.entry.js +5 -3
- package/dist/esm/{index.es-32e2f407.js → index.es-1d452836.js} +5 -3
- package/dist/esm/index.js +2 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/localstorage.service-4bf408c8.js +36 -0
- package/dist/esm/{purify-f1a55787.js → purify-7e29b899.js} +1 -1
- package/dist/esm/sparkle-animation-player.entry.js +55 -49
- package/dist/esm/sparkle-character-intro.entry.js +22 -0
- package/dist/esm/sparkle-core.js +1 -1
- package/dist/esm/sparkle-goal-form.entry.js +2 -1
- package/dist/esm/{feed.service-0fda1e36.js → util-042b5fee.js} +2 -118
- package/dist/sparkle-core/assets/characters/character-img.jpg +0 -0
- package/dist/sparkle-core/assets/characters/jen.png +0 -0
- package/dist/sparkle-core/assets/characters/kimberly.png +0 -0
- package/dist/sparkle-core/assets/characters/valeria.png +0 -0
- package/dist/sparkle-core/assets/characters/yuna.png +0 -0
- package/dist/sparkle-core/assets/characters/zynab.png +0 -0
- package/dist/sparkle-core/index.esm.js +1 -1
- package/dist/sparkle-core/p-0312758b.js +1 -0
- package/dist/sparkle-core/p-396a9849.js +1 -0
- package/dist/sparkle-core/p-4328af62.js +1 -0
- package/dist/sparkle-core/{p-14ff8097.js → p-522733aa.js} +4 -4
- package/dist/sparkle-core/p-5b4938ce.entry.js +1 -0
- package/dist/sparkle-core/p-5d409601.js +1 -0
- package/dist/sparkle-core/p-62a62b6e.entry.js +1 -0
- package/dist/sparkle-core/p-7ecad3fb.entry.js +1 -0
- package/dist/sparkle-core/p-8490f1bc.js +1 -0
- package/dist/sparkle-core/{p-0d3fe46c.js → p-e23bd285.js} +1 -1
- package/dist/sparkle-core/p-e4f41e16.entry.js +1 -0
- package/dist/sparkle-core/sparkle-core.esm.js +1 -1
- package/dist/types/components/sparkle-animation-player/sparkle-animation-player.d.ts +1 -0
- package/dist/types/components/sparkle-character-intro/sparkle-character-intro.d.ts +7 -0
- package/dist/types/components/sparkle-course-root/sparkle-course-root.d.ts +2 -2
- package/dist/types/components.d.ts +17 -0
- package/dist/types/util.d.ts +1 -0
- package/package.json +2 -2
- package/dist/sparkle-core/p-090f2624.js +0 -1
- package/dist/sparkle-core/p-82d95fcd.entry.js +0 -1
- package/dist/sparkle-core/p-ab5cdfeb.js +0 -1
- package/dist/sparkle-core/p-b080c1e3.entry.js +0 -1
- package/dist/sparkle-core/p-bc568dcb.js +0 -1
- package/dist/sparkle-core/p-f6ce91f2.entry.js +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
import"./p-d63406d8.js";import"./p-770128c8.js";import"./p-bc568dcb.js";import"./p-b226f54d.js";import"./p-9a443f51.js";import"./p-7f3d5344.js";import{a as t,c as n,g as r}from"./p-14ff8097.js";import"./p-f8063d7b.js";import"./p-4b7db0e6.js";import"./p-f2660943.js";import"./p-0e1c7c8c.js";import"./p-c466ee32.js";import"./p-03eb2164.js";import"./p-7840618d.js";import"./p-417a8dd6.js";import"./p-6d506f4e.js";import"./p-6f0ecbe3.js";import"./p-090f2624.js";import"./p-3be0a218.js";var e,i,u=function(t){return t&&t.Math==Math&&t},a=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof t&&t)||function(){return this}()||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},f=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,h={f:c&&!s.call({1:2},1)?function(t){var n=c(this,t);return!!n&&n.enumerable}:s},v=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},l={}.toString,y=function(t){return l.call(t).slice(8,-1)},d="".split,p=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==y(t)?d.call(t,""):Object(t)}:Object,g=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},m=function(t){return p(g(t))},w=function(t){return"object"==typeof t?null!==t:"function"==typeof t},k=function(t,n){if(!w(t))return t;var r,e;if(n&&"function"==typeof(r=t.toString)&&!w(e=r.call(t)))return e;if("function"==typeof(r=t.valueOf)&&!w(e=r.call(t)))return e;if(!n&&"function"==typeof(r=t.toString)&&!w(e=r.call(t)))return e;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,x=function(t,n){return b.call(t,n)},M=a.document,S=w(M)&&w(M.createElement),A=function(t){return S?M.createElement(t):{}},N=!f&&!o((function(){return 7!=Object.defineProperty(A("div"),"a",{get:function(){return 7}}).a})),D=Object.getOwnPropertyDescriptor,P={f:f?D:function(t,n){if(t=m(t),n=k(n,!0),N)try{return D(t,n)}catch(t){}if(x(t,n))return v(!h.f.call(t,n),t[n])}},j=/#|\.prototype\./,O=function(t,n){var r=R[T(t)];return r==C||r!=E&&("function"==typeof n?o(n):!!n)},T=O.normalize=function(t){return String(t).replace(j,".").toLowerCase()},R=O.data={},E=O.NATIVE="N",C=O.POLYFILL="P",I=O,L={},B=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},F=function(t,n,r){if(B(t),void 0===n)return t;switch(r){case 0:return function(){return t.call(n)};case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}},$=function(t){if(!w(t))throw TypeError(String(t)+" is not an object");return t},z=Object.defineProperty,_={f:f?z:function(t,n,r){if($(t),n=k(n,!0),$(r),N)try{return z(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},G=f?function(t,n,r){return _.f(t,n,v(1,r))}:function(t,n,r){return t[n]=r,t},q=P.f,V=function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n},Y=function(t,n){var r,e,i,u,o,f,s,c,h=t.target,v=t.global,l=t.stat,y=t.proto,d=v?a:l?a[h]:(a[h]||{}).prototype,p=v?L:L[h]||(L[h]={}),g=p.prototype;for(i in n)r=!I(v?i:h+(l?".":"#")+i,t.forced)&&d&&x(d,i),o=p[i],r&&(f=t.noTargetGet?(c=q(d,i))&&c.value:d[i]),u=r&&f?f:n[i],r&&typeof o==typeof u||(s=t.bind&&r?F(u,a):t.wrap&&r?V(u):y&&"function"==typeof u?F(Function.call,u):u,(t.sham||u&&u.sham||o&&o.sham)&&G(s,"sham",!0),p[i]=s,y&&(x(L,e=h+"Prototype")||G(L,e,{}),L[e][i]=u,t.real&&g&&!g[i]&&G(g,i,u)))},U=Math.ceil,H=Math.floor,X=function(t){return isNaN(t=+t)?0:(t>0?H:U)(t)},W=Math.min,Q=function(t){return t>0?W(X(t),9007199254740991):0},Z=a["__core-js_shared__"]||function(t,n){try{G(a,t,n)}catch(r){a[t]=n}return n}("__core-js_shared__",{}),J=n((function(t){(t.exports=function(t,n){return Z[t]||(Z[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.10.0",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),K=0,tt=Math.random(),nt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++K+tt).toString(36)},rt="process"==y(a.process),et=function(t){return"function"==typeof t?t:void 0},it=function(t,n){return arguments.length<2?et(L[t])||et(a[t]):L[t]&&L[t][n]||a[t]&&a[t][n]},ut=it("navigator","userAgent")||"",at=a.process,ot=at&&at.versions,ft=ot&&ot.v8;ft?i=(e=ft.split("."))[0]+e[1]:ut&&(!(e=ut.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=ut.match(/Chrome\/(\d+)/))&&(i=e[1]);var st=i&&+i,ct=!!Object.getOwnPropertySymbols&&!o((function(){return!Symbol.sham&&(rt?38===st:st>37&&st<41)})),ht=ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vt=J("wks"),lt=a.Symbol,yt=ht?lt:lt&<.withoutSetter||nt,dt=function(t){return x(vt,t)&&(ct||"string"==typeof vt[t])||(vt[t]=ct&&x(lt,t)?lt[t]:yt("Symbol."+t)),vt[t]},pt=dt("match"),gt=function(t){if(function(t){var n;return w(t)&&(void 0!==(n=t[pt])?!!n:"RegExp"==y(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},mt=dt("match"),wt=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[mt]=!1,"/./"[t](n)}catch(t){}}return!1},kt="".startsWith,bt=Math.min,xt=wt("startsWith");Y({target:"String",proto:!0,forced:!xt},{startsWith:function(t){var n=String(g(this));gt(t);var r=Q(bt(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return kt?kt.call(n,e,r):n.slice(r,r+e.length)===e}});var Mt=function(t){return L[t+"Prototype"]},St=Mt("String").startsWith,At=String.prototype,Nt="\t\n\v\f\r \u2028\u2029\ufeff",Dt="["+Nt+"]",Pt=RegExp("^"+Dt+Dt+"*"),jt=RegExp(Dt+Dt+"*$"),Ot=function(t){return function(n){var r=String(g(n));return 1&t&&(r=r.replace(Pt,"")),2&t&&(r=r.replace(jt,"")),r}},Tt={start:Ot(1),end:Ot(2),trim:Ot(3)},Rt=Tt.trim,Et=a.parseFloat,Ct=1/Et(Nt+"-0")!=-1/0?function(t){var n=Rt(String(t)),r=Et(n);return 0===r&&"-"==n.charAt(0)?-0:r}:Et;Y({global:!0,forced:parseFloat!=Ct},{parseFloat:Ct});var It=L.parseFloat,Lt=function(t){return Object(g(t))},Bt=Array.isArray||function(t){return"Array"==y(t)},Ft=dt("species"),$t=function(t,n){var r;return Bt(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!Bt(r.prototype)?w(r)&&null===(r=r[Ft])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===n?0:n)},zt=[].push,_t=function(t){var n=1==t,r=2==t,e=3==t,i=4==t,u=6==t,a=7==t,o=5==t||u;return function(f,s,c,h){for(var v,l,y=Lt(f),d=p(y),g=F(s,c,3),m=Q(d.length),w=0,k=h||$t,b=n?k(f,m):r||a?k(f,0):void 0;m>w;w++)if((o||w in d)&&(l=g(v=d[w],w,y),t))if(n)b[w]=l;else if(l)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:zt.call(b,v)}else switch(t){case 4:return!1;case 7:zt.call(b,v)}return u?-1:e||i?i:b}},Gt={forEach:_t(0),map:_t(1),filter:_t(2),some:_t(3),every:_t(4),find:_t(5),findIndex:_t(6),filterOut:_t(7)},qt=dt("species"),Vt=function(t){return st>=51||!o((function(){var n=[];return(n.constructor={})[qt]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},Yt=Gt.map,Ut=Vt("map");Y({target:"Array",proto:!0,forced:!Ut},{map:function(t){return Yt(this,t,arguments.length>1?arguments[1]:void 0)}});var Ht=Mt("Array").map,Xt=Array.prototype,Wt=function(t){var n=t.map;return t===Xt||t instanceof Array&&n===Xt.map?Ht:n};Y({target:"Array",stat:!0},{isArray:Bt});var Qt=L.Array.isArray,Zt=Qt,Jt=n((function(t){t.exports=function(t){if(Zt(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0})),Kt=function(t,n,r){var e=k(n);e in t?_.f(t,e,v(0,r)):t[e]=r},tn=dt("isConcatSpreadable"),nn=st>=51||!o((function(){var t=[];return t[tn]=!1,t.concat()[0]!==t})),rn=Vt("concat"),en=function(t){if(!w(t))return!1;var n=t[tn];return void 0!==n?!!n:Bt(t)};Y({target:"Array",proto:!0,forced:!nn||!rn},{concat:function(t){var n,r,e,i,u,a=Lt(this),o=$t(a,0),f=0;for(n=-1,e=arguments.length;n<e;n++)if(en(u=-1===n?a:arguments[n])){if(f+(i=Q(u.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<i;r++,f++)r in u&&Kt(o,f,u[r])}else{if(f>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Kt(o,f++,u)}return o.length=f,o}});var un,an=Math.max,on=Math.min,fn=function(t,n){var r=X(t);return r<0?an(r+n,0):on(r,n)},sn=function(t){return function(n,r,e){var i,u=m(n),a=Q(u.length),o=fn(e,a);if(t&&r!=r){for(;a>o;)if((i=u[o++])!=i)return!0}else for(;a>o;o++)if((t||o in u)&&u[o]===r)return t||o||0;return!t&&-1}},cn={includes:sn(!0),indexOf:sn(!1)},hn={},vn=cn.indexOf,ln=function(t,n){var r,e=m(t),i=0,u=[];for(r in e)!x(hn,r)&&x(e,r)&&u.push(r);for(;n.length>i;)x(e,r=n[i++])&&(~vn(u,r)||u.push(r));return u},yn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],dn=Object.keys||function(t){return ln(t,yn)},pn=f?Object.defineProperties:function(t,n){$(t);for(var r,e=dn(n),i=e.length,u=0;i>u;)_.f(t,r=e[u++],n[r]);return t},gn=it("document","documentElement"),mn=J("keys"),wn=function(t){return mn[t]||(mn[t]=nt(t))},kn=wn("IE_PROTO"),bn=function(){},xn=function(t){return"<script>"+t+"<\/script>"},Mn=function(){try{un=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,n;Mn=un?function(t){t.write(xn("")),t.close();var n=t.parentWindow.Object;return t=null,n}(un):((n=A("iframe")).style.display="none",gn.appendChild(n),n.src=String("javascript:"),(t=n.contentWindow.document).open(),t.write(xn("document.F=Object")),t.close(),t.F);for(var r=yn.length;r--;)delete Mn.prototype[yn[r]];return Mn()};hn[kn]=!0;var Sn=Object.create||function(t,n){var r;return null!==t?(bn.prototype=$(t),r=new bn,bn.prototype=null,r[kn]=t):r=Mn(),void 0===n?r:pn(r,n)},An=yn.concat("length","prototype"),Nn={f:Object.getOwnPropertyNames||function(t){return ln(t,An)}},Dn=Nn.f,Pn={}.toString,jn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],On={f:function(t){return jn&&"[object Window]"==Pn.call(t)?function(t){try{return Dn(t)}catch(t){return jn.slice()}}(t):Dn(m(t))}},Tn={f:Object.getOwnPropertySymbols},Rn=function(t,n,r,e){e&&e.enumerable?t[n]=r:G(t,n,r)},En={f:dt},Cn=_.f,In=function(t){var n=L.Symbol||(L.Symbol={});x(n,t)||Cn(n,t,{value:En.f(t)})},Ln={};Ln[dt("toStringTag")]="z";var Bn="[object z]"===String(Ln),Fn=dt("toStringTag"),$n="Arguments"==y(function(){return arguments}()),zn=Bn?y:function(t){var n,r,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),Fn))?r:$n?y(n):"Object"==(e=y(n))&&"function"==typeof n.callee?"Arguments":e},_n=Bn?{}.toString:function(){return"[object "+zn(this)+"]"},Gn=_.f,qn=dt("toStringTag"),Vn=function(t,n,r,e){if(t){var i=r?t:t.prototype;x(i,qn)||Gn(i,qn,{configurable:!0,value:n}),e&&!Bn&&G(i,"toString",_n)}},Yn=Function.toString;"function"!=typeof Z.inspectSource&&(Z.inspectSource=function(t){return Yn.call(t)});var Un,Hn,Xn,Wn=Z.inspectSource,Qn=a.WeakMap;if("function"==typeof Qn&&/native code/.test(Wn(Qn))){var Zn=Z.state||(Z.state=new(0,a.WeakMap)),Jn=Zn.get,Kn=Zn.has,tr=Zn.set;Un=function(t,n){return n.facade=t,tr.call(Zn,t,n),n},Hn=function(t){return Jn.call(Zn,t)||{}},Xn=function(t){return Kn.call(Zn,t)}}else{var nr=wn("state");hn[nr]=!0,Un=function(t,n){return n.facade=t,G(t,nr,n),n},Hn=function(t){return x(t,nr)?t[nr]:{}},Xn=function(t){return x(t,nr)}}var rr={set:Un,get:Hn,has:Xn,enforce:function(t){return Xn(t)?Hn(t):Un(t,{})},getterFor:function(t){return function(n){var r;if(!w(n)||(r=Hn(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},er=Gt.forEach,ir=wn("hidden"),ur=dt("toPrimitive"),ar=rr.set,or=rr.getterFor("Symbol"),fr=Object.prototype,sr=a.Symbol,cr=it("JSON","stringify"),hr=P.f,vr=_.f,lr=On.f,yr=h.f,dr=J("symbols"),pr=J("op-symbols"),gr=J("string-to-symbol-registry"),mr=J("symbol-to-string-registry"),wr=J("wks"),kr=a.QObject,br=!kr||!kr.prototype||!kr.prototype.findChild,xr=f&&o((function(){return 7!=Sn(vr({},"a",{get:function(){return vr(this,"a",{value:7}).a}})).a}))?function(t,n,r){var e=hr(fr,n);e&&delete fr[n],vr(t,n,r),e&&t!==fr&&vr(fr,n,e)}:vr,Mr=function(t,n){var r=dr[t]=Sn(sr.prototype);return ar(r,{type:"Symbol",tag:t,description:n}),f||(r.description=n),r},Sr=ht?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof sr},Ar=function(t,n,r){t===fr&&Ar(pr,n,r),$(t);var e=k(n,!0);return $(r),x(dr,e)?(r.enumerable?(x(t,ir)&&t[ir][e]&&(t[ir][e]=!1),r=Sn(r,{enumerable:v(0,!1)})):(x(t,ir)||vr(t,ir,v(1,{})),t[ir][e]=!0),xr(t,e,r)):vr(t,e,r)},Nr=function(t,n){$(t);var r=m(n),e=dn(r).concat(Or(r));return er(e,(function(n){f&&!Dr.call(r,n)||Ar(t,n,r[n])})),t},Dr=function(t){var n=k(t,!0),r=yr.call(this,n);return!(this===fr&&x(dr,n)&&!x(pr,n))&&(!(r||!x(this,n)||!x(dr,n)||x(this,ir)&&this[ir][n])||r)},Pr=function(t,n){var r=m(t),e=k(n,!0);if(r!==fr||!x(dr,e)||x(pr,e)){var i=hr(r,e);return!i||!x(dr,e)||x(r,ir)&&r[ir][e]||(i.enumerable=!0),i}},jr=function(t){var n=lr(m(t)),r=[];return er(n,(function(t){x(dr,t)||x(hn,t)||r.push(t)})),r},Or=function(t){var n=t===fr,r=lr(n?pr:m(t)),e=[];return er(r,(function(t){!x(dr,t)||n&&!x(fr,t)||e.push(dr[t])})),e};if(ct||(Rn((sr=function(){if(this instanceof sr)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,n=nt(t),r=function(t){this===fr&&r.call(pr,t),x(this,ir)&&x(this[ir],n)&&(this[ir][n]=!1),xr(this,n,v(1,t))};return f&&br&&xr(fr,n,{configurable:!0,set:r}),Mr(n,t)}).prototype,"toString",(function(){return or(this).tag})),Rn(sr,"withoutSetter",(function(t){return Mr(nt(t),t)})),h.f=Dr,_.f=Ar,P.f=Pr,Nn.f=On.f=jr,Tn.f=Or,En.f=function(t){return Mr(dt(t),t)},f&&vr(sr.prototype,"description",{configurable:!0,get:function(){return or(this).description}})),Y({global:!0,wrap:!0,forced:!ct,sham:!ct},{Symbol:sr}),er(dn(wr),(function(t){In(t)})),Y({target:"Symbol",stat:!0,forced:!ct},{for:function(t){var n=String(t);if(x(gr,n))return gr[n];var r=sr(n);return gr[n]=r,mr[r]=n,r},keyFor:function(t){if(!Sr(t))throw TypeError(t+" is not a symbol");if(x(mr,t))return mr[t]},useSetter:function(){br=!0},useSimple:function(){br=!1}}),Y({target:"Object",stat:!0,forced:!ct,sham:!f},{create:function(t,n){return void 0===n?Sn(t):Nr(Sn(t),n)},defineProperty:Ar,defineProperties:Nr,getOwnPropertyDescriptor:Pr}),Y({target:"Object",stat:!0,forced:!ct},{getOwnPropertyNames:jr,getOwnPropertySymbols:Or}),Y({target:"Object",stat:!0,forced:o((function(){Tn.f(1)}))},{getOwnPropertySymbols:function(t){return Tn.f(Lt(t))}}),cr){var Tr=!ct||o((function(){var t=sr();return"[null]"!=cr([t])||"{}"!=cr({a:t})||"{}"!=cr(Object(t))}));Y({target:"JSON",stat:!0,forced:Tr},{stringify:function(t,n,r){for(var e,i=[t],u=1;arguments.length>u;)i.push(arguments[u++]);if(e=n,(w(n)||void 0!==t)&&!Sr(t))return Bt(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!Sr(n))return n}),i[1]=n,cr.apply(null,i)}})}sr.prototype[ur]||G(sr.prototype,ur,sr.prototype.valueOf),Vn(sr,"Symbol"),hn[ir]=!0,In("asyncIterator"),In("hasInstance"),In("isConcatSpreadable"),In("iterator"),In("match"),In("matchAll"),In("replace"),In("search"),In("species"),In("split"),In("toPrimitive"),In("toStringTag"),In("unscopables"),Vn(a.JSON,"JSON",!0);var Rr=L.Symbol;In("asyncDispose"),In("dispose"),In("observable"),In("patternMatch"),In("replaceAll");var Er,Cr,Ir,Lr=Rr,Br={},Fr=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),$r=wn("IE_PROTO"),zr=Object.prototype,_r=Fr?Object.getPrototypeOf:function(t){return t=Lt(t),x(t,$r)?t[$r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?zr:null},Gr=dt("iterator"),qr=!1;[].keys&&("next"in(Ir=[].keys())?(Cr=_r(_r(Ir)))!==Object.prototype&&(Er=Cr):qr=!0);var Vr=null==Er||o((function(){var t={};return Er[Gr].call(t)!==t}));Vr&&(Er={}),Vr&&!x(Er,Gr)&&G(Er,Gr,(function(){return this}));var Yr={IteratorPrototype:Er,BUGGY_SAFARI_ITERATORS:qr},Ur=Yr.IteratorPrototype,Hr=function(){return this},Xr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),n=r instanceof Array}catch(t){}return function(r,e){return $(r),function(t){if(!w(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(e),n?t.call(r,e):r.__proto__=e,r}}():void 0),Wr=Yr.IteratorPrototype,Qr=Yr.BUGGY_SAFARI_ITERATORS,Zr=dt("iterator"),Jr=function(){return this},Kr=function(t,n,r,e,i,u,a){!function(t,n,r){var e=n+" Iterator";t.prototype=Sn(Ur,{next:v(1,r)}),Vn(t,e,!1,!0),Br[e]=Hr}(r,n,e);var o,f,s,c=function(t){if(t===i&&p)return p;if(!Qr&&t in y)return y[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},h=n+" Iterator",l=!1,y=t.prototype,d=y[Zr]||y["@@iterator"]||i&&y[i],p=!Qr&&d||c(i),g="Array"==n&&y.entries||d;if(g&&(o=_r(g.call(new t)),Wr!==Object.prototype&&o.next&&(Vn(o,h,!0,!0),Br[h]=Jr)),"values"==i&&d&&"values"!==d.name&&(l=!0,p=function(){return d.call(this)}),a&&y[Zr]!==p&&G(y,Zr,p),Br[n]=p,i)if(f={values:c("values"),keys:u?p:c("keys"),entries:c("entries")},a)for(s in f)(Qr||l||!(s in y))&&Rn(y,s,f[s]);else Y({target:n,proto:!0,forced:Qr||l},f);return f},te=rr.set,ne=rr.getterFor("Array Iterator");Kr(Array,"Array",(function(t,n){te(this,{type:"Array Iterator",target:m(t),index:0,kind:n})}),(function(){var t=ne(this),n=t.target,r=t.kind,e=t.index++;return!n||e>=n.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:e,done:!1}:"values"==r?{value:n[e],done:!1}:{value:[e,n[e]],done:!1}}),"values"),Br.Arguments=Br.Array;var re=dt("toStringTag");for(var ee in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var ie=a[ee],ue=ie&&ie.prototype;ue&&zn(ue)!==re&&G(ue,re,ee),Br[ee]=Br.Array}var ae=function(t){return function(n,r){var e,i,u=String(g(n)),a=X(r),o=u.length;return a<0||a>=o?t?"":void 0:(e=u.charCodeAt(a))<55296||e>56319||a+1===o||(i=u.charCodeAt(a+1))<56320||i>57343?t?u.charAt(a):e:t?u.slice(a,a+2):i-56320+(e-55296<<10)+65536}},oe=(ae(!1),ae(!0)),fe=rr.set,se=rr.getterFor("String Iterator");Kr(String,"String",(function(t){fe(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,n=se(this),r=n.string,e=n.index;return e>=r.length?{value:void 0,done:!0}:(t=oe(r,e),n.index+=t.length,{value:t,done:!1})}));var ce=dt("iterator"),he=function(t){var n=Object(t);return void 0!==n[ce]||"@@iterator"in n||Br.hasOwnProperty(zn(n))},ve=dt("iterator"),le=function(t){if(null!=t)return t[ve]||t["@@iterator"]||Br[zn(t)]},ye=function(t){var n=le(t);if("function"!=typeof n)throw TypeError(String(t)+" is not iterable");return $(n.call(t))},de=n((function(t){t.exports=function(t,n){if(void 0!==Lr&&he(Object(t))){var r=[],e=!0,i=!1,u=void 0;try{for(var a,o=ye(t);!(e=(a=o.next()).done)&&(r.push(a.value),!n||r.length!==n);e=!0);}catch(t){i=!0,u=t}finally{try{e||null==o.return||o.return()}finally{if(i)throw u}}return r}},t.exports.default=t.exports,t.exports.__esModule=!0})),pe=Vt("slice"),ge=dt("species"),me=[].slice,we=Math.max;Y({target:"Array",proto:!0,forced:!pe},{slice:function(t,n){var r,e,i,u=m(this),a=Q(u.length),o=fn(t,a),f=fn(void 0===n?a:n,a);if(Bt(u)&&("function"!=typeof(r=u.constructor)||r!==Array&&!Bt(r.prototype)?w(r)&&null===(r=r[ge])&&(r=void 0):r=void 0,r===Array||void 0===r))return me.call(u,o,f);for(e=new(void 0===r?Array:r)(we(f-o,0)),i=0;o<f;o++,i++)o in u&&Kt(e,i,u[o]);return e.length=i,e}});var ke=Mt("Array").slice,be=Array.prototype,xe=function(t){var n=t.slice;return t===be||t instanceof Array&&n===be.slice?ke:n},Me=xe,Se=function(t){var n=t.return;if(void 0!==n)return $(n.call(t)).value},Ae=function(t,n,r,e){try{return e?n($(r)[0],r[1]):n(r)}catch(n){throw Se(t),n}},Ne=dt("iterator"),De=Array.prototype,Pe=function(t){return void 0!==t&&(Br.Array===t||De[Ne]===t)},je=dt("iterator"),Oe=!1;try{var Te=0,Re={next:function(){return{done:!!Te++}},return:function(){Oe=!0}};Re[je]=function(){return this},Array.from(Re,(function(){throw 2}))}catch(t){}var Ee=function(t,n){if(!n&&!Oe)return!1;var r=!1;try{var e={};e[je]=function(){return{next:function(){return{done:r=!0}}}},t(e)}catch(t){}return r},Ce=!Ee((function(t){Array.from(t)}));Y({target:"Array",stat:!0,forced:Ce},{from:function(t){var n,r,e,i,u,a,o=Lt(t),f="function"==typeof this?this:Array,s=arguments.length,c=s>1?arguments[1]:void 0,h=void 0!==c,v=le(o),l=0;if(h&&(c=F(c,s>2?arguments[2]:void 0,2)),null==v||f==Array&&Pe(v))for(r=new f(n=Q(o.length));n>l;l++)a=h?c(o[l],l):o[l],Kt(r,l,a);else for(u=(i=v.call(o)).next,r=new f;!(e=u.call(i)).done;l++)a=h?Ae(i,c,[e.value,l],!0):e.value,Kt(r,l,a);return r.length=l,r}});var Ie=L.Array.from,Le=Ie,Be=n((function(t){t.exports=function(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e},t.exports.default=t.exports,t.exports.__esModule=!0})),Fe=n((function(t){t.exports=function(t,n){var r;if(t){if("string"==typeof t)return Be(t,n);var e=Me(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Le(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Be(t,n):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0})),$e=n((function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0}));const ze=r(n((function(t){t.exports=function(t,n){return Jt(t)||de(t,n)||Fe(t,n)||$e()},t.exports.default=t.exports,t.exports.__esModule=!0})));Y({target:"Object",stat:!0,forced:!f,sham:!f},{defineProperty:_.f});var _e=n((function(t){var n=L.Object,r=t.exports=function(t,r,e){return n.defineProperty(t,r,e)};n.defineProperty.sham&&(r.sham=!0)})),Ge=_e;Y({target:"Object",stat:!0,forced:!f,sham:!f},{defineProperties:pn});var qe=n((function(t){var n=L.Object,r=t.exports=function(t,r){return n.defineProperties(t,r)};n.defineProperties.sham&&(r.sham=!0)})),Ve=it("Reflect","ownKeys")||function(t){var n=Nn.f($(t)),r=Tn.f;return r?n.concat(r(t)):n};Y({target:"Object",stat:!0,sham:!f},{getOwnPropertyDescriptors:function(t){for(var n,r,e=m(t),i=P.f,u=Ve(e),a={},o=0;u.length>o;)void 0!==(r=i(e,n=u[o++]))&&Kt(a,n,r);return a}});var Ye=L.Object.getOwnPropertyDescriptors,Ue=function(t,n){var r=[][t];return!!r&&o((function(){r.call(null,n||function(){throw 1},1)}))},He=Gt.forEach,Xe=Ue("forEach")?[].forEach:function(t){return He(this,t,arguments.length>1?arguments[1]:void 0)};Y({target:"Array",proto:!0,forced:[].forEach!=Xe},{forEach:Xe});var We=Mt("Array").forEach,Qe=Array.prototype,Ze={DOMTokenList:!0,NodeList:!0},Je=function(t){var n=t.forEach;return t===Qe||t instanceof Array&&n===Qe.forEach||Ze.hasOwnProperty(zn(t))?We:n},Ke=P.f,ti=o((function(){Ke(1)}));Y({target:"Object",stat:!0,forced:!f||ti,sham:!f},{getOwnPropertyDescriptor:function(t,n){return Ke(m(t),n)}});var ni=n((function(t){var n=L.Object,r=t.exports=function(t,r){return n.getOwnPropertyDescriptor(t,r)};n.getOwnPropertyDescriptor.sham&&(r.sham=!0)})),ri=ni,ei=Gt.filter,ii=Vt("filter");Y({target:"Array",proto:!0,forced:!ii},{filter:function(t){return ei(this,t,arguments.length>1?arguments[1]:void 0)}});var ui=Mt("Array").filter,ai=Array.prototype,oi=function(t){var n=t.filter;return t===ai||t instanceof Array&&n===ai.filter?ui:n},fi=L.Object.getOwnPropertySymbols,si=o((function(){dn(1)}));Y({target:"Object",stat:!0,forced:si},{keys:function(t){return dn(Lt(t))}});var ci=L.Object.keys,hi=n((function(t){var n=function(t){var n,r=Object.prototype,e=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",o=i.toStringTag||"@@toStringTag";function f(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,r){return t[n]=r}}function s(t,n,r,e){var i=Object.create((n&&n.prototype instanceof p?n:p).prototype),u=new P(e||[]);return i._invoke=function(t,n,r){var e=h;return function(i,u){if(e===l)throw new Error("Generator is already running");if(e===y){if("throw"===i)throw u;return O()}for(r.method=i,r.arg=u;;){var a=r.delegate;if(a){var o=A(a,r);if(o){if(o===d)continue;return o}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(e===h)throw e=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e=l;var f=c(t,n,r);if("normal"===f.type){if(e=r.done?y:v,f.arg===d)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(e=y,r.method="throw",r.arg=f.arg)}}}(t,r,u),i}function c(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h="suspendedStart",v="suspendedYield",l="executing",y="completed",d={};function p(){}function g(){}function m(){}var w={};w[u]=function(){return this};var k=Object.getPrototypeOf,b=k&&k(k(j([])));b&&b!==r&&e.call(b,u)&&(w=b);var x=m.prototype=p.prototype=Object.create(w);function M(t){["next","throw","return"].forEach((function(n){f(t,n,(function(t){return this._invoke(n,t)}))}))}function S(t,n){function r(i,u,a,o){var f=c(t[i],t,u);if("throw"!==f.type){var s=f.arg,h=s.value;return h&&"object"==typeof h&&e.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,a,o)}),(function(t){r("throw",t,a,o)})):n.resolve(h).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,o)}))}o(f.arg)}var i;this._invoke=function(t,e){function u(){return new n((function(n,i){r(t,e,n,i)}))}return i=i?i.then(u,u):u()}}function A(t,r){var e=t.iterator[r.method];if(e===n){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=n,A(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=c(e,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var u=i.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=n),r.delegate=null,d):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function D(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function j(t){if(t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(e.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=n,r.done=!0,r};return a.next=a}}return{next:O}}function O(){return{value:n,done:!0}}return g.prototype=x.constructor=m,m.constructor=g,g.displayName=f(m,o,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===g||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,f(t,o,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},M(S.prototype),S.prototype[a]=function(){return this},t.AsyncIterator=S,t.async=function(n,r,e,i,u){void 0===u&&(u=Promise);var a=new S(s(n,r,e,i),u);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},M(x),f(x,o,"Generator"),x[u]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function r(){for(;n.length;){var e=n.pop();if(e in t)return r.value=e,r.done=!1,r}return r.done=!0,r}},t.values=j,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(e,i){return o.type="throw",o.arg=t,r.next=e,i&&(r.method="next",r.arg=n),!!i}for(var u=this.tryEntries.length-1;u>=0;--u){var a=this.tryEntries[u],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var f=e.call(a,"catchLoc"),s=e.call(a,"finallyLoc");if(f&&s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(f){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&e.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var u=i;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=n&&n<=u.finallyLoc&&(u=null);var a=u?u.completion:{};return a.type=t,a.arg=n,u?(this.method="next",this.next=u.finallyLoc,d):this.complete(a)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),d},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),d}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var i=e.arg;D(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:j(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=n),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}})),vi=function(t,n){this.stopped=t,this.result=n},li=function(t,n,r){var e,i,u,a,o,f,s,c=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),l=F(n,r&&r.that,1+c+v),y=function(t){return e&&Se(e),new vi(!0,t)},d=function(t){return c?($(t),v?l(t[0],t[1],y):l(t[0],t[1])):v?l(t,y):l(t)};if(h)e=t;else{if("function"!=typeof(i=le(t)))throw TypeError("Target is not iterable");if(Pe(i)){for(u=0,a=Q(t.length);a>u;u++)if((o=d(t[u]))&&o instanceof vi)return o;return new vi(!1)}e=i.call(t)}for(f=e.next;!(s=f.call(e)).done;){try{o=d(s.value)}catch(t){throw Se(e),t}if("object"==typeof o&&o&&o instanceof vi)return o}return new vi(!1)},yi=function(t,n){var r=this;if(!(r instanceof yi))return new yi(t,n);Xr&&(r=Xr(new Error(void 0),_r(r))),void 0!==n&&G(r,"message",String(n));var e=[];return li(t,e.push,{that:e}),G(r,"errors",e),r};yi.prototype=Sn(Error.prototype,{constructor:v(5,yi),message:v(5,""),name:v(5,"AggregateError")}),Y({global:!0},{AggregateError:yi});var di,pi,gi,mi=a.Promise,wi=function(t,n,r){for(var e in n)r&&r.unsafe&&t[e]?t[e]=n[e]:Rn(t,e,n[e],r);return t},ki=dt("species"),bi=function(t){var n=it(t);f&&n&&!n[ki]&&(0,_.f)(n,ki,{configurable:!0,get:function(){return this}})},xi=function(t,n,r){if(!(t instanceof n))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},Mi=dt("species"),Si=function(t,n){var r,e=$(t).constructor;return void 0===e||null==(r=$(e)[Mi])?n:B(r)},Ai=/(iphone|ipod|ipad).*applewebkit/i.test(ut),Ni=a.location,Di=a.setImmediate,Pi=a.clearImmediate,ji=a.process,Oi=a.MessageChannel,Ti=a.Dispatch,Ri=0,Ei={},Ci=function(t){if(Ei.hasOwnProperty(t)){var n=Ei[t];delete Ei[t],n()}},Ii=function(t){return function(){Ci(t)}},Li=function(t){Ci(t.data)},Bi=function(t){a.postMessage(t+"",Ni.protocol+"//"+Ni.host)};Di&&Pi||(Di=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return Ei[++Ri]=function(){("function"==typeof t?t:Function(t)).apply(void 0,n)},di(Ri),Ri},Pi=function(t){delete Ei[t]},rt?di=function(t){ji.nextTick(Ii(t))}:Ti&&Ti.now?di=function(t){Ti.now(Ii(t))}:Oi&&!Ai?(gi=(pi=new Oi).port2,pi.port1.onmessage=Li,di=F(gi.postMessage,gi,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&Ni&&"file:"!==Ni.protocol&&!o(Bi)?(di=Bi,a.addEventListener("message",Li,!1)):di="onreadystatechange"in A("script")?function(t){gn.appendChild(A("script")).onreadystatechange=function(){gn.removeChild(this),Ci(t)}}:function(t){setTimeout(Ii(t),0)});var Fi,$i,zi,_i,Gi,qi,Vi,Yi,Ui={set:Di,clear:Pi},Hi=/web0s(?!.*chrome)/i.test(ut),Xi=Ui.set,Wi=a.MutationObserver||a.WebKitMutationObserver,Qi=a.document,Zi=a.process,Ji=a.Promise,Ki=(0,P.f)(a,"queueMicrotask"),tu=Ki&&Ki.value;tu||(Fi=function(){var t,n;for(rt&&(t=Zi.domain)&&t.exit();$i;){n=$i.fn,$i=$i.next;try{n()}catch(t){throw $i?_i():zi=void 0,t}}zi=void 0,t&&t.enter()},Ai||rt||Hi||!Wi||!Qi?Ji&&Ji.resolve?(Vi=Ji.resolve(void 0),Yi=Vi.then,_i=function(){Yi.call(Vi,Fi)}):_i=rt?function(){Zi.nextTick(Fi)}:function(){Xi.call(a,Fi)}:(Gi=!0,qi=Qi.createTextNode(""),new Wi(Fi).observe(qi,{characterData:!0}),_i=function(){qi.data=Gi=!Gi}));var nu,ru,eu,iu=tu||function(t){var n={fn:t,next:void 0};zi&&(zi.next=n),$i||($i=n,_i()),zi=n},uu=function(t){var n,r;this.promise=new t((function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e})),this.resolve=B(n),this.reject=B(r)},au={f:function(t){return new uu(t)}},ou=function(t,n){if($(t),w(n)&&n.constructor===t)return n;var r=au.f(t);return(0,r.resolve)(n),r.promise},fu=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},su=Ui.set,cu=dt("species"),hu="Promise",vu=rr.get,lu=rr.set,yu=rr.getterFor(hu),du=mi,pu=a.TypeError,gu=a.document,mu=a.process,wu=au.f,ku=wu,bu=!!(gu&&gu.createEvent&&a.dispatchEvent),xu="function"==typeof PromiseRejectionEvent,Mu=I(hu,(function(){if(Wn(du)===String(du)){if(66===st)return!0;if(!rt&&!xu)return!0}if(!du.prototype.finally)return!0;if(st>=51&&/native code/.test(du))return!1;var t=du.resolve(1),n=function(t){t((function(){}),(function(){}))};return(t.constructor={})[cu]=n,!(t.then((function(){}))instanceof n)})),Su=Mu||!Ee((function(t){du.all(t).catch((function(){}))})),Au=function(t){var n;return!(!w(t)||"function"!=typeof(n=t.then))&&n},Nu=function(t,n){if(!t.notified){t.notified=!0;var r=t.reactions;iu((function(){for(var e=t.value,i=1==t.state,u=0;r.length>u;){var a,o,f,s=r[u++],c=i?s.ok:s.fail,h=s.resolve,v=s.reject,l=s.domain;try{c?(i||(2===t.rejection&&Ou(t),t.rejection=1),!0===c?a=e:(l&&l.enter(),a=c(e),l&&(l.exit(),f=!0)),a===s.promise?v(pu("Promise-chain cycle")):(o=Au(a))?o.call(a,h,v):h(a)):v(e)}catch(t){l&&!f&&l.exit(),v(t)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Pu(t)}))}},Du=function(t,n,r){var e,i;bu?((e=gu.createEvent("Event")).promise=n,e.reason=r,e.initEvent(t,!1,!0),a.dispatchEvent(e)):e={promise:n,reason:r},!xu&&(i=a["on"+t])?i(e):"unhandledrejection"===t&&function(t,n){var r=a.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,n))}("Unhandled promise rejection",r)},Pu=function(t){su.call(a,(function(){var n,r=t.facade,e=t.value;if(ju(t)&&(n=fu((function(){rt?mu.emit("unhandledRejection",e,r):Du("unhandledrejection",r,e)})),t.rejection=rt||ju(t)?2:1,n.error))throw n.value}))},ju=function(t){return 1!==t.rejection&&!t.parent},Ou=function(t){su.call(a,(function(){var n=t.facade;rt?mu.emit("rejectionHandled",n):Du("rejectionhandled",n,t.value)}))},Tu=function(t,n,r){return function(e){t(n,e,r)}},Ru=function(t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Nu(t,!0))},Eu=function(t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===n)throw pu("Promise can't be resolved itself");var e=Au(n);e?iu((function(){var r={done:!1};try{e.call(n,Tu(Eu,r,t),Tu(Ru,r,t))}catch(n){Ru(r,n,t)}})):(t.value=n,t.state=1,Nu(t,!1))}catch(n){Ru({done:!1},n,t)}}};Mu&&(du=function(t){xi(this,du,hu),B(t),nu.call(this);var n=vu(this);try{t(Tu(Eu,n),Tu(Ru,n))}catch(t){Ru(n,t)}},(nu=function(){lu(this,{type:hu,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=wi(du.prototype,{then:function(t,n){var r=yu(this),e=wu(Si(this,du));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=rt?mu.domain:void 0,r.parent=!0,r.reactions.push(e),0!=r.state&&Nu(r,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),ru=function(){var t=new nu,n=vu(t);this.promise=t,this.resolve=Tu(Eu,n),this.reject=Tu(Ru,n)},au.f=wu=function(t){return t===du||t===eu?new ru(t):ku(t)}),Y({global:!0,wrap:!0,forced:Mu},{Promise:du}),Vn(du,hu,!1,!0),bi(hu),eu=it(hu),Y({target:hu,stat:!0,forced:Mu},{reject:function(t){var n=wu(this);return n.reject.call(void 0,t),n.promise}}),Y({target:hu,stat:!0,forced:!0},{resolve:function(t){return ou(this===eu?du:this,t)}}),Y({target:hu,stat:!0,forced:Su},{all:function(t){var n=this,r=wu(n),e=r.resolve,i=r.reject,u=fu((function(){var r=B(n.resolve),u=[],a=0,o=1;li(t,(function(t){var f=a++,s=!1;u.push(void 0),o++,r.call(n,t).then((function(t){s||(s=!0,u[f]=t,--o||e(u))}),i)})),--o||e(u)}));return u.error&&i(u.value),r.promise},race:function(t){var n=this,r=wu(n),e=r.reject,i=fu((function(){var i=B(n.resolve);li(t,(function(t){i.call(n,t).then(r.resolve,e)}))}));return i.error&&e(i.value),r.promise}}),Y({target:"Promise",stat:!0},{allSettled:function(t){var n=this,r=au.f(n),e=r.resolve,i=r.reject,u=fu((function(){var r=B(n.resolve),i=[],u=0,a=1;li(t,(function(t){var o=u++,f=!1;i.push(void 0),a++,r.call(n,t).then((function(t){f||(f=!0,i[o]={status:"fulfilled",value:t},--a||e(i))}),(function(t){f||(f=!0,i[o]={status:"rejected",reason:t},--a||e(i))}))})),--a||e(i)}));return u.error&&i(u.value),r.promise}}),Y({target:"Promise",stat:!0},{any:function(t){var n=this,r=au.f(n),e=r.resolve,i=r.reject,u=fu((function(){var r=B(n.resolve),u=[],a=0,o=1,f=!1;li(t,(function(t){var s=a++,c=!1;u.push(void 0),o++,r.call(n,t).then((function(t){c||f||(f=!0,e(t))}),(function(t){c||f||(c=!0,u[s]=t,--o||i(new(it("AggregateError"))(u,"No one promise resolved")))}))})),--o||i(new(it("AggregateError"))(u,"No one promise resolved"))}));return u.error&&i(u.value),r.promise}});var Cu=!!mi&&o((function(){mi.prototype.finally.call({then:function(){}},(function(){}))}));Y({target:"Promise",proto:!0,real:!0,forced:Cu},{finally:function(t){var n=Si(this,it("Promise")),r="function"==typeof t;return this.then(r?function(r){return ou(n,t()).then((function(){return r}))}:t,r?function(r){return ou(n,t()).then((function(){throw r}))}:t)}});var Iu=L.Promise;Y({target:"Promise",stat:!0},{try:function(t){var n=au.f(this),r=fu(t);return(r.error?n.reject:n.resolve)(r.value),n.promise}});var Lu=Iu;const Bu=r(n((function(t){function n(t,n,r,e,i,u,a){try{var o=t[u](a),f=o.value}catch(t){return void r(t)}o.done?n(f):Lu.resolve(f).then(e,i)}t.exports=function(t){return function(){var r=this,e=arguments;return new Lu((function(i,u){var a=t.apply(r,e);function o(t){n(a,i,u,o,f,"next",t)}function f(t){n(a,i,u,o,f,"throw",t)}o(void 0)}))}},t.exports.default=t.exports,t.exports.__esModule=!0})));var Fu=_e;const $u=r(n((function(t){t.exports=function(t,n,r){return n in t?Fu(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t},t.exports.default=t.exports,t.exports.__esModule=!0}))),zu=r(n((function(t){t.exports=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0}))),_u=r(n((function(t){function n(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Fu(t,e.key,e)}}t.exports=function(t,r,e){return r&&n(t.prototype,r),e&&n(t,e),t},t.exports.default=t.exports,t.exports.__esModule=!0})));var Gu=Mt("Array").concat,qu=Array.prototype,Vu=function(t){var n=t.concat;return t===qu||t instanceof Array&&n===qu.concat?Gu:n},Yu=function(t){return function(n,r,e,i){B(r);var u=Lt(n),a=p(u),o=Q(u.length),f=t?o-1:0,s=t?-1:1;if(e<2)for(;;){if(f in a){i=a[f],f+=s;break}if(f+=s,t?f<0:o<=f)throw TypeError("Reduce of empty array with no initial value")}for(;t?f>=0:o>f;f+=s)f in a&&(i=r(i,a[f],f,u));return i}},Uu=[Yu(!1),Yu(!0)][0],Hu=Ue("reduce");Y({target:"Array",proto:!0,forced:!Hu||!rt&&st>79&&st<83},{reduce:function(t){return Uu(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Xu=Mt("Array").reduce,Wu=Array.prototype,Qu=function(t){var n=t.reduce;return t===Wu||t instanceof Array&&n===Wu.reduce?Xu:n};Y({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var Zu=L.Date.now,Ju=Gt.every,Ku=Ue("every");Y({target:"Array",proto:!0,forced:!Ku},{every:function(t){return Ju(this,t,arguments.length>1?arguments[1]:void 0)}});var ta=Mt("Array").every,na=Array.prototype,ra=function(t){var n=t.every;return t===na||t instanceof Array&&n===na.every?ta:n},ea=Iu,ia=[].slice,ua={},aa=function(t,n,r){if(!(n in ua)){for(var e=[],i=0;i<n;i++)e[i]="a["+i+"]";ua[n]=Function("C,a","return new C("+e.join(",")+")")}return ua[n](t,r)},oa=Function.bind||function(t){var n=B(this),r=ia.call(arguments,1),e=function(){var i=r.concat(ia.call(arguments));return this instanceof e?aa(n,i.length,i):n.apply(t,i)};return w(n.prototype)&&(e.prototype=n.prototype),e};Y({target:"Function",proto:!0},{bind:oa});for(var fa=Mt("Function").bind,sa=Function.prototype,ca=function(t){var n=t.bind;return t===sa||t instanceof Function&&n===sa.bind?fa:n},ha=n((function(n){(function(){var t,r,e,i,u,a;"undefined"!=typeof performance&&null!==performance&&performance.now?n.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(n.exports=function(){return(t()-u)/1e6},r=process.hrtime,i=(t=function(){var t;return 1e9*(t=r())[0]+t[1]})(),a=1e9*process.uptime(),u=i-a):Date.now?(n.exports=function(){return Date.now()-e},e=Date.now()):(n.exports=function(){return(new Date).getTime()-e},e=(new Date).getTime())}).call(t)})),va="undefined"==typeof window?t:window,la=["moz","webkit"],ya="AnimationFrame",da=va["request"+ya],pa=va["cancel"+ya]||va["cancelRequest"+ya],ga=0;!da&&ga<la.length;ga++)da=va[la[ga]+"Request"+ya],pa=va[la[ga]+"Cancel"+ya]||va[la[ga]+"CancelRequest"+ya];if(!da||!pa){var ma=0,wa=0,ka=[];da=function(t){if(0===ka.length){var n=ha(),r=Math.max(0,16.666666666666668-(n-ma));ma=r+n,setTimeout((function(){var t=ka.slice(0);ka.length=0;for(var n=0;n<t.length;n++)if(!t[n].cancelled)try{t[n].callback(ma)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return ka.push({handle:++wa,callback:t,cancelled:!1}),wa},pa=function(t){for(var n=0;n<ka.length;n++)ka[n].handle===t&&(ka[n].cancelled=!0)}}var ba=function(t){return da.call(va,t)};ba.cancel=function(){pa.apply(va,arguments)},ba.polyfill=function(t){t||(t=va),t.requestAnimationFrame=da,t.cancelAnimationFrame=pa};var xa=Tt.trim;Y({target:"String",proto:!0,forced:("trim",o((function(){return!!Nt.trim()||"
"!="
".trim()||"trim"!==Nt.trim.name})))},{trim:function(){return xa(this)}});var Ma=Mt("String").trim,Sa=String.prototype,Aa=function(t){var n=t.trim;return"string"==typeof t||t===Sa||t instanceof String&&n===Sa.trim?Ma:n},Na=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=n[t]||t;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],e=0;e<r.length;e++){var i=r[e].process,u=r[e].re.exec(t);if(u){var a=i(u);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),n=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),1==r.length&&(r="0"+r),"#"+t+n+r},this.getHelpXML=function(){for(var t=new Array,e=0;e<r.length;e++)for(var i=r[e].example,u=0;u<i.length;u++)t[t.length]=i[u];for(var a in n)t[t.length]=a;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),e=0;e<t.length;e++)try{var f=document.createElement("li"),s=new RGBColor(t[e]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+s.toHex()+"; color:"+s.toHex(),c.appendChild(document.createTextNode("test"));var h=document.createTextNode(" "+t[e]+" -> "+s.toRGB()+" -> "+s.toHex());f.appendChild(c),f.appendChild(h),o.appendChild(f)}catch(t){}return o}},Da=it("Reflect","construct"),Pa=o((function(){function t(){}return!(Da((function(){}),[],t)instanceof t)})),ja=!o((function(){Da((function(){}))})),Oa=Pa||ja;Y({target:"Reflect",stat:!0,forced:Oa,sham:Oa},{construct:function(t,n){B(t),$(n);var r=arguments.length<3?t:B(arguments[2]);if(ja&&!Pa)return Da(t,n,r);if(t==r){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var e=[null];return e.push.apply(e,n),new(oa.apply(t,e))}var i=r.prototype,u=Sn(w(i)?i:Object.prototype),a=Function.apply.call(t,u,n);return w(a)?a:u}});var Ta=L.Reflect.construct;Y({target:"Object",stat:!0,sham:!f},{create:Sn});var Ra=L.Object;Y({target:"Object",stat:!0},{setPrototypeOf:Xr});var Ea=L.Object.setPrototypeOf,Ca=n((function(t){function n(r,e){return t.exports=n=Ea||function(t,n){return t.__proto__=n,t},t.exports.default=t.exports,t.exports.__esModule=!0,n(r,e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0}));const Ia=r(n((function(t){t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Ra.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&Ca(t,n)},t.exports.default=t.exports,t.exports.__esModule=!0})));var La=En.f("iterator"),Ba=n((function(t){function n(r){return"function"==typeof Lr&&"symbol"==typeof La?(t.exports=n=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=n=function(t){return t&&"function"==typeof Lr&&t.constructor===Lr&&t!==Lr.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),n(r)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0})),Fa=n((function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0}));const $a=r(Fa),za=r(n((function(t){var n=Ba.default;t.exports=function(t,r){return!r||"object"!==n(r)&&"function"!=typeof r?Fa(t):r},t.exports.default=t.exports,t.exports.__esModule=!0})));var _a=o((function(){_r(1)}));Y({target:"Object",stat:!0,forced:_a,sham:!Fr},{getPrototypeOf:function(t){return _r(Lt(t))}});var Ga=L.Object.getPrototypeOf,qa=n((function(t){function n(r){return t.exports=n=Ea?Ga:function(t){return t.__proto__||Ga(t)},t.exports.default=t.exports,t.exports.__esModule=!0,n(r)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0}));const Va=r(qa);var Ya=n((function(t){t.exports=function(t){if(Zt(t))return Be(t)},t.exports.default=t.exports,t.exports.__esModule=!0})),Ua=n((function(t){t.exports=function(t){if(void 0!==Lr&&he(Object(t)))return Le(t)},t.exports.default=t.exports,t.exports.__esModule=!0})),Ha=n((function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0}));const Xa=r(n((function(t){t.exports=function(t){return Ya(t)||Ua(t)||Fe(t)||Ha()},t.exports.default=t.exports,t.exports.__esModule=!0})));var Wa=Gt.some,Qa=Ue("some");Y({target:"Array",proto:!0,forced:!Qa},{some:function(t){return Wa(this,t,arguments.length>1?arguments[1]:void 0)}});var Za=Mt("Array").some,Ja=Array.prototype,Ka=cn.includes;Y({target:"Array",proto:!0},{includes:function(t){return Ka(this,t,arguments.length>1?arguments[1]:void 0)}});var to=Mt("Array").includes;Y({target:"String",proto:!0,forced:!wt("includes")},{includes:function(t){return!!~String(g(this)).indexOf(gt(t),arguments.length>1?arguments[1]:void 0)}});var no=Mt("String").includes,ro=Array.prototype,eo=String.prototype,io=function(t){var n=t.includes;return t===ro||t instanceof Array&&n===ro.includes?to:"string"==typeof t||t===eo||t instanceof String&&n===eo.includes?no:n},uo=Ie,ao=[].reverse,oo=[1,2];Y({target:"Array",proto:!0,forced:String(oo)===String(oo.reverse())},{reverse:function(){return Bt(this)&&(this.length=this.length),ao.call(this)}});var fo=Mt("Array").reverse,so=Array.prototype,co=function(t){var n=t.reverse;return t===so||t instanceof Array&&n===so.reverse?fo:n},ho=cn.indexOf,vo=[].indexOf,lo=!!vo&&1/[1].indexOf(1,-0)<0,yo=Ue("indexOf");Y({target:"Array",proto:!0,forced:lo||!yo},{indexOf:function(t){return lo?vo.apply(this,arguments)||0:ho(this,t,arguments.length>1?arguments[1]:void 0)}});var po=Mt("Array").indexOf,go=Array.prototype,mo=function(t){var n=t.indexOf;return t===go||t instanceof Array&&n===go.indexOf?po:n};Y({target:"Reflect",stat:!0},{get:function t(n,r){var e,i,u=arguments.length<3?n:arguments[2];return $(n)===u?n[r]:(e=P.f(n,r))?x(e,"value")?e.value:void 0===e.get?void 0:e.get.call(u):w(i=_r(n))?t(i,r,u):void 0}});var wo=L.Reflect.get,ko=ni,bo=n((function(t){t.exports=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=qa(t)););return t},t.exports.default=t.exports,t.exports.__esModule=!0}));const xo=r(n((function(t){function n(r,e,i){return"undefined"!=typeof Reflect&&wo?(t.exports=n=wo,t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=n=function(t,n,r){var e=bo(t,n);if(e){var i=ko(e,n);return i.get?i.get.call(r):i.value}},t.exports.default=t.exports,t.exports.__esModule=!0),n(r,e,i||r)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0})));Y({target:"Array",proto:!0},{fill:function(t){for(var n=Lt(this),r=Q(n.length),e=arguments.length,i=fn(e>1?arguments[1]:void 0,r),u=e>2?arguments[2]:void 0,a=void 0===u?r:fn(u,r);a>i;)n[i++]=t;return n}});var Mo=Mt("Array").fill,So=Array.prototype,Ao=function(t){var n=t.fill;return t===So||t instanceof Array&&n===So.fill?Mo:n},No=function(t,n){return(No=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])})(t,n)};function Do(t,n){function r(){this.constructor=t}No(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}function Po(t,n){var r=t[0],e=t[1];return[r*Math.cos(n)-e*Math.sin(n),r*Math.sin(n)+e*Math.cos(n)]}function jo(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var Oo=Math.PI;function To(t,n,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var e=t.rX,i=t.rY,u=t.x,a=t.y;e=Math.abs(t.rX),i=Math.abs(t.rY);var o=Po([(n-u)/2,(r-a)/2],-t.xRot/180*Oo),f=o[0],s=o[1],c=Math.pow(f,2)/Math.pow(e,2)+Math.pow(s,2)/Math.pow(i,2);1<c&&(e*=Math.sqrt(c),i*=Math.sqrt(c)),t.rX=e,t.rY=i;var h=Math.pow(e,2)*Math.pow(s,2)+Math.pow(i,2)*Math.pow(f,2),v=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(e,2)*Math.pow(i,2)-h)/h)),l=e*s/i*v,y=-i*f/e*v,d=Po([l,y],t.xRot/180*Oo);t.cX=d[0]+(n+u)/2,t.cY=d[1]+(r+a)/2,t.phi1=Math.atan2((s-y)/i,(f-l)/e),t.phi2=Math.atan2((-s-y)/i,(-f-l)/e),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*Oo),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*Oo),t.phi1*=180/Oo,t.phi2*=180/Oo}function Ro(t,n,r){jo(t,n,r);var e=t*t+n*n-r*r;if(0>e)return[];if(0===e)return[[t*r/(t*t+n*n),n*r/(t*t+n*n)]];var i=Math.sqrt(e);return[[(t*r+n*i)/(t*t+n*n),(n*r-t*i)/(t*t+n*n)],[(t*r-n*i)/(t*t+n*n),(n*r+t*i)/(t*t+n*n)]]}var Eo,Co=Math.PI/180;function Io(t,n,r){return(1-r)*t+r*n}function Lo(t,n,r,e){return t+Math.cos(e/180*Oo)*n+Math.sin(e/180*Oo)*r}function Bo(t,n,r,e){var i=n-t,u=r-n,a=3*i+3*(e-r)-6*u,o=6*(u-i),f=3*i;return Math.abs(a)<1e-6?[-f/o]:function(t,n,r){void 0===r&&(r=1e-6);var e=t*t/4-n;if(e<-r)return[];if(e<=r)return[-t/2];var i=Math.sqrt(e);return[-t/2-i,-t/2+i]}(o/a,f/a,1e-6)}function Fo(t,n,r,e,i){var u=1-i;return t*(u*u*u)+n*(3*u*u*i)+r*(3*u*i*i)+e*(i*i*i)}!function(t){function n(){return i((function(t,n,r){return t.relative&&(void 0!==t.x1&&(t.x1+=n),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=n),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=n),void 0!==t.y&&(t.y+=r),t.relative=!1),t}))}function r(){var t=NaN,n=NaN,r=NaN,e=NaN;return i((function(i,u,a){return i.type&Vo.SMOOTH_CURVE_TO&&(i.type=Vo.CURVE_TO,t=isNaN(t)?u:t,n=isNaN(n)?a:n,i.x1=i.relative?u-t:2*u-t,i.y1=i.relative?a-n:2*a-n),i.type&Vo.CURVE_TO?(t=i.relative?u+i.x2:i.x2,n=i.relative?a+i.y2:i.y2):(t=NaN,n=NaN),i.type&Vo.SMOOTH_QUAD_TO&&(i.type=Vo.QUAD_TO,r=isNaN(r)?u:r,e=isNaN(e)?a:e,i.x1=i.relative?u-r:2*u-r,i.y1=i.relative?a-e:2*a-e),i.type&Vo.QUAD_TO?(r=i.relative?u+i.x1:i.x1,e=i.relative?a+i.y1:i.y1):(r=NaN,e=NaN),i}))}function e(){var t=NaN,n=NaN;return i((function(r,e,i){if(r.type&Vo.SMOOTH_QUAD_TO&&(r.type=Vo.QUAD_TO,t=isNaN(t)?e:t,n=isNaN(n)?i:n,r.x1=r.relative?e-t:2*e-t,r.y1=r.relative?i-n:2*i-n),r.type&Vo.QUAD_TO){t=r.relative?e+r.x1:r.x1,n=r.relative?i+r.y1:r.y1;var u=r.x1,a=r.y1;r.type=Vo.CURVE_TO,r.x1=((r.relative?0:e)+2*u)/3,r.y1=((r.relative?0:i)+2*a)/3,r.x2=(r.x+2*u)/3,r.y2=(r.y+2*a)/3}else t=NaN,n=NaN;return r}))}function i(t){var n=0,r=0,e=NaN,i=NaN;return function(u){if(isNaN(e)&&!(u.type&Vo.MOVE_TO))throw new Error("path must start with moveto");var a=t(u,n,r,e,i);return u.type&Vo.CLOSE_PATH&&(n=e,r=i),void 0!==u.x&&(n=u.relative?n+u.x:u.x),void 0!==u.y&&(r=u.relative?r+u.y:u.y),u.type&Vo.MOVE_TO&&(e=n,i=r),a}}function u(t,n,r,e,u,a){return jo(t,n,r,e,u,a),i((function(i,o,f,s){var c=i.x1,h=i.x2,v=i.relative&&!isNaN(s),l=void 0!==i.x?i.x:v?0:o,y=void 0!==i.y?i.y:v?0:f;function d(t){return t*t}i.type&Vo.HORIZ_LINE_TO&&0!==n&&(i.type=Vo.LINE_TO,i.y=i.relative?0:f),i.type&Vo.VERT_LINE_TO&&0!==r&&(i.type=Vo.LINE_TO,i.x=i.relative?0:o),void 0!==i.x&&(i.x=i.x*t+y*r+(v?0:u)),void 0!==i.y&&(i.y=l*n+i.y*e+(v?0:a)),void 0!==i.x1&&(i.x1=i.x1*t+i.y1*r+(v?0:u)),void 0!==i.y1&&(i.y1=c*n+i.y1*e+(v?0:a)),void 0!==i.x2&&(i.x2=i.x2*t+i.y2*r+(v?0:u)),void 0!==i.y2&&(i.y2=h*n+i.y2*e+(v?0:a));var p=t*e-n*r;if(void 0!==i.xRot&&(1!==t||0!==n||0!==r||1!==e))if(0===p)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=Vo.LINE_TO;else{var g=i.xRot*Math.PI/180,m=Math.sin(g),w=Math.cos(g),k=1/d(i.rX),b=1/d(i.rY),x=d(w)*k+d(m)*b,M=2*m*w*(k-b),S=d(m)*k+d(w)*b,A=x*e*e-M*n*e+S*n*n,N=M*(t*e+n*r)-2*(x*r*e+S*t*n),D=x*r*r-M*t*r+S*t*t,P=(Math.atan2(N,A-D)+Math.PI)%Math.PI/2,j=Math.sin(P),O=Math.cos(P);i.rX=Math.abs(p)/Math.sqrt(A*d(O)+N*j*O+D*d(j)),i.rY=Math.abs(p)/Math.sqrt(A*d(j)-N*j*O+D*d(O)),i.xRot=180*P/Math.PI}return void 0!==i.sweepFlag&&0>p&&(i.sweepFlag=+!i.sweepFlag),i}))}t.ROUND=function(t){function n(n){return Math.round(n*t)/t}return void 0===t&&(t=1e13),jo(t),function(t){return void 0!==t.x1&&(t.x1=n(t.x1)),void 0!==t.y1&&(t.y1=n(t.y1)),void 0!==t.x2&&(t.x2=n(t.x2)),void 0!==t.y2&&(t.y2=n(t.y2)),void 0!==t.x&&(t.x=n(t.x)),void 0!==t.y&&(t.y=n(t.y)),void 0!==t.rX&&(t.rX=n(t.rX)),void 0!==t.rY&&(t.rY=n(t.rY)),t}},t.TO_ABS=n,t.TO_REL=function(){return i((function(t,n,r){return t.relative||(void 0!==t.x1&&(t.x1-=n),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=n),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=n),void 0!==t.y&&(t.y-=r),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,n,r){return void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=!0),i((function(e,i,u,a,o){if(isNaN(a)&&!(e.type&Vo.MOVE_TO))throw new Error("path must start with moveto");return n&&e.type&Vo.HORIZ_LINE_TO&&(e.type=Vo.LINE_TO,e.y=e.relative?0:u),r&&e.type&Vo.VERT_LINE_TO&&(e.type=Vo.LINE_TO,e.x=e.relative?0:i),t&&e.type&Vo.CLOSE_PATH&&(e.type=Vo.LINE_TO,e.x=e.relative?a-i:a,e.y=e.relative?o-u:o),e.type&Vo.ARC&&(0===e.rX||0===e.rY)&&(e.type=Vo.LINE_TO,delete e.rX,delete e.rY,delete e.xRot,delete e.lArcFlag,delete e.sweepFlag),e}))},t.NORMALIZE_ST=r,t.QT_TO_C=e,t.INFO=i,t.SANITIZE=function(t){void 0===t&&(t=0),jo(t);var n=NaN,r=NaN,e=NaN,u=NaN;return i((function(i,a,o,f,s){var c=Math.abs,h=!1,v=0,l=0;if(i.type&Vo.SMOOTH_CURVE_TO&&(v=isNaN(n)?0:a-n,l=isNaN(r)?0:o-r),i.type&(Vo.CURVE_TO|Vo.SMOOTH_CURVE_TO)?(n=i.relative?a+i.x2:i.x2,r=i.relative?o+i.y2:i.y2):(n=NaN,r=NaN),i.type&Vo.SMOOTH_QUAD_TO?(e=isNaN(e)?a:2*a-e,u=isNaN(u)?o:2*o-u):i.type&Vo.QUAD_TO?(e=i.relative?a+i.x1:i.x1,u=i.relative?o+i.y1:i.y2):(e=NaN,u=NaN),i.type&Vo.LINE_COMMANDS||i.type&Vo.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&Vo.CURVE_TO||i.type&Vo.SMOOTH_CURVE_TO||i.type&Vo.QUAD_TO||i.type&Vo.SMOOTH_QUAD_TO){var y=void 0===i.x?0:i.relative?i.x:i.x-a,d=void 0===i.y?0:i.relative?i.y:i.y-o;v=isNaN(e)?void 0===i.x1?v:i.relative?i.x:i.x1-a:e-a,l=isNaN(u)?void 0===i.y1?l:i.relative?i.y:i.y1-o:u-o;var p=void 0===i.x2?0:i.relative?i.x:i.x2-a,g=void 0===i.y2?0:i.relative?i.y:i.y2-o;c(y)<=t&&c(d)<=t&&c(v)<=t&&c(l)<=t&&c(p)<=t&&c(g)<=t&&(h=!0)}return i.type&Vo.CLOSE_PATH&&c(a-f)<=t&&c(o-s)<=t&&(h=!0),h?[]:i}))},t.MATRIX=u,t.ROTATE=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=0),jo(t,n,r);var e=Math.sin(t),i=Math.cos(t);return u(i,e,-e,i,n-n*i+r*e,r-n*e-r*i)},t.TRANSLATE=function(t,n){return void 0===n&&(n=0),jo(t,n),u(1,0,0,1,t,n)},t.SCALE=function(t,n){return void 0===n&&(n=t),jo(t,n),u(t,0,0,n,0,0)},t.SKEW_X=function(t){return jo(t),u(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return jo(t),u(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),jo(t),u(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),jo(t),u(1,0,0,-1,0,t)},t.A_TO_C=function(){return i((function(t,n,r){return Vo.ARC===t.type?function(t,n,r){var e,i,u,a;t.cX||To(t,n,r);for(var o=Math.min(t.phi1,t.phi2),f=Math.max(t.phi1,t.phi2)-o,s=Math.ceil(f/90),c=new Array(s),h=n,v=r,l=0;l<s;l++){var y=Io(t.phi1,t.phi2,l/s),d=Io(t.phi1,t.phi2,(l+1)/s),p=4/3*Math.tan((d-y)*Co/4),g=[Math.cos(y*Co)-p*Math.sin(y*Co),Math.sin(y*Co)+p*Math.cos(y*Co)],m=g[0],w=g[1],k=[Math.cos(d*Co),Math.sin(d*Co)],b=k[0],x=k[1],M=[b+p*Math.sin(d*Co),x-p*Math.cos(d*Co)],S=M[0],A=M[1];c[l]={relative:t.relative,type:Vo.CURVE_TO};var N=function(n,r){var e=Po([n*t.rX,r*t.rY],t.xRot);return[t.cX+e[0],t.cY+e[1]]};e=N(m,w),c[l].x1=e[0],c[l].y1=e[1],i=N(S,A),c[l].x2=i[0],c[l].y2=i[1],u=N(b,x),c[l].x=u[0],c[l].y=u[1],t.relative&&(c[l].x1-=h,c[l].y1-=v,c[l].x2-=h,c[l].y2-=v,c[l].x-=h,c[l].y-=v),h=(a=[c[l].x,c[l].y])[0],v=a[1]}return c}(t,t.relative?0:n,t.relative?0:r):t}))},t.ANNOTATE_ARCS=function(){return i((function(t,n,r){return t.relative&&(n=0,r=0),Vo.ARC===t.type&&To(t,n,r),t}))},t.CLONE=function(){return function(t){var n={};for(var r in t)n[r]=t[r];return n}},t.CALCULATE_BOUNDS=function(){var t=n(),u=e(),a=r(),o=i((function(n,r,e){var i=a(u(t(function(t){var n={};for(var r in t)n[r]=t[r];return n}(n))));function f(t){t>o.maxX&&(o.maxX=t),t<o.minX&&(o.minX=t)}function s(t){t>o.maxY&&(o.maxY=t),t<o.minY&&(o.minY=t)}if(i.type&Vo.DRAWING_COMMANDS&&(f(r),s(e)),i.type&Vo.HORIZ_LINE_TO&&f(i.x),i.type&Vo.VERT_LINE_TO&&s(i.y),i.type&Vo.LINE_TO&&(f(i.x),s(i.y)),i.type&Vo.CURVE_TO){f(i.x),s(i.y);for(var c=0,h=Bo(r,i.x1,i.x2,i.x);c<h.length;c++)0<(D=h[c])&&1>D&&f(Fo(r,i.x1,i.x2,i.x,D));for(var v=0,l=Bo(e,i.y1,i.y2,i.y);v<l.length;v++)0<(D=l[v])&&1>D&&s(Fo(e,i.y1,i.y2,i.y,D))}if(i.type&Vo.ARC){f(i.x),s(i.y),To(i,r,e);for(var y=i.xRot/180*Math.PI,d=Math.cos(y)*i.rX,p=Math.sin(y)*i.rX,g=-Math.sin(y)*i.rY,m=Math.cos(y)*i.rY,w=i.phi1<i.phi2?[i.phi1,i.phi2]:-180>i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],k=w[0],b=w[1],x=function(t){var n=180*Math.atan2(t[1],t[0])/Math.PI;return n<k?n+360:n},M=0,S=Ro(g,-d,0).map(x);M<S.length;M++)(D=S[M])>k&&D<b&&f(Lo(i.cX,d,g,D));for(var A=0,N=Ro(m,-p,0).map(x);A<N.length;A++){var D;(D=N[A])>k&&D<b&&s(Lo(i.cY,p,m,D))}}return n}));return o.minX=1/0,o.maxX=-1/0,o.minY=1/0,o.maxY=-1/0,o}}(Eo||(Eo={}));var $o,zo=function(){function t(){}return t.prototype.round=function(t){return this.transform(Eo.ROUND(t))},t.prototype.toAbs=function(){return this.transform(Eo.TO_ABS())},t.prototype.toRel=function(){return this.transform(Eo.TO_REL())},t.prototype.normalizeHVZ=function(t,n,r){return this.transform(Eo.NORMALIZE_HVZ(t,n,r))},t.prototype.normalizeST=function(){return this.transform(Eo.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(Eo.QT_TO_C())},t.prototype.aToC=function(){return this.transform(Eo.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(Eo.SANITIZE(t))},t.prototype.translate=function(t,n){return this.transform(Eo.TRANSLATE(t,n))},t.prototype.scale=function(t,n){return this.transform(Eo.SCALE(t,n))},t.prototype.rotate=function(t,n,r){return this.transform(Eo.ROTATE(t,n,r))},t.prototype.matrix=function(t,n,r,e,i,u){return this.transform(Eo.MATRIX(t,n,r,e,i,u))},t.prototype.skewX=function(t){return this.transform(Eo.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(Eo.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(Eo.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(Eo.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(Eo.ANNOTATE_ARCS())},t}(),_o=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},Go=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},qo=function(t){function n(){var n=t.call(this)||this;return n.curNumber="",n.curCommandType=-1,n.curCommandRelative=!1,n.canParseCommandOrComma=!0,n.curNumberHasExp=!1,n.curNumberHasExpDigits=!1,n.curNumberHasDecimal=!1,n.curArgs=[],n}return Do(n,t),n.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},n.prototype.parse=function(t,n){var r=this;void 0===n&&(n=[]);for(var e=function(t){n.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},i=0;i<t.length;i++){var u=t[i],a=!(this.curCommandType!==Vo.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),o=Go(u)&&("0"===this.curNumber&&"0"===u||a);if(!Go(u)||o)if("e"!==u&&"E"!==u)if("-"!==u&&"+"!==u||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==u||this.curNumberHasExp||this.curNumberHasDecimal||a){if(this.curNumber&&-1!==this.curCommandType){var f=Number(this.curNumber);if(isNaN(f))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===Vo.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>f)throw new SyntaxError('Expected positive number, got "'+f+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(f),this.curArgs.length===Yo[this.curCommandType]&&(Vo.HORIZ_LINE_TO===this.curCommandType?e({type:Vo.HORIZ_LINE_TO,relative:this.curCommandRelative,x:f}):Vo.VERT_LINE_TO===this.curCommandType?e({type:Vo.VERT_LINE_TO,relative:this.curCommandRelative,y:f}):this.curCommandType===Vo.MOVE_TO||this.curCommandType===Vo.LINE_TO||this.curCommandType===Vo.SMOOTH_QUAD_TO?(e({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Vo.MOVE_TO===this.curCommandType&&(this.curCommandType=Vo.LINE_TO)):this.curCommandType===Vo.CURVE_TO?e({type:Vo.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===Vo.SMOOTH_CURVE_TO?e({type:Vo.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Vo.QUAD_TO?e({type:Vo.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Vo.ARC&&e({type:Vo.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(!_o(u))if(","===u&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==u&&"-"!==u&&"."!==u)if(o)this.curNumber=u,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+u+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==u&&"Z"!==u)if("h"===u||"H"===u)this.curCommandType=Vo.HORIZ_LINE_TO,this.curCommandRelative="h"===u;else if("v"===u||"V"===u)this.curCommandType=Vo.VERT_LINE_TO,this.curCommandRelative="v"===u;else if("m"===u||"M"===u)this.curCommandType=Vo.MOVE_TO,this.curCommandRelative="m"===u;else if("l"===u||"L"===u)this.curCommandType=Vo.LINE_TO,this.curCommandRelative="l"===u;else if("c"===u||"C"===u)this.curCommandType=Vo.CURVE_TO,this.curCommandRelative="c"===u;else if("s"===u||"S"===u)this.curCommandType=Vo.SMOOTH_CURVE_TO,this.curCommandRelative="s"===u;else if("q"===u||"Q"===u)this.curCommandType=Vo.QUAD_TO,this.curCommandRelative="q"===u;else if("t"===u||"T"===u)this.curCommandType=Vo.SMOOTH_QUAD_TO,this.curCommandRelative="t"===u;else{if("a"!==u&&"A"!==u)throw new SyntaxError('Unexpected character "'+u+'" at index '+i+".");this.curCommandType=Vo.ARC,this.curCommandRelative="a"===u}else n.push({type:Vo.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=u,this.curNumberHasDecimal="."===u}else this.curNumber+=u,this.curNumberHasDecimal=!0;else this.curNumber+=u;else this.curNumber+=u,this.curNumberHasExp=!0;else this.curNumber+=u,this.curNumberHasExpDigits=this.curNumberHasExp}return n},n.prototype.transform=function(t){return Object.create(this,{parse:{value:function(n,r){void 0===r&&(r=[]);for(var e=0,i=Object.getPrototypeOf(this).parse.call(this,n);e<i.length;e++){var u=t(i[e]);Array.isArray(u)?r.push.apply(r,u):r.push(u)}return r}}})},n}(zo),Vo=function(t){function n(r){var e=t.call(this)||this;return e.commands="string"==typeof r?n.parse(r):r,e}return Do(n,t),n.prototype.encode=function(){return n.encode(this.commands)},n.prototype.getBounds=function(){var t=Eo.CALCULATE_BOUNDS();return this.transform(t),t},n.prototype.transform=function(t){for(var n=[],r=0,e=this.commands;r<e.length;r++){var i=t(e[r]);Array.isArray(i)?n.push.apply(n,i):n.push(i)}return this.commands=n,this},n.encode=function(t){return function(t){var n="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var e=t[r];if(e.type===Vo.CLOSE_PATH)n+="z";else if(e.type===Vo.HORIZ_LINE_TO)n+=(e.relative?"h":"H")+e.x;else if(e.type===Vo.VERT_LINE_TO)n+=(e.relative?"v":"V")+e.y;else if(e.type===Vo.MOVE_TO)n+=(e.relative?"m":"M")+e.x+" "+e.y;else if(e.type===Vo.LINE_TO)n+=(e.relative?"l":"L")+e.x+" "+e.y;else if(e.type===Vo.CURVE_TO)n+=(e.relative?"c":"C")+e.x1+" "+e.y1+" "+e.x2+" "+e.y2+" "+e.x+" "+e.y;else if(e.type===Vo.SMOOTH_CURVE_TO)n+=(e.relative?"s":"S")+e.x2+" "+e.y2+" "+e.x+" "+e.y;else if(e.type===Vo.QUAD_TO)n+=(e.relative?"q":"Q")+e.x1+" "+e.y1+" "+e.x+" "+e.y;else if(e.type===Vo.SMOOTH_QUAD_TO)n+=(e.relative?"t":"T")+e.x+" "+e.y;else{if(e.type!==Vo.ARC)throw new Error('Unexpected command type "'+e.type+'" at index '+r+".");n+=(e.relative?"a":"A")+e.rX+" "+e.rY+" "+e.xRot+" "+ +e.lArcFlag+" "+ +e.sweepFlag+" "+e.x+" "+e.y}}return n}(t)},n.parse=function(t){var n=new qo,r=[];return n.parse(t,r),n.finish(r),r},n.CLOSE_PATH=1,n.MOVE_TO=2,n.HORIZ_LINE_TO=4,n.VERT_LINE_TO=8,n.LINE_TO=16,n.CURVE_TO=32,n.SMOOTH_CURVE_TO=64,n.QUAD_TO=128,n.SMOOTH_QUAD_TO=256,n.ARC=512,n.LINE_COMMANDS=n.LINE_TO|n.HORIZ_LINE_TO|n.VERT_LINE_TO,n.DRAWING_COMMANDS=n.HORIZ_LINE_TO|n.VERT_LINE_TO|n.LINE_TO|n.CURVE_TO|n.SMOOTH_CURVE_TO|n.QUAD_TO|n.SMOOTH_QUAD_TO|n.ARC,n}(zo),Yo=(($o={})[Vo.MOVE_TO]=2,$o[Vo.LINE_TO]=2,$o[Vo.HORIZ_LINE_TO]=1,$o[Vo.VERT_LINE_TO]=1,$o[Vo.CLOSE_PATH]=0,$o[Vo.QUAD_TO]=4,$o[Vo.SMOOTH_QUAD_TO]=2,$o[Vo.CURVE_TO]=6,$o[Vo.SMOOTH_CURVE_TO]=4,$o[Vo.ARC]=7,$o),Uo=P.f;Y({target:"Reflect",stat:!0},{deleteProperty:function(t,n){var r=Uo($(t),n);return!(r&&!r.configurable)&&delete t[n]}});var Ho=L.Reflect.deleteProperty,Xo=Mt("Array").values,Wo=Array.prototype,Qo={DOMTokenList:!0,NodeList:!0},Zo=function(t){var n=t.values;return t===Wo||t instanceof Array&&n===Wo.values||Qo.hasOwnProperty(zn(t))?Xo:n},Jo=Tt.trim,Ko=a.parseInt,tf=/^[+-]?0[Xx]/,nf=8!==Ko(Nt+"08")||22!==Ko(Nt+"0x16")?function(t,n){var r=Jo(String(t));return Ko(r,n>>>0||(tf.test(r)?16:10))}:Ko;Y({global:!0,forced:parseInt!=nf},{parseInt:nf});var rf=L.parseInt,ef=Qt,uf=le,af=Rr,of=xe,ff=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),sf=n((function(t){var n=_.f,r=nt("meta"),e=0,i=Object.isExtensible||function(){return!0},u=function(t){n(t,r,{value:{objectID:"O"+ ++e,weakData:{}}})},a=t.exports={REQUIRED:!1,fastKey:function(t,n){if(!w(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!x(t,r)){if(!i(t))return"F";if(!n)return"E";u(t)}return t[r].objectID},getWeakData:function(t,n){if(!x(t,r)){if(!i(t))return!0;if(!n)return!1;u(t)}return t[r].weakData},onFreeze:function(t){return ff&&a.REQUIRED&&i(t)&&!x(t,r)&&u(t),t}};hn[r]=!0})),cf=_.f,hf=Gt.forEach,vf=rr.set,lf=rr.getterFor,yf=_.f,df=sf.fastKey,pf=rr.set,gf=rr.getterFor,mf=(function(t,n,r){var e,i=-1!==t.indexOf("Map"),u=-1!==t.indexOf("Weak"),s=i?"set":"add",c=a.Map,h=c&&c.prototype,v={};if(f&&"function"==typeof c&&(u||h.forEach&&!o((function(){(new c).entries().next()})))){e=n((function(n,r){vf(xi(n,e,t),{type:t,collection:new c}),null!=r&&li(r,n[s],{that:n,AS_ENTRIES:i})}));var l=lf(t);hf(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var n="add"==t||"set"==t;!(t in h)||u&&"clear"==t||G(e.prototype,t,(function(r,e){var i=l(this).collection;if(!n&&u&&!w(r))return"get"==t&&void 0;var a=i[t](0===r?0:r,e);return n?this:a}))})),u||cf(e.prototype,"size",{configurable:!0,get:function(){return l(this).collection.size}})}else e=r.getConstructor(n,t,i,s),sf.REQUIRED=!0;Vn(e,t,!1,!0),v.Map=e,Y({global:!0,forced:!0},v),u||r.setStrong(e,t,i)}("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(t,n,r,e){var i=t((function(t,u){xi(t,i,n),pf(t,{type:n,index:Sn(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=u&&li(u,t[e],{that:t,AS_ENTRIES:r})})),u=gf(n),a=function(t,n,r){var e,i,a=u(t),s=o(t,n);return s?s.value=r:(a.last=s={index:i=df(n,!0),key:n,value:r,previous:e=a.last,next:void 0,removed:!1},a.first||(a.first=s),e&&(e.next=s),f?a.size++:t.size++,"F"!==i&&(a.index[i]=s)),t},o=function(t,n){var r,e=u(t),i=df(n);if("F"!==i)return e.index[i];for(r=e.first;r;r=r.next)if(r.key==n)return r};return wi(i.prototype,{clear:function(){for(var t=u(this),n=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var n=this,r=u(n),e=o(n,t);if(e){var i=e.next,a=e.previous;delete r.index[e.index],e.removed=!0,a&&(a.next=i),i&&(i.previous=a),r.first==e&&(r.first=i),r.last==e&&(r.last=a),f?r.size--:n.size--}return!!e},forEach:function(t){for(var n,r=u(this),e=F(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.next:r.first;)for(e(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(t){return!!o(this,t)}}),wi(i.prototype,r?{get:function(t){var n=o(this,t);return n&&n.value},set:function(t,n){return a(this,0===t?0:t,n)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),f&&yf(i.prototype,"size",{get:function(){return u(this).size}}),i},setStrong:function(t,n,r){var e=n+" Iterator",i=gf(n),u=gf(e);Kr(t,n,(function(t,n){pf(this,{type:e,target:t,state:i(t),kind:n,last:void 0})}),(function(){for(var t=u(this),n=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==n?{value:r.key,done:!1}:"values"==n?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),bi(n)}}),L.Map),wf=it("Reflect","apply"),kf=Function.apply,bf=!o((function(){wf((function(){}))}));Y({target:"Reflect",stat:!0,forced:bf},{apply:function(t,n,r){return B(t),$(r),wf?wf(t,n,r):kf.call(t,n,r)}});var xf=L.Reflect.apply;Y({target:"Reflect",stat:!0,sham:!Fr},{getPrototypeOf:function(t){return _r($(t))}});var Mf=L.Reflect.getPrototypeOf;function Sf(t){return(Sf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Af=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Nf=[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 Df(t,n,r,e,i,u){if(!(isNaN(u)||u<1)){u|=0;var a=function(t,n,r,e,i){if("string"==typeof t&&(t=document.getElementById(t)),!t||"object"!==Sf(t)||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var u=t.getContext("2d");try{return u.getImageData(n,r,e,i)}catch(t){throw new Error("unable to access image data: "+t)}}(t,n,r,e,i);a=function(t,n,r,e,i,u){for(var a,o=t.data,f=2*u+1,s=e-1,c=i-1,h=u+1,v=h*(h+1)/2,l=new Pf,y=l,d=1;d<f;d++)y=y.next=new Pf,d===h&&(a=y);y.next=l;for(var p=null,g=null,m=0,w=0,k=Af[u],b=Nf[u],x=0;x<i;x++){y=l;for(var M=o[w],S=o[w+1],A=o[w+2],N=o[w+3],D=0;D<h;D++)y.r=M,y.g=S,y.b=A,y.a=N,y=y.next;for(var P=0,j=0,O=0,T=0,R=h*M,E=h*S,C=h*A,I=h*N,L=v*M,B=v*S,F=v*A,$=v*N,z=1;z<h;z++){var _=w+((s<z?s:z)<<2),G=o[_],q=o[_+1],V=o[_+2],Y=o[_+3],U=h-z;L+=(y.r=G)*U,B+=(y.g=q)*U,F+=(y.b=V)*U,$+=(y.a=Y)*U,P+=G,j+=q,O+=V,T+=Y,y=y.next}p=l,g=a;for(var H=0;H<e;H++){var X=$*k>>b;if(o[w+3]=X,0!==X){var W=255/X;o[w]=(L*k>>b)*W,o[w+1]=(B*k>>b)*W,o[w+2]=(F*k>>b)*W}else o[w]=o[w+1]=o[w+2]=0;L-=R,B-=E,F-=C,$-=I,R-=p.r,E-=p.g,C-=p.b,I-=p.a;var Q=H+u+1;L+=P+=p.r=o[Q=m+(Q<s?Q:s)<<2],B+=j+=p.g=o[Q+1],F+=O+=p.b=o[Q+2],$+=T+=p.a=o[Q+3],p=p.next;var Z=g.r,J=g.g,K=g.b,tt=g.a;R+=Z,E+=J,C+=K,I+=tt,P-=Z,j-=J,O-=K,T-=tt,g=g.next,w+=4}m+=e}for(var nt=0;nt<e;nt++){var rt=o[w=nt<<2],et=o[w+1],it=o[w+2],ut=o[w+3],at=h*rt,ot=h*et,ft=h*it,st=h*ut,ct=v*rt,ht=v*et,vt=v*it,lt=v*ut;y=l;for(var yt=0;yt<h;yt++)y.r=rt,y.g=et,y.b=it,y.a=ut,y=y.next;for(var dt=e,pt=0,gt=0,mt=0,wt=0,kt=1;kt<=u;kt++){var bt=h-kt;ct+=(y.r=rt=o[w=dt+nt<<2])*bt,ht+=(y.g=et=o[w+1])*bt,vt+=(y.b=it=o[w+2])*bt,lt+=(y.a=ut=o[w+3])*bt,wt+=rt,pt+=et,gt+=it,mt+=ut,y=y.next,kt<c&&(dt+=e)}w=nt,p=l,g=a;for(var xt=0;xt<i;xt++){var Mt=w<<2;o[Mt+3]=ut=lt*k>>b,ut>0?(o[Mt]=(ct*k>>b)*(ut=255/ut),o[Mt+1]=(ht*k>>b)*ut,o[Mt+2]=(vt*k>>b)*ut):o[Mt]=o[Mt+1]=o[Mt+2]=0,ct-=at,ht-=ot,vt-=ft,lt-=st,at-=p.r,ot-=p.g,ft-=p.b,st-=p.a,Mt=nt+((Mt=xt+h)<c?Mt:c)*e<<2,ct+=wt+=p.r=o[Mt],ht+=pt+=p.g=o[Mt+1],vt+=gt+=p.b=o[Mt+2],lt+=mt+=p.a=o[Mt+3],p=p.next,at+=rt=g.r,ot+=et=g.g,ft+=it=g.b,st+=ut=g.a,wt-=rt,pt-=et,gt-=it,mt-=ut,g=g.next,w+=e}}return t}(a,0,0,e,i,u),t.getContext("2d").putImageData(a,n,r)}}var Pf=function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function jf(t){return t.replace(/(?!\u3000)\s+/gm," ")}function Of(t){return t.replace(/^[\n \t]+/,"")}function Tf(t){return t.replace(/[\n \t]+$/,"")}function Rf(t){var n=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return Wt(n).call(n,It)}var Ef=/^[A-Z-]+$/;function Cf(t){return Ef.test(t)?t.toLowerCase():t}function If(t){var n=t.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return n[2]||n[3]||n[4]}function Lf(t){if(!(n=t,r=n.startsWith,"string"==typeof n||n===At||n instanceof String&&r===At.startsWith?St:r).call(t,"rgb"))return t;var n,r,e=3;return t.replace(/\d+(\.\d+)?/g,(function(t,n){return e--&&n?String(Math.round(It(t))):t}))}var Bf=/(\[[^\]]+\])/g,Ff=/(#[^\s\+>~\.\[:]+)/g,$f=/(\.[^\s\+>~\.\[:]+)/g,zf=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,_f=/(:[\w-]+\([^\)]*\))/gi,Gf=/(:[^\s\+>~\.\[:]+)/g,qf=/([^\s\+>~\.\[:]+)/g;function Vf(t,n){var r=t.match(n);return r?[t.replace(n," "),r.length]:[t,0]}function Yf(t){var n=[0,0,0],r=t.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),e=Vf(r,Bf),i=ze(e,2);r=i[0],n[1]+=i[1];var u=Vf(r,Ff),a=ze(u,2);r=a[0],n[0]+=a[1];var o=Vf(r,$f),f=ze(o,2);r=f[0],n[1]+=f[1];var s=Vf(r,zf),c=ze(s,2);r=c[0],n[2]+=c[1];var h=Vf(r,_f),v=ze(h,2);r=v[0],n[1]+=v[1];var l=Vf(r,Gf),y=ze(l,2);r=y[0],n[1]+=y[1];var d=Vf(r=r.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),qf),p=ze(d,2);return r=p[0],n[2]+=p[1],n.join("")}var Uf=1e-8;function Hf(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function Xf(t,n){return(t[0]*n[0]+t[1]*n[1])/(Hf(t)*Hf(n))}function Wf(t,n){return(t[0]*n[1]<t[1]*n[0]?-1:1)*Math.acos(Xf(t,n))}function Qf(t){return t*t*t}function Zf(t){return 3*t*t*(1-t)}function Jf(t){return 3*t*(1-t)*(1-t)}function Kf(t){return(1-t)*(1-t)*(1-t)}function ts(t){return t*t}function ns(t){return 2*t*(1-t)}function rs(t){return(1-t)*(1-t)}var es=function(){function t(n,r,e){zu(this,t),this.document=n,this.name=r,this.value=e,this.isNormalizedColor=!1}return _u(t,[{key:"split",value:function(){var n,r,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",i=this.document,u=this.name;return Wt(n=Aa(r=jf(this.getString())).call(r).split(e)).call(n,(function(n){return new t(i,u,n)}))}},{key:"hasValue",value:function(t){var n=this.value;return null!==n&&""!==n&&(t||0!==n)&&void 0!==n}},{key:"isString",value:function(t){var n=this.value,r="string"==typeof n;return r&&t?t.test(n):r}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case/px$/.test(t):case/^[0-9]+$/.test(t):return!0;default:return!1}}},{key:"setValue",value:function(t){return this.value=t,this}},{key:"getValue",value:function(t){return void 0===t||this.hasValue()?this.value:t}},{key:"getNumber",value:function(t){if(!this.hasValue())return void 0===t?0:It(t);var n=It(this.value);return this.isString(/%$/)&&(n/=100),n}},{key:"getString",value:function(t){return void 0===t||this.hasValue()?void 0===this.value?"":String(this.value):String(t)}},{key:"getColor",value:function(t){var n=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,n=Lf(n),this.value=n),n}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9\.\-]/g,"")}},{key:"getPixels",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var r="boolean"==typeof t?[void 0,t]:[t],e=ze(r,2),i=e[0],u=e[1],a=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(a.computeSize("x"),a.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(a.computeSize("x"),a.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*a.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*a.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&u:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*a.computeSize(i);default:var o=this.getNumber();return n&&o<1?o*a.computeSize(i):o}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function(){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)}}},{key:"getDefinition",value:function(){var t=this.getString(),n=t.match(/#([^\)'"]+)/);return n&&(n=n[1]),n||(n=t),this.document.definitions[n]}},{key:"getFillStyleDefinition",value:function(t,n){var r=this.getDefinition();if(!r)return null;if("function"==typeof r.createGradient)return r.createGradient(this.document.ctx,t,n);if("function"==typeof r.createPattern){if(r.getHrefAttribute().hasValue()){var e=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),e.hasValue()&&r.getAttribute("patternTransform",!0).setValue(e.value)}return r.createPattern(this.document.ctx,t,n)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?t.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(n){for(var r=this.getColor(),e=r.length,i=0,u=0;u<e&&(","===r[u]&&i++,3!==i);u++);if(n.hasValue()&&this.isString()&&3!==i){var a=new Na(r);a.ok&&(a.alpha=n.getNumber(),r=a.toRGBA())}return new t(this.document,this.name,r)}}],[{key:"empty",value:function(n){return new t(n,"EMPTY","")}}]),t}();es.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"};var is=function(){function t(){zu(this,t),this.viewPorts=[]}return _u(t,[{key:"clear",value:function(){this.viewPorts=[]}},{key:"setCurrent",value:function(t,n){this.viewPorts.push({width:t,height:n})}},{key:"removeCurrent",value:function(){this.viewPorts.pop()}},{key:"getCurrent",value:function(){var t=this.viewPorts;return t[t.length-1]}},{key:"computeSize",value:function(t){return"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}}]),t}(),us=function(){function t(n,r){zu(this,t),this.x=n,this.y=r}return _u(t,[{key:"angleTo",value:function(t){return Math.atan2(t.y-this.y,t.x-this.x)}},{key:"applyTransform",value:function(t){var n=this.x,r=this.y,e=n*t[1]+r*t[3]+t[5];this.x=n*t[0]+r*t[2]+t[4],this.y=e}}],[{key:"parse",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=Rf(n),i=ze(e,2),u=i[0],a=void 0===u?r:u,o=i[1],f=void 0===o?r:o;return new t(a,f)}},{key:"parseScale",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,e=Rf(n),i=ze(e,2),u=i[0],a=void 0===u?r:u,o=i[1],f=void 0===o?a:o;return new t(a,f)}},{key:"parsePath",value:function(n){for(var r=Rf(n),e=r.length,i=[],u=0;u<e;u+=2)i.push(new t(r[u],r[u+1]));return i}}]),t}(),as=function(){function t(n){var r,e;zu(this,t),this.screen=n,this.working=!1,this.events=[],this.eventElements=[],this.onClick=ca(r=this.onClick).call(r,this),this.onMouseMove=ca(e=this.onMouseMove).call(e,this)}return _u(t,[{key:"isWorking",value:function(){return this.working}},{key:"start",value:function(){if(!this.working){var t=this.onMouseMove,n=this.screen.ctx.canvas;n.onclick=this.onClick,n.onmousemove=t,this.working=!0}}},{key:"stop",value:function(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}},{key:"hasEvents",value:function(){return this.working&&this.events.length>0}},{key:"runEvents",value:function(){if(this.working){var t=this.events,n=this.eventElements,r=this.screen.ctx.canvas.style;r&&(r.cursor=""),Je(t).call(t,(function(t,r){for(var e=t.run,i=n[r];i;)e(i),i=i.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function(t,n){if(this.working&&n){var r=this.events,e=this.eventElements;Je(r).call(r,(function(r,i){!e[i]&&n.isPointInPath&&n.isPointInPath(r.x,r.y)&&(e[i]=t)}))}}},{key:"checkBoundingBox",value:function(t,n){if(this.working&&n){var r=this.events,e=this.eventElements;Je(r).call(r,(function(r,i){!e[i]&&n.isPointInBox(r.x,r.y)&&(e[i]=t)}))}}},{key:"mapXY",value:function(t,n){for(var r=this.screen,e=r.window,i=r.ctx,u=new us(t,n),a=i.canvas;a;)u.x-=a.offsetLeft,u.y-=a.offsetTop,a=a.offsetParent;return e.scrollX&&(u.x+=e.scrollX),e.scrollY&&(u.y+=e.scrollY),u}},{key:"onClick",value:function(t){var n=this.mapXY((t||event).clientX,(t||event).clientY);this.events.push({type:"onclick",x:n.x,y:n.y,run:function(t){t.onClick&&t.onClick()}})}},{key:"onMouseMove",value:function(t){var n=this.mapXY((t||event).clientX,(t||event).clientY);this.events.push({type:"onmousemove",x:n.x,y:n.y,run:function(t){t.onMouseMove&&t.onMouseMove()}})}}]),t}(),os="undefined"!=typeof window?window:null,fs="undefined"!=typeof fetch?ca(fetch).call(fetch,void 0):null,ss=function(){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.fetch,i=void 0===e?fs:e,u=r.window,a=void 0===u?os:u;zu(this,t),this.ctx=n,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new is,this.mouse=new as(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=a,this.fetch=i}return _u(t,[{key:"wait",value:function(t){this.waits.push(t)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:ea.resolve()}},{key:"isReady",value:function(){var t;if(this.isReadyLock)return!0;var n=ra(t=this.waits).call(t,(function(t){return t()}));return n&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=n,n}},{key:"setDefaults",value:function(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}},{key:"setViewBox",value:function(t){var n=t.document,r=t.ctx,e=t.width,i=t.desiredWidth,u=t.height,a=t.desiredHeight,o=t.minX,f=void 0===o?0:o,s=t.minY,c=void 0===s?0:s,h=t.refX,v=t.refY,l=t.clip,y=void 0!==l&&l,d=t.clipX,p=void 0===d?0:d,g=t.clipY,m=void 0===g?0:g,w=jf(t.aspectRatio).replace(/^defer\s/,"").split(" "),k=ze(w,2),b=k[0]||"xMidYMid",x=k[1]||"meet",M=e/i,S=u/a,A=Math.min(M,S),N=Math.max(M,S),D=i,P=a;"meet"===x&&(D*=A,P*=A),"slice"===x&&(D*=N,P*=N);var j=new es(n,"refX",h),O=new es(n,"refY",v),T=j.hasValue()&&O.hasValue();if(T&&r.translate(-A*j.getPixels("x"),-A*O.getPixels("y")),y){var R=A*p,E=A*m;r.beginPath(),r.moveTo(R,E),r.lineTo(e,E),r.lineTo(e,u),r.lineTo(R,u),r.closePath(),r.clip()}if(!T){var C="meet"===x&&A===S,I="slice"===x&&N===S,L="meet"===x&&A===M,B="slice"===x&&N===M;/^xMid/.test(b)&&(C||I)&&r.translate(e/2-D/2,0),/YMid$/.test(b)&&(L||B)&&r.translate(0,u/2-P/2),/^xMax/.test(b)&&(C||I)&&r.translate(e-D,0),/YMax$/.test(b)&&(L||B)&&r.translate(0,u-P)}switch(!0){case"none"===b:r.scale(M,S);break;case"meet"===x:r.scale(A,A);break;case"slice"===x:r.scale(N,N)}r.translate(-f,-c)}},{key:"start",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.enableRedraw,i=void 0!==e&&e,u=r.ignoreMouse,a=void 0!==u&&u,o=r.ignoreAnimation,f=void 0!==o&&o,s=r.ignoreDimensions,c=void 0!==s&&s,h=r.ignoreClear,v=void 0!==h&&h,l=r.forceRedraw,y=r.scaleWidth,d=r.scaleHeight,p=r.offsetX,g=r.offsetY,m=this.FRAMERATE,w=this.mouse,k=1e3/m;if(this.frameDuration=k,this.readyPromise=new ea((function(t){n.resolveReady=t})),this.isReady()&&this.render(t,c,v,y,d,p,g),i){var b=Zu(),x=b,M=0,S=function r(){b=Zu(),(M=b-x)>=k&&(x=b-M%k,n.shouldUpdate(f,l)&&(n.render(t,c,v,y,d,p,g),w.runEvents())),n.intervalId=ba(r)};a||w.start(),this.intervalId=ba(S)}}},{key:"stop",value:function(){this.intervalId&&(ba.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(t,n){if(!t){var r,e=this.frameDuration;if(Qu(r=this.animations).call(r,(function(t,n){return n.update(e)||t}),!1))return!0}return!("function"!=typeof n||!n())||!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents()}},{key:"render",value:function(t,n,r,e,i,u,a){var o=this.CLIENT_WIDTH,f=this.CLIENT_HEIGHT,s=this.viewPort,c=this.ctx,h=this.isFirstRender,v=c.canvas;s.clear(),v.width&&v.height?s.setCurrent(v.width,v.height):s.setCurrent(o,f);var l=t.getStyle("width"),y=t.getStyle("height");!n&&(h||"number"!=typeof e&&"number"!=typeof i)&&(l.hasValue()&&(v.width=l.getPixels("x"),v.style&&(v.style.width="".concat(v.width,"px"))),y.hasValue()&&(v.height=y.getPixels("y"),v.style&&(v.style.height="".concat(v.height,"px"))));var d=v.clientWidth||v.width,p=v.clientHeight||v.height;if(n&&l.hasValue()&&y.hasValue()&&(d=l.getPixels("x"),p=y.getPixels("y")),s.setCurrent(d,p),"number"==typeof u&&t.getAttribute("x",!0).setValue(u),"number"==typeof a&&t.getAttribute("y",!0).setValue(a),"number"==typeof e||"number"==typeof i){var g,m,w=Rf(t.getAttribute("viewBox").getString()),k=0,b=0;if("number"==typeof e){var x=t.getStyle("width");x.hasValue()?k=x.getPixels("x")/e:isNaN(w[2])||(k=w[2]/e)}if("number"==typeof i){var M=t.getStyle("height");M.hasValue()?b=M.getPixels("y")/i:isNaN(w[3])||(b=w[3]/i)}k||(k=b),b||(b=k),t.getAttribute("width",!0).setValue(e),t.getAttribute("height",!0).setValue(i);var S=t.getStyle("transform",!0,!0);S.setValue(Vu(g=Vu(m="".concat(S.getString()," scale(")).call(m,1/k,", ")).call(g,1/b,")"))}r||c.clearRect(0,0,d,p),t.render(c),h&&(this.isFirstRender=!1)}}]),t}();ss.defaultWindow=os,ss.defaultFetch=fs;var cs=ss.defaultFetch,hs="undefined"!=typeof DOMParser?DOMParser:null,vs=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.fetch,e=void 0===r?cs:r,i=n.DOMParser,u=void 0===i?hs:i;zu(this,t),this.fetch=e,this.DOMParser=u}var n,r;return _u(t,[{key:"parse",value:(r=Bu(hi.mark((function t(n){return hi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!/^</.test(n)){t.next=2;break}return t.abrupt("return",this.parseFromString(n));case 2:return t.abrupt("return",this.load(n));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"parseFromString",value:function(t){var n=new this.DOMParser;try{return this.checkDocument(n.parseFromString(t,"image/svg+xml"))}catch(r){return this.checkDocument(n.parseFromString(t,"text/xml"))}}},{key:"checkDocument",value:function(t){var n=t.getElementsByTagName("parsererror")[0];if(n)throw new Error(n.textContent);return t}},{key:"load",value:(n=Bu(hi.mark((function t(n){var r;return hi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.fetch(n);case 2:return r=t.sent,t.next=5,r.text();case 5:return t.abrupt("return",this.parseFromString(t.sent));case 7:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})}]),t}(),ls=function(){function t(n,r){zu(this,t),this.type="translate",this.point=null,this.point=us.parse(r)}return _u(t,[{key:"apply",value:function(t){var n=this.point;t.translate(n.x||0,n.y||0)}},{key:"unapply",value:function(t){var n=this.point;t.translate(-1*n.x||0,-1*n.y||0)}},{key:"applyToPoint",value:function(t){var n=this.point;t.applyTransform([1,0,0,1,n.x||0,n.y||0])}}]),t}(),ys=function(){function t(n,r,e){zu(this,t),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=Rf(r);this.angle=new es(n,"angle",i[0]),this.originX=e[0],this.originY=e[1],this.cx=i[1]||0,this.cy=i[2]||0}return _u(t,[{key:"apply",value:function(t){var n=this.cy,r=this.originY,e=this.angle,i=this.cx+this.originX.getPixels("x"),u=n+r.getPixels("y");t.translate(i,u),t.rotate(e.getRadians()),t.translate(-i,-u)}},{key:"unapply",value:function(t){var n=this.cx,r=this.cy,e=this.angle;t.translate(n,r),t.rotate(-1*e.getRadians()),t.translate(-n,-r)}},{key:"applyToPoint",value:function(t){var n=this.cx,r=this.cy,e=this.angle.getRadians();t.applyTransform([1,0,0,1,n||0,r||0]),t.applyTransform([Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0]),t.applyTransform([1,0,0,1,-n||0,-r||0])}}]),t}(),ds=function(){function t(n,r){zu(this,t),this.type="scale",this.scale=null;var e=us.parseScale(r);0!==e.x&&0!==e.y||(e.x=1e-8,e.y=1e-8),this.scale=e}return _u(t,[{key:"apply",value:function(t){var n=this.scale,r=n.x;t.scale(r,n.y||r)}},{key:"unapply",value:function(t){var n=this.scale,r=n.x;t.scale(1/r,1/n.y||r)}},{key:"applyToPoint",value:function(t){var n=this.scale;t.applyTransform([n.x||0,0,0,n.y||0,0,0])}}]),t}(),ps=function(){function t(n,r){zu(this,t),this.type="matrix",this.matrix=[],this.matrix=Rf(r)}return _u(t,[{key:"apply",value:function(t){var n=this.matrix;t.transform(n[0],n[1],n[2],n[3],n[4],n[5])}},{key:"unapply",value:function(t){var n=this.matrix,r=n[0],e=n[2],i=n[4],u=n[1],a=n[3],o=n[5],f=1/(r*(1*a-0*o)-e*(1*u-0*o)+i*(0*u-0*a));t.transform(f*(1*a-0*o),f*(0*o-1*u),f*(0*i-1*e),f*(1*r-0*i),f*(e*o-i*a),f*(i*u-r*o))}},{key:"applyToPoint",value:function(t){t.applyTransform(this.matrix)}}]),t}();var gs=function(){Ia(e,ps);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n){var i;return zu(this,e),(i=r.call(this,t,n)).type="skew",i.angle=null,i.angle=new es(t,"angle",n),i}return e}();var ms=function(){Ia(e,gs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n){var i;return zu(this,e),(i=r.call(this,t,n)).type="skewX",i.matrix=[1,0,Math.tan(i.angle.getRadians()),1,0,0],i}return e}();var ws=function(){Ia(e,gs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n){var i;return zu(this,e),(i=r.call(this,t,n)).type="skewY",i.matrix=[1,Math.tan(i.angle.getRadians()),0,1,0,0],i}return e}(),ks=function(){function t(n,r,e){var i=this;zu(this,t),this.document=n,this.transforms=[];var u=function(t){var n;return Aa(n=jf(t)).call(n).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(r);Je(u).call(u,(function(n){if("none"!==n){var r=function(t){var n=t.split("("),r=ze(n,2),e=r[0],i=r[1];return[Aa(e).call(e),Aa(i).call(i).replace(")","")]}(n),u=ze(r,2),a=t.transformTypes[u[0]];void 0!==a&&i.transforms.push(new a(i.document,u[1],e))}}))}return _u(t,[{key:"apply",value:function(t){for(var n=this.transforms,r=n.length,e=0;e<r;e++)n[e].apply(t)}},{key:"unapply",value:function(t){for(var n=this.transforms,r=n.length-1;r>=0;r--)n[r].unapply(t)}},{key:"applyToPoint",value:function(t){for(var n=this.transforms,r=n.length,e=0;e<r;e++)n[e].applyToPoint(t)}}],[{key:"fromElement",value:function(n,r){var e=r.getStyle("transform",!1,!0),i=r.getStyle("transform-origin",!1,!0).split(),u=ze(i,2),a=u[0],o=u[1],f=[a,void 0===o?a:o];return e.hasValue()?new t(n,e.getString(),f):null}}]),t}();ks.transformTypes={translate:ls,rotate:ys,scale:ds,matrix:ps,skewX:ms,skewY:ws};var bs=function(){function t(n,r){var e,i,u=this,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(zu(this,t),this.document=n,this.node=r,this.captureTextNodes=a,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){if(Je(e=uo(r.attributes)).call(e,(function(t){var r=Cf(t.nodeName);u.attributes[r]=new es(n,r,t.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var o,f=Wt(o=this.getAttribute("style").getString().split(";")).call(o,(function(t){return Aa(t).call(t)}));Je(f).call(f,(function(t){var r;if(t){var e=Wt(r=t.split(":")).call(r,(function(t){return Aa(t).call(t)})),i=ze(e,2),a=i[0];u.styles[a]=new es(n,a,i[1])}}))}var s=n.definitions,c=this.getAttribute("id");c.hasValue()&&(s[c.getValue()]||(s[c.getValue()]=this)),Je(i=uo(r.childNodes)).call(i,(function(t){if(1===t.nodeType)u.addChild(t);else if(a&&(3===t.nodeType||4===t.nodeType)){var r=n.createTextNode(t);r.getText().length>0&&u.addChild(r)}}))}}return _u(t,[{key:"getAttribute",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.attributes[t];if(!r&&n){var e=new es(this.document,t,"");return this.attributes[t]=e,e}return r||es.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var t in this.attributes)if("href"===t||/:href$/.test(t))return this.attributes[t];return es.empty(this.document)}},{key:"getStyle",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],e=this.styles[t];if(e)return e;var i=this.getAttribute(t);if(i&&i.hasValue())return this.styles[t]=i,i;if(!r){var u=this.parent;if(u){var a=u.getStyle(t);if(a&&a.hasValue())return a}}if(n){var o=new es(this.document,t,"");return this.styles[t]=o,o}return e||es.empty(this.document)}},{key:"render",value:function(t){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(t.save(),this.getStyle("mask").hasValue()){var n=this.getStyle("mask").getDefinition();n&&(this.applyEffects(t),n.apply(t,this))}else if("none"!==this.getStyle("filter").getValue("none")){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}},{key:"setContext",value:function(){}},{key:"applyEffects",value:function(t){var n=ks.fromElement(this.document,this);n&&n.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var e=r.getDefinition();e&&e.apply(t)}}},{key:"clearContext",value:function(){}},{key:"renderChildren",value:function(t){var n;Je(n=this.children).call(n,(function(n){n.render(t)}))}},{key:"addChild",value:function(n){var r,e=n instanceof t?n:this.document.createElement(n);e.parent=this,io(r=t.ignoreChildTypes).call(r,e.type)||this.children.push(e)}},{key:"matchesSelector",value:function(t){var n,r=this.node;if("function"==typeof r.matches)return r.matches(t);var e,i,u=r.getAttribute("class");return!(!u||""===u)&&(e=n=u.split(" "),i=e.some,e===Ja||e instanceof Array&&i===Ja.some?Za:i).call(n,(function(n){if(".".concat(n)===t)return!0}))}},{key:"addStylesFromStyleDefinition",value:function(){var t=this.document,n=t.styles,r=t.stylesSpecificity;for(var e in n)if("@"!==e[0]&&this.matchesSelector(e)){var i=n[e],u=r[e];if(i)for(var a in i){var o=this.stylesSpecificity[a];void 0===o&&(o="000"),u>=o&&(this.styles[a]=i[a],this.stylesSpecificity[a]=u)}}}},{key:"removeStyles",value:function(t,n){return Qu(n).call(n,(function(n,r){var e,i=t.getStyle(r);if(!i.hasValue())return n;var u=i.getString();return i.setValue(""),Vu(e=[]).call(e,Xa(n),[[r,u]])}),[])}},{key:"restoreStyles",value:function(t,n){Je(n).call(n,(function(n){var r=ze(n,2),e=r[1];t.getStyle(r[0],!0).setValue(e)}))}}]),t}();bs.ignoreChildTypes=["title"];var xs=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){return zu(this,e),r.call(this,t,n,i)}return e}();function Ms(t){var n=Aa(t).call(t);return/^('|")/.test(n)?n:'"'.concat(n,'"')}function Ss(t){if(!t)return"";var n=Aa(t).call(t).toLowerCase();switch(n){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return n;default:return/^oblique\s+(-|)\d+deg$/.test(n)?n:""}}function As(t){if(!t)return"";var n=Aa(t).call(t).toLowerCase();switch(n){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return n;default:return/^[\d.]+$/.test(n)?n:""}}var Ns=function(){function t(n,r,e,i,u,a){zu(this,t);var o=a?"string"==typeof a?t.parse(a):a:{};this.fontFamily=u||o.fontFamily,this.fontSize=i||o.fontSize,this.fontStyle=n||o.fontStyle,this.fontWeight=e||o.fontWeight,this.fontVariant=r||o.fontVariant}return _u(t,[{key:"toString",value:function(){var t,n,r;return Aa(t=[Ss(this.fontStyle),this.fontVariant,As(this.fontWeight),this.fontSize,(n=this.fontFamily,"undefined"==typeof process?n:Wt(r=Aa(n).call(n).split(",")).call(r,Ms).join(","))].join(" ")).call(t)}}],[{key:"parse",value:function(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,i="",u="",a="",o="",f="",s=Aa(n=jf(r)).call(n).split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return Je(s).call(s,(function(n){var r,e,s;switch(!0){case!c.fontStyle&&io(r=t.styles).call(r,n):"inherit"!==n&&(i=n),c.fontStyle=!0;break;case!c.fontVariant&&io(e=t.variants).call(e,n):"inherit"!==n&&(u=n),c.fontStyle=!0,c.fontVariant=!0;break;case!c.fontWeight&&io(s=t.weights).call(s,n):"inherit"!==n&&(a=n),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:if("inherit"!==n){var h=n.split("/"),v=ze(h,1);o=v[0]}c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:"inherit"!==n&&(f+=n)}})),new t(i,u,a,o,f,e)}}]),t}();Ns.styles="normal|italic|oblique|inherit",Ns.variants="normal|small-caps|inherit",Ns.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var Ds=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;zu(this,t),this.x1=n,this.y1=r,this.x2=e,this.y2=i,this.addPoint(n,r),this.addPoint(e,i)}return _u(t,[{key:"addPoint",value:function(t,n){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),void 0!==n&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=n,this.y2=n),n<this.y1&&(this.y1=n),n>this.y2&&(this.y2=n))}},{key:"addX",value:function(t){this.addPoint(t,null)}},{key:"addY",value:function(t){this.addPoint(null,t)}},{key:"addBoundingBox",value:function(t){if(t){var n=t.x2,r=t.y2;this.addPoint(t.x1,t.y1),this.addPoint(n,r)}}},{key:"sumCubic",value:function(t,n,r,e,i){return Math.pow(1-t,3)*n+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*e+Math.pow(t,3)*i}},{key:"bezierCurveAdd",value:function(t,n,r,e,i){var u=6*n-12*r+6*e,a=-3*n+9*r-9*e+3*i,o=3*r-3*n;if(0!==a){var f=Math.pow(u,2)-4*o*a;if(!(f<0)){var s=(-u+Math.sqrt(f))/(2*a);0<s&&s<1&&(t?this.addX(this.sumCubic(s,n,r,e,i)):this.addY(this.sumCubic(s,n,r,e,i)));var c=(-u-Math.sqrt(f))/(2*a);0<c&&c<1&&(t?this.addX(this.sumCubic(c,n,r,e,i)):this.addY(this.sumCubic(c,n,r,e,i)))}}else{if(0===u)return;var h=-o/u;0<h&&h<1&&(t?this.addX(this.sumCubic(h,n,r,e,i)):this.addY(this.sumCubic(h,n,r,e,i)))}}},{key:"addBezierCurve",value:function(t,n,r,e,i,u,a,o){this.addPoint(t,n),this.addPoint(a,o),this.bezierCurveAdd(!0,t,r,i,a),this.bezierCurveAdd(!1,n,e,u,o)}},{key:"addQuadraticCurve",value:function(t,n,r,e,i,u){var a=t+2/3*(r-t),o=n+2/3*(e-n);this.addBezierCurve(t,n,a,a+1/3*(i-t),o,o+1/3*(u-n),i,u)}},{key:"isPointInBox",value:function(t,n){return this.x1<=t&&t<=this.x2&&this.y1<=n&&n<=this.y2}},{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}}]),t}();var Ps=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).modifiedEmSizeStack=!1,t}return _u(e,[{key:"calculateOpacity",value:function(){for(var t=1,n=this;n;){var r=n.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),n=n.parent}return t}},{key:"setContext",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!n){var r=this.getStyle("fill"),e=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),u=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var a=r.getFillStyleDefinition(this,e);a&&(t.fillStyle=a)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var o=r.getColor();"inherit"!==o&&(t.fillStyle="none"===o?"rgba(0,0,0,0)":o)}if(e.hasValue()){var f=new es(this.document,"fill",t.fillStyle).addOpacity(e).getColor();t.fillStyle=f}if(i.isUrlDefinition()){var s=i.getFillStyleDefinition(this,u);s&&(t.strokeStyle=s)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var c=i.getString();"inherit"!==c&&(t.strokeStyle="none"===c?"rgba(0,0,0,0)":c)}if(u.hasValue()){var h=new es(this.document,"stroke",t.strokeStyle).addOpacity(u).getString();t.strokeStyle=h}var v=this.getStyle("stroke-width");if(v.hasValue()){var l=v.getPixels();t.lineWidth=l||1e-8}var y=this.getStyle("stroke-linecap"),d=this.getStyle("stroke-linejoin"),p=this.getStyle("stroke-miterlimit"),g=this.getStyle("paint-order"),m=this.getStyle("stroke-dasharray"),w=this.getStyle("stroke-dashoffset");if(y.hasValue()&&(t.lineCap=y.getString()),d.hasValue()&&(t.lineJoin=d.getString()),p.hasValue()&&(t.miterLimit=p.getNumber()),g.hasValue()&&(t.paintOrder=g.getValue()),m.hasValue()&&"none"!==m.getString()){var k=Rf(m.getString());void 0!==t.setLineDash?t.setLineDash(k):void 0!==t.webkitLineDash?t.webkitLineDash=k:void 0===t.mozDash||1===k.length&&0===k[0]||(t.mozDash=k);var b=w.getPixels();void 0!==t.lineDashOffset?t.lineDashOffset=b:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=b:void 0!==t.mozDashOffset&&(t.mozDashOffset=b)}}if(this.modifiedEmSizeStack=!1,void 0!==t.font){var x=this.getStyle("font"),M=this.getStyle("font-style"),S=this.getStyle("font-variant"),A=this.getStyle("font-weight"),N=this.getStyle("font-size"),D=this.getStyle("font-family"),P=new Ns(M.getString(),S.getString(),A.getString(),N.hasValue()?"".concat(N.getPixels(!0),"px"):"",D.getString(),Ns.parse(x.getString(),t.font));M.setValue(P.fontStyle),S.setValue(P.fontVariant),A.setValue(P.fontWeight),N.setValue(P.fontSize),D.setValue(P.fontFamily),t.font=P.toString(),N.isPixels()&&(this.document.emSize=N.getPixels(),this.modifiedEmSizeStack=!0)}n||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){xo(Va(e.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),e}();var js=function(){Ia(e,Ps);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;return zu(this,e),(u=r.call(this,t,n,(this instanceof e?this.constructor:void 0)===e||i)).type="text",u.x=0,u.y=0,u.measureCache=-1,u}return _u(e,[{key:"setContext",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];xo(Va(e.prototype),"setContext",this).call(this,t,n);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}},{key:"initializeCoordinates",value:function(t){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var n=this.getAttribute("dx"),r=this.getAttribute("dy");n.hasValue()&&(this.x+=n.getPixels("x")),r.hasValue()&&(this.y+=r.getPixels("y")),this.x+=this.getAnchorDelta(t,this,0)}},{key:"getBoundingBox",value:function(t){var n,r=this;if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(t);var e=null;return Je(n=this.children).call(n,(function(n,i){var u=r.getChildBoundingBox(t,r,r,i);e?e.addBoundingBox(u):e=u})),e}},{key:"getFontSize",value:function(){var t=this.parent,n=Ns.parse(this.document.ctx.font).fontSize;return t.getStyle("font-size").getNumber(n)}},{key:"getTElementBoundingBox",value:function(t){var n=this.getFontSize();return new Ds(this.x,this.y-n,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,n,r){var e=n[r],i=null;if(t.isArabic){var u=n.length,a=n[r-1],o=n[r+1],f="isolated";(0===r||" "===a)&&r<u-2&&" "!==o&&(f="terminal"),r>0&&" "!==a&&r<u-2&&" "!==o&&(f="medial"),r>0&&" "!==a&&(r===u-1||" "===o)&&(f="initial"),void 0!==t.glyphs[e]&&((i=t.glyphs[e][f])||"glyph"!==t.glyphs[e].type||(i=t.glyphs[e]))}else i=t.glyphs[e];return i||(i=t.missingGlyph),i}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(t){var n=t||this.node,r=uo(n.parentNode.childNodes),e=mo(r).call(r,n),i=r.length-1,u=jf(n.value||n.text||n.textContent||"");return 0===e&&(u=Of(u)),e===i&&(u=Tf(u)),u}},{key:"renderChildren",value:function(t){var n,r=this;if("text"===this.type){this.initializeCoordinates(t),Je(n=this.children).call(n,(function(n,e){r.renderChild(t,r,r,e)}));var e=this.document.screen.mouse;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}},{key:"renderTElementChildren",value:function(t){var n=this.document,r=this.parent,e=this.getText(),i=r.getStyle("font-family").getDefinition();if(i)for(var u,a=i.fontFace.unitsPerEm,o=Ns.parse(n.ctx.font),f=r.getStyle("font-size").getNumber(o.fontSize),s=r.getStyle("font-style").getString(o.fontStyle),c=f/a,h=i.isRTL?co(u=e.split("")).call(u).join(""):e,v=Rf(r.getAttribute("dx").getString()),l=h.length,y=0;y<l;y++){var d=this.getGlyph(i,h,y);t.translate(this.x,this.y),t.scale(c,-c);var p=t.lineWidth;t.lineWidth=t.lineWidth*a/f,"italic"===s&&t.transform(1,0,.4,1,0,0),d.render(t),"italic"===s&&t.transform(1,0,-.4,1,0,0),t.lineWidth=p,t.scale(1/c,-1/c),t.translate(-this.x,-this.y),this.x+=f*(d.horizAdvX||i.horizAdvX)/a,void 0===v[y]||isNaN(v[y])||(this.x+=v[y])}else{var g=this.x,m=this.y;"stroke"===t.paintOrder?(t.strokeStyle&&t.strokeText(e,g,m),t.fillStyle&&t.fillText(e,g,m)):(t.fillStyle&&t.fillText(e,g,m),t.strokeStyle&&t.strokeText(e,g,m))}}},{key:"getAnchorDelta",value:function(t,n,r){var e=this.getStyle("text-anchor").getString("start");if("start"!==e){for(var i=n.children,u=i.length,a=null,o=0,f=r;f<u&&(a=i[f],!(f>r&&a.getAttribute("x").hasValue()||a.getAttribute("text-anchor").hasValue()));f++)o+=a.measureTextRecursive(t);return-1*("end"===e?o:o/2)}return 0}},{key:"adjustChildCoordinates",value:function(t,n,r,e){var i=r.children[e];if("function"!=typeof i.measureText)return i;t.save(),i.setContext(t,!0);var u=i.getAttribute("x"),a=i.getAttribute("y"),o=i.getAttribute("dx"),f=i.getAttribute("dy"),s=i.getAttribute("text-anchor").getString("start");if(0===e&&"textNode"!==i.type&&(u.hasValue()||u.setValue(n.getAttribute("x").getValue("0")),a.hasValue()||a.setValue(n.getAttribute("y").getValue("0")),o.hasValue()||o.setValue(n.getAttribute("dx").getValue("0")),f.hasValue()||f.setValue(n.getAttribute("dy").getValue("0"))),u.hasValue()){if(i.x=u.getPixels("x")+n.getAnchorDelta(t,r,e),"start"!==s){var c=i.measureTextRecursive(t);i.x+=-1*("end"===s?c:c/2)}o.hasValue()&&(i.x+=o.getPixels("x"))}else{if("start"!==s){var h=i.measureTextRecursive(t);n.x+=-1*("end"===s?h:h/2)}o.hasValue()&&(n.x+=o.getPixels("x")),i.x=n.x}return n.x=i.x+i.measureText(t),a.hasValue()?(i.y=a.getPixels("y"),f.hasValue()&&(i.y+=f.getPixels("y"))):(f.hasValue()&&(n.y+=f.getPixels("y")),i.y=n.y),n.y=i.y,i.clearContext(t),t.restore(),i}},{key:"getChildBoundingBox",value:function(t,n,r,e){var i,u=this.adjustChildCoordinates(t,n,r,e);if("function"!=typeof u.getBoundingBox)return null;var a=u.getBoundingBox(t);return a?(Je(i=u.children).call(i,(function(r,e){var i=n.getChildBoundingBox(t,n,u,e);a.addBoundingBox(i)})),a):null}},{key:"renderChild",value:function(t,n,r,e){var i,u=this.adjustChildCoordinates(t,n,r,e);u.render(t),Je(i=u.children).call(i,(function(r,e){n.renderChild(t,n,u,e)}))}},{key:"measureTextRecursive",value:function(t){var n;return Qu(n=this.children).call(n,(function(n,r){return n+r.measureTextRecursive(t)}),this.measureText(t))}},{key:"measureText",value:function(t){var n=this.measureCache;if(~n)return n;var r=this.getText(),e=this.measureTargetText(t,r);return this.measureCache=e,e}},{key:"measureTargetText",value:function(t,n){if(!n.length)return 0;var r=this.parent,e=r.getStyle("font-family").getDefinition();if(e){for(var i,u=this.getFontSize(),a=e.isRTL?co(i=n.split("")).call(i).join(""):n,o=Rf(r.getAttribute("dx").getString()),f=a.length,s=0,c=0;c<f;c++)s+=(this.getGlyph(e,a,c).horizAdvX||e.horizAdvX)*u/e.fontFace.unitsPerEm,void 0===o[c]||isNaN(o[c])||(s+=o[c]);return s}if(!t.measureText)return 10*n.length;t.save(),this.setContext(t,!0);var h=t.measureText(n).width;return this.clearContext(t),t.restore(),h}}]),e}();var Os=function(){Ia(e,js);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;return zu(this,e),(u=r.call(this,t,n,(this instanceof e?this.constructor:void 0)===e||i)).type="tspan",u.text=u.children.length>0?"":u.getTextFromNode(),u}return _u(e,[{key:"getText",value:function(){return this.text}}]),e}();var Ts=function(){Ia(e,Os);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="textNode",t}return e}();var Rs=function(){Ia(e,Vo);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t){var n;return zu(this,e),(n=r.call(this,t.replace(/[+-.]\s+/g,"-").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,n.start=null,n.current=null,n.command=null,n.commands=n.commands,n.i=-1,n.previousCommand=null,n.points=[],n.angles=[],n}return _u(e,[{key:"reset",value:function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new us(0,0),this.control=new us(0,0),this.current=new us(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){return this.i>=this.commands.length-1}},{key:"next",value:function(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}},{key:"getPoint",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",r=new us(this.command[t],this.command[n]);return this.makeAbsolute(r)}},{key:"getAsControlPoint",value:function(t,n){var r=this.getPoint(t,n);return this.control=r,r}},{key:"getAsCurrentPoint",value:function(t,n){var r=this.getPoint(t,n);return this.current=r,r}},{key:"getReflectedControlPoint",value:function(){var t=this.previousCommand.type;if(t!==Vo.CURVE_TO&&t!==Vo.SMOOTH_CURVE_TO&&t!==Vo.QUAD_TO&&t!==Vo.SMOOTH_QUAD_TO)return this.current;var n=this.current,r=this.control;return new us(2*n.x-r.x,2*n.y-r.y)}},{key:"makeAbsolute",value:function(t){if(this.command.relative){var n=this.current,r=n.y;t.x+=n.x,t.y+=r}return t}},{key:"addMarker",value:function(t,n,r){var e=this.points,i=this.angles;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=e[e.length-1].angleTo(r)),this.addMarkerAngle(t,n?n.angleTo(t):null)}},{key:"addMarkerAngle",value:function(t,n){this.points.push(t),this.angles.push(n)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var t=this.angles,n=t.length,r=0;r<n;r++)if(!t[r])for(var e=r+1;e<n;e++)if(t[e]){t[r]=t[e];break}return t}}]),e}();var Es=function(){Ia(e,Ps);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;return zu(this,e),(u=r.call(this,t,n,i)).type="path",u.pathParser=null,u.pathParser=new Rs(u.getAttribute("d").getString()),u}return _u(e,[{key:"path",value:function(t){var n=this.pathParser,r=new Ds;for(n.reset(),t&&t.beginPath();!n.isEnd();)switch(n.next().type){case Rs.MOVE_TO:this.pathM(t,r);break;case Rs.LINE_TO:this.pathL(t,r);break;case Rs.HORIZ_LINE_TO:this.pathH(t,r);break;case Rs.VERT_LINE_TO:this.pathV(t,r);break;case Rs.CURVE_TO:this.pathC(t,r);break;case Rs.SMOOTH_CURVE_TO:this.pathS(t,r);break;case Rs.QUAD_TO:this.pathQ(t,r);break;case Rs.SMOOTH_QUAD_TO:this.pathT(t,r);break;case Rs.ARC:this.pathA(t,r);break;case Rs.CLOSE_PATH:this.pathZ(t,r)}return r}},{key:"getBoundingBox",value:function(){return this.path()}},{key:"getMarkers",value:function(){var t=this.pathParser,n=t.getMarkerPoints(),r=t.getMarkerAngles();return Wt(n).call(n,(function(t,n){return[t,r[n]]}))}},{key:"renderChildren",value:function(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var n=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==n.getString("inherit")?Ao(t).call(t,n.getString()):Ao(t).call(t)),""!==t.strokeStyle&&t.stroke();var r=this.getMarkers();if(r){var e=r.length-1,i=this.getStyle("marker-start"),u=this.getStyle("marker-mid"),a=this.getStyle("marker-end");if(i.isUrlDefinition()){var o=i.getDefinition(),f=ze(r[0],2);o.render(t,f[0],f[1])}if(u.isUrlDefinition())for(var s=u.getDefinition(),c=1;c<e;c++){var h=ze(r[c],2);s.render(t,h[0],h[1])}if(a.isUrlDefinition()){var v=a.getDefinition(),l=ze(r[e],2);v.render(t,l[0],l[1])}}}},{key:"pathM",value:function(t,n){var r=this.pathParser,i=e.pathM(r).point,u=i.x,a=i.y;r.addMarker(i),n.addPoint(u,a),t&&t.moveTo(u,a)}},{key:"pathL",value:function(t,n){var r=this.pathParser,i=e.pathL(r),u=i.point,a=u.x,o=u.y;r.addMarker(u,i.current),n.addPoint(a,o),t&&t.lineTo(a,o)}},{key:"pathH",value:function(t,n){var r=this.pathParser,i=e.pathH(r),u=i.point,a=u.x,o=u.y;r.addMarker(u,i.current),n.addPoint(a,o),t&&t.lineTo(a,o)}},{key:"pathV",value:function(t,n){var r=this.pathParser,i=e.pathV(r),u=i.point,a=u.x,o=u.y;r.addMarker(u,i.current),n.addPoint(a,o),t&&t.lineTo(a,o)}},{key:"pathC",value:function(t,n){var r=this.pathParser,i=e.pathC(r),u=i.current,a=i.point,o=i.controlPoint,f=i.currentPoint;r.addMarker(f,o,a),n.addBezierCurve(u.x,u.y,a.x,a.y,o.x,o.y,f.x,f.y),t&&t.bezierCurveTo(a.x,a.y,o.x,o.y,f.x,f.y)}},{key:"pathS",value:function(t,n){var r=this.pathParser,i=e.pathS(r),u=i.current,a=i.point,o=i.controlPoint,f=i.currentPoint;r.addMarker(f,o,a),n.addBezierCurve(u.x,u.y,a.x,a.y,o.x,o.y,f.x,f.y),t&&t.bezierCurveTo(a.x,a.y,o.x,o.y,f.x,f.y)}},{key:"pathQ",value:function(t,n){var r=this.pathParser,i=e.pathQ(r),u=i.current,a=i.controlPoint,o=i.currentPoint;r.addMarker(o,a,a),n.addQuadraticCurve(u.x,u.y,a.x,a.y,o.x,o.y),t&&t.quadraticCurveTo(a.x,a.y,o.x,o.y)}},{key:"pathT",value:function(t,n){var r=this.pathParser,i=e.pathT(r),u=i.current,a=i.controlPoint,o=i.currentPoint;r.addMarker(o,a,a),n.addQuadraticCurve(u.x,u.y,a.x,a.y,o.x,o.y),t&&t.quadraticCurveTo(a.x,a.y,o.x,o.y)}},{key:"pathA",value:function(t,n){var r=this.pathParser,i=e.pathA(r),u=i.currentPoint,a=i.rX,o=i.rY,f=i.sweepFlag,s=i.xAxisRotation,c=i.centp,h=i.a1,v=i.ad,l=1-f?1:-1,y=h+l*(v/2),d=new us(c.x+a*Math.cos(y),c.y+o*Math.sin(y));if(r.addMarkerAngle(d,y-l*Math.PI/2),r.addMarkerAngle(u,y-l*Math.PI),n.addPoint(u.x,u.y),t&&!isNaN(h)&&!isNaN(v)){var p=a>o?a:o,g=a>o?1:a/o,m=a>o?o/a:1;t.translate(c.x,c.y),t.rotate(s),t.scale(g,m),t.arc(0,0,p,h,h+v,Boolean(1-f)),t.scale(1/g,1/m),t.rotate(-s),t.translate(-c.x,-c.y)}}},{key:"pathZ",value:function(t,n){e.pathZ(this.pathParser),t&&n.x1!==n.x2&&n.y1!==n.y2&&t.closePath()}}],[{key:"pathM",value:function(t){var n=t.getAsCurrentPoint();return t.start=t.current,{point:n}}},{key:"pathL",value:function(t){return{current:t.current,point:t.getAsCurrentPoint()}}},{key:"pathH",value:function(t){var n=t.current,r=t.command,e=new us((r.relative?n.x:0)+r.x,n.y);return t.current=e,{current:n,point:e}}},{key:"pathV",value:function(t){var n=t.current,r=t.command,e=new us(n.x,(r.relative?n.y:0)+r.y);return t.current=e,{current:n,point:e}}},{key:"pathC",value:function(t){return{current:t.current,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathS",value:function(t){return{current:t.current,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathQ",value:function(t){return{current:t.current,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathT",value:function(t){var n=t.current,r=t.getReflectedControlPoint();return t.control=r,{current:n,controlPoint:r,currentPoint:t.getAsCurrentPoint()}}},{key:"pathA",value:function(t){var n=t.current,r=t.command,e=r.rX,i=r.rY,u=r.lArcFlag,a=r.sweepFlag,o=r.xRot*(Math.PI/180),f=t.getAsCurrentPoint(),s=new us(Math.cos(o)*(n.x-f.x)/2+Math.sin(o)*(n.y-f.y)/2,-Math.sin(o)*(n.x-f.x)/2+Math.cos(o)*(n.y-f.y)/2),c=Math.pow(s.x,2)/Math.pow(e,2)+Math.pow(s.y,2)/Math.pow(i,2);c>1&&(e*=Math.sqrt(c),i*=Math.sqrt(c));var h=(u===a?-1:1)*Math.sqrt((Math.pow(e,2)*Math.pow(i,2)-Math.pow(e,2)*Math.pow(s.y,2)-Math.pow(i,2)*Math.pow(s.x,2))/(Math.pow(e,2)*Math.pow(s.y,2)+Math.pow(i,2)*Math.pow(s.x,2)));isNaN(h)&&(h=0);var v=new us(h*e*s.y/i,h*-i*s.x/e),l=new us((n.x+f.x)/2+Math.cos(o)*v.x-Math.sin(o)*v.y,(n.y+f.y)/2+Math.sin(o)*v.x+Math.cos(o)*v.y),y=Wf([1,0],[(s.x-v.x)/e,(s.y-v.y)/i]),d=[(s.x-v.x)/e,(s.y-v.y)/i],p=[(-s.x-v.x)/e,(-s.y-v.y)/i],g=Wf(d,p);return Xf(d,p)<=-1&&(g=Math.PI),Xf(d,p)>=1&&(g=0),{currentPoint:f,rX:e,rY:i,sweepFlag:a,xAxisRotation:o,centp:l,a1:y,ad:g}}},{key:"pathZ",value:function(t){t.current=t.start}}]),e}();var Cs=function(){Ia(e,Ps);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="svg",t.root=!1,t}return _u(e,[{key:"setContext",value:function(t){var n=this.document,r=n.screen,i=n.window,u=t.canvas;if(r.setDefaults(t),u.style&&void 0!==t.font&&i&&void 0!==i.getComputedStyle){t.font=i.getComputedStyle(u).getPropertyValue("font");var a=new es(n,"fontSize",Ns.parse(t.font).fontSize);a.hasValue()&&(n.rootEmSize=a.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var o=r.viewPort,f=o.width,s=o.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var c=this.getAttribute("refX"),h=this.getAttribute("refY"),v=this.getAttribute("viewBox"),l=v.hasValue()?Rf(v.getString()):null,y=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),d=0,p=0,g=0,m=0;l&&(d=l[0],p=l[1]),this.root||(f=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y"),"marker"===this.type&&(g=d,m=p,d=0,p=0)),r.viewPort.setCurrent(f,s),this.node&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),xo(Va(e.prototype),"setContext",this).call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),l&&(f=l[2],s=l[3]),n.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:f,height:r.viewPort.height,desiredHeight:s,minX:d,minY:p,refX:c.getValue(),refY:h.getValue(),clip:y,clipX:g,clipY:m}),l&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(f,s))}},{key:"clearContext",value:function(t){xo(Va(e.prototype),"clearContext",this).call(this,t),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.getAttribute("width",!0),u=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),o=this.getAttribute("style"),f=i.getNumber(0),s=u.getNumber(0);if(e)if("string"==typeof e)this.getAttribute("preserveAspectRatio",!0).setValue(e);else{var c=this.getAttribute("preserveAspectRatio");c.hasValue()&&c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(t),u.setValue(r),a.hasValue()||a.setValue(Vu(n="0 0 ".concat(f||t," ")).call(n,s||r)),o.hasValue()){var h=this.getStyle("width"),v=this.getStyle("height");h.hasValue()&&h.setValue("".concat(t,"px")),v.hasValue()&&v.setValue("".concat(r,"px"))}}}]),e}();var Is=function(){Ia(e,Es);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="rect",t}return _u(e,[{key:"path",value:function(t){var n=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),e=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),u=this.getAttribute("rx"),a=this.getAttribute("ry"),o=u.getPixels("x"),f=a.getPixels("y");if(u.hasValue()&&!a.hasValue()&&(f=o),a.hasValue()&&!u.hasValue()&&(o=f),o=Math.min(o,e/2),f=Math.min(f,i/2),t){var s=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&e>0&&(t.moveTo(n+o,r),t.lineTo(n+e-o,r),t.bezierCurveTo(n+e-o+s*o,r,n+e,r+f-s*f,n+e,r+f),t.lineTo(n+e,r+i-f),t.bezierCurveTo(n+e,r+i-f+s*f,n+e-o+s*o,r+i,n+e-o,r+i),t.lineTo(n+o,r+i),t.bezierCurveTo(n+o-s*o,r+i,n,r+i-f+s*f,n,r+i-f),t.lineTo(n,r+f),t.bezierCurveTo(n,r+f-s*f,n+o-s*o,r,n+o,r),t.closePath())}return new Ds(n,r,n+e,r+i)}},{key:"getMarkers",value:function(){return null}}]),e}();var Ls=function(){Ia(e,Es);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="circle",t}return _u(e,[{key:"path",value:function(t){var n=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),e=this.getAttribute("r").getPixels();return t&&e>0&&(t.beginPath(),t.arc(n,r,e,0,2*Math.PI,!1),t.closePath()),new Ds(n-e,r-e,n+e,r+e)}},{key:"getMarkers",value:function(){return null}}]),e}();var Bs=function(){Ia(e,Es);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="ellipse",t}return _u(e,[{key:"path",value:function(t){var n=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),e=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),u=this.getAttribute("cy").getPixels("y");return t&&r>0&&e>0&&(t.beginPath(),t.moveTo(i+r,u),t.bezierCurveTo(i+r,u+n*e,i+n*r,u+e,i,u+e),t.bezierCurveTo(i-n*r,u+e,i-r,u+n*e,i-r,u),t.bezierCurveTo(i-r,u-n*e,i-n*r,u-e,i,u-e),t.bezierCurveTo(i+n*r,u-e,i+r,u-n*e,i+r,u),t.closePath()),new Ds(i-r,u-e,i+r,u+e)}},{key:"getMarkers",value:function(){return null}}]),e}();var Fs=function(){Ia(e,Es);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="line",t}return _u(e,[{key:"getPoints",value:function(){return[new us(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new us(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var n=this.getPoints(),r=ze(n,2),e=r[0],i=e.x,u=e.y,a=r[1],o=a.x,f=a.y;return t&&(t.beginPath(),t.moveTo(i,u),t.lineTo(o,f)),new Ds(i,u,o,f)}},{key:"getMarkers",value:function(){var t=this.getPoints(),n=ze(t,2),r=n[0],e=n[1],i=r.angleTo(e);return[[r,i],[e,i]]}}]),e}();var $s=function(){Ia(e,Es);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;return zu(this,e),(u=r.call(this,t,n,i)).type="polyline",u.points=[],u.points=us.parsePath(u.getAttribute("points").getString()),u}return _u(e,[{key:"path",value:function(t){var n=this.points,r=ze(n,1)[0],e=r.x,i=r.y,u=new Ds(e,i);return t&&(t.beginPath(),t.moveTo(e,i)),Je(n).call(n,(function(n){var r=n.x,e=n.y;u.addPoint(r,e),t&&t.lineTo(r,e)})),u}},{key:"getMarkers",value:function(){var t=this.points,n=t.length-1,r=[];return Je(t).call(t,(function(e,i){i!==n&&r.push([e,e.angleTo(t[i+1])])})),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}]),e}();var zs=function(){Ia(e,$s);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="polygon",t}return _u(e,[{key:"path",value:function(t){var n=xo(Va(e.prototype),"path",this).call(this,t),r=ze(this.points,1)[0];return t&&(t.lineTo(r.x,r.y),t.closePath()),n}}]),e}();var _s=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="pattern",t}return _u(e,[{key:"createPattern",value:function(t,n,r){var e=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),u=new Cs(this.document,null);u.attributes.viewBox=new es(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.width=new es(this.document,"width","".concat(e,"px")),u.attributes.height=new es(this.document,"height","".concat(i,"px")),u.attributes.transform=new es(this.document,"transform",this.getAttribute("patternTransform").getValue()),u.children=this.children;var a=this.document.createCanvas(e,i),o=a.getContext("2d"),f=this.getAttribute("x"),s=this.getAttribute("y");f.hasValue()&&s.hasValue()&&o.translate(f.getPixels("x",!0),s.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Ho(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var h=-1;h<=1;h++)o.save(),u.attributes.x=new es(this.document,"x",c*a.width),u.attributes.y=new es(this.document,"y",h*a.height),u.render(o),o.restore();return t.createPattern(a,"repeat")}}]),e}();var Gs=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="marker",t}return _u(e,[{key:"render",value:function(t,n,r){if(n){var e=n.x,i=n.y,u=this.getAttribute("orient").getValue("auto"),a=this.getAttribute("markerUnits").getValue("strokeWidth");t.translate(e,i),"auto"===u&&t.rotate(r),"strokeWidth"===a&&t.scale(t.lineWidth,t.lineWidth),t.save();var o=new Cs(this.document,null);o.type=this.type,o.attributes.viewBox=new es(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new es(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new es(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new es(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new es(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new es(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new es(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new es(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(t),t.restore(),"strokeWidth"===a&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===u&&t.rotate(-r),t.translate(-e,-i)}}}]),e}();var qs=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="defs",t}return _u(e,[{key:"render",value:function(){}}]),e}();var Vs=function(){Ia(e,Ps);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="g",t}return _u(e,[{key:"getBoundingBox",value:function(t){var n,r=new Ds;return Je(n=this.children).call(n,(function(n){r.addBoundingBox(n.getBoundingBox(t))})),r}}]),e}();var Ys=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;zu(this,e),(u=r.call(this,t,n,i)).attributesToInherit=["gradientUnits"],u.stops=[];var a=$a(u),o=a.stops,f=a.children;return Je(f).call(f,(function(t){"stop"===t.type&&o.push(t)})),u}return _u(e,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(t,n,r){var e=this,i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var u=i.stops,a=this.getGradient(t,n);if(!a)return this.addParentOpacity(r,u[u.length-1].color);if(Je(u).call(u,(function(t){a.addColorStop(t.offset,e.addParentOpacity(r,t.color))})),this.getAttribute("gradientTransform").hasValue()){var o=this.document,f=o.screen,s=f.MAX_VIRTUAL_PIXELS,c=ze(f.viewPort.viewPorts,1)[0],h=new Is(o,null);h.attributes.x=new es(o,"x",-s/3),h.attributes.y=new es(o,"y",-s/3),h.attributes.width=new es(o,"width",s),h.attributes.height=new es(o,"height",s);var v=new Vs(o,null);v.attributes.transform=new es(o,"transform",this.getAttribute("gradientTransform").getValue()),v.children=[h];var l=new Cs(o,null);l.attributes.x=new es(o,"x",0),l.attributes.y=new es(o,"y",0),l.attributes.width=new es(o,"width",c.width),l.attributes.height=new es(o,"height",c.height),l.children=[v];var y=o.createCanvas(c.width,c.height),d=y.getContext("2d");return d.fillStyle=a,l.render(d),d.createPattern(y,"no-repeat")}return a}},{key:"inheritStopContainer",value:function(t){var n,r=this;Je(n=this.attributesToInherit).call(n,(function(n){!r.getAttribute(n).hasValue()&&t.getAttribute(n).hasValue()&&r.getAttribute(n,!0).setValue(t.getAttribute(n).getValue())}))}},{key:"addParentOpacity",value:function(t,n){return t.hasValue()?new es(this.document,"color",n).addOpacity(t).getColor():n}}]),e}();var Us=function(){Ia(e,Ys);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;return zu(this,e),(u=r.call(this,t,n,i)).type="linearGradient",u.attributesToInherit.push("x1","y1","x2","y2"),u}return _u(e,[{key:"getGradient",value:function(t,n){var r="objectBoundingBox"===this.getGradientUnits(),e=r?n.getBoundingBox(t):null;if(r&&!e)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?e.x+e.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),u=r?e.y+e.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),a=r?e.x+e.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=r?e.y+e.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===a&&u===o?null:t.createLinearGradient(i,u,a,o)}}]),e}();var Hs=function(){Ia(e,Ys);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;return zu(this,e),(u=r.call(this,t,n,i)).type="radialGradient",u.attributesToInherit.push("cx","cy","r","fx","fy","fr"),u}return _u(e,[{key:"getGradient",value:function(t,n){var r="objectBoundingBox"===this.getGradientUnits(),e=n.getBoundingBox(t);if(r&&!e)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?e.x+e.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),u=r?e.y+e.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=i,o=u;this.getAttribute("fx").hasValue()&&(a=r?e.x+e.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=r?e.y+e.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var f=r?(e.width+e.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),s=this.getAttribute("fr").getPixels();return t.createRadialGradient(a,o,s,i,u,f)}}]),e}();var Xs=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;zu(this,e),(u=r.call(this,t,n,i)).type="stop";var a=Math.max(0,Math.min(1,u.getAttribute("offset").getNumber())),o=u.getStyle("stop-opacity"),f=u.getStyle("stop-color",!0);return""===f.getString()&&f.setValue("#000"),o.hasValue()&&(f=f.addOpacity(o)),u.offset=a,u.color=f.getColor(),u}return e}();var Ws=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;return zu(this,e),(u=r.call(this,t,n,i)).type="animate",u.duration=0,u.initialValue=null,u.initialUnits="",u.removed=!1,u.frozen=!1,t.screen.animations.push($a(u)),u.begin=u.getAttribute("begin").getMilliseconds(),u.maxDuration=u.begin+u.getAttribute("dur").getMilliseconds(),u.from=u.getAttribute("from"),u.to=u.getAttribute("to"),u.values=u.getAttribute("values"),Zo(u).hasValue()&&Zo(u).setValue(Zo(u).getString().split(";")),u}return _u(e,[{key:"getProperty",value:function(){var t=this.getAttribute("attributeType").getString(),n=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(n,!0):this.parent.getAttribute(n,!0)}},{key:"calcValue",value:function(){var t,n=this.initialUnits,r=this.getProgress(),e=r.progress,i=r.from,u=r.to,a=i.getNumber()+(u.getNumber()-i.getNumber())*e;return"%"===n&&(a*=100),Vu(t="".concat(a)).call(t,n)}},{key:"update",value:function(t){var n=this.parent,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var e=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==e||this.frozen){if("remove"===e&&!this.removed)return this.removed=!0,r.setValue(n.animationFrozen?n.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,n.animationFrozen=!0,n.animationFrozenValue=r.getString();return!1}this.duration+=t;var i=!1;if(this.begin<this.duration){var u=this.calcValue(),a=this.getAttribute("type");if(a.hasValue()){var o,f=a.getString();u=Vu(o="".concat(f,"(")).call(o,u,")")}r.setValue(u),i=!0}return i}},{key:"getProgress",value:function(){var t=this.document,n=Zo(this),r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(n.hasValue()){var e=r.progress*(n.getValue().length-1),i=Math.floor(e),u=Math.ceil(e);r.from=new es(t,"from",It(n.getValue()[i])),r.to=new es(t,"to",It(n.getValue()[u])),r.progress=(e-i)/(u-i)}else r.from=this.from,r.to=this.to;return r}}]),e}();var Qs=function(){Ia(e,Ws);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="animateColor",t}return _u(e,[{key:"calcValue",value:function(){var t=this.getProgress(),n=t.progress,r=t.to,e=new Na(t.from.getColor()),i=new Na(r.getColor());if(e.ok&&i.ok){var u,a,o=e.g+(i.g-e.g)*n,f=e.b+(i.b-e.b)*n;return Vu(u=Vu(a="rgb(".concat(rf(e.r+(i.r-e.r)*n,10),", ")).call(a,rf(o,10),", ")).call(u,rf(f,10),")")}return this.getAttribute("from").getColor()}}]),e}();var Zs=function(){Ia(e,Ws);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="animateTransform",t}return _u(e,[{key:"calcValue",value:function(){var t=this.getProgress(),n=t.progress,r=t.to,e=Rf(t.from.getString()),i=Rf(r.getString());return Wt(e).call(e,(function(t,r){return t+(i[r]-t)*n})).join(" ")}}]),e}();function Js(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}var Ks=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;zu(this,e),(u=r.call(this,t,n,i)).type="font",u.glyphs={},u.horizAdvX=u.getAttribute("horiz-adv-x").getNumber();var a,o=t.definitions,f=function(t,n){var r;if(void 0===af||null==uf(t)){if(ef(t)||(r=function(t,n){var r;if(t){if("string"==typeof t)return Js(t,n);var e=of(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?uo(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Js(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,a=!0,o=!1;return{s:function(){r=ye(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){o=!0,u=t},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw u}}}}($a(u).children);try{for(f.s();!(a=f.n()).done;){var s=a.value;switch(s.type){case"font-face":u.fontFace=s;var c=s.getStyle("font-family");c.hasValue()&&(o[c.getString()]=$a(u));break;case"missing-glyph":u.missingGlyph=s;break;case"glyph":var h=s;h.arabicForm?(u.isRTL=!0,u.isArabic=!0,void 0===u.glyphs[h.unicode]&&(u.glyphs[h.unicode]={}),u.glyphs[h.unicode][h.arabicForm]=h):u.glyphs[h.unicode]=h}}}catch(t){f.e(t)}finally{f.f()}return u}return _u(e,[{key:"render",value:function(){}}]),e}();var tc=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;return zu(this,e),(u=r.call(this,t,n,i)).type="font-face",u.ascent=u.getAttribute("ascent").getNumber(),u.descent=u.getAttribute("descent").getNumber(),u.unitsPerEm=u.getAttribute("units-per-em").getNumber(),u}return e}();var nc=function(){Ia(e,Es);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="missing-glyph",t.horizAdvX=0,t}return e}();var rc=function(){Ia(e,Es);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;return zu(this,e),(u=r.call(this,t,n,i)).type="glyph",u.horizAdvX=u.getAttribute("horiz-adv-x").getNumber(),u.unicode=u.getAttribute("unicode").getString(),u.arabicForm=u.getAttribute("arabic-form").getString(),u}return e}();var ec=function(){Ia(e,js);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="tref",t}return _u(e,[{key:"getText",value:function(){var t=this.getHrefAttribute().getDefinition();if(t){var n=t.children[0];if(n)return n.getText()}return""}}]),e}();var ic=function(){Ia(e,js);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u,a;zu(this,e),(a=r.call(this,t,n,i)).type="a";var o=n.childNodes,f=o[0],s=o.length>0&&ra(u=uo(o)).call(u,(function(t){return 3===t.nodeType}));return a.hasText=s,a.text=s?a.getTextFromNode(f):"",a}return _u(e,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){if(this.hasText){xo(Va(e.prototype),"renderChildren",this).call(this,t);var n=this.document,r=this.x,i=this.y,u=n.screen.mouse,a=new es(n,"fontSize",Ns.parse(n.ctx.font).fontSize);u.isWorking()&&u.checkBoundingBox(this,new Ds(r,i-a.getPixels("y"),r+this.measureText(t),i))}else if(this.children.length>0){var o=new Vs(this.document,null);o.children=this.children,o.parent=this,o.render(t)}}},{key:"onClick",value:function(){var t=this.document.window;t&&t.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){this.document.ctx.canvas.style.cursor="pointer"}}]),e}();function uc(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}function ac(t,n){var r=ci(t);if(fi){var e=fi(t);n&&(e=oi(e).call(e,(function(n){return ri(t,n).enumerable}))),r.push.apply(r,e)}return r}function oc(t){for(var n=1;n<arguments.length;n++){var r,e=null!=arguments[n]?arguments[n]:{};if(n%2)Je(r=ac(Object(e),!0)).call(r,(function(n){$u(t,n,e[n])}));else if(Ye)qe(t,Ye(e));else{var i;Je(i=ac(Object(e))).call(i,(function(n){Ge(t,n,ri(e,n))}))}}return t}var fc=function(){Ia(e,js);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;zu(this,e),(u=r.call(this,t,n,i)).type="textPath",u.textWidth=0,u.textHeight=0,u.pathLength=-1,u.glyphInfo=null,u.letterSpacingCache=[],u.measuresCache=new mf([["",0]]);var a=u.getHrefAttribute().getDefinition();return u.text=u.getTextFromNode(),u.dataArray=u.parsePathData(a),u}return _u(e,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(t){var n=this.dataArray;t&&t.beginPath(),Je(n).call(n,(function(n){var r=n.points;switch(n.type){case Rs.LINE_TO:t&&t.lineTo(r[0],r[1]);break;case Rs.MOVE_TO:t&&t.moveTo(r[0],r[1]);break;case Rs.CURVE_TO:t&&t.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case Rs.QUAD_TO:t&&t.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case Rs.ARC:var e=ze(r,8),i=e[0],u=e[1],a=e[2],o=e[3],f=e[4],s=e[5],c=e[6],h=e[7],v=a>o?a:o,l=a>o?1:a/o,y=a>o?o/a:1;t&&(t.translate(i,u),t.rotate(c),t.scale(l,y),t.arc(0,0,v,f,f+s,Boolean(1-h)),t.scale(1/l,1/y),t.rotate(-c),t.translate(-i,-u));break;case Rs.CLOSE_PATH:t&&t.closePath()}}))}},{key:"renderChildren",value:function(t){this.setTextData(t),t.save();var n=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),e=this.glyphInfo,i=t.fillStyle;"underline"===n&&t.beginPath(),Je(e).call(e,(function(e,i){var u=e.p0,a=e.p1,o=e.rotation,f=e.text;t.save(),t.translate(u.x,u.y),t.rotate(o),t.fillStyle&&t.fillText(f,0,0),t.strokeStyle&&t.strokeText(f,0,0),t.restore(),"underline"===n&&(0===i&&t.moveTo(u.x,u.y+r/8),t.lineTo(a.x,a.y+r/5))})),"underline"===n&&(t.lineWidth=r/20,t.strokeStyle=i,t.stroke(),t.closePath()),t.restore()}},{key:"getLetterSpacingAt",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}},{key:"findSegmentToFitChar",value:function(t,n,r,e,i,u,a,o,f){var s=u,c=this.measureText(t,o);" "===o&&"justify"===n&&r<e&&(c+=(e-r)/i),f>-1&&(s+=this.getLetterSpacingAt(f));var h=this.textHeight/20,v=this.getEquidistantPointOnPath(s,h,0),l=this.getEquidistantPointOnPath(s+c,h,0),y={p0:v,p1:l},d=v&&l?Math.atan2(l.y-v.y,l.x-v.x):0;if(a){var p=Math.cos(Math.PI/2+d)*a,g=Math.cos(-d)*a;y.p0=oc(oc({},v),{},{x:v.x+p,y:v.y+g}),y.p1=oc(oc({},l),{},{x:l.x+p,y:l.y+g})}return{offset:s+=c,segment:y,rotation:d}}},{key:"measureText",value:function(t,n){var r=this.measuresCache,e=n||this.getText();if(r.has(e))return r.get(e);var i=this.measureTargetText(t,e);return r.set(e,i),i}},{key:"setTextData",value:function(t){var n,r=this;if(!this.glyphInfo){var e=this.getText(),i=e.split(""),u=e.split(" ").length-1,a=Wt(n=this.parent.getAttribute("dx").split()).call(n,(function(t){return t.getPixels("x")})),o=this.parent.getAttribute("dy").getPixels("y"),f=this.parent.getStyle("text-anchor").getString("start"),s=this.getStyle("letter-spacing"),c=this.parent.getStyle("letter-spacing"),h=0;s.hasValue()&&"inherit"!==s.getValue()?s.hasValue()&&"initial"!==s.getValue()&&"unset"!==s.getValue()&&(h=s.getPixels()):h=c.getPixels();var v=[],l=e.length;this.letterSpacingCache=v;for(var y=0;y<l;y++)v.push(void 0!==a[y]?a[y]:h);var d=Qu(v).call(v,(function(t,n,r){return 0===r?0:t+n||0}),0),p=this.measureText(t),g=Math.max(p+d,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var m=this.getPathLength(),w=this.getStyle("startOffset").getNumber(0)*m,k=0;"middle"!==f&&"center"!==f||(k=-g/2),"end"!==f&&"right"!==f||(k=-g),k+=w,Je(i).call(i,(function(n,e){var a=r.findSegmentToFitChar(t,f,g,m,u,k,o,n,e),s=a.segment;k=a.offset,s.p0&&s.p1&&r.glyphInfo.push({text:i[e],p0:s.p0,p1:s.p1,rotation:a.rotation})}))}}},{key:"parsePathData",value:function(t){if(this.pathLength=-1,!t)return[];var n=[],r=t.pathParser;for(r.reset();!r.isEnd();){var e=r.current,i=e?e.x:0,u=e?e.y:0,a=r.next(),o=a.type,f=[];switch(a.type){case Rs.MOVE_TO:this.pathM(r,f);break;case Rs.LINE_TO:o=this.pathL(r,f);break;case Rs.HORIZ_LINE_TO:o=this.pathH(r,f);break;case Rs.VERT_LINE_TO:o=this.pathV(r,f);break;case Rs.CURVE_TO:this.pathC(r,f);break;case Rs.SMOOTH_CURVE_TO:o=this.pathS(r,f);break;case Rs.QUAD_TO:this.pathQ(r,f);break;case Rs.SMOOTH_QUAD_TO:o=this.pathT(r,f);break;case Rs.ARC:f=this.pathA(r);break;case Rs.CLOSE_PATH:Es.pathZ(r)}n.push(a.type!==Rs.CLOSE_PATH?{type:o,points:f,start:{x:i,y:u},pathLength:this.calcLength(i,u,o,f)}:{type:Rs.CLOSE_PATH,points:[],pathLength:0})}return n}},{key:"pathM",value:function(t,n){var r=Es.pathM(t).point;n.push(r.x,r.y)}},{key:"pathL",value:function(t,n){var r=Es.pathL(t).point;return n.push(r.x,r.y),Rs.LINE_TO}},{key:"pathH",value:function(t,n){var r=Es.pathH(t).point;return n.push(r.x,r.y),Rs.LINE_TO}},{key:"pathV",value:function(t,n){var r=Es.pathV(t).point;return n.push(r.x,r.y),Rs.LINE_TO}},{key:"pathC",value:function(t,n){var r=Es.pathC(t),e=r.point,i=r.controlPoint,u=r.currentPoint;n.push(e.x,e.y,i.x,i.y,u.x,u.y)}},{key:"pathS",value:function(t,n){var r=Es.pathS(t),e=r.point,i=r.controlPoint,u=r.currentPoint;return n.push(e.x,e.y,i.x,i.y,u.x,u.y),Rs.CURVE_TO}},{key:"pathQ",value:function(t,n){var r=Es.pathQ(t),e=r.controlPoint,i=r.currentPoint;n.push(e.x,e.y,i.x,i.y)}},{key:"pathT",value:function(t,n){var r=Es.pathT(t),e=r.controlPoint,i=r.currentPoint;return n.push(e.x,e.y,i.x,i.y),Rs.QUAD_TO}},{key:"pathA",value:function(t){var n=Es.pathA(t),r=n.sweepFlag,e=n.centp,i=n.ad;return 0===r&&i>0&&(i-=2*Math.PI),1===r&&i<0&&(i+=2*Math.PI),[e.x,e.y,n.rX,n.rY,n.a1,i,n.xAxisRotation,r]}},{key:"calcLength",value:function(t,n,r,e){var i=0,u=null,a=null,o=0;switch(r){case Rs.LINE_TO:return this.getLineLength(t,n,e[0],e[1]);case Rs.CURVE_TO:for(i=0,u=this.getPointOnCubicBezier(0,t,n,e[0],e[1],e[2],e[3],e[4],e[5]),o=.01;o<=1;o+=.01)a=this.getPointOnCubicBezier(o,t,n,e[0],e[1],e[2],e[3],e[4],e[5]),i+=this.getLineLength(u.x,u.y,a.x,a.y),u=a;return i;case Rs.QUAD_TO:for(i=0,u=this.getPointOnQuadraticBezier(0,t,n,e[0],e[1],e[2],e[3]),o=.01;o<=1;o+=.01)a=this.getPointOnQuadraticBezier(o,t,n,e[0],e[1],e[2],e[3]),i+=this.getLineLength(u.x,u.y,a.x,a.y),u=a;return i;case Rs.ARC:i=0;var f=e[4],s=e[5],c=e[4]+s,h=Math.PI/180;if(Math.abs(f-c)<h&&(h=Math.abs(f-c)),u=this.getPointOnEllipticalArc(e[0],e[1],e[2],e[3],f,0),s<0)for(o=f-h;o>c;o-=h)a=this.getPointOnEllipticalArc(e[0],e[1],e[2],e[3],o,0),i+=this.getLineLength(u.x,u.y,a.x,a.y),u=a;else for(o=f+h;o<c;o+=h)a=this.getPointOnEllipticalArc(e[0],e[1],e[2],e[3],o,0),i+=this.getLineLength(u.x,u.y,a.x,a.y),u=a;return a=this.getPointOnEllipticalArc(e[0],e[1],e[2],e[3],c,0),i+this.getLineLength(u.x,u.y,a.x,a.y)}return 0}},{key:"getPointOnLine",value:function(t,n,r,e,i){var u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:n,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,o=(i-r)/(e-n+1e-8),f=Math.sqrt(t*t/(1+o*o));e<n&&(f*=-1);var s=o*f,c=null;if(e===n)c={x:u,y:a+s};else if((a-r)/(u-n+1e-8)===o)c={x:u+f,y:a+s};else{var h=0,v=0,l=this.getLineLength(n,r,e,i);if(l<1e-8)return null;var y=(u-n)*(e-n)+(a-r)*(i-r),d=this.getLineLength(u,a,h=n+(y/=l*l)*(e-n),v=r+y*(i-r)),p=Math.sqrt(t*t-d*d);f=Math.sqrt(p*p/(1+o*o)),e<n&&(f*=-1),c={x:h+f,y:v+(s=o*f)}}return c}},{key:"getPointOnPath",value:function(t){var n=this.getPathLength(),r=0,e=null;if(t<-5e-5||t-5e-5>n)return null;var i,u=function(t,n){var r;if(void 0===af||null==uf(t)){if(ef(t)||(r=function(t,n){var r;if(t){if("string"==typeof t)return uc(t,n);var e=of(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?uo(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?uc(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,a=!0,o=!1;return{s:function(){r=ye(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){o=!0,u=t},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw u}}}}(this.dataArray);try{for(u.s();!(i=u.n()).done;){var a=i.value;if(!a||!(a.pathLength<5e-5||r+a.pathLength+5e-5<t)){var o=t-r,f=0;switch(a.type){case Rs.LINE_TO:e=this.getPointOnLine(o,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case Rs.ARC:var s=a.points[5],c=a.points[4]+s;if(f=a.points[4]+o/a.pathLength*s,s<0&&f<c||s>=0&&f>c)break;e=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],f,a.points[6]);break;case Rs.CURVE_TO:(f=o/a.pathLength)>1&&(f=1),e=this.getPointOnCubicBezier(f,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case Rs.QUAD_TO:(f=o/a.pathLength)>1&&(f=1),e=this.getPointOnQuadraticBezier(f,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3])}if(e)return e;break}r+=a.pathLength}}catch(t){u.e(t)}finally{u.f()}return null}},{key:"getLineLength",value:function(t,n,r,e){return Math.sqrt((r-t)*(r-t)+(e-n)*(e-n))}},{key:"getPathLength",value:function(){var t;return-1===this.pathLength&&(this.pathLength=Qu(t=this.dataArray).call(t,(function(t,n){return n.pathLength>0?t+n.pathLength:t}),0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(t,n,r,e,i,u,a,o,f){return{x:o*Qf(t)+u*Zf(t)+e*Jf(t)+n*Kf(t),y:f*Qf(t)+a*Zf(t)+i*Jf(t)+r*Kf(t)}}},{key:"getPointOnQuadraticBezier",value:function(t,n,r,e,i,u,a){return{x:u*ts(t)+e*ns(t)+n*rs(t),y:a*ts(t)+i*ns(t)+r*rs(t)}}},{key:"getPointOnEllipticalArc",value:function(t,n,r,e,i,u){var a=Math.cos(u),o=Math.sin(u),f=r*Math.cos(i),s=e*Math.sin(i);return{x:t+(f*a-s*o),y:n+(f*o+s*a)}}},{key:"buildEquidistantCache",value:function(t,n){var r=this.getPathLength(),e=n||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==e){this.equidistantCache={step:i,precision:e,points:[]};for(var u=0,a=0;a<=r;a+=e){var o=this.getPointOnPath(a),f=this.getPointOnPath(a+e);o&&f&&(u+=this.getLineLength(o.x,o.y,f.x,f.y))>=i&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:a}),u-=i)}}}},{key:"getEquidistantPointOnPath",value:function(t,n,r){if(this.buildEquidistantCache(n,r),t<0||t-this.getPathLength()>5e-5)return null;var e=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[e]||null}}]),e}();var sc=function(){Ia(u,Ps);var t,n,r,e,i=(r=u,e=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=Va(r);if(e){var i=Va(this).constructor;t=Ta(n,arguments,i)}else t=n.apply(this,arguments);return za(this,t)});function u(t,n,r){var e;zu(this,u),(e=i.call(this,t,n,r)).type="image",e.loaded=!1;var a=e.getHrefAttribute().getString();if(!a)return za(e);var o=/\.svg$/.test(a);return t.images.push($a(e)),o?e.loadSvg(a):e.loadImage(a),e.isSvg=o,e}return _u(u,[{key:"loadImage",value:(n=Bu(hi.mark((function t(n){return hi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.createImage(n);case 3:this.image=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error('Error while loading image "'.concat(n,'":'),t.t0);case 10:this.loaded=!0;case 11:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(t){return n.apply(this,arguments)})},{key:"loadSvg",value:(t=Bu(hi.mark((function t(n){var r;return hi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.fetch(n);case 3:return r=t.sent,t.next=6,r.text();case 6:this.image=t.sent,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),console.error('Error while loading image "'.concat(n,'":'),t.t0);case 13:this.loaded=!0;case 14:case"end":return t.stop()}}),t,this,[[0,10]])}))),function(n){return t.apply(this,arguments)})},{key:"renderChildren",value:function(t){var n=this.document,r=this.image,e=this.loaded,i=this.getAttribute("x").getPixels("x"),u=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(e&&r&&a&&o){if(t.save(),this.isSvg)n.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:i,offsetY:u,scaleWidth:a,scaleHeight:o}).render();else{var f=this.image;t.translate(i,u),n.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:f.width,height:o,desiredHeight:f.height}),this.loaded&&(void 0===f.complete||f.complete)&&t.drawImage(f,0,0)}t.restore()}}},{key:"getBoundingBox",value:function(){var t=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),e=this.getStyle("height").getPixels("y");return new Ds(t,n,t+r,n+e)}}]),u}();var cc=function(){Ia(e,Ps);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="symbol",t}return _u(e,[{key:"render",value:function(){}}]),e}(),hc=function(){function t(n){zu(this,t),this.document=n,this.loaded=!1,n.fonts.push(this)}var n;return _u(t,[{key:"load",value:(n=Bu(hi.mark((function t(n,r){var e,i,u;return hi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i=this.document,t.next=4,i.canvg.parser.load(r);case 4:u=t.sent.getElementsByTagName("font"),Je(e=uo(u)).call(e,(function(t){var r=i.createElement(t);i.definitions[n]=r})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.error('Error while loading font "'.concat(r,'":'),t.t0);case 12:this.loaded=!0;case 13:case"end":return t.stop()}}),t,this,[[0,9]])}))),function(t,r){return n.apply(this,arguments)})}]),t}();var vc=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u,a;zu(this,e),(a=r.call(this,t,n,i)).type="style";var o=jf(Wt(u=uo(n.childNodes)).call(u,(function(t){return t.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return Je(o).call(o,(function(n){var r=Aa(n).call(n);if(r){var e=r.split("{"),i=e[0].split(","),u=e[1].split(";");Je(i).call(i,(function(n){var r=Aa(n).call(n);if(r){var e=t.styles[r]||{};if(Je(u).call(u,(function(n){var r,i,u=mo(n).call(n,":"),a=Aa(r=n.substr(0,u)).call(r),o=Aa(i=n.substr(u+1,n.length-u)).call(i);a&&o&&(e[a]=new es(t,a,o))})),t.styles[r]=e,t.stylesSpecificity[r]=Yf(r),"@font-face"===r){var i=e["font-family"].getString().replace(/"|'/g,""),a=e.src.getString().split(",");Je(a).call(a,(function(n){if(mo(n).call(n,'format("svg")')>0){var r=If(n);r&&new hc(t).load(i,r)}}))}}}))}})),a}return e}();vc.parseExternalUrl=If;var lc=function(){Ia(e,Ps);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="use",t}return _u(e,[{key:"setContext",value:function(t){xo(Va(e.prototype),"setContext",this).call(this,t);var n=this.getAttribute("x"),r=this.getAttribute("y");n.hasValue()&&t.translate(n.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}},{key:"path",value:function(t){var n=this.element;n&&n.path(t)}},{key:"renderChildren",value:function(t){var n=this.document,r=this.element;if(r){var e=r;if("symbol"===r.type&&((e=new Cs(n,null)).attributes.viewBox=new es(n,"viewBox",r.getAttribute("viewBox").getString()),e.attributes.preserveAspectRatio=new es(n,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),e.attributes.overflow=new es(n,"overflow",r.getAttribute("overflow").getString()),e.children=r.children,r.styles.opacity=new es(n,"opacity",this.calculateOpacity())),"svg"===e.type){var i=this.getStyle("width",!1,!0),u=this.getStyle("height",!1,!0);i.hasValue()&&(e.attributes.width=new es(n,"width",i.getString())),u.hasValue()&&(e.attributes.height=new es(n,"height",u.getString()))}var a=e.parent;e.parent=this,e.render(t),e.parent=a}}},{key:"getBoundingBox",value:function(t){var n=this.element;return n?n.getBoundingBox(t):null}},{key:"elementTransform",value:function(){return ks.fromElement(this.document,this.element)}},{key:"element",get:function(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),e}();function yc(t,n,r,e,i,u){return t[r*e*4+4*n+u]}function dc(t,n,r,e,i,u,a){t[r*e*4+4*n+u]=a}function pc(t,n,r){return t[n]*r}function gc(t,n,r,e){return n+Math.cos(t)*r+Math.sin(t)*e}var mc=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;zu(this,e),(u=r.call(this,t,n,i)).type="feColorMatrix";var a=Rf(u.getAttribute("values").getString());switch(u.getAttribute("type").getString("matrix")){case"saturate":var o=a[0];a=[.213+.787*o,.715-.715*o,.072-.072*o,0,0,.213-.213*o,.715+.285*o,.072-.072*o,0,0,.213-.213*o,.715-.715*o,.072+.928*o,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var f=a[0]*Math.PI/180;a=[gc(f,.213,.787,-.213),gc(f,.715,-.715,-.715),gc(f,.072,-.072,.928),0,0,gc(f,.213,-.213,.143),gc(f,.715,.285,.14),gc(f,.072,-.072,-.283),0,0,gc(f,.213,-.213,-.787),gc(f,.715,-.715,.715),gc(f,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return u.matrix=a,u.includeOpacity=u.getAttribute("includeOpacity").hasValue(),u}return _u(e,[{key:"apply",value:function(t,n,r,e,i){for(var u=this.includeOpacity,a=this.matrix,o=t.getImageData(0,0,e,i),f=0;f<i;f++)for(var s=0;s<e;s++){var c=yc(o.data,s,f,e,0,0),h=yc(o.data,s,f,e,0,1),v=yc(o.data,s,f,e,0,2),l=yc(o.data,s,f,e,0,3),y=pc(a,0,c)+pc(a,1,h)+pc(a,2,v)+pc(a,3,l)+pc(a,4,1),d=pc(a,5,c)+pc(a,6,h)+pc(a,7,v)+pc(a,8,l)+pc(a,9,1),p=pc(a,10,c)+pc(a,11,h)+pc(a,12,v)+pc(a,13,l)+pc(a,14,1),g=pc(a,15,c)+pc(a,16,h)+pc(a,17,v)+pc(a,18,l)+pc(a,19,1);u&&(y=d=p=0,g*=l/255),dc(o.data,s,f,e,0,0,y),dc(o.data,s,f,e,0,1,d),dc(o.data,s,f,e,0,2,p),dc(o.data,s,f,e,0,3,g)}t.clearRect(0,0,e,i),t.putImageData(o,0,0)}}]),e}();var wc=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="mask",t}return _u(e,[{key:"apply",value:function(t,n){var r=this.document,i=this.getAttribute("x").getPixels("x"),u=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(!a&&!o){var f,s=new Ds;Je(f=this.children).call(f,(function(n){s.addBoundingBox(n.getBoundingBox(t))})),i=Math.floor(s.x1),u=Math.floor(s.y1),a=Math.floor(s.width),o=Math.floor(s.height)}var c=this.removeStyles(n,e.ignoreStyles),h=r.createCanvas(i+a,u+o),v=h.getContext("2d");r.screen.setDefaults(v),this.renderChildren(v),new mc(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(v,0,0,i+a,u+o);var l=r.createCanvas(i+a,u+o),y=l.getContext("2d");r.screen.setDefaults(y),n.render(y),y.globalCompositeOperation="destination-in",y.fillStyle=v.createPattern(h,"no-repeat"),y.fillRect(0,0,i+a,u+o),t.fillStyle=y.createPattern(l,"no-repeat"),t.fillRect(0,0,i+a,u+o),this.restoreStyles(n,c)}},{key:"render",value:function(){}}]),e}();wc.ignoreStyles=["mask","transform","clip-path"];var kc=function(){},bc=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="clipPath",t}return _u(e,[{key:"apply",value:function(t){var n,r=this.document,e=Mf(t),i=t.beginPath,u=t.closePath;e&&(e.beginPath=kc,e.closePath=kc),xf(i,t,[]),Je(n=this.children).call(n,(function(n){if(void 0!==n.path){var i=void 0!==n.elementTransform?n.elementTransform():null;i||(i=ks.fromElement(r,n)),i&&i.apply(t),n.path(t),e&&(e.closePath=u),i&&i.unapply(t)}})),xf(u,t,[]),t.clip(),e&&(e.beginPath=i,e.closePath=u)}},{key:"render",value:function(){}}]),e}();var xc=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="filter",t}return _u(e,[{key:"apply",value:function(t,n){var r=this.document,i=this.children,u=n.getBoundingBox(t);if(u){var a=0,o=0;Je(i).call(i,(function(t){var n=t.extraFilterDistance||0;a=Math.max(a,n),o=Math.max(o,n)}));var f=Math.floor(u.width),s=Math.floor(u.height),c=f+2*a,h=s+2*o;if(!(c<1||h<1)){var v=Math.floor(u.x),l=Math.floor(u.y),y=this.removeStyles(n,e.ignoreStyles),d=r.createCanvas(c,h),p=d.getContext("2d");r.screen.setDefaults(p),p.translate(-v+a,-l+o),n.render(p),Je(i).call(i,(function(t){"function"==typeof t.apply&&t.apply(p,0,0,c,h)})),t.drawImage(d,0,0,c,h,v-a,l-o,c,h),this.restoreStyles(n,y)}}}},{key:"render",value:function(){}}]),e}();xc.ignoreStyles=["filter","transform","clip-path"];var Mc=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;return zu(this,e),(u=r.call(this,t,n,i)).type="feDropShadow",u.addStylesFromStyleDefinition(),u}return _u(e,[{key:"apply",value:function(){}}]),e}();var Sc=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="feMorphology",t}return _u(e,[{key:"apply",value:function(){}}]),e}();var Ac=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="feComposite",t}return _u(e,[{key:"apply",value:function(){}}]),e}();var Nc=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(t,n,i){var u;return zu(this,e),(u=r.call(this,t,n,i)).type="feGaussianBlur",u.blurRadius=Math.floor(u.getAttribute("stdDeviation").getNumber()),u.extraFilterDistance=u.blurRadius,u}return _u(e,[{key:"apply",value:function(t,n,r,e,i){var u=this.document,a=this.blurRadius,o=u.window?u.window.document.body:null,f=t.canvas;f.id=u.getUniqueId(),o&&(f.style.display="none",o.appendChild(f)),Df(f,n,r,e,i,a),o&&o.removeChild(f)}}]),e}();var Dc=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="title",t}return e}();var Pc=function(){Ia(e,bs);var t,n,r=(t=e,n=function(){if("undefined"==typeof Reflect||!Ta)return!1;if(Ta.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Ta(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var r,e=Va(t);if(n){var i=Va(this).constructor;r=Ta(e,arguments,i)}else r=e.apply(this,arguments);return za(this,r)});function e(){var t;return zu(this,e),(t=r.apply(this,arguments)).type="desc",t}return e}(),jc={svg:Cs,rect:Is,circle:Ls,ellipse:Bs,line:Fs,polyline:$s,polygon:zs,path:Es,pattern:_s,marker:Gs,defs:qs,linearGradient:Us,radialGradient:Hs,stop:Xs,animate:Ws,animateColor:Qs,animateTransform:Zs,font:Ks,"font-face":tc,"missing-glyph":nc,glyph:rc,text:js,tspan:Os,tref:ec,a:ic,textPath:fc,image:sc,g:Vs,symbol:cc,style:vc,use:lc,mask:wc,clipPath:bc,filter:xc,feDropShadow:Mc,feMorphology:Sc,feComposite:Ac,feColorMatrix:mc,feGaussianBlur:Nc,title:Dc,desc:Pc};function Oc(t,n){var r=ci(t);if(fi){var e=fi(t);n&&(e=oi(e).call(e,(function(n){return ri(t,n).enumerable}))),r.push.apply(r,e)}return r}function Tc(){return(Tc=Bu(hi.mark((function t(n){var r,e,i=arguments;return hi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>1&&void 0!==i[1]&&i[1],e=document.createElement("img"),r&&(e.crossOrigin="Anonymous"),t.abrupt("return",new ea((function(t,r){e.onload=function(){t(e)},e.onerror=function(){r()},e.src=n})));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Rc=function(){function t(n){var r,e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=i.rootEmSize,a=void 0===u?12:u,o=i.emSize,f=void 0===o?12:o,s=i.createCanvas,c=void 0===s?t.createCanvas:s,h=i.createImage,v=void 0===h?t.createImage:h,l=i.anonymousCrossOrigin;zu(this,t),this.canvg=n,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=n.screen,this.rootEmSize=a,this.emSize=f,this.createCanvas=c,this.createImage=this.bindCreateImage(v,l),this.screen.wait(ca(r=this.isImagesLoaded).call(r,this)),this.screen.wait(ca(e=this.isFontsLoaded).call(e,this))}return _u(t,[{key:"bindCreateImage",value:function(t,n){return"boolean"==typeof n?function(r,e){return t(r,"boolean"==typeof e?e:n)}:t}},{key:"popEmSize",value:function(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){var t;return ra(t=this.images).call(t,(function(t){return t.loaded}))}},{key:"isFontsLoaded",value:function(){var t;return ra(t=this.fonts).call(t,(function(t){return t.loaded}))}},{key:"createDocumentElement",value:function(t){var n=this.createElement(t.documentElement);return n.root=!0,n.addStylesFromStyleDefinition(),this.documentElement=n,n}},{key:"createElement",value:function(n){var r=n.nodeName.replace(/^[^:]+:/,""),e=t.elementTypes[r];return void 0!==e?new e(this,n):new xs(this,n)}},{key:"createTextNode",value:function(t){return new Ts(this,t)}},{key:"setViewBox",value:function(t){this.screen.setViewBox(function(t){for(var n=1;n<arguments.length;n++){var r,e=null!=arguments[n]?arguments[n]:{};if(n%2)Je(r=Oc(Object(e),!0)).call(r,(function(n){$u(t,n,e[n])}));else if(Ye)qe(t,Ye(e));else{var i;Je(i=Oc(Object(e))).call(i,(function(n){Ge(t,n,ri(e,n))}))}}return t}({document:this},t))}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var t=this.emSizeStack;return t[t.length-1]},set:function(t){this.emSizeStack.push(t)}}]),t}();function Ec(t,n){var r=ci(t);if(fi){var e=fi(t);n&&(e=oi(e).call(e,(function(n){return ri(t,n).enumerable}))),r.push.apply(r,e)}return r}function Cc(t){for(var n=1;n<arguments.length;n++){var r,e=null!=arguments[n]?arguments[n]:{};if(n%2)Je(r=Ec(Object(e),!0)).call(r,(function(n){$u(t,n,e[n])}));else if(Ye)qe(t,Ye(e));else{var i;Je(i=Ec(Object(e))).call(i,(function(n){Ge(t,n,ri(e,n))}))}}return t}Rc.createCanvas=function(t,n){var r=document.createElement("canvas");return r.width=t,r.height=n,r},Rc.createImage=function(t){return Tc.apply(this,arguments)},Rc.elementTypes=jc;var Ic=function(){function t(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};zu(this,t),this.parser=new vs(e),this.screen=new ss(n,e),this.options=e;var i=new Rc(this,e),u=i.createDocumentElement(r);this.document=i,this.documentElement=u}var n,r;return _u(t,[{key:"fork",value:function(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.from(n,r,Cc(Cc({},this.options),e))}},{key:"forkString",value:function(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.fromString(n,r,Cc(Cc({},this.options),e))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:(r=Bu(hi.mark((function t(){var n=arguments;return hi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.start(Cc({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n.length>0&&void 0!==n[0]?n[0]:{})),t.next=4,this.ready();case 4:this.stop();case 5:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"start",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.documentElement,r=this.screen,e=this.options;r.start(n,Cc(Cc({enableRedraw:!0},e),t))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(t,n,r)}}],[{key:"from",value:(n=Bu(hi.mark((function n(r,e){var i,u,a=arguments;return hi.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=new vs(i=a.length>2&&void 0!==a[2]?a[2]:{}),n.next=4,u.parse(e);case 4:return n.abrupt("return",new t(r,n.sent,i));case 6:case"end":return n.stop()}}),n)}))),function(t,r){return n.apply(this,arguments)})},{key:"fromString",value:function(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new vs(e),u=i.parseFromString(r);return new t(n,u,e)}}]),t}(),Lc=Object.freeze({__proto__:null,offscreen:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.DOMParser,r={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:n,createCanvas:function(t,n){return new OffscreenCanvas(t,n)},createImage:function(t){return Bu(hi.mark((function n(){var r,e;return hi.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,fetch(t);case 2:return r=n.sent,n.next=5,r.blob();case 5:return e=n.sent,n.next=8,createImageBitmap(e);case 8:return n.abrupt("return",n.sent);case 10:case"end":return n.stop()}}),n)})))()}};return"undefined"==typeof DOMParser&&void 0!==n||Ho(r,"DOMParser"),r},node:function(t){var n=t.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t.DOMParser,fetch:t.fetch,createCanvas:n.createCanvas,createImage:n.loadImage}}});export default Ic;export{ic as AElement,Qs as AnimateColorElement,Ws as AnimateElement,Zs as AnimateTransformElement,Ds as BoundingBox,Qf as CB1,Zf as CB2,Jf as CB3,Kf as CB4,Ic as Canvg,Ls as CircleElement,bc as ClipPathElement,qs as DefsElement,Pc as DescElement,Rc as Document,bs as Element,Bs as EllipseElement,mc as FeColorMatrixElement,Ac as FeCompositeElement,Mc as FeDropShadowElement,Nc as FeGaussianBlurElement,Sc as FeMorphologyElement,xc as FilterElement,Ns as Font,Ks as FontElement,tc as FontFaceElement,Vs as GElement,rc as GlyphElement,Ys as GradientElement,sc as ImageElement,Fs as LineElement,Us as LinearGradientElement,Gs as MarkerElement,wc as MaskElement,ps as Matrix,nc as MissingGlyphElement,as as Mouse,Uf as PSEUDO_ZERO,vs as Parser,Es as PathElement,Rs as PathParser,_s as PatternElement,us as Point,zs as PolygonElement,$s as PolylineElement,es as Property,ts as QB1,ns as QB2,rs as QB3,Hs as RadialGradientElement,Is as RectElement,Ps as RenderedElement,ys as Rotate,Cs as SVGElement,hc as SVGFontLoader,ds as Scale,ss as Screen,gs as Skew,ms as SkewX,ws as SkewY,Xs as StopElement,vc as StyleElement,cc as SymbolElement,ec as TRefElement,Os as TSpanElement,js as TextElement,fc as TextPathElement,Dc as TitleElement,ks as Transform,ls as Translate,xs as UnknownElement,lc as UseElement,is as ViewPort,jf as compressSpaces,Yf as getSelectorSpecificity,Cf as normalizeAttributeName,Lf as normalizeColor,If as parseExternalUrl,Lc as presets,Rf as toNumbers,Of as trimLeft,Tf as trimRight,Hf as vectorMagnitude,Wf as vectorsAngle,Xf as vectorsRatio}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as i,h as t,d as s}from"./p-d63406d8.js";import"./p-770128c8.js";import{E as e}from"./p-b226f54d.js";import{A as a}from"./p-9a443f51.js";import"./p-7f3d5344.js";import"./p-f8063d7b.js";import"./p-f2660943.js";import"./p-c466ee32.js";import{A as o,S as n,G as l,e as h,h as r,F as d,g as p,f as c}from"./p-090f2624.js";const u=class{constructor(t){i(this,t),this.name={valid:!1,value:""},this.description={valid:!1,value:""},this.category={valid:!1,value:""},this.progress=0,this.public=!0,this.goalUpdateText={valid:!0,value:""},this.submitted=!1}goalHanlder(i){this.updateGoal(i.AppData)}componentWillLoad(){this.appData&&this.updateGoal(this.appData.AppData)}updateGoal(i){i&&(this.name=Object.assign(Object.assign({},this.name),{value:i.Name}),this.description=Object.assign(Object.assign({},this.description),{value:i.Description}),this.category=Object.assign(Object.assign({},this.category),{value:i.Category}),this.goalUpdateText=Object.assign(Object.assign({},this.goalUpdateText),{value:i.GoalText}),this.progress=i.Percentage)}handleTitle(i){this.validateTitle(),this.name=Object.assign(Object.assign({},this.name),{value:i.target.value})}handleDescription(i){this.validateDescription(),this.description=Object.assign(Object.assign({},this.description),{value:i.target.value})}handleCategory(i){this.validateCategoy(),this.category=Object.assign(Object.assign({},this.category),{value:i.target.value})}handleGoalProgressInfo(i){this.goalUpdateText=Object.assign(Object.assign({},this.goalUpdateText),{value:i.target.value})}validateTitle(){this.name=Object.assign(Object.assign({},this.name),this.name.value&&this.name.value.length>0?{valid:!0}:{valid:!1})}validateDescription(){this.description=Object.assign(Object.assign({},this.description),this.description.value&&this.description.value.length>0?{valid:!0}:{valid:!1})}validateCategoy(){this.category=Object.assign(Object.assign({},this.category),this.category.value&&this.category.value.length>0?{valid:!0}:{valid:!1})}validateGoalUpdateText(){this.goalUpdateText=Object.assign(Object.assign({},this.goalUpdateText),this.goalUpdateText.value&&this.goalUpdateText.value.length>0?{valid:!0}:{valid:!1})}async onSubmit(i){if(i.preventDefault(),console.log("clicked signup"),this.validateTitle(),this.validateDescription(),this.validateCategoy(),this.submitted=!0,this.appData&&this.appData.Id>0){if(this.validateGoalUpdateText(),this.name.valid&&this.description.valid&&this.category.valid&&this.goalUpdateText.valid){var t=l(this.name.value,this.description.value,this.category.value,this.progress,this.goalUpdateText.value);(await o.getInstance().updateGoal({Id:this.appData.Id,MiniAppId:n.MY_GOALS_APP_ID,AppJsonData:JSON.stringify(t)})).Succeeded&&(this.public?await this.postToFeed():this.dismiss())}}else this.name.valid&&this.description.valid&&this.category.valid&&(t=l(this.name.value,this.description.value,this.category.value,this.progress,this.goalUpdateText.value),(await o.getInstance().createGoal({MiniAppId:n.MY_GOALS_APP_ID,AppJsonData:JSON.stringify(t)})).Succeeded&&this.dismiss())}async postToFeed(){const i=e.getInstance().get("sparkle");var t={CourseId:(await a.getInstance().loadJsonFile(i.tocPath)).id,MiniAppId:n.MY_GOALS_APP_ID,PostText:h(this.name.value,this.goalUpdateText.value,this.progress),PostTextJSON:r(this.name.value,this.goalUpdateText.value,this.progress),IsPublic:this.public,ExternalResourceUrl:""};(await d.getInstance().createPost(t)).Succeeded&&this.dismiss()}dismiss(i){this.el.closest("ion-modal").dismiss({dismissed:!0})}renderEditBookingFields(){if(this.appData)return t("div",null,t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Goal Progress Info"),t("ion-input",{name:"title",type:"text",value:this.goalUpdateText.value,onInput:i=>this.handleGoalProgressInfo(i)})),t("ion-text",{color:"danger"},t("p",{hidden:this.goalUpdateText.valid||!1===this.submitted,class:"ion-padding-start"},"Goal Progress text is required")),t("ion-item",null,t("ion-label",{position:"stacked"},"Progress"),t("ion-range",{value:this.progress,min:1,max:100,step:1,snaps:!0,pin:!0,onIonChange:i=>this.progress=+i.detail.value},t("ion-icon",{size:"small",slot:"start",name:"pulse"}),t("ion-icon",{name:"pulse",size:"small"}),t("strong",{slot:"end"},this.progress))),t("ion-text",{color:"danger"},t("p",{hidden:this.progress>0||!1===this.submitted,class:"ion-padding-start"},"Min Progress value should be 1")),t("ion-item",{lines:"none"},t("ion-label",null,"Share to Community Wall"),t("ion-checkbox",{slot:"start",onChange:i=>this.public=i.detail.checked,checked:!0})))}render(){return[t("div",null,t("ion-toolbar",{color:"primary"},t("ion-buttons",{slot:"start"},t("ion-back-button",{defaultHref:"home",onClick:()=>this.dismiss()})),t("ion-title",null,"Add New Goal")),t("div",{class:"inner-content"},t("form",{class:"ion-padding",novalidate:!0,onSubmit:i=>this.onSubmit(i)},t("ion-list",{"no-lines":!0},t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Title"),t("ion-input",{name:"title",type:"text",value:this.name.value,onInput:i=>this.handleTitle(i),required:!0})),t("ion-text",{color:"danger"},t("p",{hidden:this.name.valid||!1===this.submitted,class:"ion-padding-start"},"Title is required")),t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Description"),t("ion-textarea",{name:"desciption",value:this.description.value,onInput:i=>this.handleDescription(i),required:!0})),t("ion-text",{color:"danger"},t("p",{hidden:this.description.valid||!1===this.submitted,class:"ion-padding-start"},"Description is required")),t("ion-item",null,t("ion-label",null,"Category"),t("ion-select",{value:this.category.value,onIonChange:i=>this.handleCategory(i)},t("ion-select-option",{value:"Emotional"},"Emotional"),t("ion-select-option",{value:"Interpersonal"},"Interpersonal"),t("ion-select-option",{value:"Learning"},"Learning"),t("ion-select-option",{value:"Financial"},"Financial"),t("ion-select-option",{value:"Physical"},"Physical"))),t("ion-text",{color:"danger"},t("p",{hidden:this.category.valid||!1===this.submitted,class:"ion-padding-start"},"Category is required")),this.renderEditBookingFields()),t("div",{class:"ion-padding"},this.appData&&t("ion-button",{type:"submit",expand:"block",disabled:p.state.goalLoading||c.state.postIdLoading>0},p.state.goalLoading&&t("ion-spinner",{name:"dots"})," Update"),!this.appData&&t("ion-button",{type:"submit",expand:"block",disabled:p.state.goalLoading},p.state.goalLoading&&t("ion-spinner",{name:"dots"})," Add")))))]}get el(){return s(this)}static get watchers(){return{appData:["goalHanlder"]}}};u.style=":host{display:block}";export{u as sparkle_goal_form}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{a as t,h as e}from"./p-d63406d8.js";import{A as r,H as n}from"./p-7f3d5344.js";const o=new class{constructor(){this.sample=t=>t[Math.floor(Math.random()*t.length)],this.keyBy=(t,e,r)=>t.reduce(((t,n)=>(t[e(n)]=r?r(n):n,t)),{}),this.debounce=(t,e)=>{let r=null;return(...n)=>{clearTimeout(r),r=setTimeout(t,e,...n)}}}loadScript(t){var e=document.createElement("script");e.type="text/javascript",e.src=t,document.body.appendChild(e)}loadScriptAsync(t){return new Promise((function(e,r){const n=document.createElement("script");let o=!1;n.type="text/javascript",n.src=t,n.async=!0,n.onerror=function(t){r(t)},n.onload=n.onreadystatechange=function(){o||this.readyState&&"complete"!=this.readyState||(o=!0,e(!0))};const a=document.getElementsByTagName("script")[0];a.parentElement.insertBefore(n,a)}))}extend(...t){let e,r,n,o,a,s,c,i=t[0]||{},u=1,l=t.length,p=!1;for("boolean"==typeof i&&(p=i,i=t[u]||{},u++),"object"!=typeof i&&"function"!=typeof i&&(i={}),u===l&&(i=this,u--);u<l;u++)if(null!==(e=t[u]))for(r in e)n=i[r],a=e[r],i!==a&&(o=Array.isArray(n)?"array":typeof n,p&&a&&((s=Array.isArray(a))||"object"==typeof a)?(s?(s=!1,c=n&&"array"===o?n:[]):c=n&&"object"===o?n:{},i[r]=this.extend(p,c,a)):void 0!==a&&(i[r]=a));return i}setLocalization(){if(!sparkle.utils.getCookieValue("Sparkle.Localization.CultureName")){let t=navigator.language;sparkle.utils.setCookieValue("Sparkle.Localization.CultureName",t,new Date((new Date).getTime()+15768e7),sparkle.appPath)}}};async function a(t){if(!window)return;const e=window,r=e.Sparkle;if(!r||!r.config||"Object"===r.config.constructor.name)return e.Sparkle=e.Sparkle||{},e.Sparkle.config=Object.assign(Object.assign({},e.Sparkle.config),t),e.Sparkle.config;console.error("Sparkle config was already initialized")}async function s(e){await o.loadScriptAsync(t("../assets/lib/sparkle.js")),await a(e)}const c=window.localStorage,i="enc_auth_token";class u{constructor(){}static getInstance(){return u.instance||(u.instance=new u),u.instance}async authenticate(t){const e={"Content-Type":"application/json"};let o;r.state.loading=!0;try{if(o=await n.http.post("api/Account/Authenticate",t,{headers:e}),o){const e=o.Data,n={Id:e.Id,UserName:e.UserName,Email:e.Email,Roles:e.Roles,IsVerified:e.IsVerified,JWToken:e.JWToken,IssuedOn:e.IssuedOn,ExpiresOn:e.ExpiresOn,RefreshToken:e.RefreshToken,PhotoUrl:"",IsFacilitator:e.Roles.indexOf("Facilitator")>0},s=t.RememberClient?new Date(n.ExpiresOn):void 0;return sparkle.auth.setToken(n.JWToken,s),sparkle.utils.setCookieValue(i,n.JWToken,s,sparkle.appPath),await("CurrentUser",a=n,new Promise(((t,e)=>{try{c&&c.setItem("CurrentUser",JSON.stringify(a)),t()}catch(t){e("Couldnt store object "+t)}}))),r.state.authUser=Object.assign({},n),r.state.loading=!1,n}}catch(t){return r.state.loading=!1,t}var a}async signOut(){await("CurrentUser",new Promise(((t,e)=>{try{c&&c.removeItem("CurrentUser"),t()}catch(t){e("Couldnt remove object "+t)}}))),sessionStorage.clear(),sparkle.auth.clearToken(),r.state.authUser=null,r.state.isAuthenticated=!1}async getLocalAuthUser(){return function(){try{if(c){const t=c.getItem("CurrentUser");return JSON.parse(t)}}catch(t){return null}}()}}const l=t=>{var{component:n,permission:o,render:a}=t,s=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["component","permission","render"]);const c=n;return e("stencil-route",Object.assign({},s,{routeRender:t=>r.state.isAuthenticated?o&&!sparkle.auth.isGranted(o)?e("stencil-router-redirect",{url:"/unauthorized"}):c?e(c,Object.assign({},t,t.componentProps)):a(t):e("stencil-router-redirect",{url:"/login"})}))};export{u as A,l as P,s as i,a as s}
|
@@ -1 +0,0 @@
|
|
1
|
-
import"./p-d63406d8.js";import"./p-770128c8.js";import"./p-bc568dcb.js";import"./p-b226f54d.js";import"./p-9a443f51.js";import"./p-7f3d5344.js";export{H as header_mobile_collapse,A as ion_avatar,B as ion_button,C as ion_card,b as ion_card_content,d as ion_checkbox,e as ion_col,G as ion_grid,I as ion_icon,f as ion_input,h as ion_item,L as ion_label,i as ion_list,j as ion_list_header,R as ion_radio,k as ion_radio_group,l as ion_range,m as ion_ripple_effect,n as ion_row,S as ion_spinner,T as ion_text,o as sparkle_button,p as sparkle_card,q as sparkle_cards,r as sparkle_course_root,s as sparkle_dropdown,E as sparkle_export_lessons,t as sparkle_facilitator_dashboard,u as sparkle_facilitator_header,F as sparkle_facilitator_notes,v as sparkle_facilitator_page,w as sparkle_forgot_password,x as sparkle_goal_item,y as sparkle_goal_progress,z as sparkle_goals,D as sparkle_gww,J as sparkle_gww_item,K as sparkle_header,M as sparkle_health,P as sparkle_login,N as sparkle_menu,O as sparkle_menu_toggle,Q as sparkle_mood,U as sparkle_nav,V as sparkle_online_students,W as sparkle_page,X as sparkle_page_footer,Y as sparkle_pagination,Z as sparkle_reset_password,_ as sparkle_root,$ as sparkle_signup,a0 as sparkle_unauthorized,a1 as sparkle_user_enrollment,a2 as sparkle_user_profile,a3 as sparkle_validation_error,a4 as stencil_route,a5 as stencil_route_link,a6 as stencil_route_switch,a7 as stencil_router,a8 as stencil_router_redirect}from"./p-14ff8097.js";import"./p-f8063d7b.js";import"./p-4b7db0e6.js";import"./p-f2660943.js";import"./p-0e1c7c8c.js";import"./p-c466ee32.js";import"./p-03eb2164.js";import"./p-7840618d.js";import"./p-417a8dd6.js";import"./p-6d506f4e.js";import"./p-6f0ecbe3.js";import"./p-090f2624.js";import"./p-3be0a218.js";
|