mind-elixir 0.19.1 → 0.19.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/dist/MindElixir.js +1 -55
- package/dist/MindElixirLite.js +1 -35
- package/dist/example1.js +1 -1
- package/dist/example2.js +1 -1
- package/dist/painter.js +1 -16
- package/package.json +17 -17
- package/readme.cn.md +99 -99
- package/readme.md +209 -209
- package/dist/test.html +0 -342
package/dist/painter.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.painter=e():t.painter=e()}(self,function(){return(()=>{var r={1375:function(a){!function(){var t,e,r,n,i,o;"undefined"!=typeof performance&&null!==performance&&performance.now?a.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(a.exports=function(){return(t()-i)/1e6},e=process.hrtime,n=(t=function(){var t=e();return 1e9*t[0]+t[1]})(),o=1e9*process.uptime(),i=n-o):r=Date.now?(a.exports=function(){return Date.now()-r},Date.now()):(a.exports=function(){return(new Date).getTime()-r},(new Date).getTime())}.call(this)},9266:(t,e,r)=>{t.exports=r(3176)},1572:(t,e,r)=>{t.exports=r(2397)},2844:(t,e,r)=>{t.exports=r(8139)},5246:(t,e,r)=>{t.exports=r(8921)},1777:(t,e,r)=>{t.exports=r(8255)},7197:(t,e,r)=>{t.exports=r(2527)},2743:(t,e,r)=>{t.exports=r(1761)},9957:(t,e,r)=>{t.exports=r(5922)},9061:(t,e,r)=>{t.exports=r(4e3)},6407:(t,e,r)=>{t.exports=r(4922)},4578:(t,e,r)=>{t.exports=r(6840)},1151:(t,e,r)=>{t.exports=r(7964)},5628:(t,e,r)=>{t.exports=r(758)},4440:(t,e,r)=>{t.exports=r(4801)},6075:(t,e,r)=>{t.exports=r(3492)},819:(t,e,r)=>{t.exports=r(3431)},5265:(t,e,r)=>{t.exports=r(503)},3224:(t,e,r)=>{t.exports=r(6007)},7516:(t,e,r)=>{t.exports=r(5109)},4541:(t,e,r)=>{t.exports=r(6653)},8229:(t,e,r)=>{t.exports=r(9048)},7878:(t,e,r)=>{t.exports=r(4613)},9990:(t,e,r)=>{t.exports=r(9592)},4597:(t,e,r)=>{t.exports=r(6016)},5234:(t,e,r)=>{t.exports=r(2285)},8470:(t,e,r)=>{t.exports=r(4450)},2210:(t,e,r)=>{t.exports=r(4257)},8748:(t,e,r)=>{t.exports=r(8025)},8903:(t,e,r)=>{t.exports=r(2354)},7195:(t,e,r)=>{t.exports=r(6054)},9423:(t,e,r)=>{t.exports=r(122)},2108:(t,e,r)=>{t.exports=r(61)},6623:(t,e,r)=>{t.exports=r(5917)},4965:(t,e,r)=>{t.exports=r(6170)},7666:(t,e,r)=>{t.exports=r(1625)},7960:(t,e,r)=>{t.exports=r(1795)},8516:(t,e,r)=>{t.exports=r(7329)},9882:(t,e,r)=>{t.exports=r(1210)},229:(t,e,r)=>{t.exports=r(68)},1952:(t,e,r)=>{t.exports=r(9701)},6035:(t,e,r)=>{t.exports=r(1715)},7457:(t,e,r)=>{t.exports=r(9982)},3487:(t,e,r)=>{t.exports=r(3366)},8310:(t,e,r)=>{t.exports=r(1335)},9498:(t,e,r)=>{t.exports=r(9656)},9150:(t,e,r)=>{t.exports=r(9200)},1161:(t,e,r)=>{t.exports=r(6610)},7850:(t,e,r)=>{t.exports=r(611)},4788:(t,e,r)=>{t.exports=r(1500)},2018:(t,e,r)=>{r(9127),r(1731);r=r(6954);t.exports=r.Array.from},7885:(t,e,r)=>{r(939);r=r(6954);t.exports=r.Array.isArray},9547:(t,e,r)=>{r(1680);r=r(9921);t.exports=r("Array").concat},5197:(t,e,r)=>{r(8669);r=r(9921);t.exports=r("Array").every},5797:(t,e,r)=>{r(7810);r=r(9921);t.exports=r("Array").fill},4771:(t,e,r)=>{r(2006);r=r(9921);t.exports=r("Array").filter},6073:(t,e,r)=>{r(2646);r=r(9921);t.exports=r("Array").forEach},8438:(t,e,r)=>{r(4882);r=r(9921);t.exports=r("Array").includes},9296:(t,e,r)=>{r(3060);r=r(9921);t.exports=r("Array").indexOf},3510:(t,e,r)=>{r(6554);r=r(9921);t.exports=r("Array").map},5516:(t,e,r)=>{r(1425);r=r(9921);t.exports=r("Array").reduce},3648:(t,e,r)=>{r(2503);r=r(9921);t.exports=r("Array").reverse},7259:(t,e,r)=>{r(5228);r=r(9921);t.exports=r("Array").slice},398:(t,e,r)=>{r(2326);r=r(9921);t.exports=r("Array").some},6838:(t,e,r)=>{r(9540),r(1637);r=r(9921);t.exports=r("Array").values},411:(t,e,r)=>{r(9146);r=r(6954);t.exports=r.Date.now},9301:(t,e,r)=>{r(9422);r=r(9921);t.exports=r("Function").bind},7031:(t,e,r)=>{r(9540),r(9127);r=r(854);t.exports=r},2889:(t,e,r)=>{r(9540),r(9127);r=r(9890);t.exports=r},7637:(t,e,r)=>{var n=r(9301),i=Function.prototype;t.exports=function(t){var e=t.bind;return t===i||t instanceof Function&&e===i.bind?n:e}},510:(t,e,r)=>{var n=r(9547),i=Array.prototype;t.exports=function(t){var e=t.concat;return t===i||t instanceof Array&&e===i.concat?n:e}},6167:(t,e,r)=>{var n=r(5197),i=Array.prototype;t.exports=function(t){var e=t.every;return t===i||t instanceof Array&&e===i.every?n:e}},8456:(t,e,r)=>{var n=r(5797),i=Array.prototype;t.exports=function(t){var e=t.fill;return t===i||t instanceof Array&&e===i.fill?n:e}},2465:(t,e,r)=>{var n=r(4771),i=Array.prototype;t.exports=function(t){var e=t.filter;return t===i||t instanceof Array&&e===i.filter?n:e}},1351:(t,e,r)=>{var n=r(8438),i=r(6323),o=Array.prototype,a=String.prototype;t.exports=function(t){var e=t.includes;return t===o||t instanceof Array&&e===o.includes?n:"string"==typeof t||t===a||t instanceof String&&e===a.includes?i:e}},4975:(t,e,r)=>{var n=r(9296),i=Array.prototype;t.exports=function(t){var e=t.indexOf;return t===i||t instanceof Array&&e===i.indexOf?n:e}},9884:(t,e,r)=>{var n=r(3510),i=Array.prototype;t.exports=function(t){var e=t.map;return t===i||t instanceof Array&&e===i.map?n:e}},1629:(t,e,r)=>{var n=r(5516),i=Array.prototype;t.exports=function(t){var e=t.reduce;return t===i||t instanceof Array&&e===i.reduce?n:e}},5428:(t,e,r)=>{var n=r(3648),i=Array.prototype;t.exports=function(t){var e=t.reverse;return t===i||t instanceof Array&&e===i.reverse?n:e}},8981:(t,e,r)=>{var n=r(7259),i=Array.prototype;t.exports=function(t){var e=t.slice;return t===i||t instanceof Array&&e===i.slice?n:e}},7865:(t,e,r)=>{var n=r(398),i=Array.prototype;t.exports=function(t){var e=t.some;return t===i||t instanceof Array&&e===i.some?n:e}},7172:(t,e,r)=>{var n=r(8369),i=String.prototype;t.exports=function(t){var e=t.startsWith;return"string"==typeof t||t===i||t instanceof String&&e===i.startsWith?n:e}},2205:(t,e,r)=>{var n=r(9616),i=String.prototype;t.exports=function(t){var e=t.trim;return"string"==typeof t||t===i||t instanceof String&&e===i.trim?n:e}},2491:(t,e,r)=>{r(9540),r(6249),r(1637),r(9127);r=r(6954);t.exports=r.Map},2921:(t,e,r)=>{r(166);var n=r(6954).Object;t.exports=function(t,e){return n.create(t,e)}},4004:(t,e,r)=>{r(5770);var n=r(6954).Object,t=t.exports=function(t,e){return n.defineProperties(t,e)};n.defineProperties.sham&&(t.sham=!0)},2768:(t,e,r)=>{r(3663);var n=r(6954).Object,t=t.exports=function(t,e,r){return n.defineProperty(t,e,r)};n.defineProperty.sham&&(t.sham=!0)},6680:(t,e,r)=>{r(5015);var n=r(6954).Object,t=t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)};n.getOwnPropertyDescriptor.sham&&(t.sham=!0)},4530:(t,e,r)=>{r(3808);r=r(6954);t.exports=r.Object.getOwnPropertyDescriptors},3704:(t,e,r)=>{r(9078);r=r(6954);t.exports=r.Object.getOwnPropertySymbols},1951:(t,e,r)=>{r(7851);r=r(6954);t.exports=r.Object.getPrototypeOf},2829:(t,e,r)=>{r(5271);r=r(6954);t.exports=r.Object.keys},4407:(t,e,r)=>{r(3121);r=r(6954);t.exports=r.Object.setPrototypeOf},7594:(t,e,r)=>{r(8246);r=r(6954);t.exports=r.parseFloat},2060:(t,e,r)=>{r(4295);r=r(6954);t.exports=r.parseInt},944:(t,e,r)=>{r(7186),r(9540),r(1637),r(1931),r(2044),r(9671),r(2678),r(9127);r=r(6954);t.exports=r.Promise},8749:(t,e,r)=>{r(3293);r=r(6954);t.exports=r.Reflect.apply},2331:(t,e,r)=>{r(4398);r=r(6954);t.exports=r.Reflect.construct},8474:(t,e,r)=>{r(9114);r=r(6954);t.exports=r.Reflect.deleteProperty},6e3:(t,e,r)=>{r(5087);r=r(6954);t.exports=r.Reflect.getPrototypeOf},5967:(t,e,r)=>{r(7361);r=r(6954);t.exports=r.Reflect.get},6323:(t,e,r)=>{r(9522);r=r(9921);t.exports=r("String").includes},8369:(t,e,r)=>{r(2109);r=r(9921);t.exports=r("String").startsWith},9616:(t,e,r)=>{r(7843);r=r(9921);t.exports=r("String").trim},5075:(t,e,r)=>{r(1680),r(1637),r(9078),r(5089),r(7015),r(4207),r(3867),r(6878),r(25),r(8715),r(6858),r(8056),r(2335),r(8663),r(2607),r(733),r(2057),r(3905),r(9541),r(336);r=r(6954);t.exports=r.Symbol},7910:(t,e,r)=>{r(9540),r(1637),r(9127),r(6878);r=r(1102);t.exports=r.f("iterator")},1625:(t,e,r)=>{r=r(3176);t.exports=r},1795:(t,e,r)=>{r=r(2397);t.exports=r},7329:(t,e,r)=>{r=r(4199);t.exports=r},1210:(t,e,r)=>{r=r(5798);t.exports=r},68:(t,e,r)=>{r=r(3492);t.exports=r},9701:(t,e,r)=>{r=r(8631);t.exports=r},1715:(t,e,r)=>{r=r(4613);t.exports=r},9982:(t,e,r)=>{r=r(9592);t.exports=r},3366:(t,e,r)=>{r=r(6292);t.exports=r},1335:(t,e,r)=>{r=r(2549);t.exports=r},9656:(t,e,r)=>{var n=r(2354);r(7264),r(9562),r(7486),r(3980),t.exports=n},9200:(t,e,r)=>{r=r(7564);t.exports=r},6610:(t,e,r)=>{var n=r(6170);r(9427),r(7302),r(8182),r(3069),r(1160),r(6121),r(6472),t.exports=n},611:(t,e,r)=>{r=r(8976);t.exports=r},5114:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},2900:(t,e,r)=>{var n=r(4955);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},9098:t=>{t.exports=function(){}},3988:t=>{t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},6508:(t,e,r)=>{var n=r(4955);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},4986:(t,e,r)=>{"use strict";var a=r(9270),s=r(1138),u=r(5646);t.exports=function(t){for(var e=a(this),r=u(e.length),n=arguments.length,i=s(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,o=void 0===n?r:s(n,r);i<o;)e[i++]=t;return e}},8737:(t,e,r)=>{"use strict";var n=r(6862).forEach,r=r(7402)("forEach");t.exports=r?[].forEach:function(t){return n(this,t,1<arguments.length?arguments[1]:void 0)}},4973:(t,e,r)=>{"use strict";var p=r(5216),y=r(9270),g=r(3885),v=r(4327),d=r(5646),m=r(7061),x=r(9890),b=r(854);t.exports=function(t){var e,r,n,i,o,a,s=y(t),u="function"==typeof this?this:Array,c=arguments.length,l=1<c?arguments[1]:void 0,h=void 0!==l,t=b(s),f=0;if(h&&(l=p(l,2<c?arguments[2]:void 0,2)),null==t||u==Array&&v(t))for(r=new u(e=d(s.length));f<e;f++)a=h?l(s[f],f):s[f],m(r,f,a);else for(o=(i=x(s,t)).next,r=new u;!(n=o.call(i)).done;f++)a=h?g(i,l,[n.value,f],!0):n.value,m(r,f,a);return r.length=f,r}},9333:(t,e,r)=>{var u=r(1650),c=r(5646),l=r(1138),r=function(s){return function(t,e,r){var n,i=u(t),o=c(i.length),a=l(r,o);if(s&&e!=e){for(;a<o;)if((n=i[a++])!=n)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===e)return s||a||0;return!s&&-1}};t.exports={includes:r(!0),indexOf:r(!1)}},6862:(t,e,r)=>{var b=r(5216),w=r(1837),S=r(9270),A=r(5646),k=r(596),T=[].push,r=function(f){var p=1==f,y=2==f,g=3==f,v=4==f,d=6==f,m=7==f,x=5==f||d;return function(t,e,r,n){for(var i,o,a=S(t),s=w(a),u=b(e,r,3),c=A(s.length),l=0,n=n||k,h=p?n(t,c):y||m?n(t,0):void 0;l<c;l++)if((x||l in s)&&(o=u(i=s[l],l,a),f))if(p)h[l]=o;else if(o)switch(f){case 3:return!0;case 5:return i;case 6:return l;case 2:T.call(h,i)}else switch(f){case 4:return!1;case 7:T.call(h,i)}return d?-1:g||v?v:h}};t.exports={forEach:r(0),map:r(1),filter:r(2),some:r(3),every:r(4),find:r(5),findIndex:r(6),filterReject:r(7)}},7542:(t,e,r)=>{var n=r(5172),i=r(2362),o=r(2750),a=i("species");t.exports=function(e){return 51<=o||!n(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},7402:(t,e,r)=>{"use strict";var n=r(5172);t.exports=function(t,e){var r=[][t];return!!r&&n(function(){r.call(null,e||function(){throw 1},1)})}},8629:(t,e,r)=>{var l=r(5114),h=r(9270),f=r(1837),p=r(5646),r=function(c){return function(t,e,r,n){l(e);var i=h(t),o=f(i),a=p(i.length),s=c?a-1:0,u=c?-1:1;if(r<2)for(;;){if(s in o){n=o[s],s+=u;break}if(s+=u,c?s<0:a<=s)throw TypeError("Reduce of empty array with no initial value")}for(;c?0<=s:s<a;s+=u)s in o&&(n=e(n,o[s],s,i));return n}};t.exports={left:r(!1),right:r(!0)}},3940:(t,e,r)=>{var n=r(4955),i=r(8869),o=r(2362)("species");t.exports=function(t){var e;return void 0===(e=i(t)&&("function"==typeof(e=t.constructor)&&(e===Array||i(e.prototype))||n(e)&&null===(e=e[o]))?void 0:e)?Array:e}},596:(t,e,r)=>{var n=r(3940);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},3885:(t,e,r)=>{var i=r(6508),o=r(1851);t.exports=function(e,t,r,n){try{return n?t(i(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},2146:(t,e,r)=>{var i=r(2362)("iterator"),o=!1;try{var n=0,a={next:function(){return{done:!!n++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}},9384:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},9848:(t,e,r)=>{var n=r(7138),i=r(9384),o=r(2362)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(t=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?t:a?i(e):"Object"==(t=i(e))&&"function"==typeof e.callee?"Arguments":t}},3286:(t,e,r)=>{"use strict";var c=r(9962).f,l=r(8705),h=r(7213),f=r(5216),p=r(3988),y=r(7612),a=r(5461),s=r(3029),g=r(988),v=r(3453).fastKey,r=r(893),d=r.set,m=r.getterFor;t.exports={getConstructor:function(t,r,n,i){function o(t,e,r){var n,i=u(t),o=a(t,e);return o?o.value=r:(i.last=o={index:n=v(e,!0),key:e,value:r,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=o),r&&(r.next=o),g?i.size++:t.size++,"F"!==n&&(i.index[n]=o)),t}function a(t,e){var r,n=u(t);if("F"!==(t=v(e)))return n.index[t];for(r=n.first;r;r=r.next)if(r.key==e)return r}var s=t(function(t,e){p(t,s,r),d(t,{type:r,index:l(null),first:void 0,last:void 0,size:0}),g||(t.size=0),null!=e&&y(e,t[i],{that:t,AS_ENTRIES:n})}),u=m(r);return h(s.prototype,{clear:function(){for(var t=u(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,g?t.size=0:this.size=0},delete:function(t){var e,r=u(this),n=a(this,t);return n&&(e=n.next,t=n.previous,delete r.index[n.index],n.removed=!0,t&&(t.next=e),e&&(e.previous=t),r.first==n&&(r.first=e),r.last==n&&(r.last=t),g?r.size--:this.size--),!!n},forEach:function(t){for(var e,r=u(this),n=f(t,1<arguments.length?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!a(this,t)}}),h(s.prototype,n?{get:function(t){t=a(this,t);return t&&t.value},set:function(t,e){return o(this,0===t?0:t,e)}}:{add:function(t){return o(this,t=0===t?0:t,t)}}),g&&c(s.prototype,"size",{get:function(){return u(this).size}}),s},setStrong:function(t,e,r){var n=e+" Iterator",i=m(e),o=m(n);a(t,e,function(t,e){d(this,{type:n,target:t,state:i(t),kind:e,last:void 0})},function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:{value:t.target=void 0,done:!0}},r?"entries":"values",!r,!0),s(e)}}},2867:(t,e,r)=>{"use strict";var h=r(4650),f=r(5313),p=r(3453),y=r(5172),g=r(44),v=r(7612),d=r(3988),m=r(4955),x=r(6257),b=r(9962).f,w=r(6862).forEach,S=r(988),r=r(893),A=r.set,k=r.getterFor;t.exports=function(r,t,e){var o,a,n=-1!==r.indexOf("Map"),s=-1!==r.indexOf("Weak"),i=n?"set":"add",u=f[r],c=u&&u.prototype,l={};return S&&"function"==typeof u&&(s||c.forEach&&!y(function(){(new u).entries().next()}))?(o=t(function(t,e){A(d(t,o,r),{type:r,collection:new u}),null!=e&&v(e,t[i],{that:t,AS_ENTRIES:n})}),a=k(r),w(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(n){var i="add"==n||"set"==n;n in c&&(!s||"clear"!=n)&&g(o.prototype,n,function(t,e){var r=a(this).collection;if(!i&&s&&!m(t))return"get"==n&&void 0;e=r[n](0===t?0:t,e);return i?this:e})}),s||b(o.prototype,"size",{configurable:!0,get:function(){return a(this).collection.size}})):(o=e.getConstructor(t,r,n,i),p.enable()),x(o,r,!1,!0),l[r]=o,h({global:!0,forced:!0},l),s||e.setStrong(o,r,n),o}},8047:(t,e,r)=>{var n=r(2362)("match");t.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[n]=!1,"/./"[e](r)}catch(t){}}return!1}},3368:(t,e,r)=>{r=r(5172);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},7696:(t,e,r)=>{"use strict";function n(){return this}var i=r(9502).IteratorPrototype,o=r(8705),a=r(8714),s=r(6257),u=r(1575);t.exports=function(t,e,r){e+=" Iterator";return t.prototype=o(i,{next:a(1,r)}),s(t,e,!1,!0),u[e]=n,t}},44:(t,e,r)=>{var n=r(988),i=r(9962),o=r(8714);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},8714:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7061:(t,e,r)=>{"use strict";var n=r(7877),i=r(9962),o=r(8714);t.exports=function(t,e,r){e=n(e);e in t?i.f(t,e,o(0,r)):t[e]=r}},5461:(t,e,r)=>{"use strict";function v(){return this}var d=r(4650),m=r(7696),x=r(5787),b=r(1336),w=r(6257),S=r(44),A=r(228),n=r(2362),k=r(1729),T=r(1575),r=r(9502),O=r.IteratorPrototype,P=r.BUGGY_SAFARI_ITERATORS,C=n("iterator"),E="values",M="entries";t.exports=function(t,e,r,n,i,o,a){m(r,e,n);function s(t){if(t===i&&g)return g;if(!P&&t in p)return p[t];switch(t){case"keys":case E:case M:return function(){return new r(this,t)}}return function(){return new r(this)}}var u,c,l,h=e+" Iterator",f=!1,p=t.prototype,y=p[C]||p["@@iterator"]||i&&p[i],g=!P&&y||s(i),n="Array"==e&&p.entries||y;if(n&&(u=x(n.call(new t)))!==Object.prototype&&u.next&&(k||x(u)===O||(b?b(u,O):"function"!=typeof u[C]&&S(u,C,v)),w(u,h,!0,!0),k&&(T[h]=v)),i==E&&y&&y.name!==E&&(f=!0,g=function(){return y.call(this)}),k&&!a||p[C]===g||S(p,C,g),T[e]=g,i)if(c={values:s(E),keys:o?g:s("keys"),entries:s(M)},a)for(l in c)!P&&!f&&l in p||A(p,l,c[l]);else d({target:e,proto:!0,forced:P||f},c);return c}},7034:(t,e,r)=>{var n=r(6954),i=r(7235),o=r(1102),a=r(9962).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},988:(t,e,r)=>{r=r(5172);t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},5820:(t,e,r)=>{var n=r(5313),r=r(4955),i=n.document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},4339:t=>{t.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}},4943:t=>{t.exports="object"==typeof window},8345:(t,e,r)=>{var n=r(9958),r=r(5313);t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==r.Pebble},6329:(t,e,r)=>{r=r(9958);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},3287:(t,e,r)=>{var n=r(9384),r=r(5313);t.exports="process"==n(r.process)},477:(t,e,r)=>{r=r(9958);t.exports=/web0s(?!.*chrome)/i.test(r)},9958:(t,e,r)=>{r=r(7225);t.exports=r("navigator","userAgent")||""},2750:(t,e,r)=>{var n,i,o=r(5313),a=r(9958),r=o.process,o=o.Deno,o=r&&r.versions||o&&o.version,o=o&&o.v8;o?i=(n=o.split("."))[0]<4?1:n[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||74<=n[1])&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),t.exports=i&&+i},9921:(t,e,r)=>{var n=r(6954);t.exports=function(t){return n[t+"Prototype"]}},2052:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4650:(t,e,r)=>{"use strict";function y(n){function t(t,e,r){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,e)}return new n(t,e,r)}return n.apply(this,arguments)}return t.prototype=n.prototype,t}var g=r(5313),v=r(4832).f,d=r(9177),m=r(6954),x=r(5216),b=r(44),w=r(7235);t.exports=function(t,e){var r,n,i,o,a,s=t.target,u=t.global,c=t.stat,l=t.proto,h=u?g:c?g[s]:(g[s]||{}).prototype,f=u?m:m[s]||b(m,s,{})[s],p=f.prototype;for(r in e)o=!d(u?r:s+(c?".":"#")+r,t.forced)&&h&&w(h,r),n=f[r],o&&(i=t.noTargetGet?(a=v(h,r))&&a.value:h[r]),a=o&&i?i:e[r],o&&typeof n==typeof a||(o=t.bind&&o?x(a,g):t.wrap&&o?y(a):l&&"function"==typeof a?x(Function.call,a):a,(t.sham||a&&a.sham||n&&n.sham)&&b(o,"sham",!0),b(f,r,o),l&&(w(m,o=s+"Prototype")||b(m,o,{}),b(m[o],r,a),t.real&&p&&!p[r]&&b(p,r,a)))}},5172:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},3111:(t,e,r)=>{r=r(5172);t.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},5216:(t,e,r)=>{var o=r(5114);t.exports=function(n,i,t){if(o(n),void 0===i)return n;switch(t){case 0:return function(){return n.call(i)};case 1:return function(t){return n.call(i,t)};case 2:return function(t,e){return n.call(i,t,e)};case 3:return function(t,e,r){return n.call(i,t,e,r)}}return function(){return n.apply(i,arguments)}}},8021:(t,e,r)=>{"use strict";var o=r(5114),a=r(4955),s=[].slice,u={};t.exports=Function.bind||function(e){var r=o(this),n=s.call(arguments,1),i=function(){var t=n.concat(s.call(arguments));return this instanceof i?function(t,e,r){if(!(e in u)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";u[e]=Function("C,a","return new C("+n.join(",")+")")}return u[e](t,r)}(r,t.length,t):r.apply(e,t)};return a(r.prototype)&&(i.prototype=r.prototype),i}},7225:(t,e,r)=>{function n(t){return"function"==typeof t?t:void 0}var i=r(6954),o=r(5313);t.exports=function(t,e){return arguments.length<2?n(i[t])||n(o[t]):i[t]&&i[t][e]||o[t]&&o[t][e]}},854:(t,e,r)=>{var n=r(9848),i=r(1575),o=r(2362)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[n(t)]}},9890:(t,e,r)=>{var n=r(6508),i=r(854);t.exports=function(t,e){var r=arguments.length<2?i(t):e;if("function"!=typeof r)throw TypeError(String(t)+" is not iterable");return n(r.call(t))}},5313:(t,e,r)=>{function n(t){return t&&t.Math==Math&&t}t.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")()},7235:(t,e,r)=>{var n=r(9270),i={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return i.call(n(t),e)}},1918:t=>{t.exports={}},6593:(t,e,r)=>{var n=r(5313);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},1753:(t,e,r)=>{r=r(7225);t.exports=r("document","documentElement")},5559:(t,e,r)=>{var n=r(988),i=r(5172),o=r(5820);t.exports=!n&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},1837:(t,e,r)=>{var n=r(5172),i=r(9384),o="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},6560:(t,e,r)=>{var r=r(6327),n=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return n.call(t)}),t.exports=r.inspectSource},3453:(t,e,r)=>{function n(t){u(t,y,{value:{objectID:"O"+g++,weakData:{}}})}var a=r(4650),i=r(1918),o=r(4955),s=r(7235),u=r(9962).f,c=r(4780),l=r(3929),h=r(3954),f=r(3111),p=!1,y=h("meta"),g=0,v=Object.isExtensible||function(){return!0},d=t.exports={enable:function(){d.enable=function(){},p=!0;var i=c.f,o=[].splice,t={};t[y]=1,i(t).length&&(c.f=function(t){for(var e=i(t),r=0,n=e.length;r<n;r++)if(e[r]===y){o.call(e,r,1);break}return e},a({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,y)){if(!v(t))return"F";if(!e)return"E";n(t)}return t[y].objectID},getWeakData:function(t,e){if(!s(t,y)){if(!v(t))return!0;if(!e)return!1;n(t)}return t[y].weakData},onFreeze:function(t){return f&&p&&v(t)&&!s(t,y)&&n(t),t}};i[y]=!0},893:(t,e,r)=>{var n,i,o,a,s,u,c,l,h=r(8544),f=r(5313),p=r(4955),y=r(44),g=r(7235),v=r(6327),d=r(1327),r=r(1918),m="Object already initialized",f=f.WeakMap;c=h||v.state?(n=v.state||(v.state=new f),i=n.get,o=n.has,a=n.set,s=function(t,e){if(o.call(n,t))throw new TypeError(m);return e.facade=t,a.call(n,t,e),e},u=function(t){return i.call(n,t)||{}},function(t){return o.call(n,t)}):(r[l=d("state")]=!0,s=function(t,e){if(g(t,l))throw new TypeError(m);return e.facade=t,y(t,l,e),e},u=function(t){return g(t,l)?t[l]:{}},function(t){return g(t,l)}),t.exports={set:s,get:u,has:c,enforce:function(t){return c(t)?u(t):s(t,{})},getterFor:function(r){return function(t){var e;if(!p(t)||(e=u(t)).type!==r)throw TypeError("Incompatible receiver, "+r+" required");return e}}}},4327:(t,e,r)=>{var n=r(2362),i=r(1575),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},8869:(t,e,r)=>{var n=r(9384);t.exports=Array.isArray||function(t){return"Array"==n(t)}},3634:(t,e,r)=>{var n=r(7235);t.exports=function(t){return void 0!==t&&(n(t,"value")||n(t,"writable"))}},9177:(t,e,r)=>{var n=r(5172),i=/#|\.prototype\./,r=function(t,e){t=a[o(t)];return t==u||t!=s&&("function"==typeof e?n(e):!!e)},o=r.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=r.data={},s=r.NATIVE="N",u=r.POLYFILL="P";t.exports=r},4955:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1729:t=>{t.exports=!0},5058:(t,e,r)=>{var n=r(4955),i=r(9384),o=r(2362)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},1444:(t,e,r)=>{var n=r(7225),r=r(1099);t.exports=r?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return"function"==typeof e&&Object(t)instanceof e}},7612:(t,e,r)=>{function v(t,e){this.stopped=t,this.result=e}var d=r(6508),m=r(4327),x=r(5646),b=r(5216),w=r(9890),S=r(854),A=r(1851);t.exports=function(t,e,r){function n(t){return o&&A(o,"normal",t),new v(!0,t)}function i(t){return f?(d(t),y?g(t[0],t[1],n):g(t[0],t[1])):y?g(t,n):g(t)}var o,a,s,u,c,l,h=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),g=b(e,h,1+f+y);if(p)o=t;else{if("function"!=typeof(p=S(t)))throw TypeError("Target is not iterable");if(m(p)){for(a=0,s=x(t.length);a<s;a++)if((u=i(t[a]))&&u instanceof v)return u;return new v(!1)}o=w(t,p)}for(c=o.next;!(l=c.call(o)).done;){try{u=i(l.value)}catch(t){A(o,"throw",t)}if("object"==typeof u&&u&&u instanceof v)return u}return new v(!1)}},1851:(t,e,r)=>{var o=r(6508);t.exports=function(t,e,r){var n,i;o(t);try{if(void 0===(n=t.return)){if("throw"===e)throw r;return r}n=n.call(t)}catch(t){i=!0,n=t}if("throw"===e)throw r;if(i)throw n;return o(n),r}},9502:(t,e,r)=>{"use strict";var n,i=r(5172),o=r(8705),a=r(5787),s=r(44),u=r(2362),c=r(1729),l=u("iterator"),r=!1;[].keys&&("next"in(u=[].keys())?(u=a(a(u)))!==Object.prototype&&(n=u):r=!0),null==n||i(function(){var t={};return n[l].call(t)!==t})?n={}:c&&(n=o(n)),"function"!=typeof n[l]&&s(n,l,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:r}},1575:t=>{t.exports={}},5096:(t,e,r)=>{var n,i,o,a,s,u,c,l,h=r(5313),f=r(4832).f,p=r(9720).set,y=r(6329),g=r(8345),v=r(477),d=r(3287),m=h.MutationObserver||h.WebKitMutationObserver,x=h.document,b=h.process,r=h.Promise,f=f(h,"queueMicrotask"),f=f&&f.value;f||(n=function(){var t,e;for(d&&(t=b.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},a=y||d||v||!m||!x?!g&&r&&r.resolve?((c=r.resolve(void 0)).constructor=r,l=c.then,function(){l.call(c,n)}):d?function(){b.nextTick(n)}:function(){p.call(h,n)}:(s=!0,u=x.createTextNode(""),new m(n).observe(u,{characterData:!0}),function(){u.data=s=!s})),t.exports=f||function(t){t={fn:t,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},5230:(t,e,r)=>{r=r(5313);t.exports=r.Promise},1116:(t,e,r)=>{var n=r(2750),r=r(5172);t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},8544:(t,e,r)=>{var n=r(5313),r=r(6560),n=n.WeakMap;t.exports="function"==typeof n&&/native code/.test(r(n))},4705:(t,e,r)=>{"use strict";function n(t){var r,n;this.promise=new t(function(t,e){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=t,n=e}),this.resolve=i(r),this.reject=i(n)}var i=r(5114);t.exports.f=function(t){return new n(t)}},4091:(t,e,r)=>{var n=r(5058);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},8893:(t,e,r)=>{var n=r(5313),i=r(2062),o=r(6355).trim,r=r(9284),a=n.parseFloat,r=1/a(r+"-0")!=-1/0;t.exports=r?function(t){var e=o(i(t)),t=a(e);return 0===t&&"-"==e.charAt(0)?-0:t}:a},1905:(t,e,r)=>{var n=r(5313),i=r(2062),o=r(6355).trim,r=r(9284),a=n.parseInt,s=/^[+-]?0[Xx]/,r=8!==a(r+"08")||22!==a(r+"0x16");t.exports=r?function(t,e){t=o(i(t));return a(t,e>>>0||(s.test(t)?16:10))}:a},8705:(t,e,r)=>{function n(){}function i(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e}var o,a=r(6508),s=r(9611),u=r(2052),c=r(1918),l=r(1753),h=r(5820),r=r(1327),f="prototype",p="script",y=r("IE_PROTO"),g=function(t){return"<"+p+">"+t+"</"+p+">"},v=function(){try{o=new ActiveXObject("htmlfile")}catch(t){}var t,e;v="undefined"==typeof document||document.domain&&o?i(o):(t=h("iframe"),e="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(e),(t=t.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F);for(var r=u.length;r--;)delete v[f][u[r]];return v()};c[y]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(n[f]=a(t),r=new n,n[f]=null,r[y]=t):r=v(),void 0===e?r:s(r,e)}},9611:(t,e,r)=>{var n=r(988),a=r(9962),s=r(6508),u=r(5642);t.exports=n?Object.defineProperties:function(t,e){s(t);for(var r,n=u(e),i=n.length,o=0;o<i;)a.f(t,r=n[o++],e[r]);return t}},9962:(t,e,r)=>{var n=r(988),i=r(5559),o=r(6508),a=r(7877),s=Object.defineProperty;e.f=n?s:function(t,e,r){if(o(t),e=a(e),o(r),i)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},4832:(t,e,r)=>{var n=r(988),i=r(3469),o=r(8714),a=r(1650),s=r(7877),u=r(7235),c=r(5559),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=a(t),e=s(e),c)try{return l(t,e)}catch(t){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},3929:(t,e,r)=>{var n=r(1650),i=r(4780).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(n(t))}},4780:(t,e,r)=>{var n=r(4049),i=r(2052).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},5548:(t,e)=>{e.f=Object.getOwnPropertySymbols},5787:(t,e,r)=>{var n=r(7235),i=r(9270),o=r(1327),r=r(3368),a=o("IE_PROTO"),s=Object.prototype;t.exports=r?Object.getPrototypeOf:function(t){return t=i(t),n(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},4049:(t,e,r)=>{var a=r(7235),s=r(1650),u=r(9333).indexOf,c=r(1918);t.exports=function(t,e){var r,n=s(t),i=0,o=[];for(r in n)!a(c,r)&&a(n,r)&&o.push(r);for(;e.length>i;)a(n,r=e[i++])&&(~u(o,r)||o.push(r));return o}},5642:(t,e,r)=>{var n=r(4049),i=r(2052);t.exports=Object.keys||function(t){return n(t,i)}},3469:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(t){t=n(this,t);return!!t&&t.enumerable}:r},1336:(t,e,r)=>{var i=r(6508),o=r(2900);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,t={};try{(r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),n=t instanceof Array}catch(t){}return function(t,e){return i(t),o(e),n?r.call(t,e):t.__proto__=e,t}}():void 0)},6920:(t,e,r)=>{"use strict";var n=r(7138),i=r(9848);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},5517:(t,e,r)=>{var i=r(4955);t.exports=function(t,e){var r,n;if("string"===e&&"function"==typeof(r=t.toString)&&!i(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!i(n=r.call(t)))return n;if("string"!==e&&"function"==typeof(r=t.toString)&&!i(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},2865:(t,e,r)=>{var n=r(7225),i=r(4780),o=r(5548),a=r(6508);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?e.concat(r(t)):e}},6954:t=>{t.exports={}},265:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},2023:(t,e,r)=>{var n=r(6508),i=r(4955),o=r(4705);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;t=o.f(t);return(0,t.resolve)(e),t.promise}},7213:(t,e,r)=>{var i=r(228);t.exports=function(t,e,r){for(var n in e)r&&r.unsafe&&t[n]?t[n]=e[n]:i(t,n,e[n],r);return t}},228:(t,e,r)=>{var i=r(44);t.exports=function(t,e,r,n){n&&n.enumerable?t[e]=r:i(t,e,r)}},3322:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},8185:(t,e,r)=>{var n=r(5313);t.exports=function(e,r){try{Object.defineProperty(n,e,{value:r,configurable:!0,writable:!0})}catch(t){n[e]=r}return r}},3029:(t,e,r)=>{"use strict";var n=r(7225),i=r(9962),o=r(2362),a=r(988),s=o("species");t.exports=function(t){var e=n(t),t=i.f;a&&e&&!e[s]&&t(e,s,{configurable:!0,get:function(){return this}})}},6257:(t,e,r)=>{var i=r(7138),o=r(9962).f,a=r(44),s=r(7235),u=r(6920),c=r(2362)("toStringTag");t.exports=function(t,e,r,n){t&&(t=r?t:t.prototype,s(t,c)||o(t,c,{configurable:!0,value:e}),n&&!i&&a(t,"toString",u))}},1327:(t,e,r)=>{var n=r(6339),i=r(3954),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},6327:(t,e,r)=>{var n=r(5313),i=r(8185),r="__core-js_shared__",r=n[r]||i(r,{});t.exports=r},6339:(t,e,r)=>{var n=r(1729),i=r(6327);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.3",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},9714:(t,e,r)=>{var n=r(6508),i=r(5114),o=r(2362)("species");t.exports=function(t,e){var r,t=n(t).constructor;return void 0===t||null==(r=n(t)[o])?e:i(r)}},3955:(t,e,r)=>{var a=r(5170),s=r(2062),u=r(3322),r=function(o){return function(t,e){var r,n=s(u(t)),i=a(e),t=n.length;return i<0||t<=i?o?"":void 0:(e=n.charCodeAt(i))<55296||56319<e||i+1===t||(r=n.charCodeAt(i+1))<56320||57343<r?o?n.charAt(i):e:o?n.slice(i,i+2):r-56320+(e-55296<<10)+65536}};t.exports={codeAt:r(!1),charAt:r(!0)}},2701:(t,e,r)=>{var n=r(5172),i=r(9284);t.exports=function(t){return n(function(){return!!i[t]()||"
"!="
"[t]()||i[t].name!==t})}},6355:(t,e,r)=>{var n=r(3322),i=r(2062),r="["+r(9284)+"]",o=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),r=function(e){return function(t){t=i(n(t));return 1&e&&(t=t.replace(o,"")),t=2&e?t.replace(a,""):t}};t.exports={start:r(1),end:r(2),trim:r(3)}},9720:(t,e,r)=>{var n,i,o=r(5313),a=r(5172),s=r(5216),u=r(1753),c=r(5820),l=r(6329),h=r(3287),f=o.setImmediate,p=o.clearImmediate,y=o.process,g=o.MessageChannel,v=o.Dispatch,d=0,m={},x="onreadystatechange";try{n=o.location}catch(t){}function b(t){return function(){S(t)}}function w(t){S(t.data)}var S=function(t){var e;m.hasOwnProperty(t)&&(e=m[t],delete m[t],e())},r=function(t){o.postMessage(String(t),n.protocol+"//"+n.host)};f&&p||(f=function(t){for(var e=[],r=arguments.length,n=1;n<r;)e.push(arguments[n++]);return m[++d]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},i(d),d},p=function(t){delete m[t]},h?i=function(t){y.nextTick(b(t))}:v&&v.now?i=function(t){v.now(b(t))}:g&&!l?(g=(l=new g).port2,l.port1.onmessage=w,i=s(g.postMessage,g,1)):o.addEventListener&&"function"==typeof postMessage&&!o.importScripts&&n&&"file:"!==n.protocol&&!a(r)?(i=r,o.addEventListener("message",w,!1)):i=x in c("script")?function(t){u.appendChild(c("script"))[x]=function(){u.removeChild(this),S(t)}}:function(t){setTimeout(b(t),0)}),t.exports={set:f,clear:p}},1138:(t,e,r)=>{var n=r(5170),i=Math.max,o=Math.min;t.exports=function(t,e){t=n(t);return t<0?i(t+e,0):o(t,e)}},1650:(t,e,r)=>{var n=r(1837),i=r(3322);t.exports=function(t){return n(i(t))}},5170:t=>{var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?r:e)(t)}},5646:(t,e,r)=>{var n=r(5170),i=Math.min;t.exports=function(t){return 0<t?i(n(t),9007199254740991):0}},9270:(t,e,r)=>{var n=r(3322);t.exports=function(t){return Object(n(t))}},1146:(t,e,r)=>{var n=r(4955),i=r(1444),o=r(5517),a=r(2362)("toPrimitive");t.exports=function(t,e){if(!n(t)||i(t))return t;var r=t[a];if(void 0===r)return o(t,e=void 0===e?"number":e);if(e=r.call(t,e=void 0===e?"default":e),!n(e)||i(e))return e;throw TypeError("Can't convert object to primitive value")}},7877:(t,e,r)=>{var n=r(1146),i=r(1444);t.exports=function(t){t=n(t,"string");return i(t)?t:String(t)}},7138:(t,e,r)=>{var n={};n[r(2362)("toStringTag")]="z",t.exports="[object z]"===String(n)},2062:(t,e,r)=>{var n=r(1444);t.exports=function(t){if(n(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},3954:t=>{var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},1099:(t,e,r)=>{r=r(1116);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1102:(t,e,r)=>{r=r(2362);e.f=r},2362:(t,e,r)=>{var n=r(5313),i=r(6339),o=r(7235),a=r(3954),s=r(1116),r=r(1099),u=i("wks"),c=n.Symbol,l=r?c:c&&c.withoutSetter||a;t.exports=function(t){return o(u,t)&&(s||"string"==typeof u[t])||(s&&o(c,t)?u[t]=c[t]:u[t]=l("Symbol."+t)),u[t]}},9284:t=>{t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},7186:(t,e,r)=>{"use strict";function n(t,e){var r=this;return r instanceof n?(a&&(r=a(new Error(void 0),o(r))),void 0!==e&&u(r,"message",h(e)),l(t,(e=[]).push,{that:e}),u(r,"errors",e),r):new n(t,e)}var i=r(4650),o=r(5787),a=r(1336),s=r(8705),u=r(44),c=r(8714),l=r(7612),h=r(2062);n.prototype=s(Error.prototype,{constructor:c(5,n),message:c(5,""),name:c(5,"AggregateError")}),i({global:!0},{AggregateError:n})},1680:(t,e,r)=>{"use strict";var n=r(4650),i=r(5172),c=r(8869),l=r(4955),h=r(9270),f=r(5646),p=r(7061),y=r(596),o=r(7542),a=r(2362),r=r(2750),g=a("isConcatSpreadable"),v=9007199254740991,d="Maximum allowed index exceeded",i=51<=r||!i(function(){var t=[];return t[g]=!1,t.concat()[0]!==t}),o=o("concat");n({target:"Array",proto:!0,forced:!i||!o},{concat:function(t){for(var e,r,n,i=h(this),o=y(i,0),a=0,s=-1,u=arguments.length;s<u;s++)if(function(t){if(!l(t))return!1;var e=t[g];return void 0!==e?!!e:c(t)}(n=-1===s?i:arguments[s])){if(r=f(n.length),v<a+r)throw TypeError(d);for(e=0;e<r;e++,a++)e in n&&p(o,a,n[e])}else{if(v<=a)throw TypeError(d);p(o,a++,n)}return o.length=a,o}})},8669:(t,e,r)=>{"use strict";var n=r(4650),i=r(6862).every;n({target:"Array",proto:!0,forced:!r(7402)("every")},{every:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}})},7810:(t,e,r)=>{var n=r(4650),i=r(4986),r=r(9098);n({target:"Array",proto:!0},{fill:i}),r("fill")},2006:(t,e,r)=>{"use strict";var n=r(4650),i=r(6862).filter;n({target:"Array",proto:!0,forced:!r(7542)("filter")},{filter:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}})},2646:(t,e,r)=>{"use strict";var n=r(4650),r=r(8737);n({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},1731:(t,e,r)=>{var n=r(4650),i=r(4973);n({target:"Array",stat:!0,forced:!r(2146)(function(t){Array.from(t)})},{from:i})},4882:(t,e,r)=>{"use strict";var n=r(4650),i=r(9333).includes,r=r(9098);n({target:"Array",proto:!0},{includes:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}}),r("includes")},3060:(t,e,r)=>{"use strict";var n=r(4650),i=r(9333).indexOf,r=r(7402),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0,r=r("indexOf");n({target:"Array",proto:!0,forced:a||!r},{indexOf:function(t){return a?o.apply(this,arguments)||0:i(this,t,1<arguments.length?arguments[1]:void 0)}})},939:(t,e,r)=>{r(4650)({target:"Array",stat:!0},{isArray:r(8869)})},9540:(t,e,r)=>{"use strict";var n=r(1650),i=r(9098),o=r(1575),a=r(893),r=r(5461),s="Array Iterator",u=a.set,c=a.getterFor(s);t.exports=r(Array,"Array",function(t,e){u(this,{type:s,target:n(t),index:0,kind:e})},function(){var t=c(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?{value:t.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},6554:(t,e,r)=>{"use strict";var n=r(4650),i=r(6862).map;n({target:"Array",proto:!0,forced:!r(7542)("map")},{map:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}})},1425:(t,e,r)=>{"use strict";var n=r(4650),i=r(8629).left,o=r(7402),a=r(2750),r=r(3287);n({target:"Array",proto:!0,forced:!o("reduce")||!r&&79<a&&a<83},{reduce:function(t){return i(this,t,arguments.length,1<arguments.length?arguments[1]:void 0)}})},2503:(t,e,r)=>{"use strict";var n=r(4650),i=r(8869),o=[].reverse,r=[1,2];n({target:"Array",proto:!0,forced:String(r)===String(r.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},5228:(t,e,r)=>{"use strict";var n=r(4650),c=r(4955),l=r(8869),h=r(1138),f=r(5646),p=r(1650),y=r(7061),i=r(2362),r=r(7542)("slice"),g=i("species"),v=[].slice,d=Math.max;n({target:"Array",proto:!0,forced:!r},{slice:function(t,e){var r,n,i,o=p(this),a=f(o.length),s=h(t,a),u=h(void 0===e?a:e,a);if(l(o)&&((r="function"==typeof(r=o.constructor)&&(r===Array||l(r.prototype))||c(r)&&null===(r=r[g])?void 0:r)===Array||void 0===r))return v.call(o,s,u);for(n=new(void 0===r?Array:r)(d(u-s,0)),i=0;s<u;s++,i++)s in o&&y(n,i,o[s]);return n.length=i,n}})},2326:(t,e,r)=>{"use strict";var n=r(4650),i=r(6862).some;n({target:"Array",proto:!0,forced:!r(7402)("some")},{some:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}})},9146:(t,e,r)=>{r(4650)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},9422:(t,e,r)=>{r(4650)({target:"Function",proto:!0},{bind:r(8021)})},3905:(t,e,r)=>{var n=r(5313);r(6257)(n.JSON,"JSON",!0)},6249:(t,e,r)=>{"use strict";var n=r(2867),r=r(3286);t.exports=n("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},r)},9541:()=>{},166:(t,e,r)=>{r(4650)({target:"Object",stat:!0,sham:!r(988)},{create:r(8705)})},5770:(t,e,r)=>{var n=r(4650),i=r(988);n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:r(9611)})},3663:(t,e,r)=>{var n=r(4650),i=r(988);n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:r(9962).f})},5015:(t,e,r)=>{var n=r(4650),i=r(5172),o=r(1650),a=r(4832).f,r=r(988),i=i(function(){a(1)});n({target:"Object",stat:!0,forced:!r||i,sham:!r},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},3808:(t,e,r)=>{var n=r(4650),i=r(988),u=r(2865),c=r(1650),l=r(4832),h=r(7061);n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=c(t),i=l.f,o=u(n),a={},s=0;o.length>s;)void 0!==(r=i(n,e=o[s++]))&&h(a,e,r);return a}})},7851:(t,e,r)=>{var n=r(4650),i=r(5172),o=r(9270),a=r(5787),r=r(3368);n({target:"Object",stat:!0,forced:i(function(){a(1)}),sham:!r},{getPrototypeOf:function(t){return a(o(t))}})},5271:(t,e,r)=>{var n=r(4650),i=r(9270),o=r(5642);n({target:"Object",stat:!0,forced:r(5172)(function(){o(1)})},{keys:function(t){return o(i(t))}})},3121:(t,e,r)=>{r(4650)({target:"Object",stat:!0},{setPrototypeOf:r(1336)})},1637:()=>{},8246:(t,e,r)=>{var n=r(4650),r=r(8893);n({global:!0,forced:parseFloat!=r},{parseFloat:r})},4295:(t,e,r)=>{var n=r(4650),r=r(1905);n({global:!0,forced:parseInt!=r},{parseInt:r})},2044:(t,e,r)=>{"use strict";var n=r(4650),c=r(5114),i=r(4705),o=r(265),l=r(7612);n({target:"Promise",stat:!0},{allSettled:function(t){var s=this,e=i.f(s),u=e.resolve,r=e.reject,n=o(function(){var n=c(s.resolve),i=[],o=0,a=1;l(t,function(t){var e=o++,r=!1;i.push(void 0),a++,n.call(s,t).then(function(t){r||(r=!0,i[e]={status:"fulfilled",value:t},--a||u(i))},function(t){r||(r=!0,i[e]={status:"rejected",reason:t},--a||u(i))})}),--a||u(i)});return n.error&&r(n.value),e.promise}})},9671:(t,e,r)=>{"use strict";var n=r(4650),h=r(5114),f=r(7225),i=r(4705),o=r(265),p=r(7612),y="No one promise resolved";n({target:"Promise",stat:!0},{any:function(t){var u=this,e=i.f(u),c=e.resolve,l=e.reject,r=o(function(){var n=h(u.resolve),i=[],o=0,a=1,s=!1;p(t,function(t){var e=o++,r=!1;i.push(void 0),a++,n.call(u,t).then(function(t){r||s||(s=!0,c(t))},function(t){r||s||(r=!0,i[e]=t,--a||l(new(f("AggregateError"))(i,y)))})}),--a||l(new(f("AggregateError"))(i,y))});return r.error&&l(r.value),e.promise}})},2678:(t,e,r)=>{"use strict";var n=r(4650),i=r(1729),o=r(5230),a=r(5172),s=r(7225),u=r(9714),c=r(2023),r=r(228);n({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(e){var r=u(this,s("Promise")),t="function"==typeof e;return this.then(t?function(t){return c(r,e()).then(function(){return t})}:e,t?function(t){return c(r,e()).then(function(){throw t})}:e)}}),i||"function"!=typeof o||(i=s("Promise").prototype.finally,o.prototype.finally!==i&&r(o.prototype,"finally",i,{unsafe:!0}))},1931:(t,e,r)=>{"use strict";var n,i,o,a,s=r(4650),u=r(1729),g=r(5313),c=r(7225),l=r(5230),h=r(228),f=r(7213),p=r(1336),y=r(6257),v=r(3029),d=r(4955),m=r(5114),x=r(3988),b=r(6560),w=r(7612),S=r(2146),A=r(9714),k=r(9720).set,T=r(5096),O=r(2023),P=r(6593),C=r(4705),E=r(265),M=r(893),N=r(9177),R=r(2362),_=r(4943),V=r(3287),D=r(2750),L=R("species"),I="Promise",j=M.get,z=M.set,F=M.getterFor(I),M=l&&l.prototype,B=l,H=M,U=g.TypeError,X=g.document,$=g.process,Y=C.f,q=Y,W=!!(X&&X.createEvent&&g.dispatchEvent),G="function"==typeof PromiseRejectionEvent,Q="unhandledrejection",Z="rejectionhandled",K=1,J=2,tt=1,et=2,rt=!1,N=N(I,function(){var t=b(B),e=t!==String(B);if(!e&&66===D)return!0;if(u&&!H.finally)return!0;if(51<=D&&/native code/.test(t))return!1;var r=new B(function(t){t(1)}),t=function(t){t(function(){},function(){})};return(r.constructor={})[L]=t,!(rt=r.then(function(){})instanceof t)||!e&&_&&!G}),S=N||!S(function(t){B.all(t).catch(function(){})}),nt=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},it=function(f,p){var y;f.notified||(f.notified=!0,y=f.reactions,T(function(){for(var i,t=f.value,e=f.state==K,r=0;y.length>r;){var n,o,a,s=y[r++],u=e?s.ok:s.fail,c=s.resolve,l=s.reject,h=s.domain;try{u?(e||(f.rejection===et&&function(e){k.call(g,function(){var t=e.facade;if(V)$.emit("rejectionHandled",t);else ot(Z,t,e.value)})}(f),f.rejection=tt),!0===u?n=t:(h&&h.enter(),n=u(t),h&&(h.exit(),a=!0)),n===s.promise?l(U("Promise-chain cycle")):(o=nt(n))?o.call(n,c,l):c(n)):l(t)}catch(t){h&&!a&&h.exit(),l(t)}}f.reactions=[],f.notified=!1,p&&!f.rejection&&(i=f,k.call(g,function(){var t,e=i.facade,r=i.value,n=at(i);if(n&&(t=E(function(){V?$.emit("unhandledRejection",r,e):ot(Q,e,r)}),i.rejection=V||at(i)?et:tt,t.error))throw t.value}))}))},ot=function(t,e,r){var n,i;W?((n=X.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),g.dispatchEvent(n)):n={promise:e,reason:r},!G&&(i=g["on"+t])?i(n):t===Q&&P("Unhandled promise rejection",r)},at=function(t){return t.rejection!==tt&&!t.parent},st=function(e,r,n){return function(t){e(r,t,n)}},ut=function(t,e,r){t.done||(t.done=!0,(t=r?r:t).value=e,t.state=J,it(t,!0))},ct=function(r,t,e){if(!r.done){r.done=!0,e&&(r=e);try{if(r.facade===t)throw U("Promise can't be resolved itself");var n=nt(t);n?T(function(){var e={done:!1};try{n.call(t,st(ct,e,r),st(ut,e,r))}catch(t){ut(e,t,r)}}):(r.value=t,r.state=K,it(r,!1))}catch(t){ut({done:!1},t,r)}}};if(N&&(H=(B=function(t){x(this,B,I),m(t),n.call(this);var e=j(this);try{t(st(ct,e),st(ut,e))}catch(t){ut(e,t)}}).prototype,(n=function(t){z(this,{type:I,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(H,{then:function(t,e){var r=F(this),n=Y(A(this,B));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=V?$.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&it(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n,e=j(t);this.promise=t,this.resolve=st(ct,e),this.reject=st(ut,e)},C.f=Y=function(t){return t===B||t===o?new i:q(t)},!u&&"function"==typeof l&&M!==Object.prototype)){a=M.then,rt||(h(M,"then",function(t,e){var r=this;return new B(function(t,e){a.call(r,t,e)}).then(t,e)},{unsafe:!0}),h(M,"catch",H.catch,{unsafe:!0}));try{delete M.constructor}catch(t){}p&&p(M,H)}s({global:!0,wrap:!0,forced:N},{Promise:B}),y(B,I,!1,!0),v(I),o=c(I),s({target:I,stat:!0,forced:N},{reject:function(t){var e=Y(this);return e.reject.call(void 0,t),e.promise}}),s({target:I,stat:!0,forced:u||N},{resolve:function(t){return O(u&&this===o?B:this,t)}}),s({target:I,stat:!0,forced:S},{all:function(t){var s=this,e=Y(s),u=e.resolve,c=e.reject,r=E(function(){var n=m(s.resolve),i=[],o=0,a=1;w(t,function(t){var e=o++,r=!1;i.push(void 0),a++,n.call(s,t).then(function(t){r||(r=!0,i[e]=t,--a||u(i))},c)}),--a||u(i)});return r.error&&c(r.value),e.promise},race:function(t){var r=this,n=Y(r),i=n.reject,e=E(function(){var e=m(r.resolve);w(t,function(t){e.call(r,t).then(n.resolve,i)})});return e.error&&i(e.value),n.promise}})},3293:(t,e,r)=>{var n=r(4650),i=r(7225),o=r(5114),a=r(6508),r=r(5172),s=i("Reflect","apply"),u=Function.apply;n({target:"Reflect",stat:!0,forced:!r(function(){s(function(){})})},{apply:function(t,e,r){return o(t),a(r),s?s(t,e,r):u.call(t,e,r)}})},4398:(t,e,r)=>{var n=r(4650),i=r(7225),o=r(5114),a=r(6508),s=r(4955),u=r(8705),c=r(8021),r=r(5172),l=i("Reflect","construct"),h=r(function(){function t(){}return!(l(function(){},[],t)instanceof t)}),f=!r(function(){l(function(){})}),r=h||f;n({target:"Reflect",stat:!0,forced:r,sham:r},{construct:function(t,e){o(t),a(e);var r=arguments.length<3?t:o(arguments[2]);if(f&&!h)return l(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}n=r.prototype,r=u(s(n)?n:Object.prototype),n=Function.apply.call(t,r,e);return s(n)?n:r}})},9114:(t,e,r)=>{var n=r(4650),i=r(6508),o=r(4832).f;n({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=o(i(t),e);return!(r&&!r.configurable)&&delete t[e]}})},5087:(t,e,r)=>{var n=r(4650),i=r(6508),o=r(5787);n({target:"Reflect",stat:!0,sham:!r(3368)},{getPrototypeOf:function(t){return o(i(t))}})},7361:(t,e,r)=>{var n=r(4650),o=r(4955),a=r(6508),s=r(3634),u=r(4832),c=r(5787);n({target:"Reflect",stat:!0},{get:function t(e,r){var n,i=arguments.length<3?e:arguments[2];return a(e)===i?e[r]:(n=u.f(e,r))?s(n)?n.value:void 0===n.get?void 0:n.get.call(i):o(n=c(e))?t(n,r,i):void 0}})},336:()=>{},9522:(t,e,r)=>{"use strict";var n=r(4650),i=r(4091),o=r(3322),a=r(2062);n({target:"String",proto:!0,forced:!r(8047)("includes")},{includes:function(t){return!!~a(o(this)).indexOf(a(i(t)),1<arguments.length?arguments[1]:void 0)}})},9127:(t,e,r)=>{"use strict";var n=r(3955).charAt,i=r(2062),o=r(893),r=r(5461),a="String Iterator",s=o.set,u=o.getterFor(a);r(String,"String",function(t){s(this,{type:a,string:i(t),index:0})},function(){var t=u(this),e=t.string,r=t.index;return r>=e.length?{value:void 0,done:!0}:(r=n(e,r),t.index+=r.length,{value:r,done:!1})})},2109:(t,e,r)=>{"use strict";var n=r(4650),i=r(4832).f,o=r(5646),a=r(2062),s=r(4091),u=r(3322),c=r(8047),r=r(1729),l="".startsWith,h=Math.min,c=c("startsWith");n({target:"String",proto:!0,forced:!!(r||c||(!(i=i(String.prototype,"startsWith"))||i.writable))&&!c},{startsWith:function(t){var e=a(u(this));s(t);var r=o(h(1<arguments.length?arguments[1]:void 0,e.length)),t=a(t);return l?l.call(e,t,r):e.slice(r,r+t.length)===t}})},7843:(t,e,r)=>{"use strict";var n=r(4650),i=r(6355).trim;n({target:"String",proto:!0,forced:r(2701)("trim")},{trim:function(){return i(this)}})},5089:(t,e,r)=>{r(7034)("asyncIterator")},7015:()=>{},4207:(t,e,r)=>{r(7034)("hasInstance")},3867:(t,e,r)=>{r(7034)("isConcatSpreadable")},6878:(t,e,r)=>{r(7034)("iterator")},9078:(t,e,r)=>{"use strict";function n(t,e){var r=tt[t]=S(W[X]);return $(r,{type:U,tag:t,description:e}),c||(r.description=e),r}function i(e,t){v(e);var r=m(t),t=A(r).concat(ut(r));return B(t,function(t){c&&!st.call(r,t)||at(e,t,r[t])}),e}var o=r(4650),a=r(5313),s=r(7225),u=r(1729),c=r(988),l=r(1116),h=r(5172),f=r(7235),p=r(8869),y=r(4955),g=r(1444),v=r(6508),d=r(9270),m=r(1650),x=r(7877),b=r(2062),w=r(8714),S=r(8705),A=r(5642),k=r(4780),T=r(3929),O=r(5548),P=r(4832),C=r(9962),E=r(3469),M=r(44),N=r(228),R=r(6339),_=r(1327),V=r(1918),D=r(3954),L=r(2362),I=r(1102),j=r(7034),z=r(6257),F=r(893),B=r(6862).forEach,H=_("hidden"),U="Symbol",X="prototype",_=L("toPrimitive"),$=F.set,Y=F.getterFor(U),q=Object[X],W=a.Symbol,G=s("JSON","stringify"),Q=P.f,Z=C.f,K=T.f,J=E.f,tt=R("symbols"),et=R("op-symbols"),rt=R("string-to-symbol-registry"),nt=R("symbol-to-string-registry"),s=R("wks"),R=a.QObject,it=!R||!R[X]||!R[X].findChild,ot=c&&h(function(){return 7!=S(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=Q(q,e);n&&delete q[e],Z(t,e,r),n&&t!==q&&Z(q,e,n)}:Z,at=function(t,e,r){t===q&&at(et,e,r),v(t);e=x(e);return v(r),f(tt,e)?(r.enumerable?(f(t,H)&&t[H][e]&&(t[H][e]=!1),r=S(r,{enumerable:w(0,!1)})):(f(t,H)||Z(t,H,w(1,{})),t[H][e]=!0),ot(t,e,r)):Z(t,e,r)},st=function(t){var e=x(t),t=J.call(this,e);return!(this===q&&f(tt,e)&&!f(et,e))&&(!(t||!f(this,e)||!f(tt,e)||f(this,H)&&this[H][e])||t)},a=function(t,e){var r=m(t),t=x(e);if(r!==q||!f(tt,t)||f(et,t)){e=Q(r,t);return!e||!f(tt,t)||f(r,H)&&r[H][t]||(e.enumerable=!0),e}},R=function(t){var t=K(m(t)),e=[];return B(t,function(t){f(tt,t)||f(V,t)||e.push(t)}),e},ut=function(t){var e=t===q,t=K(e?et:m(t)),r=[];return B(t,function(t){!f(tt,t)||e&&!f(q,t)||r.push(tt[t])}),r};l||(N((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?b(arguments[0]):void 0,e=D(t),r=function(t){this===q&&r.call(et,t),f(this,H)&&f(this[H],e)&&(this[H][e]=!1),ot(this,e,w(1,t))};return c&&it&&ot(q,e,{configurable:!0,set:r}),n(e,t)})[X],"toString",function(){return Y(this).tag}),N(W,"withoutSetter",function(t){return n(D(t),t)}),E.f=st,C.f=at,P.f=a,k.f=T.f=R,O.f=ut,I.f=function(t){return n(L(t),t)},c&&(Z(W[X],"description",{configurable:!0,get:function(){return Y(this).description}}),u||N(q,"propertyIsEnumerable",st,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),B(A(s),function(t){j(t)}),o({target:U,stat:!0,forced:!l},{for:function(t){var e=b(t);if(f(rt,e))return rt[e];t=W(e);return rt[e]=t,nt[t]=e,t},keyFor:function(t){if(!g(t))throw TypeError(t+" is not a symbol");if(f(nt,t))return nt[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),o({target:"Object",stat:!0,forced:!l,sham:!c},{create:function(t,e){return void 0===e?S(t):i(S(t),e)},defineProperty:at,defineProperties:i,getOwnPropertyDescriptor:a}),o({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:R,getOwnPropertySymbols:ut}),o({target:"Object",stat:!0,forced:h(function(){O.f(1)})},{getOwnPropertySymbols:function(t){return O.f(d(t))}}),G&&o({target:"JSON",stat:!0,forced:!l||h(function(){var t=W();return"[null]"!=G([t])||"{}"!=G({a:t})||"{}"!=G(Object(t))})},{stringify:function(t,e,r){for(var n,i=[t],o=1;o<arguments.length;)i.push(arguments[o++]);if((y(n=e)||void 0!==t)&&!g(t))return p(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!g(e))return e}),i[1]=e,G.apply(null,i)}}),W[X][_]||M(W[X],_,W[X].valueOf),z(W,U),V[H]=!0},8715:(t,e,r)=>{r(7034)("matchAll")},25:(t,e,r)=>{r(7034)("match")},6858:(t,e,r)=>{r(7034)("replace")},8056:(t,e,r)=>{r(7034)("search")},2335:(t,e,r)=>{r(7034)("species")},8663:(t,e,r)=>{r(7034)("split")},2607:(t,e,r)=>{r(7034)("toPrimitive")},733:(t,e,r)=>{r(7034)("toStringTag")},2057:(t,e,r)=>{r(7034)("unscopables")},7264:(t,e,r)=>{r(7186)},9562:(t,e,r)=>{r(2044)},3980:(t,e,r)=>{r(9671)},7486:(t,e,r)=>{"use strict";var n=r(4650),i=r(4705),o=r(265);n({target:"Promise",stat:!0},{try:function(t){var e=i.f(this),t=o(t);return(t.error?e.reject:e.resolve)(t.value),e.promise}})},9427:(t,e,r)=>{r(7034)("asyncDispose")},7302:(t,e,r)=>{r(7034)("dispose")},8182:(t,e,r)=>{r(7034)("matcher")},3069:(t,e,r)=>{r(7034)("metadata")},1160:(t,e,r)=>{r(7034)("observable")},6121:(t,e,r)=>{r(7034)("patternMatch")},6472:(t,e,r)=>{r(7034)("replaceAll")},8169:(t,e,r)=>{r(9540);var n,i=r(4339),o=r(5313),a=r(9848),s=r(44),u=r(1575),c=r(2362)("toStringTag");for(n in i){var l=o[n],l=l&&l.prototype;l&&a(l)!==c&&s(l,c,n),u[n]=u.Array}},3176:(t,e,r)=>{r=r(2018);t.exports=r},2397:(t,e,r)=>{r=r(7885);t.exports=r},1834:(t,e,r)=>{r=r(6073);t.exports=r},2803:(t,e,r)=>{r=r(6838);t.exports=r},8139:(t,e,r)=>{r=r(411);t.exports=r},4199:(t,e,r)=>{var n=r(7031);r(8169),t.exports=n},5798:(t,e,r)=>{var n=r(2889);r(8169),t.exports=n},8921:(t,e,r)=>{r=r(7637);t.exports=r},8255:(t,e,r)=>{r=r(510);t.exports=r},2527:(t,e,r)=>{r=r(6167);t.exports=r},1761:(t,e,r)=>{r=r(8456);t.exports=r},5922:(t,e,r)=>{r=r(2465);t.exports=r},4e3:(t,e,r)=>{r(8169);var n=r(1834),i=r(9848),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===o||t instanceof Array&&e===o.forEach||a.hasOwnProperty(i(t))?n:e}},4922:(t,e,r)=>{r=r(1351);t.exports=r},6840:(t,e,r)=>{r=r(4975);t.exports=r},7964:(t,e,r)=>{r=r(9884);t.exports=r},758:(t,e,r)=>{r=r(1629);t.exports=r},4801:(t,e,r)=>{r=r(5428);t.exports=r},3492:(t,e,r)=>{r=r(8981);t.exports=r},3431:(t,e,r)=>{r=r(7865);t.exports=r},503:(t,e,r)=>{r=r(7172);t.exports=r},6007:(t,e,r)=>{r=r(2205);t.exports=r},5109:(t,e,r)=>{r(8169);var n=r(2803),i=r(9848),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.values;return t===o||t instanceof Array&&e===o.values||a.hasOwnProperty(i(t))?n:e}},6653:(t,e,r)=>{var n=r(2491);r(8169),t.exports=n},8631:(t,e,r)=>{r=r(2921);t.exports=r},9048:(t,e,r)=>{r=r(4004);t.exports=r},4613:(t,e,r)=>{r=r(2768);t.exports=r},9592:(t,e,r)=>{r=r(6680);t.exports=r},6016:(t,e,r)=>{r=r(4530);t.exports=r},2285:(t,e,r)=>{r=r(3704);t.exports=r},6292:(t,e,r)=>{r=r(1951);t.exports=r},4450:(t,e,r)=>{r=r(2829);t.exports=r},2549:(t,e,r)=>{r=r(4407);t.exports=r},4257:(t,e,r)=>{r=r(7594);t.exports=r},8025:(t,e,r)=>{r=r(2060);t.exports=r},2354:(t,e,r)=>{var n=r(944);r(8169),t.exports=n},6054:(t,e,r)=>{r=r(8749);t.exports=r},122:(t,e,r)=>{r=r(2331);t.exports=r},61:(t,e,r)=>{r=r(8474);t.exports=r},5917:(t,e,r)=>{r=r(6e3);t.exports=r},7564:(t,e,r)=>{r=r(5967);t.exports=r},6170:(t,e,r)=>{var n=r(5075);r(8169),t.exports=n},8976:(t,e,r)=>{var n=r(7910);r(8169),t.exports=n},1466:(t,e,r)=>{for(var n,i,o,a=r(1375),s="undefined"==typeof window?r.g:window,u=["moz","webkit"],c="AnimationFrame",l=s["request"+c],h=s["cancel"+c]||s["cancelRequest"+c],f=0;!l&&f<u.length;f++)l=s[u[f]+"Request"+c],h=s[u[f]+"Cancel"+c]||s[u[f]+"CancelRequest"+c];l&&h||(i=n=0,o=[],l=function(t){var e,r;return 0===o.length&&(e=a(),r=Math.max(0,1e3/60-(e-n)),n=r+e,setTimeout(function(){for(var t=o.slice(0),e=o.length=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(n)}catch(t){setTimeout(function(){throw t},0)}},Math.round(r))),o.push({handle:++i,callback:t,cancelled:!1}),i},h=function(t){for(var e=0;e<o.length;e++)o[e].handle===t&&(o[e].cancelled=!0)}),t.exports=function(t){return l.call(s,t)},t.exports.cancel=function(){h.apply(s,arguments)},t.exports.polyfill=function(t){(t=t||s).requestAnimationFrame=l,t.cancelAnimationFrame=h}},1500:e=>{e=function(a){"use strict";var u,t=Object.prototype,c=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i,o,a,s,e=e&&e.prototype instanceof v?e:v,e=Object.create(e.prototype),n=new T(n||[]);return e._invoke=(i=t,o=r,a=n,s=h,function(t,e){if(s===p)throw new Error("Generator is already running");if(s===y){if("throw"===t)throw e;return P()}for(a.method=t,a.arg=e;;){var r=a.delegate;if(r){var n=function t(e,r){var n=e.iterator[r.method];if(n===u){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=u,t(e,r),"throw"===r.method))return g;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var n=l(n,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,g;n=n.arg;if(!n)return r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g;{if(!n.done)return n;r[e.resultName]=n.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=u)}r.delegate=null;return g}(r,a);if(n){if(n===g)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===h)throw s=y,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=p;n=l(i,o,a);if("normal"===n.type){if(s=a.done?y:f,n.arg!==g)return{value:n.arg,done:a.done}}else"throw"===n.type&&(s=y,a.method="throw",a.arg=n.arg)}}),e}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var h="suspendedStart",f="suspendedYield",p="executing",y="completed",g={};function v(){}function d(){}function m(){}var x={};o(x,n,function(){return this});e=Object.getPrototypeOf,e=e&&e(e(O([])));e&&e!==t&&c.call(e,n)&&(x=e);var b=m.prototype=v.prototype=Object.create(x);function w(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function S(a,s){var e;this._invoke=function(r,n){function t(){return new s(function(t,e){!function e(t,r,n,i){t=l(a[t],a,r);if("throw"!==t.type){var o=t.arg;return(r=o.value)&&"object"==typeof r&&c.call(r,"__await")?s.resolve(r.__await).then(function(t){e("next",t,n,i)},function(t){e("throw",t,n,i)}):s.resolve(r).then(function(t){o.value=t,n(o)},function(t){return e("throw",t,n,i)})}i(t.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function O(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,t=function t(){for(;++r<e.length;)if(c.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=u,t.done=!0,t};return t.next=t}}return{next:P}}function P(){return{value:u,done:!0}}return o(b,"constructor",d.prototype=m),o(m,"constructor",d),d.displayName=o(m,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,o(t,i,"GeneratorFunction")),t.prototype=Object.create(b),t},a.awrap=function(t){return{__await:t}},w(S.prototype),o(S.prototype,r,function(){return this}),a.AsyncIterator=S,a.async=function(t,e,r,n,i){void 0===i&&(i=Promise);var o=new S(s(t,e,r,n),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},w(b),o(b,i,"Generator"),o(b,n,function(){return this}),o(b,"toString",function(){return"[object Generator]"}),a.keys=function(r){var t,n=[];for(t in r)n.push(t);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=O,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&c.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=u)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return o.type="throw",o.arg=r,n.next=t,e&&(n.method="next",n.arg=u),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=c.call(i,"catchLoc"),s=c.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&c.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n,i=r.completion;return"throw"===i.type&&(n=i.arg,k(r)),n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=u),g}},a}(e.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},9106:t=>{t.exports=function(t){this.ok=!1,this.alpha=1,t=(t=(t="#"==t.charAt(0)?t.substr(1,6):t).replace(/ /g,"")).toLowerCase();var l={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=l[t]||t;for(var h=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],e=0;e<h.length;e++){var r=h[e].re,n=h[e].process,r=r.exec(t);r&&(r=n(r),this.r=r[0],this.g=r[1],this.b=r[2],3<r.length&&(this.alpha=r[3]),this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?255:this.b,this.alpha=this.alpha<0?0:1<this.alpha||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return"#"+(t=1==t.length?"0"+t:t)+(e=1==e.length?"0"+e:e)+(r=1==r.length?"0"+r:r)},this.getHelpXML=function(){for(var t,e=new Array,r=0;r<h.length;r++)for(var n=h[r].example,i=0;i<n.length;i++)e[e.length]=n[i];for(t in l)e[e.length]=t;var o=document.createElement("ul");o.setAttribute("id","rgbcolor-examples");for(r=0;r<e.length;r++)try{var a=document.createElement("li"),s=new RGBColor(e[r]),u=document.createElement("div");u.style.cssText="margin: 3px; border: 1px solid black; background:"+s.toHex()+"; color:"+s.toHex(),u.appendChild(document.createTextNode("test"));var c=document.createTextNode(" "+e[r]+" -> "+s.toRGB()+" -> "+s.toHex());a.appendChild(u),a.appendChild(c),o.appendChild(a)}catch(t){}return o}}}},n={};function qn(t){var e=n[t];if(void 0!==e)return e.exports;e=n[t]={exports:{}};return r[t].call(e.exports,e,e.exports,qn),e.exports}qn.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return qn.d(e,{a:e}),e},qn.d=(t,e)=>{for(var r in e)qn.o(e,r)&&!qn.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},qn.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),qn.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Wn={};return(()=>{"use strict";qn.d(Wn,{default:()=>Yn});var t=qn(5265),e=qn.n(t),r=qn(2210),s=qn.n(r),n=qn(1151),d=qn.n(n),i=qn(7960);var u=qn(1161),c=qn(8516),l=qn.n(c);var o=qn(229),a=qn(7666);function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){if(t){if("string"==typeof t)return h(t,e);var r=o(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Map"===(r="Object"===r&&t.constructor?t.constructor.name:r)||"Set"===r?a(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}function w(t,e){return function(t){if(i(t))return t}(t)||function(t,e){var r=null==t?null:void 0!==u&&c(t)||t["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(t,e)||f(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var p=qn(7878),y=qn.n(p),g=qn(8229),v=qn.n(g),m=qn(4597),x=qn.n(m),b=qn(9061),S=qn.n(b),A=qn(9990),k=qn.n(A),T=qn(9957),O=qn.n(T),P=qn(5234),C=qn.n(P),E=qn(8470),M=qn.n(E),N=qn(4788),R=qn.n(N),_=qn(9498);function V(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):_.resolve(u).then(n,i)}function D(s){return function(){var t=this,a=arguments;return new _(function(e,r){var n=s.apply(t,a);function i(t){V(n,e,r,i,o,"next",t)}function o(t){V(n,e,r,i,o,"throw",t)}i(void 0)})}}var L=qn(6035);function I(t,e,r){return e in t?L(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),L(t,n.key,n)}}function F(t,e,r){return e&&z(t.prototype,e),r&&z(t,r),t}var B=qn(1777),H=qn.n(B),U=qn(5628),X=qn.n(U),$=qn(2844),Y=qn.n($),q=qn(7197),W=qn.n(q),G=qn(8903),Q=qn.n(G),Z=qn(5246),K=qn.n(Z),J=qn(1466),tt=qn.n(J),et=qn(3224),rt=qn.n(et),nt=qn(9106),it=qn.n(nt),ot=qn(9423),at=qn.n(ot),st=qn(1952),ut=qn(8310);function ct(t,e){return(ct=ut||function(t,e){return t.__proto__=e,t})(t,e)}function lt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=st(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ct(t,e)}var ht=qn(7850);function ft(t){return(ft="function"==typeof u&&"symbol"==typeof ht?function(t){return typeof t}:function(t){return t&&"function"==typeof u&&t.constructor===u&&t!==u.prototype?"symbol":typeof t})(t)}function pt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yt(t,e){if(e&&("object"===ft(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return pt(t)}var gt=qn(3487);function vt(t){return(vt=ut?gt:function(t){return t.__proto__||gt(t)})(t)}function dt(t){return function(t){if(i(t))return h(t)}(t)||function(t){if(void 0!==u&&null!=c(t)||null!=t["@@iterator"])return a(t)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var mt=qn(819),xt=qn.n(mt),bt=qn(6407),wt=qn.n(bt),St=qn(9266),At=qn.n(St),kt=qn(4440),Tt=qn.n(kt),t=qn(4578),Ot=qn.n(t),Pt=qn(9150),Ct=qn(7457);function Et(t,e,r){return(Et="undefined"!=typeof Reflect&&Pt?Pt:function(t,e,r){t=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=vt(t)););return t}(t,e);if(t){e=Ct(t,e);return e.get?e.get.call(r):e.value}})(t,e,r||t)}var r=qn(2743),Mt=qn.n(r),Nt=function(t,e){return(Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function Rt(t,e){function r(){this.constructor=t}Nt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function _t(t,e){var r=t[0],t=t[1];return[r*Math.cos(e)-t*Math.sin(e),r*Math.sin(e)+t*Math.cos(e)]}function Vt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return 1}var Dt=Math.PI;function Lt(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var n=t.rX,i=t.rY,o=t.x,a=t.y,n=Math.abs(t.rX),i=Math.abs(t.rY),s=_t([(e-o)/2,(r-a)/2],-t.xRot/180*Dt),u=s[0],c=s[1],l=Math.pow(u,2)/Math.pow(n,2)+Math.pow(c,2)/Math.pow(i,2);1<l&&(n*=Math.sqrt(l),i*=Math.sqrt(l)),t.rX=n,t.rY=i;var h=Math.pow(n,2)*Math.pow(c,2)+Math.pow(i,2)*Math.pow(u,2),s=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(i,2)-h)/h)),l=n*c/i*s,h=-i*u/n*s,s=_t([l,h],t.xRot/180*Dt);t.cX=s[0]+(e+o)/2,t.cY=s[1]+(r+a)/2,t.phi1=Math.atan2((c-h)/i,(u-l)/n),t.phi2=Math.atan2((-c-h)/i,(-u-l)/n),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*Dt),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*Dt),t.phi1*=180/Dt,t.phi2*=180/Dt}function It(t,e,r){Vt(t,e,r);var n=t*t+e*e-r*r;if(n<0)return[];if(0==n)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];n=Math.sqrt(n);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var jt,zt=Math.PI/180;function Ft(t,e,r){return(1-r)*t+r*e}function Bt(t,e,r,n){return t+Math.cos(n/180*Dt)*e+Math.sin(n/180*Dt)*r}function Ht(t,e,r,n){var t=e-t,e=r-e,i=3*t+3*(n-r)-6*e,e=6*(e-t),o=3*t;return Math.abs(i)<1e-6?[-o/e]:function(t,e){var r=t*t/4-o/i;if(r<-(e=void 0===e?1e-6:e))return[];if(r<=e)return[-t/2];r=Math.sqrt(r);return[-t/2-r,-t/2+r]}(e/i,1e-6)}function Ut(t,e,r,n,i){var o=1-i;return t*(o*o*o)+e*(3*o*o*i)+r*(3*o*i*i)+n*(i*i*i)}function Xt(){return qt(function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t})}function $t(){var n=NaN,i=NaN,o=NaN,a=NaN;return qt(function(t,e,r){return t.type&Jt.SMOOTH_CURVE_TO&&(t.type=Jt.CURVE_TO,n=isNaN(n)?e:n,i=isNaN(i)?r:i,t.x1=t.relative?e-n:2*e-n,t.y1=t.relative?r-i:2*r-i),i=t.type&Jt.CURVE_TO?(n=t.relative?e+t.x2:t.x2,t.relative?r+t.y2:t.y2):n=NaN,t.type&Jt.SMOOTH_QUAD_TO&&(t.type=Jt.QUAD_TO,o=isNaN(o)?e:o,a=isNaN(a)?r:a,t.x1=t.relative?e-o:2*e-o,t.y1=t.relative?r-a:2*r-a),a=t.type&Jt.QUAD_TO?(o=t.relative?e+t.x1:t.x1,t.relative?r+t.y1:t.y1):o=NaN,t})}function Yt(){var o=NaN,a=NaN;return qt(function(t,e,r){var n,i;return t.type&Jt.SMOOTH_QUAD_TO&&(t.type=Jt.QUAD_TO,o=isNaN(o)?e:o,a=isNaN(a)?r:a,t.x1=t.relative?e-o:2*e-o,t.y1=t.relative?r-a:2*r-a),t.type&Jt.QUAD_TO?(o=t.relative?e+t.x1:t.x1,a=t.relative?r+t.y1:t.y1,n=t.x1,i=t.y1,t.type=Jt.CURVE_TO,t.x1=((t.relative?0:e)+2*n)/3,t.y1=((t.relative?0:r)+2*i)/3,t.x2=(t.x+2*n)/3,t.y2=(t.y+2*i)/3):a=o=NaN,t})}function qt(r){var n=0,i=0,o=NaN,a=NaN;return function(t){if(isNaN(o)&&!(t.type&Jt.MOVE_TO))throw new Error("path must start with moveto");var e=r(t,n,i,o,a);return t.type&Jt.CLOSE_PATH&&(n=o,i=a),void 0!==t.x&&(n=t.relative?n+t.x:t.x),void 0!==t.y&&(i=t.relative?i+t.y:t.y),t.type&Jt.MOVE_TO&&(o=n,a=i),e}}function Wt(c,l,h,f,p,y){return Vt(c,l,h,f,p,y),qt(function(t,e,r,n){var i=t.x1,o=t.x2,a=t.relative&&!isNaN(n),s=void 0!==t.x?t.x:a?0:e,n=void 0!==t.y?t.y:a?0:r;function u(t){return t*t}t.type&Jt.HORIZ_LINE_TO&&0!==l&&(t.type=Jt.LINE_TO,t.y=t.relative?0:r),t.type&Jt.VERT_LINE_TO&&0!==h&&(t.type=Jt.LINE_TO,t.x=t.relative?0:e),void 0!==t.x&&(t.x=t.x*c+n*h+(a?0:p)),void 0!==t.y&&(t.y=s*l+t.y*f+(a?0:y)),void 0!==t.x1&&(t.x1=t.x1*c+t.y1*h+(a?0:p)),void 0!==t.y1&&(t.y1=i*l+t.y1*f+(a?0:y)),void 0!==t.x2&&(t.x2=t.x2*c+t.y2*h+(a?0:p)),void 0!==t.y2&&(t.y2=o*l+t.y2*f+(a?0:y));r=c*f-l*h;return void 0===t.xRot||1===c&&0===l&&0===h&&1===f||(0==r?(delete t.rX,delete t.rY,delete t.xRot,delete t.lArcFlag,delete t.sweepFlag,t.type=Jt.LINE_TO):(e=t.xRot*Math.PI/180,n=Math.sin(e),s=Math.cos(e),i=1/u(t.rX),o=1/u(t.rY),a=u(s)*i+u(n)*o,e=u(n)*i+u(s)*o,s=a*f*f-(n=2*n*s*(i-o))*l*f+e*l*l,i=n*(c*f+l*h)-2*(a*h*f+e*c*l),o=a*h*h-n*c*h+e*c*c,a=(Math.atan2(i,s-o)+Math.PI)%Math.PI/2,n=Math.sin(a),e=Math.cos(a),t.rX=Math.abs(r)/Math.sqrt(s*u(e)+i*n*e+o*u(n)),t.rY=Math.abs(r)/Math.sqrt(s*u(n)-i*n*e+o*u(e)),t.xRot=180*a/Math.PI)),void 0!==t.sweepFlag&&r<0&&(t.sweepFlag=+!t.sweepFlag),t})}(n=jt=jt||{}).ROUND=function(e){function r(t){return Math.round(t*e)/e}return Vt(e=void 0===e?1e13:e),function(t){return void 0!==t.x1&&(t.x1=r(t.x1)),void 0!==t.y1&&(t.y1=r(t.y1)),void 0!==t.x2&&(t.x2=r(t.x2)),void 0!==t.y2&&(t.y2=r(t.y2)),void 0!==t.x&&(t.x=r(t.x)),void 0!==t.y&&(t.y=r(t.y)),void 0!==t.rX&&(t.rX=r(t.rX)),void 0!==t.rY&&(t.rY=r(t.rY)),t}},n.TO_ABS=Xt,n.TO_REL=function(){return qt(function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t})},n.NORMALIZE_HVZ=function(o,a,s){return void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===s&&(s=!0),qt(function(t,e,r,n,i){if(isNaN(n)&&!(t.type&Jt.MOVE_TO))throw new Error("path must start with moveto");return a&&t.type&Jt.HORIZ_LINE_TO&&(t.type=Jt.LINE_TO,t.y=t.relative?0:r),s&&t.type&Jt.VERT_LINE_TO&&(t.type=Jt.LINE_TO,t.x=t.relative?0:e),o&&t.type&Jt.CLOSE_PATH&&(t.type=Jt.LINE_TO,t.x=t.relative?n-e:n,t.y=t.relative?i-r:i),t.type&Jt.ARC&&(0===t.rX||0===t.rY)&&(t.type=Jt.LINE_TO,delete t.rX,delete t.rY,delete t.xRot,delete t.lArcFlag,delete t.sweepFlag),t})},n.NORMALIZE_ST=$t,n.QT_TO_C=Yt,n.INFO=qt,n.SANITIZE=function(p){Vt(p=void 0===p?0:p);var y=NaN,g=NaN,v=NaN,d=NaN;return qt(function(t,e,r,n,i){var o,a,s,u,c=Math.abs,l=!1,h=0,f=0;return t.type&Jt.SMOOTH_CURVE_TO&&(h=isNaN(y)?0:e-y,f=isNaN(g)?0:r-g),g=t.type&(Jt.CURVE_TO|Jt.SMOOTH_CURVE_TO)?(y=t.relative?e+t.x2:t.x2,t.relative?r+t.y2:t.y2):y=NaN,d=t.type&Jt.SMOOTH_QUAD_TO?(v=isNaN(v)?e:2*e-v,isNaN(d)?r:2*r-d):t.type&Jt.QUAD_TO?(v=t.relative?e+t.x1:t.x1,t.relative?r+t.y1:t.y2):v=NaN,(t.type&Jt.LINE_COMMANDS||t.type&Jt.ARC&&(0===t.rX||0===t.rY||!t.lArcFlag)||t.type&Jt.CURVE_TO||t.type&Jt.SMOOTH_CURVE_TO||t.type&Jt.QUAD_TO||t.type&Jt.SMOOTH_QUAD_TO)&&(o=void 0===t.x?0:t.relative?t.x:t.x-e,a=void 0===t.y?0:t.relative?t.y:t.y-r,h=isNaN(v)?void 0===t.x1?h:t.relative?t.x:t.x1-e:v-e,f=isNaN(d)?void 0===t.y1?f:t.relative?t.y:t.y1-r:d-r,s=void 0===t.x2?0:t.relative?t.x:t.x2-e,u=void 0===t.y2?0:t.relative?t.y:t.y2-r,c(o)<=p&&c(a)<=p&&c(h)<=p&&c(f)<=p&&c(s)<=p&&c(u)<=p&&(l=!0)),(l=t.type&Jt.CLOSE_PATH&&c(e-n)<=p&&c(r-i)<=p?!0:l)?[]:t})},n.MATRIX=Wt,n.ROTATE=function(t,e,r){Vt(t,e=void 0===e?0:e,r=void 0===r?0:r);var n=Math.sin(t),t=Math.cos(t);return Wt(t,n,-n,t,e-e*t+r*n,r-e*n-r*t)},n.TRANSLATE=function(t,e){return Vt(t,e=void 0===e?0:e),Wt(1,0,0,1,t,e)},n.SCALE=function(t,e){return Vt(t,e=void 0===e?t:e),Wt(t,0,0,e,0,0)},n.SKEW_X=function(t){return Vt(t),Wt(1,0,Math.atan(t),1,0,0)},n.SKEW_Y=function(t){return Vt(t),Wt(1,Math.atan(t),0,1,0,0)},n.X_AXIS_SYMMETRY=function(t){return Vt(t=void 0===t?0:t),Wt(-1,0,0,1,t,0)},n.Y_AXIS_SYMMETRY=function(t){return Vt(t=void 0===t?0:t),Wt(1,0,0,-1,0,t)},n.A_TO_C=function(){return qt(function(t,e,r){return Jt.ARC===t.type?function(r,t,e){r.cX||Lt(r,t,e);for(var n=Math.min(r.phi1,r.phi2),n=Math.max(r.phi1,r.phi2)-n,i=Math.ceil(n/90),o=new Array(i),a=t,s=e,u=0;u<i;u++){var c=Ft(r.phi1,r.phi2,u/i),l=Ft(r.phi1,r.phi2,(u+1)/i),h=4/3*Math.tan((l-c)*zt/4),f=[Math.cos(c*zt)-h*Math.sin(c*zt),Math.sin(c*zt)+h*Math.cos(c*zt)],p=f[0],y=f[1],g=[Math.cos(l*zt),Math.sin(l*zt)],c=g[0],f=g[1],g=[c+h*Math.sin(l*zt),f-h*Math.cos(l*zt)],h=g[0],l=g[1];o[u]={relative:r.relative,type:Jt.CURVE_TO};g=function(t,e){t=_t([t*r.rX,e*r.rY],r.xRot),e=t[0],t=t[1];return[r.cX+e,r.cY+t]},y=g(p,y);o[u].x1=y[0],o[u].y1=y[1],l=g(h,l),o[u].x2=l[0],o[u].y2=l[1],f=g(c,f),o[u].x=f[0],o[u].y=f[1],r.relative&&(o[u].x1-=a,o[u].y1-=s,o[u].x2-=a,o[u].y2-=s,o[u].x-=a,o[u].y-=s),a=(f=[o[u].x,o[u].y])[0],s=f[1]}return o}(t,t.relative?0:e,t.relative?0:r):t})},n.ANNOTATE_ARCS=function(){return qt(function(t,e,r){return t.relative&&(r=e=0),Jt.ARC===t.type&&Lt(t,e,r),t})},n.CLONE=function(){return function(t){var e,r={};for(e in t)r[e]=t[e];return r}},n.CALCULATE_BOUNDS=function(){var S=Xt(),A=Yt(),k=$t(),T=qt(function(t,e,r){var n=k(A(S(function(t){var e,r={};for(e in t)r[e]=t[e];return r}(t))));function i(t){t>T.maxX&&(T.maxX=t),t<T.minX&&(T.minX=t)}function o(t){t>T.maxY&&(T.maxY=t),t<T.minY&&(T.minY=t)}if(n.type&Jt.DRAWING_COMMANDS&&(i(e),o(r)),n.type&Jt.HORIZ_LINE_TO&&i(n.x),n.type&Jt.VERT_LINE_TO&&o(n.y),n.type&Jt.LINE_TO&&(i(n.x),o(n.y)),n.type&Jt.CURVE_TO){i(n.x),o(n.y);for(var a=0,s=Ht(e,n.x1,n.x2,n.x);a<s.length;a++)0<(x=s[a])&&x<1&&i(Ut(e,n.x1,n.x2,n.x,x));for(var u=0,c=Ht(r,n.y1,n.y2,n.y);u<c.length;u++)0<(x=c[u])&&x<1&&o(Ut(r,n.y1,n.y2,n.y,x))}if(n.type&Jt.ARC){i(n.x),o(n.y),Lt(n,e,r);for(var l=n.xRot/180*Math.PI,h=Math.cos(l)*n.rX,f=Math.sin(l)*n.rX,p=-Math.sin(l)*n.rY,y=Math.cos(l)*n.rY,l=n.phi1<n.phi2?[n.phi1,n.phi2]:n.phi2<-180?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],g=l[0],v=l[1],l=function(t){var e=t[0],t=t[1],e=180*Math.atan2(t,e)/Math.PI;return e<g?360+e:e},d=0,m=It(p,-h,0).map(l);d<m.length;d++)(x=m[d])>g&&x<v&&i(Bt(n.cX,h,p,x));for(var x,b=0,w=It(y,-f,0).map(l);b<w.length;b++)(x=w[b])>g&&x<v&&o(Bt(n.cY,f,y,x))}return t});return T.minX=1/0,T.maxX=-1/0,T.minY=1/0,T.maxY=-1/0,T};function Gt(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)}var Qt,Zt,p=(ne.prototype.round=function(t){return this.transform(jt.ROUND(t))},ne.prototype.toAbs=function(){return this.transform(jt.TO_ABS())},ne.prototype.toRel=function(){return this.transform(jt.TO_REL())},ne.prototype.normalizeHVZ=function(t,e,r){return this.transform(jt.NORMALIZE_HVZ(t,e,r))},ne.prototype.normalizeST=function(){return this.transform(jt.NORMALIZE_ST())},ne.prototype.qtToC=function(){return this.transform(jt.QT_TO_C())},ne.prototype.aToC=function(){return this.transform(jt.A_TO_C())},ne.prototype.sanitize=function(t){return this.transform(jt.SANITIZE(t))},ne.prototype.translate=function(t,e){return this.transform(jt.TRANSLATE(t,e))},ne.prototype.scale=function(t,e){return this.transform(jt.SCALE(t,e))},ne.prototype.rotate=function(t,e,r){return this.transform(jt.ROTATE(t,e,r))},ne.prototype.matrix=function(t,e,r,n,i,o){return this.transform(jt.MATRIX(t,e,r,n,i,o))},ne.prototype.skewX=function(t){return this.transform(jt.SKEW_X(t))},ne.prototype.skewY=function(t){return this.transform(jt.SKEW_Y(t))},ne.prototype.xSymmetry=function(t){return this.transform(jt.X_AXIS_SYMMETRY(t))},ne.prototype.ySymmetry=function(t){return this.transform(jt.Y_AXIS_SYMMETRY(t))},ne.prototype.annotateArcs=function(){return this.transform(jt.ANNOTATE_ARCS())},ne),Kt=(Rt(re,Zt=p),re.prototype.finish=function(t){if(this.parse(" ",t=void 0===t?[]:t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},re.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var n=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},i=0;i<t.length;i++){var o=t[i],a=!(this.curCommandType!==Jt.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),s=Gt(o)&&("0"===this.curNumber&&"0"===o||a);if(!Gt(o)||s)if("e"!==o&&"E"!==o)if("-"!==o&&"+"!==o||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==o||this.curNumberHasExp||this.curNumberHasDecimal||a){if(this.curNumber&&-1!==this.curCommandType){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===Jt.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(u<0)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(u),this.curArgs.length===te[this.curCommandType]&&(Jt.HORIZ_LINE_TO===this.curCommandType?n({type:Jt.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):Jt.VERT_LINE_TO===this.curCommandType?n({type:Jt.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===Jt.MOVE_TO||this.curCommandType===Jt.LINE_TO||this.curCommandType===Jt.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Jt.MOVE_TO===this.curCommandType&&(this.curCommandType=Jt.LINE_TO)):this.curCommandType===Jt.CURVE_TO?n({type:Jt.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===Jt.SMOOTH_CURVE_TO?n({type:Jt.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Jt.QUAD_TO?n({type:Jt.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Jt.ARC&&n({type:Jt.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(" "!==(u=o)&&"\t"!==u&&"\r"!==u&&"\n"!==u)if(","===o&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==o&&"-"!==o&&"."!==o)if(s)this.curNumber=o,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==o&&"Z"!==o)if("h"===o||"H"===o)this.curCommandType=Jt.HORIZ_LINE_TO,this.curCommandRelative="h"===o;else if("v"===o||"V"===o)this.curCommandType=Jt.VERT_LINE_TO,this.curCommandRelative="v"===o;else if("m"===o||"M"===o)this.curCommandType=Jt.MOVE_TO,this.curCommandRelative="m"===o;else if("l"===o||"L"===o)this.curCommandType=Jt.LINE_TO,this.curCommandRelative="l"===o;else if("c"===o||"C"===o)this.curCommandType=Jt.CURVE_TO,this.curCommandRelative="c"===o;else if("s"===o||"S"===o)this.curCommandType=Jt.SMOOTH_CURVE_TO,this.curCommandRelative="s"===o;else if("q"===o||"Q"===o)this.curCommandType=Jt.QUAD_TO,this.curCommandRelative="q"===o;else if("t"===o||"T"===o)this.curCommandType=Jt.SMOOTH_QUAD_TO,this.curCommandRelative="t"===o;else{if("a"!==o&&"A"!==o)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+".");this.curCommandType=Jt.ARC,this.curCommandRelative="a"===o}else e.push({type:Jt.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 e},re.prototype.transform=function(o){return Object.create(this,{parse:{value:function(t,e){void 0===e&&(e=[]);for(var r=0,n=Object.getPrototypeOf(this).parse.call(this,t);r<n.length;r++){var i=n[r],i=o(i);Array.isArray(i)?e.push.apply(e,i):e.push(i)}return e}}})},re),Jt=(Rt(ee,Qt=p),ee.prototype.encode=function(){return ee.encode(this.commands)},ee.prototype.getBounds=function(){var t=jt.CALCULATE_BOUNDS();return this.transform(t),t},ee.prototype.transform=function(t){for(var e=[],r=0,n=this.commands;r<n.length;r++){var i=t(n[r]);Array.isArray(i)?e.push.apply(e,i):e.push(i)}return this.commands=e,this},ee.encode=function(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var n=t[r];if(n.type===Jt.CLOSE_PATH)e+="z";else if(n.type===Jt.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===Jt.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===Jt.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===Jt.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===Jt.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Jt.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Jt.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===Jt.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==Jt.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+r+".");e+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return e},ee.parse=function(t){var e=new Kt,r=[];return e.parse(t,r),e.finish(r),r},ee.CLOSE_PATH=1,ee.MOVE_TO=2,ee.HORIZ_LINE_TO=4,ee.VERT_LINE_TO=8,ee.LINE_TO=16,ee.CURVE_TO=32,ee.SMOOTH_CURVE_TO=64,ee.QUAD_TO=128,ee.SMOOTH_QUAD_TO=256,ee.ARC=512,ee.LINE_COMMANDS=ee.LINE_TO|ee.HORIZ_LINE_TO|ee.VERT_LINE_TO,ee.DRAWING_COMMANDS=ee.HORIZ_LINE_TO|ee.VERT_LINE_TO|ee.LINE_TO|ee.CURVE_TO|ee.SMOOTH_CURVE_TO|ee.QUAD_TO|ee.SMOOTH_QUAD_TO|ee.ARC,ee),te=((g={})[Jt.MOVE_TO]=2,g[Jt.LINE_TO]=2,g[Jt.HORIZ_LINE_TO]=1,g[Jt.VERT_LINE_TO]=1,g[Jt.CLOSE_PATH]=0,g[Jt.QUAD_TO]=4,g[Jt.SMOOTH_QUAD_TO]=2,g[Jt.CURVE_TO]=6,g[Jt.SMOOTH_CURVE_TO]=4,g[Jt.ARC]=7,g);function ee(t){var e=Qt.call(this)||this;return e.commands="string"==typeof t?ee.parse(t):t,e}function re(){var t=Zt.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}function ne(){}var m=qn(2108),ie=qn.n(m),b=qn(7516),oe=qn.n(b),A=qn(8748),ae=qn.n(A),T=qn(9882),se=qn.n(T),P=qn(1572),ue=qn.n(P),E=qn(4965),ce=qn.n(E),N=qn(6075),le=qn.n(N),B=qn(4541),he=qn.n(B),U=qn(7195),fe=qn.n(U),$=qn(6623),pe=qn.n($);function ye(t){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ge=[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],ve=[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 de(t,e,r,n,i){if(!((t="string"==typeof t?document.getElementById(t):t)&&"object"===ye(t)&&"getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");t=t.getContext("2d");try{return t.getImageData(e,r,n,i)}catch(t){throw new Error("unable to access image data: "+t)}}function me(t,e,r,n,i,o){var a;isNaN(o)||o<1||(o|=0,a=function(t,e,r,n){for(var i,o=t.data,a=2*n+1,s=e-1,u=r-1,c=n+1,l=c*(c+1)/2,h=new xe,f=h,p=1;p<a;p++)f=f.next=new xe,p===c&&(i=f);f.next=h;for(var y=null,g=null,v=0,d=0,m=ge[n],x=ve[n],b=0;b<r;b++){f=h;for(var w=o[d],S=o[d+1],A=o[d+2],k=o[d+3],T=0;T<c;T++)f.r=w,f.g=S,f.b=A,f.a=k,f=f.next;for(var O=0,P=0,C=0,E=0,M=c*w,N=c*S,R=c*A,_=c*k,V=l*w,D=l*S,L=l*A,I=l*k,j=1;j<c;j++){var z=d+((s<j?s:j)<<2),F=o[z],B=o[z+1],H=o[z+2],U=o[z+3],z=c-j;V+=(f.r=F)*z,D+=(f.g=B)*z,L+=(f.b=H)*z,I+=(f.a=U)*z,O+=F,P+=B,C+=H,E+=U,f=f.next}y=h,g=i;for(var X=0;X<e;X++){var $=I*m>>x;0!=(o[d+3]=$)?(W=255/$,o[d]=(V*m>>x)*W,o[d+1]=(D*m>>x)*W,o[d+2]=(L*m>>x)*W):o[d]=o[d+1]=o[d+2]=0,V-=M,D-=N,L-=R,I-=_,M-=y.r,N-=y.g,R-=y.b,_-=y.a;var Y=X+n+1;Y=v+(Y<s?Y:s)<<2,O+=y.r=o[Y],P+=y.g=o[Y+1],C+=y.b=o[Y+2],E+=y.a=o[Y+3],V+=O,D+=P,L+=C,I+=E,y=y.next;var q=g,$=q.r,W=q.g,Y=q.b,q=q.a;M+=$,N+=W,R+=Y,_+=q,O-=$,P-=W,C-=Y,E-=q,g=g.next,d+=4}v+=e}for(var G=0;G<e;G++){var Q=o[d=G<<2],Z=o[d+1],K=o[d+2],J=o[d+3],tt=c*Q,et=c*Z,rt=c*K,nt=c*J,it=l*Q,ot=l*Z,at=l*K,st=l*J;f=h;for(var ut=0;ut<c;ut++)f.r=Q,f.g=Z,f.b=K,f.a=J,f=f.next;for(var ct=e,lt=0,ht=0,ft=0,pt=0,yt=1;yt<=n;yt++){d=ct+G<<2;var gt=c-yt;it+=(f.r=Q=o[d])*gt,ot+=(f.g=Z=o[d+1])*gt,at+=(f.b=K=o[d+2])*gt,st+=(f.a=J=o[d+3])*gt,pt+=Q,lt+=Z,ht+=K,ft+=J,f=f.next,yt<u&&(ct+=e)}d=G,y=h,g=i;for(var vt=0;vt<r;vt++){var dt=d<<2;o[dt+3]=J=st*m>>x,0<J?(J=255/J,o[dt]=(it*m>>x)*J,o[dt+1]=(ot*m>>x)*J,o[dt+2]=(at*m>>x)*J):o[dt]=o[dt+1]=o[dt+2]=0,it-=tt,ot-=et,at-=rt,st-=nt,tt-=y.r,et-=y.g,rt-=y.b,nt-=y.a,dt=G+((dt=vt+c)<u?dt:u)*e<<2,it+=pt+=y.r=o[dt],ot+=lt+=y.g=o[dt+1],at+=ht+=y.b=o[dt+2],st+=ft+=y.a=o[dt+3],y=y.next,tt+=Q=g.r,et+=Z=g.g,rt+=K=g.b,nt+=J=g.a,pt-=Q,lt-=Z,ht-=K,ft-=J,g=g.next,d+=e}}return t}(a=de(t,e,r,n,i),n,i,o),t.getContext("2d").putImageData(a,e,r))}var xe=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function be(t){return t.replace(/(?!\u3000)\s+/gm," ")}function we(t){t=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return d()(t).call(t,s())}var Se=/^[A-Z-]+$/;function Ae(t){t=t.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return t[2]||t[3]||t[4]}var ke=/(\[[^\]]+\])/g,Te=/(#[^\s\+>~\.\[:]+)/g,Oe=/(\.[^\s\+>~\.\[:]+)/g,Pe=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,Ce=/(:[\w-]+\([^\)]*\))/gi,Ee=/(:[^\s\+>~\.\[:]+)/g,Me=/([^\s\+>~\.\[:]+)/g;function Ne(t,e){var r=t.match(e);return r?[t.replace(e," "),r.length]:[t,0]}var Re=1e-8;function _e(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function Ve(t,e){return(t[0]*e[0]+t[1]*e[1])/(_e(t)*_e(e))}function De(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ve(t,e))}function Le(t){return t*t*t}function Ie(t){return 3*t*t*(1-t)}function je(t){return 3*t*(1-t)*(1-t)}function ze(t){return(1-t)*(1-t)*(1-t)}function Fe(t){return t*t}function Be(t){return 2*t*(1-t)}function He(t){return(1-t)*(1-t)}var Ue=function(){function a(t,e,r){j(this,a),this.document=t,this.name=e,this.value=r,this.isNormalizedColor=!1}return F(a,[{key:"split",value:function(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:" ",r=this.document,n=this.name;return d()(e=rt()(t=be(this.getString())).call(t).split(e)).call(e,function(t){return new a(r,n,t)})}},{key:"hasValue",value:function(t){var e=this.value;return null!==e&&""!==e&&(t||0!==e)&&void 0!==e}},{key:"isString",value:function(t){var e=this.value,r="string"==typeof e;return r&&t?t.test(e):r}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case/px$/.test(t):case/^[0-9]+$/.test(t):return!0;default:return!1}}},{key:"setValue",value:function(t){return this.value=t,this}},{key:"getValue",value:function(t){return void 0===t||this.hasValue()?this.value:t}},{key:"getNumber",value:function(t){if(!this.hasValue())return void 0===t?0:s()(t);t=this.value,t=s()(t);return this.isString(/%$/)&&(t/=100),t}},{key:"getString",value:function(t){return void 0===t||this.hasValue()?void 0===this.value?"":String(this.value):String(t)}},{key:"getColor",value:function(t){t=this.getString(t);return this.isNormalizedColor?t:(this.isNormalizedColor=!0,t=function(t){if(!e()(t).call(t,"rgb"))return t;var r=3;return t.replace(/\d+(\.\d+)?/g,function(t,e){return r--&&e?String(Math.round(s()(t))):t})}(t),this.value=t)}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9\.\-]/g,"")}},{key:"getPixels",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var t=w("boolean"==typeof t?[void 0,t]:[t],2),r=t[0],t=t[1],n=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 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(/%$/)&&t:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(r);default:var i=this.getNumber();return e&&i<1?i*n.computeSize(r):i}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function(){var t=this.getString(),e=(e=t.match(/#([^\)'"]+)/))&&e[1];return this.document.definitions[e=e||t]}},{key:"getFillStyleDefinition",value:function(t,e){var r,n=this.getDefinition();return n?"function"==typeof n.createGradient?n.createGradient(this.document.ctx,t,e):"function"!=typeof n.createPattern?null:(n.getHrefAttribute().hasValue()&&(r=n.getAttribute("patternTransform"),n=n.getHrefAttribute().getDefinition(),r.hasValue()&&n.getAttribute("patternTransform",!0).setValue(r.value)),n.createPattern(this.document.ctx,t,e)):null}},{key:"getTextBaseline",value:function(){return this.hasValue()?a.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(t){for(var e,r=this.getColor(),n=r.length,i=0,o=0;o<n&&(","===r[o]&&i++,3!==i);o++);return t.hasValue()&&this.isString()&&3!==i&&((e=new(it())(r)).ok&&(e.alpha=t.getNumber(),r=e.toRGBA())),new a(this.document,this.name,r)}}],[{key:"empty",value:function(t){return new a(t,"EMPTY","")}}]),a}();Ue.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var Xe=function(){function t(){j(this,t),this.viewPorts=[]}return F(t,[{key:"clear",value:function(){this.viewPorts=[]}},{key:"setCurrent",value:function(t,e){this.viewPorts.push({width:t,height:e})}},{key:"removeCurrent",value:function(){this.viewPorts.pop()}},{key:"getCurrent",value:function(){var t=this.viewPorts;return t[t.length-1]}},{key:"computeSize",value:function(t){return"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}}]),t}(),$e=function(){function o(t,e){j(this,o),this.x=t,this.y=e}return F(o,[{key:"angleTo",value:function(t){return Math.atan2(t.y-this.y,t.x-this.x)}},{key:"applyTransform",value:function(t){var e=this.x,r=this.y,n=e*t[0]+r*t[2]+t[4],t=e*t[1]+r*t[3]+t[5];this.x=n,this.y=t}}],[{key:"parse",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=w(we(t),2),t=r[0],r=r[1];return new o(void 0===t?e:t,void 0===r?e:r)}},{key:"parseScale",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,r=w(we(t),2),t=r[0],t=void 0===t?e:t,r=r[1];return new o(t,void 0===r?t:r)}},{key:"parsePath",value:function(t){for(var e=we(t),r=e.length,n=[],i=0;i<r;i+=2)n.push(new o(e[i],e[i+1]));return n}}]),o}(),Ye=function(){function e(t){j(this,e),this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=K()(t=this.onClick).call(t,this),this.onMouseMove=K()(t=this.onMouseMove).call(t,this)}return F(e,[{key:"isWorking",value:function(){return this.working}},{key:"start",value:function(){var t,e,r;this.working||(r=this.screen,t=this.onClick,e=this.onMouseMove,(r=r.ctx.canvas).onclick=t,r.onmousemove=e,this.working=!0)}},{key:"stop",value:function(){var t;this.working&&(t=this.screen.ctx.canvas,this.working=!1,t.onclick=null,t.onmousemove=null)}},{key:"hasEvents",value:function(){return this.working&&0<this.events.length}},{key:"runEvents",value:function(){var t,i,e;this.working&&(e=this.screen,t=this.events,i=this.eventElements,(e=e.ctx.canvas.style)&&(e.cursor=""),S()(t).call(t,function(t,e){for(var r=t.run,n=i[e];n;)r(n),n=n.parent}),this.events=[],this.eventElements=[])}},{key:"checkPath",value:function(n,i){var t,o;this.working&&i&&(t=this.events,o=this.eventElements,S()(t).call(t,function(t,e){var r=t.x,t=t.y;!o[e]&&i.isPointInPath&&i.isPointInPath(r,t)&&(o[e]=n)}))}},{key:"checkBoundingBox",value:function(n,i){var t,o;this.working&&i&&(t=this.events,o=this.eventElements,S()(t).call(t,function(t,e){var r=t.x,t=t.y;!o[e]&&i.isPointInBox(r,t)&&(o[e]=n)}))}},{key:"mapXY",value:function(t,e){for(var r=this.screen,n=r.window,r=r.ctx,i=new $e(t,e),o=r.canvas;o;)i.x-=o.offsetLeft,i.y-=o.offsetTop,o=o.offsetParent;return n.scrollX&&(i.x+=n.scrollX),n.scrollY&&(i.y+=n.scrollY),i}},{key:"onClick",value:function(t){var e=this.mapXY((t||event).clientX,(t||event).clientY),t=e.x,e=e.y;this.events.push({type:"onclick",x:t,y:e,run:function(t){t.onClick&&t.onClick()}})}},{key:"onMouseMove",value:function(t){var e=this.mapXY((t||event).clientX,(t||event).clientY),t=e.x,e=e.y;this.events.push({type:"onmousemove",x:t,y:e,run:function(t){t.onMouseMove&&t.onMouseMove()}})}}]),e}(),qe="undefined"!=typeof window?window:null,We="undefined"!=typeof fetch?K()(fetch).call(fetch,void 0):null,Ge=function(){function n(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.fetch,r=void 0===r?We:r,e=e.window,e=void 0===e?qe:e;j(this,n),this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Xe,this.mouse=new Ye(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=e,this.fetch=r}return F(n,[{key:"wait",value:function(t){this.waits.push(t)}},{key:"ready",value:function(){return this.readyPromise||Q().resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var t=W()(t=this.waits).call(t,function(t){return t()});return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t}},{key:"setDefaults",value:function(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}},{key:"setViewBox",value:function(t){var e=t.document,r=t.ctx,n=t.aspectRatio,i=t.width,o=t.desiredWidth,a=t.height,s=t.desiredHeight,u=t.minX,c=void 0===u?0:u,l=t.minY,h=void 0===l?0:l,f=t.refX,p=t.refY,y=t.clip,u=void 0!==y&&y,l=t.clipX,y=void 0===l?0:l,l=t.clipY,t=void 0===l?0:l,l=w(be(n).replace(/^defer\s/,"").split(" "),2),n=l[0]||"xMidYMid",l=l[1]||"meet",g=i/o,v=a/s,d=Math.min(g,v),m=Math.max(g,v),o=o,s=s;"meet"===l&&(o*=d,s*=d),"slice"===l&&(o*=m,s*=m);var x,b,f=new Ue(e,"refX",f),e=new Ue(e,"refY",p),p=f.hasValue()&&e.hasValue();switch(p&&r.translate(-d*f.getPixels("x"),-d*e.getPixels("y")),u&&(b=d*y,x=d*t,r.beginPath(),r.moveTo(b,x),r.lineTo(i,x),r.lineTo(i,a),r.lineTo(b,a),r.closePath(),r.clip()),p||(t="meet"===l&&d===v,x="slice"===l&&m===v,b="meet"===l&&d===g,p="slice"===l&&m===g,/^xMid/.test(n)&&(t||x)&&r.translate(i/2-o/2,0),/YMid$/.test(n)&&(b||p)&&r.translate(0,a/2-s/2),/^xMax/.test(n)&&(t||x)&&r.translate(i-o,0),/YMax$/.test(n)&&(b||p)&&r.translate(0,a-s)),!0){case"none"===n:r.scale(g,v);break;case"meet"===l:r.scale(d,d);break;case"slice"===l:r.scale(m,m)}r.translate(-c,-h)}},{key:"start",value:function(e){var r,n,i,o=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=t.enableRedraw,s=void 0!==a&&a,u=t.ignoreMouse,a=void 0!==u&&u,u=t.ignoreAnimation,c=void 0!==u&&u,u=t.ignoreDimensions,l=void 0!==u&&u,u=t.ignoreClear,h=void 0!==u&&u,f=t.forceRedraw,p=t.scaleWidth,y=t.scaleHeight,g=t.offsetX,v=t.offsetY,t=this.FRAMERATE,d=this.mouse,m=1e3/t;this.frameDuration=m,this.readyPromise=new(Q())(function(t){o.resolveReady=t}),this.isReady()&&this.render(e,l,h,p,y,g,v),s&&(r=Y()(),n=r,i=0,s=function t(){r=Y()(),m<=(i=r-n)&&(n=r-i%m,o.shouldUpdate(c,f)&&(o.render(e,l,h,p,y,g,v),d.runEvents())),o.intervalId=tt()(t)},a||d.start(),this.intervalId=tt()(s))}},{key:"stop",value:function(){this.intervalId&&(tt().cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(t,e){if(!t){var r=this.frameDuration;if(X()(t=this.animations).call(t,function(t,e){return e.update(r)||t},!1))return!0}return!("function"!=typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function(t,e,r,n,i,o,a){var s=this.CLIENT_WIDTH,u=this.CLIENT_HEIGHT,c=this.viewPort,l=this.ctx,h=this.isFirstRender,f=l.canvas;c.clear(),f.width&&f.height?c.setCurrent(f.width,f.height):c.setCurrent(s,u);var p=t.getStyle("width"),s=t.getStyle("height");!e&&(h||"number"!=typeof n&&"number"!=typeof i)&&(p.hasValue()&&(f.width=p.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),s.hasValue()&&(f.height=s.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var y,u=f.clientWidth||f.width,f=f.clientHeight||f.height;e&&p.hasValue()&&s.hasValue()&&(u=p.getPixels("x"),f=s.getPixels("y")),c.setCurrent(u,f),"number"==typeof o&&t.getAttribute("x",!0).setValue(o),"number"==typeof a&&t.getAttribute("y",!0).setValue(a),"number"!=typeof n&&"number"!=typeof i||(c=we(t.getAttribute("viewBox").getString()),a=o=0,"number"==typeof n&&((y=t.getStyle("width")).hasValue()?o=y.getPixels("x")/n:isNaN(c[2])||(o=c[2]/n)),"number"==typeof i&&((y=t.getStyle("height")).hasValue()?a=y.getPixels("y")/i:isNaN(c[3])||(a=c[3]/i)),o=o||a,a=a||o,t.getAttribute("width",!0).setValue(n),t.getAttribute("height",!0).setValue(i),(i=t.getStyle("transform",!0,!0)).setValue(H()(o=H()(i="".concat(i.getString()," scale(")).call(i,1/o,", ")).call(o,1/a,")"))),r||l.clearRect(0,0,u,f),t.render(l),h&&(this.isFirstRender=!1)}}]),n}();Ge.defaultWindow=qe,Ge.defaultFetch=We;var Qe=Ge.defaultFetch,Ze="undefined"!=typeof DOMParser?DOMParser:null,Ke=function(){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.fetch,e=void 0===e?Qe:e,t=t.DOMParser,t=void 0===t?Ze:t;j(this,r),this.fetch=e,this.DOMParser=t}var e,n;return F(r,[{key:"parse",value:(n=D(R().mark(function t(e){return R().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(/^</.test(e))return t.abrupt("return",this.parseFromString(e));t.next=2;break;case 2:return t.abrupt("return",this.load(e));case 3:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"parseFromString",value:function(e){var r=new this.DOMParser;try{return this.checkDocument(r.parseFromString(e,"image/svg+xml"))}catch(t){return this.checkDocument(r.parseFromString(e,"text/xml"))}}},{key:"checkDocument",value:function(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}},{key:"load",value:(e=D(R().mark(function t(e){var r;return R().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.fetch(e);case 2:return r=t.sent,t.next=5,r.text();case 5:return r=t.sent,t.abrupt("return",this.parseFromString(r));case 7:case"end":return t.stop()}},t,this)})),function(t){return e.apply(this,arguments)})}]),r}(),q=function(){function r(t,e){j(this,r),this.type="translate",this.point=null,this.point=$e.parse(e)}return F(r,[{key:"apply",value:function(t){var e=this.point,r=e.x,e=e.y;t.translate(r||0,e||0)}},{key:"unapply",value:function(t){var e=this.point,r=e.x,e=e.y;t.translate(-1*r||0,-1*e||0)}},{key:"applyToPoint",value:function(t){var e=this.point,r=e.x,e=e.y;t.applyTransform([1,0,0,1,r||0,e||0])}}]),r}(),G=function(){function n(t,e,r){j(this,n),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;e=we(e);this.angle=new Ue(t,"angle",e[0]),this.originX=r[0],this.originY=r[1],this.cx=e[1]||0,this.cy=e[2]||0}return F(n,[{key:"apply",value:function(t){var e=this.cx,r=this.cy,n=this.originX,i=this.originY,o=this.angle,n=e+n.getPixels("x"),i=r+i.getPixels("y");t.translate(n,i),t.rotate(o.getRadians()),t.translate(-n,-i)}},{key:"unapply",value:function(t){var e=this.cx,r=this.cy,n=this.angle;t.translate(e,r),t.rotate(-1*n.getRadians()),t.translate(-e,-r)}},{key:"applyToPoint",value:function(t){var e=this.cx,r=this.cy,n=this.angle.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}]),n}(),Z=function(){function r(t,e){j(this,r),this.type="scale",this.scale=null;e=$e.parseScale(e);0!==e.x&&0!==e.y||(e.x=Re,e.y=Re),this.scale=e}return F(r,[{key:"apply",value:function(t){var e=this.scale,r=e.x,e=e.y;t.scale(r,e||r)}},{key:"unapply",value:function(t){var e=this.scale,r=e.x,e=e.y;t.scale(1/r,1/e||r)}},{key:"applyToPoint",value:function(t){var e=this.scale,r=e.x,e=e.y;t.applyTransform([r||0,0,0,e||0,0,0])}}]),r}(),Je=function(){function r(t,e){j(this,r),this.type="matrix",this.matrix=[],this.matrix=we(e)}return F(r,[{key:"apply",value:function(t){var e=this.matrix;t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}},{key:"unapply",value:function(t){var e=this.matrix,r=e[0],n=e[2],i=e[4],o=e[1],a=e[3],s=e[5],e=1/(r*(+a-0*s)-n*(+o-0*s)+i*(0*o-0*a));t.transform(e*(+a-0*s),e*(0*s-+o),e*(0*i-+n),e*(+r-0*i),e*(n*s-i*a),e*(i*o-r*s))}},{key:"applyToPoint",value:function(t){t.applyTransform(this.matrix)}}]),r}();function tr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var er=function(){lt(i,Je);var n=tr(i);function i(t,e){var r;return j(this,i),(r=n.call(this,t,e)).type="skew",r.angle=null,r.angle=new Ue(t,"angle",e),r}return i}();function rr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}J=function(){lt(n,er);var r=rr(n);function n(t,e){return j(this,n),(e=r.call(this,t,e)).type="skewX",e.matrix=[1,0,Math.tan(e.angle.getRadians()),1,0,0],e}return n}();function nr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}et=function(){lt(n,er);var r=nr(n);function n(t,e){return j(this,n),(e=r.call(this,t,e)).type="skewY",e.matrix=[1,Math.tan(e.angle.getRadians()),0,1,0,0],e}return n}();var ir=function(){function i(t,e,r){var n=this;j(this,i),this.document=t,this.transforms=[];e=e,e=rt()(e=be(e)).call(e).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/);S()(e).call(e,function(t){var e;"none"!==t&&(e=(t=w((e=t).split("("),2))[0],t=t[1],t=(e=w([rt()(e).call(e),rt()(t).call(t).replace(")","")],2))[0],e=e[1],void 0!==(t=i.transformTypes[t])&&n.transforms.push(new t(n.document,e,r)))})}return F(i,[{key:"apply",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].apply(t)}},{key:"unapply",value:function(t){for(var e=this.transforms,r=e.length-1;0<=r;r--)e[r].unapply(t)}},{key:"applyToPoint",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].applyToPoint(t)}}],[{key:"fromElement",value:function(t,e){var r=e.getStyle("transform",!1,!0),n=w(e.getStyle("transform-origin",!1,!0).split(),2),e=n[0],n=n[1],n=[e,void 0===n?e:n];return r.hasValue()?new i(t,r.getString(),n):null}}]),i}();ir.transformTypes={translate:q,rotate:G,scale:Z,matrix:Je,skewX:J,skewY:et};var or=function(){function s(r,t){var e,n,i,o=this,a=2<arguments.length&&void 0!==arguments[2]&&arguments[2];j(this,s),this.document=r,this.node=t,this.captureTextNodes=a,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType&&(S()(e=At()(t.attributes)).call(e,function(t){var e,e=(e=t.nodeName,Se.test(e)?e.toLowerCase():e);o.attributes[e]=new Ue(r,e,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&(i=d()(n=this.getAttribute("style").getString().split(";")).call(n,function(t){return rt()(t).call(t)}),S()(i).call(i,function(t){var e;t&&(e=(t=w(d()(e=t.split(":")).call(e,function(t){return rt()(t).call(t)}),2))[0],t=t[1],o.styles[e]=new Ue(r,e,t))})),n=r.definitions,(i=this.getAttribute("id")).hasValue()&&(n[i.getValue()]||(n[i.getValue()]=this)),S()(t=At()(t.childNodes)).call(t,function(t){1===t.nodeType?o.addChild(t):!a||3!==t.nodeType&&4!==t.nodeType||0<(t=r.createTextNode(t)).getText().length&&o.addChild(t)}))}return F(s,[{key:"getAttribute",value:function(t){var e=this.attributes[t];if(e||!(1<arguments.length&&void 0!==arguments[1]&&arguments[1]))return e||Ue.empty(this.document);e=new Ue(this.document,t,"");return this.attributes[t]=e}},{key:"getHrefAttribute",value:function(){for(var t in this.attributes)if("href"===t||/:href$/.test(t))return this.attributes[t];return Ue.empty(this.document)}},{key:"getStyle",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=this.styles[t];if(n)return n;var i=this.getAttribute(t);if(i&&i.hasValue())return this.styles[t]=i;if(!r){r=this.parent;if(r){r=r.getStyle(t);if(r&&r.hasValue())return r}}if(e){e=new Ue(this.document,t,"");return this.styles[t]=e}return n||Ue.empty(this.document)}},{key:"render",value:function(t){var e;"none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()&&(t.save(),this.getStyle("mask").hasValue()?(e=this.getStyle("mask").getDefinition())&&(this.applyEffects(t),e.apply(t,this)):"none"!==this.getStyle("filter").getValue("none")?(e=this.getStyle("filter").getDefinition())&&(this.applyEffects(t),e.apply(t,this)):(this.setContext(t),this.renderChildren(t),this.clearContext(t)),t.restore())}},{key:"setContext",value:function(t){}},{key:"applyEffects",value:function(t){var e=ir.fromElement(this.document,this);e&&e.apply(t);e=this.getStyle("clip-path",!1,!0);!e.hasValue()||(e=e.getDefinition())&&e.apply(t)}},{key:"clearContext",value:function(t){}},{key:"renderChildren",value:function(e){var t;S()(t=this.children).call(t,function(t){t.render(e)})}},{key:"addChild",value:function(t){var e=t instanceof s?t:this.document.createElement(t);e.parent=this,wt()(t=s.ignoreChildTypes).call(t,e.type)||this.children.push(e)}},{key:"matchesSelector",value:function(e){var t=this.node;if("function"==typeof t.matches)return t.matches(e);var t=t.getAttribute("class");return!(!t||""===t)&&xt()(t=t.split(" ")).call(t,function(t){if(".".concat(t)===e)return!0})}},{key:"addStylesFromStyleDefinition",value:function(){var t,e=this.document,r=e.styles,n=e.stylesSpecificity;for(t in r)if("@"!==t[0]&&this.matchesSelector(t)){var i=r[t],o=n[t];if(i)for(var a in i){var s=this.stylesSpecificity[a];(s=void 0===s?"000":s)<=o&&(this.styles[a]=i[a],this.stylesSpecificity[a]=o)}}}},{key:"removeStyles",value:function(i,t){return X()(t).call(t,function(t,e){var r=i.getStyle(e);if(!r.hasValue())return t;var n=r.getString();return r.setValue(""),H()(r=[]).call(r,dt(t),[[e,n]])},[])}},{key:"restoreStyles",value:function(r,t){S()(t).call(t,function(t){var e=w(t,2),t=e[0],e=e[1];r.getStyle(t,!0).setValue(e)})}}]),s}();function ar(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}or.ignoreChildTypes=["title"];var sr=function(){lt(i,or);var n=ar(i);function i(t,e,r){return j(this,i),n.call(this,t,e,r)}return i}();function ur(t){t=rt()(t).call(t);return/^('|")/.test(t)?t:'"'.concat(t,'"')}var cr=function(){function l(t,e,r,n,i,o){j(this,l);o=o?"string"==typeof o?l.parse(o):o:{};this.fontFamily=i||o.fontFamily,this.fontSize=n||o.fontSize,this.fontStyle=t||o.fontStyle,this.fontWeight=r||o.fontWeight,this.fontVariant=e||o.fontVariant}return F(l,[{key:"toString",value:function(){var t;return rt()(t=[function(t){if(!t)return"";var e=rt()(t).call(t).toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}(this.fontStyle),this.fontVariant,function(t){if(!t)return"";var e=rt()(t).call(t).toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}(this.fontWeight),this.fontSize,(t=this.fontFamily,"undefined"==typeof process?t:d()(t=rt()(t).call(t).split(",")).call(t,ur).join(","))].join(" ")).call(t)}}],[{key:"parse",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length?arguments[1]:void 0,i="",o="",a="",s="",u="",t=rt()(t=be(t)).call(t).split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return S()(t).call(t,function(t){var e,r,n;switch(!0){case!c.fontStyle&&wt()(e=l.styles).call(e,t):"inherit"!==t&&(i=t),c.fontStyle=!0;break;case!c.fontVariant&&wt()(r=l.variants).call(r,t):"inherit"!==t&&(o=t),c.fontStyle=!0,c.fontVariant=!0;break;case!c.fontWeight&&wt()(r=l.weights).call(r,t):"inherit"!==t&&(a=t),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:"inherit"!==t&&(n=w(t.split("/"),1),s=n[0]),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:"inherit"!==t&&(u+=t)}}),new l(i,o,a,s,u,e)}}]),l}();cr.styles="normal|italic|oblique|inherit",cr.variants="normal|small-caps|inherit",cr.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var lr=function(){function i(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:Number.NaN,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:Number.NaN;j(this,i),this.x1=t,this.y1=e,this.x2=r,this.y2=n,this.addPoint(t,e),this.addPoint(r,n)}return F(i,[{key:"addPoint",value:function(t,e){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),void 0!==e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}},{key:"addX",value:function(t){this.addPoint(t,null)}},{key:"addY",value:function(t){this.addPoint(null,t)}},{key:"addBoundingBox",value:function(t){var e,r,n;t&&(e=t.x1,r=t.y1,n=t.x2,t=t.y2,this.addPoint(e,r),this.addPoint(n,t))}},{key:"sumCubic",value:function(t,e,r,n,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*n+Math.pow(t,3)*i}},{key:"bezierCurveAdd",value:function(t,e,r,n,i){var o,a,s=6*e-12*r+6*n,u=-3*e+9*r-9*n+3*i,c=3*r-3*e;0!=u?(o=Math.pow(s,2)-4*c*u)<0||(0<(a=(-s+Math.sqrt(o))/(2*u))&&a<1&&(t?this.addX(this.sumCubic(a,e,r,n,i)):this.addY(this.sumCubic(a,e,r,n,i))),0<(u=(-s-Math.sqrt(o))/(2*u))&&u<1&&(t?this.addX(this.sumCubic(u,e,r,n,i)):this.addY(this.sumCubic(u,e,r,n,i)))):0==s||0<(s=-c/s)&&s<1&&(t?this.addX(this.sumCubic(s,e,r,n,i)):this.addY(this.sumCubic(s,e,r,n,i)))}},{key:"addBezierCurve",value:function(t,e,r,n,i,o,a,s){this.addPoint(t,e),this.addPoint(a,s),this.bezierCurveAdd(!0,t,r,i,a),this.bezierCurveAdd(!1,e,n,o,s)}},{key:"addQuadraticCurve",value:function(t,e,r,n,i,o){r=t+2/3*(r-t),n=e+2/3*(n-e);this.addBezierCurve(t,e,r,r+1/3*(i-t),n,n+1/3*(o-e),i,o)}},{key:"isPointInBox",value:function(t,e){var r=this.x1,n=this.y1,i=this.x2,o=this.y2;return r<=t&&t<=i&&n<=e&&e<=o}},{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}}]),i}();function hr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var fr=function(){lt(r,or);var e=hr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).modifiedEmSizeStack=!1,t}return F(r,[{key:"calculateOpacity",value:function(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}},{key:"setContext",value:function(t){var e,r,n,i,o,a,s,u,c,l,h,f=1<arguments.length&&void 0!==arguments[1]&&arguments[1];f||(r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),h=this.getStyle("stroke-opacity"),r.isUrlDefinition()?(e=r.getFillStyleDefinition(this,n))&&(t.fillStyle=e):r.hasValue()&&("currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor()),"inherit"!==(r=r.getColor())&&(t.fillStyle="none"===r?"rgba(0,0,0,0)":r)),n.hasValue()&&(n=new Ue(this.document,"fill",t.fillStyle).addOpacity(n).getColor(),t.fillStyle=n),i.isUrlDefinition()?(s=i.getFillStyleDefinition(this,h))&&(t.strokeStyle=s):i.hasValue()&&("currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor()),"inherit"!==(o=i.getString())&&(t.strokeStyle="none"===o?"rgba(0,0,0,0)":o)),h.hasValue()&&(a=new Ue(this.document,"stroke",t.strokeStyle).addOpacity(h).getString(),t.strokeStyle=a),(s=this.getStyle("stroke-width")).hasValue()&&(c=s.getPixels(),t.lineWidth=c||Re),i=this.getStyle("stroke-linecap"),o=this.getStyle("stroke-linejoin"),h=this.getStyle("stroke-miterlimit"),a=this.getStyle("paint-order"),s=this.getStyle("stroke-dasharray"),c=this.getStyle("stroke-dashoffset"),i.hasValue()&&(t.lineCap=i.getString()),o.hasValue()&&(t.lineJoin=o.getString()),h.hasValue()&&(t.miterLimit=h.getNumber()),a.hasValue()&&(t.paintOrder=a.getValue()),s.hasValue()&&"none"!==s.getString()&&(u=we(s.getString()),void 0!==t.setLineDash?t.setLineDash(u):void 0!==t.webkitLineDash?t.webkitLineDash=u:void 0===t.mozDash||1===u.length&&0===u[0]||(t.mozDash=u),l=c.getPixels(),void 0!==t.lineDashOffset?t.lineDashOffset=l:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=l:void 0!==t.mozDashOffset&&(t.mozDashOffset=l))),this.modifiedEmSizeStack=!1,void 0!==t.font&&(h=this.getStyle("font"),a=this.getStyle("font-style"),s=this.getStyle("font-variant"),u=this.getStyle("font-weight"),c=this.getStyle("font-size"),l=this.getStyle("font-family"),h=new cr(a.getString(),s.getString(),u.getString(),c.hasValue()?"".concat(c.getPixels(!0),"px"):"",l.getString(),cr.parse(h.getString(),t.font)),a.setValue(h.fontStyle),s.setValue(h.fontVariant),u.setValue(h.fontWeight),c.setValue(h.fontSize),l.setValue(h.fontFamily),t.font=h.toString(),c.isPixels()&&(this.document.emSize=c.getPixels(),this.modifiedEmSizeStack=!0)),f||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){Et(vt(r.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),r}();function pr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var yr=function(){lt(i,fr);var n=pr(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,(this instanceof i?this.constructor:void 0)===i||r)).type="text",r.x=0,r.y=0,r.measureCache=-1,r}return F(i,[{key:"setContext",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];Et(vt(i.prototype),"setContext",this).call(this,t,e);e=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();e&&(t.textBaseline=e)}},{key:"initializeCoordinates",value:function(t){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var e=this.getAttribute("dx"),r=this.getAttribute("dy");e.hasValue()&&(this.x+=e.getPixels("x")),r.hasValue()&&(this.y+=r.getPixels("y")),this.x+=this.getAnchorDelta(t,this,0)}},{key:"getBoundingBox",value:function(r){var t,n=this;if("text"!==this.type)return this.getTElementBoundingBox(r);this.initializeCoordinates(r);var i=null;return S()(t=this.children).call(t,function(t,e){e=n.getChildBoundingBox(r,n,n,e);i?i.addBoundingBox(e):i=e}),i}},{key:"getFontSize",value:function(){var t=this.document,e=this.parent,t=cr.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(t)}},{key:"getTElementBoundingBox",value:function(t){var e=this.getFontSize();return new lr(this.x,this.y-e,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,e,r){var n,i,o=e[r],a=null;return t.isArabic?(n=e.length,i=e[r-1],e=e[r+1],void 0!==t.glyphs[o]&&((a=t.glyphs[o][0<r&&" "!==i&&(r===n-1||" "===e)?"initial":0<r&&" "!==i&&r<n-2&&" "!==e?"medial":(0===r||" "===i)&&r<n-2&&" "!==e?"terminal":"isolated"])||"glyph"!==t.glyphs[o].type||(a=t.glyphs[o]))):a=t.glyphs[o],a=a||t.missingGlyph}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(t){var e=t||this.node,r=At()(e.parentNode.childNodes),t=Ot()(r).call(r,e),r=r.length-1,e=be(e.value||e.text||e.textContent||"");return 0===t&&(e=e.replace(/^[\n \t]+/,"")),e=t===r?e.replace(/[\n \t]+$/,""):e}},{key:"renderChildren",value:function(r){var t,n=this;"text"===this.type?(this.initializeCoordinates(r),S()(t=this.children).call(t,function(t,e){n.renderChild(r,n,n,e)}),(t=this.document.screen.mouse).isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(r))):this.renderTElementChildren(r)}},{key:"renderTElementChildren",value:function(t){var e=this.document,r=this.parent,n=this.getText(),i=r.getStyle("font-family").getDefinition();if(i)for(var o=i.fontFace.unitsPerEm,e=cr.parse(e.ctx.font),a=r.getStyle("font-size").getNumber(e.fontSize),s=r.getStyle("font-style").getString(e.fontStyle),u=a/o,c=i.isRTL?Tt()(g=n.split("")).call(g).join(""):n,l=we(r.getAttribute("dx").getString()),h=c.length,f=0;f<h;f++){var p=this.getGlyph(i,c,f);t.translate(this.x,this.y),t.scale(u,-u);var y=t.lineWidth;t.lineWidth=t.lineWidth*o/a,"italic"===s&&t.transform(1,0,.4,1,0,0),p.render(t),"italic"===s&&t.transform(1,0,-.4,1,0,0),t.lineWidth=y,t.scale(1/u,-1/u),t.translate(-this.x,-this.y),this.x+=a*(p.horizAdvX||i.horizAdvX)/o,void 0===l[f]||isNaN(l[f])||(this.x+=l[f])}else{var g=this.x,r=this.y;"stroke"===t.paintOrder?(t.strokeStyle&&t.strokeText(n,g,r),t.fillStyle&&t.fillText(n,g,r)):(t.fillStyle&&t.fillText(n,g,r),t.strokeStyle&&t.strokeText(n,g,r))}}},{key:"getAnchorDelta",value:function(t,e,r){var n=this.getStyle("text-anchor").getString("start");if("start"===n)return 0;for(var i=e.children,o=i.length,a=null,s=0,u=r;u<o&&(a=i[u],!(r<u&&a.getAttribute("x").hasValue()||a.getAttribute("text-anchor").hasValue()));u++)s+=a.measureTextRecursive(t);return-1*("end"===n?s:s/2)}},{key:"adjustChildCoordinates",value:function(t,e,r,n){var i=r.children[n];if("function"!=typeof i.measureText)return i;t.save(),i.setContext(t,!0);var o,a=i.getAttribute("x"),s=i.getAttribute("y"),u=i.getAttribute("dx"),c=i.getAttribute("dy"),l=i.getAttribute("text-anchor").getString("start");return 0===n&&"textNode"!==i.type&&(a.hasValue()||a.setValue(e.getAttribute("x").getValue("0")),s.hasValue()||s.setValue(e.getAttribute("y").getValue("0")),u.hasValue()||u.setValue(e.getAttribute("dx").getValue("0")),c.hasValue()||c.setValue(e.getAttribute("dy").getValue("0"))),a.hasValue()?(i.x=a.getPixels("x")+e.getAnchorDelta(t,r,n),"start"!==l&&(o=i.measureTextRecursive(t),i.x+=-1*("end"===l?o:o/2)),u.hasValue()&&(i.x+=u.getPixels("x"))):("start"!==l&&(o=i.measureTextRecursive(t),e.x+=-1*("end"===l?o:o/2)),u.hasValue()&&(e.x+=u.getPixels("x")),i.x=e.x),e.x=i.x+i.measureText(t),s.hasValue()?(i.y=s.getPixels("y"),c.hasValue()&&(i.y+=c.getPixels("y"))):(c.hasValue()&&(e.y+=c.getPixels("y")),i.y=e.y),e.y=i.y,i.clearContext(t),t.restore(),i}},{key:"getChildBoundingBox",value:function(r,n,t,e){var i=this.adjustChildCoordinates(r,n,t,e);if("function"!=typeof i.getBoundingBox)return null;var o=i.getBoundingBox(r);return o?(S()(e=i.children).call(e,function(t,e){e=n.getChildBoundingBox(r,n,i,e);o.addBoundingBox(e)}),o):null}},{key:"renderChild",value:function(r,n,t,e){var i=this.adjustChildCoordinates(r,n,t,e);i.render(r),S()(e=i.children).call(e,function(t,e){n.renderChild(r,n,i,e)})}},{key:"measureTextRecursive",value:function(r){var t;return X()(t=this.children).call(t,function(t,e){return t+e.measureTextRecursive(r)},this.measureText(r))}},{key:"measureText",value:function(t){var e=this.measureCache;if(~e)return e;e=this.getText(),e=this.measureTargetText(t,e);return this.measureCache=e}},{key:"measureTargetText",value:function(t,e){if(!e.length)return 0;var r=this.parent,n=r.getStyle("font-family").getDefinition();if(n){for(var i,o=this.getFontSize(),a=n.isRTL?Tt()(i=e.split("")).call(i).join(""):e,s=we(r.getAttribute("dx").getString()),u=a.length,c=0,l=0;l<u;l++)c+=(this.getGlyph(n,a,l).horizAdvX||n.horizAdvX)*o/n.fontFace.unitsPerEm,void 0===s[l]||isNaN(s[l])||(c+=s[l]);return c}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);e=t.measureText(e).width;return this.clearContext(t),t.restore(),e}}]),i}();function gr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var vr=function(){lt(i,yr);var n=gr(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,(this instanceof i?this.constructor:void 0)===i||r)).type="tspan",r.text=0<r.children.length?"":r.getTextFromNode(),r}return F(i,[{key:"getText",value:function(){return this.text}}]),i}();function dr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var mr=function(){lt(r,vr);var e=dr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="textNode",t}return r}();function xr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var br=function(){lt(r,Jt);var e=xr(r);function r(t){return j(this,r),(t=e.call(this,t.replace(/[+-.]\s+/g,"-").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,t.start=null,t.current=null,t.command=null,t.commands=t.commands,t.i=-1,t.previousCommand=null,t.points=[],t.angles=[],t}return F(r,[{key:"reset",value:function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new $e(0,0),this.control=new $e(0,0),this.current=new $e(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){return this.i>=this.commands.length-1}},{key:"next",value:function(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t}},{key:"getPoint",value:function(){var t=new $e(this.command[0<arguments.length&&void 0!==arguments[0]?arguments[0]:"x"],this.command[1<arguments.length&&void 0!==arguments[1]?arguments[1]:"y"]);return this.makeAbsolute(t)}},{key:"getAsControlPoint",value:function(t,e){e=this.getPoint(t,e);return this.control=e}},{key:"getAsCurrentPoint",value:function(t,e){e=this.getPoint(t,e);return this.current=e}},{key:"getReflectedControlPoint",value:function(){var t=this.previousCommand.type;if(t!==Jt.CURVE_TO&&t!==Jt.SMOOTH_CURVE_TO&&t!==Jt.QUAD_TO&&t!==Jt.SMOOTH_QUAD_TO)return this.current;var e=this.current,r=e.x,n=e.y,t=this.control,e=t.x,t=t.y;return new $e(2*r-e,2*n-t)}},{key:"makeAbsolute",value:function(t){var e,r;return this.command.relative&&(e=(r=this.current).x,r=r.y,t.x+=e,t.y+=r),t}},{key:"addMarker",value:function(t,e,r){var n=this.points,i=this.angles;r&&0<i.length&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}},{key:"addMarkerAngle",value:function(t,e){this.points.push(t),this.angles.push(e)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var t=this.angles,e=t.length,r=0;r<e;r++)if(!t[r])for(var n=r+1;n<e;n++)if(t[n]){t[r]=t[n];break}return t}}]),r}();function wr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var Sr=function(){lt(y,fr);var n=wr(y);function y(t,e,r){return j(this,y),(r=n.call(this,t,e,r)).type="path",r.pathParser=null,r.pathParser=new br(r.getAttribute("d").getString()),r}return F(y,[{key:"path",value:function(t){var e=this.pathParser,r=new lr;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case br.MOVE_TO:this.pathM(t,r);break;case br.LINE_TO:this.pathL(t,r);break;case br.HORIZ_LINE_TO:this.pathH(t,r);break;case br.VERT_LINE_TO:this.pathV(t,r);break;case br.CURVE_TO:this.pathC(t,r);break;case br.SMOOTH_CURVE_TO:this.pathS(t,r);break;case br.QUAD_TO:this.pathQ(t,r);break;case br.SMOOTH_QUAD_TO:this.pathT(t,r);break;case br.ARC:this.pathA(t,r);break;case br.CLOSE_PATH:this.pathZ(t,r)}return r}},{key:"getBoundingBox",value:function(t){return this.path()}},{key:"getMarkers",value:function(){var t=this.pathParser,e=t.getMarkerPoints(),r=t.getMarkerAngles();return d()(e).call(e,function(t,e){return[t,r[e]]})}},{key:"renderChildren",value:function(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?Mt()(t).call(t,e.getString()):Mt()(t).call(t)),""!==t.strokeStyle&&t.stroke();var r=this.getMarkers();if(r){var n,i=r.length-1,o=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(o.isUrlDefinition()&&(e=o.getDefinition(),o=(n=w(r[0],2))[0],n=n[1],e.render(t,o,n)),a.isUrlDefinition())for(var u=a.getDefinition(),c=1;c<i;c++){var l=w(r[c],2),h=l[0],l=l[1];u.render(t,h,l)}s.isUrlDefinition()&&(n=s.getDefinition(),s=(a=w(r[i],2))[0],a=a[1],n.render(t,s,a))}}},{key:"pathM",value:function(t,e){var r=this.pathParser,n=y.pathM(r).point,i=n.x,o=n.y;r.addMarker(n),e.addPoint(i,o),t&&t.moveTo(i,o)}},{key:"pathL",value:function(t,e){var r=this.pathParser,n=y.pathL(r),i=n.current,o=n.point,a=o.x,n=o.y;r.addMarker(o,i),e.addPoint(a,n),t&&t.lineTo(a,n)}},{key:"pathH",value:function(t,e){var r=this.pathParser,n=y.pathH(r),i=n.current,o=n.point,a=o.x,n=o.y;r.addMarker(o,i),e.addPoint(a,n),t&&t.lineTo(a,n)}},{key:"pathV",value:function(t,e){var r=this.pathParser,n=y.pathV(r),i=n.current,o=n.point,a=o.x,n=o.y;r.addMarker(o,i),e.addPoint(a,n),t&&t.lineTo(a,n)}},{key:"pathC",value:function(t,e){var r=this.pathParser,n=y.pathC(r),i=n.current,o=n.point,a=n.controlPoint,n=n.currentPoint;r.addMarker(n,a,o),e.addBezierCurve(i.x,i.y,o.x,o.y,a.x,a.y,n.x,n.y),t&&t.bezierCurveTo(o.x,o.y,a.x,a.y,n.x,n.y)}},{key:"pathS",value:function(t,e){var r=this.pathParser,n=y.pathS(r),i=n.current,o=n.point,a=n.controlPoint,n=n.currentPoint;r.addMarker(n,a,o),e.addBezierCurve(i.x,i.y,o.x,o.y,a.x,a.y,n.x,n.y),t&&t.bezierCurveTo(o.x,o.y,a.x,a.y,n.x,n.y)}},{key:"pathQ",value:function(t,e){var r=this.pathParser,n=y.pathQ(r),i=n.current,o=n.controlPoint,n=n.currentPoint;r.addMarker(n,o,o),e.addQuadraticCurve(i.x,i.y,o.x,o.y,n.x,n.y),t&&t.quadraticCurveTo(o.x,o.y,n.x,n.y)}},{key:"pathT",value:function(t,e){var r=this.pathParser,n=y.pathT(r),i=n.current,o=n.controlPoint,n=n.currentPoint;r.addMarker(n,o,o),e.addQuadraticCurve(i.x,i.y,o.x,o.y,n.x,n.y),t&&t.quadraticCurveTo(o.x,o.y,n.x,n.y)}},{key:"pathA",value:function(t,e){var r=this.pathParser,n=y.pathA(r),i=n.currentPoint,o=n.rX,a=n.rY,s=n.sweepFlag,u=n.xAxisRotation,c=n.centp,l=n.a1,h=n.ad,f=1-s?1:-1,p=l+h/2*f,n=new $e(c.x+o*Math.cos(p),c.y+a*Math.sin(p));r.addMarkerAngle(n,p-f*Math.PI/2),r.addMarkerAngle(i,p-f*Math.PI),e.addPoint(i.x,i.y),!t||isNaN(l)||isNaN(h)||(e=a<o?o:a,i=a<o?1:o/a,o=a<o?a/o:1,t.translate(c.x,c.y),t.rotate(u),t.scale(i,o),t.arc(0,0,e,l,l+h,Boolean(1-s)),t.scale(1/i,1/o),t.rotate(-u),t.translate(-c.x,-c.y))}},{key:"pathZ",value:function(t,e){y.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}],[{key:"pathM",value:function(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}},{key:"pathL",value:function(t){return{current:t.current,point:t.getAsCurrentPoint()}}},{key:"pathH",value:function(t){var e=t.current,r=t.command,r=new $e((r.relative?e.x:0)+r.x,e.y);return{current:e,point:t.current=r}}},{key:"pathV",value:function(t){var e=t.current,r=t.command,r=new $e(e.x,(r.relative?e.y:0)+r.y);return{current:e,point:t.current=r}}},{key:"pathC",value:function(t){return{current:t.current,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathS",value:function(t){return{current:t.current,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathQ",value:function(t){return{current:t.current,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathT",value:function(t){var e=t.current,r=t.getReflectedControlPoint();return{current:e,controlPoint:t.control=r,currentPoint:t.getAsCurrentPoint()}}},{key:"pathA",value:function(t){var e=t.current,r=t.command,n=r.rX,i=r.rY,o=r.xRot,a=r.lArcFlag,s=r.sweepFlag,u=o*(Math.PI/180),c=t.getAsCurrentPoint(),r=new $e(Math.cos(u)*(e.x-c.x)/2+Math.sin(u)*(e.y-c.y)/2,-Math.sin(u)*(e.x-c.x)/2+Math.cos(u)*(e.y-c.y)/2),o=Math.pow(r.x,2)/Math.pow(n,2)+Math.pow(r.y,2)/Math.pow(i,2);1<o&&(n*=Math.sqrt(o),i*=Math.sqrt(o));t=(a===s?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(r.y,2)-Math.pow(i,2)*Math.pow(r.x,2))/(Math.pow(n,2)*Math.pow(r.y,2)+Math.pow(i,2)*Math.pow(r.x,2)));isNaN(t)&&(t=0);o=new $e(t*n*r.y/i,t*-i*r.x/n),a=new $e((e.x+c.x)/2+Math.cos(u)*o.x-Math.sin(u)*o.y,(e.y+c.y)/2+Math.sin(u)*o.x+Math.cos(u)*o.y),t=De([1,0],[(r.x-o.x)/n,(r.y-o.y)/i]),e=[(r.x-o.x)/n,(r.y-o.y)/i],r=[(-r.x-o.x)/n,(-r.y-o.y)/i],o=De(e,r);return Ve(e,r)<=-1&&(o=Math.PI),{currentPoint:c,rX:n,rY:i,sweepFlag:s,xAxisRotation:u,centp:a,a1:t,ad:o=1<=Ve(e,r)?0:o}}},{key:"pathZ",value:function(t){t.current=t.start}}]),y}();function Ar(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var kr=function(){lt(p,fr);var e=Ar(p);function p(){var t;return j(this,p),(t=e.apply(this,arguments)).type="svg",t.root=!1,t}return F(p,[{key:"setContext",value:function(t){var e=this.document,r=e.screen,n=e.window,i=t.canvas;r.setDefaults(t),i.style&&void 0!==t.font&&n&&void 0!==n.getComputedStyle&&(t.font=n.getComputedStyle(i).getPropertyValue("font"),(f=new Ue(e,"fontSize",cr.parse(t.font).fontSize)).hasValue()&&(e.rootEmSize=f.getPixels("y"),e.emSize=e.rootEmSize)),this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var o=r.viewPort,a=o.width,s=o.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),c=this.getAttribute("refY"),l=this.getAttribute("viewBox"),h=l.hasValue()?we(l.getString()):null,n=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),i=0,f=0,o=0,l=0;h&&(i=h[0],f=h[1]),this.root||(a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y"),"marker"===this.type&&(o=i,l=f,f=i=0)),r.viewPort.setCurrent(a,s),this.node&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),Et(vt(p.prototype),"setContext",this).call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),h&&(a=h[2],s=h[3]),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:a,height:r.viewPort.height,desiredHeight:s,minX:i,minY:f,refX:u.getValue(),refY:c.getValue(),clip:n,clipX:o,clipY:l}),h&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(a,s))}},{key:"clearContext",value:function(t){Et(vt(p.prototype),"clearContext",this).call(this,t),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),a=this.getAttribute("style"),s=n.getNumber(0),u=i.getNumber(0);r&&("string"==typeof r?this.getAttribute("preserveAspectRatio",!0).setValue(r):(r=this.getAttribute("preserveAspectRatio")).hasValue()&&r.setValue(r.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))),n.setValue(t),i.setValue(e),o.hasValue()||o.setValue(H()(s="0 0 ".concat(s||t," ")).call(s,u||e)),a.hasValue()&&(u=this.getStyle("width"),a=this.getStyle("height"),u.hasValue()&&u.setValue("".concat(t,"px")),a.hasValue()&&a.setValue("".concat(e,"px")))}}]),p}();function Tr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var Or=function(){lt(r,Sr);var e=Tr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="rect",t}return F(r,[{key:"path",value:function(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),a=this.getAttribute("ry"),s=o.getPixels("x"),u=a.getPixels("y");return o.hasValue()&&!a.hasValue()&&(u=s),a.hasValue()&&!o.hasValue()&&(s=u),s=Math.min(s,n/2),u=Math.min(u,i/2),t&&(o=(Math.sqrt(2)-1)/3*4,t.beginPath(),0<i&&0<n&&(t.moveTo(e+s,r),t.lineTo(e+n-s,r),t.bezierCurveTo(e+n-s+o*s,r,e+n,r+u-o*u,e+n,r+u),t.lineTo(e+n,r+i-u),t.bezierCurveTo(e+n,r+i-u+o*u,e+n-s+o*s,r+i,e+n-s,r+i),t.lineTo(e+s,r+i),t.bezierCurveTo(e+s-o*s,r+i,e,r+i-u+o*u,e,r+i-u),t.lineTo(e,r+u),t.bezierCurveTo(e,r+u-o*u,e+s-o*s,r,e+s,r),t.closePath())),new lr(e,r,e+n,r+i)}},{key:"getMarkers",value:function(){return null}}]),r}();function Pr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}nt=function(){lt(r,Sr);var e=Pr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="circle",t}return F(r,[{key:"path",value:function(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return t&&0<n&&(t.beginPath(),t.arc(e,r,n,0,2*Math.PI,!1),t.closePath()),new lr(e-n,r-n,e+n,r+n)}},{key:"getMarkers",value:function(){return null}}]),r}();function Cr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}ot=function(){lt(r,Sr);var e=Cr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="ellipse",t}return F(r,[{key:"path",value:function(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return t&&0<r&&0<n&&(t.beginPath(),t.moveTo(i+r,o),t.bezierCurveTo(i+r,o+e*n,i+e*r,o+n,i,o+n),t.bezierCurveTo(i-e*r,o+n,i-r,o+e*n,i-r,o),t.bezierCurveTo(i-r,o-e*n,i-e*r,o-n,i,o-n),t.bezierCurveTo(i+e*r,o-n,i+r,o-e*n,i+r,o),t.closePath()),new lr(i-r,o-n,i+r,o+n)}},{key:"getMarkers",value:function(){return null}}]),r}();function Er(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}mt=function(){lt(r,Sr);var e=Er(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="line",t}return F(r,[{key:"getPoints",value:function(){return[new $e(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new $e(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var e=w(this.getPoints(),2),r=e[0],n=r.x,i=r.y,r=e[1],e=r.x,r=r.y;return t&&(t.beginPath(),t.moveTo(n,i),t.lineTo(e,r)),new lr(n,i,e,r)}},{key:"getMarkers",value:function(){var t=w(this.getPoints(),2),e=t[0],r=t[1],t=e.angleTo(r);return[[e,t],[r,t]]}}]),r}();function Mr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var Nr=function(){lt(i,Sr);var n=Mr(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,r)).type="polyline",r.points=[],r.points=$e.parsePath(r.getAttribute("points").getString()),r}return F(i,[{key:"path",value:function(r){var t=this.points,e=w(t,1)[0],n=e.x,e=e.y,i=new lr(n,e);return r&&(r.beginPath(),r.moveTo(n,e)),S()(t).call(t,function(t){var e=t.x,t=t.y;i.addPoint(e,t),r&&r.lineTo(e,t)}),i}},{key:"getMarkers",value:function(){var r=this.points,n=r.length-1,i=[];return S()(r).call(r,function(t,e){e!==n&&i.push([t,t.angleTo(r[e+1])])}),0<i.length&&i.push([r[r.length-1],i[i.length-1][1]]),i}}]),i}();function Rr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}bt=function(){lt(i,Nr);var e=Rr(i);function i(){var t;return j(this,i),(t=e.apply(this,arguments)).type="polygon",t}return F(i,[{key:"path",value:function(t){var e=Et(vt(i.prototype),"path",this).call(this,t),r=w(this.points,1)[0],n=r.x,r=r.y;return t&&(t.lineTo(n,r),t.closePath()),e}}]),i}();function _r(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}St=function(){lt(r,or);var e=_r(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="pattern",t}return F(r,[{key:"createPattern",value:function(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new kr(this.document,null);o.attributes.viewBox=new Ue(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new Ue(this.document,"width","".concat(n,"px")),o.attributes.height=new Ue(this.document,"height","".concat(i,"px")),o.attributes.transform=new Ue(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var a=this.document.createCanvas(n,i),s=a.getContext("2d"),n=this.getAttribute("x"),i=this.getAttribute("y");n.hasValue()&&i.hasValue()&&s.translate(n.getPixels("x",!0),i.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:ie()(this.styles,"fill-opacity");for(var u=-1;u<=1;u++)for(var c=-1;c<=1;c++)s.save(),o.attributes.x=new Ue(this.document,"x",u*a.width),o.attributes.y=new Ue(this.document,"y",c*a.height),o.render(s),s.restore();return t.createPattern(a,"repeat")}}]),r}();function Vr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}kt=function(){lt(r,or);var e=Vr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="marker",t}return F(r,[{key:"render",value:function(t,e,r){var n,i,o,a;e&&(n=e.x,i=e.y,o=this.getAttribute("orient").getValue("auto"),a=this.getAttribute("markerUnits").getValue("strokeWidth"),t.translate(n,i),"auto"===o&&t.rotate(r),"strokeWidth"===a&&t.scale(t.lineWidth,t.lineWidth),t.save(),(e=new kr(this.document,null)).type=this.type,e.attributes.viewBox=new Ue(this.document,"viewBox",this.getAttribute("viewBox").getValue()),e.attributes.refX=new Ue(this.document,"refX",this.getAttribute("refX").getValue()),e.attributes.refY=new Ue(this.document,"refY",this.getAttribute("refY").getValue()),e.attributes.width=new Ue(this.document,"width",this.getAttribute("markerWidth").getValue()),e.attributes.height=new Ue(this.document,"height",this.getAttribute("markerHeight").getValue()),e.attributes.overflow=new Ue(this.document,"overflow",this.getAttribute("overflow").getValue()),e.attributes.fill=new Ue(this.document,"fill",this.getAttribute("fill").getColor("black")),e.attributes.stroke=new Ue(this.document,"stroke",this.getAttribute("stroke").getValue("none")),e.children=this.children,e.render(t),t.restore(),"strokeWidth"===a&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===o&&t.rotate(-r),t.translate(-n,-i))}}]),r}();function Dr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}t=function(){lt(r,or);var e=Dr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="defs",t}return F(r,[{key:"render",value:function(){}}]),r}();function Lr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var Ir=function(){lt(r,fr);var e=Lr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="g",t}return F(r,[{key:"getBoundingBox",value:function(e){var t,r=new lr;return S()(t=this.children).call(t,function(t){r.addBoundingBox(t.getBoundingBox(e))}),r}}]),r}();function jr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var zr=function(){lt(o,or);var i=jr(o);function o(t,e,r){j(this,o),(e=i.call(this,t,e,r)).attributesToInherit=["gradientUnits"],e.stops=[];var r=pt(e),n=r.stops,r=r.children;return S()(r).call(r,function(t){"stop"===t.type&&n.push(t)}),e}return F(o,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(t,e,r){var n=this,i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var o=i.stops,a=this.getGradient(t,e);if(!a)return this.addParentOpacity(r,o[o.length-1].color);if(S()(o).call(o,function(t){a.addColorStop(t.offset,n.addParentOpacity(r,t.color))}),this.getAttribute("gradientTransform").hasValue()){i=this.document,t=i.screen,e=t.MAX_VIRTUAL_PIXELS,o=w(t.viewPort.viewPorts,1)[0],t=new Or(i,null);t.attributes.x=new Ue(i,"x",-e/3),t.attributes.y=new Ue(i,"y",-e/3),t.attributes.width=new Ue(i,"width",e),t.attributes.height=new Ue(i,"height",e);e=new Ir(i,null);e.attributes.transform=new Ue(i,"transform",this.getAttribute("gradientTransform").getValue()),e.children=[t];t=new kr(i,null);t.attributes.x=new Ue(i,"x",0),t.attributes.y=new Ue(i,"y",0),t.attributes.width=new Ue(i,"width",o.width),t.attributes.height=new Ue(i,"height",o.height),t.children=[e];i=i.createCanvas(o.width,o.height),o=i.getContext("2d");return o.fillStyle=a,t.render(o),o.createPattern(i,"no-repeat")}return a}},{key:"inheritStopContainer",value:function(e){var t,r=this;S()(t=this.attributesToInherit).call(t,function(t){!r.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&r.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}},{key:"addParentOpacity",value:function(t,e){return t.hasValue()?new Ue(this.document,"color",e).addOpacity(t).getColor():e}}]),o}();function Fr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}r=function(){lt(i,zr);var n=Fr(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,r)).type="linearGradient",r.attributesToInherit.push("x1","y1","x2","y2"),r}return F(i,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=r?e.getBoundingBox(t):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 i=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"),e=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),n=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===e&&o===n?null:t.createLinearGradient(i,o,e,n)}}]),i}();function Br(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}n=function(){lt(i,zr);var n=Br(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,r)).type="radialGradient",r.attributesToInherit.push("cx","cy","r","fx","fy","fr"),r}return F(i,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=e.getBoundingBox(t);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 i=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"),a=i,e=o;this.getAttribute("fx").hasValue()&&(a=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(e=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));r=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),n=this.getAttribute("fr").getPixels();return t.createRadialGradient(a,e,n,i,o,r)}}]),i}();function Hr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}p=function(){lt(o,or);var i=Hr(o);function o(t,e,r){var n;j(this,o),(n=i.call(this,t,e,r)).type="stop";t=Math.max(0,Math.min(1,n.getAttribute("offset").getNumber())),e=n.getStyle("stop-opacity"),r=n.getStyle("stop-color",!0);return""===r.getString()&&r.setValue("#000"),e.hasValue()&&(r=r.addOpacity(e)),n.offset=t,n.color=r.getColor(),n}return o}();function Ur(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var Xr=function(){lt(i,or);var n=Ur(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,r)).type="animate",r.duration=0,r.initialValue=null,r.initialUnits="",r.removed=!1,r.frozen=!1,t.screen.animations.push(pt(r)),r.begin=r.getAttribute("begin").getMilliseconds(),r.maxDuration=r.begin+r.getAttribute("dur").getMilliseconds(),r.from=r.getAttribute("from"),r.to=r.getAttribute("to"),r.values=r.getAttribute("values"),oe()(r).hasValue()&&oe()(r).setValue(oe()(r).getString().split(";")),r}return F(i,[{key:"getProperty",value:function(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}},{key:"calcValue",value:function(){var t=this.initialUnits,e=this.getProgress(),r=e.progress,n=e.from,e=e.to,r=n.getNumber()+(e.getNumber()-n.getNumber())*r;return"%"===t&&(r*=100),H()(r="".concat(r)).call(r,t)}},{key:"update",value:function(t){var e=this.parent,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(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;n=!1;return this.begin<this.duration&&(e=this.calcValue(),(t=this.getAttribute("type")).hasValue()&&(t=t.getString(),e=H()(t="".concat(t,"(")).call(t,e,")")),r.setValue(e),n=!0),n}},{key:"getProgress",value:function(){var t,e,r,n=this.document,i=oe()(this),o={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};return i.hasValue()?(t=o.progress*(i.getValue().length-1),e=Math.floor(t),r=Math.ceil(t),o.from=new Ue(n,"from",s()(i.getValue()[e])),o.to=new Ue(n,"to",s()(i.getValue()[r])),o.progress=(t-e)/(r-e)):(o.from=this.from,o.to=this.to),o}}]),i}();function $r(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}g=function(){lt(r,Xr);var e=$r(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="animateColor",t}return F(r,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=new(it())(r.getColor()),t=new(it())(n.getColor());if(i.ok&&t.ok){var r=i.r+(t.r-i.r)*e,n=i.g+(t.g-i.g)*e,e=i.b+(t.b-i.b)*e;return H()(n=H()(r="rgb(".concat(ae()(r,10),", ")).call(r,ae()(n,10),", ")).call(n,ae()(e,10),")")}return this.getAttribute("from").getColor()}}]),r}();function Yr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}m=function(){lt(r,Xr);var e=Yr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="animateTransform",t}return F(r,[{key:"calcValue",value:function(){var t=this.getProgress(),r=t.progress,e=t.from,t=t.to,e=we(e.getString()),n=we(t.getString());return d()(e).call(e,function(t,e){return t+(n[e]-t)*r}).join(" ")}}]),r}();function qr(t,e){var r;if(void 0===ce()||null==l()(t)){if(ue()(t)||(r=function(t,e){if(t){if("string"==typeof t)return Wr(t,e);var r=le()(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Map"===(r="Object"===r&&t.constructor?t.constructor.name:r)||"Set"===r?At()(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wr(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,e=function(){};return{s:e,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){r=se()(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function Wr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Gr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}b=function(){lt(h,or);var l=Gr(h);function h(t,e,r){var n;j(this,h),(n=l.call(this,t,e,r)).type="font",n.glyphs={},n.horizAdvX=n.getAttribute("horiz-adv-x").getNumber();var i,o=t.definitions,a=qr(pt(n).children);try{for(a.s();!(i=a.n()).done;){var s=i.value;switch(s.type){case"font-face":var u=(n.fontFace=s).getStyle("font-family");u.hasValue()&&(o[u.getString()]=pt(n));break;case"missing-glyph":n.missingGlyph=s;break;case"glyph":var c=s;c.arabicForm?(n.isRTL=!0,n.isArabic=!0,void 0===n.glyphs[c.unicode]&&(n.glyphs[c.unicode]={}),n.glyphs[c.unicode][c.arabicForm]=c):n.glyphs[c.unicode]=c}}}catch(t){a.e(t)}finally{a.f()}return n}return F(h,[{key:"render",value:function(){}}]),h}();function Qr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}A=function(){lt(i,or);var n=Qr(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,r)).type="font-face",r.ascent=r.getAttribute("ascent").getNumber(),r.descent=r.getAttribute("descent").getNumber(),r.unitsPerEm=r.getAttribute("units-per-em").getNumber(),r}return i}();function Zr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}T=function(){lt(r,Sr);var e=Zr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="missing-glyph",t.horizAdvX=0,t}return r}();function Kr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}P=function(){lt(i,Sr);var n=Kr(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,r)).type="glyph",r.horizAdvX=r.getAttribute("horiz-adv-x").getNumber(),r.unicode=r.getAttribute("unicode").getString(),r.arabicForm=r.getAttribute("arabic-form").getString(),r}return i}();function Jr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}E=function(){lt(r,yr);var e=Jr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="tref",t}return F(r,[{key:"getText",value:function(){var t=this.getHrefAttribute().getDefinition();if(t){t=t.children[0];if(t)return t.getText()}return""}}]),r}();function tn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}N=function(){lt(o,yr);var i=tn(o);function o(t,e,r){j(this,o),(t=i.call(this,t,e,r)).type="a";var r=e.childNodes,e=r[0],n=0<r.length&&W()(n=At()(r)).call(n,function(t){return 3===t.nodeType});return t.hasText=n,t.text=n?t.getTextFromNode(e):"",t}return F(o,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){var e,r,n,i;this.hasText?(Et(vt(o.prototype),"renderChildren",this).call(this,t),n=this.document,e=this.x,i=this.y,r=n.screen.mouse,n=new Ue(n,"fontSize",cr.parse(n.ctx.font).fontSize),r.isWorking()&&r.checkBoundingBox(this,new lr(e,i-n.getPixels("y"),e+this.measureText(t),i))):0<this.children.length&&((i=new Ir(this.document,null)).children=this.children,i.parent=this,i.render(t))}},{key:"onClick",value:function(){var t=this.document.window;t&&t.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){this.document.ctx.canvas.style.cursor="pointer"}}]),o}();function en(t,e){var r;if(void 0===ce()||null==l()(t)){if(ue()(t)||(r=function(t,e){if(t){if("string"==typeof t)return rn(t,e);var r=le()(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Map"===(r="Object"===r&&t.constructor?t.constructor.name:r)||"Set"===r?At()(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,e=function(){};return{s:e,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){r=se()(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function rn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function nn(e,t){var r,n=M()(e);return C()&&(r=C()(e),t&&(r=O()(r).call(r,function(t){return k()(e,t).enumerable})),n.push.apply(n,r)),n}function on(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};t%2?S()(r=nn(Object(n),!0)).call(r,function(t){I(e,t,n[t])}):x()?v()(e,x()(n)):S()(r=nn(Object(n))).call(r,function(t){y()(e,t,k()(n,t))})}return e}function an(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}B=function(){lt(i,yr);var n=an(i);function i(t,e,r){j(this,i),(e=n.call(this,t,e,r)).type="textPath",e.textWidth=0,e.textHeight=0,e.pathLength=-1,e.glyphInfo=null,e.letterSpacingCache=[],e.measuresCache=new(he())([["",0]]);r=e.getHrefAttribute().getDefinition();return e.text=e.getTextFromNode(),e.dataArray=e.parsePathData(r),e}return F(i,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(p){var t=this.dataArray;p&&p.beginPath(),S()(t).call(t,function(t){var e=t.type,r=t.points;switch(e){case br.LINE_TO:p&&p.lineTo(r[0],r[1]);break;case br.MOVE_TO:p&&p.moveTo(r[0],r[1]);break;case br.CURVE_TO:p&&p.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case br.QUAD_TO:p&&p.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case br.ARC:var n=w(r,8),i=n[0],o=n[1],a=n[2],s=n[3],u=n[4],c=n[5],l=n[6],h=n[7],f=s<a?a:s,n=s<a?1:a/s,a=s<a?s/a:1;p&&(p.translate(i,o),p.rotate(l),p.scale(n,a),p.arc(0,0,f,u,u+c,Boolean(1-h)),p.scale(1/n,1/a),p.rotate(-l),p.translate(-i,-o));break;case br.CLOSE_PATH:p&&p.closePath()}})}},{key:"renderChildren",value:function(o){this.setTextData(o),o.save();var a=this.parent.getStyle("text-decoration").getString(),s=this.getFontSize(),t=this.glyphInfo,e=o.fillStyle;"underline"===a&&o.beginPath(),S()(t).call(t,function(t,e){var r=t.p0,n=t.p1,i=t.rotation,t=t.text;o.save(),o.translate(r.x,r.y),o.rotate(i),o.fillStyle&&o.fillText(t,0,0),o.strokeStyle&&o.strokeText(t,0,0),o.restore(),"underline"===a&&(0===e&&o.moveTo(r.x,r.y+s/8),o.lineTo(n.x,n.y+s/5))}),"underline"===a&&(o.lineWidth=s/20,o.strokeStyle=e,o.stroke(),o.closePath()),o.restore()}},{key:"getLetterSpacingAt",value:function(){return this.letterSpacingCache[0<arguments.length&&void 0!==arguments[0]?arguments[0]:0]||0}},{key:"findSegmentToFitChar",value:function(t,e,r,n,i,o,a,s,u){t=this.measureText(t,s);" "===s&&"justify"===e&&r<n&&(t+=(n-r)/i),-1<u&&(o+=this.getLetterSpacingAt(u));e=this.textHeight/20,n=this.getEquidistantPointOnPath(o,e,0),r=this.getEquidistantPointOnPath(o+t,e,0),i={p0:n,p1:r},u=n&&r?Math.atan2(r.y-n.y,r.x-n.x):0;return a&&(e=Math.cos(Math.PI/2+u)*a,a=Math.cos(-u)*a,i.p0=on(on({},n),{},{x:n.x+e,y:n.y+a}),i.p1=on(on({},r),{},{x:r.x+e,y:r.y+a})),{offset:o+=t,segment:i,rotation:u}}},{key:"measureText",value:function(t,e){var r=this.measuresCache,e=e||this.getText();if(r.has(e))return r.get(e);t=this.measureTargetText(t,e);return r.set(e,t),t}},{key:"setTextData",value:function(i){var o=this;if(!this.glyphInfo){var t=this.getText(),a=t.split(""),s=t.split(" ").length-1,e=d()(n=this.parent.getAttribute("dx").split()).call(n,function(t){return t.getPixels("x")}),u=this.parent.getAttribute("dy").getPixels("y"),c=this.parent.getStyle("text-anchor").getString("start"),r=this.getStyle("letter-spacing"),n=this.parent.getStyle("letter-spacing"),l=0;r.hasValue()&&"inherit"!==r.getValue()?r.hasValue()&&"initial"!==r.getValue()&&"unset"!==r.getValue()&&(l=r.getPixels()):l=n.getPixels();var h=[],f=t.length;this.letterSpacingCache=h;for(var p=0;p<f;p++)h.push(void 0!==e[p]?e[p]:l);var n=X()(h).call(h,function(t,e,r){return 0!==r&&t+e||0},0),t=this.measureText(i),y=Math.max(t+n,0);this.textWidth=t,this.textHeight=this.getFontSize(),this.glyphInfo=[];var g=this.getPathLength(),t=this.getStyle("startOffset").getNumber(0)*g,v="end"!==c&&"right"!==c?"middle"!==c&&"center"!==c?0:-y/2:-y;v+=t,S()(a).call(a,function(t,e){var r=o.findSegmentToFitChar(i,c,y,g,s,v,u,t,e),n=r.offset,t=r.segment,r=r.rotation;v=n,t.p0&&t.p1&&o.glyphInfo.push({text:a[e],p0:t.p0,p1:t.p1,rotation:r})})}}},{key:"parsePathData",value:function(t){if(this.pathLength=-1,!t)return[];var e=[],r=t.pathParser;for(r.reset();!r.isEnd();){var n=r.current,i=n?n.x:0,o=n?n.y:0,n=r.next(),a=n.type,s=[];switch(n.type){case br.MOVE_TO:this.pathM(r,s);break;case br.LINE_TO:a=this.pathL(r,s);break;case br.HORIZ_LINE_TO:a=this.pathH(r,s);break;case br.VERT_LINE_TO:a=this.pathV(r,s);break;case br.CURVE_TO:this.pathC(r,s);break;case br.SMOOTH_CURVE_TO:a=this.pathS(r,s);break;case br.QUAD_TO:this.pathQ(r,s);break;case br.SMOOTH_QUAD_TO:a=this.pathT(r,s);break;case br.ARC:s=this.pathA(r);break;case br.CLOSE_PATH:Sr.pathZ(r)}n.type!==br.CLOSE_PATH?e.push({type:a,points:s,start:{x:i,y:o},pathLength:this.calcLength(i,o,a,s)}):e.push({type:br.CLOSE_PATH,points:[],pathLength:0})}return e}},{key:"pathM",value:function(t,e){var r=Sr.pathM(t).point,t=r.x,r=r.y;e.push(t,r)}},{key:"pathL",value:function(t,e){var r=Sr.pathL(t).point,t=r.x,r=r.y;return e.push(t,r),br.LINE_TO}},{key:"pathH",value:function(t,e){var r=Sr.pathH(t).point,t=r.x,r=r.y;return e.push(t,r),br.LINE_TO}},{key:"pathV",value:function(t,e){var r=Sr.pathV(t).point,t=r.x,r=r.y;return e.push(t,r),br.LINE_TO}},{key:"pathC",value:function(t,e){var r=Sr.pathC(t),n=r.point,t=r.controlPoint,r=r.currentPoint;e.push(n.x,n.y,t.x,t.y,r.x,r.y)}},{key:"pathS",value:function(t,e){var r=Sr.pathS(t),n=r.point,t=r.controlPoint,r=r.currentPoint;return e.push(n.x,n.y,t.x,t.y,r.x,r.y),br.CURVE_TO}},{key:"pathQ",value:function(t,e){var r=Sr.pathQ(t),t=r.controlPoint,r=r.currentPoint;e.push(t.x,t.y,r.x,r.y)}},{key:"pathT",value:function(t,e){var r=Sr.pathT(t),t=r.controlPoint,r=r.currentPoint;return e.push(t.x,t.y,r.x,r.y),br.QUAD_TO}},{key:"pathA",value:function(t){var e=Sr.pathA(t),r=e.rX,n=e.rY,i=e.sweepFlag,o=e.xAxisRotation,a=e.centp,t=e.a1,e=e.ad;return 0===i&&0<e&&(e-=2*Math.PI),1===i&&e<0&&(e+=2*Math.PI),[a.x,a.y,r,n,t,e,o,i]}},{key:"calcLength",value:function(t,e,r,n){var i=0,o=null,a=null,s=0;switch(r){case br.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case br.CURVE_TO:for(o=this.getPointOnCubicBezier(i=0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),s=.01;s<=1;s+=.01)a=this.getPointOnCubicBezier(s,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case br.QUAD_TO:for(o=this.getPointOnQuadraticBezier(i=0,t,e,n[0],n[1],n[2],n[3]),s=.01;s<=1;s+=.01)a=this.getPointOnQuadraticBezier(s,t,e,n[0],n[1],n[2],n[3]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case br.ARC:var i=0,u=n[4],c=n[5],l=n[4]+c,h=Math.PI/180;if(Math.abs(u-l)<h&&(h=Math.abs(u-l)),o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),c<0)for(s=u-h;l<s;s-=h)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;else for(s=u+h;s<l;s+=h)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),i+=this.getLineLength(o.x,o.y,a.x,a.y)}return 0}},{key:"getPointOnLine",value:function(t,e,r,n,i){var o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:e,a=6<arguments.length&&void 0!==arguments[6]?arguments[6]:r,s=(i-r)/(n-e+Re),u=Math.sqrt(t*t/(1+s*s));n<e&&(u*=-1);var c=s*u,l=null;if(n===e)l={x:o,y:a+c};else if((a-r)/(o-e+Re)==s)l={x:o+u,y:a+c};else{var h=0,f=0,p=this.getLineLength(e,r,n,i);if(p<Re)return null;var y=(o-e)*(n-e)+(a-r)*(i-r),r=this.getLineLength(o,a,h=e+(y/=p*p)*(n-e),f=r+y*(i-r)),r=Math.sqrt(t*t-r*r),u=Math.sqrt(r*r/(1+s*s));n<e&&(u*=-1),l={x:h+u,y:f+(c=s*u)}}return l}},{key:"getPointOnPath",value:function(t){var e=this.getPathLength(),r=0,n=null;if(t<-5e-5||e<t-5e-5)return null;var i,o=en(this.dataArray);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!a||!(a.pathLength<5e-5||r+a.pathLength+5e-5<t)){var s=t-r,u=0;switch(a.type){case br.LINE_TO:n=this.getPointOnLine(s,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case br.ARC:var c=a.points[4],l=a.points[5],h=a.points[4]+l,u=c+s/a.pathLength*l;if(l<0&&u<h||0<=l&&h<u)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],u,a.points[6]);break;case br.CURVE_TO:1<(u=s/a.pathLength)&&(u=1),n=this.getPointOnCubicBezier(u,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case br.QUAD_TO:1<(u=s/a.pathLength)&&(u=1),n=this.getPointOnQuadraticBezier(u,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3])}if(n)return n;break}r+=a.pathLength}}catch(t){o.e(t)}finally{o.f()}return null}},{key:"getLineLength",value:function(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}},{key:"getPathLength",value:function(){var t;return-1===this.pathLength&&(this.pathLength=X()(t=this.dataArray).call(t,function(t,e){return 0<e.pathLength?t+e.pathLength:t},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(t,e,r,n,i,o,a,s,u){return{x:s*Le(t)+o*Ie(t)+n*je(t)+e*ze(t),y:u*Le(t)+a*Ie(t)+i*je(t)+r*ze(t)}}},{key:"getPointOnQuadraticBezier",value:function(t,e,r,n,i,o,a){return{x:o*Fe(t)+n*Be(t)+e*He(t),y:a*Fe(t)+i*Be(t)+r*He(t)}}},{key:"getPointOnEllipticalArc",value:function(t,e,r,n,i,o){var a=Math.cos(o),o=Math.sin(o),r=r*Math.cos(i),i=n*Math.sin(i);return{x:t+(r*a-i*o),y:e+(r*o+i*a)}}},{key:"buildEquidistantCache",value:function(t,e){var r=this.getPathLength(),n=e||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var o=0,a=0;a<=r;a+=n){var s=this.getPointOnPath(a),u=this.getPointOnPath(a+n);s&&u&&i<=(o+=this.getLineLength(s.x,s.y,u.x,u.y))&&(this.equidistantCache.points.push({x:s.x,y:s.y,distance:a}),o-=i)}}}},{key:"getEquidistantPointOnPath",value:function(t,e,r){if(this.buildEquidistantCache(e,r),t<0||5e-5<t-this.getPathLength())return null;t=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[t]||null}}]),i}();function sn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}U=function(){lt(o,fr);var e,r,i=sn(o);function o(t,e,r){var n;j(this,o),(n=i.call(this,t,e,r)).type="image",n.loaded=!1;e=n.getHrefAttribute().getString();if(!e)return yt(n);r=/\.svg$/.test(e);return t.images.push(pt(n)),r?n.loadSvg(e):n.loadImage(e),n.isSvg=r,n}return F(o,[{key:"loadImage",value:(r=D(R().mark(function t(e){var r;return R().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.createImage(e);case 3:r=t.sent,this.image=r,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0);case 10:this.loaded=!0;case 11:case"end":return t.stop()}},t,this,[[0,7]])})),function(t){return r.apply(this,arguments)})},{key:"loadSvg",value:(e=D(R().mark(function t(e){var r;return R().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.fetch(e);case 3:return r=t.sent,t.next=6,r.text();case 6:r=t.sent,this.image=r,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0);case 13:this.loaded=!0;case 14:case"end":return t.stop()}},t,this,[[0,10]])})),function(t){return e.apply(this,arguments)})},{key:"renderChildren",value:function(t){var e=this.document,r=this.image,n=this.loaded,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");n&&r&&a&&s&&(t.save(),this.isSvg?e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:i,offsetY:o,scaleWidth:a,scaleHeight:s}).render():(r=this.image,t.translate(i,o),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:r.width,height:s,desiredHeight:r.height}),this.loaded&&(void 0!==r.complete&&!r.complete||t.drawImage(r,0,0))),t.restore())}},{key:"getBoundingBox",value:function(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new lr(t,e,t+r,e+n)}}]),o}();function un(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var $=function(){lt(r,fr);var e=un(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="symbol",t}return F(r,[{key:"render",value:function(t){}}]),r}(),cn=function(){function e(t){j(this,e),this.document=t,this.loaded=!1,t.fonts.push(this)}var r;return F(e,[{key:"load",value:(r=D(R().mark(function t(e,r){var n,i;return R().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=this.document,t.next=4,n.canvg.parser.load(r);case 4:i=t.sent,i=i.getElementsByTagName("font"),S()(i=At()(i)).call(i,function(t){t=n.createElement(t);n.definitions[e]=t}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0);case 12:this.loaded=!0;case 13:case"end":return t.stop()}},t,this,[[0,9]])})),function(t,e){return r.apply(this,arguments)})}]),e}();function ln(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}q=function(){lt(n,or);var r=ln(n);function n(u,t,e){j(this,n),(e=r.call(this,u,t,e)).type="style";t=be(d()(t=At()(t.childNodes)).call(t,function(t){return t.data}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return S()(t).call(t,function(t){var s,e=rt()(t).call(t);e&&(e=(t=e.split("{"))[0].split(","),s=t[1].split(";"),S()(e).call(e,function(t){var n,e,r,i,o,a=rt()(t).call(t);a&&(n=u.styles[a]||{},S()(s).call(s,function(t){var e=Ot()(t).call(t,":"),r=rt()(r=t.substr(0,e)).call(r),e=rt()(e=t.substr(e+1,t.length-e)).call(e);r&&e&&(n[r]=new Ue(u,r,e))}),u.styles[a]=n,u.stylesSpecificity[a]=(r=[0,0,0],i=(e=w(Ne(i=(e=a).replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),ke),2))[0],t=e[1],r[1]+=t,e=w(Ne(i,Te),2),i=e[0],t=e[1],r[0]+=t,e=w(Ne(i,Oe),2),i=e[0],t=e[1],r[1]+=t,e=w(Ne(i,Pe),2),i=e[0],t=e[1],r[2]+=t,e=w(Ne(i,Ce),2),i=e[0],t=e[1],r[1]+=t,e=w(Ne(i,Ee),2),i=e[0],t=e[1],r[1]+=t,i=(e=w(Ne(i=i.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),Me),2))[0],t=e[1],r[2]+=t,r.join("")),"@font-face"===a&&(o=n["font-family"].getString().replace(/"|'/g,""),a=n.src.getString().split(","),S()(a).call(a,function(t){0<Ot()(t).call(t,'format("svg")')&&((t=Ae(t))&&new cn(u).load(o,t))})))}))}),e}return n}();function hn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}q.parseExternalUrl=Ae;G=function(){lt(n,fr);var e=hn(n);function n(){var t;return j(this,n),(t=e.apply(this,arguments)).type="use",t}return F(n,[{key:"setContext",value:function(t){Et(vt(n.prototype),"setContext",this).call(this,t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}},{key:"path",value:function(t){var e=this.element;e&&e.path(t)}},{key:"renderChildren",value:function(t){var e,r,n=this.document,i=this.element;i&&("symbol"===(e=i).type&&((e=new kr(n,null)).attributes.viewBox=new Ue(n,"viewBox",i.getAttribute("viewBox").getString()),e.attributes.preserveAspectRatio=new Ue(n,"preserveAspectRatio",i.getAttribute("preserveAspectRatio").getString()),e.attributes.overflow=new Ue(n,"overflow",i.getAttribute("overflow").getString()),e.children=i.children,i.styles.opacity=new Ue(n,"opacity",this.calculateOpacity())),"svg"===e.type&&(i=this.getStyle("width",!1,!0),r=this.getStyle("height",!1,!0),i.hasValue()&&(e.attributes.width=new Ue(n,"width",i.getString())),r.hasValue()&&(e.attributes.height=new Ue(n,"height",r.getString()))),r=e.parent,e.parent=this,e.render(t),e.parent=r)}},{key:"getBoundingBox",value:function(t){var e=this.element;return e?e.getBoundingBox(t):null}},{key:"elementTransform",value:function(){var t=this.document,e=this.element;return ir.fromElement(t,e)}},{key:"element",get:function(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),n}();function fn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}function pn(t,e,r,n,i,o){return t[r*n*4+4*e+o]}function yn(t,e,r,n,i,o,a){t[r*n*4+4*e+o]=a}function gn(t,e,r){return t[e]*r}function vn(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}var dn=function(){lt(a,or);var o=fn(a);function a(t,e,r){j(this,a),(r=o.call(this,t,e,r)).type="feColorMatrix";var n=we(r.getAttribute("values").getString());switch(r.getAttribute("type").getString("matrix")){case"saturate":var i=n[0],n=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":i=n[0]*Math.PI/180;n=[vn(i,.213,.787,-.213),vn(i,.715,-.715,-.715),vn(i,.072,-.072,.928),0,0,vn(i,.213,-.213,.143),vn(i,.715,.285,.14),vn(i,.072,-.072,-.283),0,0,vn(i,.213,-.213,-.787),vn(i,.715,-.715,.715),vn(i,.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]}return r.matrix=n,r.includeOpacity=r.getAttribute("includeOpacity").hasValue(),r}return F(a,[{key:"apply",value:function(t,e,r,n,i){for(var o=this.includeOpacity,a=this.matrix,s=t.getImageData(0,0,n,i),u=0;u<i;u++)for(var c=0;c<n;c++){var l=pn(s.data,c,u,n,0,0),h=pn(s.data,c,u,n,0,1),f=pn(s.data,c,u,n,0,2),p=pn(s.data,c,u,n,0,3),y=gn(a,0,l)+gn(a,1,h)+gn(a,2,f)+gn(a,3,p)+gn(a,4,1),g=gn(a,5,l)+gn(a,6,h)+gn(a,7,f)+gn(a,8,p)+gn(a,9,1),v=gn(a,10,l)+gn(a,11,h)+gn(a,12,f)+gn(a,13,p)+gn(a,14,1),f=gn(a,15,l)+gn(a,16,h)+gn(a,17,f)+gn(a,18,p)+gn(a,19,1);o&&(y=g=v=0,f*=p/255),yn(s.data,c,u,n,0,0,y),yn(s.data,c,u,n,0,1,g),yn(s.data,c,u,n,0,2,v),yn(s.data,c,u,n,0,3,f)}t.clearRect(0,0,n,i),t.putImageData(s,0,0)}}]),a}();function mn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}Z=function(){lt(p,or);var e=mn(p);function p(){var t;return j(this,p),(t=e.apply(this,arguments)).type="mask",t}return F(p,[{key:"apply",value:function(e,t){var r,n=this.document,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");a||s||(r=new lr,S()(f=this.children).call(f,function(t){r.addBoundingBox(t.getBoundingBox(e))}),i=Math.floor(r.x1),o=Math.floor(r.y1),a=Math.floor(r.width),s=Math.floor(r.height));var u=this.removeStyles(t,p.ignoreStyles),c=n.createCanvas(i+a,o+s),l=c.getContext("2d");n.screen.setDefaults(l),this.renderChildren(l),new dn(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(l,0,0,i+a,o+s);var h=n.createCanvas(i+a,o+s),f=h.getContext("2d");n.screen.setDefaults(f),t.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=l.createPattern(c,"no-repeat"),f.fillRect(0,0,i+a,o+s),e.fillStyle=f.createPattern(h,"no-repeat"),e.fillRect(0,0,i+a,o+s),this.restoreStyles(t,u)}},{key:"render",value:function(t){}}]),p}();function xn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}Z.ignoreStyles=["mask","transform","clip-path"];function bn(){}J=function(){lt(r,or);var e=xn(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="clipPath",t}return F(r,[{key:"apply",value:function(r){var t,n=this.document,i=pe()(r),e=r.beginPath,o=r.closePath;i&&(i.beginPath=bn,i.closePath=bn),fe()(e,r,[]),S()(t=this.children).call(t,function(t){var e;void 0!==t.path&&((e=(e=void 0!==t.elementTransform?t.elementTransform():null)||ir.fromElement(n,t))&&e.apply(r),t.path(r),i&&(i.closePath=o),e&&e.unapply(r))}),fe()(o,r,[]),r.clip(),i&&(i.beginPath=e,i.closePath=o)}},{key:"render",value:function(t){}}]),r}();function wn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}et=function(){lt(p,or);var e=wn(p);function p(){var t;return j(this,p),(t=e.apply(this,arguments)).type="filter",t}return F(p,[{key:"apply",value:function(t,e){var r,n,i,o,a,s,u,c,l=this.document,h=this.children,f=e.getBoundingBox(t);f&&(n=r=0,S()(h).call(h,function(t){t=t.extraFilterDistance||0;r=Math.max(r,t),n=Math.max(n,t)}),u=Math.floor(f.width),s=Math.floor(f.height),o=s+2*n,(i=u+2*r)<1||o<1||(a=Math.floor(f.x),s=Math.floor(f.y),u=this.removeStyles(e,p.ignoreStyles),f=l.createCanvas(i,o),c=f.getContext("2d"),l.screen.setDefaults(c),c.translate(-a+r,-s+n),e.render(c),S()(h).call(h,function(t){"function"==typeof t.apply&&t.apply(c,0,0,i,o)}),t.drawImage(f,0,0,i,o,a-r,s-n,i,o),this.restoreStyles(e,u)))}},{key:"render",value:function(t){}}]),p}();function Sn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}function An(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}function kn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}function Tn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}function On(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}function Pn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}et.ignoreStyles=["filter","transform","clip-path"];et={svg:kr,rect:Or,circle:nt,ellipse:ot,line:mt,polyline:Nr,polygon:bt,path:Sr,pattern:St,marker:kt,defs:t,linearGradient:r,radialGradient:n,stop:p,animate:Xr,animateColor:g,animateTransform:m,font:b,"font-face":A,"missing-glyph":T,glyph:P,text:yr,tspan:vr,tref:E,a:N,textPath:B,image:U,g:Ir,symbol:$,style:q,use:G,mask:Z,clipPath:J,filter:et,feDropShadow:function(){lt(i,or);var n=Sn(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,r)).type="feDropShadow",r.addStylesFromStyleDefinition(),r}return F(i,[{key:"apply",value:function(t,e,r,n,i){}}]),i}(),feMorphology:function(){lt(r,or);var e=An(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="feMorphology",t}return F(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(),feComposite:function(){lt(r,or);var e=kn(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="feComposite",t}return F(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(),feColorMatrix:dn,feGaussianBlur:function(){lt(i,or);var n=Tn(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,r)).type="feGaussianBlur",r.blurRadius=Math.floor(r.getAttribute("stdDeviation").getNumber()),r.extraFilterDistance=r.blurRadius,r}return F(i,[{key:"apply",value:function(t,e,r,n,i){var o=this.document,a=this.blurRadius,s=o.window?o.window.document.body:null,t=t.canvas;t.id=o.getUniqueId(),s&&(t.style.display="none",s.appendChild(t)),me(t,e,r,n,i,a),s&&s.removeChild(t)}}]),i}(),title:function(){lt(r,or);var e=On(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="title",t}return r}(),desc:function(){lt(r,or);var e=Pn(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="desc",t}return r}()};function Cn(e,t){var r,n=M()(e);return C()&&(r=C()(e),t&&(r=O()(r).call(r,function(t){return k()(e,t).enumerable})),n.push.apply(n,r)),n}function En(){return(En=D(R().mark(function t(r){var e,n,i=arguments;return R().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=1<i.length&&void 0!==i[1]&&i[1],n=document.createElement("img"),e&&(n.crossOrigin="Anonymous"),t.abrupt("return",new(Q())(function(t,e){n.onload=function(){t(n)},n.onerror=function(){e()},n.src=r}));case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}var Mn=function(){function a(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.rootEmSize,n=void 0===r?12:r,i=e.emSize,o=void 0===i?12:i,r=e.createCanvas,i=void 0===r?a.createCanvas:r,r=e.createImage,r=void 0===r?a.createImage:r,e=e.anonymousCrossOrigin;j(this,a),this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=n,this.emSize=o,this.createCanvas=i,this.createImage=this.bindCreateImage(r,e),this.screen.wait(K()(e=this.isImagesLoaded).call(e,this)),this.screen.wait(K()(e=this.isFontsLoaded).call(e,this))}return F(a,[{key:"bindCreateImage",value:function(r,n){return"boolean"==typeof n?function(t,e){return r(t,"boolean"==typeof e?e:n)}:r}},{key:"popEmSize",value:function(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){var t;return W()(t=this.images).call(t,function(t){return t.loaded})}},{key:"isFontsLoaded",value:function(){var t;return W()(t=this.fonts).call(t,function(t){return t.loaded})}},{key:"createDocumentElement",value:function(t){t=this.createElement(t.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t}},{key:"createElement",value:function(t){var e=t.nodeName.replace(/^[^:]+:/,""),e=a.elementTypes[e];return new(void 0!==e?e:sr)(this,t)}},{key:"createTextNode",value:function(t){return new mr(this,t)}},{key:"setViewBox",value:function(t){this.screen.setViewBox(function(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};t%2?S()(r=Cn(Object(n),!0)).call(r,function(t){I(e,t,n[t])}):x()?v()(e,x()(n)):S()(r=Cn(Object(n))).call(r,function(t){y()(e,t,k()(n,t))})}return e}({document:this},t))}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var t=this.emSizeStack;return t[t.length-1]},set:function(t){this.emSizeStack.push(t)}}]),a}();function Nn(e,t){var r,n=M()(e);return C()&&(r=C()(e),t&&(r=O()(r).call(r,function(t){return k()(e,t).enumerable})),n.push.apply(n,r)),n}function Rn(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};t%2?S()(r=Nn(Object(n),!0)).call(r,function(t){I(e,t,n[t])}):x()?v()(e,x()(n)):S()(r=Nn(Object(n))).call(r,function(t){y()(e,t,k()(n,t))})}return e}Mn.createCanvas=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r},Mn.createImage=function(t){return En.apply(this,arguments)},Mn.elementTypes=et;et=function(){function a(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};j(this,a),this.parser=new Ke(r),this.screen=new Ge(t,r),this.options=r;r=new Mn(this,r),e=r.createDocumentElement(e);this.document=r,this.documentElement=e}var r,t;return F(a,[{key:"fork",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return a.from(t,e,Rn(Rn({},this.options),r))}},{key:"forkString",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return a.fromString(t,e,Rn(Rn({},this.options),r))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:(t=D(R().mark(function t(){var e,r=arguments;return R().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<r.length&&void 0!==r[0]?r[0]:{},this.start(Rn({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},e)),t.next=4,this.ready();case 4:this.stop();case 5:case"end":return t.stop()}},t,this)})),function(){return t.apply(this,arguments)})},{key:"start",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=this.documentElement,r=this.screen,n=this.options;r.start(e,Rn(Rn({enableRedraw:!0},n),t))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(t){this.documentElement.resize(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,2<arguments.length&&void 0!==arguments[2]&&arguments[2])}}],[{key:"from",value:(r=D(R().mark(function t(e,r){var n,i,o=arguments;return R().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=new Ke(n=2<o.length&&void 0!==o[2]?o[2]:{}),t.next=4,i.parse(r);case 4:return i=t.sent,t.abrupt("return",new a(e,i,n));case 6:case"end":return t.stop()}},t)})),function(t,e){return r.apply(this,arguments)})},{key:"fromString",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return new a(t,new Ke(r).parseFromString(e),r)}}]),a}();const _n=et;let Vn='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',Dn=40,Ln=document,In,jn,zn,Fn,Bn,Hn;function Un(){In=1e4,jn=1e4,zn=1e4,Fn=1e4,Bn=0,Hn=0}function Xn(){var r=Ln.querySelectorAll(".box > grp, root");let e="";for(let e=0;e<r.length;e++){let t=r[e];var n=t.getBoundingClientRect(),i=t.offsetTop,o=i+n.height,a=t.offsetLeft,n=a+n.width;i<In&&(In=i),o>jn&&(jn=o),a<zn&&(zn=a),n>Fn&&(Fn=n)}for(let t=0;t<r.length;t++){var s=r[t];"ROOT"!==s.tagName&&(e+=function(t){let e=t.querySelectorAll("tpc"),r=t.offsetTop-In,n=t.offsetLeft-zn,o="",i=t.querySelector(".svg3rd");o+=`<g transform="translate(${n+Dn}, ${r+Dn})">`,o+=i?i.innerHTML:"";for(let t=0;t<e.length;t++){let i=e[t];var a=i.parentNode,s=i.nodeObj;if(!s.root){var u=i.getBoundingClientRect(),c=a.offsetTop,l=a.offsetLeft,h=getComputedStyle(i),a=getComputedStyle(a),f=l+parseInt(a.paddingLeft)+parseInt(h.paddingLeft),p=c+parseInt(a.paddingTop)+parseInt(h.paddingTop)+parseInt(h.fontSize);let t="";"0px"!=h.borderWidth&&(t=`<rect x="${l+15}" y="${c}" rx="5px" ry="5px" width="${u.width}" height="${u.height}" style="fill: rgba(0,0,0,0); stroke:#444;stroke-width:1px;"></rect>`);let e="";"rgba(0, 0, 0, 0)"!=h.backgroundColor&&(e=`<rect x="${l+15}" y="${c}" rx="5px" ry="5px" width="${u.width}" height="${u.height}" style="fill: ${h.backgroundColor};"></rect>`);let r="";if(s.tags&&s.tags.length){var y=i.querySelectorAll(".tags > span");for(let e=0;e<y.length;e++){let t=y[e];var g=t.getBoundingClientRect();r+=`<rect x="${f}" y="${p+4}" rx="5px" ry="5px" width="${g.width}" height="${g.height}" style="fill: #d6f0f8;"></rect>
|
|
2
|
-
<text font-family="微软雅黑" font-size="12px" fill="#276f86" x="${f+4}" y="${p+4+12}">${t.innerHTML}</text>`}}let n="";if(s.icons&&s.icons.length){var v=i.querySelectorAll(".icons > span");for(let e=0;e<v.length;e++){let t=v[e];t.getBoundingClientRect();n+=`
|
|
3
|
-
<tspan>${t.innerHTML}</tspan>`}}o+=`<g id="${s.id}">
|
|
4
|
-
${t}
|
|
5
|
-
${e}
|
|
6
|
-
<text x="${f}" y="${p}" text-anchor="start" align="top" anchor="start" font-family="微软雅黑" font-size="${h.fontSize}" font-weight="${h.fontWeight}" fill="${h.color}">
|
|
7
|
-
${s.topic}
|
|
8
|
-
${n}
|
|
9
|
-
</text>
|
|
10
|
-
${r}
|
|
11
|
-
</g>`}}return o+="</g>",o}(s))}e+=function(){let t=Ln.querySelector("root"),e=Ln.querySelector("root > tpc"),r=e.getBoundingClientRect(),n=Ln.querySelector("root > tpc").nodeObj,i=t.offsetTop-In,o=t.offsetLeft-zn,a=Ln.querySelector(".svg2nd"),s=`<g transform="translate(${Dn-zn}, ${Dn-In})">${a.innerHTML}</g>`;return s+`<g id="root" transform="translate(${o+Dn}, ${i+Dn})">
|
|
12
|
-
<rect x="0" y="0" rx="5px" ry="5px" width="${r.width}" height="${r.height}" style="fill: #00aaff;"></rect>
|
|
13
|
-
<text x="15" y="35" text-anchor="start" align="top" anchor="start" font-family="微软雅黑" font-size="25px" font-weight="normal" fill="#ffffff">
|
|
14
|
-
${n.topic}
|
|
15
|
-
</text>
|
|
16
|
-
</g>`}(),Bn=jn-In+2*Dn,Hn=Fn-zn+2*Dn;let t=function(t,e){let r=document.createElementNS("http://www.w3.org/2000/svg","svg");return r.setAttribute("height",t),r.setAttribute("width",e),r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("version","1.2"),r.setAttribute("xlink","http://www.w3.org/1999/xlink"),r}(Bn,Hn);return e=`<rect x="0" y="0" width="${Hn}" height="${Bn}" fill="#f6f6f6"></rect>`+e,t.innerHTML=e,t}function $n(){return Ln.querySelector("root > tpc").innerText}const Yn={exportSvg:function(t,e){if(!t)throw new Error("Mind-elixir instance is not presented. ---\x3e exportSvg(instance, fileName)");Un(),Ln=t.container;let r=Xn();t=URL.createObjectURL(new Blob([Vn+r.outerHTML.replace(/ /g," ")]));let n=document.createElement("a");n.href=t,n.download=(e||$n())+".svg",n.click()},exportPng:async function(t,e){if(!t)throw new Error("Mind-elixir instance is not presented. ---\x3e exportSvg(instance, fileName)");Un(),Ln=t.container;let r=Xn();const n=document.createElement("canvas");n.style.display="none";t=n.getContext("2d");let i=await _n.fromString(t,Vn+r.outerHTML.replace(/ /g," "));i.start();t=n.toDataURL("image/png");let o=document.createElement("a");o.href=t,o.download=e||$n()+".png",o.click()}}})(),Wn.default})()});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.painter=e():t.painter=e()}(self,(function(){return(()=>{var t={9662:(t,e,r)=>{var i=r(7854),n=r(614),a=r(6330),s=i.TypeError;t.exports=function(t){if(n(t))return t;throw s(a(t)+" is not a function")}},9483:(t,e,r)=>{var i=r(7854),n=r(4411),a=r(6330),s=i.TypeError;t.exports=function(t){if(n(t))return t;throw s(a(t)+" is not a constructor")}},6077:(t,e,r)=>{var i=r(7854),n=r(614),a=i.String,s=i.TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw s("Can't set "+a(t)+" as a prototype")}},1223:(t,e,r)=>{var i=r(5112),n=r(30),a=r(3070),s=i("unscopables"),o=Array.prototype;null==o[s]&&a.f(o,s,{configurable:!0,value:n(null)}),t.exports=function(t){o[s][t]=!0}},1530:(t,e,r)=>{"use strict";var i=r(8710).charAt;t.exports=function(t,e,r){return e+(r?i(t,e).length:1)}},5787:(t,e,r)=>{var i=r(7854),n=r(7976),a=i.TypeError;t.exports=function(t,e){if(n(e,t))return t;throw a("Incorrect invocation")}},9670:(t,e,r)=>{var i=r(7854),n=r(111),a=i.String,s=i.TypeError;t.exports=function(t){if(n(t))return t;throw s(a(t)+" is not an object")}},1318:(t,e,r)=>{var i=r(5656),n=r(1400),a=r(6244),s=function(t){return function(e,r,s){var o,h=i(e),u=a(h),l=n(s,u);if(t&&r!=r){for(;u>l;)if((o=h[l++])!=o)return!0}else for(;u>l;l++)if((t||l in h)&&h[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},9341:(t,e,r)=>{"use strict";var i=r(7293);t.exports=function(t,e){var r=[][t];return!!r&&i((function(){r.call(null,e||function(){return 1},1)}))}},3671:(t,e,r)=>{var i=r(7854),n=r(9662),a=r(7908),s=r(8361),o=r(6244),h=i.TypeError,u=function(t){return function(e,r,i,u){n(r);var l=a(e),c=s(l),f=o(l),g=t?f-1:0,p=t?-1:1;if(i<2)for(;;){if(g in c){u=c[g],g+=p;break}if(g+=p,t?g<0:f<=g)throw h("Reduce of empty array with no initial value")}for(;t?g>=0:f>g;g+=p)g in c&&(u=r(u,c[g],g,l));return u}};t.exports={left:u(!1),right:u(!0)}},1589:(t,e,r)=>{var i=r(7854),n=r(1400),a=r(6244),s=r(6135),o=i.Array,h=Math.max;t.exports=function(t,e,r){for(var i=a(t),u=n(e,i),l=n(void 0===r?i:r,i),c=o(h(l-u,0)),f=0;u<l;u++,f++)s(c,f,t[u]);return c.length=f,c}},206:(t,e,r)=>{var i=r(1702);t.exports=i([].slice)},7072:(t,e,r)=>{var i=r(5112)("iterator"),n=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){n=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!n)return!1;var r=!1;try{var a={};a[i]=function(){return{next:function(){return{done:r=!0}}}},t(a)}catch(t){}return r}},4326:(t,e,r)=>{var i=r(1702),n=i({}.toString),a=i("".slice);t.exports=function(t){return a(n(t),8,-1)}},648:(t,e,r)=>{var i=r(7854),n=r(1694),a=r(614),s=r(4326),o=r(5112)("toStringTag"),h=i.Object,u="Arguments"==s(function(){return arguments}());t.exports=n?s:function(t){var e,r,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=h(t),o))?r:u?s(e):"Object"==(i=s(e))&&a(e.callee)?"Arguments":i}},9920:(t,e,r)=>{var i=r(2597),n=r(3887),a=r(1236),s=r(3070);t.exports=function(t,e,r){for(var o=n(e),h=s.f,u=a.f,l=0;l<o.length;l++){var c=o[l];i(t,c)||r&&i(r,c)||h(t,c,u(e,c))}}},4964:(t,e,r)=>{var i=r(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[i]=!1,"/./"[t](e)}catch(t){}}return!1}},8544:(t,e,r)=>{var i=r(7293);t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:(t,e,r)=>{"use strict";var i=r(3383).IteratorPrototype,n=r(30),a=r(9114),s=r(8003),o=r(7497),h=function(){return this};t.exports=function(t,e,r,u){var l=e+" Iterator";return t.prototype=n(i,{next:a(+!u,r)}),s(t,l,!1,!0),o[l]=h,t}},8880:(t,e,r)=>{var i=r(9781),n=r(3070),a=r(9114);t.exports=i?function(t,e,r){return n.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},9114:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:(t,e,r)=>{"use strict";var i=r(4948),n=r(3070),a=r(9114);t.exports=function(t,e,r){var s=i(e);s in t?n.f(t,s,a(0,r)):t[s]=r}},654:(t,e,r)=>{"use strict";var i=r(2109),n=r(6916),a=r(1913),s=r(6530),o=r(614),h=r(4994),u=r(9518),l=r(7674),c=r(8003),f=r(8880),g=r(1320),p=r(5112),d=r(7497),v=r(3383),y=s.PROPER,m=s.CONFIGURABLE,x=v.IteratorPrototype,b=v.BUGGY_SAFARI_ITERATORS,w=p("iterator"),S="keys",T="values",A="entries",O=function(){return this};t.exports=function(t,e,r,s,p,v,C){h(r,e,s);var P,E,M,N=function(t){if(t===p&&I)return I;if(!b&&t in V)return V[t];switch(t){case S:case T:case A:return function(){return new r(this,t)}}return function(){return new r(this)}},R=e+" Iterator",_=!1,V=t.prototype,k=V[w]||V["@@iterator"]||p&&V[p],I=!b&&k||N(p),L="Array"==e&&V.entries||k;if(L&&(P=u(L.call(new t)))!==Object.prototype&&P.next&&(a||u(P)===x||(l?l(P,x):o(P[w])||g(P,w,O)),c(P,R,!0,!0),a&&(d[R]=O)),y&&p==T&&k&&k.name!==T&&(!a&&m?f(V,"name",T):(_=!0,I=function(){return n(k,this)})),p)if(E={values:N(T),keys:v?I:N(S),entries:N(A)},C)for(M in E)(b||_||!(M in V))&&g(V,M,E[M]);else i({target:e,proto:!0,forced:b||_},E);return a&&!C||V[w]===I||g(V,w,I,{name:p}),d[e]=I,E}},9781:(t,e,r)=>{var i=r(7293);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(t,e,r)=>{var i=r(7854),n=r(111),a=i.document,s=n(a)&&n(a.createElement);t.exports=function(t){return s?a.createElement(t):{}}},8324:t=>{t.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}},8509:(t,e,r)=>{var i=r(317)("span").classList,n=i&&i.constructor&&i.constructor.prototype;t.exports=n===Object.prototype?void 0:n},7871:t=>{t.exports="object"==typeof window},1528:(t,e,r)=>{var i=r(8113),n=r(7854);t.exports=/ipad|iphone|ipod/i.test(i)&&void 0!==n.Pebble},6833:(t,e,r)=>{var i=r(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},5268:(t,e,r)=>{var i=r(4326),n=r(7854);t.exports="process"==i(n.process)},1036:(t,e,r)=>{var i=r(8113);t.exports=/web0s(?!.*chrome)/i.test(i)},8113:(t,e,r)=>{var i=r(5005);t.exports=i("navigator","userAgent")||""},7392:(t,e,r)=>{var i,n,a=r(7854),s=r(8113),o=a.process,h=a.Deno,u=o&&o.versions||h&&h.version,l=u&&u.v8;l&&(n=(i=l.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!n&&s&&(!(i=s.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/))&&(n=+i[1]),t.exports=n},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,e,r)=>{var i=r(7854),n=r(1236).f,a=r(8880),s=r(1320),o=r(3505),h=r(9920),u=r(4705);t.exports=function(t,e){var r,l,c,f,g,p=t.target,d=t.global,v=t.stat;if(r=d?i:v?i[p]||o(p,{}):(i[p]||{}).prototype)for(l in e){if(f=e[l],c=t.noTargetGet?(g=n(r,l))&&g.value:r[l],!u(d?l:p+(v?".":"#")+l,t.forced)&&void 0!==c){if(typeof f==typeof c)continue;h(f,c)}(t.sham||c&&c.sham)&&a(f,"sham",!0),s(r,l,f,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:(t,e,r)=>{"use strict";r(4916);var i=r(1702),n=r(1320),a=r(2261),s=r(7293),o=r(5112),h=r(8880),u=o("species"),l=RegExp.prototype;t.exports=function(t,e,r,c){var f=o(t),g=!s((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),p=g&&!s((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return e=!0,null},r[f](""),!e}));if(!g||!p||r){var d=i(/./[f]),v=e(f,""[t],(function(t,e,r,n,s){var o=i(t),h=e.exec;return h===a||h===l.exec?g&&!s?{done:!0,value:d(e,r,n)}:{done:!0,value:o(r,e,n)}:{done:!1}}));n(String.prototype,t,v[0]),n(l,f,v[1])}c&&h(l[f],"sham",!0)}},2104:(t,e,r)=>{var i=r(4374),n=Function.prototype,a=n.apply,s=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?s.bind(a):function(){return s.apply(a,arguments)})},9974:(t,e,r)=>{var i=r(1702),n=r(9662),a=r(4374),s=i(i.bind);t.exports=function(t,e){return n(t),void 0===e?t:a?s(t,e):function(){return t.apply(e,arguments)}}},4374:(t,e,r)=>{var i=r(7293);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:(t,e,r)=>{var i=r(4374),n=Function.prototype.call;t.exports=i?n.bind(n):function(){return n.apply(n,arguments)}},6530:(t,e,r)=>{var i=r(9781),n=r(2597),a=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,o=n(a,"name"),h=o&&"something"===function(){}.name,u=o&&(!i||i&&s(a,"name").configurable);t.exports={EXISTS:o,PROPER:h,CONFIGURABLE:u}},1702:(t,e,r)=>{var i=r(4374),n=Function.prototype,a=n.bind,s=n.call,o=i&&a.bind(s,s);t.exports=i?function(t){return t&&o(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},5005:(t,e,r)=>{var i=r(7854),n=r(614),a=function(t){return n(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(i[t]):i[t]&&i[t][e]}},1246:(t,e,r)=>{var i=r(648),n=r(8173),a=r(7497),s=r(5112)("iterator");t.exports=function(t){if(null!=t)return n(t,s)||n(t,"@@iterator")||a[i(t)]}},8554:(t,e,r)=>{var i=r(7854),n=r(6916),a=r(9662),s=r(9670),o=r(6330),h=r(1246),u=i.TypeError;t.exports=function(t,e){var r=arguments.length<2?h(t):e;if(a(r))return s(n(r,t));throw u(o(t)+" is not iterable")}},8173:(t,e,r)=>{var i=r(9662);t.exports=function(t,e){var r=t[e];return null==r?void 0:i(r)}},647:(t,e,r)=>{var i=r(1702),n=r(7908),a=Math.floor,s=i("".charAt),o=i("".replace),h=i("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,i,c,f){var g=r+t.length,p=i.length,d=l;return void 0!==c&&(c=n(c),d=u),o(f,d,(function(n,o){var u;switch(s(o,0)){case"$":return"$";case"&":return t;case"`":return h(e,0,r);case"'":return h(e,g);case"<":u=c[h(o,1,-1)];break;default:var l=+o;if(0===l)return n;if(l>p){var f=a(l/10);return 0===f?n:f<=p?void 0===i[f-1]?s(o,1):i[f-1]+s(o,1):n}u=i[l-1]}return void 0===u?"":u}))}},7854:(t,e,r)=>{var i=function(t){return t&&t.Math==Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},2597:(t,e,r)=>{var i=r(1702),n=r(7908),a=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(n(t),e)}},3501:t=>{t.exports={}},842:(t,e,r)=>{var i=r(7854);t.exports=function(t,e){var r=i.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))}},490:(t,e,r)=>{var i=r(5005);t.exports=i("document","documentElement")},4664:(t,e,r)=>{var i=r(9781),n=r(7293),a=r(317);t.exports=!i&&!n((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},8361:(t,e,r)=>{var i=r(7854),n=r(1702),a=r(7293),s=r(4326),o=i.Object,h=n("".split);t.exports=a((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?h(t,""):o(t)}:o},2788:(t,e,r)=>{var i=r(1702),n=r(614),a=r(5465),s=i(Function.toString);n(a.inspectSource)||(a.inspectSource=function(t){return s(t)}),t.exports=a.inspectSource},9909:(t,e,r)=>{var i,n,a,s=r(8536),o=r(7854),h=r(1702),u=r(111),l=r(8880),c=r(2597),f=r(5465),g=r(6200),p=r(3501),d="Object already initialized",v=o.TypeError,y=o.WeakMap;if(s||f.state){var m=f.state||(f.state=new y),x=h(m.get),b=h(m.has),w=h(m.set);i=function(t,e){if(b(m,t))throw new v(d);return e.facade=t,w(m,t,e),e},n=function(t){return x(m,t)||{}},a=function(t){return b(m,t)}}else{var S=g("state");p[S]=!0,i=function(t,e){if(c(t,S))throw new v(d);return e.facade=t,l(t,S,e),e},n=function(t){return c(t,S)?t[S]:{}},a=function(t){return c(t,S)}}t.exports={set:i,get:n,has:a,enforce:function(t){return a(t)?n(t):i(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=n(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return r}}}},7659:(t,e,r)=>{var i=r(5112),n=r(7497),a=i("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||s[a]===t)}},1349:(t,e,r)=>{var i=r(4326);t.exports=Array.isArray||function(t){return"Array"==i(t)}},614:t=>{t.exports=function(t){return"function"==typeof t}},4411:(t,e,r)=>{var i=r(1702),n=r(7293),a=r(614),s=r(648),o=r(5005),h=r(2788),u=function(){},l=[],c=o("Reflect","construct"),f=/^\s*(?:class|function)\b/,g=i(f.exec),p=!f.exec(u),d=function(t){if(!a(t))return!1;try{return c(u,l,t),!0}catch(t){return!1}},v=function(t){if(!a(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!g(f,h(t))}catch(t){return!0}};v.sham=!0,t.exports=!c||n((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?v:d},4705:(t,e,r)=>{var i=r(7293),n=r(614),a=/#|\.prototype\./,s=function(t,e){var r=h[o(t)];return r==l||r!=u&&(n(e)?i(e):!!e)},o=s.normalize=function(t){return String(t).replace(a,".").toLowerCase()},h=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},111:(t,e,r)=>{var i=r(614);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},1913:t=>{t.exports=!1},7850:(t,e,r)=>{var i=r(111),n=r(4326),a=r(5112)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==n(t))}},2190:(t,e,r)=>{var i=r(7854),n=r(5005),a=r(614),s=r(7976),o=r(3307),h=i.Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return a(e)&&s(e.prototype,h(t))}},408:(t,e,r)=>{var i=r(7854),n=r(9974),a=r(6916),s=r(9670),o=r(6330),h=r(7659),u=r(6244),l=r(7976),c=r(8554),f=r(1246),g=r(9212),p=i.TypeError,d=function(t,e){this.stopped=t,this.result=e},v=d.prototype;t.exports=function(t,e,r){var i,y,m,x,b,w,S,T=r&&r.that,A=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_ITERATOR),C=!(!r||!r.INTERRUPTED),P=n(e,T),E=function(t){return i&&g(i,"normal",t),new d(!0,t)},M=function(t){return A?(s(t),C?P(t[0],t[1],E):P(t[0],t[1])):C?P(t,E):P(t)};if(O)i=t;else{if(!(y=f(t)))throw p(o(t)+" is not iterable");if(h(y)){for(m=0,x=u(t);x>m;m++)if((b=M(t[m]))&&l(v,b))return b;return new d(!1)}i=c(t,y)}for(w=i.next;!(S=a(w,i)).done;){try{b=M(S.value)}catch(t){g(i,"throw",t)}if("object"==typeof b&&b&&l(v,b))return b}return new d(!1)}},9212:(t,e,r)=>{var i=r(6916),n=r(9670),a=r(8173);t.exports=function(t,e,r){var s,o;n(t);try{if(!(s=a(t,"return"))){if("throw"===e)throw r;return r}s=i(s,t)}catch(t){o=!0,s=t}if("throw"===e)throw r;if(o)throw s;return n(s),r}},3383:(t,e,r)=>{"use strict";var i,n,a,s=r(7293),o=r(614),h=r(30),u=r(9518),l=r(1320),c=r(5112),f=r(1913),g=c("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(n=u(u(a)))!==Object.prototype&&(i=n):p=!0),null==i||s((function(){var t={};return i[g].call(t)!==t}))?i={}:f&&(i=h(i)),o(i[g])||l(i,g,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},7497:t=>{t.exports={}},6244:(t,e,r)=>{var i=r(7466);t.exports=function(t){return i(t.length)}},5948:(t,e,r)=>{var i,n,a,s,o,h,u,l,c=r(7854),f=r(9974),g=r(1236).f,p=r(261).set,d=r(6833),v=r(1528),y=r(1036),m=r(5268),x=c.MutationObserver||c.WebKitMutationObserver,b=c.document,w=c.process,S=c.Promise,T=g(c,"queueMicrotask"),A=T&&T.value;A||(i=function(){var t,e;for(m&&(t=w.domain)&&t.exit();n;){e=n.fn,n=n.next;try{e()}catch(t){throw n?s():a=void 0,t}}a=void 0,t&&t.enter()},d||m||y||!x||!b?!v&&S&&S.resolve?((u=S.resolve(void 0)).constructor=S,l=f(u.then,u),s=function(){l(i)}):m?s=function(){w.nextTick(i)}:(p=f(p,c),s=function(){p(i)}):(o=!0,h=b.createTextNode(""),new x(i).observe(h,{characterData:!0}),s=function(){h.data=o=!o})),t.exports=A||function(t){var e={fn:t,next:void 0};a&&(a.next=e),n||(n=e,s()),a=e}},3366:(t,e,r)=>{var i=r(7854);t.exports=i.Promise},133:(t,e,r)=>{var i=r(7392),n=r(7293);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},8536:(t,e,r)=>{var i=r(7854),n=r(614),a=r(2788),s=i.WeakMap;t.exports=n(s)&&/native code/.test(a(s))},8523:(t,e,r)=>{"use strict";var i=r(9662),n=function(t){var e,r;this.promise=new t((function(t,i){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=i})),this.resolve=i(e),this.reject=i(r)};t.exports.f=function(t){return new n(t)}},3929:(t,e,r)=>{var i=r(7854),n=r(7850),a=i.TypeError;t.exports=function(t){if(n(t))throw a("The method doesn't accept regular expressions");return t}},30:(t,e,r)=>{var i,n=r(9670),a=r(6048),s=r(748),o=r(3501),h=r(490),u=r(317),l=r(6200),c=l("IE_PROTO"),f=function(){},g=function(t){return"<script>"+t+"</"+"script>"},p=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e;d="undefined"!=typeof document?document.domain&&i?p(i):((e=u("iframe")).style.display="none",h.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F):p(i);for(var r=s.length;r--;)delete d.prototype[s[r]];return d()};o[c]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(f.prototype=n(t),r=new f,f.prototype=null,r[c]=t):r=d(),void 0===e?r:a.f(r,e)}},6048:(t,e,r)=>{var i=r(9781),n=r(3353),a=r(3070),s=r(9670),o=r(5656),h=r(1956);e.f=i&&!n?Object.defineProperties:function(t,e){s(t);for(var r,i=o(e),n=h(e),u=n.length,l=0;u>l;)a.f(t,r=n[l++],i[r]);return t}},3070:(t,e,r)=>{var i=r(7854),n=r(9781),a=r(4664),s=r(3353),o=r(9670),h=r(4948),u=i.TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",g="configurable",p="writable";e.f=n?s?function(t,e,r){if(o(t),e=h(e),o(r),"function"==typeof t&&"prototype"===e&&"value"in r&&p in r&&!r.writable){var i=c(t,e);i&&i.writable&&(t[e]=r.value,r={configurable:g in r?r.configurable:i.configurable,enumerable:f in r?r.enumerable:i.enumerable,writable:!1})}return l(t,e,r)}:l:function(t,e,r){if(o(t),e=h(e),o(r),a)try{return l(t,e,r)}catch(t){}if("get"in r||"set"in r)throw u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},1236:(t,e,r)=>{var i=r(9781),n=r(6916),a=r(5296),s=r(9114),o=r(5656),h=r(4948),u=r(2597),l=r(4664),c=Object.getOwnPropertyDescriptor;e.f=i?c:function(t,e){if(t=o(t),e=h(e),l)try{return c(t,e)}catch(t){}if(u(t,e))return s(!n(a.f,t,e),t[e])}},8006:(t,e,r)=>{var i=r(6324),n=r(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,n)}},5181:(t,e)=>{e.f=Object.getOwnPropertySymbols},9518:(t,e,r)=>{var i=r(7854),n=r(2597),a=r(614),s=r(7908),o=r(6200),h=r(8544),u=o("IE_PROTO"),l=i.Object,c=l.prototype;t.exports=h?l.getPrototypeOf:function(t){var e=s(t);if(n(e,u))return e[u];var r=e.constructor;return a(r)&&e instanceof r?r.prototype:e instanceof l?c:null}},7976:(t,e,r)=>{var i=r(1702);t.exports=i({}.isPrototypeOf)},6324:(t,e,r)=>{var i=r(1702),n=r(2597),a=r(5656),s=r(1318).indexOf,o=r(3501),h=i([].push);t.exports=function(t,e){var r,i=a(t),u=0,l=[];for(r in i)!n(o,r)&&n(i,r)&&h(l,r);for(;e.length>u;)n(i,r=e[u++])&&(~s(l,r)||h(l,r));return l}},1956:(t,e,r)=>{var i=r(6324),n=r(748);t.exports=Object.keys||function(t){return i(t,n)}},5296:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,n=i&&!r.call({1:2},1);e.f=n?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},7674:(t,e,r)=>{var i=r(1702),n=r(9670),a=r(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return n(r),a(i),e?t(r,i):r.__proto__=i,r}}():void 0)},2140:(t,e,r)=>{var i=r(7854),n=r(6916),a=r(614),s=r(111),o=i.TypeError;t.exports=function(t,e){var r,i;if("string"===e&&a(r=t.toString)&&!s(i=n(r,t)))return i;if(a(r=t.valueOf)&&!s(i=n(r,t)))return i;if("string"!==e&&a(r=t.toString)&&!s(i=n(r,t)))return i;throw o("Can't convert object to primitive value")}},3887:(t,e,r)=>{var i=r(5005),n=r(1702),a=r(8006),s=r(5181),o=r(9670),h=n([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=a.f(o(t)),r=s.f;return r?h(e,r(t)):e}},2534:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9478:(t,e,r)=>{var i=r(9670),n=r(111),a=r(8523);t.exports=function(t,e){if(i(t),n(e)&&e.constructor===t)return e;var r=a.f(t);return(0,r.resolve)(e),r.promise}},8572:t=>{var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},2248:(t,e,r)=>{var i=r(1320);t.exports=function(t,e,r){for(var n in e)i(t,n,e[n],r);return t}},1320:(t,e,r)=>{var i=r(7854),n=r(614),a=r(2597),s=r(8880),o=r(3505),h=r(2788),u=r(9909),l=r(6530).CONFIGURABLE,c=u.get,f=u.enforce,g=String(String).split("String");(t.exports=function(t,e,r,h){var u,c=!!h&&!!h.unsafe,p=!!h&&!!h.enumerable,d=!!h&&!!h.noTargetGet,v=h&&void 0!==h.name?h.name:e;n(r)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!a(r,"name")||l&&r.name!==v)&&s(r,"name",v),(u=f(r)).source||(u.source=g.join("string"==typeof v?v:""))),t!==i?(c?!d&&t[e]&&(p=!0):delete t[e],p?t[e]=r:s(t,e,r)):p?t[e]=r:o(e,r)})(Function.prototype,"toString",(function(){return n(this)&&c(this).source||h(this)}))},7651:(t,e,r)=>{var i=r(7854),n=r(6916),a=r(9670),s=r(614),o=r(4326),h=r(2261),u=i.TypeError;t.exports=function(t,e){var r=t.exec;if(s(r)){var i=n(r,t,e);return null!==i&&a(i),i}if("RegExp"===o(t))return n(h,t,e);throw u("RegExp#exec called on incompatible receiver")}},2261:(t,e,r)=>{"use strict";var i,n,a=r(6916),s=r(1702),o=r(1340),h=r(7066),u=r(2999),l=r(2309),c=r(30),f=r(9909).get,g=r(9441),p=r(7168),d=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,m=s("".charAt),x=s("".indexOf),b=s("".replace),w=s("".slice),S=(n=/b*/g,a(v,i=/a/,"a"),a(v,n,"a"),0!==i.lastIndex||0!==n.lastIndex),T=u.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(S||A||T||g||p)&&(y=function(t){var e,r,i,n,s,u,l,g=this,p=f(g),O=o(t),C=p.raw;if(C)return C.lastIndex=g.lastIndex,e=a(y,C,O),g.lastIndex=C.lastIndex,e;var P=p.groups,E=T&&g.sticky,M=a(h,g),N=g.source,R=0,_=O;if(E&&(M=b(M,"y",""),-1===x(M,"g")&&(M+="g"),_=w(O,g.lastIndex),g.lastIndex>0&&(!g.multiline||g.multiline&&"\n"!==m(O,g.lastIndex-1))&&(N="(?: "+N+")",_=" "+_,R++),r=new RegExp("^(?:"+N+")",M)),A&&(r=new RegExp("^"+N+"$(?!\\s)",M)),S&&(i=g.lastIndex),n=a(v,E?r:g,_),E?n?(n.input=w(n.input,R),n[0]=w(n[0],R),n.index=g.lastIndex,g.lastIndex+=n[0].length):g.lastIndex=0:S&&n&&(g.lastIndex=g.global?n.index+n[0].length:i),A&&n&&n.length>1&&a(d,n[0],r,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&P)for(n.groups=u=c(null),s=0;s<P.length;s++)u[(l=P[s])[0]]=n[l[1]];return n}),t.exports=y},7066:(t,e,r)=>{"use strict";var i=r(9670);t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},2999:(t,e,r)=>{var i=r(7293),n=r(7854).RegExp,a=i((function(){var t=n("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),s=a||i((function(){return!n("a","y").sticky})),o=a||i((function(){var t=n("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:o,MISSED_STICKY:s,UNSUPPORTED_Y:a}},9441:(t,e,r)=>{var i=r(7293),n=r(7854).RegExp;t.exports=i((function(){var t=n(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:(t,e,r)=>{var i=r(7293),n=r(7854).RegExp;t.exports=i((function(){var t=n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:(t,e,r)=>{var i=r(7854).TypeError;t.exports=function(t){if(null==t)throw i("Can't call method on "+t);return t}},3505:(t,e,r)=>{var i=r(7854),n=Object.defineProperty;t.exports=function(t,e){try{n(i,t,{value:e,configurable:!0,writable:!0})}catch(r){i[t]=e}return e}},6340:(t,e,r)=>{"use strict";var i=r(5005),n=r(3070),a=r(5112),s=r(9781),o=a("species");t.exports=function(t){var e=i(t),r=n.f;s&&e&&!e[o]&&r(e,o,{configurable:!0,get:function(){return this}})}},8003:(t,e,r)=>{var i=r(3070).f,n=r(2597),a=r(5112)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!n(t,a)&&i(t,a,{configurable:!0,value:e})}},6200:(t,e,r)=>{var i=r(2309),n=r(9711),a=i("keys");t.exports=function(t){return a[t]||(a[t]=n(t))}},5465:(t,e,r)=>{var i=r(7854),n=r(3505),a="__core-js_shared__",s=i[a]||n(a,{});t.exports=s},2309:(t,e,r)=>{var i=r(1913),n=r(5465);(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:i?"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"})},6707:(t,e,r)=>{var i=r(9670),n=r(9483),a=r(5112)("species");t.exports=function(t,e){var r,s=i(t).constructor;return void 0===s||null==(r=i(s)[a])?e:n(r)}},8710:(t,e,r)=>{var i=r(1702),n=r(9303),a=r(1340),s=r(4488),o=i("".charAt),h=i("".charCodeAt),u=i("".slice),l=function(t){return function(e,r){var i,l,c=a(s(e)),f=n(r),g=c.length;return f<0||f>=g?t?"":void 0:(i=h(c,f))<55296||i>56319||f+1===g||(l=h(c,f+1))<56320||l>57343?t?o(c,f):i:t?u(c,f,f+2):l-56320+(i-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},6091:(t,e,r)=>{var i=r(6530).PROPER,n=r(7293),a=r(1361);t.exports=function(t){return n((function(){return!!a[t]()||"
"!=="
"[t]()||i&&a[t].name!==t}))}},3111:(t,e,r)=>{var i=r(1702),n=r(4488),a=r(1340),s=r(1361),o=i("".replace),h="["+s+"]",u=RegExp("^"+h+h+"*"),l=RegExp(h+h+"*$"),c=function(t){return function(e){var r=a(n(e));return 1&t&&(r=o(r,u,"")),2&t&&(r=o(r,l,"")),r}};t.exports={start:c(1),end:c(2),trim:c(3)}},261:(t,e,r)=>{var i,n,a,s,o=r(7854),h=r(2104),u=r(9974),l=r(614),c=r(2597),f=r(7293),g=r(490),p=r(206),d=r(317),v=r(8053),y=r(6833),m=r(5268),x=o.setImmediate,b=o.clearImmediate,w=o.process,S=o.Dispatch,T=o.Function,A=o.MessageChannel,O=o.String,C=0,P={},E="onreadystatechange";try{i=o.location}catch(t){}var M=function(t){if(c(P,t)){var e=P[t];delete P[t],e()}},N=function(t){return function(){M(t)}},R=function(t){M(t.data)},_=function(t){o.postMessage(O(t),i.protocol+"//"+i.host)};x&&b||(x=function(t){v(arguments.length,1);var e=l(t)?t:T(t),r=p(arguments,1);return P[++C]=function(){h(e,void 0,r)},n(C),C},b=function(t){delete P[t]},m?n=function(t){w.nextTick(N(t))}:S&&S.now?n=function(t){S.now(N(t))}:A&&!y?(s=(a=new A).port2,a.port1.onmessage=R,n=u(s.postMessage,s)):o.addEventListener&&l(o.postMessage)&&!o.importScripts&&i&&"file:"!==i.protocol&&!f(_)?(n=_,o.addEventListener("message",R,!1)):n=E in d("script")?function(t){g.appendChild(d("script")).onreadystatechange=function(){g.removeChild(this),M(t)}}:function(t){setTimeout(N(t),0)}),t.exports={set:x,clear:b}},1400:(t,e,r)=>{var i=r(9303),n=Math.max,a=Math.min;t.exports=function(t,e){var r=i(t);return r<0?n(r+e,0):a(r,e)}},5656:(t,e,r)=>{var i=r(8361),n=r(4488);t.exports=function(t){return i(n(t))}},9303:t=>{var e=Math.ceil,r=Math.floor;t.exports=function(t){var i=+t;return i!=i||0===i?0:(i>0?r:e)(i)}},7466:(t,e,r)=>{var i=r(9303),n=Math.min;t.exports=function(t){return t>0?n(i(t),9007199254740991):0}},7908:(t,e,r)=>{var i=r(7854),n=r(4488),a=i.Object;t.exports=function(t){return a(n(t))}},7593:(t,e,r)=>{var i=r(7854),n=r(6916),a=r(111),s=r(2190),o=r(8173),h=r(2140),u=r(5112),l=i.TypeError,c=u("toPrimitive");t.exports=function(t,e){if(!a(t)||s(t))return t;var r,i=o(t,c);if(i){if(void 0===e&&(e="default"),r=n(i,t,e),!a(r)||s(r))return r;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),h(t,e)}},4948:(t,e,r)=>{var i=r(7593),n=r(2190);t.exports=function(t){var e=i(t,"string");return n(e)?e:e+""}},1694:(t,e,r)=>{var i={};i[r(5112)("toStringTag")]="z",t.exports="[object z]"===String(i)},1340:(t,e,r)=>{var i=r(7854),n=r(648),a=i.String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return a(t)}},6330:(t,e,r)=>{var i=r(7854).String;t.exports=function(t){try{return i(t)}catch(t){return"Object"}}},9711:(t,e,r)=>{var i=r(1702),n=0,a=Math.random(),s=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++n+a,36)}},3307:(t,e,r)=>{var i=r(133);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(t,e,r)=>{var i=r(9781),n=r(7293);t.exports=i&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:(t,e,r)=>{var i=r(7854).TypeError;t.exports=function(t,e){if(t<e)throw i("Not enough arguments");return t}},5112:(t,e,r)=>{var i=r(7854),n=r(2309),a=r(2597),s=r(9711),o=r(133),h=r(3307),u=n("wks"),l=i.Symbol,c=l&&l.for,f=h?l:l&&l.withoutSetter||s;t.exports=function(t){if(!a(u,t)||!o&&"string"!=typeof u[t]){var e="Symbol."+t;o&&a(l,t)?u[t]=l[t]:u[t]=h&&c?c(e):f(e)}return u[t]}},1361:t=>{t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},2772:(t,e,r)=>{"use strict";var i=r(2109),n=r(1702),a=r(1318).indexOf,s=r(9341),o=n([].indexOf),h=!!o&&1/o([1],1,-0)<0,u=s("indexOf");i({target:"Array",proto:!0,forced:h||!u},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return h?o(this,t,e)||0:a(this,t,e)}})},6992:(t,e,r)=>{"use strict";var i=r(5656),n=r(1223),a=r(7497),s=r(9909),o=r(3070).f,h=r(654),u=r(1913),l=r(9781),c="Array Iterator",f=s.set,g=s.getterFor(c);t.exports=h(Array,"Array",(function(t,e){f(this,{type:c,target:i(t),index:0,kind:e})}),(function(){var t=g(this),e=t.target,r=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:i,done:!1}:"values"==r?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}}),"values");var p=a.Arguments=a.Array;if(n("keys"),n("values"),n("entries"),!u&&l&&"values"!==p.name)try{o(p,"name",{value:"values"})}catch(t){}},5827:(t,e,r)=>{"use strict";var i=r(2109),n=r(3671).left,a=r(9341),s=r(7392),o=r(5268);i({target:"Array",proto:!0,forced:!a("reduce")||!o&&s>79&&s<83},{reduce:function(t){var e=arguments.length;return n(this,t,e,e>1?arguments[1]:void 0)}})},5069:(t,e,r)=>{"use strict";var i=r(2109),n=r(1702),a=r(1349),s=n([].reverse),o=[1,2];i({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),s(this)}})},8674:(t,e,r)=>{"use strict";var i,n,a,s,o=r(2109),h=r(1913),u=r(7854),l=r(5005),c=r(6916),f=r(3366),g=r(1320),p=r(2248),d=r(7674),v=r(8003),y=r(6340),m=r(9662),x=r(614),b=r(111),w=r(5787),S=r(2788),T=r(408),A=r(7072),O=r(6707),C=r(261).set,P=r(5948),E=r(9478),M=r(842),N=r(8523),R=r(2534),_=r(8572),V=r(9909),k=r(4705),I=r(5112),L=r(7871),D=r(5268),j=r(7392),z=I("species"),B="Promise",F=V.getterFor(B),H=V.set,U=V.getterFor(B),X=f&&f.prototype,$=f,Y=X,q=u.TypeError,W=u.document,G=u.process,Q=N.f,Z=Q,K=!!(W&&W.createEvent&&u.dispatchEvent),J=x(u.PromiseRejectionEvent),tt="unhandledrejection",et=!1,rt=k(B,(function(){var t=S($),e=t!==String($);if(!e&&66===j)return!0;if(h&&!Y.finally)return!0;if(j>=51&&/native code/.test(t))return!1;var r=new $((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))};return(r.constructor={})[z]=i,!(et=r.then((function(){}))instanceof i)||!e&&L&&!J})),it=rt||!A((function(t){$.all(t).catch((function(){}))})),nt=function(t){var e;return!(!b(t)||!x(e=t.then))&&e},at=function(t,e){var r,i,n,a=e.value,s=1==e.state,o=s?t.ok:t.fail,h=t.resolve,u=t.reject,l=t.domain;try{o?(s||(2===e.rejection&<(e),e.rejection=1),!0===o?r=a:(l&&l.enter(),r=o(a),l&&(l.exit(),n=!0)),r===t.promise?u(q("Promise-chain cycle")):(i=nt(r))?c(i,r,h,u):h(r)):u(a)}catch(t){l&&!n&&l.exit(),u(t)}},st=function(t,e){t.notified||(t.notified=!0,P((function(){for(var r,i=t.reactions;r=i.get();)at(r,t);t.notified=!1,e&&!t.rejection&&ht(t)})))},ot=function(t,e,r){var i,n;K?((i=W.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),u.dispatchEvent(i)):i={promise:e,reason:r},!J&&(n=u["on"+t])?n(i):t===tt&&M("Unhandled promise rejection",r)},ht=function(t){c(C,u,(function(){var e,r=t.facade,i=t.value;if(ut(t)&&(e=R((function(){D?G.emit("unhandledRejection",i,r):ot(tt,r,i)})),t.rejection=D||ut(t)?2:1,e.error))throw e.value}))},ut=function(t){return 1!==t.rejection&&!t.parent},lt=function(t){c(C,u,(function(){var e=t.facade;D?G.emit("rejectionHandled",e):ot("rejectionhandled",e,t.value)}))},ct=function(t,e,r){return function(i){t(e,i,r)}},ft=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,st(t,!0))},gt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw q("Promise can't be resolved itself");var i=nt(e);i?P((function(){var r={done:!1};try{c(i,e,ct(gt,r,t),ct(ft,r,t))}catch(e){ft(r,e,t)}})):(t.value=e,t.state=1,st(t,!1))}catch(e){ft({done:!1},e,t)}}};if(rt&&(Y=($=function(t){w(this,Y),m(t),c(i,this);var e=F(this);try{t(ct(gt,e),ct(ft,e))}catch(t){ft(e,t)}}).prototype,(i=function(t){H(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:void 0})}).prototype=p(Y,{then:function(t,e){var r=U(this),i=Q(O(this,$));return r.parent=!0,i.ok=!x(t)||t,i.fail=x(e)&&e,i.domain=D?G.domain:void 0,0==r.state?r.reactions.add(i):P((function(){at(i,r)})),i.promise},catch:function(t){return this.then(void 0,t)}}),n=function(){var t=new i,e=F(t);this.promise=t,this.resolve=ct(gt,e),this.reject=ct(ft,e)},N.f=Q=function(t){return t===$||t===a?new n(t):Z(t)},!h&&x(f)&&X!==Object.prototype)){s=X.then,et||(g(X,"then",(function(t,e){var r=this;return new $((function(t,e){c(s,r,t,e)})).then(t,e)}),{unsafe:!0}),g(X,"catch",Y.catch,{unsafe:!0}));try{delete X.constructor}catch(t){}d&&d(X,Y)}o({global:!0,wrap:!0,forced:rt},{Promise:$}),v($,B,!1,!0),y(B),a=l(B),o({target:B,stat:!0,forced:rt},{reject:function(t){var e=Q(this);return c(e.reject,void 0,t),e.promise}}),o({target:B,stat:!0,forced:h||rt},{resolve:function(t){return E(h&&this===a?$:this,t)}}),o({target:B,stat:!0,forced:it},{all:function(t){var e=this,r=Q(e),i=r.resolve,n=r.reject,a=R((function(){var r=m(e.resolve),a=[],s=0,o=1;T(t,(function(t){var h=s++,u=!1;o++,c(r,e,t).then((function(t){u||(u=!0,a[h]=t,--o||i(a))}),n)})),--o||i(a)}));return a.error&&n(a.value),r.promise},race:function(t){var e=this,r=Q(e),i=r.reject,n=R((function(){var n=m(e.resolve);T(t,(function(t){c(n,e,t).then(r.resolve,i)}))}));return n.error&&i(n.value),r.promise}})},4916:(t,e,r)=>{"use strict";var i=r(2109),n=r(2261);i({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},9714:(t,e,r)=>{"use strict";var i=r(1702),n=r(6530).PROPER,a=r(1320),s=r(9670),o=r(7976),h=r(1340),u=r(7293),l=r(7066),c="toString",f=RegExp.prototype,g=f.toString,p=i(l),d=u((function(){return"/a/b"!=g.call({source:"a",flags:"b"})})),v=n&&g.name!=c;(d||v)&&a(RegExp.prototype,c,(function(){var t=s(this),e=h(t.source),r=t.flags;return"/"+e+"/"+h(void 0===r&&o(f,t)&&!("flags"in f)?p(t):r)}),{unsafe:!0})},7852:(t,e,r)=>{"use strict";var i,n=r(2109),a=r(1702),s=r(1236).f,o=r(7466),h=r(1340),u=r(3929),l=r(4488),c=r(4964),f=r(1913),g=a("".endsWith),p=a("".slice),d=Math.min,v=c("endsWith");n({target:"String",proto:!0,forced:!!(f||v||(i=s(String.prototype,"endsWith"),!i||i.writable))&&!v},{endsWith:function(t){var e=h(l(this));u(t);var r=arguments.length>1?arguments[1]:void 0,i=e.length,n=void 0===r?i:d(o(r),i),a=h(t);return g?g(e,a,n):p(e,n-a.length,n)===a}})},2023:(t,e,r)=>{"use strict";var i=r(2109),n=r(1702),a=r(3929),s=r(4488),o=r(1340),h=r(4964),u=n("".indexOf);i({target:"String",proto:!0,forced:!h("includes")},{includes:function(t){return!!~u(o(s(this)),o(a(t)),arguments.length>1?arguments[1]:void 0)}})},4723:(t,e,r)=>{"use strict";var i=r(6916),n=r(7007),a=r(9670),s=r(7466),o=r(1340),h=r(4488),u=r(8173),l=r(1530),c=r(7651);n("match",(function(t,e,r){return[function(e){var r=h(this),n=null==e?void 0:u(e,t);return n?i(n,e,r):new RegExp(e)[t](o(r))},function(t){var i=a(this),n=o(t),h=r(e,i,n);if(h.done)return h.value;if(!i.global)return c(i,n);var u=i.unicode;i.lastIndex=0;for(var f,g=[],p=0;null!==(f=c(i,n));){var d=o(f[0]);g[p]=d,""===d&&(i.lastIndex=l(n,s(i.lastIndex),u)),p++}return 0===p?null:g}]}))},5306:(t,e,r)=>{"use strict";var i=r(2104),n=r(6916),a=r(1702),s=r(7007),o=r(7293),h=r(9670),u=r(614),l=r(9303),c=r(7466),f=r(1340),g=r(4488),p=r(1530),d=r(8173),v=r(647),y=r(7651),m=r(5112)("replace"),x=Math.max,b=Math.min,w=a([].concat),S=a([].push),T=a("".indexOf),A=a("".slice),O="$0"==="a".replace(/./,"$0"),C=!!/./[m]&&""===/./[m]("a","$0");s("replace",(function(t,e,r){var a=C?"$":"$0";return[function(t,r){var i=g(this),a=null==t?void 0:d(t,m);return a?n(a,t,i,r):n(e,f(i),t,r)},function(t,n){var s=h(this),o=f(t);if("string"==typeof n&&-1===T(n,a)&&-1===T(n,"$<")){var g=r(e,s,o,n);if(g.done)return g.value}var d=u(n);d||(n=f(n));var m=s.global;if(m){var O=s.unicode;s.lastIndex=0}for(var C=[];;){var P=y(s,o);if(null===P)break;if(S(C,P),!m)break;""===f(P[0])&&(s.lastIndex=p(o,c(s.lastIndex),O))}for(var E,M="",N=0,R=0;R<C.length;R++){for(var _=f((P=C[R])[0]),V=x(b(l(P.index),o.length),0),k=[],I=1;I<P.length;I++)S(k,void 0===(E=P[I])?E:String(E));var L=P.groups;if(d){var D=w([_],k,V,o);void 0!==L&&S(D,L);var j=f(i(n,void 0,D))}else j=v(_,o,V,k,L,n);V>=N&&(M+=A(o,N,V)+j,N=V+_.length)}return M+A(o,N)}]}),!!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!O||C)},3123:(t,e,r)=>{"use strict";var i=r(2104),n=r(6916),a=r(1702),s=r(7007),o=r(7850),h=r(9670),u=r(4488),l=r(6707),c=r(1530),f=r(7466),g=r(1340),p=r(8173),d=r(1589),v=r(7651),y=r(2261),m=r(2999),x=r(7293),b=m.UNSUPPORTED_Y,w=4294967295,S=Math.min,T=[].push,A=a(/./.exec),O=a(T),C=a("".slice),P=!x((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));s("split",(function(t,e,r){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var a=g(u(this)),s=void 0===r?w:r>>>0;if(0===s)return[];if(void 0===t)return[a];if(!o(t))return n(e,a,t,s);for(var h,l,c,f=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,m=new RegExp(t.source,p+"g");(h=n(y,m,a))&&!((l=m.lastIndex)>v&&(O(f,C(a,v,h.index)),h.length>1&&h.index<a.length&&i(T,f,d(h,1)),c=h[0].length,v=l,f.length>=s));)m.lastIndex===h.index&&m.lastIndex++;return v===a.length?!c&&A(m,"")||O(f,""):O(f,C(a,v)),f.length>s?d(f,0,s):f}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:n(e,this,t,r)}:e,[function(e,r){var i=u(this),s=null==e?void 0:p(e,t);return s?n(s,e,i,r):n(a,g(i),e,r)},function(t,i){var n=h(this),s=g(t),o=r(a,n,s,i,a!==e);if(o.done)return o.value;var u=l(n,RegExp),p=n.unicode,d=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(b?"g":"y"),y=new u(b?"^(?:"+n.source+")":n,d),m=void 0===i?w:i>>>0;if(0===m)return[];if(0===s.length)return null===v(y,s)?[s]:[];for(var x=0,T=0,A=[];T<s.length;){y.lastIndex=b?0:T;var P,E=v(y,b?C(s,T):s);if(null===E||(P=S(f(y.lastIndex+(b?T:0)),s.length))===x)T=c(s,T,p);else{if(O(A,C(s,x,T)),A.length===m)return A;for(var M=1;M<=E.length-1;M++)if(O(A,E[M]),A.length===m)return A;T=x=P}}return O(A,C(s,x)),A}]}),!P,b)},3157:(t,e,r)=>{"use strict";var i,n=r(2109),a=r(1702),s=r(1236).f,o=r(7466),h=r(1340),u=r(3929),l=r(4488),c=r(4964),f=r(1913),g=a("".startsWith),p=a("".slice),d=Math.min,v=c("startsWith");n({target:"String",proto:!0,forced:!!(f||v||(i=s(String.prototype,"startsWith"),!i||i.writable))&&!v},{startsWith:function(t){var e=h(l(this));u(t);var r=o(d(arguments.length>1?arguments[1]:void 0,e.length)),i=h(t);return g?g(e,i,r):p(e,r,r+i.length)===i}})},3210:(t,e,r)=>{"use strict";var i=r(2109),n=r(3111).trim;i({target:"String",proto:!0,forced:r(6091)("trim")},{trim:function(){return n(this)}})},3948:(t,e,r)=>{var i=r(7854),n=r(8324),a=r(8509),s=r(6992),o=r(8880),h=r(5112),u=h("iterator"),l=h("toStringTag"),c=s.values,f=function(t,e){if(t){if(t[u]!==c)try{o(t,u,c)}catch(e){t[u]=c}if(t[l]||o(t,l,e),n[e])for(var r in s)if(t[r]!==s[r])try{o(t,r,s[r])}catch(e){t[r]=s[r]}}};for(var g in n)f(i[g]&&i[g].prototype,g);f(a,"DOMTokenList")},75:function(t){(function(){var e,r,i,n,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(t.exports=function(){return(e()-a)/1e6},r=process.hrtime,n=(e=function(){var t;return 1e9*(t=r())[0]+t[1]})(),s=1e9*process.uptime(),a=n-s):Date.now?(t.exports=function(){return Date.now()-i},i=Date.now()):(t.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)},4087:(t,e,r)=>{for(var i=r(75),n="undefined"==typeof window?r.g:window,a=["moz","webkit"],s="AnimationFrame",o=n["request"+s],h=n["cancel"+s]||n["cancelRequest"+s],u=0;!o&&u<a.length;u++)o=n[a[u]+"Request"+s],h=n[a[u]+"Cancel"+s]||n[a[u]+"CancelRequest"+s];if(!o||!h){var l=0,c=0,f=[];o=function(t){if(0===f.length){var e=i(),r=Math.max(0,16.666666666666668-(e-l));l=r+e,setTimeout((function(){var t=f.slice(0);f.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(l)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return f.push({handle:++c,callback:t,cancelled:!1}),c},h=function(t){for(var e=0;e<f.length;e++)f[e].handle===t&&(f[e].cancelled=!0)}}t.exports=function(t){return o.call(n,t)},t.exports.cancel=function(){h.apply(n,arguments)},t.exports.polyfill=function(t){t||(t=n),t.requestAnimationFrame=o,t.cancelAnimationFrame=h}},6131:t=>{t.exports=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i=0;i<r.length;i++){var n=r[i].re,a=r[i].process,s=n.exec(t);if(s){var o=a(s);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,i=0;i<r.length;i++)for(var n=r[i].example,a=0;a<n.length;a++)t[t.length]=n[a];for(var s in e)t[t.length]=s;var o=document.createElement("ul");o.setAttribute("id","rgbcolor-examples");for(i=0;i<t.length;i++)try{var h=document.createElement("li"),u=new RGBColor(t[i]),l=document.createElement("div");l.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),l.appendChild(document.createTextNode("test"));var c=document.createTextNode(" "+t[i]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(l),h.appendChild(c),o.appendChild(h)}catch(t){}return o}}}},e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var a=e[i]={exports:{}};return t[i].call(a.exports,a,a.exports,r),a.exports}r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var i={};return(()=>{"use strict";r.d(i,{default:()=>pe});r(8674);function t(t,e,r,i,n,a,s){try{var o=t[a](s),h=o.value}catch(t){return void r(t)}o.done?e(h):Promise.resolve(h).then(i,n)}function e(e){return function(){var r=this,i=arguments;return new Promise((function(n,a){var s=e.apply(r,i);function o(e){t(s,n,a,o,h,"next",e)}function h(e){t(s,n,a,o,h,"throw",e)}o(void 0)}))}}r(4723),r(5306),r(3157),r(6992),r(3948);function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r(5827),r(7852),r(3123);var a=r(4087),s=(r(3210),r(6131)),o=(r(2772),r(2023),r(5069),function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)});function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function u(t,e){var r=t[0],i=t[1];return[r*Math.cos(e)-i*Math.sin(e),r*Math.sin(e)+i*Math.cos(e)]}function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var c=Math.PI;function f(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var i=t.rX,n=t.rY,a=t.x,s=t.y;i=Math.abs(t.rX),n=Math.abs(t.rY);var o=u([(e-a)/2,(r-s)/2],-t.xRot/180*c),h=o[0],l=o[1],f=Math.pow(h,2)/Math.pow(i,2)+Math.pow(l,2)/Math.pow(n,2);1<f&&(i*=Math.sqrt(f),n*=Math.sqrt(f)),t.rX=i,t.rY=n;var g=Math.pow(i,2)*Math.pow(l,2)+Math.pow(n,2)*Math.pow(h,2),p=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(i,2)*Math.pow(n,2)-g)/g)),d=i*l/n*p,v=-n*h/i*p,y=u([d,v],t.xRot/180*c);t.cX=y[0]+(e+a)/2,t.cY=y[1]+(r+s)/2,t.phi1=Math.atan2((l-v)/n,(h-d)/i),t.phi2=Math.atan2((-l-v)/n,(-h-d)/i),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*c),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*c),t.phi1*=180/c,t.phi2*=180/c}function g(t,e,r){l(t,e,r);var i=t*t+e*e-r*r;if(0>i)return[];if(0===i)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var n=Math.sqrt(i);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var p,d=Math.PI/180;function v(t,e,r){return(1-r)*t+r*e}function y(t,e,r,i){return t+Math.cos(i/180*c)*e+Math.sin(i/180*c)*r}function m(t,e,r,i){var n=1e-6,a=e-t,s=r-e,o=3*a+3*(i-r)-6*s,h=6*(s-a),u=3*a;return Math.abs(o)<n?[-u/h]:function(t,e,r){void 0===r&&(r=1e-6);var i=t*t/4-e;if(i<-r)return[];if(i<=r)return[-t/2];var n=Math.sqrt(i);return[-t/2-n,-t/2+n]}(h/o,u/o,n)}function x(t,e,r,i,n){var a=1-n;return t*(a*a*a)+e*(3*a*a*n)+r*(3*a*n*n)+i*(n*n*n)}!function(t){function e(){return n((function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t}))}function r(){var t=NaN,e=NaN,r=NaN,i=NaN;return n((function(n,a,s){return n.type&O.SMOOTH_CURVE_TO&&(n.type=O.CURVE_TO,t=isNaN(t)?a:t,e=isNaN(e)?s:e,n.x1=n.relative?a-t:2*a-t,n.y1=n.relative?s-e:2*s-e),n.type&O.CURVE_TO?(t=n.relative?a+n.x2:n.x2,e=n.relative?s+n.y2:n.y2):(t=NaN,e=NaN),n.type&O.SMOOTH_QUAD_TO&&(n.type=O.QUAD_TO,r=isNaN(r)?a:r,i=isNaN(i)?s:i,n.x1=n.relative?a-r:2*a-r,n.y1=n.relative?s-i:2*s-i),n.type&O.QUAD_TO?(r=n.relative?a+n.x1:n.x1,i=n.relative?s+n.y1:n.y1):(r=NaN,i=NaN),n}))}function i(){var t=NaN,e=NaN;return n((function(r,i,n){if(r.type&O.SMOOTH_QUAD_TO&&(r.type=O.QUAD_TO,t=isNaN(t)?i:t,e=isNaN(e)?n:e,r.x1=r.relative?i-t:2*i-t,r.y1=r.relative?n-e:2*n-e),r.type&O.QUAD_TO){t=r.relative?i+r.x1:r.x1,e=r.relative?n+r.y1:r.y1;var a=r.x1,s=r.y1;r.type=O.CURVE_TO,r.x1=((r.relative?0:i)+2*a)/3,r.y1=((r.relative?0:n)+2*s)/3,r.x2=(r.x+2*a)/3,r.y2=(r.y+2*s)/3}else t=NaN,e=NaN;return r}))}function n(t){var e=0,r=0,i=NaN,n=NaN;return function(a){if(isNaN(i)&&!(a.type&O.MOVE_TO))throw new Error("path must start with moveto");var s=t(a,e,r,i,n);return a.type&O.CLOSE_PATH&&(e=i,r=n),void 0!==a.x&&(e=a.relative?e+a.x:a.x),void 0!==a.y&&(r=a.relative?r+a.y:a.y),a.type&O.MOVE_TO&&(i=e,n=r),s}}function a(t,e,r,i,a,s){return l(t,e,r,i,a,s),n((function(n,o,h,u){var l=n.x1,c=n.x2,f=n.relative&&!isNaN(u),g=void 0!==n.x?n.x:f?0:o,p=void 0!==n.y?n.y:f?0:h;function d(t){return t*t}n.type&O.HORIZ_LINE_TO&&0!==e&&(n.type=O.LINE_TO,n.y=n.relative?0:h),n.type&O.VERT_LINE_TO&&0!==r&&(n.type=O.LINE_TO,n.x=n.relative?0:o),void 0!==n.x&&(n.x=n.x*t+p*r+(f?0:a)),void 0!==n.y&&(n.y=g*e+n.y*i+(f?0:s)),void 0!==n.x1&&(n.x1=n.x1*t+n.y1*r+(f?0:a)),void 0!==n.y1&&(n.y1=l*e+n.y1*i+(f?0:s)),void 0!==n.x2&&(n.x2=n.x2*t+n.y2*r+(f?0:a)),void 0!==n.y2&&(n.y2=c*e+n.y2*i+(f?0:s));var v=t*i-e*r;if(void 0!==n.xRot&&(1!==t||0!==e||0!==r||1!==i))if(0===v)delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag,n.type=O.LINE_TO;else{var y=n.xRot*Math.PI/180,m=Math.sin(y),x=Math.cos(y),b=1/d(n.rX),w=1/d(n.rY),S=d(x)*b+d(m)*w,T=2*m*x*(b-w),A=d(m)*b+d(x)*w,C=S*i*i-T*e*i+A*e*e,P=T*(t*i+e*r)-2*(S*r*i+A*t*e),E=S*r*r-T*t*r+A*t*t,M=(Math.atan2(P,C-E)+Math.PI)%Math.PI/2,N=Math.sin(M),R=Math.cos(M);n.rX=Math.abs(v)/Math.sqrt(C*d(R)+P*N*R+E*d(N)),n.rY=Math.abs(v)/Math.sqrt(C*d(N)-P*N*R+E*d(R)),n.xRot=180*M/Math.PI}return void 0!==n.sweepFlag&&0>v&&(n.sweepFlag=+!n.sweepFlag),n}))}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),l(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return n((function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),n((function(i,n,a,s,o){if(isNaN(s)&&!(i.type&O.MOVE_TO))throw new Error("path must start with moveto");return e&&i.type&O.HORIZ_LINE_TO&&(i.type=O.LINE_TO,i.y=i.relative?0:a),r&&i.type&O.VERT_LINE_TO&&(i.type=O.LINE_TO,i.x=i.relative?0:n),t&&i.type&O.CLOSE_PATH&&(i.type=O.LINE_TO,i.x=i.relative?s-n:s,i.y=i.relative?o-a:o),i.type&O.ARC&&(0===i.rX||0===i.rY)&&(i.type=O.LINE_TO,delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag),i}))},t.NORMALIZE_ST=r,t.QT_TO_C=i,t.INFO=n,t.SANITIZE=function(t){void 0===t&&(t=0),l(t);var e=NaN,r=NaN,i=NaN,a=NaN;return n((function(n,s,o,h,u){var l=Math.abs,c=!1,f=0,g=0;if(n.type&O.SMOOTH_CURVE_TO&&(f=isNaN(e)?0:s-e,g=isNaN(r)?0:o-r),n.type&(O.CURVE_TO|O.SMOOTH_CURVE_TO)?(e=n.relative?s+n.x2:n.x2,r=n.relative?o+n.y2:n.y2):(e=NaN,r=NaN),n.type&O.SMOOTH_QUAD_TO?(i=isNaN(i)?s:2*s-i,a=isNaN(a)?o:2*o-a):n.type&O.QUAD_TO?(i=n.relative?s+n.x1:n.x1,a=n.relative?o+n.y1:n.y2):(i=NaN,a=NaN),n.type&O.LINE_COMMANDS||n.type&O.ARC&&(0===n.rX||0===n.rY||!n.lArcFlag)||n.type&O.CURVE_TO||n.type&O.SMOOTH_CURVE_TO||n.type&O.QUAD_TO||n.type&O.SMOOTH_QUAD_TO){var p=void 0===n.x?0:n.relative?n.x:n.x-s,d=void 0===n.y?0:n.relative?n.y:n.y-o;f=isNaN(i)?void 0===n.x1?f:n.relative?n.x:n.x1-s:i-s,g=isNaN(a)?void 0===n.y1?g:n.relative?n.y:n.y1-o:a-o;var v=void 0===n.x2?0:n.relative?n.x:n.x2-s,y=void 0===n.y2?0:n.relative?n.y:n.y2-o;l(p)<=t&&l(d)<=t&&l(f)<=t&&l(g)<=t&&l(v)<=t&&l(y)<=t&&(c=!0)}return n.type&O.CLOSE_PATH&&l(s-h)<=t&&l(o-u)<=t&&(c=!0),c?[]:n}))},t.MATRIX=a,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),l(t,e,r);var i=Math.sin(t),n=Math.cos(t);return a(n,i,-i,n,e-e*n+r*i,r-e*i-r*n)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),l(t,e),a(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),l(t,e),a(t,0,0,e,0,0)},t.SKEW_X=function(t){return l(t),a(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return l(t),a(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),l(t),a(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),l(t),a(1,0,0,-1,0,t)},t.A_TO_C=function(){return n((function(t,e,r){return O.ARC===t.type?function(t,e,r){var i,n,a,s;t.cX||f(t,e,r);for(var o=Math.min(t.phi1,t.phi2),h=Math.max(t.phi1,t.phi2)-o,l=Math.ceil(h/90),c=new Array(l),g=e,p=r,y=0;y<l;y++){var m=v(t.phi1,t.phi2,y/l),x=v(t.phi1,t.phi2,(y+1)/l),b=x-m,w=4/3*Math.tan(b*d/4),S=[Math.cos(m*d)-w*Math.sin(m*d),Math.sin(m*d)+w*Math.cos(m*d)],T=S[0],A=S[1],C=[Math.cos(x*d),Math.sin(x*d)],P=C[0],E=C[1],M=[P+w*Math.sin(x*d),E-w*Math.cos(x*d)],N=M[0],R=M[1];c[y]={relative:t.relative,type:O.CURVE_TO};var _=function(e,r){var i=u([e*t.rX,r*t.rY],t.xRot),n=i[0],a=i[1];return[t.cX+n,t.cY+a]};i=_(T,A),c[y].x1=i[0],c[y].y1=i[1],n=_(N,R),c[y].x2=n[0],c[y].y2=n[1],a=_(P,E),c[y].x=a[0],c[y].y=a[1],t.relative&&(c[y].x1-=g,c[y].y1-=p,c[y].x2-=g,c[y].y2-=p,c[y].x-=g,c[y].y-=p),g=(s=[c[y].x,c[y].y])[0],p=s[1]}return c}(t,t.relative?0:e,t.relative?0:r):t}))},t.ANNOTATE_ARCS=function(){return n((function(t,e,r){return t.relative&&(e=0,r=0),O.ARC===t.type&&f(t,e,r),t}))},t.CLONE=function(){return function(t){var e={};for(var r in t)e[r]=t[r];return e}},t.CALCULATE_BOUNDS=function(){var t=e(),a=i(),s=r(),o=n((function(e,r,i){var n=s(a(t(function(t){var e={};for(var r in t)e[r]=t[r];return e}(e))));function h(t){t>o.maxX&&(o.maxX=t),t<o.minX&&(o.minX=t)}function u(t){t>o.maxY&&(o.maxY=t),t<o.minY&&(o.minY=t)}if(n.type&O.DRAWING_COMMANDS&&(h(r),u(i)),n.type&O.HORIZ_LINE_TO&&h(n.x),n.type&O.VERT_LINE_TO&&u(n.y),n.type&O.LINE_TO&&(h(n.x),u(n.y)),n.type&O.CURVE_TO){h(n.x),u(n.y);for(var l=0,c=m(r,n.x1,n.x2,n.x);l<c.length;l++)0<(V=c[l])&&1>V&&h(x(r,n.x1,n.x2,n.x,V));for(var p=0,d=m(i,n.y1,n.y2,n.y);p<d.length;p++)0<(V=d[p])&&1>V&&u(x(i,n.y1,n.y2,n.y,V))}if(n.type&O.ARC){h(n.x),u(n.y),f(n,r,i);for(var v=n.xRot/180*Math.PI,b=Math.cos(v)*n.rX,w=Math.sin(v)*n.rX,S=-Math.sin(v)*n.rY,T=Math.cos(v)*n.rY,A=n.phi1<n.phi2?[n.phi1,n.phi2]:-180>n.phi2?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],C=A[0],P=A[1],E=function(t){var e=t[0],r=t[1],i=180*Math.atan2(r,e)/Math.PI;return i<C?i+360:i},M=0,N=g(S,-b,0).map(E);M<N.length;M++)(V=N[M])>C&&V<P&&h(y(n.cX,b,S,V));for(var R=0,_=g(T,-w,0).map(E);R<_.length;R++){var V;(V=_[R])>C&&V<P&&u(y(n.cY,w,T,V))}}return e}));return o.minX=1/0,o.maxX=-1/0,o.minY=1/0,o.maxY=-1/0,o}}(p||(p={}));var b,w=function(){function t(){}return t.prototype.round=function(t){return this.transform(p.ROUND(t))},t.prototype.toAbs=function(){return this.transform(p.TO_ABS())},t.prototype.toRel=function(){return this.transform(p.TO_REL())},t.prototype.normalizeHVZ=function(t,e,r){return this.transform(p.NORMALIZE_HVZ(t,e,r))},t.prototype.normalizeST=function(){return this.transform(p.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(p.QT_TO_C())},t.prototype.aToC=function(){return this.transform(p.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(p.SANITIZE(t))},t.prototype.translate=function(t,e){return this.transform(p.TRANSLATE(t,e))},t.prototype.scale=function(t,e){return this.transform(p.SCALE(t,e))},t.prototype.rotate=function(t,e,r){return this.transform(p.ROTATE(t,e,r))},t.prototype.matrix=function(t,e,r,i,n,a){return this.transform(p.MATRIX(t,e,r,i,n,a))},t.prototype.skewX=function(t){return this.transform(p.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(p.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(p.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(p.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(p.ANNOTATE_ARCS())},t}(),S=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},T=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},A=function(t){function e(){var e=t.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return h(e,t),e.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var i=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},n=0;n<t.length;n++){var a=t[n],s=!(this.curCommandType!==O.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),o=T(a)&&("0"===this.curNumber&&"0"===a||s);if(!T(a)||o)if("e"!==a&&"E"!==a)if("-"!==a&&"+"!==a||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==a||this.curNumberHasExp||this.curNumberHasDecimal||s){if(this.curNumber&&-1!==this.curCommandType){var h=Number(this.curNumber);if(isNaN(h))throw new SyntaxError("Invalid number ending at "+n);if(this.curCommandType===O.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>h)throw new SyntaxError('Expected positive number, got "'+h+'" at index "'+n+'"')}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 "'+n+'"');this.curArgs.push(h),this.curArgs.length===C[this.curCommandType]&&(O.HORIZ_LINE_TO===this.curCommandType?i({type:O.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):O.VERT_LINE_TO===this.curCommandType?i({type:O.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===O.MOVE_TO||this.curCommandType===O.LINE_TO||this.curCommandType===O.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),O.MOVE_TO===this.curCommandType&&(this.curCommandType=O.LINE_TO)):this.curCommandType===O.CURVE_TO?i({type:O.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===O.SMOOTH_CURVE_TO?i({type:O.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===O.QUAD_TO?i({type:O.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===O.ARC&&i({type:O.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(!S(a))if(","===a&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==a&&"-"!==a&&"."!==a)if(o)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+n+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+n+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==a&&"Z"!==a)if("h"===a||"H"===a)this.curCommandType=O.HORIZ_LINE_TO,this.curCommandRelative="h"===a;else if("v"===a||"V"===a)this.curCommandType=O.VERT_LINE_TO,this.curCommandRelative="v"===a;else if("m"===a||"M"===a)this.curCommandType=O.MOVE_TO,this.curCommandRelative="m"===a;else if("l"===a||"L"===a)this.curCommandType=O.LINE_TO,this.curCommandRelative="l"===a;else if("c"===a||"C"===a)this.curCommandType=O.CURVE_TO,this.curCommandRelative="c"===a;else if("s"===a||"S"===a)this.curCommandType=O.SMOOTH_CURVE_TO,this.curCommandRelative="s"===a;else if("q"===a||"Q"===a)this.curCommandType=O.QUAD_TO,this.curCommandRelative="q"===a;else if("t"===a||"T"===a)this.curCommandType=O.SMOOTH_QUAD_TO,this.curCommandRelative="t"===a;else{if("a"!==a&&"A"!==a)throw new SyntaxError('Unexpected character "'+a+'" at index '+n+".");this.curCommandType=O.ARC,this.curCommandRelative="a"===a}else e.push({type:O.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal="."===a}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var i=0,n=Object.getPrototypeOf(this).parse.call(this,e);i<n.length;i++){var a=n[i],s=t(a);Array.isArray(s)?r.push.apply(r,s):r.push(s)}return r}}})},e}(w),O=function(t){function e(r){var i=t.call(this)||this;return i.commands="string"==typeof r?e.parse(r):r,i}return h(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=p.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var e=[],r=0,i=this.commands;r<i.length;r++){var n=t(i[r]);Array.isArray(n)?e.push.apply(e,n):e.push(n)}return this.commands=e,this},e.encode=function(t){return function(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var i=t[r];if(i.type===O.CLOSE_PATH)e+="z";else if(i.type===O.HORIZ_LINE_TO)e+=(i.relative?"h":"H")+i.x;else if(i.type===O.VERT_LINE_TO)e+=(i.relative?"v":"V")+i.y;else if(i.type===O.MOVE_TO)e+=(i.relative?"m":"M")+i.x+" "+i.y;else if(i.type===O.LINE_TO)e+=(i.relative?"l":"L")+i.x+" "+i.y;else if(i.type===O.CURVE_TO)e+=(i.relative?"c":"C")+i.x1+" "+i.y1+" "+i.x2+" "+i.y2+" "+i.x+" "+i.y;else if(i.type===O.SMOOTH_CURVE_TO)e+=(i.relative?"s":"S")+i.x2+" "+i.y2+" "+i.x+" "+i.y;else if(i.type===O.QUAD_TO)e+=(i.relative?"q":"Q")+i.x1+" "+i.y1+" "+i.x+" "+i.y;else if(i.type===O.SMOOTH_QUAD_TO)e+=(i.relative?"t":"T")+i.x+" "+i.y;else{if(i.type!==O.ARC)throw new Error('Unexpected command type "'+i.type+'" at index '+r+".");e+=(i.relative?"a":"A")+i.rX+" "+i.rY+" "+i.xRot+" "+ +i.lArcFlag+" "+ +i.sweepFlag+" "+i.x+" "+i.y}}return e}(t)},e.parse=function(t){var e=new A,r=[];return e.parse(t,r),e.finish(r),r},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(w),C=((b={})[O.MOVE_TO]=2,b[O.LINE_TO]=2,b[O.HORIZ_LINE_TO]=1,b[O.VERT_LINE_TO]=1,b[O.CLOSE_PATH]=0,b[O.QUAD_TO]=4,b[O.SMOOTH_QUAD_TO]=2,b[O.CURVE_TO]=6,b[O.SMOOTH_CURVE_TO]=4,b[O.ARC]=7,b);r(9714);function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}var E=[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],M=[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 N(t,e,r,i,n){if("string"==typeof t&&(t=document.getElementById(t)),!t||"object"!==P(t)||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var a=t.getContext("2d");try{return a.getImageData(e,r,i,n)}catch(t){throw new Error("unable to access image data: "+t)}}function R(t,e,r,i,n,a){if(!(isNaN(a)||a<1)){a|=0;var s=N(t,e,r,i,n);s=function(t,e,r,i,n,a){for(var s,o=t.data,h=2*a+1,u=i-1,l=n-1,c=a+1,f=c*(c+1)/2,g=new _,p=g,d=1;d<h;d++)p=p.next=new _,d===c&&(s=p);p.next=g;for(var v=null,y=null,m=0,x=0,b=E[a],w=M[a],S=0;S<n;S++){p=g;for(var T=o[x],A=o[x+1],O=o[x+2],C=o[x+3],P=0;P<c;P++)p.r=T,p.g=A,p.b=O,p.a=C,p=p.next;for(var N=0,R=0,V=0,k=0,I=c*T,L=c*A,D=c*O,j=c*C,z=f*T,B=f*A,F=f*O,H=f*C,U=1;U<c;U++){var X=x+((u<U?u:U)<<2),$=o[X],Y=o[X+1],q=o[X+2],W=o[X+3],G=c-U;z+=(p.r=$)*G,B+=(p.g=Y)*G,F+=(p.b=q)*G,H+=(p.a=W)*G,N+=$,R+=Y,V+=q,k+=W,p=p.next}v=g,y=s;for(var Q=0;Q<i;Q++){var Z=H*b>>w;if(o[x+3]=Z,0!==Z){var K=255/Z;o[x]=(z*b>>w)*K,o[x+1]=(B*b>>w)*K,o[x+2]=(F*b>>w)*K}else o[x]=o[x+1]=o[x+2]=0;z-=I,B-=L,F-=D,H-=j,I-=v.r,L-=v.g,D-=v.b,j-=v.a;var J=Q+a+1;J=m+(J<u?J:u)<<2,z+=N+=v.r=o[J],B+=R+=v.g=o[J+1],F+=V+=v.b=o[J+2],H+=k+=v.a=o[J+3],v=v.next;var tt=y,et=tt.r,rt=tt.g,it=tt.b,nt=tt.a;I+=et,L+=rt,D+=it,j+=nt,N-=et,R-=rt,V-=it,k-=nt,y=y.next,x+=4}m+=i}for(var at=0;at<i;at++){var st=o[x=at<<2],ot=o[x+1],ht=o[x+2],ut=o[x+3],lt=c*st,ct=c*ot,ft=c*ht,gt=c*ut,pt=f*st,dt=f*ot,vt=f*ht,yt=f*ut;p=g;for(var mt=0;mt<c;mt++)p.r=st,p.g=ot,p.b=ht,p.a=ut,p=p.next;for(var xt=i,bt=0,wt=0,St=0,Tt=0,At=1;At<=a;At++){x=xt+at<<2;var Ot=c-At;pt+=(p.r=st=o[x])*Ot,dt+=(p.g=ot=o[x+1])*Ot,vt+=(p.b=ht=o[x+2])*Ot,yt+=(p.a=ut=o[x+3])*Ot,Tt+=st,bt+=ot,wt+=ht,St+=ut,p=p.next,At<l&&(xt+=i)}x=at,v=g,y=s;for(var Ct=0;Ct<n;Ct++){var Pt=x<<2;o[Pt+3]=ut=yt*b>>w,ut>0?(ut=255/ut,o[Pt]=(pt*b>>w)*ut,o[Pt+1]=(dt*b>>w)*ut,o[Pt+2]=(vt*b>>w)*ut):o[Pt]=o[Pt+1]=o[Pt+2]=0,pt-=lt,dt-=ct,vt-=ft,yt-=gt,lt-=v.r,ct-=v.g,ft-=v.b,gt-=v.a,Pt=at+((Pt=Ct+c)<l?Pt:l)*i<<2,pt+=Tt+=v.r=o[Pt],dt+=bt+=v.g=o[Pt+1],vt+=wt+=v.b=o[Pt+2],yt+=St+=v.a=o[Pt+3],v=v.next,lt+=st=y.r,ct+=ot=y.g,ft+=ht=y.b,gt+=ut=y.a,Tt-=st,bt-=ot,wt-=ht,St-=ut,y=y.next,x+=i}}return t}(s,0,0,i,n,a),t.getContext("2d").putImageData(s,e,r)}}var _=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function V(t){return t.replace(/(?!\u3000)\s+/gm," ")}function k(t){return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var I=/^[A-Z-]+$/;function L(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}var D=/(\[[^\]]+\])/g,j=/(#[^\s+>~.[:]+)/g,z=/(\.[^\s+>~.[:]+)/g,B=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,F=/(:[\w-]+\([^)]*\))/gi,H=/(:[^\s+>~.[:]+)/g,U=/([^\s+>~.[:]+)/g;function X(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}var $=1e-8;function Y(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function q(t,e){return(t[0]*e[0]+t[1]*e[1])/(Y(t)*Y(e))}function W(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(q(t,e))}function G(t){return t*t*t}function Q(t){return 3*t*t*(1-t)}function Z(t){return 3*t*(1-t)*(1-t)}function K(t){return(1-t)*(1-t)*(1-t)}function J(t){return t*t}function tt(t){return 2*t*(1-t)}function et(t){return(1-t)*(1-t)}class rt{constructor(t,e,r){this.document=t,this.name=e,this.value=r,this.isNormalizedColor=!1}static empty(t){return new rt(t,"EMPTY","")}split(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:e,name:r}=this;return V(this.getString()).trim().split(t).map((t=>new rt(e,r,t)))}hasValue(t){var{value:e}=this;return null!==e&&""!==e&&(t||0!==e)&&void 0!==e}isString(t){var{value:e}=this,r="string"==typeof e;return r&&t?t.test(e):r}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return void 0===t||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return void 0===t?0:parseFloat(t);var{value:e}=this,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}getString(t){return void 0===t||this.hasValue()?void 0===this.value?"":String(this.value):String(t)}getColor(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=function(t){if(!t.startsWith("rgb"))return t;var e=3;return t.replace(/\d+(\.\d+)?/g,((t,r)=>e--&&r?String(Math.round(parseFloat(t))):t))}(e),this.value=e),e}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[r,i]="boolean"==typeof t?[void 0,t]:[t],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&i:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(r);default:var a=this.getNumber();return e&&a<1?a*n.computeSize(r):a}}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 t=this.getString(),e=/#([^)'"]+)/.exec(t);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}getFillStyleDefinition(t,e){var r=this.getDefinition();if(!r)return null;if("function"==typeof r.createGradient)return r.createGradient(this.document.ctx,t,e);if("function"==typeof r.createPattern){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,t,e)}return null}getTextBaseline(){return this.hasValue()?rt.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var e=this.getColor(),r=e.length,i=0,n=0;n<r&&(","===e[n]&&i++,3!==i);n++);if(t.hasValue()&&this.isString()&&3!==i){var a=new s(e);a.ok&&(a.alpha=t.getNumber(),e=a.toRGBA())}return new rt(this.document,this.name,e)}}rt.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 it{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(t,e){this.viewPorts.push({width:t,height:e})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:t}=this;return t[t.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(t){return"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class nt{constructor(t,e){this.x=t,this.y=e}static parse(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[r=e,i=e]=k(t);return new nt(r,i)}static parseScale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[r=e,i=r]=k(t);return new nt(r,i)}static parsePath(t){for(var e=k(t),r=e.length,i=[],n=0;n<r;n+=2)i.push(new nt(e[n],e[n+1]));return i}angleTo(t){return Math.atan2(t.y-this.y,t.x-this.x)}applyTransform(t){var{x:e,y:r}=this,i=e*t[0]+r*t[2]+t[4],n=e*t[1]+r*t[3]+t[5];this.x=i,this.y=n}}class at{constructor(t){this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:t,onClick:e,onMouseMove:r}=this,i=t.ctx.canvas;i.onclick=e,i.onmousemove=r,this.working=!0}}stop(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:t,events:e,eventElements:r}=this,{style:i}=t.ctx.canvas;i&&(i.cursor=""),e.forEach(((t,e)=>{for(var{run:i}=t,n=r[e];n;)i(n),n=n.parent})),this.events=[],this.eventElements=[]}}checkPath(t,e){if(this.working&&e){var{events:r,eventElements:i}=this;r.forEach(((r,n)=>{var{x:a,y:s}=r;!i[n]&&e.isPointInPath&&e.isPointInPath(a,s)&&(i[n]=t)}))}}checkBoundingBox(t,e){if(this.working&&e){var{events:r,eventElements:i}=this;r.forEach(((r,n)=>{var{x:a,y:s}=r;!i[n]&&e.isPointInBox(a,s)&&(i[n]=t)}))}}mapXY(t,e){for(var{window:r,ctx:i}=this.screen,n=new nt(t,e),a=i.canvas;a;)n.x-=a.offsetLeft,n.y-=a.offsetTop,a=a.offsetParent;return r.scrollX&&(n.x+=r.scrollX),r.scrollY&&(n.y+=r.scrollY),n}onClick(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:r,run(t){t.onClick&&t.onClick()}})}onMouseMove(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:r,run(t){t.onMouseMove&&t.onMouseMove()}})}}var st="undefined"!=typeof window?window:null,ot="undefined"!=typeof fetch?fetch.bind(void 0):null;class ht{constructor(t){var{fetch:e=ot,window:r=st}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new it,this.mouse=new at(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=e}wait(t){this.waits.push(t)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every((t=>t()));return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}setDefaults(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}setViewBox(t){var{document:e,ctx:r,aspectRatio:i,width:n,desiredWidth:a,height:s,desiredHeight:o,minX:h=0,minY:u=0,refX:l,refY:c,clip:f=!1,clipX:g=0,clipY:p=0}=t,d=V(i).replace(/^defer\s/,""),[v,y]=d.split(" "),m=v||"xMidYMid",x=y||"meet",b=n/a,w=s/o,S=Math.min(b,w),T=Math.max(b,w),A=a,O=o;"meet"===x&&(A*=S,O*=S),"slice"===x&&(A*=T,O*=T);var C=new rt(e,"refX",l),P=new rt(e,"refY",c),E=C.hasValue()&&P.hasValue();if(E&&r.translate(-S*C.getPixels("x"),-S*P.getPixels("y")),f){var M=S*g,N=S*p;r.beginPath(),r.moveTo(M,N),r.lineTo(n,N),r.lineTo(n,s),r.lineTo(M,s),r.closePath(),r.clip()}if(!E){var R="meet"===x&&S===w,_="slice"===x&&T===w,k="meet"===x&&S===b,I="slice"===x&&T===b;m.startsWith("xMid")&&(R||_)&&r.translate(n/2-A/2,0),m.endsWith("YMid")&&(k||I)&&r.translate(0,s/2-O/2),m.startsWith("xMax")&&(R||_)&&r.translate(n-A,0),m.endsWith("YMax")&&(k||I)&&r.translate(0,s-O)}switch(!0){case"none"===m:r.scale(b,w);break;case"meet"===x:r.scale(S,S);break;case"slice"===x:r.scale(T,T)}r.translate(-h,-u)}start(t){var{enableRedraw:e=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:n=!1,ignoreClear:s=!1,forceRedraw:o,scaleWidth:h,scaleHeight:u,offsetX:l,offsetY:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:f,mouse:g}=this,p=1e3/f;if(this.frameDuration=p,this.readyPromise=new Promise((t=>{this.resolveReady=t})),this.isReady()&&this.render(t,n,s,h,u,l,c),e){var d=Date.now(),v=d,y=0,m=()=>{d=Date.now(),(y=d-v)>=p&&(v=d-y%p,this.shouldUpdate(i,o)&&(this.render(t,n,s,h,u,l,c),g.runEvents())),this.intervalId=a(m)};r||g.start(),this.intervalId=a(m)}}stop(){this.intervalId&&(a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,e){if(!t){var{frameDuration:r}=this;if(this.animations.reduce(((t,e)=>e.update(r)||t),!1))return!0}return!("function"!=typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(t,e,r,i,n,a,s){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:h,viewPort:u,ctx:l,isFirstRender:c}=this,f=l.canvas;u.clear(),f.width&&f.height?u.setCurrent(f.width,f.height):u.setCurrent(o,h);var g=t.getStyle("width"),p=t.getStyle("height");!e&&(c||"number"!=typeof i&&"number"!=typeof n)&&(g.hasValue()&&(f.width=g.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),p.hasValue()&&(f.height=p.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var d=f.clientWidth||f.width,v=f.clientHeight||f.height;if(e&&g.hasValue()&&p.hasValue()&&(d=g.getPixels("x"),v=p.getPixels("y")),u.setCurrent(d,v),"number"==typeof a&&t.getAttribute("x",!0).setValue(a),"number"==typeof s&&t.getAttribute("y",!0).setValue(s),"number"==typeof i||"number"==typeof n){var y=k(t.getAttribute("viewBox").getString()),m=0,x=0;if("number"==typeof i){var b=t.getStyle("width");b.hasValue()?m=b.getPixels("x")/i:isNaN(y[2])||(m=y[2]/i)}if("number"==typeof n){var w=t.getStyle("height");w.hasValue()?x=w.getPixels("y")/n:isNaN(y[3])||(x=y[3]/n)}m||(m=x),x||(x=m),t.getAttribute("width",!0).setValue(i),t.getAttribute("height",!0).setValue(n);var S=t.getStyle("transform",!0,!0);S.setValue("".concat(S.getString()," scale(").concat(1/m,", ").concat(1/x,")"))}r||l.clearRect(0,0,d,v),t.render(l),c&&(this.isFirstRender=!1)}}ht.defaultWindow=st,ht.defaultFetch=ot;var{defaultFetch:ut}=ht,lt="undefined"!=typeof DOMParser?DOMParser:null;class ct{constructor(){var{fetch:t=ut,DOMParser:e=lt}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var r=this;return e((function*(){return t.startsWith("<")?r.parseFromString(t):r.load(t)}))()}parseFromString(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch(r){return this.checkDocument(e.parseFromString(t,"text/xml"))}}checkDocument(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}load(t){var r=this;return e((function*(){var e=yield r.fetch(t),i=yield e.text();return r.parseFromString(i)}))()}}class ft{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=k(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:i}=this,n=e.getPixels("x"),a=r.getPixels("y");t.translate(n,a),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),t.translate(-n,-a)}unapply(t){var{originX:e,originY:r,matrix:i}=this,n=i[0],a=i[2],s=i[4],o=i[1],h=i[3],u=i[5],l=1/(n*(1*h-0*u)-a*(1*o-0*u)+s*(0*o-0*h)),c=e.getPixels("x"),f=r.getPixels("y");t.translate(c,f),t.transform(l*(1*h-0*u),l*(0*u-1*o),l*(0*s-1*a),l*(1*n-0*s),l*(a*u-s*h),l*(s*o-n*u)),t.translate(-c,-f)}applyToPoint(t){t.applyTransform(this.matrix)}}class gt extends ft{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new rt(t,"angle",e)}}class pt{constructor(t,e,r){this.document=t,this.transforms=[];var i=function(t){return V(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(e);i.forEach((t=>{if("none"!==t){var[e,i]=function(t){var[e,r]=t.split("(");return[e.trim(),r.trim().replace(")","")]}(t),n=pt.transformTypes[e];void 0!==n&&this.transforms.push(new n(this.document,i,r))}}))}static fromElement(t,e){var r=e.getStyle("transform",!1,!0),[i,n=i]=e.getStyle("transform-origin",!1,!0).split(),a=[i,n];return r.hasValue()?new pt(t,r.getString(),a):null}apply(t){for(var{transforms:e}=this,r=e.length,i=0;i<r;i++)e[i].apply(t)}unapply(t){for(var{transforms:e}=this,r=e.length-1;r>=0;r--)e[r].unapply(t)}applyToPoint(t){for(var{transforms:e}=this,r=e.length,i=0;i<r;i++)e[i].applyToPoint(t)}}pt.transformTypes={translate:class{constructor(t,e){this.type="translate",this.point=null,this.point=nt.parse(e)}apply(t){var{x:e,y:r}=this.point;t.translate(e||0,r||0)}unapply(t){var{x:e,y:r}=this.point;t.translate(-1*e||0,-1*r||0)}applyToPoint(t){var{x:e,y:r}=this.point;t.applyTransform([1,0,0,1,e||0,r||0])}},rotate:class{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=k(e);this.angle=new rt(t,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(t){var{cx:e,cy:r,originX:i,originY:n,angle:a}=this,s=e+i.getPixels("x"),o=r+n.getPixels("y");t.translate(s,o),t.rotate(a.getRadians()),t.translate(-s,-o)}unapply(t){var{cx:e,cy:r,originX:i,originY:n,angle:a}=this,s=e+i.getPixels("x"),o=r+n.getPixels("y");t.translate(s,o),t.rotate(-1*a.getRadians()),t.translate(-s,-o)}applyToPoint(t){var{cx:e,cy:r,angle:i}=this,n=i.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}},scale:class{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=nt.parseScale(e);0!==i.x&&0!==i.y||(i.x=$,i.y=$),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:i,originY:n}=this,a=i.getPixels("x"),s=n.getPixels("y");t.translate(a,s),t.scale(e,r||e),t.translate(-a,-s)}unapply(t){var{scale:{x:e,y:r},originX:i,originY:n}=this,a=i.getPixels("x"),s=n.getPixels("y");t.translate(a,s),t.scale(1/e,1/r||e),t.translate(-a,-s)}applyToPoint(t){var{x:e,y:r}=this.scale;t.applyTransform([e||0,0,0,r||0,0,0])}},matrix:ft,skewX:class extends gt{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}},skewY:class extends gt{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}};class dt{constructor(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=t,this.node=e,this.captureTextNodes=r,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],e&&1===e.nodeType){if(Array.from(e.attributes).forEach((e=>{var r,i=(r=e.nodeName,I.test(r)?r.toLowerCase():r);this.attributes[i]=new rt(t,i,e.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map((t=>t.trim()));i.forEach((e=>{if(e){var[r,i]=e.split(":").map((t=>t.trim()));this.styles[r]=new rt(t,r,i)}}))}var{definitions:n}=t,a=this.getAttribute("id");a.hasValue()&&(n[a.getString()]||(n[a.getString()]=this)),Array.from(e.childNodes).forEach((e=>{if(1===e.nodeType)this.addChild(e);else if(r&&(3===e.nodeType||4===e.nodeType)){var i=t.createTextNode(e);i.getText().length>0&&this.addChild(i)}}))}}getAttribute(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.attributes[t];if(!r&&e){var i=new rt(this.document,t,"");return this.attributes[t]=i,i}return r||rt.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if("href"===t||t.endsWith(":href"))return this.attributes[t];return rt.empty(this.document)}getStyle(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.styles[t];if(i)return i;var n=this.getAttribute(t);if(null!=n&&n.hasValue())return this.styles[t]=n,n;if(!r){var{parent:a}=this;if(a){var s=a.getStyle(t);if(null!=s&&s.hasValue())return s}}if(e){var o=new rt(this.document,t,"");return this.styles[t]=o,o}return i||rt.empty(this.document)}render(t){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if("none"!==this.getStyle("filter").getValue("none")){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}setContext(t){}applyEffects(t){var e=pt.fromElement(this.document,this);e&&e.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(t)}}clearContext(t){}renderChildren(t){this.children.forEach((e=>{e.render(t)}))}addChild(t){var e=t instanceof dt?t:this.document.createElement(t);e.parent=this,dt.ignoreChildTypes.includes(e.type)||this.children.push(e)}matchesSelector(t){var e,{node:r}=this;if("function"==typeof r.matches)return r.matches(t);var i=null===(e=r.getAttribute)||void 0===e?void 0:e.call(r,"class");return!(!i||""===i)&&i.split(" ").some((e=>".".concat(e)===t))}addStylesFromStyleDefinition(){var{styles:t,stylesSpecificity:e}=this.document;for(var r in t)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=t[r],n=e[r];if(i)for(var a in i){var s=this.stylesSpecificity[a];void 0===s&&(s="000"),n>=s&&(this.styles[a]=i[a],this.stylesSpecificity[a]=n)}}}removeStyles(t,e){return e.reduce(((e,r)=>{var i=t.getStyle(r);if(!i.hasValue())return e;var n=i.getString();return i.setValue(""),[...e,[r,n]]}),[])}restoreStyles(t,e){e.forEach((e=>{var[r,i]=e;t.getStyle(r,!0).setValue(i)}))}isFirstChild(){var t;return 0===(null===(t=this.parent)||void 0===t?void 0:t.children.indexOf(this))}}dt.ignoreChildTypes=["title"];class vt extends dt{constructor(t,e,r){super(t,e,r)}}function yt(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function mt(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function xt(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class bt{constructor(t,e,r,i,n,a){var s=a?"string"==typeof a?bt.parse(a):a:{};this.fontFamily=n||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=t||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=e||s.fontVariant}static parse(){var t=arguments.length>1?arguments[1]:void 0,e="",r="",i="",n="",a="",s=V(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),o={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return s.forEach((t=>{switch(!0){case!o.fontStyle&&bt.styles.includes(t):"inherit"!==t&&(e=t),o.fontStyle=!0;break;case!o.fontVariant&&bt.variants.includes(t):"inherit"!==t&&(r=t),o.fontStyle=!0,o.fontVariant=!0;break;case!o.fontWeight&&bt.weights.includes(t):"inherit"!==t&&(i=t),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0;break;case!o.fontSize:"inherit"!==t&&([n]=t.split("/")),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0,o.fontSize=!0;break;default:"inherit"!==t&&(a+=t)}})),new bt(e,r,i,n,a,t)}toString(){return[mt(this.fontStyle),this.fontVariant,xt(this.fontWeight),this.fontSize,(t=this.fontFamily,"undefined"==typeof process?t:t.trim().split(",").map(yt).join(","))].join(" ").trim();var t}}bt.styles="normal|italic|oblique|inherit",bt.variants="normal|small-caps|inherit",bt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class wt{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=i,this.addPoint(t,e),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,e){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),void 0!==e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:e,y1:r,x2:i,y2:n}=t;this.addPoint(e,r),this.addPoint(i,n)}}sumCubic(t,e,r,i,n){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*i+Math.pow(t,3)*n}bezierCurveAdd(t,e,r,i,n){var a=6*e-12*r+6*i,s=-3*e+9*r-9*i+3*n,o=3*r-3*e;if(0!==s){var h=Math.pow(a,2)-4*o*s;if(!(h<0)){var u=(-a+Math.sqrt(h))/(2*s);0<u&&u<1&&(t?this.addX(this.sumCubic(u,e,r,i,n)):this.addY(this.sumCubic(u,e,r,i,n)));var l=(-a-Math.sqrt(h))/(2*s);0<l&&l<1&&(t?this.addX(this.sumCubic(l,e,r,i,n)):this.addY(this.sumCubic(l,e,r,i,n)))}}else{if(0===a)return;var c=-o/a;0<c&&c<1&&(t?this.addX(this.sumCubic(c,e,r,i,n)):this.addY(this.sumCubic(c,e,r,i,n)))}}addBezierCurve(t,e,r,i,n,a,s,o){this.addPoint(t,e),this.addPoint(s,o),this.bezierCurveAdd(!0,t,r,n,s),this.bezierCurveAdd(!1,e,i,a,o)}addQuadraticCurve(t,e,r,i,n,a){var s=t+2/3*(r-t),o=e+2/3*(i-e),h=s+1/3*(n-t),u=o+1/3*(a-e);this.addBezierCurve(t,e,s,h,o,u,n,a)}isPointInBox(t,e){var{x1:r,y1:i,x2:n,y2:a}=this;return r<=t&&t<=n&&i<=e&&e<=a}}class St extends O{constructor(t){super(t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new nt(0,0),this.control=new nt(0,0),this.current=new nt(0,0),this.points=[],this.angles=[]}isEnd(){var{i:t,commands:e}=this;return t>=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",r=new nt(this.command[t],this.command[e]);return this.makeAbsolute(r)}getAsControlPoint(t,e){var r=this.getPoint(t,e);return this.control=r,r}getAsCurrentPoint(t,e){var r=this.getPoint(t,e);return this.current=r,r}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==O.CURVE_TO&&t!==O.SMOOTH_CURVE_TO&&t!==O.QUAD_TO&&t!==O.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:i,y:n}}=this;return new nt(2*e-i,2*r-n)}makeAbsolute(t){if(this.command.relative){var{x:e,y:r}=this.current;t.x+=e,t.y+=r}return t}addMarker(t,e,r){var{points:i,angles:n}=this;r&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}addMarkerAngle(t,e){this.points.push(t),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,e=t.length,r=0;r<e;r++)if(!t[r])for(var i=r+1;i<e;i++)if(t[i]){t[r]=t[i];break}return t}}class Tt extends dt{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,i);s&&(t.fillStyle=s)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var o=r.getColor();"inherit"!==o&&(t.fillStyle="none"===o?"rgba(0,0,0,0)":o)}if(i.hasValue()){var h=new rt(this.document,"fill",t.fillStyle).addOpacity(i).getColor();t.fillStyle=h}if(n.isUrlDefinition()){var u=n.getFillStyleDefinition(this,a);u&&(t.strokeStyle=u)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var l=n.getString();"inherit"!==l&&(t.strokeStyle="none"===l?"rgba(0,0,0,0)":l)}if(a.hasValue()){var c=new rt(this.document,"stroke",t.strokeStyle).addOpacity(a).getString();t.strokeStyle=c}var f=this.getStyle("stroke-width");if(f.hasValue()){var g=f.getPixels();t.lineWidth=g||$}var p=this.getStyle("stroke-linecap"),d=this.getStyle("stroke-linejoin"),v=this.getStyle("stroke-miterlimit"),y=this.getStyle("stroke-dasharray"),m=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(t.lineCap=p.getString()),d.hasValue()&&(t.lineJoin=d.getString()),v.hasValue()&&(t.miterLimit=v.getNumber()),y.hasValue()&&"none"!==y.getString()){var x=k(y.getString());void 0!==t.setLineDash?t.setLineDash(x):void 0!==t.webkitLineDash?t.webkitLineDash=x:void 0===t.mozDash||1===x.length&&0===x[0]||(t.mozDash=x);var b=m.getPixels();void 0!==t.lineDashOffset?t.lineDashOffset=b:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=b:void 0!==t.mozDashOffset&&(t.mozDashOffset=b)}}if(this.modifiedEmSizeStack=!1,void 0!==t.font){var w=this.getStyle("font"),S=this.getStyle("font-style"),T=this.getStyle("font-variant"),A=this.getStyle("font-weight"),O=this.getStyle("font-size"),C=this.getStyle("font-family"),P=new bt(S.getString(),T.getString(),A.getString(),O.hasValue()?"".concat(O.getPixels(!0),"px"):"",C.getString(),bt.parse(w.getString(),t.font));S.setValue(P.fontStyle),T.setValue(P.fontVariant),A.setValue(P.fontWeight),O.setValue(P.fontSize),C.setValue(P.fontFamily),t.font=P.toString(),O.isPixels()&&(this.document.emSize=O.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class At extends Tt{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new St(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new wt;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case St.MOVE_TO:this.pathM(t,r);break;case St.LINE_TO:this.pathL(t,r);break;case St.HORIZ_LINE_TO:this.pathH(t,r);break;case St.VERT_LINE_TO:this.pathV(t,r);break;case St.CURVE_TO:this.pathC(t,r);break;case St.SMOOTH_CURVE_TO:this.pathS(t,r);break;case St.QUAD_TO:this.pathQ(t,r);break;case St.SMOOTH_QUAD_TO:this.pathT(t,r);break;case St.ARC:this.pathA(t,r);break;case St.CLOSE_PATH:this.pathZ(t,r)}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles(),i=e.map(((t,e)=>[t,r[e]]));return i}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var i=r.length-1,n=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(n.isUrlDefinition()){var o=n.getDefinition(),[h,u]=r[0];o.render(t,h,u)}if(a.isUrlDefinition())for(var l=a.getDefinition(),c=1;c<i;c++){var[f,g]=r[c];l.render(t,f,g)}if(s.isUrlDefinition()){var p=s.getDefinition(),[d,v]=r[i];p.render(t,d,v)}}}static pathM(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}pathM(t,e){var{pathParser:r}=this,{point:i}=At.pathM(r),{x:n,y:a}=i;r.addMarker(i),e.addPoint(n,a),t&&t.moveTo(n,a)}static pathL(t){var{current:e}=t;return{current:e,point:t.getAsCurrentPoint()}}pathL(t,e){var{pathParser:r}=this,{current:i,point:n}=At.pathL(r),{x:a,y:s}=n;r.addMarker(n,i),e.addPoint(a,s),t&&t.lineTo(a,s)}static pathH(t){var{current:e,command:r}=t,i=new nt((r.relative?e.x:0)+r.x,e.y);return t.current=i,{current:e,point:i}}pathH(t,e){var{pathParser:r}=this,{current:i,point:n}=At.pathH(r),{x:a,y:s}=n;r.addMarker(n,i),e.addPoint(a,s),t&&t.lineTo(a,s)}static pathV(t){var{current:e,command:r}=t,i=new nt(e.x,(r.relative?e.y:0)+r.y);return t.current=i,{current:e,point:i}}pathV(t,e){var{pathParser:r}=this,{current:i,point:n}=At.pathV(r),{x:a,y:s}=n;r.addMarker(n,i),e.addPoint(a,s),t&&t.lineTo(a,s)}static pathC(t){var{current:e}=t;return{current:e,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathC(t,e){var{pathParser:r}=this,{current:i,point:n,controlPoint:a,currentPoint:s}=At.pathC(r);r.addMarker(s,a,n),e.addBezierCurve(i.x,i.y,n.x,n.y,a.x,a.y,s.x,s.y),t&&t.bezierCurveTo(n.x,n.y,a.x,a.y,s.x,s.y)}static pathS(t){var{current:e}=t;return{current:e,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathS(t,e){var{pathParser:r}=this,{current:i,point:n,controlPoint:a,currentPoint:s}=At.pathS(r);r.addMarker(s,a,n),e.addBezierCurve(i.x,i.y,n.x,n.y,a.x,a.y,s.x,s.y),t&&t.bezierCurveTo(n.x,n.y,a.x,a.y,s.x,s.y)}static pathQ(t){var{current:e}=t;return{current:e,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}pathQ(t,e){var{pathParser:r}=this,{current:i,controlPoint:n,currentPoint:a}=At.pathQ(r);r.addMarker(a,n,n),e.addQuadraticCurve(i.x,i.y,n.x,n.y,a.x,a.y),t&&t.quadraticCurveTo(n.x,n.y,a.x,a.y)}static pathT(t){var{current:e}=t,r=t.getReflectedControlPoint();return t.control=r,{current:e,controlPoint:r,currentPoint:t.getAsCurrentPoint()}}pathT(t,e){var{pathParser:r}=this,{current:i,controlPoint:n,currentPoint:a}=At.pathT(r);r.addMarker(a,n,n),e.addQuadraticCurve(i.x,i.y,n.x,n.y,a.x,a.y),t&&t.quadraticCurveTo(n.x,n.y,a.x,a.y)}static pathA(t){var{current:e,command:r}=t,{rX:i,rY:n,xRot:a,lArcFlag:s,sweepFlag:o}=r,h=a*(Math.PI/180),u=t.getAsCurrentPoint(),l=new nt(Math.cos(h)*(e.x-u.x)/2+Math.sin(h)*(e.y-u.y)/2,-Math.sin(h)*(e.x-u.x)/2+Math.cos(h)*(e.y-u.y)/2),c=Math.pow(l.x,2)/Math.pow(i,2)+Math.pow(l.y,2)/Math.pow(n,2);c>1&&(i*=Math.sqrt(c),n*=Math.sqrt(c));var f=(s===o?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(n,2)-Math.pow(i,2)*Math.pow(l.y,2)-Math.pow(n,2)*Math.pow(l.x,2))/(Math.pow(i,2)*Math.pow(l.y,2)+Math.pow(n,2)*Math.pow(l.x,2)));isNaN(f)&&(f=0);var g=new nt(f*i*l.y/n,f*-n*l.x/i),p=new nt((e.x+u.x)/2+Math.cos(h)*g.x-Math.sin(h)*g.y,(e.y+u.y)/2+Math.sin(h)*g.x+Math.cos(h)*g.y),d=W([1,0],[(l.x-g.x)/i,(l.y-g.y)/n]),v=[(l.x-g.x)/i,(l.y-g.y)/n],y=[(-l.x-g.x)/i,(-l.y-g.y)/n],m=W(v,y);return q(v,y)<=-1&&(m=Math.PI),q(v,y)>=1&&(m=0),{currentPoint:u,rX:i,rY:n,sweepFlag:o,xAxisRotation:h,centp:p,a1:d,ad:m}}pathA(t,e){var{pathParser:r}=this,{currentPoint:i,rX:n,rY:a,sweepFlag:s,xAxisRotation:o,centp:h,a1:u,ad:l}=At.pathA(r),c=1-s?1:-1,f=u+c*(l/2),g=new nt(h.x+n*Math.cos(f),h.y+a*Math.sin(f));if(r.addMarkerAngle(g,f-c*Math.PI/2),r.addMarkerAngle(i,f-c*Math.PI),e.addPoint(i.x,i.y),t&&!isNaN(u)&&!isNaN(l)){var p=n>a?n:a,d=n>a?1:n/a,v=n>a?a/n:1;t.translate(h.x,h.y),t.rotate(o),t.scale(d,v),t.arc(0,0,p,u,u+l,Boolean(1-s)),t.scale(1/d,1/v),t.rotate(-o),t.translate(-h.x,-h.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){At.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class Ot extends At{constructor(t,e,r){super(t,e,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class Ct extends Tt{constructor(t,e,r){super(t,e,new.target===Ct||r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(t,e);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(t){if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var e=null;return this.children.forEach(((r,i)=>{var n=this.getChildBoundingBox(t,this,this,i);e?e.addBoundingBox(n):e=n})),e}getFontSize(){var{document:t,parent:e}=this,r=bt.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}getTElementBoundingBox(t){var e=this.getFontSize();return new wt(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var i=e[r],n=null;if(t.isArabic){var a=e.length,s=e[r-1],o=e[r+1],h="isolated";if((0===r||" "===s)&&r<a-1&&" "!==o&&(h="terminal"),r>0&&" "!==s&&r<a-1&&" "!==o&&(h="medial"),r>0&&" "!==s&&(r===a-1||" "===o)&&(h="initial"),void 0!==t.glyphs[i]){var u=t.glyphs[i];n=u instanceof Ot?u:u[h]}}else n=t.glyphs[i];return n||(n=t.missingGlyph),n}getText(){return""}getTextFromNode(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),i=r.indexOf(e),n=r.length-1,a=V(e.textContent||"");return 0===i&&(a=a.replace(/^[\n \t]+/,"")),i===n&&(a=function(t){return t.replace(/[\n \t]+$/,"")}(a)),a}renderChildren(t){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach(((e,r)=>{this.renderChild(t,this,this,r)}));var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}renderTElementChildren(t){var{document:e,parent:r}=this,i=this.getText(),n=r.getStyle("font-family").getDefinition();if(n)for(var{unitsPerEm:a}=n.fontFace,s=bt.parse(e.ctx.font),o=r.getStyle("font-size").getNumber(s.fontSize),h=r.getStyle("font-style").getString(s.fontStyle),u=o/a,l=n.isRTL?i.split("").reverse().join(""):i,c=k(r.getAttribute("dx").getString()),f=l.length,g=0;g<f;g++){var p=this.getGlyph(n,l,g);t.translate(this.x,this.y),t.scale(u,-u);var d=t.lineWidth;t.lineWidth=t.lineWidth*a/o,"italic"===h&&t.transform(1,0,.4,1,0,0),p.render(t),"italic"===h&&t.transform(1,0,-.4,1,0,0),t.lineWidth=d,t.scale(1/u,-1/u),t.translate(-this.x,-this.y),this.x+=o*(p.horizAdvX||n.horizAdvX)/a,void 0===c[g]||isNaN(c[g])||(this.x+=c[g])}else{var{x:v,y}=this;t.fillStyle&&t.fillText(i,v,y),t.strokeStyle&&t.strokeText(i,v,y)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start"),r=0;r="start"===e?t.x-this.minX:"end"===e?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=r;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(t){this.children.forEach(((e,r)=>{this.adjustChildCoordinatesRecursiveCore(t,this,this,r)})),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(t,e,r,i){var n=r.children[i];n.children.length>0?n.children.forEach(((r,i)=>{e.adjustChildCoordinatesRecursiveCore(t,e,n,i)})):this.adjustChildCoordinates(t,e,r,i)}adjustChildCoordinates(t,e,r,i){var n=r.children[i];if("function"!=typeof n.measureText)return n;t.save(),n.setContext(t,!0);var a=n.getAttribute("x"),s=n.getAttribute("y"),o=n.getAttribute("dx"),h=n.getAttribute("dy"),u=n.getStyle("font-family").getDefinition(),l=Boolean(u)&&u.isRTL;0===i&&(a.hasValue()||a.setValue(n.getInheritedAttribute("x")),s.hasValue()||s.setValue(n.getInheritedAttribute("y")),o.hasValue()||o.setValue(n.getInheritedAttribute("dx")),h.hasValue()||h.setValue(n.getInheritedAttribute("dy")));var c=n.measureText(t);return l&&(e.x-=c),a.hasValue()?(e.applyAnchoring(),n.x=a.getPixels("x"),o.hasValue()&&(n.x+=o.getPixels("x"))):(o.hasValue()&&(e.x+=o.getPixels("x")),n.x=e.x),e.x=n.x,l||(e.x+=c),s.hasValue()?(n.y=s.getPixels("y"),h.hasValue()&&(n.y+=h.getPixels("y"))):(h.hasValue()&&(e.y+=h.getPixels("y")),n.y=e.y),e.y=n.y,e.leafTexts.push(n),e.minX=Math.min(e.minX,n.x,n.x+c),e.maxX=Math.max(e.maxX,n.x,n.x+c),n.clearContext(t),t.restore(),n}getChildBoundingBox(t,e,r,i){var n=r.children[i];if("function"!=typeof n.getBoundingBox)return null;var a=n.getBoundingBox(t);return a?(n.children.forEach(((r,i)=>{var s=e.getChildBoundingBox(t,e,n,i);a.addBoundingBox(s)})),a):null}renderChild(t,e,r,i){var n=r.children[i];n.render(t),n.children.forEach(((r,i)=>{e.renderChild(t,e,n,i)}))}measureText(t){var{measureCache:e}=this;if(~e)return e;var r=this.getText(),i=this.measureTargetText(t,r);return this.measureCache=i,i}measureTargetText(t,e){if(!e.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var n=this.getFontSize(),a=i.isRTL?e.split("").reverse().join(""):e,s=k(r.getAttribute("dx").getString()),o=a.length,h=0,u=0;u<o;u++){h+=(this.getGlyph(i,a,u).horizAdvX||i.horizAdvX)*n/i.fontFace.unitsPerEm,void 0===s[u]||isNaN(s[u])||(h+=s[u])}return h}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);var{width:l}=t.measureText(e);return this.clearContext(t),t.restore(),l}getInheritedAttribute(t){for(var e=this;e instanceof Ct&&e.isFirstChild();){var r=e.parent.getAttribute(t);if(r.hasValue(!0))return r.getValue("0");e=e.parent}return null}}class Pt extends Ct{constructor(t,e,r){super(t,e,new.target===Pt||r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class Et extends Pt{constructor(){super(...arguments),this.type="textNode"}}class Mt extends Tt{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:r}=this,{screen:i,window:n}=r,a=t.canvas;if(i.setDefaults(t),a.style&&void 0!==t.font&&n&&void 0!==n.getComputedStyle){t.font=n.getComputedStyle(a).getPropertyValue("font");var s=new rt(r,"fontSize",bt.parse(t.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:h}=i.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),l=this.getAttribute("refY"),c=this.getAttribute("viewBox"),f=c.hasValue()?k(c.getString()):null,g=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),p=0,d=0,v=0,y=0;f&&(p=f[0],d=f[1]),this.root||(o=this.getStyle("width").getPixels("x"),h=this.getStyle("height").getPixels("y"),"marker"===this.type&&(v=p,y=d,p=0,d=0)),i.viewPort.setCurrent(o,h),!this.node||this.parent&&"foreignObject"!==(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),f&&(o=f[2],h=f[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:o,height:i.viewPort.height,desiredHeight:h,minX:p,minY:d,refX:u.getValue(),refY:l.getValue(),clip:g,clipX:v,clipY:y}),f&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(o,h))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.getAttribute("width",!0),n=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),s=this.getAttribute("style"),o=i.getNumber(0),h=n.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(i.setValue(t),n.setValue(e),a.hasValue()||a.setValue("0 0 ".concat(o||t," ").concat(h||e)),s.hasValue()){var l=this.getStyle("width"),c=this.getStyle("height");l.hasValue()&&l.setValue("".concat(t,"px")),c.hasValue()&&c.setValue("".concat(e,"px"))}}}class Nt extends At{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),a=this.getAttribute("rx"),s=this.getAttribute("ry"),o=a.getPixels("x"),h=s.getPixels("y");if(a.hasValue()&&!s.hasValue()&&(h=o),s.hasValue()&&!a.hasValue()&&(o=h),o=Math.min(o,i/2),h=Math.min(h,n/2),t){var u=(Math.sqrt(2)-1)/3*4;t.beginPath(),n>0&&i>0&&(t.moveTo(e+o,r),t.lineTo(e+i-o,r),t.bezierCurveTo(e+i-o+u*o,r,e+i,r+h-u*h,e+i,r+h),t.lineTo(e+i,r+n-h),t.bezierCurveTo(e+i,r+n-h+u*h,e+i-o+u*o,r+n,e+i-o,r+n),t.lineTo(e+o,r+n),t.bezierCurveTo(e+o-u*o,r+n,e,r+n-h+u*h,e,r+n-h),t.lineTo(e,r+h),t.bezierCurveTo(e,r+h-u*h,e+o-u*o,r,e+o,r),t.closePath())}return new wt(e,r,e+i,r+n)}getMarkers(){return null}}class Rt extends At{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=nt.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:i}]=e,n=new wt(r,i);return t&&(t.beginPath(),t.moveTo(r,i)),e.forEach((e=>{var{x:r,y:i}=e;n.addPoint(r,i),t&&t.lineTo(r,i)})),n}getMarkers(){var{points:t}=this,e=t.length-1,r=[];return t.forEach(((i,n)=>{n!==e&&r.push([i,i.angleTo(t[n+1])])})),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class _t extends Tt{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new wt;return this.children.forEach((r=>{e.addBoundingBox(r.getBoundingBox(t))})),e}}class Vt extends dt{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:n}=this;n.forEach((t=>{"stop"===t.type&&i.push(t)}))}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:n}=i,a=this.getGradient(t,e);if(!a)return this.addParentOpacity(r,n[n.length-1].color);if(n.forEach((t=>{a.addColorStop(t.offset,this.addParentOpacity(r,t.color))})),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:h}=s.screen,[u]=h.viewPorts,l=new Nt(s,null);l.attributes.x=new rt(s,"x",-o/3),l.attributes.y=new rt(s,"y",-o/3),l.attributes.width=new rt(s,"width",o),l.attributes.height=new rt(s,"height",o);var c=new _t(s,null);c.attributes.transform=new rt(s,"transform",this.getAttribute("gradientTransform").getValue()),c.children=[l];var f=new Mt(s,null);f.attributes.x=new rt(s,"x",0),f.attributes.y=new rt(s,"y",0),f.attributes.width=new rt(s,"width",u.width),f.attributes.height=new rt(s,"height",u.height),f.children=[c];var g=s.createCanvas(u.width,u.height),p=g.getContext("2d");return p.fillStyle=a,f.render(p),p.createPattern(g,"no-repeat")}return a}inheritStopContainer(t){this.attributesToInherit.forEach((e=>{!this.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())}))}addParentOpacity(t,e){return t.hasValue()?new rt(this.document,"color",e).addOpacity(t).getColor():e}}class kt extends dt{constructor(t,e,r){super(t,e,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new rt(t,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:r,to:i}=this.getProgress(),n=r.getNumber()+(i.getNumber()-r.getNumber())*e;return"%"===t&&(n*=100),"".concat(n).concat(t)}update(t){var{parent:e}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==i||this.frozen){if("remove"===i&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var n=!1;if(this.begin<this.duration){var a=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var o=s.getString();a="".concat(o,"(").concat(a,")")}r.setValue(a),n=!0}return n}getProgress(){var{document:t,values:e}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var i=r.progress*(e.getValue().length-1),n=Math.floor(i),a=Math.ceil(i);r.from=new rt(t,"from",parseFloat(e.getValue()[n])),r.to=new rt(t,"to",parseFloat(e.getValue()[a])),r.progress=(i-n)/(a-n)}else r.from=this.from,r.to=this.to;return r}}function It(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function Lt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?It(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):It(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Dt=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class jt{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,r){var i=this;return e((function*(){try{var{document:e}=i,n=(yield e.canvg.parser.load(r)).getElementsByTagName("font");Array.from(n).forEach((r=>{var i=e.createElement(r);e.definitions[t]=i}))}catch(t){}i.loaded=!0}))()}}class zt extends dt{constructor(t,e,r){super(t,e,r),this.type="style";var i=V(Array.from(e.childNodes).map((t=>t.textContent)).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,""));i.split("}").forEach((e=>{var r=e.trim();if(r){var i=r.split("{"),n=i[0].split(","),a=i[1].split(";");n.forEach((e=>{var r=e.trim();if(r){var i,n,s,o=t.styles[r]||{};if(a.forEach((e=>{var r=e.indexOf(":"),i=e.substr(0,r).trim(),n=e.substr(r+1,e.length-r).trim();i&&n&&(o[i]=new rt(t,i,n))})),t.styles[r]=o,t.stylesSpecificity[r]=(i=[0,0,0],n=r.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),s=0,[n,s]=X(n,D),i[1]+=s,[n,s]=X(n,j),i[0]+=s,[n,s]=X(n,z),i[1]+=s,[n,s]=X(n,B),i[2]+=s,[n,s]=X(n,F),i[1]+=s,[n,s]=X(n,H),i[1]+=s,n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[n,s]=X(n,U),i[2]+=s,i.join("")),"@font-face"===r){var h=o["font-family"].getString().replace(/"|'/g,"");o.src.getString().split(",").forEach((e=>{if(e.indexOf('format("svg")')>0){var r=L(e);r&&new jt(t).load(h,r)}}))}}}))}}))}}zt.parseExternalUrl=L;function Bt(t,e,r,i,n,a){return t[r*i*4+4*e+a]}function Ft(t,e,r,i,n,a,s){t[r*i*4+4*e+a]=s}function Ht(t,e,r){return t[e]*r}function Ut(t,e,r,i){return e+Math.cos(t)*r+Math.sin(t)*i}class Xt extends dt{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var i=k(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var n=i[0];i=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var a=i[0]*Math.PI/180;i=[Ut(a,.213,.787,-.213),Ut(a,.715,-.715,-.715),Ut(a,.072,-.072,.928),0,0,Ut(a,.213,-.213,.143),Ut(a,.715,.285,.14),Ut(a,.072,-.072,-.283),0,0,Ut(a,.213,-.213,-.787),Ut(a,.715,-.715,.715),Ut(a,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,i,n){for(var{includeOpacity:a,matrix:s}=this,o=t.getImageData(0,0,i,n),h=0;h<n;h++)for(var u=0;u<i;u++){var l=Bt(o.data,u,h,i,0,0),c=Bt(o.data,u,h,i,0,1),f=Bt(o.data,u,h,i,0,2),g=Bt(o.data,u,h,i,0,3),p=Ht(s,0,l)+Ht(s,1,c)+Ht(s,2,f)+Ht(s,3,g)+Ht(s,4,1),d=Ht(s,5,l)+Ht(s,6,c)+Ht(s,7,f)+Ht(s,8,g)+Ht(s,9,1),v=Ht(s,10,l)+Ht(s,11,c)+Ht(s,12,f)+Ht(s,13,g)+Ht(s,14,1),y=Ht(s,15,l)+Ht(s,16,c)+Ht(s,17,f)+Ht(s,18,g)+Ht(s,19,1);a&&(p=0,d=0,v=0,y*=g/255),Ft(o.data,u,h,i,0,0,p),Ft(o.data,u,h,i,0,1,d),Ft(o.data,u,h,i,0,2,v),Ft(o.data,u,h,i,0,3,y)}t.clearRect(0,0,i,n),t.putImageData(o,0,0)}}class $t extends dt{constructor(){super(...arguments),this.type="mask"}apply(t,e){var{document:r}=this,i=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!a&&!s){var o=new wt;this.children.forEach((e=>{o.addBoundingBox(e.getBoundingBox(t))})),i=Math.floor(o.x1),n=Math.floor(o.y1),a=Math.floor(o.width),s=Math.floor(o.height)}var h=this.removeStyles(e,$t.ignoreStyles),u=r.createCanvas(i+a,n+s),l=u.getContext("2d");r.screen.setDefaults(l),this.renderChildren(l),new Xt(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(l,0,0,i+a,n+s);var c=r.createCanvas(i+a,n+s),f=c.getContext("2d");r.screen.setDefaults(f),e.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=l.createPattern(u,"no-repeat"),f.fillRect(0,0,i+a,n+s),t.fillStyle=f.createPattern(c,"no-repeat"),t.fillRect(0,0,i+a,n+s),this.restoreStyles(e,h)}render(t){}}$t.ignoreStyles=["mask","transform","clip-path"];var Yt=()=>{};class qt extends dt{constructor(){super(...arguments),this.type="filter"}apply(t,e){var{document:r,children:i}=this,n=e.getBoundingBox(t);if(n){var a=0,s=0;i.forEach((t=>{var e=t.extraFilterDistance||0;a=Math.max(a,e),s=Math.max(s,e)}));var o=Math.floor(n.width),h=Math.floor(n.height),u=o+2*a,l=h+2*s;if(!(u<1||l<1)){var c=Math.floor(n.x),f=Math.floor(n.y),g=this.removeStyles(e,qt.ignoreStyles),p=r.createCanvas(u,l),d=p.getContext("2d");r.screen.setDefaults(d),d.translate(-c+a,-f+s),e.render(d),i.forEach((t=>{"function"==typeof t.apply&&t.apply(d,0,0,u,l)})),t.drawImage(p,0,0,u,l,c-a,f-s,u,l),this.restoreStyles(e,g)}}}render(t){}}qt.ignoreStyles=["filter","transform","clip-path"];var Wt={svg:Mt,rect:Nt,circle:class extends At{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return t&&i>0&&(t.beginPath(),t.arc(e,r,i,0,2*Math.PI,!1),t.closePath()),new wt(e-i,r-i,e+i,r+i)}getMarkers(){return null}},ellipse:class extends At{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return t&&r>0&&i>0&&(t.beginPath(),t.moveTo(n+r,a),t.bezierCurveTo(n+r,a+e*i,n+e*r,a+i,n,a+i),t.bezierCurveTo(n-e*r,a+i,n-r,a+e*i,n-r,a),t.bezierCurveTo(n-r,a-e*i,n-e*r,a-i,n,a-i),t.bezierCurveTo(n+e*r,a-i,n+r,a-e*i,n+r,a),t.closePath()),new wt(n-r,a-i,n+r,a+i)}getMarkers(){return null}},line:class extends At{constructor(){super(...arguments),this.type="line"}getPoints(){return[new nt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new nt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:i,y:n}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(i,n)),new wt(e,r,i,n)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}},polyline:Rt,polygon:class extends Rt{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:i}]=this.points;return t&&(t.lineTo(r,i),t.closePath()),e}},path:At,pattern:class extends dt{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var i=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),a=new Mt(this.document,null);a.attributes.viewBox=new rt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new rt(this.document,"width","".concat(i,"px")),a.attributes.height=new rt(this.document,"height","".concat(n,"px")),a.attributes.transform=new rt(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var s=this.document.createCanvas(i,n),o=s.getContext("2d"),h=this.getAttribute("x"),u=this.getAttribute("y");h.hasValue()&&u.hasValue()&&o.translate(h.getPixels("x",!0),u.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var l=-1;l<=1;l++)for(var c=-1;c<=1;c++)o.save(),a.attributes.x=new rt(this.document,"x",l*s.width),a.attributes.y=new rt(this.document,"y",c*s.height),a.render(o),o.restore();return t.createPattern(s,"repeat")}},marker:class extends dt{constructor(){super(...arguments),this.type="marker"}render(t,e,r){if(e){var{x:i,y:n}=e,a=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(i,n),"auto"===a&&t.rotate(r),"strokeWidth"===s&&t.scale(t.lineWidth,t.lineWidth),t.save();var o=new Mt(this.document,null);o.type=this.type,o.attributes.viewBox=new rt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new rt(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new rt(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new rt(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new rt(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new rt(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new rt(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new rt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(t),t.restore(),"strokeWidth"===s&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===a&&t.rotate(-r),t.translate(-i,-n)}}},defs:class extends dt{constructor(){super(...arguments),this.type="defs"}render(){}},linearGradient:class extends Vt{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),i=r?e.getBoundingBox(t):null;if(r&&!i)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===s&&a===o?null:t.createLinearGradient(n,a,s,o)}},radialGradient:class extends Vt{constructor(t,e,r){super(t,e,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),i=e.getBoundingBox(t);if(r&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=n,o=a;this.getAttribute("fx").hasValue()&&(s=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var h=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return t.createRadialGradient(s,o,u,n,a,h)}},stop:class extends dt{constructor(t,e,r){super(t,e,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),a=this.getStyle("stop-color",!0);""===a.getString()&&a.setValue("#000"),n.hasValue()&&(a=a.addOpacity(n)),this.offset=i,this.color=a.getColor()}},animate:kt,animateColor:class extends kt{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),i=new s(e.getColor()),n=new s(r.getColor());if(i.ok&&n.ok){var a=i.r+(n.r-i.r)*t,o=i.g+(n.g-i.g)*t,h=i.b+(n.b-i.b)*t;return"rgb(".concat(Math.floor(a),", ").concat(Math.floor(o),", ").concat(Math.floor(h),")")}return this.getAttribute("from").getColor()}},animateTransform:class extends kt{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),i=k(e.getString()),n=k(r.getString()),a=i.map(((e,r)=>e+(n[r]-e)*t)).join(" ");return a}},font:class extends dt{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=t,{children:n}=this;for(var a of n)switch(a.type){case"font-face":this.fontFace=a;var s=a.getStyle("font-family");s.hasValue()&&(i[s.getString()]=this);break;case"missing-glyph":this.missingGlyph=a;break;case"glyph":var o=a;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[o.unicode]&&(this.glyphs[o.unicode]={}),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o}}render(){}},"font-face":class extends dt{constructor(t,e,r){super(t,e,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}},"missing-glyph":class extends At{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}},glyph:Ot,text:Ct,tspan:Pt,tref:class extends Ct{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}},a:class extends Ct{constructor(t,e,r){super(t,e,r),this.type="a";var{childNodes:i}=e,n=i[0],a=i.length>0&&Array.from(i).every((t=>3===t.nodeType));this.hasText=a,this.text=a?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:r,y:i}=this,{mouse:n}=e.screen,a=new rt(e,"fontSize",bt.parse(e.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new wt(r,i-a.getPixels("y"),r+this.measureText(t),i))}else if(this.children.length>0){var s=new _t(this.document,null);s.children=this.children,s.parent=this,s.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}},textPath:class extends Ct{constructor(t,e,r){super(t,e,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var i=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(i)}getText(){return this.text}path(t){var{dataArray:e}=this;t&&t.beginPath(),e.forEach((e=>{var{type:r,points:i}=e;switch(r){case St.LINE_TO:t&&t.lineTo(i[0],i[1]);break;case St.MOVE_TO:t&&t.moveTo(i[0],i[1]);break;case St.CURVE_TO:t&&t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case St.QUAD_TO:t&&t.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case St.ARC:var[n,a,s,o,h,u,l,c]=i,f=s>o?s:o,g=s>o?1:s/o,p=s>o?o/s:1;t&&(t.translate(n,a),t.rotate(l),t.scale(g,p),t.arc(0,0,f,h,h+u,Boolean(1-c)),t.scale(1/g,1/p),t.rotate(-l),t.translate(-n,-a));break;case St.CLOSE_PATH:t&&t.closePath()}}))}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,n=t.fillStyle;"underline"===e&&t.beginPath(),i.forEach(((i,n)=>{var{p0:a,p1:s,rotation:o,text:h}=i;t.save(),t.translate(a.x,a.y),t.rotate(o),t.fillStyle&&t.fillText(h,0,0),t.strokeStyle&&t.strokeText(h,0,0),t.restore(),"underline"===e&&(0===n&&t.moveTo(a.x,a.y+r/8),t.lineTo(s.x,s.y+r/5))})),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=n,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}findSegmentToFitChar(t,e,r,i,n,a,s,o,h){var u=a,l=this.measureText(t,o);" "===o&&"justify"===e&&r<i&&(l+=(i-r)/n),h>-1&&(u+=this.getLetterSpacingAt(h));var c=this.textHeight/20,f=this.getEquidistantPointOnPath(u,c,0),g=this.getEquidistantPointOnPath(u+l,c,0),p={p0:f,p1:g},d=f&&g?Math.atan2(g.y-f.y,g.x-f.x):0;if(s){var v=Math.cos(Math.PI/2+d)*s,y=Math.cos(-d)*s;p.p0=Lt(Lt({},f),{},{x:f.x+v,y:f.y+y}),p.p1=Lt(Lt({},g),{},{x:g.x+v,y:g.y+y})}return{offset:u+=l,segment:p,rotation:d}}measureText(t,e){var{measuresCache:r}=this,i=e||this.getText();if(r.has(i))return r.get(i);var n=this.measureTargetText(t,i);return r.set(i,n),n}setTextData(t){if(!this.glyphInfo){var e=this.getText(),r=e.split(""),i=e.split(" ").length-1,n=this.parent.getAttribute("dx").split().map((t=>t.getPixels("x"))),a=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),h=this.parent.getStyle("letter-spacing"),u=0;o.hasValue()&&"inherit"!==o.getValue()?o.hasValue()&&"initial"!==o.getValue()&&"unset"!==o.getValue()&&(u=o.getPixels()):u=h.getPixels();var l=[],c=e.length;this.letterSpacingCache=l;for(var f=0;f<c;f++)l.push(void 0!==n[f]?n[f]:u);var g=l.reduce(((t,e,r)=>0===r?0:t+e||0),0),p=this.measureText(t),d=Math.max(p+g,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var v=this.getPathLength(),y=this.getStyle("startOffset").getNumber(0)*v,m=0;"middle"!==s&&"center"!==s||(m=-d/2),"end"!==s&&"right"!==s||(m=-d),m+=y,r.forEach(((e,n)=>{var{offset:o,segment:h,rotation:u}=this.findSegmentToFitChar(t,s,d,v,i,m,a,e,n);m=o,h.p0&&h.p1&&this.glyphInfo.push({text:r[n],p0:h.p0,p1:h.p1,rotation:u})}))}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:r}=t;for(r.reset();!r.isEnd();){var{current:i}=r,n=i?i.x:0,a=i?i.y:0,s=r.next(),o=s.type,h=[];switch(s.type){case St.MOVE_TO:this.pathM(r,h);break;case St.LINE_TO:o=this.pathL(r,h);break;case St.HORIZ_LINE_TO:o=this.pathH(r,h);break;case St.VERT_LINE_TO:o=this.pathV(r,h);break;case St.CURVE_TO:this.pathC(r,h);break;case St.SMOOTH_CURVE_TO:o=this.pathS(r,h);break;case St.QUAD_TO:this.pathQ(r,h);break;case St.SMOOTH_QUAD_TO:o=this.pathT(r,h);break;case St.ARC:h=this.pathA(r);break;case St.CLOSE_PATH:At.pathZ(r)}s.type!==St.CLOSE_PATH?e.push({type:o,points:h,start:{x:n,y:a},pathLength:this.calcLength(n,a,o,h)}):e.push({type:St.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:i}=At.pathM(t).point;e.push(r,i)}pathL(t,e){var{x:r,y:i}=At.pathL(t).point;return e.push(r,i),St.LINE_TO}pathH(t,e){var{x:r,y:i}=At.pathH(t).point;return e.push(r,i),St.LINE_TO}pathV(t,e){var{x:r,y:i}=At.pathV(t).point;return e.push(r,i),St.LINE_TO}pathC(t,e){var{point:r,controlPoint:i,currentPoint:n}=At.pathC(t);e.push(r.x,r.y,i.x,i.y,n.x,n.y)}pathS(t,e){var{point:r,controlPoint:i,currentPoint:n}=At.pathS(t);return e.push(r.x,r.y,i.x,i.y,n.x,n.y),St.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:i}=At.pathQ(t);e.push(r.x,r.y,i.x,i.y)}pathT(t,e){var{controlPoint:r,currentPoint:i}=At.pathT(t);return e.push(r.x,r.y,i.x,i.y),St.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:i,xAxisRotation:n,centp:a,a1:s,ad:o}=At.pathA(t);return 0===i&&o>0&&(o-=2*Math.PI),1===i&&o<0&&(o+=2*Math.PI),[a.x,a.y,e,r,s,o,n,i]}calcLength(t,e,r,i){var n=0,a=null,s=null,o=0;switch(r){case St.LINE_TO:return this.getLineLength(t,e,i[0],i[1]);case St.CURVE_TO:for(n=0,a=this.getPointOnCubicBezier(0,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),o=.01;o<=1;o+=.01)s=this.getPointOnCubicBezier(o,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),n+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return n;case St.QUAD_TO:for(n=0,a=this.getPointOnQuadraticBezier(0,t,e,i[0],i[1],i[2],i[3]),o=.01;o<=1;o+=.01)s=this.getPointOnQuadraticBezier(o,t,e,i[0],i[1],i[2],i[3]),n+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return n;case St.ARC:n=0;var h=i[4],u=i[5],l=i[4]+u,c=Math.PI/180;if(Math.abs(h-l)<c&&(c=Math.abs(h-l)),a=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],h,0),u<0)for(o=h-c;o>l;o-=c)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],o,0),n+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(o=h+c;o<l;o+=c)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],o,0),n+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),n+=this.getLineLength(a.x,a.y,s.x,s.y)}return 0}getPointOnLine(t,e,r,i,n){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,o=(n-r)/(i-e+$),h=Math.sqrt(t*t/(1+o*o));i<e&&(h*=-1);var u=o*h,l=null;if(i===e)l={x:a,y:s+u};else if((s-r)/(a-e+$)===o)l={x:a+h,y:s+u};else{var c,f,g=this.getLineLength(e,r,i,n);if(g<$)return null;var p=(a-e)*(i-e)+(s-r)*(n-r);c=e+(p/=g*g)*(i-e),f=r+p*(n-r);var d=this.getLineLength(a,s,c,f),v=Math.sqrt(t*t-d*d);h=Math.sqrt(v*v/(1+o*o)),i<e&&(h*=-1),l={x:c+h,y:f+(u=o*h)}}return l}getPointOnPath(t){var e=this.getPathLength(),r=0,i=null;if(t<-5e-5||t-5e-5>e)return null;var{dataArray:n}=this;for(var a of n){if(!a||!(a.pathLength<5e-5||r+a.pathLength+5e-5<t)){var s=t-r,o=0;switch(a.type){case St.LINE_TO:i=this.getPointOnLine(s,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case St.ARC:var h=a.points[4],u=a.points[5],l=a.points[4]+u;if(o=h+s/a.pathLength*u,u<0&&o<l||u>=0&&o>l)break;i=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],o,a.points[6]);break;case St.CURVE_TO:(o=s/a.pathLength)>1&&(o=1),i=this.getPointOnCubicBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case St.QUAD_TO:(o=s/a.pathLength)>1&&(o=1),i=this.getPointOnQuadraticBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3])}if(i)return i;break}r+=a.pathLength}return null}getLineLength(t,e,r,i){return Math.sqrt((r-t)*(r-t)+(i-e)*(i-e))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(((t,e)=>e.pathLength>0?t+e.pathLength:t),0)),this.pathLength}getPointOnCubicBezier(t,e,r,i,n,a,s,o,h){return{x:o*G(t)+a*Q(t)+i*Z(t)+e*K(t),y:h*G(t)+s*Q(t)+n*Z(t)+r*K(t)}}getPointOnQuadraticBezier(t,e,r,i,n,a,s){return{x:a*J(t)+i*tt(t)+e*et(t),y:s*J(t)+n*tt(t)+r*et(t)}}getPointOnEllipticalArc(t,e,r,i,n,a){var s=Math.cos(a),o=Math.sin(a),h=r*Math.cos(n),u=i*Math.sin(n);return{x:t+(h*s-u*o),y:e+(h*o+u*s)}}buildEquidistantCache(t,e){var r=this.getPathLength(),i=e||.25,n=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==i){this.equidistantCache={step:n,precision:i,points:[]};for(var a=0,s=0;s<=r;s+=i){var o=this.getPointOnPath(s),h=this.getPointOnPath(s+i);o&&h&&((a+=this.getLineLength(o.x,o.y,h.x,h.y))>=n&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:s}),a-=n))}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var i=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}},image:class extends Tt{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var n=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);t.images.push(this),n?this.loadSvg(i):this.loadImage(i),this.isSvg=n}}loadImage(t){var r=this;return e((function*(){try{var e=yield r.document.createImage(t);r.image=e}catch(t){}r.loaded=!0}))()}loadSvg(t){var r=this;return e((function*(){var e=Dt.exec(t);if(e){var i=e[5];"base64"===e[4]?r.image=atob(i):r.image=decodeURIComponent(i)}else try{var n=yield r.document.fetch(t),a=yield n.text();r.image=a}catch(t){}r.loaded=!0}))()}renderChildren(t){var{document:e,image:r,loaded:i}=this,n=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(i&&r&&s&&o){if(t.save(),t.translate(n,a),this.isSvg){var h=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:o});h.document.documentElement.parent=this,h.render()}else{var u=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:u.width,height:o,desiredHeight:u.height}),this.loaded&&(void 0===u.complete||u.complete)&&t.drawImage(u,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new wt(t,e,t+r,e+i)}},g:_t,symbol:class extends Tt{constructor(){super(...arguments),this.type="symbol"}render(t){}},style:zt,use:class extends Tt{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}path(t){var{element:e}=this;e&&e.path(t)}renderChildren(t){var{document:e,element:r}=this;if(r){var i=r;if("symbol"===r.type&&((i=new Mt(e,null)).attributes.viewBox=new rt(e,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new rt(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new rt(e,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new rt(e,"opacity",this.calculateOpacity())),"svg"===i.type){var n=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);n.hasValue()&&(i.attributes.width=new rt(e,"width",n.getString())),a.hasValue()&&(i.attributes.height=new rt(e,"height",a.getString()))}var s=i.parent;i.parent=this,i.render(t),i.parent=s}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return pt.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}},mask:$t,clipPath:class extends dt{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:i,closePath:n}=t;r&&(r.beginPath=Yt,r.closePath=Yt),Reflect.apply(i,t,[]),this.children.forEach((i=>{if(void 0!==i.path){var a=void 0!==i.elementTransform?i.elementTransform():null;a||(a=pt.fromElement(e,i)),a&&a.apply(t),i.path(t),r&&(r.closePath=n),a&&a.unapply(t)}})),Reflect.apply(n,t,[]),t.clip(),r&&(r.beginPath=i,r.closePath=n)}render(t){}},filter:qt,feDropShadow:class extends dt{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,i,n){}},feMorphology:class extends dt{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,i,n){}},feComposite:class extends dt{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,i,n){}},feColorMatrix:Xt,feGaussianBlur:class extends dt{constructor(t,e,r){super(t,e,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,e,r,i,n){var{document:a,blurRadius:s}=this,o=a.window?a.window.document.body:null,h=t.canvas;h.id=a.getUniqueId(),o&&(h.style.display="none",o.appendChild(h)),R(h,e,r,i,n,s),o&&o.removeChild(h)}},title:class extends dt{constructor(){super(...arguments),this.type="title"}},desc:class extends dt{constructor(){super(...arguments),this.type="desc"}}};function Gt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function Qt(){return Qt=e((function*(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.createElement("img");return e&&(r.crossOrigin="Anonymous"),new Promise(((e,i)=>{r.onload=()=>{e(r)},r.onerror=(t,e,r,n,a)=>{i(a)},r.src=t}))})),Qt.apply(this,arguments)}class Zt{constructor(t){var{rootEmSize:e=12,emSize:r=12,createCanvas:i=Zt.createCanvas,createImage:n=Zt.createImage,anonymousCrossOrigin:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=e,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(n,a),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(t,e){return"boolean"==typeof e?(r,i)=>t(r,"boolean"==typeof i?i:e):t}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:t}=this;return t[t.length-1]}set emSize(t){var{emSizeStack:e}=this;e.push(t)}popEmSize(){var{emSizeStack:t}=this;t.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every((t=>t.loaded))}isFontsLoaded(){return this.fonts.every((t=>t.loaded))}createDocumentElement(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}createElement(t){var e=t.nodeName.replace(/^[^:]+:/,""),r=Zt.elementTypes[e];return void 0!==r?new r(this,t):new vt(this,t)}createTextNode(t){return new Et(this,t)}setViewBox(t){this.screen.setViewBox(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({document:this},t))}}function Kt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function Jt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}Zt.createCanvas=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r},Zt.createImage=function(t){return Qt.apply(this,arguments)},Zt.elementTypes=Wt;class te{constructor(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new ct(r),this.screen=new ht(t,r),this.options=r;var i=new Zt(this,r),n=i.createDocumentElement(e);this.document=i,this.documentElement=n}static from(t,r){var i=arguments;return e((function*(){var e=i.length>2&&void 0!==i[2]?i[2]:{},n=new ct(e),a=yield n.parse(r);return new te(t,a,e)}))()}static fromString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new ct(r).parseFromString(e);return new te(t,i,r)}fork(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return te.from(t,e,Jt(Jt({},this.options),r))}forkString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return te.fromString(t,e,Jt(Jt({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,r=this;return e((function*(){var e=t.length>0&&void 0!==t[0]?t[0]:{};r.start(Jt({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},e)),yield r.ready(),r.stop()}))()}start(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:e,screen:r,options:i}=this;r.start(e,Jt(Jt({enableRedraw:!0},i),t))}stop(){this.screen.stop()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(t,e,r)}}let ee,re,ie,ne,ae,se,oe='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',he=40,ue=document;function le(){ee=1e4,re=1e4,ie=1e4,ne=1e4,ae=0,se=0}function ce(){let t=ue.querySelectorAll(".box > grp, root"),e="";for(let e=0;e<t.length;e++){let r=t[e],i=r.getBoundingClientRect(),n=r.offsetTop,a=n+i.height,s=r.offsetLeft,o=s+i.width;n<ee&&(ee=n),a>re&&(re=a),s<ie&&(ie=s),o>ne&&(ne=o)}for(let r=0;r<t.length;r++){let i=t[r];"ROOT"!==i.tagName&&(e+=fe(i))}e+=function(){let t=ue.querySelector("root"),e=ue.querySelector("root > tpc").getBoundingClientRect(),r=0,i=0,n=ue.querySelector("root > tpc").nodeObj,a=t.offsetTop-ee,s=t.offsetLeft-ie,o=ue.querySelector(".svg2nd");return`<g transform="translate(${he-ie}, ${he-ee})">${o.innerHTML}</g><g id="root" transform="translate(${s+he}, ${a+he})">\n <rect x="${i}" y="${r}" rx="5px" ry="5px" width="${e.width}" height="${e.height}" style="fill: #00aaff;"></rect>\n <text x="${i+15}" y="${r+35}" text-anchor="start" align="top" anchor="start" font-family="微软雅黑" font-size="25px" font-weight="normal" fill="#ffffff">\n ${n.topic}\n </text>\n </g>`}(),ae=re-ee+80,se=ne-ie+80;let r=function(t,e){let r=document.createElementNS("http://www.w3.org/2000/svg","svg");return r.setAttribute("height",t),r.setAttribute("width",e),r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("version","1.2"),r.setAttribute("xlink","http://www.w3.org/1999/xlink"),r}(ae,se);return e=`<rect x="0" y="0" width="${se}" height="${ae}" fill="#f6f6f6"></rect>`+e,r.innerHTML=e,r}function fe(t){let e=t.querySelectorAll("tpc"),r=t.offsetTop-ee,i=t.offsetLeft-ie,n="",a=t.querySelector(".svg3rd");n+=`<g transform="translate(${i+he}, ${r+he})">`,n+=a?a.innerHTML:"";for(let t=0;t<e.length;t++){let r=e[t],i=r.parentNode,a=r.nodeObj;if(a.root)continue;let s=r.getBoundingClientRect(),o=i.offsetTop,h=i.offsetLeft,u=getComputedStyle(r),l=getComputedStyle(i),c=h+parseInt(l.paddingLeft)+parseInt(u.paddingLeft),f=o+parseInt(l.paddingTop)+parseInt(u.paddingTop)+parseInt(u.fontSize),g="";"0px"!=u.borderWidth&&(g=`<rect x="${h+15}" y="${o}" rx="5px" ry="5px" width="${s.width}" height="${s.height}" style="fill: rgba(0,0,0,0); stroke:#444;stroke-width:1px;"></rect>`);let p="";"rgba(0, 0, 0, 0)"!=u.backgroundColor&&(p=`<rect x="${h+15}" y="${o}" rx="5px" ry="5px" width="${s.width}" height="${s.height}" style="fill: ${u.backgroundColor};"></rect>`);let d="";if(a.tags&&a.tags.length){let t=r.querySelectorAll(".tags > span");for(let e=0;e<t.length;e++){let r=t[e],i=r.getBoundingClientRect();d+=`<rect x="${c}" y="${f+4}" rx="5px" ry="5px" width="${i.width}" height="${i.height}" style="fill: #d6f0f8;"></rect>\n <text font-family="微软雅黑" font-size="12px" fill="#276f86" x="${c+4}" y="${f+4+12}">${r.innerHTML}</text>`}}let v="";if(a.icons&&a.icons.length){let t=r.querySelectorAll(".icons > span");for(let e=0;e<t.length;e++){let r=t[e];r.getBoundingClientRect();v+=`\n <tspan>${r.innerHTML}</tspan>`}}n+=`<g id="${a.id}">\n ${g}\n ${p}\n <text x="${c}" y="${f}" text-anchor="start" align="top" anchor="start" font-family="微软雅黑" font-size="${u.fontSize}" font-weight="${u.fontWeight}" fill="${u.color}">\n ${a.topic}\n ${v}\n </text>\n ${d}\n </g>`}return n+="</g>",n}function ge(){return ue.querySelector("root > tpc").innerText}const pe={exportSvg:function(t,e){if(!t)throw new Error("Mind-elixir instance is not presented. ---\x3e exportSvg(instance, fileName)");le(),ue=t.container;let r=ce(),i=URL.createObjectURL(new Blob([oe+r.outerHTML.replace(/ /g," ")])),n=document.createElement("a");n.href=i,n.download=(e||ge())+".svg",n.click()},exportPng:async function(t,e){if(!t)throw new Error("Mind-elixir instance is not presented. ---\x3e exportSvg(instance, fileName)");le(),ue=t.container;let r=ce();const i=document.createElement("canvas");i.style.display="none";const n=i.getContext("2d");(await te.fromString(n,oe+r.outerHTML.replace(/ /g," "))).start();let a=i.toDataURL("image/png"),s=document.createElement("a");s.href=a,s.download=e||ge()+".png",s.click()}}})(),i=i.default})()}));
|