(window.webpackJsonp=window.webpackJsonp||[]).push([[266],{"++4Y":function(m,x,t){var c=t("eRwv");m.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"/TZh":function(m,x,t){var c=t("11yv"),f=c("match");m.exports=function(p){var g=/./;try{"/./"[p](g)}catch(y){try{return g[f]=!1,"/./"[p](g)}catch(j){}}return!1}},"/pbl":function(m,x,t){var c=t("eE3R");m.exports=/web0s(?!.*chrome)/i.test(c)},"0r2v":function(m,x,t){var c=t("aLaa");m.exports=c([].slice)},"11yv":function(m,x,t){var c=t("Ks5W"),f=t("aNr2"),p=t("YELS"),g=t("MURR"),y=t("plO+"),j=t("1Sr1"),T=f("wks"),A=c.Symbol,M=A&&A.for,U=j?A:A&&A.withoutSetter||g;m.exports=function(F){if(!p(T,F)||!(y||typeof T[F]=="string")){var N="Symbol."+F;y&&p(A,F)?T[F]=A[F]:j&&M?T[F]=M(N):T[F]=U(N)}return T[F]}},"1Sr1":function(m,x,t){var c=t("plO+");m.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"1mOU":function(m,x){var t=Function.prototype,c=t.apply,f=t.bind,p=t.call;m.exports=typeof Reflect=="object"&&Reflect.apply||(f?p.bind(c):function(){return p.apply(c,arguments)})},"2lHc":function(m,x,t){var c=t("Ks5W"),f=t("m7zg"),p=t("JTf3"),g=t("SwuV"),y=c.TypeError;m.exports=function(j,T){var A,M;if(T==="string"&&p(A=j.toString)&&!g(M=f(A,j)))return M;if(p(A=j.valueOf)&&!g(M=f(A,j)))return M;if(T!=="string"&&p(A=j.toString)&&!g(M=f(A,j)))return M;throw y("Can't convert object to primitive value")}},"3Xd8":function(m,x,t){var c=t("aLaa");m.exports=c({}.isPrototypeOf)},"3agc":function(m,x,t){"use strict";var c=t("qjFr").IteratorPrototype,f=t("XFuk"),p=t("4uGi"),g=t("ueY1"),y=t("AoAp"),j=function(){return this};m.exports=function(T,A,M,U){var F=A+" Iterator";return T.prototype=f(c,{next:p(+!U,M)}),g(T,F,!1,!0),y[F]=j,T}},"3fk+":function(m,x,t){var c=t("Ks5W"),f=t("m7zg"),p=t("WxoH"),g=t("JTf3"),y=t("ba8b"),j=t("WMbf"),T=c.TypeError;m.exports=function(A,M){var U=A.exec;if(g(U)){var F=f(U,A,M);return F!==null&&p(F),F}if(y(A)==="RegExp")return f(j,A,M);throw T("RegExp#exec called on incompatible receiver")}},"3n0U":function(m,x,t){var c=t("11yv"),f=t("AoAp"),p=c("iterator"),g=Array.prototype;m.exports=function(y){return y!==void 0&&(f.Array===y||g[p]===y)}},"4Qxg":function(m,x,t){var c=t("eRwv"),f=t("Ks5W"),p=f.RegExp;m.exports=c(function(){var g=p(".","s");return!(g.dotAll&&g.exec(` `)&&g.flags==="s")})},"4YbN":function(m,x,t){var c=t("aLaa"),f=t("eRwv"),p=t("JTf3"),g=t("g8+u"),y=t("RYfq"),j=t("sNJV"),T=function(){},A=[],M=y("Reflect","construct"),U=/^\s*(?:class|function)\b/,F=c(U.exec),N=!U.exec(T),V=function($){if(!p($))return!1;try{return M(T,A,$),!0}catch(Z){return!1}},H=function($){if(!p($))return!1;switch(g($)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return N||!!F(U,j($))}catch(Z){return!0}};H.sham=!0,m.exports=!M||f(function(){var G;return V(V.call)||!V(Object)||!V(function(){G=!0})||G})?H:V},"4gdG":function(m,x,t){var c=t("Ks5W"),f=t("nATg"),p="__core-js_shared__",g=c[p]||f(p,{});m.exports=g},"4uGi":function(m,x){m.exports=function(t,c){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:c}}},"5JCY":function(m,x,t){var c=t("N6FT").PROPER,f=t("eRwv"),p=t("noWC"),g="\u200B\x85\u180E";m.exports=function(y){return f(function(){return!!p[y]()||g[y]()!==g||c&&p[y].name!==y})}},"5r2E":function(m,x,t){"use strict";var c={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,p=f&&!c.call({1:2},1);x.f=p?function(y){var j=f(this,y);return!!j&&j.enumerable}:c},"721z":function(m,x,t){var c=t("Ks5W"),f=t("XaNE"),p=c.Object;m.exports=function(g){return p(f(g))}},"8HiI":function(m,x,t){var c=t("Ks5W"),f=t("JTf3"),p=t("IL+x"),g=c.TypeError;m.exports=function(y){if(f(y))return y;throw g(p(y)+" is not a function")}},"8ODz":function(m,x,t){var c=t("++4Y"),f=t("FlRv"),p=t("4uGi");m.exports=c?function(g,y,j){return f.f(g,y,p(1,j))}:function(g,y,j){return g[y]=j,g}},"8Ys4":function(m,x,t){var c=t("Ks5W"),f=t("n6S8"),p=t("tMNq"),g=t("oauk"),y=c.Array,j=Math.max;m.exports=function(T,A,M){for(var U=p(T),F=f(A,U),N=f(M===void 0?U:M,U),V=y(j(N-F,0)),H=0;F0&&arguments[0]!==void 0?arguments[0]:{},u=h.DOMParser,r={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:u,createCanvas:function(e,o){return new OffscreenCanvas(e,o)},createImage:function(e){return fe()(re.a.mark(function o(){var n,i,s;return re.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,fetch(e);case 2:return n=d.sent,d.next=5,n.blob();case 5:return i=d.sent,d.next=8,createImageBitmap(i);case 8:return s=d.sent,d.abrupt("return",s);case 10:case"end":return d.stop()}},o)}))()}};return(typeof DOMParser!="undefined"||typeof u=="undefined")&&Reflect.deleteProperty(r,"DOMParser"),r}function Ue(h){var u=h.DOMParser,r=h.canvas,a=h.fetch;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:u,fetch:a,createCanvas:r.createCanvas,createImage:r.loadImage}}var Ke=Object.freeze({__proto__:null,offscreen:De,node:Ue});function Be(h){return h.replace(/(?!\u3000)\s+/gm," ")}function we(h){return h.replace(/^[\n \t]+/,"")}function Le(h){return h.replace(/[\n \t]+$/,"")}function Re(h){var u=(h||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return u.map(parseFloat)}var Je=/^[A-Z-]+$/;function st(h){return Je.test(h)?h.toLowerCase():h}function _e(h){var u=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(h)||[];return u[2]||u[3]||u[4]}function lt(h){if(!h.startsWith("rgb"))return h;var u=3,r=h.replace(/\d+(\.\d+)?/g,function(a,e){return u--&&e?String(Math.round(parseFloat(a))):a});return r}var gt=/(\[[^\]]+\])/g,mt=/(#[^\s+>~.[:]+)/g,wt=/(\.[^\s+>~.[:]+)/g,Mt=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,Lt=/(:[\w-]+\([^)]*\))/gi,ut=/(:[^\s+>~.[:]+)/g,ct=/([^\s+>~.[:]+)/g;function rt(h,u){var r=u.exec(h);return r?[h.replace(u," "),r.length]:[h,0]}function ue(h){var u=[0,0,0],r=h.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),a=0,e=rt(r,gt),o=Object(ie.a)(e,2);r=o[0],a=o[1],u[1]+=a;var n=rt(r,mt),i=Object(ie.a)(n,2);r=i[0],a=i[1],u[0]+=a;var s=rt(r,wt),l=Object(ie.a)(s,2);r=l[0],a=l[1],u[1]+=a;var d=rt(r,Mt),v=Object(ie.a)(d,2);r=v[0],a=v[1],u[2]+=a;var b=rt(r,Lt),L=Object(ie.a)(b,2);r=L[0],a=L[1],u[1]+=a;var Q=rt(r,ut),ne=Object(ie.a)(Q,2);r=ne[0],a=ne[1],u[1]+=a,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," ");var le=rt(r,ct),ae=Object(ie.a)(le,2);return r=ae[0],a=ae[1],u[2]+=a,u.join("")}var he=1e-8;function xe(h){return Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2))}function Oe(h,u){return(h[0]*u[0]+h[1]*u[1])/(xe(h)*xe(u))}function Pe(h,u){return(h[0]*u[1]0&&arguments[0]!==void 0?arguments[0]:" ",a=this.document,e=this.name;return Be(this.getString()).trim().split(r).map(function(o){return new h(a,e,o)})}},{key:"hasValue",value:function(r){var a=this.value;return a!==null&&a!==""&&(r||a!==0)&&typeof a!="undefined"}},{key:"isString",value:function(r){var a=this.value,e=typeof a=="string";return!e||!r?e:r.test(a)}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var r=this.getString();switch(!0){case r.endsWith("px"):case/^[0-9]+$/.test(r):return!0;default:return!1}}},{key:"setValue",value:function(r){return this.value=r,this}},{key:"getValue",value:function(r){return typeof r=="undefined"||this.hasValue()?this.value:r}},{key:"getNumber",value:function(r){if(!this.hasValue())return typeof r=="undefined"?0:parseFloat(r);var a=this.value,e=parseFloat(a);return this.isString(/%$/)&&(e/=100),e}},{key:"getString",value:function(r){return typeof r=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(r)}},{key:"getColor",value:function(r){var a=this.getString(r);return this.isNormalizedColor||(this.isNormalizedColor=!0,a=lt(a),this.value=a),a}},{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(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var e=typeof r=="boolean"?[void 0,r]:[r],o=Object(ie.a)(e,2),n=o[0],i=o[1],s=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(s.computeSize("x"),s.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(s.computeSize("x"),s.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*s.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*s.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(n);default:{var l=this.getNumber();return a&&l<1?l*s.computeSize(n):l}}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3: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 r=this.getString(),a=/#([^)'"]+)/.exec(r);return a&&(a=a[1]),a||(a=r),this.document.definitions[a]}},{key:"getFillStyleDefinition",value:function(r,a){var e=this.getDefinition();if(!e)return null;if(typeof e.createGradient=="function")return e.createGradient(this.document.ctx,r,a);if(typeof e.createPattern=="function"){if(e.getHrefAttribute().hasValue()){var o=e.getAttribute("patternTransform");e=e.getHrefAttribute().getDefinition(),o.hasValue()&&e.getAttribute("patternTransform",!0).setValue(o.value)}return e.createPattern(this.document.ctx,r,a)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?h.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(r){for(var a=this.getColor(),e=a.length,o=0,n=0;n1&&arguments[1]!==void 0?arguments[1]:0,e=Re(r),o=Object(ie.a)(e,2),n=o[0],i=n===void 0?a:n,s=o[1],l=s===void 0?a:s;return new h(i,l)}},{key:"parseScale",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,e=Re(r),o=Object(ie.a)(e,2),n=o[0],i=n===void 0?a:n,s=o[1],l=s===void 0?i:s;return new h(i,l)}},{key:"parsePath",value:function(r){for(var a=Re(r),e=a.length,o=[],n=0;n0}},{key:"runEvents",value:function(){if(!this.working)return;var r=this.screen,a=this.events,e=this.eventElements,o=r.ctx.canvas.style;o&&(o.cursor=""),a.forEach(function(n,i){for(var s=n.run,l=e[i];l;)s(l),l=l.parent}),this.events=[],this.eventElements=[]}},{key:"checkPath",value:function(r,a){if(!this.working||!a)return;var e=this.events,o=this.eventElements;e.forEach(function(n,i){var s=n.x,l=n.y;!o[i]&&a.isPointInPath&&a.isPointInPath(s,l)&&(o[i]=r)})}},{key:"checkBoundingBox",value:function(r,a){if(!this.working||!a)return;var e=this.events,o=this.eventElements;e.forEach(function(n,i){var s=n.x,l=n.y;!o[i]&&a.isPointInBox(s,l)&&(o[i]=r)})}},{key:"mapXY",value:function(r,a){for(var e=this.screen,o=e.window,n=e.ctx,i=new We(r,a),s=n.canvas;s;)i.x-=s.offsetLeft,i.y-=s.offsetTop,s=s.offsetParent;return o.scrollX&&(i.x+=o.scrollX),o.scrollY&&(i.y+=o.scrollY),i}},{key:"onClick",value:function(r){var a=this.mapXY(r.clientX,r.clientY),e=a.x,o=a.y;this.events.push({type:"onclick",x:e,y:o,run:function(i){i.onClick&&i.onClick()}})}},{key:"onMouseMove",value:function(r){var a=this.mapXY(r.clientX,r.clientY),e=a.x,o=a.y;this.events.push({type:"onmousemove",x:e,y:o,run:function(i){i.onMouseMove&&i.onMouseMove()}})}}]),h}(),Qt=typeof window!="undefined"?window:null,Jt=typeof fetch!="undefined"?fetch.bind(void 0):null,Ot=function(){function h(u){Object(Y.a)(this,h);var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.fetch,e=a===void 0?Jt:a,o=r.window,n=o===void 0?Qt:o;this.ctx=u,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Et,this.mouse=new Xt(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=e}return Object(J.a)(h,[{key:"wait",value:function(r){this.waits.push(r)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var r=this.waits.every(function(a){return a()});return r&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=r,r}},{key:"setDefaults",value:function(r){r.strokeStyle="rgba(0,0,0,0)",r.lineCap="butt",r.lineJoin="miter",r.miterLimit=4}},{key:"setViewBox",value:function(r){var a=r.document,e=r.ctx,o=r.aspectRatio,n=r.width,i=r.desiredWidth,s=r.height,l=r.desiredHeight,d=r.minX,v=d===void 0?0:d,b=r.minY,L=b===void 0?0:b,Q=r.refX,ne=r.refY,le=r.clip,ae=le===void 0?!1:le,be=r.clipX,ve=be===void 0?0:be,de=r.clipY,ye=de===void 0?0:de,Ie=Be(o).replace(/^defer\s/,""),Ne=Ie.split(" "),ze=Object(ie.a)(Ne,2),tt=ze[0],nt=ze[1],Qe=tt||"xMidYMid",Ye=nt||"meet",qe=n/i,ht=s/l,He=Math.min(qe,ht),xt=Math.max(qe,ht),Nt=i,Dt=l;Ye==="meet"&&(Nt*=He,Dt*=He),Ye==="slice"&&(Nt*=xt,Dt*=xt);var Bn=new ge(a,"refX",Q),Fn=new ge(a,"refY",ne),Wn=Bn.hasValue()&&Fn.hasValue();if(Wn&&e.translate(-He*Bn.getPixels("x"),-He*Fn.getPixels("y")),ae){var kn=He*ve,Gn=He*ye;e.beginPath(),e.moveTo(kn,Gn),e.lineTo(n,Gn),e.lineTo(n,s),e.lineTo(kn,s),e.closePath(),e.clip()}if(!Wn){var zn=Ye==="meet"&&He===ht,Hn=Ye==="slice"&&xt===ht,Kn=Ye==="meet"&&He===qe,Yn=Ye==="slice"&&xt===qe;Qe.startsWith("xMid")&&(zn||Hn)&&e.translate(n/2-Nt/2,0),Qe.endsWith("YMid")&&(Kn||Yn)&&e.translate(0,s/2-Dt/2),Qe.startsWith("xMax")&&(zn||Hn)&&e.translate(n-Nt,0),Qe.endsWith("YMax")&&(Kn||Yn)&&e.translate(0,s-Dt)}switch(!0){case Qe==="none":e.scale(qe,ht);break;case Ye==="meet":e.scale(He,He);break;case Ye==="slice":e.scale(xt,xt);break}e.translate(-v,-L)}},{key:"start",value:function(r){var a=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=e.enableRedraw,n=o===void 0?!1:o,i=e.ignoreMouse,s=i===void 0?!1:i,l=e.ignoreAnimation,d=l===void 0?!1:l,v=e.ignoreDimensions,b=v===void 0?!1:v,L=e.ignoreClear,Q=L===void 0?!1:L,ne=e.forceRedraw,le=e.scaleWidth,ae=e.scaleHeight,be=e.offsetX,ve=e.offsetY,de=this.FRAMERATE,ye=this.mouse,Ie=1e3/de;if(this.frameDuration=Ie,this.readyPromise=new Promise(function(Qe){a.resolveReady=Qe}),this.isReady()&&this.render(r,b,Q,le,ae,be,ve),!n)return;var Ne=Date.now(),ze=Ne,tt=0,nt=function Qe(){Ne=Date.now(),tt=Ne-ze,tt>=Ie&&(ze=Ne-tt%Ie,a.shouldUpdate(d,ne)&&(a.render(r,b,Q,le,ae,be,ve),ye.runEvents())),a.intervalId=Me()(Qe)};s||ye.start(),this.intervalId=Me()(nt)}},{key:"stop",value:function(){this.intervalId&&(Me.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(r,a){if(!r){var e=this.frameDuration,o=this.animations.reduce(function(n,i){return i.update(e)||n},!1);if(o)return!0}return typeof a=="function"&&a()||!this.isReadyLock&&this.isReady()?!0:!!this.mouse.hasEvents()}},{key:"render",value:function(r,a,e,o,n,i,s){var l=this.CLIENT_WIDTH,d=this.CLIENT_HEIGHT,v=this.viewPort,b=this.ctx,L=this.isFirstRender,Q=b.canvas;v.clear(),Q.width&&Q.height?v.setCurrent(Q.width,Q.height):v.setCurrent(l,d);var ne=r.getStyle("width"),le=r.getStyle("height");!a&&(L||typeof o!="number"&&typeof n!="number")&&(ne.hasValue()&&(Q.width=ne.getPixels("x"),Q.style&&(Q.style.width="".concat(Q.width,"px"))),le.hasValue()&&(Q.height=le.getPixels("y"),Q.style&&(Q.style.height="".concat(Q.height,"px"))));var ae=Q.clientWidth||Q.width,be=Q.clientHeight||Q.height;if(a&&ne.hasValue()&&le.hasValue()&&(ae=ne.getPixels("x"),be=le.getPixels("y")),v.setCurrent(ae,be),typeof i=="number"&&r.getAttribute("x",!0).setValue(i),typeof s=="number"&&r.getAttribute("y",!0).setValue(s),typeof o=="number"||typeof n=="number"){var ve=Re(r.getAttribute("viewBox").getString()),de=0,ye=0;if(typeof o=="number"){var Ie=r.getStyle("width");Ie.hasValue()?de=Ie.getPixels("x")/o:isNaN(ve[2])||(de=ve[2]/o)}if(typeof n=="number"){var Ne=r.getStyle("height");Ne.hasValue()?ye=Ne.getPixels("y")/n:isNaN(ve[3])||(ye=ve[3]/n)}de||(de=ye),ye||(ye=de),r.getAttribute("width",!0).setValue(o),r.getAttribute("height",!0).setValue(n);var ze=r.getStyle("transform",!0,!0);ze.setValue("".concat(ze.getString()," scale(").concat(1/de,", ").concat(1/ye,")"))}e||b.clearRect(0,0,ae,be),r.render(b),L&&(this.isFirstRender=!1)}}]),h}();Ot.defaultWindow=Qt,Ot.defaultFetch=Jt;var $n=Ot.defaultFetch,Xn=typeof DOMParser!="undefined"?DOMParser:null,Pt=function(){function h(){Object(Y.a)(this,h);var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=u.fetch,a=r===void 0?$n:r,e=u.DOMParser,o=e===void 0?Xn:e;this.fetch=a,this.DOMParser=o}return Object(J.a)(h,[{key:"parse",value:function(r){var a=this;return fe()(re.a.mark(function e(){return re.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!r.startsWith("<")){n.next=2;break}return n.abrupt("return",a.parseFromString(r));case 2:return n.abrupt("return",a.load(r));case 3:case"end":return n.stop()}},e)}))()}},{key:"parseFromString",value:function(r){var a=new this.DOMParser;try{return this.checkDocument(a.parseFromString(r,"image/svg+xml"))}catch(e){return this.checkDocument(a.parseFromString(r,"text/xml"))}}},{key:"checkDocument",value:function(r){var a=r.getElementsByTagName("parsererror")[0];if(a)throw new Error(a.textContent);return r}},{key:"load",value:function(r){var a=this;return fe()(re.a.mark(function e(){var o,n;return re.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,a.fetch(r);case 2:return o=s.sent,s.next=5,o.text();case 5:return n=s.sent,s.abrupt("return",a.parseFromString(n));case 7:case"end":return s.stop()}},e)}))()}}]),h}(),Zt=function(){function h(u,r){Object(Y.a)(this,h),this.type="translate",this.point=null,this.point=We.parse(r)}return Object(J.a)(h,[{key:"apply",value:function(r){var a=this.point,e=a.x,o=a.y;r.translate(e||0,o||0)}},{key:"unapply",value:function(r){var a=this.point,e=a.x,o=a.y;r.translate(-1*e||0,-1*o||0)}},{key:"applyToPoint",value:function(r){var a=this.point,e=a.x,o=a.y;r.applyTransform([1,0,0,1,e||0,o||0])}}]),h}(),qt=function(){function h(u,r,a){Object(Y.a)(this,h),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var e=Re(r);this.angle=new ge(u,"angle",e[0]),this.originX=a[0],this.originY=a[1],this.cx=e[1]||0,this.cy=e[2]||0}return Object(J.a)(h,[{key:"apply",value:function(r){var a=this.cx,e=this.cy,o=this.originX,n=this.originY,i=this.angle,s=a+o.getPixels("x"),l=e+n.getPixels("y");r.translate(s,l),r.rotate(i.getRadians()),r.translate(-s,-l)}},{key:"unapply",value:function(r){var a=this.cx,e=this.cy,o=this.originX,n=this.originY,i=this.angle,s=a+o.getPixels("x"),l=e+n.getPixels("y");r.translate(s,l),r.rotate(-1*i.getRadians()),r.translate(-s,-l)}},{key:"applyToPoint",value:function(r){var a=this.cx,e=this.cy,o=this.angle,n=o.getRadians();r.applyTransform([1,0,0,1,a||0,e||0]),r.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),r.applyTransform([1,0,0,1,-a||0,-e||0])}}]),h}(),_t=function(){function h(u,r,a){Object(Y.a)(this,h),this.type="scale",this.scale=null,this.originX=null,this.originY=null;var e=We.parseScale(r);(e.x===0||e.y===0)&&(e.x=he,e.y=he),this.scale=e,this.originX=a[0],this.originY=a[1]}return Object(J.a)(h,[{key:"apply",value:function(r){var a=this.scale,e=a.x,o=a.y,n=this.originX,i=this.originY,s=n.getPixels("x"),l=i.getPixels("y");r.translate(s,l),r.scale(e,o||e),r.translate(-s,-l)}},{key:"unapply",value:function(r){var a=this.scale,e=a.x,o=a.y,n=this.originX,i=this.originY,s=n.getPixels("x"),l=i.getPixels("y");r.translate(s,l),r.scale(1/e,1/o||e),r.translate(-s,-l)}},{key:"applyToPoint",value:function(r){var a=this.scale,e=a.x,o=a.y;r.applyTransform([e||0,0,0,o||0,0,0])}}]),h}(),Ut=function(){function h(u,r,a){Object(Y.a)(this,h),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Re(r),this.originX=a[0],this.originY=a[1]}return Object(J.a)(h,[{key:"apply",value:function(r){var a=this.originX,e=this.originY,o=this.matrix,n=a.getPixels("x"),i=e.getPixels("y");r.translate(n,i),r.transform(o[0],o[1],o[2],o[3],o[4],o[5]),r.translate(-n,-i)}},{key:"unapply",value:function(r){var a=this.originX,e=this.originY,o=this.matrix,n=o[0],i=o[2],s=o[4],l=o[1],d=o[3],v=o[5],b=0,L=0,Q=1,ne=1/(n*(d*Q-v*L)-i*(l*Q-v*b)+s*(l*L-d*b)),le=a.getPixels("x"),ae=e.getPixels("y");r.translate(le,ae),r.transform(ne*(d*Q-v*L),ne*(v*b-l*Q),ne*(s*L-i*Q),ne*(n*Q-s*b),ne*(i*v-s*d),ne*(s*l-n*v)),r.translate(-le,-ae)}},{key:"applyToPoint",value:function(r){r.applyTransform(this.matrix)}}]),h}(),Vt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="skew",n.angle=null,n.angle=new ge(a,"angle",e),n}return r}(Ut),en=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="skewX",n.matrix=[1,0,Math.tan(n.angle.getRadians()),1,0,0],n}return r}(Vt),tn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="skewY",n.matrix=[1,Math.tan(n.angle.getRadians()),0,1,0,0],n}return r}(Vt);function Qn(h){return Be(h).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Jn(h){var u=h.split("("),r=Object(ie.a)(u,2),a=r[0],e=r[1];return[a.trim(),e.trim().replace(")","")]}var St=function(){function h(u,r,a){var e=this;Object(Y.a)(this,h),this.document=u,this.transforms=[];var o=Qn(r);o.forEach(function(n){if(n==="none")return;var i=Jn(n),s=Object(ie.a)(i,2),l=s[0],d=s[1],v=h.transformTypes[l];typeof v!="undefined"&&e.transforms.push(new v(e.document,d,a))})}return Object(J.a)(h,[{key:"apply",value:function(r){for(var a=this.transforms,e=a.length,o=0;o=0;o--)a[o].unapply(r)}},{key:"applyToPoint",value:function(r){for(var a=this.transforms,e=a.length,o=0;o2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=u,this.node=r,this.captureTextNodes=e,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!r||r.nodeType!==1)return;if(Array.from(r.attributes).forEach(function(s){var l=st(s.nodeName);a.attributes[l]=new ge(u,l,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var o=this.getAttribute("style").getString().split(";").map(function(s){return s.trim()});o.forEach(function(s){if(!s)return;var l=s.split(":").map(function(L){return L.trim()}),d=Object(ie.a)(l,2),v=d[0],b=d[1];a.styles[v]=new ge(u,v,b)})}var n=u.definitions,i=this.getAttribute("id");i.hasValue()&&(n[i.getString()]||(n[i.getString()]=this)),Array.from(r.childNodes).forEach(function(s){if(s.nodeType===1)a.addChild(s);else if(e&&(s.nodeType===3||s.nodeType===4)){var l=u.createTextNode(s);l.getText().length>0&&a.addChild(l)}})}return Object(J.a)(h,[{key:"getAttribute",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=this.attributes[r];if(!e&&a){var o=new ge(this.document,r,"");return this.attributes[r]=o,o}return e||ge.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var r in this.attributes)if(r==="href"||r.endsWith(":href"))return this.attributes[r];return ge.empty(this.document)}},{key:"getStyle",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.styles[r];if(o)return o;var n=this.getAttribute(r);if(n!=null&&n.hasValue())return this.styles[r]=n,n;if(!e){var i=this.parent;if(i){var s=i.getStyle(r);if(s!=null&&s.hasValue())return s}}if(a){var l=new ge(this.document,r,"");return this.styles[r]=l,l}return o||ge.empty(this.document)}},{key:"render",value:function(r){if(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")return;if(r.save(),this.getStyle("mask").hasValue()){var a=this.getStyle("mask").getDefinition();a&&(this.applyEffects(r),a.apply(r,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var e=this.getStyle("filter").getDefinition();e&&(this.applyEffects(r),e.apply(r,this))}else this.setContext(r),this.renderChildren(r),this.clearContext(r);r.restore()}},{key:"setContext",value:function(r){}},{key:"applyEffects",value:function(r){var a=St.fromElement(this.document,this);a&&a.apply(r);var e=this.getStyle("clip-path",!1,!0);if(e.hasValue()){var o=e.getDefinition();o&&o.apply(r)}}},{key:"clearContext",value:function(r){}},{key:"renderChildren",value:function(r){this.children.forEach(function(a){a.render(r)})}},{key:"addChild",value:function(r){var a=r instanceof h?r:this.document.createElement(r);a.parent=this,h.ignoreChildTypes.includes(a.type)||this.children.push(a)}},{key:"matchesSelector",value:function(r){var a=this.node;if(typeof a.matches=="function")return a.matches(r);var e=a.getAttribute("class");return!e||e===""?!1:e.split(" ").some(function(o){return".".concat(o)===r})}},{key:"addStylesFromStyleDefinition",value:function(){var r=this.document,a=r.styles,e=r.stylesSpecificity;for(var o in a)if(!o.startsWith("@")&&this.matchesSelector(o)){var n=a[o],i=e[o];if(n)for(var s in n){var l=this.stylesSpecificity[s];typeof l=="undefined"&&(l="000"),i>=l&&(this.styles[s]=n[s],this.stylesSpecificity[s]=i)}}}},{key:"removeStyles",value:function(r,a){var e=a.reduce(function(o,n){var i=r.getStyle(n);if(!i.hasValue())return o;var s=i.getString();return i.setValue(""),[].concat(Object(B.a)(o),[[n,s]])},[]);return e}},{key:"restoreStyles",value:function(r,a){a.forEach(function(e){var o=Object(ie.a)(e,2),n=o[0],i=o[1];r.getStyle(n,!0).setValue(i)})}}]),h}();Ve.ignoreChildTypes=["title"];var nn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){return Object(Y.a)(this,r),u.call(this,a,e,o)}return r}(Ve);function Zn(h){var u=h.trim();return/^('|")/.test(u)?u:'"'.concat(u,'"')}function qn(h){return typeof c=="undefined"?h:h.trim().split(",").map(Zn).join(",")}function _n(h){if(!h)return"";var u=h.trim().toLowerCase();switch(u){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return u;default:return/^oblique\s+(-|)\d+deg$/.test(u)?u:""}}function er(h){if(!h)return"";var u=h.trim().toLowerCase();switch(u){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return u;default:return/^[\d.]+$/.test(u)?u:""}}var ot=function(){function h(u,r,a,e,o,n){Object(Y.a)(this,h);var i=n?typeof n=="string"?h.parse(n):n:{};this.fontFamily=o||i.fontFamily,this.fontSize=e||i.fontSize,this.fontStyle=u||i.fontStyle,this.fontWeight=a||i.fontWeight,this.fontVariant=r||i.fontVariant}return Object(J.a)(h,[{key:"toString",value:function(){return[_n(this.fontStyle),this.fontVariant,er(this.fontWeight),this.fontSize,qn(this.fontFamily)].join(" ").trim()}}],[{key:"parse",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,e="",o="",n="",i="",s="",l=Be(r).trim().split(" "),d={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(function(v){switch(!0){case(!d.fontStyle&&h.styles.includes(v)):v!=="inherit"&&(e=v),d.fontStyle=!0;break;case(!d.fontVariant&&h.variants.includes(v)):v!=="inherit"&&(o=v),d.fontStyle=!0,d.fontVariant=!0;break;case(!d.fontWeight&&h.weights.includes(v)):v!=="inherit"&&(n=v),d.fontStyle=!0,d.fontVariant=!0,d.fontWeight=!0;break;case!d.fontSize:if(v!=="inherit"){var b=v.split("/"),L=Object(ie.a)(b,1);i=L[0]}d.fontStyle=!0,d.fontVariant=!0,d.fontWeight=!0,d.fontSize=!0;break;default:v!=="inherit"&&(s+=v)}}),new h(e,o,n,i,s,a)}}]),h}();ot.styles="normal|italic|oblique|inherit",ot.variants="normal|small-caps|inherit",ot.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var et=function(){function h(){Object(Y.a)(this,h);var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=u,this.y1=r,this.x2=a,this.y2=e,this.addPoint(u,r),this.addPoint(a,e)}return Object(J.a)(h,[{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}},{key:"addPoint",value:function(r,a){typeof r!="undefined"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=r,this.x2=r),rthis.x2&&(this.x2=r)),typeof a!="undefined"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=a,this.y2=a),athis.y2&&(this.y2=a))}},{key:"addX",value:function(r){this.addPoint(r,null)}},{key:"addY",value:function(r){this.addPoint(null,r)}},{key:"addBoundingBox",value:function(r){if(!r)return;var a=r.x1,e=r.y1,o=r.x2,n=r.y2;this.addPoint(a,e),this.addPoint(o,n)}},{key:"sumCubic",value:function(r,a,e,o,n){return Math.pow(1-r,3)*a+3*Math.pow(1-r,2)*r*e+3*(1-r)*Math.pow(r,2)*o+Math.pow(r,3)*n}},{key:"bezierCurveAdd",value:function(r,a,e,o,n){var i=6*a-12*e+6*o,s=-3*a+9*e-9*o+3*n,l=3*e-3*a;if(s===0){if(i===0)return;var d=-l/i;0=o.length-1}},{key:"next",value:function(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}},{key:"getPoint",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",n=new We(this.command[e],this.command[o]);return this.makeAbsolute(n)}},{key:"getAsControlPoint",value:function(e,o){var n=this.getPoint(e,o);return this.control=n,n}},{key:"getAsCurrentPoint",value:function(e,o){var n=this.getPoint(e,o);return this.current=n,n}},{key:"getReflectedControlPoint",value:function(){var e=this.previousCommand.type;if(e!==Se.a.CURVE_TO&&e!==Se.a.SMOOTH_CURVE_TO&&e!==Se.a.QUAD_TO&&e!==Se.a.SMOOTH_QUAD_TO)return this.current;var o=this.current,n=o.x,i=o.y,s=this.control,l=s.x,d=s.y,v=new We(2*n-l,2*i-d);return v}},{key:"makeAbsolute",value:function(e){if(this.command.relative){var o=this.current,n=o.x,i=o.y;e.x+=n,e.y+=i}return e}},{key:"addMarker",value:function(e,o,n){var i=this.points,s=this.angles;n&&s.length>0&&!s[s.length-1]&&(s[s.length-1]=i[i.length-1].angleTo(n)),this.addMarkerAngle(e,o?o.angleTo(e):null)}},{key:"addMarkerAngle",value:function(e,o){this.points.push(e),this.angles.push(o)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var e=this.angles,o=e.length,n=0;n1&&arguments[1]!==void 0?arguments[1]:!1;if(!o){var n=this.getStyle("fill"),i=this.getStyle("fill-opacity"),s=this.getStyle("stroke"),l=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var d=n.getFillStyleDefinition(this,i);d&&(e.fillStyle=d)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var v=n.getColor();v!=="inherit"&&(e.fillStyle=v==="none"?"rgba(0,0,0,0)":v)}if(i.hasValue()){var b=new ge(this.document,"fill",e.fillStyle).addOpacity(i).getColor();e.fillStyle=b}if(s.isUrlDefinition()){var L=s.getFillStyleDefinition(this,l);L&&(e.strokeStyle=L)}else if(s.hasValue()){s.getString()==="currentColor"&&s.setValue(this.getStyle("color").getColor());var Q=s.getString();Q!=="inherit"&&(e.strokeStyle=Q==="none"?"rgba(0,0,0,0)":Q)}if(l.hasValue()){var ne=new ge(this.document,"stroke",e.strokeStyle).addOpacity(l).getString();e.strokeStyle=ne}var le=this.getStyle("stroke-width");if(le.hasValue()){var ae=le.getPixels();e.lineWidth=ae||he}var be=this.getStyle("stroke-linecap"),ve=this.getStyle("stroke-linejoin"),de=this.getStyle("stroke-miterlimit"),ye=this.getStyle("stroke-dasharray"),Ie=this.getStyle("stroke-dashoffset");if(be.hasValue()&&(e.lineCap=be.getString()),ve.hasValue()&&(e.lineJoin=ve.getString()),de.hasValue()&&(e.miterLimit=de.getNumber()),ye.hasValue()&&ye.getString()!=="none"){var Ne=Re(ye.getString());typeof e.setLineDash!="undefined"?e.setLineDash(Ne):typeof e.webkitLineDash!="undefined"?e.webkitLineDash=Ne:typeof e.mozDash!="undefined"&&!(Ne.length===1&&Ne[0]===0)&&(e.mozDash=Ne);var ze=Ie.getPixels();typeof e.lineDashOffset!="undefined"?e.lineDashOffset=ze:typeof e.webkitLineDashOffset!="undefined"?e.webkitLineDashOffset=ze:typeof e.mozDashOffset!="undefined"&&(e.mozDashOffset=ze)}}if(this.modifiedEmSizeStack=!1,typeof e.font!="undefined"){var tt=this.getStyle("font"),nt=this.getStyle("font-style"),Qe=this.getStyle("font-variant"),Ye=this.getStyle("font-weight"),qe=this.getStyle("font-size"),ht=this.getStyle("font-family"),He=new ot(nt.getString(),Qe.getString(),Ye.getString(),qe.hasValue()?"".concat(qe.getPixels(!0),"px"):"",ht.getString(),ot.parse(tt.getString(),e.font));nt.setValue(He.fontStyle),Qe.setValue(He.fontVariant),Ye.setValue(He.fontWeight),qe.setValue(He.fontSize),ht.setValue(He.fontFamily),e.font=He.toString(),qe.isPixels()&&(this.document.emSize=qe.getPixels(),this.modifiedEmSizeStack=!0)}o||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(e){Object(z.a)(Object(I.a)(r.prototype),"clearContext",this).call(this,e),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),r}(Ve),Ge=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="path",n.pathParser=null,n.pathParser=new Ce(n.getAttribute("d").getString()),n}return Object(J.a)(r,[{key:"path",value:function(e){var o=this.pathParser,n=new et;for(o.reset(),e&&e.beginPath();!o.isEnd();)switch(o.next().type){case Ce.MOVE_TO:this.pathM(e,n);break;case Ce.LINE_TO:this.pathL(e,n);break;case Ce.HORIZ_LINE_TO:this.pathH(e,n);break;case Ce.VERT_LINE_TO:this.pathV(e,n);break;case Ce.CURVE_TO:this.pathC(e,n);break;case Ce.SMOOTH_CURVE_TO:this.pathS(e,n);break;case Ce.QUAD_TO:this.pathQ(e,n);break;case Ce.SMOOTH_QUAD_TO:this.pathT(e,n);break;case Ce.ARC:this.pathA(e,n);break;case Ce.CLOSE_PATH:this.pathZ(e,n);break}return n}},{key:"getBoundingBox",value:function(e){return this.path()}},{key:"getMarkers",value:function(){var e=this.pathParser,o=e.getMarkerPoints(),n=e.getMarkerAngles(),i=o.map(function(s,l){return[s,n[l]]});return i}},{key:"renderChildren",value:function(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var o=this.getStyle("fill-rule");e.fillStyle!==""&&(o.getString("inherit")!=="inherit"?e.fill(o.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var i=n.length-1,s=this.getStyle("marker-start"),l=this.getStyle("marker-mid"),d=this.getStyle("marker-end");if(s.isUrlDefinition()){var v=s.getDefinition(),b=Object(ie.a)(n[0],2),L=b[0],Q=b[1];v.render(e,L,Q)}if(l.isUrlDefinition())for(var ne=l.getDefinition(),le=1;led?l:d,de=l>d?1:l/d,ye=l>d?d/l:1;e.translate(L.x,L.y),e.rotate(b),e.scale(de,ye),e.arc(0,0,ve,Q,Q+ne,Boolean(1-v)),e.scale(1/de,1/ye),e.rotate(-b),e.translate(-L.x,-L.y)}}},{key:"pathZ",value:function(e,o){r.pathZ(this.pathParser),e&&(o.x1!==o.x2&&o.y1!==o.y2&&e.closePath())}}],[{key:"pathM",value:function(e){var o=e.getAsCurrentPoint();return e.start=e.current,{point:o}}},{key:"pathL",value:function(e){var o=e.current,n=e.getAsCurrentPoint();return{current:o,point:n}}},{key:"pathH",value:function(e){var o=e.current,n=e.command,i=new We((n.relative?o.x:0)+n.x,o.y);return e.current=i,{current:o,point:i}}},{key:"pathV",value:function(e){var o=e.current,n=e.command,i=new We(o.x,(n.relative?o.y:0)+n.y);return e.current=i,{current:o,point:i}}},{key:"pathC",value:function(e){var o=e.current,n=e.getPoint("x1","y1"),i=e.getAsControlPoint("x2","y2"),s=e.getAsCurrentPoint();return{current:o,point:n,controlPoint:i,currentPoint:s}}},{key:"pathS",value:function(e){var o=e.current,n=e.getReflectedControlPoint(),i=e.getAsControlPoint("x2","y2"),s=e.getAsCurrentPoint();return{current:o,point:n,controlPoint:i,currentPoint:s}}},{key:"pathQ",value:function(e){var o=e.current,n=e.getAsControlPoint("x1","y1"),i=e.getAsCurrentPoint();return{current:o,controlPoint:n,currentPoint:i}}},{key:"pathT",value:function(e){var o=e.current,n=e.getReflectedControlPoint();e.control=n;var i=e.getAsCurrentPoint();return{current:o,controlPoint:n,currentPoint:i}}},{key:"pathA",value:function(e){var o=e.current,n=e.command,i=n.rX,s=n.rY,l=n.xRot,d=n.lArcFlag,v=n.sweepFlag,b=l*(Math.PI/180),L=e.getAsCurrentPoint(),Q=new We(Math.cos(b)*(o.x-L.x)/2+Math.sin(b)*(o.y-L.y)/2,-Math.sin(b)*(o.x-L.x)/2+Math.cos(b)*(o.y-L.y)/2),ne=Math.pow(Q.x,2)/Math.pow(i,2)+Math.pow(Q.y,2)/Math.pow(s,2);ne>1&&(i*=Math.sqrt(ne),s*=Math.sqrt(ne));var le=(d===v?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(s,2)-Math.pow(i,2)*Math.pow(Q.y,2)-Math.pow(s,2)*Math.pow(Q.x,2))/(Math.pow(i,2)*Math.pow(Q.y,2)+Math.pow(s,2)*Math.pow(Q.x,2)));isNaN(le)&&(le=0);var ae=new We(le*i*Q.y/s,le*-s*Q.x/i),be=new We((o.x+L.x)/2+Math.cos(b)*ae.x-Math.sin(b)*ae.y,(o.y+L.y)/2+Math.sin(b)*ae.x+Math.cos(b)*ae.y),ve=Pe([1,0],[(Q.x-ae.x)/i,(Q.y-ae.y)/s]),de=[(Q.x-ae.x)/i,(Q.y-ae.y)/s],ye=[(-Q.x-ae.x)/i,(-Q.y-ae.y)/s],Ie=Pe(de,ye);return Oe(de,ye)<=-1&&(Ie=Math.PI),Oe(de,ye)>=1&&(Ie=0),{currentPoint:L,rX:i,rY:s,sweepFlag:v,xAxisRotation:b,centp:be,a1:ve,ad:Ie}}},{key:"pathZ",value:function(e){e.current=e.start}}]),r}(ft),Bt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="glyph",n.horizAdvX=n.getAttribute("horiz-adv-x").getNumber(),n.unicode=n.getAttribute("unicode").getString(),n.arabicForm=n.getAttribute("arabic-form").getString(),n}return r}(Ge),yt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,new.target===r?!0:o),n.type="text",n.x=0,n.y=0,n.measureCache=-1,n}return Object(J.a)(r,[{key:"setContext",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Object(z.a)(Object(I.a)(r.prototype),"setContext",this).call(this,e,o);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(e.textBaseline=n)}},{key:"initializeCoordinates",value:function(e){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var o=this.getAttribute("dx"),n=this.getAttribute("dy");o.hasValue()&&(this.x+=o.getPixels("x")),n.hasValue()&&(this.y+=n.getPixels("y")),this.x+=this.getAnchorDelta(e,this,0)}},{key:"getBoundingBox",value:function(e){var o=this;if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(e);var n=null;return this.children.forEach(function(i,s){var l=o.getChildBoundingBox(e,o,o,s);n?n.addBoundingBox(l):n=l}),n}},{key:"getFontSize",value:function(){var e=this.document,o=this.parent,n=ot.parse(e.ctx.font).fontSize,i=o.getStyle("font-size").getNumber(n);return i}},{key:"getTElementBoundingBox",value:function(e){var o=this.getFontSize();return new et(this.x,this.y-o,this.x+this.measureText(e),this.y)}},{key:"getGlyph",value:function(e,o,n){var i=o[n],s=null;if(e.isArabic){var l=o.length,d=o[n-1],v=o[n+1],b="isolated";if((n===0||d===" ")&&n0&&d!==" "&&n0&&d!==" "&&(n===l-1||v===" ")&&(b="initial"),typeof e.glyphs[i]!="undefined"){var L=e.glyphs[i];s=L instanceof Bt?L:L[b]}}else s=e.glyphs[i];return s||(s=e.missingGlyph),s}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(e){var o=e||this.node,n=Array.from(o.parentNode.childNodes),i=n.indexOf(o),s=n.length-1,l=Be(o.textContent||"");return i===0&&(l=we(l)),i===s&&(l=Le(l)),l}},{key:"renderChildren",value:function(e){var o=this;if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(e),this.children.forEach(function(i,s){o.renderChild(e,o,o,s)});var n=this.document.screen.mouse;n.isWorking()&&n.checkBoundingBox(this,this.getBoundingBox(e))}},{key:"renderTElementChildren",value:function(e){var o=this.document,n=this.parent,i=this.getText(),s=n.getStyle("font-family").getDefinition();if(s){for(var l=s.fontFace.unitsPerEm,d=ot.parse(o.ctx.font),v=n.getStyle("font-size").getNumber(d.fontSize),b=n.getStyle("font-style").getString(d.fontStyle),L=v/l,Q=s.isRTL?i.split("").reverse().join(""):i,ne=Re(n.getAttribute("dx").getString()),le=Q.length,ae=0;aen&&d.getAttribute("x").hasValue()||d.getAttribute("text-anchor").hasValue());b++)v+=d.measureTextRecursive(e);return-1*(i==="end"?v:v/2)}return 0}},{key:"adjustChildCoordinates",value:function(e,o,n,i){var s=n.children[i];if(typeof s.measureText!="function")return s;e.save(),s.setContext(e,!0);var l=s.getAttribute("x"),d=s.getAttribute("y"),v=s.getAttribute("dx"),b=s.getAttribute("dy"),L=s.getAttribute("text-anchor").getString("start");if(i===0&&s.type!=="textNode"&&(l.hasValue()||l.setValue(o.getAttribute("x").getValue("0")),d.hasValue()||d.setValue(o.getAttribute("y").getValue("0")),v.hasValue()||v.setValue(o.getAttribute("dx").getValue("0")),b.hasValue()||b.setValue(o.getAttribute("dy").getValue("0"))),l.hasValue()){if(s.x=l.getPixels("x")+o.getAnchorDelta(e,n,i),L!=="start"){var Q=s.measureTextRecursive(e);s.x+=-1*(L==="end"?Q:Q/2)}v.hasValue()&&(s.x+=v.getPixels("x"))}else{if(L!=="start"){var ne=s.measureTextRecursive(e);o.x+=-1*(L==="end"?ne:ne/2)}v.hasValue()&&(o.x+=v.getPixels("x")),s.x=o.x}return o.x=s.x+s.measureText(e),d.hasValue()?(s.y=d.getPixels("y"),b.hasValue()&&(s.y+=b.getPixels("y"))):(b.hasValue()&&(o.y+=b.getPixels("y")),s.y=o.y),o.y=s.y,s.clearContext(e),e.restore(),s}},{key:"getChildBoundingBox",value:function(e,o,n,i){var s=this.adjustChildCoordinates(e,o,n,i);if(typeof s.getBoundingBox!="function")return null;var l=s.getBoundingBox(e);return l?(s.children.forEach(function(d,v){var b=o.getChildBoundingBox(e,o,s,v);l.addBoundingBox(b)}),l):null}},{key:"renderChild",value:function(e,o,n,i){var s=this.adjustChildCoordinates(e,o,n,i);s.render(e),s.children.forEach(function(l,d){o.renderChild(e,o,s,d)})}},{key:"measureTextRecursive",value:function(e){var o=this.children.reduce(function(n,i){return n+i.measureTextRecursive(e)},this.measureText(e));return o}},{key:"measureText",value:function(e){var o=this.measureCache;if(~o)return o;var n=this.getText(),i=this.measureTargetText(e,n);return this.measureCache=i,i}},{key:"measureTargetText",value:function(e,o){if(!o.length)return 0;var n=this.parent,i=n.getStyle("font-family").getDefinition();if(i){for(var s=this.getFontSize(),l=i.isRTL?o.split("").reverse().join(""):o,d=Re(n.getAttribute("dx").getString()),v=l.length,b=0,L=0;L0?"":n.getTextFromNode(),n}return Object(J.a)(r,[{key:"getText",value:function(){return this.text}}]),r}(yt),tr=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="textNode",a}return r}(Ft),bt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="svg",a.root=!1,a}return Object(J.a)(r,[{key:"setContext",value:function(e){var o,n=this.document,i=n.screen,s=n.window,l=e.canvas;if(i.setDefaults(e),l.style&&typeof e.font!="undefined"&&s&&typeof s.getComputedStyle!="undefined"){e.font=s.getComputedStyle(l).getPropertyValue("font");var d=new ge(n,"fontSize",ot.parse(e.font).fontSize);d.hasValue()&&(n.rootEmSize=d.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var v=i.viewPort,b=v.width,L=v.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 Q=this.getAttribute("refX"),ne=this.getAttribute("refY"),le=this.getAttribute("viewBox"),ae=le.hasValue()?Re(le.getString()):null,be=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",ve=0,de=0,ye=0,Ie=0;ae&&(ve=ae[0],de=ae[1]),this.root||(b=this.getStyle("width").getPixels("x"),L=this.getStyle("height").getPixels("y"),this.type==="marker"&&(ye=ve,Ie=de,ve=0,de=0)),i.viewPort.setCurrent(b,L),this.node&&(!this.parent||((o=this.node.parentNode)===null||o===void 0?void 0:o.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),Object(z.a)(Object(I.a)(r.prototype),"setContext",this).call(this,e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),ae&&(b=ae[2],L=ae[3]),n.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:b,height:i.viewPort.height,desiredHeight:L,minX:ve,minY:de,refX:Q.getValue(),refY:ne.getValue(),clip:be,clipX:ye,clipY:Ie}),ae&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(b,L))}},{key:"clearContext",value:function(e){Object(z.a)(Object(I.a)(r.prototype),"clearContext",this).call(this,e),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),s=this.getAttribute("height",!0),l=this.getAttribute("viewBox"),d=this.getAttribute("style"),v=i.getNumber(0),b=s.getNumber(0);if(n)if(typeof n=="string")this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var L=this.getAttribute("preserveAspectRatio");L.hasValue()&&L.setValue(L.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(e),s.setValue(o),l.hasValue()||l.setValue("0 0 ".concat(v||e," ").concat(b||o)),d.hasValue()){var Q=this.getStyle("width"),ne=this.getStyle("height");Q.hasValue()&&Q.setValue("".concat(e,"px")),ne.hasValue()&&ne.setValue("".concat(o,"px"))}}}]),r}(ft),Wt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="rect",a}return Object(J.a)(r,[{key:"path",value:function(e){var o=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),s=this.getStyle("height",!1,!0).getPixels("y"),l=this.getAttribute("rx"),d=this.getAttribute("ry"),v=l.getPixels("x"),b=d.getPixels("y");if(l.hasValue()&&!d.hasValue()&&(b=v),d.hasValue()&&!l.hasValue()&&(v=b),v=Math.min(v,i/2),b=Math.min(b,s/2),e){var L=4*((Math.sqrt(2)-1)/3);e.beginPath(),s>0&&i>0&&(e.moveTo(o+v,n),e.lineTo(o+i-v,n),e.bezierCurveTo(o+i-v+L*v,n,o+i,n+b-L*b,o+i,n+b),e.lineTo(o+i,n+s-b),e.bezierCurveTo(o+i,n+s-b+L*b,o+i-v+L*v,n+s,o+i-v,n+s),e.lineTo(o+v,n+s),e.bezierCurveTo(o+v-L*v,n+s,o,n+s-b+L*b,o,n+s-b),e.lineTo(o,n+b),e.bezierCurveTo(o,n+b-L*b,o+v-L*v,n,o+v,n),e.closePath())}return new et(o,n,o+i,n+s)}},{key:"getMarkers",value:function(){return null}}]),r}(Ge),rn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="circle",a}return Object(J.a)(r,[{key:"path",value:function(e){var o=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(o,n,i,0,Math.PI*2,!1),e.closePath()),new et(o-i,n-i,o+i,n+i)}},{key:"getMarkers",value:function(){return null}}]),r}(Ge),an=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="ellipse",a}return Object(J.a)(r,[{key:"path",value:function(e){var o=4*((Math.sqrt(2)-1)/3),n=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),s=this.getAttribute("cx").getPixels("x"),l=this.getAttribute("cy").getPixels("y");return e&&n>0&&i>0&&(e.beginPath(),e.moveTo(s+n,l),e.bezierCurveTo(s+n,l+o*i,s+o*n,l+i,s,l+i),e.bezierCurveTo(s-o*n,l+i,s-n,l+o*i,s-n,l),e.bezierCurveTo(s-n,l-o*i,s-o*n,l-i,s,l-i),e.bezierCurveTo(s+o*n,l-i,s+n,l-o*i,s+n,l),e.closePath()),new et(s-n,l-i,s+n,l+i)}},{key:"getMarkers",value:function(){return null}}]),r}(Ge),on=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="line",a}return Object(J.a)(r,[{key:"getPoints",value:function(){return[new We(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new We(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(e){var o=this.getPoints(),n=Object(ie.a)(o,2),i=n[0],s=i.x,l=i.y,d=n[1],v=d.x,b=d.y;return e&&(e.beginPath(),e.moveTo(s,l),e.lineTo(v,b)),new et(s,l,v,b)}},{key:"getMarkers",value:function(){var e=this.getPoints(),o=Object(ie.a)(e,2),n=o[0],i=o[1],s=n.angleTo(i);return[[n,s],[i,s]]}}]),r}(Ge),kt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="polyline",n.points=[],n.points=We.parsePath(n.getAttribute("points").getString()),n}return Object(J.a)(r,[{key:"path",value:function(e){var o=this.points,n=Object(ie.a)(o,1),i=n[0],s=i.x,l=i.y,d=new et(s,l);return e&&(e.beginPath(),e.moveTo(s,l)),o.forEach(function(v){var b=v.x,L=v.y;d.addPoint(b,L),e&&e.lineTo(b,L)}),d}},{key:"getMarkers",value:function(){var e=this.points,o=e.length-1,n=[];return e.forEach(function(i,s){if(s===o)return;n.push([i,i.angleTo(e[s+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}]),r}(Ge),sn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="polygon",a}return Object(J.a)(r,[{key:"path",value:function(e){var o=Object(z.a)(Object(I.a)(r.prototype),"path",this).call(this,e),n=Object(ie.a)(this.points,1),i=n[0],s=i.x,l=i.y;return e&&(e.lineTo(s,l),e.closePath()),o}}]),r}(kt),ln=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="pattern",a}return Object(J.a)(r,[{key:"createPattern",value:function(e,o,n){var i=this.getStyle("width").getPixels("x",!0),s=this.getStyle("height").getPixels("y",!0),l=new bt(this.document,null);l.attributes.viewBox=new ge(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.width=new ge(this.document,"width","".concat(i,"px")),l.attributes.height=new ge(this.document,"height","".concat(s,"px")),l.attributes.transform=new ge(this.document,"transform",this.getAttribute("patternTransform").getValue()),l.children=this.children;var d=this.document.createCanvas(i,s),v=d.getContext("2d"),b=this.getAttribute("x"),L=this.getAttribute("y");b.hasValue()&&L.hasValue()&&v.translate(b.getPixels("x",!0),L.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var Q=-1;Q<=1;Q++)for(var ne=-1;ne<=1;ne++)v.save(),l.attributes.x=new ge(this.document,"x",Q*d.width),l.attributes.y=new ge(this.document,"y",ne*d.height),l.render(v),v.restore();var le=e.createPattern(d,"repeat");return le}}]),r}(Ve),un=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="marker",a}return Object(J.a)(r,[{key:"render",value:function(e,o,n){if(!o)return;var i=o.x,s=o.y,l=this.getAttribute("orient").getString("auto"),d=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,s),l==="auto"&&e.rotate(n),d==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var v=new bt(this.document,null);v.type=this.type,v.attributes.viewBox=new ge(this.document,"viewBox",this.getAttribute("viewBox").getValue()),v.attributes.refX=new ge(this.document,"refX",this.getAttribute("refX").getValue()),v.attributes.refY=new ge(this.document,"refY",this.getAttribute("refY").getValue()),v.attributes.width=new ge(this.document,"width",this.getAttribute("markerWidth").getValue()),v.attributes.height=new ge(this.document,"height",this.getAttribute("markerHeight").getValue()),v.attributes.overflow=new ge(this.document,"overflow",this.getAttribute("overflow").getValue()),v.attributes.fill=new ge(this.document,"fill",this.getAttribute("fill").getColor("black")),v.attributes.stroke=new ge(this.document,"stroke",this.getAttribute("stroke").getValue("none")),v.children=this.children,v.render(e),e.restore(),d==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),l==="auto"&&e.rotate(-n),e.translate(-i,-s)}}]),r}(Ve),cn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="defs",a}return Object(J.a)(r,[{key:"render",value:function(){}}]),r}(Ve),jt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="g",a}return Object(J.a)(r,[{key:"getBoundingBox",value:function(e){var o=new et;return this.children.forEach(function(n){o.addBoundingBox(n.getBoundingBox(e))}),o}}]),r}(ft),Gt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;Object(Y.a)(this,r),n=u.call(this,a,e,o),n.attributesToInherit=["gradientUnits"],n.stops=[];var i=Object(R.a)(n),s=i.stops,l=i.children;return l.forEach(function(d){d.type==="stop"&&s.push(d)}),n}return Object(J.a)(r,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(e,o,n){var i=this,s=this;this.getHrefAttribute().hasValue()&&(s=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(s));var l=s,d=l.stops,v=this.getGradient(e,o);if(!v)return this.addParentOpacity(n,d[d.length-1].color);if(d.forEach(function(Ne){v.addColorStop(Ne.offset,i.addParentOpacity(n,Ne.color))}),this.getAttribute("gradientTransform").hasValue()){var b=this.document,L=b.screen,Q=L.MAX_VIRTUAL_PIXELS,ne=L.viewPort,le=Object(ie.a)(ne.viewPorts,1),ae=le[0],be=new Wt(b,null);be.attributes.x=new ge(b,"x",-Q/3),be.attributes.y=new ge(b,"y",-Q/3),be.attributes.width=new ge(b,"width",Q),be.attributes.height=new ge(b,"height",Q);var ve=new jt(b,null);ve.attributes.transform=new ge(b,"transform",this.getAttribute("gradientTransform").getValue()),ve.children=[be];var de=new bt(b,null);de.attributes.x=new ge(b,"x",0),de.attributes.y=new ge(b,"y",0),de.attributes.width=new ge(b,"width",ae.width),de.attributes.height=new ge(b,"height",ae.height),de.children=[ve];var ye=b.createCanvas(ae.width,ae.height),Ie=ye.getContext("2d");return Ie.fillStyle=v,de.render(Ie),Ie.createPattern(ye,"no-repeat")}return v}},{key:"inheritStopContainer",value:function(e){var o=this;this.attributesToInherit.forEach(function(n){!o.getAttribute(n).hasValue()&&e.getAttribute(n).hasValue()&&o.getAttribute(n,!0).setValue(e.getAttribute(n).getValue())})}},{key:"addParentOpacity",value:function(e,o){if(e.hasValue()){var n=new ge(this.document,"color",o);return n.addOpacity(e).getColor()}return o}}]),r}(Ve),dn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="linearGradient",n.attributesToInherit.push("x1","y1","x2","y2"),n}return Object(J.a)(r,[{key:"getGradient",value:function(e,o){var n=this.getGradientUnits()==="objectBoundingBox",i=n?o.getBoundingBox(e):null;if(n&&!i)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var s=n?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),l=n?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),d=n?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),v=n?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return s===d&&l===v?null:e.createLinearGradient(s,l,d,v)}}]),r}(Gt),fn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="radialGradient",n.attributesToInherit.push("cx","cy","r","fx","fy","fr"),n}return Object(J.a)(r,[{key:"getGradient",value:function(e,o){var n=this.getGradientUnits()==="objectBoundingBox",i=o.getBoundingBox(e);if(n&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var s=n?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),l=n?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),d=s,v=l;this.getAttribute("fx").hasValue()&&(d=n?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(v=n?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var b=n?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),L=this.getAttribute("fr").getPixels();return e.createRadialGradient(d,v,L,s,l,b)}}]),r}(Gt),hn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="stop";var i=Math.max(0,Math.min(1,n.getAttribute("offset").getNumber())),s=n.getStyle("stop-opacity"),l=n.getStyle("stop-color",!0);return l.getString()===""&&l.setValue("#000"),s.hasValue()&&(l=l.addOpacity(s)),n.offset=i,n.color=l.getColor(),n}return r}(Ve),Tt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="animate",n.duration=0,n.initialValue=null,n.initialUnits="",n.removed=!1,n.frozen=!1,a.screen.animations.push(Object(R.a)(n)),n.begin=n.getAttribute("begin").getMilliseconds(),n.maxDuration=n.begin+n.getAttribute("dur").getMilliseconds(),n.from=n.getAttribute("from"),n.to=n.getAttribute("to"),n.values=new ge(a,"values",null);var i=n.getAttribute("values");return i.hasValue()&&n.values.setValue(i.getString().split(";")),n}return Object(J.a)(r,[{key:"getProperty",value:function(){var e=this.getAttribute("attributeType").getString(),o=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(o,!0):this.parent.getAttribute(o,!0)}},{key:"calcValue",value:function(){var e=this.initialUnits,o=this.getProgress(),n=o.progress,i=o.from,s=o.to,l=i.getNumber()+(s.getNumber()-i.getNumber())*n;return e==="%"&&(l*=100),"".concat(l).concat(e)}},{key:"update",value:function(e){var o=this.parent,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,o.animationFrozen=!0,o.animationFrozenValue=n.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,n.setValue(o.animationFrozen?o.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var s=!1;if(this.begin0&&Array.from(i).every(function(d){return d.nodeType===3});return n.hasText=l,n.text=l?n.getTextFromNode(s):"",n}return Object(J.a)(r,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(e){if(this.hasText){Object(z.a)(Object(I.a)(r.prototype),"renderChildren",this).call(this,e);var o=this.document,n=this.x,i=this.y,s=o.screen.mouse,l=new ge(o,"fontSize",ot.parse(o.ctx.font).fontSize);s.isWorking()&&s.checkBoundingBox(this,new et(n,i-l.getPixels("y"),n+this.measureText(e),i))}else if(this.children.length>0){var d=new jt(this.document,null);d.children=this.children,d.parent=this,d.render(e)}}},{key:"onClick",value:function(){var e=this.document.window;e&&e.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}]),r}(yt);function En(h,u){var r=Object.keys(h);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(h);u&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(h,e).enumerable})),r.push.apply(r,a)}return r}function At(h){for(var u=1;uL?b:L,ve=b>L?1:b/L,de=b>L?L/b:1;e&&(e.translate(d,v),e.rotate(le),e.scale(ve,de),e.arc(0,0,be,Q,Q+ne,Boolean(1-ae)),e.scale(1/ve,1/de),e.rotate(-le),e.translate(-d,-v));break}case Ce.CLOSE_PATH:e&&e.closePath();break}})}},{key:"renderChildren",value:function(e){this.setTextData(e),e.save();var o=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),i=this.glyphInfo,s=e.fillStyle;o==="underline"&&e.beginPath(),i.forEach(function(l,d){var v=l.p0,b=l.p1,L=l.rotation,Q=l.text;e.save(),e.translate(v.x,v.y),e.rotate(L),e.fillStyle&&e.fillText(Q,0,0),e.strokeStyle&&e.strokeText(Q,0,0),e.restore(),o==="underline"&&(d===0&&e.moveTo(v.x,v.y+n/8),e.lineTo(b.x,b.y+n/5))}),o==="underline"&&(e.lineWidth=n/20,e.strokeStyle=s,e.stroke(),e.closePath()),e.restore()}},{key:"getLetterSpacingAt",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}},{key:"findSegmentToFitChar",value:function(e,o,n,i,s,l,d,v,b){var L=l,Q=this.measureText(e,v);v===" "&&o==="justify"&&n-1&&(L+=this.getLetterSpacingAt(b));var ne=this.textHeight/20,le=this.getEquidistantPointOnPath(L,ne,0),ae=this.getEquidistantPointOnPath(L+Q,ne,0),be={p0:le,p1:ae},ve=le&&ae?Math.atan2(ae.y-le.y,ae.x-le.x):0;if(d){var de=Math.cos(Math.PI/2+ve)*d,ye=Math.cos(-ve)*d;be.p0=At(At({},le),{},{x:le.x+de,y:le.y+ye}),be.p1=At(At({},ae),{},{x:ae.x+de,y:ae.y+ye})}return L+=Q,{offset:L,segment:be,rotation:ve}}},{key:"measureText",value:function(e,o){var n=this.measuresCache,i=o||this.getText();if(n.has(i))return n.get(i);var s=this.measureTargetText(e,i);return n.set(i,s),s}},{key:"setTextData",value:function(e){var o=this;if(this.glyphInfo)return;var n=this.getText(),i=n.split(""),s=n.split(" ").length-1,l=this.parent.getAttribute("dx").split().map(function(ze){return ze.getPixels("x")}),d=this.parent.getAttribute("dy").getPixels("y"),v=this.parent.getStyle("text-anchor").getString("start"),b=this.getStyle("letter-spacing"),L=this.parent.getStyle("letter-spacing"),Q=0;!b.hasValue()||b.getValue()==="inherit"?Q=L.getPixels():b.hasValue()&&(b.getValue()!=="initial"&&b.getValue()!=="unset"&&(Q=b.getPixels()));var ne=[],le=n.length;this.letterSpacingCache=ne;for(var ae=0;ae0&&(b-=2*Math.PI),s===1&&b<0&&(b+=2*Math.PI),[d.x,d.y,n,i,v,b,l,s]}},{key:"calcLength",value:function(e,o,n,i){var s=0,l=null,d=null,v=0;switch(n){case Ce.LINE_TO:return this.getLineLength(e,o,i[0],i[1]);case Ce.CURVE_TO:for(s=0,l=this.getPointOnCubicBezier(0,e,o,i[0],i[1],i[2],i[3],i[4],i[5]),v=.01;v<=1;v+=.01)d=this.getPointOnCubicBezier(v,e,o,i[0],i[1],i[2],i[3],i[4],i[5]),s+=this.getLineLength(l.x,l.y,d.x,d.y),l=d;return s;case Ce.QUAD_TO:for(s=0,l=this.getPointOnQuadraticBezier(0,e,o,i[0],i[1],i[2],i[3]),v=.01;v<=1;v+=.01)d=this.getPointOnQuadraticBezier(v,e,o,i[0],i[1],i[2],i[3]),s+=this.getLineLength(l.x,l.y,d.x,d.y),l=d;return s;case Ce.ARC:{s=0;var b=i[4],L=i[5],Q=i[4]+L,ne=Math.PI/180;if(Math.abs(b-Q)Q;v-=ne)d=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],v,0),s+=this.getLineLength(l.x,l.y,d.x,d.y),l=d;else for(v=b+ne;v5&&arguments[5]!==void 0?arguments[5]:o,d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:n,v=(s-n)/(i-o+he),b=Math.sqrt(e*e/(1+v*v));io)return null;var s=this.dataArray,l=Object(C.a)(s),d;try{for(l.s();!(d=l.n()).done;){var v=d.value;if(v&&(v.pathLength<5e-5||n+v.pathLength+5e-5=0&&L>le)break;i=this.getPointOnEllipticalArc(v.points[0],v.points[1],v.points[2],v.points[3],L,v.points[6]);break}case Ce.CURVE_TO:L=b/v.pathLength,L>1&&(L=1),i=this.getPointOnCubicBezier(L,v.start.x,v.start.y,v.points[0],v.points[1],v.points[2],v.points[3],v.points[4],v.points[5]);break;case Ce.QUAD_TO:L=b/v.pathLength,L>1&&(L=1),i=this.getPointOnQuadraticBezier(L,v.start.x,v.start.y,v.points[0],v.points[1],v.points[2],v.points[3]);break}if(i)return i;break}}catch(ae){l.e(ae)}finally{l.f()}return null}},{key:"getLineLength",value:function(e,o,n,i){return Math.sqrt((n-e)*(n-e)+(i-o)*(i-o))}},{key:"getPathLength",value:function(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce(function(e,o){return o.pathLength>0?e+o.pathLength:e},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(e,o,n,i,s,l,d,v,b){var L=v*Fe(e)+l*Ze(e)+i*$e(e)+o*Xe(e),Q=b*Fe(e)+d*Ze(e)+s*$e(e)+n*Xe(e);return{x:L,y:Q}}},{key:"getPointOnQuadraticBezier",value:function(e,o,n,i,s,l,d){var v=l*dt(e)+i*at(e)+o*vt(e),b=d*dt(e)+s*at(e)+n*vt(e);return{x:v,y:b}}},{key:"getPointOnEllipticalArc",value:function(e,o,n,i,s,l){var d=Math.cos(l),v=Math.sin(l),b={x:n*Math.cos(s),y:i*Math.sin(s)};return{x:e+(b.x*d-b.y*v),y:o+(b.x*v+b.y*d)}}},{key:"buildEquidistantCache",value:function(e,o){var n=this.getPathLength(),i=o||.25,s=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==s||this.equidistantCache.precision!==i){this.equidistantCache={step:s,precision:i,points:[]};for(var l=0,d=0;d<=n;d+=i){var v=this.getPointOnPath(d),b=this.getPointOnPath(d+i);if(!v||!b)continue;l+=this.getLineLength(v.x,v.y,b.x,b.y),l>=s&&(this.equidistantCache.points.push({x:v.x,y:v.y,distance:d}),l-=s)}}}},{key:"getEquidistantPointOnPath",value:function(e,o,n){if(this.buildEquidistantCache(o,n),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}]),r}(yt),nr=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,Sn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="image",n.loaded=!1;var i=n.getHrefAttribute().getString();if(!i)return Object(w.a)(n);var s=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);return a.images.push(Object(R.a)(n)),s?void n.loadSvg(i):void n.loadImage(i),n.isSvg=s,n}return Object(J.a)(r,[{key:"loadImage",value:function(e){var o=this;return fe()(re.a.mark(function n(){var i;return re.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,o.document.createImage(e);case 3:i=l.sent,o.image=i,l.next=10;break;case 7:l.prev=7,l.t0=l.catch(0),console.error('Error while loading image "'.concat(e,'":'),l.t0);case 10:o.loaded=!0;case 11:case"end":return l.stop()}},n,null,[[0,7]])}))()}},{key:"loadSvg",value:function(e){var o=this;return fe()(re.a.mark(function n(){var i,s,l,d;return re.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(i=nr.exec(e),!i){b.next=6;break}s=i[5],i[4]==="base64"?o.image=atob(s):o.image=decodeURIComponent(s),b.next=19;break;case 6:return b.prev=6,b.next=9,o.document.fetch(e);case 9:return l=b.sent,b.next=12,l.text();case 12:d=b.sent,o.image=d,b.next=19;break;case 16:b.prev=16,b.t0=b.catch(6),console.error('Error while loading image "'.concat(e,'":'),b.t0);case 19:o.loaded=!0;case 20:case"end":return b.stop()}},n,null,[[6,16]])}))()}},{key:"renderChildren",value:function(e){var o=this.document,n=this.image,i=this.loaded,s=this.getAttribute("x").getPixels("x"),l=this.getAttribute("y").getPixels("y"),d=this.getStyle("width").getPixels("x"),v=this.getStyle("height").getPixels("y");if(!i||!n||!d||!v)return;if(e.save(),e.translate(s,l),this.isSvg){var b=o.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:d,scaleHeight:v});b.document.documentElement.parent=this,void b.render()}else{var L=this.image;o.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:d,desiredWidth:L.width,height:v,desiredHeight:L.height}),this.loaded&&((typeof L.complete=="undefined"||L.complete)&&e.drawImage(L,0,0))}e.restore()}},{key:"getBoundingBox",value:function(){var e=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new et(e,o,e+n,o+i)}}]),r}(ft),Cn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="symbol",a}return Object(J.a)(r,[{key:"render",value:function(e){}}]),r}(ft),Mn=function(){function h(u){Object(Y.a)(this,h),this.document=u,this.loaded=!1,u.fonts.push(this)}return Object(J.a)(h,[{key:"load",value:function(r,a){var e=this;return fe()(re.a.mark(function o(){var n,i,s;return re.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,n=e.document,d.next=4,n.canvg.parser.load(a);case 4:i=d.sent,s=i.getElementsByTagName("font"),Array.from(s).forEach(function(v){var b=n.createElement(v);n.definitions[r]=b}),d.next=12;break;case 9:d.prev=9,d.t0=d.catch(0),console.error('Error while loading font "'.concat(a,'":'),d.t0);case 12:e.loaded=!0;case 13:case"end":return d.stop()}},o,null,[[0,9]])}))()}}]),h}(),zt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="style";var i=Be(Array.from(e.childNodes).map(function(l){return l.textContent}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),s=i.split("}");return s.forEach(function(l){var d=l.trim();if(!d)return;var v=d.split("{"),b=v[0].split(","),L=v[1].split(";");b.forEach(function(Q){var ne=Q.trim();if(!ne)return;var le=a.styles[ne]||{};if(L.forEach(function(ve){var de=ve.indexOf(":"),ye=ve.substr(0,de).trim(),Ie=ve.substr(de+1,ve.length-de).trim();ye&&Ie&&(le[ye]=new ge(a,ye,Ie))}),a.styles[ne]=le,a.stylesSpecificity[ne]=ue(ne),ne==="@font-face"){var ae=le["font-family"].getString().replace(/"|'/g,""),be=le.src.getString().split(",");be.forEach(function(ve){if(ve.indexOf('format("svg")')>0){var de=_e(ve);de&&void new Mn(a).load(ae,de)}})}})}),n}return r}(Ve);zt.parseExternalUrl=_e;var Pn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="use",a}return Object(J.a)(r,[{key:"setContext",value:function(e){Object(z.a)(Object(I.a)(r.prototype),"setContext",this).call(this,e);var o=this.getAttribute("x"),n=this.getAttribute("y");o.hasValue()&&e.translate(o.getPixels("x"),0),n.hasValue()&&e.translate(0,n.getPixels("y"))}},{key:"path",value:function(e){var o=this.element;o&&o.path(e)}},{key:"renderChildren",value:function(e){var o=this.document,n=this.element;if(n){var i=n;if(n.type==="symbol"&&(i=new bt(o,null),i.attributes.viewBox=new ge(o,"viewBox",n.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new ge(o,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new ge(o,"overflow",n.getAttribute("overflow").getString()),i.children=n.children,n.styles.opacity=new ge(o,"opacity",this.calculateOpacity())),i.type==="svg"){var s=this.getStyle("width",!1,!0),l=this.getStyle("height",!1,!0);s.hasValue()&&(i.attributes.width=new ge(o,"width",s.getString())),l.hasValue()&&(i.attributes.height=new ge(o,"height",l.getString()))}var d=i.parent;i.parent=this,i.render(e),i.parent=d}}},{key:"getBoundingBox",value:function(e){var o=this.element;return o?o.getBoundingBox(e):null}},{key:"elementTransform",value:function(){var e=this.document,o=this.element;return St.fromElement(e,o)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),r}(ft);function Rt(h,u,r,a,e,o){return h[r*a*4+u*4+o]}function It(h,u,r,a,e,o,n){h[r*a*4+u*4+o]=n}function ke(h,u,r){var a=h[u];return a*r}function it(h,u,r,a){return u+Math.cos(h)*r+Math.sin(h)*a}var Ht=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="feColorMatrix";var i=Re(n.getAttribute("values").getString());switch(n.getAttribute("type").getString("matrix")){case"saturate":{var s=i[0];i=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var l=i[0]*Math.PI/180;i=[it(l,.213,.787,-.213),it(l,.715,-.715,-.715),it(l,.072,-.072,.928),0,0,it(l,.213,-.213,.143),it(l,.715,.285,.14),it(l,.072,-.072,-.283),0,0,it(l,.213,-.213,-.787),it(l,.715,-.715,.715),it(l,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}return n.matrix=i,n.includeOpacity=n.getAttribute("includeOpacity").hasValue(),n}return Object(J.a)(r,[{key:"apply",value:function(e,o,n,i,s){for(var l=this.includeOpacity,d=this.matrix,v=e.getImageData(0,0,i,s),b=0;b1&&e[1]!==void 0?e[1]:!1,a=document.createElement("img"),r&&(a.crossOrigin="Anonymous"),n.abrupt("return",new Promise(function(i,s){a.onload=function(){i(a)},a.onerror=function(l,d,v,b,L){s(L)},a.src=u}));case 4:case"end":return n.stop()}},h)})),$t.apply(this,arguments)}var Ct=function(){function h(u){Object(Y.a)(this,h);var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.rootEmSize,e=a===void 0?12:a,o=r.emSize,n=o===void 0?12:o,i=r.createCanvas,s=i===void 0?h.createCanvas:i,l=r.createImage,d=l===void 0?h.createImage:l,v=r.anonymousCrossOrigin;this.canvg=u,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=u.screen,this.rootEmSize=e,this.emSize=n,this.createCanvas=s,this.createImage=this.bindCreateImage(d,v),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Object(J.a)(h,[{key:"bindCreateImage",value:function(r,a){return typeof a=="boolean"?function(e,o){return r(e,typeof o=="boolean"?o:a)}:r}},{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 r=this.emSizeStack;return r[r.length-1]},set:function(r){var a=this.emSizeStack;a.push(r)}},{key:"popEmSize",value:function(){var r=this.emSizeStack;r.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every(function(r){return r.loaded})}},{key:"isFontsLoaded",value:function(){return this.fonts.every(function(r){return r.loaded})}},{key:"createDocumentElement",value:function(r){var a=this.createElement(r.documentElement);return a.root=!0,a.addStylesFromStyleDefinition(),this.documentElement=a,a}},{key:"createElement",value:function(r){var a=r.nodeName.replace(/^[^:]+:/,""),e=h.elementTypes[a];return typeof e!="undefined"?new e(this,r):new nn(this,r)}},{key:"createTextNode",value:function(r){return new tr(this,r)}},{key:"setViewBox",value:function(r){this.screen.setViewBox(ar({document:this},r))}}]),h}();Ct.createCanvas=or,Ct.createImage=ir,Ct.elementTypes=rr;function Un(h,u){var r=Object.keys(h);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(h);u&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(h,e).enumerable})),r.push.apply(r,a)}return r}function pt(h){for(var u=1;u2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Pt(a),this.screen=new Ot(u,a),this.options=a;var e=new Ct(this,a),o=e.createDocumentElement(r);this.document=e,this.documentElement=o}return Object(J.a)(h,[{key:"fork",value:function(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return h.from(r,a,pt(pt({},this.options),e))}},{key:"forkString",value:function(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return h.fromString(r,a,pt(pt({},this.options),e))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){var r=arguments,a=this;return fe()(re.a.mark(function e(){var o;return re.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return o=r.length>0&&r[0]!==void 0?r[0]:{},a.start(pt({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},o)),i.next=4,a.ready();case 4:a.stop();case 5:case"end":return i.stop()}},e)}))()}},{key:"start",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=this.documentElement,e=this.screen,o=this.options;e.start(a,pt(pt({enableRedraw:!0},o),r))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(r,a,e)}}],[{key:"from",value:function(r,a){var e=arguments;return fe()(re.a.mark(function o(){var n,i,s;return re.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return n=e.length>2&&e[2]!==void 0?e[2]:{},i=new Pt(n),d.next=4,i.parse(a);case 4:return s=d.sent,d.abrupt("return",new h(r,s,n));case 6:case"end":return d.stop()}},o)}))()}},{key:"fromString",value:function(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=new Pt(e),n=o.parseFromString(a);return new h(r,n,e)}}]),h}();x.default=Vn}.call(this,t("Q2Ig"))},Dk1u:function(m,x,t){var c=t("Ks5W"),f=t("4YbN"),p=t("IL+x"),g=c.TypeError;m.exports=function(y){if(f(y))return y;throw g(p(y)+" is not a constructor")}},ENhe:function(m,x){m.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},FjAG:function(m,x,t){var c=t("Ks5W"),f=t("8HiI"),p=t("721z"),g=t("p5Ma"),y=t("tMNq"),j=c.TypeError,T=function(A){return function(M,U,F,N){f(U);var V=p(M),H=g(V),G=y(V),$=A?G-1:0,Z=A?-1:1;if(F<2)for(;;){if($ in H){N=H[$],$+=Z;break}if($+=Z,A?$<0:G<=$)throw j("Reduce of empty array with no initial value")}for(;A?$>=0:G>$;$+=Z)$ in H&&(N=U(N,H[$],$,V));return N}};m.exports={left:T(!1),right:T(!0)}},FkIU:function(m,x,t){var c=t("++4Y"),f=t("eRwv");m.exports=c&&f(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},FlRv:function(m,x,t){var c=t("Ks5W"),f=t("++4Y"),p=t("pVCk"),g=t("FkIU"),y=t("WxoH"),j=t("GTqx"),T=c.TypeError,A=Object.defineProperty,M=Object.getOwnPropertyDescriptor,U="enumerable",F="configurable",N="writable";x.f=f?g?function(H,G,$){if(y(H),G=j(G),y($),typeof H=="function"&&G==="prototype"&&"value"in $&&N in $&&!$[N]){var Z=M(H,G);Z&&Z[N]&&(H[G]=$.value,$={configurable:F in $?$[F]:Z[F],enumerable:U in $?$[U]:Z[U],writable:!1})}return A(H,G,$)}:A:function(H,G,$){if(y(H),G=j(G),y($),p)try{return A(H,G,$)}catch(Z){}if("get"in $||"set"in $)throw T("Accessors not supported");return"value"in $&&(H[G]=$.value),H}},FqHY:function(m,x,t){var c=t("eE3R"),f=t("Ks5W");m.exports=/ipad|iphone|ipod/i.test(c)&&f.Pebble!==void 0},G5Kn:function(m,x,t){var c=t("11yv"),f=t("XFuk"),p=t("FlRv"),g=c("unscopables"),y=Array.prototype;y[g]==null&&p.f(y,g,{configurable:!0,value:f(null)}),m.exports=function(j){y[g][j]=!0}},GI0h:function(m,x,t){var c=t("me6S"),f=c("span").classList,p=f&&f.constructor&&f.constructor.prototype;m.exports=p===Object.prototype?void 0:p},GTqx:function(m,x,t){var c=t("ms20"),f=t("bT0D");m.exports=function(p){var g=c(p,"string");return f(g)?g:g+""}},GVkW:function(m,x,t){"use strict";var c=t("nCzB"),f=t("aLaa"),p=t("fKql").f,g=t("c3MK"),y=t("qzpy"),j=t("OU4x"),T=t("XaNE"),A=t("/TZh"),M=t("jybJ"),U=f("".endsWith),F=f("".slice),N=Math.min,V=A("endsWith"),H=!M&&!V&&!!function(){var G=p(String.prototype,"endsWith");return G&&!G.writable}();c({target:"String",proto:!0,forced:!H&&!V},{endsWith:function($){var Z=y(T(this));j($);var W=arguments.length>1?arguments[1]:void 0,_=Z.length,D=W===void 0?_:N(g(W),_),te=y($);return U?U(Z,te,D):F(Z,D-te.length,D)===te}})},GgKt:function(m,x,t){var c=t("eE3R");m.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(c)},Gywb:function(m,x,t){var c=t("eRwv");m.exports=!c(function(){function f(){}return f.prototype.constructor=null,Object.getPrototypeOf(new f)!==f.prototype})},"HTC/":function(m,x,t){"use strict";var c=t("WxoH");m.exports=function(){var f=c(this),p="";return f.global&&(p+="g"),f.ignoreCase&&(p+="i"),f.multiline&&(p+="m"),f.dotAll&&(p+="s"),f.unicode&&(p+="u"),f.sticky&&(p+="y"),p}},IGIO:function(m,x,t){var c=t("ba8b"),f=t("Ks5W");m.exports=c(f.process)=="process"},"IL+x":function(m,x,t){var c=t("Ks5W"),f=c.String;m.exports=function(p){try{return f(p)}catch(g){return"Object"}}},JHvW:function(m,x,t){var c=t("aLaa"),f=t("WxoH"),p=t("NIpK");m.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var g=!1,y={},j;try{j=c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),j(y,[]),g=y instanceof Array}catch(T){}return function(A,M){return f(A),p(M),g?j(A,M):A.__proto__=M,A}}():void 0)},JTf3:function(m,x){m.exports=function(t){return typeof t=="function"}},KKe4:function(m,x,t){"use strict";var c=t("m7zg"),f=t("WONN"),p=t("WxoH"),g=t("c3MK"),y=t("qzpy"),j=t("XaNE"),T=t("oK8H"),A=t("M/+V"),M=t("3fk+");f("match",function(U,F,N){return[function(H){var G=j(this),$=H==null?void 0:T(H,U);return $?c($,H,G):new RegExp(H)[U](y(G))},function(V){var H=p(this),G=y(V),$=N(F,H,G);if($.done)return $.value;if(!H.global)return M(H,G);var Z=H.unicode;H.lastIndex=0;for(var W=[],_=0,D;(D=M(H,G))!==null;){var te=y(D[0]);W[_]=te,te===""&&(H.lastIndex=A(G,g(H.lastIndex),Z)),_++}return _===0?null:W}]})},KLN8:function(m,x,t){"use strict";var c=t("nCzB"),f=t("aLaa"),p=t("fKql").f,g=t("c3MK"),y=t("qzpy"),j=t("OU4x"),T=t("XaNE"),A=t("/TZh"),M=t("jybJ"),U=f("".startsWith),F=f("".slice),N=Math.min,V=A("startsWith"),H=!M&&!V&&!!function(){var G=p(String.prototype,"startsWith");return G&&!G.writable}();c({target:"String",proto:!0,forced:!H&&!V},{startsWith:function($){var Z=y(T(this));j($);var W=g(N(arguments.length>1?arguments[1]:void 0,Z.length)),_=y($);return U?U(Z,_,W):F(Z,W,W+_.length)===_}})},Ks5W:function(m,x,t){(function(c){var f=function(p){return p&&p.Math==Math&&p};m.exports=f(typeof globalThis=="object"&&globalThis)||f(typeof window=="object"&&window)||f(typeof self=="object"&&self)||f(typeof c=="object"&&c)||function(){return this}()||Function("return this")()}).call(this,t("yLpj"))},LOfi:function(m,x,t){var c=t("WrAw");m.exports=function(f,p,g){for(var y in p)c(f,y,p[y],g);return f}},Lltv:function(m,x,t){"use strict";var c=t("vkZI"),f=t("G5Kn"),p=t("AoAp"),g=t("UQ6y"),y=t("FlRv").f,j=t("jgt4"),T=t("jybJ"),A=t("++4Y"),M="Array Iterator",U=g.set,F=g.getterFor(M);m.exports=j(Array,"Array",function(V,H){U(this,{type:M,target:c(V),index:0,kind:H})},function(){var V=F(this),H=V.target,G=V.kind,$=V.index++;return!H||$>=H.length?(V.target=void 0,{value:void 0,done:!0}):G=="keys"?{value:$,done:!1}:G=="values"?{value:H[$],done:!1}:{value:[$,H[$]],done:!1}},"values");var N=p.Arguments=p.Array;if(f("keys"),f("values"),f("entries"),!T&&A&&N.name!=="values")try{y(N,"name",{value:"values"})}catch(V){}},"M/+V":function(m,x,t){"use strict";var c=t("ymN0").charAt;m.exports=function(f,p,g){return p+(g?c(f,p).length:1)}},MNKV:function(m,x,t){"use strict";var c=t("nCzB"),f=t("aLaa"),p=t("OU4x"),g=t("XaNE"),y=t("qzpy"),j=t("/TZh"),T=f("".indexOf);c({target:"String",proto:!0,forced:!j("includes")},{includes:function(M){return!!~T(y(g(this)),y(p(M)),arguments.length>1?arguments[1]:void 0)}})},MURR:function(m,x,t){var c=t("aLaa"),f=0,p=Math.random(),g=c(1 .toString);m.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+g(++f+p,36)}},N6FT:function(m,x,t){var c=t("++4Y"),f=t("YELS"),p=Function.prototype,g=c&&Object.getOwnPropertyDescriptor,y=f(p,"name"),j=y&&function(){}.name==="something",T=y&&(!c||c&&g(p,"name").configurable);m.exports={EXISTS:y,PROPER:j,CONFIGURABLE:T}},NCkV:function(m,x,t){"use strict";var c=t("1mOU"),f=t("m7zg"),p=t("aLaa"),g=t("WONN"),y=t("COGW"),j=t("WxoH"),T=t("XaNE"),A=t("NudO"),M=t("M/+V"),U=t("c3MK"),F=t("qzpy"),N=t("oK8H"),V=t("8Ys4"),H=t("3fk+"),G=t("WMbf"),$=t("RhGR"),Z=t("eRwv"),W=$.UNSUPPORTED_Y,_=4294967295,D=Math.min,te=[].push,O=p(/./.exec),S=p(te),P=p("".slice),K=!Z(function(){var q=/(?:)/,ee=q.exec;q.exec=function(){return ee.apply(this,arguments)};var oe="ab".split(q);return oe.length!==2||oe[0]!=="a"||oe[1]!=="b"});g("split",function(q,ee,oe){var E;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?E=function(w,C){var R=F(T(this)),z=C===void 0?_:C>>>0;if(z===0)return[];if(w===void 0)return[R];if(!y(w))return f(ee,R,w,z);for(var I=[],B=(w.ignoreCase?"i":"")+(w.multiline?"m":"")+(w.unicode?"u":"")+(w.sticky?"y":""),X=0,k=new RegExp(w.source,B+"g"),Y,J,ie;(Y=f(G,k,R))&&!(J=k.lastIndex,J>X&&(S(I,P(R,X,Y.index)),Y.length>1&&Y.index=z));)k.lastIndex===Y.index&&k.lastIndex++;return X===R.length?(ie||!O(k,""))&&S(I,""):S(I,P(R,X)),I.length>z?V(I,0,z):I}:"0".split(void 0,0).length?E=function(w,C){return w===void 0&&C===0?[]:f(ee,this,w,C)}:E=ee,[function(C,R){var z=T(this),I=C==null?void 0:N(C,q);return I?f(I,C,z,R):f(E,F(z),C,R)},function(w,C){var R=j(this),z=F(w),I=oe(E,R,z,C,E!==ee);if(I.done)return I.value;var B=A(R,RegExp),X=R.unicode,k=(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")+(W?"g":"y"),Y=new B(W?"^(?:"+R.source+")":R,k),J=C===void 0?_:C>>>0;if(J===0)return[];if(z.length===0)return H(Y,z)===null?[z]:[];for(var ie=0,se=0,re=[];se]*>)/g,A=/\$([$&'`]|\d{1,2})/g;m.exports=function(M,U,F,N,V,H){var G=F+M.length,$=N.length,Z=A;return V!==void 0&&(V=f(V),Z=T),y(H,Z,function(W,_){var D;switch(g(_,0)){case"$":return"$";case"&":return M;case"`":return j(U,0,F);case"'":return j(U,G);case"<":D=V[j(_,1,-1)];break;default:var te=+_;if(te===0)return W;if(te>$){var O=p(te/10);return O===0?W:O<=$?N[O-1]===void 0?g(_,1):N[O-1]+g(_,1):W}D=N[te-1]}return D===void 0?"":D})}},NudO:function(m,x,t){var c=t("WxoH"),f=t("Dk1u"),p=t("11yv"),g=p("species");m.exports=function(y,j){var T=c(y).constructor,A;return T===void 0||(A=c(T)[g])==null?j:f(A)}},Nybj:function(m,x,t){var c=t("vkZI"),f=t("n6S8"),p=t("tMNq"),g=function(y){return function(j,T,A){var M=c(j),U=p(M),F=f(A,U),N;if(y&&T!=T){for(;U>F;)if(N=M[F++],N!=N)return!0}else for(;U>F;F++)if((y||F in M)&&M[F]===T)return y||F||0;return!y&&-1}};m.exports={includes:g(!0),indexOf:g(!1)}},OU4x:function(m,x,t){var c=t("Ks5W"),f=t("COGW"),p=c.TypeError;m.exports=function(g){if(f(g))throw p("The method doesn't accept regular expressions");return g}},Ppro:function(m,x,t){"use strict";var c=t("nCzB"),f=t("WMbf");c({target:"RegExp",proto:!0,forced:/./.exec!==f},{exec:f})},QELg:function(m,x,t){"use strict";var c=t("eRwv");m.exports=function(f,p){var g=[][f];return!!g&&c(function(){g.call(null,p||function(){throw 1},1)})}},QrM1:function(m,x,t){var c=t("ZpKI"),f=t("Yzn+"),p=f.concat("length","prototype");x.f=Object.getOwnPropertyNames||function(y){return c(y,p)}},"RXj+":function(m,x,t){var c=t("aLaa"),f=t("XaNE"),p=t("qzpy"),g=t("noWC"),y=c("".replace),j="["+g+"]",T=RegExp("^"+j+j+"*"),A=RegExp(j+j+"*$"),M=function(U){return function(F){var N=p(f(F));return U&1&&(N=y(N,T,"")),U&2&&(N=y(N,A,"")),N}};m.exports={start:M(1),end:M(2),trim:M(3)}},RYfq:function(m,x,t){var c=t("Ks5W"),f=t("JTf3"),p=function(g){return f(g)?g:void 0};m.exports=function(g,y){return arguments.length<2?p(c[g]):c[g]&&c[g][y]}},RhGR:function(m,x,t){var c=t("eRwv"),f=t("Ks5W"),p=f.RegExp,g=c(function(){var T=p("a","y");return T.lastIndex=2,T.exec("abcd")!=null}),y=g||c(function(){return!p("a","y").sticky}),j=g||c(function(){var T=p("^r","gy");return T.lastIndex=2,T.exec("str")!=null});m.exports={BROKEN_CARET:j,MISSED_STICKY:y,UNSUPPORTED_Y:g}},S3az:function(m,x,t){var c=t("Ks5W"),f=t("JTf3"),p=t("sNJV"),g=c.WeakMap;m.exports=f(g)&&/native code/.test(p(g))},SDGZ:function(m,x,t){"use strict";t.d(x,"a",function(){return D});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var c=function(S,P){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,q){K.__proto__=q}||function(K,q){for(var ee in q)Object.prototype.hasOwnProperty.call(q,ee)&&(K[ee]=q[ee])})(S,P)};function f(O,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function P(){this.constructor=O}c(O,S),O.prototype=S===null?Object.create(S):(P.prototype=S.prototype,new P)}function p(O){var S="";Array.isArray(O)||(O=[O]);for(var P=0;PO.phi1&&(O.phi2-=2*j),O.sweepFlag===1&&O.phi2K)return[];if(K===0)return[[O*P/(O*O+S*S),S*P/(O*O+S*S)]];var q=Math.sqrt(K);return[[(O*P+S*q)/(O*O+S*S),(S*P-O*q)/(O*O+S*S)],[(O*P-S*q)/(O*O+S*S),(S*P+O*q)/(O*O+S*S)]]}var M,U=Math.PI/180;function F(O,S,P){return(1-P)*O+P*S}function N(O,S,P,K){return O+Math.cos(K/180*j)*S+Math.sin(K/180*j)*P}function V(O,S,P,K){var q=1e-6,ee=S-O,oe=P-S,E=3*ee+3*(K-P)-6*oe,w=6*(oe-ee),C=3*ee;return Math.abs(E)ce&&(B.sweepFlag=+!B.sweepFlag),B})}function oe(){return function(E){var w={};for(var C in E)w[C]=E[C];return w}}O.ROUND=function(E){function w(C){return Math.round(C*E)/E}return E===void 0&&(E=1e13),y(E),function(C){return C.x1!==void 0&&(C.x1=w(C.x1)),C.y1!==void 0&&(C.y1=w(C.y1)),C.x2!==void 0&&(C.x2=w(C.x2)),C.y2!==void 0&&(C.y2=w(C.y2)),C.x!==void 0&&(C.x=w(C.x)),C.y!==void 0&&(C.y=w(C.y)),C.rX!==void 0&&(C.rX=w(C.rX)),C.rY!==void 0&&(C.rY=w(C.rY)),C}},O.TO_ABS=S,O.TO_REL=function(){return q(function(E,w,C){return E.relative||(E.x1!==void 0&&(E.x1-=w),E.y1!==void 0&&(E.y1-=C),E.x2!==void 0&&(E.x2-=w),E.y2!==void 0&&(E.y2-=C),E.x!==void 0&&(E.x-=w),E.y!==void 0&&(E.y-=C),E.relative=!0),E})},O.NORMALIZE_HVZ=function(E,w,C){return E===void 0&&(E=!0),w===void 0&&(w=!0),C===void 0&&(C=!0),q(function(R,z,I,B,X){if(isNaN(B)&&!(R.type&D.MOVE_TO))throw new Error("path must start with moveto");return w&&R.type&D.HORIZ_LINE_TO&&(R.type=D.LINE_TO,R.y=R.relative?0:I),C&&R.type&D.VERT_LINE_TO&&(R.type=D.LINE_TO,R.x=R.relative?0:z),E&&R.type&D.CLOSE_PATH&&(R.type=D.LINE_TO,R.x=R.relative?B-z:B,R.y=R.relative?X-I:X),R.type&D.ARC&&(R.rX===0||R.rY===0)&&(R.type=D.LINE_TO,delete R.rX,delete R.rY,delete R.xRot,delete R.lArcFlag,delete R.sweepFlag),R})},O.NORMALIZE_ST=P,O.QT_TO_C=K,O.INFO=q,O.SANITIZE=function(E){E===void 0&&(E=0),y(E);var w=NaN,C=NaN,R=NaN,z=NaN;return q(function(I,B,X,k,Y){var J=Math.abs,ie=!1,se=0,re=0;if(I.type&D.SMOOTH_CURVE_TO&&(se=isNaN(w)?0:B-w,re=isNaN(C)?0:X-C),I.type&(D.CURVE_TO|D.SMOOTH_CURVE_TO)?(w=I.relative?B+I.x2:I.x2,C=I.relative?X+I.y2:I.y2):(w=NaN,C=NaN),I.type&D.SMOOTH_QUAD_TO?(R=isNaN(R)?B:2*B-R,z=isNaN(z)?X:2*X-z):I.type&D.QUAD_TO?(R=I.relative?B+I.x1:I.x1,z=I.relative?X+I.y1:I.y2):(R=NaN,z=NaN),I.type&D.LINE_COMMANDS||I.type&D.ARC&&(I.rX===0||I.rY===0||!I.lArcFlag)||I.type&D.CURVE_TO||I.type&D.SMOOTH_CURVE_TO||I.type&D.QUAD_TO||I.type&D.SMOOTH_QUAD_TO){var je=I.x===void 0?0:I.relative?I.x:I.x-B,fe=I.y===void 0?0:I.relative?I.y:I.y-X;se=isNaN(R)?I.x1===void 0?se:I.relative?I.x:I.x1-B:R-B,re=isNaN(z)?I.y1===void 0?re:I.relative?I.y:I.y1-X:z-X;var ce=I.x2===void 0?0:I.relative?I.x:I.x2-B,Ee=I.y2===void 0?0:I.relative?I.y:I.y2-X;J(je)<=E&&J(fe)<=E&&J(se)<=E&&J(re)<=E&&J(ce)<=E&&J(Ee)<=E&&(ie=!0)}return I.type&D.CLOSE_PATH&&J(B-k)<=E&&J(X-Y)<=E&&(ie=!0),ie?[]:I})},O.MATRIX=ee,O.ROTATE=function(E,w,C){w===void 0&&(w=0),C===void 0&&(C=0),y(E,w,C);var R=Math.sin(E),z=Math.cos(E);return ee(z,R,-R,z,w-w*z+C*R,C-w*R-C*z)},O.TRANSLATE=function(E,w){return w===void 0&&(w=0),y(E,w),ee(1,0,0,1,E,w)},O.SCALE=function(E,w){return w===void 0&&(w=E),y(E,w),ee(E,0,0,w,0,0)},O.SKEW_X=function(E){return y(E),ee(1,0,Math.atan(E),1,0,0)},O.SKEW_Y=function(E){return y(E),ee(1,Math.atan(E),0,1,0,0)},O.X_AXIS_SYMMETRY=function(E){return E===void 0&&(E=0),y(E),ee(-1,0,0,1,E,0)},O.Y_AXIS_SYMMETRY=function(E){return E===void 0&&(E=0),y(E),ee(1,0,0,-1,0,E)},O.A_TO_C=function(){return q(function(E,w,C){return D.ARC===E.type?function(R,z,I){var B,X,k,Y;R.cX||T(R,z,I);for(var J=Math.min(R.phi1,R.phi2),ie=Math.max(R.phi1,R.phi2)-J,se=Math.ceil(ie/90),re=new Array(se),je=z,fe=I,ce=0;cez.maxX&&(z.maxX=Le),Lez.maxY&&(z.maxY=Le),Lewe&&Y(H(B,k.x1,k.x2,k.x,we));for(var re=0,je=V(X,k.y1,k.y2,k.y);rewe&&J(H(X,k.y1,k.y2,k.y,we))}if(k.type&D.ARC){Y(k.x),J(k.y),T(k,B,X);for(var fe=k.xRot/180*Math.PI,ce=Math.cos(fe)*k.rX,Ee=Math.sin(fe)*k.rX,me=-Math.sin(fe)*k.rY,Me=Math.cos(fe)*k.rY,pe=k.phi1k.phi2?[k.phi2+360,k.phi1+360]:[k.phi2,k.phi1],Te=pe[0],Se=pe[1],Ae=function(Re){var Je=Re[0],st=Re[1],_e=180*Math.atan2(st,Je)/Math.PI;return _eTe&&weTe&&weR)throw new SyntaxError('Expected positive number, got "'+R+'" at index "'+oe+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+oe+'"')}this.curArgs.push(R),this.curArgs.length===te[this.curCommandType]&&(D.HORIZ_LINE_TO===this.curCommandType?ee({type:D.HORIZ_LINE_TO,relative:this.curCommandRelative,x:R}):D.VERT_LINE_TO===this.curCommandType?ee({type:D.VERT_LINE_TO,relative:this.curCommandRelative,y:R}):this.curCommandType===D.MOVE_TO||this.curCommandType===D.LINE_TO||this.curCommandType===D.SMOOTH_QUAD_TO?(ee({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),D.MOVE_TO===this.curCommandType&&(this.curCommandType=D.LINE_TO)):this.curCommandType===D.CURVE_TO?ee({type:D.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===D.SMOOTH_CURVE_TO?ee({type:D.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===D.QUAD_TO?ee({type:D.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===D.ARC&&ee({type:D.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(!Z(E))if(E===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(E!=="+"&&E!=="-"&&E!==".")if(C)this.curNumber=E,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+oe+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+E+'" at index '+oe+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,E!=="z"&&E!=="Z")if(E==="h"||E==="H")this.curCommandType=D.HORIZ_LINE_TO,this.curCommandRelative=E==="h";else if(E==="v"||E==="V")this.curCommandType=D.VERT_LINE_TO,this.curCommandRelative=E==="v";else if(E==="m"||E==="M")this.curCommandType=D.MOVE_TO,this.curCommandRelative=E==="m";else if(E==="l"||E==="L")this.curCommandType=D.LINE_TO,this.curCommandRelative=E==="l";else if(E==="c"||E==="C")this.curCommandType=D.CURVE_TO,this.curCommandRelative=E==="c";else if(E==="s"||E==="S")this.curCommandType=D.SMOOTH_CURVE_TO,this.curCommandRelative=E==="s";else if(E==="q"||E==="Q")this.curCommandType=D.QUAD_TO,this.curCommandRelative=E==="q";else if(E==="t"||E==="T")this.curCommandType=D.SMOOTH_QUAD_TO,this.curCommandRelative=E==="t";else{if(E!=="a"&&E!=="A")throw new SyntaxError('Unexpected character "'+E+'" at index '+oe+".");this.curCommandType=D.ARC,this.curCommandRelative=E==="a"}else K.push({type:D.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=E,this.curNumberHasDecimal=E==="."}else this.curNumber+=E,this.curNumberHasDecimal=!0;else this.curNumber+=E;else this.curNumber+=E,this.curNumberHasExp=!0;else this.curNumber+=E,this.curNumberHasExpDigits=this.curNumberHasExp}return K},S.prototype.transform=function(P){return Object.create(this,{parse:{value:function(q,ee){ee===void 0&&(ee=[]);for(var oe=0,E=Object.getPrototypeOf(this).parse.call(this,q);oe0?c:t)(p)}},"ST+I":function(m,x,t){var c=t("aNr2"),f=t("MURR"),p=c("keys");m.exports=function(g){return p[g]||(p[g]=f(g))}},SkNP:function(m,x){m.exports={}},SwuV:function(m,x,t){var c=t("JTf3");m.exports=function(f){return typeof f=="object"?f!==null:c(f)}},TRzv:function(m,x,t){var c=t("WxoH"),f=t("SwuV"),p=t("zFjv");m.exports=function(g,y){if(c(g),f(y)&&y.constructor===g)return y;var j=p.f(g),T=j.resolve;return T(y),j.promise}},Ttl4:function(m,x,t){var c=t("YELS"),f=t("x1+7"),p=t("fKql"),g=t("FlRv");m.exports=function(y,j,T){for(var A=f(j),M=g.f,U=p.f,F=0;F0&&(!P.multiline||P.multiline&&H(q,P.lastIndex-1)!==` `)&&(Y="(?: "+Y+")",ie=" "+ie,J++),E=new RegExp("^(?:"+Y+")",k)),D&&(E=new RegExp("^"+Y+"$(?!\\s)",k)),W&&(w=P.lastIndex),C=c(N,X?E:P,ie),X?C?(C.input=Z(C.input,J),C[0]=Z(C[0],J),C.index=P.lastIndex,P.lastIndex+=C[0].length):P.lastIndex=0:W&&C&&(P.lastIndex=P.global?C.index+C[0].length:w),D&&C&&C.length>1&&c(F,C[0],E,function(){for(R=1;R3&&(this.alpha=T[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var A=this.r.toString(16),M=this.g.toString(16),U=this.b.toString(16);return A.length==1&&(A="0"+A),M.length==1&&(M="0"+M),U.length==1&&(U="0"+U),"#"+A+M+U},this.getHelpXML=function(){for(var A=new Array,M=0;M "+G.toRGB()+" -> "+G.toHex());H.appendChild($),H.appendChild(Z),V.appendChild(H)}catch(_){}return V}}},WONN:function(m,x,t){"use strict";t("Ppro");var c=t("aLaa"),f=t("WrAw"),p=t("WMbf"),g=t("eRwv"),y=t("11yv"),j=t("8ODz"),T=y("species"),A=RegExp.prototype;m.exports=function(M,U,F,N){var V=y(M),H=!g(function(){var W={};return W[V]=function(){return 7},""[M](W)!=7}),G=H&&!g(function(){var W=!1,_=/a/;return M==="split"&&(_={},_.constructor={},_.constructor[T]=function(){return _},_.flags="",_[V]=/./[V]),_.exec=function(){return W=!0,null},_[V](""),!W});if(!H||!G||F){var $=c(/./[V]),Z=U(V,""[M],function(W,_,D,te,O){var S=c(W),P=_.exec;return P===p||P===A.exec?H&&!O?{done:!0,value:$(_,D,te)}:{done:!0,value:S(D,_,te)}:{done:!1}});f(String.prototype,M,Z[0]),f(A,V,Z[1])}N&&j(A[V],"sham",!0)}},WrAw:function(m,x,t){var c=t("Ks5W"),f=t("JTf3"),p=t("YELS"),g=t("8ODz"),y=t("nATg"),j=t("sNJV"),T=t("UQ6y"),A=t("N6FT").CONFIGURABLE,M=T.get,U=T.enforce,F=String(String).split("String");(m.exports=function(N,V,H,G){var $=G?!!G.unsafe:!1,Z=G?!!G.enumerable:!1,W=G?!!G.noTargetGet:!1,_=G&&G.name!==void 0?G.name:V,D;if(f(H)&&(String(_).slice(0,7)==="Symbol("&&(_="["+String(_).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!p(H,"name")||A&&H.name!==_)&&g(H,"name",_),D=U(H),D.source||(D.source=F.join(typeof _=="string"?_:""))),N===c){Z?N[V]=H:y(V,H);return}else $?!W&&N[V]&&(Z=!0):delete N[V];Z?N[V]=H:g(N,V,H)})(Function.prototype,"toString",function(){return f(this)&&M(this).source||j(this)})},WxoH:function(m,x,t){var c=t("Ks5W"),f=t("SwuV"),p=c.String,g=c.TypeError;m.exports=function(y){if(f(y))return y;throw g(p(y)+" is not an object")}},"X/EZ":function(m,x,t){var c=t("11yv"),f=c("iterator"),p=!1;try{var g=0,y={next:function(){return{done:!!g++}},return:function(){p=!0}};y[f]=function(){return this},Array.from(y,function(){throw 2})}catch(j){}m.exports=function(j,T){if(!T&&!p)return!1;var A=!1;try{var M={};M[f]=function(){return{next:function(){return{done:A=!0}}}},j(M)}catch(U){}return A}},XFuk:function(m,x,t){var c=t("WxoH"),f=t("oR5W"),p=t("Yzn+"),g=t("SkNP"),y=t("bUA4"),j=t("me6S"),T=t("ST+I"),A=">",M="<",U="prototype",F="script",N=T("IE_PROTO"),V=function(){},H=function(_){return M+F+A+_+M+"/"+F+A},G=function(_){_.write(H("")),_.close();var D=_.parentWindow.Object;return _=null,D},$=function(){var _=j("iframe"),D="java"+F+":",te;return _.style.display="none",y.appendChild(_),_.src=String(D),te=_.contentWindow.document,te.open(),te.write(H("document.F=Object")),te.close(),te.F},Z,W=function(){try{Z=new ActiveXObject("htmlfile")}catch(D){}W=typeof document!="undefined"?document.domain&&Z?G(Z):$():G(Z);for(var _=p.length;_--;)delete W[U][p[_]];return W()};g[N]=!0,m.exports=Object.create||function(D,te){var O;return D!==null?(V[U]=c(D),O=new V,V[U]=null,O[N]=D):O=W(),te===void 0?O:f.f(O,te)}},XTcp:function(m,x,t){var c=t("Ks5W"),f=t("1mOU"),p=t("mcoe"),g=t("JTf3"),y=t("YELS"),j=t("eRwv"),T=t("bUA4"),A=t("0r2v"),M=t("me6S"),U=t("GgKt"),F=t("IGIO"),N=c.setImmediate,V=c.clearImmediate,H=c.process,G=c.Dispatch,$=c.Function,Z=c.MessageChannel,W=c.String,_=0,D={},te="onreadystatechange",O,S,P,K;try{O=c.location}catch(w){}var q=function(w){if(y(D,w)){var C=D[w];delete D[w],C()}},ee=function(w){return function(){q(w)}},oe=function(w){q(w.data)},E=function(w){c.postMessage(W(w),O.protocol+"//"+O.host)};(!N||!V)&&(N=function(C){var R=A(arguments,1);return D[++_]=function(){f(g(C)?C:$(C),void 0,R)},S(_),_},V=function(C){delete D[C]},F?S=function(w){H.nextTick(ee(w))}:G&&G.now?S=function(w){G.now(ee(w))}:Z&&!U?(P=new Z,K=P.port2,P.port1.onmessage=oe,S=p(K.postMessage,K)):c.addEventListener&&g(c.postMessage)&&!c.importScripts&&O&&O.protocol!=="file:"&&!j(E)?(S=E,c.addEventListener("message",oe,!1)):te in M("script")?S=function(w){T.appendChild(M("script"))[te]=function(){T.removeChild(this),q(w)}}:S=function(w){setTimeout(ee(w),0)}),m.exports={set:N,clear:V}},XaNE:function(m,x,t){var c=t("Ks5W"),f=c.TypeError;m.exports=function(p){if(p==null)throw f("Can't call method on "+p);return p}},Xp4B:function(m,x,t){"use strict";t.d(x,"a",function(){return T});function c(N){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c=function(H){return typeof H}:c=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},c(N)}function f(N,V){if(!(N instanceof V))throw new TypeError("Cannot call a class as a function")}var p=[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],g=[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 y(N,V,H,G){if(typeof N=="string"&&(N=document.getElementById(N)),!N||!("naturalWidth"in N))return;var $=N.naturalWidth,Z=N.naturalHeight;if(typeof V=="string"&&(V=document.getElementById(V)),!V||!("getContext"in V))return;V.style.width=$+"px",V.style.height=Z+"px",V.width=$,V.height=Z;var W=V.getContext("2d");if(W.clearRect(0,0,$,Z),W.drawImage(N,0,0),isNaN(H)||H<1)return;G?T(V,0,0,$,Z,H):M(V,0,0,$,Z,H)}function j(N,V,H,G,$){if(typeof N=="string"&&(N=document.getElementById(N)),!N||c(N)!=="object"||!("getContext"in N))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var Z=N.getContext("2d");try{return Z.getImageData(V,H,G,$)}catch(W){throw new Error("unable to access image data: "+W)}}function T(N,V,H,G,$,Z){if(isNaN(Z)||Z<1)return;Z|=0;var W=j(N,V,H,G,$);W=A(W,V,H,G,$,Z),N.getContext("2d").putImageData(W,V,H)}function A(N,V,H,G,$,Z){var W=N.data,_,D,te,O,S,P,K,q,ee,oe,E,w,C,R,z,I,B,X,k,Y,J,ie,se,re,je=2*Z+1,fe=G-1,ce=$-1,Ee=Z+1,me=Ee*(Ee+1)/2,Me=new F,pe=Me,Te;for(te=1;te>Ue,se!==0?(se=255/se,W[P]=(q*De>>Ue)*se,W[P+1]=(ee*De>>Ue)*se,W[P+2]=(oe*De>>Ue)*se):W[P]=W[P+1]=W[P+2]=0,q-=w,ee-=C,oe-=R,E-=z,w-=Se.r,C-=Se.g,R-=Se.b,z-=Se.a,O=K+((O=_+Z+1)>Ue,se>0?(se=255/se,W[O]=(q*De>>Ue)*se,W[O+1]=(ee*De>>Ue)*se,W[O+2]=(oe*De>>Ue)*se):W[O]=W[O+1]=W[O+2]=0,q-=w,ee-=C,oe-=R,E-=z,w-=Se.r,C-=Se.g,R-=Se.b,z-=Se.a,O=_+((O=D+Ee)>Te,W[P+1]=ee*pe>>Te,W[P+2]=oe*pe>>Te,q-=E,ee-=w,oe-=C,E-=me.r,w-=me.g,C-=me.b,O=K+((O=_+Z+1)>Te,W[O+1]=ee*pe>>Te,W[O+2]=oe*pe>>Te,q-=E,ee-=w,oe-=C,E-=me.r,w-=me.g,C-=me.b,O=_+((O=D+re)U;)f(M,N=A[U++])&&(~g(F,N)||j(F,N));return F}},a9Cf:function(m,x,t){var c=t("11yv"),f=c("toStringTag"),p={};p[f]="z",m.exports=String(p)==="[object z]"},aLaa:function(m,x){var t=Function.prototype,c=t.bind,f=t.call,p=c&&c.bind(f,f);m.exports=c?function(g){return g&&p(g)}:function(g){return g&&function(){return f.apply(g,arguments)}}},aNIs:function(m,x,t){var c=t("Ks5W"),f=t("eE3R"),p=c.process,g=c.Deno,y=p&&p.versions||g&&g.version,j=y&&y.v8,T,A;j&&(T=j.split("."),A=T[0]>0&&T[0]<4?1:+(T[0]+T[1])),!A&&f&&(T=f.match(/Edge\/(\d+)/),(!T||T[1]>=74)&&(T=f.match(/Chrome\/(\d+)/),T&&(A=+T[1]))),m.exports=A},aNr2:function(m,x,t){var c=t("jybJ"),f=t("4gdG");(m.exports=function(p,g){return f[p]||(f[p]=g!==void 0?g:{})})("versions",[]).push({version:"3.20.2",mode:c?"pure":"global",copyright:"\xA9 2022 Denis Pushkarev (zloirock.ru)"})},bT0D:function(m,x,t){var c=t("Ks5W"),f=t("RYfq"),p=t("JTf3"),g=t("3Xd8"),y=t("1Sr1"),j=c.Object;m.exports=y?function(T){return typeof T=="symbol"}:function(T){var A=f("Symbol");return p(A)&&g(A.prototype,j(T))}},bUA4:function(m,x,t){var c=t("RYfq");m.exports=c("document","documentElement")},ba8b:function(m,x,t){var c=t("aLaa"),f=c({}.toString),p=c("".slice);m.exports=function(g){return p(f(g),8,-1)}},c3MK:function(m,x,t){var c=t("SN6V"),f=Math.min;m.exports=function(p){return p>0?f(c(p),9007199254740991):0}},c55Z:function(m,x,t){var c=t("eRwv"),f=t("Ks5W"),p=f.RegExp;m.exports=c(function(){var g=p("(?b)","g");return g.exec("b").groups.a!=="b"||"b".replace(g,"$c")!=="bc"})},eE3R:function(m,x,t){var c=t("RYfq");m.exports=c("navigator","userAgent")||""},eRwv:function(m,x){m.exports=function(t){try{return!!t()}catch(c){return!0}}},fKql:function(m,x,t){var c=t("++4Y"),f=t("m7zg"),p=t("5r2E"),g=t("4uGi"),y=t("vkZI"),j=t("GTqx"),T=t("YELS"),A=t("pVCk"),M=Object.getOwnPropertyDescriptor;x.f=c?M:function(F,N){if(F=y(F),N=j(N),A)try{return M(F,N)}catch(V){}if(T(F,N))return g(!f(p.f,F,N),F[N])}},"g8+u":function(m,x,t){var c=t("Ks5W"),f=t("a9Cf"),p=t("JTf3"),g=t("ba8b"),y=t("11yv"),j=y("toStringTag"),T=c.Object,A=g(function(){return arguments}())=="Arguments",M=function(U,F){try{return U[F]}catch(N){}};m.exports=f?g:function(U){var F,N,V;return U===void 0?"Undefined":U===null?"Null":typeof(N=M(F=T(U),j))=="string"?N:A?g(F):(V=g(F))=="Object"&&p(F.callee)?"Arguments":V}},g9jQ:function(m,x,t){"use strict";var c=t("nCzB"),f=t("aLaa"),p=t("Nybj").indexOf,g=t("QELg"),y=f([].indexOf),j=!!y&&1/y([1],1,-0)<0,T=g("indexOf");c({target:"Array",proto:!0,forced:j||!T},{indexOf:function(M){var U=arguments.length>1?arguments[1]:void 0;return j?y(this,M,U)||0:p(this,M,U)}})},gzPo:function(m,x,t){var c=t("Ks5W"),f=t("mcoe"),p=t("fKql").f,g=t("XTcp").set,y=t("GgKt"),j=t("FqHY"),T=t("/pbl"),A=t("IGIO"),M=c.MutationObserver||c.WebKitMutationObserver,U=c.document,F=c.process,N=c.Promise,V=p(c,"queueMicrotask"),H=V&&V.value,G,$,Z,W,_,D,te,O;H||(G=function(){var S,P;for(A&&(S=F.domain)&&S.exit();$;){P=$.fn,$=$.next;try{P()}catch(K){throw $?W():Z=void 0,K}}Z=void 0,S&&S.enter()},!y&&!A&&!T&&M&&U?(_=!0,D=U.createTextNode(""),new M(G).observe(D,{characterData:!0}),W=function(){D.data=_=!_}):!j&&N&&N.resolve?(te=N.resolve(void 0),te.constructor=N,O=f(te.then,te),W=function(){O(G)}):A?W=function(){F.nextTick(G)}:(g=f(g,c),W=function(){g(G)})),m.exports=H||function(S){var P={fn:S,next:void 0};Z&&(Z.next=P),$||($=P,W()),Z=P}},hIaP:function(m,x,t){var c=t("Ks5W"),f=t("m7zg"),p=t("8HiI"),g=t("WxoH"),y=t("IL+x"),j=t("ltkU"),T=c.TypeError;m.exports=function(A,M){var U=arguments.length<2?j(A):M;if(p(U))return g(f(U,A));throw T(y(A)+" is not iterable")}},"iBj/":function(m,x,t){var c=t("m7zg"),f=t("WxoH"),p=t("oK8H");m.exports=function(g,y,j){var T,A;f(g);try{if(T=p(g,"return"),!T){if(y==="throw")throw j;return j}T=c(T,g)}catch(M){A=!0,T=M}if(y==="throw")throw j;if(A)throw T;return f(T),j}},iWRt:function(m,x,t){"use strict";var c=t("nCzB"),f=t("aLaa"),p=t("uZ/K"),g=f([].reverse),y=[1,2];c({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return p(this)&&(this.length=this.length),g(this)}})},jgt4:function(m,x,t){"use strict";var c=t("nCzB"),f=t("m7zg"),p=t("jybJ"),g=t("N6FT"),y=t("JTf3"),j=t("3agc"),T=t("WLJ+"),A=t("JHvW"),M=t("ueY1"),U=t("8ODz"),F=t("WrAw"),N=t("11yv"),V=t("AoAp"),H=t("qjFr"),G=g.PROPER,$=g.CONFIGURABLE,Z=H.IteratorPrototype,W=H.BUGGY_SAFARI_ITERATORS,_=N("iterator"),D="keys",te="values",O="entries",S=function(){return this};m.exports=function(P,K,q,ee,oe,E,w){j(q,K,ee);var C=function(se){if(se===oe&&X)return X;if(!W&&se in I)return I[se];switch(se){case D:return function(){return new q(this,se)};case te:return function(){return new q(this,se)};case O:return function(){return new q(this,se)}}return function(){return new q(this)}},R=K+" Iterator",z=!1,I=P.prototype,B=I[_]||I["@@iterator"]||oe&&I[oe],X=!W&&B||C(oe),k=K=="Array"&&I.entries||B,Y,J,ie;if(k&&(Y=T(k.call(new P)),Y!==Object.prototype&&Y.next&&(!p&&T(Y)!==Z&&(A?A(Y,Z):y(Y[_])||F(Y,_,S)),M(Y,R,!0,!0),p&&(V[R]=S))),G&&oe==te&&B&&B.name!==te&&(!p&&$?U(I,"name",te):(z=!0,X=function(){return f(B,this)})),oe)if(J={values:C(te),keys:E?X:C(D),entries:C(O)},w)for(ie in J)(W||z||!(ie in I))&&F(I,ie,J[ie]);else c({target:K,proto:!0,forced:W||z},J);return(!p||w)&&I[_]!==X&&F(I,_,X,{name:oe}),V[K]=X,J}},jybJ:function(m,x){m.exports=!1},lAFk:function(m,x,t){var c=t("Ks5W");m.exports=function(f,p){var g=c.console;g&&g.error&&(arguments.length==1?g.error(f):g.error(f,p))}},ltkU:function(m,x,t){var c=t("g8+u"),f=t("oK8H"),p=t("AoAp"),g=t("11yv"),y=g("iterator");m.exports=function(j){if(j!=null)return f(j,y)||f(j,"@@iterator")||p[c(j)]}},m7zg:function(m,x){var t=Function.prototype.call;m.exports=t.bind?t.bind(t):function(){return t.apply(t,arguments)}},"mGb/":function(m,x,t){var c=t("eRwv"),f=t("JTf3"),p=/#|\.prototype\./,g=function(M,U){var F=j[y(M)];return F==A?!0:F==T?!1:f(U)?c(U):!!U},y=g.normalize=function(M){return String(M).replace(p,".").toLowerCase()},j=g.data={},T=g.NATIVE="N",A=g.POLYFILL="P";m.exports=g},mcoe:function(m,x,t){var c=t("aLaa"),f=t("8HiI"),p=c(c.bind);m.exports=function(g,y){return f(g),y===void 0?g:p?p(g,y):function(){return g.apply(y,arguments)}}},mdxj:function(m,x,t){"use strict";var c=t("nCzB"),f=t("FjAG").left,p=t("QELg"),g=t("aNIs"),y=t("IGIO"),j=p("reduce"),T=!y&&g>79&&g<83;c({target:"Array",proto:!0,forced:!j||T},{reduce:function(M){var U=arguments.length;return f(this,M,U,U>1?arguments[1]:void 0)}})},me6S:function(m,x,t){var c=t("Ks5W"),f=t("SwuV"),p=c.document,g=f(p)&&f(p.createElement);m.exports=function(y){return g?p.createElement(y):{}}},ms20:function(m,x,t){var c=t("Ks5W"),f=t("m7zg"),p=t("SwuV"),g=t("bT0D"),y=t("oK8H"),j=t("2lHc"),T=t("11yv"),A=c.TypeError,M=T("toPrimitive");m.exports=function(U,F){if(!p(U)||g(U))return U;var N=y(U,M),V;if(N){if(F===void 0&&(F="default"),V=f(N,U,F),!p(V)||g(V))return V;throw A("Can't convert object to primitive value")}return F===void 0&&(F="number"),j(U,F)}},n6S8:function(m,x,t){var c=t("SN6V"),f=Math.max,p=Math.min;m.exports=function(g,y){var j=c(g);return j<0?f(j+y,0):p(j,y)}},nATg:function(m,x,t){var c=t("Ks5W"),f=Object.defineProperty;m.exports=function(p,g){try{f(c,p,{value:g,configurable:!0,writable:!0})}catch(y){c[p]=g}return g}},nCzB:function(m,x,t){var c=t("Ks5W"),f=t("fKql").f,p=t("8ODz"),g=t("WrAw"),y=t("nATg"),j=t("Ttl4"),T=t("mGb/");m.exports=function(A,M){var U=A.target,F=A.global,N=A.stat,V,H,G,$,Z,W;if(F?H=c:N?H=c[U]||y(U,{}):H=(c[U]||{}).prototype,H)for(G in M){if(Z=M[G],A.noTargetGet?(W=f(H,G),$=W&&W.value):$=H[G],V=T(F?G:U+(N?".":"#")+G,A.forced),!V&&$!==void 0){if(typeof Z==typeof $)continue;j(Z,$)}(A.sham||$&&$.sham)&&p(Z,"sham",!0),g(H,G,Z,A)}}},noWC:function(m,x){m.exports=` \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},nvEG:function(m,x,t){var c=t("Ks5W"),f=t("mcoe"),p=t("m7zg"),g=t("WxoH"),y=t("IL+x"),j=t("3n0U"),T=t("tMNq"),A=t("3Xd8"),M=t("hIaP"),U=t("ltkU"),F=t("iBj/"),N=c.TypeError,V=function(G,$){this.stopped=G,this.result=$},H=V.prototype;m.exports=function(G,$,Z){var W=Z&&Z.that,_=!!(Z&&Z.AS_ENTRIES),D=!!(Z&&Z.IS_ITERATOR),te=!!(Z&&Z.INTERRUPTED),O=f($,W),S,P,K,q,ee,oe,E,w=function(R){return S&&F(S,"normal",R),new V(!0,R)},C=function(R){return _?(g(R),te?O(R[0],R[1],w):O(R[0],R[1])):te?O(R,w):O(R)};if(D)S=G;else{if(P=U(G),!P)throw N(y(G)+" is not iterable");if(j(P)){for(K=0,q=T(G);q>K;K++)if(ee=C(G[K]),ee&&A(H,ee))return ee;return new V(!1)}S=M(G,P)}for(oe=S.next;!(E=p(oe,S)).done;){try{ee=C(E.value)}catch(R){F(S,"throw",R)}if(typeof ee=="object"&&ee&&A(H,ee))return ee}return new V(!1)}},oK8H:function(m,x,t){var c=t("8HiI");m.exports=function(f,p){var g=f[p];return g==null?void 0:c(g)}},oR5W:function(m,x,t){var c=t("++4Y"),f=t("FkIU"),p=t("FlRv"),g=t("WxoH"),y=t("vkZI"),j=t("Ai06");x.f=c&&!f?Object.defineProperties:function(A,M){g(A);for(var U=y(M),F=j(M),N=F.length,V=0,H;N>V;)p.f(A,H=F[V++],U[H]);return A}},oauk:function(m,x,t){"use strict";var c=t("GTqx"),f=t("FlRv"),p=t("4uGi");m.exports=function(g,y,j){var T=c(y);T in g?f.f(g,T,p(0,j)):g[T]=j}},p5Ma:function(m,x,t){var c=t("Ks5W"),f=t("aLaa"),p=t("eRwv"),g=t("ba8b"),y=c.Object,j=f("".split);m.exports=p(function(){return!y("z").propertyIsEnumerable(0)})?function(T){return g(T)=="String"?j(T,""):y(T)}:y},pVCk:function(m,x,t){var c=t("++4Y"),f=t("eRwv"),p=t("me6S");m.exports=!c&&!f(function(){return Object.defineProperty(p("div"),"a",{get:function(){return 7}}).a!=7})},"plO+":function(m,x,t){var c=t("aNIs"),f=t("eRwv");m.exports=!!Object.getOwnPropertySymbols&&!f(function(){var p=Symbol();return!String(p)||!(Object(p)instanceof Symbol)||!Symbol.sham&&c&&c<41})},qJvV:function(m,x,t){var c=t("Ks5W"),f=t("ENhe"),p=t("GI0h"),g=t("Lltv"),y=t("8ODz"),j=t("11yv"),T=j("iterator"),A=j("toStringTag"),M=g.values,U=function(N,V){if(N){if(N[T]!==M)try{y(N,T,M)}catch(G){N[T]=M}if(N[A]||y(N,A,V),f[V]){for(var H in g)if(N[H]!==g[H])try{y(N,H,g[H])}catch(G){N[H]=g[H]}}}};for(var F in f)U(c[F]&&c[F].prototype,F);U(p,"DOMTokenList")},qjFr:function(m,x,t){"use strict";var c=t("eRwv"),f=t("JTf3"),p=t("XFuk"),g=t("WLJ+"),y=t("WrAw"),j=t("11yv"),T=t("jybJ"),A=j("iterator"),M=!1,U,F,N;[].keys&&(N=[].keys(),"next"in N?(F=g(g(N)),F!==Object.prototype&&(U=F)):M=!0);var V=U==null||c(function(){var H={};return U[A].call(H)!==H});V?U={}:T&&(U=p(U)),f(U[A])||y(U,A,function(){return this}),m.exports={IteratorPrototype:U,BUGGY_SAFARI_ITERATORS:M}},qzpy:function(m,x,t){var c=t("Ks5W"),f=t("g8+u"),p=c.String;m.exports=function(g){if(f(g)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return p(g)}},sNJV:function(m,x,t){var c=t("aLaa"),f=t("JTf3"),p=t("4gdG"),g=c(Function.toString);f(p.inspectSource)||(p.inspectSource=function(y){return g(y)}),m.exports=p.inspectSource},tMNq:function(m,x,t){var c=t("c3MK");m.exports=function(f){return c(f.length)}},"uZ/K":function(m,x,t){var c=t("ba8b");m.exports=Array.isArray||function(p){return c(p)=="Array"}},ueY1:function(m,x,t){var c=t("FlRv").f,f=t("YELS"),p=t("11yv"),g=p("toStringTag");m.exports=function(y,j,T){y&&!T&&(y=y.prototype),y&&!f(y,g)&&c(y,g,{configurable:!0,value:j})}},uoua:function(m,x,t){var c=t("Ks5W"),f=t("3Xd8"),p=c.TypeError;m.exports=function(g,y){if(f(y,g))return g;throw p("Incorrect invocation")}},vTDQ:function(m,x){m.exports=typeof window=="object"},vkZI:function(m,x,t){var c=t("p5Ma"),f=t("XaNE");m.exports=function(p){return c(f(p))}},vrKp:function(m,x,t){"use strict";var c=t("nCzB"),f=t("jybJ"),p=t("Ks5W"),g=t("RYfq"),y=t("m7zg"),j=t("BDtL"),T=t("WrAw"),A=t("LOfi"),M=t("JHvW"),U=t("ueY1"),F=t("9Bi7"),N=t("8HiI"),V=t("JTf3"),H=t("SwuV"),G=t("uoua"),$=t("sNJV"),Z=t("nvEG"),W=t("X/EZ"),_=t("NudO"),D=t("XTcp").set,te=t("gzPo"),O=t("TRzv"),S=t("lAFk"),P=t("zFjv"),K=t("8xe4"),q=t("zUnQ"),ee=t("UQ6y"),oe=t("mGb/"),E=t("11yv"),w=t("vTDQ"),C=t("IGIO"),R=t("aNIs"),z=E("species"),I="Promise",B=ee.getterFor(I),X=ee.set,k=ee.getterFor(I),Y=j&&j.prototype,J=j,ie=Y,se=p.TypeError,re=p.document,je=p.process,fe=P.f,ce=fe,Ee=!!(re&&re.createEvent&&p.dispatchEvent),me=V(p.PromiseRejectionEvent),Me="unhandledrejection",pe="rejectionhandled",Te=0,Se=1,Ae=2,De=1,Ue=2,Ke=!1,Be,we,Le,Re,Je=oe(I,function(){var ue=$(J),he=ue!==String(J);if(!he&&R===66)return!0;if(f&&!ie.finally)return!0;if(R>=51&&/native code/.test(ue))return!1;var xe=new J(function(Fe){Fe(1)}),Oe=function(Fe){Fe(function(){},function(){})},Pe=xe.constructor={};return Pe[z]=Oe,Ke=xe.then(function(){})instanceof Oe,Ke?!he&&w&&!me:!0}),st=Je||!W(function(ue){J.all(ue).catch(function(){})}),_e=function(ue){var he;return H(ue)&&V(he=ue.then)?he:!1},lt=function(ue,he){var xe=he.value,Oe=he.state==Se,Pe=Oe?ue.ok:ue.fail,Fe=ue.resolve,Ze=ue.reject,$e=ue.domain,Xe,dt,at;try{Pe?(Oe||(he.rejection===Ue&&Lt(he),he.rejection=De),Pe===!0?Xe=xe:($e&&$e.enter(),Xe=Pe(xe),$e&&($e.exit(),at=!0)),Xe===ue.promise?Ze(se("Promise-chain cycle")):(dt=_e(Xe))?y(dt,Xe,Fe,Ze):Fe(Xe)):Ze(xe)}catch(vt){$e&&!at&&$e.exit(),Ze(vt)}},gt=function(ue,he){if(ue.notified)return;ue.notified=!0,te(function(){for(var xe=ue.reactions,Oe;Oe=xe.get();)lt(Oe,ue);ue.notified=!1,he&&!ue.rejection&&wt(ue)})},mt=function(ue,he,xe){var Oe,Pe;Ee?(Oe=re.createEvent("Event"),Oe.promise=he,Oe.reason=xe,Oe.initEvent(ue,!1,!0),p.dispatchEvent(Oe)):Oe={promise:he,reason:xe},!me&&(Pe=p["on"+ue])?Pe(Oe):ue===Me&&S("Unhandled promise rejection",xe)},wt=function(ue){y(D,p,function(){var he=ue.facade,xe=ue.value,Oe=Mt(ue),Pe;if(Oe&&(Pe=K(function(){C?je.emit("unhandledRejection",xe,he):mt(Me,he,xe)}),ue.rejection=C||Mt(ue)?Ue:De,Pe.error))throw Pe.value})},Mt=function(ue){return ue.rejection!==De&&!ue.parent},Lt=function(ue){y(D,p,function(){var he=ue.facade;C?je.emit("rejectionHandled",he):mt(pe,he,ue.value)})},ut=function(ue,he,xe){return function(Oe){ue(he,Oe,xe)}},ct=function(ue,he,xe){if(ue.done)return;ue.done=!0,xe&&(ue=xe),ue.value=he,ue.state=Ae,gt(ue,!0)},rt=function(ue,he,xe){if(ue.done)return;ue.done=!0,xe&&(ue=xe);try{if(ue.facade===he)throw se("Promise can't be resolved itself");var Oe=_e(he);Oe?te(function(){var Pe={done:!1};try{y(Oe,he,ut(rt,Pe,ue),ut(ct,Pe,ue))}catch(Fe){ct(Pe,Fe,ue)}}):(ue.value=he,ue.state=Se,gt(ue,!1))}catch(Pe){ct({done:!1},Pe,ue)}};if(Je&&(J=function(he){G(this,ie),N(he),y(Be,this);var xe=B(this);try{he(ut(rt,xe),ut(ct,xe))}catch(Oe){ct(xe,Oe)}},ie=J.prototype,Be=function(he){X(this,{type:I,done:!1,notified:!1,parent:!1,reactions:new q,rejection:!1,state:Te,value:void 0})},Be.prototype=A(ie,{then:function(he,xe){var Oe=k(this),Pe=fe(_(this,J));return Oe.parent=!0,Pe.ok=V(he)?he:!0,Pe.fail=V(xe)&&xe,Pe.domain=C?je.domain:void 0,Oe.state==Te?Oe.reactions.add(Pe):te(function(){lt(Pe,Oe)}),Pe.promise},catch:function(ue){return this.then(void 0,ue)}}),we=function(){var ue=new Be,he=B(ue);this.promise=ue,this.resolve=ut(rt,he),this.reject=ut(ct,he)},P.f=fe=function(ue){return ue===J||ue===Le?new we(ue):ce(ue)},!f&&V(j)&&Y!==Object.prototype)){Re=Y.then,Ke||(T(Y,"then",function(he,xe){var Oe=this;return new J(function(Pe,Fe){y(Re,Oe,Pe,Fe)}).then(he,xe)},{unsafe:!0}),T(Y,"catch",ie.catch,{unsafe:!0}));try{delete Y.constructor}catch(ue){}M&&M(Y,ie)}c({global:!0,wrap:!0,forced:Je},{Promise:J}),U(J,I,!1,!0),F(I),Le=g(I),c({target:I,stat:!0,forced:Je},{reject:function(he){var xe=fe(this);return y(xe.reject,void 0,he),xe.promise}}),c({target:I,stat:!0,forced:f||Je},{resolve:function(he){return O(f&&this===Le?J:this,he)}}),c({target:I,stat:!0,forced:st},{all:function(he){var xe=this,Oe=fe(xe),Pe=Oe.resolve,Fe=Oe.reject,Ze=K(function(){var $e=N(xe.resolve),Xe=[],dt=0,at=1;Z(he,function(vt){var ge=dt++,Et=!1;at++,y($e,xe,vt).then(function(We){if(Et)return;Et=!0,Xe[ge]=We,--at||Pe(Xe)},Fe)}),--at||Pe(Xe)});return Ze.error&&Fe(Ze.value),Oe.promise},race:function(he){var xe=this,Oe=fe(xe),Pe=Oe.reject,Fe=K(function(){var Ze=N(xe.resolve);Z(he,function($e){y(Ze,xe,$e).then(Oe.resolve,Pe)})});return Fe.error&&Pe(Fe.value),Oe.promise}})},wOD2:function(m,x,t){"use strict";var c=t("nCzB"),f=t("RXj+").trim,p=t("5JCY");c({target:"String",proto:!0,forced:p("trim")},{trim:function(){return f(this)}})},"x1+7":function(m,x,t){var c=t("RYfq"),f=t("aLaa"),p=t("QrM1"),g=t("UCFi"),y=t("WxoH"),j=f([].concat);m.exports=c("Reflect","ownKeys")||function(A){var M=p.f(y(A)),U=g.f;return U?j(M,U(A)):M}},x8x8:function(m,x,t){"use strict";var c=t("1mOU"),f=t("m7zg"),p=t("aLaa"),g=t("WONN"),y=t("eRwv"),j=t("WxoH"),T=t("JTf3"),A=t("SN6V"),M=t("c3MK"),U=t("qzpy"),F=t("XaNE"),N=t("M/+V"),V=t("oK8H"),H=t("Ne/+"),G=t("3fk+"),$=t("11yv"),Z=$("replace"),W=Math.max,_=Math.min,D=p([].concat),te=p([].push),O=p("".indexOf),S=p("".slice),P=function(oe){return oe===void 0?oe:String(oe)},K=function(){return"a".replace(/./,"$0")==="$0"}(),q=function(){return/./[Z]?/./[Z]("a","$0")==="":!1}(),ee=!y(function(){var oe=/./;return oe.exec=function(){var E=[];return E.groups={a:"7"},E},"".replace(oe,"$")!=="7"});g("replace",function(oe,E,w){var C=q?"$":"$0";return[function(z,I){var B=F(this),X=z==null?void 0:V(z,Z);return X?f(X,z,B,I):f(E,U(B),z,I)},function(R,z){var I=j(this),B=U(R);if(typeof z=="string"&&O(z,C)===-1&&O(z,"$<")===-1){var X=w(E,I,B,z);if(X.done)return X.value}var k=T(z);k||(z=U(z));var Y=I.global;if(Y){var J=I.unicode;I.lastIndex=0}for(var ie=[];;){var se=G(I,B);if(se===null)break;if(te(ie,se),!Y)break;var re=U(se[0]);re===""&&(I.lastIndex=N(B,M(I.lastIndex),J))}for(var je="",fe=0,ce=0;ce=fe&&(je+=S(B,fe,me)+Ae,fe=me+Ee.length)}return je+S(B,fe)}]},!ee||!K||q)},yD9w:function(m,x,t){"use strict";var c=t("aLaa"),f=t("N6FT").PROPER,p=t("WrAw"),g=t("WxoH"),y=t("3Xd8"),j=t("qzpy"),T=t("eRwv"),A=t("HTC/"),M="toString",U=RegExp.prototype,F=U[M],N=c(A),V=T(function(){return F.call({source:"a",flags:"b"})!="/a/b"}),H=f&&F.name!=M;(V||H)&&p(RegExp.prototype,M,function(){var $=g(this),Z=j($.source),W=$.flags,_=j(W===void 0&&y(U,$)&&!("flags"in U)?N($):W);return"/"+Z+"/"+_},{unsafe:!0})},yXPU:function(m,x){function t(f,p,g,y,j,T,A){try{var M=f[T](A),U=M.value}catch(F){g(F);return}M.done?p(U):Promise.resolve(U).then(y,j)}function c(f){return function(){var p=this,g=arguments;return new Promise(function(y,j){var T=f.apply(p,g);function A(U){t(T,y,j,A,M,"next",U)}function M(U){t(T,y,j,A,M,"throw",U)}A(void 0)})}}m.exports=c,m.exports.default=m.exports,m.exports.__esModule=!0},ymN0:function(m,x,t){var c=t("aLaa"),f=t("SN6V"),p=t("qzpy"),g=t("XaNE"),y=c("".charAt),j=c("".charCodeAt),T=c("".slice),A=function(M){return function(U,F){var N=p(g(U)),V=f(F),H=N.length,G,$;return V<0||V>=H?M?"":void 0:(G=j(N,V),G<55296||G>56319||V+1===H||($=j(N,V+1))<56320||$>57343?M?y(N,V):G:M?T(N,V,V+2):(G-55296<<10)+($-56320)+65536)}};m.exports={codeAt:A(!1),charAt:A(!0)}},zFjv:function(m,x,t){"use strict";var c=t("8HiI"),f=function(p){var g,y;this.promise=new p(function(j,T){if(g!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");g=j,y=T}),this.resolve=c(g),this.reject=c(y)};m.exports.f=function(p){return new f(p)}},zUnQ:function(m,x){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(c){var f={item:c,next:null};this.head?this.tail.next=f:this.head=f,this.tail=f},get:function(){var c=this.head;if(c)return this.head=c.next,this.tail===c&&(this.tail=null),c.item}},m.exports=t}}]);