--- /dev/null
+!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).canvg={})}(this,function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){var e={exports:{}};return t(e,e.exports),e.exports}function c(t){try{return!!t()}catch(t){return!0}}function n(t){return a?o.createElement(t):{}}function g(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function l(e,r){try{x(d,e,r)}catch(t){d[e]=r}return r}function u(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++T+E).toString(36)}function h(t){return A(C,t)||(P&&A(M,t)?C[t]=M[t]:C[t]=N("Symbol."+t)),C[t]}var i=function(t){return t&&t.Math==Math&&t},d=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),f=!c(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),p=function(t){return"object"==typeof t?null!==t:"function"==typeof t},o=d.document,a=p(o)&&p(o.createElement),s=!f&&!c(function(){return 7!=Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}),R=function(t){if(!p(t))throw TypeError(String(t)+" is not an object");return t},y=function(t,e){if(!p(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!p(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!p(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!p(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},v=Object.defineProperty,m={f:f?v:function(t,e,r){if(R(t),e=y(e,!0),R(r),s)try{return v(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}},x=f?function(t,e,r){return m.f(t,e,g(1,r))}:function(t,e,r){return t[e]=r,t},b="__core-js_shared__",S=d[b]||l(b,{}),w=r(function(t){(t.exports=function(t,e){return S[t]||(S[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),k={}.hasOwnProperty,A=function(t,e){return k.call(t,e)},T=0,E=Math.random(),P=!!Object.getOwnPropertySymbols&&!c(function(){return!String(Symbol())}),O=P&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,C=w("wks"),M=d.Symbol,N=O?M:M&&M.withoutSetter||u,_={};_[h("toStringTag")]="z";var D="[object z]"===String(_),V=Function.toString;"function"!=typeof S.inspectSource&&(S.inspectSource=function(t){return V.call(t)});var I,L,j,F,z,B,U,H,X=S.inspectSource,Y=d.WeakMap,W="function"==typeof Y&&/native code/.test(X(Y)),G=w("keys"),q=function(t){return G[t]||(G[t]=u(t))},Q={},$=d.WeakMap;U=W?(I=S.state||(S.state=new $),L=I.get,j=I.has,F=I.set,z=function(t,e){return e.facade=t,F.call(I,t,e),e},B=function(t){return L.call(I,t)||{}},function(t){return j.call(I,t)}):(H=q("state"),Q[H]=!0,z=function(t,e){return e.facade=t,x(t,H,e),e},B=function(t){return A(t,H)?t[H]:{}},function(t){return A(t,H)});var Z={set:z,get:B,has:U,enforce:function(t){return U(t)?B(t):z(t,{})},getterFor:function(r){return function(t){var e;if(!p(t)||(e=B(t)).type!==r)throw TypeError("Incompatible receiver, "+r+" required");return e}}},K=r(function(t){var e=Z.get,u=Z.enforce,s=String(String).split("String");(t.exports=function(t,e,r,n){var i=!!n&&!!n.unsafe,o=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||A(r,"name")||x(r,"name",e),(n=u(r)).source||(n.source=s.join("string"==typeof e?e:""))),t!==d?(i?!a&&t[e]&&(o=!0):delete t[e],o?t[e]=r:x(t,e,r)):o?t[e]=r:l(e,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||X(this)})}),J={}.toString,tt=function(t){return J.call(t).slice(8,-1)},et=h("toStringTag"),rt="Arguments"==tt(function(){return arguments}()),nt=D?tt: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),et))?t:rt?tt(e):"Object"==(t=tt(e))&&"function"==typeof e.callee?"Arguments":t};D||K(Object.prototype,"toString",D?{}.toString:function(){return"[object "+nt(this)+"]"},{unsafe:!0});function it(t){return Tt(Et(t))}function ot(t){return"function"==typeof t?t:void 0}function at(t,e){return arguments.length<2?ot(Ct[t])||ot(d[t]):Ct[t]&&Ct[t][e]||d[t]&&d[t][e]}function ut(t){return 0<t?Dt(_t(t),9007199254740991):0}function st(t,e){return(t=_t(t))<0?Vt(t+e,0):It(t,e)}function ct(t,e){var r,n=it(t),i=0,o=[];for(r in n)!A(Q,r)&&A(n,r)&&o.push(r);for(;e.length>i;)A(n,r=e[i++])&&(~Ft(o,r)||o.push(r));return o}function lt(t,e){var r,n,i,o,a=t.target,u=t.global,s=t.stat;if(r=u?d:s?d[a]||l(a,{}):(d[a]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(o=Kt(r,n))&&o.value:r[n],!Zt(u?n:a+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;!function(t,e){for(var r=Xt(e),n=m.f,i=Ot.f,o=0;o<r.length;o++){var a=r[o];A(t,a)||n(t,a,i(e,a))}}(i,o)}(t.sham||o&&o.sham)&&x(i,"sham",!0),K(r,n,i,t)}}function ht(t,e,r){for(var n in e)K(t,n,e[n],r);return t}function ft(t,e,r){t&&!A(t=r?t:t.prototype,ee)&&te(t,ee,{configurable:!0,value:e})}function pt(t){var e=at(t),t=m.f;f&&e&&!e[re]&&t(e,re,{configurable:!0,get:function(){return this}})}function yt(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}function gt(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}function dt(t){return void 0!==t&&(ne.Array===t||oe[ie]===t)}function vt(n,i,t){if(yt(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)}}function mt(t){if(null!=t)return t[ae]||t["@@iterator"]||ne[nt(t)]}function xt(t){var e=t.return;return void 0!==e&&R(e.call(t)).value}function bt(t,e){this.stopped=t,this.result=e}function St(t,e,r){function n(t){return o&&xt(o),new bt(!0,t)}function i(t){return f?(R(t),y?g(t[0],t[1],n):g(t[0],t[1])):y?g(t,n):g(t)}var o,a,u,s,c,l,h=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),g=vt(e,h,1+f+y);if(p)o=t;else{if("function"!=typeof(p=mt(t)))throw TypeError("Target is not iterable");if(dt(p)){for(a=0,u=ut(t.length);a<u;a++)if((s=i(t[a]))&&s instanceof bt)return s;return new bt(!1)}o=p.call(t)}for(c=o.next;!(l=c.call(o)).done;){try{s=i(l.value)}catch(t){throw xt(o),t}if("object"==typeof s&&s&&s instanceof bt)return s}return new bt(!1)}var wt={}.propertyIsEnumerable,kt=Object.getOwnPropertyDescriptor,At={f:kt&&!wt.call({1:2},1)?function(t){t=kt(this,t);return!!t&&t.enumerable}:wt},Rt="".split,Tt=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==tt(t)?Rt.call(t,""):Object(t)}:Object,Et=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},Pt=Object.getOwnPropertyDescriptor,Ot={f:f?Pt:function(t,e){if(t=it(t),e=y(e,!0),s)try{return Pt(t,e)}catch(t){}if(A(t,e))return g(!At.f.call(t,e),t[e])}},Ct=d,Mt=Math.ceil,Nt=Math.floor,_t=function(t){return isNaN(t=+t)?0:(0<t?Nt:Mt)(t)},Dt=Math.min,Vt=Math.max,It=Math.min,Lt=function(u){return function(t,e,r){var n,i=it(t),o=ut(i.length),a=st(r,o);if(u&&e!=e){for(;a<o;)if((n=i[a++])!=n)return!0}else for(;a<o;a++)if((u||a in i)&&i[a]===e)return u||a||0;return!u&&-1}},jt={includes:Lt(!0),indexOf:Lt(!1)},Ft=jt.indexOf,zt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bt=zt.concat("length","prototype"),Ut={f:Object.getOwnPropertyNames||function(t){return ct(t,Bt)}},Ht={f:Object.getOwnPropertySymbols},Xt=at("Reflect","ownKeys")||function(t){var e=Ut.f(R(t)),r=Ht.f;return r?e.concat(r(t)):e},Yt=/#|\.prototype\./,Wt=function(t,e){t=qt[Gt(t)];return t==$t||t!=Qt&&("function"==typeof e?c(e):!!e)},Gt=Wt.normalize=function(t){return String(t).replace(Yt,".").toLowerCase()},qt=Wt.data={},Qt=Wt.NATIVE="N",$t=Wt.POLYFILL="P",Zt=Wt,Kt=Ot.f,Jt=d.Promise,te=m.f,ee=h("toStringTag"),re=h("species"),ne={},ie=h("iterator"),oe=Array.prototype,ae=h("iterator"),ue=h("iterator"),se=!1;try{var ce=0,le={next:function(){return{done:!!ce++}},return:function(){se=!0}};le[ue]=function(){return this},Array.from(le,function(){throw 2})}catch(t){}function he(t,e){var r;return void 0===(t=R(t).constructor)||null==(r=R(t)[ge])?e:yt(r)}function fe(t){return function(){Pe(t)}}var pe,ye=function(t,e){if(!e&&!se)return!1;var r=!1;try{var n={};n[ue]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},ge=h("species"),de=at("document","documentElement"),ve=at("navigator","userAgent")||"",me=/(iphone|ipod|ipad).*applewebkit/i.test(ve),xe="process"==tt(d.process),be=d.location,Se=d.setImmediate,we=d.clearImmediate,ke=d.process,Ae=d.MessageChannel,Re=d.Dispatch,Te=0,Ee={},Pe=function(t){var e;Ee.hasOwnProperty(t)&&(e=Ee[t],delete Ee[t],e())},Oe=function(t){Pe(t.data)},Ce=function(t){d.postMessage(t+"",be.protocol+"//"+be.host)};Se&&we||(Se=function(t){for(var e=[],r=1;r<arguments.length;)e.push(arguments[r++]);return Ee[++Te]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},pe(Te),Te},we=function(t){delete Ee[t]},xe?pe=function(t){ke.nextTick(fe(t))}:Re&&Re.now?pe=function(t){Re.now(fe(t))}:Ae&&!me?(Ir=(_r=new Ae).port2,_r.port1.onmessage=Oe,pe=vt(Ir.postMessage,Ir,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts&&be&&"file:"!==be.protocol&&!c(Ce)?(pe=Ce,d.addEventListener("message",Oe,!1)):pe="onreadystatechange"in n("script")?function(t){de.appendChild(n("script")).onreadystatechange=function(){de.removeChild(this),Pe(t)}}:function(t){setTimeout(fe(t),0)});var Me,Ne,_e,De,Ve,Ie,Le,je,Fe={set:Se,clear:we},ze=/web0s(?!.*chrome)/i.test(ve),i=Ot.f,Be=Fe.set,b=d.MutationObserver||d.WebKitMutationObserver,O=d.document,Ue=d.process,_=d.Promise,Y=i(d,"queueMicrotask"),w=Y&&Y.value;w||(Me=function(){var t,e;for(xe&&(t=Ue.domain)&&t.exit();Ne;){e=Ne.fn,Ne=Ne.next;try{e()}catch(t){throw Ne?De():_e=void 0,t}}_e=void 0,t&&t.enter()},De=me||xe||ze||!b||!O?_&&_.resolve?(Le=_.resolve(void 0),je=Le.then,function(){je.call(Le,Me)}):xe?function(){Ue.nextTick(Me)}:function(){Be.call(d,Me)}:(Ve=!0,Ie=O.createTextNode(""),new b(Me).observe(Ie,{characterData:!0}),function(){Ie.data=Ve=!Ve}));function He(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=yt(r),this.reject=yt(n)}function Xe(t,e){return R(t),p(e)&&e.constructor===t?e:((0,(t=We.f(t)).resolve)(e),t.promise)}var Ye=w||function(t){t={fn:t,next:void 0};_e&&(_e.next=t),Ne||(Ne=t,De()),_e=t},We={f:function(t){return new He(t)}},Ge=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},W=d.process,$=W&&W.versions,D=$&&$.v8;D?xn=(dn=D.split("."))[0]+dn[1]:ve&&(!(dn=ve.match(/Edge\/(\d+)/))||74<=dn[1])&&(dn=ve.match(/Chrome\/(\d+)/))&&(xn=dn[1]);var qe,Qe,$e,Ze,Ke=xn&&+xn,Je=Fe.set,tr=h("species"),er="Promise",rr=Z.get,nr=Z.set,ir=Z.getterFor(er),or=Jt,ar=d.TypeError,ur=d.document,sr=d.process,cr=at("fetch"),lr=We.f,hr=lr,fr=!!(ur&&ur.createEvent&&d.dispatchEvent),pr="function"==typeof PromiseRejectionEvent,yr="unhandledrejection",wt=Zt(er,function(){if(X(or)===String(or)){if(66===Ke)return!0;if(!xe&&!pr)return!0}if(51<=Ke&&/native code/.test(or))return!1;function t(t){t(function(){},function(){})}var e=or.resolve(1);return(e.constructor={})[tr]=t,!(e.then(function(){})instanceof t)}),Lt=wt||!ye(function(t){or.all(t).catch(function(){})}),gr=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},dr=function(f,p){var y;f.notified||(f.notified=!0,y=f.reactions,Ye(function(){for(var n,t=f.value,e=1==f.state,r=0;y.length>r;){var i,o,a,u=y[r++],s=e?u.ok:u.fail,c=u.resolve,l=u.reject,h=u.domain;try{s?(e||(2===f.rejection&&function(e){Je.call(d,function(){var t=e.facade;xe?sr.emit("rejectionHandled",t):vr("rejectionhandled",t,e.value)})}(f),f.rejection=1),!0===s?i=t:(h&&h.enter(),i=s(t),h&&(h.exit(),a=!0)),i===u.promise?l(ar("Promise-chain cycle")):(o=gr(i))?o.call(i,c,l):c(i)):l(t)}catch(t){h&&!a&&h.exit(),l(t)}}f.reactions=[],f.notified=!1,p&&!f.rejection&&(n=f,Je.call(d,function(){var t,e=n.facade,r=n.value;if(mr(n)&&(t=Ge(function(){xe?sr.emit("unhandledRejection",r,e):vr(yr,e,r)}),n.rejection=xe||mr(n)?2:1,t.error))throw t.value}))}))},vr=function(t,e,r){var n,i;fr?((n=ur.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),d.dispatchEvent(n)):n={promise:e,reason:r},!pr&&(i=d["on"+t])?i(n):t===yr&&function(t,e){var r=d.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},mr=function(t){return 1!==t.rejection&&!t.parent},xr=function(e,r,n){return function(t){e(r,t,n)}},br=function(t,e,r){t.done||(t.done=!0,(t=r?r:t).value=e,t.state=2,dr(t,!0))},Sr=function(r,t,e){if(!r.done){r.done=!0,e&&(r=e);try{if(r.facade===t)throw ar("Promise can't be resolved itself");var n=gr(t);n?Ye(function(){var e={done:!1};try{n.call(t,xr(Sr,e,r),xr(br,e,r))}catch(t){br(e,t,r)}}):(r.value=t,r.state=1,dr(r,!1))}catch(t){br({done:!1},t,r)}}};wt&&(or=function(t){gt(this,or,er),yt(t),qe.call(this);var e=rr(this);try{t(xr(Sr,e),xr(br,e))}catch(t){br(e,t)}},(qe=function(t){nr(this,{type:er,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ht(or.prototype,{then:function(t,e){var r=ir(this),n=lr(he(this,or));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=xe?sr.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&dr(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Qe=function(){var t=new qe,e=rr(t);this.promise=t,this.resolve=xr(Sr,e),this.reject=xr(br,e)},We.f=lr=function(t){return t===or||t===$e?new Qe:hr(t)},"function"==typeof Jt&&(Ze=Jt.prototype.then,K(Jt.prototype,"then",function(t,e){var r=this;return new or(function(t,e){Ze.call(r,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof cr&<({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Xe(or,cr.apply(d,arguments))}}))),lt({global:!0,wrap:!0,forced:wt},{Promise:or}),ft(or,er,!1),pt(er),$e=at(er),lt({target:er,stat:!0,forced:wt},{reject:function(t){var e=lr(this);return e.reject.call(void 0,t),e.promise}}),lt({target:er,stat:!0,forced:wt},{resolve:function(t){return Xe(this,t)}}),lt({target:er,stat:!0,forced:Lt},{all:function(t){var u=this,e=lr(u),s=e.resolve,c=e.reject,r=Ge(function(){var n=yt(u.resolve),i=[],o=0,a=1;St(t,function(t){var e=o++,r=!1;i.push(void 0),a++,n.call(u,t).then(function(t){r||(r=!0,i[e]=t,--a||s(i))},c)}),--a||s(i)});return r.error&&c(r.value),e.promise},race:function(t){var r=this,n=lr(r),i=n.reject,e=Ge(function(){var e=yt(r.resolve);St(t,function(t){e.call(r,t).then(n.resolve,i)})});return e.error&&i(e.value),n.promise}});var wr=Ot.f;lt({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=wr(R(t),e);return!(r&&!r.configurable)&&delete t[e]}});var kr=r(function(t){var e=function(a){var s,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(a){o=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i,o,a,u,e=e&&e.prototype instanceof d?e:d,e=Object.create(e.prototype),n=new R(n||[]);return e._invoke=(i=t,o=r,a=n,u=h,function(t,e){if(u===p)throw new Error("Generator is already running");if(u===y){if("throw"===t)throw e;return E()}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===s){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=s,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;return n?n.done?(r[e.resultName]=n.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=s),r.delegate=null,g):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,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(u===h)throw u=y,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);u=p;n=l(i,o,a);if("normal"===n.type){if(u=a.done?y:f,n.arg===g)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(u=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=u;var h="suspendedStart",f="suspendedYield",p="executing",y="completed",g={};function d(){}function v(){}function m(){}var x={};x[n]=function(){return this};e=Object.getPrototypeOf,e=e&&e(e(T([])));e&&e!==t&&c.call(e,n)&&(x=e);var b=m.prototype=d.prototype=Object.create(x);function S(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function w(a,u){var e;this._invoke=function(r,n){function t(){return new u(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")?u.resolve(r.__await).then(function(t){e("next",t,n,i)},function(t){e("throw",t,n,i)}):u.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 k(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function T(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=s,t.done=!0,t};return t.next=t}}return{next:E}}function E(){return{value:s,done:!0}}return((v.prototype=b.constructor=m).constructor=v).displayName=o(m,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===v||"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}},S(w.prototype),w.prototype[r]=function(){return this},a.AsyncIterator=w,a.async=function(t,e,r,n,i){void 0===i&&(i=Promise);var o=new w(u(t,e,r,n),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},S(b),o(b,i,"Generator"),b[n]=function(){return this},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=T,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&c.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=s)},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=s),!!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"),u=c.call(i,"finallyLoc");if(a&&u){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(!u)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),A(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,A(r)),n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=s),g}},a}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}});function Ar(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return r(t),0}u.done?e(s):Promise.resolve(s).then(n,i)}function Rr(u){return function(){var t=this,a=arguments;return new Promise(function(e,r){var n=u.apply(t,a);function i(t){Ar(n,e,r,i,o,"next",t)}function o(t){Ar(n,e,r,i,o,"throw",t)}i(void 0)})}}function Tr(t){return Object(Et(t))}function Er(t,e){var r;return new(void 0===(r=Or(t)&&("function"==typeof(r=t.constructor)&&(r===Array||Or(r.prototype))||p(r)&&null===(r=r[Cr]))?void 0:r)?Array:r)(0===e?0:e)}function Pr(t){throw t}var Wt=Object.freeze({__proto__:null,offscreen:function(){var t=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).DOMParser,e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas:function(t,e){return new OffscreenCanvas(t,e)},createImage:function(n){return Rr(kr.mark(function t(){var e,r;return kr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(n);case 2:return e=t.sent,t.next=5,e.blob();case 5:return r=t.sent,t.next=8,createImageBitmap(r);case 8:return r=t.sent,t.abrupt("return",r);case 10:case"end":return t.stop()}},t)}))()}};return"undefined"==typeof DOMParser&&void 0!==t||Reflect.deleteProperty(e,"DOMParser"),e},node:function(t){var e=t.DOMParser,r=t.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:t.fetch,createCanvas:r.createCanvas,createImage:r.loadImage}}}),Or=Array.isArray||function(t){return"Array"==tt(t)},Cr=h("species"),Mr=[].push,le=function(f){var p=1==f,y=2==f,g=3==f,d=4==f,v=6==f,m=7==f,x=5==f||v;return function(t,e,r,n){for(var i,o,a=Tr(t),u=Tt(a),s=vt(e,r,3),c=ut(u.length),l=0,n=n||Er,h=p?n(t,c):y||m?n(t,0):void 0;l<c;l++)if((x||l in u)&&(o=s(i=u[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:Mr.call(h,i)}else switch(f){case 4:return!1;case 7:Mr.call(h,i)}return v?-1:g||d?d:h}},Ae={forEach:le(0),map:le(1),filter:le(2),some:le(3),every:le(4),find:le(5),findIndex:le(6),filterOut:le(7)},Nr=h("species"),_r=function(e){return 51<=Ke||!c(function(){var t=[];return(t.constructor={})[Nr]=function(){return{foo:1}},1!==t[e](Boolean).foo})},Dr=Object.defineProperty,Vr={},Ir=function(t,e){if(A(Vr,t))return Vr[t];var r=[][t],n=!!A(e=e||{},"ACCESSORS")&&e.ACCESSORS,i=A(e,0)?e[0]:Pr,o=A(e,1)?e[1]:void 0;return Vr[t]=!!r&&!c(function(){if(n&&!f)return 1;var t={length:-1};n?Dr(t,1,{enumerable:!0,get:Pr}):t[1]=1,r.call(t,i,o)})},Lr=Ae.map,Ce=_r("map"),Oe=Ir("map");lt({target:"Array",proto:!0,forced:!Ce||!Oe},{map:function(t){return Lr(this,t,1<arguments.length?arguments[1]:void 0)}});var jr="\t\n\v\f\r \u2028\u2029\ufeff",Se="["+jr+"]",Fr=RegExp("^"+Se+Se+"*"),zr=RegExp(Se+Se+"*$"),we=function(e){return function(t){t=String(Et(t));return 1&e&&(t=t.replace(Fr,"")),t=2&e?t.replace(zr,""):t}},i={start:we(1),end:we(2),trim:we(3)},Br=i.trim,Ur=d.parseFloat,Y=1/Ur(jr+"-0")!=-1/0?function(t){var e=Br(String(t)),t=Ur(e);return 0===t&&"-"==e.charAt(0)?-0:t}:Ur;lt({global:!0,forced:parseFloat!=Y},{parseFloat:Y});function Hr(){var t=R(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}function Xr(t,e){return RegExp(t,e)}var me={UNSUPPORTED_Y:c(function(){var t=Xr("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),BROKEN_CARET:c(function(){var t=Xr("^r","gy");return t.lastIndex=2,null!=t.exec("str")})},Yr=RegExp.prototype.exec,Wr=String.prototype.replace,ze=Yr,Gr=(_=/b*/g,Yr.call(O=/a/,"a"),Yr.call(_,"a"),0!==O.lastIndex||0!==_.lastIndex),qr=me.UNSUPPORTED_Y||me.BROKEN_CARET,Qr=void 0!==/()??/.exec("")[1],$r=ze=Gr||Qr||qr?function(t){var e,r,n,i,o=this,a=qr&&o.sticky,u=Hr.call(o),s=o.source,c=0,l=t;return a&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),l=String(t).slice(o.lastIndex),0<o.lastIndex&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(s="(?: "+s+")",l=" "+l,c++),r=new RegExp("^(?:"+s+")",u)),Qr&&(r=new RegExp("^"+s+"$(?!\\s)",u)),Gr&&(e=o.lastIndex),n=Yr.call(a?r:o,l),a?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=o.lastIndex,o.lastIndex+=n[0].length):o.lastIndex=0:Gr&&n&&(o.lastIndex=o.global?n.index+n[0].length:e),Qr&&n&&1<n.length&&Wr.call(n[0],r,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)}),n}:ze;lt({target:"RegExp",proto:!0,forced:/./.exec!==$r},{exec:$r});function Zr(t,e,r){return e+(r?on(t,e).length:1)}function Kr(t,e){var r=t.exec;if("function"==typeof r){r=r.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==tt(t))throw TypeError("RegExp#exec called on incompatible receiver");return $r.call(t,e)}var Jr=h("species"),tn=!c(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),en="$0"==="a".replace(/./,"$0"),b=h("replace"),rn=!!/./[b]&&""===/./[b]("a","$0"),nn=!c(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};t="ab".split(t);return 2!==t.length||"a"!==t[0]||"b"!==t[1]}),w=function(r,t,e,n){var o,i,a=h(r),u=!c(function(){var t={};return t[a]=function(){return 7},7!=""[r](t)}),s=u&&!c(function(){var t=!1,e=/a/;return"split"===r&&((e={}).constructor={},e.constructor[Jr]=function(){return e},e.flags="",e[a]=/./[a]),e.exec=function(){return t=!0,null},e[a](""),!t});u&&s&&("replace"!==r||tn&&en&&!rn)&&("split"!==r||nn)||(o=/./[a],e=(s=e(a,""[r],function(t,e,r,n,i){return e.exec===$r?u&&!i?{done:!0,value:o.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}},{REPLACE_KEEPS_$0:en,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:rn}))[0],i=s[1],K(String.prototype,r,e),K(RegExp.prototype,a,2==t?function(t,e){return i.call(t,this,e)}:function(t){return i.call(t,this)})),n&&x(RegExp.prototype[a],"sham",!0)},W=function(o){return function(t,e){var r,n=String(Et(t)),i=_t(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}},$={codeAt:W(!1),charAt:W(!0)},on=$.charAt;w("match",1,function(n,s,c){return[function(t){var e=Et(this),r=null==t?void 0:t[n];return void 0!==r?r.call(t,e):new RegExp(t)[n](String(e))},function(t){var e=c(s,t,this);if(e.done)return e.value;var r=R(t),n=String(this);if(!r.global)return Kr(r,n);for(var i=r.unicode,o=[],a=r.lastIndex=0;null!==(u=Kr(r,n));){var u=String(u[0]);""===(o[a]=u)&&(r.lastIndex=Zr(n,ut(r.lastIndex),i)),a++}return 0===a?null:o}]});var an=Math.floor,un="".replace,sn=/\$([$&'`]|\d\d?|<[^>]*>)/g,cn=/\$([$&'`]|\d\d?)/g,ln=Math.max,hn=Math.min;w("replace",2,function(i,b,S,t){var w=t.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,k=t.REPLACE_KEEPS_$0,A=w?"$":"$0";return[function(t,e){var r=Et(this),n=null==t?void 0:t[i];return void 0!==n?n.call(t,r,e):b.call(String(r),t,e)},function(t,e){if(!w&&k||"string"==typeof e&&-1===e.indexOf(A)){var r=S(b,t,this,e);if(r.done)return r.value}var n=R(t),i=String(this),o="function"==typeof e;o||(e=String(e));var a,u=n.global;u&&(a=n.unicode,n.lastIndex=0);for(var s=[];;){var c=Kr(n,i);if(null===c)break;if(s.push(c),!u)break;""===String(c[0])&&(n.lastIndex=Zr(i,ut(n.lastIndex),a))}for(var l,h="",f=0,p=0;p<s.length;p++){for(var c=s[p],y=String(c[0]),g=ln(hn(_t(c.index),i.length),0),d=[],v=1;v<c.length;v++)d.push(void 0===(l=c[v])?l:String(l));var m,x=c.groups,x=o?(m=[y].concat(d,g,i),void 0!==x&&m.push(x),String(e.apply(void 0,m))):function(o,a,u,s,c,t){var l=u+o.length,h=s.length,e=cn;return void 0!==c&&(c=Tr(c),e=sn),un.call(t,e,function(t,e){var r;switch(e.charAt(0)){case"$":return"$";case"&":return o;case"`":return a.slice(0,u);case"'":return a.slice(l);case"<":r=c[e.slice(1,-1)];break;default:var n=+e;if(0==n)return t;if(h<n){var i=an(n/10);return 0!==i&&i<=h?void 0===s[i-1]?e.charAt(1):s[i-1]+e.charAt(1):t}r=s[n-1]}return void 0===r?"":r})}(y,i,g,d,x,e);f<=g&&(h+=i.slice(f,g)+x,f=g+y.length)}return h+i.slice(f)}]});function fn(t){var e;return p(t)&&(void 0!==(e=t[yn])?!!e:"RegExp"==tt(t))}function pn(t){if(fn(t))throw TypeError("The method doesn't accept regular expressions");return t}var yn=h("match"),gn=h("match"),D=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[gn]=!1,"/./"[e](r)}catch(e){}}return!1},dn=Ot.f,vn="".startsWith,mn=Math.min,ve=D("startsWith"),xn=!(ve||(!(Ci=dn(String.prototype,"startsWith"))||Ci.writable));function bn(t){return t.replace(/(?!\u3000)\s+/gm," ")}function Sn(t){return t.replace(/^[\n \t]+/,"")}function wn(t){return t.replace(/[\n \t]+$/,"")}function kn(t){return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}lt({target:"String",proto:!0,forced:!xn&&!ve},{startsWith:function(t){var e=String(Et(this));pn(t);var r=ut(mn(1<arguments.length?arguments[1]:void 0,e.length)),t=String(t);return vn?vn.call(e,t,r):e.slice(r,r+t.length)===t}});var An=/^[A-Z-]+$/;function Rn(t){return An.test(t)?t.toLowerCase():t}function Tn(t){t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return t[2]||t[3]||t[4]}function En(t){if(!t.startsWith("rgb"))return t;var r=3;return t.replace(/\d+(\.\d+)?/g,function(t,e){return r--&&e?String(Math.round(parseFloat(t))):t})}var Fe=function(t,e){var r=[][t];return!!r&&c(function(){r.call(null,e||function(){throw 1},1)})},Pn=[].join,Jt=Tt!=Object,wt=Fe("join",",");lt({target:"Array",proto:!0,forced:Jt||!wt},{join:function(t){return Pn.call(it(this),void 0===t?",":t)}});function On(t,e){if(t){if("string"==typeof t)return Cn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(r="Object"===r&&t.constructor?t.constructor.name:r)||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cn(t,e):void 0}}var Cn=function(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},Mn=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(i)throw o}}return r}}(t,e)||On(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.")}()},Nn=/(\[[^\]]+\])/g,_n=/(#[^\s+>~.[:]+)/g,Dn=/(\.[^\s+>~.[:]+)/g,Vn=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,In=/(:[\w-]+\([^)]*\))/gi,Ln=/(:[^\s+>~.[:]+)/g,jn=/([^\s+>~.[:]+)/g;function Fn(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}function zn(t){var e=[0,0,0],t=Fn(r=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),Nn),t=Mn(t,2),r=t[0],n=t[1];e[1]+=n;t=Fn(r,_n),t=Mn(t,2);r=t[0],n=t[1],e[0]+=n;t=Fn(r,Dn),t=Mn(t,2);r=t[0],n=t[1],e[1]+=n;t=Fn(r,Vn),t=Mn(t,2);r=t[0],n=t[1],e[2]+=n;t=Fn(r,In),t=Mn(t,2);r=t[0],n=t[1],e[1]+=n;t=Fn(r,Ln),t=Mn(t,2);r=t[0],n=t[1],e[1]+=n;t=Fn(r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),jn),t=Mn(t,2);return r=t[0],n=t[1],e[2]+=n,e.join("")}var Bn=1e-8;function Un(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function Hn(t,e){return(t[0]*e[0]+t[1]*e[1])/(Un(t)*Un(e))}function Xn(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Hn(t,e))}function Yn(t){return t*t*t}function Wn(t){return 3*t*t*(1-t)}function Gn(t){return 3*t*(1-t)*(1-t)}function qn(t){return(1-t)*(1-t)*(1-t)}function Qn(t){return t*t}function $n(t){return 2*t*(1-t)}function Zn(t){return(1-t)*(1-t)}function Kn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ti(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),Object.defineProperty(t,n.key,n)}}function ei(t,e,r){return e&&ti(t.prototype,e),r&&ti(t,r),t}function ri(t,e,r){(e=y(e))in t?m.f(t,e,g(0,r)):t[e]=r}var ni=h("isConcatSpreadable"),ii=9007199254740991,oi="Maximum allowed index exceeded",Lt=51<=Ke||!c(function(){var t=[];return t[ni]=!1,t.concat()[0]!==t}),le=_r("concat");lt({target:"Array",proto:!0,forced:!Lt||!le},{concat:function(t){for(var e,r,n,i=Tr(this),o=Er(i,0),a=0,u=-1,s=arguments.length;u<s;u++)if(function(t){if(!p(t))return!1;var e=t[ni];return void 0!==e?!!e:Or(t)}(n=-1===u?i:arguments[u])){if(a+(r=ut(n.length))>ii)throw TypeError(oi);for(e=0;e<r;e++,a++)e in n&&ri(o,a,n[e])}else{if(ii<=a)throw TypeError(oi);ri(o,a++,n)}return o.length=a,o}});var ai=Ae.every,Ce=Fe("every"),Oe=Ir("every");lt({target:"Array",proto:!0,forced:!Ce||!Oe},{every:function(t){return ai(this,t,1<arguments.length?arguments[1]:void 0)}});var Se=function(c){return function(t,e,r,n){yt(e);var i=Tr(t),o=Tt(i),a=ut(i.length),u=c?a-1:0,s=c?-1:1;if(r<2)for(;;){if(u in o){n=o[u],u+=s;break}if(u+=s,c?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;c?0<=u:u<a;u+=s)u in o&&(n=e(n,o[u],u,i));return n}},ui=[Se(!1),Se(!0)][0],we=Fe("reduce"),Y=Ir("reduce",{1:0});lt({target:"Array",proto:!0,forced:!we||!Y||!xe&&79<Ke&&Ke<83},{reduce:function(t){return ui(this,t,arguments.length,1<arguments.length?arguments[1]:void 0)}});var O=Ot.f,si="".endsWith,ci=Math.min,_=D("endsWith"),me=!(_||(!(Bo=O(String.prototype,"endsWith"))||Bo.writable));lt({target:"String",proto:!0,forced:!me&&!_},{endsWith:function(t){var e=String(Et(this));pn(t);var r=1<arguments.length?arguments[1]:void 0,n=ut(e.length),n=void 0===r?n:ci(ut(r),n),t=String(t);return si?si.call(e,t,n):e.slice(n-t.length,n)===t}});var li=[].push,hi=Math.min,fi=4294967295,pi=!c(function(){return!RegExp(fi,"y")});w("split",2,function(i,y,g){var d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(t,e){var r=String(Et(this)),n=void 0===e?fi:e>>>0;if(0==n)return[];if(void 0===t)return[r];if(!fn(t))return y.call(r,t,n);for(var i,o,a,u=[],e=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,c=new RegExp(t.source,e+"g");(i=$r.call(c,r))&&!((o=c.lastIndex)>s&&(u.push(r.slice(s,i.index)),1<i.length&&i.index<r.length&&li.apply(u,i.slice(1)),a=i[0].length,s=o,u.length>=n));)c.lastIndex===i.index&&c.lastIndex++;return s===r.length?!a&&c.test("")||u.push(""):u.push(r.slice(s)),u.length>n?u.slice(0,n):u}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:y.call(this,t,e)}:y;return[function(t,e){var r=Et(this),n=null==t?void 0:t[i];return void 0!==n?n.call(t,r,e):d.call(String(r),t,e)},function(t,e){var r=g(d,t,this,e,d!==y);if(r.done)return r.value;var n=R(t),i=String(this),r=he(n,RegExp),o=n.unicode,t=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(pi?"y":"g"),a=new r(pi?n:"^(?:"+n.source+")",t),u=void 0===e?fi:e>>>0;if(0==u)return[];if(0===i.length)return null===Kr(a,i)?[i]:[];for(var s=0,c=0,l=[];c<i.length;){a.lastIndex=pi?c:0;var h,f=Kr(a,pi?i:i.slice(c));if(null===f||(h=hi(ut(a.lastIndex+(pi?0:c)),i.length))===s)c=Zr(i,c,o);else{if(l.push(i.slice(s,c)),l.length===u)return l;for(var p=1;p<=f.length-1;p++)if(l.push(f[p]),l.length===u)return l;c=s=h}}return l.push(i.slice(s)),l}]},!pi);ze="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function yi(){throw new Error("setTimeout has not been defined")}function gi(){throw new Error("clearTimeout has not been defined")}var di=yi,vi=gi;function mi(e){if(di===setTimeout)return setTimeout(e,0);if((di===yi||!di)&&setTimeout)return di=setTimeout,setTimeout(e,0);try{return di(e,0)}catch(t){try{return di.call(null,e,0)}catch(t){return di.call(this,e,0)}}}"function"==typeof ze.setTimeout&&(di=setTimeout),"function"==typeof ze.clearTimeout&&(vi=clearTimeout);var xi,bi=[],Si=!1,wi=-1;function ki(){Si&&xi&&(Si=!1,xi.length?bi=xi.concat(bi):wi=-1,bi.length&&Ai())}function Ai(){if(!Si){var t=mi(ki);Si=!0;for(var e=bi.length;e;){for(xi=bi,bi=[];++wi<e;)xi&&xi[wi].run();wi=-1,e=bi.length}xi=null,Si=!1,function(e){if(vi===clearTimeout)return clearTimeout(e);if((vi===gi||!vi)&&clearTimeout)return vi=clearTimeout,clearTimeout(e);try{vi(e)}catch(t){try{return vi.call(null,e)}catch(t){return vi.call(this,e)}}}(t)}}function Ri(t,e){this.fun=t,this.array=e}function Ti(){}Ri.prototype.run=function(){this.fun.apply(null,this.array)};for(var Ei,Pi,Oi,b=Ti,W=Ti,dn=Ti,Ci=Ti,xn=Ti,ve=Ti,Jt=Ti,Mi=ze.performance||{},Ni=Mi.now||Mi.mozNow||Mi.msNow||Mi.oNow||Mi.webkitNow||function(){return(new Date).getTime()},_i=new Date,Di={nextTick:function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];bi.push(new Ri(t,e)),1!==bi.length||Si||mi(Ai)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:b,addListener:W,once:dn,off:Ci,removeListener:xn,removeAllListeners:ve,emit:Jt,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*Ni.call(Mi),r=Math.floor(e),e=Math.floor(e%1*1e9);return t&&(r-=t[0],(e-=t[1])<0&&(r--,e+=1e9)),[r,e]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-_i)/1e3}},Vi=r(function(a){!function(){var t,e,r,n,i,o;"undefined"!=typeof performance&&null!==performance&&performance.now?a.exports=function(){return performance.now()}:null!=Di&&Di.hrtime?(a.exports=function(){return(t()-i)/1e6},e=Di.hrtime,n=(t=function(){var t;return 1e9*(t=e())[0]+t[1]})(),o=1e9*Di.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(e)}),Ii="undefined"==typeof window?e:window,Li=["moz","webkit"],ji="AnimationFrame",Fi=Ii["request"+ji],zi=Ii["cancel"+ji]||Ii["cancelRequest"+ji],Bi=0;!Fi&&Bi<Li.length;Bi++)Fi=Ii[Li[Bi]+"Request"+ji],zi=Ii[Li[Bi]+"Cancel"+ji]||Ii[Li[Bi]+"CancelRequest"+ji];Fi&&zi||(Pi=Ei=0,Oi=[],Fi=function(t){var e,r;return 0===Oi.length&&(e=Vi(),r=Math.max(0,16.666666666666668-(e-Ei)),Ei=r+e,setTimeout(function(){for(var t=Oi.slice(0),e=Oi.length=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(Ei)}catch(t){setTimeout(function(){throw t},0)}},Math.round(r))),Oi.push({handle:++Pi,callback:t,cancelled:!1}),Pi},zi=function(t){for(var e=0;e<Oi.length;e++)Oi[e].handle===t&&(Oi[e].cancelled=!0)});function Ui(t){return Fi.call(Ii,t)}Ui.cancel=function(){zi.apply(Ii,arguments)},Ui.polyfill=function(t){(t=t||Ii).requestAnimationFrame=Fi,t.cancelAnimationFrame=zi};var wt=m.f,_r=Function.prototype,Hi=_r.toString,Xi=/^\s*function ([^ (]*)/;!f||"name"in _r||wt(_r,"name",{configurable:!0,get:function(){try{return Hi.call(this).match(Xi)[1]}catch(t){return""}}});var Yi,Wi=i.trim;lt({target:"String",proto:!0,forced:(Yi="trim",c(function(){return jr[Yi]()||"\85"!="\85"[Yi]()||jr[Yi].name!==Yi}))},{trim:function(){return Wi(this)}});function Gi(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");for(o.setAttribute("id","rgbcolor-examples"),r=0;r<e.length;r++)try{var a=document.createElement("li"),u=new RGBColor(e[r]),s=document.createElement("div");s.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),s.appendChild(document.createTextNode("test"));var c=document.createTextNode(" "+e[r]+" -> "+u.toRGB()+" -> "+u.toHex());a.appendChild(s),a.appendChild(c),o.appendChild(a)}catch(e){}return o}}var qi=(ei(Qi,[{key:"split",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:" ",e=this.document,r=this.name;return bn(this.getString()).trim().split(t).map(function(t){return new Qi(e,r,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 t.endsWith("px"):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:parseFloat(t);t=this.value,t=parseFloat(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||(this.isNormalizedColor=!0,t=En(t),this.value=t),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=Mn("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=/#([^)'"]+)/.exec(t))&&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()?Qi.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 Gi(r)).ok&&(e.alpha=t.getNumber(),r=e.toRGBA())),new Qi(this.document,this.name,r)}}],[{key:"empty",value:function(t){return new Qi(t,"EMPTY","")}}]),Qi);function Qi(t,e,r){Jn(this,Qi),this.document=t,this.name=e,this.value=r,this.isNormalizedColor=!1}qi.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 $i=(ei(Ji,[{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}}]),Ji),Zi=Ae.forEach,Lt=Fe("forEach"),le=Ir("forEach"),Ki=Lt&&le?[].forEach:function(t){return Zi(this,t,1<arguments.length?arguments[1]:void 0)};function Ji(){Jn(this,Ji),this.viewPorts=[]}lt({target:"Array",proto:!0,forced:[].forEach!=Ki},{forEach:Ki});var to,eo={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};for(to in eo){var ro=d[to],ro=ro&&ro.prototype;if(ro&&ro.forEach!==Ki)try{x(ro,"forEach",Ki)}catch(t){ro.forEach=Ki}}var no=(ei(lo,[{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=kn(t),t=Mn(r,2),r=t[0],t=t[1];return new lo(void 0===r?e:r,void 0===t?e:t)}},{key:"parseScale",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,r=kn(t),t=Mn(r,2),r=t[0],r=void 0===r?e:r,t=t[1];return new lo(r,void 0===t?r:t)}},{key:"parsePath",value:function(t){for(var e=kn(t),r=e.length,n=[],i=0;i<r;i+=2)n.push(new lo(e[i],e[i+1]));return n}}]),lo),io=(ei(co,[{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=""),t.forEach(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,t.forEach(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,t.forEach(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 no(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.clientX,t.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.clientX,t.clientY),t=e.x,e=e.y;this.events.push({type:"onmousemove",x:t,y:e,run:function(t){t.onMouseMove&&t.onMouseMove()}})}}]),co),oo="undefined"!=typeof window?window:null,ao="undefined"!=typeof fetch?fetch.bind(void 0):null,uo=(ei(so,[{key:"wait",value:function(t){this.waits.push(t)}},{key:"ready",value:function(){return this.readyPromise||Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var t=this.waits.every(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,u=t.desiredHeight,s=t.minX,c=void 0===s?0:s,l=t.minY,h=void 0===l?0:l,f=t.refX,p=t.refY,y=t.clip,s=void 0!==y&&y,l=t.clipX,y=void 0===l?0:l,l=t.clipY,t=void 0===l?0:l,l=bn(n).replace(/^defer\s/,"").split(" "),n=Mn(l,2),l=n[0]||"xMidYMid",n=n[1]||"meet",g=i/o,d=a/u,v=Math.min(g,d),m=Math.max(g,d),o=o,u=u;"meet"===n&&(o*=v,u*=v),"slice"===n&&(o*=m,u*=m);var x,b,f=new qi(e,"refX",f),e=new qi(e,"refY",p),p=f.hasValue()&&e.hasValue();switch(p&&r.translate(-v*f.getPixels("x"),-v*e.getPixels("y")),s&&(b=v*y,x=v*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"===n&&v===d,x="slice"===n&&m===d,b="meet"===n&&v===g,p="slice"===n&&m===g,l.startsWith("xMid")&&(t||x)&&r.translate(i/2-o/2,0),l.endsWith("YMid")&&(b||p)&&r.translate(0,a/2-u/2),l.startsWith("xMax")&&(t||x)&&r.translate(i-o,0),l.endsWith("YMax")&&(b||p)&&r.translate(0,a-u)),!0){case"none"===l:r.scale(g,d);break;case"meet"===n:r.scale(v,v);break;case"slice"===n: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,u=void 0!==a&&a,s=t.ignoreMouse,a=void 0!==s&&s,s=t.ignoreAnimation,c=void 0!==s&&s,s=t.ignoreDimensions,l=void 0!==s&&s,s=t.ignoreClear,h=void 0!==s&&s,f=t.forceRedraw,p=t.scaleWidth,y=t.scaleHeight,g=t.offsetX,d=t.offsetY,t=this.FRAMERATE,v=this.mouse,m=1e3/t;this.frameDuration=m,this.readyPromise=new Promise(function(t){o.resolveReady=t}),this.isReady()&&this.render(e,l,h,p,y,g,d),u&&(r=Date.now(),n=r,i=0,u=function t(){r=Date.now(),(i=r-n)>=m&&(n=r-i%m,o.shouldUpdate(c,f)&&(o.render(e,l,h,p,y,g,d),v.runEvents())),o.intervalId=Ui(t)},a||v.start(),this.intervalId=Ui(u))}},{key:"stop",value:function(){this.intervalId&&(Ui.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(t,e){if(!t){var r=this.frameDuration;if(this.animations.reduce(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 u=this.CLIENT_WIDTH,s=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(u,s);var p=t.getStyle("width"),u=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"))),u.hasValue()&&(f.height=u.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var y,s=f.clientWidth||f.width,f=f.clientHeight||f.height;e&&p.hasValue()&&u.hasValue()&&(s=p.getPixels("x"),f=u.getPixels("y")),c.setCurrent(s,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=kn(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("".concat(i.getString()," scale(").concat(1/o,", ").concat(1/a,")"))),r||l.clearRect(0,0,s,f),t.render(l),h&&(this.isFirstRender=!1)}}]),so);function so(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.fetch,r=void 0===r?ao:r,e=e.window,e=void 0===e?oo:e;Jn(this,so),this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new $i,this.mouse=new io(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=e,this.fetch=r}function co(t){Jn(this,co),this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}function lo(t,e){Jn(this,lo),this.x=t,this.y=e}uo.defaultWindow=oo,uo.defaultFetch=ao;var ho,fo,po=uo.defaultFetch,yo="undefined"!=typeof DOMParser?DOMParser:null,go=(ei(mo,[{key:"parse",value:(fo=Rr(kr.mark(function t(e){return kr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.startsWith("<"))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 fo.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:(ho=Rr(kr.mark(function t(e){var r;return kr.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 ho.apply(this,arguments)})}]),mo),vo=r(function(r){function n(t,e){return r.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(t,e)}r.exports=n});function mo(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.fetch,e=void 0===e?po:e,t=t.DOMParser,t=void 0===t?yo:t;Jn(this,mo),this.fetch=e,this.DOMParser=t}function xo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vo(t,e)}function bo(t,e){return!e||"object"!==So(e)&&"function"!=typeof e?wo(t):e}var So=r(function(e){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(t){return typeof t}:e.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}e.exports=r}),wo=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},ko=r(function(e){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}e.exports=r}),Ce=!ye(function(t){Array.from(t)});lt({target:"Array",stat:!0,forced:Ce},{from:function(t){var e,r,n,i,o,a,u=Tr(t),s="function"==typeof this?this:Array,c=arguments.length,l=1<c?arguments[1]:void 0,h=void 0!==l,t=mt(u),f=0;if(h&&(l=vt(l,2<c?arguments[2]:void 0,2)),null==t||s==Array&&dt(t))for(r=new s(e=ut(u.length));f<e;f++)a=h?l(u[f],f):u[f],ri(r,f,a);else for(o=(i=t.call(u)).next,r=new s;!(n=o.call(i)).done;f++)a=h?function(t,e,r,n){try{return n?e(R(r)[0],r[1]):e(r)}catch(e){throw xt(t),e}}(i,l,[n.value,f],!0):n.value,ri(r,f,a);return r.length=f,r}});function Ao(){}function Ro(t){return"<script>"+t+"<\/script>"}var To,Eo=Object.keys||function(t){return ct(t,zt)},Po=f?Object.defineProperties:function(t,e){R(t);for(var r,n=Eo(e),i=n.length,o=0;o<i;)m.f(t,r=n[o++],e[r]);return t},Oo=q("IE_PROTO"),Co=function(){try{To=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Co=To?function(t){t.write(Ro("")),t.close();var e=t.parentWindow.Object;return t=null,e}(To):((e=n("iframe")).style.display="none",de.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ro("document.F=Object")),t.close(),t.F);for(var r=zt.length;r--;)delete Co.prototype[zt[r]];return Co()};Q[Oo]=!0;var Mo=Object.create||function(t,e){var r;return null!==t?(Ao.prototype=R(t),r=new Ao,Ao.prototype=null,r[Oo]=t):r=Co(),void 0===e?r:Po(r,e)},No=h("unscopables"),_o=Array.prototype;null==_o[No]&&m.f(_o,No,{configurable:!0,value:Mo(null)});var Oe=function(t){_o[No][t]=!0},Do=jt.includes,Se=Ir("indexOf",{ACCESSORS:!0,1:0});lt({target:"Array",proto:!0,forced:!Se},{includes:function(t){return Do(this,t,1<arguments.length?arguments[1]:void 0)}}),Oe("includes");var Vo=Ae.some,we=Fe("some"),Y=Ir("some");lt({target:"Array",proto:!0,forced:!we||!Y},{some:function(t){return Vo(this,t,1<arguments.length?arguments[1]:void 0)}}),lt({target:"String",proto:!0,forced:!D("includes")},{includes:function(t){return!!~String(Et(this)).indexOf(pn(t),1<arguments.length?arguments[1]:void 0)}});var Io,O=!c(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Lo=q("IE_PROTO"),jo=Object.prototype,Fo=O?Object.getPrototypeOf:function(t){return t=Tr(t),A(t,Lo)?t[Lo]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?jo:null},zo=h("iterator"),Bo=!1;[].keys&&("next"in(wu=[].keys())?(Ru=Fo(Fo(wu)))!==Object.prototype&&(Io=Ru):Bo=!0),null!=Io&&!c(function(){var t={};return Io[zo].call(t)!==t})||(Io={}),A(Io,zo)||x(Io,zo,function(){return this});function Uo(){return this}function Ho(){return this}function Xo(t,e,r,n,i,o,a){y=e+" Iterator",(c=r).prototype=Mo(Yo,{next:g(1,n)}),ft(c,y,!1),ne[y]=Uo;var u,s,n=function(t){if(t===i&&p)return p;if(!qo&&t in h)return h[t];switch(t){case"keys":case $o:case Zo:return function(){return new r(this,t)}}return function(){return new r(this)}},c=e+" Iterator",l=!1,h=t.prototype,f=h[Qo]||h["@@iterator"]||i&&h[i],p=!qo&&f||n(i),y="Array"==e&&h.entries||f;if(y&&(t=Fo(y.call(new t)),Go!==Object.prototype&&t.next&&(Fo(t)!==Go&&(Wo?Wo(t,Go):"function"!=typeof t[Qo]&&x(t,Qo,Ho)),ft(t,c,!0))),i==$o&&f&&f.name!==$o&&(l=!0,p=function(){return f.call(this)}),h[Qo]!==p&&x(h,Qo,p),ne[e]=p,i)if(u={values:n($o),keys:o?p:n("keys"),entries:n(Zo)},a)for(s in u)!qo&&!l&&s in h||K(h,s,u[s]);else lt({target:e,proto:!0,forced:qo||l},u);return u}var me={IteratorPrototype:Io,BUGGY_SAFARI_ITERATORS:Bo},Yo=me.IteratorPrototype,Wo=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(r){}return function(t,e){return R(t),function(t){if(!p(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(e),n?r.call(t,e):t.__proto__=e,t}}():void 0),Go=me.IteratorPrototype,qo=me.BUGGY_SAFARI_ITERATORS,Qo=h("iterator"),$o="values",Zo="entries",Ko=$.charAt,Jo="String Iterator",ta=Z.set,ea=Z.getterFor(Jo);Xo(String,"String",function(t){ta(this,{type:Jo,string:String(t),index:0})},function(){var t=ea(this),e=t.string,r=t.index;return r>=e.length?{value:void 0,done:!0}:(r=Ko(e,r),t.index+=r.length,{value:r,done:!1})});function ra(t){return function(t){if(Array.isArray(t))return Cn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||On(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 _=(ei(ua,[{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])}}]),ua),w=(ei(aa,[{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.originX,i=this.originY,o=this.angle,n=e+n.getPixels("x"),i=r+i.getPixels("y");t.translate(n,i),t.rotate(-1*o.getRadians()),t.translate(-n,-i)}},{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])}}]),aa),ze=(ei(oa,[{key:"apply",value:function(t){var e=this.scale,r=e.x,n=e.y,i=this.originX,e=this.originY,i=i.getPixels("x"),e=e.getPixels("y");t.translate(i,e),t.scale(r,n||r),t.translate(-i,-e)}},{key:"unapply",value:function(t){var e=this.scale,r=e.x,n=e.y,i=this.originX,e=this.originY,i=i.getPixels("x"),e=e.getPixels("y");t.translate(i,e),t.scale(1/r,1/n||r),t.translate(-i,-e)}},{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])}}]),oa),na=(ei(ia,[{key:"apply",value:function(t){var e=this.originX,r=this.originY,n=this.matrix,e=e.getPixels("x"),r=r.getPixels("y");t.translate(e,r),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),t.translate(-e,-r)}},{key:"unapply",value:function(t){var e=this.originX,r=this.originY,n=this.matrix,i=n[0],o=n[2],a=n[4],u=n[1],s=n[3],c=n[5],n=1/(i*(+s-0*c)-o*(+u-0*c)+a*(0*u-0*s)),e=e.getPixels("x"),r=r.getPixels("y");t.translate(e,r),t.transform(n*(+s-0*c),n*(0*c-+u),n*(0*a-+o),n*(+i-0*a),n*(o*c-a*s),n*(a*u-i*c)),t.translate(-e,-r)}},{key:"applyToPoint",value:function(t){t.applyTransform(this.matrix)}}]),ia);function ia(t,e,r){Jn(this,ia),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=kn(e),this.originX=r[0],this.originY=r[1]}function oa(t,e,r){Jn(this,oa),this.type="scale",this.scale=null,this.originX=null,this.originY=null;e=no.parseScale(e);0!==e.x&&0!==e.y||(e.x=Bn,e.y=Bn),this.scale=e,this.originX=r[0],this.originY=r[1]}function aa(t,e,r){Jn(this,aa),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;e=kn(e);this.angle=new qi(t,"angle",e[0]),this.originX=r[0],this.originY=r[1],this.cx=e[1]||0,this.cy=e[2]||0}function ua(t,e){Jn(this,ua),this.type="translate",this.point=null,this.point=no.parse(e)}var sa=function(){xo(o,na);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="skew",r.angle=null,r.angle=new qi(t,"angle",e),r}return o}();b=function(){xo(o,sa);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="skewX",r.matrix=[1,0,Math.tan(r.angle.getRadians()),1,0,0],r}return o}();var W=function(){xo(o,sa);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="skewY",r.matrix=[1,Math.tan(r.angle.getRadians()),0,1,0,0],r}return o}(),ca=(ei(la,[{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=e.getStyle("transform-origin",!1,!0).split(),e=Mn(n,2),n=e[0],e=e[1],e=[n,void 0===e?n:e];return r.hasValue()?new la(t,r.getString(),e):null}}]),la);function la(t,e,r){var n=this;Jn(this,la),this.document=t,this.transforms=[],bn(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/).forEach(function(t){var e;"none"!==t&&(e=t.split("("),t=Mn(e,2),e=t[0],t=t[1],e=[e.trim(),t.trim().replace(")","")],e=(t=Mn(e,2))[0],t=t[1],void 0!==(e=la.transformTypes[e])&&n.transforms.push(new e(n.document,t,r)))})}ca.transformTypes={translate:_,rotate:w,scale:ze,matrix:na,skewX:b,skewY:W};var ha=(ei(fa,[{key:"getAttribute",value:function(t){var e=this.attributes[t];if(e||!(1<arguments.length&&void 0!==arguments[1]&&arguments[1]))return e||qi.empty(this.document);e=new qi(this.document,t,"");return this.attributes[t]=e}},{key:"getHrefAttribute",value:function(){for(var t in this.attributes)if("href"===t||t.endsWith(":href"))return this.attributes[t];return qi.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(null!=i&&i.hasValue())return this.styles[t]=i;if(!r){r=this.parent;if(r){r=r.getStyle(t);if(null!=r&&r.hasValue())return r}}if(e){e=new qi(this.document,t,"");return this.styles[t]=e}return n||qi.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=ca.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){this.children.forEach(function(t){t.render(e)})}},{key:"addChild",value:function(t){t=t instanceof fa?t:this.document.createElement(t);t.parent=this,fa.ignoreChildTypes.includes(t.type)||this.children.push(t)}},{key:"matchesSelector",value:function(e){var t=this.node;if("function"==typeof t.matches)return t.matches(e);t=t.getAttribute("class");return!(!t||""===t)&&t.split(" ").some(function(t){return".".concat(t)===e})}},{key:"addStylesFromStyleDefinition",value:function(){var t,e=this.document,r=e.styles,n=e.stylesSpecificity;for(t in r)if(!t.startsWith("@")&&this.matchesSelector(t)){var i=r[t],o=n[t];if(i)for(var a in i){var u=this.stylesSpecificity[a];(u=void 0===u?"000":u)<=o&&(this.styles[a]=i[a],this.stylesSpecificity[a]=o)}}}},{key:"removeStyles",value:function(i,t){return t.reduce(function(t,e){var r=i.getStyle(e);if(!r.hasValue())return t;var n=r.getString();return r.setValue(""),[].concat(ra(t),[[e,n]])},[])}},{key:"restoreStyles",value:function(r,t){t.forEach(function(t){var e=Mn(t,2),t=e[0],e=e[1];r.getStyle(t,!0).setValue(e)})}}]),fa);function fa(r,t){var e,n,i=this,o=2<arguments.length&&void 0!==arguments[2]&&arguments[2];Jn(this,fa),this.document=r,this.node=t,this.captureTextNodes=o,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType&&(Array.from(t.attributes).forEach(function(t){var e=Rn(t.nodeName);i.attributes[e]=new qi(r,e,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map(function(t){return t.trim()}).forEach(function(t){var e;t&&(e=t.split(":").map(function(t){return t.trim()}),e=(t=Mn(e,2))[0],t=t[1],i.styles[e]=new qi(r,e,t))}),e=r.definitions,(n=this.getAttribute("id")).hasValue()&&(e[n.getString()]||(e[n.getString()]=this)),Array.from(t.childNodes).forEach(function(t){1===t.nodeType?i.addChild(t):!o||3!==t.nodeType&&4!==t.nodeType||0<(t=r.createTextNode(t)).getText().length&&i.addChild(t)}))}ha.ignoreChildTypes=["title"];var pa=function(){xo(o,ha);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),i.call(this,t,e,r)}return o}(),ya=jt.indexOf,ga=[].indexOf,da=!!ga&&1/[1].indexOf(1,-0)<0,dn=Fe("indexOf"),Ci=Ir("indexOf",{ACCESSORS:!0,1:0});lt({target:"Array",proto:!0,forced:da||!dn||!Ci},{indexOf:function(t){return da?ga.apply(this,arguments)||0:ya(this,t,1<arguments.length?arguments[1]:void 0)}});var va=[].reverse,xn=[1,2];lt({target:"Array",proto:!0,forced:String(xn)===String(xn.reverse())},{reverse:function(){return Or(this)&&(this.length=this.length),va.call(this)}});var ma=r(function(n){function i(t,e,r){return"undefined"!=typeof Reflect&&Reflect.get?n.exports=i=Reflect.get:n.exports=i=function(t,e,r){t=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ko(t)););return t}(t,e);if(t){e=Object.getOwnPropertyDescriptor(t,e);return e.get?e.get.call(r):e.value}},i(t,e,r||t)}n.exports=i});function xa(t){t=t.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}var ba=(ei(Sa,[{key:"toString",value:function(){return[function(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:""}}(this.fontStyle),this.fontVariant,function(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:""}}(this.fontWeight),this.fontSize,(t=this.fontFamily,"undefined"==typeof process?t:t.trim().split(",").map(xa).join(","))].join(" ").trim();var t}}],[{key:"parse",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length?arguments[1]:void 0,r="",n="",i="",o="",a="",t=bn(t).trim().split(" "),u={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return t.forEach(function(t){switch(!0){case!u.fontStyle&&Sa.styles.includes(t):"inherit"!==t&&(r=t),u.fontStyle=!0;break;case!u.fontVariant&&Sa.variants.includes(t):"inherit"!==t&&(n=t),u.fontStyle=!0,u.fontVariant=!0;break;case!u.fontWeight&&Sa.weights.includes(t):"inherit"!==t&&(i=t),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0;break;case!u.fontSize:var e;"inherit"!==t&&(e=t.split("/"),e=Mn(e,1),o=e[0]),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0,u.fontSize=!0;break;default:"inherit"!==t&&(a+=t)}}),new Sa(r,n,i,o,a,e)}}]),Sa);function Sa(t,e,r,n,i,o){Jn(this,Sa);o=o?"string"==typeof o?Sa.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}ba.styles="normal|italic|oblique|inherit",ba.variants="normal|small-caps|inherit",ba.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";function wa(t,e,r){var n,i;return Wo&&"function"==typeof(n=e.constructor)&&n!==r&&p(i=n.prototype)&&i!==r.prototype&&Wo(t,i),t}function ka(t){var e,r,n,i,o,a,u,s=y(t,!1);if("string"==typeof s&&2<s.length)if(43===(e=(s=Ta(s)).charCodeAt(0))||45===e){if(88===(t=s.charCodeAt(2))||120===t)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+s}for(o=(i=s.slice(2)).length,a=0;a<o;a++)if((u=i.charCodeAt(a))<48||n<u)return NaN;return parseInt(i,r)}return+s}var ve=Ut.f,Aa=Ot.f,Ra=m.f,Ta=i.trim,Ea="Number",Pa=d.Number,Oa=Pa.prototype,Ca=tt(Mo(Oa))==Ea;if(Zt(Ea,!Pa(" 0o1")||!Pa("0b1")||Pa("+0x1"))){for(var Ma,Na=function(t){var t=arguments.length<1?0:t,e=this;return e instanceof Na&&(Ca?c(function(){Oa.valueOf.call(e)}):tt(e)!=Ea)?wa(new Pa(ka(t)),e,Na):ka(t)},_a=f?ve(Pa):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Da=0;_a.length>Da;Da++)A(Pa,Ma=_a[Da])&&!A(Na,Ma)&&Ra(Na,Ma,Aa(Pa,Ma));(Na.prototype=Oa).constructor=Na,K(d,Ea,Na)}var Va=(ei(Ia,[{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,u=6*e-12*r+6*n,s=-3*e+9*r-9*n+3*i,c=3*r-3*e;0!=s?(o=Math.pow(u,2)-4*c*s)<0||(0<(a=(-u+Math.sqrt(o))/(2*s))&&a<1&&(t?this.addX(this.sumCubic(a,e,r,n,i)):this.addY(this.sumCubic(a,e,r,n,i))),0<(s=(-u-Math.sqrt(o))/(2*s))&&s<1&&(t?this.addX(this.sumCubic(s,e,r,n,i)):this.addY(this.sumCubic(s,e,r,n,i)))):0==u||0<(u=-c/u)&&u<1&&(t?this.addX(this.sumCubic(u,e,r,n,i)):this.addY(this.sumCubic(u,e,r,n,i)))}},{key:"addBezierCurve",value:function(t,e,r,n,i,o,a,u){this.addPoint(t,e),this.addPoint(a,u),this.bezierCurveAdd(!0,t,r,i,a),this.bezierCurveAdd(!1,e,n,o,u)}},{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}}]),Ia);function Ia(){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;Jn(this,Ia),this.x1=t,this.y1=e,this.x2=r,this.y2=n,this.addPoint(t,e),this.addPoint(r,n)}lt({target:"Array",proto:!0},{fill:function(t){for(var e=Tr(this),r=ut(e.length),n=arguments.length,i=st(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,o=void 0===n?r:st(n,r);i<o;)e[i++]=t;return e}}),Oe("fill");var La=function(t,e){return(La=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 ja(t,e){function r(){this.constructor=t}La(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Fa(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 za(){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 Ba=Math.PI;function Ua(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),u=Fa([(e-o)/2,(r-a)/2],-t.xRot/180*Ba),s=u[0],c=u[1],l=Math.pow(s,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(s,2),u=(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*u,h=-i*s/n*u,u=Fa([l,h],t.xRot/180*Ba);t.cX=u[0]+(e+o)/2,t.cY=u[1]+(r+a)/2,t.phi1=Math.atan2((c-h)/i,(s-l)/n),t.phi2=Math.atan2((-c-h)/i,(-s-l)/n),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*Ba),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*Ba),t.phi1*=180/Ba,t.phi2*=180/Ba}function Ha(t,e,r){za(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 Xa,Ya=Math.PI/180;function Wa(t,e,r){return(1-r)*t+r*e}function Ga(t,e,r,n){return t+Math.cos(n/180*Ba)*e+Math.sin(n/180*Ba)*r}function qa(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 Qa(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 $a(){return Ja(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 Za(){var n=NaN,i=NaN,o=NaN,a=NaN;return Ja(function(t,e,r){return t.type&ou.SMOOTH_CURVE_TO&&(t.type=ou.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&ou.CURVE_TO?(n=t.relative?e+t.x2:t.x2,t.relative?r+t.y2:t.y2):n=NaN,t.type&ou.SMOOTH_QUAD_TO&&(t.type=ou.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&ou.QUAD_TO?(o=t.relative?e+t.x1:t.x1,t.relative?r+t.y1:t.y1):o=NaN,t})}function Ka(){var o=NaN,a=NaN;return Ja(function(t,e,r){var n,i;return t.type&ou.SMOOTH_QUAD_TO&&(t.type=ou.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&ou.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=ou.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 Ja(r){var n=0,i=0,o=NaN,a=NaN;return function(t){if(isNaN(o)&&!(t.type&ou.MOVE_TO))throw new Error("path must start with moveto");var e=r(t,n,i,o,a);return t.type&ou.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&ou.MOVE_TO&&(o=n,a=i),e}}function tu(c,l,h,f,p,y){return za(c,l,h,f,p,y),Ja(function(t,e,r,n){var i=t.x1,o=t.x2,a=t.relative&&!isNaN(n),u=void 0!==t.x?t.x:a?0:e,n=void 0!==t.y?t.y:a?0:r;function s(t){return t*t}t.type&ou.HORIZ_LINE_TO&&0!==l&&(t.type=ou.LINE_TO,t.y=t.relative?0:r),t.type&ou.VERT_LINE_TO&&0!==h&&(t.type=ou.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=u*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=ou.LINE_TO):(e=t.xRot*Math.PI/180,n=Math.sin(e),u=Math.cos(e),i=1/s(t.rX),o=1/s(t.rY),a=s(u)*i+s(n)*o,e=s(n)*i+s(u)*o,u=a*f*f-(n=2*n*u*(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,u-o)+Math.PI)%Math.PI/2,n=Math.sin(a),e=Math.cos(a),t.rX=Math.abs(r)/Math.sqrt(u*s(e)+i*n*e+o*s(n)),t.rY=Math.abs(r)/Math.sqrt(u*s(n)-i*n*e+o*s(e)),t.xRot=180*a/Math.PI)),void 0!==t.sweepFlag&&r<0&&(t.sweepFlag=+!t.sweepFlag),t})}(Jt=Xa=Xa||{}).ROUND=function(e){function r(t){return Math.round(t*e)/e}return za(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}},Jt.TO_ABS=$a,Jt.TO_REL=function(){return Ja(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})},Jt.NORMALIZE_HVZ=function(o,a,u){return void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===u&&(u=!0),Ja(function(t,e,r,n,i){if(isNaN(n)&&!(t.type&ou.MOVE_TO))throw new Error("path must start with moveto");return a&&t.type&ou.HORIZ_LINE_TO&&(t.type=ou.LINE_TO,t.y=t.relative?0:r),u&&t.type&ou.VERT_LINE_TO&&(t.type=ou.LINE_TO,t.x=t.relative?0:e),o&&t.type&ou.CLOSE_PATH&&(t.type=ou.LINE_TO,t.x=t.relative?n-e:n,t.y=t.relative?i-r:i),t.type&ou.ARC&&(0===t.rX||0===t.rY)&&(t.type=ou.LINE_TO,delete t.rX,delete t.rY,delete t.xRot,delete t.lArcFlag,delete t.sweepFlag),t})},Jt.NORMALIZE_ST=Za,Jt.QT_TO_C=Ka,Jt.INFO=Ja,Jt.SANITIZE=function(p){za(p=void 0===p?0:p);var y=NaN,g=NaN,d=NaN,v=NaN;return Ja(function(t,e,r,n,i){var o,a,u,s,c=Math.abs,l=!1,h=0,f=0;return t.type&ou.SMOOTH_CURVE_TO&&(h=isNaN(y)?0:e-y,f=isNaN(g)?0:r-g),g=t.type&(ou.CURVE_TO|ou.SMOOTH_CURVE_TO)?(y=t.relative?e+t.x2:t.x2,t.relative?r+t.y2:t.y2):y=NaN,v=t.type&ou.SMOOTH_QUAD_TO?(d=isNaN(d)?e:2*e-d,isNaN(v)?r:2*r-v):t.type&ou.QUAD_TO?(d=t.relative?e+t.x1:t.x1,t.relative?r+t.y1:t.y2):d=NaN,(t.type&ou.LINE_COMMANDS||t.type&ou.ARC&&(0===t.rX||0===t.rY||!t.lArcFlag)||t.type&ou.CURVE_TO||t.type&ou.SMOOTH_CURVE_TO||t.type&ou.QUAD_TO||t.type&ou.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(d)?void 0===t.x1?h:t.relative?t.x:t.x1-e:d-e,f=isNaN(v)?void 0===t.y1?f:t.relative?t.y:t.y1-r:v-r,u=void 0===t.x2?0:t.relative?t.x:t.x2-e,s=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(u)<=p&&c(s)<=p&&(l=!0)),(l=t.type&ou.CLOSE_PATH&&c(e-n)<=p&&c(r-i)<=p?!0:l)?[]:t})},Jt.MATRIX=tu,Jt.ROTATE=function(t,e,r){za(t,e=void 0===e?0:e,r=void 0===r?0:r);var n=Math.sin(t),t=Math.cos(t);return tu(t,n,-n,t,e-e*t+r*n,r-e*n-r*t)},Jt.TRANSLATE=function(t,e){return za(t,e=void 0===e?0:e),tu(1,0,0,1,t,e)},Jt.SCALE=function(t,e){return za(t,e=void 0===e?t:e),tu(t,0,0,e,0,0)},Jt.SKEW_X=function(t){return za(t),tu(1,0,Math.atan(t),1,0,0)},Jt.SKEW_Y=function(t){return za(t),tu(1,Math.atan(t),0,1,0,0)},Jt.X_AXIS_SYMMETRY=function(t){return za(t=void 0===t?0:t),tu(-1,0,0,1,t,0)},Jt.Y_AXIS_SYMMETRY=function(t){return za(t=void 0===t?0:t),tu(1,0,0,-1,0,t)},Jt.A_TO_C=function(){return Ja(function(t,e,r){return ou.ARC===t.type?function(r,t,e){r.cX||Ua(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,u=e,s=0;s<i;s++){var c=Wa(r.phi1,r.phi2,s/i),l=Wa(r.phi1,r.phi2,(s+1)/i),h=4/3*Math.tan((l-c)*Ya/4),f=[Math.cos(c*Ya)-h*Math.sin(c*Ya),Math.sin(c*Ya)+h*Math.cos(c*Ya)],p=f[0],y=f[1],g=[Math.cos(l*Ya),Math.sin(l*Ya)],c=g[0],f=g[1],g=[c+h*Math.sin(l*Ya),f-h*Math.cos(l*Ya)],h=g[0],l=g[1];o[s]={relative:r.relative,type:ou.CURVE_TO};g=function(t,e){t=Fa([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[s].x1=y[0],o[s].y1=y[1],l=g(h,l),o[s].x2=l[0],o[s].y2=l[1],f=g(c,f),o[s].x=f[0],o[s].y=f[1],r.relative&&(o[s].x1-=a,o[s].y1-=u,o[s].x2-=a,o[s].y2-=u,o[s].x-=a,o[s].y-=u),a=(f=[o[s].x,o[s].y])[0],u=f[1]}return o}(t,t.relative?0:e,t.relative?0:r):t})},Jt.ANNOTATE_ARCS=function(){return Ja(function(t,e,r){return t.relative&&(r=e=0),ou.ARC===t.type&&Ua(t,e,r),t})},Jt.CLONE=function(){return function(t){var e,r={};for(e in t)r[e]=t[e];return r}},Jt.CALCULATE_BOUNDS=function(){var w=$a(),k=Ka(),A=Za(),R=Ja(function(t,e,r){var n=A(k(w(function(t){var e,r={};for(e in t)r[e]=t[e];return r}(t))));function i(t){t>R.maxX&&(R.maxX=t),t<R.minX&&(R.minX=t)}function o(t){t>R.maxY&&(R.maxY=t),t<R.minY&&(R.minY=t)}if(n.type&ou.DRAWING_COMMANDS&&(i(e),o(r)),n.type&ou.HORIZ_LINE_TO&&i(n.x),n.type&ou.VERT_LINE_TO&&o(n.y),n.type&ou.LINE_TO&&(i(n.x),o(n.y)),n.type&ou.CURVE_TO){i(n.x),o(n.y);for(var a=0,u=qa(e,n.x1,n.x2,n.x);a<u.length;a++)0<(x=u[a])&&x<1&&i(Qa(e,n.x1,n.x2,n.x,x));for(var s=0,c=qa(r,n.y1,n.y2,n.y);s<c.length;s++)0<(x=c[s])&&x<1&&o(Qa(r,n.y1,n.y2,n.y,x))}if(n.type&ou.ARC){i(n.x),o(n.y),Ua(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],d=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},v=0,m=Ha(p,-h,0).map(l);v<m.length;v++)(x=m[v])>g&&x<d&&i(Ga(n.cX,h,p,x));for(var x,b=0,S=Ha(y,-f,0).map(l);b<S.length;b++)(x=S[b])>g&&x<d&&o(Ga(n.cY,f,y,x))}return t});return R.minX=1/0,R.maxX=-1/0,R.minY=1/0,R.maxY=-1/0,R};function eu(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)}var ru,nu,wt=(cu.prototype.round=function(t){return this.transform(Xa.ROUND(t))},cu.prototype.toAbs=function(){return this.transform(Xa.TO_ABS())},cu.prototype.toRel=function(){return this.transform(Xa.TO_REL())},cu.prototype.normalizeHVZ=function(t,e,r){return this.transform(Xa.NORMALIZE_HVZ(t,e,r))},cu.prototype.normalizeST=function(){return this.transform(Xa.NORMALIZE_ST())},cu.prototype.qtToC=function(){return this.transform(Xa.QT_TO_C())},cu.prototype.aToC=function(){return this.transform(Xa.A_TO_C())},cu.prototype.sanitize=function(t){return this.transform(Xa.SANITIZE(t))},cu.prototype.translate=function(t,e){return this.transform(Xa.TRANSLATE(t,e))},cu.prototype.scale=function(t,e){return this.transform(Xa.SCALE(t,e))},cu.prototype.rotate=function(t,e,r){return this.transform(Xa.ROTATE(t,e,r))},cu.prototype.matrix=function(t,e,r,n,i,o){return this.transform(Xa.MATRIX(t,e,r,n,i,o))},cu.prototype.skewX=function(t){return this.transform(Xa.SKEW_X(t))},cu.prototype.skewY=function(t){return this.transform(Xa.SKEW_Y(t))},cu.prototype.xSymmetry=function(t){return this.transform(Xa.X_AXIS_SYMMETRY(t))},cu.prototype.ySymmetry=function(t){return this.transform(Xa.Y_AXIS_SYMMETRY(t))},cu.prototype.annotateArcs=function(){return this.transform(Xa.ANNOTATE_ARCS())},cu),iu=(ja(su,nu=wt),su.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},su.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!==ou.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),u=eu(o)&&("0"===this.curNumber&&"0"===o||a);if(!eu(o)||u)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 s=Number(this.curNumber);if(isNaN(s))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===ou.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(s<0)throw new SyntaxError('Expected positive number, got "'+s+'" 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(s),this.curArgs.length===au[this.curCommandType]&&(ou.HORIZ_LINE_TO===this.curCommandType?n({type:ou.HORIZ_LINE_TO,relative:this.curCommandRelative,x:s}):ou.VERT_LINE_TO===this.curCommandType?n({type:ou.VERT_LINE_TO,relative:this.curCommandRelative,y:s}):this.curCommandType===ou.MOVE_TO||this.curCommandType===ou.LINE_TO||this.curCommandType===ou.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),ou.MOVE_TO===this.curCommandType&&(this.curCommandType=ou.LINE_TO)):this.curCommandType===ou.CURVE_TO?n({type:ou.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===ou.SMOOTH_CURVE_TO?n({type:ou.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===ou.QUAD_TO?n({type:ou.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===ou.ARC&&n({type:ou.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=o)&&"\t"!==s&&"\r"!==s&&"\n"!==s)if(","===o&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==o&&"-"!==o&&"."!==o)if(u)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=ou.HORIZ_LINE_TO,this.curCommandRelative="h"===o;else if("v"===o||"V"===o)this.curCommandType=ou.VERT_LINE_TO,this.curCommandRelative="v"===o;else if("m"===o||"M"===o)this.curCommandType=ou.MOVE_TO,this.curCommandRelative="m"===o;else if("l"===o||"L"===o)this.curCommandType=ou.LINE_TO,this.curCommandRelative="l"===o;else if("c"===o||"C"===o)this.curCommandType=ou.CURVE_TO,this.curCommandRelative="c"===o;else if("s"===o||"S"===o)this.curCommandType=ou.SMOOTH_CURVE_TO,this.curCommandRelative="s"===o;else if("q"===o||"Q"===o)this.curCommandType=ou.QUAD_TO,this.curCommandRelative="q"===o;else if("t"===o||"T"===o)this.curCommandType=ou.SMOOTH_QUAD_TO,this.curCommandRelative="t"===o;else{if("a"!==o&&"A"!==o)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+".");this.curCommandType=ou.ARC,this.curCommandRelative="a"===o}else e.push({type:ou.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},su.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}}})},su),ou=(ja(uu,ru=wt),uu.prototype.encode=function(){return uu.encode(this.commands)},uu.prototype.getBounds=function(){var t=Xa.CALCULATE_BOUNDS();return this.transform(t),t},uu.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},uu.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===ou.CLOSE_PATH)e+="z";else if(n.type===ou.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===ou.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===ou.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===ou.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===ou.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===ou.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===ou.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===ou.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==ou.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},uu.parse=function(t){var e=new iu,r=[];return e.parse(t,r),e.finish(r),r},uu.CLOSE_PATH=1,uu.MOVE_TO=2,uu.HORIZ_LINE_TO=4,uu.VERT_LINE_TO=8,uu.LINE_TO=16,uu.CURVE_TO=32,uu.SMOOTH_CURVE_TO=64,uu.QUAD_TO=128,uu.SMOOTH_QUAD_TO=256,uu.ARC=512,uu.LINE_COMMANDS=uu.LINE_TO|uu.HORIZ_LINE_TO|uu.VERT_LINE_TO,uu.DRAWING_COMMANDS=uu.HORIZ_LINE_TO|uu.VERT_LINE_TO|uu.LINE_TO|uu.CURVE_TO|uu.SMOOTH_CURVE_TO|uu.QUAD_TO|uu.SMOOTH_QUAD_TO|uu.ARC,uu),au=((_r={})[ou.MOVE_TO]=2,_r[ou.LINE_TO]=2,_r[ou.HORIZ_LINE_TO]=1,_r[ou.VERT_LINE_TO]=1,_r[ou.CLOSE_PATH]=0,_r[ou.QUAD_TO]=4,_r[ou.SMOOTH_QUAD_TO]=2,_r[ou.CURVE_TO]=6,_r[ou.SMOOTH_CURVE_TO]=4,_r[ou.ARC]=7,_r);function uu(t){var e=ru.call(this)||this;return e.commands="string"==typeof t?uu.parse(t):t,e}function su(){var t=nu.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 cu(){}var lu=function(){xo(i,ou);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(t){return Jn(this,i),(t=e.call(this,t.replace(/([+\-.])\s+/gm,"$1").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 ei(i,[{key:"reset",value:function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new no(0,0),this.control=new no(0,0),this.current=new no(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 no(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!==ou.CURVE_TO&&t!==ou.SMOOTH_CURVE_TO&&t!==ou.QUAD_TO&&t!==ou.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 no(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}}]),i}(),Lt="toString",hu=RegExp.prototype,fu=hu.toString,le=c(function(){return"/a/b"!=fu.call({source:"a",flags:"b"})}),Ce=fu.name!=Lt;(le||Ce)&&K(RegExp.prototype,Lt,function(){var t=R(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in hu)?Hr.call(t):r)},{unsafe:!0});var pu=function(){xo(i,ha);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).modifiedEmSizeStack=!1,t}return ei(i,[{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,u,s,c,l,h,f=1<arguments.length&&void 0!==arguments[1]&&arguments[1];f||(n=this.getStyle("fill"),e=this.getStyle("fill-opacity"),u=this.getStyle("stroke"),h=this.getStyle("stroke-opacity"),n.isUrlDefinition()?(r=n.getFillStyleDefinition(this,e))&&(t.fillStyle=r):n.hasValue()&&("currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor()),"inherit"!==(n=n.getColor())&&(t.fillStyle="none"===n?"rgba(0,0,0,0)":n)),e.hasValue()&&(i=new qi(this.document,"fill",t.fillStyle).addOpacity(e).getColor(),t.fillStyle=i),u.isUrlDefinition()?(i=u.getFillStyleDefinition(this,h))&&(t.strokeStyle=i):u.hasValue()&&("currentColor"===u.getString()&&u.setValue(this.getStyle("color").getColor()),"inherit"!==(o=u.getString())&&(t.strokeStyle="none"===o?"rgba(0,0,0,0)":o)),h.hasValue()&&(a=new qi(this.document,"stroke",t.strokeStyle).addOpacity(h).getString(),t.strokeStyle=a),(u=this.getStyle("stroke-width")).hasValue()&&(c=u.getPixels(),t.lineWidth=c||Bn),o=this.getStyle("stroke-linecap"),h=this.getStyle("stroke-linejoin"),a=this.getStyle("stroke-miterlimit"),u=this.getStyle("stroke-dasharray"),c=this.getStyle("stroke-dashoffset"),o.hasValue()&&(t.lineCap=o.getString()),h.hasValue()&&(t.lineJoin=h.getString()),a.hasValue()&&(t.miterLimit=a.getNumber()),u.hasValue()&&"none"!==u.getString()&&(s=kn(u.getString()),void 0!==t.setLineDash?t.setLineDash(s):void 0!==t.webkitLineDash?t.webkitLineDash=s:void 0===t.mozDash||1===s.length&&0===s[0]||(t.mozDash=s),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"),u=this.getStyle("font-variant"),s=this.getStyle("font-weight"),c=this.getStyle("font-size"),l=this.getStyle("font-family"),h=new ba(a.getString(),u.getString(),s.getString(),c.hasValue()?"".concat(c.getPixels(!0),"px"):"",l.getString(),ba.parse(h.getString(),t.font)),a.setValue(h.fontStyle),u.setValue(h.fontVariant),s.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){ma(ko(i.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),i}();var yu=function(){xo(y,pu);var r,n,i=(r=y,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function y(t,e,r){return Jn(this,y),(r=i.call(this,t,e,r)).type="path",r.pathParser=null,r.pathParser=new lu(r.getAttribute("d").getString()),r}return ei(y,[{key:"path",value:function(t){var e=this.pathParser,r=new Va;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case lu.MOVE_TO:this.pathM(t,r);break;case lu.LINE_TO:this.pathL(t,r);break;case lu.HORIZ_LINE_TO:this.pathH(t,r);break;case lu.VERT_LINE_TO:this.pathV(t,r);break;case lu.CURVE_TO:this.pathC(t,r);break;case lu.SMOOTH_CURVE_TO:this.pathS(t,r);break;case lu.QUAD_TO:this.pathQ(t,r);break;case lu.SMOOTH_QUAD_TO:this.pathT(t,r);break;case lu.ARC:this.pathA(t,r);break;case lu.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 e.map(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")?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 n,i=r.length-1,o=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),u=this.getStyle("marker-end");if(o.isUrlDefinition()&&(e=o.getDefinition(),o=(n=Mn(r[0],2))[0],n=n[1],e.render(t,o,n)),a.isUrlDefinition())for(var s=a.getDefinition(),c=1;c<i;c++){var l=Mn(r[c],2),h=l[0],l=l[1];s.render(t,h,l)}u.isUrlDefinition()&&(n=u.getDefinition(),u=(a=Mn(r[i],2))[0],a=a[1],n.render(t,u,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,u=n.sweepFlag,s=n.xAxisRotation,c=n.centp,l=n.a1,h=n.ad,f=1-u?1:-1,p=l+h/2*f,n=new no(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(s),t.scale(i,o),t.arc(0,0,e,l,l+h,Boolean(1-u)),t.scale(1/i,1/o),t.rotate(-s),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 no((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 no(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,u=r.sweepFlag,s=o*(Math.PI/180),c=t.getAsCurrentPoint(),r=new no(Math.cos(s)*(e.x-c.x)/2+Math.sin(s)*(e.y-c.y)/2,-Math.sin(s)*(e.x-c.x)/2+Math.cos(s)*(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===u?-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 no(t*n*r.y/i,t*-i*r.x/n),a=new no((e.x+c.x)/2+Math.cos(s)*o.x-Math.sin(s)*o.y,(e.y+c.y)/2+Math.sin(s)*o.x+Math.cos(s)*o.y),t=Xn([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=Xn(e,r);return Hn(e,r)<=-1&&(o=Math.PI),{currentPoint:c,rX:n,rY:i,sweepFlag:u,xAxisRotation:s,centp:a,a1:t,ad:o=1<=Hn(e,r)?0:o}}},{key:"pathZ",value:function(t){t.current=t.start}}]),y}();var gu=function(){xo(o,yu);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.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 o}();var du=function(){xo(o,pu);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,(this instanceof o?this.constructor:void 0)===o||r)).type="text",r.x=0,r.y=0,r.measureCache=-1,r}return ei(o,[{key:"setContext",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];ma(ko(o.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 n=this;if("text"!==this.type)return this.getTElementBoundingBox(r);this.initializeCoordinates(r);var i=null;return this.children.forEach(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=ba.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(t)}},{key:"getTElementBoundingBox",value:function(t){var e=this.getFontSize();return new Va(this.x,this.y-e,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,e,r){var n,i,o,a=e[r],u=null;return t.isArabic?(n=e.length,i=e[r-1],o=e[r+1],void 0!==t.glyphs[a]&&(u=(e=t.glyphs[a])instanceof gu?e:e[0<r&&" "!==i&&(r===n-1||" "===o)?"initial":0<r&&" "!==i&&r<n-2&&" "!==o?"medial":(0===r||" "===i)&&r<n-2&&" "!==o?"terminal":"isolated"])):u=t.glyphs[a],u=u||t.missingGlyph}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),t=r.indexOf(e),r=r.length-1,e=bn(e.textContent||"");return 0===t&&(e=Sn(e)),e=t===r?wn(e):e}},{key:"renderChildren",value:function(r){var t,n=this;"text"===this.type?(this.initializeCoordinates(r),this.children.forEach(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,a=ba.parse(e.ctx.font),u=r.getStyle("font-size").getNumber(a.fontSize),s=r.getStyle("font-style").getString(a.fontStyle),c=u/o,l=i.isRTL?n.split("").reverse().join(""):n,h=kn(r.getAttribute("dx").getString()),f=l.length,p=0;p<f;p++){var y=this.getGlyph(i,l,p);t.translate(this.x,this.y),t.scale(c,-c);var g=t.lineWidth;t.lineWidth=t.lineWidth*o/u,"italic"===s&&t.transform(1,0,.4,1,0,0),y.render(t),"italic"===s&&t.transform(1,0,-.4,1,0,0),t.lineWidth=g,t.scale(1/c,-1/c),t.translate(-this.x,-this.y),this.x+=u*(y.horizAdvX||i.horizAdvX)/o,void 0===h[p]||isNaN(h[p])||(this.x+=h[p])}else{a=this.x,r=this.y;t.fillStyle&&t.fillText(n,a,r),t.strokeStyle&&t.strokeText(n,a,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,u=0,s=r;s<o&&(a=i[s],!(r<s&&a.getAttribute("x").hasValue()||a.getAttribute("text-anchor").hasValue()));s++)u+=a.measureTextRecursive(t);return-1*("end"===n?u:u/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"),u=i.getAttribute("y"),s=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")),u.hasValue()||u.setValue(e.getAttribute("y").getValue("0")),s.hasValue()||s.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)),s.hasValue()&&(i.x+=s.getPixels("x"))):("start"!==l&&(o=i.measureTextRecursive(t),e.x+=-1*("end"===l?o:o/2)),s.hasValue()&&(e.x+=s.getPixels("x")),i.x=e.x),e.x=i.x+i.measureText(t),u.hasValue()?(i.y=u.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?(i.children.forEach(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),i.children.forEach(function(t,e){n.renderChild(r,n,i,e)})}},{key:"measureTextRecursive",value:function(r){return this.children.reduce(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=this.getFontSize(),o=n.isRTL?e.split("").reverse().join(""):e,a=kn(r.getAttribute("dx").getString()),u=o.length,s=0,c=0;c<u;c++)s+=(this.getGlyph(n,o,c).horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,void 0===a[c]||isNaN(a[c])||(s+=a[c]);return s}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}}]),o}();var vu=function(){xo(o,du);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,(this instanceof o?this.constructor:void 0)===o||r)).type="tspan",r.text=0<r.children.length?"":r.getTextFromNode(),r}return ei(o,[{key:"getText",value:function(){return this.text}}]),o}();var mu=function(){xo(i,vu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="textNode",t}return i}();var xu=function(){xo(y,pu);var r,n,e=(r=y,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function y(){var t;return Jn(this,y),(t=e.apply(this,arguments)).type="svg",t.root=!1,t}return ei(y,[{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"),(p=new qi(e,"fontSize",ba.parse(t.font).fontSize)).hasValue()&&(e.rootEmSize=p.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,u=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 s=this.getAttribute("refX"),c=this.getAttribute("refY"),l=this.getAttribute("viewBox"),h=l.hasValue()?kn(l.getString()):null,f=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),n=0,i=0,p=0,o=0;h&&(n=h[0],i=h[1]),this.root||(a=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y"),"marker"===this.type&&(p=n,o=i,i=n=0)),r.viewPort.setCurrent(a,u),!this.node||this.parent&&"foreignObject"!==(null===(l=this.node.parentNode)||void 0===l?void 0:l.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),ma(ko(y.prototype),"setContext",this).call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),h&&(a=h[2],u=h[3]),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:a,height:r.viewPort.height,desiredHeight:u,minX:n,minY:i,refX:s.getValue(),refY:c.getValue(),clip:f,clipX:p,clipY:o}),h&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(a,u))}},{key:"clearContext",value:function(t){ma(ko(y.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"),u=n.getNumber(0),s=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("0 0 ".concat(u||t," ").concat(s||e)),a.hasValue()&&(s=this.getStyle("width"),a=this.getStyle("height"),s.hasValue()&&s.setValue("".concat(t,"px")),a.hasValue()&&a.setValue("".concat(e,"px")))}}]),y}();var bu=function(){xo(i,yu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="rect",t}return ei(i,[{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"),u=o.getPixels("x"),s=a.getPixels("y");return o.hasValue()&&!a.hasValue()&&(s=u),a.hasValue()&&!o.hasValue()&&(u=s),u=Math.min(u,n/2),s=Math.min(s,i/2),t&&(o=(Math.sqrt(2)-1)/3*4,t.beginPath(),0<i&&0<n&&(t.moveTo(e+u,r),t.lineTo(e+n-u,r),t.bezierCurveTo(e+n-u+o*u,r,e+n,r+s-o*s,e+n,r+s),t.lineTo(e+n,r+i-s),t.bezierCurveTo(e+n,r+i-s+o*s,e+n-u+o*u,r+i,e+n-u,r+i),t.lineTo(e+u,r+i),t.bezierCurveTo(e+u-o*u,r+i,e,r+i-s+o*s,e,r+i-s),t.lineTo(e,r+s),t.bezierCurveTo(e,r+s-o*s,e+u-o*u,r,e+u,r),t.closePath())),new Va(e,r,e+n,r+i)}},{key:"getMarkers",value:function(){return null}}]),i}();Se=function(){xo(i,yu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="circle",t}return ei(i,[{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 Va(e-n,r-n,e+n,r+n)}},{key:"getMarkers",value:function(){return null}}]),i}();Ae=function(){xo(i,yu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="ellipse",t}return ei(i,[{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 Va(i-r,o-n,i+r,o+n)}},{key:"getMarkers",value:function(){return null}}]),i}();we=function(){xo(i,yu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="line",t}return ei(i,[{key:"getPoints",value:function(){return[new no(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new no(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var e=this.getPoints(),r=Mn(e,2),n=r[0],i=n.x,e=n.y,n=r[1],r=n.x,n=n.y;return t&&(t.beginPath(),t.moveTo(i,e),t.lineTo(r,n)),new Va(i,e,r,n)}},{key:"getMarkers",value:function(){var t=this.getPoints(),e=Mn(t,2),r=e[0],t=e[1],e=r.angleTo(t);return[[r,e],[t,e]]}}]),i}();var Su=function(){xo(o,yu);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="polyline",r.points=[],r.points=no.parsePath(r.getAttribute("points").getString()),r}return ei(o,[{key:"path",value:function(r){var t=this.points,e=Mn(t,1)[0],n=e.x,e=e.y,i=new Va(n,e);return r&&(r.beginPath(),r.moveTo(n,e)),t.forEach(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 r.forEach(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}}]),o}();Y=function(){xo(i,Su);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="polygon",t}return ei(i,[{key:"path",value:function(t){var e=ma(ko(i.prototype),"path",this).call(this,t),r=Mn(this.points,1)[0],n=r.x,r=r.y;return t&&(t.lineTo(n,r),t.closePath()),e}}]),i}();D=function(){xo(i,ha);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="pattern",t}return ei(i,[{key:"createPattern",value:function(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new xu(this.document,null);o.attributes.viewBox=new qi(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new qi(this.document,"width","".concat(n,"px")),o.attributes.height=new qi(this.document,"height","".concat(i,"px")),o.attributes.transform=new qi(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var a=this.document.createCanvas(n,i),u=a.getContext("2d"),n=this.getAttribute("x"),i=this.getAttribute("y");n.hasValue()&&i.hasValue()&&u.translate(n.getPixels("x",!0),i.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var s=-1;s<=1;s++)for(var c=-1;c<=1;c++)u.save(),o.attributes.x=new qi(this.document,"x",s*a.width),o.attributes.y=new qi(this.document,"y",c*a.height),o.render(u),u.restore();return t.createPattern(a,"repeat")}}]),i}();q=function(){xo(i,ha);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="marker",t}return ei(i,[{key:"render",value:function(t,e,r){var n,i,o,a;e&&(n=e.x,i=e.y,o=this.getAttribute("orient").getString("auto"),a=this.getAttribute("markerUnits").getString("strokeWidth"),t.translate(n,i),"auto"===o&&t.rotate(r),"strokeWidth"===a&&t.scale(t.lineWidth,t.lineWidth),t.save(),(e=new xu(this.document,null)).type=this.type,e.attributes.viewBox=new qi(this.document,"viewBox",this.getAttribute("viewBox").getValue()),e.attributes.refX=new qi(this.document,"refX",this.getAttribute("refX").getValue()),e.attributes.refY=new qi(this.document,"refY",this.getAttribute("refY").getValue()),e.attributes.width=new qi(this.document,"width",this.getAttribute("markerWidth").getValue()),e.attributes.height=new qi(this.document,"height",this.getAttribute("markerHeight").getValue()),e.attributes.overflow=new qi(this.document,"overflow",this.getAttribute("overflow").getValue()),e.attributes.fill=new qi(this.document,"fill",this.getAttribute("fill").getColor("black")),e.attributes.stroke=new qi(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))}}]),i}();var wu=function(){xo(i,ha);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="defs",t}return ei(i,[{key:"render",value:function(){}}]),i}();var ku=function(){xo(i,pu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="g",t}return ei(i,[{key:"getBoundingBox",value:function(e){var r=new Va;return this.children.forEach(function(t){r.addBoundingBox(t.getBoundingBox(e))}),r}}]),i}();var Au=function(){xo(o,ha);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){Jn(this,o),(e=i.call(this,t,e,r)).attributesToInherit=["gradientUnits"],e.stops=[];var r=wo(e),n=r.stops;return r.children.forEach(function(t){"stop"===t.type&&n.push(t)}),e}return ei(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(o.forEach(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=t.viewPort,t=Mn(o.viewPorts,1)[0],o=new bu(i,null);o.attributes.x=new qi(i,"x",-e/3),o.attributes.y=new qi(i,"y",-e/3),o.attributes.width=new qi(i,"width",e),o.attributes.height=new qi(i,"height",e);e=new ku(i,null);e.attributes.transform=new qi(i,"transform",this.getAttribute("gradientTransform").getValue()),e.children=[o];o=new xu(i,null);o.attributes.x=new qi(i,"x",0),o.attributes.y=new qi(i,"y",0),o.attributes.width=new qi(i,"width",t.width),o.attributes.height=new qi(i,"height",t.height),o.children=[e];i=i.createCanvas(t.width,t.height),t=i.getContext("2d");return t.fillStyle=a,o.render(t),t.createPattern(i,"no-repeat")}return a}},{key:"inheritStopContainer",value:function(e){var r=this;this.attributesToInherit.forEach(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 qi(this.document,"color",e).addOpacity(t).getColor():e}}]),o}();var Ru=function(){xo(o,Au);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="linearGradient",r.attributesToInherit.push("x1","y1","x2","y2"),r}return ei(o,[{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)}}]),o}();Bo=function(){xo(o,Au);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="radialGradient",r.attributesToInherit.push("cx","cy","r","fx","fy","fr"),r}return ei(o,[{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)}}]),o}();var me=function(){xo(o,ha);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){var n;Jn(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}(),Tu="Array Iterator",Eu=Z.set,Pu=Z.getterFor(Tu),Ou=Xo(Array,"Array",function(t,e){Eu(this,{type:Tu,target:it(t),index:0,kind:e})},function(){var t=Pu(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");ne.Arguments=ne.Array,Oe("keys"),Oe("values"),Oe("entries");var Cu,Mu=h("iterator"),Nu=h("toStringTag"),_u=Ou.values;for(Cu in eo){var Du=d[Cu],Vu=Du&&Du.prototype;if(Vu){if(Vu[Mu]!==_u)try{x(Vu,Mu,_u)}catch(t){Vu[Mu]=_u}if(Vu[Nu]||x(Vu,Nu,Cu),eo[Cu])for(var Iu in Ou)if(Vu[Iu]!==Ou[Iu])try{x(Vu,Iu,Ou[Iu])}catch(t){Vu[Iu]=Ou[Iu]}}}var Lu=function(){xo(o,ha);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){Jn(this,o),(r=i.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(wo(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=new qi(t,"values",null);t=r.getAttribute("values");return t.hasValue()&&r.values.setValue(t.getString().split(";")),r}return ei(o,[{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),"".concat(r).concat(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="".concat(t,"(").concat(e,")")),r.setValue(e),n=!0),n}},{key:"getProgress",value:function(){var t,e,r,n=this.document,i=this.values,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 qi(n,"from",parseFloat(i.getValue()[e])),o.to=new qi(n,"to",parseFloat(i.getValue()[r])),o.progress=(t-e)/(r-e)):(o.from=this.from,o.to=this.to),o}}]),o}();$=function(){xo(i,Lu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="animateColor",t}return ei(i,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=new Gi(r.getColor()),t=new Gi(n.getColor());if(i.ok&&t.ok){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"rgb(".concat(Math.floor(r),", ").concat(Math.floor(n),", ").concat(Math.floor(e),")")}return this.getAttribute("from").getColor()}}]),i}();jt=function(){xo(i,Lu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="animateTransform",t}return ei(i,[{key:"calcValue",value:function(){var t=this.getProgress(),r=t.progress,e=t.from,t=t.to,e=kn(e.getString()),n=kn(t.getString());return e.map(function(t,e){return t+(n[e]-t)*r}).join(" ")}}]),i}();function ju(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}Fe=function(){xo(h,ha);var r,n,l=(r=h,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function h(t,e,r){var n;Jn(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=function(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t){if(t){if("string"==typeof t)return ju(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ju(t,void 0):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=t[Symbol.iterator]()},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}}}}(wo(n).children);try{for(a.s();!(i=a.n()).done;){var u=i.value;switch(u.type){case"font-face":var s=(n.fontFace=u).getStyle("font-family");s.hasValue()&&(o[s.getString()]=wo(n));break;case"missing-glyph":n.missingGlyph=u;break;case"glyph":var c=u;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 ei(h,[{key:"render",value:function(){}}]),h}();Ir=function(){xo(o,ha);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.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 o}();dn=function(){xo(i,yu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="missing-glyph",t.horizAdvX=0,t}return i}();Ci=function(){xo(i,du);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="tref",t}return ei(i,[{key:"getText",value:function(){var t=this.getHrefAttribute().getDefinition();if(t){t=t.children[0];if(t)return t.getText()}return""}}]),i}();var Fu,zu,Bu,Uu,Hu,Xu,Yu,Wu,xn=function(){xo(o,du);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){Jn(this,o),(t=i.call(this,t,e,r)).type="a";r=e.childNodes,e=r[0],r=0<r.length&&Array.from(r).every(function(t){return 3===t.nodeType});return t.hasText=r,t.text=r?t.getTextFromNode(e):"",t}return ei(o,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){var e,r,n,i;this.hasText?(ma(ko(o.prototype),"renderChildren",this).call(this,t),n=this.document,e=this.x,i=this.y,r=n.screen.mouse,n=new qi(n,"fontSize",ba.parse(n.ctx.font).fontSize),r.isWorking()&&r.checkBoundingBox(this,new Va(e,i-n.getPixels("y"),e+this.measureText(t),i))):0<this.children.length&&((i=new ku(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}(),Gu=!c(function(){return Object.isExtensible(Object.preventExtensions({}))}),i=r(function(t){function r(t){e(t,n,{value:{objectID:"O"+ ++i,weakData:{}}})}var e=m.f,n=u("meta"),i=0,o=Object.isExtensible||function(){return!0},a=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!p(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!A(t,n)){if(!o(t))return"F";if(!e)return"E";r(t)}return t[n].objectID},getWeakData:function(t,e){if(!A(t,n)){if(!o(t))return!0;if(!e)return!1;r(t)}return t[n].weakData},onFreeze:function(t){return Gu&&a.REQUIRED&&o(t)&&!A(t,n)&&r(t),t}};Q[n]=!0}),qu=m.f,Qu=i.fastKey,$u=Z.set,Zu=Z.getterFor;function Ku(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 Ju(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function ts(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ju(Object(r),!0).forEach(function(t){Kn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ju(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function es(t){var r=Yu[t];K(Yu,t,"add"==t?function(t){return r.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(Uu&&!p(t))&&r.call(this,0===t?0:t)}:"get"==t?function(t){return Uu&&!p(t)?void 0:r.call(this,0===t?0:t)}:"has"==t?function(t){return!(Uu&&!p(t))&&r.call(this,0===t?0:t)}:function(t,e){return r.call(this,0===t?0:t,e),this})}ve=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Jt={getConstructor:function(t,r,n,i){function o(t,e,r){var n,i=s(t),o=a(t,e);return o?o.value=r:(i.last=o={index:n=Qu(e,!0),key:e,value:r,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=o),r&&(r.next=o),f?i.size++:t.size++,"F"!==n&&(i.index[n]=o)),t}function a(t,e){var r,n=s(t);if("F"!==(t=Qu(e)))return n.index[t];for(r=n.first;r;r=r.next)if(r.key==e)return r}var u=t(function(t,e){gt(t,u,r),$u(t,{type:r,index:Mo(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=e&&St(e,t[i],{that:t,AS_ENTRIES:n})}),s=Zu(r);return ht(u.prototype,{clear:function(){for(var t=s(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,f?t.size=0:this.size=0},delete:function(t){var e,r=s(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),f?r.size--:this.size--),!!n},forEach:function(t){for(var e,r=s(this),n=vt(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)}}),ht(u.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)}}),f&&qu(u.prototype,"size",{get:function(){return s(this).size}}),u},setStrong:function(t,e,r){var n=e+" Iterator",i=Zu(e),o=Zu(n);Xo(t,e,function(t,e){$u(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),pt(e)}},Bu=-1!==(Fu="Map").indexOf("Map"),Uu=-1!==Fu.indexOf("Weak"),Hu=Bu?"set":"add",Xu=d.Map,Yu=Xu&&Xu.prototype,wt={},Zt(Fu,"function"!=typeof(Wu=Xu)||!(Uu||Yu.forEach&&!c(function(){(new Xu).entries().next()})))?(Wu=Jt.getConstructor(ve,Fu,Bu,Hu),i.REQUIRED=!0):Zt(Fu,!0)&&(vs=(zu=new Wu)[Hu](Uu?{}:-0,1)!=zu,gs=c(function(){zu.has(1)}),ys=ye(function(t){new Xu(t)}),ds=!Uu&&c(function(){for(var t=new Xu,e=5;e--;)t[Hu](e,e);return!t.has(-0)}),ys||(((Wu=ve(function(t,e){gt(t,Wu,Fu);t=wa(new Xu,t,Wu);return null!=e&&St(e,t[Hu],{that:t,AS_ENTRIES:Bu}),t})).prototype=Yu).constructor=Wu),(gs||ds)&&(es("delete"),es("has"),Bu&&es("get")),(ds||vs)&&es(Hu),Uu&&Yu.clear&&delete Yu.clear),wt.Map=Wu,lt({global:!0,forced:Wu!=Xu},wt),ft(Wu,Fu),Uu||Jt.setStrong(Wu,Fu,Bu);_r=function(){xo(o,du);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){Jn(this,o),(e=i.call(this,t,e,r)).type="textPath",e.textWidth=0,e.textHeight=0,e.pathLength=-1,e.glyphInfo=null,e.letterSpacingCache=[],e.measuresCache=new Map([["",0]]);r=e.getHrefAttribute().getDefinition();return e.text=e.getTextFromNode(),e.dataArray=e.parsePathData(r),e}return ei(o,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(p){var t=this.dataArray;p&&p.beginPath(),t.forEach(function(t){var e=t.type,r=t.points;switch(e){case lu.LINE_TO:p&&p.lineTo(r[0],r[1]);break;case lu.MOVE_TO:p&&p.moveTo(r[0],r[1]);break;case lu.CURVE_TO:p&&p.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case lu.QUAD_TO:p&&p.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case lu.ARC:var n=Mn(r,8),i=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],l=n[6],h=n[7],f=u<a?a:u,n=u<a?1:a/u,a=u<a?u/a:1;p&&(p.translate(i,o),p.rotate(l),p.scale(n,a),p.arc(0,0,f,s,s+c,Boolean(1-h)),p.scale(1/n,1/a),p.rotate(-l),p.translate(-i,-o));break;case lu.CLOSE_PATH:p&&p.closePath()}})}},{key:"renderChildren",value:function(o){this.setTextData(o),o.save();var a=this.parent.getStyle("text-decoration").getString(),u=this.getFontSize(),t=this.glyphInfo,e=o.fillStyle;"underline"===a&&o.beginPath(),t.forEach(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+u/8),o.lineTo(n.x,n.y+u/5))}),"underline"===a&&(o.lineWidth=u/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,u,s){t=this.measureText(t,u);" "===u&&"justify"===e&&r<n&&(t+=(n-r)/i),-1<s&&(o+=this.getLetterSpacingAt(s));e=this.textHeight/20,n=this.getEquidistantPointOnPath(o,e,0),r=this.getEquidistantPointOnPath(o+t,e,0),i={p0:n,p1:r},s=n&&r?Math.atan2(r.y-n.y,r.x-n.x):0;return a&&(e=Math.cos(Math.PI/2+s)*a,a=Math.cos(-s)*a,i.p0=ts(ts({},n),{},{x:n.x+e,y:n.y+a}),i.p1=ts(ts({},r),{},{x:r.x+e,y:r.y+a})),{offset:o+=t,segment:i,rotation:s}}},{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(""),u=t.split(" ").length-1,e=this.parent.getAttribute("dx").split().map(function(t){return t.getPixels("x")}),s=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=h.reduce(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,d="end"!==c&&"right"!==c?"middle"!==c&&"center"!==c?0:-y/2:-y;d+=t,a.forEach(function(t,e){var r=o.findSegmentToFitChar(i,c,y,g,u,d,s,t,e),n=r.offset,t=r.segment,r=r.rotation;d=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,u=[];switch(n.type){case lu.MOVE_TO:this.pathM(r,u);break;case lu.LINE_TO:a=this.pathL(r,u);break;case lu.HORIZ_LINE_TO:a=this.pathH(r,u);break;case lu.VERT_LINE_TO:a=this.pathV(r,u);break;case lu.CURVE_TO:this.pathC(r,u);break;case lu.SMOOTH_CURVE_TO:a=this.pathS(r,u);break;case lu.QUAD_TO:this.pathQ(r,u);break;case lu.SMOOTH_QUAD_TO:a=this.pathT(r,u);break;case lu.ARC:u=this.pathA(r);break;case lu.CLOSE_PATH:yu.pathZ(r)}n.type!==lu.CLOSE_PATH?e.push({type:a,points:u,start:{x:i,y:o},pathLength:this.calcLength(i,o,a,u)}):e.push({type:lu.CLOSE_PATH,points:[],pathLength:0})}return e}},{key:"pathM",value:function(t,e){var r=yu.pathM(t).point,t=r.x,r=r.y;e.push(t,r)}},{key:"pathL",value:function(t,e){var r=yu.pathL(t).point,t=r.x,r=r.y;return e.push(t,r),lu.LINE_TO}},{key:"pathH",value:function(t,e){var r=yu.pathH(t).point,t=r.x,r=r.y;return e.push(t,r),lu.LINE_TO}},{key:"pathV",value:function(t,e){var r=yu.pathV(t).point,t=r.x,r=r.y;return e.push(t,r),lu.LINE_TO}},{key:"pathC",value:function(t,e){var r=yu.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=yu.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),lu.CURVE_TO}},{key:"pathQ",value:function(t,e){var r=yu.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=yu.pathT(t),t=r.controlPoint,r=r.currentPoint;return e.push(t.x,t.y,r.x,r.y),lu.QUAD_TO}},{key:"pathA",value:function(t){var e=yu.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,u=0;switch(r){case lu.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case lu.CURVE_TO:for(o=this.getPointOnCubicBezier(i=0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),u=.01;u<=1;u+=.01)a=this.getPointOnCubicBezier(u,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 lu.QUAD_TO:for(o=this.getPointOnQuadraticBezier(i=0,t,e,n[0],n[1],n[2],n[3]),u=.01;u<=1;u+=.01)a=this.getPointOnQuadraticBezier(u,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 lu.ARC:var i=0,s=n[4],c=n[5],l=n[4]+c,h=Math.PI/180;if(Math.abs(s-l)<h&&(h=Math.abs(s-l)),o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),c<0)for(u=s-h;l<u;u-=h)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;else for(u=s+h;u<l;u+=h)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,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,u=(i-r)/(n-e+Bn),s=Math.sqrt(t*t/(1+u*u));n<e&&(s*=-1);var c=u*s,l=null;if(n===e)l={x:o,y:a+c};else if((a-r)/(o-e+Bn)==u)l={x:o+s,y:a+c};else{var h=0,f=this.getLineLength(e,r,n,i);if(f<Bn)return null;var p=(o-e)*(n-e)+(a-r)*(i-r),y=e+(p/=f*f)*(n-e),r=this.getLineLength(o,a,y,h=r+p*(i-r)),r=Math.sqrt(t*t-r*r),s=Math.sqrt(r*r/(1+u*u));n<e&&(s*=-1),l={x:y+s,y:h+(c=u*s)}}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=function(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t){if(t){if("string"==typeof t)return Ku(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ku(t,void 0):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=t[Symbol.iterator]()},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}}}}(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 u=t-r,s=0;switch(a.type){case lu.LINE_TO:n=this.getPointOnLine(u,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case lu.ARC:var c=a.points[4],l=a.points[5],h=a.points[4]+l,s=c+u/a.pathLength*l;if(l<0&&s<h||0<=l&&h<s)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],s,a.points[6]);break;case lu.CURVE_TO:1<(s=u/a.pathLength)&&(s=1),n=this.getPointOnCubicBezier(s,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 lu.QUAD_TO:1<(s=u/a.pathLength)&&(s=1),n=this.getPointOnQuadraticBezier(s,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(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(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,u,s){return{x:u*Yn(t)+o*Wn(t)+n*Gn(t)+e*qn(t),y:s*Yn(t)+a*Wn(t)+i*Gn(t)+r*qn(t)}}},{key:"getPointOnQuadraticBezier",value:function(t,e,r,n,i,o,a){return{x:o*Qn(t)+n*$n(t)+e*Zn(t),y:a*Qn(t)+i*$n(t)+r*Zn(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 u=this.getPointOnPath(a),s=this.getPointOnPath(a+n);u&&s&&(o+=this.getLineLength(u.x,u.y,s.x,s.y))>=i&&(this.equidistantCache.points.push({x:u.x,y:u.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}}]),o}();var rs=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,le=function(){xo(a,pu);var e,r,n,i,o=(n=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(n);return e=i?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function a(t,e,r){var n;Jn(this,a),(n=o.call(this,t,e,r)).type="image",n.loaded=!1;e=n.getHrefAttribute().getString();if(!e)return bo(n);r=e.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(e);return t.images.push(wo(n)),r?n.loadSvg(e):n.loadImage(e),n.isSvg=r,n}return ei(a,[{key:"loadImage",value:(r=Rr(kr.mark(function t(e){var r;return kr.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),console.error('Error while loading image "'.concat(e,'":'),t.t0);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=Rr(kr.mark(function t(e){var r,n,i;return kr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=rs.exec(e))){t.next=6;break}n=r[5],"base64"===r[4]?this.image=atob(n):this.image=decodeURIComponent(n),t.next=19;break;case 6:return t.prev=6,t.next=9,this.document.fetch(e);case 9:return i=t.sent,t.next=12,i.text();case 12:i=t.sent,this.image=i,t.next=19;break;case 16:t.prev=16,t.t0=t.catch(6),console.error('Error while loading image "'.concat(e,'":'),t.t0);case 19:this.loaded=!0;case 20:case"end":return t.stop()}},t,this,[[6,16]])})),function(t){return e.apply(this,arguments)})},{key:"renderChildren",value:function(t){var e,r=this.document,n=this.image,i=this.loaded,o=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),u=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");i&&n&&u&&s&&(t.save(),t.translate(o,a),this.isSvg?((e=r.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:u,scaleHeight:s})).document.documentElement.parent=this,e.render()):(e=this.image,r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:u,desiredWidth:e.width,height:s,desiredHeight:e.height}),this.loaded&&(void 0===e.complete||e.complete)&&t.drawImage(e,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 Va(t,e,t+r,e+n)}}]),a}();var ns,Ce=function(){xo(i,pu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="symbol",t}return ei(i,[{key:"render",value:function(t){}}]),i}(),is=(ei(os,[{key:"load",value:(ns=Rr(kr.mark(function t(e,r){var n,i;return kr.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"),Array.from(i).forEach(function(t){t=n.createElement(t);n.definitions[e]=t}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.error('Error while loading font "'.concat(r,'":'),t.t0);case 12:this.loaded=!0;case 13:case"end":return t.stop()}},t,this,[[0,9]])})),function(t,e){return ns.apply(this,arguments)})}]),os);function os(t){Jn(this,os),this.document=t,this.loaded=!1,t.fonts.push(this)}Lt=function(){xo(a,ha);var r,n,o=(r=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function a(i,t,e){return Jn(this,a),(e=o.call(this,i,t,e)).type="style",bn(Array.from(t.childNodes).map(function(t){return t.textContent}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(function(t){var r,e=t.trim();e&&(e=(t=e.split("{"))[0].split(","),r=t[1].split(";"),e.forEach(function(t){var n,e,t=t.trim();t&&(n=i.styles[t]||{},r.forEach(function(t){var e=t.indexOf(":"),r=t.substr(0,e).trim(),e=t.substr(e+1,t.length-e).trim();r&&e&&(n[r]=new qi(i,r,e))}),i.styles[t]=n,i.stylesSpecificity[t]=zn(t),"@font-face"===t&&(e=n["font-family"].getString().replace(/"|'/g,""),n.src.getString().split(",").forEach(function(t){0<t.indexOf('format("svg")')&&((t=Tn(t))&&new is(i).load(e,t))})))}))}),e}return a}();Lt.parseExternalUrl=Tn;Oe=function(){xo(i,pu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="use",t}return ei(i,[{key:"setContext",value:function(t){ma(ko(i.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 xu(n,null)).attributes.viewBox=new qi(n,"viewBox",i.getAttribute("viewBox").getString()),e.attributes.preserveAspectRatio=new qi(n,"preserveAspectRatio",i.getAttribute("preserveAspectRatio").getString()),e.attributes.overflow=new qi(n,"overflow",i.getAttribute("overflow").getString()),e.children=i.children,i.styles.opacity=new qi(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 qi(n,"width",i.getString())),r.hasValue()&&(e.attributes.height=new qi(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 ca.fromElement(t,e)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),i}();function as(t,e,r,n,i,o){return t[r*n*4+4*e+o]}function us(t,e,r,n,i,o,a){t[r*n*4+4*e+o]=a}function ss(t,e,r){return t[e]*r}function cs(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}var ls=function(){xo(a,ha);var r,n,o=(r=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function a(t,e,r){Jn(this,a),(r=o.call(this,t,e,r)).type="feColorMatrix";var n=kn(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=[cs(i,.213,.787,-.213),cs(i,.715,-.715,-.715),cs(i,.072,-.072,.928),0,0,cs(i,.213,-.213,.143),cs(i,.715,.285,.14),cs(i,.072,-.072,-.283),0,0,cs(i,.213,-.213,-.787),cs(i,.715,-.715,.715),cs(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 ei(a,[{key:"apply",value:function(t,e,r,n,i){for(var o=this.includeOpacity,a=this.matrix,u=t.getImageData(0,0,n,i),s=0;s<i;s++)for(var c=0;c<n;c++){var l=as(u.data,c,s,n,0,0),h=as(u.data,c,s,n,0,1),f=as(u.data,c,s,n,0,2),p=as(u.data,c,s,n,0,3),y=ss(a,0,l)+ss(a,1,h)+ss(a,2,f)+ss(a,3,p)+ss(a,4,1),g=ss(a,5,l)+ss(a,6,h)+ss(a,7,f)+ss(a,8,p)+ss(a,9,1),d=ss(a,10,l)+ss(a,11,h)+ss(a,12,f)+ss(a,13,p)+ss(a,14,1),f=ss(a,15,l)+ss(a,16,h)+ss(a,17,f)+ss(a,18,p)+ss(a,19,1);o&&(d=g=y=0,f*=p/255),us(u.data,c,s,n,0,0,y),us(u.data,c,s,n,0,1,g),us(u.data,c,s,n,0,2,d),us(u.data,c,s,n,0,3,f)}t.clearRect(0,0,n,i),t.putImageData(u,0,0)}}]),a}();i=function(){xo(p,ha);var r,n,e=(r=p,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function p(){var t;return Jn(this,p),(t=e.apply(this,arguments)).type="mask",t}return ei(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"),u=this.getStyle("height").getPixels("y");a||u||(r=new Va,this.children.forEach(function(t){r.addBoundingBox(t.getBoundingBox(e))}),i=Math.floor(r.x1),o=Math.floor(r.y1),a=Math.floor(r.width),u=Math.floor(r.height));var s=this.removeStyles(t,p.ignoreStyles),c=n.createCanvas(i+a,o+u),l=c.getContext("2d");n.screen.setDefaults(l),this.renderChildren(l),new ls(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(l,0,0,i+a,o+u);var h=n.createCanvas(i+a,o+u),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+u),e.fillStyle=f.createPattern(h,"no-repeat"),e.fillRect(0,0,i+a,o+u),this.restoreStyles(t,s)}},{key:"render",value:function(t){}}]),p}();i.ignoreStyles=["mask","transform","clip-path"];var hs=at("Reflect","apply"),fs=Function.apply,ye=!c(function(){hs(function(){})});lt({target:"Reflect",stat:!0,forced:ye},{apply:function(t,e,r){return yt(t),R(r),hs?hs(t,e,r):fs.call(t,e,r)}}),lt({target:"Reflect",stat:!0,sham:!O},{getPrototypeOf:function(t){return Fo(R(t))}});function ps(){}var ys=function(){xo(i,ha);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="clipPath",t}return ei(i,[{key:"apply",value:function(r){var n=this.document,i=Reflect.getPrototypeOf(r),t=r.beginPath,o=r.closePath;i&&(i.beginPath=ps,i.closePath=ps),Reflect.apply(t,r,[]),this.children.forEach(function(t){var e;void 0!==t.path&&((e=(e=void 0!==t.elementTransform?t.elementTransform():null)||ca.fromElement(n,t))&&e.apply(r),t.path(r),i&&(i.closePath=o),e&&e.unapply(r))}),Reflect.apply(o,r,[]),r.clip(),i&&(i.beginPath=t,i.closePath=o)}},{key:"render",value:function(t){}}]),i}();ve=function(){xo(p,ha);var r,n,e=(r=p,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function p(){var t;return Jn(this,p),(t=e.apply(this,arguments)).type="filter",t}return ei(p,[{key:"apply",value:function(t,e){var r,n,i,o,a,u,s,c,l=this.document,h=this.children,f=e.getBoundingBox(t);f&&(n=r=0,h.forEach(function(t){t=t.extraFilterDistance||0;r=Math.max(r,t),n=Math.max(n,t)}),s=Math.floor(f.width),u=Math.floor(f.height),o=u+2*n,(i=s+2*r)<1||o<1||(a=Math.floor(f.x),u=Math.floor(f.y),s=this.removeStyles(e,p.ignoreStyles),f=l.createCanvas(i,o),c=f.getContext("2d"),l.screen.setDefaults(c),c.translate(-a+r,-u+n),e.render(c),h.forEach(function(t){"function"==typeof t.apply&&t.apply(c,0,0,i,o)}),t.drawImage(f,0,0,i,o,a-r,u-n,i,o),this.restoreStyles(e,s)))}},{key:"render",value:function(t){}}]),p}();ve.ignoreStyles=["filter","transform","clip-path"];var gs=function(){xo(o,ha);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="feDropShadow",r.addStylesFromStyleDefinition(),r}return ei(o,[{key:"apply",value:function(t,e,r,n,i){}}]),o}();var ds=function(){xo(i,ha);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="feMorphology",t}return ei(i,[{key:"apply",value:function(t,e,r,n,i){}}]),i}();var vs=function(){xo(i,ha);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="feComposite",t}return ei(i,[{key:"apply",value:function(t,e,r,n,i){}}]),i}();function ms(t){return(ms="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 xs=[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],bs=[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 Ss(){!function(t){if(!(t instanceof Ss))throw new TypeError("Cannot call a class as a function")}(this),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}wt=function(){xo(o,ha);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="feGaussianBlur",r.blurRadius=Math.floor(r.getAttribute("stdDeviation").getNumber()),r.extraFilterDistance=r.blurRadius,r}return ei(o,[{key:"apply",value:function(t,e,r,n,i){var o=this.document,a=this.blurRadius,u=o.window?o.window.document.body:null,s=t.canvas;s.id=o.getUniqueId(),u&&(s.style.display="none",u.appendChild(s)),t=s,o=e,e=r,r=n,n=i,i=a,isNaN(i)||i<1||(i|=0,a=function(t,e,r,n){for(var i,o=t.data,a=2*n+1,u=e-1,s=r-1,c=n+1,l=c*(c+1)/2,h=new Ss,f=h,p=1;p<a;p++)f=f.next=new Ss,p===c&&(i=f);f.next=h;for(var y=null,g=null,d=0,v=0,m=xs[n],x=bs[n],b=0;b<r;b++){for(var f=h,S=o[v],w=o[v+1],k=o[v+2],A=o[v+3],R=0;R<c;R++)f.r=S,f.g=w,f.b=k,f.a=A,f=f.next;for(var T=0,E=0,P=0,O=0,C=c*S,M=c*w,N=c*k,_=c*A,D=l*S,V=l*w,I=l*k,L=l*A,j=1;j<c;j++){var F=v+((u<j?u:j)<<2),z=o[F],B=o[F+1],U=o[F+2],H=o[F+3],F=c-j;D+=(f.r=z)*F,V+=(f.g=B)*F,I+=(f.b=U)*F,L+=(f.a=H)*F,T+=z,E+=B,P+=U,O+=H,f=f.next}y=h;for(var g=i,X=0;X<e;X++){var Y=L*m>>x;0!=(o[v+3]=Y)?(o[v]=(D*m>>x)*(q=255/Y),o[v+1]=(V*m>>x)*q,o[v+2]=(I*m>>x)*q):o[v]=o[v+1]=o[v+2]=0,D-=C,V-=M,I-=N,L-=_,C-=y.r,M-=y.g,N-=y.b,_-=y.a;var W=d+((W=X+n+1)<u?W:u)<<2;D+=T+=y.r=o[W],V+=E+=y.g=o[W+1],I+=P+=y.b=o[W+2],L+=O+=y.a=o[W+3];var y=y.next,G=g,Y=G.r,q=G.g,W=G.b,G=G.a;C+=Y,M+=q,N+=W,_+=G,T-=Y,E-=q,P-=W,O-=G,g=g.next,v+=4}d+=e}for(var Q=0;Q<e;Q++){var $=o[v=Q<<2],Z=o[v+1],K=o[v+2],J=o[v+3],tt=c*$,et=c*Z,rt=c*K,nt=c*J,it=l*$,ot=l*Z,at=l*K,ut=l*J;f=h;for(var st=0;st<c;st++)f.r=$,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++){var v=ct+Q<<2,gt=c-yt;it+=(f.r=$=o[v])*gt,ot+=(f.g=Z=o[v+1])*gt,at+=(f.b=K=o[v+2])*gt,ut+=(f.a=J=o[v+3])*gt,pt+=$,lt+=Z,ht+=K,ft+=J,f=f.next,yt<s&&(ct+=e)}v=Q,y=h,g=i;for(var dt=0;dt<r;dt++){var vt=v<<2;o[vt+3]=J=ut*m>>x,0<J?(o[vt]=(it*m>>x)*(J=255/J),o[vt+1]=(ot*m>>x)*J,o[vt+2]=(at*m>>x)*J):o[vt]=o[vt+1]=o[vt+2]=0,it-=tt,ot-=et,at-=rt,ut-=nt,tt-=y.r,et-=y.g,rt-=y.b,nt-=y.a,vt=Q+((vt=dt+c)<s?vt:s)*e<<2,it+=pt+=y.r=o[vt],ot+=lt+=y.g=o[vt+1],at+=ht+=y.b=o[vt+2],ut+=ft+=y.a=o[vt+3],y=y.next,tt+=$=g.r,et+=Z=g.g,rt+=K=g.b,nt+=J=g.a,pt-=$,lt-=Z,ht-=K,ft-=J,g=g.next,v+=e}}return t}(a=function(t,e,r,n,i){if(!((t="string"==typeof t?document.getElementById(t):t)&&"object"===ms(t)&&"getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=t.getContext("2d");try{return o.getImageData(e,r,n,i)}catch(t){throw new Error("unable to access image data: "+t)}}(t,o,e,r,n),r,n,i),t.getContext("2d").putImageData(a,o,e)),u&&u.removeChild(s)}}]),o}();Jt=function(){xo(i,ha);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="title",t}return i}();ye=function(){xo(i,ha);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="desc",t}return i}(),O={svg:xu,rect:bu,circle:Se,ellipse:Ae,line:we,polyline:Su,polygon:Y,path:yu,pattern:D,marker:q,defs:wu,linearGradient:Ru,radialGradient:Bo,stop:me,animate:Lu,animateColor:$,animateTransform:jt,font:Fe,"font-face":Ir,"missing-glyph":dn,glyph:gu,text:du,tspan:vu,tref:Ci,a:xn,textPath:_r,image:le,g:ku,symbol:Ce,style:Lt,use:Oe,mask:i,clipPath:ys,filter:ve,feDropShadow:gs,feMorphology:ds,feComposite:vs,feColorMatrix:ls,feGaussianBlur:wt,title:Jt,desc:ye};function ws(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function ks(){return(ks=Rr(kr.mark(function t(e){var r,n,i=arguments;return kr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=1<i.length&&void 0!==i[1]&&i[1],n=document.createElement("img"),r&&(n.crossOrigin="Anonymous"),t.abrupt("return",new Promise(function(t,o){n.onload=function(){t(n)},n.onerror=function(t,e,r,n,i){o(i)},n.src=e}));case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}var As=(ei(Rs,[{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(){return this.images.every(function(t){return t.loaded})}},{key:"isFontsLoaded",value:function(){return this.fonts.every(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=Rs.elementTypes[e];return new(void 0!==e?e:pa)(this,t)}},{key:"createTextNode",value:function(t){return new mu(this,t)}},{key:"setViewBox",value:function(t){this.screen.setViewBox(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ws(Object(r),!0).forEach(function(t){Kn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ws(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,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)}}]),Rs);function Rs(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?Rs.createCanvas:r,r=e.createImage,r=void 0===r?Rs.createImage:r,e=e.anonymousCrossOrigin;Jn(this,Rs),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(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}function Ts(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function Es(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ts(Object(r),!0).forEach(function(t){Kn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ts(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}As.createCanvas=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r},As.createImage=function(t){return ks.apply(this,arguments)},As.elementTypes=O;var Ps,Os,O=(ei(Cs,[{key:"fork",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return Cs.from(t,e,Es(Es({},this.options),r))}},{key:"forkString",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return Cs.fromString(t,e,Es(Es({},this.options),r))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:(Os=Rr(kr.mark(function t(){var e,r=arguments;return kr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<r.length&&void 0!==r[0]?r[0]:{},this.start(Es({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 Os.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,Es(Es({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:(Ps=Rr(kr.mark(function t(e,r){var n,i,o=arguments;return kr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=new go(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 Cs(e,i,n));case 6:case"end":return t.stop()}},t)})),function(t,e){return Ps.apply(this,arguments)})},{key:"fromString",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return new Cs(t,new go(r).parseFromString(e),r)}}]),Cs);function Cs(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Jn(this,Cs),this.parser=new go(r),this.screen=new uo(t,r),this.options=r;r=new As(this,r),e=r.createDocumentElement(e);this.document=r,this.documentElement=e}t.AElement=xn,t.AnimateColorElement=$,t.AnimateElement=Lu,t.AnimateTransformElement=jt,t.BoundingBox=Va,t.CB1=Yn,t.CB2=Wn,t.CB3=Gn,t.CB4=qn,t.Canvg=O,t.CircleElement=Se,t.ClipPathElement=ys,t.DefsElement=wu,t.DescElement=ye,t.Document=As,t.Element=ha,t.EllipseElement=Ae,t.FeColorMatrixElement=ls,t.FeCompositeElement=vs,t.FeDropShadowElement=gs,t.FeGaussianBlurElement=wt,t.FeMorphologyElement=ds,t.FilterElement=ve,t.Font=ba,t.FontElement=Fe,t.FontFaceElement=Ir,t.GElement=ku,t.GlyphElement=gu,t.GradientElement=Au,t.ImageElement=le,t.LineElement=we,t.LinearGradientElement=Ru,t.MarkerElement=q,t.MaskElement=i,t.Matrix=na,t.MissingGlyphElement=dn,t.Mouse=io,t.PSEUDO_ZERO=Bn,t.Parser=go,t.PathElement=yu,t.PathParser=lu,t.PatternElement=D,t.Point=no,t.PolygonElement=Y,t.PolylineElement=Su,t.Property=qi,t.QB1=Qn,t.QB2=$n,t.QB3=Zn,t.RadialGradientElement=Bo,t.RectElement=bu,t.RenderedElement=pu,t.Rotate=w,t.SVGElement=xu,t.SVGFontLoader=is,t.Scale=ze,t.Screen=uo,t.Skew=sa,t.SkewX=b,t.SkewY=W,t.StopElement=me,t.StyleElement=Lt,t.SymbolElement=Ce,t.TRefElement=Ci,t.TSpanElement=vu,t.TextElement=du,t.TextPathElement=_r,t.TitleElement=Jt,t.Transform=ca,t.Translate=_,t.UnknownElement=pa,t.UseElement=Oe,t.ViewPort=$i,t.compressSpaces=bn,t.default=O,t.getSelectorSpecificity=zn,t.normalizeAttributeName=Rn,t.normalizeColor=En,t.parseExternalUrl=Tn,t.presets=Wt,t.toNumbers=kn,t.trimLeft=Sn,t.trimRight=wn,t.vectorMagnitude=Un,t.vectorsAngle=Xn,t.vectorsRatio=Hn,Object.defineProperty(t,"__esModule",{value:!0})});
\ No newline at end of file