(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[513],{66419:(t,e,r)=>{t.exports=r(24848)},41511:(t,e,r)=>{t.exports=r(83363)},11128:(t,e,r)=>{t.exports=r(57784)},54103:(t,e,r)=>{t.exports=r(28196)},77766:(t,e,r)=>{t.exports=r(8065)},10062:(t,e,r)=>{t.exports=r(29455)},44494:(t,e,r)=>{t.exports=r(69743)},20116:(t,e,r)=>{t.exports=r(11955)},78914:(t,e,r)=>{t.exports=r(46279)},78580:(t,e,r)=>{t.exports=r(33778)},81643:(t,e,r)=>{t.exports=r(19373)},2991:(t,e,r)=>{t.exports=r(61798)},32366:(t,e,r)=>{t.exports=r(52527)},97093:(t,e,r)=>{t.exports=r(28427)},3649:(t,e,r)=>{t.exports=r(82073)},77149:(t,e,r)=>{t.exports=r(45286)},29828:(t,e,r)=>{t.exports=r(35178)},25843:(t,e,r)=>{t.exports=r(76361)},89400:(t,e,r)=>{t.exports=r(62908)},39392:(t,e,r)=>{t.exports=r(15868)},20368:(t,e,r)=>{t.exports=r(57396)},63978:(t,e,r)=>{t.exports=r(41910)},34074:(t,e,r)=>{t.exports=r(79427)},39649:(t,e,r)=>{t.exports=r(62857)},14310:(t,e,r)=>{t.exports=r(9534)},86902:(t,e,r)=>{t.exports=r(23059)},31238:(t,e,r)=>{t.exports=r(66877)},94198:(t,e,r)=>{t.exports=r(74888)},93476:(t,e,r)=>{t.exports=r(27460)},9e4:(t,e,r)=>{t.exports=r(5889)},1068:(t,e,r)=>{t.exports=r(61895)},12513:(t,e,r)=>{t.exports=r(50636)},83275:(t,e,r)=>{t.exports=r(92388)},65420:(t,e,r)=>{t.exports=r(92547)},53592:(t,e,r)=>{t.exports=r(27385)},78363:(t,e,r)=>{t.exports=r(81522)},19996:(t,e,r)=>{t.exports=r(32209)},16976:(t,e,r)=>{t.exports=r(1258)},95238:(t,e,r)=>{t.exports=r(81493)},189:(t,e,r)=>{t.exports=r(76094)},44341:(t,e,r)=>{t.exports=r(73685)},58377:(t,e,r)=>{t.exports=r(27533)},24889:(t,e,r)=>{t.exports=r(74303)},79542:(t,e,r)=>{t.exports=r(55122)},69798:(t,e,r)=>{t.exports=r(29531)},83863:(t,e,r)=>{t.exports=r(31524)},51446:(t,e,r)=>{t.exports=r(86600)},23882:(t,e,r)=>{t.exports=r(9759)},3707:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),o=new E(n||[]);return a._invoke=function(t,e,r){var n=f;return function(i,a){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===i)throw a;return M()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=T(o,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?v:h,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=v,r.method="throw",r.arg=u.arg)}}}(t,r,o),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",y={};function g(){}function d(){}function m(){}var x={};x[a]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(C([])));w&&w!==r&&n.call(w,a)&&(x=w);var S=m.prototype=g.prototype=Object.create(x);function A(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,a,o,s){var u=l(t[i],t,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(f).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var i;this._invoke=function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}}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=l(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(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 E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function C(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=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:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},63109:(t,e,r)=>{t.exports=r(3707)},95513:(t,e,r)=>{"use strict";r.r(e),r.d(e,{AElement:()=>Fn,AnimateColorElement:()=>kn,AnimateElement:()=>Sn,AnimateTransformElement:()=>Pn,BoundingBox:()=>Nr,CB1:()=>$e,CB2:()=>Ze,CB3:()=>Ke,CB4:()=>Je,Canvg:()=>_i,CircleElement:()=>Wr,ClipPathElement:()=>hi,DefsElement:()=>ln,DescElement:()=>Pi,Document:()=>Mi,Element:()=>kr,EllipseElement:()=>Zr,FeColorMatrixElement:()=>si,FeCompositeElement:()=>bi,FeDropShadowElement:()=>gi,FeGaussianBlurElement:()=>Si,FeMorphologyElement:()=>mi,FilterElement:()=>vi,Font:()=>Mr,FontElement:()=>Mn,FontFaceElement:()=>Rn,GElement:()=>hn,GlyphElement:()=>Ln,GradientElement:()=>vn,ImageElement:()=>Qn,LineElement:()=>Jr,LinearGradientElement:()=>gn,MarkerElement:()=>un,MaskElement:()=>ci,Matrix:()=>gr,MissingGlyphElement:()=>Dn,Mouse:()=>or,PSEUDO_ZERO:()=>qe,Parser:()=>hr,PathElement:()=>Hr,PathParser:()=>Br,PatternElement:()=>on,Point:()=>ar,PolygonElement:()=>nn,PolylineElement:()=>en,Property:()=>nr,QB1:()=>tr,QB2:()=>er,QB3:()=>rr,RadialGradientElement:()=>mn,RectElement:()=>Gr,RenderedElement:()=>_r,Rotate:()=>vr,SVGElement:()=>Yr,SVGFontLoader:()=>Zn,Scale:()=>yr,Screen:()=>cr,Skew:()=>mr,SkewX:()=>br,SkewY:()=>Sr,StopElement:()=>bn,StyleElement:()=>Jn,SymbolElement:()=>$n,TRefElement:()=>jn,TSpanElement:()=>Ir,TextElement:()=>Vr,TextPathElement:()=>qn,TitleElement:()=>ki,Transform:()=>Ar,Translate:()=>pr,UnknownElement:()=>Pr,UseElement:()=>ei,ViewPort:()=>ir,compressSpaces:()=>Ce,default:()=>Vi,getSelectorSpecificity:()=>Ye,normalizeAttributeName:()=>De,normalizeColor:()=>Le,parseExternalUrl:()=>Ve,presets:()=>Di,toNumbers:()=>Re,trimLeft:()=>Me,trimRight:()=>Ne,vectorMagnitude:()=>Ge,vectorsAngle:()=>We,vectorsRatio:()=>Qe});var n=r(29828),i=r.n(n),a=r(31238),o=r.n(a),s=r(2991),u=r.n(s),c=r(78363);var l=r(51446),f=r(19996),h=r.n(f);var p=r(95238),v=r(53592);function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.phi1&&(t.phi2-=2*Ft),1===t.sweepFlag&&t.phi2n)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,Xt=Math.PI/180;function Yt(t,e,r){return(1-r)*t+r*e}function qt(t,e,r,n){return t+Math.cos(n/180*Ft)*e+Math.sin(n/180*Ft)*r}function Gt(t,e,r,n){var i=e-t,a=r-e,o=3*i+3*(n-r)-6*a,s=6*(a-i),u=3*i;return Math.abs(o)<1e-6?[-u/s]: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]}(s/o,u/o,1e-6)}function Qt(t,e,r,n,i){var a=1-i;return t*(a*a*a)+e*(3*a*a*i)+r*(3*a*i*i)+n*(i*i*i)}!function(t){function e(){return i((function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t}))}function r(){var t=NaN,e=NaN,r=NaN,n=NaN;return i((function(i,a,o){return i.type&te.SMOOTH_CURVE_TO&&(i.type=te.CURVE_TO,t=isNaN(t)?a:t,e=isNaN(e)?o:e,i.x1=i.relative?a-t:2*a-t,i.y1=i.relative?o-e:2*o-e),i.type&te.CURVE_TO?(t=i.relative?a+i.x2:i.x2,e=i.relative?o+i.y2:i.y2):(t=NaN,e=NaN),i.type&te.SMOOTH_QUAD_TO&&(i.type=te.QUAD_TO,r=isNaN(r)?a:r,n=isNaN(n)?o:n,i.x1=i.relative?a-r:2*a-r,i.y1=i.relative?o-n:2*o-n),i.type&te.QUAD_TO?(r=i.relative?a+i.x1:i.x1,n=i.relative?o+i.y1:i.y1):(r=NaN,n=NaN),i}))}function n(){var t=NaN,e=NaN;return i((function(r,n,i){if(r.type&te.SMOOTH_QUAD_TO&&(r.type=te.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&te.QUAD_TO){t=r.relative?n+r.x1:r.x1,e=r.relative?i+r.y1:r.y1;var a=r.x1,o=r.y1;r.type=te.CURVE_TO,r.x1=((r.relative?0:n)+2*a)/3,r.y1=((r.relative?0:i)+2*o)/3,r.x2=(r.x+2*a)/3,r.y2=(r.y+2*o)/3}else t=NaN,e=NaN;return r}))}function i(t){var e=0,r=0,n=NaN,i=NaN;return function(a){if(isNaN(n)&&!(a.type&te.MOVE_TO))throw new Error("path must start with moveto");var o=t(a,e,r,n,i);return a.type&te.CLOSE_PATH&&(e=n,r=i),void 0!==a.x&&(e=a.relative?e+a.x:a.x),void 0!==a.y&&(r=a.relative?r+a.y:a.y),a.type&te.MOVE_TO&&(n=e,i=r),o}}function a(t,e,r,n,a,o){return zt(t,e,r,n,a,o),i((function(i,s,u,c){var l=i.x1,f=i.x2,h=i.relative&&!isNaN(c),p=void 0!==i.x?i.x:h?0:s,v=void 0!==i.y?i.y:h?0:u;function y(t){return t*t}i.type&te.HORIZ_LINE_TO&&0!==e&&(i.type=te.LINE_TO,i.y=i.relative?0:u),i.type&te.VERT_LINE_TO&&0!==r&&(i.type=te.LINE_TO,i.x=i.relative?0:s),void 0!==i.x&&(i.x=i.x*t+v*r+(h?0:a)),void 0!==i.y&&(i.y=p*e+i.y*n+(h?0:o)),void 0!==i.x1&&(i.x1=i.x1*t+i.y1*r+(h?0:a)),void 0!==i.y1&&(i.y1=l*e+i.y1*n+(h?0:o)),void 0!==i.x2&&(i.x2=i.x2*t+i.y2*r+(h?0:a)),void 0!==i.y2&&(i.y2=f*e+i.y2*n+(h?0:o));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=te.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,E=(Math.atan2(P,T-O)+Math.PI)%Math.PI/2,C=Math.sin(E),M=Math.cos(E);i.rX=Math.abs(g)/Math.sqrt(T*y(M)+P*C*M+O*y(C)),i.rY=Math.abs(g)/Math.sqrt(T*y(C)-P*C*M+O*y(M)),i.xRot=180*E/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),zt(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return i((function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),i((function(n,i,a,o,s){if(isNaN(o)&&!(n.type&te.MOVE_TO))throw new Error("path must start with moveto");return e&&n.type&te.HORIZ_LINE_TO&&(n.type=te.LINE_TO,n.y=n.relative?0:a),r&&n.type&te.VERT_LINE_TO&&(n.type=te.LINE_TO,n.x=n.relative?0:i),t&&n.type&te.CLOSE_PATH&&(n.type=te.LINE_TO,n.x=n.relative?o-i:o,n.y=n.relative?s-a:s),n.type&te.ARC&&(0===n.rX||0===n.rY)&&(n.type=te.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),zt(t);var e=NaN,r=NaN,n=NaN,a=NaN;return i((function(i,o,s,u,c){var l=Math.abs,f=!1,h=0,p=0;if(i.type&te.SMOOTH_CURVE_TO&&(h=isNaN(e)?0:o-e,p=isNaN(r)?0:s-r),i.type&(te.CURVE_TO|te.SMOOTH_CURVE_TO)?(e=i.relative?o+i.x2:i.x2,r=i.relative?s+i.y2:i.y2):(e=NaN,r=NaN),i.type&te.SMOOTH_QUAD_TO?(n=isNaN(n)?o:2*o-n,a=isNaN(a)?s:2*s-a):i.type&te.QUAD_TO?(n=i.relative?o+i.x1:i.x1,a=i.relative?s+i.y1:i.y2):(n=NaN,a=NaN),i.type&te.LINE_COMMANDS||i.type&te.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&te.CURVE_TO||i.type&te.SMOOTH_CURVE_TO||i.type&te.QUAD_TO||i.type&te.SMOOTH_QUAD_TO){var v=void 0===i.x?0:i.relative?i.x:i.x-o,y=void 0===i.y?0:i.relative?i.y:i.y-s;h=isNaN(n)?void 0===i.x1?h:i.relative?i.x:i.x1-o:n-o,p=isNaN(a)?void 0===i.y1?p:i.relative?i.y:i.y1-s:a-s;var g=void 0===i.x2?0:i.relative?i.x:i.x2-o,d=void 0===i.y2?0:i.relative?i.y:i.y2-s;l(v)<=t&&l(y)<=t&&l(h)<=t&&l(p)<=t&&l(g)<=t&&l(d)<=t&&(f=!0)}return i.type&te.CLOSE_PATH&&l(o-u)<=t&&l(s-c)<=t&&(f=!0),f?[]:i}))},t.MATRIX=a,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),zt(t,e,r);var n=Math.sin(t),i=Math.cos(t);return a(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),zt(t,e),a(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),zt(t,e),a(t,0,0,e,0,0)},t.SKEW_X=function(t){return zt(t),a(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return zt(t),a(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),zt(t),a(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),zt(t),a(1,0,0,-1,0,t)},t.A_TO_C=function(){return i((function(t,e,r){return te.ARC===t.type?function(t,e,r){var n,i,a,o;t.cX||Bt(t,e,r);for(var s=Math.min(t.phi1,t.phi2),u=Math.max(t.phi1,t.phi2)-s,c=Math.ceil(u/90),l=new Array(c),f=e,h=r,p=0;ps.maxX&&(s.maxX=t),ts.maxY&&(s.maxY=t),tO&&u(Qt(r,i.x1,i.x2,i.x,O));for(var h=0,p=Gt(n,i.y1,i.y2,i.y);hO&&c(Qt(n,i.y1,i.y2,i.y,O))}if(i.type&te.ARC){u(i.x),c(i.y),Bt(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.phi1i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],b=x[0],w=x[1],S=function(t){var e=t[0],r=t[1],n=180*Math.atan2(r,e)/Math.PI;return nb&&Ob&&Ou)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(u),this.curArgs.length===ee[this.curCommandType]&&(te.HORIZ_LINE_TO===this.curCommandType?n({type:te.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):te.VERT_LINE_TO===this.curCommandType?n({type:te.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===te.MOVE_TO||this.curCommandType===te.LINE_TO||this.curCommandType===te.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),te.MOVE_TO===this.curCommandType&&(this.curCommandType=te.LINE_TO)):this.curCommandType===te.CURVE_TO?n({type:te.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===te.SMOOTH_CURVE_TO?n({type:te.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===te.QUAD_TO?n({type:te.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===te.ARC&&n({type:te.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(!Zt(a))if(","===a&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==a&&"-"!==a&&"."!==a)if(s)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==a&&"Z"!==a)if("h"===a||"H"===a)this.curCommandType=te.HORIZ_LINE_TO,this.curCommandRelative="h"===a;else if("v"===a||"V"===a)this.curCommandType=te.VERT_LINE_TO,this.curCommandRelative="v"===a;else if("m"===a||"M"===a)this.curCommandType=te.MOVE_TO,this.curCommandRelative="m"===a;else if("l"===a||"L"===a)this.curCommandType=te.LINE_TO,this.curCommandRelative="l"===a;else if("c"===a||"C"===a)this.curCommandType=te.CURVE_TO,this.curCommandRelative="c"===a;else if("s"===a||"S"===a)this.curCommandType=te.SMOOTH_CURVE_TO,this.curCommandRelative="s"===a;else if("q"===a||"Q"===a)this.curCommandType=te.QUAD_TO,this.curCommandRelative="q"===a;else if("t"===a||"T"===a)this.curCommandType=te.SMOOTH_QUAD_TO,this.curCommandRelative="t"===a;else{if("a"!==a&&"A"!==a)throw new SyntaxError('Unexpected character "'+a+'" at index '+i+".");this.curCommandType=te.ARC,this.curCommandRelative="a"===a}else e.push({type:te.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal="."===a}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var n=0,i=Object.getPrototypeOf(this).parse.call(this,e);n>w;if(s[x+3]=Q,0!==Q){var W=255/Q;s[x]=(L*b>>w)*W,s[x+1]=(I*b>>w)*W,s[x+2]=(j*b>>w)*W}else s[x]=s[x+1]=s[x+2]=0;L-=R,I-=_,j-=D,z-=V,R-=g.r,_-=g.g,D-=g.b,V-=g.a;var $=G+a+1;$=m+($>w,ot>0?(ot=255/ot,s[kt]=(ft*b>>w)*ot,s[kt+1]=(ht*b>>w)*ot,s[kt+2]=(pt*b>>w)*ot):s[kt]=s[kt+1]=s[kt+2]=0,ft-=st,ht-=ut,pt-=ct,vt-=lt,st-=g.r,ut-=g.g,ct-=g.b,lt-=g.a,kt=rt+((kt=At+f)~\.\[:]+)/g,ze=/(\.[^\s\+>~\.\[:]+)/g,Fe=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,Be=/(:[\w-]+\([^\)]*\))/gi,Ue=/(:[^\s\+>~\.\[:]+)/g,He=/([^\s\+>~\.\[:]+)/g;function Xe(t,e){var r=t.match(e);return r?[t.replace(e," "),r.length]:[t,0]}function Ye(t){var e=[0,0,0],r=t.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),n=0,i=d(Xe(r,Ie),2);r=i[0],n=i[1],e[1]+=n;var a=d(Xe(r,je),2);r=a[0],n=a[1],e[0]+=n;var o=d(Xe(r,ze),2);r=o[0],n=o[1],e[1]+=n;var s=d(Xe(r,Fe),2);r=s[0],n=s[1],e[2]+=n;var u=d(Xe(r,Be),2);r=u[0],n=u[1],e[1]+=n;var c=d(Xe(r,Ue),2);r=c[0],n=c[1],e[1]+=n;var l=d(Xe(r=r.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),He),2);return r=l[0],n=l[1],e[2]+=n,e.join("")}var qe=1e-8;function Ge(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function Qe(t,e){return(t[0]*e[0]+t[1]*e[1])/(Ge(t)*Ge(e))}function We(t,e){return(t[0]*e[1]0&&void 0!==arguments[0]?arguments[0]:" ",i=this.document,a=this.name;return u()(e=at()(r=Ce(this.getString())).call(r).split(n)).call(e,(function(e){return new t(i,a,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:o()(t);var e=this.value,r=o()(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=Le(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],a=n[1],o=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(o.computeSize("x"),o.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(o.computeSize("x"),o.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*o.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*o.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&a:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*o.computeSize(i);default:var s=this.getNumber();return e&&s<1?s*o.computeSize(i):s}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function(){var t=this.getString(),e=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,a=0;a1&&void 0!==arguments[1]?arguments[1]:0,n=Re(e),i=d(n,2),a=i[0],o=void 0===a?r:a,s=i[1],u=void 0===s?r:s;return new t(o,u)}},{key:"parseScale",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=Re(e),i=d(n,2),a=i[0],o=void 0===a?r:a,s=i[1],u=void 0===s?o:s;return new t(o,u)}},{key:"parsePath",value:function(e){for(var r=Re(e),n=r.length,i=[],a=0;a0}},{key:"runEvents",value:function(){if(this.working){var t=this.screen,e=this.events,r=this.eventElements,n=t.ctx.canvas.style;n&&(n.cursor=""),T()(e).call(e,(function(t,e){for(var n=t.run,i=r[e];i;)n(i),i=i.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function(t,e){if(this.working&&e){var r=this.events,n=this.eventElements;T()(r).call(r,(function(r,i){var a=r.x,o=r.y;!n[i]&&e.isPointInPath&&e.isPointInPath(a,o)&&(n[i]=t)}))}}},{key:"checkBoundingBox",value:function(t,e){if(this.working&&e){var r=this.events,n=this.eventElements;T()(r).call(r,(function(r,i){var a=r.x,o=r.y;!n[i]&&e.isPointInBox(a,o)&&(n[i]=t)}))}}},{key:"mapXY",value:function(t,e){for(var r=this.screen,n=r.window,i=r.ctx,a=new ar(t,e),o=i.canvas;o;)a.x-=o.offsetLeft,a.y-=o.offsetTop,o=o.offsetParent;return n.scrollX&&(a.x+=n.scrollX),n.scrollY&&(a.y+=n.scrollY),a}},{key:"onClick",value:function(t){var e=this.mapXY((t||event).clientX,(t||event).clientY),r=e.x,n=e.y;this.events.push({type:"onclick",x:r,y:n,run:function(t){t.onClick&&t.onClick()}})}},{key:"onMouseMove",value:function(t){var e=this.mapXY((t||event).clientX,(t||event).clientY),r=e.x,n=e.y;this.events.push({type:"onmousemove",x:r,y:n,run:function(t){t.onMouseMove&&t.onMouseMove()}})}}]),t}(),sr="undefined"!=typeof window?window:null,ur="undefined"!=typeof fetch?et()(fetch).call(fetch,void 0):null,cr=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.fetch,i=void 0===n?ur:n,a=r.window,o=void 0===a?sr:a;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 ir,this.mouse=new or(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=o,this.fetch=i}return H(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.aspectRatio,i=t.width,a=t.desiredWidth,o=t.height,s=t.desiredHeight,u=t.minX,c=void 0===u?0:u,l=t.minY,f=void 0===l?0:l,h=t.refX,p=t.refY,v=t.clip,y=void 0!==v&&v,g=t.clipX,m=void 0===g?0:g,x=t.clipY,b=void 0===x?0:x,w=d(Ce(n).replace(/^defer\s/,"").split(" "),2),S=w[0]||"xMidYMid",A=w[1]||"meet",k=i/a,T=o/s,P=Math.min(k,T),O=Math.max(k,T),E=a,C=s;"meet"===A&&(E*=P,C*=P),"slice"===A&&(E*=O,C*=O);var M=new nr(e,"refX",h),N=new nr(e,"refY",p),R=M.hasValue()&&N.hasValue();if(R&&r.translate(-P*M.getPixels("x"),-P*N.getPixels("y")),y){var _=P*m,D=P*b;r.beginPath(),r.moveTo(_,D),r.lineTo(i,D),r.lineTo(i,o),r.lineTo(_,o),r.closePath(),r.clip()}if(!R){var V="meet"===A&&P===T,L="slice"===A&&O===T,I="meet"===A&&P===k,j="slice"===A&&O===k;/^xMid/.test(S)&&(V||L)&&r.translate(i/2-E/2,0),/YMid$/.test(S)&&(I||j)&&r.translate(0,o/2-C/2),/^xMax/.test(S)&&(V||L)&&r.translate(i-E,0),/YMax$/.test(S)&&(I||j)&&r.translate(0,o-C)}switch(!0){case"none"===S:r.scale(k,T);break;case"meet"===A:r.scale(P,P);break;case"slice"===A:r.scale(O,O)}r.translate(-c,-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,a=r.ignoreMouse,o=void 0!==a&&a,s=r.ignoreAnimation,u=void 0!==s&&s,c=r.ignoreDimensions,l=void 0!==c&&c,f=r.ignoreClear,h=void 0!==f&&f,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,l,h,v,y,g,d),i){var w=W()(),S=w,A=0,k=function r(){w=W()(),(A=w-S)>=b&&(S=w-A%b,e.shouldUpdate(u,p)&&(e.render(t,l,h,v,y,g,d),x.runEvents())),e.intervalId=nt()(r)};o||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,i=G()(r=this.animations).call(r,(function(t,e){return e.update(n)||t}),!1);if(i)return!0}return!("function"!=typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function(t,e,r,n,i,a,o){var s=this.CLIENT_WIDTH,u=this.CLIENT_HEIGHT,c=this.viewPort,l=this.ctx,f=this.isFirstRender,h=l.canvas;c.clear(),h.width&&h.height?c.setCurrent(h.width,h.height):c.setCurrent(s,u);var p=t.getStyle("width"),v=t.getStyle("height");!e&&(f||"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 a&&t.getAttribute("x",!0).setValue(a),"number"==typeof o&&t.getAttribute("y",!0).setValue(o),"number"==typeof n||"number"==typeof i){var d,m,x=Re(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||l.clearRect(0,0,y,g),t.render(l),f&&(this.isFirstRender=!1)}}]),t}();cr.defaultWindow=sr,cr.defaultFetch=ur;var lr=cr.defaultFetch,fr="undefined"!=typeof DOMParser?DOMParser:null,hr=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.fetch,n=void 0===r?lr:r,i=e.DOMParser,a=void 0===i?fr:i;B(this,t),this.fetch=n,this.DOMParser=a}var e,r;return H(t,[{key:"parse",value:(r=j(V().mark((function t(e){return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!/^=0;r--)e[r].unapply(t)}},{key:"applyToPoint",value:function(t){for(var e=this.transforms,r=e.length,n=0;n2&&void 0!==arguments[2]&&arguments[2];if(B(this,t),this.document=e,this.node=r,this.captureTextNodes=o,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){if(T()(n=Pt()(r.attributes)).call(n,(function(t){var r=De(t.nodeName);a.attributes[r]=new nr(e,r,t.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var s,c=u()(s=this.getAttribute("style").getString().split(";")).call(s,(function(t){return at()(t).call(t)}));T()(c).call(c,(function(t){var r;if(t){var n=d(u()(r=t.split(":")).call(r,(function(t){return at()(t).call(t)})),2),i=n[0],o=n[1];a.styles[i]=new nr(e,i,o)}}))}var l=e.definitions,f=this.getAttribute("id");f.hasValue()&&(l[f.getValue()]||(l[f.getValue()]=this)),T()(i=Pt()(r.childNodes)).call(i,(function(t){if(1===t.nodeType)a.addChild(t);else if(o&&(3===t.nodeType||4===t.nodeType)){var r=e.createTextNode(t);r.getText().length>0&&a.addChild(r)}}))}}return H(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 nr(this.document,t,"");return this.attributes[t]=n,n}return r||nr.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var t in this.attributes)if("href"===t||/:href$/.test(t))return this.attributes[t];return nr.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 a=this.parent;if(a){var o=a.getStyle(t);if(o&&o.hasValue())return o}}if(e){var s=new nr(this.document,t,"");return this.styles[t]=s,s}return n||nr.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=Ar.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,kt()(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)&&St()(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],a=r[n];if(i)for(var o in i){var s=this.stylesSpecificity[o];void 0===s&&(s="000"),a>=s&&(this.styles[o]=i[o],this.stylesSpecificity[o]=a)}}}},{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 a=i.getString();return i.setValue(""),Y()(n=[]).call(n,bt(e),[[r,a]])}),[])}},{key:"restoreStyles",value:function(t,e){T()(e).call(e,(function(e){var r=d(e,2),n=r[0],i=r[1];t.getStyle(n,!0).setValue(i)}))}}]),t}();function Tr(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}kr.ignoreChildTypes=["title"];var Pr=function(t){pt(r,t);var e=Tr(r);function r(t,n,i){return B(this,r),e.call(this,t,n,i)}return r}(kr);function Or(t){var e=at()(t).call(t);return/^('|")/.test(e)?e:'"'.concat(e,'"')}function Er(t){if(!t)return"";var e=at()(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 Cr(t){if(!t)return"";var e=at()(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 Mr=function(){function t(e,r,n,i,a,o){B(this,t);var s=o?"string"==typeof o?t.parse(o):o:{};this.fontFamily=a||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=n||s.fontWeight,this.fontVariant=r||s.fontVariant}return H(t,[{key:"toString",value:function(){var t,e,r;return at()(t=[Er(this.fontStyle),this.fontVariant,Cr(this.fontWeight),this.fontSize,(e=this.fontFamily,void 0===Ee?e:u()(r=at()(e).call(e).split(",")).call(r,Or).join(","))].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="",a="",o="",s="",u="",c=at()(e=Ce(r)).call(e).split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return T()(c).call(c,(function(e){var r,n,c;switch(!0){case!l.fontStyle&&kt()(r=t.styles).call(r,e):"inherit"!==e&&(i=e),l.fontStyle=!0;break;case!l.fontVariant&&kt()(n=t.variants).call(n,e):"inherit"!==e&&(a=e),l.fontStyle=!0,l.fontVariant=!0;break;case!l.fontWeight&&kt()(c=t.weights).call(c,e):"inherit"!==e&&(o=e),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:if("inherit"!==e){var f=d(e.split("/"),1);s=f[0]}l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:"inherit"!==e&&(u+=e)}})),new t(i,a,o,s,u,n)}}]),t}();Mr.styles="normal|italic|oblique|inherit",Mr.variants="normal|small-caps|inherit",Mr.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var Nr=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 H(t,[{key:"addPoint",value:function(t,e){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),tthis.x2&&(this.x2=t)),void 0!==e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),ethis.y2&&(this.y2=e))}},{key:"addX",value:function(t){this.addPoint(t,null)}},{key:"addY",value:function(t){this.addPoint(null,t)}},{key:"addBoundingBox",value:function(t){if(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;this.addPoint(e,r),this.addPoint(n,i)}}},{key:"sumCubic",value:function(t,e,r,n,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*n+Math.pow(t,3)*i}},{key:"bezierCurveAdd",value:function(t,e,r,n,i){var a=6*e-12*r+6*n,o=-3*e+9*r-9*n+3*i,s=3*r-3*e;if(0!==o){var u=Math.pow(a,2)-4*s*o;if(!(u<0)){var c=(-a+Math.sqrt(u))/(2*o);01&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var o=r.getFillStyleDefinition(this,n);o&&(t.fillStyle=o)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var s=r.getColor();"inherit"!==s&&(t.fillStyle="none"===s?"rgba(0,0,0,0)":s)}if(n.hasValue()){var u=new nr(this.document,"fill",t.fillStyle).addOpacity(n).getColor();t.fillStyle=u}if(i.isUrlDefinition()){var c=i.getFillStyleDefinition(this,a);c&&(t.strokeStyle=c)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var l=i.getString();"inherit"!==l&&(t.strokeStyle="none"===l?"rgba(0,0,0,0)":l)}if(a.hasValue()){var f=new nr(this.document,"stroke",t.strokeStyle).addOpacity(a).getString();t.strokeStyle=f}var h=this.getStyle("stroke-width");if(h.hasValue()){var p=h.getPixels();t.lineWidth=p||qe}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=Re(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"),E=new Mr(A.getString(),k.getString(),T.getString(),P.hasValue()?"".concat(P.getPixels(!0),"px"):"",O.getString(),Mr.parse(S.getString(),t.font));A.setValue(E.fontStyle),k.setValue(E.fontVariant),T.setValue(E.fontWeight),P.setValue(E.fontSize),O.setValue(E.fontFamily),t.font=E.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}(kr);function Dr(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var Vr=function(t){pt(r,t);var e=Dr(r);function r(t,n,i){var a;return B(this,r),(a=e.call(this,t,n,(this instanceof r?this.constructor:void 0)===r||i)).type="text",a.x=0,a.y=0,a.measureCache=-1,a}return H(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 a=r.getChildBoundingBox(t,r,r,i);n?n.addBoundingBox(a):n=a})),n}},{key:"getFontSize",value:function(){var t=this.document,e=this.parent,r=Mr.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}},{key:"getTElementBoundingBox",value:function(t){var e=this.getFontSize();return new Nr(this.x,this.y-e,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,e,r){var n=e[r],i=null;if(t.isArabic){var a=e.length,o=e[r-1],s=e[r+1],u="isolated";(0===r||" "===o)&&r0&&" "!==o&&r0&&" "!==o&&(r===a-1||" "===s)&&(u="initial"),void 0!==t.glyphs[n]&&((i=t.glyphs[n][u])||"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=Pt()(e.parentNode.childNodes),n=Mt()(r).call(r,e),i=r.length-1,a=Ce(e.value||e.text||e.textContent||"");return 0===n&&(a=Me(a)),n===i&&(a=Ne(a)),a}},{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 a,o=i.fontFace.unitsPerEm,s=Mr.parse(e.ctx.font),u=r.getStyle("font-size").getNumber(s.fontSize),c=r.getStyle("font-style").getString(s.fontStyle),l=u/o,f=i.isRTL?Et()(a=n.split("")).call(a).join(""):n,h=Re(r.getAttribute("dx").getString()),p=f.length,v=0;vr&&o.getAttribute("x").hasValue()||o.getAttribute("text-anchor").hasValue()));u++)s+=o.measureTextRecursive(t);return-1*("end"===n?s:s/2)}return 0}},{key:"adjustChildCoordinates",value:function(t,e,r,n){var i=r.children[n];if("function"!=typeof i.measureText)return i;t.save(),i.setContext(t,!0);var a=i.getAttribute("x"),o=i.getAttribute("y"),s=i.getAttribute("dx"),u=i.getAttribute("dy"),c=i.getAttribute("text-anchor").getString("start");if(0===n&&"textNode"!==i.type&&(a.hasValue()||a.setValue(e.getAttribute("x").getValue("0")),o.hasValue()||o.setValue(e.getAttribute("y").getValue("0")),s.hasValue()||s.setValue(e.getAttribute("dx").getValue("0")),u.hasValue()||u.setValue(e.getAttribute("dy").getValue("0"))),a.hasValue()){if(i.x=a.getPixels("x")+e.getAnchorDelta(t,r,n),"start"!==c){var l=i.measureTextRecursive(t);i.x+=-1*("end"===c?l:l/2)}s.hasValue()&&(i.x+=s.getPixels("x"))}else{if("start"!==c){var f=i.measureTextRecursive(t);e.x+=-1*("end"===c?f:f/2)}s.hasValue()&&(e.x+=s.getPixels("x")),i.x=e.x}return e.x=i.x+i.measureText(t),o.hasValue()?(i.y=o.getPixels("y"),u.hasValue()&&(i.y+=u.getPixels("y"))):(u.hasValue()&&(e.y+=u.getPixels("y")),i.y=e.y),e.y=i.y,i.clearContext(t),t.restore(),i}},{key:"getChildBoundingBox",value:function(t,e,r,n){var i,a=this.adjustChildCoordinates(t,e,r,n);if("function"!=typeof a.getBoundingBox)return null;var o=a.getBoundingBox(t);return o?(T()(i=a.children).call(i,(function(r,n){var i=e.getChildBoundingBox(t,e,a,n);o.addBoundingBox(i)})),o):null}},{key:"renderChild",value:function(t,e,r,n){var i,a=this.adjustChildCoordinates(t,e,r,n);a.render(t),T()(i=a.children).call(i,(function(r,n){e.renderChild(t,e,a,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,a=this.getFontSize(),o=n.isRTL?Et()(i=e.split("")).call(i).join(""):e,s=Re(r.getAttribute("dx").getString()),u=o.length,c=0,l=0;l0?"":a.getTextFromNode(),a}return H(r,[{key:"getText",value:function(){return this.text}}]),r}(Vr);function jr(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var zr=function(t){pt(r,t);var e=jr(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="textNode",t}return r}(Ir);function Fr(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var Br=function(t){pt(r,t);var e=Fr(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 H(r,[{key:"reset",value:function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new ar(0,0),this.control=new ar(0,0),this.current=new ar(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 ar(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!==te.CURVE_TO&&t!==te.SMOOTH_CURVE_TO&&t!==te.QUAD_TO&&t!==te.SMOOTH_QUAD_TO)return this.current;var e=this.current,r=e.x,n=e.y,i=this.control,a=i.x,o=i.y;return new ar(2*r-a,2*n-o)}},{key:"makeAbsolute",value:function(t){if(this.command.relative){var e=this.current,r=e.x,n=e.y;t.x+=r,t.y+=n}return t}},{key:"addMarker",value:function(t,e,r){var n=this.points,i=this.angles;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}},{key:"addMarkerAngle",value:function(t,e){this.points.push(t),this.angles.push(e)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var t=this.angles,e=t.length,r=0;rs?o:s,d=o>s?1:o/s,m=o>s?s/o:1;t.translate(l.x,l.y),t.rotate(c),t.scale(d,m),t.arc(0,0,g,f,f+h,Boolean(1-u)),t.scale(1/d,1/m),t.rotate(-c),t.translate(-l.x,-l.y)}}},{key:"pathZ",value:function(t,e){r.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}],[{key:"pathM",value:function(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}},{key:"pathL",value:function(t){return{current:t.current,point:t.getAsCurrentPoint()}}},{key:"pathH",value:function(t){var e=t.current,r=t.command,n=new ar((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 ar(e.x,(r.relative?e.y:0)+r.y);return t.current=n,{current:e,point:n}}},{key:"pathC",value:function(t){return{current:t.current,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathS",value:function(t){return{current:t.current,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathQ",value:function(t){return{current:t.current,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathT",value:function(t){var e=t.current,r=t.getReflectedControlPoint();return t.control=r,{current:e,controlPoint:r,currentPoint:t.getAsCurrentPoint()}}},{key:"pathA",value:function(t){var e=t.current,r=t.command,n=r.rX,i=r.rY,a=r.xRot,o=r.lArcFlag,s=r.sweepFlag,u=a*(Math.PI/180),c=t.getAsCurrentPoint(),l=new ar(Math.cos(u)*(e.x-c.x)/2+Math.sin(u)*(e.y-c.y)/2,-Math.sin(u)*(e.x-c.x)/2+Math.cos(u)*(e.y-c.y)/2),f=Math.pow(l.x,2)/Math.pow(n,2)+Math.pow(l.y,2)/Math.pow(i,2);f>1&&(n*=Math.sqrt(f),i*=Math.sqrt(f));var h=(o===s?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(l.y,2)-Math.pow(i,2)*Math.pow(l.x,2))/(Math.pow(n,2)*Math.pow(l.y,2)+Math.pow(i,2)*Math.pow(l.x,2)));isNaN(h)&&(h=0);var p=new ar(h*n*l.y/i,h*-i*l.x/n),v=new ar((e.x+c.x)/2+Math.cos(u)*p.x-Math.sin(u)*p.y,(e.y+c.y)/2+Math.sin(u)*p.x+Math.cos(u)*p.y),y=We([1,0],[(l.x-p.x)/n,(l.y-p.y)/i]),g=[(l.x-p.x)/n,(l.y-p.y)/i],d=[(-l.x-p.x)/n,(-l.y-p.y)/i],m=We(g,d);return Qe(g,d)<=-1&&(m=Math.PI),Qe(g,d)>=1&&(m=0),{currentPoint:c,rX:n,rY:i,sweepFlag:s,xAxisRotation:u,centp:v,a1:y,ad:m}}},{key:"pathZ",value:function(t){t.current=t.start}}]),r}(_r);function Xr(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var Yr=function(t){pt(r,t);var e=Xr(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="svg",t.root=!1,t}return H(r,[{key:"setContext",value:function(t){var e=this.document,n=e.screen,i=e.window,a=t.canvas;if(n.setDefaults(t),a.style&&void 0!==t.font&&i&&void 0!==i.getComputedStyle){t.font=i.getComputedStyle(a).getPropertyValue("font");var o=new nr(e,"fontSize",Mr.parse(t.font).fontSize);o.hasValue()&&(e.rootEmSize=o.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 s=n.viewPort,u=s.width,c=s.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 l=this.getAttribute("refX"),f=this.getAttribute("refY"),h=this.getAttribute("viewBox"),p=h.hasValue()?Re(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||(u=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(u,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&&(u=p[2],c=p[3]),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:u,height:n.viewPort.height,desiredHeight:c,minX:y,minY:g,refX:l.getValue(),refY:f.getValue(),clip:v,clipX:d,clipY:m}),p&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(u,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),a=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=i.getNumber(0),c=a.getNumber(0);if(n)if("string"==typeof n)this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var l=this.getAttribute("preserveAspectRatio");l.hasValue()&&l.setValue(l.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}(i.setValue(t),a.setValue(r),o.hasValue())||o.setValue(Y()(e="0 0 ".concat(u||t," ")).call(e,c||r));if(s.hasValue()){var f=this.getStyle("width"),h=this.getStyle("height");f.hasValue()&&f.setValue("".concat(t,"px")),h.hasValue()&&h.setValue("".concat(r,"px"))}}}]),r}(_r);function qr(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var Gr=function(t){pt(r,t);var e=qr(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="rect",t}return H(r,[{key:"path",value:function(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),a=this.getAttribute("rx"),o=this.getAttribute("ry"),s=a.getPixels("x"),u=o.getPixels("y");if(a.hasValue()&&!o.hasValue()&&(u=s),o.hasValue()&&!a.hasValue()&&(s=u),s=Math.min(s,n/2),u=Math.min(u,i/2),t){var c=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&n>0&&(t.moveTo(e+s,r),t.lineTo(e+n-s,r),t.bezierCurveTo(e+n-s+c*s,r,e+n,r+u-c*u,e+n,r+u),t.lineTo(e+n,r+i-u),t.bezierCurveTo(e+n,r+i-u+c*u,e+n-s+c*s,r+i,e+n-s,r+i),t.lineTo(e+s,r+i),t.bezierCurveTo(e+s-c*s,r+i,e,r+i-u+c*u,e,r+i-u),t.lineTo(e,r+u),t.bezierCurveTo(e,r+u-c*u,e+s-c*s,r,e+s,r),t.closePath())}return new Nr(e,r,e+n,r+i)}},{key:"getMarkers",value:function(){return null}}]),r}(Hr);function Qr(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var Wr=function(t){pt(r,t);var e=Qr(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="circle",t}return H(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 Nr(e-n,r-n,e+n,r+n)}},{key:"getMarkers",value:function(){return null}}]),r}(Hr);function $r(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var Zr=function(t){pt(r,t);var e=$r(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="ellipse",t}return H(r,[{key:"path",value:function(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return t&&r>0&&n>0&&(t.beginPath(),t.moveTo(i+r,a),t.bezierCurveTo(i+r,a+e*n,i+e*r,a+n,i,a+n),t.bezierCurveTo(i-e*r,a+n,i-r,a+e*n,i-r,a),t.bezierCurveTo(i-r,a-e*n,i-e*r,a-n,i,a-n),t.bezierCurveTo(i+e*r,a-n,i+r,a-e*n,i+r,a),t.closePath()),new Nr(i-r,a-n,i+r,a+n)}},{key:"getMarkers",value:function(){return null}}]),r}(Hr);function Kr(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var Jr=function(t){pt(r,t);var e=Kr(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="line",t}return H(r,[{key:"getPoints",value:function(){return[new ar(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new ar(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,a=e[1],o=a.x,s=a.y;return t&&(t.beginPath(),t.moveTo(n,i),t.lineTo(o,s)),new Nr(n,i,o,s)}},{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}(Hr);function tn(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var en=function(t){pt(r,t);var e=tn(r);function r(t,n,i){var a;return B(this,r),(a=e.call(this,t,n,i)).type="polyline",a.points=[],a.points=ar.parsePath(a.getAttribute("points").getString()),a}return H(r,[{key:"path",value:function(t){var e=this.points,r=d(e,1)[0],n=r.x,i=r.y,a=new Nr(n,i);return t&&(t.beginPath(),t.moveTo(n,i)),T()(e).call(e,(function(e){var r=e.x,n=e.y;a.addPoint(r,n),t&&t.lineTo(r,n)})),a}},{key:"getMarkers",value:function(){var t=this.points,e=t.length-1,r=[];return T()(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}(Hr);function rn(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var nn=function(t){pt(r,t);var e=rn(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="polygon",t}return H(r,[{key:"path",value:function(t){var e=_t(xt(r.prototype),"path",this).call(this,t),n=d(this.points,1)[0],i=n.x,a=n.y;return t&&(t.lineTo(i,a),t.closePath()),e}}]),r}(en);function an(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var on=function(t){pt(r,t);var e=an(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="pattern",t}return H(r,[{key:"createPattern",value:function(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),a=new Yr(this.document,null);a.attributes.viewBox=new nr(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new nr(this.document,"width","".concat(n,"px")),a.attributes.height=new nr(this.document,"height","".concat(i,"px")),a.attributes.transform=new nr(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var o=this.document.createCanvas(n,i),s=o.getContext("2d"),u=this.getAttribute("x"),c=this.getAttribute("y");u.hasValue()&&c.hasValue()&&s.translate(u.getPixels("x",!0),c.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:ne()(this.styles,"fill-opacity");for(var l=-1;l<=1;l++)for(var f=-1;f<=1;f++)s.save(),a.attributes.x=new nr(this.document,"x",l*o.width),a.attributes.y=new nr(this.document,"y",f*o.height),a.render(s),s.restore();return t.createPattern(o,"repeat")}}]),r}(kr);function sn(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var un=function(t){pt(r,t);var e=sn(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="marker",t}return H(r,[{key:"render",value:function(t,e,r){if(e){var n=e.x,i=e.y,a=this.getAttribute("orient").getValue("auto"),o=this.getAttribute("markerUnits").getValue("strokeWidth");t.translate(n,i),"auto"===a&&t.rotate(r),"strokeWidth"===o&&t.scale(t.lineWidth,t.lineWidth),t.save();var s=new Yr(this.document,null);s.type=this.type,s.attributes.viewBox=new nr(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.refX=new nr(this.document,"refX",this.getAttribute("refX").getValue()),s.attributes.refY=new nr(this.document,"refY",this.getAttribute("refY").getValue()),s.attributes.width=new nr(this.document,"width",this.getAttribute("markerWidth").getValue()),s.attributes.height=new nr(this.document,"height",this.getAttribute("markerHeight").getValue()),s.attributes.overflow=new nr(this.document,"overflow",this.getAttribute("overflow").getValue()),s.attributes.fill=new nr(this.document,"fill",this.getAttribute("fill").getColor("black")),s.attributes.stroke=new nr(this.document,"stroke",this.getAttribute("stroke").getValue("none")),s.children=this.children,s.render(t),t.restore(),"strokeWidth"===o&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===a&&t.rotate(-r),t.translate(-n,-i)}}}]),r}(kr);function cn(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var ln=function(t){pt(r,t);var e=cn(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="defs",t}return H(r,[{key:"render",value:function(){}}]),r}(kr);function fn(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var hn=function(t){pt(r,t);var e=fn(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="g",t}return H(r,[{key:"getBoundingBox",value:function(t){var e,r=new Nr;return T()(e=this.children).call(e,(function(e){r.addBoundingBox(e.getBoundingBox(t))})),r}}]),r}(_r);function pn(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var vn=function(t){pt(r,t);var e=pn(r);function r(t,n,i){var a;B(this,r),(a=e.call(this,t,n,i)).attributesToInherit=["gradientUnits"],a.stops=[];var o=gt(a),s=o.stops,u=o.children;return T()(u).call(u,(function(t){"stop"===t.type&&s.push(t)})),a}return H(r,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(t,e,r){var n=this,i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var a=i.stops,o=this.getGradient(t,e);if(!o)return this.addParentOpacity(r,a[a.length-1].color);if(T()(a).call(a,(function(t){o.addColorStop(t.offset,n.addParentOpacity(r,t.color))})),this.getAttribute("gradientTransform").hasValue()){var s=this.document,u=s.screen,c=u.MAX_VIRTUAL_PIXELS,l=d(u.viewPort.viewPorts,1)[0],f=new Gr(s,null);f.attributes.x=new nr(s,"x",-c/3),f.attributes.y=new nr(s,"y",-c/3),f.attributes.width=new nr(s,"width",c),f.attributes.height=new nr(s,"height",c);var h=new hn(s,null);h.attributes.transform=new nr(s,"transform",this.getAttribute("gradientTransform").getValue()),h.children=[f];var p=new Yr(s,null);p.attributes.x=new nr(s,"x",0),p.attributes.y=new nr(s,"y",0),p.attributes.width=new nr(s,"width",l.width),p.attributes.height=new nr(s,"height",l.height),p.children=[h];var v=s.createCanvas(l.width,l.height),y=v.getContext("2d");return y.fillStyle=o,p.render(y),y.createPattern(v,"no-repeat")}return o}},{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 nr(this.document,"color",e).addOpacity(t).getColor():e}}]),r}(kr);function yn(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var gn=function(t){pt(r,t);var e=yn(r);function r(t,n,i){var a;return B(this,r),(a=e.call(this,t,n,i)).type="linearGradient",a.attributesToInherit.push("x1","y1","x2","y2"),a}return H(r,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=r?e.getBoundingBox(t):null;if(r&&!n)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),o=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),s=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===o&&a===s?null:t.createLinearGradient(i,a,o,s)}}]),r}(vn);function dn(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var mn=function(t){pt(r,t);var e=dn(r);function r(t,n,i){var a;return B(this,r),(a=e.call(this,t,n,i)).type="radialGradient",a.attributesToInherit.push("cx","cy","r","fx","fy","fr"),a}return H(r,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=e.getBoundingBox(t);if(r&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),o=i,s=a;this.getAttribute("fx").hasValue()&&(o=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(s=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var u=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),c=this.getAttribute("fr").getPixels();return t.createRadialGradient(o,s,c,i,a,u)}}]),r}(vn);function xn(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var bn=function(t){pt(r,t);var e=xn(r);function r(t,n,i){var a;B(this,r),(a=e.call(this,t,n,i)).type="stop";var o=Math.max(0,Math.min(1,a.getAttribute("offset").getNumber())),s=a.getStyle("stop-opacity"),u=a.getStyle("stop-color",!0);return""===u.getString()&&u.setValue("#000"),s.hasValue()&&(u=u.addOpacity(s)),a.offset=o,a.color=u.getColor(),a}return r}(kr);function wn(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var Sn=function(t){pt(r,t);var e=wn(r);function r(t,n,i){var a;return B(this,r),(a=e.call(this,t,n,i)).type="animate",a.duration=0,a.initialValue=null,a.initialUnits="",a.removed=!1,a.frozen=!1,t.screen.animations.push(gt(a)),a.begin=a.getAttribute("begin").getMilliseconds(),a.maxDuration=a.begin+a.getAttribute("dur").getMilliseconds(),a.from=a.getAttribute("from"),a.to=a.getAttribute("to"),a.values=a.getAttribute("values"),ae()(a).hasValue()&&ae()(a).setValue(ae()(a).getString().split(";")),a}return H(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,a=r.to,o=i.getNumber()+(a.getNumber()-i.getNumber())*n;return"%"===e&&(o*=100),Y()(t="".concat(o)).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=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 a,o=!0,s=!1;return{s:function(){r=ce()(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function En(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&Z()(a=Pt()(s)).call(a,(function(t){return 3===t.nodeType}));return o.hasText=c,o.text=c?o.getTextFromNode(u):"",o}return H(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,a=e.screen.mouse,o=new nr(e,"fontSize",Mr.parse(e.ctx.font).fontSize);a.isWorking()&&a.checkBoundingBox(this,new Nr(n,i-o.getPixels("y"),n+this.measureText(t),i))}else if(this.children.length>0){var s=new hn(this.document,null);s.children=this.children,s.parent=this,s.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}(Vr);function Bn(t,e){var r;if(void 0===pe()||null==h()(t)){if(fe()(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return Un(t,e);var n=ye()(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Pt()(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Un(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 a,o=!0,s=!1;return{s:function(){r=ce()(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Un(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);ru?s:u,v=s>u?1:s/u,y=s>u?u/s:1;t&&(t.translate(a,o),t.rotate(f),t.scale(v,y),t.arc(0,0,p,c,c+l,Boolean(1-h)),t.scale(1/v,1/y),t.rotate(-f),t.translate(-a,-o));break;case Br.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 a=n.p0,o=n.p1,s=n.rotation,u=n.text;t.save(),t.translate(a.x,a.y),t.rotate(s),t.fillStyle&&t.fillText(u,0,0),t.strokeStyle&&t.strokeText(u,0,0),t.restore(),"underline"===e&&(0===i&&t.moveTo(a.x,a.y+r/8),t.lineTo(o.x,o.y+r/5))})),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=i,t.stroke(),t.closePath()),t.restore()}},{key:"getLetterSpacingAt",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}},{key:"findSegmentToFitChar",value:function(t,e,r,n,i,a,o,s,u){var c=a,l=this.measureText(t,s);" "===s&&"justify"===e&&r-1&&(c+=this.getLetterSpacingAt(u));var f=this.textHeight/20,h=this.getEquidistantPointOnPath(c,f,0),p=this.getEquidistantPointOnPath(c+l,f,0),v={p0:h,p1:p},y=h&&p?Math.atan2(p.y-h.y,p.x-h.x):0;if(o){var g=Math.cos(Math.PI/2+y)*o,d=Math.cos(-y)*o;v.p0=Xn(Xn({},h),{},{x:h.x+g,y:h.y+d}),v.p1=Xn(Xn({},p),{},{x:p.x+g,y:p.y+d})}return{offset:c+=l,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(""),a=n.split(" ").length-1,o=u()(e=this.parent.getAttribute("dx").split()).call(e,(function(t){return t.getPixels("x")})),s=this.parent.getAttribute("dy").getPixels("y"),c=this.parent.getStyle("text-anchor").getString("start"),l=this.getStyle("letter-spacing"),f=this.parent.getStyle("letter-spacing"),h=0;l.hasValue()&&"inherit"!==l.getValue()?l.hasValue()&&"initial"!==l.getValue()&&"unset"!==l.getValue()&&(h=l.getPixels()):h=f.getPixels();var p=[],v=n.length;this.letterSpacingCache=p;for(var y=0;y0&&(u-=2*Math.PI),1===i&&u<0&&(u+=2*Math.PI),[o.x,o.y,r,n,s,u,a,i]}},{key:"calcLength",value:function(t,e,r,n){var i=0,a=null,o=null,s=0;switch(r){case Br.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case Br.CURVE_TO:for(i=0,a=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),s=.01;s<=1;s+=.01)o=this.getPointOnCubicBezier(s,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case Br.QUAD_TO:for(i=0,a=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),s=.01;s<=1;s+=.01)o=this.getPointOnQuadraticBezier(s,t,e,n[0],n[1],n[2],n[3]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case Br.ARC:i=0;var u=n[4],c=n[5],l=n[4]+c,f=Math.PI/180;if(Math.abs(u-l)l;s-=f)o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;else for(s=u+f;s5&&void 0!==arguments[5]?arguments[5]:e,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,s=(i-r)/(n-e+qe),u=Math.sqrt(t*t/(1+s*s));ne)return null;var i,a=Bn(this.dataArray);try{for(a.s();!(i=a.n()).done;){var o=i.value;if(!o||!(o.pathLength<5e-5||r+o.pathLength+5e-5=0&&u>f)break;n=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break;case Br.CURVE_TO:(u=s/o.pathLength)>1&&(u=1),n=this.getPointOnCubicBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case Br.QUAD_TO:(u=s/o.pathLength)>1&&(u=1),n=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3])}if(n)return n;break}r+=o.pathLength}}catch(t){a.e(t)}finally{a.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;-1===this.pathLength&&(this.pathLength=G()(t=this.dataArray).call(t,(function(t,e){return e.pathLength>0?t+e.pathLength:t}),0));return this.pathLength}},{key:"getPointOnCubicBezier",value:function(t,e,r,n,i,a,o,s,u){return{x:s*$e(t)+a*Ze(t)+n*Ke(t)+e*Je(t),y:u*$e(t)+o*Ze(t)+i*Ke(t)+r*Je(t)}}},{key:"getPointOnQuadraticBezier",value:function(t,e,r,n,i,a,o){return{x:a*tr(t)+n*er(t)+e*rr(t),y:o*tr(t)+i*er(t)+r*rr(t)}}},{key:"getPointOnEllipticalArc",value:function(t,e,r,n,i,a){var o=Math.cos(a),s=Math.sin(a),u=r*Math.cos(i),c=n*Math.sin(i);return{x:t+(u*o-c*s),y:e+(u*s+c*o)}}},{key:"buildEquidistantCache",value:function(t,e){var r=this.getPathLength(),n=e||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var a=0,o=0;o<=r;o+=n){var s=this.getPointOnPath(o),u=this.getPointOnPath(o+n);s&&u&&((a+=this.getLineLength(s.x,s.y,u.x,u.y))>=i&&(this.equidistantCache.points.push({x:s.x,y:s.y,distance:o}),a-=i))}}}},{key:"getEquidistantPointOnPath",value:function(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var n=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}]),r}(Vr);function Gn(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var Qn=function(t){pt(i,t);var e,r,n=Gn(i);function i(t,e,r){var a;B(this,i),(a=n.call(this,t,e,r)).type="image",a.loaded=!1;var o=a.getHrefAttribute().getString();if(!o)return dt(a);var s=/\.svg$/.test(o);return t.images.push(gt(a)),s?a.loadSvg(o):a.loadImage(o),a.isSvg=s,a}return H(i,[{key:"loadImage",value:(r=j(V().mark((function t(e){var r;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.createImage(e);case 3:r=t.sent,this.image=r,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error('Error while loading image "'.concat(e,'":'),t.t0);case 10:this.loaded=!0;case 11:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(t){return r.apply(this,arguments)})},{key:"loadSvg",value:(e=j(V().mark((function t(e){var r,n;return V().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:n=t.sent,this.image=n,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]])}))),function(t){return e.apply(this,arguments)})},{key:"renderChildren",value:function(t){var e=this.document,r=this.image,n=this.loaded,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(n&&r&&o&&s){if(t.save(),this.isSvg)e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:i,offsetY:a,scaleWidth:o,scaleHeight:s}).render();else{var u=this.image;t.translate(i,a),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:o,desiredWidth:u.width,height:s,desiredHeight:u.height}),this.loaded&&(void 0===u.complete||u.complete)&&t.drawImage(u,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 Nr(t,e,t+r,e+n)}}]),i}(_r);function Wn(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var $n=function(t){pt(r,t);var e=Wn(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="symbol",t}return H(r,[{key:"render",value:function(t){}}]),r}(_r),Zn=function(){function t(e){B(this,t),this.document=e,this.loaded=!1,e.fonts.push(this)}var e;return H(t,[{key:"load",value:(e=j(V().mark((function t(e,r){var n,i,a,o;return V().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:a=t.sent,o=a.getElementsByTagName("font"),T()(n=Pt()(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}();function Kn(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}var Jn=function(t){pt(r,t);var e=Kn(r);function r(t,n,i){var a,o;B(this,r),(o=e.call(this,t,n,i)).type="style";var s=Ce(u()(a=Pt()(n.childNodes)).call(a,(function(t){return t.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return T()(s).call(s,(function(e){var r=at()(e).call(e);if(r){var n=r.split("{"),i=n[0].split(","),a=n[1].split(";");T()(i).call(i,(function(e){var r=at()(e).call(e);if(r){var n=t.styles[r]||{};if(T()(a).call(a,(function(e){var r,i,a=Mt()(e).call(e,":"),o=at()(r=e.substr(0,a)).call(r),s=at()(i=e.substr(a+1,e.length-a)).call(i);o&&s&&(n[o]=new nr(t,o,s))})),t.styles[r]=n,t.stylesSpecificity[r]=Ye(r),"@font-face"===r){var i=n["font-family"].getString().replace(/"|'/g,""),o=n.src.getString().split(",");T()(o).call(o,(function(e){if(Mt()(e).call(e,'format("svg")')>0){var r=Ve(e);r&&new Zn(t).load(i,r)}}))}}}))}})),o}return r}(kr);function ti(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}Jn.parseExternalUrl=Ve;var ei=function(t){pt(r,t);var e=ti(r);function r(){var t;return B(this,r),(t=e.apply(this,arguments)).type="use",t}return H(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 Yr(e,null)).attributes.viewBox=new nr(e,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new nr(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new nr(e,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new nr(e,"opacity",this.calculateOpacity())),"svg"===n.type){var i=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new nr(e,"width",i.getString())),a.hasValue()&&(n.attributes.height=new nr(e,"height",a.getString()))}var o=n.parent;n.parent=this,n.render(t),n.parent=o}}},{key:"getBoundingBox",value:function(t){var e=this.element;return e?e.getBoundingBox(t):null}},{key:"elementTransform",value:function(){var t=this.document,e=this.element;return Ar.fromElement(t,e)}},{key:"element",get:function(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),r}(_r);function ri(t){var e=function(){if("undefined"==typeof Reflect||!ct())return!1;if(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)}}function ni(t,e,r,n,i,a){return t[r*n*4+4*e+a]}function ii(t,e,r,n,i,a,o){t[r*n*4+4*e+a]=o}function ai(t,e,r){return t[e]*r}function oi(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}var si=function(t){pt(r,t);var e=ri(r);function r(t,n,i){var a;B(this,r),(a=e.call(this,t,n,i)).type="feColorMatrix";var o=Re(a.getAttribute("values").getString());switch(a.getAttribute("type").getString("matrix")){case"saturate":var s=o[0];o=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var u=o[0]*Math.PI/180;o=[oi(u,.213,.787,-.213),oi(u,.715,-.715,-.715),oi(u,.072,-.072,.928),0,0,oi(u,.213,-.213,.143),oi(u,.715,.285,.14),oi(u,.072,-.072,-.283),0,0,oi(u,.213,-.213,-.787),oi(u,.715,-.715,.715),oi(u,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return a.matrix=o,a.includeOpacity=a.getAttribute("includeOpacity").hasValue(),a}return H(r,[{key:"apply",value:function(t,e,r,n,i){for(var a=this.includeOpacity,o=this.matrix,s=t.getImageData(0,0,n,i),u=0;u1&&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 Mi=function(){function t(e){var r,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.rootEmSize,o=void 0===a?12:a,s=i.emSize,u=void 0===s?12:s,c=i.createCanvas,l=void 0===c?t.createCanvas:c,f=i.createImage,h=void 0===f?t.createImage:f,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=o,this.emSize=u,this.createCanvas=l,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 H(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 Pr(this,e)}},{key:"createTextNode",value:function(t){return new zr(this,t)}},{key:"setViewBox",value:function(t){this.screen.setViewBox(function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{};B(this,t),this.parser=new hr(n),this.screen=new cr(e,n),this.options=n;var i=new Mi(this,n),a=i.createDocumentElement(r);this.document=i,this.documentElement=a}var e,r;return H(t,[{key:"fork",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.from(e,r,Ri(Ri({},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,Ri(Ri({},this.options),n))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:(r=j(V().mark((function t(){var e,r=arguments;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},this.start(Ri({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},e)),t.next=4,this.ready();case 4:this.stop();case 5:case"end":return t.stop()}}),t,this)}))),function(){return r.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,Ri(Ri({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:(e=j(V().mark((function e(r,n){var i,a,o,s=arguments;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=s.length>2&&void 0!==s[2]?s[2]:{},a=new hr(i),e.next=4,a.parse(n);case 4:return o=e.sent,e.abrupt("return",new t(r,o,i));case 6:case"end":return e.stop()}}),e)}))),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 hr(n),a=i.parseFromString(r);return new t(e,a,n)}}]),t}();var Di=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(V().mark((function e(){var r,n,i;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return r=e.sent,e.next=5,r.blob();case 5:return n=e.sent,e.next=8,createImageBitmap(n);case 8:return i=e.sent,e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)})))()}};return"undefined"==typeof DOMParser&&void 0!==e||ne()(r,"DOMParser"),r},node:function(t){var e=t.DOMParser,r=t.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:t.fetch,createCanvas:r.createCanvas,createImage:r.loadImage}}});const Vi=_i},54493:(t,e,r)=>{r(77971),r(53242);var n=r(54058);t.exports=n.Array.from},24034:(t,e,r)=>{r(92737);var n=r(54058);t.exports=n.Array.isArray},15367:(t,e,r)=>{r(85906);var n=r(35703);t.exports=n("Array").concat},51459:(t,e,r)=>{r(48851);var n=r(35703);t.exports=n("Array").every},6172:(t,e,r)=>{r(80290);var n=r(35703);t.exports=n("Array").fill},62383:(t,e,r)=>{r(21501);var n=r(35703);t.exports=n("Array").filter},99324:(t,e,r)=>{r(2437);var n=r(35703);t.exports=n("Array").forEach},80991:(t,e,r)=>{r(97690);var n=r(35703);t.exports=n("Array").includes},8700:(t,e,r)=>{r(99076);var n=r(35703);t.exports=n("Array").indexOf},23866:(t,e,r)=>{r(68787);var n=r(35703);t.exports=n("Array").map},52999:(t,e,r)=>{r(81876);var n=r(35703);t.exports=n("Array").reduce},91876:(t,e,r)=>{r(11490);var n=r(35703);t.exports=n("Array").reverse},24900:(t,e,r)=>{r(60186);var n=r(35703);t.exports=n("Array").slice},3824:(t,e,r)=>{r(36026);var n=r(35703);t.exports=n("Array").some},14423:(t,e,r)=>{r(66274);var n=r(35703);t.exports=n("Array").values},81103:(t,e,r)=>{r(95160);var n=r(54058);t.exports=n.Date.now},27700:(t,e,r)=>{r(73381);var n=r(35703);t.exports=n("Function").bind},16246:(t,e,r)=>{var n=r(27700),i=Function.prototype;t.exports=function(t){var e=t.bind;return t===i||t instanceof Function&&e===i.bind?n:e}},56043:(t,e,r)=>{var n=r(15367),i=Array.prototype;t.exports=function(t){var e=t.concat;return t===i||t instanceof Array&&e===i.concat?n:e}},13160:(t,e,r)=>{var n=r(51459),i=Array.prototype;t.exports=function(t){var e=t.every;return t===i||t instanceof Array&&e===i.every?n:e}},80446:(t,e,r)=>{var n=r(6172),i=Array.prototype;t.exports=function(t){var e=t.fill;return t===i||t instanceof Array&&e===i.fill?n:e}},2480:(t,e,r)=>{var n=r(62383),i=Array.prototype;t.exports=function(t){var e=t.filter;return t===i||t instanceof Array&&e===i.filter?n:e}},58557:(t,e,r)=>{var n=r(80991),i=r(21631),a=Array.prototype,o=String.prototype;t.exports=function(t){var e=t.includes;return t===a||t instanceof Array&&e===a.includes?n:"string"==typeof t||t===o||t instanceof String&&e===o.includes?i:e}},34570:(t,e,r)=>{var n=r(8700),i=Array.prototype;t.exports=function(t){var e=t.indexOf;return t===i||t instanceof Array&&e===i.indexOf?n:e}},88287:(t,e,r)=>{var n=r(23866),i=Array.prototype;t.exports=function(t){var e=t.map;return t===i||t instanceof Array&&e===i.map?n:e}},68025:(t,e,r)=>{var n=r(52999),i=Array.prototype;t.exports=function(t){var e=t.reduce;return t===i||t instanceof Array&&e===i.reduce?n:e}},91060:(t,e,r)=>{var n=r(91876),i=Array.prototype;t.exports=function(t){var e=t.reverse;return t===i||t instanceof Array&&e===i.reverse?n:e}},69601:(t,e,r)=>{var n=r(24900),i=Array.prototype;t.exports=function(t){var e=t.slice;return t===i||t instanceof Array&&e===i.slice?n:e}},28299:(t,e,r)=>{var n=r(3824),i=Array.prototype;t.exports=function(t){var e=t.some;return t===i||t instanceof Array&&e===i.some?n:e}},71611:(t,e,r)=>{var n=r(3269),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}},62774:(t,e,r)=>{var n=r(13348),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}},91018:(t,e,r)=>{r(37501),r(55967),r(77971),r(7634);var n=r(54058);t.exports=n.Map},35254:(t,e,r)=>{r(53882);var n=r(54058).Object;t.exports=function(t,e){return n.create(t,e)}},7702:(t,e,r)=>{r(74979);var n=r(54058).Object,i=t.exports=function(t,e){return n.defineProperties(t,e)};n.defineProperties.sham&&(i.sham=!0)},48171:(t,e,r)=>{r(86450);var n=r(54058).Object,i=t.exports=function(t,e,r){return n.defineProperty(t,e,r)};n.defineProperty.sham&&(i.sham=!0)},286:(t,e,r)=>{r(46924);var n=r(54058).Object,i=t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)};n.getOwnPropertyDescriptor.sham&&(i.sham=!0)},92766:(t,e,r)=>{r(88482);var n=r(54058);t.exports=n.Object.getOwnPropertyDescriptors},30498:(t,e,r)=>{r(35824);var n=r(54058);t.exports=n.Object.getOwnPropertySymbols},13966:(t,e,r)=>{r(17405);var n=r(54058);t.exports=n.Object.getPrototypeOf},48494:(t,e,r)=>{r(21724);var n=r(54058);t.exports=n.Object.keys},3065:(t,e,r)=>{r(90108);var n=r(54058);t.exports=n.Object.setPrototypeOf},7579:(t,e,r)=>{r(49718);var n=r(54058);t.exports=n.parseFloat},98524:(t,e,r)=>{r(14038);var n=r(54058);t.exports=n.parseInt},52956:(t,e,r)=>{r(47627),r(55967),r(98881),r(4560),r(91302),r(44349),r(77971),r(7634);var n=r(54058);t.exports=n.Promise},6238:(t,e,r)=>{r(46160);var n=r(54058);t.exports=n.Reflect.apply},14983:(t,e,r)=>{r(7453);var n=r(54058);t.exports=n.Reflect.construct},74734:(t,e,r)=>{r(2079);var n=r(54058);t.exports=n.Reflect.deleteProperty},61189:(t,e,r)=>{r(13593);var n=r(54058);t.exports=n.Reflect.getPrototypeOf},37095:(t,e,r)=>{r(42355);var n=r(54058);t.exports=n.Reflect.get},21631:(t,e,r)=>{r(11035);var n=r(35703);t.exports=n("String").includes},3269:(t,e,r)=>{r(94761);var n=r(35703);t.exports=n("String").startsWith},13348:(t,e,r)=>{r(57398);var n=r(35703);t.exports=n("String").trim},57473:(t,e,r)=>{r(85906),r(55967),r(35824),r(8555),r(52615),r(21732),r(35903),r(1825),r(28394),r(45915),r(61766),r(62737),r(89911),r(74315),r(63131),r(64714),r(70659),r(69120),r(79413),r(1502);var n=r(54058);t.exports=n.Symbol},24227:(t,e,r)=>{r(1825),r(77971),r(7634);var n=r(11477);t.exports=n.f("iterator")},27385:(t,e,r)=>{var n=r(54493);t.exports=n},81522:(t,e,r)=>{var n=r(24034);t.exports=n},32209:(t,e,r)=>{r(7634),r(77971);var n=r(22902);t.exports=n},1258:(t,e,r)=>{r(7634),r(77971);var n=r(53476);t.exports=n},81493:(t,e,r)=>{var n=r(69601);t.exports=n},76094:(t,e,r)=>{var n=r(35254);t.exports=n},73685:(t,e,r)=>{var n=r(48171);t.exports=n},27533:(t,e,r)=>{var n=r(286);t.exports=n},74303:(t,e,r)=>{var n=r(13966);t.exports=n},55122:(t,e,r)=>{var n=r(3065);t.exports=n},29531:(t,e,r)=>{var n=r(52956);r(89731),r(55708),r(30014),r(88731),t.exports=n},31524:(t,e,r)=>{var n=r(37095);t.exports=n},86600:(t,e,r)=>{var n=r(57473);r(28783),r(43975),r(65799),r(45414),r(46774),r(80620),r(36172),t.exports=n},9759:(t,e,r)=>{var n=r(24227);t.exports=n},33916:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},11851:(t,e,r)=>{var n=r(10941);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},18479:t=>{t.exports=function(){}},5743:t=>{t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},96059:(t,e,r)=>{var n=r(10941);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},91860:(t,e,r)=>{"use strict";var n=r(89678),i=r(59413),a=r(43057);t.exports=function(t){for(var e=n(this),r=a(e.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,r),u=o>2?arguments[2]:void 0,c=void 0===u?r:i(u,r);c>s;)e[s++]=t;return e}},56837:(t,e,r)=>{"use strict";var n=r(3610).forEach,i=r(34194)("forEach");t.exports=i?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},11354:(t,e,r)=>{"use strict";var n=r(86843),i=r(89678),a=r(75196),o=r(6782),s=r(43057),u=r(55449),c=r(22902);t.exports=function(t){var e,r,l,f,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&&o(x))for(r=new y(e=s(v.length));e>b;b++)p=m?d(v[b],b):v[b],u(r,b,p);else for(h=(f=x.call(v)).next,r=new y;!(l=h.call(f)).done;b++)p=m?a(f,d,[l.value,b],!0):l.value,u(r,b,p);return r.length=b,r}},31692:(t,e,r)=>{var n=r(74529),i=r(43057),a=r(59413),o=function(t){return function(e,r,o){var s,u=n(e),c=i(u.length),l=a(o,c);if(t&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},3610:(t,e,r)=>{var n=r(86843),i=r(37026),a=r(89678),o=r(43057),s=r(64692),u=[].push,c=function(t){var e=1==t,r=2==t,c=3==t,l=4==t,f=6==t,h=7==t,p=5==t||f;return function(v,y,g,d){for(var m,x,b=a(v),w=i(b),S=n(y,g,3),A=o(w.length),k=0,T=d||s,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:u.call(P,m)}else switch(t){case 4:return!1;case 7:u.call(P,m)}return f?-1:c||l?l:P}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},50568:(t,e,r)=>{var n=r(95981),i=r(99813),a=r(53385),o=i("species");t.exports=function(t){return a>=51||!n((function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},34194:(t,e,r)=>{"use strict";var n=r(95981);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},46499:(t,e,r)=>{var n=r(33916),i=r(89678),a=r(37026),o=r(43057),s=function(t){return function(e,r,s,u){n(r);var c=i(e),l=a(c),f=o(c.length),h=t?f-1:0,p=t?-1:1;if(s<2)for(;;){if(h in l){u=l[h],h+=p;break}if(h+=p,t?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;t?h>=0:f>h;h+=p)h in l&&(u=r(u,l[h],h,c));return u}};t.exports={left:s(!1),right:s(!0)}},64692:(t,e,r)=>{var n=r(10941),i=r(1052),a=r(99813)("species");t.exports=function(t,e){var r;return i(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[a])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},75196:(t,e,r)=>{var n=r(96059),i=r(7609);t.exports=function(t,e,r,a){try{return a?e(n(r)[0],r[1]):e(r)}catch(e){throw i(t),e}}},21385:(t,e,r)=>{var n=r(99813)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var a={};a[n]=function(){return{next:function(){return{done:r=!0}}}},t(a)}catch(t){}return r}},82532:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},9697:(t,e,r)=>{var n=r(22885),i=r(82532),a=r(99813)("toStringTag"),o="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),a))?r:o?i(e):"Object"==(n=i(e))&&"function"==typeof e.callee?"Arguments":n}},85616:(t,e,r)=>{"use strict";var n=r(65988).f,i=r(29290),a=r(87524),o=r(86843),s=r(5743),u=r(93091),c=r(47771),l=r(94431),f=r(55746),h=r(21647).fastKey,p=r(45402),v=p.set,y=p.getterFor;t.exports={getConstructor:function(t,e,r,c){var l=t((function(t,n){s(t,l,e),v(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=n&&u(n,t[c],{that:t,AS_ENTRIES:r})})),p=y(e),g=function(t,e,r){var n,i,a=p(t),o=d(t,e);return o?o.value=r:(a.last=o={index:i=h(e,!0),key:e,value:r,previous:n=a.last,next:void 0,removed:!1},a.first||(a.first=o),n&&(n.next=o),f?a.size++:t.size++,"F"!==i&&(a.index[i]=o)),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 a(l.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,f?t.size=0:this.size=0},delete:function(t){var e=this,r=p(e),n=d(e,t);if(n){var i=n.next,a=n.previous;delete r.index[n.index],n.removed=!0,a&&(a.next=i),i&&(i.previous=a),r.first==n&&(r.first=i),r.last==n&&(r.last=a),f?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=p(this),n=o(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)}}),a(l.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)}}),f&&n(l.prototype,"size",{get:function(){return p(this).size}}),l},setStrong:function(t,e,r){var n=e+" Iterator",i=y(e),a=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=a(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),l(e)}}},24683:(t,e,r)=>{"use strict";var n=r(76887),i=r(21899),a=r(21647),o=r(95981),s=r(32029),u=r(93091),c=r(5743),l=r(10941),f=r(90904),h=r(65988).f,p=r(3610).forEach,v=r(55746),y=r(45402),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&&!o((function(){(new w).entries().next()})))){y=e((function(e,r){g(c(e,y,t),{type:t,collection:new w}),null!=r&&u(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||s(y.prototype,t,(function(r,n){var i=k(this).collection;if(!e&&x&&!l(r))return"get"==t&&void 0;var a=i[t](0===r?0:r,n);return e?this:a}))})),x||h(y.prototype,"size",{configurable:!0,get:function(){return k(this).collection.size}})}else y=r.getConstructor(e,t,m,b),a.REQUIRED=!0;return f(y,t,!1,!0),A[t]=y,n({global:!0,forced:!0},A),x||r.setStrong(y,t,m),y}},67772:(t,e,r)=>{var n=r(99813)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},64160:(t,e,r)=>{var n=r(95981);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},31046:(t,e,r)=>{"use strict";var n=r(35143).IteratorPrototype,i=r(29290),a=r(31887),o=r(90904),s=r(12077),u=function(){return this};t.exports=function(t,e,r){var c=e+" Iterator";return t.prototype=i(n,{next:a(1,r)}),o(t,c,!1,!0),s[c]=u,t}},32029:(t,e,r)=>{var n=r(55746),i=r(65988),a=r(31887);t.exports=n?function(t,e,r){return i.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},31887:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},55449:(t,e,r)=>{"use strict";var n=r(46935),i=r(65988),a=r(31887);t.exports=function(t,e,r){var o=n(e);o in t?i.f(t,o,a(0,r)):t[o]=r}},47771:(t,e,r)=>{"use strict";var n=r(76887),i=r(31046),a=r(249),o=r(88929),s=r(90904),u=r(32029),c=r(99754),l=r(99813),f=r(82529),h=r(12077),p=r(35143),v=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,g=l("iterator"),d="keys",m="values",x="entries",b=function(){return this};t.exports=function(t,e,r,l,p,w,S){i(r,e,l);var A,k,T,P=function(t){if(t===p&&N)return N;if(!y&&t in C)return C[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",E=!1,C=t.prototype,M=C[g]||C["@@iterator"]||p&&C[p],N=!y&&M||P(p),R="Array"==e&&C.entries||M;if(R&&(A=a(R.call(new t)),v!==Object.prototype&&A.next&&(f||a(A)===v||(o?o(A,v):"function"!=typeof A[g]&&u(A,g,b)),s(A,O,!0,!0),f&&(h[O]=b))),p==m&&M&&M.name!==m&&(E=!0,N=function(){return M.call(this)}),f&&!S||C[g]===N||u(C,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||E||!(T in C))&&c(C,T,k[T]);else n({target:e,proto:!0,forced:y||E},k);return k}},66349:(t,e,r)=>{var n=r(54058),i=r(47457),a=r(11477),o=r(65988).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||o(e,t,{value:a.f(t)})}},55746:(t,e,r)=>{var n=r(95981);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},61333:(t,e,r)=>{var n=r(21899),i=r(10941),a=n.document,o=i(a)&&i(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},63281: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}},23321:t=>{t.exports="object"==typeof window},22749:(t,e,r)=>{var n=r(2861);t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(n)},6049:(t,e,r)=>{var n=r(82532),i=r(21899);t.exports="process"==n(i.process)},58045:(t,e,r)=>{var n=r(2861);t.exports=/web0s(?!.*chrome)/i.test(n)},2861:(t,e,r)=>{var n=r(626);t.exports=n("navigator","userAgent")||""},53385:(t,e,r)=>{var n,i,a=r(21899),o=r(2861),s=a.process,u=s&&s.versions,c=u&&u.v8;c?i=(n=c.split("."))[0]<4?1:n[0]+n[1]:o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(i=n[1]),t.exports=i&&+i},35703:(t,e,r)=>{var n=r(54058);t.exports=function(t){return n[t+"Prototype"]}},56759:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(t,e,r)=>{"use strict";var n=r(21899),i=r(49677).f,a=r(37252),o=r(54058),s=r(86843),u=r(32029),c=r(47457),l=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,f,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?o:o[m]||(o[m]={}),k=A.prototype;for(h in e)r=!a(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?s(p,n):t.wrap&&r?l(p):w&&"function"==typeof p?s(Function.call,p):p,(t.sham||p&&p.sham||v&&v.sham)&&u(g,"sham",!0),A[h]=g,w&&(c(o,f=m+"Prototype")||u(o,f,{}),o[f][h]=p,t.real&&k&&!k[h]&&u(k,h,p)))}},95981:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},45602:(t,e,r)=>{var n=r(95981);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},86843:(t,e,r)=>{var n=r(33916);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)}}},98308:(t,e,r)=>{"use strict";var n=r(33916),i=r(10941),a=[].slice,o={},s=function(t,e,r){if(!(e in o)){for(var n=[],i=0;i{var n=r(54058),i=r(21899),a=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?a(n[t])||a(i[t]):n[t]&&n[t][e]||i[t]&&i[t][e]}},22902:(t,e,r)=>{var n=r(9697),i=r(12077),a=r(99813)("iterator");t.exports=function(t){if(null!=t)return t[a]||t["@@iterator"]||i[n(t)]}},53476:(t,e,r)=>{var n=r(96059),i=r(22902);t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return n(e.call(t))}},21899:(t,e,r)=>{var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},47457:(t,e,r)=>{var n=r(89678),i={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return i.call(n(t),e)}},27748:t=>{t.exports={}},34845:(t,e,r)=>{var n=r(21899);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},15463:(t,e,r)=>{var n=r(626);t.exports=n("document","documentElement")},2840:(t,e,r)=>{var n=r(55746),i=r(95981),a=r(61333);t.exports=!n&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},37026:(t,e,r)=>{var n=r(95981),i=r(82532),a="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?a.call(t,""):Object(t)}:Object},81302:(t,e,r)=>{var n=r(63030),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return i.call(t)}),t.exports=n.inspectSource},21647:(t,e,r)=>{var n=r(27748),i=r(10941),a=r(47457),o=r(65988).f,s=r(99418),u=r(45602),c=s("meta"),l=0,f=Object.isExtensible||function(){return!0},h=function(t){o(t,c,{value:{objectID:"O"+ ++l,weakData:{}}})},p=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,c)){if(!f(t))return"F";if(!e)return"E";h(t)}return t[c].objectID},getWeakData:function(t,e){if(!a(t,c)){if(!f(t))return!0;if(!e)return!1;h(t)}return t[c].weakData},onFreeze:function(t){return u&&p.REQUIRED&&f(t)&&!a(t,c)&&h(t),t}};n[c]=!0},45402:(t,e,r)=>{var n,i,a,o=r(38019),s=r(21899),u=r(10941),c=r(32029),l=r(47457),f=r(63030),h=r(44262),p=r(27748),v="Object already initialized",y=s.WeakMap;if(o||f.state){var g=f.state||(f.state=new y),d=g.get,m=g.has,x=g.set;n=function(t,e){if(m.call(g,t))throw new TypeError(v);return e.facade=t,x.call(g,t,e),e},i=function(t){return d.call(g,t)||{}},a=function(t){return m.call(g,t)}}else{var b=h("state");p[b]=!0,n=function(t,e){if(l(t,b))throw new TypeError(v);return e.facade=t,c(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},a=function(t){return l(t,b)}}t.exports={set:n,get:i,has:a,enforce:function(t){return a(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},6782:(t,e,r)=>{var n=r(99813),i=r(12077),a=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[a]===t)}},1052:(t,e,r)=>{var n=r(82532);t.exports=Array.isArray||function(t){return"Array"==n(t)}},37252:(t,e,r)=>{var n=r(95981),i=/#|\.prototype\./,a=function(t,e){var r=s[o(t)];return r==c||r!=u&&("function"==typeof e?n(e):!!e)},o=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a},10941:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},82529:t=>{t.exports=!0},60685:(t,e,r)=>{var n=r(10941),i=r(82532),a=r(99813)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},93091:(t,e,r)=>{var n=r(96059),i=r(6782),a=r(43057),o=r(86843),s=r(22902),u=r(7609),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,r){var l,f,h,p,v,y,g,d=r&&r.that,m=!(!r||!r.AS_ENTRIES),x=!(!r||!r.IS_ITERATOR),b=!(!r||!r.INTERRUPTED),w=o(e,d,1+m+b),S=function(t){return l&&u(l),new c(!0,t)},A=function(t){return m?(n(t),b?w(t[0],t[1],S):w(t[0],t[1])):b?w(t,S):w(t)};if(x)l=t;else{if("function"!=typeof(f=s(t)))throw TypeError("Target is not iterable");if(i(f)){for(h=0,p=a(t.length);p>h;h++)if((v=A(t[h]))&&v instanceof c)return v;return new c(!1)}l=f.call(t)}for(y=l.next;!(g=y.call(l)).done;){try{v=A(g.value)}catch(t){throw u(l),t}if("object"==typeof v&&v&&v instanceof c)return v}return new c(!1)}},7609:(t,e,r)=>{var n=r(96059);t.exports=function(t){var e=t.return;if(void 0!==e)return n(e.call(t)).value}},35143:(t,e,r)=>{"use strict";var n,i,a,o=r(95981),s=r(249),u=r(32029),c=r(47457),l=r(99813),f=r(82529),h=l("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(i=s(s(a)))!==Object.prototype&&(n=i):p=!0);var v=null==n||o((function(){var t={};return n[h].call(t)!==t}));v&&(n={}),f&&!v||c(n,h)||u(n,h,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},12077:t=>{t.exports={}},66132:(t,e,r)=>{var n,i,a,o,s,u,c,l,f=r(21899),h=r(49677).f,p=r(42941).set,v=r(22749),y=r(58045),g=r(6049),d=f.MutationObserver||f.WebKitMutationObserver,m=f.document,x=f.process,b=f.Promise,w=h(f,"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(t){throw i?o():a=void 0,t}}a=void 0,t&&t.enter()},v||g||y||!d||!m?b&&b.resolve?((c=b.resolve(void 0)).constructor=b,l=c.then,o=function(){l.call(c,n)}):o=g?function(){x.nextTick(n)}:function(){p.call(f,n)}:(s=!0,u=m.createTextNode(""),new d(n).observe(u,{characterData:!0}),o=function(){u.data=s=!s})),t.exports=S||function(t){var e={fn:t,next:void 0};a&&(a.next=e),i||(i=e,o()),a=e}},19297:(t,e,r)=>{var n=r(21899);t.exports=n.Promise},72497:(t,e,r)=>{var n=r(53385),i=r(95981);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},38019:(t,e,r)=>{var n=r(21899),i=r(81302),a=n.WeakMap;t.exports="function"==typeof a&&/native code/.test(i(a))},69520:(t,e,r)=>{"use strict";var n=r(33916),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)}},70344:(t,e,r)=>{var n=r(60685);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},81942:(t,e,r)=>{var n=r(21899),i=r(74853).trim,a=r(73483),o=n.parseFloat,s=1/o(a+"-0")!=-1/0;t.exports=s?function(t){var e=i(String(t)),r=o(e);return 0===r&&"-"==e.charAt(0)?-0:r}:o},29806:(t,e,r)=>{var n=r(21899),i=r(74853).trim,a=r(73483),o=n.parseInt,s=/^[+-]?0[Xx]/,u=8!==o(a+"08")||22!==o(a+"0x16");t.exports=u?function(t,e){var r=i(String(t));return o(r,e>>>0||(s.test(r)?16:10))}:o},29290:(t,e,r)=>{var n,i=r(96059),a=r(59938),o=r(56759),s=r(27748),u=r(15463),c=r(61333),l=r(44262),f=l("IE_PROTO"),h=function(){},p=function(t){return"