text: (self.webpackChunkcesiumjs_webpack_example=self.webpackChunkcesiumjs_webpack_example||[]).push([["vendors-node_modules_canvg_lib_index_es_js"],{"./node_modules/core-js/internals/a-callable.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/is-callable.js"),o=r("./node_modules/core-js/internals/try-to-string.js"),i=n.TypeError;e.exports=function(e){if(s(e))return e;throw i(o(e)+" is not a function")}},"./node_modules/core-js/internals/a-constructor.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/is-constructor.js"),o=r("./node_modules/core-js/internals/try-to-string.js"),i=n.TypeError;e.exports=function(e){if(s(e))return e;throw i(o(e)+" is not a constructor")}},"./node_modules/core-js/internals/a-possible-prototype.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/is-callable.js"),o=n.String,i=n.TypeError;e.exports=function(e){if("object"==typeof e||s(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},"./node_modules/core-js/internals/add-to-unscopables.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/well-known-symbol.js"),s=r("./node_modules/core-js/internals/object-create.js"),o=r("./node_modules/core-js/internals/object-define-property.js"),i=n("unscopables"),a=Array.prototype;null==a[i]&&o.f(a,i,{configurable:!0,value:s(null)}),e.exports=function(e){a[i][e]=!0}},"./node_modules/core-js/internals/advance-string-index.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/string-multibyte.js").charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},"./node_modules/core-js/internals/an-instance.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/object-is-prototype-of.js"),o=n.TypeError;e.exports=function(e,t){if(s(t,e))return e;throw o("Incorrect invocation")}},"./node_modules/core-js/internals/an-object.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/is-object.js"),o=n.String,i=n.TypeError;e.exports=function(e){if(s(e))return e;throw i(o(e)+" is not an object")}},"./node_modules/core-js/internals/array-includes.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/to-indexed-object.js"),s=r("./node_modules/core-js/internals/to-absolute-index.js"),o=r("./node_modules/core-js/internals/length-of-array-like.js"),i=function(e){return function(t,r,i){var a,l=n(t),u=o(l),c=s(i,u);if(e&&r!=r){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"./node_modules/core-js/internals/array-method-is-strict.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/fails.js");e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},"./node_modules/core-js/internals/array-reduce.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/a-callable.js"),o=r("./node_modules/core-js/internals/to-object.js"),i=r("./node_modules/core-js/internals/indexed-object.js"),a=r("./node_modules/core-js/internals/length-of-array-like.js"),l=n.TypeError,u=function(e){return function(t,r,n,u){s(r);var c=o(t),d=i(c),h=a(c),m=e?h-1:0,p=e?-1:1;if(n<2)for(;;){if(m in d){u=d[m],m+=p;break}if(m+=p,e?m<0:h<=m)throw l("Reduce of empty array with no initial value")}for(;e?m>=0:h>m;m+=p)m in d&&(u=r(u,d[m],m,c));return u}};e.exports={left:u(!1),right:u(!0)}},"./node_modules/core-js/internals/array-slice-simple.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/to-absolute-index.js"),o=r("./node_modules/core-js/internals/length-of-array-like.js"),i=r("./node_modules/core-js/internals/create-property.js"),a=n.Array,l=Math.max;e.exports=function(e,t,r){for(var n=o(e),u=s(t,n),c=s(void 0===r?n:r,n),d=a(l(c-u,0)),h=0;u<c;u++,h++)i(d,h,e[u]);return d.length=h,d}},"./node_modules/core-js/internals/array-slice.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-uncurry-this.js");e.exports=n([].slice)},"./node_modules/core-js/internals/check-correctness-of-iteration.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/well-known-symbol.js")("iterator"),s=!1;try{var o=0,i={next:function(){return{done:!!o++}},return:function(){s=!0}};i[n]=function(){return this},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!s)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(e){}return r}},"./node_modules/core-js/internals/classof-raw.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-uncurry-this.js"),s=n({}.toString),o=n("".slice);e.exports=function(e){return o(s(e),8,-1)}},"./node_modules/core-js/internals/classof.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/to-string-tag-support.js"),o=r("./node_modules/core-js/internals/is-callable.js"),i=r("./node_modules/core-js/internals/classof-raw.js"),a=r("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),l=n.Object,u="Arguments"==i(function(){return arguments}());e.exports=s?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=l(e),a))?r:u?i(t):"Object"==(n=i(t))&&o(t.callee)?"Arguments":n}},"./node_modules/core-js/internals/copy-constructor-properties.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/has-own-property.js"),s=r("./node_modules/core-js/internals/own-keys.js"),o=r("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),i=r("./node_modules/core-js/internals/object-define-property.js");e.exports=function(e,t,r){for(var a=s(t),l=i.f,u=o.f,c=0;c<a.length;c++){var d=a[c];n(e,d)||r&&n(r,d)||l(e,d,u(t,d))}}},"./node_modules/core-js/internals/correct-is-regexp-logic.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/well-known-symbol.js")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},"./node_modules/core-js/internals/correct-prototype-getter.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/fails.js");e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},"./node_modules/core-js/internals/create-iterator-constructor.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,s=r("./node_modules/core-js/internals/object-create.js"),o=r("./node_modules/core-js/internals/create-property-descriptor.js"),i=r("./node_modules/core-js/internals/set-to-string-tag.js"),a=r("./node_modules/core-js/internals/iterators.js"),l=function(){return this};e.exports=function(e,t,r,u){var c=t+" Iterator";return e.prototype=s(n,{next:o(+!u,r)}),i(e,c,!1,!0),a[c]=l,e}},"./node_modules/core-js/internals/create-non-enumerable-property.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/descriptors.js"),s=r("./node_modules/core-js/internals/object-define-property.js"),o=r("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=n?function(e,t,r){return s.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},"./node_modules/core-js/internals/create-property-descriptor.js":e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"./node_modules/core-js/internals/create-property.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/to-property-key.js"),s=r("./node_modules/core-js/internals/object-define-property.js"),o=r("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=function(e,t,r){var i=n(t);i in e?s.f(e,i,o(0,r)):e[i]=r}},"./node_modules/core-js/internals/define-iterator.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/export.js"),s=r("./node_modules/core-js/internals/function-call.js"),o=r("./node_modules/core-js/internals/is-pure.js"),i=r("./node_modules/core-js/internals/function-name.js"),a=r("./node_modules/core-js/internals/is-callable.js"),l=r("./node_modules/core-js/internals/create-iterator-constructor.js"),u=r("./node_modules/core-js/internals/object-get-prototype-of.js"),c=r("./node_modules/core-js/internals/object-set-prototype-of.js"),d=r("./node_modules/core-js/internals/set-to-string-tag.js"),h=r("./node_modules/core-js/internals/create-non-enumerable-property.js"),m=r("./node_modules/core-js/internals/redefine.js"),p=r("./node_modules/core-js/internals/well-known-symbol.js"),g=r("./node_modules/core-js/internals/iterators.js"),f=r("./node_modules/core-js/internals/iterators-core.js"),j=i.PROPER,y=i.CONFIGURABLE,v=f.IteratorPrototype,x=f.BUGGY_SAFARI_ITERATORS,b=p("iterator"),_="keys",w="values",S="entries",T=function(){return this};e.exports=function(e,t,r,i,p,f,A){l(r,t,i);var O,P,C,E=function(e){if(e===p&&R)return R;if(!x&&e in k)return k[e];switch(e){case _:case w:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},M=t+" Iterator",N=!1,k=e.prototype,V=k[b]||k["@@iterator"]||p&&k[p],R=!x&&V||E(p),I="Array"==t&&k.entries||V;if(I&&(O=u(I.call(new e)))!==Object.prototype&&O.next&&(o||u(O)===v||(c?c(O,v):a(O[b])||m(O,b,T)),d(O,M,!0,!0),o&&(g[M]=T)),j&&p==w&&V&&V.name!==w&&(!o&&y?h(k,"name",w):(N=!0,R=function(){return s(V,this)})),p)if(P={values:E(w),keys:f?R:E(_),entries:E(S)},A)for(C in P)(x||N||!(C in k))&&m(k,C,P[C]);else n({target:t,proto:!0,forced:x||N},P);return o&&!A||k[b]===R||m(k,b,R,{name:p}),g[t]=R,P}},"./node_modules/core-js/internals/descriptors.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/fails.js");e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"./node_modules/core-js/internals/document-create-element.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/is-object.js"),o=n.document,i=s(o)&&s(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"./node_modules/core-js/internals/dom-iterables.js":e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/dom-token-list-prototype.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/document-create-element.js")("span").classList,s=n&&n.constructor&&n.constructor.prototype;e.exports=s===Object.prototype?void 0:s},"./node_modules/core-js/internals/engine-is-browser.js":e=>{e.exports="object"==typeof window},"./node_modules/core-js/internals/engine-is-ios-pebble.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/engine-user-agent.js"),s=r("./node_modules/core-js/internals/global.js");e.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==s.Pebble},"./node_modules/core-js/internals/engine-is-ios.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/engine-user-agent.js");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},"./node_modules/core-js/internals/engine-is-node.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/classof-raw.js"),s=r("./node_modules/core-js/internals/global.js");e.exports="process"==n(s.process)},"./node_modules/core-js/internals/engine-is-webos-webkit.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/engine-user-agent.js");e.exports=/web0s(?!.*chrome)/i.test(n)},"./node_modules/core-js/internals/engine-user-agent.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/get-built-in.js");e.exports=n("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":(e,t,r)=>{var n,s,o=r("./node_modules/core-js/internals/global.js"),i=r("./node_modules/core-js/internals/engine-user-agent.js"),a=o.process,l=o.Deno,u=a&&a.versions||l&&l.version,c=u&&u.v8;c&&(s=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},"./node_modules/core-js/internals/enum-bug-keys.js":e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,o=r("./node_modules/core-js/internals/create-non-enumerable-property.js"),i=r("./node_modules/core-js/internals/redefine.js"),a=r("./node_modules/core-js/internals/set-global.js"),l=r("./node_modules/core-js/internals/copy-constructor-properties.js"),u=r("./node_modules/core-js/internals/is-forced.js");e.exports=function(e,t){var r,c,d,h,m,p=e.target,g=e.global,f=e.stat;if(r=g?n:f?n[p]||a(p,{}):(n[p]||{}).prototype)for(c in t){if(h=t[c],d=e.noTargetGet?(m=s(r,c))&&m.value:r[c],!u(g?c:p+(f?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),i(r,c,h,e)}}},"./node_modules/core-js/internals/fails.js":e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},"./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js":(e,t,r)=>{"use strict";r("./node_modules/core-js/modules/es.regexp.exec.js");var n=r("./node_modules/core-js/internals/function-uncurry-this.js"),s=r("./node_modules/core-js/internals/redefine.js"),o=r("./node_modules/core-js/internals/regexp-exec.js"),i=r("./node_modules/core-js/internals/fails.js"),a=r("./node_modules/core-js/internals/well-known-symbol.js"),l=r("./node_modules/core-js/internals/create-non-enumerable-property.js"),u=a("species"),c=RegExp.prototype;e.exports=function(e,t,r,d){var h=a(e),m=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=m&&!i((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[h]=/./[h]),r.exec=function(){return t=!0,null},r[h](""),!t}));if(!m||!p||r){var g=n(/./[h]),f=t(h,""[e],(function(e,t,r,s,i){var a=n(e),l=t.exec;return l===o||l===c.exec?m&&!i?{done:!0,value:g(t,r,s)}:{done:!0,value:a(r,t,s)}:{done:!1}}));s(String.prototype,e,f[0]),s(c,h,f[1])}d&&l(c[h],"sham",!0)}},"./node_modules/core-js/internals/function-apply.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-bind-native.js"),s=Function.prototype,o=s.apply,i=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?i.bind(o):function(){return i.apply(o,arguments)})},"./node_modules/core-js/internals/function-bind-context.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-uncurry-this.js"),s=r("./node_modules/core-js/internals/a-callable.js"),o=r("./node_modules/core-js/internals/function-bind-native.js"),i=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:o?i(e,t):function(){return e.apply(t,arguments)}}},"./node_modules/core-js/internals/function-bind-native.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/fails.js");e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"./node_modules/core-js/internals/function-call.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-bind-native.js"),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},"./node_modules/core-js/internals/function-name.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/descriptors.js"),s=r("./node_modules/core-js/internals/has-own-property.js"),o=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,a=s(o,"name"),l=a&&"something"===function(){}.name,u=a&&(!n||n&&i(o,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:u}},"./node_modules/core-js/internals/function-uncurry-this.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-bind-native.js"),s=Function.prototype,o=s.bind,i=s.call,a=n&&o.bind(i,i);e.exports=n?function(e){return e&&a(e)}:function(e){return e&&function(){return i.apply(e,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/is-callable.js"),o=function(e){return s(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e]):n[e]&&n[e][t]}},"./node_modules/core-js/internals/get-iterator-method.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/classof.js"),s=r("./node_modules/core-js/internals/get-method.js"),o=r("./node_modules/core-js/internals/iterators.js"),i=r("./node_modules/core-js/internals/well-known-symbol.js")("iterator");e.exports=function(e){if(null!=e)return s(e,i)||s(e,"@@iterator")||o[n(e)]}},"./node_modules/core-js/internals/get-iterator.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/function-call.js"),o=r("./node_modules/core-js/internals/a-callable.js"),i=r("./node_modules/core-js/internals/an-object.js"),a=r("./node_modules/core-js/internals/try-to-string.js"),l=r("./node_modules/core-js/internals/get-iterator-method.js"),u=n.TypeError;e.exports=function(e,t){var r=arguments.length<2?l(e):t;if(o(r))return i(s(r,e));throw u(a(e)+" is not iterable")}},"./node_modules/core-js/internals/get-method.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/a-callable.js");e.exports=function(e,t){var r=e[t];return null==r?void 0:n(r)}},"./node_modules/core-js/internals/get-substitution.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-uncurry-this.js"),s=r("./node_modules/core-js/internals/to-object.js"),o=Math.floor,i=n("".charAt),a=n("".replace),l=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,d,h){var m=r+e.length,p=n.length,g=c;return void 0!==d&&(d=s(d),g=u),a(h,g,(function(s,a){var u;switch(i(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,r);case"'":return l(t,m);case"<":u=d[l(a,1,-1)];break;default:var c=+a;if(0===c)return s;if(c>p){var h=o(c/10);return 0===h?s:h<=p?void 0===n[h-1]?i(a,1):n[h-1]+i(a,1):s}u=n[c-1]}return void 0===u?"":u}))}},"./node_modules/core-js/internals/global.js":(e,t,r)=>{var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has-own-property.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-uncurry-this.js"),s=r("./node_modules/core-js/internals/to-object.js"),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(s(e),t)}},"./node_modules/core-js/internals/hidden-keys.js":e=>{e.exports={}},"./node_modules/core-js/internals/host-report-errors.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js");e.exports=function(e,t){var r=n.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}},"./node_modules/core-js/internals/html.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/get-built-in.js");e.exports=n("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/descriptors.js"),s=r("./node_modules/core-js/internals/fails.js"),o=r("./node_modules/core-js/internals/document-create-element.js");e.exports=!n&&!s((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"./node_modules/core-js/internals/indexed-object.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/function-uncurry-this.js"),o=r("./node_modules/core-js/internals/fails.js"),i=r("./node_modules/core-js/internals/classof-raw.js"),a=n.Object,l=s("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?l(e,""):a(e)}:a},"./node_modules/core-js/internals/inspect-source.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-uncurry-this.js"),s=r("./node_modules/core-js/internals/is-callable.js"),o=r("./node_modules/core-js/internals/shared-store.js"),i=n(Function.toString);s(o.inspectSource)||(o.inspectSource=function(e){return i(e)}),e.exports=o.inspectSource},"./node_modules/core-js/internals/internal-state.js":(e,t,r)=>{var n,s,o,i=r("./node_modules/core-js/internals/native-weak-map.js"),a=r("./node_modules/core-js/internals/global.js"),l=r("./node_modules/core-js/internals/function-uncurry-this.js"),u=r("./node_modules/core-js/internals/is-object.js"),c=r("./node_modules/core-js/internals/create-non-enumerable-property.js"),d=r("./node_modules/core-js/internals/has-own-property.js"),h=r("./node_modules/core-js/internals/shared-store.js"),m=r("./node_modules/core-js/internals/shared-key.js"),p=r("./node_modules/core-js/internals/hidden-keys.js"),g="Object already initialized",f=a.TypeError,j=a.WeakMap;if(i||h.state){var y=h.state||(h.state=new j),v=l(y.get),x=l(y.has),b=l(y.set);n=function(e,t){if(x(y,e))throw new f(g);return t.facade=e,b(y,e,t),t},s=function(e){return v(y,e)||{}},o=function(e){return x(y,e)}}else{var _=m("state");p[_]=!0,n=function(e,t){if(d(e,_))throw new f(g);return t.facade=e,c(e,_,t),t},s=function(e){return d(e,_)?e[_]:{}},o=function(e){return d(e,_)}}e.exports={set:n,get:s,has:o,enforce:function(e){return o(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=s(t)).type!==e)throw f("Incompatible receiver, "+e+" required");return r}}}},"./node_modules/core-js/internals/is-array-iterator-method.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/well-known-symbol.js"),s=r("./node_modules/core-js/internals/iterators.js"),o=n("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||i[o]===e)}},"./node_modules/core-js/internals/is-array.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/classof-raw.js");e.exports=Array.isArray||function(e){return"Array"==n(e)}},"./node_modules/core-js/internals/is-callable.js":e=>{e.exports=function(e){return"function"==typeof e}},"./node_modules/core-js/internals/is-constructor.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-uncurry-this.js"),s=r("./node_modules/core-js/internals/fails.js"),o=r("./node_modules/core-js/internals/is-callable.js"),i=r("./node_modules/core-js/internals/classof.js"),a=r("./node_modules/core-js/internals/get-built-in.js"),l=r("./node_modules/core-js/internals/inspect-source.js"),u=function(){},c=[],d=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,m=n(h.exec),p=!h.exec(u),g=function(e){if(!o(e))return!1;try{return d(u,c,e),!0}catch(e){return!1}},f=function(e){if(!o(e))return!1;switch(i(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!m(h,l(e))}catch(e){return!0}};f.sham=!0,e.exports=!d||s((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?f:g},"./node_modules/core-js/internals/is-forced.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/fails.js"),s=r("./node_modules/core-js/internals/is-callable.js"),o=/#|\.prototype\./,i=function(e,t){var r=l[a(e)];return r==c||r!=u&&(s(t)?n(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},"./node_modules/core-js/internals/is-object.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/is-callable.js");e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},"./node_modules/core-js/internals/is-pure.js":e=>{e.exports=!1},"./node_modules/core-js/internals/is-regexp.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/is-object.js"),s=r("./node_modules/core-js/internals/classof-raw.js"),o=r("./node_modules/core-js/internals/well-known-symbol.js")("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==s(e))}},"./node_modules/core-js/internals/is-symbol.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/get-built-in.js"),o=r("./node_modules/core-js/internals/is-callable.js"),i=r("./node_modules/core-js/internals/object-is-prototype-of.js"),a=r("./node_modules/core-js/internals/use-symbol-as-uid.js"),l=n.Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return o(t)&&i(t.prototype,l(e))}},"./node_modules/core-js/internals/iterate.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/function-bind-context.js"),o=r("./node_modules/core-js/internals/function-call.js"),i=r("./node_modules/core-js/internals/an-object.js"),a=r("./node_modules/core-js/internals/try-to-string.js"),l=r("./node_modules/core-js/internals/is-array-iterator-method.js"),u=r("./node_modules/core-js/internals/length-of-array-like.js"),c=r("./node_modules/core-js/internals/object-is-prototype-of.js"),d=r("./node_modules/core-js/internals/get-iterator.js"),h=r("./node_modules/core-js/internals/get-iterator-method.js"),m=r("./node_modules/core-js/internals/iterator-close.js"),p=n.TypeError,g=function(e,t){this.stopped=e,this.result=t},f=g.prototype;e.exports=function(e,t,r){var n,j,y,v,x,b,_,w=r&&r.that,S=!(!r||!r.AS_ENTRIES),T=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),O=s(t,w),P=function(e){return n&&m(n,"normal",e),new g(!0,e)},C=function(e){return S?(i(e),A?O(e[0],e[1],P):O(e[0],e[1])):A?O(e,P):O(e)};if(T)n=e;else{if(!(j=h(e)))throw p(a(e)+" is not iterable");if(l(j)){for(y=0,v=u(e);v>y;y++)if((x=C(e[y]))&&c(f,x))return x;return new g(!1)}n=d(e,j)}for(b=n.next;!(_=o(b,n)).done;){try{x=C(_.value)}catch(e){m(n,"throw",e)}if("object"==typeof x&&x&&c(f,x))return x}return new g(!1)}},"./node_modules/core-js/internals/iterator-close.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-call.js"),s=r("./node_modules/core-js/internals/an-object.js"),o=r("./node_modules/core-js/internals/get-method.js");e.exports=function(e,t,r){var i,a;s(e);try{if(!(i=o(e,"return"))){if("throw"===t)throw r;return r}i=n(i,e)}catch(e){a=!0,i=e}if("throw"===t)throw r;if(a)throw i;return s(i),r}},"./node_modules/core-js/internals/iterators-core.js":(e,t,r)=>{"use strict";var n,s,o,i=r("./node_modules/core-js/internals/fails.js"),a=r("./node_modules/core-js/internals/is-callable.js"),l=r("./node_modules/core-js/internals/object-create.js"),u=r("./node_modules/core-js/internals/object-get-prototype-of.js"),c=r("./node_modules/core-js/internals/redefine.js"),d=r("./node_modules/core-js/internals/well-known-symbol.js"),h=r("./node_modules/core-js/internals/is-pure.js"),m=d("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(s=u(u(o)))!==Object.prototype&&(n=s):p=!0),null==n||i((function(){var e={};return n[m].call(e)!==e}))?n={}:h&&(n=l(n)),a(n[m])||c(n,m,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},"./node_modules/core-js/internals/iterators.js":e=>{e.exports={}},"./node_modules/core-js/internals/length-of-array-like.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/to-length.js");e.exports=function(e){return n(e.length)}},"./node_modules/core-js/internals/microtask.js":(e,t,r)=>{var n,s,o,i,a,l,u,c,d=r("./node_modules/core-js/internals/global.js"),h=r("./node_modules/core-js/internals/function-bind-context.js"),m=r("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,p=r("./node_modules/core-js/internals/task.js").set,g=r("./node_modules/core-js/internals/engine-is-ios.js"),f=r("./node_modules/core-js/internals/engine-is-ios-pebble.js"),j=r("./node_modules/core-js/internals/engine-is-webos-webkit.js"),y=r("./node_modules/core-js/internals/engine-is-node.js"),v=d.MutationObserver||d.WebKitMutationObserver,x=d.document,b=d.process,_=d.Promise,w=m(d,"queueMicrotask"),S=w&&w.value;S||(n=function(){var e,t;for(y&&(e=b.domain)&&e.exit();s;){t=s.fn,s=s.next;try{t()}catch(e){throw s?i():o=void 0,e}}o=void 0,e&&e.enter()},g||y||j||!v||!x?!f&&_&&_.resolve?((u=_.resolve(void 0)).constructor=_,c=h(u.then,u),i=function(){c(n)}):y?i=function(){b.nextTick(n)}:(p=h(p,d),i=function(){p(n)}):(a=!0,l=x.createTextNode(""),new v(n).observe(l,{characterData:!0}),i=function(){l.data=a=!a})),e.exports=S||function(e){var t={fn:e,next:void 0};o&&(o.next=t),s||(s=t,i()),o=t}},"./node_modules/core-js/internals/native-promise-constructor.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js");e.exports=n.Promise},"./node_modules/core-js/internals/native-symbol.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/engine-v8-version.js"),s=r("./node_modules/core-js/internals/fails.js");e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},"./node_modules/core-js/internals/native-weak-map.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/is-callable.js"),o=r("./node_modules/core-js/internals/inspect-source.js"),i=n.WeakMap;e.exports=s(i)&&/native code/.test(o(i))},"./node_modules/core-js/internals/new-promise-capability.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/a-callable.js"),s=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new s(e)}},"./node_modules/core-js/internals/not-a-regexp.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/is-regexp.js"),o=n.TypeError;e.exports=function(e){if(s(e))throw o("The method doesn't accept regular expressions");return e}},"./node_modules/core-js/internals/object-create.js":(e,t,r)=>{var n,s=r("./node_modules/core-js/internals/an-object.js"),o=r("./node_modules/core-js/internals/object-define-properties.js"),i=r("./node_modules/core-js/internals/enum-bug-keys.js"),a=r("./node_modules/core-js/internals/hidden-keys.js"),l=r("./node_modules/core-js/internals/html.js"),u=r("./node_modules/core-js/internals/document-create-element.js"),c=r("./node_modules/core-js/internals/shared-key.js"),d=c("IE_PROTO"),h=function(){},m=function(e){return"<script>"+e+"</"+"script>"},p=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;g="undefined"!=typeof document?document.domain&&n?p(n):((t=u("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):p(n);for(var r=i.length;r--;)delete g.prototype[i[r]];return g()};a[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h.prototype=s(e),r=new h,h.prototype=null,r[d]=e):r=g(),void 0===t?r:o.f(r,t)}},"./node_modules/core-js/internals/object-define-properties.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/descriptors.js"),s=r("./node_modules/core-js/internals/v8-prototype-define-bug.js"),o=r("./node_modules/core-js/internals/object-define-property.js"),i=r("./node_modules/core-js/internals/an-object.js"),a=r("./node_modules/core-js/internals/to-indexed-object.js"),l=r("./node_modules/core-js/internals/object-keys.js");t.f=n&&!s?Object.defineProperties:function(e,t){i(e);for(var r,n=a(t),s=l(t),u=s.length,c=0;u>c;)o.f(e,r=s[c++],n[r]);return e}},"./node_modules/core-js/internals/object-define-property.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/descriptors.js"),o=r("./node_modules/core-js/internals/ie8-dom-define.js"),i=r("./node_modules/core-js/internals/v8-prototype-define-bug.js"),a=r("./node_modules/core-js/internals/an-object.js"),l=r("./node_modules/core-js/internals/to-property-key.js"),u=n.TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,h="enumerable",m="configurable",p="writable";t.f=s?i?function(e,t,r){if(a(e),t=l(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r.writable){var n=d(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:m in r?r.configurable:n.configurable,enumerable:h in r?r.enumerable:n.enumerable,writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=l(t),a(r),o)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw u("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/descriptors.js"),s=r("./node_modules/core-js/internals/function-call.js"),o=r("./node_modules/core-js/internals/object-property-is-enumerable.js"),i=r("./node_modules/core-js/internals/create-property-descriptor.js"),a=r("./node_modules/core-js/internals/to-indexed-object.js"),l=r("./node_modules/core-js/internals/to-property-key.js"),u=r("./node_modules/core-js/internals/has-own-property.js"),c=r("./node_modules/core-js/internals/ie8-dom-define.js"),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=a(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return i(!s(o.f,e,t),e[t])}},"./node_modules/core-js/internals/object-get-own-property-names.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/object-keys-internal.js"),s=r("./node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":(e,t)=>{t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/has-own-property.js"),o=r("./node_modules/core-js/internals/is-callable.js"),i=r("./node_modules/core-js/internals/to-object.js"),a=r("./node_modules/core-js/internals/shared-key.js"),l=r("./node_modules/core-js/internals/correct-prototype-getter.js"),u=a("IE_PROTO"),c=n.Object,d=c.prototype;e.exports=l?c.getPrototypeOf:function(e){var t=i(e);if(s(t,u))return t[u];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof c?d:null}},"./node_modules/core-js/internals/object-is-prototype-of.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-uncurry-this.js");e.exports=n({}.isPrototypeOf)},"./node_modules/core-js/internals/object-keys-internal.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-uncurry-this.js"),s=r("./node_modules/core-js/internals/has-own-property.js"),o=r("./node_modules/core-js/internals/to-indexed-object.js"),i=r("./node_modules/core-js/internals/array-includes.js").indexOf,a=r("./node_modules/core-js/internals/hidden-keys.js"),l=n([].push);e.exports=function(e,t){var r,n=o(e),u=0,c=[];for(r in n)!s(a,r)&&s(n,r)&&l(c,r);for(;t.length>u;)s(n,r=t[u++])&&(~i(c,r)||l(c,r));return c}},"./node_modules/core-js/internals/object-keys.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/object-keys-internal.js"),s=r("./node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return n(e,s)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},"./node_modules/core-js/internals/object-set-prototype-of.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-uncurry-this.js"),s=r("./node_modules/core-js/internals/an-object.js"),o=r("./node_modules/core-js/internals/a-possible-prototype.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return s(r),o(n),t?e(r,n):r.__proto__=n,r}}():void 0)},"./node_modules/core-js/internals/ordinary-to-primitive.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/function-call.js"),o=r("./node_modules/core-js/internals/is-callable.js"),i=r("./node_modules/core-js/internals/is-object.js"),a=n.TypeError;e.exports=function(e,t){var r,n;if("string"===t&&o(r=e.toString)&&!i(n=s(r,e)))return n;if(o(r=e.valueOf)&&!i(n=s(r,e)))return n;if("string"!==t&&o(r=e.toString)&&!i(n=s(r,e)))return n;throw a("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/get-built-in.js"),s=r("./node_modules/core-js/internals/function-uncurry-this.js"),o=r("./node_modules/core-js/internals/object-get-own-property-names.js"),i=r("./node_modules/core-js/internals/object-get-own-property-symbols.js"),a=r("./node_modules/core-js/internals/an-object.js"),l=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=i.f;return r?l(t,r(e)):t}},"./node_modules/core-js/internals/perform.js":e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},"./node_modules/core-js/internals/promise-resolve.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/an-object.js"),s=r("./node_modules/core-js/internals/is-object.js"),o=r("./node_modules/core-js/internals/new-promise-capability.js");e.exports=function(e,t){if(n(e),s(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},"./node_modules/core-js/internals/queue.js":e=>{var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},"./node_modules/core-js/internals/redefine-all.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/redefine.js");e.exports=function(e,t,r){for(var s in t)n(e,s,t[s],r);return e}},"./node_modules/core-js/internals/redefine.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/is-callable.js"),o=r("./node_modules/core-js/internals/has-own-property.js"),i=r("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=r("./node_modules/core-js/internals/set-global.js"),l=r("./node_modules/core-js/internals/inspect-source.js"),u=r("./node_modules/core-js/internals/internal-state.js"),c=r("./node_modules/core-js/internals/function-name.js").CONFIGURABLE,d=u.get,h=u.enforce,m=String(String).split("String");(e.exports=function(e,t,r,l){var u,d=!!l&&!!l.unsafe,p=!!l&&!!l.enumerable,g=!!l&&!!l.noTargetGet,f=l&&void 0!==l.name?l.name:t;s(r)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(r,"name")||c&&r.name!==f)&&i(r,"name",f),(u=h(r)).source||(u.source=m.join("string"==typeof f?f:""))),e!==n?(d?!g&&e[t]&&(p=!0):delete e[t],p?e[t]=r:i(e,t,r)):p?e[t]=r:a(t,r)})(Function.prototype,"toString",(function(){return s(this)&&d(this).source||l(this)}))},"./node_modules/core-js/internals/regexp-exec-abstract.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/function-call.js"),o=r("./node_modules/core-js/internals/an-object.js"),i=r("./node_modules/core-js/internals/is-callable.js"),a=r("./node_modules/core-js/internals/classof-raw.js"),l=r("./node_modules/core-js/internals/regexp-exec.js"),u=n.TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var n=s(r,e,t);return null!==n&&o(n),n}if("RegExp"===a(e))return s(l,e,t);throw u("RegExp#exec called on incompatible receiver")}},"./node_modules/core-js/internals/regexp-exec.js":(e,t,r)=>{"use strict";var n,s,o=r("./node_modules/core-js/internals/function-call.js"),i=r("./node_modules/core-js/internals/function-uncurry-this.js"),a=r("./node_modules/core-js/internals/to-string.js"),l=r("./node_modules/core-js/internals/regexp-flags.js"),u=r("./node_modules/core-js/internals/regexp-sticky-helpers.js"),c=r("./node_modules/core-js/internals/shared.js"),d=r("./node_modules/core-js/internals/object-create.js"),h=r("./node_modules/core-js/internals/internal-state.js").get,m=r("./node_modules/core-js/internals/regexp-unsupported-dot-all.js"),p=r("./node_modules/core-js/internals/regexp-unsupported-ncg.js"),g=c("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,j=f,y=i("".charAt),v=i("".indexOf),x=i("".replace),b=i("".slice),_=(s=/b*/g,o(f,n=/a/,"a"),o(f,s,"a"),0!==n.lastIndex||0!==s.lastIndex),w=u.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(_||S||w||m||p)&&(j=function(e){var t,r,n,s,i,u,c,m=this,p=h(m),T=a(e),A=p.raw;if(A)return A.lastIndex=m.lastIndex,t=o(j,A,T),m.lastIndex=A.lastIndex,t;var O=p.groups,P=w&&m.sticky,C=o(l,m),E=m.source,M=0,N=T;if(P&&(C=x(C,"y",""),-1===v(C,"g")&&(C+="g"),N=b(T,m.lastIndex),m.lastIndex>0&&(!m.multiline||m.multiline&&"\n"!==y(T,m.lastIndex-1))&&(E="(?: "+E+")",N=" "+N,M++),r=new RegExp("^(?:"+E+")",C)),S&&(r=new RegExp("^"+E+"$(?!\\s)",C)),_&&(n=m.lastIndex),s=o(f,P?r:m,N),P?s?(s.input=b(s.input,M),s[0]=b(s[0],M),s.index=m.lastIndex,m.lastIndex+=s[0].length):m.lastIndex=0:_&&s&&(m.lastIndex=m.global?s.index+s[0].length:n),S&&s&&s.length>1&&o(g,s[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(s[i]=void 0)})),s&&O)for(s.groups=u=d(null),i=0;i<O.length;i++)u[(c=O[i])[0]]=s[c[1]];return s}),e.exports=j},"./node_modules/core-js/internals/regexp-flags.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/an-object.js");e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"./node_modules/core-js/internals/regexp-sticky-helpers.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/fails.js"),s=r("./node_modules/core-js/internals/global.js").RegExp,o=n((function(){var e=s("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),i=o||n((function(){return!s("a","y").sticky})),a=o||n((function(){var e=s("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:o}},"./node_modules/core-js/internals/regexp-unsupported-dot-all.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/fails.js"),s=r("./node_modules/core-js/internals/global.js").RegExp;e.exports=n((function(){var e=s(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},"./node_modules/core-js/internals/regexp-unsupported-ncg.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/fails.js"),s=r("./node_modules/core-js/internals/global.js").RegExp;e.exports=n((function(){var e=s("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},"./node_modules/core-js/internals/require-object-coercible.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js").TypeError;e.exports=function(e){if(null==e)throw n("Can't call method on "+e);return e}},"./node_modules/core-js/internals/set-global.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},"./node_modules/core-js/internals/set-species.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/get-built-in.js"),s=r("./node_modules/core-js/internals/object-define-property.js"),o=r("./node_modules/core-js/internals/well-known-symbol.js"),i=r("./node_modules/core-js/internals/descriptors.js"),a=o("species");e.exports=function(e){var t=n(e),r=s.f;i&&t&&!t[a]&&r(t,a,{configurable:!0,get:function(){return this}})}},"./node_modules/core-js/internals/set-to-string-tag.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/object-define-property.js").f,s=r("./node_modules/core-js/internals/has-own-property.js"),o=r("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!s(e,o)&&n(e,o,{configurable:!0,value:t})}},"./node_modules/core-js/internals/shared-key.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/shared.js"),s=r("./node_modules/core-js/internals/uid.js"),o=n("keys");e.exports=function(e){return o[e]||(o[e]=s(e))}},"./node_modules/core-js/internals/shared-store.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/set-global.js"),o="__core-js_shared__",i=n[o]||s(o,{});e.exports=i},"./node_modules/core-js/internals/shared.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/is-pure.js"),s=r("./node_modules/core-js/internals/shared-store.js");(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"./node_modules/core-js/internals/species-constructor.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/an-object.js"),s=r("./node_modules/core-js/internals/a-constructor.js"),o=r("./node_modules/core-js/internals/well-known-symbol.js")("species");e.exports=function(e,t){var r,i=n(e).constructor;return void 0===i||null==(r=n(i)[o])?t:s(r)}},"./node_modules/core-js/internals/string-multibyte.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-uncurry-this.js"),s=r("./node_modules/core-js/internals/to-integer-or-infinity.js"),o=r("./node_modules/core-js/internals/to-string.js"),i=r("./node_modules/core-js/internals/require-object-coercible.js"),a=n("".charAt),l=n("".charCodeAt),u=n("".slice),c=function(e){return function(t,r){var n,c,d=o(i(t)),h=s(r),m=d.length;return h<0||h>=m?e?"":void 0:(n=l(d,h))<55296||n>56319||h+1===m||(c=l(d,h+1))<56320||c>57343?e?a(d,h):n:e?u(d,h,h+2):c-56320+(n-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},"./node_modules/core-js/internals/string-trim-forced.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-name.js").PROPER,s=r("./node_modules/core-js/internals/fails.js"),o=r("./node_modules/core-js/internals/whitespaces.js");e.exports=function(e){return s((function(){return!!o[e]()||"​᠎"!=="​᠎"[e]()||n&&o[e].name!==e}))}},"./node_modules/core-js/internals/string-trim.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-uncurry-this.js"),s=r("./node_modules/core-js/internals/require-object-coercible.js"),o=r("./node_modules/core-js/internals/to-string.js"),i=r("./node_modules/core-js/internals/whitespaces.js"),a=n("".replace),l="["+i+"]",u=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),d=function(e){return function(t){var r=o(s(t));return 1&e&&(r=a(r,u,"")),2&e&&(r=a(r,c,"")),r}};e.exports={start:d(1),end:d(2),trim:d(3)}},"./node_modules/core-js/internals/task.js":(e,t,r)=>{var n,s,o,i,a=r("./node_modules/core-js/internals/global.js"),l=r("./node_modules/core-js/internals/function-apply.js"),u=r("./node_modules/core-js/internals/function-bind-context.js"),c=r("./node_modules/core-js/internals/is-callable.js"),d=r("./node_modules/core-js/internals/has-own-property.js"),h=r("./node_modules/core-js/internals/fails.js"),m=r("./node_modules/core-js/internals/html.js"),p=r("./node_modules/core-js/internals/array-slice.js"),g=r("./node_modules/core-js/internals/document-create-element.js"),f=r("./node_modules/core-js/internals/validate-arguments-length.js"),j=r("./node_modules/core-js/internals/engine-is-ios.js"),y=r("./node_modules/core-js/internals/engine-is-node.js"),v=a.setImmediate,x=a.clearImmediate,b=a.process,_=a.Dispatch,w=a.Function,S=a.MessageChannel,T=a.String,A=0,O={},P="onreadystatechange";try{n=a.location}catch(e){}var C=function(e){if(d(O,e)){var t=O[e];delete O[e],t()}},E=function(e){return function(){C(e)}},M=function(e){C(e.data)},N=function(e){a.postMessage(T(e),n.protocol+"//"+n.host)};v&&x||(v=function(e){f(arguments.length,1);var t=c(e)?e:w(e),r=p(arguments,1);return O[++A]=function(){l(t,void 0,r)},s(A),A},x=function(e){delete O[e]},y?s=function(e){b.nextTick(E(e))}:_&&_.now?s=function(e){_.now(E(e))}:S&&!j?(i=(o=new S).port2,o.port1.onmessage=M,s=u(i.postMessage,i)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!h(N)?(s=N,a.addEventListener("message",M,!1)):s=P in g("script")?function(e){m.appendChild(g("script")).onreadystatechange=function(){m.removeChild(this),C(e)}}:function(e){setTimeout(E(e),0)}),e.exports={set:v,clear:x}},"./node_modules/core-js/internals/to-absolute-index.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/to-integer-or-infinity.js"),s=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):o(r,t)}},"./node_modules/core-js/internals/to-indexed-object.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/indexed-object.js"),s=r("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return n(s(e))}},"./node_modules/core-js/internals/to-integer-or-infinity.js":e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){var n=+e;return n!=n||0===n?0:(n>0?r:t)(n)}},"./node_modules/core-js/internals/to-length.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/to-integer-or-infinity.js"),s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/require-object-coercible.js"),o=n.Object;e.exports=function(e){return o(s(e))}},"./node_modules/core-js/internals/to-primitive.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/function-call.js"),o=r("./node_modules/core-js/internals/is-object.js"),i=r("./node_modules/core-js/internals/is-symbol.js"),a=r("./node_modules/core-js/internals/get-method.js"),l=r("./node_modules/core-js/internals/ordinary-to-primitive.js"),u=r("./node_modules/core-js/internals/well-known-symbol.js"),c=n.TypeError,d=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,n=a(e,d);if(n){if(void 0===t&&(t="default"),r=s(n,e,t),!o(r)||i(r))return r;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},"./node_modules/core-js/internals/to-property-key.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/to-primitive.js"),s=r("./node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},"./node_modules/core-js/internals/to-string-tag-support.js":(e,t,r)=>{var n={};n[r("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag")]="z",e.exports="[object z]"===String(n)},"./node_modules/core-js/internals/to-string.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/classof.js"),o=n.String;e.exports=function(e){if("Symbol"===s(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},"./node_modules/core-js/internals/try-to-string.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js").String;e.exports=function(e){try{return n(e)}catch(e){return"Object"}}},"./node_modules/core-js/internals/uid.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/function-uncurry-this.js"),s=0,o=Math.random(),i=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++s+o,36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/native-symbol.js");e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"./node_modules/core-js/internals/v8-prototype-define-bug.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/descriptors.js"),s=r("./node_modules/core-js/internals/fails.js");e.exports=n&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},"./node_modules/core-js/internals/validate-arguments-length.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js").TypeError;e.exports=function(e,t){if(e<t)throw n("Not enough arguments");return e}},"./node_modules/core-js/internals/well-known-symbol.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/shared.js"),o=r("./node_modules/core-js/internals/has-own-property.js"),i=r("./node_modules/core-js/internals/uid.js"),a=r("./node_modules/core-js/internals/native-symbol.js"),l=r("./node_modules/core-js/internals/use-symbol-as-uid.js"),u=s("wks"),c=n.Symbol,d=c&&c.for,h=l?c:c&&c.withoutSetter||i;e.exports=function(e){if(!o(u,e)||!a&&"string"!=typeof u[e]){var t="Symbol."+e;a&&o(c,e)?u[e]=c[e]:u[e]=l&&d?d(t):h(t)}return u[e]}},"./node_modules/core-js/internals/whitespaces.js":e=>{e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},"./node_modules/core-js/modules/es.array.index-of.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/export.js"),s=r("./node_modules/core-js/internals/function-uncurry-this.js"),o=r("./node_modules/core-js/internals/array-includes.js").indexOf,i=r("./node_modules/core-js/internals/array-method-is-strict.js"),a=s([].indexOf),l=!!a&&1/a([1],1,-0)<0,u=i("indexOf");n({target:"Array",proto:!0,forced:l||!u},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?a(this,e,t)||0:o(this,e,t)}})},"./node_modules/core-js/modules/es.array.iterator.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/to-indexed-object.js"),s=r("./node_modules/core-js/internals/add-to-unscopables.js"),o=r("./node_modules/core-js/internals/iterators.js"),i=r("./node_modules/core-js/internals/internal-state.js"),a=r("./node_modules/core-js/internals/object-define-property.js").f,l=r("./node_modules/core-js/internals/define-iterator.js"),u=r("./node_modules/core-js/internals/is-pure.js"),c=r("./node_modules/core-js/internals/descriptors.js"),d="Array Iterator",h=i.set,m=i.getterFor(d);e.exports=l(Array,"Array",(function(e,t){h(this,{type:d,target:n(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");var p=o.Arguments=o.Array;if(s("keys"),s("values"),s("entries"),!u&&c&&"values"!==p.name)try{a(p,"name",{value:"values"})}catch(e){}},"./node_modules/core-js/modules/es.array.reduce.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/export.js"),s=r("./node_modules/core-js/internals/array-reduce.js").left,o=r("./node_modules/core-js/internals/array-method-is-strict.js"),i=r("./node_modules/core-js/internals/engine-v8-version.js"),a=r("./node_modules/core-js/internals/engine-is-node.js");n({target:"Array",proto:!0,forced:!o("reduce")||!a&&i>79&&i<83},{reduce:function(e){var t=arguments.length;return s(this,e,t,t>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.reverse.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/export.js"),s=r("./node_modules/core-js/internals/function-uncurry-this.js"),o=r("./node_modules/core-js/internals/is-array.js"),i=s([].reverse),a=[1,2];n({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i(this)}})},"./node_modules/core-js/modules/es.promise.js":(e,t,r)=>{"use strict";var n,s,o,i,a=r("./node_modules/core-js/internals/export.js"),l=r("./node_modules/core-js/internals/is-pure.js"),u=r("./node_modules/core-js/internals/global.js"),c=r("./node_modules/core-js/internals/get-built-in.js"),d=r("./node_modules/core-js/internals/function-call.js"),h=r("./node_modules/core-js/internals/native-promise-constructor.js"),m=r("./node_modules/core-js/internals/redefine.js"),p=r("./node_modules/core-js/internals/redefine-all.js"),g=r("./node_modules/core-js/internals/object-set-prototype-of.js"),f=r("./node_modules/core-js/internals/set-to-string-tag.js"),j=r("./node_modules/core-js/internals/set-species.js"),y=r("./node_modules/core-js/internals/a-callable.js"),v=r("./node_modules/core-js/internals/is-callable.js"),x=r("./node_modules/core-js/internals/is-object.js"),b=r("./node_modules/core-js/internals/an-instance.js"),_=r("./node_modules/core-js/internals/inspect-source.js"),w=r("./node_modules/core-js/internals/iterate.js"),S=r("./node_modules/core-js/internals/check-correctness-of-iteration.js"),T=r("./node_modules/core-js/internals/species-constructor.js"),A=r("./node_modules/core-js/internals/task.js").set,O=r("./node_modules/core-js/internals/microtask.js"),P=r("./node_modules/core-js/internals/promise-resolve.js"),C=r("./node_modules/core-js/internals/host-report-errors.js"),E=r("./node_modules/core-js/internals/new-promise-capability.js"),M=r("./node_modules/core-js/internals/perform.js"),N=r("./node_modules/core-js/internals/queue.js"),k=r("./node_modules/core-js/internals/internal-state.js"),V=r("./node_modules/core-js/internals/is-forced.js"),R=r("./node_modules/core-js/internals/well-known-symbol.js"),I=r("./node_modules/core-js/internals/engine-is-browser.js"),L=r("./node_modules/core-js/internals/engine-is-node.js"),D=r("./node_modules/core-js/internals/engine-v8-version.js"),B=R("species"),F="Promise",z=k.getterFor(F),U=k.set,H=k.getterFor(F),X=h&&h.prototype,Y=h,G=X,q=u.TypeError,W=u.document,Q=u.process,$=E.f,Z=$,K=!!(W&&W.createEvent&&u.dispatchEvent),J=v(u.PromiseRejectionEvent),ee="unhandledrejection",te=!1,re=V(F,(function(){var e=_(Y),t=e!==String(Y);if(!t&&66===D)return!0;if(l&&!G.finally)return!0;if(D>=51&&/native code/.test(e))return!1;var r=new Y((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[B]=n,!(te=r.then((function(){}))instanceof n)||!t&&I&&!J})),ne=re||!S((function(e){Y.all(e).catch((function(){}))})),se=function(e){var t;return!(!x(e)||!v(t=e.then))&&t},oe=function(e,t){var r,n,s,o=t.value,i=1==t.state,a=i?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{a?(i||(2===t.rejection&&ce(t),t.rejection=1),!0===a?r=o:(c&&c.enter(),r=a(o),c&&(c.exit(),s=!0)),r===e.promise?u(q("Promise-chain cycle")):(n=se(r))?d(n,r,l,u):l(r)):u(o)}catch(e){c&&!s&&c.exit(),u(e)}},ie=function(e,t){e.notified||(e.notified=!0,O((function(){for(var r,n=e.reactions;r=n.get();)oe(r,e);e.notified=!1,t&&!e.rejection&&le(e)})))},ae=function(e,t,r){var n,s;K?((n=W.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!J&&(s=u["on"+e])?s(n):e===ee&&C("Unhandled promise rejection",r)},le=function(e){d(A,u,(function(){var t,r=e.facade,n=e.value;if(ue(e)&&(t=M((function(){L?Q.emit("unhandledRejection",n,r):ae(ee,r,n)})),e.rejection=L||ue(e)?2:1,t.error))throw t.value}))},ue=function(e){return 1!==e.rejection&&!e.parent},ce=function(e){d(A,u,(function(){var t=e.facade;L?Q.emit("rejectionHandled",t):ae("rejectionhandled",t,e.value)}))},de=function(e,t,r){return function(n){e(t,n,r)}},he=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,ie(e,!0))},me=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw q("Promise can't be resolved itself");var n=se(t);n?O((function(){var r={done:!1};try{d(n,t,de(me,r,e),de(he,r,e))}catch(t){he(r,t,e)}})):(e.value=t,e.state=1,ie(e,!1))}catch(t){he({done:!1},t,e)}}};if(re&&(G=(Y=function(e){b(this,G),y(e),d(n,this);var t=z(this);try{e(de(me,t),de(he,t))}catch(e){he(t,e)}}).prototype,(n=function(e){U(this,{type:F,done:!1,notified:!1,parent:!1,reactions:new N,rejection:!1,state:0,value:void 0})}).prototype=p(G,{then:function(e,t){var r=H(this),n=$(T(this,Y));return r.parent=!0,n.ok=!v(e)||e,n.fail=v(t)&&t,n.domain=L?Q.domain:void 0,0==r.state?r.reactions.add(n):O((function(){oe(n,r)})),n.promise},catch:function(e){return this.then(void 0,e)}}),s=function(){var e=new n,t=z(e);this.promise=e,this.resolve=de(me,t),this.reject=de(he,t)},E.f=$=function(e){return e===Y||e===o?new s(e):Z(e)},!l&&v(h)&&X!==Object.prototype)){i=X.then,te||(m(X,"then",(function(e,t){var r=this;return new Y((function(e,t){d(i,r,e,t)})).then(e,t)}),{unsafe:!0}),m(X,"catch",G.catch,{unsafe:!0}));try{delete X.constructor}catch(e){}g&&g(X,G)}a({global:!0,wrap:!0,forced:re},{Promise:Y}),f(Y,F,!1,!0),j(F),o=c(F),a({target:F,stat:!0,forced:re},{reject:function(e){var t=$(this);return d(t.reject,void 0,e),t.promise}}),a({target:F,stat:!0,forced:l||re},{resolve:function(e){return P(l&&this===o?Y:this,e)}}),a({target:F,stat:!0,forced:ne},{all:function(e){var t=this,r=$(t),n=r.resolve,s=r.reject,o=M((function(){var r=y(t.resolve),o=[],i=0,a=1;w(e,(function(e){var l=i++,u=!1;a++,d(r,t,e).then((function(e){u||(u=!0,o[l]=e,--a||n(o))}),s)})),--a||n(o)}));return o.error&&s(o.value),r.promise},race:function(e){var t=this,r=$(t),n=r.reject,s=M((function(){var s=y(t.resolve);w(e,(function(e){d(s,t,e).then(r.resolve,n)}))}));return s.error&&n(s.value),r.promise}})},"./node_modules/core-js/modules/es.regexp.exec.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/export.js"),s=r("./node_modules/core-js/internals/regexp-exec.js");n({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},"./node_modules/core-js/modules/es.regexp.to-string.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/function-uncurry-this.js"),s=r("./node_modules/core-js/internals/function-name.js").PROPER,o=r("./node_modules/core-js/internals/redefine.js"),i=r("./node_modules/core-js/internals/an-object.js"),a=r("./node_modules/core-js/internals/object-is-prototype-of.js"),l=r("./node_modules/core-js/internals/to-string.js"),u=r("./node_modules/core-js/internals/fails.js"),c=r("./node_modules/core-js/internals/regexp-flags.js"),d="toString",h=RegExp.prototype,m=h.toString,p=n(c),g=u((function(){return"/a/b"!=m.call({source:"a",flags:"b"})})),f=s&&m.name!=d;(g||f)&&o(RegExp.prototype,d,(function(){var e=i(this),t=l(e.source),r=e.flags;return"/"+t+"/"+l(void 0===r&&a(h,e)&&!("flags"in h)?p(e):r)}),{unsafe:!0})},"./node_modules/core-js/modules/es.string.ends-with.js":(e,t,r)=>{"use strict";var n,s=r("./node_modules/core-js/internals/export.js"),o=r("./node_modules/core-js/internals/function-uncurry-this.js"),i=r("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,a=r("./node_modules/core-js/internals/to-length.js"),l=r("./node_modules/core-js/internals/to-string.js"),u=r("./node_modules/core-js/internals/not-a-regexp.js"),c=r("./node_modules/core-js/internals/require-object-coercible.js"),d=r("./node_modules/core-js/internals/correct-is-regexp-logic.js"),h=r("./node_modules/core-js/internals/is-pure.js"),m=o("".endsWith),p=o("".slice),g=Math.min,f=d("endsWith");s({target:"String",proto:!0,forced:!!(h||f||(n=i(String.prototype,"endsWith"),!n||n.writable))&&!f},{endsWith:function(e){var t=l(c(this));u(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,s=void 0===r?n:g(a(r),n),o=l(e);return m?m(t,o,s):p(t,s-o.length,s)===o}})},"./node_modules/core-js/modules/es.string.includes.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/export.js"),s=r("./node_modules/core-js/internals/function-uncurry-this.js"),o=r("./node_modules/core-js/internals/not-a-regexp.js"),i=r("./node_modules/core-js/internals/require-object-coercible.js"),a=r("./node_modules/core-js/internals/to-string.js"),l=r("./node_modules/core-js/internals/correct-is-regexp-logic.js"),u=s("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(a(i(this)),a(o(e)),arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.string.match.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/function-call.js"),s=r("./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),o=r("./node_modules/core-js/internals/an-object.js"),i=r("./node_modules/core-js/internals/to-length.js"),a=r("./node_modules/core-js/internals/to-string.js"),l=r("./node_modules/core-js/internals/require-object-coercible.js"),u=r("./node_modules/core-js/internals/get-method.js"),c=r("./node_modules/core-js/internals/advance-string-index.js"),d=r("./node_modules/core-js/internals/regexp-exec-abstract.js");s("match",(function(e,t,r){return[function(t){var r=l(this),s=null==t?void 0:u(t,e);return s?n(s,t,r):new RegExp(t)[e](a(r))},function(e){var n=o(this),s=a(e),l=r(t,n,s);if(l.done)return l.value;if(!n.global)return d(n,s);var u=n.unicode;n.lastIndex=0;for(var h,m=[],p=0;null!==(h=d(n,s));){var g=a(h[0]);m[p]=g,""===g&&(n.lastIndex=c(s,i(n.lastIndex),u)),p++}return 0===p?null:m}]}))},"./node_modules/core-js/modules/es.string.replace.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/function-apply.js"),s=r("./node_modules/core-js/internals/function-call.js"),o=r("./node_modules/core-js/internals/function-uncurry-this.js"),i=r("./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),a=r("./node_modules/core-js/internals/fails.js"),l=r("./node_modules/core-js/internals/an-object.js"),u=r("./node_modules/core-js/internals/is-callable.js"),c=r("./node_modules/core-js/internals/to-integer-or-infinity.js"),d=r("./node_modules/core-js/internals/to-length.js"),h=r("./node_modules/core-js/internals/to-string.js"),m=r("./node_modules/core-js/internals/require-object-coercible.js"),p=r("./node_modules/core-js/internals/advance-string-index.js"),g=r("./node_modules/core-js/internals/get-method.js"),f=r("./node_modules/core-js/internals/get-substitution.js"),j=r("./node_modules/core-js/internals/regexp-exec-abstract.js"),y=r("./node_modules/core-js/internals/well-known-symbol.js")("replace"),v=Math.max,x=Math.min,b=o([].concat),_=o([].push),w=o("".indexOf),S=o("".slice),T="$0"==="a".replace(/./,"$0"),A=!!/./[y]&&""===/./[y]("a","$0");i("replace",(function(e,t,r){var o=A?"$":"$0";return[function(e,r){var n=m(this),o=null==e?void 0:g(e,y);return o?s(o,e,n,r):s(t,h(n),e,r)},function(e,s){var i=l(this),a=h(e);if("string"==typeof s&&-1===w(s,o)&&-1===w(s,"$<")){var m=r(t,i,a,s);if(m.done)return m.value}var g=u(s);g||(s=h(s));var y=i.global;if(y){var T=i.unicode;i.lastIndex=0}for(var A=[];;){var O=j(i,a);if(null===O)break;if(_(A,O),!y)break;""===h(O[0])&&(i.lastIndex=p(a,d(i.lastIndex),T))}for(var P,C="",E=0,M=0;M<A.length;M++){for(var N=h((O=A[M])[0]),k=v(x(c(O.index),a.length),0),V=[],R=1;R<O.length;R++)_(V,void 0===(P=O[R])?P:String(P));var I=O.groups;if(g){var L=b([N],V,k,a);void 0!==I&&_(L,I);var D=h(n(s,void 0,L))}else D=f(N,a,k,V,I,s);k>=E&&(C+=S(a,E,k)+D,E=k+N.length)}return C+S(a,E)}]}),!!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!T||A)},"./node_modules/core-js/modules/es.string.split.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/function-apply.js"),s=r("./node_modules/core-js/internals/function-call.js"),o=r("./node_modules/core-js/internals/function-uncurry-this.js"),i=r("./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),a=r("./node_modules/core-js/internals/is-regexp.js"),l=r("./node_modules/core-js/internals/an-object.js"),u=r("./node_modules/core-js/internals/require-object-coercible.js"),c=r("./node_modules/core-js/internals/species-constructor.js"),d=r("./node_modules/core-js/internals/advance-string-index.js"),h=r("./node_modules/core-js/internals/to-length.js"),m=r("./node_modules/core-js/internals/to-string.js"),p=r("./node_modules/core-js/internals/get-method.js"),g=r("./node_modules/core-js/internals/array-slice-simple.js"),f=r("./node_modules/core-js/internals/regexp-exec-abstract.js"),j=r("./node_modules/core-js/internals/regexp-exec.js"),y=r("./node_modules/core-js/internals/regexp-sticky-helpers.js"),v=r("./node_modules/core-js/internals/fails.js"),x=y.UNSUPPORTED_Y,b=4294967295,_=Math.min,w=[].push,S=o(/./.exec),T=o(w),A=o("".slice);i("split",(function(e,t,r){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var o=m(u(this)),i=void 0===r?b:r>>>0;if(0===i)return[];if(void 0===e)return[o];if(!a(e))return s(t,o,e,i);for(var l,c,d,h=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,y=new RegExp(e.source,p+"g");(l=s(j,y,o))&&!((c=y.lastIndex)>f&&(T(h,A(o,f,l.index)),l.length>1&&l.index<o.length&&n(w,h,g(l,1)),d=l[0].length,f=c,h.length>=i));)y.lastIndex===l.index&&y.lastIndex++;return f===o.length?!d&&S(y,"")||T(h,""):T(h,A(o,f)),h.length>i?g(h,0,i):h}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:s(t,this,e,r)}:t,[function(t,r){var n=u(this),i=null==t?void 0:p(t,e);return i?s(i,t,n,r):s(o,m(n),t,r)},function(e,n){var s=l(this),i=m(e),a=r(o,s,i,n,o!==t);if(a.done)return a.value;var u=c(s,RegExp),p=s.unicode,g=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(x?"g":"y"),j=new u(x?"^(?:"+s.source+")":s,g),y=void 0===n?b:n>>>0;if(0===y)return[];if(0===i.length)return null===f(j,i)?[i]:[];for(var v=0,w=0,S=[];w<i.length;){j.lastIndex=x?0:w;var O,P=f(j,x?A(i,w):i);if(null===P||(O=_(h(j.lastIndex+(x?w:0)),i.length))===v)w=d(i,w,p);else{if(T(S,A(i,v,w)),S.length===y)return S;for(var C=1;C<=P.length-1;C++)if(T(S,P[C]),S.length===y)return S;w=v=O}}return T(S,A(i,v)),S}]}),!!v((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),x)},"./node_modules/core-js/modules/es.string.starts-with.js":(e,t,r)=>{"use strict";var n,s=r("./node_modules/core-js/internals/export.js"),o=r("./node_modules/core-js/internals/function-uncurry-this.js"),i=r("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,a=r("./node_modules/core-js/internals/to-length.js"),l=r("./node_modules/core-js/internals/to-string.js"),u=r("./node_modules/core-js/internals/not-a-regexp.js"),c=r("./node_modules/core-js/internals/require-object-coercible.js"),d=r("./node_modules/core-js/internals/correct-is-regexp-logic.js"),h=r("./node_modules/core-js/internals/is-pure.js"),m=o("".startsWith),p=o("".slice),g=Math.min,f=d("startsWith");s({target:"String",proto:!0,forced:!!(h||f||(n=i(String.prototype,"startsWith"),!n||n.writable))&&!f},{startsWith:function(e){var t=l(c(this));u(e);var r=a(g(arguments.length>1?arguments[1]:void 0,t.length)),n=l(e);return m?m(t,n,r):p(t,r,r+n.length)===n}})},"./node_modules/core-js/modules/es.string.trim.js":(e,t,r)=>{"use strict";var n=r("./node_modules/core-js/internals/export.js"),s=r("./node_modules/core-js/internals/string-trim.js").trim;n({target:"String",proto:!0,forced:r("./node_modules/core-js/internals/string-trim-forced.js")("trim")},{trim:function(){return s(this)}})},"./node_modules/core-js/modules/web.dom-collections.iterator.js":(e,t,r)=>{var n=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/dom-iterables.js"),o=r("./node_modules/core-js/internals/dom-token-list-prototype.js"),i=r("./node_modules/core-js/modules/es.array.iterator.js"),a=r("./node_modules/core-js/internals/create-non-enumerable-property.js"),l=r("./node_modules/core-js/internals/well-known-symbol.js"),u=l("iterator"),c=l("toStringTag"),d=i.values,h=function(e,t){if(e){if(e[u]!==d)try{a(e,u,d)}catch(t){e[u]=d}if(e[c]||a(e,c,t),s[t])for(var r in i)if(e[r]!==i[r])try{a(e,r,i[r])}catch(t){e[r]=i[r]}}};for(var m in s)h(n[m]&&n[m].prototype,m);h(o,"DOMTokenList")},"./node_modules/performance-now/lib/performance-now.js":function(e){(function(){var t,r,n,s,o,i;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},r=process.hrtime,s=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),i=1e9*process.uptime(),o=s-i):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},"./node_modules/raf/index.js":(e,t,r)=>{for(var n=r("./node_modules/performance-now/lib/performance-now.js"),s="undefined"==typeof window?r.g:window,o=["moz","webkit"],i="AnimationFrame",a=s["request"+i],l=s["cancel"+i]||s["cancelRequest"+i],u=0;!a&&u<o.length;u++)a=s[o[u]+"Request"+i],l=s[o[u]+"Cancel"+i]||s[o[u]+"CancelRequest"+i];if(!a||!l){var c=0,d=0,h=[];a=function(e){if(0===h.length){var t=n(),r=Math.max(0,16.666666666666668-(t-c));c=r+t,setTimeout((function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(r))}return h.push({handle:++d,callback:e,cancelled:!1}),d},l=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return a.call(s,e)},e.exports.cancel=function(){l.apply(s,arguments)},e.exports.polyfill=function(e){e||(e=s),e.requestAnimationFrame=a,e.cancelAnimationFrame=l}},"./node_modules/rgbcolor/index.js":e=>{e.exports=function(e){this.ok=!1,this.alpha=1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=(e=e.replace(/ /g,"")).toLowerCase();var t={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"};e=t[e]||e;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(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[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(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],n=0;n<r.length;n++){var s=r[n].re,o=r[n].process,i=s.exec(e);if(i){var a=o(i);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 e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),"#"+e+t+r},this.getHelpXML=function(){for(var e=new Array,n=0;n<r.length;n++)for(var s=r[n].example,o=0;o<s.length;o++)e[e.length]=s[o];for(var i in t)e[e.length]=i;var a=document.createElement("ul");a.setAttribute("id","rgbcolor-examples");for(n=0;n<e.length;n++)try{var l=document.createElement("li"),u=new RGBColor(e[n]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var d=document.createTextNode(" "+e[n]+" -> "+u.toRGB()+" -> "+u.toHex());l.appendChild(c),l.appendChild(d),a.appendChild(l)}catch(e){}return a}}},"./node_modules/stackblur-canvas/dist/stackblur-es.js":(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.r(t),r.d(t,{BlurStack:()=>h,canvasRGB:()=>c,canvasRGBA:()=>l,image:()=>i,imageDataRGB:()=>d,imageDataRGBA:()=>u});var s=[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],o=[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 i(e,t,r,n,s,o){if("string"==typeof e&&(e=document.getElementById(e)),e&&"naturalWidth"in e){var i=s?"offset":"natural",a=e[i+"Width"],u=e[i+"Height"];if("string"==typeof t&&(t=document.getElementById(t)),t&&"getContext"in t){o||(t.style.width=a+"px",t.style.height=u+"px"),t.width=a,t.height=u;var d=t.getContext("2d");d.clearRect(0,0,a,u),d.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,a,u),isNaN(r)||r<1||(n?l(t,0,0,a,u,r):c(t,0,0,a,u,r))}}}function a(e,t,r,s,o){if("string"==typeof e&&(e=document.getElementById(e)),!e||"object"!==n(e)||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=e.getContext("2d");try{return i.getImageData(t,r,s,o)}catch(e){throw new Error("unable to access image data: "+e)}}function l(e,t,r,n,s,o){if(!(isNaN(o)||o<1)){o|=0;var i=a(e,t,r,n,s);i=u(i,t,r,n,s,o),e.getContext("2d").putImageData(i,t,r)}}function u(e,t,r,n,i,a){for(var l,u=e.data,c=2*a+1,d=n-1,m=i-1,p=a+1,g=p*(p+1)/2,f=new h,j=f,y=1;y<c;y++)j=j.next=new h,y===p&&(l=j);j.next=f;for(var v=null,x=null,b=0,_=0,w=s[a],S=o[a],T=0;T<i;T++){j=f;for(var A=u[_],O=u[_+1],P=u[_+2],C=u[_+3],E=0;E<p;E++)j.r=A,j.g=O,j.b=P,j.a=C,j=j.next;for(var M=0,N=0,k=0,V=0,R=p*A,I=p*O,L=p*P,D=p*C,B=g*A,F=g*O,z=g*P,U=g*C,H=1;H<p;H++){var X=_+((d<H?d:H)<<2),Y=u[X],G=u[X+1],q=u[X+2],W=u[X+3],Q=p-H;B+=(j.r=Y)*Q,F+=(j.g=G)*Q,z+=(j.b=q)*Q,U+=(j.a=W)*Q,M+=Y,N+=G,k+=q,V+=W,j=j.next}v=f,x=l;for(var $=0;$<n;$++){var Z=U*w>>S;if(u[_+3]=Z,0!==Z){var K=255/Z;u[_]=(B*w>>S)*K,u[_+1]=(F*w>>S)*K,u[_+2]=(z*w>>S)*K}else u[_]=u[_+1]=u[_+2]=0;B-=R,F-=I,z-=L,U-=D,R-=v.r,I-=v.g,L-=v.b,D-=v.a;var J=$+a+1;J=b+(J<d?J:d)<<2,B+=M+=v.r=u[J],F+=N+=v.g=u[J+1],z+=k+=v.b=u[J+2],U+=V+=v.a=u[J+3],v=v.next;var ee=x,te=ee.r,re=ee.g,ne=ee.b,se=ee.a;R+=te,I+=re,L+=ne,D+=se,M-=te,N-=re,k-=ne,V-=se,x=x.next,_+=4}b+=n}for(var oe=0;oe<n;oe++){var ie=u[_=oe<<2],ae=u[_+1],le=u[_+2],ue=u[_+3],ce=p*ie,de=p*ae,he=p*le,me=p*ue,pe=g*ie,ge=g*ae,fe=g*le,je=g*ue;j=f;for(var ye=0;ye<p;ye++)j.r=ie,j.g=ae,j.b=le,j.a=ue,j=j.next;for(var ve=n,xe=0,be=0,_e=0,we=0,Se=1;Se<=a;Se++){_=ve+oe<<2;var Te=p-Se;pe+=(j.r=ie=u[_])*Te,ge+=(j.g=ae=u[_+1])*Te,fe+=(j.b=le=u[_+2])*Te,je+=(j.a=ue=u[_+3])*Te,we+=ie,xe+=ae,be+=le,_e+=ue,j=j.next,Se<m&&(ve+=n)}_=oe,v=f,x=l;for(var Ae=0;Ae<i;Ae++){var Oe=_<<2;u[Oe+3]=ue=je*w>>S,ue>0?(ue=255/ue,u[Oe]=(pe*w>>S)*ue,u[Oe+1]=(ge*w>>S)*ue,u[Oe+2]=(fe*w>>S)*ue):u[Oe]=u[Oe+1]=u[Oe+2]=0,pe-=ce,ge-=de,fe-=he,je-=me,ce-=v.r,de-=v.g,he-=v.b,me-=v.a,Oe=oe+((Oe=Ae+p)<m?Oe:m)*n<<2,pe+=we+=v.r=u[Oe],ge+=xe+=v.g=u[Oe+1],fe+=be+=v.b=u[Oe+2],je+=_e+=v.a=u[Oe+3],v=v.next,ce+=ie=x.r,de+=ae=x.g,he+=le=x.b,me+=ue=x.a,we-=ie,xe-=ae,be-=le,_e-=ue,x=x.next,_+=n}}return e}function c(e,t,r,n,s,o){if(!(isNaN(o)||o<1)){o|=0;var i=a(e,t,r,n,s);i=d(i,t,r,n,s,o),e.getContext("2d").putImageData(i,t,r)}}function d(e,t,r,n,i,a){for(var l,u=e.data,c=2*a+1,d=n-1,m=i-1,p=a+1,g=p*(p+1)/2,f=new h,j=f,y=1;y<c;y++)j=j.next=new h,y===p&&(l=j);j.next=f;for(var v,x,b=null,_=null,w=s[a],S=o[a],T=0,A=0,O=0;O<i;O++){var P=u[A],C=u[A+1],E=u[A+2],M=p*P,N=p*C,k=p*E,V=g*P,R=g*C,I=g*E;j=f;for(var L=0;L<p;L++)j.r=P,j.g=C,j.b=E,j=j.next;for(var D=0,B=0,F=0,z=1;z<p;z++)v=A+((d<z?d:z)<<2),V+=(j.r=P=u[v])*(x=p-z),R+=(j.g=C=u[v+1])*x,I+=(j.b=E=u[v+2])*x,D+=P,B+=C,F+=E,j=j.next;b=f,_=l;for(var U=0;U<n;U++)u[A]=V*w>>S,u[A+1]=R*w>>S,u[A+2]=I*w>>S,V-=M,R-=N,I-=k,M-=b.r,N-=b.g,k-=b.b,v=T+((v=U+a+1)<d?v:d)<<2,V+=D+=b.r=u[v],R+=B+=b.g=u[v+1],I+=F+=b.b=u[v+2],b=b.next,M+=P=_.r,N+=C=_.g,k+=E=_.b,D-=P,B-=C,F-=E,_=_.next,A+=4;T+=n}for(var H=0;H<n;H++){var X=u[A=H<<2],Y=u[A+1],G=u[A+2],q=p*X,W=p*Y,Q=p*G,$=g*X,Z=g*Y,K=g*G;j=f;for(var J=0;J<p;J++)j.r=X,j.g=Y,j.b=G,j=j.next;for(var ee=0,te=0,re=0,ne=1,se=n;ne<=a;ne++)A=se+H<<2,$+=(j.r=X=u[A])*(x=p-ne),Z+=(j.g=Y=u[A+1])*x,K+=(j.b=G=u[A+2])*x,ee+=X,te+=Y,re+=G,j=j.next,ne<m&&(se+=n);A=H,b=f,_=l;for(var oe=0;oe<i;oe++)u[v=A<<2]=$*w>>S,u[v+1]=Z*w>>S,u[v+2]=K*w>>S,$-=q,Z-=W,K-=Q,q-=b.r,W-=b.g,Q-=b.b,v=H+((v=oe+p)<m?v:m)*n<<2,$+=ee+=b.r=u[v],Z+=te+=b.g=u[v+1],K+=re+=b.b=u[v+2],b=b.next,q+=X=_.r,W+=Y=_.g,Q+=G=_.b,ee-=X,te-=Y,re-=G,_=_.next,A+=n}return e}var h=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}},"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js":(e,t,r)=>{"use strict";function n(e,t,r,n,s,o,i){try{var a=e[o](i),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,s)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(s,o){var i=e.apply(t,r);function a(e){n(i,s,o,a,l,"next",e)}function l(e){n(i,s,o,a,l,"throw",e)}a(void 0)}))}}r.r(t),r.d(t,{default:()=>s})},"./node_modules/@babel/runtime/helpers/esm/defineProperty.js":(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.r(t),r.d(t,{default:()=>n})},"./node_modules/canvg/lib/index.es.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{AElement:()=>De,AnimateColorElement:()=>Ne,AnimateElement:()=>Me,AnimateTransformElement:()=>ke,BoundingBox:()=>le,CB1:()=>M,CB2:()=>N,CB3:()=>k,CB4:()=>V,Canvg:()=>gt,CircleElement:()=>ye,ClipPathElement:()=>tt,DefsElement:()=>Te,DescElement:()=>lt,Document:()=>ht,Element:()=>re,EllipseElement:()=>ve,FeColorMatrixElement:()=>Ke,FeCompositeElement:()=>ot,FeDropShadowElement:()=>nt,FeGaussianBlurElement:()=>it,FeMorphologyElement:()=>st,FilterElement:()=>rt,Font:()=>ae,FontElement:()=>Ve,FontFaceElement:()=>Re,GElement:()=>Ae,GlyphElement:()=>he,GradientElement:()=>Oe,ImageElement:()=>He,LineElement:()=>xe,LinearGradientElement:()=>Pe,MarkerElement:()=>Se,MaskElement:()=>Je,Matrix:()=>Z,MissingGlyphElement:()=>Ie,Mouse:()=>z,PSEUDO_ZERO:()=>O,Parser:()=>q,PathElement:()=>de,PathParser:()=>ue,PatternElement:()=>we,Point:()=>F,PolygonElement:()=>_e,PolylineElement:()=>be,Property:()=>D,QB1:()=>R,QB2:()=>I,QB3:()=>L,RadialGradientElement:()=>Ce,RectElement:()=>je,RenderedElement:()=>ce,Rotate:()=>Q,SVGElement:()=>fe,SVGFontLoader:()=>Ye,Scale:()=>$,Screen:()=>X,Skew:()=>K,SkewX:()=>J,SkewY:()=>ee,StopElement:()=>Ee,StyleElement:()=>Ge,SymbolElement:()=>Xe,TRefElement:()=>Le,TSpanElement:()=>pe,TextElement:()=>me,TextPathElement:()=>ze,TitleElement:()=>at,Transform:()=>te,Translate:()=>W,UnknownElement:()=>ne,UseElement:()=>qe,ViewPort:()=>B,compressSpaces:()=>c,default:()=>gt,getSelectorSpecificity:()=>A,normalizeAttributeName:()=>g,normalizeColor:()=>j,parseExternalUrl:()=>f,presets:()=>u,toNumbers:()=>m,trimLeft:()=>d,trimRight:()=>h,vectorMagnitude:()=>P,vectorsAngle:()=>E,vectorsRatio:()=>C});r("./node_modules/core-js/modules/es.promise.js");var n=r("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),s=(r("./node_modules/core-js/modules/es.string.match.js"),r("./node_modules/core-js/modules/es.string.replace.js"),r("./node_modules/core-js/modules/es.string.starts-with.js"),r("./node_modules/core-js/modules/es.array.iterator.js"),r("./node_modules/core-js/modules/web.dom-collections.iterator.js"),r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js")),o=(r("./node_modules/core-js/modules/es.array.reduce.js"),r("./node_modules/core-js/modules/es.string.ends-with.js"),r("./node_modules/core-js/modules/es.string.split.js"),r("./node_modules/raf/index.js")),i=(r("./node_modules/core-js/modules/es.string.trim.js"),r("./node_modules/rgbcolor/index.js")),a=(r("./node_modules/core-js/modules/es.array.index-of.js"),r("./node_modules/core-js/modules/es.string.includes.js"),r("./node_modules/core-js/modules/es.array.reverse.js"),r("./node_modules/svg-pathdata/lib/SVGPathData.module.js")),l=(r("./node_modules/core-js/modules/es.regexp.to-string.js"),r("./node_modules/stackblur-canvas/dist/stackblur-es.js"));var u=Object.freeze({__proto__:null,offscreen:function(){var{DOMParser:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas:(e,t)=>new OffscreenCanvas(e,t),createImage:e=>(0,n.default)((function*(){var t=yield fetch(e),r=yield t.blob();return yield createImageBitmap(r)}))()};return"undefined"==typeof DOMParser&&void 0!==e||Reflect.deleteProperty(t,"DOMParser"),t},node:function(e){var{DOMParser:t,canvas:r,fetch:n}=e;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:n,createCanvas:r.createCanvas,createImage:r.loadImage}}});function c(e){return e.replace(/(?!\u3000)\s+/gm," ")}function d(e){return e.replace(/^[\n \t]+/,"")}function h(e){return e.replace(/[\n \t]+$/,"")}function m(e){return((e||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var p=/^[A-Z-]+$/;function g(e){return p.test(e)?e.toLowerCase():e}function f(e){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(e)||[];return t[2]||t[3]||t[4]}function j(e){if(!e.startsWith("rgb"))return e;var t=3;return e.replace(/\d+(\.\d+)?/g,((e,r)=>t--&&r?String(Math.round(parseFloat(e))):e))}var y=/(\[[^\]]+\])/g,v=/(#[^\s+>~.[:]+)/g,x=/(\.[^\s+>~.[:]+)/g,b=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,_=/(:[\w-]+\([^)]*\))/gi,w=/(:[^\s+>~.[:]+)/g,S=/([^\s+>~.[:]+)/g;function T(e,t){var r=t.exec(e);return r?[e.replace(t," "),r.length]:[e,0]}function A(e){var t=[0,0,0],r=e.replace(/:not\(([^)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),n=0;return[r,n]=T(r,y),t[1]+=n,[r,n]=T(r,v),t[0]+=n,[r,n]=T(r,x),t[1]+=n,[r,n]=T(r,b),t[2]+=n,[r,n]=T(r,_),t[1]+=n,[r,n]=T(r,w),t[1]+=n,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[r,n]=T(r,S),t[2]+=n,t.join("")}var O=1e-8;function P(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))}function C(e,t){return(e[0]*t[0]+e[1]*t[1])/(P(e)*P(t))}function E(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(C(e,t))}function M(e){return e*e*e}function N(e){return 3*e*e*(1-e)}function k(e){return 3*e*(1-e)*(1-e)}function V(e){return(1-e)*(1-e)*(1-e)}function R(e){return e*e}function I(e){return 2*e*(1-e)}function L(e){return(1-e)*(1-e)}class D{constructor(e,t,r){this.document=e,this.name=t,this.value=r,this.isNormalizedColor=!1}static empty(e){return new D(e,"EMPTY","")}split(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:t,name:r}=this;return c(this.getString()).trim().split(e).map((e=>new D(t,r,e)))}hasValue(e){var{value:t}=this;return null!==t&&""!==t&&(e||0!==t)&&void 0!==t}isString(e){var{value:t}=this,r="string"==typeof t;return r&&e?e.test(t):r}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return void 0===e||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return void 0===e?0:parseFloat(e);var{value:t}=this,r=parseFloat(t);return this.isString(/%$/)&&(r/=100),r}getString(e){return void 0===e||this.hasValue()?void 0===this.value?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=j(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[r,n]="boolean"==typeof e?[void 0,e]:[e],{viewPort:s}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(s.computeSize("x"),s.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(s.computeSize("x"),s.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*s.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*s.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(/%$/)&&n:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(r);default:var o=this.getNumber();return t&&o<1?o*s.computeSize(r):o}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var r=this.getDefinition();if(!r)return null;if("function"==typeof r.createGradient)return r.createGradient(this.document.ctx,e,t);if("function"==typeof r.createPattern){if(r.getHrefAttribute().hasValue()){var n=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),n.hasValue()&&r.getAttribute("patternTransform",!0).setValue(n.value)}return r.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?D.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),r=t.length,n=0,s=0;s<r&&(","===t[s]&&n++,3!==n);s++);if(e.hasValue()&&this.isString()&&3!==n){var o=new i(t);o.ok&&(o.alpha=e.getNumber(),t=o.toRGBA())}return new D(this.document,this.name,t)}}D.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"};class B{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,t){this.viewPorts.push({width:e,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return"number"==typeof e?e:"x"===e?this.width:"y"===e?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class F{constructor(e,t){this.x=e,this.y=t}static parse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[r=t,n=t]=m(e);return new F(r,n)}static parseScale(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[r=t,n=r]=m(e);return new F(r,n)}static parsePath(e){for(var t=m(e),r=t.length,n=[],s=0;s<r;s+=2)n.push(new F(t[s],t[s+1]));return n}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:t,y:r}=this,n=t*e[0]+r*e[2]+e[4],s=t*e[1]+r*e[3]+e[5];this.x=n,this.y=s}}class z{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:t,onMouseMove:r}=this,n=e.ctx.canvas;n.onclick=t,n.onmousemove=r,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:r}=this,{style:n}=e.ctx.canvas;n&&(n.cursor=""),t.forEach(((e,t)=>{for(var{run:n}=e,s=r[t];s;)n(s),s=s.parent})),this.events=[],this.eventElements=[]}}checkPath(e,t){if(this.working&&t){var{events:r,eventElements:n}=this;r.forEach(((r,s)=>{var{x:o,y:i}=r;!n[s]&&t.isPointInPath&&t.isPointInPath(o,i)&&(n[s]=e)}))}}checkBoundingBox(e,t){if(this.working&&t){var{events:r,eventElements:n}=this;r.forEach(((r,s)=>{var{x:o,y:i}=r;!n[s]&&t.isPointInBox(o,i)&&(n[s]=e)}))}}mapXY(e,t){for(var{window:r,ctx:n}=this.screen,s=new F(e,t),o=n.canvas;o;)s.x-=o.offsetLeft,s.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(s.x+=r.scrollX),r.scrollY&&(s.y+=r.scrollY),s}onClick(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:r,run(e){e.onClick&&e.onClick()}})}onMouseMove(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:r,run(e){e.onMouseMove&&e.onMouseMove()}})}}var U="undefined"!=typeof window?window:null,H="undefined"!=typeof fetch?fetch.bind(void 0):null;class X{constructor(e){var{fetch:t=H,window:r=U}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new B,this.mouse=new z(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every((e=>e()));return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:r,aspectRatio:n,width:s,desiredWidth:o,height:i,desiredHeight:a,minX:l=0,minY:u=0,refX:d,refY:h,clip:m=!1,clipX:p=0,clipY:g=0}=e,f=c(n).replace(/^defer\s/,""),[j,y]=f.split(" "),v=j||"xMidYMid",x=y||"meet",b=s/o,_=i/a,w=Math.min(b,_),S=Math.max(b,_),T=o,A=a;"meet"===x&&(T*=w,A*=w),"slice"===x&&(T*=S,A*=S);var O=new D(t,"refX",d),P=new D(t,"refY",h),C=O.hasValue()&&P.hasValue();if(C&&r.translate(-w*O.getPixels("x"),-w*P.getPixels("y")),m){var E=w*p,M=w*g;r.beginPath(),r.moveTo(E,M),r.lineTo(s,M),r.lineTo(s,i),r.lineTo(E,i),r.closePath(),r.clip()}if(!C){var N="meet"===x&&w===_,k="slice"===x&&S===_,V="meet"===x&&w===b,R="slice"===x&&S===b;v.startsWith("xMid")&&(N||k)&&r.translate(s/2-T/2,0),v.endsWith("YMid")&&(V||R)&&r.translate(0,i/2-A/2),v.startsWith("xMax")&&(N||k)&&r.translate(s-T,0),v.endsWith("YMax")&&(V||R)&&r.translate(0,i-A)}switch(!0){case"none"===v:r.scale(b,_);break;case"meet"===x:r.scale(w,w);break;case"slice"===x:r.scale(S,S)}r.translate(-l,-u)}start(e){var{enableRedraw:t=!1,ignoreMouse:r=!1,ignoreAnimation:n=!1,ignoreDimensions:s=!1,ignoreClear:i=!1,forceRedraw:a,scaleWidth:l,scaleHeight:u,offsetX:c,offsetY:d}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:h,mouse:m}=this,p=1e3/h;if(this.frameDuration=p,this.readyPromise=new Promise((e=>{this.resolveReady=e})),this.isReady()&&this.render(e,s,i,l,u,c,d),t){var g=Date.now(),f=g,j=0,y=()=>{g=Date.now(),(j=g-f)>=p&&(f=g-j%p,this.shouldUpdate(n,a)&&(this.render(e,s,i,l,u,c,d),m.runEvents())),this.intervalId=o(y)};r||m.start(),this.intervalId=o(y)}}stop(){this.intervalId&&(o.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:r}=this;if(this.animations.reduce(((e,t)=>t.update(r)||e),!1))return!0}return!("function"!=typeof t||!t())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(e,t,r,n,s,o,i){var{CLIENT_WIDTH:a,CLIENT_HEIGHT:l,viewPort:u,ctx:c,isFirstRender:d}=this,h=c.canvas;u.clear(),h.width&&h.height?u.setCurrent(h.width,h.height):u.setCurrent(a,l);var p=e.getStyle("width"),g=e.getStyle("height");!t&&(d||"number"!=typeof n&&"number"!=typeof s)&&(p.hasValue()&&(h.width=p.getPixels("x"),h.style&&(h.style.width="".concat(h.width,"px"))),g.hasValue()&&(h.height=g.getPixels("y"),h.style&&(h.style.height="".concat(h.height,"px"))));var f=h.clientWidth||h.width,j=h.clientHeight||h.height;if(t&&p.hasValue()&&g.hasValue()&&(f=p.getPixels("x"),j=g.getPixels("y")),u.setCurrent(f,j),"number"==typeof o&&e.getAttribute("x",!0).setValue(o),"number"==typeof i&&e.getAttribute("y",!0).setValue(i),"number"==typeof n||"number"==typeof s){var y=m(e.getAttribute("viewBox").getString()),v=0,x=0;if("number"==typeof n){var b=e.getStyle("width");b.hasValue()?v=b.getPixels("x")/n:isNaN(y[2])||(v=y[2]/n)}if("number"==typeof s){var _=e.getStyle("height");_.hasValue()?x=_.getPixels("y")/s:isNaN(y[3])||(x=y[3]/s)}v||(v=x),x||(x=v),e.getAttribute("width",!0).setValue(n),e.getAttribute("height",!0).setValue(s);var w=e.getStyle("transform",!0,!0);w.setValue("".concat(w.getString()," scale(").concat(1/v,", ").concat(1/x,")"))}r||c.clearRect(0,0,f,j),e.render(c),d&&(this.isFirstRender=!1)}}X.defaultWindow=U,X.defaultFetch=H;var{defaultFetch:Y}=X,G="undefined"!=typeof DOMParser?DOMParser:null;class q{constructor(){var{fetch:e=Y,DOMParser:t=G}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return(0,n.default)((function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)}))()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch(r){return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return(0,n.default)((function*(){var r=yield t.fetch(e),n=yield r.text();return t.parseFromString(n)}))()}}class W{constructor(e,t){this.type="translate",this.point=null,this.point=F.parse(t)}apply(e){var{x:t,y:r}=this.point;e.translate(t||0,r||0)}unapply(e){var{x:t,y:r}=this.point;e.translate(-1*t||0,-1*r||0)}applyToPoint(e){var{x:t,y:r}=this.point;e.applyTransform([1,0,0,1,t||0,r||0])}}class Q{constructor(e,t,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var n=m(t);this.angle=new D(e,"angle",n[0]),this.originX=r[0],this.originY=r[1],this.cx=n[1]||0,this.cy=n[2]||0}apply(e){var{cx:t,cy:r,originX:n,originY:s,angle:o}=this,i=t+n.getPixels("x"),a=r+s.getPixels("y");e.translate(i,a),e.rotate(o.getRadians()),e.translate(-i,-a)}unapply(e){var{cx:t,cy:r,originX:n,originY:s,angle:o}=this,i=t+n.getPixels("x"),a=r+s.getPixels("y");e.translate(i,a),e.rotate(-1*o.getRadians()),e.translate(-i,-a)}applyToPoint(e){var{cx:t,cy:r,angle:n}=this,s=n.getRadians();e.applyTransform([1,0,0,1,t||0,r||0]),e.applyTransform([Math.cos(s),Math.sin(s),-Math.sin(s),Math.cos(s),0,0]),e.applyTransform([1,0,0,1,-t||0,-r||0])}}class ${constructor(e,t,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var n=F.parseScale(t);0!==n.x&&0!==n.y||(n.x=O,n.y=O),this.scale=n,this.originX=r[0],this.originY=r[1]}apply(e){var{scale:{x:t,y:r},originX:n,originY:s}=this,o=n.getPixels("x"),i=s.getPixels("y");e.translate(o,i),e.scale(t,r||t),e.translate(-o,-i)}unapply(e){var{scale:{x:t,y:r},originX:n,originY:s}=this,o=n.getPixels("x"),i=s.getPixels("y");e.translate(o,i),e.scale(1/t,1/r||t),e.translate(-o,-i)}applyToPoint(e){var{x:t,y:r}=this.scale;e.applyTransform([t||0,0,0,r||0,0,0])}}class Z{constructor(e,t,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=m(t),this.originX=r[0],this.originY=r[1]}apply(e){var{originX:t,originY:r,matrix:n}=this,s=t.getPixels("x"),o=r.getPixels("y");e.translate(s,o),e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),e.translate(-s,-o)}unapply(e){var{originX:t,originY:r,matrix:n}=this,s=n[0],o=n[2],i=n[4],a=n[1],l=n[3],u=n[5],c=1/(s*(1*l-0*u)-o*(1*a-0*u)+i*(0*a-0*l)),d=t.getPixels("x"),h=r.getPixels("y");e.translate(d,h),e.transform(c*(1*l-0*u),c*(0*u-1*a),c*(0*i-1*o),c*(1*s-0*i),c*(o*u-i*l),c*(i*a-s*u)),e.translate(-d,-h)}applyToPoint(e){e.applyTransform(this.matrix)}}class K extends Z{constructor(e,t,r){super(e,t,r),this.type="skew",this.angle=null,this.angle=new D(e,"angle",t)}}class J extends K{constructor(e,t,r){super(e,t,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class ee extends K{constructor(e,t,r){super(e,t,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}class te{constructor(e,t,r){this.document=e,this.transforms=[];var n=function(e){return c(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(t);n.forEach((e=>{if("none"!==e){var[t,n]=function(e){var[t,r]=e.split("(");return[t.trim(),r.trim().replace(")","")]}(e),s=te.transformTypes[t];void 0!==s&&this.transforms.push(new s(this.document,n,r))}}))}static fromElement(e,t){var r=t.getStyle("transform",!1,!0),[n,s=n]=t.getStyle("transform-origin",!1,!0).split(),o=[n,s];return r.hasValue()?new te(e,r.getString(),o):null}apply(e){for(var{transforms:t}=this,r=t.length,n=0;n<r;n++)t[n].apply(e)}unapply(e){for(var{transforms:t}=this,r=t.length-1;r>=0;r--)t[r].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,r=t.length,n=0;n<r;n++)t[n].applyToPoint(e)}}te.transformTypes={translate:W,rotate:Q,scale:$,matrix:Z,skewX:J,skewY:ee};class re{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=e,this.node=t,this.captureTextNodes=r,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType){if(Array.from(t.attributes).forEach((t=>{var r=g(t.nodeName);this.attributes[r]=new D(e,r,t.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue())this.getAttribute("style").getString().split(";").map((e=>e.trim())).forEach((t=>{if(t){var[r,n]=t.split(":").map((e=>e.trim()));this.styles[r]=new D(e,r,n)}}));var{definitions:n}=e,s=this.getAttribute("id");s.hasValue()&&(n[s.getString()]||(n[s.getString()]=this)),Array.from(t.childNodes).forEach((t=>{if(1===t.nodeType)this.addChild(t);else if(r&&(3===t.nodeType||4===t.nodeType)){var n=e.createTextNode(t);n.getText().length>0&&this.addChild(n)}}))}}getAttribute(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.attributes[e];if(!r&&t){var n=new D(this.document,e,"");return this.attributes[e]=n,n}return r||D.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if("href"===e||e.endsWith(":href"))return this.attributes[e];return D.empty(this.document)}getStyle(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.styles[e];if(n)return n;var s=this.getAttribute(e);if(null!=s&&s.hasValue())return this.styles[e]=s,s;if(!r){var{parent:o}=this;if(o){var i=o.getStyle(e);if(null!=i&&i.hasValue())return i}}if(t){var a=new D(this.document,e,"");return this.styles[e]=a,a}return n||D.empty(this.document)}render(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=te.fromElement(this.document,this);t&&t.apply(e);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var n=r.getDefinition();n&&n.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach((t=>{t.render(e)}))}addChild(e){var t=e instanceof re?e:this.document.createElement(e);t.parent=this,re.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t,{node:r}=this;if("function"==typeof r.matches)return r.matches(e);var n=null===(t=r.getAttribute)||void 0===t?void 0:t.call(r,"class");return!(!n||""===n)&&n.split(" ").some((t=>".".concat(t)===e))}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var r in e)if(!r.startsWith("@")&&this.matchesSelector(r)){var n=e[r],s=t[r];if(n)for(var o in n){var i=this.stylesSpecificity[o];void 0===i&&(i="000"),s>=i&&(this.styles[o]=n[o],this.stylesSpecificity[o]=s)}}}removeStyles(e,t){return t.reduce(((t,r)=>{var n=e.getStyle(r);if(!n.hasValue())return t;var s=n.getString();return n.setValue(""),[...t,[r,s]]}),[])}restoreStyles(e,t){t.forEach((t=>{var[r,n]=t;e.getStyle(r,!0).setValue(n)}))}isFirstChild(){var e;return 0===(null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this))}}re.ignoreChildTypes=["title"];class ne extends re{constructor(e,t,r){super(e,t,r)}}function se(e){var t=e.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function oe(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function ie(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}class ae{constructor(e,t,r,n,s,o){var i=o?"string"==typeof o?ae.parse(o):o:{};this.fontFamily=s||i.fontFamily,this.fontSize=n||i.fontSize,this.fontStyle=e||i.fontStyle,this.fontWeight=r||i.fontWeight,this.fontVariant=t||i.fontVariant}static parse(){var e=arguments.length>1?arguments[1]:void 0,t="",r="",n="",s="",o="",i=c(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),a={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return i.forEach((e=>{switch(!0){case!a.fontStyle&&ae.styles.includes(e):"inherit"!==e&&(t=e),a.fontStyle=!0;break;case!a.fontVariant&&ae.variants.includes(e):"inherit"!==e&&(r=e),a.fontStyle=!0,a.fontVariant=!0;break;case!a.fontWeight&&ae.weights.includes(e):"inherit"!==e&&(n=e),a.fontStyle=!0,a.fontVariant=!0,a.fontWeight=!0;break;case!a.fontSize:"inherit"!==e&&([s]=e.split("/")),a.fontStyle=!0,a.fontVariant=!0,a.fontWeight=!0,a.fontSize=!0;break;default:"inherit"!==e&&(o+=e)}})),new ae(t,r,n,s,o,e)}toString(){return[oe(this.fontStyle),this.fontVariant,ie(this.fontWeight),this.fontSize,(e=this.fontFamily,"undefined"==typeof process?e:e.trim().split(",").map(se).join(","))].join(" ").trim();var e}}ae.styles="normal|italic|oblique|inherit",ae.variants="normal|small-caps|inherit",ae.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class le{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=r,this.y2=n,this.addPoint(e,t),this.addPoint(r,n)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){void 0!==e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),void 0!==t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:r,x2:n,y2:s}=e;this.addPoint(t,r),this.addPoint(n,s)}}sumCubic(e,t,r,n,s){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*r+3*(1-e)*Math.pow(e,2)*n+Math.pow(e,3)*s}bezierCurveAdd(e,t,r,n,s){var o=6*t-12*r+6*n,i=-3*t+9*r-9*n+3*s,a=3*r-3*t;if(0!==i){var l=Math.pow(o,2)-4*a*i;if(!(l<0)){var u=(-o+Math.sqrt(l))/(2*i);0<u&&u<1&&(e?this.addX(this.sumCubic(u,t,r,n,s)):this.addY(this.sumCubic(u,t,r,n,s)));var c=(-o-Math.sqrt(l))/(2*i);0<c&&c<1&&(e?this.addX(this.sumCubic(c,t,r,n,s)):this.addY(this.sumCubic(c,t,r,n,s)))}}else{if(0===o)return;var d=-a/o;0<d&&d<1&&(e?this.addX(this.sumCubic(d,t,r,n,s)):this.addY(this.sumCubic(d,t,r,n,s)))}}addBezierCurve(e,t,r,n,s,o,i,a){this.addPoint(e,t),this.addPoint(i,a),this.bezierCurveAdd(!0,e,r,s,i),this.bezierCurveAdd(!1,t,n,o,a)}addQuadraticCurve(e,t,r,n,s,o){var i=e+2/3*(r-e),a=t+2/3*(n-t),l=i+1/3*(s-e),u=a+1/3*(o-t);this.addBezierCurve(e,t,i,l,a,u,s,o)}isPointInBox(e,t){var{x1:r,y1:n,x2:s,y2:o}=this;return r<=e&&e<=s&&n<=t&&t<=o}}class ue extends a.SVGPathData{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new F(0,0),this.control=new F(0,0),this.current=new F(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:t}=this;return e>=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",r=new F(this.command[e],this.command[t]);return this.makeAbsolute(r)}getAsControlPoint(e,t){var r=this.getPoint(e,t);return this.control=r,r}getAsCurrentPoint(e,t){var r=this.getPoint(e,t);return this.current=r,r}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==a.SVGPathData.CURVE_TO&&e!==a.SVGPathData.SMOOTH_CURVE_TO&&e!==a.SVGPathData.QUAD_TO&&e!==a.SVGPathData.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:r},control:{x:n,y:s}}=this;return new F(2*t-n,2*r-s)}makeAbsolute(e){if(this.command.relative){var{x:t,y:r}=this.current;e.x+=t,e.y+=r}return e}addMarker(e,t,r){var{points:n,angles:s}=this;r&&s.length>0&&!s[s.length-1]&&(s[s.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,r=0;r<t;r++)if(!e[r])for(var n=r+1;n<t;n++)if(e[n]){e[r]=e[n];break}return e}}class ce extends re{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,t=this;t;){var r=t.getStyle("opacity",!1,!0);r.hasValue(!0)&&(e*=r.getNumber()),t=t.parent}return e}setContext(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),s=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var i=r.getFillStyleDefinition(this,n);i&&(e.fillStyle=i)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var a=r.getColor();"inherit"!==a&&(e.fillStyle="none"===a?"rgba(0,0,0,0)":a)}if(n.hasValue()){var l=new D(this.document,"fill",e.fillStyle).addOpacity(n).getColor();e.fillStyle=l}if(s.isUrlDefinition()){var u=s.getFillStyleDefinition(this,o);u&&(e.strokeStyle=u)}else if(s.hasValue()){"currentColor"===s.getString()&&s.setValue(this.getStyle("color").getColor());var c=s.getString();"inherit"!==c&&(e.strokeStyle="none"===c?"rgba(0,0,0,0)":c)}if(o.hasValue()){var d=new D(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=d}var h=this.getStyle("stroke-width");if(h.hasValue()){var p=h.getPixels();e.lineWidth=p||O}var g=this.getStyle("stroke-linecap"),f=this.getStyle("stroke-linejoin"),j=this.getStyle("stroke-miterlimit"),y=this.getStyle("stroke-dasharray"),v=this.getStyle("stroke-dashoffset");if(g.hasValue()&&(e.lineCap=g.getString()),f.hasValue()&&(e.lineJoin=f.getString()),j.hasValue()&&(e.miterLimit=j.getNumber()),y.hasValue()&&"none"!==y.getString()){var x=m(y.getString());void 0!==e.setLineDash?e.setLineDash(x):void 0!==e.webkitLineDash?e.webkitLineDash=x:void 0===e.mozDash||1===x.length&&0===x[0]||(e.mozDash=x);var b=v.getPixels();void 0!==e.lineDashOffset?e.lineDashOffset=b:void 0!==e.webkitLineDashOffset?e.webkitLineDashOffset=b:void 0!==e.mozDashOffset&&(e.mozDashOffset=b)}}if(this.modifiedEmSizeStack=!1,void 0!==e.font){var _=this.getStyle("font"),w=this.getStyle("font-style"),S=this.getStyle("font-variant"),T=this.getStyle("font-weight"),A=this.getStyle("font-size"),P=this.getStyle("font-family"),C=new ae(w.getString(),S.getString(),T.getString(),A.hasValue()?"".concat(A.getPixels(!0),"px"):"",P.getString(),ae.parse(_.getString(),e.font));w.setValue(C.fontStyle),S.setValue(C.fontVariant),T.setValue(C.fontWeight),A.setValue(C.fontSize),P.setValue(C.fontFamily),e.font=C.toString(),A.isPixels()&&(this.document.emSize=A.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class de extends ce{constructor(e,t,r){super(e,t,r),this.type="path",this.pathParser=null,this.pathParser=new ue(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,r=new le;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case ue.MOVE_TO:this.pathM(e,r);break;case ue.LINE_TO:this.pathL(e,r);break;case ue.HORIZ_LINE_TO:this.pathH(e,r);break;case ue.VERT_LINE_TO:this.pathV(e,r);break;case ue.CURVE_TO:this.pathC(e,r);break;case ue.SMOOTH_CURVE_TO:this.pathS(e,r);break;case ue.QUAD_TO:this.pathQ(e,r);break;case ue.SMOOTH_QUAD_TO:this.pathT(e,r);break;case ue.ARC:this.pathA(e,r);break;case ue.CLOSE_PATH:this.pathZ(e,r)}return r}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),r=e.getMarkerAngles();return t.map(((e,t)=>[e,r[t]]))}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");""!==e.fillStyle&&("inherit"!==t.getString("inherit")?e.fill(t.getString()):e.fill()),""!==e.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var r=this.getMarkers();if(r){var n=r.length-1,s=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),i=this.getStyle("marker-end");if(s.isUrlDefinition()){var a=s.getDefinition(),[l,u]=r[0];a.render(e,l,u)}if(o.isUrlDefinition())for(var c=o.getDefinition(),d=1;d<n;d++){var[h,m]=r[d];c.render(e,h,m)}if(i.isUrlDefinition()){var p=i.getDefinition(),[g,f]=r[n];p.render(e,g,f)}}}static pathM(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){var{pathParser:r}=this,{point:n}=de.pathM(r),{x:s,y:o}=n;r.addMarker(n),t.addPoint(s,o),e&&e.moveTo(s,o)}static pathL(e){var{current:t}=e;return{current:t,point:e.getAsCurrentPoint()}}pathL(e,t){var{pathParser:r}=this,{current:n,point:s}=de.pathL(r),{x:o,y:i}=s;r.addMarker(s,n),t.addPoint(o,i),e&&e.lineTo(o,i)}static pathH(e){var{current:t,command:r}=e,n=new F((r.relative?t.x:0)+r.x,t.y);return e.current=n,{current:t,point:n}}pathH(e,t){var{pathParser:r}=this,{current:n,point:s}=de.pathH(r),{x:o,y:i}=s;r.addMarker(s,n),t.addPoint(o,i),e&&e.lineTo(o,i)}static pathV(e){var{current:t,command:r}=e,n=new F(t.x,(r.relative?t.y:0)+r.y);return e.current=n,{current:t,point:n}}pathV(e,t){var{pathParser:r}=this,{current:n,point:s}=de.pathV(r),{x:o,y:i}=s;r.addMarker(s,n),t.addPoint(o,i),e&&e.lineTo(o,i)}static pathC(e){var{current:t}=e;return{current:t,point:e.getPoint("x1","y1"),controlPoint:e.getAsControlPoint("x2","y2"),currentPoint:e.getAsCurrentPoint()}}pathC(e,t){var{pathParser:r}=this,{current:n,point:s,controlPoint:o,currentPoint:i}=de.pathC(r);r.addMarker(i,o,s),t.addBezierCurve(n.x,n.y,s.x,s.y,o.x,o.y,i.x,i.y),e&&e.bezierCurveTo(s.x,s.y,o.x,o.y,i.x,i.y)}static pathS(e){var{current:t}=e;return{current:t,point:e.getReflectedControlPoint(),controlPoint:e.getAsControlPoint("x2","y2"),currentPoint:e.getAsCurrentPoint()}}pathS(e,t){var{pathParser:r}=this,{current:n,point:s,controlPoint:o,currentPoint:i}=de.pathS(r);r.addMarker(i,o,s),t.addBezierCurve(n.x,n.y,s.x,s.y,o.x,o.y,i.x,i.y),e&&e.bezierCurveTo(s.x,s.y,o.x,o.y,i.x,i.y)}static pathQ(e){var{current:t}=e;return{current:t,controlPoint:e.getAsControlPoint("x1","y1"),currentPoint:e.getAsCurrentPoint()}}pathQ(e,t){var{pathParser:r}=this,{current:n,controlPoint:s,currentPoint:o}=de.pathQ(r);r.addMarker(o,s,s),t.addQuadraticCurve(n.x,n.y,s.x,s.y,o.x,o.y),e&&e.quadraticCurveTo(s.x,s.y,o.x,o.y)}static pathT(e){var{current:t}=e,r=e.getReflectedControlPoint();return e.control=r,{current:t,controlPoint:r,currentPoint:e.getAsCurrentPoint()}}pathT(e,t){var{pathParser:r}=this,{current:n,controlPoint:s,currentPoint:o}=de.pathT(r);r.addMarker(o,s,s),t.addQuadraticCurve(n.x,n.y,s.x,s.y,o.x,o.y),e&&e.quadraticCurveTo(s.x,s.y,o.x,o.y)}static pathA(e){var{current:t,command:r}=e,{rX:n,rY:s,xRot:o,lArcFlag:i,sweepFlag:a}=r,l=o*(Math.PI/180),u=e.getAsCurrentPoint(),c=new F(Math.cos(l)*(t.x-u.x)/2+Math.sin(l)*(t.y-u.y)/2,-Math.sin(l)*(t.x-u.x)/2+Math.cos(l)*(t.y-u.y)/2),d=Math.pow(c.x,2)/Math.pow(n,2)+Math.pow(c.y,2)/Math.pow(s,2);d>1&&(n*=Math.sqrt(d),s*=Math.sqrt(d));var h=(i===a?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(s,2)-Math.pow(n,2)*Math.pow(c.y,2)-Math.pow(s,2)*Math.pow(c.x,2))/(Math.pow(n,2)*Math.pow(c.y,2)+Math.pow(s,2)*Math.pow(c.x,2)));isNaN(h)&&(h=0);var m=new F(h*n*c.y/s,h*-s*c.x/n),p=new F((t.x+u.x)/2+Math.cos(l)*m.x-Math.sin(l)*m.y,(t.y+u.y)/2+Math.sin(l)*m.x+Math.cos(l)*m.y),g=E([1,0],[(c.x-m.x)/n,(c.y-m.y)/s]),f=[(c.x-m.x)/n,(c.y-m.y)/s],j=[(-c.x-m.x)/n,(-c.y-m.y)/s],y=E(f,j);return C(f,j)<=-1&&(y=Math.PI),C(f,j)>=1&&(y=0),{currentPoint:u,rX:n,rY:s,sweepFlag:a,xAxisRotation:l,centp:p,a1:g,ad:y}}pathA(e,t){var{pathParser:r}=this,{currentPoint:n,rX:s,rY:o,sweepFlag:i,xAxisRotation:a,centp:l,a1:u,ad:c}=de.pathA(r),d=1-i?1:-1,h=u+d*(c/2),m=new F(l.x+s*Math.cos(h),l.y+o*Math.sin(h));if(r.addMarkerAngle(m,h-d*Math.PI/2),r.addMarkerAngle(n,h-d*Math.PI),t.addPoint(n.x,n.y),e&&!isNaN(u)&&!isNaN(c)){var p=s>o?s:o,g=s>o?1:s/o,f=s>o?o/s:1;e.translate(l.x,l.y),e.rotate(a),e.scale(g,f),e.arc(0,0,p,u,u+c,Boolean(1-i)),e.scale(1/g,1/f),e.rotate(-a),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){de.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class he extends de{constructor(e,t,r){super(e,t,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class me extends ce{constructor(e,t,r){super(e,t,new.target===me||r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(e,t);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if("text"!==this.type)return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach(((r,n)=>{var s=this.getChildBoundingBox(e,this,this,n);t?t.addBoundingBox(s):t=s})),t}getFontSize(){var{document:e,parent:t}=this,r=ae.parse(e.ctx.font).fontSize;return t.getStyle("font-size").getNumber(r)}getTElementBoundingBox(e){var t=this.getFontSize();return new le(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,r){var n=t[r],s=null;if(e.isArabic){var o=t.length,i=t[r-1],a=t[r+1],l="isolated";if((0===r||" "===i)&&r<o-1&&" "!==a&&(l="terminal"),r>0&&" "!==i&&r<o-1&&" "!==a&&(l="medial"),r>0&&" "!==i&&(r===o-1||" "===a)&&(l="initial"),void 0!==e.glyphs[n]){var u=e.glyphs[n];s=u instanceof he?u:u[l]}}else s=e.glyphs[n];return s||(s=e.missingGlyph),s}getText(){return""}getTextFromNode(e){var t=e||this.node,r=Array.from(t.parentNode.childNodes),n=r.indexOf(t),s=r.length-1,o=c(t.textContent||"");return 0===n&&(o=d(o)),n===s&&(o=h(o)),o}renderChildren(e){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach(((t,r)=>{this.renderChild(e,this,this,r)}));var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}else this.renderTElementChildren(e)}renderTElementChildren(e){var{document:t,parent:r}=this,n=this.getText(),s=r.getStyle("font-family").getDefinition();if(s)for(var{unitsPerEm:o}=s.fontFace,i=ae.parse(t.ctx.font),a=r.getStyle("font-size").getNumber(i.fontSize),l=r.getStyle("font-style").getString(i.fontStyle),u=a/o,c=s.isRTL?n.split("").reverse().join(""):n,d=m(r.getAttribute("dx").getString()),h=c.length,p=0;p<h;p++){var g=this.getGlyph(s,c,p);e.translate(this.x,this.y),e.scale(u,-u);var f=e.lineWidth;e.lineWidth=e.lineWidth*o/a,"italic"===l&&e.transform(1,0,.4,1,0,0),g.render(e),"italic"===l&&e.transform(1,0,-.4,1,0,0),e.lineWidth=f,e.scale(1/u,-1/u),e.translate(-this.x,-this.y),this.x+=a*(g.horizAdvX||s.horizAdvX)/o,void 0===d[p]||isNaN(d[p])||(this.x+=d[p])}else{var{x:j,y}=this;e.fillStyle&&e.fillText(n,j,y),e.strokeStyle&&e.strokeText(n,j,y)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),r=0;r="start"===t?e.x-this.minX:"end"===t?e.x-this.maxX:e.x-(this.minX+this.maxX)/2;for(var n=this.textChunkStart;n<this.leafTexts.length;n++)this.leafTexts[n].x+=r;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach(((t,r)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,r)})),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,r,n){var s=r.children[n];s.children.length>0?s.children.forEach(((r,n)=>{t.adjustChildCoordinatesRecursiveCore(e,t,s,n)})):this.adjustChildCoordinates(e,t,r,n)}adjustChildCoordinates(e,t,r,n){var s=r.children[n];if("function"!=typeof s.measureText)return s;e.save(),s.setContext(e,!0);var o=s.getAttribute("x"),i=s.getAttribute("y"),a=s.getAttribute("dx"),l=s.getAttribute("dy"),u=s.getStyle("font-family").getDefinition(),c=Boolean(u)&&u.isRTL;0===n&&(o.hasValue()||o.setValue(s.getInheritedAttribute("x")),i.hasValue()||i.setValue(s.getInheritedAttribute("y")),a.hasValue()||a.setValue(s.getInheritedAttribute("dx")),l.hasValue()||l.setValue(s.getInheritedAttribute("dy")));var d=s.measureText(e);return c&&(t.x-=d),o.hasValue()?(t.applyAnchoring(),s.x=o.getPixels("x"),a.hasValue()&&(s.x+=a.getPixels("x"))):(a.hasValue()&&(t.x+=a.getPixels("x")),s.x=t.x),t.x=s.x,c||(t.x+=d),i.hasValue()?(s.y=i.getPixels("y"),l.hasValue()&&(s.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),s.y=t.y),t.y=s.y,t.leafTexts.push(s),t.minX=Math.min(t.minX,s.x,s.x+d),t.maxX=Math.max(t.maxX,s.x,s.x+d),s.clearContext(e),e.restore(),s}getChildBoundingBox(e,t,r,n){var s=r.children[n];if("function"!=typeof s.getBoundingBox)return null;var o=s.getBoundingBox(e);return o?(s.children.forEach(((r,n)=>{var i=t.getChildBoundingBox(e,t,s,n);o.addBoundingBox(i)})),o):null}renderChild(e,t,r,n){var s=r.children[n];s.render(e),s.children.forEach(((r,n)=>{t.renderChild(e,t,s,n)}))}measureText(e){var{measureCache:t}=this;if(~t)return t;var r=this.getText(),n=this.measureTargetText(e,r);return this.measureCache=n,n}measureTargetText(e,t){if(!t.length)return 0;var{parent:r}=this,n=r.getStyle("font-family").getDefinition();if(n){for(var s=this.getFontSize(),o=n.isRTL?t.split("").reverse().join(""):t,i=m(r.getAttribute("dx").getString()),a=o.length,l=0,u=0;u<a;u++){l+=(this.getGlyph(n,o,u).horizAdvX||n.horizAdvX)*s/n.fontFace.unitsPerEm,void 0===i[u]||isNaN(i[u])||(l+=i[u])}return l}if(!e.measureText)return 10*t.length;e.save(),this.setContext(e,!0);var{width:c}=e.measureText(t);return this.clearContext(e),e.restore(),c}getInheritedAttribute(e){for(var t=this;t instanceof me&&t.isFirstChild();){var r=t.parent.getAttribute(e);if(r.hasValue(!0))return r.getValue("0");t=t.parent}return null}}class pe extends me{constructor(e,t,r){super(e,t,new.target===pe||r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class ge extends pe{constructor(){super(...arguments),this.type="textNode"}}class fe extends ce{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:r}=this,{screen:n,window:s}=r,o=e.canvas;if(n.setDefaults(e),o.style&&void 0!==e.font&&s&&void 0!==s.getComputedStyle){e.font=s.getComputedStyle(o).getPropertyValue("font");var i=new D(r,"fontSize",ae.parse(e.font).fontSize);i.hasValue()&&(r.rootEmSize=i.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:a,height:l}=n.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),c=this.getAttribute("refY"),d=this.getAttribute("viewBox"),h=d.hasValue()?m(d.getString()):null,p=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),g=0,f=0,j=0,y=0;h&&(g=h[0],f=h[1]),this.root||(a=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),"marker"===this.type&&(j=g,y=f,g=0,f=0)),n.viewPort.setCurrent(a,l),!this.node||this.parent&&"foreignObject"!==(null===(t=this.node.parentNode)||void 0===t?void 0:t.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),h&&(a=h[2],l=h[3]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:a,height:n.viewPort.height,desiredHeight:l,minX:g,minY:f,refX:u.getValue(),refY:c.getValue(),clip:p,clipX:j,clipY:y}),h&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(a,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.getAttribute("width",!0),s=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),i=this.getAttribute("style"),a=n.getNumber(0),l=s.getNumber(0);if(r)if("string"==typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var u=this.getAttribute("preserveAspectRatio");u.hasValue()&&u.setValue(u.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(e),s.setValue(t),o.hasValue()||o.setValue("0 0 ".concat(a||e," ").concat(l||t)),i.hasValue()){var c=this.getStyle("width"),d=this.getStyle("height");c.hasValue()&&c.setValue("".concat(e,"px")),d.hasValue()&&d.setValue("".concat(t,"px"))}}}class je extends de{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),s=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),i=this.getAttribute("ry"),a=o.getPixels("x"),l=i.getPixels("y");if(o.hasValue()&&!i.hasValue()&&(l=a),i.hasValue()&&!o.hasValue()&&(a=l),a=Math.min(a,n/2),l=Math.min(l,s/2),e){var u=(Math.sqrt(2)-1)/3*4;e.beginPath(),s>0&&n>0&&(e.moveTo(t+a,r),e.lineTo(t+n-a,r),e.bezierCurveTo(t+n-a+u*a,r,t+n,r+l-u*l,t+n,r+l),e.lineTo(t+n,r+s-l),e.bezierCurveTo(t+n,r+s-l+u*l,t+n-a+u*a,r+s,t+n-a,r+s),e.lineTo(t+a,r+s),e.bezierCurveTo(t+a-u*a,r+s,t,r+s-l+u*l,t,r+s-l),e.lineTo(t,r+l),e.bezierCurveTo(t,r+l-u*l,t+a-u*a,r,t+a,r),e.closePath())}return new le(t,r,t+n,r+s)}getMarkers(){return null}}class ye extends de{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return e&&n>0&&(e.beginPath(),e.arc(t,r,n,0,2*Math.PI,!1),e.closePath()),new le(t-n,r-n,t+n,r+n)}getMarkers(){return null}}class ve extends de{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),s=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&r>0&&n>0&&(e.beginPath(),e.moveTo(s+r,o),e.bezierCurveTo(s+r,o+t*n,s+t*r,o+n,s,o+n),e.bezierCurveTo(s-t*r,o+n,s-r,o+t*n,s-r,o),e.bezierCurveTo(s-r,o-t*n,s-t*r,o-n,s,o-n),e.bezierCurveTo(s+t*r,o-n,s+r,o-t*n,s+r,o),e.closePath()),new le(s-r,o-n,s+r,o+n)}getMarkers(){return null}}class xe extends de{constructor(){super(...arguments),this.type="line"}getPoints(){return[new F(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new F(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:r},{x:n,y:s}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,r),e.lineTo(n,s)),new le(t,r,n,s)}getMarkers(){var[e,t]=this.getPoints(),r=e.angleTo(t);return[[e,r],[t,r]]}}class be extends de{constructor(e,t,r){super(e,t,r),this.type="polyline",this.points=[],this.points=F.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:r,y:n}]=t,s=new le(r,n);return e&&(e.beginPath(),e.moveTo(r,n)),t.forEach((t=>{var{x:r,y:n}=t;s.addPoint(r,n),e&&e.lineTo(r,n)})),s}getMarkers(){var{points:e}=this,t=e.length-1,r=[];return e.forEach(((n,s)=>{s!==t&&r.push([n,n.angleTo(e[s+1])])})),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}}class _e extends be{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:r,y:n}]=this.points;return e&&(e.lineTo(r,n),e.closePath()),t}}class we extends re{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,r){var n=this.getStyle("width").getPixels("x",!0),s=this.getStyle("height").getPixels("y",!0),o=new fe(this.document,null);o.attributes.viewBox=new D(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new D(this.document,"width","".concat(n,"px")),o.attributes.height=new D(this.document,"height","".concat(s,"px")),o.attributes.transform=new D(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var i=this.document.createCanvas(n,s),a=i.getContext("2d"),l=this.getAttribute("x"),u=this.getAttribute("y");l.hasValue()&&u.hasValue()&&a.translate(l.getPixels("x",!0),u.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var d=-1;d<=1;d++)a.save(),o.attributes.x=new D(this.document,"x",c*i.width),o.attributes.y=new D(this.document,"y",d*i.height),o.render(a),a.restore();return e.createPattern(i,"repeat")}}class Se extends re{constructor(){super(...arguments),this.type="marker"}render(e,t,r){if(t){var{x:n,y:s}=t,o=this.getAttribute("orient").getString("auto"),i=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(n,s),"auto"===o&&e.rotate(r),"strokeWidth"===i&&e.scale(e.lineWidth,e.lineWidth),e.save();var a=new fe(this.document,null);a.type=this.type,a.attributes.viewBox=new D(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.refX=new D(this.document,"refX",this.getAttribute("refX").getValue()),a.attributes.refY=new D(this.document,"refY",this.getAttribute("refY").getValue()),a.attributes.width=new D(this.document,"width",this.getAttribute("markerWidth").getValue()),a.attributes.height=new D(this.document,"height",this.getAttribute("markerHeight").getValue()),a.attributes.overflow=new D(this.document,"overflow",this.getAttribute("overflow").getValue()),a.attributes.fill=new D(this.document,"fill",this.getAttribute("fill").getColor("black")),a.attributes.stroke=new D(this.document,"stroke",this.getAttribute("stroke").getValue("none")),a.children=this.children,a.render(e),e.restore(),"strokeWidth"===i&&e.scale(1/e.lineWidth,1/e.lineWidth),"auto"===o&&e.rotate(-r),e.translate(-n,-s)}}}class Te extends re{constructor(){super(...arguments),this.type="defs"}render(){}}class Ae extends ce{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new le;return this.children.forEach((r=>{t.addBoundingBox(r.getBoundingBox(e))})),t}}class Oe extends re{constructor(e,t,r){super(e,t,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:n,children:s}=this;s.forEach((e=>{"stop"===e.type&&n.push(e)}))}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,r){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var{stops:s}=n,o=this.getGradient(e,t);if(!o)return this.addParentOpacity(r,s[s.length-1].color);if(s.forEach((e=>{o.addColorStop(e.offset,this.addParentOpacity(r,e.color))})),this.getAttribute("gradientTransform").hasValue()){var{document:i}=this,{MAX_VIRTUAL_PIXELS:a,viewPort:l}=i.screen,[u]=l.viewPorts,c=new je(i,null);c.attributes.x=new D(i,"x",-a/3),c.attributes.y=new D(i,"y",-a/3),c.attributes.width=new D(i,"width",a),c.attributes.height=new D(i,"height",a);var d=new Ae(i,null);d.attributes.transform=new D(i,"transform",this.getAttribute("gradientTransform").getValue()),d.children=[c];var h=new fe(i,null);h.attributes.x=new D(i,"x",0),h.attributes.y=new D(i,"y",0),h.attributes.width=new D(i,"width",u.width),h.attributes.height=new D(i,"height",u.height),h.children=[d];var m=i.createCanvas(u.width,u.height),p=m.getContext("2d");return p.fillStyle=o,h.render(p),p.createPattern(m,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach((t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())}))}addParentOpacity(e,t){return e.hasValue()?new D(this.document,"color",t).addOpacity(e).getColor():t}}class Pe extends Oe{constructor(e,t,r){super(e,t,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var r="objectBoundingBox"===this.getGradientUnits(),n=r?t.getBoundingBox(e):null;if(r&&!n)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 s=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),i=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),a=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return s===i&&o===a?null:e.createLinearGradient(s,o,i,a)}}class Ce extends Oe{constructor(e,t,r){super(e,t,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var r="objectBoundingBox"===this.getGradientUnits(),n=t.getBoundingBox(e);if(r&&!n)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 s=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),i=s,a=o;this.getAttribute("fx").hasValue()&&(i=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(a=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return e.createRadialGradient(i,a,u,s,o,l)}}class Ee extends re{constructor(e,t,r){super(e,t,r),this.type="stop";var n=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),s=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);""===o.getString()&&o.setValue("#000"),s.hasValue()&&(o=o.addOpacity(s)),this.offset=n,this.color=o.getColor()}}class Me extends re{constructor(e,t,r){super(e,t,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new D(e,"values",null);var n=this.getAttribute("values");n.hasValue()&&this.values.setValue(n.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return"CSS"===e?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:r,to:n}=this.getProgress(),s=r.getNumber()+(n.getNumber()-r.getNumber())*t;return"%"===e&&(s*=100),"".concat(s).concat(e)}update(e){var{parent:t}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==n||this.frozen){if("remove"===n&&!this.removed)return this.removed=!0,r.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=r.getString();return!1}this.duration+=e;var s=!1;if(this.begin<this.duration){var o=this.calcValue(),i=this.getAttribute("type");if(i.hasValue()){var a=i.getString();o="".concat(a,"(").concat(o,")")}r.setValue(o),s=!0}return s}getProgress(){var{document:e,values:t}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var n=r.progress*(t.getValue().length-1),s=Math.floor(n),o=Math.ceil(n);r.from=new D(e,"from",parseFloat(t.getValue()[s])),r.to=new D(e,"to",parseFloat(t.getValue()[o])),r.progress=(n-s)/(o-s)}else r.from=this.from,r.to=this.to;return r}}class Ne extends Me{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:t,to:r}=this.getProgress(),n=new i(t.getColor()),s=new i(r.getColor());if(n.ok&&s.ok){var o=n.r+(s.r-n.r)*e,a=n.g+(s.g-n.g)*e,l=n.b+(s.b-n.b)*e;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(a),", ").concat(Math.floor(l),")")}return this.getAttribute("from").getColor()}}class ke extends Me{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:t,to:r}=this.getProgress(),n=m(t.getString()),s=m(r.getString()),o=n.map(((t,r)=>t+(s[r]-t)*e)).join(" ");return o}}class Ve extends re{constructor(e,t,r){super(e,t,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:n}=e,{children:s}=this;for(var o of s)switch(o.type){case"font-face":this.fontFace=o;var i=o.getStyle("font-family");i.hasValue()&&(n[i.getString()]=this);break;case"missing-glyph":this.missingGlyph=o;break;case"glyph":var a=o;a.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[a.unicode]&&(this.glyphs[a.unicode]={}),this.glyphs[a.unicode][a.arabicForm]=a):this.glyphs[a.unicode]=a}}render(){}}class Re extends re{constructor(e,t,r){super(e,t,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class Ie extends de{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class Le extends me{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}class De extends me{constructor(e,t,r){super(e,t,r),this.type="a";var{childNodes:n}=t,s=n[0],o=n.length>0&&Array.from(n).every((e=>3===e.nodeType));this.hasText=o,this.text=o?this.getTextFromNode(s):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:r,y:n}=this,{mouse:s}=t.screen,o=new D(t,"fontSize",ae.parse(t.ctx.font).fontSize);s.isWorking()&&s.checkBoundingBox(this,new le(r,n-o.getPixels("y"),r+this.measureText(e),n))}else if(this.children.length>0){var i=new Ae(this.document,null);i.children=this.children,i.parent=this,i.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function Be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(r),!0).forEach((function(t){(0,s.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}class ze extends me{constructor(e,t,r){super(e,t,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var n=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(n)}getText(){return this.text}path(e){var{dataArray:t}=this;e&&e.beginPath(),t.forEach((t=>{var{type:r,points:n}=t;switch(r){case ue.LINE_TO:e&&e.lineTo(n[0],n[1]);break;case ue.MOVE_TO:e&&e.moveTo(n[0],n[1]);break;case ue.CURVE_TO:e&&e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case ue.QUAD_TO:e&&e.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case ue.ARC:var[s,o,i,a,l,u,c,d]=n,h=i>a?i:a,m=i>a?1:i/a,p=i>a?a/i:1;e&&(e.translate(s,o),e.rotate(c),e.scale(m,p),e.arc(0,0,h,l,l+u,Boolean(1-d)),e.scale(1/m,1/p),e.rotate(-c),e.translate(-s,-o));break;case ue.CLOSE_PATH:e&&e.closePath()}}))}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:n}=this,s=e.fillStyle;"underline"===t&&e.beginPath(),n.forEach(((n,s)=>{var{p0:o,p1:i,rotation:a,text:l}=n;e.save(),e.translate(o.x,o.y),e.rotate(a),e.fillStyle&&e.fillText(l,0,0),e.strokeStyle&&e.strokeText(l,0,0),e.restore(),"underline"===t&&(0===s&&e.moveTo(o.x,o.y+r/8),e.lineTo(i.x,i.y+r/5))})),"underline"===t&&(e.lineWidth=r/20,e.strokeStyle=s,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,r,n,s,o,i,a,l){var u=o,c=this.measureText(e,a);" "===a&&"justify"===t&&r<n&&(c+=(n-r)/s),l>-1&&(u+=this.getLetterSpacingAt(l));var d=this.textHeight/20,h=this.getEquidistantPointOnPath(u,d,0),m=this.getEquidistantPointOnPath(u+c,d,0),p={p0:h,p1:m},g=h&&m?Math.atan2(m.y-h.y,m.x-h.x):0;if(i){var f=Math.cos(Math.PI/2+g)*i,j=Math.cos(-g)*i;p.p0=Fe(Fe({},h),{},{x:h.x+f,y:h.y+j}),p.p1=Fe(Fe({},m),{},{x:m.x+f,y:m.y+j})}return{offset:u+=c,segment:p,rotation:g}}measureText(e,t){var{measuresCache:r}=this,n=t||this.getText();if(r.has(n))return r.get(n);var s=this.measureTargetText(e,n);return r.set(n,s),s}setTextData(e){if(!this.glyphInfo){var t=this.getText(),r=t.split(""),n=t.split(" ").length-1,s=this.parent.getAttribute("dx").split().map((e=>e.getPixels("x"))),o=this.parent.getAttribute("dy").getPixels("y"),i=this.parent.getStyle("text-anchor").getString("start"),a=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),u=0;a.hasValue()&&"inherit"!==a.getValue()?a.hasValue()&&"initial"!==a.getValue()&&"unset"!==a.getValue()&&(u=a.getPixels()):u=l.getPixels();var c=[],d=t.length;this.letterSpacingCache=c;for(var h=0;h<d;h++)c.push(void 0!==s[h]?s[h]:u);var m=c.reduce(((e,t,r)=>0===r?0:e+t||0),0),p=this.measureText(e),g=Math.max(p+m,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var f=this.getPathLength(),j=this.getStyle("startOffset").getNumber(0)*f,y=0;"middle"!==i&&"center"!==i||(y=-g/2),"end"!==i&&"right"!==i||(y=-g),y+=j,r.forEach(((t,s)=>{var{offset:a,segment:l,rotation:u}=this.findSegmentToFitChar(e,i,g,f,n,y,o,t,s);y=a,l.p0&&l.p1&&this.glyphInfo.push({text:r[s],p0:l.p0,p1:l.p1,rotation:u})}))}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:r}=e;for(r.reset();!r.isEnd();){var{current:n}=r,s=n?n.x:0,o=n?n.y:0,i=r.next(),a=i.type,l=[];switch(i.type){case ue.MOVE_TO:this.pathM(r,l);break;case ue.LINE_TO:a=this.pathL(r,l);break;case ue.HORIZ_LINE_TO:a=this.pathH(r,l);break;case ue.VERT_LINE_TO:a=this.pathV(r,l);break;case ue.CURVE_TO:this.pathC(r,l);break;case ue.SMOOTH_CURVE_TO:a=this.pathS(r,l);break;case ue.QUAD_TO:this.pathQ(r,l);break;case ue.SMOOTH_QUAD_TO:a=this.pathT(r,l);break;case ue.ARC:l=this.pathA(r);break;case ue.CLOSE_PATH:de.pathZ(r)}i.type!==ue.CLOSE_PATH?t.push({type:a,points:l,start:{x:s,y:o},pathLength:this.calcLength(s,o,a,l)}):t.push({type:ue.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:r,y:n}=de.pathM(e).point;t.push(r,n)}pathL(e,t){var{x:r,y:n}=de.pathL(e).point;return t.push(r,n),ue.LINE_TO}pathH(e,t){var{x:r,y:n}=de.pathH(e).point;return t.push(r,n),ue.LINE_TO}pathV(e,t){var{x:r,y:n}=de.pathV(e).point;return t.push(r,n),ue.LINE_TO}pathC(e,t){var{point:r,controlPoint:n,currentPoint:s}=de.pathC(e);t.push(r.x,r.y,n.x,n.y,s.x,s.y)}pathS(e,t){var{point:r,controlPoint:n,currentPoint:s}=de.pathS(e);return t.push(r.x,r.y,n.x,n.y,s.x,s.y),ue.CURVE_TO}pathQ(e,t){var{controlPoint:r,currentPoint:n}=de.pathQ(e);t.push(r.x,r.y,n.x,n.y)}pathT(e,t){var{controlPoint:r,currentPoint:n}=de.pathT(e);return t.push(r.x,r.y,n.x,n.y),ue.QUAD_TO}pathA(e){var{rX:t,rY:r,sweepFlag:n,xAxisRotation:s,centp:o,a1:i,ad:a}=de.pathA(e);return 0===n&&a>0&&(a-=2*Math.PI),1===n&&a<0&&(a+=2*Math.PI),[o.x,o.y,t,r,i,a,s,n]}calcLength(e,t,r,n){var s=0,o=null,i=null,a=0;switch(r){case ue.LINE_TO:return this.getLineLength(e,t,n[0],n[1]);case ue.CURVE_TO:for(s=0,o=this.getPointOnCubicBezier(0,e,t,n[0],n[1],n[2],n[3],n[4],n[5]),a=.01;a<=1;a+=.01)i=this.getPointOnCubicBezier(a,e,t,n[0],n[1],n[2],n[3],n[4],n[5]),s+=this.getLineLength(o.x,o.y,i.x,i.y),o=i;return s;case ue.QUAD_TO:for(s=0,o=this.getPointOnQuadraticBezier(0,e,t,n[0],n[1],n[2],n[3]),a=.01;a<=1;a+=.01)i=this.getPointOnQuadraticBezier(a,e,t,n[0],n[1],n[2],n[3]),s+=this.getLineLength(o.x,o.y,i.x,i.y),o=i;return s;case ue.ARC:s=0;var l=n[4],u=n[5],c=n[4]+u,d=Math.PI/180;if(Math.abs(l-c)<d&&(d=Math.abs(l-c)),o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),u<0)for(a=l-d;a>c;a-=d)i=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],a,0),s+=this.getLineLength(o.x,o.y,i.x,i.y),o=i;else for(a=l+d;a<c;a+=d)i=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],a,0),s+=this.getLineLength(o.x,o.y,i.x,i.y),o=i;return i=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],c,0),s+=this.getLineLength(o.x,o.y,i.x,i.y)}return 0}getPointOnLine(e,t,r,n,s){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,a=(s-r)/(n-t+O),l=Math.sqrt(e*e/(1+a*a));n<t&&(l*=-1);var u=a*l,c=null;if(n===t)c={x:o,y:i+u};else if((i-r)/(o-t+O)===a)c={x:o+l,y:i+u};else{var d,h,m=this.getLineLength(t,r,n,s);if(m<O)return null;var p=(o-t)*(n-t)+(i-r)*(s-r);d=t+(p/=m*m)*(n-t),h=r+p*(s-r);var g=this.getLineLength(o,i,d,h),f=Math.sqrt(e*e-g*g);l=Math.sqrt(f*f/(1+a*a)),n<t&&(l*=-1),c={x:d+l,y:h+(u=a*l)}}return c}getPointOnPath(e){var t=this.getPathLength(),r=0,n=null;if(e<-5e-5||e-5e-5>t)return null;var{dataArray:s}=this;for(var o of s){if(!o||!(o.pathLength<5e-5||r+o.pathLength+5e-5<e)){var i=e-r,a=0;switch(o.type){case ue.LINE_TO:n=this.getPointOnLine(i,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case ue.ARC:var l=o.points[4],u=o.points[5],c=o.points[4]+u;if(a=l+i/o.pathLength*u,u<0&&a<c||u>=0&&a>c)break;n=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],a,o.points[6]);break;case ue.CURVE_TO:(a=i/o.pathLength)>1&&(a=1),n=this.getPointOnCubicBezier(a,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case ue.QUAD_TO:(a=i/o.pathLength)>1&&(a=1),n=this.getPointOnQuadraticBezier(a,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3])}if(n)return n;break}r+=o.pathLength}return null}getLineLength(e,t,r,n){return Math.sqrt((r-e)*(r-e)+(n-t)*(n-t))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(((e,t)=>t.pathLength>0?e+t.pathLength:e),0)),this.pathLength}getPointOnCubicBezier(e,t,r,n,s,o,i,a,l){return{x:a*M(e)+o*N(e)+n*k(e)+t*V(e),y:l*M(e)+i*N(e)+s*k(e)+r*V(e)}}getPointOnQuadraticBezier(e,t,r,n,s,o,i){return{x:o*R(e)+n*I(e)+t*L(e),y:i*R(e)+s*I(e)+r*L(e)}}getPointOnEllipticalArc(e,t,r,n,s,o){var i=Math.cos(o),a=Math.sin(o),l=r*Math.cos(s),u=n*Math.sin(s);return{x:e+(l*i-u*a),y:t+(l*a+u*i)}}buildEquidistantCache(e,t){var r=this.getPathLength(),n=t||.25,s=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==s||this.equidistantCache.precision!==n){this.equidistantCache={step:s,precision:n,points:[]};for(var o=0,i=0;i<=r;i+=n){var a=this.getPointOnPath(i),l=this.getPointOnPath(i+n);a&&l&&((o+=this.getLineLength(a.x,a.y,l.x,l.y))>=s&&(this.equidistantCache.points.push({x:a.x,y:a.y,distance:i}),o-=s))}}}getEquidistantPointOnPath(e,t,r){if(this.buildEquidistantCache(t,r),e<0||e-this.getPathLength()>5e-5)return null;var n=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}var Ue=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class He extends ce{constructor(e,t,r){super(e,t,r),this.type="image",this.loaded=!1;var n=this.getHrefAttribute().getString();if(n){var s=n.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(n);e.images.push(this),s?this.loadSvg(n):this.loadImage(n),this.isSvg=s}}loadImage(e){var t=this;return(0,n.default)((function*(){try{var r=yield t.document.createImage(e);t.image=r}catch(t){console.error('Error while loading image "'.concat(e,'":'),t)}t.loaded=!0}))()}loadSvg(e){var t=this;return(0,n.default)((function*(){var r=Ue.exec(e);if(r){var n=r[5];"base64"===r[4]?t.image=atob(n):t.image=decodeURIComponent(n)}else try{var s=yield t.document.fetch(e),o=yield s.text();t.image=o}catch(t){console.error('Error while loading image "'.concat(e,'":'),t)}t.loaded=!0}))()}renderChildren(e){var{document:t,image:r,loaded:n}=this,s=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),i=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");if(n&&r&&i&&a){if(e.save(),e.translate(s,o),this.isSvg){var l=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:i,scaleHeight:a});l.document.documentElement.parent=this,l.render()}else{var u=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i,desiredWidth:u.width,height:a,desiredHeight:u.height}),this.loaded&&(void 0===u.complete||u.complete)&&e.drawImage(u,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new le(e,t,e+r,t+n)}}class Xe extends ce{constructor(){super(...arguments),this.type="symbol"}render(e){}}class Ye{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var r=this;return(0,n.default)((function*(){try{var{document:n}=r,s=(yield n.canvg.parser.load(t)).getElementsByTagName("font");Array.from(s).forEach((t=>{var r=n.createElement(t);n.definitions[e]=r}))}catch(e){console.error('Error while loading font "'.concat(t,'":'),e)}r.loaded=!0}))()}}class Ge extends re{constructor(e,t,r){super(e,t,r),this.type="style",c(Array.from(t.childNodes).map((e=>e.textContent)).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach((t=>{var r=t.trim();if(r){var n=r.split("{"),s=n[0].split(","),o=n[1].split(";");s.forEach((t=>{var r=t.trim();if(r){var n=e.styles[r]||{};if(o.forEach((t=>{var r=t.indexOf(":"),s=t.substr(0,r).trim(),o=t.substr(r+1,t.length-r).trim();s&&o&&(n[s]=new D(e,s,o))})),e.styles[r]=n,e.stylesSpecificity[r]=A(r),"@font-face"===r){var s=n["font-family"].getString().replace(/"|'/g,"");n.src.getString().split(",").forEach((t=>{if(t.indexOf('format("svg")')>0){var r=f(t);r&&new Ye(e).load(s,r)}}))}}}))}}))}}Ge.parseExternalUrl=f;class qe extends ce{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),r=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:r}=this;if(r){var n=r;if("symbol"===r.type&&((n=new fe(t,null)).attributes.viewBox=new D(t,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new D(t,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new D(t,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new D(t,"opacity",this.calculateOpacity())),"svg"===n.type){var s=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);s.hasValue()&&(n.attributes.width=new D(t,"width",s.getString())),o.hasValue()&&(n.attributes.height=new D(t,"height",o.getString()))}var i=n.parent;n.parent=this,n.render(e),n.parent=i}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return te.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function We(e,t,r,n,s,o){return e[r*n*4+4*t+o]}function Qe(e,t,r,n,s,o,i){e[r*n*4+4*t+o]=i}function $e(e,t,r){return e[t]*r}function Ze(e,t,r,n){return t+Math.cos(e)*r+Math.sin(e)*n}class Ke extends re{constructor(e,t,r){super(e,t,r),this.type="feColorMatrix";var n=m(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var s=n[0];n=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var o=n[0]*Math.PI/180;n=[Ze(o,.213,.787,-.213),Ze(o,.715,-.715,-.715),Ze(o,.072,-.072,.928),0,0,Ze(o,.213,-.213,.143),Ze(o,.715,.285,.14),Ze(o,.072,-.072,-.283),0,0,Ze(o,.213,-.213,-.787),Ze(o,.715,-.715,.715),Ze(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=n,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,r,n,s){for(var{includeOpacity:o,matrix:i}=this,a=e.getImageData(0,0,n,s),l=0;l<s;l++)for(var u=0;u<n;u++){var c=We(a.data,u,l,n,0,0),d=We(a.data,u,l,n,0,1),h=We(a.data,u,l,n,0,2),m=We(a.data,u,l,n,0,3),p=$e(i,0,c)+$e(i,1,d)+$e(i,2,h)+$e(i,3,m)+$e(i,4,1),g=$e(i,5,c)+$e(i,6,d)+$e(i,7,h)+$e(i,8,m)+$e(i,9,1),f=$e(i,10,c)+$e(i,11,d)+$e(i,12,h)+$e(i,13,m)+$e(i,14,1),j=$e(i,15,c)+$e(i,16,d)+$e(i,17,h)+$e(i,18,m)+$e(i,19,1);o&&(p=0,g=0,f=0,j*=m/255),Qe(a.data,u,l,n,0,0,p),Qe(a.data,u,l,n,0,1,g),Qe(a.data,u,l,n,0,2,f),Qe(a.data,u,l,n,0,3,j)}e.clearRect(0,0,n,s),e.putImageData(a,0,0)}}class Je extends re{constructor(){super(...arguments),this.type="mask"}apply(e,t){var{document:r}=this,n=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");if(!o&&!i){var a=new le;this.children.forEach((t=>{a.addBoundingBox(t.getBoundingBox(e))})),n=Math.floor(a.x1),s=Math.floor(a.y1),o=Math.floor(a.width),i=Math.floor(a.height)}var l=this.removeStyles(t,Je.ignoreStyles),u=r.createCanvas(n+o,s+i),c=u.getContext("2d");r.screen.setDefaults(c),this.renderChildren(c),new Ke(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(c,0,0,n+o,s+i);var d=r.createCanvas(n+o,s+i),h=d.getContext("2d");r.screen.setDefaults(h),t.render(h),h.globalCompositeOperation="destination-in",h.fillStyle=c.createPattern(u,"no-repeat"),h.fillRect(0,0,n+o,s+i),e.fillStyle=h.createPattern(d,"no-repeat"),e.fillRect(0,0,n+o,s+i),this.restoreStyles(t,l)}render(e){}}Je.ignoreStyles=["mask","transform","clip-path"];var et=()=>{};class tt extends re{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,r=Reflect.getPrototypeOf(e),{beginPath:n,closePath:s}=e;r&&(r.beginPath=et,r.closePath=et),Reflect.apply(n,e,[]),this.children.forEach((n=>{if(void 0!==n.path){var o=void 0!==n.elementTransform?n.elementTransform():null;o||(o=te.fromElement(t,n)),o&&o.apply(e),n.path(e),r&&(r.closePath=s),o&&o.unapply(e)}})),Reflect.apply(s,e,[]),e.clip(),r&&(r.beginPath=n,r.closePath=s)}render(e){}}class rt extends re{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:r,children:n}=this,s=t.getBoundingBox(e);if(s){var o=0,i=0;n.forEach((e=>{var t=e.extraFilterDistance||0;o=Math.max(o,t),i=Math.max(i,t)}));var a=Math.floor(s.width),l=Math.floor(s.height),u=a+2*o,c=l+2*i;if(!(u<1||c<1)){var d=Math.floor(s.x),h=Math.floor(s.y),m=this.removeStyles(t,rt.ignoreStyles),p=r.createCanvas(u,c),g=p.getContext("2d");r.screen.setDefaults(g),g.translate(-d+o,-h+i),t.render(g),n.forEach((e=>{"function"==typeof e.apply&&e.apply(g,0,0,u,c)})),e.drawImage(p,0,0,u,c,d-o,h-i,u,c),this.restoreStyles(t,m)}}}render(e){}}rt.ignoreStyles=["filter","transform","clip-path"];class nt extends re{constructor(e,t,r){super(e,t,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,r,n,s){}}class st extends re{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,r,n,s){}}class ot extends re{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,r,n,s){}}class it extends re{constructor(e,t,r){super(e,t,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,r,n,s){var{document:o,blurRadius:i}=this,a=o.window?o.window.document.body:null,u=e.canvas;u.id=o.getUniqueId(),a&&(u.style.display="none",a.appendChild(u)),(0,l.canvasRGBA)(u,t,r,n,s,i),a&&a.removeChild(u)}}class at extends re{constructor(){super(...arguments),this.type="title"}}class lt extends re{constructor(){super(...arguments),this.type="desc"}}var ut={svg:fe,rect:je,circle:ye,ellipse:ve,line:xe,polyline:be,polygon:_e,path:de,pattern:we,marker:Se,defs:Te,linearGradient:Pe,radialGradient:Ce,stop:Ee,animate:Me,animateColor:Ne,animateTransform:ke,font:Ve,"font-face":Re,"missing-glyph":Ie,glyph:he,text:me,tspan:pe,tref:Le,a:De,textPath:ze,image:He,g:Ae,symbol:Xe,style:Ge,use:qe,mask:Je,clipPath:tt,filter:rt,feDropShadow:nt,feMorphology:st,feComposite:ot,feColorMatrix:Ke,feGaussianBlur:it,title:at,desc:lt};function ct(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dt(){return dt=(0,n.default)((function*(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.createElement("img");return t&&(r.crossOrigin="Anonymous"),new Promise(((t,n)=>{r.onload=()=>{t(r)},r.onerror=(e,t,r,s,o)=>{n(o)},r.src=e}))})),dt.apply(this,arguments)}class ht{constructor(e){var{rootEmSize:t=12,emSize:r=12,createCanvas:n=ht.createCanvas,createImage:s=ht.createImage,anonymousCrossOrigin:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=r,this.createCanvas=n,this.createImage=this.bindCreateImage(s,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return"boolean"==typeof t?(r,n)=>e(r,"boolean"==typeof n?n:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every((e=>e.loaded))}isFontsLoaded(){return this.fonts.every((e=>e.loaded))}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),r=ht.elementTypes[t];return void 0!==r?new r(this,e):new ne(this,e)}createTextNode(e){return new ge(this,e)}setViewBox(e){this.screen.setViewBox(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(r),!0).forEach((function(t){(0,s.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ct(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({document:this},e))}}function mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(r),!0).forEach((function(t){(0,s.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}ht.createCanvas=function(e,t){var r=document.createElement("canvas");return r.width=e,r.height=t,r},ht.createImage=function(e){return dt.apply(this,arguments)},ht.elementTypes=ut;class gt{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new q(r),this.screen=new X(e,r),this.options=r;var n=new ht(this,r),s=n.createDocumentElement(t);this.document=n,this.documentElement=s}static from(e,t){var r=arguments;return(0,n.default)((function*(){var n=r.length>2&&void 0!==r[2]?r[2]:{},s=new q(n),o=yield s.parse(t);return new gt(e,o,n)}))()}static fromString(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=new q(r).parseFromString(t);return new gt(e,n,r)}fork(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return gt.from(e,t,pt(pt({},this.options),r))}forkString(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return gt.fromString(e,t,pt(pt({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return(0,n.default)((function*(){var r=e.length>0&&void 0!==e[0]?e[0]:{};t.start(pt({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield t.ready(),t.stop()}))()}start(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:t,screen:r,options:n}=this;r.start(t,pt(pt({enableRedraw:!0},n),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(e,t,r)}}},"./node_modules/svg-pathdata/lib/SVGPathData.module.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{COMMAND_ARG_COUNTS:()=>w,SVGPathData:()=>_,SVGPathDataParser:()=>b,SVGPathDataTransformer:()=>d,encodeSVGPath:()=>o});var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function o(e){var t="";Array.isArray(e)||(e=[e]);for(var r=0;r<e.length;r++){var n=e[r];if(n.type===_.CLOSE_PATH)t+="z";else if(n.type===_.HORIZ_LINE_TO)t+=(n.relative?"h":"H")+n.x;else if(n.type===_.VERT_LINE_TO)t+=(n.relative?"v":"V")+n.y;else if(n.type===_.MOVE_TO)t+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===_.LINE_TO)t+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===_.CURVE_TO)t+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===_.SMOOTH_CURVE_TO)t+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===_.QUAD_TO)t+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===_.SMOOTH_QUAD_TO)t+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==_.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+r+".");t+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return t}function i(e,t){var r=e[0],n=e[1];return[r*Math.cos(t)-n*Math.sin(t),r*Math.sin(t)+n*Math.cos(t)]}function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0;r<e.length;r++)if("number"!=typeof e[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof e[r]+" == typeof "+e[r]);return!0}var l=Math.PI;function u(e,t,r){e.lArcFlag=0===e.lArcFlag?0:1,e.sweepFlag=0===e.sweepFlag?0:1;var n=e.rX,s=e.rY,o=e.x,a=e.y;n=Math.abs(e.rX),s=Math.abs(e.rY);var u=i([(t-o)/2,(r-a)/2],-e.xRot/180*l),c=u[0],d=u[1],h=Math.pow(c,2)/Math.pow(n,2)+Math.pow(d,2)/Math.pow(s,2);1<h&&(n*=Math.sqrt(h),s*=Math.sqrt(h)),e.rX=n,e.rY=s;var m=Math.pow(n,2)*Math.pow(d,2)+Math.pow(s,2)*Math.pow(c,2),p=(e.lArcFlag!==e.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(s,2)-m)/m)),g=n*d/s*p,f=-s*c/n*p,j=i([g,f],e.xRot/180*l);e.cX=j[0]+(t+o)/2,e.cY=j[1]+(r+a)/2,e.phi1=Math.atan2((d-f)/s,(c-g)/n),e.phi2=Math.atan2((-d-f)/s,(-c-g)/n),0===e.sweepFlag&&e.phi2>e.phi1&&(e.phi2-=2*l),1===e.sweepFlag&&e.phi2<e.phi1&&(e.phi2+=2*l),e.phi1*=180/l,e.phi2*=180/l}function c(e,t,r){a(e,t,r);var n=e*e+t*t-r*r;if(0>n)return[];if(0===n)return[[e*r/(e*e+t*t),t*r/(e*e+t*t)]];var s=Math.sqrt(n);return[[(e*r+t*s)/(e*e+t*t),(t*r-e*s)/(e*e+t*t)],[(e*r-t*s)/(e*e+t*t),(t*r+e*s)/(e*e+t*t)]]}var d,h=Math.PI/180;function m(e,t,r){return(1-r)*e+r*t}function p(e,t,r,n){return e+Math.cos(n/180*l)*t+Math.sin(n/180*l)*r}function g(e,t,r,n){var s=1e-6,o=t-e,i=r-t,a=3*o+3*(n-r)-6*i,l=6*(i-o),u=3*o;return Math.abs(a)<s?[-u/l]:function(e,t,r){void 0===r&&(r=1e-6);var n=e*e/4-t;if(n<-r)return[];if(n<=r)return[-e/2];var s=Math.sqrt(n);return[-e/2-s,-e/2+s]}(l/a,u/a,s)}function f(e,t,r,n,s){var o=1-s;return e*(o*o*o)+t*(3*o*o*s)+r*(3*o*s*s)+n*(s*s*s)}!function(e){function t(){return s((function(e,t,r){return e.relative&&(void 0!==e.x1&&(e.x1+=t),void 0!==e.y1&&(e.y1+=r),void 0!==e.x2&&(e.x2+=t),void 0!==e.y2&&(e.y2+=r),void 0!==e.x&&(e.x+=t),void 0!==e.y&&(e.y+=r),e.relative=!1),e}))}function r(){var e=NaN,t=NaN,r=NaN,n=NaN;return s((function(s,o,i){return s.type&_.SMOOTH_CURVE_TO&&(s.type=_.CURVE_TO,e=isNaN(e)?o:e,t=isNaN(t)?i:t,s.x1=s.relative?o-e:2*o-e,s.y1=s.relative?i-t:2*i-t),s.type&_.CURVE_TO?(e=s.relative?o+s.x2:s.x2,t=s.relative?i+s.y2:s.y2):(e=NaN,t=NaN),s.type&_.SMOOTH_QUAD_TO&&(s.type=_.QUAD_TO,r=isNaN(r)?o:r,n=isNaN(n)?i:n,s.x1=s.relative?o-r:2*o-r,s.y1=s.relative?i-n:2*i-n),s.type&_.QUAD_TO?(r=s.relative?o+s.x1:s.x1,n=s.relative?i+s.y1:s.y1):(r=NaN,n=NaN),s}))}function n(){var e=NaN,t=NaN;return s((function(r,n,s){if(r.type&_.SMOOTH_QUAD_TO&&(r.type=_.QUAD_TO,e=isNaN(e)?n:e,t=isNaN(t)?s:t,r.x1=r.relative?n-e:2*n-e,r.y1=r.relative?s-t:2*s-t),r.type&_.QUAD_TO){e=r.relative?n+r.x1:r.x1,t=r.relative?s+r.y1:r.y1;var o=r.x1,i=r.y1;r.type=_.CURVE_TO,r.x1=((r.relative?0:n)+2*o)/3,r.y1=((r.relative?0:s)+2*i)/3,r.x2=(r.x+2*o)/3,r.y2=(r.y+2*i)/3}else e=NaN,t=NaN;return r}))}function s(e){var t=0,r=0,n=NaN,s=NaN;return function(o){if(isNaN(n)&&!(o.type&_.MOVE_TO))throw new Error("path must start with moveto");var i=e(o,t,r,n,s);return o.type&_.CLOSE_PATH&&(t=n,r=s),void 0!==o.x&&(t=o.relative?t+o.x:o.x),void 0!==o.y&&(r=o.relative?r+o.y:o.y),o.type&_.MOVE_TO&&(n=t,s=r),i}}function o(e,t,r,n,o,i){return a(e,t,r,n,o,i),s((function(s,a,l,u){var c=s.x1,d=s.x2,h=s.relative&&!isNaN(u),m=void 0!==s.x?s.x:h?0:a,p=void 0!==s.y?s.y:h?0:l;function g(e){return e*e}s.type&_.HORIZ_LINE_TO&&0!==t&&(s.type=_.LINE_TO,s.y=s.relative?0:l),s.type&_.VERT_LINE_TO&&0!==r&&(s.type=_.LINE_TO,s.x=s.relative?0:a),void 0!==s.x&&(s.x=s.x*e+p*r+(h?0:o)),void 0!==s.y&&(s.y=m*t+s.y*n+(h?0:i)),void 0!==s.x1&&(s.x1=s.x1*e+s.y1*r+(h?0:o)),void 0!==s.y1&&(s.y1=c*t+s.y1*n+(h?0:i)),void 0!==s.x2&&(s.x2=s.x2*e+s.y2*r+(h?0:o)),void 0!==s.y2&&(s.y2=d*t+s.y2*n+(h?0:i));var f=e*n-t*r;if(void 0!==s.xRot&&(1!==e||0!==t||0!==r||1!==n))if(0===f)delete s.rX,delete s.rY,delete s.xRot,delete s.lArcFlag,delete s.sweepFlag,s.type=_.LINE_TO;else{var j=s.xRot*Math.PI/180,y=Math.sin(j),v=Math.cos(j),x=1/g(s.rX),b=1/g(s.rY),w=g(v)*x+g(y)*b,S=2*y*v*(x-b),T=g(y)*x+g(v)*b,A=w*n*n-S*t*n+T*t*t,O=S*(e*n+t*r)-2*(w*r*n+T*e*t),P=w*r*r-S*e*r+T*e*e,C=(Math.atan2(O,A-P)+Math.PI)%Math.PI/2,E=Math.sin(C),M=Math.cos(C);s.rX=Math.abs(f)/Math.sqrt(A*g(M)+O*E*M+P*g(E)),s.rY=Math.abs(f)/Math.sqrt(A*g(E)-O*E*M+P*g(M)),s.xRot=180*C/Math.PI}return void 0!==s.sweepFlag&&0>f&&(s.sweepFlag=+!s.sweepFlag),s}))}e.ROUND=function(e){function t(t){return Math.round(t*e)/e}return void 0===e&&(e=1e13),a(e),function(e){return void 0!==e.x1&&(e.x1=t(e.x1)),void 0!==e.y1&&(e.y1=t(e.y1)),void 0!==e.x2&&(e.x2=t(e.x2)),void 0!==e.y2&&(e.y2=t(e.y2)),void 0!==e.x&&(e.x=t(e.x)),void 0!==e.y&&(e.y=t(e.y)),void 0!==e.rX&&(e.rX=t(e.rX)),void 0!==e.rY&&(e.rY=t(e.rY)),e}},e.TO_ABS=t,e.TO_REL=function(){return s((function(e,t,r){return e.relative||(void 0!==e.x1&&(e.x1-=t),void 0!==e.y1&&(e.y1-=r),void 0!==e.x2&&(e.x2-=t),void 0!==e.y2&&(e.y2-=r),void 0!==e.x&&(e.x-=t),void 0!==e.y&&(e.y-=r),e.relative=!0),e}))},e.NORMALIZE_HVZ=function(e,t,r){return void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===r&&(r=!0),s((function(n,s,o,i,a){if(isNaN(i)&&!(n.type&_.MOVE_TO))throw new Error("path must start with moveto");return t&&n.type&_.HORIZ_LINE_TO&&(n.type=_.LINE_TO,n.y=n.relative?0:o),r&&n.type&_.VERT_LINE_TO&&(n.type=_.LINE_TO,n.x=n.relative?0:s),e&&n.type&_.CLOSE_PATH&&(n.type=_.LINE_TO,n.x=n.relative?i-s:i,n.y=n.relative?a-o:a),n.type&_.ARC&&(0===n.rX||0===n.rY)&&(n.type=_.LINE_TO,delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag),n}))},e.NORMALIZE_ST=r,e.QT_TO_C=n,e.INFO=s,e.SANITIZE=function(e){void 0===e&&(e=0),a(e);var t=NaN,r=NaN,n=NaN,o=NaN;return s((function(s,i,a,l,u){var c=Math.abs,d=!1,h=0,m=0;if(s.type&_.SMOOTH_CURVE_TO&&(h=isNaN(t)?0:i-t,m=isNaN(r)?0:a-r),s.type&(_.CURVE_TO|_.SMOOTH_CURVE_TO)?(t=s.relative?i+s.x2:s.x2,r=s.relative?a+s.y2:s.y2):(t=NaN,r=NaN),s.type&_.SMOOTH_QUAD_TO?(n=isNaN(n)?i:2*i-n,o=isNaN(o)?a:2*a-o):s.type&_.QUAD_TO?(n=s.relative?i+s.x1:s.x1,o=s.relative?a+s.y1:s.y2):(n=NaN,o=NaN),s.type&_.LINE_COMMANDS||s.type&_.ARC&&(0===s.rX||0===s.rY||!s.lArcFlag)||s.type&_.CURVE_TO||s.type&_.SMOOTH_CURVE_TO||s.type&_.QUAD_TO||s.type&_.SMOOTH_QUAD_TO){var p=void 0===s.x?0:s.relative?s.x:s.x-i,g=void 0===s.y?0:s.relative?s.y:s.y-a;h=isNaN(n)?void 0===s.x1?h:s.relative?s.x:s.x1-i:n-i,m=isNaN(o)?void 0===s.y1?m:s.relative?s.y:s.y1-a:o-a;var f=void 0===s.x2?0:s.relative?s.x:s.x2-i,j=void 0===s.y2?0:s.relative?s.y:s.y2-a;c(p)<=e&&c(g)<=e&&c(h)<=e&&c(m)<=e&&c(f)<=e&&c(j)<=e&&(d=!0)}return s.type&_.CLOSE_PATH&&c(i-l)<=e&&c(a-u)<=e&&(d=!0),d?[]:s}))},e.MATRIX=o,e.ROTATE=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=0),a(e,t,r);var n=Math.sin(e),s=Math.cos(e);return o(s,n,-n,s,t-t*s+r*n,r-t*n-r*s)},e.TRANSLATE=function(e,t){return void 0===t&&(t=0),a(e,t),o(1,0,0,1,e,t)},e.SCALE=function(e,t){return void 0===t&&(t=e),a(e,t),o(e,0,0,t,0,0)},e.SKEW_X=function(e){return a(e),o(1,0,Math.atan(e),1,0,0)},e.SKEW_Y=function(e){return a(e),o(1,Math.atan(e),0,1,0,0)},e.X_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),a(e),o(-1,0,0,1,e,0)},e.Y_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),a(e),o(1,0,0,-1,0,e)},e.A_TO_C=function(){return s((function(e,t,r){return _.ARC===e.type?function(e,t,r){var n,s,o,a;e.cX||u(e,t,r);for(var l=Math.min(e.phi1,e.phi2),c=Math.max(e.phi1,e.phi2)-l,d=Math.ceil(c/90),p=new Array(d),g=t,f=r,j=0;j<d;j++){var y=m(e.phi1,e.phi2,j/d),v=m(e.phi1,e.phi2,(j+1)/d),x=v-y,b=4/3*Math.tan(x*h/4),w=[Math.cos(y*h)-b*Math.sin(y*h),Math.sin(y*h)+b*Math.cos(y*h)],S=w[0],T=w[1],A=[Math.cos(v*h),Math.sin(v*h)],O=A[0],P=A[1],C=[O+b*Math.sin(v*h),P-b*Math.cos(v*h)],E=C[0],M=C[1];p[j]={relative:e.relative,type:_.CURVE_TO};var N=function(t,r){var n=i([t*e.rX,r*e.rY],e.xRot),s=n[0],o=n[1];return[e.cX+s,e.cY+o]};n=N(S,T),p[j].x1=n[0],p[j].y1=n[1],s=N(E,M),p[j].x2=s[0],p[j].y2=s[1],o=N(O,P),p[j].x=o[0],p[j].y=o[1],e.relative&&(p[j].x1-=g,p[j].y1-=f,p[j].x2-=g,p[j].y2-=f,p[j].x-=g,p[j].y-=f),g=(a=[p[j].x,p[j].y])[0],f=a[1]}return p}(e,e.relative?0:t,e.relative?0:r):e}))},e.ANNOTATE_ARCS=function(){return s((function(e,t,r){return e.relative&&(t=0,r=0),_.ARC===e.type&&u(e,t,r),e}))},e.CLONE=function(){return function(e){var t={};for(var r in e)t[r]=e[r];return t}},e.CALCULATE_BOUNDS=function(){var e=t(),o=n(),i=r(),a=s((function(t,r,n){var s=i(o(e(function(e){var t={};for(var r in e)t[r]=e[r];return t}(t))));function l(e){e>a.maxX&&(a.maxX=e),e<a.minX&&(a.minX=e)}function d(e){e>a.maxY&&(a.maxY=e),e<a.minY&&(a.minY=e)}if(s.type&_.DRAWING_COMMANDS&&(l(r),d(n)),s.type&_.HORIZ_LINE_TO&&l(s.x),s.type&_.VERT_LINE_TO&&d(s.y),s.type&_.LINE_TO&&(l(s.x),d(s.y)),s.type&_.CURVE_TO){l(s.x),d(s.y);for(var h=0,m=g(r,s.x1,s.x2,s.x);h<m.length;h++)0<(k=m[h])&&1>k&&l(f(r,s.x1,s.x2,s.x,k));for(var j=0,y=g(n,s.y1,s.y2,s.y);j<y.length;j++)0<(k=y[j])&&1>k&&d(f(n,s.y1,s.y2,s.y,k))}if(s.type&_.ARC){l(s.x),d(s.y),u(s,r,n);for(var v=s.xRot/180*Math.PI,x=Math.cos(v)*s.rX,b=Math.sin(v)*s.rX,w=-Math.sin(v)*s.rY,S=Math.cos(v)*s.rY,T=s.phi1<s.phi2?[s.phi1,s.phi2]:-180>s.phi2?[s.phi2+360,s.phi1+360]:[s.phi2,s.phi1],A=T[0],O=T[1],P=function(e){var t=e[0],r=e[1],n=180*Math.atan2(r,t)/Math.PI;return n<A?n+360:n},C=0,E=c(w,-x,0).map(P);C<E.length;C++)(k=E[C])>A&&k<O&&l(p(s.cX,x,w,k));for(var M=0,N=c(S,-b,0).map(P);M<N.length;M++){var k;(k=N[M])>A&&k<O&&d(p(s.cY,b,S,k))}}return t}));return a.minX=1/0,a.maxX=-1/0,a.minY=1/0,a.maxY=-1/0,a}}(d||(d={}));var j,y=function(){function e(){}return e.prototype.round=function(e){return this.transform(d.ROUND(e))},e.prototype.toAbs=function(){return this.transform(d.TO_ABS())},e.prototype.toRel=function(){return this.transform(d.TO_REL())},e.prototype.normalizeHVZ=function(e,t,r){return this.transform(d.NORMALIZE_HVZ(e,t,r))},e.prototype.normalizeST=function(){return this.transform(d.NORMALIZE_ST())},e.prototype.qtToC=function(){return this.transform(d.QT_TO_C())},e.prototype.aToC=function(){return this.transform(d.A_TO_C())},e.prototype.sanitize=function(e){return this.transform(d.SANITIZE(e))},e.prototype.translate=function(e,t){return this.transform(d.TRANSLATE(e,t))},e.prototype.scale=function(e,t){return this.transform(d.SCALE(e,t))},e.prototype.rotate=function(e,t,r){return this.transform(d.ROTATE(e,t,r))},e.prototype.matrix=function(e,t,r,n,s,o){return this.transform(d.MATRIX(e,t,r,n,s,o))},e.prototype.skewX=function(e){return this.transform(d.SKEW_X(e))},e.prototype.skewY=function(e){return this.transform(d.SKEW_Y(e))},e.prototype.xSymmetry=function(e){return this.transform(d.X_AXIS_SYMMETRY(e))},e.prototype.ySymmetry=function(e){return this.transform(d.Y_AXIS_SYMMETRY(e))},e.prototype.annotateArcs=function(){return this.transform(d.ANNOTATE_ARCS())},e}(),v=function(e){return" "===e||"\t"===e||"\r"===e||"\n"===e},x=function(e){return"0".charCodeAt(0)<=e.charCodeAt(0)&&e.charCodeAt(0)<="9".charCodeAt(0)},b=function(e){function t(){var t=e.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return s(t,e),t.prototype.finish=function(e){if(void 0===e&&(e=[]),this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,t){var r=this;void 0===t&&(t=[]);for(var n=function(e){t.push(e),r.curArgs.length=0,r.canParseCommandOrComma=!0},s=0;s<e.length;s++){var o=e[s],i=!(this.curCommandType!==_.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),a=x(o)&&("0"===this.curNumber&&"0"===o||i);if(!x(o)||a)if("e"!==o&&"E"!==o)if("-"!==o&&"+"!==o||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==o||this.curNumberHasExp||this.curNumberHasDecimal||i){if(this.curNumber&&-1!==this.curCommandType){var l=Number(this.curNumber);if(isNaN(l))throw new SyntaxError("Invalid number ending at "+s);if(this.curCommandType===_.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>l)throw new SyntaxError('Expected positive number, got "'+l+'" at index "'+s+'"')}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 "'+s+'"');this.curArgs.push(l),this.curArgs.length===w[this.curCommandType]&&(_.HORIZ_LINE_TO===this.curCommandType?n({type:_.HORIZ_LINE_TO,relative:this.curCommandRelative,x:l}):_.VERT_LINE_TO===this.curCommandType?n({type:_.VERT_LINE_TO,relative:this.curCommandRelative,y:l}):this.curCommandType===_.MOVE_TO||this.curCommandType===_.LINE_TO||this.curCommandType===_.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),_.MOVE_TO===this.curCommandType&&(this.curCommandType=_.LINE_TO)):this.curCommandType===_.CURVE_TO?n({type:_.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===_.SMOOTH_CURVE_TO?n({type:_.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_.QUAD_TO?n({type:_.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_.ARC&&n({type:_.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(!v(o))if(","===o&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==o&&"-"!==o&&"."!==o)if(a)this.curNumber=o,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+s+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+o+'" at index '+s+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==o&&"Z"!==o)if("h"===o||"H"===o)this.curCommandType=_.HORIZ_LINE_TO,this.curCommandRelative="h"===o;else if("v"===o||"V"===o)this.curCommandType=_.VERT_LINE_TO,this.curCommandRelative="v"===o;else if("m"===o||"M"===o)this.curCommandType=_.MOVE_TO,this.curCommandRelative="m"===o;else if("l"===o||"L"===o)this.curCommandType=_.LINE_TO,this.curCommandRelative="l"===o;else if("c"===o||"C"===o)this.curCommandType=_.CURVE_TO,this.curCommandRelative="c"===o;else if("s"===o||"S"===o)this.curCommandType=_.SMOOTH_CURVE_TO,this.curCommandRelative="s"===o;else if("q"===o||"Q"===o)this.curCommandType=_.QUAD_TO,this.curCommandRelative="q"===o;else if("t"===o||"T"===o)this.curCommandType=_.SMOOTH_QUAD_TO,this.curCommandRelative="t"===o;else{if("a"!==o&&"A"!==o)throw new SyntaxError('Unexpected character "'+o+'" at index '+s+".");this.curCommandType=_.ARC,this.curCommandRelative="a"===o}else t.push({type:_.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=o,this.curNumberHasDecimal="."===o}else this.curNumber+=o,this.curNumberHasDecimal=!0;else this.curNumber+=o;else this.curNumber+=o,this.curNumberHasExp=!0;else this.curNumber+=o,this.curNumberHasExpDigits=this.curNumberHasExp}return t},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(t,r){void 0===r&&(r=[]);for(var n=0,s=Object.getPrototypeOf(this).parse.call(this,t);n<s.length;n++){var o=s[n],i=e(o);Array.isArray(i)?r.push.apply(r,i):r.push(i)}return r}}})},t}(y),_=function(e){function t(r){var n=e.call(this)||this;return n.commands="string"==typeof r?t.parse(r):r,n}return s(t,e),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=d.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var t=[],r=0,n=this.commands;r<n.length;r++){var s=e(n[r]);Array.isArray(s)?t.push.apply(t,s):t.push(s)}return this.commands=t,this},t.encode=function(e){return o(e)},t.parse=function(e){var t=new b,r=[];return t.parse(e,r),t.finish(r),r},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(y),w=((j={})[_.MOVE_TO]=2,j[_.LINE_TO]=2,j[_.HORIZ_LINE_TO]=1,j[_.VERT_LINE_TO]=1,j[_.CLOSE_PATH]=0,j[_.QUAD_TO]=4,j[_.SMOOTH_QUAD_TO]=2,j[_.CURVE_TO]=6,j[_.SMOOTH_CURVE_TO]=4,j[_.ARC]=7,j)}}]);