text: (self.webpackChunksportorg_client=self.webpackChunksportorg_client||[]).push([[756],{6756:function(t,e,r){"use strict";r.r(e),r.d(e,{AElement:function(){return rn},AnimateColorElement:function(){return Wr},AnimateElement:function(){return Gr},AnimateTransformElement:function(){return Qr},BoundingBox:function(){return Tr},CB1:function(){return Ge},CB2:function(){return We},CB3:function(){return Qe},CB4:function(){return $e},Canvg:function(){return Vn},CircleElement:function(){return Vr},ClipPathElement:function(){return bn},DefsElement:function(){return Br},DescElement:function(){return On},Document:function(){return Nn},Element:function(){return mr},EllipseElement:function(){return Dr},FeColorMatrixElement:function(){return dn},FeCompositeElement:function(){return kn},FeDropShadowElement:function(){return Sn},FeGaussianBlurElement:function(){return Tn},FeMorphologyElement:function(){return An},FilterElement:function(){return wn},Font:function(){return kr},FontElement:function(){return Zr},FontFaceElement:function(){return Kr},GElement:function(){return Hr},GlyphElement:function(){return tn},GradientElement:function(){return Ur},ImageElement:function(){return sn},LineElement:function(){return Lr},LinearGradientElement:function(){return Xr},MarkerElement:function(){return Fr},MaskElement:function(){return mn},Matrix:function(){return pr},MissingGlyphElement:function(){return Jr},Mouse:function(){return nr},PSEUDO_ZERO:function(){return Ue},Parser:function(){return cr},PathElement:function(){return Nr},PathParser:function(){return Mr},PatternElement:function(){return zr},Point:function(){return rr},PolygonElement:function(){return jr},PolylineElement:function(){return Ir},Property:function(){return tr},QB1:function(){return Ze},QB2:function(){return Ke},QB3:function(){return Je},RadialGradientElement:function(){return Yr},RectElement:function(){return Rr},RenderedElement:function(){return Pr},Rotate:function(){return lr},SVGElement:function(){return _r},SVGFontLoader:function(){return fn},Scale:function(){return hr},Screen:function(){return ar},Skew:function(){return vr},SkewX:function(){return yr},SkewY:function(){return gr},StopElement:function(){return qr},StyleElement:function(){return ln},SymbolElement:function(){return cn},TRefElement:function(){return en},TSpanElement:function(){return Cr},TextElement:function(){return Or},TextPathElement:function(){return un},TitleElement:function(){return Pn},Transform:function(){return dr},Translate:function(){return fr},UnknownElement:function(){return xr},UseElement:function(){return hn},ViewPort:function(){return er},compressSpaces:function(){return Pe},default:function(){return Ln},getSelectorSpecificity:function(){return He},normalizeAttributeName:function(){return Ne},normalizeColor:function(){return Re},parseExternalUrl:function(){return _e},presets:function(){return Dn},toNumbers:function(){return Ee},trimLeft:function(){return Oe},trimRight:function(){return Ce},vectorMagnitude:function(){return Xe},vectorsAngle:function(){return qe},vectorsRatio:function(){return Ye}});var n=r(79378),i=r.n(n),o=r(37652),a=r.n(o),u=r(75951),s=r.n(u),c=r(48422),f=r(66424),l=r(55345),h=r.n(l),p=r(71204),v=r(41814);function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function g(t,e){var r;if(t){if("string"==typeof t)return y(t,e);var n=p(r=Object.prototype.toString.call(t)).call(r,8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return v(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}}function d(t,e){return function(t){if(c(t))return t}(t)||function(t,e){var r=null==t?null:void 0!==f&&l(t)||t["@@iterator"];if(null!=r){var n,i,o=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(s){u=!0,i=s}finally{try{!a&&null!=r.return&&r.return()}finally{if(u)throw i}}return o}}(t,e)||g(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m=r(24037),x=r.n(m),b=r(86362),w=r.n(b),S=r(6454),A=r.n(S),k=r(87119),T=r.n(k),P=r(70803),O=r.n(P),C=r(47030),E=r.n(C),M=r(33519),N=r.n(M),_=r(26823),R=r.n(_),V=r(48069),D=r.n(V),L=r(65818);function I(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(c){return void r(c)}u.done?e(s):L.resolve(s).then(n,i)}function j(t){return function(){var e=this,r=arguments;return new L(function(n,i){var o=t.apply(e,r);function a(t){I(o,n,i,a,u,"next",t)}function u(t){I(o,n,i,a,u,"throw",t)}a(void 0)})}}var z=r(97677);function F(t,e,r){return e in t?z(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function B(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),z(t,n.key,n)}}function U(t,e,r){return e&&H(t.prototype,e),r&&H(t,r),t}var X=r(9176),Y=r.n(X),q=r(95634),G=r.n(q),W=r(19290),Q=r.n(W),$=r(76946),Z=r.n($),K=r(96883),J=r.n(K),tt=r(8650),et=r.n(tt),rt=r(97352),nt=r.n(rt),it=r(26743),ot=r.n(it),at=r(81997),ut=r.n(at),st=r(38912),ct=r.n(st),ft=r(96951),lt=r(15482);function ht(t,e){return(ht=lt||function(t,e){return t.__proto__=e,t})(t,e)}function pt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=ft(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ht(t,e)}var vt=r(77420);function yt(t){return(yt="function"==typeof f&&"symbol"==typeof vt?function(t){return typeof t}:function(t){return t&&"function"==typeof f&&t.constructor===f&&t!==f.prototype?"symbol":typeof t})(t)}function gt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dt(t,e){return!e||"object"!==yt(e)&&"function"!=typeof e?gt(t):e}var mt=r(68625);function xt(t){return(xt=lt?mt:function(t){return t.__proto__||mt(t)})(t)}var bt=r(96102),wt=r.n(bt),St=r(61135),At=r.n(St),kt=r(2074),Tt=r.n(kt),Pt=r(31259),Ot=r.n(Pt),Ct=r(29793),Et=r.n(Ct),Mt=r(99951),Nt=r(36249);function _t(t,e,r){return(_t="undefined"!=typeof Reflect&&Mt?Mt:function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=xt(t)););return t}(t,e);if(n){var i=Nt(n,e);return i.get?i.get.call(r):i.value}})(t,e,r||t)}var Rt=r(80514),Vt=r.n(Rt),Dt=function(t,e){return(Dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function Lt(t,e){function r(){this.constructor=t}Dt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function It(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 jt(){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 zt=Math.PI;function Ft(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var n=t.rX,i=t.rY,o=t.x,a=t.y;n=Math.abs(t.rX),i=Math.abs(t.rY);var u=It([(e-o)/2,(r-a)/2],-t.xRot/180*zt),s=u[0],c=u[1],f=Math.pow(s,2)/Math.pow(n,2)+Math.pow(c,2)/Math.pow(i,2);1<f&&(n*=Math.sqrt(f),i*=Math.sqrt(f)),t.rX=n,t.rY=i;var l=Math.pow(n,2)*Math.pow(c,2)+Math.pow(i,2)*Math.pow(s,2),h=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(i,2)-l)/l)),p=n*c/i*h,v=-i*s/n*h,y=It([p,v],t.xRot/180*zt);t.cX=y[0]+(e+o)/2,t.cY=y[1]+(r+a)/2,t.phi1=Math.atan2((c-v)/i,(s-p)/n),t.phi2=Math.atan2((-c-v)/i,(-s-p)/n),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*zt),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*zt),t.phi1*=180/zt,t.phi2*=180/zt}function Bt(t,e,r){jt(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 Ht,Ut=Math.PI/180;function Xt(t,e,r){return(1-r)*t+r*e}function Yt(t,e,r,n){return t+Math.cos(n/180*zt)*e+Math.sin(n/180*zt)*r}function qt(t,e,r,n){var i=e-t,o=r-e,a=3*i+3*(n-r)-6*o,u=6*(o-i),s=3*i;return Math.abs(a)<1e-6?[-s/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/a,s/a,1e-6)}function Gt(t,e,r,n,i){var o=1-i;return t*(o*o*o)+e*(3*o*o*i)+r*(3*o*i*i)+n*(i*i*i)}!function(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,o,a){return i.type&Jt.SMOOTH_CURVE_TO&&(i.type=Jt.CURVE_TO,t=isNaN(t)?o:t,e=isNaN(e)?a:e,i.x1=i.relative?o-t:2*o-t,i.y1=i.relative?a-e:2*a-e),i.type&Jt.CURVE_TO?(t=i.relative?o+i.x2:i.x2,e=i.relative?a+i.y2:i.y2):(t=NaN,e=NaN),i.type&Jt.SMOOTH_QUAD_TO&&(i.type=Jt.QUAD_TO,r=isNaN(r)?o:r,n=isNaN(n)?a:n,i.x1=i.relative?o-r:2*o-r,i.y1=i.relative?a-n:2*a-n),i.type&Jt.QUAD_TO?(r=i.relative?o+i.x1:i.x1,n=i.relative?a+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&Jt.SMOOTH_QUAD_TO&&(r.type=Jt.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&Jt.QUAD_TO){t=r.relative?n+r.x1:r.x1,e=r.relative?i+r.y1:r.y1;var o=r.x1,a=r.y1;r.type=Jt.CURVE_TO,r.x1=((r.relative?0:n)+2*o)/3,r.y1=((r.relative?0:i)+2*a)/3,r.x2=(r.x+2*o)/3,r.y2=(r.y+2*a)/3}else t=NaN,e=NaN;return r})}function i(t){var e=0,r=0,n=NaN,i=NaN;return function(o){if(isNaN(n)&&!(o.type&Jt.MOVE_TO))throw new Error("path must start with moveto");var a=t(o,e,r,n,i);return o.type&Jt.CLOSE_PATH&&(e=n,r=i),void 0!==o.x&&(e=o.relative?e+o.x:o.x),void 0!==o.y&&(r=o.relative?r+o.y:o.y),o.type&Jt.MOVE_TO&&(n=e,i=r),a}}function o(t,e,r,n,o,a){return jt(t,e,r,n,o,a),i(function(i,u,s,c){var f=i.x1,l=i.x2,h=i.relative&&!isNaN(c),p=void 0!==i.x?i.x:h?0:u,v=void 0!==i.y?i.y:h?0:s;function y(t){return t*t}i.type&Jt.HORIZ_LINE_TO&&0!==e&&(i.type=Jt.LINE_TO,i.y=i.relative?0:s),i.type&Jt.VERT_LINE_TO&&0!==r&&(i.type=Jt.LINE_TO,i.x=i.relative?0:u),void 0!==i.x&&(i.x=i.x*t+v*r+(h?0:o)),void 0!==i.y&&(i.y=p*e+i.y*n+(h?0:a)),void 0!==i.x1&&(i.x1=i.x1*t+i.y1*r+(h?0:o)),void 0!==i.y1&&(i.y1=f*e+i.y1*n+(h?0:a)),void 0!==i.x2&&(i.x2=i.x2*t+i.y2*r+(h?0:o)),void 0!==i.y2&&(i.y2=l*e+i.y2*n+(h?0:a));var g=t*n-e*r;if(void 0!==i.xRot&&(1!==t||0!==e||0!==r||1!==n))if(0===g)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=Jt.LINE_TO;else{var d=i.xRot*Math.PI/180,m=Math.sin(d),x=Math.cos(d),b=1/y(i.rX),w=1/y(i.rY),S=y(x)*b+y(m)*w,A=2*m*x*(b-w),k=y(m)*b+y(x)*w,T=S*n*n-A*e*n+k*e*e,P=A*(t*n+e*r)-2*(S*r*n+k*t*e),O=S*r*r-A*t*r+k*t*t,C=(Math.atan2(P,T-O)+Math.PI)%Math.PI/2,E=Math.sin(C),M=Math.cos(C);i.rX=Math.abs(g)/Math.sqrt(T*y(M)+P*E*M+O*y(E)),i.rY=Math.abs(g)/Math.sqrt(T*y(E)-P*E*M+O*y(M)),i.xRot=180*C/Math.PI}return void 0!==i.sweepFlag&&0>g&&(i.sweepFlag=+!i.sweepFlag),i})}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),jt(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,o,a,u){if(isNaN(a)&&!(n.type&Jt.MOVE_TO))throw new Error("path must start with moveto");return e&&n.type&Jt.HORIZ_LINE_TO&&(n.type=Jt.LINE_TO,n.y=n.relative?0:o),r&&n.type&Jt.VERT_LINE_TO&&(n.type=Jt.LINE_TO,n.x=n.relative?0:i),t&&n.type&Jt.CLOSE_PATH&&(n.type=Jt.LINE_TO,n.x=n.relative?a-i:a,n.y=n.relative?u-o:u),n.type&Jt.ARC&&(0===n.rX||0===n.rY)&&(n.type=Jt.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),jt(t);var e=NaN,r=NaN,n=NaN,o=NaN;return i(function(i,a,u,s,c){var f=Math.abs,l=!1,h=0,p=0;if(i.type&Jt.SMOOTH_CURVE_TO&&(h=isNaN(e)?0:a-e,p=isNaN(r)?0:u-r),i.type&(Jt.CURVE_TO|Jt.SMOOTH_CURVE_TO)?(e=i.relative?a+i.x2:i.x2,r=i.relative?u+i.y2:i.y2):(e=NaN,r=NaN),i.type&Jt.SMOOTH_QUAD_TO?(n=isNaN(n)?a:2*a-n,o=isNaN(o)?u:2*u-o):i.type&Jt.QUAD_TO?(n=i.relative?a+i.x1:i.x1,o=i.relative?u+i.y1:i.y2):(n=NaN,o=NaN),i.type&Jt.LINE_COMMANDS||i.type&Jt.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&Jt.CURVE_TO||i.type&Jt.SMOOTH_CURVE_TO||i.type&Jt.QUAD_TO||i.type&Jt.SMOOTH_QUAD_TO){var v=void 0===i.x?0:i.relative?i.x:i.x-a,y=void 0===i.y?0:i.relative?i.y:i.y-u;h=isNaN(n)?void 0===i.x1?h:i.relative?i.x:i.x1-a:n-a,p=isNaN(o)?void 0===i.y1?p:i.relative?i.y:i.y1-u:o-u;var g=void 0===i.x2?0:i.relative?i.x:i.x2-a,d=void 0===i.y2?0:i.relative?i.y:i.y2-u;f(v)<=t&&f(y)<=t&&f(h)<=t&&f(p)<=t&&f(g)<=t&&f(d)<=t&&(l=!0)}return i.type&Jt.CLOSE_PATH&&f(a-s)<=t&&f(u-c)<=t&&(l=!0),l?[]:i})},t.MATRIX=o,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),jt(t,e,r);var n=Math.sin(t),i=Math.cos(t);return o(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),jt(t,e),o(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),jt(t,e),o(t,0,0,e,0,0)},t.SKEW_X=function(t){return jt(t),o(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return jt(t),o(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),jt(t),o(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),jt(t),o(1,0,0,-1,0,t)},t.A_TO_C=function(){return i(function(t,e,r){return Jt.ARC===t.type?function(t,e,r){var n,i,o,a;t.cX||Ft(t,e,r);for(var u=Math.min(t.phi1,t.phi2),s=Math.max(t.phi1,t.phi2)-u,c=Math.ceil(s/90),f=new Array(c),l=e,h=r,p=0;p<c;p++){var v=Xt(t.phi1,t.phi2,p/c),y=Xt(t.phi1,t.phi2,(p+1)/c),g=4/3*Math.tan((y-v)*Ut/4),d=[Math.cos(v*Ut)-g*Math.sin(v*Ut),Math.sin(v*Ut)+g*Math.cos(v*Ut)],m=d[0],x=d[1],b=[Math.cos(y*Ut),Math.sin(y*Ut)],w=b[0],S=b[1],A=[w+g*Math.sin(y*Ut),S-g*Math.cos(y*Ut)],k=A[0],T=A[1];f[p]={relative:t.relative,type:Jt.CURVE_TO};var P=function(e,r){var n=It([e*t.rX,r*t.rY],t.xRot);return[t.cX+n[0],t.cY+n[1]]};n=P(m,x),f[p].x1=n[0],f[p].y1=n[1],i=P(k,T),f[p].x2=i[0],f[p].y2=i[1],o=P(w,S),f[p].x=o[0],f[p].y=o[1],t.relative&&(f[p].x1-=l,f[p].y1-=h,f[p].x2-=l,f[p].y2-=h,f[p].x-=l,f[p].y-=h),l=(a=[f[p].x,f[p].y])[0],h=a[1]}return f}(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),Jt.ARC===t.type&&Ft(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(),o=n(),a=r(),u=i(function(e,r,n){var i=a(o(t(function(t){var e={};for(var r in t)e[r]=t[r];return e}(e))));function s(t){t>u.maxX&&(u.maxX=t),t<u.minX&&(u.minX=t)}function c(t){t>u.maxY&&(u.maxY=t),t<u.minY&&(u.minY=t)}if(i.type&Jt.DRAWING_COMMANDS&&(s(r),c(n)),i.type&Jt.HORIZ_LINE_TO&&s(i.x),i.type&Jt.VERT_LINE_TO&&c(i.y),i.type&Jt.LINE_TO&&(s(i.x),c(i.y)),i.type&Jt.CURVE_TO){s(i.x),c(i.y);for(var f=0,l=qt(r,i.x1,i.x2,i.x);f<l.length;f++)0<(O=l[f])&&1>O&&s(Gt(r,i.x1,i.x2,i.x,O));for(var h=0,p=qt(n,i.y1,i.y2,i.y);h<p.length;h++)0<(O=p[h])&&1>O&&c(Gt(n,i.y1,i.y2,i.y,O))}if(i.type&Jt.ARC){s(i.x),c(i.y),Ft(i,r,n);for(var v=i.xRot/180*Math.PI,y=Math.cos(v)*i.rX,g=Math.sin(v)*i.rX,d=-Math.sin(v)*i.rY,m=Math.cos(v)*i.rY,x=i.phi1<i.phi2?[i.phi1,i.phi2]:-180>i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],b=x[0],w=x[1],S=function(t){var e=180*Math.atan2(t[1],t[0])/Math.PI;return e<b?e+360:e},A=0,k=Bt(d,-y,0).map(S);A<k.length;A++)(O=k[A])>b&&O<w&&s(Yt(i.cX,y,d,O));for(var T=0,P=Bt(m,-g,0).map(S);T<P.length;T++){var O;(O=P[T])>b&&O<w&&c(Yt(i.cY,g,m,O))}}return e});return u.minX=1/0,u.maxX=-1/0,u.minY=1/0,u.maxY=-1/0,u}}(Ht||(Ht={}));var Wt,Qt=function(){function t(){}return t.prototype.round=function(t){return this.transform(Ht.ROUND(t))},t.prototype.toAbs=function(){return this.transform(Ht.TO_ABS())},t.prototype.toRel=function(){return this.transform(Ht.TO_REL())},t.prototype.normalizeHVZ=function(t,e,r){return this.transform(Ht.NORMALIZE_HVZ(t,e,r))},t.prototype.normalizeST=function(){return this.transform(Ht.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(Ht.QT_TO_C())},t.prototype.aToC=function(){return this.transform(Ht.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(Ht.SANITIZE(t))},t.prototype.translate=function(t,e){return this.transform(Ht.TRANSLATE(t,e))},t.prototype.scale=function(t,e){return this.transform(Ht.SCALE(t,e))},t.prototype.rotate=function(t,e,r){return this.transform(Ht.ROTATE(t,e,r))},t.prototype.matrix=function(t,e,r,n,i,o){return this.transform(Ht.MATRIX(t,e,r,n,i,o))},t.prototype.skewX=function(t){return this.transform(Ht.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(Ht.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(Ht.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(Ht.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(Ht.ANNOTATE_ARCS())},t}(),$t=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},Zt=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},Kt=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 Lt(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 o=t[i],a=!(this.curCommandType!==Jt.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),u=Zt(o)&&("0"===this.curNumber&&"0"===o||a);if(!Zt(o)||u)if("e"!==o&&"E"!==o)if("-"!==o&&"+"!==o||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==o||this.curNumberHasExp||this.curNumberHasDecimal||a){if(this.curNumber&&-1!==this.curCommandType){var s=Number(this.curNumber);if(isNaN(s))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===Jt.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>s)throw new SyntaxError('Expected positive number, got "'+s+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(s),this.curArgs.length===te[this.curCommandType]&&(Jt.HORIZ_LINE_TO===this.curCommandType?n({type:Jt.HORIZ_LINE_TO,relative:this.curCommandRelative,x:s}):Jt.VERT_LINE_TO===this.curCommandType?n({type:Jt.VERT_LINE_TO,relative:this.curCommandRelative,y:s}):this.curCommandType===Jt.MOVE_TO||this.curCommandType===Jt.LINE_TO||this.curCommandType===Jt.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Jt.MOVE_TO===this.curCommandType&&(this.curCommandType=Jt.LINE_TO)):this.curCommandType===Jt.CURVE_TO?n({type:Jt.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===Jt.SMOOTH_CURVE_TO?n({type:Jt.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Jt.QUAD_TO?n({type:Jt.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Jt.ARC&&n({type:Jt.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!$t(o))if(","===o&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==o&&"-"!==o&&"."!==o)if(u)this.curNumber=o,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==o&&"Z"!==o)if("h"===o||"H"===o)this.curCommandType=Jt.HORIZ_LINE_TO,this.curCommandRelative="h"===o;else if("v"===o||"V"===o)this.curCommandType=Jt.VERT_LINE_TO,this.curCommandRelative="v"===o;else if("m"===o||"M"===o)this.curCommandType=Jt.MOVE_TO,this.curCommandRelative="m"===o;else if("l"===o||"L"===o)this.curCommandType=Jt.LINE_TO,this.curCommandRelative="l"===o;else if("c"===o||"C"===o)this.curCommandType=Jt.CURVE_TO,this.curCommandRelative="c"===o;else if("s"===o||"S"===o)this.curCommandType=Jt.SMOOTH_CURVE_TO,this.curCommandRelative="s"===o;else if("q"===o||"Q"===o)this.curCommandType=Jt.QUAD_TO,this.curCommandRelative="q"===o;else if("t"===o||"T"===o)this.curCommandType=Jt.SMOOTH_QUAD_TO,this.curCommandRelative="t"===o;else{if("a"!==o&&"A"!==o)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+".");this.curCommandType=Jt.ARC,this.curCommandRelative="a"===o}else e.push({type:Jt.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=o,this.curNumberHasDecimal="."===o}else this.curNumber+=o,this.curNumberHasDecimal=!0;else this.curNumber+=o;else this.curNumber+=o,this.curNumberHasExp=!0;else this.curNumber+=o,this.curNumberHasExpDigits=this.curNumberHasExp}return e},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 o=t(i[n]);Array.isArray(o)?r.push.apply(r,o):r.push(o)}return r}}})},e}(Qt),Jt=function(t){function e(r){var n=t.call(this)||this;return n.commands="string"==typeof r?e.parse(r):r,n}return Lt(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=Ht.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===Jt.CLOSE_PATH)e+="z";else if(n.type===Jt.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===Jt.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===Jt.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===Jt.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===Jt.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Jt.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Jt.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===Jt.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==Jt.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+r+".");e+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return e}(t)},e.parse=function(t){var e=new Kt,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}(Qt),te=((Wt={})[Jt.MOVE_TO]=2,Wt[Jt.LINE_TO]=2,Wt[Jt.HORIZ_LINE_TO]=1,Wt[Jt.VERT_LINE_TO]=1,Wt[Jt.CLOSE_PATH]=0,Wt[Jt.QUAD_TO]=4,Wt[Jt.SMOOTH_QUAD_TO]=2,Wt[Jt.CURVE_TO]=6,Wt[Jt.SMOOTH_CURVE_TO]=4,Wt[Jt.ARC]=7,Wt),ee=r(35171),re=r.n(ee),ne=r(59263),ie=r.n(ne),oe=r(62468),ae=r.n(oe),ue=r(55266),se=r.n(ue),ce=r(2662),fe=r.n(ce),le=r(78937),he=r.n(le),pe=r(2298),ve=r.n(pe),ye=r(84509),ge=r.n(ye),de=r(13673),me=r.n(de),xe=r(65163),be=r.n(xe);function we(t){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Se=[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],Ae=[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 ke(t,e,r,n,i,o){if(!(isNaN(o)||o<1)){o|=0;var a=function(t,e,r,n,i){if("string"==typeof t&&(t=document.getElementById(t)),!t||"object"!==we(t)||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=t.getContext("2d");try{return o.getImageData(e,r,n,i)}catch(a){throw new Error("unable to access image data: "+a)}}(t,e,r,n,i);a=function(t,e,r,n,i,o){for(var a,u=t.data,s=2*o+1,c=n-1,f=i-1,l=o+1,h=l*(l+1)/2,p=new Te,v=p,y=1;y<s;y++)v=v.next=new Te,y===l&&(a=v);v.next=p;for(var g=null,d=null,m=0,x=0,b=Se[o],w=Ae[o],S=0;S<i;S++){v=p;for(var A=u[x],k=u[x+1],T=u[x+2],P=u[x+3],O=0;O<l;O++)v.r=A,v.g=k,v.b=T,v.a=P,v=v.next;for(var C=0,E=0,M=0,N=0,_=l*A,R=l*k,V=l*T,D=l*P,L=h*A,I=h*k,j=h*T,z=h*P,F=1;F<l;F++){var B=x+((c<F?c:F)<<2),H=u[B],U=u[B+1],X=u[B+2],Y=u[B+3],q=l-F;L+=(v.r=H)*q,I+=(v.g=U)*q,j+=(v.b=X)*q,z+=(v.a=Y)*q,C+=H,E+=U,M+=X,N+=Y,v=v.next}g=p,d=a;for(var G=0;G<n;G++){var W=z*b>>w;if(u[x+3]=W,0!==W){var Q=255/W;u[x]=(L*b>>w)*Q,u[x+1]=(I*b>>w)*Q,u[x+2]=(j*b>>w)*Q}else u[x]=u[x+1]=u[x+2]=0;L-=_,I-=R,j-=V,z-=D,_-=g.r,R-=g.g,V-=g.b,D-=g.a;var $=G+o+1;L+=C+=g.r=u[$=m+($<c?$:c)<<2],I+=E+=g.g=u[$+1],j+=M+=g.b=u[$+2],z+=N+=g.a=u[$+3],g=g.next;var Z=d.r,K=d.g,J=d.b,tt=d.a;_+=Z,R+=K,V+=J,D+=tt,C-=Z,E-=K,M-=J,N-=tt,d=d.next,x+=4}m+=n}for(var et=0;et<n;et++){var rt=u[x=et<<2],nt=u[x+1],it=u[x+2],ot=u[x+3],at=l*rt,ut=l*nt,st=l*it,ct=l*ot,ft=h*rt,lt=h*nt,ht=h*it,pt=h*ot;v=p;for(var vt=0;vt<l;vt++)v.r=rt,v.g=nt,v.b=it,v.a=ot,v=v.next;for(var yt=n,gt=0,dt=0,mt=0,xt=0,bt=1;bt<=o;bt++){var wt=l-bt;ft+=(v.r=rt=u[x=yt+et<<2])*wt,lt+=(v.g=nt=u[x+1])*wt,ht+=(v.b=it=u[x+2])*wt,pt+=(v.a=ot=u[x+3])*wt,xt+=rt,gt+=nt,dt+=it,mt+=ot,v=v.next,bt<f&&(yt+=n)}x=et,g=p,d=a;for(var St=0;St<i;St++){var At=x<<2;u[At+3]=ot=pt*b>>w,ot>0?(u[At]=(ft*b>>w)*(ot=255/ot),u[At+1]=(lt*b>>w)*ot,u[At+2]=(ht*b>>w)*ot):u[At]=u[At+1]=u[At+2]=0,ft-=at,lt-=ut,ht-=st,pt-=ct,at-=g.r,ut-=g.g,st-=g.b,ct-=g.a,At=et+((At=St+l)<f?At:f)*n<<2,ft+=xt+=g.r=u[At],lt+=gt+=g.g=u[At+1],ht+=dt+=g.b=u[At+2],pt+=mt+=g.a=u[At+3],g=g.next,at+=rt=d.r,ut+=nt=d.g,st+=it=d.b,ct+=ot=d.a,xt-=rt,gt-=nt,dt-=it,mt-=ot,d=d.next,x+=n}}return t}(a,0,0,n,i,o),t.getContext("2d").putImageData(a,e,r)}}var Te=function t(){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function Pe(t){return t.replace(/(?!\u3000)\s+/gm," ")}function Oe(t){return t.replace(/^[\n \t]+/,"")}function Ce(t){return t.replace(/[\n \t]+$/,"")}function Ee(t){var e=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return s()(e).call(e,a())}var Me=/^[A-Z-]+$/;function Ne(t){return Me.test(t)?t.toLowerCase():t}function _e(t){var e=t.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return e[2]||e[3]||e[4]}function Re(t){if(!i()(t).call(t,"rgb"))return t;var e=3;return t.replace(/\d+(\.\d+)?/g,function(t,r){return e--&&r?String(Math.round(a()(t))):t})}var Ve=/(\[[^\]]+\])/g,De=/(#[^\s\+>~\.\[:]+)/g,Le=/(\.[^\s\+>~\.\[:]+)/g,Ie=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,je=/(:[\w-]+\([^\)]*\))/gi,ze=/(:[^\s\+>~\.\[:]+)/g,Fe=/([^\s\+>~\.\[:]+)/g;function Be(t,e){var r=t.match(e);return r?[t.replace(e," "),r.length]:[t,0]}function He(t){var e=[0,0,0],r=t.replace(/:not\(([^\)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),n=d(Be(r,Ve),2);r=n[0],e[1]+=n[1];var i=d(Be(r,De),2);r=i[0],e[0]+=i[1];var o=d(Be(r,Le),2);r=o[0],e[1]+=o[1];var a=d(Be(r,Ie),2);r=a[0],e[2]+=a[1];var u=d(Be(r,je),2);r=u[0],e[1]+=u[1];var s=d(Be(r,ze),2);r=s[0],e[1]+=s[1];var c=d(Be(r=r.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),Fe),2);return r=c[0],e[2]+=c[1],e.join("")}var Ue=1e-8;function Xe(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function Ye(t,e){return(t[0]*e[0]+t[1]*e[1])/(Xe(t)*Xe(e))}function qe(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ye(t,e))}function Ge(t){return t*t*t}function We(t){return 3*t*t*(1-t)}function Qe(t){return 3*t*(1-t)*(1-t)}function $e(t){return(1-t)*(1-t)*(1-t)}function Ze(t){return t*t}function Ke(t){return 2*t*(1-t)}function Je(t){return(1-t)*(1-t)}var tr=function(){function t(e,r,n){B(this,t),this.document=e,this.name=r,this.value=n,this.isNormalizedColor=!1}return U(t,[{key:"split",value:function(){var e,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",i=this.document,o=this.name;return s()(e=ot()(r=Pe(this.getString())).call(r).split(n)).call(e,function(e){return new t(i,o,e)})}},{key:"hasValue",value:function(t){var e=this.value;return null!==e&&""!==e&&(t||0!==e)&&void 0!==e}},{key:"isString",value:function(t){var e=this.value,r="string"==typeof e;return r&&t?t.test(e):r}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case/px$/.test(t):case/^[0-9]+$/.test(t):return!0;default:return!1}}},{key:"setValue",value:function(t){return this.value=t,this}},{key:"getValue",value:function(t){return void 0===t||this.hasValue()?this.value:t}},{key:"getNumber",value:function(t){if(!this.hasValue())return void 0===t?0:a()(t);var e=this.value,r=a()(e);return this.isString(/%$/)&&(r/=100),r}},{key:"getString",value:function(t){return void 0===t||this.hasValue()?void 0===this.value?"":String(this.value):String(t)}},{key:"getColor",value:function(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=Re(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=d(r,2),i=n[0],o=n[1],a=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(a.computeSize("x"),a.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(a.computeSize("x"),a.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*a.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*a.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(/%$/)&&o:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*a.computeSize(i);default:var u=this.getNumber();return e&&u<1?u*a.computeSize(i):u}}},{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=t.match(/#([^\)'"]+)/);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,o=0;o<n&&(","===r[o]&&i++,3!==i);o++);if(e.hasValue()&&this.isString()&&3!==i){var a=new(ut())(r);a.ok&&(a.alpha=e.getNumber(),r=a.toRGBA())}return new t(this.document,this.name,r)}}],[{key:"empty",value:function(e){return new t(e,"EMPTY","")}}]),t}();tr.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 er=function(){function t(){B(this,t),this.viewPorts=[]}return U(t,[{key:"clear",value:function(){this.viewPorts=[]}},{key:"setCurrent",value:function(t,e){this.viewPorts.push({width:t,height:e})}},{key:"removeCurrent",value:function(){this.viewPorts.pop()}},{key:"getCurrent",value:function(){var t=this.viewPorts;return t[t.length-1]}},{key:"computeSize",value:function(t){return"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}}]),t}(),rr=function(){function t(e,r){B(this,t),this.x=e,this.y=r}return U(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[1]+r*t[3]+t[5];this.x=e*t[0]+r*t[2]+t[4],this.y=n}}],[{key:"parse",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Ee(e),i=d(n,2),o=i[0],a=void 0===o?r:o,u=i[1],s=void 0===u?r:u;return new t(a,s)}},{key:"parseScale",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=Ee(e),i=d(n,2),o=i[0],a=void 0===o?r:o,u=i[1],s=void 0===u?a:u;return new t(a,s)}},{key:"parsePath",value:function(e){for(var r=Ee(e),n=r.length,i=[],o=0;o<n;o+=2)i.push(new t(r[o],r[o+1]));return i}}]),t}(),nr=function(){function t(e){var r,n;B(this,t),this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=et()(r=this.onClick).call(r,this),this.onMouseMove=et()(n=this.onMouseMove).call(n,this)}return U(t,[{key:"isWorking",value:function(){return this.working}},{key:"start",value:function(){if(!this.working){var t=this.onMouseMove,e=this.screen.ctx.canvas;e.onclick=this.onClick,e.onmousemove=t,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.events,e=this.eventElements,r=this.screen.ctx.canvas.style;r&&(r.cursor=""),T()(t).call(t,function(t,r){for(var n=t.run,i=e[r];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;T()(r).call(r,function(r,i){!n[i]&&e.isPointInPath&&e.isPointInPath(r.x,r.y)&&(n[i]=t)})}}},{key:"checkBoundingBox",value:function(t,e){if(this.working&&e){var r=this.events,n=this.eventElements;T()(r).call(r,function(r,i){!n[i]&&e.isPointInBox(r.x,r.y)&&(n[i]=t)})}}},{key:"mapXY",value:function(t,e){for(var r=this.screen,n=r.window,i=r.ctx,o=new rr(t,e),a=i.canvas;a;)o.x-=a.offsetLeft,o.y-=a.offsetTop,a=a.offsetParent;return n.scrollX&&(o.x+=n.scrollX),n.scrollY&&(o.y+=n.scrollY),o}},{key:"onClick",value:function(t){var e=this.mapXY((t||event).clientX,(t||event).clientY);this.events.push({type:"onclick",x:e.x,y:e.y,run:function(t){t.onClick&&t.onClick()}})}},{key:"onMouseMove",value:function(t){var e=this.mapXY((t||event).clientX,(t||event).clientY);this.events.push({type:"onmousemove",x:e.x,y:e.y,run:function(t){t.onMouseMove&&t.onMouseMove()}})}}]),t}(),ir="undefined"!=typeof window?window:null,or="undefined"!=typeof fetch?et()(fetch).call(fetch,void 0):null,ar=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.fetch,i=void 0===n?or:n,o=r.window,a=void 0===o?ir:o;B(this,t),this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new er,this.mouse=new nr(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=a,this.fetch=i}return U(t,[{key:"wait",value:function(t){this.waits.push(t)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:J().resolve()}},{key:"isReady",value:function(){var t;if(this.isReadyLock)return!0;var e=Z()(t=this.waits).call(t,function(t){return t()});return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}},{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.width,i=t.desiredWidth,o=t.height,a=t.desiredHeight,u=t.minX,s=void 0===u?0:u,c=t.minY,f=void 0===c?0:c,l=t.refX,h=t.refY,p=t.clip,v=void 0!==p&&p,y=t.clipX,g=void 0===y?0:y,m=t.clipY,x=void 0===m?0:m,b=d(Pe(t.aspectRatio).replace(/^defer\s/,"").split(" "),2),w=b[0]||"xMidYMid",S=b[1]||"meet",A=n/i,k=o/a,T=Math.min(A,k),P=Math.max(A,k),O=i,C=a;"meet"===S&&(O*=T,C*=T),"slice"===S&&(O*=P,C*=P);var E=new tr(e,"refX",l),M=new tr(e,"refY",h),N=E.hasValue()&&M.hasValue();if(N&&r.translate(-T*E.getPixels("x"),-T*M.getPixels("y")),v){var _=T*g,R=T*x;r.beginPath(),r.moveTo(_,R),r.lineTo(n,R),r.lineTo(n,o),r.lineTo(_,o),r.closePath(),r.clip()}if(!N){var V="meet"===S&&T===k,D="slice"===S&&P===k,L="meet"===S&&T===A,I="slice"===S&&P===A;/^xMid/.test(w)&&(V||D)&&r.translate(n/2-O/2,0),/YMid$/.test(w)&&(L||I)&&r.translate(0,o/2-C/2),/^xMax/.test(w)&&(V||D)&&r.translate(n-O,0),/YMax$/.test(w)&&(L||I)&&r.translate(0,o-C)}switch(!0){case"none"===w:r.scale(A,k);break;case"meet"===S:r.scale(T,T);break;case"slice"===S:r.scale(P,P)}r.translate(-s,-f)}},{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,o=r.ignoreMouse,a=void 0!==o&&o,u=r.ignoreAnimation,s=void 0!==u&&u,c=r.ignoreDimensions,f=void 0!==c&&c,l=r.ignoreClear,h=void 0!==l&&l,p=r.forceRedraw,v=r.scaleWidth,y=r.scaleHeight,g=r.offsetX,d=r.offsetY,m=this.FRAMERATE,x=this.mouse,b=1e3/m;if(this.frameDuration=b,this.readyPromise=new(J())(function(t){e.resolveReady=t}),this.isReady()&&this.render(t,f,h,v,y,g,d),i){var w=Q()(),S=w,A=0,k=function r(){w=Q()(),(A=w-S)>=b&&(S=w-A%b,e.shouldUpdate(s,p)&&(e.render(t,f,h,v,y,g,d),x.runEvents())),e.intervalId=nt()(r)};a||x.start(),this.intervalId=nt()(k)}}},{key:"stop",value:function(){this.intervalId&&(nt().cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(t,e){if(!t){var r,n=this.frameDuration;if(G()(r=this.animations).call(r,function(t,e){return e.update(n)||t},!1))return!0}return!!("function"==typeof e&&e()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}},{key:"render",value:function(t,e,r,n,i,o,a){var u=this.CLIENT_WIDTH,s=this.CLIENT_HEIGHT,c=this.viewPort,f=this.ctx,l=this.isFirstRender,h=f.canvas;c.clear(),h.width&&h.height?c.setCurrent(h.width,h.height):c.setCurrent(u,s);var p=t.getStyle("width"),v=t.getStyle("height");!e&&(l||"number"!=typeof n&&"number"!=typeof i)&&(p.hasValue()&&(h.width=p.getPixels("x"),h.style&&(h.style.width="".concat(h.width,"px"))),v.hasValue()&&(h.height=v.getPixels("y"),h.style&&(h.style.height="".concat(h.height,"px"))));var y=h.clientWidth||h.width,g=h.clientHeight||h.height;if(e&&p.hasValue()&&v.hasValue()&&(y=p.getPixels("x"),g=v.getPixels("y")),c.setCurrent(y,g),"number"==typeof o&&t.getAttribute("x",!0).setValue(o),"number"==typeof a&&t.getAttribute("y",!0).setValue(a),"number"==typeof n||"number"==typeof i){var d,m,x=Ee(t.getAttribute("viewBox").getString()),b=0,w=0;if("number"==typeof n){var S=t.getStyle("width");S.hasValue()?b=S.getPixels("x")/n:isNaN(x[2])||(b=x[2]/n)}if("number"==typeof i){var A=t.getStyle("height");A.hasValue()?w=A.getPixels("y")/i:isNaN(x[3])||(w=x[3]/i)}b||(b=w),w||(w=b),t.getAttribute("width",!0).setValue(n),t.getAttribute("height",!0).setValue(i);var k=t.getStyle("transform",!0,!0);k.setValue(Y()(d=Y()(m="".concat(k.getString()," scale(")).call(m,1/b,", ")).call(d,1/w,")"))}r||f.clearRect(0,0,y,g),t.render(f),l&&(this.isFirstRender=!1)}}]),t}();ar.defaultWindow=ir,ar.defaultFetch=or;var ur=ar.defaultFetch,sr="undefined"!=typeof DOMParser?DOMParser:null,cr=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.fetch,n=void 0===r?ur:r,i=e.DOMParser,o=void 0===i?sr:i;B(this,t),this.fetch=n,this.DOMParser=o}return U(t,[{key:"parse",value:(e=j(D().mark(function t(e){return D().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!/^</.test(e)){t.next=2;break}return t.abrupt("return",this.parseFromString(e));case 2:return t.abrupt("return",this.load(e));case 3:case"end":return t.stop()}},t,this)})),function(t){return e.apply(this,arguments)})},{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(){var t=j(D().mark(function t(e){var r;return D().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.fetch(e);case 2:return r=t.sent,t.next=5,r.text();case 5:return t.abrupt("return",this.parseFromString(t.sent));case 7:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()}]),t;var e}(),fr=function(){function t(e,r){B(this,t),this.type="translate",this.point=null,this.point=rr.parse(r)}return U(t,[{key:"apply",value:function(t){var e=this.point;t.translate(e.x||0,e.y||0)}},{key:"unapply",value:function(t){var e=this.point;t.translate(-1*e.x||0,-1*e.y||0)}},{key:"applyToPoint",value:function(t){var e=this.point;t.applyTransform([1,0,0,1,e.x||0,e.y||0])}}]),t}(),lr=function(){function t(e,r,n){B(this,t),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=Ee(r);this.angle=new tr(e,"angle",i[0]),this.originX=n[0],this.originY=n[1],this.cx=i[1]||0,this.cy=i[2]||0}return U(t,[{key:"apply",value:function(t){var e=this.cy,r=this.originY,n=this.angle,i=this.cx+this.originX.getPixels("x"),o=e+r.getPixels("y");t.translate(i,o),t.rotate(n.getRadians()),t.translate(-i,-o)}},{key:"unapply",value:function(t){var e=this.cx,r=this.cy,n=this.angle;t.translate(e,r),t.rotate(-1*n.getRadians()),t.translate(-e,-r)}},{key:"applyToPoint",value:function(t){var e=this.cx,r=this.cy,n=this.angle.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}]),t}(),hr=function(){function t(e,r){B(this,t),this.type="scale",this.scale=null;var n=rr.parseScale(r);(0===n.x||0===n.y)&&(n.x=Ue,n.y=Ue),this.scale=n}return U(t,[{key:"apply",value:function(t){var e=this.scale,r=e.x;t.scale(r,e.y||r)}},{key:"unapply",value:function(t){var e=this.scale,r=e.x;t.scale(1/r,1/e.y||r)}},{key:"applyToPoint",value:function(t){var e=this.scale;t.applyTransform([e.x||0,0,0,e.y||0,0,0])}}]),t}(),pr=function(){function t(e,r){B(this,t),this.type="matrix",this.matrix=[],this.matrix=Ee(r)}return U(t,[{key:"apply",value:function(t){var e=this.matrix;t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}},{key:"unapply",value:function(t){var e=this.matrix,r=e[0],n=e[2],i=e[4],o=e[1],a=e[3],u=e[5],s=1/(r*(1*a-0*u)-n*(1*o-0*u)+i*(0*o-0*a));t.transform(s*(1*a-0*u),s*(0*u-1*o),s*(0*i-1*n),s*(1*r-0*i),s*(n*u-i*a),s*(i*o-r*u))}},{key:"applyToPoint",value:function(t){t.applyTransform(this.matrix)}}]),t}();var vr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n){var i;return B(this,r),(i=e.call(this,t,n)).type="skew",i.angle=null,i.angle=new tr(t,"angle",n),i}return r}(pr);var yr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n){var i;return B(this,r),(i=e.call(this,t,n)).type="skewX",i.matrix=[1,0,Math.tan(i.angle.getRadians()),1,0,0],i}return r}(vr);var gr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n){var i;return B(this,r),(i=e.call(this,t,n)).type="skewY",i.matrix=[1,Math.tan(i.angle.getRadians()),0,1,0,0],i}return r}(vr),dr=function(){function t(e,r,n){var i=this;B(this,t),this.document=e,this.transforms=[];var o=function(t){var e;return ot()(e=Pe(t)).call(e).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(r);T()(o).call(o,function(e){if("none"!==e){var r=function(t){var e=d(t.split("("),2),r=e[0],n=e[1];return[ot()(r).call(r),ot()(n).call(n).replace(")","")]}(e),o=d(r,2),a=t.transformTypes[o[0]];void 0!==a&&i.transforms.push(new a(i.document,o[1],n))}})}return U(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=d(r.getStyle("transform-origin",!1,!0).split(),2),o=i[0],a=i[1],u=[o,void 0===a?o:a];return n.hasValue()?new t(e,n.getString(),u):null}}]),t}();dr.transformTypes={translate:fr,rotate:lr,scale:hr,matrix:pr,skewX:yr,skewY:gr};var mr=function(){function t(e,r){var n,i,o=this,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(B(this,t),this.document=e,this.node=r,this.captureTextNodes=a,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){if(T()(n=Tt()(r.attributes)).call(n,function(t){var r=Ne(t.nodeName);o.attributes[r]=new tr(e,r,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var u,c=s()(u=this.getAttribute("style").getString().split(";")).call(u,function(t){return ot()(t).call(t)});T()(c).call(c,function(t){var r;if(t){var n=d(s()(r=t.split(":")).call(r,function(t){return ot()(t).call(t)}),2),i=n[0];o.styles[i]=new tr(e,i,n[1])}})}var f=e.definitions,l=this.getAttribute("id");l.hasValue()&&(f[l.getValue()]||(f[l.getValue()]=this)),T()(i=Tt()(r.childNodes)).call(i,function(t){if(1===t.nodeType)o.addChild(t);else if(a&&(3===t.nodeType||4===t.nodeType)){var r=e.createTextNode(t);r.getText().length>0&&o.addChild(r)}})}}return U(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 tr(this.document,t,"");return this.attributes[t]=n,n}return r||tr.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var t in this.attributes)if("href"===t||/:href$/.test(t))return this.attributes[t];return tr.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(i&&i.hasValue())return this.styles[t]=i,i;if(!r){var o=this.parent;if(o){var a=o.getStyle(t);if(a&&a.hasValue())return a}}if(e){var u=new tr(this.document,t,"");return this.styles[t]=u,u}return n||tr.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=dr.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){var e;T()(e=this.children).call(e,function(e){e.render(t)})}},{key:"addChild",value:function(e){var r,n=e instanceof t?e:this.document.createElement(e);n.parent=this,At()(r=t.ignoreChildTypes).call(r,n.type)||this.children.push(n)}},{key:"matchesSelector",value:function(t){var e,r=this.node;if("function"==typeof r.matches)return r.matches(t);var n=r.getAttribute("class");return!(!n||""===n)&&wt()(e=n.split(" ")).call(e,function(e){if(".".concat(e)===t)return!0})}},{key:"addStylesFromStyleDefinition",value:function(){var t=this.document,e=t.styles,r=t.stylesSpecificity;for(var n in e)if("@"!==n[0]&&this.matchesSelector(n)){var i=e[n],o=r[n];if(i)for(var a in i){var u=this.stylesSpecificity[a];void 0===u&&(u="000"),o>=u&&(this.styles[a]=i[a],this.stylesSpecificity[a]=o)}}}},{key:"removeStyles",value:function(t,e){return G()(e).call(e,function(e,r){var n,i=t.getStyle(r);if(!i.hasValue())return e;var o=i.getString();return i.setValue(""),Y()(n=[]).call(n,function(t){return function(t){if(c(t))return y(t)}(t)||function(t){if(void 0!==f&&null!=l(t)||null!=t["@@iterator"])return v(t)}(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),[[r,o]])},[])}},{key:"restoreStyles",value:function(t,e){T()(e).call(e,function(e){var r=d(e,2),n=r[1];t.getStyle(r[0],!0).setValue(n)})}}]),t}();mr.ignoreChildTypes=["title"];var xr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){return B(this,r),e.call(this,t,n,i)}return r}(mr);function br(t){var e=ot()(t).call(t);return/^('|")/.test(e)?e:'"'.concat(e,'"')}function wr(t){var e;return"undefined"==typeof process?t:s()(e=ot()(t).call(t).split(",")).call(e,br).join(",")}function Sr(t){if(!t)return"";var e=ot()(t).call(t).toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function Ar(t){if(!t)return"";var e=ot()(t).call(t).toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}var kr=function(){function t(e,r,n,i,o,a){B(this,t);var u=a?"string"==typeof a?t.parse(a):a:{};this.fontFamily=o||u.fontFamily,this.fontSize=i||u.fontSize,this.fontStyle=e||u.fontStyle,this.fontWeight=n||u.fontWeight,this.fontVariant=r||u.fontVariant}return U(t,[{key:"toString",value:function(){var t;return ot()(t=[Sr(this.fontStyle),this.fontVariant,Ar(this.fontWeight),this.fontSize,wr(this.fontFamily)].join(" ")).call(t)}}],[{key:"parse",value:function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,i="",o="",a="",u="",s="",c=ot()(e=Pe(r)).call(e).split(" "),f={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return T()(c).call(c,function(e){var r,n,c;switch(!0){case!f.fontStyle&&At()(r=t.styles).call(r,e):"inherit"!==e&&(i=e),f.fontStyle=!0;break;case!f.fontVariant&&At()(n=t.variants).call(n,e):"inherit"!==e&&(o=e),f.fontStyle=!0,f.fontVariant=!0;break;case!f.fontWeight&&At()(c=t.weights).call(c,e):"inherit"!==e&&(a=e),f.fontStyle=!0,f.fontVariant=!0,f.fontWeight=!0;break;case!f.fontSize:if("inherit"!==e){var l=d(e.split("/"),1);u=l[0]}f.fontStyle=!0,f.fontVariant=!0,f.fontWeight=!0,f.fontSize=!0;break;default:"inherit"!==e&&(s+=e)}}),new t(i,o,a,u,s,n)}}]),t}();kr.styles="normal|italic|oblique|inherit",kr.variants="normal|small-caps|inherit",kr.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var Tr=function(){function 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;B(this,t),this.x1=e,this.y1=r,this.x2=n,this.y2=i,this.addPoint(e,r),this.addPoint(n,i)}return U(t,[{key:"addPoint",value:function(t,e){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),void 0!==e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}},{key:"addX",value:function(t){this.addPoint(t,null)}},{key:"addY",value:function(t){this.addPoint(null,t)}},{key:"addBoundingBox",value:function(t){if(t){var e=t.x2,r=t.y2;this.addPoint(t.x1,t.y1),this.addPoint(e,r)}}},{key:"sumCubic",value:function(t,e,r,n,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*n+Math.pow(t,3)*i}},{key:"bezierCurveAdd",value:function(t,e,r,n,i){var o=6*e-12*r+6*n,a=-3*e+9*r-9*n+3*i,u=3*r-3*e;if(0!==a){var s=Math.pow(o,2)-4*u*a;if(!(s<0)){var c=(-o+Math.sqrt(s))/(2*a);0<c&&c<1&&(t?this.addX(this.sumCubic(c,e,r,n,i)):this.addY(this.sumCubic(c,e,r,n,i)));var f=(-o-Math.sqrt(s))/(2*a);0<f&&f<1&&(t?this.addX(this.sumCubic(f,e,r,n,i)):this.addY(this.sumCubic(f,e,r,n,i)))}}else{if(0===o)return;var l=-u/o;0<l&&l<1&&(t?this.addX(this.sumCubic(l,e,r,n,i)):this.addY(this.sumCubic(l,e,r,n,i)))}}},{key:"addBezierCurve",value:function(t,e,r,n,i,o,a,u){this.addPoint(t,e),this.addPoint(a,u),this.bezierCurveAdd(!0,t,r,i,a),this.bezierCurveAdd(!1,e,n,o,u)}},{key:"addQuadraticCurve",value:function(t,e,r,n,i,o){var a=t+2/3*(r-t),u=e+2/3*(n-e);this.addBezierCurve(t,e,a,a+1/3*(i-t),u,u+1/3*(o-e),i,o)}},{key:"isPointInBox",value:function(t,e){return this.x1<=t&&t<=this.x2&&this.y1<=e&&e<=this.y2}},{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}}]),t}();var Pr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).modifiedEmSizeStack=!1,t}return U(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"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var a=r.getFillStyleDefinition(this,n);a&&(t.fillStyle=a)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var u=r.getColor();"inherit"!==u&&(t.fillStyle="none"===u?"rgba(0,0,0,0)":u)}if(n.hasValue()){var s=new tr(this.document,"fill",t.fillStyle).addOpacity(n).getColor();t.fillStyle=s}if(i.isUrlDefinition()){var c=i.getFillStyleDefinition(this,o);c&&(t.strokeStyle=c)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var f=i.getString();"inherit"!==f&&(t.strokeStyle="none"===f?"rgba(0,0,0,0)":f)}if(o.hasValue()){var l=new tr(this.document,"stroke",t.strokeStyle).addOpacity(o).getString();t.strokeStyle=l}var h=this.getStyle("stroke-width");if(h.hasValue()){var p=h.getPixels();t.lineWidth=p||Ue}var v=this.getStyle("stroke-linecap"),y=this.getStyle("stroke-linejoin"),g=this.getStyle("stroke-miterlimit"),d=this.getStyle("paint-order"),m=this.getStyle("stroke-dasharray"),x=this.getStyle("stroke-dashoffset");if(v.hasValue()&&(t.lineCap=v.getString()),y.hasValue()&&(t.lineJoin=y.getString()),g.hasValue()&&(t.miterLimit=g.getNumber()),d.hasValue()&&(t.paintOrder=d.getValue()),m.hasValue()&&"none"!==m.getString()){var b=Ee(m.getString());void 0!==t.setLineDash?t.setLineDash(b):void 0!==t.webkitLineDash?t.webkitLineDash=b:void 0!==t.mozDash&&(1!==b.length||0!==b[0])&&(t.mozDash=b);var w=x.getPixels();void 0!==t.lineDashOffset?t.lineDashOffset=w:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=w:void 0!==t.mozDashOffset&&(t.mozDashOffset=w)}}if(this.modifiedEmSizeStack=!1,void 0!==t.font){var S=this.getStyle("font"),A=this.getStyle("font-style"),k=this.getStyle("font-variant"),T=this.getStyle("font-weight"),P=this.getStyle("font-size"),O=this.getStyle("font-family"),C=new kr(A.getString(),k.getString(),T.getString(),P.hasValue()?"".concat(P.getPixels(!0),"px"):"",O.getString(),kr.parse(S.getString(),t.font));A.setValue(C.fontStyle),k.setValue(C.fontVariant),T.setValue(C.fontWeight),P.setValue(C.fontSize),O.setValue(C.fontFamily),t.font=C.toString(),P.isPixels()&&(this.document.emSize=P.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){_t(xt(r.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),r}(mr);var Or=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;return B(this,r),(o=e.call(this,t,n,(this instanceof r?this.constructor:void 0)===r||i)).type="text",o.x=0,o.y=0,o.measureCache=-1,o}return U(r,[{key:"setContext",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_t(xt(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,r=this;if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(t);var n=null;return T()(e=this.children).call(e,function(e,i){var o=r.getChildBoundingBox(t,r,r,i);n?n.addBoundingBox(o):n=o}),n}},{key:"getFontSize",value:function(){var t=this.parent,e=kr.parse(this.document.ctx.font).fontSize;return t.getStyle("font-size").getNumber(e)}},{key:"getTElementBoundingBox",value:function(t){var e=this.getFontSize();return new Tr(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 o=e.length,a=e[r-1],u=e[r+1],s="isolated";(0===r||" "===a)&&r<o-2&&" "!==u&&(s="terminal"),r>0&&" "!==a&&r<o-2&&" "!==u&&(s="medial"),r>0&&" "!==a&&(r===o-1||" "===u)&&(s="initial"),void 0!==t.glyphs[n]&&!(i=t.glyphs[n][s])&&"glyph"===t.glyphs[n].type&&(i=t.glyphs[n])}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=Tt()(e.parentNode.childNodes),n=Et()(r).call(r,e),i=r.length-1,o=Pe(e.value||e.text||e.textContent||"");return 0===n&&(o=Oe(o)),n===i&&(o=Ce(o)),o}},{key:"renderChildren",value:function(t){var e,r=this;if("text"===this.type){this.initializeCoordinates(t),T()(e=this.children).call(e,function(e,n){r.renderChild(t,r,r,n)});var n=this.document.screen.mouse;n.isWorking()&&n.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 o,a=i.fontFace.unitsPerEm,u=kr.parse(e.ctx.font),s=r.getStyle("font-size").getNumber(u.fontSize),c=r.getStyle("font-style").getString(u.fontStyle),f=s/a,l=i.isRTL?Ot()(o=n.split("")).call(o).join(""):n,h=Ee(r.getAttribute("dx").getString()),p=l.length,v=0;v<p;v++){var y=this.getGlyph(i,l,v);t.translate(this.x,this.y),t.scale(f,-f);var g=t.lineWidth;t.lineWidth=t.lineWidth*a/s,"italic"===c&&t.transform(1,0,.4,1,0,0),y.render(t),"italic"===c&&t.transform(1,0,-.4,1,0,0),t.lineWidth=g,t.scale(1/f,-1/f),t.translate(-this.x,-this.y),this.x+=s*(y.horizAdvX||i.horizAdvX)/a,void 0!==h[v]&&!isNaN(h[v])&&(this.x+=h[v])}else{var d=this.x,m=this.y;"stroke"===t.paintOrder?(t.strokeStyle&&t.strokeText(n,d,m),t.fillStyle&&t.fillText(n,d,m)):(t.fillStyle&&t.fillText(n,d,m),t.strokeStyle&&t.strokeText(n,d,m))}}},{key:"getAnchorDelta",value:function(t,e,r){var n=this.getStyle("text-anchor").getString("start");if("start"!==n){for(var i=e.children,o=i.length,a=null,u=0,s=r;s<o&&(a=i[s],!(s>r&&a.getAttribute("x").hasValue()||a.getAttribute("text-anchor").hasValue()));s++)u+=a.measureTextRecursive(t);return-1*("end"===n?u:u/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 o=i.getAttribute("x"),a=i.getAttribute("y"),u=i.getAttribute("dx"),s=i.getAttribute("dy"),c=i.getAttribute("text-anchor").getString("start");if(0===n&&"textNode"!==i.type&&(o.hasValue()||o.setValue(e.getAttribute("x").getValue("0")),a.hasValue()||a.setValue(e.getAttribute("y").getValue("0")),u.hasValue()||u.setValue(e.getAttribute("dx").getValue("0")),s.hasValue()||s.setValue(e.getAttribute("dy").getValue("0"))),o.hasValue()){if(i.x=o.getPixels("x")+e.getAnchorDelta(t,r,n),"start"!==c){var f=i.measureTextRecursive(t);i.x+=-1*("end"===c?f:f/2)}u.hasValue()&&(i.x+=u.getPixels("x"))}else{if("start"!==c){var l=i.measureTextRecursive(t);e.x+=-1*("end"===c?l:l/2)}u.hasValue()&&(e.x+=u.getPixels("x")),i.x=e.x}return e.x=i.x+i.measureText(t),a.hasValue()?(i.y=a.getPixels("y"),s.hasValue()&&(i.y+=s.getPixels("y"))):(s.hasValue()&&(e.y+=s.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,o=this.adjustChildCoordinates(t,e,r,n);if("function"!=typeof o.getBoundingBox)return null;var a=o.getBoundingBox(t);return a?(T()(i=o.children).call(i,function(r,n){var i=e.getChildBoundingBox(t,e,o,n);a.addBoundingBox(i)}),a):null}},{key:"renderChild",value:function(t,e,r,n){var i,o=this.adjustChildCoordinates(t,e,r,n);o.render(t),T()(i=o.children).call(i,function(r,n){e.renderChild(t,e,o,n)})}},{key:"measureTextRecursive",value:function(t){var e;return G()(e=this.children).call(e,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,o=this.getFontSize(),a=n.isRTL?Ot()(i=e.split("")).call(i).join(""):e,u=Ee(r.getAttribute("dx").getString()),s=a.length,c=0,f=0;f<s;f++)c+=(this.getGlyph(n,a,f).horizAdvX||n.horizAdvX)*o/n.fontFace.unitsPerEm,void 0!==u[f]&&!isNaN(u[f])&&(c+=u[f]);return c}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}(Pr);var Cr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;return B(this,r),(o=e.call(this,t,n,(this instanceof r?this.constructor:void 0)===r||i)).type="tspan",o.text=o.children.length>0?"":o.getTextFromNode(),o}return U(r,[{key:"getText",value:function(){return this.text}}]),r}(Or);var Er=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="textNode",t}return r}(Cr);var Mr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t){var n;return B(this,r),(n=e.call(this,t.replace(/[+-.]\s+/g,"-").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 U(r,[{key:"reset",value:function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new rr(0,0),this.control=new rr(0,0),this.current=new rr(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 rr(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!==Jt.CURVE_TO&&t!==Jt.SMOOTH_CURVE_TO&&t!==Jt.QUAD_TO&&t!==Jt.SMOOTH_QUAD_TO)return this.current;var e=this.current,r=this.control;return new rr(2*e.x-r.x,2*e.y-r.y)}},{key:"makeAbsolute",value:function(t){if(this.command.relative){var e=this.current,r=e.y;t.x+=e.x,t.y+=r}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}(Jt);var Nr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;return B(this,r),(o=e.call(this,t,n,i)).type="path",o.pathParser=null,o.pathParser=new Mr(o.getAttribute("d").getString()),o}return U(r,[{key:"path",value:function(t){var e=this.pathParser,r=new Tr;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case Mr.MOVE_TO:this.pathM(t,r);break;case Mr.LINE_TO:this.pathL(t,r);break;case Mr.HORIZ_LINE_TO:this.pathH(t,r);break;case Mr.VERT_LINE_TO:this.pathV(t,r);break;case Mr.CURVE_TO:this.pathC(t,r);break;case Mr.SMOOTH_CURVE_TO:this.pathS(t,r);break;case Mr.QUAD_TO:this.pathQ(t,r);break;case Mr.SMOOTH_QUAD_TO:this.pathT(t,r);break;case Mr.ARC:this.pathA(t,r);break;case Mr.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 s()(e).call(e,function(t,e){return[t,r[e]]})}},{key:"renderChildren",value:function(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?Vt()(t).call(t,e.getString()):Vt()(t).call(t)),""!==t.strokeStyle&&t.stroke();var r=this.getMarkers();if(r){var n=r.length-1,i=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),a=this.getStyle("marker-end");if(i.isUrlDefinition()){var u=i.getDefinition(),s=d(r[0],2);u.render(t,s[0],s[1])}if(o.isUrlDefinition())for(var c=o.getDefinition(),f=1;f<n;f++){var l=d(r[f],2);c.render(t,l[0],l[1])}if(a.isUrlDefinition()){var h=a.getDefinition(),p=d(r[n],2);h.render(t,p[0],p[1])}}}},{key:"pathM",value:function(t,e){var n=this.pathParser,i=r.pathM(n).point,o=i.x,a=i.y;n.addMarker(i),e.addPoint(o,a),t&&t.moveTo(o,a)}},{key:"pathL",value:function(t,e){var n=this.pathParser,i=r.pathL(n),o=i.point,a=o.x,u=o.y;n.addMarker(o,i.current),e.addPoint(a,u),t&&t.lineTo(a,u)}},{key:"pathH",value:function(t,e){var n=this.pathParser,i=r.pathH(n),o=i.point,a=o.x,u=o.y;n.addMarker(o,i.current),e.addPoint(a,u),t&&t.lineTo(a,u)}},{key:"pathV",value:function(t,e){var n=this.pathParser,i=r.pathV(n),o=i.point,a=o.x,u=o.y;n.addMarker(o,i.current),e.addPoint(a,u),t&&t.lineTo(a,u)}},{key:"pathC",value:function(t,e){var n=this.pathParser,i=r.pathC(n),o=i.current,a=i.point,u=i.controlPoint,s=i.currentPoint;n.addMarker(s,u,a),e.addBezierCurve(o.x,o.y,a.x,a.y,u.x,u.y,s.x,s.y),t&&t.bezierCurveTo(a.x,a.y,u.x,u.y,s.x,s.y)}},{key:"pathS",value:function(t,e){var n=this.pathParser,i=r.pathS(n),o=i.current,a=i.point,u=i.controlPoint,s=i.currentPoint;n.addMarker(s,u,a),e.addBezierCurve(o.x,o.y,a.x,a.y,u.x,u.y,s.x,s.y),t&&t.bezierCurveTo(a.x,a.y,u.x,u.y,s.x,s.y)}},{key:"pathQ",value:function(t,e){var n=this.pathParser,i=r.pathQ(n),o=i.current,a=i.controlPoint,u=i.currentPoint;n.addMarker(u,a,a),e.addQuadraticCurve(o.x,o.y,a.x,a.y,u.x,u.y),t&&t.quadraticCurveTo(a.x,a.y,u.x,u.y)}},{key:"pathT",value:function(t,e){var n=this.pathParser,i=r.pathT(n),o=i.current,a=i.controlPoint,u=i.currentPoint;n.addMarker(u,a,a),e.addQuadraticCurve(o.x,o.y,a.x,a.y,u.x,u.y),t&&t.quadraticCurveTo(a.x,a.y,u.x,u.y)}},{key:"pathA",value:function(t,e){var n=this.pathParser,i=r.pathA(n),o=i.currentPoint,a=i.rX,u=i.rY,s=i.sweepFlag,c=i.xAxisRotation,f=i.centp,l=i.a1,h=i.ad,p=1-s?1:-1,v=l+p*(h/2),y=new rr(f.x+a*Math.cos(v),f.y+u*Math.sin(v));if(n.addMarkerAngle(y,v-p*Math.PI/2),n.addMarkerAngle(o,v-p*Math.PI),e.addPoint(o.x,o.y),t&&!isNaN(l)&&!isNaN(h)){var g=a>u?a:u,d=a>u?1:a/u,m=a>u?u/a:1;t.translate(f.x,f.y),t.rotate(c),t.scale(d,m),t.arc(0,0,g,l,l+h,Boolean(1-s)),t.scale(1/d,1/m),t.rotate(-c),t.translate(-f.x,-f.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 rr((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 rr(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,o=r.lArcFlag,a=r.sweepFlag,u=r.xRot*(Math.PI/180),s=t.getAsCurrentPoint(),c=new rr(Math.cos(u)*(e.x-s.x)/2+Math.sin(u)*(e.y-s.y)/2,-Math.sin(u)*(e.x-s.x)/2+Math.cos(u)*(e.y-s.y)/2),f=Math.pow(c.x,2)/Math.pow(n,2)+Math.pow(c.y,2)/Math.pow(i,2);f>1&&(n*=Math.sqrt(f),i*=Math.sqrt(f));var l=(o===a?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(c.y,2)-Math.pow(i,2)*Math.pow(c.x,2))/(Math.pow(n,2)*Math.pow(c.y,2)+Math.pow(i,2)*Math.pow(c.x,2)));isNaN(l)&&(l=0);var h=new rr(l*n*c.y/i,l*-i*c.x/n),p=new rr((e.x+s.x)/2+Math.cos(u)*h.x-Math.sin(u)*h.y,(e.y+s.y)/2+Math.sin(u)*h.x+Math.cos(u)*h.y),v=qe([1,0],[(c.x-h.x)/n,(c.y-h.y)/i]),y=[(c.x-h.x)/n,(c.y-h.y)/i],g=[(-c.x-h.x)/n,(-c.y-h.y)/i],d=qe(y,g);return Ye(y,g)<=-1&&(d=Math.PI),Ye(y,g)>=1&&(d=0),{currentPoint:s,rX:n,rY:i,sweepFlag:a,xAxisRotation:u,centp:p,a1:v,ad:d}}},{key:"pathZ",value:function(t){t.current=t.start}}]),r}(Pr);var _r=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="svg",t.root=!1,t}return U(r,[{key:"setContext",value:function(t){var e=this.document,n=e.screen,i=e.window,o=t.canvas;if(n.setDefaults(t),o.style&&void 0!==t.font&&i&&void 0!==i.getComputedStyle){t.font=i.getComputedStyle(o).getPropertyValue("font");var a=new tr(e,"fontSize",kr.parse(t.font).fontSize);a.hasValue()&&(e.rootEmSize=a.getPixels("y"),e.emSize=e.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var u=n.viewPort,s=u.width,c=u.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 f=this.getAttribute("refX"),l=this.getAttribute("refY"),h=this.getAttribute("viewBox"),p=h.hasValue()?Ee(h.getString()):null,v=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),y=0,g=0,d=0,m=0;p&&(y=p[0],g=p[1]),this.root||(s=this.getStyle("width").getPixels("x"),c=this.getStyle("height").getPixels("y"),"marker"===this.type&&(d=y,m=g,y=0,g=0)),n.viewPort.setCurrent(s,c),this.node&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),_t(xt(r.prototype),"setContext",this).call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),p&&(s=p[2],c=p[3]),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:s,height:n.viewPort.height,desiredHeight:c,minX:y,minY:g,refX:f.getValue(),refY:l.getValue(),clip:v,clipX:d,clipY:m}),p&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(s,c))}},{key:"clearContext",value:function(t){_t(xt(r.prototype),"clearContext",this).call(this,t),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.getAttribute("width",!0),o=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),u=this.getAttribute("style"),s=i.getNumber(0),c=o.getNumber(0);if(n)if("string"==typeof n)this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var f=this.getAttribute("preserveAspectRatio");f.hasValue()&&f.setValue(f.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(t),o.setValue(r),a.hasValue()||a.setValue(Y()(e="0 0 ".concat(s||t," ")).call(e,c||r)),u.hasValue()){var l=this.getStyle("width"),h=this.getStyle("height");l.hasValue()&&l.setValue("".concat(t,"px")),h.hasValue()&&h.setValue("".concat(r,"px"))}}}]),r}(Pr);var Rr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="rect",t}return U(r,[{key:"path",value:function(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),a=this.getAttribute("ry"),u=o.getPixels("x"),s=a.getPixels("y");if(o.hasValue()&&!a.hasValue()&&(s=u),a.hasValue()&&!o.hasValue()&&(u=s),u=Math.min(u,n/2),s=Math.min(s,i/2),t){var c=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&n>0&&(t.moveTo(e+u,r),t.lineTo(e+n-u,r),t.bezierCurveTo(e+n-u+c*u,r,e+n,r+s-c*s,e+n,r+s),t.lineTo(e+n,r+i-s),t.bezierCurveTo(e+n,r+i-s+c*s,e+n-u+c*u,r+i,e+n-u,r+i),t.lineTo(e+u,r+i),t.bezierCurveTo(e+u-c*u,r+i,e,r+i-s+c*s,e,r+i-s),t.lineTo(e,r+s),t.bezierCurveTo(e,r+s-c*s,e+u-c*u,r,e+u,r),t.closePath())}return new Tr(e,r,e+n,r+i)}},{key:"getMarkers",value:function(){return null}}]),r}(Nr);var Vr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="circle",t}return U(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 Tr(e-n,r-n,e+n,r+n)}},{key:"getMarkers",value:function(){return null}}]),r}(Nr);var Dr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="ellipse",t}return U(r,[{key:"path",value:function(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return t&&r>0&&n>0&&(t.beginPath(),t.moveTo(i+r,o),t.bezierCurveTo(i+r,o+e*n,i+e*r,o+n,i,o+n),t.bezierCurveTo(i-e*r,o+n,i-r,o+e*n,i-r,o),t.bezierCurveTo(i-r,o-e*n,i-e*r,o-n,i,o-n),t.bezierCurveTo(i+e*r,o-n,i+r,o-e*n,i+r,o),t.closePath()),new Tr(i-r,o-n,i+r,o+n)}},{key:"getMarkers",value:function(){return null}}]),r}(Nr);var Lr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="line",t}return U(r,[{key:"getPoints",value:function(){return[new rr(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new rr(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var e=d(this.getPoints(),2),r=e[0],n=r.x,i=r.y,o=e[1],a=o.x,u=o.y;return t&&(t.beginPath(),t.moveTo(n,i),t.lineTo(a,u)),new Tr(n,i,a,u)}},{key:"getMarkers",value:function(){var t=d(this.getPoints(),2),e=t[0],r=t[1],n=e.angleTo(r);return[[e,n],[r,n]]}}]),r}(Nr);var Ir=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;return B(this,r),(o=e.call(this,t,n,i)).type="polyline",o.points=[],o.points=rr.parsePath(o.getAttribute("points").getString()),o}return U(r,[{key:"path",value:function(t){var e=this.points,r=d(e,1)[0],n=r.x,i=r.y,o=new Tr(n,i);return t&&(t.beginPath(),t.moveTo(n,i)),T()(e).call(e,function(e){var r=e.x,n=e.y;o.addPoint(r,n),t&&t.lineTo(r,n)}),o}},{key:"getMarkers",value:function(){var t=this.points,e=t.length-1,r=[];return T()(t).call(t,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}(Nr);var jr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="polygon",t}return U(r,[{key:"path",value:function(t){var e=_t(xt(r.prototype),"path",this).call(this,t),n=d(this.points,1)[0];return t&&(t.lineTo(n.x,n.y),t.closePath()),e}}]),r}(Ir);var zr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="pattern",t}return U(r,[{key:"createPattern",value:function(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new _r(this.document,null);o.attributes.viewBox=new tr(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new tr(this.document,"width","".concat(n,"px")),o.attributes.height=new tr(this.document,"height","".concat(i,"px")),o.attributes.transform=new tr(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var a=this.document.createCanvas(n,i),u=a.getContext("2d"),s=this.getAttribute("x"),c=this.getAttribute("y");s.hasValue()&&c.hasValue()&&u.translate(s.getPixels("x",!0),c.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:re()(this.styles,"fill-opacity");for(var f=-1;f<=1;f++)for(var l=-1;l<=1;l++)u.save(),o.attributes.x=new tr(this.document,"x",f*a.width),o.attributes.y=new tr(this.document,"y",l*a.height),o.render(u),u.restore();return t.createPattern(a,"repeat")}}]),r}(mr);var Fr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="marker",t}return U(r,[{key:"render",value:function(t,e,r){if(e){var n=e.x,i=e.y,o=this.getAttribute("orient").getValue("auto"),a=this.getAttribute("markerUnits").getValue("strokeWidth");t.translate(n,i),"auto"===o&&t.rotate(r),"strokeWidth"===a&&t.scale(t.lineWidth,t.lineWidth),t.save();var u=new _r(this.document,null);u.type=this.type,u.attributes.viewBox=new tr(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new tr(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new tr(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new tr(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new tr(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new tr(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new tr(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new tr(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(t),t.restore(),"strokeWidth"===a&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===o&&t.rotate(-r),t.translate(-n,-i)}}}]),r}(mr);var Br=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="defs",t}return U(r,[{key:"render",value:function(){}}]),r}(mr);var Hr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="g",t}return U(r,[{key:"getBoundingBox",value:function(t){var e,r=new Tr;return T()(e=this.children).call(e,function(e){r.addBoundingBox(e.getBoundingBox(t))}),r}}]),r}(Pr);var Ur=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;B(this,r),(o=e.call(this,t,n,i)).attributesToInherit=["gradientUnits"],o.stops=[];var a=gt(o),u=a.stops,s=a.children;return T()(s).call(s,function(t){"stop"===t.type&&u.push(t)}),o}return U(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 o=i.stops,a=this.getGradient(t,e);if(!a)return this.addParentOpacity(r,o[o.length-1].color);if(T()(o).call(o,function(t){a.addColorStop(t.offset,n.addParentOpacity(r,t.color))}),this.getAttribute("gradientTransform").hasValue()){var u=this.document,s=u.screen,c=s.MAX_VIRTUAL_PIXELS,f=d(s.viewPort.viewPorts,1)[0],l=new Rr(u,null);l.attributes.x=new tr(u,"x",-c/3),l.attributes.y=new tr(u,"y",-c/3),l.attributes.width=new tr(u,"width",c),l.attributes.height=new tr(u,"height",c);var h=new Hr(u,null);h.attributes.transform=new tr(u,"transform",this.getAttribute("gradientTransform").getValue()),h.children=[l];var p=new _r(u,null);p.attributes.x=new tr(u,"x",0),p.attributes.y=new tr(u,"y",0),p.attributes.width=new tr(u,"width",f.width),p.attributes.height=new tr(u,"height",f.height),p.children=[h];var v=u.createCanvas(f.width,f.height),y=v.getContext("2d");return y.fillStyle=a,p.render(y),y.createPattern(v,"no-repeat")}return a}},{key:"inheritStopContainer",value:function(t){var e,r=this;T()(e=this.attributesToInherit).call(e,function(e){!r.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&r.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())})}},{key:"addParentOpacity",value:function(t,e){return t.hasValue()?new tr(this.document,"color",e).addOpacity(t).getColor():e}}]),r}(mr);var Xr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;return B(this,r),(o=e.call(this,t,n,i)).type="linearGradient",o.attributesToInherit.push("x1","y1","x2","y2"),o}return U(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"),o=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),a=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===a&&o===u?null:t.createLinearGradient(i,o,a,u)}}]),r}(Ur);var Yr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;return B(this,r),(o=e.call(this,t,n,i)).type="radialGradient",o.attributesToInherit.push("cx","cy","r","fx","fy","fr"),o}return U(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"),o=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=i,u=o;this.getAttribute("fx").hasValue()&&(a=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var s=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),c=this.getAttribute("fr").getPixels();return t.createRadialGradient(a,u,c,i,o,s)}}]),r}(Ur);var qr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;B(this,r),(o=e.call(this,t,n,i)).type="stop";var a=Math.max(0,Math.min(1,o.getAttribute("offset").getNumber())),u=o.getStyle("stop-opacity"),s=o.getStyle("stop-color",!0);return""===s.getString()&&s.setValue("#000"),u.hasValue()&&(s=s.addOpacity(u)),o.offset=a,o.color=s.getColor(),o}return r}(mr);var Gr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;return B(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(gt(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=o.getAttribute("values"),ie()(o).hasValue()&&ie()(o).setValue(ie()(o).getString().split(";")),o}return U(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,e=this.initialUnits,r=this.getProgress(),n=r.progress,i=r.from,o=r.to,a=i.getNumber()+(o.getNumber()-i.getNumber())*n;return"%"===e&&(a*=100),Y()(t="".concat(a)).call(t,e)}},{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 o=this.calcValue(),a=this.getAttribute("type");if(a.hasValue()){var u,s=a.getString();o=Y()(u="".concat(s,"(")).call(u,o,")")}r.setValue(o),i=!0}return i}},{key:"getProgress",value:function(){var t=this.document,e=ie()(this),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),o=Math.ceil(n);r.from=new tr(t,"from",a()(e.getValue()[i])),r.to=new tr(t,"to",a()(e.getValue()[o])),r.progress=(n-i)/(o-i)}else r.from=this.from,r.to=this.to;return r}}]),r}(mr);var Wr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="animateColor",t}return U(r,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=new(ut())(r.getColor()),o=new(ut())(n.getColor());if(i.ok&&o.ok){var a,u,s=i.r+(o.r-i.r)*e,c=i.g+(o.g-i.g)*e,f=i.b+(o.b-i.b)*e;return Y()(a=Y()(u="rgb(".concat(ae()(s,10),", ")).call(u,ae()(c,10),", ")).call(a,ae()(f,10),")")}return this.getAttribute("from").getColor()}}]),r}(Gr);var Qr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="animateTransform",t}return U(r,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.to,n=Ee(t.from.getString()),i=Ee(r.getString());return s()(n).call(n,function(t,r){return t+(i[r]-t)*e}).join(" ")}}]),r}(Gr);function $r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Zr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;B(this,r),(o=e.call(this,t,n,i)).type="font",o.glyphs={},o.horizAdvX=o.getAttribute("horiz-adv-x").getNumber();var a,u=t.definitions,s=function(t,e){var r;if(void 0===he()||null==h()(t)){if(fe()(t)||(r=function(t,e){var r;if(t){if("string"==typeof t)return $r(t,e);var n=ve()(r=Object.prototype.toString.call(t)).call(r,8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Tt()(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $r(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=se()(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{!a&&null!=r.return&&r.return()}finally{if(u)throw o}}}}(gt(o).children);try{for(s.s();!(a=s.n()).done;){var c=a.value;switch(c.type){case"font-face":o.fontFace=c;var f=c.getStyle("font-family");f.hasValue()&&(u[f.getString()]=gt(o));break;case"missing-glyph":o.missingGlyph=c;break;case"glyph":var l=c;l.arabicForm?(o.isRTL=!0,o.isArabic=!0,void 0===o.glyphs[l.unicode]&&(o.glyphs[l.unicode]={}),o.glyphs[l.unicode][l.arabicForm]=l):o.glyphs[l.unicode]=l}}}catch(p){s.e(p)}finally{s.f()}return o}return U(r,[{key:"render",value:function(){}}]),r}(mr);var Kr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;return B(this,r),(o=e.call(this,t,n,i)).type="font-face",o.ascent=o.getAttribute("ascent").getNumber(),o.descent=o.getAttribute("descent").getNumber(),o.unitsPerEm=o.getAttribute("units-per-em").getNumber(),o}return r}(mr);var Jr=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="missing-glyph",t.horizAdvX=0,t}return r}(Nr);var tn=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;return B(this,r),(o=e.call(this,t,n,i)).type="glyph",o.horizAdvX=o.getAttribute("horiz-adv-x").getNumber(),o.unicode=o.getAttribute("unicode").getString(),o.arabicForm=o.getAttribute("arabic-form").getString(),o}return r}(Nr);var en=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="tref",t}return U(r,[{key:"getText",value:function(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}]),r}(Or);var rn=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o,a;B(this,r),(a=e.call(this,t,n,i)).type="a";var u=n.childNodes,s=u[0],c=u.length>0&&Z()(o=Tt()(u)).call(o,function(t){return 3===t.nodeType});return a.hasText=c,a.text=c?a.getTextFromNode(s):"",a}return U(r,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){if(this.hasText){_t(xt(r.prototype),"renderChildren",this).call(this,t);var e=this.document,n=this.x,i=this.y,o=e.screen.mouse,a=new tr(e,"fontSize",kr.parse(e.ctx.font).fontSize);o.isWorking()&&o.checkBoundingBox(this,new Tr(n,i-a.getPixels("y"),n+this.measureText(t),i))}else if(this.children.length>0){var u=new Hr(this.document,null);u.children=this.children,u.parent=this,u.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}(Or);function nn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function on(t,e){var r=R()(t);if(N()){var n=N()(t);e&&(n=E()(n).call(n,function(e){return O()(t,e).enumerable})),r.push.apply(r,n)}return r}function an(t){for(var e=1;e<arguments.length;e++){var r,n=null!=arguments[e]?arguments[e]:{};if(e%2)T()(r=on(Object(n),!0)).call(r,function(e){F(t,e,n[e])});else if(A())w()(t,A()(n));else{var i;T()(i=on(Object(n))).call(i,function(e){x()(t,e,O()(n,e))})}}return t}var un=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;B(this,r),(o=e.call(this,t,n,i)).type="textPath",o.textWidth=0,o.textHeight=0,o.pathLength=-1,o.glyphInfo=null,o.letterSpacingCache=[],o.measuresCache=new(ge())([["",0]]);var a=o.getHrefAttribute().getDefinition();return o.text=o.getTextFromNode(),o.dataArray=o.parsePathData(a),o}return U(r,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(t){var e=this.dataArray;t&&t.beginPath(),T()(e).call(e,function(e){var r=e.points;switch(e.type){case Mr.LINE_TO:t&&t.lineTo(r[0],r[1]);break;case Mr.MOVE_TO:t&&t.moveTo(r[0],r[1]);break;case Mr.CURVE_TO:t&&t.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case Mr.QUAD_TO:t&&t.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case Mr.ARC:var n=d(r,8),i=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],f=n[6],l=n[7],h=a>u?a:u,p=a>u?1:a/u,v=a>u?u/a:1;t&&(t.translate(i,o),t.rotate(f),t.scale(p,v),t.arc(0,0,h,s,s+c,Boolean(1-l)),t.scale(1/p,1/v),t.rotate(-f),t.translate(-i,-o));break;case Mr.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(),T()(n).call(n,function(n,i){var o=n.p0,a=n.p1,u=n.rotation,s=n.text;t.save(),t.translate(o.x,o.y),t.rotate(u),t.fillStyle&&t.fillText(s,0,0),t.strokeStyle&&t.strokeText(s,0,0),t.restore(),"underline"===e&&(0===i&&t.moveTo(o.x,o.y+r/8),t.lineTo(a.x,a.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,o,a,u,s){var c=o,f=this.measureText(t,u);" "===u&&"justify"===e&&r<n&&(f+=(n-r)/i),s>-1&&(c+=this.getLetterSpacingAt(s));var l=this.textHeight/20,h=this.getEquidistantPointOnPath(c,l,0),p=this.getEquidistantPointOnPath(c+f,l,0),v={p0:h,p1:p},y=h&&p?Math.atan2(p.y-h.y,p.x-h.x):0;if(a){var g=Math.cos(Math.PI/2+y)*a,d=Math.cos(-y)*a;v.p0=an(an({},h),{},{x:h.x+g,y:h.y+d}),v.p1=an(an({},p),{},{x:p.x+g,y:p.y+d})}return{offset:c+=f,segment:v,rotation:y}}},{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,r=this;if(!this.glyphInfo){var n=this.getText(),i=n.split(""),o=n.split(" ").length-1,a=s()(e=this.parent.getAttribute("dx").split()).call(e,function(t){return t.getPixels("x")}),u=this.parent.getAttribute("dy").getPixels("y"),c=this.parent.getStyle("text-anchor").getString("start"),f=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),h=0;f.hasValue()&&"inherit"!==f.getValue()?f.hasValue()&&"initial"!==f.getValue()&&"unset"!==f.getValue()&&(h=f.getPixels()):h=l.getPixels();var p=[],v=n.length;this.letterSpacingCache=p;for(var y=0;y<v;y++)p.push(void 0!==a[y]?a[y]:h);var g=G()(p).call(p,function(t,e,r){return 0===r?0:t+e||0},0),d=this.measureText(t),m=Math.max(d+g,0);this.textWidth=d,this.textHeight=this.getFontSize(),this.glyphInfo=[];var x=this.getPathLength(),b=this.getStyle("startOffset").getNumber(0)*x,w=0;("middle"===c||"center"===c)&&(w=-m/2),("end"===c||"right"===c)&&(w=-m),w+=b,T()(i).call(i,function(e,n){var a=r.findSegmentToFitChar(t,c,m,x,o,w,u,e,n),s=a.segment;w=a.offset,s.p0&&s.p1&&r.glyphInfo.push({text:i[n],p0:s.p0,p1:s.p1,rotation:a.rotation})})}}},{key:"parsePathData",value:function(t){if(this.pathLength=-1,!t)return[];var e=[],r=t.pathParser;for(r.reset();!r.isEnd();){var n=r.current,i=n?n.x:0,o=n?n.y:0,a=r.next(),u=a.type,s=[];switch(a.type){case Mr.MOVE_TO:this.pathM(r,s);break;case Mr.LINE_TO:u=this.pathL(r,s);break;case Mr.HORIZ_LINE_TO:u=this.pathH(r,s);break;case Mr.VERT_LINE_TO:u=this.pathV(r,s);break;case Mr.CURVE_TO:this.pathC(r,s);break;case Mr.SMOOTH_CURVE_TO:u=this.pathS(r,s);break;case Mr.QUAD_TO:this.pathQ(r,s);break;case Mr.SMOOTH_QUAD_TO:u=this.pathT(r,s);break;case Mr.ARC:s=this.pathA(r);break;case Mr.CLOSE_PATH:Nr.pathZ(r)}e.push(a.type!==Mr.CLOSE_PATH?{type:u,points:s,start:{x:i,y:o},pathLength:this.calcLength(i,o,u,s)}:{type:Mr.CLOSE_PATH,points:[],pathLength:0})}return e}},{key:"pathM",value:function(t,e){var r=Nr.pathM(t).point;e.push(r.x,r.y)}},{key:"pathL",value:function(t,e){var r=Nr.pathL(t).point;return e.push(r.x,r.y),Mr.LINE_TO}},{key:"pathH",value:function(t,e){var r=Nr.pathH(t).point;return e.push(r.x,r.y),Mr.LINE_TO}},{key:"pathV",value:function(t,e){var r=Nr.pathV(t).point;return e.push(r.x,r.y),Mr.LINE_TO}},{key:"pathC",value:function(t,e){var r=Nr.pathC(t),n=r.point,i=r.controlPoint,o=r.currentPoint;e.push(n.x,n.y,i.x,i.y,o.x,o.y)}},{key:"pathS",value:function(t,e){var r=Nr.pathS(t),n=r.point,i=r.controlPoint,o=r.currentPoint;return e.push(n.x,n.y,i.x,i.y,o.x,o.y),Mr.CURVE_TO}},{key:"pathQ",value:function(t,e){var r=Nr.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=Nr.pathT(t),n=r.controlPoint,i=r.currentPoint;return e.push(n.x,n.y,i.x,i.y),Mr.QUAD_TO}},{key:"pathA",value:function(t){var e=Nr.pathA(t),r=e.sweepFlag,n=e.centp,i=e.ad;return 0===r&&i>0&&(i-=2*Math.PI),1===r&&i<0&&(i+=2*Math.PI),[n.x,n.y,e.rX,e.rY,e.a1,i,e.xAxisRotation,r]}},{key:"calcLength",value:function(t,e,r,n){var i=0,o=null,a=null,u=0;switch(r){case Mr.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case Mr.CURVE_TO:for(i=0,o=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),u=.01;u<=1;u+=.01)a=this.getPointOnCubicBezier(u,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case Mr.QUAD_TO:for(i=0,o=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),u=.01;u<=1;u+=.01)a=this.getPointOnQuadraticBezier(u,t,e,n[0],n[1],n[2],n[3]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case Mr.ARC:i=0;var s=n[4],c=n[5],f=n[4]+c,l=Math.PI/180;if(Math.abs(s-f)<l&&(l=Math.abs(s-f)),o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),c<0)for(u=s-l;u>f;u-=l)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;else for(u=s+l;u<f;u+=l)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],f,0),i+this.getLineLength(o.x,o.y,a.x,a.y)}return 0}},{key:"getPointOnLine",value:function(t,e,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,u=(i-r)/(n-e+Ue),s=Math.sqrt(t*t/(1+u*u));n<e&&(s*=-1);var c=u*s,f=null;if(n===e)f={x:o,y:a+c};else if((a-r)/(o-e+Ue)===u)f={x:o+s,y:a+c};else{var l=0,h=0,p=this.getLineLength(e,r,n,i);if(p<Ue)return null;var v=(o-e)*(n-e)+(a-r)*(i-r),y=this.getLineLength(o,a,l=e+(v/=p*p)*(n-e),h=r+v*(i-r)),g=Math.sqrt(t*t-y*y);s=Math.sqrt(g*g/(1+u*u)),n<e&&(s*=-1),f={x:l+s,y:h+(c=u*s)}}return f}},{key:"getPointOnPath",value:function(t){var e=this.getPathLength(),r=0,n=null;if(t<-5e-5||t-5e-5>e)return null;var i,o=function(t,e){var r;if(void 0===he()||null==h()(t)){if(fe()(t)||(r=function(t,e){var r;if(t){if("string"==typeof t)return nn(t,e);var n=ve()(r=Object.prototype.toString.call(t)).call(r,8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Tt()(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nn(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=se()(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{!a&&null!=r.return&&r.return()}finally{if(u)throw o}}}}(this.dataArray);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!a||!(a.pathLength<5e-5||r+a.pathLength+5e-5<t)){var u=t-r,s=0;switch(a.type){case Mr.LINE_TO:n=this.getPointOnLine(u,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case Mr.ARC:var c=a.points[5],f=a.points[4]+c;if(s=a.points[4]+u/a.pathLength*c,c<0&&s<f||c>=0&&s>f)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],s,a.points[6]);break;case Mr.CURVE_TO:(s=u/a.pathLength)>1&&(s=1),n=this.getPointOnCubicBezier(s,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case Mr.QUAD_TO:(s=u/a.pathLength)>1&&(s=1),n=this.getPointOnQuadraticBezier(s,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3])}if(n)return n;break}r+=a.pathLength}}catch(l){o.e(l)}finally{o.f()}return null}},{key:"getLineLength",value:function(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}},{key:"getPathLength",value:function(){var t;return-1===this.pathLength&&(this.pathLength=G()(t=this.dataArray).call(t,function(t,e){return e.pathLength>0?t+e.pathLength:t},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(t,e,r,n,i,o,a,u,s){return{x:u*Ge(t)+o*We(t)+n*Qe(t)+e*$e(t),y:s*Ge(t)+a*We(t)+i*Qe(t)+r*$e(t)}}},{key:"getPointOnQuadraticBezier",value:function(t,e,r,n,i,o,a){return{x:o*Ze(t)+n*Ke(t)+e*Je(t),y:a*Ze(t)+i*Ke(t)+r*Je(t)}}},{key:"getPointOnEllipticalArc",value:function(t,e,r,n,i,o){var a=Math.cos(o),u=Math.sin(o),s=r*Math.cos(i),c=n*Math.sin(i);return{x:t+(s*a-c*u),y:e+(s*u+c*a)}}},{key:"buildEquidistantCache",value:function(t,e){var r=this.getPathLength(),n=e||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var o=0,a=0;a<=r;a+=n){var u=this.getPointOnPath(a),s=this.getPointOnPath(a+n);!u||!s||(o+=this.getLineLength(u.x,u.y,s.x,s.y))>=i&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:a}),o-=i)}}}},{key:"getEquidistantPointOnPath",value:function(t,e,r){if(this.buildEquidistantCache(e,r),t<0||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}(Or);var sn=function(t){pt(n,t);var e,r=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(n);function n(t,e,i){var o;B(this,n),(o=r.call(this,t,e,i)).type="image",o.loaded=!1;var a=o.getHrefAttribute().getString();if(!a)return dt(o);var u=/\.svg$/.test(a);return t.images.push(gt(o)),u?o.loadSvg(a):o.loadImage(a),o.isSvg=u,o}return U(n,[{key:"loadImage",value:(e=j(D().mark(function t(e){return D().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.createImage(e);case 3:this.image=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error('Error while loading image "'.concat(e,'":'),t.t0);case 10:this.loaded=!0;case 11:case"end":return t.stop()}},t,this,[[0,7]])})),function(t){return e.apply(this,arguments)})},{key:"loadSvg",value:function(){var t=j(D().mark(function t(e){var r;return D().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.fetch(e);case 3:return r=t.sent,t.next=6,r.text();case 6:this.image=t.sent,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),console.error('Error while loading image "'.concat(e,'":'),t.t0);case 13:this.loaded=!0;case 14:case"end":return t.stop()}},t,this,[[0,10]])}));return function(e){return t.apply(this,arguments)}}()},{key:"renderChildren",value:function(t){var e=this.document,r=this.image,n=this.loaded,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(n&&r&&a&&u){if(t.save(),this.isSvg)e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:i,offsetY:o,scaleWidth:a,scaleHeight:u}).render();else{var s=this.image;t.translate(i,o),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:s.width,height:u,desiredHeight:s.height}),this.loaded&&(void 0===s.complete||s.complete)&&t.drawImage(s,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 Tr(t,e,t+r,e+n)}}]),n}(Pr);var cn=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="symbol",t}return U(r,[{key:"render",value:function(t){}}]),r}(Pr),fn=function(){function t(e){B(this,t),this.document=e,this.loaded=!1,e.fonts.push(this)}return U(t,[{key:"load",value:(e=j(D().mark(function t(e,r){var n,i,o;return D().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i=this.document,t.next=4,i.canvg.parser.load(r);case 4:o=t.sent.getElementsByTagName("font"),T()(n=Tt()(o)).call(n,function(t){var r=i.createElement(t);i.definitions[e]=r}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.error('Error while loading font "'.concat(r,'":'),t.t0);case 12:this.loaded=!0;case 13:case"end":return t.stop()}},t,this,[[0,9]])})),function(t,r){return e.apply(this,arguments)})}]),t;var e}();var ln=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o,a;B(this,r),(a=e.call(this,t,n,i)).type="style";var u=Pe(s()(o=Tt()(n.childNodes)).call(o,function(t){return t.data}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return T()(u).call(u,function(e){var r=ot()(e).call(e);if(r){var n=r.split("{"),i=n[0].split(","),o=n[1].split(";");T()(i).call(i,function(e){var r=ot()(e).call(e);if(r){var n=t.styles[r]||{};if(T()(o).call(o,function(e){var r,i,o=Et()(e).call(e,":"),a=ot()(r=e.substr(0,o)).call(r),u=ot()(i=e.substr(o+1,e.length-o)).call(i);a&&u&&(n[a]=new tr(t,a,u))}),t.styles[r]=n,t.stylesSpecificity[r]=He(r),"@font-face"===r){var i=n["font-family"].getString().replace(/"|'/g,""),a=n.src.getString().split(",");T()(a).call(a,function(e){if(Et()(e).call(e,'format("svg")')>0){var r=_e(e);r&&new fn(t).load(i,r)}})}}})}}),a}return r}(mr);ln.parseExternalUrl=_e;var hn=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="use",t}return U(r,[{key:"setContext",value:function(t){_t(xt(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 _r(e,null)).attributes.viewBox=new tr(e,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new tr(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new tr(e,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new tr(e,"opacity",this.calculateOpacity())),"svg"===n.type){var i=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new tr(e,"width",i.getString())),o.hasValue()&&(n.attributes.height=new tr(e,"height",o.getString()))}var a=n.parent;n.parent=this,n.render(t),n.parent=a}}},{key:"getBoundingBox",value:function(t){var e=this.element;return e?e.getBoundingBox(t):null}},{key:"elementTransform",value:function(){return dr.fromElement(this.document,this.element)}},{key:"element",get:function(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),r}(Pr);function pn(t,e,r,n,i,o){return t[r*n*4+4*e+o]}function vn(t,e,r,n,i,o,a){t[r*n*4+4*e+o]=a}function yn(t,e,r){return t[e]*r}function gn(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}var dn=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;B(this,r),(o=e.call(this,t,n,i)).type="feColorMatrix";var a=Ee(o.getAttribute("values").getString());switch(o.getAttribute("type").getString("matrix")){case"saturate":var u=a[0];a=[.213+.787*u,.715-.715*u,.072-.072*u,0,0,.213-.213*u,.715+.285*u,.072-.072*u,0,0,.213-.213*u,.715-.715*u,.072+.928*u,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var s=a[0]*Math.PI/180;a=[gn(s,.213,.787,-.213),gn(s,.715,-.715,-.715),gn(s,.072,-.072,.928),0,0,gn(s,.213,-.213,.143),gn(s,.715,.285,.14),gn(s,.072,-.072,-.283),0,0,gn(s,.213,-.213,-.787),gn(s,.715,-.715,.715),gn(s,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":a=[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 o.matrix=a,o.includeOpacity=o.getAttribute("includeOpacity").hasValue(),o}return U(r,[{key:"apply",value:function(t,e,r,n,i){for(var o=this.includeOpacity,a=this.matrix,u=t.getImageData(0,0,n,i),s=0;s<i;s++)for(var c=0;c<n;c++){var f=pn(u.data,c,s,n,0,0),l=pn(u.data,c,s,n,0,1),h=pn(u.data,c,s,n,0,2),p=pn(u.data,c,s,n,0,3),v=yn(a,0,f)+yn(a,1,l)+yn(a,2,h)+yn(a,3,p)+yn(a,4,1),y=yn(a,5,f)+yn(a,6,l)+yn(a,7,h)+yn(a,8,p)+yn(a,9,1),g=yn(a,10,f)+yn(a,11,l)+yn(a,12,h)+yn(a,13,p)+yn(a,14,1),d=yn(a,15,f)+yn(a,16,l)+yn(a,17,h)+yn(a,18,p)+yn(a,19,1);o&&(v=y=g=0,d*=p/255),vn(u.data,c,s,n,0,0,v),vn(u.data,c,s,n,0,1,y),vn(u.data,c,s,n,0,2,g),vn(u.data,c,s,n,0,3,d)}t.clearRect(0,0,n,i),t.putImageData(u,0,0)}}]),r}(mr);var mn=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="mask",t}return U(r,[{key:"apply",value:function(t,e){var n=this.document,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!a&&!u){var s,c=new Tr;T()(s=this.children).call(s,function(e){c.addBoundingBox(e.getBoundingBox(t))}),i=Math.floor(c.x1),o=Math.floor(c.y1),a=Math.floor(c.width),u=Math.floor(c.height)}var f=this.removeStyles(e,r.ignoreStyles),l=n.createCanvas(i+a,o+u),h=l.getContext("2d");n.screen.setDefaults(h),this.renderChildren(h),new dn(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(h,0,0,i+a,o+u);var p=n.createCanvas(i+a,o+u),v=p.getContext("2d");n.screen.setDefaults(v),e.render(v),v.globalCompositeOperation="destination-in",v.fillStyle=h.createPattern(l,"no-repeat"),v.fillRect(0,0,i+a,o+u),t.fillStyle=v.createPattern(p,"no-repeat"),t.fillRect(0,0,i+a,o+u),this.restoreStyles(e,f)}},{key:"render",value:function(t){}}]),r}(mr);mn.ignoreStyles=["mask","transform","clip-path"];var xn=function(){},bn=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="clipPath",t}return U(r,[{key:"apply",value:function(t){var e,r=this.document,n=be()(t),i=t.beginPath,o=t.closePath;n&&(n.beginPath=xn,n.closePath=xn),me()(i,t,[]),T()(e=this.children).call(e,function(e){if(void 0!==e.path){var i=void 0!==e.elementTransform?e.elementTransform():null;i||(i=dr.fromElement(r,e)),i&&i.apply(t),e.path(t),n&&(n.closePath=o),i&&i.unapply(t)}}),me()(o,t,[]),t.clip(),n&&(n.beginPath=i,n.closePath=o)}},{key:"render",value:function(t){}}]),r}(mr);var wn=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="filter",t}return U(r,[{key:"apply",value:function(t,e){var n=this.document,i=this.children,o=e.getBoundingBox(t);if(o){var a=0,u=0;T()(i).call(i,function(t){var e=t.extraFilterDistance||0;a=Math.max(a,e),u=Math.max(u,e)});var s=Math.floor(o.width),c=Math.floor(o.height),f=s+2*a,l=c+2*u;if(!(f<1||l<1)){var h=Math.floor(o.x),p=Math.floor(o.y),v=this.removeStyles(e,r.ignoreStyles),y=n.createCanvas(f,l),g=y.getContext("2d");n.screen.setDefaults(g),g.translate(-h+a,-p+u),e.render(g),T()(i).call(i,function(t){"function"==typeof t.apply&&t.apply(g,0,0,f,l)}),t.drawImage(y,0,0,f,l,h-a,p-u,f,l),this.restoreStyles(e,v)}}}},{key:"render",value:function(t){}}]),r}(mr);wn.ignoreStyles=["filter","transform","clip-path"];var Sn=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;return B(this,r),(o=e.call(this,t,n,i)).type="feDropShadow",o.addStylesFromStyleDefinition(),o}return U(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(mr);var An=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="feMorphology",t}return U(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(mr);var kn=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="feComposite",t}return U(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(mr);var Tn=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(t,n,i){var o;return B(this,r),(o=e.call(this,t,n,i)).type="feGaussianBlur",o.blurRadius=Math.floor(o.getAttribute("stdDeviation").getNumber()),o.extraFilterDistance=o.blurRadius,o}return U(r,[{key:"apply",value:function(t,e,r,n,i){var o=this.document,a=this.blurRadius,u=o.window?o.window.document.body:null,s=t.canvas;s.id=o.getUniqueId(),u&&(s.style.display="none",u.appendChild(s)),ke(s,e,r,n,i,a),u&&u.removeChild(s)}}]),r}(mr);var Pn=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="title",t}return r}(mr);var On=function(t){pt(r,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!ct()||ct().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(ct()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=ct()(n,arguments,i)}else r=n.apply(this,arguments);return dt(this,r)}}(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="desc",t}return r}(mr),Cn={svg:_r,rect:Rr,circle:Vr,ellipse:Dr,line:Lr,polyline:Ir,polygon:jr,path:Nr,pattern:zr,marker:Fr,defs:Br,linearGradient:Xr,radialGradient:Yr,stop:qr,animate:Gr,animateColor:Wr,animateTransform:Qr,font:Zr,"font-face":Kr,"missing-glyph":Jr,glyph:tn,text:Or,tspan:Cr,tref:en,a:rn,textPath:un,image:sn,g:Hr,symbol:cn,style:ln,use:hn,mask:mn,clipPath:bn,filter:wn,feDropShadow:Sn,feMorphology:An,feComposite:kn,feColorMatrix:dn,feGaussianBlur:Tn,title:Pn,desc:On};function En(t,e){var r=R()(t);if(N()){var n=N()(t);e&&(n=E()(n).call(n,function(e){return O()(t,e).enumerable})),r.push.apply(r,n)}return r}function Mn(){return(Mn=j(D().mark(function t(e){var r,n,i=arguments;return D().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(J())(function(t,r){n.onload=function(){t(n)},n.onerror=function(){r()},n.src=e}));case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}var Nn=function(){function t(e){var r,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.rootEmSize,a=void 0===o?12:o,u=i.emSize,s=void 0===u?12:u,c=i.createCanvas,f=void 0===c?t.createCanvas:c,l=i.createImage,h=void 0===l?t.createImage:l,p=i.anonymousCrossOrigin;B(this,t),this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=a,this.emSize=s,this.createCanvas=f,this.createImage=this.bindCreateImage(h,p),this.screen.wait(et()(r=this.isImagesLoaded).call(r,this)),this.screen.wait(et()(n=this.isFontsLoaded).call(n,this))}return U(t,[{key:"bindCreateImage",value:function(t,e){return"boolean"==typeof e?function(r,n){return t(r,"boolean"==typeof n?n:e)}:t}},{key:"popEmSize",value:function(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){var t;return Z()(t=this.images).call(t,function(t){return t.loaded})}},{key:"isFontsLoaded",value:function(){var t;return Z()(t=this.fonts).call(t,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 void 0!==n?new n(this,e):new xr(this,e)}},{key:"createTextNode",value:function(t){return new Er(this,t)}},{key:"setViewBox",value:function(t){this.screen.setViewBox(function(t){for(var e=1;e<arguments.length;e++){var r,n=null!=arguments[e]?arguments[e]:{};if(e%2)T()(r=En(Object(n),!0)).call(r,function(e){F(t,e,n[e])});else if(A())w()(t,A()(n));else{var i;T()(i=En(Object(n))).call(i,function(e){x()(t,e,O()(n,e))})}}return t}({document:this},t))}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var t=this.emSizeStack;return t[t.length-1]},set:function(t){this.emSizeStack.push(t)}}]),t}();function _n(t,e){var r=R()(t);if(N()){var n=N()(t);e&&(n=E()(n).call(n,function(e){return O()(t,e).enumerable})),r.push.apply(r,n)}return r}function Rn(t){for(var e=1;e<arguments.length;e++){var r,n=null!=arguments[e]?arguments[e]:{};if(e%2)T()(r=_n(Object(n),!0)).call(r,function(e){F(t,e,n[e])});else if(A())w()(t,A()(n));else{var i;T()(i=_n(Object(n))).call(i,function(e){x()(t,e,O()(n,e))})}}return t}Nn.createCanvas=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r},Nn.createImage=function(t){return Mn.apply(this,arguments)},Nn.elementTypes=Cn;var Vn=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};B(this,t),this.parser=new cr(n),this.screen=new ar(e,n),this.options=n;var i=new Nn(this,n),o=i.createDocumentElement(r);this.document=i,this.documentElement=o}return U(t,[{key:"fork",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.from(e,r,Rn(Rn({},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,Rn(Rn({},this.options),n))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:(e=j(D().mark(function t(){var e=arguments;return D().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.start(Rn({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},e.length>0&&void 0!==e[0]?e[0]:{})),t.next=4,this.ready();case 4:this.stop();case 5:case"end":return t.stop()}},t,this)})),function(){return e.apply(this,arguments)})},{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,Rn(Rn({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(){var e=j(D().mark(function e(r,n){var i,o,a=arguments;return D().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=new cr(i=a.length>2&&void 0!==a[2]?a[2]:{}),e.next=4,o.parse(n);case 4:return e.abrupt("return",new t(r,e.sent,i));case 6:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},{key:"fromString",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new cr(n),o=i.parseFromString(r);return new t(e,o,n)}}]),t;var e}(),Dn=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 j(D().mark(function e(){var r,n;return D().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 e.abrupt("return",e.sent);case 10:case"end":return e.stop()}},e)}))()}};return("undefined"!=typeof DOMParser||void 0===e)&&re()(r,"DOMParser"),r},node:function(t){var e=t.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t.DOMParser,fetch:t.fetch,createCanvas:e.createCanvas,createImage:e.loadImage}}}),Ln=Vn},74771:function(t,e,r){r(3934),r(261);var n=r(13544);t.exports=n.Array.from},8412:function(t,e,r){r(2862);var n=r(13544);t.exports=n.Array.isArray},77377:function(t,e,r){r(1625);var n=r(97911);t.exports=n("Array").concat},66933:function(t,e,r){r(70466);var n=r(97911);t.exports=n("Array").every},9504:function(t,e,r){r(24990);var n=r(97911);t.exports=n("Array").fill},82168:function(t,e,r){r(56534);var n=r(97911);t.exports=n("Array").filter},98812:function(t,e,r){r(98792);var n=r(97911);t.exports=n("Array").forEach},58479:function(t,e,r){r(77059);var n=r(97911);t.exports=n("Array").includes},43207:function(t,e,r){r(2795);var n=r(97911);t.exports=n("Array").indexOf},5736:function(t,e,r){r(88119);var n=r(97911);t.exports=n("Array").map},7198:function(t,e,r){r(46250);var n=r(97911);t.exports=n("Array").reduce},84302:function(t,e,r){r(32836);var n=r(97911);t.exports=n("Array").reverse},86693:function(t,e,r){r(72999);var n=r(97911);t.exports=n("Array").slice},24273:function(t,e,r){r(50733);var n=r(97911);t.exports=n("Array").some},46332:function(t,e,r){r(1285),r(17221);var n=r(97911);t.exports=n("Array").values},42618:function(t,e,r){r(34699);var n=r(13544);t.exports=n.Date.now},97724:function(t,e,r){r(33379);var n=r(97911);t.exports=n("Function").bind},69029:function(t,e,r){var n=r(97724),i=Function.prototype;t.exports=function(t){var e=t.bind;return t===i||t instanceof Function&&e===i.bind?n:e}},28924:function(t,e,r){var n=r(77377),i=Array.prototype;t.exports=function(t){var e=t.concat;return t===i||t instanceof Array&&e===i.concat?n:e}},98709:function(t,e,r){var n=r(66933),i=Array.prototype;t.exports=function(t){var e=t.every;return t===i||t instanceof Array&&e===i.every?n:e}},65991:function(t,e,r){var n=r(9504),i=Array.prototype;t.exports=function(t){var e=t.fill;return t===i||t instanceof Array&&e===i.fill?n:e}},64158:function(t,e,r){var n=r(82168),i=Array.prototype;t.exports=function(t){var e=t.filter;return t===i||t instanceof Array&&e===i.filter?n:e}},33758:function(t,e,r){var n=r(58479),i=r(85136),o=Array.prototype,a=String.prototype;t.exports=function(t){var e=t.includes;return t===o||t instanceof Array&&e===o.includes?n:"string"==typeof t||t===a||t instanceof String&&e===a.includes?i:e}},7592:function(t,e,r){var n=r(43207),i=Array.prototype;t.exports=function(t){var e=t.indexOf;return t===i||t instanceof Array&&e===i.indexOf?n:e}},20681:function(t,e,r){var n=r(5736),i=Array.prototype;t.exports=function(t){var e=t.map;return t===i||t instanceof Array&&e===i.map?n:e}},90949:function(t,e,r){var n=r(7198),i=Array.prototype;t.exports=function(t){var e=t.reduce;return t===i||t instanceof Array&&e===i.reduce?n:e}},62212:function(t,e,r){var n=r(84302),i=Array.prototype;t.exports=function(t){var e=t.reverse;return t===i||t instanceof Array&&e===i.reverse?n:e}},49073:function(t,e,r){var n=r(86693),i=Array.prototype;t.exports=function(t){var e=t.slice;return t===i||t instanceof Array&&e===i.slice?n:e}},24146:function(t,e,r){var n=r(24273),i=Array.prototype;t.exports=function(t){var e=t.some;return t===i||t instanceof Array&&e===i.some?n:e}},68333:function(t,e,r){var n=r(98720),i=String.prototype;t.exports=function(t){var e=t.startsWith;return"string"==typeof t||t===i||t instanceof String&&e===i.startsWith?n:e}},65786:function(t,e,r){var n=r(75998),i=String.prototype;t.exports=function(t){var e=t.trim;return"string"==typeof t||t===i||t instanceof String&&e===i.trim?n:e}},31845:function(t,e,r){r(1285),r(85140),r(17221),r(3934);var n=r(13544);t.exports=n.Map},25852:function(t,e,r){r(86516);var n=r(13544).Object;t.exports=function(t,e){return n.create(t,e)}},24457:function(t,e,r){r(36255);var n=r(13544).Object,i=t.exports=function(t,e){return n.defineProperties(t,e)};n.defineProperties.sham&&(i.sham=!0)},99671:function(t,e,r){r(84468);var n=r(13544).Object,i=t.exports=function(t,e,r){return n.defineProperty(t,e,r)};n.defineProperty.sham&&(i.sham=!0)},38007:function(t,e,r){r(86627);var n=r(13544).Object,i=t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)};n.getOwnPropertyDescriptor.sham&&(i.sham=!0)},57432:function(t,e,r){r(78275);var n=r(13544);t.exports=n.Object.getOwnPropertyDescriptors},36541:function(t,e,r){r(56728);var n=r(13544);t.exports=n.Object.getOwnPropertySymbols},17303:function(t,e,r){r(31193);var n=r(13544);t.exports=n.Object.getPrototypeOf},62149:function(t,e,r){r(56557);var n=r(13544);t.exports=n.Object.keys},70433:function(t,e,r){r(17971);var n=r(13544);t.exports=n.Object.setPrototypeOf},32984:function(t,e,r){r(17338);var n=r(13544);t.exports=n.parseFloat},49232:function(t,e,r){r(55026);var n=r(13544);t.exports=n.parseInt},80092:function(t,e,r){r(10901),r(1285),r(17221),r(66793),r(84798),r(98857),r(30185),r(3934);var n=r(13544);t.exports=n.Promise},27775:function(t,e,r){r(59321);var n=r(13544);t.exports=n.Reflect.apply},472:function(t,e,r){r(19539);var n=r(13544);t.exports=n.Reflect.construct},46627:function(t,e,r){r(62621);var n=r(13544);t.exports=n.Reflect.deleteProperty},57699:function(t,e,r){r(47589);var n=r(13544);t.exports=n.Reflect.getPrototypeOf},4678:function(t,e,r){r(60851);var n=r(13544);t.exports=n.Reflect.get},85136:function(t,e,r){r(97764);var n=r(97911);t.exports=n("String").includes},98720:function(t,e,r){r(24655);var n=r(97911);t.exports=n("String").startsWith},75998:function(t,e,r){r(90451);var n=r(97911);t.exports=n("String").trim},61697:function(t,e,r){r(1625),r(17221),r(56728),r(16426),r(1172),r(99579),r(41258),r(2383),r(44339),r(64776),r(88215),r(65389),r(12733),r(97977),r(59792),r(60242),r(26291),r(32300),r(6123),r(44864);var n=r(13544);t.exports=n.Symbol},42497:function(t,e,r){r(1285),r(17221),r(3934),r(2383);var n=r(89734);t.exports=n.f("iterator")},56286:function(t,e,r){var n=r(74771);t.exports=n},54153:function(t,e,r){var n=r(8412);t.exports=n},90755:function(t,e,r){r(1285),r(3934),r(33089);var n=r(34014);t.exports=n},93626:function(t,e,r){r(1285),r(3934),r(33089);var n=r(88055);t.exports=n},96471:function(t,e,r){var n=r(49073);t.exports=n},41171:function(t,e,r){var n=r(25852);t.exports=n},62005:function(t,e,r){var n=r(99671);t.exports=n},39964:function(t,e,r){var n=r(38007);t.exports=n},42346:function(t,e,r){var n=r(17303);t.exports=n},24329:function(t,e,r){var n=r(70433);t.exports=n},2793:function(t,e,r){var n=r(80092);r(67670),r(61127),r(93114),r(93379),t.exports=n},70269:function(t,e,r){var n=r(4678);t.exports=n},88819:function(t,e,r){var n=r(61697);r(55461),r(5737),r(87097),r(71985),r(90212),r(93770),r(47743),t.exports=n},55912:function(t,e,r){var n=r(42497);t.exports=n},79245:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},93221:function(t,e,r){var n=r(77293);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},82196:function(t){t.exports=function(){}},54849:function(t){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},64562:function(t,e,r){var n=r(77293);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},35277:function(t,e,r){"use strict";var n=r(70267),i=r(19401),o=r(48869);t.exports=function(t){for(var e=n(this),r=o(e.length),a=arguments.length,u=i(a>1?arguments[1]:void 0,r),s=a>2?arguments[2]:void 0,c=void 0===s?r:i(s,r);c>u;)e[u++]=t;return e}},8366:function(t,e,r){"use strict";var n=r(68607).forEach,i=r(33620)("forEach");t.exports=i?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},51923:function(t,e,r){"use strict";var n=r(76781),i=r(70267),o=r(93463),a=r(39918),u=r(48869),s=r(46751),c=r(34014);t.exports=function(t){var e,r,f,l,h,p,v=i(t),y="function"==typeof this?this:Array,g=arguments.length,d=g>1?arguments[1]:void 0,m=void 0!==d,x=c(v),b=0;if(m&&(d=n(d,g>2?arguments[2]:void 0,2)),null==x||y==Array&&a(x))for(r=new y(e=u(v.length));e>b;b++)p=m?d(v[b],b):v[b],s(r,b,p);else for(h=(l=x.call(v)).next,r=new y;!(f=h.call(l)).done;b++)p=m?o(l,d,[f.value,b],!0):f.value,s(r,b,p);return r.length=b,r}},95171:function(t,e,r){var n=r(42746),i=r(48869),o=r(19401),a=function(t){return function(e,r,a){var u,s=n(e),c=i(s.length),f=o(a,c);if(t&&r!=r){for(;c>f;)if((u=s[f++])!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},68607:function(t,e,r){var n=r(76781),i=r(20973),o=r(70267),a=r(48869),u=r(2103),s=[].push,c=function(t){var e=1==t,r=2==t,c=3==t,f=4==t,l=6==t,h=7==t,p=5==t||l;return function(v,y,g,d){for(var m,x,b=o(v),w=i(b),S=n(y,g,3),A=a(w.length),k=0,T=d||u,P=e?T(v,A):r||h?T(v,0):void 0;A>k;k++)if((p||k in w)&&(x=S(m=w[k],k,b),t))if(e)P[k]=x;else if(x)switch(t){case 3:return!0;case 5:return m;case 6:return k;case 2:s.call(P,m)}else switch(t){case 4:return!1;case 7:s.call(P,m)}return l?-1:c||f?f:P}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},95913:function(t,e,r){var n=r(55756),i=r(91840),o=r(63556),a=i("species");t.exports=function(t){return o>=51||!n(function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},33620:function(t,e,r){"use strict";var n=r(55756);t.exports=function(t,e){var r=[][t];return!!r&&n(function(){r.call(null,e||function(){throw 1},1)})}},88908:function(t,e,r){var n=r(79245),i=r(70267),o=r(20973),a=r(48869),u=function(t){return function(e,r,u,s){n(r);var c=i(e),f=o(c),l=a(c.length),h=t?l-1:0,p=t?-1:1;if(u<2)for(;;){if(h in f){s=f[h],h+=p;break}if(h+=p,t?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;t?h>=0:l>h;h+=p)h in f&&(s=r(s,f[h],h,c));return s}};t.exports={left:u(!1),right:u(!0)}},48045:function(t,e,r){var n=r(77293),i=r(89735),o=r(91840)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)?n(e)&&null===(e=e[o])&&(e=void 0):e=void 0),void 0===e?Array:e}},2103:function(t,e,r){var n=r(48045);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},93463:function(t,e,r){var n=r(64562),i=r(40798);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(a){throw i(t),a}}},5253:function(t,e,r){var n=r(91840)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,function(){throw 2})}catch(u){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},t(o)}catch(a){}return r}},49806:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},35329:function(t,e,r){var n=r(25014),i=r(49806),o=r(91840)("toStringTag"),a="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),o))?r:a?i(e):"Object"==(n=i(e))&&"function"==typeof e.callee?"Arguments":n}},26650:function(t,e,r){"use strict";var n=r(48011).f,i=r(83272),o=r(73892),a=r(76781),u=r(54849),s=r(41605),c=r(32837),f=r(58014),l=r(49642),h=r(57867).fastKey,p=r(91093),v=p.set,y=p.getterFor;t.exports={getConstructor:function(t,e,r,c){var f=t(function(t,n){u(t,f,e),v(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=n&&s(n,t[c],{that:t,AS_ENTRIES:r})}),p=y(e),g=function(t,e,r){var n,i,o=p(t),a=d(t,e);return a?a.value=r:(o.last=a={index:i=h(e,!0),key:e,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),l?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},d=function(t,e){var r,n=p(t),i=h(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==e)return r};return o(f.prototype,{clear:function(){for(var t=p(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=p(this),r=d(this,t);if(r){var n=r.next,i=r.previous;delete e.index[r.index],r.removed=!0,i&&(i.next=n),n&&(n.previous=i),e.first==r&&(e.first=n),e.last==r&&(e.last=i),l?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=p(this),n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!d(this,t)}}),o(f.prototype,r?{get:function(t){var e=d(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),l&&n(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,r){var n=e+" Iterator",i=y(e),o=y(n);c(t,e,function(t,e){v(this,{type:n,target:t,state:i(t),kind:e,last:void 0})},function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),f(e)}}},85116:function(t,e,r){"use strict";var n=r(90513),i=r(70009),o=r(57867),a=r(55756),u=r(65162),s=r(41605),c=r(54849),f=r(77293),l=r(85681),h=r(48011).f,p=r(68607).forEach,v=r(49642),y=r(91093),g=y.set,d=y.getterFor;t.exports=function(t,e,r){var y,m=-1!==t.indexOf("Map"),x=-1!==t.indexOf("Weak"),b=m?"set":"add",w=i[t],S=w&&w.prototype,A={};if(v&&"function"==typeof w&&(x||S.forEach&&!a(function(){(new w).entries().next()}))){y=e(function(e,r){g(c(e,y,t),{type:t,collection:new w}),null!=r&&s(r,e[b],{that:e,AS_ENTRIES:m})});var k=d(t);p(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(t){var e="add"==t||"set"==t;t in S&&(!x||"clear"!=t)&&u(y.prototype,t,function(r,n){var i=k(this).collection;if(!e&&x&&!f(r))return"get"==t&&void 0;var o=i[t](0===r?0:r,n);return e?this:o})}),x||h(y.prototype,"size",{configurable:!0,get:function(){return k(this).collection.size}})}else y=r.getConstructor(e,t,m,b),o.enable();return l(y,t,!1,!0),A[t]=y,n({global:!0,forced:!0},A),x||r.setStrong(y,t,m),y}},79668:function(t,e,r){var n=r(91840)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(i){}}return!1}},37112:function(t,e,r){var n=r(55756);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},65297:function(t,e,r){"use strict";var n=r(38432).IteratorPrototype,i=r(83272),o=r(51361),a=r(85681),u=r(84394),s=function(){return this};t.exports=function(t,e,r){var c=e+" Iterator";return t.prototype=i(n,{next:o(1,r)}),a(t,c,!1,!0),u[c]=s,t}},65162:function(t,e,r){var n=r(49642),i=r(48011),o=r(51361);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},51361:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},46751:function(t,e,r){"use strict";var n=r(62939),i=r(48011),o=r(51361);t.exports=function(t,e,r){var a=n(e);a in t?i.f(t,a,o(0,r)):t[a]=r}},32837:function(t,e,r){"use strict";var n=r(90513),i=r(65297),o=r(31426),a=r(54945),u=r(85681),s=r(65162),c=r(672),f=r(91840),l=r(81124),h=r(84394),p=r(38432),v=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,g=f("iterator"),d="keys",m="values",x="entries",b=function(){return this};t.exports=function(t,e,r,f,p,w,S){i(r,e,f);var A,k,T,P=function(t){if(t===p&&N)return N;if(!y&&t in E)return E[t];switch(t){case d:case m:case x:return function(){return new r(this,t)}}return function(){return new r(this)}},O=e+" Iterator",C=!1,E=t.prototype,M=E[g]||E["@@iterator"]||p&&E[p],N=!y&&M||P(p),_="Array"==e&&E.entries||M;if(_&&(A=o(_.call(new t)),v!==Object.prototype&&A.next&&(!l&&o(A)!==v&&(a?a(A,v):"function"!=typeof A[g]&&s(A,g,b)),u(A,O,!0,!0),l&&(h[O]=b))),p==m&&M&&M.name!==m&&(C=!0,N=function(){return M.call(this)}),(!l||S)&&E[g]!==N&&s(E,g,N),h[e]=N,p)if(k={values:P(m),keys:w?N:P(d),entries:P(x)},S)for(T in k)(y||C||!(T in E))&&c(E,T,k[T]);else n({target:e,proto:!0,forced:y||C},k);return k}},16925:function(t,e,r){var n=r(13544),i=r(52810),o=r(89734),a=r(48011).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},49642:function(t,e,r){var n=r(55756);t.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},96682:function(t,e,r){var n=r(70009),i=r(77293),o=n.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},44125:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},34008:function(t){t.exports="object"==typeof window},3877:function(t,e,r){var n=r(86053);t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(n)},3787:function(t,e,r){var n=r(49806),i=r(70009);t.exports="process"==n(i.process)},85308:function(t,e,r){var n=r(86053);t.exports=/web0s(?!.*chrome)/i.test(n)},86053:function(t,e,r){var n=r(7365);t.exports=n("navigator","userAgent")||""},63556:function(t,e,r){var n,i,o=r(70009),a=r(86053),u=o.process,s=o.Deno,c=u&&u.versions||s&&s.version,f=c&&c.v8;f?i=(n=f.split("."))[0]<4?1:n[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),t.exports=i&&+i},97911:function(t,e,r){var n=r(13544);t.exports=function(t){return n[t+"Prototype"]}},44939:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},90513:function(t,e,r){"use strict";var n=r(70009),i=r(25525).f,o=r(79482),a=r(13544),u=r(76781),s=r(65162),c=r(52810),f=function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,l,h,p,v,y,g,d,m=t.target,x=t.global,b=t.stat,w=t.proto,S=x?n:b?n[m]:(n[m]||{}).prototype,A=x?a:a[m]||(a[m]={}),k=A.prototype;for(h in e)r=!o(x?h:m+(b?".":"#")+h,t.forced)&&S&&c(S,h),v=A[h],r&&(y=t.noTargetGet?(d=i(S,h))&&d.value:S[h]),p=r&&y?y:e[h],(!r||typeof v!=typeof p)&&(g=t.bind&&r?u(p,n):t.wrap&&r?f(p):w&&"function"==typeof p?u(Function.call,p):p,(t.sham||p&&p.sham||v&&v.sham)&&s(g,"sham",!0),A[h]=g,w&&(c(a,l=m+"Prototype")||s(a,l,{}),a[l][h]=p,t.real&&k&&!k[h]&&s(k,h,p)))}},55756:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},3124:function(t,e,r){var n=r(55756);t.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},76781:function(t,e,r){var n=r(79245);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)}}},44197:function(t,e,r){"use strict";var n=r(79245),i=r(77293),o=[].slice,a={},u=function(t,e,r){if(!(e in a)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";a[e]=Function("C,a","return new C("+n.join(",")+")")}return a[e](t,r)};t.exports=Function.bind||function(t){var e=n(this),r=o.call(arguments,1),a=function(){var n=r.concat(o.call(arguments));return this instanceof a?u(e,n.length,n):e.apply(t,n)};return i(e.prototype)&&(a.prototype=e.prototype),a}},7365:function(t,e,r){var n=r(13544),i=r(70009),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(i[t]):n[t]&&n[t][e]||i[t]&&i[t][e]}},34014:function(t,e,r){var n=r(35329),i=r(84394),o=r(91840)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[n(t)]}},88055:function(t,e,r){var n=r(64562),i=r(34014);t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return n(e.call(t))}},70009:function(t){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||function(){return this}()||Function("return this")()},52810:function(t,e,r){var n=r(70267),i={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return i.call(n(t),e)}},45599:function(t){t.exports={}},52912:function(t,e,r){var n=r(70009);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},55690:function(t,e,r){var n=r(7365);t.exports=n("document","documentElement")},50495:function(t,e,r){var n=r(49642),i=r(55756),o=r(96682);t.exports=!n&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},20973:function(t,e,r){var n=r(55756),i=r(49806),o="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},26699:function(t,e,r){var n=r(24766),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return i.call(t)}),t.exports=n.inspectSource},57867:function(t,e,r){var n=r(90513),i=r(45599),o=r(77293),a=r(52810),u=r(48011).f,s=r(51518),c=r(62469),f=r(13708),l=r(3124),h=!1,p=f("meta"),v=0,y=Object.isExtensible||function(){return!0},g=function(t){u(t,p,{value:{objectID:"O"+v++,weakData:{}}})},d=t.exports={enable:function(){d.enable=function(){},h=!0;var t=s.f,e=[].splice,r={};r[p]=1,t(r).length&&(s.f=function(r){for(var n=t(r),i=0,o=n.length;i<o;i++)if(n[i]===p){e.call(n,i,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,p)){if(!y(t))return"F";if(!e)return"E";g(t)}return t[p].objectID},getWeakData:function(t,e){if(!a(t,p)){if(!y(t))return!0;if(!e)return!1;g(t)}return t[p].weakData},onFreeze:function(t){return l&&h&&y(t)&&!a(t,p)&&g(t),t}};i[p]=!0},91093:function(t,e,r){var n,i,o,a=r(13179),u=r(70009),s=r(77293),c=r(65162),f=r(52810),l=r(24766),h=r(86066),p=r(45599),v="Object already initialized";if(a||l.state){var y=l.state||(l.state=new(0,u.WeakMap)),g=y.get,d=y.has,m=y.set;n=function(t,e){if(d.call(y,t))throw new TypeError(v);return e.facade=t,m.call(y,t,e),e},i=function(t){return g.call(y,t)||{}},o=function(t){return d.call(y,t)}}else{var x=h("state");p[x]=!0,n=function(t,e){if(f(t,x))throw new TypeError(v);return e.facade=t,c(t,x,e),e},i=function(t){return f(t,x)?t[x]:{}},o=function(t){return f(t,x)}}t.exports={set:n,get:i,has:o,enforce:function(t){return o(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!s(e)||(r=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},39918:function(t,e,r){var n=r(91840),i=r(84394),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},89735:function(t,e,r){var n=r(49806);t.exports=Array.isArray||function(t){return"Array"==n(t)}},79482:function(t,e,r){var n=r(55756),i=/#|\.prototype\./,o=function(t,e){var r=u[a(t)];return r==c||r!=s&&("function"==typeof e?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=o.data={},s=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},77293:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},81124:function(t){t.exports=!0},60373:function(t,e,r){var n=r(77293),i=r(49806),o=r(91840)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},74717:function(t,e,r){var n=r(7365),i=r(99554);t.exports=i?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return"function"==typeof e&&Object(t)instanceof e}},41605:function(t,e,r){var n=r(64562),i=r(39918),o=r(48869),a=r(76781),u=r(34014),s=r(40798),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,r){var f,l,h,p,v,y,g,d=!(!r||!r.AS_ENTRIES),m=!(!r||!r.IS_ITERATOR),x=!(!r||!r.INTERRUPTED),b=a(e,r&&r.that,1+d+x),w=function(t){return f&&s(f),new c(!0,t)},S=function(t){return d?(n(t),x?b(t[0],t[1],w):b(t[0],t[1])):x?b(t,w):b(t)};if(m)f=t;else{if("function"!=typeof(l=u(t)))throw TypeError("Target is not iterable");if(i(l)){for(h=0,p=o(t.length);p>h;h++)if((v=S(t[h]))&&v instanceof c)return v;return new c(!1)}f=l.call(t)}for(y=f.next;!(g=y.call(f)).done;){try{v=S(g.value)}catch(A){throw s(f),A}if("object"==typeof v&&v&&v instanceof c)return v}return new c(!1)}},40798:function(t,e,r){var n=r(64562);t.exports=function(t){var e=t.return;if(void 0!==e)return n(e.call(t)).value}},38432:function(t,e,r){"use strict";var n,i,o,a=r(55756),u=r(31426),s=r(65162),c=r(52810),f=r(91840),l=r(81124),h=f("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(n=i):p=!0);var v=null==n||a(function(){var t={};return n[h].call(t)!==t});v&&(n={}),(!l||v)&&!c(n,h)&&s(n,h,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},84394:function(t){t.exports={}},58991:function(t,e,r){var n,i,o,a,u,s,c,f,l=r(70009),h=r(25525).f,p=r(37352).set,v=r(3877),y=r(85308),g=r(3787),d=l.MutationObserver||l.WebKitMutationObserver,m=l.document,x=l.process,b=l.Promise,w=h(l,"queueMicrotask"),S=w&&w.value;S||(n=function(){var t,e;for(g&&(t=x.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(r){throw i?a():o=void 0,r}}o=void 0,t&&t.enter()},v||g||y||!d||!m?b&&b.resolve?((c=b.resolve(void 0)).constructor=b,f=c.then,a=function(){f.call(c,n)}):a=g?function(){x.nextTick(n)}:function(){p.call(l,n)}:(u=!0,s=m.createTextNode(""),new d(n).observe(s,{characterData:!0}),a=function(){s.data=u=!u})),t.exports=S||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},20515:function(t,e,r){var n=r(70009);t.exports=n.Promise},29333:function(t,e,r){var n=r(63556),i=r(55756);t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},13179:function(t,e,r){var n=r(70009),i=r(26699),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},54256:function(t,e,r){"use strict";var n=r(79245),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)}},56421:function(t,e,r){var n=r(60373);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},32415:function(t,e,r){var n=r(70009),i=r(41433),o=r(89858).trim,a=r(88185),u=n.parseFloat,s=1/u(a+"-0")!=-1/0;t.exports=s?function(t){var e=o(i(t)),r=u(e);return 0===r&&"-"==e.charAt(0)?-0:r}:u},3537:function(t,e,r){var n=r(70009),i=r(41433),o=r(89858).trim,a=r(88185),u=n.parseInt,s=/^[+-]?0[Xx]/,c=8!==u(a+"08")||22!==u(a+"0x16");t.exports=c?function(t,e){var r=o(i(t));return u(r,e>>>0||(s.test(r)?16:10))}:u},83272:function(t,e,r){var n,i=r(64562),o=r(25913),a=r(44939),u=r(45599),s=r(55690),c=r(96682),f=r(86066),l="prototype",h="script",p=f("IE_PROTO"),v=function(){},y=function(t){return"<"+h+">"+t+"</"+h+">"},g=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}d=document.domain&&n?g(n):function(){var t,e=c("iframe");if(e.style)return e.style.display="none",s.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(y("document.F=Object")),t.close(),t.F}()||g(n);for(var t=a.length;t--;)delete d[l][a[t]];return d()};u[p]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(v[l]=i(t),r=new v,v[l]=null,r[p]=t):r=d(),void 0===e?r:o(r,e)}},25913:function(t,e,r){var n=r(49642),i=r(48011),o=r(64562),a=r(28474);t.exports=n?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),u=n.length,s=0;u>s;)i.f(t,r=n[s++],e[r]);return t}},48011:function(t,e,r){var n=r(49642),i=r(50495),o=r(64562),a=r(62939),u=Object.defineProperty;e.f=n?u:function(t,e,r){if(o(t),e=a(e),o(r),i)try{return u(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}},25525:function(t,e,r){var n=r(49642),i=r(25558),o=r(51361),a=r(42746),u=r(62939),s=r(52810),c=r(50495),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=u(e),c)try{return f(t,e)}catch(r){}if(s(t,e))return o(!i.f.call(t,e),t[e])}},62469:function(t,e,r){var n=r(42746),i=r(51518).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(e){try{return i(e)}catch(t){return a.slice()}}(t):i(n(t))}},51518:function(t,e,r){var n=r(66250),i=r(44939).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},47238:function(t,e){e.f=Object.getOwnPropertySymbols},31426:function(t,e,r){var n=r(52810),i=r(70267),o=r(86066),a=r(37112),u=o("IE_PROTO"),s=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),n(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},66250:function(t,e,r){var n=r(52810),i=r(42746),o=r(95171).indexOf,a=r(45599);t.exports=function(t,e){var r,u=i(t),s=0,c=[];for(r in u)!n(a,r)&&n(u,r)&&c.push(r);for(;e.length>s;)n(u,r=e[s++])&&(~o(c,r)||c.push(r));return c}},28474:function(t,e,r){var n=r(66250),i=r(44939);t.exports=Object.keys||function(t){return n(t,i)}},25558:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},54945:function(t,e,r){var n=r(64562),i=r(93221);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(o){}return function(r,o){return n(r),i(o),e?t.call(r,o):r.__proto__=o,r}}():void 0)},97686:function(t,e,r){"use strict";var n=r(25014),i=r(35329);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},71689:function(t,e,r){var n=r(77293);t.exports=function(t,e){var r,i;if("string"===e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t))||"function"==typeof(r=t.valueOf)&&!n(i=r.call(t))||"string"!==e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},59823:function(t,e,r){var n=r(7365),i=r(51518),o=r(47238),a=r(64562);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?e.concat(r(t)):e}},13544:function(t){t.exports={}},26975:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},25524:function(t,e,r){var n=r(64562),i=r(77293),o=r(54256);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},73892:function(t,e,r){var n=r(672);t.exports=function(t,e,r){for(var i in e)r&&r.unsafe&&t[i]?t[i]=e[i]:n(t,i,e[i],r);return t}},672:function(t,e,r){var n=r(65162);t.exports=function(t,e,r,i){i&&i.enumerable?t[e]=r:n(t,e,r)}},67917:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},95686:function(t,e,r){var n=r(70009);t.exports=function(t,e){try{Object.defineProperty(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},58014:function(t,e,r){"use strict";var n=r(7365),i=r(48011),o=r(91840),a=r(49642),u=o("species");t.exports=function(t){var e=n(t);a&&e&&!e[u]&&(0,i.f)(e,u,{configurable:!0,get:function(){return this}})}},85681:function(t,e,r){var n=r(25014),i=r(48011).f,o=r(65162),a=r(52810),u=r(97686),s=r(91840)("toStringTag");t.exports=function(t,e,r,c){if(t){var f=r?t:t.prototype;a(f,s)||i(f,s,{configurable:!0,value:e}),c&&!n&&o(f,"toString",u)}}},86066:function(t,e,r){var n=r(64579),i=r(13708),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},24766:function(t,e,r){var n=r(70009),i=r(95686),o="__core-js_shared__",a=n[o]||i(o,{});t.exports=a},64579:function(t,e,r){var n=r(81124),i=r(24766);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.0",mode:n?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},95869:function(t,e,r){var n=r(64562),i=r(79245),o=r(91840)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[o])?e:i(r)}},61557:function(t,e,r){var n=r(9870),i=r(41433),o=r(67917),a=function(t){return function(e,r){var a,u,s=i(o(e)),c=n(r),f=s.length;return c<0||c>=f?t?"":void 0:(a=s.charCodeAt(c))<55296||a>56319||c+1===f||(u=s.charCodeAt(c+1))<56320||u>57343?t?s.charAt(c):a:t?s.slice(c,c+2):u-56320+(a-55296<<10)+65536}};t.exports={codeAt:a(!1),charAt:a(!0)}},85462:function(t,e,r){var n=r(55756),i=r(88185);t.exports=function(t){return n(function(){return!!i[t]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[t]()||i[t].name!==t})}},89858:function(t,e,r){var n=r(67917),i=r(41433),o="["+r(88185)+"]",a=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),s=function(t){return function(e){var r=i(n(e));return 1&t&&(r=r.replace(a,"")),2&t&&(r=r.replace(u,"")),r}};t.exports={start:s(1),end:s(2),trim:s(3)}},37352:function(t,e,r){var n,i,o,a,u=r(70009),s=r(55756),c=r(76781),f=r(55690),l=r(96682),h=r(3877),p=r(3787),v=u.setImmediate,y=u.clearImmediate,g=u.process,d=u.MessageChannel,m=u.Dispatch,x=0,b={},w="onreadystatechange";try{n=u.location}catch(P){}var S=function(t){if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},A=function(t){return function(){S(t)}},k=function(t){S(t.data)},T=function(t){u.postMessage(String(t),n.protocol+"//"+n.host)};(!v||!y)&&(v=function(t){for(var e=[],r=arguments.length,n=1;r>n;)e.push(arguments[n++]);return b[++x]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},i(x),x},y=function(t){delete b[t]},p?i=function(t){g.nextTick(A(t))}:m&&m.now?i=function(t){m.now(A(t))}:d&&!h?(a=(o=new d).port2,o.port1.onmessage=k,i=c(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts&&n&&"file:"!==n.protocol&&!s(T)?(i=T,u.addEventListener("message",k,!1)):i=w in l("script")?function(t){f.appendChild(l("script"))[w]=function(){f.removeChild(this),S(t)}}:function(t){setTimeout(A(t),0)}),t.exports={set:v,clear:y}},19401:function(t,e,r){var n=r(9870),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},42746:function(t,e,r){var n=r(20973),i=r(67917);t.exports=function(t){return n(i(t))}},9870:function(t){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},48869:function(t,e,r){var n=r(9870),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},70267:function(t,e,r){var n=r(67917);t.exports=function(t){return Object(n(t))}},1645:function(t,e,r){var n=r(77293),i=r(74717),o=r(71689),a=r(91840)("toPrimitive");t.exports=function(t,e){if(!n(t)||i(t))return t;var r,u=t[a];if(void 0!==u){if(void 0===e&&(e="default"),r=u.call(t,e),!n(r)||i(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),o(t,e)}},62939:function(t,e,r){var n=r(1645),i=r(74717);t.exports=function(t){var e=n(t,"string");return i(e)?e:String(e)}},25014:function(t,e,r){var n={};n[r(91840)("toStringTag")]="z",t.exports="[object z]"===String(n)},41433:function(t,e,r){var n=r(74717);t.exports=function(t){if(n(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},13708:function(t){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},99554:function(t,e,r){var n=r(29333);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},89734:function(t,e,r){var n=r(91840);e.f=n},91840:function(t,e,r){var n=r(70009),i=r(64579),o=r(52810),a=r(13708),u=r(29333),s=r(99554),c=i("wks"),f=n.Symbol,l=s?f:f&&f.withoutSetter||a;t.exports=function(t){return(!o(c,t)||!(u||"string"==typeof c[t]))&&(c[t]=u&&o(f,t)?f[t]:l("Symbol."+t)),c[t]}},88185:function(t){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"},10901:function(t,e,r){"use strict";var n=r(90513),i=r(31426),o=r(54945),a=r(83272),u=r(65162),s=r(51361),c=r(41605),f=r(41433),l=function(t,e){var r=this;if(!(r instanceof l))return new l(t,e);o&&(r=o(new Error(void 0),i(r))),void 0!==e&&u(r,"message",f(e));var n=[];return c(t,n.push,{that:n}),u(r,"errors",n),r};l.prototype=a(Error.prototype,{constructor:s(5,l),message:s(5,""),name:s(5,"AggregateError")}),n({global:!0},{AggregateError:l})},1625:function(t,e,r){"use strict";var n=r(90513),i=r(55756),o=r(89735),a=r(77293),u=r(70267),s=r(48869),c=r(46751),f=r(2103),l=r(95913),h=r(91840),p=r(63556),v=h("isConcatSpreadable"),y=9007199254740991,g="Maximum allowed index exceeded",d=p>=51||!i(function(){var t=[];return t[v]=!1,t.concat()[0]!==t}),m=l("concat"),x=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,forced:!d||!m},{concat:function(t){var e,r,n,i,o,a=u(this),l=f(a,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(x(o=-1===e?a:arguments[e])){if(h+(i=s(o.length))>y)throw TypeError(g);for(r=0;r<i;r++,h++)r in o&&c(l,h,o[r])}else{if(h>=y)throw TypeError(g);c(l,h++,o)}return l.length=h,l}})},70466:function(t,e,r){"use strict";var n=r(90513),i=r(68607).every;n({target:"Array",proto:!0,forced:!r(33620)("every")},{every:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},24990:function(t,e,r){var n=r(90513),i=r(35277),o=r(82196);n({target:"Array",proto:!0},{fill:i}),o("fill")},56534:function(t,e,r){"use strict";var n=r(90513),i=r(68607).filter;n({target:"Array",proto:!0,forced:!r(95913)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},98792:function(t,e,r){"use strict";var n=r(90513),i=r(8366);n({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},261:function(t,e,r){var n=r(90513),i=r(51923);n({target:"Array",stat:!0,forced:!r(5253)(function(t){Array.from(t)})},{from:i})},77059:function(t,e,r){"use strict";var n=r(90513),i=r(95171).includes,o=r(82196);n({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},2795:function(t,e,r){"use strict";var n=r(90513),i=r(95171).indexOf,o=r(33620),a=[].indexOf,u=!!a&&1/[1].indexOf(1,-0)<0,s=o("indexOf");n({target:"Array",proto:!0,forced:u||!s},{indexOf:function(t){return u?a.apply(this,arguments)||0:i(this,t,arguments.length>1?arguments[1]:void 0)}})},2862:function(t,e,r){r(90513)({target:"Array",stat:!0},{isArray:r(89735)})},1285:function(t,e,r){"use strict";var n=r(42746),i=r(82196),o=r(84394),a=r(91093),u=r(32837),s="Array Iterator",c=a.set,f=a.getterFor(s);t.exports=u(Array,"Array",function(t,e){c(this,{type:s,target:n(t),index:0,kind:e})},function(){var t=f(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"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},88119:function(t,e,r){"use strict";var n=r(90513),i=r(68607).map;n({target:"Array",proto:!0,forced:!r(95913)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},46250:function(t,e,r){"use strict";var n=r(90513),i=r(88908).left,o=r(33620),a=r(63556),u=r(3787);n({target:"Array",proto:!0,forced:!o("reduce")||!u&&a>79&&a<83},{reduce:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},32836:function(t,e,r){"use strict";var n=r(90513),i=r(89735),o=[].reverse,a=[1,2];n({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},72999:function(t,e,r){"use strict";var n=r(90513),i=r(77293),o=r(89735),a=r(19401),u=r(48869),s=r(42746),c=r(46751),f=r(91840),l=r(95913)("slice"),h=f("species"),p=[].slice,v=Math.max;n({target:"Array",proto:!0,forced:!l},{slice:function(t,e){var r,n,f,l=s(this),y=u(l.length),g=a(t,y),d=a(void 0===e?y:e,y);if(o(l)&&("function"!=typeof(r=l.constructor)||r!==Array&&!o(r.prototype)?i(r)&&null===(r=r[h])&&(r=void 0):r=void 0,r===Array||void 0===r))return p.call(l,g,d);for(n=new(void 0===r?Array:r)(v(d-g,0)),f=0;g<d;g++,f++)g in l&&c(n,f,l[g]);return n.length=f,n}})},50733:function(t,e,r){"use strict";var n=r(90513),i=r(68607).some;n({target:"Array",proto:!0,forced:!r(33620)("some")},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},34699:function(t,e,r){r(90513)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},33379:function(t,e,r){r(90513)({target:"Function",proto:!0},{bind:r(44197)})},32300:function(t,e,r){var n=r(70009);r(85681)(n.JSON,"JSON",!0)},85140:function(t,e,r){"use strict";var n=r(85116),i=r(26650);t.exports=n("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},i)},6123:function(){},86516:function(t,e,r){r(90513)({target:"Object",stat:!0,sham:!r(49642)},{create:r(83272)})},36255:function(t,e,r){var n=r(90513),i=r(49642);n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:r(25913)})},84468:function(t,e,r){var n=r(90513),i=r(49642);n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:r(48011).f})},86627:function(t,e,r){var n=r(90513),i=r(55756),o=r(42746),a=r(25525).f,u=r(49642),s=i(function(){a(1)});n({target:"Object",stat:!0,forced:!u||s,sham:!u},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},78275:function(t,e,r){var n=r(90513),i=r(49642),o=r(59823),a=r(42746),u=r(25525),s=r(46751);n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=a(t),i=u.f,c=o(n),f={},l=0;c.length>l;)void 0!==(r=i(n,e=c[l++]))&&s(f,e,r);return f}})},31193:function(t,e,r){var n=r(90513),i=r(55756),o=r(70267),a=r(31426),u=r(37112);n({target:"Object",stat:!0,forced:i(function(){a(1)}),sham:!u},{getPrototypeOf:function(t){return a(o(t))}})},56557:function(t,e,r){var n=r(90513),i=r(70267),o=r(28474);n({target:"Object",stat:!0,forced:r(55756)(function(){o(1)})},{keys:function(t){return o(i(t))}})},17971:function(t,e,r){r(90513)({target:"Object",stat:!0},{setPrototypeOf:r(54945)})},17221:function(){},17338:function(t,e,r){var n=r(90513),i=r(32415);n({global:!0,forced:parseFloat!=i},{parseFloat:i})},55026:function(t,e,r){var n=r(90513),i=r(3537);n({global:!0,forced:parseInt!=i},{parseInt:i})},84798:function(t,e,r){"use strict";var n=r(90513),i=r(79245),o=r(54256),a=r(26975),u=r(41605);n({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=o.f(e),n=r.resolve,s=r.reject,c=a(function(){var r=i(e.resolve),o=[],a=0,s=1;u(t,function(t){var i=a++,u=!1;o.push(void 0),s++,r.call(e,t).then(function(t){u||(u=!0,o[i]={status:"fulfilled",value:t},--s||n(o))},function(t){u||(u=!0,o[i]={status:"rejected",reason:t},--s||n(o))})}),--s||n(o)});return c.error&&s(c.value),r.promise}})},98857:function(t,e,r){"use strict";var n=r(90513),i=r(79245),o=r(7365),a=r(54256),u=r(26975),s=r(41605),c="No one promise resolved";n({target:"Promise",stat:!0},{any:function(t){var e=this,r=a.f(e),n=r.resolve,f=r.reject,l=u(function(){var r=i(e.resolve),a=[],u=0,l=1,h=!1;s(t,function(t){var i=u++,s=!1;a.push(void 0),l++,r.call(e,t).then(function(t){s||h||(h=!0,n(t))},function(t){s||h||(s=!0,a[i]=t,--l||f(new(o("AggregateError"))(a,c)))})}),--l||f(new(o("AggregateError"))(a,c))});return l.error&&f(l.value),r.promise}})},30185:function(t,e,r){"use strict";var n=r(90513),i=r(81124),o=r(20515),a=r(55756),u=r(7365),s=r(95869),c=r(25524),f=r(672);if(n({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=s(this,u("Promise")),r="function"==typeof t;return this.then(r?function(r){return c(e,t()).then(function(){return r})}:t,r?function(r){return c(e,t()).then(function(){throw r})}:t)}}),!i&&"function"==typeof o){var l=u("Promise").prototype.finally;o.prototype.finally!==l&&f(o.prototype,"finally",l,{unsafe:!0})}},66793:function(t,e,r){"use strict";var n,i,o,a,u=r(90513),s=r(81124),c=r(70009),f=r(7365),l=r(20515),h=r(672),p=r(73892),v=r(54945),y=r(85681),g=r(58014),d=r(77293),m=r(79245),x=r(54849),b=r(26699),w=r(41605),S=r(5253),A=r(95869),k=r(37352).set,T=r(58991),P=r(25524),O=r(52912),C=r(54256),E=r(26975),M=r(91093),N=r(79482),_=r(91840),R=r(34008),V=r(3787),D=r(63556),L=_("species"),I="Promise",j=M.get,z=M.set,F=M.getterFor(I),B=l&&l.prototype,H=l,U=B,X=c.TypeError,Y=c.document,q=c.process,G=C.f,W=G,Q=!!(Y&&Y.createEvent&&c.dispatchEvent),$="function"==typeof PromiseRejectionEvent,Z="unhandledrejection",K=!1,J=N(I,function(){var t=b(H),e=t!==String(H);if(!e&&66===D||s&&!U.finally)return!0;if(D>=51&&/native code/.test(t))return!1;var r=new H(function(t){t(1)}),n=function(t){t(function(){},function(){})};return(r.constructor={})[L]=n,!(K=r.then(function(){})instanceof n)||!e&&R&&!$}),tt=J||!S(function(t){H.all(t).catch(function(){})}),et=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},rt=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;T(function(){for(var n=t.value,i=1==t.state,o=0;r.length>o;){var a,u,s,c=r[o++],f=i?c.ok:c.fail,l=c.resolve,h=c.reject,p=c.domain;try{f?(i||(2===t.rejection&&at(t),t.rejection=1),!0===f?a=n:(p&&p.enter(),a=f(n),p&&(p.exit(),s=!0)),a===c.promise?h(X("Promise-chain cycle")):(u=et(a))?u.call(a,l,h):l(a)):h(n)}catch(v){p&&!s&&p.exit(),h(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&it(t)})}},nt=function(t,e,r){var n,i;Q?((n=Y.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:r},!$&&(i=c["on"+t])?i(n):t===Z&&O("Unhandled promise rejection",r)},it=function(t){k.call(c,function(){var e,r=t.facade,n=t.value;if(ot(t)&&(e=E(function(){V?q.emit("unhandledRejection",n,r):nt(Z,r,n)}),t.rejection=V||ot(t)?2:1,e.error))throw e.value})},ot=function(t){return 1!==t.rejection&&!t.parent},at=function(t){k.call(c,function(){var e=t.facade;V?q.emit("rejectionHandled",e):nt("rejectionhandled",e,t.value)})},ut=function(t,e,r){return function(n){t(e,n,r)}},st=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,rt(t,!0))},ct=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw X("Promise can't be resolved itself");var n=et(e);n?T(function(){var r={done:!1};try{n.call(e,ut(ct,r,t),ut(st,r,t))}catch(i){st(r,i,t)}}):(t.value=e,t.state=1,rt(t,!1))}catch(i){st({done:!1},i,t)}}};if(J&&(H=function(t){x(this,H,I),m(t),n.call(this);var e=j(this);try{t(ut(ct,e),ut(st,e))}catch(r){st(e,r)}},(n=function(t){z(this,{type:I,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(U=H.prototype,{then:function(t,e){var r=F(this),n=G(A(this,H));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=V?q.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&rt(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n,e=j(t);this.promise=t,this.resolve=ut(ct,e),this.reject=ut(st,e)},C.f=G=function(t){return t===H||t===o?new i(t):W(t)},!s&&"function"==typeof l&&B!==Object.prototype)){a=B.then,K||(h(B,"then",function(t,e){var r=this;return new H(function(t,e){a.call(r,t,e)}).then(t,e)},{unsafe:!0}),h(B,"catch",U.catch,{unsafe:!0}));try{delete B.constructor}catch(ft){}v&&v(B,U)}u({global:!0,wrap:!0,forced:J},{Promise:H}),y(H,I,!1,!0),g(I),o=f(I),u({target:I,stat:!0,forced:J},{reject:function(t){var e=G(this);return e.reject.call(void 0,t),e.promise}}),u({target:I,stat:!0,forced:s||J},{resolve:function(t){return P(s&&this===o?H:this,t)}}),u({target:I,stat:!0,forced:tt},{all:function(t){var e=this,r=G(e),n=r.resolve,i=r.reject,o=E(function(){var r=m(e.resolve),o=[],a=0,u=1;w(t,function(t){var s=a++,c=!1;o.push(void 0),u++,r.call(e,t).then(function(t){c||(c=!0,o[s]=t,--u||n(o))},i)}),--u||n(o)});return o.error&&i(o.value),r.promise},race:function(t){var e=this,r=G(e),n=r.reject,i=E(function(){var i=m(e.resolve);w(t,function(t){i.call(e,t).then(r.resolve,n)})});return i.error&&n(i.value),r.promise}})},59321:function(t,e,r){var n=r(90513),i=r(7365),o=r(79245),a=r(64562),u=r(55756),s=i("Reflect","apply"),c=Function.apply;n({target:"Reflect",stat:!0,forced:!u(function(){s(function(){})})},{apply:function(t,e,r){return o(t),a(r),s?s(t,e,r):c.call(t,e,r)}})},19539:function(t,e,r){var n=r(90513),i=r(7365),o=r(79245),a=r(64562),u=r(77293),s=r(83272),c=r(44197),f=r(55756),l=i("Reflect","construct"),h=f(function(){function t(){}return!(l(function(){},[],t)instanceof t)}),p=!f(function(){l(function(){})}),v=h||p;n({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){o(t),a(e);var r=arguments.length<3?t:o(arguments[2]);if(p&&!h)return l(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}var i=r.prototype,f=s(u(i)?i:Object.prototype),v=Function.apply.call(t,f,e);return u(v)?v:f}})},62621:function(t,e,r){var n=r(90513),i=r(64562),o=r(25525).f;n({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=o(i(t),e);return!(r&&!r.configurable)&&delete t[e]}})},47589:function(t,e,r){var n=r(90513),i=r(64562),o=r(31426);n({target:"Reflect",stat:!0,sham:!r(37112)},{getPrototypeOf:function(t){return o(i(t))}})},60851:function(t,e,r){var n=r(90513),i=r(77293),o=r(64562),a=r(52810),u=r(25525),s=r(31426);n({target:"Reflect",stat:!0},{get:function t(e,r){var n,c,f=arguments.length<3?e:arguments[2];return o(e)===f?e[r]:(n=u.f(e,r))?a(n,"value")?n.value:void 0===n.get?void 0:n.get.call(f):i(c=s(e))?t(c,r,f):void 0}})},44864:function(){},97764:function(t,e,r){"use strict";var n=r(90513),i=r(56421),o=r(67917),a=r(41433);n({target:"String",proto:!0,forced:!r(79668)("includes")},{includes:function(t){return!!~a(o(this)).indexOf(a(i(t)),arguments.length>1?arguments[1]:void 0)}})},3934:function(t,e,r){"use strict";var n=r(61557).charAt,i=r(41433),o=r(91093),a=r(32837),u="String Iterator",s=o.set,c=o.getterFor(u);a(String,"String",function(t){s(this,{type:u,string:i(t),index:0})},function(){var t,e=c(this),r=e.string,i=e.index;return i>=r.length?{value:void 0,done:!0}:(t=n(r,i),e.index+=t.length,{value:t,done:!1})})},24655:function(t,e,r){"use strict";var n,i=r(90513),o=r(25525).f,a=r(48869),u=r(41433),s=r(56421),c=r(67917),f=r(79668),l=r(81124),h="".startsWith,p=Math.min,v=f("startsWith");i({target:"String",proto:!0,forced:!(!l&&!v&&(n=o(String.prototype,"startsWith"),n&&!n.writable)||v)},{startsWith:function(t){var e=u(c(this));s(t);var r=a(p(arguments.length>1?arguments[1]:void 0,e.length)),n=u(t);return h?h.call(e,n,r):e.slice(r,r+n.length)===n}})},90451:function(t,e,r){"use strict";var n=r(90513),i=r(89858).trim;n({target:"String",proto:!0,forced:r(85462)("trim")},{trim:function(){return i(this)}})},16426:function(t,e,r){r(16925)("asyncIterator")},1172:function(){},99579:function(t,e,r){r(16925)("hasInstance")},41258:function(t,e,r){r(16925)("isConcatSpreadable")},2383:function(t,e,r){r(16925)("iterator")},56728:function(t,e,r){"use strict";var n=r(90513),i=r(70009),o=r(7365),a=r(81124),u=r(49642),s=r(29333),c=r(55756),f=r(52810),l=r(89735),h=r(77293),p=r(74717),v=r(64562),y=r(70267),g=r(42746),d=r(62939),m=r(41433),x=r(51361),b=r(83272),w=r(28474),S=r(51518),A=r(62469),k=r(47238),T=r(25525),P=r(48011),O=r(25558),C=r(65162),E=r(672),M=r(64579),N=r(86066),_=r(45599),R=r(13708),V=r(91840),D=r(89734),L=r(16925),I=r(85681),j=r(91093),z=r(68607).forEach,F=N("hidden"),B="Symbol",H="prototype",U=V("toPrimitive"),X=j.set,Y=j.getterFor(B),q=Object[H],G=i.Symbol,W=o("JSON","stringify"),Q=T.f,$=P.f,Z=A.f,K=O.f,J=M("symbols"),tt=M("op-symbols"),et=M("string-to-symbol-registry"),rt=M("symbol-to-string-registry"),nt=M("wks"),it=i.QObject,ot=!it||!it[H]||!it[H].findChild,at=u&&c(function(){return 7!=b($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=Q(q,e);n&&delete q[e],$(t,e,r),n&&t!==q&&$(q,e,n)}:$,ut=function(t,e){var r=J[t]=b(G[H]);return X(r,{type:B,tag:t,description:e}),u||(r.description=e),r},st=function(t,e,r){t===q&&st(tt,e,r),v(t);var n=d(e);return v(r),f(J,n)?(r.enumerable?(f(t,F)&&t[F][n]&&(t[F][n]=!1),r=b(r,{enumerable:x(0,!1)})):(f(t,F)||$(t,F,x(1,{})),t[F][n]=!0),at(t,n,r)):$(t,n,r)},ct=function(t,e){v(t);var r=g(e),n=w(r).concat(pt(r));return z(n,function(e){(!u||ft.call(r,e))&&st(t,e,r[e])}),t},ft=function(t){var e=d(t),r=K.call(this,e);return!(this===q&&f(J,e)&&!f(tt,e))&&(!(r||!f(this,e)||!f(J,e)||f(this,F)&&this[F][e])||r)},lt=function(t,e){var r=g(t),n=d(e);if(r!==q||!f(J,n)||f(tt,n)){var i=Q(r,n);return i&&f(J,n)&&!(f(r,F)&&r[F][n])&&(i.enumerable=!0),i}},ht=function(t){var e=Z(g(t)),r=[];return z(e,function(t){!f(J,t)&&!f(_,t)&&r.push(t)}),r},pt=function(t){var e=t===q,r=Z(e?tt:g(t)),n=[];return z(r,function(t){f(J,t)&&(!e||f(q,t))&&n.push(J[t])}),n};s||(E((G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=R(t),r=function(t){this===q&&r.call(tt,t),f(this,F)&&f(this[F],e)&&(this[F][e]=!1),at(this,e,x(1,t))};return u&&ot&&at(q,e,{configurable:!0,set:r}),ut(e,t)})[H],"toString",function(){return Y(this).tag}),E(G,"withoutSetter",function(t){return ut(R(t),t)}),O.f=ft,P.f=st,T.f=lt,S.f=A.f=ht,k.f=pt,D.f=function(t){return ut(V(t),t)},u&&($(G[H],"description",{configurable:!0,get:function(){return Y(this).description}}),a||E(q,"propertyIsEnumerable",ft,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:G}),z(w(nt),function(t){L(t)}),n({target:B,stat:!0,forced:!s},{for:function(t){var e=m(t);if(f(et,e))return et[e];var r=G(e);return et[e]=r,rt[r]=e,r},keyFor:function(t){if(!p(t))throw TypeError(t+" is not a symbol");if(f(rt,t))return rt[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),n({target:"Object",stat:!0,forced:!s,sham:!u},{create:function(t,e){return void 0===e?b(t):ct(b(t),e)},defineProperty:st,defineProperties:ct,getOwnPropertyDescriptor:lt}),n({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:ht,getOwnPropertySymbols:pt}),n({target:"Object",stat:!0,forced:c(function(){k.f(1)})},{getOwnPropertySymbols:function(t){return k.f(y(t))}}),W&&n({target:"JSON",stat:!0,forced:!s||c(function(){var t=G();return"[null]"!=W([t])||"{}"!=W({a:t})||"{}"!=W(Object(t))})},{stringify:function(t,e,r){for(var n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e,(h(e)||void 0!==t)&&!p(t))return l(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!p(e))return e}),i[1]=e,W.apply(null,i)}}),G[H][U]||C(G[H],U,G[H].valueOf),I(G,B),_[F]=!0},64776:function(t,e,r){r(16925)("matchAll")},44339:function(t,e,r){r(16925)("match")},88215:function(t,e,r){r(16925)("replace")},65389:function(t,e,r){r(16925)("search")},12733:function(t,e,r){r(16925)("species")},97977:function(t,e,r){r(16925)("split")},59792:function(t,e,r){r(16925)("toPrimitive")},60242:function(t,e,r){r(16925)("toStringTag")},26291:function(t,e,r){r(16925)("unscopables")},67670:function(t,e,r){r(10901)},61127:function(t,e,r){r(84798)},93379:function(t,e,r){r(98857)},93114:function(t,e,r){"use strict";var n=r(90513),i=r(54256),o=r(26975);n({target:"Promise",stat:!0},{try:function(t){var e=i.f(this),r=o(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}})},55461:function(t,e,r){r(16925)("asyncDispose")},5737:function(t,e,r){r(16925)("dispose")},87097:function(t,e,r){r(16925)("matcher")},71985:function(t,e,r){r(16925)("metadata")},90212:function(t,e,r){r(16925)("observable")},93770:function(t,e,r){r(16925)("patternMatch")},47743:function(t,e,r){r(16925)("replaceAll")},33089:function(t,e,r){r(1285);var n=r(44125),i=r(70009),o=r(35329),a=r(65162),u=r(84394),s=r(91840)("toStringTag");for(var c in n){var f=i[c],l=f&&f.prototype;l&&o(l)!==s&&a(l,s,c),u[c]=u.Array}},75242:function(t,e,r){var n=r(74771);t.exports=n},10323:function(t,e,r){var n=r(8412);t.exports=n},89919:function(t,e,r){var n=r(98812);t.exports=n},4800:function(t,e,r){var n=r(46332);t.exports=n},38762:function(t,e,r){var n=r(42618);t.exports=n},71873:function(t,e,r){var n=r(69029);t.exports=n},61599:function(t,e,r){var n=r(28924);t.exports=n},15149:function(t,e,r){var n=r(98709);t.exports=n},83361:function(t,e,r){var n=r(65991);t.exports=n},19095:function(t,e,r){var n=r(64158);t.exports=n},52049:function(t,e,r){r(33089);var n=r(89919),i=r(35329),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===o||t instanceof Array&&e===o.forEach||a.hasOwnProperty(i(t))?n:e}},83655:function(t,e,r){var n=r(33758);t.exports=n},87054:function(t,e,r){var n=r(7592);t.exports=n},81214:function(t,e,r){var n=r(20681);t.exports=n},50881:function(t,e,r){var n=r(90949);t.exports=n},45284:function(t,e,r){var n=r(62212);t.exports=n},70157:function(t,e,r){var n=r(49073);t.exports=n},3502:function(t,e,r){var n=r(24146);t.exports=n},74046:function(t,e,r){var n=r(68333);t.exports=n},13731:function(t,e,r){var n=r(65786);t.exports=n},80129:function(t,e,r){r(33089);var n=r(4800),i=r(35329),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.values;return t===o||t instanceof Array&&e===o.values||a.hasOwnProperty(i(t))?n:e}},640:function(t,e,r){var n=r(31845);r(33089),t.exports=n},36226:function(t,e,r){var n=r(24457);t.exports=n},21968:function(t,e,r){var n=r(99671);t.exports=n},87259:function(t,e,r){var n=r(38007);t.exports=n},62021:function(t,e,r){var n=r(57432);t.exports=n},57682:function(t,e,r){var n=r(36541);t.exports=n},1162:function(t,e,r){var n=r(62149);t.exports=n},59550:function(t,e,r){var n=r(32984);t.exports=n},28348:function(t,e,r){var n=r(49232);t.exports=n},26498:function(t,e,r){var n=r(80092);r(33089),t.exports=n},61729:function(t,e,r){var n=r(27775);t.exports=n},44850:function(t,e,r){var n=r(472);t.exports=n},26283:function(t,e,r){var n=r(46627);t.exports=n},1606:function(t,e,r){var n=r(57699);t.exports=n},96551:function(t,e,r){var n=r(61697);r(33089),t.exports=n},58163:function(t){(function(){var e,r,n,i,o,a;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(t.exports=function(){return(e()-o)/1e6},r=process.hrtime,i=(e=function(){var t;return 1e9*(t=r())[0]+t[1]})(),a=1e9*process.uptime(),o=i-a):Date.now?(t.exports=function(){return Date.now()-n},n=Date.now()):(t.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},97352:function(t,e,r){for(var n=r(58163),i="undefined"==typeof window?global:window,o=["moz","webkit"],a="AnimationFrame",u=i["request"+a],s=i["cancel"+a]||i["cancelRequest"+a],c=0;!u&&c<o.length;c++)u=i[o[c]+"Request"+a],s=i[o[c]+"Cancel"+a]||i[o[c]+"CancelRequest"+a];if(!u||!s){var f=0,l=0,h=[];u=function(t){if(0===h.length){var e=n(),r=Math.max(0,16.666666666666668-(e-f));f=r+e,setTimeout(function(){var t=h.slice(0);h.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(f)}catch(r){setTimeout(function(){throw r},0)}},Math.round(r))}return h.push({handle:++l,callback:t,cancelled:!1}),l},s=function(t){for(var e=0;e<h.length;e++)h[e].handle===t&&(h[e].cancelled=!0)}}t.exports=function(t){return u.call(i,t)},t.exports.cancel=function(){s.apply(i,arguments)},t.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=u,t.cancelAnimationFrame=s}},67941:function(t){var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(N){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=Object.create((e&&e.prototype instanceof g?e:g).prototype),o=new C(n||[]);return i._invoke=function(t,e,r){var n=l;return function(i,o){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===i)throw o;return M()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=T(a,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var s=f(t,e,r);if("normal"===s.type){if(n=r.done?v:h,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=v,r.method="throw",r.arg=s.arg)}}}(t,r,o),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=c;var l="suspendedStart",h="suspendedYield",p="executing",v="completed",y={};function g(){}function d(){}function m(){}var x={};x[o]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(E([])));w&&w!==r&&n.call(w,o)&&(x=w);var S=m.prototype=g.prototype=Object.create(x);function A(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function k(t,e){function r(i,o,a,u){var s=f(t[i],t,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(l).then(function(t){c.value=t,a(c)},function(t){return r("throw",t,a,u)})}u(s.arg)}var i;this._invoke=function(t,n){function o(){return new e(function(e,i){r(t,n,e,i)})}return i=i?i.then(o,o):o()}}function T(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var i=f(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function E(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:M}}function M(){return{value:e,done:!0}}return d.prototype=S.constructor=m,m.constructor=d,d.displayName=s(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},t.awrap=function(t){return{__await:t}},A(k.prototype),k.prototype[a]=function(){return this},t.AsyncIterator=k,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new k(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},A(S),s(S,u,"Generator"),S[o]=function(){return this},S.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return u.type="throw",u.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:E(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(r){Function("r","regeneratorRuntime = r")(e)}},81997:function(t){t.exports=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n<r.length;n++){var i=r[n].process,o=r[n].re.exec(t);if(o){var a=i(o);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var 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,o=0;o<i.length;o++)t[t.length]=i[o];for(var a in e)t[t.length]=a;var u=document.createElement("ul");for(u.setAttribute("id","rgbcolor-examples"),n=0;n<t.length;n++)try{var s=document.createElement("li"),c=new RGBColor(t[n]),f=document.createElement("div");f.style.cssText="margin: 3px; border: 1px solid black; background:"+c.toHex()+"; color:"+c.toHex(),f.appendChild(document.createTextNode("test"));var l=document.createTextNode(" "+t[n]+" -> "+c.toRGB()+" -> "+c.toHex());s.appendChild(f),s.appendChild(l),u.appendChild(s)}catch(h){}return u}}},2074:function(t,e,r){t.exports=r(75242)},2662:function(t,e,r){t.exports=r(10323)},19290:function(t,e,r){t.exports=r(38762)},8650:function(t,e,r){t.exports=r(71873)},9176:function(t,e,r){t.exports=r(61599)},76946:function(t,e,r){t.exports=r(15149)},80514:function(t,e,r){t.exports=r(83361)},47030:function(t,e,r){t.exports=r(19095)},87119:function(t,e,r){t.exports=r(52049)},61135:function(t,e,r){t.exports=r(83655)},29793:function(t,e,r){t.exports=r(87054)},75951:function(t,e,r){t.exports=r(81214)},95634:function(t,e,r){t.exports=r(50881)},31259:function(t,e,r){t.exports=r(45284)},2298:function(t,e,r){t.exports=r(70157)},96102:function(t,e,r){t.exports=r(3502)},79378:function(t,e,r){t.exports=r(74046)},26743:function(t,e,r){t.exports=r(13731)},59263:function(t,e,r){t.exports=r(80129)},84509:function(t,e,r){t.exports=r(640)},86362:function(t,e,r){t.exports=r(36226)},24037:function(t,e,r){t.exports=r(21968)},70803:function(t,e,r){t.exports=r(87259)},6454:function(t,e,r){t.exports=r(62021)},33519:function(t,e,r){t.exports=r(57682)},26823:function(t,e,r){t.exports=r(1162)},37652:function(t,e,r){t.exports=r(59550)},62468:function(t,e,r){t.exports=r(28348)},96883:function(t,e,r){t.exports=r(26498)},13673:function(t,e,r){t.exports=r(61729)},38912:function(t,e,r){t.exports=r(44850)},35171:function(t,e,r){t.exports=r(26283)},65163:function(t,e,r){t.exports=r(1606)},78937:function(t,e,r){t.exports=r(96551)},41814:function(t,e,r){t.exports=r(56286)},48422:function(t,e,r){t.exports=r(54153)},55345:function(t,e,r){t.exports=r(90755)},55266:function(t,e,r){t.exports=r(93626)},71204:function(t,e,r){t.exports=r(96471)},96951:function(t,e,r){t.exports=r(41171)},97677:function(t,e,r){t.exports=r(62005)},36249:function(t,e,r){t.exports=r(39964)},68625:function(t,e,r){t.exports=r(42346)},15482:function(t,e,r){t.exports=r(24329)},65818:function(t,e,r){t.exports=r(2793)},99951:function(t,e,r){t.exports=r(70269)},66424:function(t,e,r){t.exports=r(88819)},77420:function(t,e,r){t.exports=r(55912)},48069:function(t,e,r){t.exports=r(67941)}}]);