h(  ) ($6;EbBLkfu�_l� ''8;DUFKV3Dd#,?ANk&5G$/(5M\^�ms����Sb�,;R''6c2I�!\����kx�Ve�[i��Me�IYO7:nOL~�Kr�qrv�I:�BM�y��s}r��K����x)1�6@r*2�89ma��&��'ti������{~#������t)1�2<�0:^5�W.uFzQ/u}�v��vv�u��U37yDJeEJo(/�5Ds'1�:Jlu�iy�iy�hw�1;:S`^BMLOQQn,4�7C�8C�>Lfe�]k�[i�Zg��IW�LZ�EP;,.��Tc�q(0) G,/]/1����w�r��l&-t*3�<<�u��#����j&.u��J68\8?"#$%&'()*+,-./0 ! 
Notice: Undefined index: dl in /var/www/html/web/simple.mini.php on line 1
403WebShell
403Webshell
Server IP : 10.254.12.21  /  Your IP : 10.254.12.21
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40
System : Linux arit.skru.ac.th 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/opt/eset/efs/lib/webd/frontend/static/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/opt/eset/efs/lib/webd/frontend/static/js/4.4bc4103d.chunk.js
/*! For license information please see 4.4bc4103d.chunk.js.LICENSE.txt */
(this["webpackJsonpunixprotection-frontend"]=this["webpackJsonpunixprotection-frontend"]||[]).push([[4],{1641:function(t,e,r){"use strict";r.r(e),function(t){r.d(e,"AElement",(function(){return ee})),r.d(e,"AnimateColorElement",(function(){return Qt})),r.d(e,"AnimateElement",(function(){return Gt})),r.d(e,"AnimateTransformElement",(function(){return $t})),r.d(e,"BoundingBox",(function(){return Tt})),r.d(e,"CB1",(function(){return G})),r.d(e,"CB2",(function(){return Q})),r.d(e,"CB3",(function(){return $})),r.d(e,"CB4",(function(){return Z})),r.d(e,"Canvg",(function(){return Ne})),r.d(e,"CircleElement",(function(){return Rt})),r.d(e,"ClipPathElement",(function(){return me})),r.d(e,"DefsElement",(function(){return Ft})),r.d(e,"DescElement",(function(){return Te})),r.d(e,"Document",(function(){return Ce})),r.d(e,"Element",(function(){return bt})),r.d(e,"EllipseElement",(function(){return It})),r.d(e,"FeColorMatrixElement",(function(){return ve})),r.d(e,"FeCompositeElement",(function(){return Se})),r.d(e,"FeDropShadowElement",(function(){return xe})),r.d(e,"FeGaussianBlurElement",(function(){return we})),r.d(e,"FeMorphologyElement",(function(){return Oe})),r.d(e,"FilterElement",(function(){return be})),r.d(e,"Font",(function(){return kt})),r.d(e,"FontElement",(function(){return Zt})),r.d(e,"FontFaceElement",(function(){return Kt})),r.d(e,"GElement",(function(){return Ht})),r.d(e,"GlyphElement",(function(){return Ct})),r.d(e,"GradientElement",(function(){return Xt})),r.d(e,"ImageElement",(function(){return oe})),r.d(e,"LineElement",(function(){return Lt})),r.d(e,"LinearGradientElement",(function(){return Yt})),r.d(e,"MarkerElement",(function(){return Ut})),r.d(e,"MaskElement",(function(){return de})),r.d(e,"Matrix",(function(){return gt})),r.d(e,"MissingGlyphElement",(function(){return Jt})),r.d(e,"Mouse",(function(){return it})),r.d(e,"PSEUDO_ZERO",(function(){return X})),r.d(e,"Parser",(function(){return lt})),r.d(e,"PathElement",(function(){return Pt})),r.d(e,"PathParser",(function(){return At})),r.d(e,"PatternElement",(function(){return zt})),r.d(e,"Point",(function(){return nt})),r.d(e,"PolygonElement",(function(){return Bt})),r.d(e,"PolylineElement",(function(){return Dt})),r.d(e,"Property",(function(){return et})),r.d(e,"QB1",(function(){return K})),r.d(e,"QB2",(function(){return J})),r.d(e,"QB3",(function(){return tt})),r.d(e,"RadialGradientElement",(function(){return qt})),r.d(e,"RectElement",(function(){return Vt})),r.d(e,"RenderedElement",(function(){return Et})),r.d(e,"Rotate",(function(){return ft})),r.d(e,"SVGElement",(function(){return _t})),r.d(e,"SVGFontLoader",(function(){return ue})),r.d(e,"Scale",(function(){return pt})),r.d(e,"Screen",(function(){return st})),r.d(e,"Skew",(function(){return vt})),r.d(e,"SkewX",(function(){return dt})),r.d(e,"SkewY",(function(){return yt})),r.d(e,"StopElement",(function(){return Wt})),r.d(e,"StyleElement",(function(){return ce})),r.d(e,"SymbolElement",(function(){return se})),r.d(e,"TRefElement",(function(){return te})),r.d(e,"TSpanElement",(function(){return Mt})),r.d(e,"TextElement",(function(){return jt})),r.d(e,"TextPathElement",(function(){return ie})),r.d(e,"TitleElement",(function(){return ke})),r.d(e,"Transform",(function(){return mt})),r.d(e,"Translate",(function(){return ht})),r.d(e,"UnknownElement",(function(){return xt})),r.d(e,"UseElement",(function(){return le})),r.d(e,"ViewPort",(function(){return rt})),r.d(e,"compressSpaces",(function(){return E})),r.d(e,"getSelectorSpecificity",(function(){return H})),r.d(e,"normalizeAttributeName",(function(){return N})),r.d(e,"normalizeColor",(function(){return V})),r.d(e,"parseExternalUrl",(function(){return _})),r.d(e,"presets",(function(){return A})),r.d(e,"toNumbers",(function(){return j})),r.d(e,"trimLeft",(function(){return P})),r.d(e,"trimRight",(function(){return C})),r.d(e,"vectorMagnitude",(function(){return Y})),r.d(e,"vectorsAngle",(function(){return W})),r.d(e,"vectorsRatio",(function(){return q}));r(1758),r(1744),r(1776),r(1778),r(1795),r(1796),r(1797),r(1798),r(1802),r(1804),r(1805),r(1806),r(1809);var n=r(151),i=r(11),a=r(47),o=r(32),s=r(29),u=r(10),c=r(13),l=r(14),h=r(6),f=r(8),p=r(9),g=r(12),v=r.n(g),d=r(57),y=r.n(d),m=r(71),b=r.n(m),x=r(1811),O=r.n(x),S=r(1813),w=r.n(S),k=r(1814),T=r(1815);var A=Object.freeze({__proto__:null,offscreen:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.DOMParser,r={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas:function(t,e){return new OffscreenCanvas(t,e)},createImage:function(t){return y()(v.a.mark((function e(){var r,n,i;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return r=e.sent,e.next=5,r.blob();case 5:return n=e.sent,e.next=8,createImageBitmap(n);case 8:return i=e.sent,e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)})))()}};return"undefined"===typeof DOMParser&&"undefined"!==typeof e||Reflect.deleteProperty(r,"DOMParser"),r},node:function(t){var e=t.DOMParser,r=t.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:t.fetch,createCanvas:r.createCanvas,createImage:r.loadImage}}});function E(t){return t.replace(/(?!\u3000)\s+/gm," ")}function P(t){return t.replace(/^[\n \t]+/,"")}function C(t){return t.replace(/[\n \t]+$/,"")}function j(t){return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var M=/^[A-Z-]+$/;function N(t){return M.test(t)?t.toLowerCase():t}function _(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function V(t){if(!t.startsWith("rgb"))return t;var e=3;return t.replace(/\d+(\.\d+)?/g,(function(t,r){return e--&&r?String(Math.round(parseFloat(t))):t}))}var R=/(\[[^\]]+\])/g,I=/(#[^\s+>~.[:]+)/g,L=/(\.[^\s+>~.[:]+)/g,D=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,B=/(:[\w-]+\([^)]*\))/gi,z=/(:[^\s+>~.[:]+)/g,U=/([^\s+>~.[:]+)/g;function F(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}function H(t){var e=[0,0,0],r=t.replace(/:not\(([^)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),n=0,i=F(r,R),a=Object(p.a)(i,2);r=a[0],n=a[1],e[1]+=n;var o=F(r,I),s=Object(p.a)(o,2);r=s[0],n=s[1],e[0]+=n;var u=F(r,L),c=Object(p.a)(u,2);r=c[0],n=c[1],e[1]+=n;var l=F(r,D),h=Object(p.a)(l,2);r=h[0],n=h[1],e[2]+=n;var f=F(r,B),g=Object(p.a)(f,2);r=g[0],n=g[1],e[1]+=n;var v=F(r,z),d=Object(p.a)(v,2);r=d[0],n=d[1],e[1]+=n;var y=F(r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),U),m=Object(p.a)(y,2);return r=m[0],n=m[1],e[2]+=n,e.join("")}var X=1e-8;function Y(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function q(t,e){return(t[0]*e[0]+t[1]*e[1])/(Y(t)*Y(e))}function W(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(q(t,e))}function G(t){return t*t*t}function Q(t){return 3*t*t*(1-t)}function $(t){return 3*t*(1-t)*(1-t)}function Z(t){return(1-t)*(1-t)*(1-t)}function K(t){return t*t}function J(t){return 2*t*(1-t)}function tt(t){return(1-t)*(1-t)}var et=function(){function t(e,r,n){Object(h.a)(this,t),this.document=e,this.name=r,this.value=n,this.isNormalizedColor=!1}return Object(f.a)(t,[{key:"split",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",r=this.document,n=this.name;return E(this.getString()).trim().split(e).map((function(e){return new t(r,n,e)}))}},{key:"hasValue",value:function(t){var e=this.value;return null!==e&&""!==e&&(t||0!==e)&&"undefined"!==typeof e}},{key:"isString",value:function(t){var e=this.value,r="string"===typeof e;return r&&t?t.test(e):r}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}},{key:"setValue",value:function(t){return this.value=t,this}},{key:"getValue",value:function(t){return"undefined"===typeof t||this.hasValue()?this.value:t}},{key:"getNumber",value:function(t){if(!this.hasValue())return"undefined"===typeof t?0:parseFloat(t);var e=this.value,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}},{key:"getString",value:function(t){return"undefined"===typeof t||this.hasValue()?"undefined"===typeof this.value?"":String(this.value):String(t)}},{key:"getColor",value:function(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=V(e),this.value=e),e}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9.-]/g,"")}},{key:"getPixels",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var r="boolean"===typeof t?[void 0,t]:[t],n=Object(p.a)(r,2),i=n[0],a=n[1],o=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(o.computeSize("x"),o.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(o.computeSize("x"),o.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*o.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*o.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&a:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*o.computeSize(i);default:var s=this.getNumber();return e&&s<1?s*o.computeSize(i):s}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function(){var t=this.getString(),e=/#([^)'"]+)/.exec(t);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}},{key:"getFillStyleDefinition",value:function(t,e){var r=this.getDefinition();if(!r)return null;if("function"===typeof r.createGradient)return r.createGradient(this.document.ctx,t,e);if("function"===typeof r.createPattern){if(r.getHrefAttribute().hasValue()){var n=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),n.hasValue()&&r.getAttribute("patternTransform",!0).setValue(n.value)}return r.createPattern(this.document.ctx,t,e)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?t.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(e){for(var r=this.getColor(),n=r.length,i=0,a=0;a<n&&(","===r[a]&&i++,3!==i);a++);if(e.hasValue()&&this.isString()&&3!==i){var o=new w.a(r);o.ok&&(o.alpha=e.getNumber(),r=o.toRGBA())}return new t(this.document,this.name,r)}}],[{key:"empty",value:function(e){return new t(e,"EMPTY","")}}]),t}();et.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var rt=function(){function t(){Object(h.a)(this,t),this.viewPorts=[]}return Object(f.a)(t,[{key:"clear",value:function(){this.viewPorts=[]}},{key:"setCurrent",value:function(t,e){this.viewPorts.push({width:t,height:e})}},{key:"removeCurrent",value:function(){this.viewPorts.pop()}},{key:"getCurrent",value:function(){var t=this.viewPorts;return t[t.length-1]}},{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}},{key:"computeSize",value:function(t){return"number"===typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}]),t}(),nt=function(){function t(e,r){Object(h.a)(this,t),this.x=e,this.y=r}return Object(f.a)(t,[{key:"angleTo",value:function(t){return Math.atan2(t.y-this.y,t.x-this.x)}},{key:"applyTransform",value:function(t){var e=this.x,r=this.y,n=e*t[0]+r*t[2]+t[4],i=e*t[1]+r*t[3]+t[5];this.x=n,this.y=i}}],[{key:"parse",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=j(e),i=Object(p.a)(n,2),a=i[0],o=void 0===a?r:a,s=i[1],u=void 0===s?r:s;return new t(o,u)}},{key:"parseScale",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=j(e),i=Object(p.a)(n,2),a=i[0],o=void 0===a?r:a,s=i[1],u=void 0===s?o:s;return new t(o,u)}},{key:"parsePath",value:function(e){for(var r=j(e),n=r.length,i=[],a=0;a<n;a+=2)i.push(new t(r[a],r[a+1]));return i}}]),t}(),it=function(){function t(e){Object(h.a)(this,t),this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}return Object(f.a)(t,[{key:"isWorking",value:function(){return this.working}},{key:"start",value:function(){if(!this.working){var t=this.screen,e=this.onClick,r=this.onMouseMove,n=t.ctx.canvas;n.onclick=e,n.onmousemove=r,this.working=!0}}},{key:"stop",value:function(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}},{key:"hasEvents",value:function(){return this.working&&this.events.length>0}},{key:"runEvents",value:function(){if(this.working){var t=this.screen,e=this.events,r=this.eventElements,n=t.ctx.canvas.style;n&&(n.cursor=""),e.forEach((function(t,e){for(var n=t.run,i=r[e];i;)n(i),i=i.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function(t,e){if(this.working&&e){var r=this.events,n=this.eventElements;r.forEach((function(r,i){var a=r.x,o=r.y;!n[i]&&e.isPointInPath&&e.isPointInPath(a,o)&&(n[i]=t)}))}}},{key:"checkBoundingBox",value:function(t,e){if(this.working&&e){var r=this.events,n=this.eventElements;r.forEach((function(r,i){var a=r.x,o=r.y;!n[i]&&e.isPointInBox(a,o)&&(n[i]=t)}))}}},{key:"mapXY",value:function(t,e){for(var r=this.screen,n=r.window,i=r.ctx,a=new nt(t,e),o=i.canvas;o;)a.x-=o.offsetLeft,a.y-=o.offsetTop,o=o.offsetParent;return n.scrollX&&(a.x+=n.scrollX),n.scrollY&&(a.y+=n.scrollY),a}},{key:"onClick",value:function(t){var e=this.mapXY(t.clientX,t.clientY),r=e.x,n=e.y;this.events.push({type:"onclick",x:r,y:n,run:function(t){t.onClick&&t.onClick()}})}},{key:"onMouseMove",value:function(t){var e=this.mapXY(t.clientX,t.clientY),r=e.x,n=e.y;this.events.push({type:"onmousemove",x:r,y:n,run:function(t){t.onMouseMove&&t.onMouseMove()}})}}]),t}(),at="undefined"!==typeof window?window:null,ot="undefined"!==typeof fetch?fetch.bind(void 0):null,st=function(){function t(e){Object(h.a)(this,t);var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.fetch,i=void 0===n?ot:n,a=r.window,o=void 0===a?at:a;this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new rt,this.mouse=new it(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=o,this.fetch=i}return Object(f.a)(t,[{key:"wait",value:function(t){this.waits.push(t)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var t=this.waits.every((function(t){return t()}));return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}},{key:"setDefaults",value:function(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}},{key:"setViewBox",value:function(t){var e=t.document,r=t.ctx,n=t.aspectRatio,i=t.width,a=t.desiredWidth,o=t.height,s=t.desiredHeight,u=t.minX,c=void 0===u?0:u,l=t.minY,h=void 0===l?0:l,f=t.refX,g=t.refY,v=t.clip,d=void 0!==v&&v,y=t.clipX,m=void 0===y?0:y,b=t.clipY,x=void 0===b?0:b,O=E(n).replace(/^defer\s/,"").split(" "),S=Object(p.a)(O,2),w=S[0]||"xMidYMid",k=S[1]||"meet",T=i/a,A=o/s,P=Math.min(T,A),C=Math.max(T,A),j=a,M=s;"meet"===k&&(j*=P,M*=P),"slice"===k&&(j*=C,M*=C);var N=new et(e,"refX",f),_=new et(e,"refY",g),V=N.hasValue()&&_.hasValue();if(V&&r.translate(-P*N.getPixels("x"),-P*_.getPixels("y")),d){var R=P*m,I=P*x;r.beginPath(),r.moveTo(R,I),r.lineTo(i,I),r.lineTo(i,o),r.lineTo(R,o),r.closePath(),r.clip()}if(!V){var L="meet"===k&&P===A,D="slice"===k&&C===A,B="meet"===k&&P===T,z="slice"===k&&C===T;w.startsWith("xMid")&&(L||D)&&r.translate(i/2-j/2,0),w.endsWith("YMid")&&(B||z)&&r.translate(0,o/2-M/2),w.startsWith("xMax")&&(L||D)&&r.translate(i-j,0),w.endsWith("YMax")&&(B||z)&&r.translate(0,o-M)}switch(!0){case"none"===w:r.scale(T,A);break;case"meet"===k:r.scale(P,P);break;case"slice"===k:r.scale(C,C)}r.translate(-c,-h)}},{key:"start",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.enableRedraw,i=void 0!==n&&n,a=r.ignoreMouse,o=void 0!==a&&a,s=r.ignoreAnimation,u=void 0!==s&&s,c=r.ignoreDimensions,l=void 0!==c&&c,h=r.ignoreClear,f=void 0!==h&&h,p=r.forceRedraw,g=r.scaleWidth,v=r.scaleHeight,d=r.offsetX,y=r.offsetY,m=this.FRAMERATE,b=this.mouse,x=1e3/m;if(this.frameDuration=x,this.readyPromise=new Promise((function(t){e.resolveReady=t})),this.isReady()&&this.render(t,l,f,g,v,d,y),i){var S=Date.now(),w=S,k=0,T=function r(){S=Date.now(),(k=S-w)>=x&&(w=S-k%x,e.shouldUpdate(u,p)&&(e.render(t,l,f,g,v,d,y),b.runEvents())),e.intervalId=O()(r)};o||b.start(),this.intervalId=O()(T)}}},{key:"stop",value:function(){this.intervalId&&(O.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(t,e){if(!t){var r=this.frameDuration,n=this.animations.reduce((function(t,e){return e.update(r)||t}),!1);if(n)return!0}return!("function"!==typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function(t,e,r,n,i,a,o){var s=this.CLIENT_WIDTH,u=this.CLIENT_HEIGHT,c=this.viewPort,l=this.ctx,h=this.isFirstRender,f=l.canvas;c.clear(),f.width&&f.height?c.setCurrent(f.width,f.height):c.setCurrent(s,u);var p=t.getStyle("width"),g=t.getStyle("height");!e&&(h||"number"!==typeof n&&"number"!==typeof i)&&(p.hasValue()&&(f.width=p.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),g.hasValue()&&(f.height=g.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var v=f.clientWidth||f.width,d=f.clientHeight||f.height;if(e&&p.hasValue()&&g.hasValue()&&(v=p.getPixels("x"),d=g.getPixels("y")),c.setCurrent(v,d),"number"===typeof a&&t.getAttribute("x",!0).setValue(a),"number"===typeof o&&t.getAttribute("y",!0).setValue(o),"number"===typeof n||"number"===typeof i){var y=j(t.getAttribute("viewBox").getString()),m=0,b=0;if("number"===typeof n){var x=t.getStyle("width");x.hasValue()?m=x.getPixels("x")/n:isNaN(y[2])||(m=y[2]/n)}if("number"===typeof i){var O=t.getStyle("height");O.hasValue()?b=O.getPixels("y")/i:isNaN(y[3])||(b=y[3]/i)}m||(m=b),b||(b=m),t.getAttribute("width",!0).setValue(n),t.getAttribute("height",!0).setValue(i);var S=t.getStyle("transform",!0,!0);S.setValue("".concat(S.getString()," scale(").concat(1/m,", ").concat(1/b,")"))}r||l.clearRect(0,0,v,d),t.render(l),h&&(this.isFirstRender=!1)}}]),t}();st.defaultWindow=at,st.defaultFetch=ot;var ut=st.defaultFetch,ct="undefined"!==typeof DOMParser?DOMParser:null,lt=function(){function t(){Object(h.a)(this,t);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.fetch,n=void 0===r?ut:r,i=e.DOMParser,a=void 0===i?ct:i;this.fetch=n,this.DOMParser=a}return Object(f.a)(t,[{key:"parse",value:function(t){var e=this;return y()(v.a.mark((function r(){return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t.startsWith("<")){r.next=2;break}return r.abrupt("return",e.parseFromString(t));case 2:return r.abrupt("return",e.load(t));case 3:case"end":return r.stop()}}),r)})))()}},{key:"parseFromString",value:function(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch(r){return this.checkDocument(e.parseFromString(t,"text/xml"))}}},{key:"checkDocument",value:function(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}},{key:"load",value:function(t){var e=this;return y()(v.a.mark((function r(){var n,i;return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.fetch(t);case 2:return n=r.sent,r.next=5,n.text();case 5:return i=r.sent,r.abrupt("return",e.parseFromString(i));case 7:case"end":return r.stop()}}),r)})))()}}]),t}(),ht=function(){function t(e,r){Object(h.a)(this,t),this.type="translate",this.point=null,this.point=nt.parse(r)}return Object(f.a)(t,[{key:"apply",value:function(t){var e=this.point,r=e.x,n=e.y;t.translate(r||0,n||0)}},{key:"unapply",value:function(t){var e=this.point,r=e.x,n=e.y;t.translate(-1*r||0,-1*n||0)}},{key:"applyToPoint",value:function(t){var e=this.point,r=e.x,n=e.y;t.applyTransform([1,0,0,1,r||0,n||0])}}]),t}(),ft=function(){function t(e,r,n){Object(h.a)(this,t),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=j(r);this.angle=new et(e,"angle",i[0]),this.originX=n[0],this.originY=n[1],this.cx=i[1]||0,this.cy=i[2]||0}return Object(f.a)(t,[{key:"apply",value:function(t){var e=this.cx,r=this.cy,n=this.originX,i=this.originY,a=this.angle,o=e+n.getPixels("x"),s=r+i.getPixels("y");t.translate(o,s),t.rotate(a.getRadians()),t.translate(-o,-s)}},{key:"unapply",value:function(t){var e=this.cx,r=this.cy,n=this.originX,i=this.originY,a=this.angle,o=e+n.getPixels("x"),s=r+i.getPixels("y");t.translate(o,s),t.rotate(-1*a.getRadians()),t.translate(-o,-s)}},{key:"applyToPoint",value:function(t){var e=this.cx,r=this.cy,n=this.angle.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}]),t}(),pt=function(){function t(e,r,n){Object(h.a)(this,t),this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=nt.parseScale(r);0!==i.x&&0!==i.y||(i.x=X,i.y=X),this.scale=i,this.originX=n[0],this.originY=n[1]}return Object(f.a)(t,[{key:"apply",value:function(t){var e=this.scale,r=e.x,n=e.y,i=this.originX,a=this.originY,o=i.getPixels("x"),s=a.getPixels("y");t.translate(o,s),t.scale(r,n||r),t.translate(-o,-s)}},{key:"unapply",value:function(t){var e=this.scale,r=e.x,n=e.y,i=this.originX,a=this.originY,o=i.getPixels("x"),s=a.getPixels("y");t.translate(o,s),t.scale(1/r,1/n||r),t.translate(-o,-s)}},{key:"applyToPoint",value:function(t){var e=this.scale,r=e.x,n=e.y;t.applyTransform([r||0,0,0,n||0,0,0])}}]),t}(),gt=function(){function t(e,r,n){Object(h.a)(this,t),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=j(r),this.originX=n[0],this.originY=n[1]}return Object(f.a)(t,[{key:"apply",value:function(t){var e=this.originX,r=this.originY,n=this.matrix,i=e.getPixels("x"),a=r.getPixels("y");t.translate(i,a),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),t.translate(-i,-a)}},{key:"unapply",value:function(t){var e=this.originX,r=this.originY,n=this.matrix,i=n[0],a=n[2],o=n[4],s=n[1],u=n[3],c=n[5],l=1/(i*(1*u-0*c)-a*(1*s-0*c)+o*(0*s-0*u)),h=e.getPixels("x"),f=r.getPixels("y");t.translate(h,f),t.transform(l*(1*u-0*c),l*(0*c-1*s),l*(0*o-1*a),l*(1*i-0*o),l*(a*c-o*u),l*(o*s-i*c)),t.translate(-h,-f)}},{key:"applyToPoint",value:function(t){t.applyTransform(this.matrix)}}]),t}(),vt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;return Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="skew",a.angle=null,a.angle=new et(t,"angle",n),a}return r}(gt),dt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;return Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="skewX",a.matrix=[1,0,Math.tan(a.angle.getRadians()),1,0,0],a}return r}(vt),yt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;return Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="skewY",a.matrix=[1,Math.tan(a.angle.getRadians()),0,1,0,0],a}return r}(vt);var mt=function(){function t(e,r,n){var i=this;Object(h.a)(this,t),this.document=e,this.transforms=[],function(t){return E(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(r).forEach((function(e){if("none"!==e){var r=function(t){var e=t.split("("),r=Object(p.a)(e,2),n=r[0],i=r[1];return[n.trim(),i.trim().replace(")","")]}(e),a=Object(p.a)(r,2),o=a[0],s=a[1],u=t.transformTypes[o];"undefined"!==typeof u&&i.transforms.push(new u(i.document,s,n))}}))}return Object(f.a)(t,[{key:"apply",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].apply(t)}},{key:"unapply",value:function(t){for(var e=this.transforms,r=e.length-1;r>=0;r--)e[r].unapply(t)}},{key:"applyToPoint",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].applyToPoint(t)}}],[{key:"fromElement",value:function(e,r){var n=r.getStyle("transform",!1,!0),i=r.getStyle("transform-origin",!1,!0).split(),a=Object(p.a)(i,2),o=a[0],s=a[1],u=[o,void 0===s?o:s];return n.hasValue()?new t(e,n.getString(),u):null}}]),t}();mt.transformTypes={translate:ht,rotate:ft,scale:pt,matrix:gt,skewX:dt,skewY:yt};var bt=function(){function t(e,r){var n=this;Object(h.a)(this,t);var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=e,this.node=r,this.captureTextNodes=i,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){if(Array.from(r.attributes).forEach((function(t){var r=N(t.nodeName);n.attributes[r]=new et(e,r,t.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var a=this.getAttribute("style").getString().split(";").map((function(t){return t.trim()}));a.forEach((function(t){if(t){var r=t.split(":").map((function(t){return t.trim()})),i=Object(p.a)(r,2),a=i[0],o=i[1];n.styles[a]=new et(e,a,o)}}))}var o=e.definitions,s=this.getAttribute("id");s.hasValue()&&(o[s.getString()]||(o[s.getString()]=this)),Array.from(r.childNodes).forEach((function(t){if(1===t.nodeType)n.addChild(t);else if(i&&(3===t.nodeType||4===t.nodeType)){var r=e.createTextNode(t);r.getText().length>0&&n.addChild(r)}}))}}return Object(f.a)(t,[{key:"getAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.attributes[t];if(!r&&e){var n=new et(this.document,t,"");return this.attributes[t]=n,n}return r||et.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var t in this.attributes)if("href"===t||t.endsWith(":href"))return this.attributes[t];return et.empty(this.document)}},{key:"getStyle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.styles[t];if(n)return n;var i=this.getAttribute(t);if(null!==i&&void 0!==i&&i.hasValue())return this.styles[t]=i,i;if(!r){var a=this.parent;if(a){var o=a.getStyle(t);if(null!==o&&void 0!==o&&o.hasValue())return o}}if(e){var s=new et(this.document,t,"");return this.styles[t]=s,s}return n||et.empty(this.document)}},{key:"render",value:function(t){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if("none"!==this.getStyle("filter").getValue("none")){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}},{key:"setContext",value:function(t){}},{key:"applyEffects",value:function(t){var e=mt.fromElement(this.document,this);e&&e.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var n=r.getDefinition();n&&n.apply(t)}}},{key:"clearContext",value:function(t){}},{key:"renderChildren",value:function(t){this.children.forEach((function(e){e.render(t)}))}},{key:"addChild",value:function(e){var r=e instanceof t?e:this.document.createElement(e);r.parent=this,t.ignoreChildTypes.includes(r.type)||this.children.push(r)}},{key:"matchesSelector",value:function(t){var e=this.node;if("function"===typeof e.matches)return e.matches(t);var r=e.getAttribute("class");return!(!r||""===r)&&r.split(" ").some((function(e){return".".concat(e)===t}))}},{key:"addStylesFromStyleDefinition",value:function(){var t=this.document,e=t.styles,r=t.stylesSpecificity;for(var n in e)if(!n.startsWith("@")&&this.matchesSelector(n)){var i=e[n],a=r[n];if(i)for(var o in i){var s=this.stylesSpecificity[o];"undefined"===typeof s&&(s="000"),a>=s&&(this.styles[o]=i[o],this.stylesSpecificity[o]=a)}}}},{key:"removeStyles",value:function(t,e){return e.reduce((function(e,r){var n=t.getStyle(r);if(!n.hasValue())return e;var i=n.getString();return n.setValue(""),[].concat(Object(u.a)(e),[[r,i]])}),[])}},{key:"restoreStyles",value:function(t,e){e.forEach((function(e){var r=Object(p.a)(e,2),n=r[0],i=r[1];t.getStyle(n,!0).setValue(i)}))}}]),t}();bt.ignoreChildTypes=["title"];var xt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){return Object(h.a)(this,r),e.call(this,t,n,i)}return r}(bt);function Ot(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function St(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function wt(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}var kt=function(){function e(t,r,n,i,a,o){Object(h.a)(this,e);var s=o?"string"===typeof o?e.parse(o):o:{};this.fontFamily=a||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=t||s.fontStyle,this.fontWeight=n||s.fontWeight,this.fontVariant=r||s.fontVariant}return Object(f.a)(e,[{key:"toString",value:function(){return[St(this.fontStyle),this.fontVariant,wt(this.fontWeight),this.fontSize,(e=this.fontFamily,"undefined"===typeof t?e:e.trim().split(",").map(Ot).join(","))].join(" ").trim();var e}}],[{key:"parse",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,n="",i="",a="",o="",s="",u=E(t).trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return u.forEach((function(t){switch(!0){case!c.fontStyle&&e.styles.includes(t):"inherit"!==t&&(n=t),c.fontStyle=!0;break;case!c.fontVariant&&e.variants.includes(t):"inherit"!==t&&(i=t),c.fontStyle=!0,c.fontVariant=!0;break;case!c.fontWeight&&e.weights.includes(t):"inherit"!==t&&(a=t),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:if("inherit"!==t){var r=t.split("/"),u=Object(p.a)(r,1);o=u[0]}c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:"inherit"!==t&&(s+=t)}})),new e(n,i,a,o,s,r)}}]),e}();kt.styles="normal|italic|oblique|inherit",kt.variants="normal|small-caps|inherit",kt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var Tt=function(){function t(){Object(h.a)(this,t);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=e,this.y1=r,this.x2=n,this.y2=i,this.addPoint(e,r),this.addPoint(n,i)}return Object(f.a)(t,[{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(t,e){"undefined"!==typeof t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),"undefined"!==typeof e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}},{key:"addX",value:function(t){this.addPoint(t,null)}},{key:"addY",value:function(t){this.addPoint(null,t)}},{key:"addBoundingBox",value:function(t){if(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;this.addPoint(e,r),this.addPoint(n,i)}}},{key:"sumCubic",value:function(t,e,r,n,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*n+Math.pow(t,3)*i}},{key:"bezierCurveAdd",value:function(t,e,r,n,i){var a=6*e-12*r+6*n,o=-3*e+9*r-9*n+3*i,s=3*r-3*e;if(0!==o){var u=Math.pow(a,2)-4*s*o;if(!(u<0)){var c=(-a+Math.sqrt(u))/(2*o);0<c&&c<1&&(t?this.addX(this.sumCubic(c,e,r,n,i)):this.addY(this.sumCubic(c,e,r,n,i)));var l=(-a-Math.sqrt(u))/(2*o);0<l&&l<1&&(t?this.addX(this.sumCubic(l,e,r,n,i)):this.addY(this.sumCubic(l,e,r,n,i)))}}else{if(0===a)return;var h=-s/a;0<h&&h<1&&(t?this.addX(this.sumCubic(h,e,r,n,i)):this.addY(this.sumCubic(h,e,r,n,i)))}}},{key:"addBezierCurve",value:function(t,e,r,n,i,a,o,s){this.addPoint(t,e),this.addPoint(o,s),this.bezierCurveAdd(!0,t,r,i,o),this.bezierCurveAdd(!1,e,n,a,s)}},{key:"addQuadraticCurve",value:function(t,e,r,n,i,a){var o=t+2/3*(r-t),s=e+2/3*(n-e),u=o+1/3*(i-t),c=s+1/3*(a-e);this.addBezierCurve(t,e,o,u,s,c,i,a)}},{key:"isPointInBox",value:function(t,e){var r=this.x1,n=this.y1,i=this.x2,a=this.y2;return r<=t&&t<=i&&n<=e&&e<=a}}]),t}(),At=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t){var n;return Object(h.a)(this,r),(n=e.call(this,t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,n.start=null,n.current=null,n.command=null,n.commands=n.commands,n.i=-1,n.previousCommand=null,n.points=[],n.angles=[],n}return Object(f.a)(r,[{key:"reset",value:function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new nt(0,0),this.control=new nt(0,0),this.current=new nt(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){return this.i>=this.commands.length-1}},{key:"next",value:function(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}},{key:"getPoint",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",r=new nt(this.command[t],this.command[e]);return this.makeAbsolute(r)}},{key:"getAsControlPoint",value:function(t,e){var r=this.getPoint(t,e);return this.control=r,r}},{key:"getAsCurrentPoint",value:function(t,e){var r=this.getPoint(t,e);return this.current=r,r}},{key:"getReflectedControlPoint",value:function(){var t=this.previousCommand.type;if(t!==k.a.CURVE_TO&&t!==k.a.SMOOTH_CURVE_TO&&t!==k.a.QUAD_TO&&t!==k.a.SMOOTH_QUAD_TO)return this.current;var e=this.current,r=e.x,n=e.y,i=this.control,a=i.x,o=i.y;return new nt(2*r-a,2*n-o)}},{key:"makeAbsolute",value:function(t){if(this.command.relative){var e=this.current,r=e.x,n=e.y;t.x+=r,t.y+=n}return t}},{key:"addMarker",value:function(t,e,r){var n=this.points,i=this.angles;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}},{key:"addMarkerAngle",value:function(t,e){this.points.push(t),this.angles.push(e)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var t=this.angles,e=t.length,r=0;r<e;r++)if(!t[r])for(var n=r+1;n<e;n++)if(t[n]){t[r]=t[n];break}return t}}]),r}(k.a),Et=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).modifiedEmSizeStack=!1,t}return Object(f.a)(r,[{key:"calculateOpacity",value:function(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}},{key:"setContext",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var o=r.getFillStyleDefinition(this,n);o&&(t.fillStyle=o)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var s=r.getColor();"inherit"!==s&&(t.fillStyle="none"===s?"rgba(0,0,0,0)":s)}if(n.hasValue()){var u=new et(this.document,"fill",t.fillStyle).addOpacity(n).getColor();t.fillStyle=u}if(i.isUrlDefinition()){var c=i.getFillStyleDefinition(this,a);c&&(t.strokeStyle=c)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var l=i.getString();"inherit"!==l&&(t.strokeStyle="none"===l?"rgba(0,0,0,0)":l)}if(a.hasValue()){var h=new et(this.document,"stroke",t.strokeStyle).addOpacity(a).getString();t.strokeStyle=h}var f=this.getStyle("stroke-width");if(f.hasValue()){var p=f.getPixels();t.lineWidth=p||X}var g=this.getStyle("stroke-linecap"),v=this.getStyle("stroke-linejoin"),d=this.getStyle("stroke-miterlimit"),y=this.getStyle("stroke-dasharray"),m=this.getStyle("stroke-dashoffset");if(g.hasValue()&&(t.lineCap=g.getString()),v.hasValue()&&(t.lineJoin=v.getString()),d.hasValue()&&(t.miterLimit=d.getNumber()),y.hasValue()&&"none"!==y.getString()){var b=j(y.getString());"undefined"!==typeof t.setLineDash?t.setLineDash(b):"undefined"!==typeof t.webkitLineDash?t.webkitLineDash=b:"undefined"===typeof t.mozDash||1===b.length&&0===b[0]||(t.mozDash=b);var x=m.getPixels();"undefined"!==typeof t.lineDashOffset?t.lineDashOffset=x:"undefined"!==typeof t.webkitLineDashOffset?t.webkitLineDashOffset=x:"undefined"!==typeof t.mozDashOffset&&(t.mozDashOffset=x)}}if(this.modifiedEmSizeStack=!1,"undefined"!==typeof t.font){var O=this.getStyle("font"),S=this.getStyle("font-style"),w=this.getStyle("font-variant"),k=this.getStyle("font-weight"),T=this.getStyle("font-size"),A=this.getStyle("font-family"),E=new kt(S.getString(),w.getString(),k.getString(),T.hasValue()?"".concat(T.getPixels(!0),"px"):"",A.getString(),kt.parse(O.getString(),t.font));S.setValue(E.fontStyle),w.setValue(E.fontVariant),k.setValue(E.fontWeight),T.setValue(E.fontSize),A.setValue(E.fontFamily),t.font=E.toString(),T.isPixels()&&(this.document.emSize=T.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){Object(o.a)(Object(s.a)(r.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),r}(bt),Pt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;return Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="path",a.pathParser=null,a.pathParser=new At(a.getAttribute("d").getString()),a}return Object(f.a)(r,[{key:"path",value:function(t){var e=this.pathParser,r=new Tt;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case At.MOVE_TO:this.pathM(t,r);break;case At.LINE_TO:this.pathL(t,r);break;case At.HORIZ_LINE_TO:this.pathH(t,r);break;case At.VERT_LINE_TO:this.pathV(t,r);break;case At.CURVE_TO:this.pathC(t,r);break;case At.SMOOTH_CURVE_TO:this.pathS(t,r);break;case At.QUAD_TO:this.pathQ(t,r);break;case At.SMOOTH_QUAD_TO:this.pathT(t,r);break;case At.ARC:this.pathA(t,r);break;case At.CLOSE_PATH:this.pathZ(t,r)}return r}},{key:"getBoundingBox",value:function(t){return this.path()}},{key:"getMarkers",value:function(){var t=this.pathParser,e=t.getMarkerPoints(),r=t.getMarkerAngles();return e.map((function(t,e){return[t,r[e]]}))}},{key:"renderChildren",value:function(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var n=r.length-1,i=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),o=this.getStyle("marker-end");if(i.isUrlDefinition()){var s=i.getDefinition(),u=Object(p.a)(r[0],2),c=u[0],l=u[1];s.render(t,c,l)}if(a.isUrlDefinition())for(var h=a.getDefinition(),f=1;f<n;f++){var g=Object(p.a)(r[f],2),v=g[0],d=g[1];h.render(t,v,d)}if(o.isUrlDefinition()){var y=o.getDefinition(),m=Object(p.a)(r[n],2),b=m[0],x=m[1];y.render(t,b,x)}}}},{key:"pathM",value:function(t,e){var n=this.pathParser,i=r.pathM(n).point,a=i.x,o=i.y;n.addMarker(i),e.addPoint(a,o),t&&t.moveTo(a,o)}},{key:"pathL",value:function(t,e){var n=this.pathParser,i=r.pathL(n),a=i.current,o=i.point,s=o.x,u=o.y;n.addMarker(o,a),e.addPoint(s,u),t&&t.lineTo(s,u)}},{key:"pathH",value:function(t,e){var n=this.pathParser,i=r.pathH(n),a=i.current,o=i.point,s=o.x,u=o.y;n.addMarker(o,a),e.addPoint(s,u),t&&t.lineTo(s,u)}},{key:"pathV",value:function(t,e){var n=this.pathParser,i=r.pathV(n),a=i.current,o=i.point,s=o.x,u=o.y;n.addMarker(o,a),e.addPoint(s,u),t&&t.lineTo(s,u)}},{key:"pathC",value:function(t,e){var n=this.pathParser,i=r.pathC(n),a=i.current,o=i.point,s=i.controlPoint,u=i.currentPoint;n.addMarker(u,s,o),e.addBezierCurve(a.x,a.y,o.x,o.y,s.x,s.y,u.x,u.y),t&&t.bezierCurveTo(o.x,o.y,s.x,s.y,u.x,u.y)}},{key:"pathS",value:function(t,e){var n=this.pathParser,i=r.pathS(n),a=i.current,o=i.point,s=i.controlPoint,u=i.currentPoint;n.addMarker(u,s,o),e.addBezierCurve(a.x,a.y,o.x,o.y,s.x,s.y,u.x,u.y),t&&t.bezierCurveTo(o.x,o.y,s.x,s.y,u.x,u.y)}},{key:"pathQ",value:function(t,e){var n=this.pathParser,i=r.pathQ(n),a=i.current,o=i.controlPoint,s=i.currentPoint;n.addMarker(s,o,o),e.addQuadraticCurve(a.x,a.y,o.x,o.y,s.x,s.y),t&&t.quadraticCurveTo(o.x,o.y,s.x,s.y)}},{key:"pathT",value:function(t,e){var n=this.pathParser,i=r.pathT(n),a=i.current,o=i.controlPoint,s=i.currentPoint;n.addMarker(s,o,o),e.addQuadraticCurve(a.x,a.y,o.x,o.y,s.x,s.y),t&&t.quadraticCurveTo(o.x,o.y,s.x,s.y)}},{key:"pathA",value:function(t,e){var n=this.pathParser,i=r.pathA(n),a=i.currentPoint,o=i.rX,s=i.rY,u=i.sweepFlag,c=i.xAxisRotation,l=i.centp,h=i.a1,f=i.ad,p=1-u?1:-1,g=h+p*(f/2),v=new nt(l.x+o*Math.cos(g),l.y+s*Math.sin(g));if(n.addMarkerAngle(v,g-p*Math.PI/2),n.addMarkerAngle(a,g-p*Math.PI),e.addPoint(a.x,a.y),t&&!isNaN(h)&&!isNaN(f)){var d=o>s?o:s,y=o>s?1:o/s,m=o>s?s/o:1;t.translate(l.x,l.y),t.rotate(c),t.scale(y,m),t.arc(0,0,d,h,h+f,Boolean(1-u)),t.scale(1/y,1/m),t.rotate(-c),t.translate(-l.x,-l.y)}}},{key:"pathZ",value:function(t,e){r.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}],[{key:"pathM",value:function(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}},{key:"pathL",value:function(t){return{current:t.current,point:t.getAsCurrentPoint()}}},{key:"pathH",value:function(t){var e=t.current,r=t.command,n=new nt((r.relative?e.x:0)+r.x,e.y);return t.current=n,{current:e,point:n}}},{key:"pathV",value:function(t){var e=t.current,r=t.command,n=new nt(e.x,(r.relative?e.y:0)+r.y);return t.current=n,{current:e,point:n}}},{key:"pathC",value:function(t){return{current:t.current,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathS",value:function(t){return{current:t.current,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathQ",value:function(t){return{current:t.current,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathT",value:function(t){var e=t.current,r=t.getReflectedControlPoint();return t.control=r,{current:e,controlPoint:r,currentPoint:t.getAsCurrentPoint()}}},{key:"pathA",value:function(t){var e=t.current,r=t.command,n=r.rX,i=r.rY,a=r.xRot,o=r.lArcFlag,s=r.sweepFlag,u=a*(Math.PI/180),c=t.getAsCurrentPoint(),l=new nt(Math.cos(u)*(e.x-c.x)/2+Math.sin(u)*(e.y-c.y)/2,-Math.sin(u)*(e.x-c.x)/2+Math.cos(u)*(e.y-c.y)/2),h=Math.pow(l.x,2)/Math.pow(n,2)+Math.pow(l.y,2)/Math.pow(i,2);h>1&&(n*=Math.sqrt(h),i*=Math.sqrt(h));var f=(o===s?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(l.y,2)-Math.pow(i,2)*Math.pow(l.x,2))/(Math.pow(n,2)*Math.pow(l.y,2)+Math.pow(i,2)*Math.pow(l.x,2)));isNaN(f)&&(f=0);var p=new nt(f*n*l.y/i,f*-i*l.x/n),g=new nt((e.x+c.x)/2+Math.cos(u)*p.x-Math.sin(u)*p.y,(e.y+c.y)/2+Math.sin(u)*p.x+Math.cos(u)*p.y),v=W([1,0],[(l.x-p.x)/n,(l.y-p.y)/i]),d=[(l.x-p.x)/n,(l.y-p.y)/i],y=[(-l.x-p.x)/n,(-l.y-p.y)/i],m=W(d,y);return q(d,y)<=-1&&(m=Math.PI),q(d,y)>=1&&(m=0),{currentPoint:c,rX:n,rY:i,sweepFlag:s,xAxisRotation:u,centp:g,a1:v,ad:m}}},{key:"pathZ",value:function(t){t.current=t.start}}]),r}(Et),Ct=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;return Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="glyph",a.horizAdvX=a.getAttribute("horiz-adv-x").getNumber(),a.unicode=a.getAttribute("unicode").getString(),a.arabicForm=a.getAttribute("arabic-form").getString(),a}return r}(Pt),jt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;return Object(h.a)(this,r),(a=e.call(this,t,n,(this instanceof r?this.constructor:void 0)===r||i)).type="text",a.x=0,a.y=0,a.measureCache=-1,a}return Object(f.a)(r,[{key:"setContext",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object(o.a)(Object(s.a)(r.prototype),"setContext",this).call(this,t,e);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(t.textBaseline=n)}},{key:"initializeCoordinates",value:function(t){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var e=this.getAttribute("dx"),r=this.getAttribute("dy");e.hasValue()&&(this.x+=e.getPixels("x")),r.hasValue()&&(this.y+=r.getPixels("y")),this.x+=this.getAnchorDelta(t,this,0)}},{key:"getBoundingBox",value:function(t){var e=this;if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(t);var r=null;return this.children.forEach((function(n,i){var a=e.getChildBoundingBox(t,e,e,i);r?r.addBoundingBox(a):r=a})),r}},{key:"getFontSize",value:function(){var t=this.document,e=this.parent,r=kt.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}},{key:"getTElementBoundingBox",value:function(t){var e=this.getFontSize();return new Tt(this.x,this.y-e,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,e,r){var n=e[r],i=null;if(t.isArabic){var a=e.length,o=e[r-1],s=e[r+1],u="isolated";if((0===r||" "===o)&&r<a-2&&" "!==s&&(u="terminal"),r>0&&" "!==o&&r<a-2&&" "!==s&&(u="medial"),r>0&&" "!==o&&(r===a-1||" "===s)&&(u="initial"),"undefined"!==typeof t.glyphs[n]){var c=t.glyphs[n];i=c instanceof Ct?c:c[u]}}else i=t.glyphs[n];return i||(i=t.missingGlyph),i}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),n=r.indexOf(e),i=r.length-1,a=E(e.textContent||"");return 0===n&&(a=P(a)),n===i&&(a=C(a)),a}},{key:"renderChildren",value:function(t){var e=this;if("text"===this.type){this.initializeCoordinates(t),this.children.forEach((function(r,n){e.renderChild(t,e,e,n)}));var r=this.document.screen.mouse;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}},{key:"renderTElementChildren",value:function(t){var e=this.document,r=this.parent,n=this.getText(),i=r.getStyle("font-family").getDefinition();if(i)for(var a=i.fontFace.unitsPerEm,o=kt.parse(e.ctx.font),s=r.getStyle("font-size").getNumber(o.fontSize),u=r.getStyle("font-style").getString(o.fontStyle),c=s/a,l=i.isRTL?n.split("").reverse().join(""):n,h=j(r.getAttribute("dx").getString()),f=l.length,p=0;p<f;p++){var g=this.getGlyph(i,l,p);t.translate(this.x,this.y),t.scale(c,-c);var v=t.lineWidth;t.lineWidth=t.lineWidth*a/s,"italic"===u&&t.transform(1,0,.4,1,0,0),g.render(t),"italic"===u&&t.transform(1,0,-.4,1,0,0),t.lineWidth=v,t.scale(1/c,-1/c),t.translate(-this.x,-this.y),this.x+=s*(g.horizAdvX||i.horizAdvX)/a,"undefined"===typeof h[p]||isNaN(h[p])||(this.x+=h[p])}else{var d=this.x,y=this.y;t.fillStyle&&t.fillText(n,d,y),t.strokeStyle&&t.strokeText(n,d,y)}}},{key:"getAnchorDelta",value:function(t,e,r){var n=this.getStyle("text-anchor").getString("start");if("start"!==n){for(var i=e.children,a=i.length,o=null,s=0,u=r;u<a&&(o=i[u],!(u>r&&o.getAttribute("x").hasValue()||o.getAttribute("text-anchor").hasValue()));u++)s+=o.measureTextRecursive(t);return-1*("end"===n?s:s/2)}return 0}},{key:"adjustChildCoordinates",value:function(t,e,r,n){var i=r.children[n];if("function"!==typeof i.measureText)return i;t.save(),i.setContext(t,!0);var a=i.getAttribute("x"),o=i.getAttribute("y"),s=i.getAttribute("dx"),u=i.getAttribute("dy"),c=i.getAttribute("text-anchor").getString("start");if(0===n&&"textNode"!==i.type&&(a.hasValue()||a.setValue(e.getAttribute("x").getValue("0")),o.hasValue()||o.setValue(e.getAttribute("y").getValue("0")),s.hasValue()||s.setValue(e.getAttribute("dx").getValue("0")),u.hasValue()||u.setValue(e.getAttribute("dy").getValue("0"))),a.hasValue()){if(i.x=a.getPixels("x")+e.getAnchorDelta(t,r,n),"start"!==c){var l=i.measureTextRecursive(t);i.x+=-1*("end"===c?l:l/2)}s.hasValue()&&(i.x+=s.getPixels("x"))}else{if("start"!==c){var h=i.measureTextRecursive(t);e.x+=-1*("end"===c?h:h/2)}s.hasValue()&&(e.x+=s.getPixels("x")),i.x=e.x}return e.x=i.x+i.measureText(t),o.hasValue()?(i.y=o.getPixels("y"),u.hasValue()&&(i.y+=u.getPixels("y"))):(u.hasValue()&&(e.y+=u.getPixels("y")),i.y=e.y),e.y=i.y,i.clearContext(t),t.restore(),i}},{key:"getChildBoundingBox",value:function(t,e,r,n){var i=this.adjustChildCoordinates(t,e,r,n);if("function"!==typeof i.getBoundingBox)return null;var a=i.getBoundingBox(t);return a?(i.children.forEach((function(r,n){var o=e.getChildBoundingBox(t,e,i,n);a.addBoundingBox(o)})),a):null}},{key:"renderChild",value:function(t,e,r,n){var i=this.adjustChildCoordinates(t,e,r,n);i.render(t),i.children.forEach((function(r,n){e.renderChild(t,e,i,n)}))}},{key:"measureTextRecursive",value:function(t){return this.children.reduce((function(e,r){return e+r.measureTextRecursive(t)}),this.measureText(t))}},{key:"measureText",value:function(t){var e=this.measureCache;if(~e)return e;var r=this.getText(),n=this.measureTargetText(t,r);return this.measureCache=n,n}},{key:"measureTargetText",value:function(t,e){if(!e.length)return 0;var r=this.parent,n=r.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),a=n.isRTL?e.split("").reverse().join(""):e,o=j(r.getAttribute("dx").getString()),s=a.length,u=0,c=0;c<s;c++){u+=(this.getGlyph(n,a,c).horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,"undefined"===typeof o[c]||isNaN(o[c])||(u+=o[c])}return u}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);var l=t.measureText(e).width;return this.clearContext(t),t.restore(),l}}]),r}(Et),Mt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;return Object(h.a)(this,r),(a=e.call(this,t,n,(this instanceof r?this.constructor:void 0)===r||i)).type="tspan",a.text=a.children.length>0?"":a.getTextFromNode(),a}return Object(f.a)(r,[{key:"getText",value:function(){return this.text}}]),r}(jt),Nt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="textNode",t}return r}(Mt),_t=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="svg",t.root=!1,t}return Object(f.a)(r,[{key:"setContext",value:function(t){var e,n=this.document,i=n.screen,a=n.window,u=t.canvas;if(i.setDefaults(t),u.style&&"undefined"!==typeof t.font&&a&&"undefined"!==typeof a.getComputedStyle){t.font=a.getComputedStyle(u).getPropertyValue("font");var c=new et(n,"fontSize",kt.parse(t.font).fontSize);c.hasValue()&&(n.rootEmSize=c.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 l=i.viewPort,h=l.width,f=l.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 p=this.getAttribute("refX"),g=this.getAttribute("refY"),v=this.getAttribute("viewBox"),d=v.hasValue()?j(v.getString()):null,y=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),m=0,b=0,x=0,O=0;d&&(m=d[0],b=d[1]),this.root||(h=this.getStyle("width").getPixels("x"),f=this.getStyle("height").getPixels("y"),"marker"===this.type&&(x=m,O=b,m=0,b=0)),i.viewPort.setCurrent(h,f),!this.node||this.parent&&"foreignObject"!==(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),Object(o.a)(Object(s.a)(r.prototype),"setContext",this).call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),d&&(h=d[2],f=d[3]),n.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:h,height:i.viewPort.height,desiredHeight:f,minX:m,minY:b,refX:p.getValue(),refY:g.getValue(),clip:y,clipX:x,clipY:O}),d&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(h,f))}},{key:"clearContext",value:function(t){Object(o.a)(Object(s.a)(r.prototype),"clearContext",this).call(this,t),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),o=this.getAttribute("style"),s=n.getNumber(0),u=i.getNumber(0);if(r)if("string"===typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var c=this.getAttribute("preserveAspectRatio");c.hasValue()&&c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(t),i.setValue(e),a.hasValue()||a.setValue("0 0 ".concat(s||t," ").concat(u||e)),o.hasValue()){var l=this.getStyle("width"),h=this.getStyle("height");l.hasValue()&&l.setValue("".concat(t,"px")),h.hasValue()&&h.setValue("".concat(e,"px"))}}}]),r}(Et),Vt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="rect",t}return Object(f.a)(r,[{key:"path",value:function(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),a=this.getAttribute("rx"),o=this.getAttribute("ry"),s=a.getPixels("x"),u=o.getPixels("y");if(a.hasValue()&&!o.hasValue()&&(u=s),o.hasValue()&&!a.hasValue()&&(s=u),s=Math.min(s,n/2),u=Math.min(u,i/2),t){var c=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&n>0&&(t.moveTo(e+s,r),t.lineTo(e+n-s,r),t.bezierCurveTo(e+n-s+c*s,r,e+n,r+u-c*u,e+n,r+u),t.lineTo(e+n,r+i-u),t.bezierCurveTo(e+n,r+i-u+c*u,e+n-s+c*s,r+i,e+n-s,r+i),t.lineTo(e+s,r+i),t.bezierCurveTo(e+s-c*s,r+i,e,r+i-u+c*u,e,r+i-u),t.lineTo(e,r+u),t.bezierCurveTo(e,r+u-c*u,e+s-c*s,r,e+s,r),t.closePath())}return new Tt(e,r,e+n,r+i)}},{key:"getMarkers",value:function(){return null}}]),r}(Pt),Rt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="circle",t}return Object(f.a)(r,[{key:"path",value:function(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return t&&n>0&&(t.beginPath(),t.arc(e,r,n,0,2*Math.PI,!1),t.closePath()),new Tt(e-n,r-n,e+n,r+n)}},{key:"getMarkers",value:function(){return null}}]),r}(Pt),It=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="ellipse",t}return Object(f.a)(r,[{key:"path",value:function(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return t&&r>0&&n>0&&(t.beginPath(),t.moveTo(i+r,a),t.bezierCurveTo(i+r,a+e*n,i+e*r,a+n,i,a+n),t.bezierCurveTo(i-e*r,a+n,i-r,a+e*n,i-r,a),t.bezierCurveTo(i-r,a-e*n,i-e*r,a-n,i,a-n),t.bezierCurveTo(i+e*r,a-n,i+r,a-e*n,i+r,a),t.closePath()),new Tt(i-r,a-n,i+r,a+n)}},{key:"getMarkers",value:function(){return null}}]),r}(Pt),Lt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="line",t}return Object(f.a)(r,[{key:"getPoints",value:function(){return[new nt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new nt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var e=this.getPoints(),r=Object(p.a)(e,2),n=r[0],i=n.x,a=n.y,o=r[1],s=o.x,u=o.y;return t&&(t.beginPath(),t.moveTo(i,a),t.lineTo(s,u)),new Tt(i,a,s,u)}},{key:"getMarkers",value:function(){var t=this.getPoints(),e=Object(p.a)(t,2),r=e[0],n=e[1],i=r.angleTo(n);return[[r,i],[n,i]]}}]),r}(Pt),Dt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;return Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="polyline",a.points=[],a.points=nt.parsePath(a.getAttribute("points").getString()),a}return Object(f.a)(r,[{key:"path",value:function(t){var e=this.points,r=Object(p.a)(e,1)[0],n=r.x,i=r.y,a=new Tt(n,i);return t&&(t.beginPath(),t.moveTo(n,i)),e.forEach((function(e){var r=e.x,n=e.y;a.addPoint(r,n),t&&t.lineTo(r,n)})),a}},{key:"getMarkers",value:function(){var t=this.points,e=t.length-1,r=[];return t.forEach((function(n,i){i!==e&&r.push([n,n.angleTo(t[i+1])])})),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}]),r}(Pt),Bt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="polygon",t}return Object(f.a)(r,[{key:"path",value:function(t){var e=Object(o.a)(Object(s.a)(r.prototype),"path",this).call(this,t),n=Object(p.a)(this.points,1)[0],i=n.x,a=n.y;return t&&(t.lineTo(i,a),t.closePath()),e}}]),r}(Dt),zt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="pattern",t}return Object(f.a)(r,[{key:"createPattern",value:function(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),a=new _t(this.document,null);a.attributes.viewBox=new et(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new et(this.document,"width","".concat(n,"px")),a.attributes.height=new et(this.document,"height","".concat(i,"px")),a.attributes.transform=new et(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var o=this.document.createCanvas(n,i),s=o.getContext("2d"),u=this.getAttribute("x"),c=this.getAttribute("y");u.hasValue()&&c.hasValue()&&s.translate(u.getPixels("x",!0),c.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var l=-1;l<=1;l++)for(var h=-1;h<=1;h++)s.save(),a.attributes.x=new et(this.document,"x",l*o.width),a.attributes.y=new et(this.document,"y",h*o.height),a.render(s),s.restore();return t.createPattern(o,"repeat")}}]),r}(bt),Ut=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="marker",t}return Object(f.a)(r,[{key:"render",value:function(t,e,r){if(e){var n=e.x,i=e.y,a=this.getAttribute("orient").getString("auto"),o=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(n,i),"auto"===a&&t.rotate(r),"strokeWidth"===o&&t.scale(t.lineWidth,t.lineWidth),t.save();var s=new _t(this.document,null);s.type=this.type,s.attributes.viewBox=new et(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.refX=new et(this.document,"refX",this.getAttribute("refX").getValue()),s.attributes.refY=new et(this.document,"refY",this.getAttribute("refY").getValue()),s.attributes.width=new et(this.document,"width",this.getAttribute("markerWidth").getValue()),s.attributes.height=new et(this.document,"height",this.getAttribute("markerHeight").getValue()),s.attributes.overflow=new et(this.document,"overflow",this.getAttribute("overflow").getValue()),s.attributes.fill=new et(this.document,"fill",this.getAttribute("fill").getColor("black")),s.attributes.stroke=new et(this.document,"stroke",this.getAttribute("stroke").getValue("none")),s.children=this.children,s.render(t),t.restore(),"strokeWidth"===o&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===a&&t.rotate(-r),t.translate(-n,-i)}}}]),r}(bt),Ft=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="defs",t}return Object(f.a)(r,[{key:"render",value:function(){}}]),r}(bt),Ht=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="g",t}return Object(f.a)(r,[{key:"getBoundingBox",value:function(t){var e=new Tt;return this.children.forEach((function(r){e.addBoundingBox(r.getBoundingBox(t))})),e}}]),r}(Et),Xt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var o;Object(h.a)(this,r),(o=e.call(this,t,n,i)).attributesToInherit=["gradientUnits"],o.stops=[];var s=Object(a.a)(o),u=s.stops;return s.children.forEach((function(t){"stop"===t.type&&u.push(t)})),o}return Object(f.a)(r,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(t,e,r){var n=this,i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var a=i.stops,o=this.getGradient(t,e);if(!o)return this.addParentOpacity(r,a[a.length-1].color);if(a.forEach((function(t){o.addColorStop(t.offset,n.addParentOpacity(r,t.color))})),this.getAttribute("gradientTransform").hasValue()){var s=this.document,u=s.screen,c=u.MAX_VIRTUAL_PIXELS,l=u.viewPort,h=Object(p.a)(l.viewPorts,1)[0],f=new Vt(s,null);f.attributes.x=new et(s,"x",-c/3),f.attributes.y=new et(s,"y",-c/3),f.attributes.width=new et(s,"width",c),f.attributes.height=new et(s,"height",c);var g=new Ht(s,null);g.attributes.transform=new et(s,"transform",this.getAttribute("gradientTransform").getValue()),g.children=[f];var v=new _t(s,null);v.attributes.x=new et(s,"x",0),v.attributes.y=new et(s,"y",0),v.attributes.width=new et(s,"width",h.width),v.attributes.height=new et(s,"height",h.height),v.children=[g];var d=s.createCanvas(h.width,h.height),y=d.getContext("2d");return y.fillStyle=o,v.render(y),y.createPattern(d,"no-repeat")}return o}},{key:"inheritStopContainer",value:function(t){var e=this;this.attributesToInherit.forEach((function(r){!e.getAttribute(r).hasValue()&&t.getAttribute(r).hasValue()&&e.getAttribute(r,!0).setValue(t.getAttribute(r).getValue())}))}},{key:"addParentOpacity",value:function(t,e){return t.hasValue()?new et(this.document,"color",e).addOpacity(t).getColor():e}}]),r}(bt),Yt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;return Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="linearGradient",a.attributesToInherit.push("x1","y1","x2","y2"),a}return Object(f.a)(r,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=r?e.getBoundingBox(t):null;if(r&&!n)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),o=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),s=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===o&&a===s?null:t.createLinearGradient(i,a,o,s)}}]),r}(Xt),qt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;return Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="radialGradient",a.attributesToInherit.push("cx","cy","r","fx","fy","fr"),a}return Object(f.a)(r,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=e.getBoundingBox(t);if(r&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),o=i,s=a;this.getAttribute("fx").hasValue()&&(o=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(s=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var u=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),c=this.getAttribute("fr").getPixels();return t.createRadialGradient(o,s,c,i,a,u)}}]),r}(Xt),Wt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="stop";var o=Math.max(0,Math.min(1,a.getAttribute("offset").getNumber())),s=a.getStyle("stop-opacity"),u=a.getStyle("stop-color",!0);return""===u.getString()&&u.setValue("#000"),s.hasValue()&&(u=u.addOpacity(s)),a.offset=o,a.color=u.getColor(),a}return r}(bt),Gt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var o;Object(h.a)(this,r),(o=e.call(this,t,n,i)).type="animate",o.duration=0,o.initialValue=null,o.initialUnits="",o.removed=!1,o.frozen=!1,t.screen.animations.push(Object(a.a)(o)),o.begin=o.getAttribute("begin").getMilliseconds(),o.maxDuration=o.begin+o.getAttribute("dur").getMilliseconds(),o.from=o.getAttribute("from"),o.to=o.getAttribute("to"),o.values=new et(t,"values",null);var s=o.getAttribute("values");return s.hasValue()&&o.values.setValue(s.getString().split(";")),o}return Object(f.a)(r,[{key:"getProperty",value:function(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}},{key:"calcValue",value:function(){var t=this.initialUnits,e=this.getProgress(),r=e.progress,n=e.from,i=e.to,a=n.getNumber()+(i.getNumber()-n.getNumber())*r;return"%"===t&&(a*=100),"".concat(a).concat(t)}},{key:"update",value:function(t){var e=this.parent,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==n||this.frozen){if("remove"===n&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var i=!1;if(this.begin<this.duration){var a=this.calcValue(),o=this.getAttribute("type");if(o.hasValue()){var s=o.getString();a="".concat(s,"(").concat(a,")")}r.setValue(a),i=!0}return i}},{key:"getProgress",value:function(){var t=this.document,e=this.values,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var n=r.progress*(e.getValue().length-1),i=Math.floor(n),a=Math.ceil(n);r.from=new et(t,"from",parseFloat(e.getValue()[i])),r.to=new et(t,"to",parseFloat(e.getValue()[a])),r.progress=(n-i)/(a-i)}else r.from=this.from,r.to=this.to;return r}}]),r}(bt),Qt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="animateColor",t}return Object(f.a)(r,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=new w.a(r.getColor()),a=new w.a(n.getColor());if(i.ok&&a.ok){var o=i.r+(a.r-i.r)*e,s=i.g+(a.g-i.g)*e,u=i.b+(a.b-i.b)*e;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(s),", ").concat(Math.floor(u),")")}return this.getAttribute("from").getColor()}}]),r}(Gt),$t=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="animateTransform",t}return Object(f.a)(r,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=j(r.getString()),a=j(n.getString());return i.map((function(t,r){return t+(a[r]-t)*e})).join(" ")}}]),r}(Gt),Zt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,o){var s;Object(h.a)(this,r),(s=e.call(this,t,n,o)).type="font",s.glyphs={},s.horizAdvX=s.getAttribute("horiz-adv-x").getNumber();var u,c=t.definitions,l=Object(a.a)(s).children,f=Object(i.a)(l);try{for(f.s();!(u=f.n()).done;){var p=u.value;switch(p.type){case"font-face":s.fontFace=p;var g=p.getStyle("font-family");g.hasValue()&&(c[g.getString()]=Object(a.a)(s));break;case"missing-glyph":s.missingGlyph=p;break;case"glyph":var v=p;v.arabicForm?(s.isRTL=!0,s.isArabic=!0,"undefined"===typeof s.glyphs[v.unicode]&&(s.glyphs[v.unicode]={}),s.glyphs[v.unicode][v.arabicForm]=v):s.glyphs[v.unicode]=v}}}catch(d){f.e(d)}finally{f.f()}return s}return Object(f.a)(r,[{key:"render",value:function(){}}]),r}(bt),Kt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;return Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="font-face",a.ascent=a.getAttribute("ascent").getNumber(),a.descent=a.getAttribute("descent").getNumber(),a.unitsPerEm=a.getAttribute("units-per-em").getNumber(),a}return r}(bt),Jt=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="missing-glyph",t.horizAdvX=0,t}return r}(Pt),te=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="tref",t}return Object(f.a)(r,[{key:"getText",value:function(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}]),r}(jt),ee=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="a";var o=n.childNodes,s=o[0],u=o.length>0&&Array.from(o).every((function(t){return 3===t.nodeType}));return a.hasText=u,a.text=u?a.getTextFromNode(s):"",a}return Object(f.a)(r,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){if(this.hasText){Object(o.a)(Object(s.a)(r.prototype),"renderChildren",this).call(this,t);var e=this.document,n=this.x,i=this.y,a=e.screen.mouse,u=new et(e,"fontSize",kt.parse(e.ctx.font).fontSize);a.isWorking()&&a.checkBoundingBox(this,new Tt(n,i-u.getPixels("y"),n+this.measureText(t),i))}else if(this.children.length>0){var c=new Ht(this.document,null);c.children=this.children,c.parent=this,c.render(t)}}},{key:"onClick",value:function(){var t=this.document.window;t&&t.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){this.document.ctx.canvas.style.cursor="pointer"}}]),r}(jt);function re(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ne(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?re(Object(r),!0).forEach((function(e){b()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var ie=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="textPath",a.textWidth=0,a.textHeight=0,a.pathLength=-1,a.glyphInfo=null,a.letterSpacingCache=[],a.measuresCache=new Map([["",0]]);var o=a.getHrefAttribute().getDefinition();return a.text=a.getTextFromNode(),a.dataArray=a.parsePathData(o),a}return Object(f.a)(r,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(t){var e=this.dataArray;t&&t.beginPath(),e.forEach((function(e){var r=e.type,n=e.points;switch(r){case At.LINE_TO:t&&t.lineTo(n[0],n[1]);break;case At.MOVE_TO:t&&t.moveTo(n[0],n[1]);break;case At.CURVE_TO:t&&t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case At.QUAD_TO:t&&t.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case At.ARC:var i=Object(p.a)(n,8),a=i[0],o=i[1],s=i[2],u=i[3],c=i[4],l=i[5],h=i[6],f=i[7],g=s>u?s:u,v=s>u?1:s/u,d=s>u?u/s:1;t&&(t.translate(a,o),t.rotate(h),t.scale(v,d),t.arc(0,0,g,c,c+l,Boolean(1-f)),t.scale(1/v,1/d),t.rotate(-h),t.translate(-a,-o));break;case At.CLOSE_PATH:t&&t.closePath()}}))}},{key:"renderChildren",value:function(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),n=this.glyphInfo,i=t.fillStyle;"underline"===e&&t.beginPath(),n.forEach((function(n,i){var a=n.p0,o=n.p1,s=n.rotation,u=n.text;t.save(),t.translate(a.x,a.y),t.rotate(s),t.fillStyle&&t.fillText(u,0,0),t.strokeStyle&&t.strokeText(u,0,0),t.restore(),"underline"===e&&(0===i&&t.moveTo(a.x,a.y+r/8),t.lineTo(o.x,o.y+r/5))})),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=i,t.stroke(),t.closePath()),t.restore()}},{key:"getLetterSpacingAt",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}},{key:"findSegmentToFitChar",value:function(t,e,r,n,i,a,o,s,u){var c=a,l=this.measureText(t,s);" "===s&&"justify"===e&&r<n&&(l+=(n-r)/i),u>-1&&(c+=this.getLetterSpacingAt(u));var h=this.textHeight/20,f=this.getEquidistantPointOnPath(c,h,0),p=this.getEquidistantPointOnPath(c+l,h,0),g={p0:f,p1:p},v=f&&p?Math.atan2(p.y-f.y,p.x-f.x):0;if(o){var d=Math.cos(Math.PI/2+v)*o,y=Math.cos(-v)*o;g.p0=ne(ne({},f),{},{x:f.x+d,y:f.y+y}),g.p1=ne(ne({},p),{},{x:p.x+d,y:p.y+y})}return{offset:c+=l,segment:g,rotation:v}}},{key:"measureText",value:function(t,e){var r=this.measuresCache,n=e||this.getText();if(r.has(n))return r.get(n);var i=this.measureTargetText(t,n);return r.set(n,i),i}},{key:"setTextData",value:function(t){var e=this;if(!this.glyphInfo){var r=this.getText(),n=r.split(""),i=r.split(" ").length-1,a=this.parent.getAttribute("dx").split().map((function(t){return t.getPixels("x")})),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),c=this.parent.getStyle("letter-spacing"),l=0;u.hasValue()&&"inherit"!==u.getValue()?u.hasValue()&&"initial"!==u.getValue()&&"unset"!==u.getValue()&&(l=u.getPixels()):l=c.getPixels();var h=[],f=r.length;this.letterSpacingCache=h;for(var p=0;p<f;p++)h.push("undefined"!==typeof a[p]?a[p]:l);var g=h.reduce((function(t,e,r){return 0===r?0:t+e||0}),0),v=this.measureText(t),d=Math.max(v+g,0);this.textWidth=v,this.textHeight=this.getFontSize(),this.glyphInfo=[];var y=this.getPathLength(),m=this.getStyle("startOffset").getNumber(0)*y,b=0;"middle"!==s&&"center"!==s||(b=-d/2),"end"!==s&&"right"!==s||(b=-d),b+=m,n.forEach((function(r,a){var u=e.findSegmentToFitChar(t,s,d,y,i,b,o,r,a),c=u.offset,l=u.segment,h=u.rotation;b=c,l.p0&&l.p1&&e.glyphInfo.push({text:n[a],p0:l.p0,p1:l.p1,rotation:h})}))}}},{key:"parsePathData",value:function(t){if(this.pathLength=-1,!t)return[];var e=[],r=t.pathParser;for(r.reset();!r.isEnd();){var n=r.current,i=n?n.x:0,a=n?n.y:0,o=r.next(),s=o.type,u=[];switch(o.type){case At.MOVE_TO:this.pathM(r,u);break;case At.LINE_TO:s=this.pathL(r,u);break;case At.HORIZ_LINE_TO:s=this.pathH(r,u);break;case At.VERT_LINE_TO:s=this.pathV(r,u);break;case At.CURVE_TO:this.pathC(r,u);break;case At.SMOOTH_CURVE_TO:s=this.pathS(r,u);break;case At.QUAD_TO:this.pathQ(r,u);break;case At.SMOOTH_QUAD_TO:s=this.pathT(r,u);break;case At.ARC:u=this.pathA(r);break;case At.CLOSE_PATH:Pt.pathZ(r)}o.type!==At.CLOSE_PATH?e.push({type:s,points:u,start:{x:i,y:a},pathLength:this.calcLength(i,a,s,u)}):e.push({type:At.CLOSE_PATH,points:[],pathLength:0})}return e}},{key:"pathM",value:function(t,e){var r=Pt.pathM(t).point,n=r.x,i=r.y;e.push(n,i)}},{key:"pathL",value:function(t,e){var r=Pt.pathL(t).point,n=r.x,i=r.y;return e.push(n,i),At.LINE_TO}},{key:"pathH",value:function(t,e){var r=Pt.pathH(t).point,n=r.x,i=r.y;return e.push(n,i),At.LINE_TO}},{key:"pathV",value:function(t,e){var r=Pt.pathV(t).point,n=r.x,i=r.y;return e.push(n,i),At.LINE_TO}},{key:"pathC",value:function(t,e){var r=Pt.pathC(t),n=r.point,i=r.controlPoint,a=r.currentPoint;e.push(n.x,n.y,i.x,i.y,a.x,a.y)}},{key:"pathS",value:function(t,e){var r=Pt.pathS(t),n=r.point,i=r.controlPoint,a=r.currentPoint;return e.push(n.x,n.y,i.x,i.y,a.x,a.y),At.CURVE_TO}},{key:"pathQ",value:function(t,e){var r=Pt.pathQ(t),n=r.controlPoint,i=r.currentPoint;e.push(n.x,n.y,i.x,i.y)}},{key:"pathT",value:function(t,e){var r=Pt.pathT(t),n=r.controlPoint,i=r.currentPoint;return e.push(n.x,n.y,i.x,i.y),At.QUAD_TO}},{key:"pathA",value:function(t){var e=Pt.pathA(t),r=e.rX,n=e.rY,i=e.sweepFlag,a=e.xAxisRotation,o=e.centp,s=e.a1,u=e.ad;return 0===i&&u>0&&(u-=2*Math.PI),1===i&&u<0&&(u+=2*Math.PI),[o.x,o.y,r,n,s,u,a,i]}},{key:"calcLength",value:function(t,e,r,n){var i=0,a=null,o=null,s=0;switch(r){case At.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case At.CURVE_TO:for(i=0,a=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),s=.01;s<=1;s+=.01)o=this.getPointOnCubicBezier(s,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case At.QUAD_TO:for(i=0,a=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),s=.01;s<=1;s+=.01)o=this.getPointOnQuadraticBezier(s,t,e,n[0],n[1],n[2],n[3]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case At.ARC:i=0;var u=n[4],c=n[5],l=n[4]+c,h=Math.PI/180;if(Math.abs(u-l)<h&&(h=Math.abs(u-l)),a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),c<0)for(s=u-h;s>l;s-=h)o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;else for(s=u+h;s<l;s+=h)o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),i+=this.getLineLength(a.x,a.y,o.x,o.y)}return 0}},{key:"getPointOnLine",value:function(t,e,r,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,s=(i-r)/(n-e+X),u=Math.sqrt(t*t/(1+s*s));n<e&&(u*=-1);var c=s*u,l=null;if(n===e)l={x:a,y:o+c};else if((o-r)/(a-e+X)===s)l={x:a+u,y:o+c};else{var h=0,f=0,p=this.getLineLength(e,r,n,i);if(p<X)return null;var g=(a-e)*(n-e)+(o-r)*(i-r);h=e+(g/=p*p)*(n-e),f=r+g*(i-r);var v=this.getLineLength(a,o,h,f),d=Math.sqrt(t*t-v*v);u=Math.sqrt(d*d/(1+s*s)),n<e&&(u*=-1),l={x:h+u,y:f+(c=s*u)}}return l}},{key:"getPointOnPath",value:function(t){var e=this.getPathLength(),r=0,n=null;if(t<-5e-5||t-5e-5>e)return null;var a,o=this.dataArray,s=Object(i.a)(o);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(!u||!(u.pathLength<5e-5||r+u.pathLength+5e-5<t)){var c=t-r,l=0;switch(u.type){case At.LINE_TO:n=this.getPointOnLine(c,u.start.x,u.start.y,u.points[0],u.points[1],u.start.x,u.start.y);break;case At.ARC:var h=u.points[4],f=u.points[5],p=u.points[4]+f;if(l=h+c/u.pathLength*f,f<0&&l<p||f>=0&&l>p)break;n=this.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],l,u.points[6]);break;case At.CURVE_TO:(l=c/u.pathLength)>1&&(l=1),n=this.getPointOnCubicBezier(l,u.start.x,u.start.y,u.points[0],u.points[1],u.points[2],u.points[3],u.points[4],u.points[5]);break;case At.QUAD_TO:(l=c/u.pathLength)>1&&(l=1),n=this.getPointOnQuadraticBezier(l,u.start.x,u.start.y,u.points[0],u.points[1],u.points[2],u.points[3])}if(n)return n;break}r+=u.pathLength}}catch(g){s.e(g)}finally{s.f()}return null}},{key:"getLineLength",value:function(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}},{key:"getPathLength",value:function(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((function(t,e){return e.pathLength>0?t+e.pathLength:t}),0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(t,e,r,n,i,a,o,s,u){return{x:s*G(t)+a*Q(t)+n*$(t)+e*Z(t),y:u*G(t)+o*Q(t)+i*$(t)+r*Z(t)}}},{key:"getPointOnQuadraticBezier",value:function(t,e,r,n,i,a,o){return{x:a*K(t)+n*J(t)+e*tt(t),y:o*K(t)+i*J(t)+r*tt(t)}}},{key:"getPointOnEllipticalArc",value:function(t,e,r,n,i,a){var o=Math.cos(a),s=Math.sin(a),u=r*Math.cos(i),c=n*Math.sin(i);return{x:t+(u*o-c*s),y:e+(u*s+c*o)}}},{key:"buildEquidistantCache",value:function(t,e){var r=this.getPathLength(),n=e||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var a=0,o=0;o<=r;o+=n){var s=this.getPointOnPath(o),u=this.getPointOnPath(o+n);s&&u&&((a+=this.getLineLength(s.x,s.y,u.x,u.y))>=i&&(this.equidistantCache.points.push({x:s.x,y:s.y,distance:o}),a-=i))}}}},{key:"getEquidistantPointOnPath",value:function(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var n=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}]),r}(jt),ae=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,oe=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,i,o){var s;Object(h.a)(this,r),(s=e.call(this,t,i,o)).type="image",s.loaded=!1;var u=s.getHrefAttribute().getString();if(!u)return Object(n.a)(s);var c=u.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(u);return t.images.push(Object(a.a)(s)),c?s.loadSvg(u):s.loadImage(u),s.isSvg=c,s}return Object(f.a)(r,[{key:"loadImage",value:function(t){var e=this;return y()(v.a.mark((function r(){var n;return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,e.document.createImage(t);case 3:n=r.sent,e.image=n,r.next=10;break;case 7:r.prev=7,r.t0=r.catch(0),console.error('Error while loading image "'.concat(t,'":'),r.t0);case 10:e.loaded=!0;case 11:case"end":return r.stop()}}),r,null,[[0,7]])})))()}},{key:"loadSvg",value:function(t){var e=this;return y()(v.a.mark((function r(){var n,i,a,o;return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=ae.exec(t))){r.next=6;break}i=n[5],"base64"===n[4]?e.image=atob(i):e.image=decodeURIComponent(i),r.next=19;break;case 6:return r.prev=6,r.next=9,e.document.fetch(t);case 9:return a=r.sent,r.next=12,a.text();case 12:o=r.sent,e.image=o,r.next=19;break;case 16:r.prev=16,r.t0=r.catch(6),console.error('Error while loading image "'.concat(t,'":'),r.t0);case 19:e.loaded=!0;case 20:case"end":return r.stop()}}),r,null,[[6,16]])})))()}},{key:"renderChildren",value:function(t){var e=this.document,r=this.image,n=this.loaded,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(n&&r&&o&&s){if(t.save(),t.translate(i,a),this.isSvg){var u=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:o,scaleHeight:s});u.document.documentElement.parent=this,u.render()}else{var c=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:o,desiredWidth:c.width,height:s,desiredHeight:c.height}),this.loaded&&("undefined"===typeof c.complete||c.complete)&&t.drawImage(c,0,0)}t.restore()}}},{key:"getBoundingBox",value:function(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new Tt(t,e,t+r,e+n)}}]),r}(Et),se=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="symbol",t}return Object(f.a)(r,[{key:"render",value:function(t){}}]),r}(Et),ue=function(){function t(e){Object(h.a)(this,t),this.document=e,this.loaded=!1,e.fonts.push(this)}return Object(f.a)(t,[{key:"load",value:function(t,e){var r=this;return y()(v.a.mark((function n(){var i,a,o;return v.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,i=r.document,n.next=4,i.canvg.parser.load(e);case 4:a=n.sent,o=a.getElementsByTagName("font"),Array.from(o).forEach((function(e){var r=i.createElement(e);i.definitions[t]=r})),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(0),console.error('Error while loading font "'.concat(e,'":'),n.t0);case 12:r.loaded=!0;case 13:case"end":return n.stop()}}),n,null,[[0,9]])})))()}}]),t}(),ce=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;return Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="style",E(Array.from(n.childNodes).map((function(t){return t.textContent})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach((function(e){var r=e.trim();if(r){var n=r.split("{"),i=n[0].split(","),a=n[1].split(";");i.forEach((function(e){var r=e.trim();if(r){var n=t.styles[r]||{};if(a.forEach((function(e){var r=e.indexOf(":"),i=e.substr(0,r).trim(),a=e.substr(r+1,e.length-r).trim();i&&a&&(n[i]=new et(t,i,a))})),t.styles[r]=n,t.stylesSpecificity[r]=H(r),"@font-face"===r){var i=n["font-family"].getString().replace(/"|'/g,"");n.src.getString().split(",").forEach((function(e){if(e.indexOf('format("svg")')>0){var r=_(e);r&&new ue(t).load(i,r)}}))}}}))}})),a}return r}(bt);ce.parseExternalUrl=_;var le=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="use",t}return Object(f.a)(r,[{key:"setContext",value:function(t){Object(o.a)(Object(s.a)(r.prototype),"setContext",this).call(this,t);var e=this.getAttribute("x"),n=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),n.hasValue()&&t.translate(0,n.getPixels("y"))}},{key:"path",value:function(t){var e=this.element;e&&e.path(t)}},{key:"renderChildren",value:function(t){var e=this.document,r=this.element;if(r){var n=r;if("symbol"===r.type&&((n=new _t(e,null)).attributes.viewBox=new et(e,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new et(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new et(e,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new et(e,"opacity",this.calculateOpacity())),"svg"===n.type){var i=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new et(e,"width",i.getString())),a.hasValue()&&(n.attributes.height=new et(e,"height",a.getString()))}var o=n.parent;n.parent=this,n.render(t),n.parent=o}}},{key:"getBoundingBox",value:function(t){var e=this.element;return e?e.getBoundingBox(t):null}},{key:"elementTransform",value:function(){var t=this.document,e=this.element;return mt.fromElement(t,e)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),r}(Et);function he(t,e,r,n,i,a){return t[r*n*4+4*e+a]}function fe(t,e,r,n,i,a,o){t[r*n*4+4*e+a]=o}function pe(t,e,r){return t[e]*r}function ge(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}var ve=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="feColorMatrix";var o=j(a.getAttribute("values").getString());switch(a.getAttribute("type").getString("matrix")){case"saturate":var s=o[0];o=[.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 u=o[0]*Math.PI/180;o=[ge(u,.213,.787,-.213),ge(u,.715,-.715,-.715),ge(u,.072,-.072,.928),0,0,ge(u,.213,-.213,.143),ge(u,.715,.285,.14),ge(u,.072,-.072,-.283),0,0,ge(u,.213,-.213,-.787),ge(u,.715,-.715,.715),ge(u,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return a.matrix=o,a.includeOpacity=a.getAttribute("includeOpacity").hasValue(),a}return Object(f.a)(r,[{key:"apply",value:function(t,e,r,n,i){for(var a=this.includeOpacity,o=this.matrix,s=t.getImageData(0,0,n,i),u=0;u<i;u++)for(var c=0;c<n;c++){var l=he(s.data,c,u,n,0,0),h=he(s.data,c,u,n,0,1),f=he(s.data,c,u,n,0,2),p=he(s.data,c,u,n,0,3),g=pe(o,0,l)+pe(o,1,h)+pe(o,2,f)+pe(o,3,p)+pe(o,4,1),v=pe(o,5,l)+pe(o,6,h)+pe(o,7,f)+pe(o,8,p)+pe(o,9,1),d=pe(o,10,l)+pe(o,11,h)+pe(o,12,f)+pe(o,13,p)+pe(o,14,1),y=pe(o,15,l)+pe(o,16,h)+pe(o,17,f)+pe(o,18,p)+pe(o,19,1);a&&(g=0,v=0,d=0,y*=p/255),fe(s.data,c,u,n,0,0,g),fe(s.data,c,u,n,0,1,v),fe(s.data,c,u,n,0,2,d),fe(s.data,c,u,n,0,3,y)}t.clearRect(0,0,n,i),t.putImageData(s,0,0)}}]),r}(bt),de=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="mask",t}return Object(f.a)(r,[{key:"apply",value:function(t,e){var n=this.document,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!o&&!s){var u=new Tt;this.children.forEach((function(e){u.addBoundingBox(e.getBoundingBox(t))})),i=Math.floor(u.x1),a=Math.floor(u.y1),o=Math.floor(u.width),s=Math.floor(u.height)}var c=this.removeStyles(e,r.ignoreStyles),l=n.createCanvas(i+o,a+s),h=l.getContext("2d");n.screen.setDefaults(h),this.renderChildren(h),new ve(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(h,0,0,i+o,a+s);var f=n.createCanvas(i+o,a+s),p=f.getContext("2d");n.screen.setDefaults(p),e.render(p),p.globalCompositeOperation="destination-in",p.fillStyle=h.createPattern(l,"no-repeat"),p.fillRect(0,0,i+o,a+s),t.fillStyle=p.createPattern(f,"no-repeat"),t.fillRect(0,0,i+o,a+s),this.restoreStyles(e,c)}},{key:"render",value:function(t){}}]),r}(bt);de.ignoreStyles=["mask","transform","clip-path"];var ye=function(){},me=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="clipPath",t}return Object(f.a)(r,[{key:"apply",value:function(t){var e=this.document,r=Reflect.getPrototypeOf(t),n=t.beginPath,i=t.closePath;r&&(r.beginPath=ye,r.closePath=ye),Reflect.apply(n,t,[]),this.children.forEach((function(n){if("undefined"!==typeof n.path){var a="undefined"!==typeof n.elementTransform?n.elementTransform():null;a||(a=mt.fromElement(e,n)),a&&a.apply(t),n.path(t),r&&(r.closePath=i),a&&a.unapply(t)}})),Reflect.apply(i,t,[]),t.clip(),r&&(r.beginPath=n,r.closePath=i)}},{key:"render",value:function(t){}}]),r}(bt),be=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="filter",t}return Object(f.a)(r,[{key:"apply",value:function(t,e){var n=this.document,i=this.children,a=e.getBoundingBox(t);if(a){var o=0,s=0;i.forEach((function(t){var e=t.extraFilterDistance||0;o=Math.max(o,e),s=Math.max(s,e)}));var u=Math.floor(a.width),c=Math.floor(a.height),l=u+2*o,h=c+2*s;if(!(l<1||h<1)){var f=Math.floor(a.x),p=Math.floor(a.y),g=this.removeStyles(e,r.ignoreStyles),v=n.createCanvas(l,h),d=v.getContext("2d");n.screen.setDefaults(d),d.translate(-f+o,-p+s),e.render(d),i.forEach((function(t){"function"===typeof t.apply&&t.apply(d,0,0,l,h)})),t.drawImage(v,0,0,l,h,f-o,p-s,l,h),this.restoreStyles(e,g)}}}},{key:"render",value:function(t){}}]),r}(bt);be.ignoreStyles=["filter","transform","clip-path"];var xe=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;return Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="feDropShadow",a.addStylesFromStyleDefinition(),a}return Object(f.a)(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(bt),Oe=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="feMorphology",t}return Object(f.a)(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(bt),Se=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="feComposite",t}return Object(f.a)(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(bt),we=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(t,n,i){var a;return Object(h.a)(this,r),(a=e.call(this,t,n,i)).type="feGaussianBlur",a.blurRadius=Math.floor(a.getAttribute("stdDeviation").getNumber()),a.extraFilterDistance=a.blurRadius,a}return Object(f.a)(r,[{key:"apply",value:function(t,e,r,n,i){var a=this.document,o=this.blurRadius,s=a.window?a.window.document.body:null,u=t.canvas;u.id=a.getUniqueId(),s&&(u.style.display="none",s.appendChild(u)),Object(T.a)(u,e,r,n,i,o),s&&s.removeChild(u)}}]),r}(bt),ke=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="title",t}return r}(bt),Te=function(t){Object(c.a)(r,t);var e=Object(l.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).type="desc",t}return r}(bt),Ae={svg:_t,rect:Vt,circle:Rt,ellipse:It,line:Lt,polyline:Dt,polygon:Bt,path:Pt,pattern:zt,marker:Ut,defs:Ft,linearGradient:Yt,radialGradient:qt,stop:Wt,animate:Gt,animateColor:Qt,animateTransform:$t,font:Zt,"font-face":Kt,"missing-glyph":Jt,glyph:Ct,text:jt,tspan:Mt,tref:te,a:ee,textPath:ie,image:oe,g:Ht,symbol:se,style:ce,use:le,mask:de,clipPath:me,filter:be,feDropShadow:xe,feMorphology:Oe,feComposite:Se,feColorMatrix:ve,feGaussianBlur:we,title:ke,desc:Te};function Ee(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Pe(){return(Pe=y()(v.a.mark((function t(e){var r,n,i=arguments;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>1&&void 0!==i[1]&&i[1],n=document.createElement("img"),r&&(n.crossOrigin="Anonymous"),t.abrupt("return",new Promise((function(t,r){n.onload=function(){t(n)},n.onerror=function(t,e,n,i,a){r(a)},n.src=e})));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Ce=function(){function t(e){Object(h.a)(this,t);var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.rootEmSize,i=void 0===n?12:n,a=r.emSize,o=void 0===a?12:a,s=r.createCanvas,u=void 0===s?t.createCanvas:s,c=r.createImage,l=void 0===c?t.createImage:c,f=r.anonymousCrossOrigin;this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=i,this.emSize=o,this.createCanvas=u,this.createImage=this.bindCreateImage(l,f),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Object(f.a)(t,[{key:"bindCreateImage",value:function(t,e){return"boolean"===typeof e?function(r,n){return t(r,"boolean"===typeof n?n:e)}:t}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var t=this.emSizeStack;return t[t.length-1]},set:function(t){this.emSizeStack.push(t)}},{key:"popEmSize",value:function(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every((function(t){return t.loaded}))}},{key:"isFontsLoaded",value:function(){return this.fonts.every((function(t){return t.loaded}))}},{key:"createDocumentElement",value:function(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}},{key:"createElement",value:function(e){var r=e.nodeName.replace(/^[^:]+:/,""),n=t.elementTypes[r];return"undefined"!==typeof n?new n(this,e):new xt(this,e)}},{key:"createTextNode",value:function(t){return new Nt(this,t)}},{key:"setViewBox",value:function(t){this.screen.setViewBox(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ee(Object(r),!0).forEach((function(e){b()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ee(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({document:this},t))}}]),t}();function je(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Me(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?je(Object(r),!0).forEach((function(e){b()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}Ce.createCanvas=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r},Ce.createImage=function(t){return Pe.apply(this,arguments)},Ce.elementTypes=Ae;var Ne=function(){function t(e,r){Object(h.a)(this,t);var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new lt(n),this.screen=new st(e,n),this.options=n;var i=new Ce(this,n),a=i.createDocumentElement(r);this.document=i,this.documentElement=a}return Object(f.a)(t,[{key:"fork",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.from(e,r,Me(Me({},this.options),n))}},{key:"forkString",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.fromString(e,r,Me(Me({},this.options),n))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){var t=arguments,e=this;return y()(v.a.mark((function r(){var n;return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.length>0&&void 0!==t[0]?t[0]:{},e.start(Me({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),r.next=4,e.ready();case 4:e.stop();case 5:case"end":return r.stop()}}),r)})))()}},{key:"start",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.documentElement,r=this.screen,n=this.options;r.start(e,Me(Me({enableRedraw:!0},n),t))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(t,e,r)}}],[{key:"from",value:function(e,r){var n=arguments;return y()(v.a.mark((function i(){var a,o,s;return v.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=n.length>2&&void 0!==n[2]?n[2]:{},o=new lt(a),i.next=4,o.parse(r);case 4:return s=i.sent,i.abrupt("return",new t(e,s,a));case 6:case"end":return i.stop()}}),i)})))()}},{key:"fromString",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new lt(n),a=i.parseFromString(r);return new t(e,a,n)}}]),t}();e.default=Ne}.call(this,r(74))},1694:function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,r(54))},1695:function(t,e,r){var n=r(1694),i=r(1724),a=r(1700),o=r(1739),s=r(1745),u=r(1768),c=i("wks"),l=n.Symbol,h=u?l:l&&l.withoutSetter||o;t.exports=function(t){return a(c,t)&&(s||"string"==typeof c[t])||(s&&a(l,t)?c[t]=l[t]:c[t]=h("Symbol."+t)),c[t]}},1696:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},1697:function(t,e,r){var n=r(1701);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},1698:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},1699:function(t,e,r){var n=r(1694),i=r(1708).f,a=r(1702),o=r(1706),s=r(1719),u=r(1761),c=r(1742);t.exports=function(t,e){var r,l,h,f,p,g=t.target,v=t.global,d=t.stat;if(r=v?n:d?n[g]||s(g,{}):(n[g]||{}).prototype)for(l in e){if(f=e[l],h=t.noTargetGet?(p=i(r,l))&&p.value:r[l],!c(v?l:g+(d?".":"#")+l,t.forced)&&void 0!==h){if(typeof f===typeof h)continue;u(f,h)}(t.sham||h&&h.sham)&&a(f,"sham",!0),o(r,l,f,t)}}},1700:function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},1701:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},1702:function(t,e,r){var n=r(1704),i=r(1705),a=r(1717);t.exports=n?function(t,e,r){return i.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},1703:function(t,e,r){var n=r(1715),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},1704:function(t,e,r){var n=r(1696);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},1705:function(t,e,r){var n=r(1704),i=r(1738),a=r(1697),o=r(1737),s=Object.defineProperty;e.f=n?s:function(t,e,r){if(a(t),e=o(e,!0),a(r),i)try{return s(t,e,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},1706:function(t,e,r){var n=r(1694),i=r(1702),a=r(1700),o=r(1719),s=r(1720),u=r(1722),c=u.get,l=u.enforce,h=String(String).split("String");(t.exports=function(t,e,r,s){var u,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof e||a(r,"name")||i(r,"name",e),(u=l(r)).source||(u.source=h.join("string"==typeof e?e:""))),t!==n?(c?!p&&t[e]&&(f=!0):delete t[e],f?t[e]=r:i(t,e,r)):f?t[e]=r:o(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},1707:function(t,e){t.exports=!1},1708:function(t,e,r){var n=r(1704),i=r(1759),a=r(1717),o=r(1714),s=r(1737),u=r(1700),c=r(1738),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=o(t),e=s(e,!0),c)try{return l(t,e)}catch(r){}if(u(t,e))return a(!i.f.call(t,e),t[e])}},1709:function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},1710:function(t,e,r){var n=r(1763),i=r(1694),a=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?a(n[t])||a(i[t]):n[t]&&n[t][e]||i[t]&&i[t][e]}},1711:function(t,e,r){var n=r(1709),i=r(1694);t.exports="process"==n(i.process)},1712:function(t,e){t.exports={}},1713:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},1714:function(t,e,r){var n=r(1736),i=r(1698);t.exports=function(t){return n(i(t))}},1715:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},1716:function(t,e,r){"use strict";var n=r(1755),i=r(1800),a=r(1724),o=RegExp.prototype.exec,s=a("native-string-replace",String.prototype.replace),u=o,c=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),l=i.UNSUPPORTED_Y||i.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(c||h||l)&&(u=function(t){var e,r,i,a,u=this,f=l&&u.sticky,p=n.call(u),g=u.source,v=0,d=t;return f&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),d=String(t).slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==t[u.lastIndex-1])&&(g="(?: "+g+")",d=" "+d,v++),r=new RegExp("^(?:"+g+")",p)),h&&(r=new RegExp("^"+g+"$(?!\\s)",p)),c&&(e=u.lastIndex),i=o.call(f?r:u,d),f?i?(i.input=i.input.slice(v),i[0]=i[0].slice(v),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:c&&i&&(u.lastIndex=u.global?i.index+i[0].length:e),h&&i&&i.length>1&&s.call(i[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i}),t.exports=u},1717:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},1718:function(t,e,r){var n=r(1694),i=r(1701),a=n.document,o=i(a)&&i(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},1719:function(t,e,r){var n=r(1694),i=r(1702);t.exports=function(t,e){try{i(n,t,e)}catch(r){n[t]=e}return e}},1720:function(t,e,r){var n=r(1721),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return i.call(t)}),t.exports=n.inspectSource},1721:function(t,e,r){var n=r(1694),i=r(1719),a="__core-js_shared__",o=n[a]||i(a,{});t.exports=o},1722:function(t,e,r){var n,i,a,o=r(1760),s=r(1694),u=r(1701),c=r(1702),l=r(1700),h=r(1721),f=r(1723),p=r(1725),g=s.WeakMap;if(o){var v=h.state||(h.state=new g),d=v.get,y=v.has,m=v.set;n=function(t,e){return e.facade=t,m.call(v,t,e),e},i=function(t){return d.call(v,t)||{}},a=function(t){return y.call(v,t)}}else{var b=f("state");p[b]=!0,n=function(t,e){return e.facade=t,c(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},a=function(t){return l(t,b)}}t.exports={set:n,get:i,has:a,enforce:function(t){return a(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},1723:function(t,e,r){var n=r(1724),i=r(1739),a=n("keys");t.exports=function(t){return a[t]||(a[t]=i(t))}},1724:function(t,e,r){var n=r(1707),i=r(1721);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.10.0",mode:n?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},1725:function(t,e){t.exports={}},1726:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1727:function(t,e,r){var n,i,a=r(1694),o=r(1728),s=a.process,u=s&&s.versions,c=u&&u.v8;c?i=(n=c.split("."))[0]+n[1]:o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(i=n[1]),t.exports=i&&+i},1728:function(t,e,r){var n=r(1710);t.exports=n("navigator","userAgent")||""},1729:function(t,e,r){var n=r(1698);t.exports=function(t){return Object(n(t))}},1730:function(t,e,r){var n=r(1705).f,i=r(1700),a=r(1695)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,a)&&n(t,a,{configurable:!0,value:e})}},1731:function(t,e,r){var n=r(1756);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},1732:function(t,e,r){var n=r(1695)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(i){}}return!1}},1733:function(t,e,r){"use strict";r(1799);var n=r(1706),i=r(1696),a=r(1695),o=r(1716),s=r(1702),u=a("species"),c=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l="$0"==="a".replace(/./,"$0"),h=a("replace"),f=!!/./[h]&&""===/./[h]("a","$0"),p=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,e,r,h){var g=a(t),v=!i((function(){var e={};return e[g]=function(){return 7},7!=""[t](e)})),d=v&&!i((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[g]=/./[g]),r.exec=function(){return e=!0,null},r[g](""),!e}));if(!v||!d||"replace"===t&&(!c||!l||f)||"split"===t&&!p){var y=/./[g],m=r(g,""[t],(function(t,e,r,n,i){return e.exec===o?v&&!i?{done:!0,value:y.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),b=m[0],x=m[1];n(String.prototype,t,b),n(RegExp.prototype,g,2==e?function(t,e){return x.call(t,this,e)}:function(t){return x.call(t,this)})}h&&s(RegExp.prototype[g],"sham",!0)}},1734:function(t,e,r){"use strict";var n=r(1801).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},1735:function(t,e,r){var n=r(1709),i=r(1716);t.exports=function(t,e){var r=t.exec;if("function"===typeof r){var a=r.call(t,e);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},1736:function(t,e,r){var n=r(1696),i=r(1709),a="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?a.call(t,""):Object(t)}:Object},1737:function(t,e,r){var n=r(1701);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},1738:function(t,e,r){var n=r(1704),i=r(1696),a=r(1718);t.exports=!n&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},1739:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},1740:function(t,e,r){var n=r(1700),i=r(1714),a=r(1741).indexOf,o=r(1725);t.exports=function(t,e){var r,s=i(t),u=0,c=[];for(r in s)!n(o,r)&&n(s,r)&&c.push(r);for(;e.length>u;)n(s,r=e[u++])&&(~a(c,r)||c.push(r));return c}},1741:function(t,e,r){var n=r(1714),i=r(1703),a=r(1765),o=function(t){return function(e,r,o){var s,u=n(e),c=i(u.length),l=a(o,c);if(t&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},1742:function(t,e,r){var n=r(1696),i=/#|\.prototype\./,a=function(t,e){var r=s[o(t)];return r==c||r!=u&&("function"==typeof e?n(e):!!e)},o=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a},1743:function(t,e,r){"use strict";var n=r(1696);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},1744:function(t,e,r){"use strict";var n=r(1714),i=r(1767),a=r(1712),o=r(1722),s=r(1771),u="Array Iterator",c=o.set,l=o.getterFor(u);t.exports=s(Array,"Array",(function(t,e){c(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},1745:function(t,e,r){var n=r(1711),i=r(1727),a=r(1696);t.exports=!!Object.getOwnPropertySymbols&&!a((function(){return!Symbol.sham&&(n?38===i:i>37&&i<41)}))},1746:function(t,e,r){var n,i=r(1697),a=r(1769),o=r(1726),s=r(1725),u=r(1747),c=r(1718),l=r(1723),h=l("IE_PROTO"),f=function(){},p=function(t){return"<script>"+t+"</"+"script>"},g=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}g=n?function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):function(){var t,e=c("iframe");return e.style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F}();for(var t=o.length;t--;)delete g.prototype[o[t]];return g()};s[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(f.prototype=i(t),r=new f,f.prototype=null,r[h]=t):r=g(),void 0===e?r:a(r,e)}},1747:function(t,e,r){var n=r(1710);t.exports=n("document","documentElement")},1748:function(t,e,r){"use strict";var n,i,a,o=r(1696),s=r(1749),u=r(1702),c=r(1700),l=r(1695),h=r(1707),f=l("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(i=s(s(a)))!==Object.prototype&&(n=i):p=!0);var g=void 0==n||o((function(){var t={};return n[f].call(t)!==t}));g&&(n={}),h&&!g||c(n,f)||u(n,f,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},1749:function(t,e,r){var n=r(1700),i=r(1729),a=r(1723),o=r(1773),s=a("IE_PROTO"),u=Object.prototype;t.exports=o?Object.getPrototypeOf:function(t){return t=i(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},1750:function(t,e,r){var n=r(1713);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},1751:function(t,e,r){var n=r(1697),i=r(1713),a=r(1695)("species");t.exports=function(t,e){var r,o=n(t).constructor;return void 0===o||void 0==(r=n(o)[a])?e:i(r)}},1752:function(t,e,r){var n,i,a,o=r(1694),s=r(1696),u=r(1750),c=r(1747),l=r(1718),h=r(1753),f=r(1711),p=o.location,g=o.setImmediate,v=o.clearImmediate,d=o.process,y=o.MessageChannel,m=o.Dispatch,b=0,x={},O="onreadystatechange",S=function(t){if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},w=function(t){return function(){S(t)}},k=function(t){S(t.data)},T=function(t){o.postMessage(t+"",p.protocol+"//"+p.host)};g&&v||(g=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return x[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(b),b},v=function(t){delete x[t]},f?n=function(t){d.nextTick(w(t))}:m&&m.now?n=function(t){m.now(w(t))}:y&&!h?(a=(i=new y).port2,i.port1.onmessage=k,n=u(a.postMessage,a,1)):o.addEventListener&&"function"==typeof postMessage&&!o.importScripts&&p&&"file:"!==p.protocol&&!s(T)?(n=T,o.addEventListener("message",k,!1)):n=O in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),S(t)}}:function(t){setTimeout(w(t),0)}),t.exports={set:g,clear:v}},1753:function(t,e,r){var n=r(1728);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},1754:function(t,e,r){"use strict";var n=r(1713),i=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},1755:function(t,e,r){"use strict";var n=r(1697);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},1756:function(t,e,r){var n=r(1701),i=r(1709),a=r(1695)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},1757:function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},1758:function(t,e,r){"use strict";var n=r(1699),i=r(1741).indexOf,a=r(1743),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0,u=a("indexOf");n({target:"Array",proto:!0,forced:s||!u},{indexOf:function(t){return s?o.apply(this,arguments)||0:i(this,t,arguments.length>1?arguments[1]:void 0)}})},1759:function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!n.call({1:2},1);e.f=a?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},1760:function(t,e,r){var n=r(1694),i=r(1720),a=n.WeakMap;t.exports="function"===typeof a&&/native code/.test(i(a))},1761:function(t,e,r){var n=r(1700),i=r(1762),a=r(1708),o=r(1705);t.exports=function(t,e){for(var r=i(e),s=o.f,u=a.f,c=0;c<r.length;c++){var l=r[c];n(t,l)||s(t,l,u(e,l))}}},1762:function(t,e,r){var n=r(1710),i=r(1764),a=r(1766),o=r(1697);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(o(t)),r=a.f;return r?e.concat(r(t)):e}},1763:function(t,e,r){var n=r(1694);t.exports=n},1764:function(t,e,r){var n=r(1740),i=r(1726).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},1765:function(t,e,r){var n=r(1715),i=Math.max,a=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):a(r,e)}},1766:function(t,e){e.f=Object.getOwnPropertySymbols},1767:function(t,e,r){var n=r(1695),i=r(1746),a=r(1705),o=n("unscopables"),s=Array.prototype;void 0==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),t.exports=function(t){s[o][t]=!0}},1768:function(t,e,r){var n=r(1745);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1769:function(t,e,r){var n=r(1704),i=r(1705),a=r(1697),o=r(1770);t.exports=n?Object.defineProperties:function(t,e){a(t);for(var r,n=o(e),s=n.length,u=0;s>u;)i.f(t,r=n[u++],e[r]);return t}},1770:function(t,e,r){var n=r(1740),i=r(1726);t.exports=Object.keys||function(t){return n(t,i)}},1771:function(t,e,r){"use strict";var n=r(1699),i=r(1772),a=r(1749),o=r(1774),s=r(1730),u=r(1702),c=r(1706),l=r(1695),h=r(1707),f=r(1712),p=r(1748),g=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,d=l("iterator"),y="keys",m="values",b="entries",x=function(){return this};t.exports=function(t,e,r,l,p,O,S){i(r,e,l);var w,k,T,A=function(t){if(t===p&&M)return M;if(!v&&t in C)return C[t];switch(t){case y:case m:case b:return function(){return new r(this,t)}}return function(){return new r(this)}},E=e+" Iterator",P=!1,C=t.prototype,j=C[d]||C["@@iterator"]||p&&C[p],M=!v&&j||A(p),N="Array"==e&&C.entries||j;if(N&&(w=a(N.call(new t)),g!==Object.prototype&&w.next&&(h||a(w)===g||(o?o(w,g):"function"!=typeof w[d]&&u(w,d,x)),s(w,E,!0,!0),h&&(f[E]=x))),p==m&&j&&j.name!==m&&(P=!0,M=function(){return j.call(this)}),h&&!S||C[d]===M||u(C,d,M),f[e]=M,p)if(k={values:A(m),keys:O?M:A(y),entries:A(b)},S)for(T in k)(v||P||!(T in C))&&c(C,T,k[T]);else n({target:e,proto:!0,forced:v||P},k);return k}},1772:function(t,e,r){"use strict";var n=r(1748).IteratorPrototype,i=r(1746),a=r(1717),o=r(1730),s=r(1712),u=function(){return this};t.exports=function(t,e,r){var c=e+" Iterator";return t.prototype=i(n,{next:a(1,r)}),o(t,c,!1,!0),s[c]=u,t}},1773:function(t,e,r){var n=r(1696);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},1774:function(t,e,r){var n=r(1697),i=r(1775);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(a){}return function(r,a){return n(r),i(a),e?t.call(r,a):r.__proto__=a,r}}():void 0)},1775:function(t,e,r){var n=r(1701);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},1776:function(t,e,r){"use strict";var n=r(1699),i=r(1777).left,a=r(1743),o=r(1727),s=r(1711);n({target:"Array",proto:!0,forced:!a("reduce")||!s&&o>79&&o<83},{reduce:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},1777:function(t,e,r){var n=r(1713),i=r(1729),a=r(1736),o=r(1703),s=function(t){return function(e,r,s,u){n(r);var c=i(e),l=a(c),h=o(c.length),f=t?h-1:0,p=t?-1:1;if(s<2)for(;;){if(f in l){u=l[f],f+=p;break}if(f+=p,t?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;t?f>=0:h>f;f+=p)f in l&&(u=r(u,l[f],f,c));return u}};t.exports={left:s(!1),right:s(!0)}},1778:function(t,e,r){"use strict";var n,i,a,o,s=r(1699),u=r(1707),c=r(1694),l=r(1710),h=r(1779),f=r(1706),p=r(1780),g=r(1730),v=r(1781),d=r(1701),y=r(1713),m=r(1782),b=r(1720),x=r(1783),O=r(1789),S=r(1751),w=r(1752).set,k=r(1790),T=r(1792),A=r(1793),E=r(1754),P=r(1794),C=r(1722),j=r(1742),M=r(1695),N=r(1711),_=r(1727),V=M("species"),R="Promise",I=C.get,L=C.set,D=C.getterFor(R),B=h,z=c.TypeError,U=c.document,F=c.process,H=l("fetch"),X=E.f,Y=X,q=!!(U&&U.createEvent&&c.dispatchEvent),W="function"==typeof PromiseRejectionEvent,G="unhandledrejection",Q=j(R,(function(){if(!(b(B)!==String(B))){if(66===_)return!0;if(!N&&!W)return!0}if(u&&!B.prototype.finally)return!0;if(_>=51&&/native code/.test(B))return!1;var t=B.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[V]=e,!(t.then((function(){}))instanceof e)})),$=Q||!O((function(t){B.all(t).catch((function(){}))})),Z=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},K=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;k((function(){for(var n=t.value,i=1==t.state,a=0;r.length>a;){var o,s,u,c=r[a++],l=i?c.ok:c.fail,h=c.resolve,f=c.reject,p=c.domain;try{l?(i||(2===t.rejection&&rt(t),t.rejection=1),!0===l?o=n:(p&&p.enter(),o=l(n),p&&(p.exit(),u=!0)),o===c.promise?f(z("Promise-chain cycle")):(s=Z(o))?s.call(o,h,f):h(o)):f(n)}catch(g){p&&!u&&p.exit(),f(g)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&tt(t)}))}},J=function(t,e,r){var n,i;q?((n=U.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:r},!W&&(i=c["on"+t])?i(n):t===G&&A("Unhandled promise rejection",r)},tt=function(t){w.call(c,(function(){var e,r=t.facade,n=t.value;if(et(t)&&(e=P((function(){N?F.emit("unhandledRejection",n,r):J(G,r,n)})),t.rejection=N||et(t)?2:1,e.error))throw e.value}))},et=function(t){return 1!==t.rejection&&!t.parent},rt=function(t){w.call(c,(function(){var e=t.facade;N?F.emit("rejectionHandled",e):J("rejectionhandled",e,t.value)}))},nt=function(t,e,r){return function(n){t(e,n,r)}},it=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,K(t,!0))},at=function t(e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===r)throw z("Promise can't be resolved itself");var i=Z(r);i?k((function(){var n={done:!1};try{i.call(r,nt(t,n,e),nt(it,n,e))}catch(a){it(n,a,e)}})):(e.value=r,e.state=1,K(e,!1))}catch(a){it({done:!1},a,e)}}};Q&&(B=function(t){m(this,B,R),y(t),n.call(this);var e=I(this);try{t(nt(at,e),nt(it,e))}catch(r){it(e,r)}},(n=function(t){L(this,{type:R,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(B.prototype,{then:function(t,e){var r=D(this),n=X(S(this,B));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=N?F.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&K(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n,e=I(t);this.promise=t,this.resolve=nt(at,e),this.reject=nt(it,e)},E.f=X=function(t){return t===B||t===a?new i(t):Y(t)},u||"function"!=typeof h||(o=h.prototype.then,f(h.prototype,"then",(function(t,e){var r=this;return new B((function(t,e){o.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof H&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return T(B,H.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:Q},{Promise:B}),g(B,R,!1,!0),v(R),a=l(R),s({target:R,stat:!0,forced:Q},{reject:function(t){var e=X(this);return e.reject.call(void 0,t),e.promise}}),s({target:R,stat:!0,forced:u||Q},{resolve:function(t){return T(u&&this===a?B:this,t)}}),s({target:R,stat:!0,forced:$},{all:function(t){var e=this,r=X(e),n=r.resolve,i=r.reject,a=P((function(){var r=y(e.resolve),a=[],o=0,s=1;x(t,(function(t){var u=o++,c=!1;a.push(void 0),s++,r.call(e,t).then((function(t){c||(c=!0,a[u]=t,--s||n(a))}),i)})),--s||n(a)}));return a.error&&i(a.value),r.promise},race:function(t){var e=this,r=X(e),n=r.reject,i=P((function(){var i=y(e.resolve);x(t,(function(t){i.call(e,t).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},1779:function(t,e,r){var n=r(1694);t.exports=n.Promise},1780:function(t,e,r){var n=r(1706);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},1781:function(t,e,r){"use strict";var n=r(1710),i=r(1705),a=r(1695),o=r(1704),s=a("species");t.exports=function(t){var e=n(t),r=i.f;o&&e&&!e[s]&&r(e,s,{configurable:!0,get:function(){return this}})}},1782:function(t,e){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},1783:function(t,e,r){var n=r(1697),i=r(1784),a=r(1703),o=r(1750),s=r(1785),u=r(1788),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,r){var l,h,f,p,g,v,d,y=r&&r.that,m=!(!r||!r.AS_ENTRIES),b=!(!r||!r.IS_ITERATOR),x=!(!r||!r.INTERRUPTED),O=o(e,y,1+m+x),S=function(t){return l&&u(l),new c(!0,t)},w=function(t){return m?(n(t),x?O(t[0],t[1],S):O(t[0],t[1])):x?O(t,S):O(t)};if(b)l=t;else{if("function"!=typeof(h=s(t)))throw TypeError("Target is not iterable");if(i(h)){for(f=0,p=a(t.length);p>f;f++)if((g=w(t[f]))&&g instanceof c)return g;return new c(!1)}l=h.call(t)}for(v=l.next;!(d=v.call(l)).done;){try{g=w(d.value)}catch(k){throw u(l),k}if("object"==typeof g&&g&&g instanceof c)return g}return new c(!1)}},1784:function(t,e,r){var n=r(1695),i=r(1712),a=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[a]===t)}},1785:function(t,e,r){var n=r(1786),i=r(1712),a=r(1695)("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[n(t)]}},1786:function(t,e,r){var n=r(1787),i=r(1709),a=r(1695)("toStringTag"),o="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(r){}}(e=Object(t),a))?r:o?i(e):"Object"==(n=i(e))&&"function"==typeof e.callee?"Arguments":n}},1787:function(t,e,r){var n={};n[r(1695)("toStringTag")]="z",t.exports="[object z]"===String(n)},1788:function(t,e,r){var n=r(1697);t.exports=function(t){var e=t.return;if(void 0!==e)return n(e.call(t)).value}},1789:function(t,e,r){var n=r(1695)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(s){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var a={};a[n]=function(){return{next:function(){return{done:r=!0}}}},t(a)}catch(s){}return r}},1790:function(t,e,r){var n,i,a,o,s,u,c,l,h=r(1694),f=r(1708).f,p=r(1752).set,g=r(1753),v=r(1791),d=r(1711),y=h.MutationObserver||h.WebKitMutationObserver,m=h.document,b=h.process,x=h.Promise,O=f(h,"queueMicrotask"),S=O&&O.value;S||(n=function(){var t,e;for(d&&(t=b.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(r){throw i?o():a=void 0,r}}a=void 0,t&&t.enter()},g||d||v||!y||!m?x&&x.resolve?(c=x.resolve(void 0),l=c.then,o=function(){l.call(c,n)}):o=d?function(){b.nextTick(n)}:function(){p.call(h,n)}:(s=!0,u=m.createTextNode(""),new y(n).observe(u,{characterData:!0}),o=function(){u.data=s=!s})),t.exports=S||function(t){var e={fn:t,next:void 0};a&&(a.next=e),i||(i=e,o()),a=e}},1791:function(t,e,r){var n=r(1728);t.exports=/web0s(?!.*chrome)/i.test(n)},1792:function(t,e,r){var n=r(1697),i=r(1701),a=r(1754);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=a.f(t);return(0,r.resolve)(e),r.promise}},1793:function(t,e,r){var n=r(1694);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},1794:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},1795:function(t,e,r){"use strict";var n=r(1706),i=r(1697),a=r(1696),o=r(1755),s="toString",u=RegExp.prototype,c=u.toString,l=a((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),h=c.name!=s;(l||h)&&n(RegExp.prototype,s,(function(){var t=i(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in u)?o.call(t):r)}),{unsafe:!0})},1796:function(t,e,r){"use strict";var n=r(1699),i=r(1708).f,a=r(1703),o=r(1731),s=r(1698),u=r(1732),c=r(1707),l="".endsWith,h=Math.min,f=u("endsWith");n({target:"String",proto:!0,forced:!(!c&&!f&&!!function(){var t=i(String.prototype,"endsWith");return t&&!t.writable}())&&!f},{endsWith:function(t){var e=String(s(this));o(t);var r=arguments.length>1?arguments[1]:void 0,n=a(e.length),i=void 0===r?n:h(a(r),n),u=String(t);return l?l.call(e,u,i):e.slice(i-u.length,i)===u}})},1797:function(t,e,r){"use strict";var n=r(1699),i=r(1731),a=r(1698);n({target:"String",proto:!0,forced:!r(1732)("includes")},{includes:function(t){return!!~String(a(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},1798:function(t,e,r){"use strict";var n=r(1733),i=r(1697),a=r(1703),o=r(1698),s=r(1734),u=r(1735);n("match",1,(function(t,e,r){return[function(e){var r=o(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=i(t),c=String(this);if(!o.global)return u(o,c);var l=o.unicode;o.lastIndex=0;for(var h,f=[],p=0;null!==(h=u(o,c));){var g=String(h[0]);f[p]=g,""===g&&(o.lastIndex=s(c,a(o.lastIndex),l)),p++}return 0===p?null:f}]}))},1799:function(t,e,r){"use strict";var n=r(1699),i=r(1716);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},1800:function(t,e,r){"use strict";var n=r(1696);function i(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=n((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=n((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},1801:function(t,e,r){var n=r(1715),i=r(1698),a=function(t){return function(e,r){var a,o,s=String(i(e)),u=n(r),c=s.length;return u<0||u>=c?t?"":void 0:(a=s.charCodeAt(u))<55296||a>56319||u+1===c||(o=s.charCodeAt(u+1))<56320||o>57343?t?s.charAt(u):a:t?s.slice(u,u+2):o-56320+(a-55296<<10)+65536}};t.exports={codeAt:a(!1),charAt:a(!0)}},1802:function(t,e,r){"use strict";var n=r(1733),i=r(1697),a=r(1703),o=r(1715),s=r(1698),u=r(1734),c=r(1803),l=r(1735),h=Math.max,f=Math.min;n("replace",2,(function(t,e,r,n){var p=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=n.REPLACE_KEEPS_$0,v=p?"$":"$0";return[function(r,n){var i=s(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,i,n):e.call(String(i),r,n)},function(t,n){if(!p&&g||"string"===typeof n&&-1===n.indexOf(v)){var s=r(e,t,this,n);if(s.done)return s.value}var d=i(t),y=String(this),m="function"===typeof n;m||(n=String(n));var b=d.global;if(b){var x=d.unicode;d.lastIndex=0}for(var O=[];;){var S=l(d,y);if(null===S)break;if(O.push(S),!b)break;""===String(S[0])&&(d.lastIndex=u(y,a(d.lastIndex),x))}for(var w,k="",T=0,A=0;A<O.length;A++){S=O[A];for(var E=String(S[0]),P=h(f(o(S.index),y.length),0),C=[],j=1;j<S.length;j++)C.push(void 0===(w=S[j])?w:String(w));var M=S.groups;if(m){var N=[E].concat(C,P,y);void 0!==M&&N.push(M);var _=String(n.apply(void 0,N))}else _=c(E,y,P,C,M,n);P>=T&&(k+=y.slice(T,P)+_,T=P+E.length)}return k+y.slice(T)}]}))},1803:function(t,e,r){var n=r(1729),i=Math.floor,a="".replace,o=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,u,c,l){var h=r+t.length,f=u.length,p=s;return void 0!==c&&(c=n(c),p=o),a.call(l,p,(function(n,a){var o;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(h);case"<":o=c[a.slice(1,-1)];break;default:var s=+a;if(0===s)return n;if(s>f){var l=i(s/10);return 0===l?n:l<=f?void 0===u[l-1]?a.charAt(1):u[l-1]+a.charAt(1):n}o=u[s-1]}return void 0===o?"":o}))}},1804:function(t,e,r){"use strict";var n=r(1733),i=r(1756),a=r(1697),o=r(1698),s=r(1751),u=r(1734),c=r(1703),l=r(1735),h=r(1716),f=r(1696),p=[].push,g=Math.min,v=4294967295,d=!f((function(){return!RegExp(v,"y")}));n("split",2,(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=String(o(this)),a=void 0===r?v:r>>>0;if(0===a)return[];if(void 0===t)return[n];if(!i(t))return e.call(n,t,a);for(var s,u,c,l=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,d=new RegExp(t.source,f+"g");(s=h.call(d,n))&&!((u=d.lastIndex)>g&&(l.push(n.slice(g,s.index)),s.length>1&&s.index<n.length&&p.apply(l,s.slice(1)),c=s[0].length,g=u,l.length>=a));)d.lastIndex===s.index&&d.lastIndex++;return g===n.length?!c&&d.test("")||l.push(""):l.push(n.slice(g)),l.length>a?l.slice(0,a):l}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var i=o(this),a=void 0==e?void 0:e[t];return void 0!==a?a.call(e,i,r):n.call(String(i),e,r)},function(t,i){var o=r(n,t,this,i,n!==e);if(o.done)return o.value;var h=a(t),f=String(this),p=s(h,RegExp),y=h.unicode,m=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(d?"y":"g"),b=new p(d?h:"^(?:"+h.source+")",m),x=void 0===i?v:i>>>0;if(0===x)return[];if(0===f.length)return null===l(b,f)?[f]:[];for(var O=0,S=0,w=[];S<f.length;){b.lastIndex=d?S:0;var k,T=l(b,d?f:f.slice(S));if(null===T||(k=g(c(b.lastIndex+(d?0:S)),f.length))===O)S=u(f,S,y);else{if(w.push(f.slice(O,S)),w.length===x)return w;for(var A=1;A<=T.length-1;A++)if(w.push(T[A]),w.length===x)return w;S=O=k}}return w.push(f.slice(O)),w}]}),!d)},1805:function(t,e,r){"use strict";var n=r(1699),i=r(1708).f,a=r(1703),o=r(1731),s=r(1698),u=r(1732),c=r(1707),l="".startsWith,h=Math.min,f=u("startsWith");n({target:"String",proto:!0,forced:!(!c&&!f&&!!function(){var t=i(String.prototype,"startsWith");return t&&!t.writable}())&&!f},{startsWith:function(t){var e=String(s(this));o(t);var r=a(h(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return l?l.call(e,n,r):e.slice(r,r+n.length)===n}})},1806:function(t,e,r){"use strict";var n=r(1699),i=r(1807).trim;n({target:"String",proto:!0,forced:r(1808)("trim")},{trim:function(){return i(this)}})},1807:function(t,e,r){var n=r(1698),i="["+r(1757)+"]",a=RegExp("^"+i+i+"*"),o=RegExp(i+i+"*$"),s=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(a,"")),2&t&&(r=r.replace(o,"")),r}};t.exports={start:s(1),end:s(2),trim:s(3)}},1808:function(t,e,r){var n=r(1696),i=r(1757);t.exports=function(t){return n((function(){return!!i[t]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[t]()||i[t].name!==t}))}},1809:function(t,e,r){var n=r(1694),i=r(1810),a=r(1744),o=r(1702),s=r(1695),u=s("iterator"),c=s("toStringTag"),l=a.values;for(var h in i){var f=n[h],p=f&&f.prototype;if(p){if(p[u]!==l)try{o(p,u,l)}catch(v){p[u]=l}if(p[c]||o(p,c,h),i[h])for(var g in a)if(p[g]!==a[g])try{o(p,g,a[g])}catch(v){p[g]=a[g]}}}},1810:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},1811:function(t,e,r){(function(e){for(var n=r(1812),i="undefined"===typeof window?e:window,a=["moz","webkit"],o="AnimationFrame",s=i["request"+o],u=i["cancel"+o]||i["cancelRequest"+o],c=0;!s&&c<a.length;c++)s=i[a[c]+"Request"+o],u=i[a[c]+"Cancel"+o]||i[a[c]+"CancelRequest"+o];if(!s||!u){var l=0,h=0,f=[];s=function(t){if(0===f.length){var e=n(),r=Math.max(0,16.666666666666668-(e-l));l=r+e,setTimeout((function(){var t=f.slice(0);f.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(l)}catch(r){setTimeout((function(){throw r}),0)}}),Math.round(r))}return f.push({handle:++h,callback:t,cancelled:!1}),h},u=function(t){for(var e=0;e<f.length;e++)f[e].handle===t&&(f[e].cancelled=!0)}}t.exports=function(t){return s.call(i,t)},t.exports.cancel=function(){u.apply(i,arguments)},t.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=u}}).call(this,r(54))},1812:function(t,e,r){(function(e){(function(){var r,n,i,a,o,s;"undefined"!==typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!==typeof e&&null!==e&&e.hrtime?(t.exports=function(){return(r()-o)/1e6},n=e.hrtime,a=(r=function(){var t;return 1e9*(t=n())[0]+t[1]})(),s=1e9*e.uptime(),o=a-s):Date.now?(t.exports=function(){return Date.now()-i},i=Date.now()):(t.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,r(74))},1813:function(t,e){t.exports=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,a=r[n].process,o=i.exec(t);if(o){var s=a(o);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,n=0;n<r.length;n++)for(var i=r[n].example,a=0;a<i.length;a++)t[t.length]=i[a];for(var o in e)t[t.length]=o;var s=document.createElement("ul");s.setAttribute("id","rgbcolor-examples");for(n=0;n<t.length;n++)try{var u=document.createElement("li"),c=new RGBColor(t[n]),l=document.createElement("div");l.style.cssText="margin: 3px; border: 1px solid black; background:"+c.toHex()+"; color:"+c.toHex(),l.appendChild(document.createTextNode("test"));var h=document.createTextNode(" "+t[n]+" -> "+c.toRGB()+" -> "+c.toHex());u.appendChild(l),u.appendChild(h),s.appendChild(u)}catch(f){}return s}}},1814:function(t,e,r){"use strict";r.d(e,"a",(function(){return O}));var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function a(t,e){var r=t[0],n=t[1];return[r*Math.cos(e)-n*Math.sin(e),r*Math.sin(e)+n*Math.cos(e)]}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var s=Math.PI;function u(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var n=t.rX,i=t.rY,o=t.x,u=t.y;n=Math.abs(t.rX),i=Math.abs(t.rY);var c=a([(e-o)/2,(r-u)/2],-t.xRot/180*s),l=c[0],h=c[1],f=Math.pow(l,2)/Math.pow(n,2)+Math.pow(h,2)/Math.pow(i,2);1<f&&(n*=Math.sqrt(f),i*=Math.sqrt(f)),t.rX=n,t.rY=i;var p=Math.pow(n,2)*Math.pow(h,2)+Math.pow(i,2)*Math.pow(l,2),g=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(i,2)-p)/p)),v=n*h/i*g,d=-i*l/n*g,y=a([v,d],t.xRot/180*s);t.cX=y[0]+(e+o)/2,t.cY=y[1]+(r+u)/2,t.phi1=Math.atan2((h-d)/i,(l-v)/n),t.phi2=Math.atan2((-h-d)/i,(-l-v)/n),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*s),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*s),t.phi1*=180/s,t.phi2*=180/s}function c(t,e,r){o(t,e,r);var n=t*t+e*e-r*r;if(0>n)return[];if(0===n)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var i=Math.sqrt(n);return[[(t*r+e*i)/(t*t+e*e),(e*r-t*i)/(t*t+e*e)],[(t*r-e*i)/(t*t+e*e),(e*r+t*i)/(t*t+e*e)]]}var l,h=Math.PI/180;function f(t,e,r){return(1-r)*t+r*e}function p(t,e,r,n){return t+Math.cos(n/180*s)*e+Math.sin(n/180*s)*r}function g(t,e,r,n){var i=1e-6,a=e-t,o=r-e,s=3*a+3*(n-r)-6*o,u=6*(o-a),c=3*a;return Math.abs(s)<i?[-c/u]:function(t,e,r){void 0===r&&(r=1e-6);var n=t*t/4-e;if(n<-r)return[];if(n<=r)return[-t/2];var i=Math.sqrt(n);return[-t/2-i,-t/2+i]}(u/s,c/s,i)}function v(t,e,r,n,i){var a=1-i;return t*(a*a*a)+e*(3*a*a*i)+r*(3*a*i*i)+n*(i*i*i)}!function(t){function e(){return i((function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t}))}function r(){var t=NaN,e=NaN,r=NaN,n=NaN;return i((function(i,a,o){return i.type&O.SMOOTH_CURVE_TO&&(i.type=O.CURVE_TO,t=isNaN(t)?a:t,e=isNaN(e)?o:e,i.x1=i.relative?a-t:2*a-t,i.y1=i.relative?o-e:2*o-e),i.type&O.CURVE_TO?(t=i.relative?a+i.x2:i.x2,e=i.relative?o+i.y2:i.y2):(t=NaN,e=NaN),i.type&O.SMOOTH_QUAD_TO&&(i.type=O.QUAD_TO,r=isNaN(r)?a:r,n=isNaN(n)?o:n,i.x1=i.relative?a-r:2*a-r,i.y1=i.relative?o-n:2*o-n),i.type&O.QUAD_TO?(r=i.relative?a+i.x1:i.x1,n=i.relative?o+i.y1:i.y1):(r=NaN,n=NaN),i}))}function n(){var t=NaN,e=NaN;return i((function(r,n,i){if(r.type&O.SMOOTH_QUAD_TO&&(r.type=O.QUAD_TO,t=isNaN(t)?n:t,e=isNaN(e)?i:e,r.x1=r.relative?n-t:2*n-t,r.y1=r.relative?i-e:2*i-e),r.type&O.QUAD_TO){t=r.relative?n+r.x1:r.x1,e=r.relative?i+r.y1:r.y1;var a=r.x1,o=r.y1;r.type=O.CURVE_TO,r.x1=((r.relative?0:n)+2*a)/3,r.y1=((r.relative?0:i)+2*o)/3,r.x2=(r.x+2*a)/3,r.y2=(r.y+2*o)/3}else t=NaN,e=NaN;return r}))}function i(t){var e=0,r=0,n=NaN,i=NaN;return function(a){if(isNaN(n)&&!(a.type&O.MOVE_TO))throw new Error("path must start with moveto");var o=t(a,e,r,n,i);return a.type&O.CLOSE_PATH&&(e=n,r=i),void 0!==a.x&&(e=a.relative?e+a.x:a.x),void 0!==a.y&&(r=a.relative?r+a.y:a.y),a.type&O.MOVE_TO&&(n=e,i=r),o}}function s(t,e,r,n,a,s){return o(t,e,r,n,a,s),i((function(i,o,u,c){var l=i.x1,h=i.x2,f=i.relative&&!isNaN(c),p=void 0!==i.x?i.x:f?0:o,g=void 0!==i.y?i.y:f?0:u;function v(t){return t*t}i.type&O.HORIZ_LINE_TO&&0!==e&&(i.type=O.LINE_TO,i.y=i.relative?0:u),i.type&O.VERT_LINE_TO&&0!==r&&(i.type=O.LINE_TO,i.x=i.relative?0:o),void 0!==i.x&&(i.x=i.x*t+g*r+(f?0:a)),void 0!==i.y&&(i.y=p*e+i.y*n+(f?0:s)),void 0!==i.x1&&(i.x1=i.x1*t+i.y1*r+(f?0:a)),void 0!==i.y1&&(i.y1=l*e+i.y1*n+(f?0:s)),void 0!==i.x2&&(i.x2=i.x2*t+i.y2*r+(f?0:a)),void 0!==i.y2&&(i.y2=h*e+i.y2*n+(f?0:s));var d=t*n-e*r;if(void 0!==i.xRot&&(1!==t||0!==e||0!==r||1!==n))if(0===d)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=O.LINE_TO;else{var y=i.xRot*Math.PI/180,m=Math.sin(y),b=Math.cos(y),x=1/v(i.rX),S=1/v(i.rY),w=v(b)*x+v(m)*S,k=2*m*b*(x-S),T=v(m)*x+v(b)*S,A=w*n*n-k*e*n+T*e*e,E=k*(t*n+e*r)-2*(w*r*n+T*t*e),P=w*r*r-k*t*r+T*t*t,C=(Math.atan2(E,A-P)+Math.PI)%Math.PI/2,j=Math.sin(C),M=Math.cos(C);i.rX=Math.abs(d)/Math.sqrt(A*v(M)+E*j*M+P*v(j)),i.rY=Math.abs(d)/Math.sqrt(A*v(j)-E*j*M+P*v(M)),i.xRot=180*C/Math.PI}return void 0!==i.sweepFlag&&0>d&&(i.sweepFlag=+!i.sweepFlag),i}))}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),o(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return i((function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),i((function(n,i,a,o,s){if(isNaN(o)&&!(n.type&O.MOVE_TO))throw new Error("path must start with moveto");return e&&n.type&O.HORIZ_LINE_TO&&(n.type=O.LINE_TO,n.y=n.relative?0:a),r&&n.type&O.VERT_LINE_TO&&(n.type=O.LINE_TO,n.x=n.relative?0:i),t&&n.type&O.CLOSE_PATH&&(n.type=O.LINE_TO,n.x=n.relative?o-i:o,n.y=n.relative?s-a:s),n.type&O.ARC&&(0===n.rX||0===n.rY)&&(n.type=O.LINE_TO,delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag),n}))},t.NORMALIZE_ST=r,t.QT_TO_C=n,t.INFO=i,t.SANITIZE=function(t){void 0===t&&(t=0),o(t);var e=NaN,r=NaN,n=NaN,a=NaN;return i((function(i,o,s,u,c){var l=Math.abs,h=!1,f=0,p=0;if(i.type&O.SMOOTH_CURVE_TO&&(f=isNaN(e)?0:o-e,p=isNaN(r)?0:s-r),i.type&(O.CURVE_TO|O.SMOOTH_CURVE_TO)?(e=i.relative?o+i.x2:i.x2,r=i.relative?s+i.y2:i.y2):(e=NaN,r=NaN),i.type&O.SMOOTH_QUAD_TO?(n=isNaN(n)?o:2*o-n,a=isNaN(a)?s:2*s-a):i.type&O.QUAD_TO?(n=i.relative?o+i.x1:i.x1,a=i.relative?s+i.y1:i.y2):(n=NaN,a=NaN),i.type&O.LINE_COMMANDS||i.type&O.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&O.CURVE_TO||i.type&O.SMOOTH_CURVE_TO||i.type&O.QUAD_TO||i.type&O.SMOOTH_QUAD_TO){var g=void 0===i.x?0:i.relative?i.x:i.x-o,v=void 0===i.y?0:i.relative?i.y:i.y-s;f=isNaN(n)?void 0===i.x1?f:i.relative?i.x:i.x1-o:n-o,p=isNaN(a)?void 0===i.y1?p:i.relative?i.y:i.y1-s:a-s;var d=void 0===i.x2?0:i.relative?i.x:i.x2-o,y=void 0===i.y2?0:i.relative?i.y:i.y2-s;l(g)<=t&&l(v)<=t&&l(f)<=t&&l(p)<=t&&l(d)<=t&&l(y)<=t&&(h=!0)}return i.type&O.CLOSE_PATH&&l(o-u)<=t&&l(s-c)<=t&&(h=!0),h?[]:i}))},t.MATRIX=s,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),o(t,e,r);var n=Math.sin(t),i=Math.cos(t);return s(i,n,-n,i,e-e*i+r*n,r-e*n-r*i)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),o(t,e),s(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),o(t,e),s(t,0,0,e,0,0)},t.SKEW_X=function(t){return o(t),s(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return o(t),s(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),o(t),s(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),o(t),s(1,0,0,-1,0,t)},t.A_TO_C=function(){return i((function(t,e,r){return O.ARC===t.type?function(t,e,r){var n,i,o,s;t.cX||u(t,e,r);for(var c=Math.min(t.phi1,t.phi2),l=Math.max(t.phi1,t.phi2)-c,p=Math.ceil(l/90),g=new Array(p),v=e,d=r,y=0;y<p;y++){var m=f(t.phi1,t.phi2,y/p),b=f(t.phi1,t.phi2,(y+1)/p),x=b-m,S=4/3*Math.tan(x*h/4),w=[Math.cos(m*h)-S*Math.sin(m*h),Math.sin(m*h)+S*Math.cos(m*h)],k=w[0],T=w[1],A=[Math.cos(b*h),Math.sin(b*h)],E=A[0],P=A[1],C=[E+S*Math.sin(b*h),P-S*Math.cos(b*h)],j=C[0],M=C[1];g[y]={relative:t.relative,type:O.CURVE_TO};var N=function(e,r){var n=a([e*t.rX,r*t.rY],t.xRot),i=n[0],o=n[1];return[t.cX+i,t.cY+o]};n=N(k,T),g[y].x1=n[0],g[y].y1=n[1],i=N(j,M),g[y].x2=i[0],g[y].y2=i[1],o=N(E,P),g[y].x=o[0],g[y].y=o[1],t.relative&&(g[y].x1-=v,g[y].y1-=d,g[y].x2-=v,g[y].y2-=d,g[y].x-=v,g[y].y-=d),v=(s=[g[y].x,g[y].y])[0],d=s[1]}return g}(t,t.relative?0:e,t.relative?0:r):t}))},t.ANNOTATE_ARCS=function(){return i((function(t,e,r){return t.relative&&(e=0,r=0),O.ARC===t.type&&u(t,e,r),t}))},t.CLONE=function(){return function(t){var e={};for(var r in t)e[r]=t[r];return e}},t.CALCULATE_BOUNDS=function(){var t=e(),a=n(),o=r(),s=i((function(e,r,n){var i=o(a(t(function(t){var e={};for(var r in t)e[r]=t[r];return e}(e))));function l(t){t>s.maxX&&(s.maxX=t),t<s.minX&&(s.minX=t)}function h(t){t>s.maxY&&(s.maxY=t),t<s.minY&&(s.minY=t)}if(i.type&O.DRAWING_COMMANDS&&(l(r),h(n)),i.type&O.HORIZ_LINE_TO&&l(i.x),i.type&O.VERT_LINE_TO&&h(i.y),i.type&O.LINE_TO&&(l(i.x),h(i.y)),i.type&O.CURVE_TO){l(i.x),h(i.y);for(var f=0,d=g(r,i.x1,i.x2,i.x);f<d.length;f++)0<(_=d[f])&&1>_&&l(v(r,i.x1,i.x2,i.x,_));for(var y=0,m=g(n,i.y1,i.y2,i.y);y<m.length;y++)0<(_=m[y])&&1>_&&h(v(n,i.y1,i.y2,i.y,_))}if(i.type&O.ARC){l(i.x),h(i.y),u(i,r,n);for(var b=i.xRot/180*Math.PI,x=Math.cos(b)*i.rX,S=Math.sin(b)*i.rX,w=-Math.sin(b)*i.rY,k=Math.cos(b)*i.rY,T=i.phi1<i.phi2?[i.phi1,i.phi2]:-180>i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],A=T[0],E=T[1],P=function(t){var e=t[0],r=t[1],n=180*Math.atan2(r,e)/Math.PI;return n<A?n+360:n},C=0,j=c(w,-x,0).map(P);C<j.length;C++)(_=j[C])>A&&_<E&&l(p(i.cX,x,w,_));for(var M=0,N=c(k,-S,0).map(P);M<N.length;M++){var _;(_=N[M])>A&&_<E&&h(p(i.cY,S,k,_))}}return e}));return s.minX=1/0,s.maxX=-1/0,s.minY=1/0,s.maxY=-1/0,s}}(l||(l={}));var d,y=function(){function t(){}return t.prototype.round=function(t){return this.transform(l.ROUND(t))},t.prototype.toAbs=function(){return this.transform(l.TO_ABS())},t.prototype.toRel=function(){return this.transform(l.TO_REL())},t.prototype.normalizeHVZ=function(t,e,r){return this.transform(l.NORMALIZE_HVZ(t,e,r))},t.prototype.normalizeST=function(){return this.transform(l.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(l.QT_TO_C())},t.prototype.aToC=function(){return this.transform(l.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(l.SANITIZE(t))},t.prototype.translate=function(t,e){return this.transform(l.TRANSLATE(t,e))},t.prototype.scale=function(t,e){return this.transform(l.SCALE(t,e))},t.prototype.rotate=function(t,e,r){return this.transform(l.ROTATE(t,e,r))},t.prototype.matrix=function(t,e,r,n,i,a){return this.transform(l.MATRIX(t,e,r,n,i,a))},t.prototype.skewX=function(t){return this.transform(l.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(l.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(l.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(l.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(l.ANNOTATE_ARCS())},t}(),m=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},b=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},x=function(t){function e(){var e=t.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return i(e,t),e.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var n=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},i=0;i<t.length;i++){var a=t[i],o=!(this.curCommandType!==O.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),s=b(a)&&("0"===this.curNumber&&"0"===a||o);if(!b(a)||s)if("e"!==a&&"E"!==a)if("-"!==a&&"+"!==a||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==a||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&-1!==this.curCommandType){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===O.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(u),this.curArgs.length===S[this.curCommandType]&&(O.HORIZ_LINE_TO===this.curCommandType?n({type:O.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):O.VERT_LINE_TO===this.curCommandType?n({type:O.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===O.MOVE_TO||this.curCommandType===O.LINE_TO||this.curCommandType===O.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),O.MOVE_TO===this.curCommandType&&(this.curCommandType=O.LINE_TO)):this.curCommandType===O.CURVE_TO?n({type:O.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===O.SMOOTH_CURVE_TO?n({type:O.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===O.QUAD_TO?n({type:O.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===O.ARC&&n({type:O.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!m(a))if(","===a&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==a&&"-"!==a&&"."!==a)if(s)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==a&&"Z"!==a)if("h"===a||"H"===a)this.curCommandType=O.HORIZ_LINE_TO,this.curCommandRelative="h"===a;else if("v"===a||"V"===a)this.curCommandType=O.VERT_LINE_TO,this.curCommandRelative="v"===a;else if("m"===a||"M"===a)this.curCommandType=O.MOVE_TO,this.curCommandRelative="m"===a;else if("l"===a||"L"===a)this.curCommandType=O.LINE_TO,this.curCommandRelative="l"===a;else if("c"===a||"C"===a)this.curCommandType=O.CURVE_TO,this.curCommandRelative="c"===a;else if("s"===a||"S"===a)this.curCommandType=O.SMOOTH_CURVE_TO,this.curCommandRelative="s"===a;else if("q"===a||"Q"===a)this.curCommandType=O.QUAD_TO,this.curCommandRelative="q"===a;else if("t"===a||"T"===a)this.curCommandType=O.SMOOTH_QUAD_TO,this.curCommandRelative="t"===a;else{if("a"!==a&&"A"!==a)throw new SyntaxError('Unexpected character "'+a+'" at index '+i+".");this.curCommandType=O.ARC,this.curCommandRelative="a"===a}else e.push({type:O.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal="."===a}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var n=0,i=Object.getPrototypeOf(this).parse.call(this,e);n<i.length;n++){var a=i[n],o=t(a);Array.isArray(o)?r.push.apply(r,o):r.push(o)}return r}}})},e}(y),O=function(t){function e(r){var n=t.call(this)||this;return n.commands="string"==typeof r?e.parse(r):r,n}return i(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=l.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var e=[],r=0,n=this.commands;r<n.length;r++){var i=t(n[r]);Array.isArray(i)?e.push.apply(e,i):e.push(i)}return this.commands=e,this},e.encode=function(t){return function(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var n=t[r];if(n.type===O.CLOSE_PATH)e+="z";else if(n.type===O.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===O.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===O.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===O.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===O.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===O.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===O.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===O.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==O.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+r+".");e+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return e}(t)},e.parse=function(t){var e=new x,r=[];return e.parse(t,r),e.finish(r),r},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(y),S=((d={})[O.MOVE_TO]=2,d[O.LINE_TO]=2,d[O.HORIZ_LINE_TO]=1,d[O.VERT_LINE_TO]=1,d[O.CLOSE_PATH]=0,d[O.QUAD_TO]=4,d[O.SMOOTH_QUAD_TO]=2,d[O.CURVE_TO]=6,d[O.SMOOTH_CURVE_TO]=4,d[O.ARC]=7,d)},1815:function(t,e,r){"use strict";function n(t){return(n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.d(e,"a",(function(){return s}));var i=[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],a=[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 o(t,e,r,i,a){if("string"===typeof t&&(t=document.getElementById(t)),!t||"object"!==n(t)||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=t.getContext("2d");try{return o.getImageData(e,r,i,a)}catch(s){throw new Error("unable to access image data: "+s)}}function s(t,e,r,n,s,c){if(!(isNaN(c)||c<1)){c|=0;var l=o(t,e,r,n,s);l=function(t,e,r,n,o,s){for(var c,l=t.data,h=2*s+1,f=n-1,p=o-1,g=s+1,v=g*(g+1)/2,d=new u,y=d,m=1;m<h;m++)y=y.next=new u,m===g&&(c=y);y.next=d;for(var b=null,x=null,O=0,S=0,w=i[s],k=a[s],T=0;T<o;T++){y=d;for(var A=l[S],E=l[S+1],P=l[S+2],C=l[S+3],j=0;j<g;j++)y.r=A,y.g=E,y.b=P,y.a=C,y=y.next;for(var M=0,N=0,_=0,V=0,R=g*A,I=g*E,L=g*P,D=g*C,B=v*A,z=v*E,U=v*P,F=v*C,H=1;H<g;H++){var X=S+((f<H?f:H)<<2),Y=l[X],q=l[X+1],W=l[X+2],G=l[X+3],Q=g-H;B+=(y.r=Y)*Q,z+=(y.g=q)*Q,U+=(y.b=W)*Q,F+=(y.a=G)*Q,M+=Y,N+=q,_+=W,V+=G,y=y.next}b=d,x=c;for(var $=0;$<n;$++){var Z=F*w>>k;if(l[S+3]=Z,0!==Z){var K=255/Z;l[S]=(B*w>>k)*K,l[S+1]=(z*w>>k)*K,l[S+2]=(U*w>>k)*K}else l[S]=l[S+1]=l[S+2]=0;B-=R,z-=I,U-=L,F-=D,R-=b.r,I-=b.g,L-=b.b,D-=b.a;var J=$+s+1;J=O+(J<f?J:f)<<2,B+=M+=b.r=l[J],z+=N+=b.g=l[J+1],U+=_+=b.b=l[J+2],F+=V+=b.a=l[J+3],b=b.next;var tt=x,et=tt.r,rt=tt.g,nt=tt.b,it=tt.a;R+=et,I+=rt,L+=nt,D+=it,M-=et,N-=rt,_-=nt,V-=it,x=x.next,S+=4}O+=n}for(var at=0;at<n;at++){var ot=l[S=at<<2],st=l[S+1],ut=l[S+2],ct=l[S+3],lt=g*ot,ht=g*st,ft=g*ut,pt=g*ct,gt=v*ot,vt=v*st,dt=v*ut,yt=v*ct;y=d;for(var mt=0;mt<g;mt++)y.r=ot,y.g=st,y.b=ut,y.a=ct,y=y.next;for(var bt=n,xt=0,Ot=0,St=0,wt=0,kt=1;kt<=s;kt++){S=bt+at<<2;var Tt=g-kt;gt+=(y.r=ot=l[S])*Tt,vt+=(y.g=st=l[S+1])*Tt,dt+=(y.b=ut=l[S+2])*Tt,yt+=(y.a=ct=l[S+3])*Tt,wt+=ot,xt+=st,Ot+=ut,St+=ct,y=y.next,kt<p&&(bt+=n)}S=at,b=d,x=c;for(var At=0;At<o;At++){var Et=S<<2;l[Et+3]=ct=yt*w>>k,ct>0?(ct=255/ct,l[Et]=(gt*w>>k)*ct,l[Et+1]=(vt*w>>k)*ct,l[Et+2]=(dt*w>>k)*ct):l[Et]=l[Et+1]=l[Et+2]=0,gt-=lt,vt-=ht,dt-=ft,yt-=pt,lt-=b.r,ht-=b.g,ft-=b.b,pt-=b.a,Et=at+((Et=At+g)<p?Et:p)*n<<2,gt+=wt+=b.r=l[Et],vt+=xt+=b.g=l[Et+1],dt+=Ot+=b.b=l[Et+2],yt+=St+=b.a=l[Et+3],b=b.next,lt+=ot=x.r,ht+=st=x.g,ft+=ut=x.b,pt+=ct=x.a,wt-=ot,xt-=st,Ot-=ut,St-=ct,x=x.next,S+=n}}return t}(l,0,0,n,s,c),t.getContext("2d").putImageData(l,e,r)}}var u=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}}}]);
//# sourceMappingURL=4.4bc4103d.chunk.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit