UNPKG

@deepkit/desktop-ui

Version:

Library for desktop UI widgets in Angular 10+

2 lines 262 kB
/*! For license information please see create-font.js.LICENSE.txt */ (()=>{var t={91:(t,e,n)=>{"use strict";n.r(e),n.d(e,{COMMAND_ARG_COUNTS:()=>E,SVGPathData:()=>x,SVGPathDataParser:()=>b,SVGPathDataTransformer:()=>l,encodeSVGPath:()=>o});var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(t){var e="";Array.isArray(t)||(t=[t]);for(var n=0;n<t.length;n++){var r=t[n];if(r.type===x.CLOSE_PATH)e+="z";else if(r.type===x.HORIZ_LINE_TO)e+=(r.relative?"h":"H")+r.x;else if(r.type===x.VERT_LINE_TO)e+=(r.relative?"v":"V")+r.y;else if(r.type===x.MOVE_TO)e+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===x.LINE_TO)e+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===x.CURVE_TO)e+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===x.SMOOTH_CURVE_TO)e+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===x.QUAD_TO)e+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===x.SMOOTH_QUAD_TO)e+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==x.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+n+".");e+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return e}function a(t,e){var n=t[0],r=t[1];return[n*Math.cos(e)-r*Math.sin(e),n*Math.sin(e)+r*Math.cos(e)]}function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0;n<t.length;n++)if("number"!=typeof t[n])throw new Error("assertNumbers arguments["+n+"] is not a number. "+typeof t[n]+" == typeof "+t[n]);return!0}var u=Math.PI;function c(t,e,n){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var r=t.rX,i=t.rY,o=t.x,s=t.y;r=Math.abs(t.rX),i=Math.abs(t.rY);var c=a([(e-o)/2,(n-s)/2],-t.xRot/180*u),f=c[0],l=c[1],h=Math.pow(f,2)/Math.pow(r,2)+Math.pow(l,2)/Math.pow(i,2);1<h&&(r*=Math.sqrt(h),i*=Math.sqrt(h)),t.rX=r,t.rY=i;var p=Math.pow(r,2)*Math.pow(l,2)+Math.pow(i,2)*Math.pow(f,2),d=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(i,2)-p)/p)),m=r*l/i*d,y=-i*f/r*d,g=a([m,y],t.xRot/180*u);t.cX=g[0]+(e+o)/2,t.cY=g[1]+(n+s)/2,t.phi1=Math.atan2((l-y)/i,(f-m)/r),t.phi2=Math.atan2((-l-y)/i,(-f-m)/r),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*u),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*u),t.phi1*=180/u,t.phi2*=180/u}function f(t,e,n){s(t,e,n);var r=t*t+e*e-n*n;if(0>r)return[];if(0===r)return[[t*n/(t*t+e*e),e*n/(t*t+e*e)]];var i=Math.sqrt(r);return[[(t*n+e*i)/(t*t+e*e),(e*n-t*i)/(t*t+e*e)],[(t*n-e*i)/(t*t+e*e),(e*n+t*i)/(t*t+e*e)]]}var l,h=Math.PI/180;function p(t,e,n){return(1-n)*t+n*e}function d(t,e,n,r){return t+Math.cos(r/180*u)*e+Math.sin(r/180*u)*n}function m(t,e,n,r){var i=e-t,o=n-e,a=3*i+3*(r-n)-6*o,s=6*(o-i),u=3*i;return Math.abs(a)<1e-6?[-u/s]:function(t,e,n){void 0===n&&(n=1e-6);var r=t*t/4-e;if(r<-n)return[];if(r<=n)return[-t/2];var i=Math.sqrt(r);return[-t/2-i,-t/2+i]}(s/a,u/a,1e-6)}function y(t,e,n,r,i){var o=1-i;return t*(o*o*o)+e*(3*o*o*i)+n*(3*o*i*i)+r*(i*i*i)}!function(t){function e(){return i((function(t,e,n){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=n),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=n),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=n),t.relative=!1),t}))}function n(){var t=NaN,e=NaN,n=NaN,r=NaN;return i((function(i,o,a){return i.type&x.SMOOTH_CURVE_TO&&(i.type=x.CURVE_TO,t=isNaN(t)?o:t,e=isNaN(e)?a:e,i.x1=i.relative?o-t:2*o-t,i.y1=i.relative?a-e:2*a-e),i.type&x.CURVE_TO?(t=i.relative?o+i.x2:i.x2,e=i.relative?a+i.y2:i.y2):(t=NaN,e=NaN),i.type&x.SMOOTH_QUAD_TO&&(i.type=x.QUAD_TO,n=isNaN(n)?o:n,r=isNaN(r)?a:r,i.x1=i.relative?o-n:2*o-n,i.y1=i.relative?a-r:2*a-r),i.type&x.QUAD_TO?(n=i.relative?o+i.x1:i.x1,r=i.relative?a+i.y1:i.y1):(n=NaN,r=NaN),i}))}function r(){var t=NaN,e=NaN;return i((function(n,r,i){if(n.type&x.SMOOTH_QUAD_TO&&(n.type=x.QUAD_TO,t=isNaN(t)?r:t,e=isNaN(e)?i:e,n.x1=n.relative?r-t:2*r-t,n.y1=n.relative?i-e:2*i-e),n.type&x.QUAD_TO){t=n.relative?r+n.x1:n.x1,e=n.relative?i+n.y1:n.y1;var o=n.x1,a=n.y1;n.type=x.CURVE_TO,n.x1=((n.relative?0:r)+2*o)/3,n.y1=((n.relative?0:i)+2*a)/3,n.x2=(n.x+2*o)/3,n.y2=(n.y+2*a)/3}else t=NaN,e=NaN;return n}))}function i(t){var e=0,n=0,r=NaN,i=NaN;return function(o){if(isNaN(r)&&!(o.type&x.MOVE_TO))throw new Error("path must start with moveto");var a=t(o,e,n,r,i);return o.type&x.CLOSE_PATH&&(e=r,n=i),void 0!==o.x&&(e=o.relative?e+o.x:o.x),void 0!==o.y&&(n=o.relative?n+o.y:o.y),o.type&x.MOVE_TO&&(r=e,i=n),a}}function o(t,e,n,r,o,a){return s(t,e,n,r,o,a),i((function(i,s,u,c){var f=i.x1,l=i.x2,h=i.relative&&!isNaN(c),p=void 0!==i.x?i.x:h?0:s,d=void 0!==i.y?i.y:h?0:u;function m(t){return t*t}i.type&x.HORIZ_LINE_TO&&0!==e&&(i.type=x.LINE_TO,i.y=i.relative?0:u),i.type&x.VERT_LINE_TO&&0!==n&&(i.type=x.LINE_TO,i.x=i.relative?0:s),void 0!==i.x&&(i.x=i.x*t+d*n+(h?0:o)),void 0!==i.y&&(i.y=p*e+i.y*r+(h?0:a)),void 0!==i.x1&&(i.x1=i.x1*t+i.y1*n+(h?0:o)),void 0!==i.y1&&(i.y1=f*e+i.y1*r+(h?0:a)),void 0!==i.x2&&(i.x2=i.x2*t+i.y2*n+(h?0:o)),void 0!==i.y2&&(i.y2=l*e+i.y2*r+(h?0:a));var y=t*r-e*n;if(void 0!==i.xRot&&(1!==t||0!==e||0!==n||1!==r))if(0===y)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=x.LINE_TO;else{var g=i.xRot*Math.PI/180,v=Math.sin(g),_=Math.cos(g),w=1/m(i.rX),b=1/m(i.rY),E=m(_)*w+m(v)*b,S=2*v*_*(w-b),T=m(v)*w+m(_)*b,N=E*r*r-S*e*r+T*e*e,A=S*(t*r+e*n)-2*(E*n*r+T*t*e),O=E*n*n-S*t*n+T*t*t,I=(Math.atan2(A,N-O)+Math.PI)%Math.PI/2,C=Math.sin(I),D=Math.cos(I);i.rX=Math.abs(y)/Math.sqrt(N*m(D)+A*C*D+O*m(C)),i.rY=Math.abs(y)/Math.sqrt(N*m(C)-A*C*D+O*m(D)),i.xRot=180*I/Math.PI}return void 0!==i.sweepFlag&&0>y&&(i.sweepFlag=+!i.sweepFlag),i}))}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),s(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,n){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=n),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=n),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=n),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,n){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),i((function(r,i,o,a,s){if(isNaN(a)&&!(r.type&x.MOVE_TO))throw new Error("path must start with moveto");return e&&r.type&x.HORIZ_LINE_TO&&(r.type=x.LINE_TO,r.y=r.relative?0:o),n&&r.type&x.VERT_LINE_TO&&(r.type=x.LINE_TO,r.x=r.relative?0:i),t&&r.type&x.CLOSE_PATH&&(r.type=x.LINE_TO,r.x=r.relative?a-i:a,r.y=r.relative?s-o:s),r.type&x.ARC&&(0===r.rX||0===r.rY)&&(r.type=x.LINE_TO,delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag),r}))},t.NORMALIZE_ST=n,t.QT_TO_C=r,t.INFO=i,t.SANITIZE=function(t){void 0===t&&(t=0),s(t);var e=NaN,n=NaN,r=NaN,o=NaN;return i((function(i,a,s,u,c){var f=Math.abs,l=!1,h=0,p=0;if(i.type&x.SMOOTH_CURVE_TO&&(h=isNaN(e)?0:a-e,p=isNaN(n)?0:s-n),i.type&(x.CURVE_TO|x.SMOOTH_CURVE_TO)?(e=i.relative?a+i.x2:i.x2,n=i.relative?s+i.y2:i.y2):(e=NaN,n=NaN),i.type&x.SMOOTH_QUAD_TO?(r=isNaN(r)?a:2*a-r,o=isNaN(o)?s:2*s-o):i.type&x.QUAD_TO?(r=i.relative?a+i.x1:i.x1,o=i.relative?s+i.y1:i.y2):(r=NaN,o=NaN),i.type&x.LINE_COMMANDS||i.type&x.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&x.CURVE_TO||i.type&x.SMOOTH_CURVE_TO||i.type&x.QUAD_TO||i.type&x.SMOOTH_QUAD_TO){var d=void 0===i.x?0:i.relative?i.x:i.x-a,m=void 0===i.y?0:i.relative?i.y:i.y-s;h=isNaN(r)?void 0===i.x1?h:i.relative?i.x:i.x1-a:r-a,p=isNaN(o)?void 0===i.y1?p:i.relative?i.y:i.y1-s:o-s;var y=void 0===i.x2?0:i.relative?i.x:i.x2-a,g=void 0===i.y2?0:i.relative?i.y:i.y2-s;f(d)<=t&&f(m)<=t&&f(h)<=t&&f(p)<=t&&f(y)<=t&&f(g)<=t&&(l=!0)}return i.type&x.CLOSE_PATH&&f(a-u)<=t&&f(s-c)<=t&&(l=!0),l?[]:i}))},t.MATRIX=o,t.ROTATE=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=0),s(t,e,n);var r=Math.sin(t),i=Math.cos(t);return o(i,r,-r,i,e-e*i+n*r,n-e*r-n*i)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),s(t,e),o(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),s(t,e),o(t,0,0,e,0,0)},t.SKEW_X=function(t){return s(t),o(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return s(t),o(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),s(t),o(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),s(t),o(1,0,0,-1,0,t)},t.A_TO_C=function(){return i((function(t,e,n){return x.ARC===t.type?function(t,e,n){var r,i,o,s;t.cX||c(t,e,n);for(var u=Math.min(t.phi1,t.phi2),f=Math.max(t.phi1,t.phi2)-u,l=Math.ceil(f/90),d=new Array(l),m=e,y=n,g=0;g<l;g++){var v=p(t.phi1,t.phi2,g/l),_=p(t.phi1,t.phi2,(g+1)/l),w=_-v,b=4/3*Math.tan(w*h/4),E=[Math.cos(v*h)-b*Math.sin(v*h),Math.sin(v*h)+b*Math.cos(v*h)],S=E[0],T=E[1],N=[Math.cos(_*h),Math.sin(_*h)],A=N[0],O=N[1],I=[A+b*Math.sin(_*h),O-b*Math.cos(_*h)],C=I[0],D=I[1];d[g]={relative:t.relative,type:x.CURVE_TO};var M=function(e,n){var r=a([e*t.rX,n*t.rY],t.xRot),i=r[0],o=r[1];return[t.cX+i,t.cY+o]};r=M(S,T),d[g].x1=r[0],d[g].y1=r[1],i=M(C,D),d[g].x2=i[0],d[g].y2=i[1],o=M(A,O),d[g].x=o[0],d[g].y=o[1],t.relative&&(d[g].x1-=m,d[g].y1-=y,d[g].x2-=m,d[g].y2-=y,d[g].x-=m,d[g].y-=y),m=(s=[d[g].x,d[g].y])[0],y=s[1]}return d}(t,t.relative?0:e,t.relative?0:n):t}))},t.ANNOTATE_ARCS=function(){return i((function(t,e,n){return t.relative&&(e=0,n=0),x.ARC===t.type&&c(t,e,n),t}))},t.CLONE=function(){return function(t){var e={};for(var n in t)e[n]=t[n];return e}},t.CALCULATE_BOUNDS=function(){var t=e(),o=r(),a=n(),s=i((function(e,n,r){var i=a(o(t(function(t){var e={};for(var n in t)e[n]=t[n];return e}(e))));function u(t){t>s.maxX&&(s.maxX=t),t<s.minX&&(s.minX=t)}function l(t){t>s.maxY&&(s.maxY=t),t<s.minY&&(s.minY=t)}if(i.type&x.DRAWING_COMMANDS&&(u(n),l(r)),i.type&x.HORIZ_LINE_TO&&u(i.x),i.type&x.VERT_LINE_TO&&l(i.y),i.type&x.LINE_TO&&(u(i.x),l(i.y)),i.type&x.CURVE_TO){u(i.x),l(i.y);for(var h=0,p=m(n,i.x1,i.x2,i.x);h<p.length;h++)0<(U=p[h])&&1>U&&u(y(n,i.x1,i.x2,i.x,U));for(var g=0,v=m(r,i.y1,i.y2,i.y);g<v.length;g++)0<(U=v[g])&&1>U&&l(y(r,i.y1,i.y2,i.y,U))}if(i.type&x.ARC){u(i.x),l(i.y),c(i,n,r);for(var _=i.xRot/180*Math.PI,w=Math.cos(_)*i.rX,b=Math.sin(_)*i.rX,E=-Math.sin(_)*i.rY,S=Math.cos(_)*i.rY,T=i.phi1<i.phi2?[i.phi1,i.phi2]:-180>i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],N=T[0],A=T[1],O=function(t){var e=t[0],n=t[1],r=180*Math.atan2(n,e)/Math.PI;return r<N?r+360:r},I=0,C=f(E,-w,0).map(O);I<C.length;I++)(U=C[I])>N&&U<A&&u(d(i.cX,w,E,U));for(var D=0,M=f(S,-b,0).map(O);D<M.length;D++){var U;(U=M[D])>N&&U<A&&l(d(i.cY,b,S,U))}}return e}));return s.minX=1/0,s.maxX=-1/0,s.minY=1/0,s.maxY=-1/0,s}}(l||(l={}));var g,v=function(){function t(){}return t.prototype.round=function(t){return this.transform(l.ROUND(t))},t.prototype.toAbs=function(){return this.transform(l.TO_ABS())},t.prototype.toRel=function(){return this.transform(l.TO_REL())},t.prototype.normalizeHVZ=function(t,e,n){return this.transform(l.NORMALIZE_HVZ(t,e,n))},t.prototype.normalizeST=function(){return this.transform(l.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(l.QT_TO_C())},t.prototype.aToC=function(){return this.transform(l.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(l.SANITIZE(t))},t.prototype.translate=function(t,e){return this.transform(l.TRANSLATE(t,e))},t.prototype.scale=function(t,e){return this.transform(l.SCALE(t,e))},t.prototype.rotate=function(t,e,n){return this.transform(l.ROTATE(t,e,n))},t.prototype.matrix=function(t,e,n,r,i,o){return this.transform(l.MATRIX(t,e,n,r,i,o))},t.prototype.skewX=function(t){return this.transform(l.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(l.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(l.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(l.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(l.ANNOTATE_ARCS())},t}(),_=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},w=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},b=function(t){function e(){var e=t.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return i(e,t),e.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,e){var n=this;void 0===e&&(e=[]);for(var r=function(t){e.push(t),n.curArgs.length=0,n.canParseCommandOrComma=!0},i=0;i<t.length;i++){var o=t[i],a=!(this.curCommandType!==x.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),s=w(o)&&("0"===this.curNumber&&"0"===o||a);if(!w(o)||s)if("e"!==o&&"E"!==o)if("-"!==o&&"+"!==o||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==o||this.curNumberHasExp||this.curNumberHasDecimal||a){if(this.curNumber&&-1!==this.curCommandType){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===x.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(u),this.curArgs.length===E[this.curCommandType]&&(x.HORIZ_LINE_TO===this.curCommandType?r({type:x.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):x.VERT_LINE_TO===this.curCommandType?r({type:x.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===x.MOVE_TO||this.curCommandType===x.LINE_TO||this.curCommandType===x.SMOOTH_QUAD_TO?(r({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),x.MOVE_TO===this.curCommandType&&(this.curCommandType=x.LINE_TO)):this.curCommandType===x.CURVE_TO?r({type:x.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===x.SMOOTH_CURVE_TO?r({type:x.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===x.QUAD_TO?r({type:x.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===x.ARC&&r({type:x.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(!_(o))if(","===o&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==o&&"-"!==o&&"."!==o)if(s)this.curNumber=o,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==o&&"Z"!==o)if("h"===o||"H"===o)this.curCommandType=x.HORIZ_LINE_TO,this.curCommandRelative="h"===o;else if("v"===o||"V"===o)this.curCommandType=x.VERT_LINE_TO,this.curCommandRelative="v"===o;else if("m"===o||"M"===o)this.curCommandType=x.MOVE_TO,this.curCommandRelative="m"===o;else if("l"===o||"L"===o)this.curCommandType=x.LINE_TO,this.curCommandRelative="l"===o;else if("c"===o||"C"===o)this.curCommandType=x.CURVE_TO,this.curCommandRelative="c"===o;else if("s"===o||"S"===o)this.curCommandType=x.SMOOTH_CURVE_TO,this.curCommandRelative="s"===o;else if("q"===o||"Q"===o)this.curCommandType=x.QUAD_TO,this.curCommandRelative="q"===o;else if("t"===o||"T"===o)this.curCommandType=x.SMOOTH_QUAD_TO,this.curCommandRelative="t"===o;else{if("a"!==o&&"A"!==o)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+".");this.curCommandType=x.ARC,this.curCommandRelative="a"===o}else e.push({type:x.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=o,this.curNumberHasDecimal="."===o}else this.curNumber+=o,this.curNumberHasDecimal=!0;else this.curNumber+=o;else this.curNumber+=o,this.curNumberHasExp=!0;else this.curNumber+=o,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,n){void 0===n&&(n=[]);for(var r=0,i=Object.getPrototypeOf(this).parse.call(this,e);r<i.length;r++){var o=i[r],a=t(o);Array.isArray(a)?n.push.apply(n,a):n.push(a)}return n}}})},e}(v),x=function(t){function e(n){var r=t.call(this)||this;return r.commands="string"==typeof n?e.parse(n):n,r}return i(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=l.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var e=[],n=0,r=this.commands;n<r.length;n++){var i=t(r[n]);Array.isArray(i)?e.push.apply(e,i):e.push(i)}return this.commands=e,this},e.encode=function(t){return o(t)},e.parse=function(t){var e=new b,n=[];return e.parse(t,n),e.finish(n),n},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(v),E=((g={})[x.MOVE_TO]=2,g[x.LINE_TO]=2,g[x.HORIZ_LINE_TO]=1,g[x.VERT_LINE_TO]=1,g[x.CLOSE_PATH]=0,g[x.QUAD_TO]=4,g[x.SMOOTH_QUAD_TO]=2,g[x.CURVE_TO]=6,g[x.SMOOTH_CURVE_TO]=4,g[x.ARC]=7,g)},174:(t,e,n)=>{"use strict";const r=n(8998),i=n(6928),o=n(3798).mkdirsSync,a=n(7211).utimesMillisSync,s=n(6462);function u(t,e,n,o){if(!o.filter||o.filter(e,n))return function(t,e,n,o){const a=(o.dereference?r.statSync:r.lstatSync)(e);return a.isDirectory()?function(t,e,n,i,o){if(!e)return function(t,e,n,i){return r.mkdirSync(n),f(e,n,i),r.chmodSync(n,t.mode)}(t,n,i,o);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${i}' with directory '${n}'.`);return f(n,i,o)}(a,t,e,n,o):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?function(t,e,n,i,o){return e?function(t,e,n,i){if(i.overwrite)return r.unlinkSync(n),c(t,e,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}(t,n,i,o):c(t,n,i,o)}(a,t,e,n,o):a.isSymbolicLink()?function(t,e,n,o){let a=r.readlinkSync(e);if(o.dereference&&(a=i.resolve(process.cwd(),a)),t){let t;try{t=r.readlinkSync(n)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return r.symlinkSync(a,n);throw t}if(o.dereference&&(t=i.resolve(process.cwd(),t)),s.isSrcSubdir(a,t))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${t}'.`);if(r.statSync(n).isDirectory()&&s.isSrcSubdir(t,a))throw new Error(`Cannot overwrite '${t}' with '${a}'.`);return function(t,e){return r.unlinkSync(e),r.symlinkSync(t,e)}(a,n)}return r.symlinkSync(a,n)}(t,e,n,o):void 0}(t,e,n,o)}function c(t,e,i,o){return"function"==typeof r.copyFileSync?(r.copyFileSync(e,i),r.chmodSync(i,t.mode),o.preserveTimestamps?a(i,t.atime,t.mtime):void 0):function(t,e,i,o){const a=n(1054)(65536),s=r.openSync(e,"r"),u=r.openSync(i,"w",t.mode);let c=0;for(;c<t.size;){const t=r.readSync(s,a,0,65536,c);r.writeSync(u,a,0,t),c+=t}o.preserveTimestamps&&r.futimesSync(u,t.atime,t.mtime),r.closeSync(s),r.closeSync(u)}(t,e,i,o)}function f(t,e,n){r.readdirSync(t).forEach((r=>function(t,e,n,r){const o=i.join(e,t),a=i.join(n,t),{destStat:c}=s.checkPathsSync(o,a,"copy");return u(c,o,a,r)}(r,t,e,n)))}t.exports=function(t,e,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:a,destStat:c}=s.checkPathsSync(t,e,"copy");return s.checkParentPathsSync(t,a,e,"copy"),function(t,e,n,a){if(a.filter&&!a.filter(e,n))return;const s=i.dirname(n);return r.existsSync(s)||o(s),u(t,e,n,a)}(c,t,e,n)}},388:t=>{"use strict";function e(t,e){this.x=t,this.y=e}e.prototype.add=function(t){return new e(this.x+t.x,this.y+t.y)},e.prototype.sub=function(t){return new e(this.x-t.x,this.y-t.y)},e.prototype.mul=function(t){return new e(this.x*t,this.y*t)},e.prototype.div=function(t){return new e(this.x/t,this.y/t)},e.prototype.dist=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.sqr=function(){return this.x*this.x+this.y*this.y},t.exports.Point=e,t.exports.isInLine=function(t,e,n,r){var i=t.sub(e).sqr(),o=n.sub(e).sqr(),a=t.sub(n).sqr();return!(i>o+a||o>i+a)&&Math.sqrt(Math.pow((t.x-e.x)*(n.y-e.y)-(n.x-e.x)*(t.y-e.y),2)/a)<r}},390:(t,e,n)=>{"use strict";var r=n(5250),i=n(7028).identifier,o=n(6804);function a(){var t=new o(12);return t.writeUint16(4),t.writeUint16(0),t.writeUint16(0),t.writeUint16(0),t.writeUint16(1),t.writeUint16(0),t}function s(t,e){var n=[];r.forEach(e,(function(e){var i=function(t,e,n){var i=[];r.forEach(n,(function(e){i.push(function(t,e){var n=t.codePoints,r=e.unicode,i=4+2*(r.length-1),a=new o(i),s=e.glyph;a.writeUint16(s.id),a.writeUint16(r.length);for(var u=1;u<r.length;u++)s=n[r[u]],a.writeUint16(s.id);return a}(t,e))}));var a=r.reduce(r.map(i,"length"),(function(t,e){return t+e}),0),s=2+2*n.length,u=new o(0+s+a);return u.writeUint16(n.length),r.forEach(i,(function(t){u.writeUint16(s),s+=t.length})),r.forEach(i,(function(t){u.writeBytes(t.buffer)})),u}(t,e.codePoint,e.ligatures);n.push(i)}));var i=r.reduce(r.map(n,"length"),(function(t,e){return t+e}),0),a=function(t,e){var n=e.length,i=new o(4+2*n);return i.writeUint16(1),i.writeUint16(n),r.forEach(e,(function(t){i.writeUint16(t.startGlyph.id)})),i}(0,e),s=6+2*n.length,u=s+i,c=8+u+a.length,f=new o(c);return f.writeUint16(4),f.writeUint16(0),f.writeUint16(1),f.writeUint16(8),f.writeUint16(1),f.writeUint16(u),f.writeUint16(n.length),r.forEach(n,(function(t){f.writeUint16(s),s+=t.length})),r.forEach(n,(function(t){f.writeBytes(t.buffer)})),f.writeBytes(a.buffer),f}t.exports=function(t){var e=function(){var t=[["DFLT",a()],["latn",a()]],e=2+6*t.length,n=r.reduce(r.map(t,(function(t){return t[1].length})),(function(t,e){return t+e}),0),s=new o(0+e+n);s.writeUint16(t.length);var u=e;return r.forEach(t,(function(t){var e=t[0],n=t[1];s.writeUint32(i(e)),s.writeUint16(u),u+=n.length})),r.forEach(t,(function(t){var e=t[1];s.writeBytes(e.buffer)})),s}(),n=function(){var t=new o(14);return t.writeUint16(1),t.writeUint32(i("liga")),t.writeUint16(8),t.writeUint16(0),t.writeUint16(1),t.writeUint16(0),t}(),u=function(t){var e=t.ligatures,n={};r.forEach(e,(function(t){var e=t.unicode[0];r.has(n,e)||(n[e]=[]),n[e].push(t)}));var i=[];r.forEach(n,(function(e,n){n=parseInt(n,10),e.sort((function(t,e){return e.unicode.length-t.unicode.length})),i.push({codePoint:n,ligatures:e,startGlyph:t.codePoints[n]})})),i.sort((function(t,e){return t.startGlyph.id-e.startGlyph.id}));var a=s(t,i),u=4+a.length,c=new o(u);return c.writeUint16(1),c.writeUint16(4),c.writeBytes(a.buffer),c}(t),c=[e,n,u],f=4+2*c.length;r.forEach(c,(function(t){t._listOffset=f,f+=t.length}));var l=new o(f);return l.writeUint32(65536),r.forEach(c,(function(t){l.writeUint16(t._listOffset)})),r.forEach(c,(function(t){l.writeBytes(t.buffer)})),l}},421:(t,e)=>{var n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$");function o(){}function a(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function s(t,e,n,r,i,o){for(var a,s=++e,u=0;;){var c=t.charAt(s);switch(c){case"=":if(1===u)a=t.slice(e,s),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(o.warning('attribute value must after "="'),a=t.slice(e,s)),e=s+1,!((s=t.indexOf(c,e))>0))throw new Error("attribute value no end '"+c+"' match");f=t.slice(e,s).replace(/&#?\w+;/g,i),n.add(a,f,e-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');f=t.slice(e,s).replace(/&#?\w+;/g,i),n.add(a,f,e),o.warning('attribute "'+a+'" missed start quot('+c+")!!"),e=s+1,u=5}break;case"/":switch(u){case 0:n.setTagName(t.slice(e,s));case 5:case 6:case 7:u=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==u&&n.setTagName(t.slice(e,s)),s;case">":switch(u){case 0:n.setTagName(t.slice(e,s));case 5:case 6:case 7:break;case 4:case 1:"/"===(f=t.slice(e,s)).slice(-1)&&(n.closed=!0,f=f.slice(0,-1));case 2:2===u&&(f=a),4==u?(o.warning('attribute "'+f+'" missed quot(")!!'),n.add(a,f.replace(/&#?\w+;/g,i),e)):("http://www.w3.org/1999/xhtml"===r[""]&&f.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+f+'" missed value!! "'+f+'" instead!!'),n.add(f,f,e));break;case 3:throw new Error("attribute value missed!!")}return s;case"€":c=" ";default:if(c<=" ")switch(u){case 0:n.setTagName(t.slice(e,s)),u=6;break;case 1:a=t.slice(e,s),u=2;break;case 4:var f=t.slice(e,s).replace(/&#?\w+;/g,i);o.warning('attribute "'+f+'" missed quot(")!!'),n.add(a,f,e);case 5:u=6}else switch(u){case 2:n.tagName,"http://www.w3.org/1999/xhtml"===r[""]&&a.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n.add(a,a,e),e=s,u=1;break;case 5:o.warning('attribute space is required"'+a+'"!!');case 6:u=1,e=s;break;case 3:u=4,e=s;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function u(t,e,n){for(var r=t.tagName,i=null,o=t.length;o--;){var a=t[o],s=a.qName,u=a.value;if((p=s.indexOf(":"))>0)var c=a.prefix=s.slice(0,p),f=s.slice(p+1),h="xmlns"===c&&f;else f=s,c=null,h="xmlns"===s&&"";a.localName=f,!1!==h&&(null==i&&(i={},l(n,n={})),n[h]=i[h]=u,a.uri="http://www.w3.org/2000/xmlns/",e.startPrefixMapping(h,u))}for(o=t.length;o--;)(c=(a=t[o]).prefix)&&("xml"===c&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==c&&(a.uri=n[c||""]));var p;(p=r.indexOf(":"))>0?(c=t.prefix=r.slice(0,p),f=t.localName=r.slice(p+1)):(c=null,f=t.localName=r);var d=t.uri=n[c||""];if(e.startElement(d,f,r,t),!t.closed)return t.currentNSMap=n,t.localNSMap=i,!0;if(e.endElement(d,f,r),i)for(c in i)e.endPrefixMapping(c)}function c(t,e,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=t.indexOf("</"+n+">",e),a=t.substring(e+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,r),i.characters(a,0,a.length),o)}return e+1}function f(t,e,n,r){var i=r[n];return null==i&&((i=t.lastIndexOf("</"+n+">"))<e&&(i=t.lastIndexOf("</"+n)),r[n]=i),i<e}function l(t,e){for(var n in t)e[n]=t[n]}function h(t,e,n,r){if("-"===t.charAt(e+2))return"-"===t.charAt(e+3)?(i=t.indexOf("--\x3e",e+4))>e?(n.comment(t,e+4,i-e-4),i+3):(r.error("Unclosed comment"),-1):-1;if("CDATA["==t.substr(e+3,6)){var i=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,i-e-9),n.endCDATA(),i+3}var o=function(t,e){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=e,i.exec(t);n=i.exec(t);)if(r.push(n),n[1])return r}(t,e),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],u=a>3&&/^public$/i.test(o[2][0])&&o[3][0],c=a>4&&o[4][0],f=o[a-1];return n.startDTD(s,u&&u.replace(/^(['"])(.*?)\1$/,"$2"),c&&c.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),f.index+f[0].length}return-1}function p(t,e,n){var r=t.indexOf("?>",e);if(r){var i=t.substring(e,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return i?(i[0].length,n.processingInstruction(i[1],i[2]),r+2):-1}return-1}function d(t){}function m(t,e){return t.__proto__=e,t}o.prototype={parse:function(t,e,n){var r=this.domBuilder;r.startDocument(),l(e,e={}),function(t,e,n,r,i){function o(t){var e=t.slice(1,-1);return e in n?n[e]:"#"===e.charAt(0)?function(t){if(t>65535){var e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}(parseInt(e.substr(1).replace("x","0x"))):(i.error("entity not found:"+t),t)}function l(e){if(e>x){var n=t.substring(x,e).replace(/&#?\w+;/g,o);_&&m(x),r.characters(n,0,e-x),x=e}}function m(e,n){for(;e>=g&&(n=v.exec(t));)y=n.index,g=y+n[0].length,_.lineNumber++;_.columnNumber=e-y+1}for(var y=0,g=0,v=/.*(?:\r\n?|\n)|.*$/g,_=r.locator,w=[{currentNSMap:e}],b={},x=0;;){try{var E=t.indexOf("<",x);if(E<0){if(!t.substr(x).match(/^\s*$/)){var S=r.doc,T=S.createTextNode(t.substr(x));S.appendChild(T),r.currentElement=T}return}switch(E>x&&l(E),t.charAt(E+1)){case"/":var N=t.indexOf(">",E+3),A=t.substring(E+2,N),O=w.pop();N<0?(A=t.substring(E+2).replace(/[\s<].*/,""),i.error("end tag name: "+A+" is not complete:"+O.tagName),N=E+1+A.length):A.match(/\s</)&&(A=A.replace(/[\s<].*/,""),i.error("end tag name: "+A+" maybe not complete"),N=E+1+A.length);var I=O.localNSMap,C=O.tagName==A;if(C||O.tagName&&O.tagName.toLowerCase()==A.toLowerCase()){if(r.endElement(O.uri,O.localName,A),I)for(var D in I)r.endPrefixMapping(D);C||i.fatalError("end tag name: "+A+" is not match the current start tagName:"+O.tagName)}else w.push(O);N++;break;case"?":_&&m(E),N=p(t,E,r);break;case"!":_&&m(E),N=h(t,E,r,i);break;default:_&&m(E);var M=new d,U=w[w.length-1].currentNSMap,k=(N=s(t,E,M,U,o,i),M.length);if(!M.closed&&f(t,N,M.tagName,b)&&(M.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),_&&k){for(var R=a(_,{}),P=0;P<k;P++){var F=M[P];m(F.offset),F.locator=a(_,{})}r.locator=R,u(M,r,U)&&w.push(M),r.locator=_}else u(M,r,U)&&w.push(M);"http://www.w3.org/1999/xhtml"!==M.uri||M.closed?N++:N=c(t,N,M.tagName,o,r)}}catch(t){i.error("element parse error: "+t),N=-1}N>x?x=N:l(Math.max(E,x)+1)}}(t,e,n,r,this.errorHandler),r.endDocument()}},d.prototype={setTagName:function(t){if(!i.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},add:function(t,e,n){if(!i.test(t))throw new Error("invalid attribute:"+t);this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},m({},m.prototype)instanceof m||(m=function(t,e){function n(){}for(e in n.prototype=e,n=new n,t)n[e]=t[e];return n}),e.$=o},857:t=>{"use strict";t.exports=require("os")},859:(t,e,n)=>{"use strict";var r=n(5250);t.exports={encode:function(t){return r.map(t,(function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+String.fromCharCode(t)})).join("")},decode:function(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}}},1054:t=>{"use strict";t.exports=function(t){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(t)}catch(e){return new Buffer(t)}return new Buffer(t)}},1236:(t,e)=>{"use strict";e.S=function(t){return Object.defineProperty((function(){if("function"!=typeof arguments[arguments.length-1])return new Promise(((e,n)=>{arguments[arguments.length]=(t,r)=>{if(t)return n(t);e(r)},arguments.length++,t.apply(this,arguments)}));t.apply(this,arguments)}),"name",{value:t.name})},e.z=function(t){return Object.defineProperty((function(){const e=arguments[arguments.length-1];if("function"!=typeof e)return t.apply(this,arguments);t.apply(this,arguments).then((t=>e(null,t)),e)}),"name",{value:t.name})}},1249:(t,e,n)=>{"use strict";const r=n(8998),i=n(6928),o=n(2613),a="win32"===process.platform;function s(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((e=>{t[e]=t[e]||r[e],t[e+="Sync"]=t[e]||r[e]})),t.maxBusyTries=t.maxBusyTries||3}function u(t,e,n){let r=0;"function"==typeof e&&(n=e,e={}),o(t,"rimraf: missing path"),o.strictEqual(typeof t,"string","rimraf: path should be a string"),o.strictEqual(typeof n,"function","rimraf: callback function required"),o(e,"rimraf: invalid options argument provided"),o.strictEqual(typeof e,"object","rimraf: options should be object"),s(e),c(t,e,(function i(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&r<e.maxBusyTries)return r++,setTimeout((()=>c(t,e,i)),100*r);"ENOENT"===o.code&&(o=null)}n(o)}))}function c(t,e,n){o(t),o(e),o("function"==typeof n),e.lstat(t,((r,i)=>r&&"ENOENT"===r.code?n(null):r&&"EPERM"===r.code&&a?f(t,e,r,n):i&&i.isDirectory()?h(t,e,r,n):void e.unlink(t,(r=>{if(r){if("ENOENT"===r.code)return n(null);if("EPERM"===r.code)return a?f(t,e,r,n):h(t,e,r,n);if("EISDIR"===r.code)return h(t,e,r,n)}return n(r)}))))}function f(t,e,n,r){o(t),o(e),o("function"==typeof r),n&&o(n instanceof Error),e.chmod(t,438,(i=>{i?r("ENOENT"===i.code?null:n):e.stat(t,((i,o)=>{i?r("ENOENT"===i.code?null:n):o.isDirectory()?h(t,e,n,r):e.unlink(t,r)}))}))}function l(t,e,n){let r;o(t),o(e),n&&o(n instanceof Error);try{e.chmodSync(t,438)}catch(t){if("ENOENT"===t.code)return;throw n}try{r=e.statSync(t)}catch(t){if("ENOENT"===t.code)return;throw n}r.isDirectory()?d(t,e,n):e.unlinkSync(t)}function h(t,e,n,r){o(t),o(e),n&&o(n instanceof Error),o("function"==typeof r),e.rmdir(t,(a=>{!a||"ENOTEMPTY"!==a.code&&"EEXIST"!==a.code&&"EPERM"!==a.code?a&&"ENOTDIR"===a.code?r(n):r(a):function(t,e,n){o(t),o(e),o("function"==typeof n),e.readdir(t,((r,o)=>{if(r)return n(r);let a,s=o.length;if(0===s)return e.rmdir(t,n);o.forEach((r=>{u(i.join(t,r),e,(r=>{if(!a)return r?n(a=r):void(0===--s&&e.rmdir(t,n))}))}))}))}(t,e,r)}))}function p(t,e){let n;s(e=e||{}),o(t,"rimraf: missing path"),o.strictEqual(typeof t,"string","rimraf: path should be a string"),o(e,"rimraf: missing options"),o.strictEqual(typeof e,"object","rimraf: options should be object");try{n=e.lstatSync(t)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&a&&l(t,e,n)}try{n&&n.isDirectory()?d(t,e,null):e.unlinkSync(t)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return a?l(t,e,n):d(t,e,n);if("EISDIR"!==n.code)throw n;d(t,e,n)}}function d(t,e,n){o(t),o(e),n&&o(n instanceof Error);try{e.rmdirSync(t)}catch(r){if("ENOTDIR"===r.code)throw n;if("ENOTEMPTY"===r.code||"EEXIST"===r.code||"EPERM"===r.code)!function(t,e){if(o(t),o(e),e.readdirSync(t).forEach((n=>p(i.join(t,n),e))),!a)return e.rmdirSync(t,e);{const n=Date.now();do{try{return e.rmdirSync(t,e)}catch(t){}}while(Date.now()-n<500)}}(t,e);else if("ENOENT"!==r.code)throw r}}t.exports=u,u.sync=p},1413:(t,e,n)=>{"use strict";var r=n(5250),i=n(6804);t.exports=function(t){var e=new i(32);return e.writeInt32(65536),e.writeUint16(t.glyphs.length),e.writeUint16(function(t){return r.max(r.map(t.glyphs,(function(t){return r.reduce(t.ttfContours,(function(t,e){return t+e.length}),0)})))}(t)),e.writeUint16(function(t){return r.max(r.map(t.glyphs,(function(t){return t.ttfContours.length})))}(t)),e.writeUint16(0),e.writeUint16(0),e.writeUint16(2),e.writeUint16(0),e.writeUint16(10),e.writeUint16(10),e.writeUint16(0),e.writeUint16(255),e.writeUint16(0),e.writeUint16(0),e.writeUint16(0),e}},1522:(t,e,n)=>{"use strict";const r=n(1236).S,i=n(6928),o=n(8998),a=n(3798),s=n(9288).pathExists;t.exports={createLink:r((function(t,e,n){function r(t,e){o.link(t,e,(t=>{if(t)return n(t);n(null)}))}s(e,((u,c)=>u?n(u):c?n(null):void o.lstat(t,(o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),n(o);const u=i.dirname(e);s(u,((i,o)=>i?n(i):o?r(t,e):void a.mkdirs(u,(i=>{if(i)return n(i);r(t,e)}))))}))))})),createLinkSync:function(t,e){if(o.existsSync(e))return;try{o.lstatSync(t)}catch(t){throw t.message=t.message.replace("lstat","ensureLink"),t}const n=i.dirname(e);return o.existsSync(n)||a.mkdirsSync(n),o.linkSync(t,e)}}},1574:(t,e,n)=>{"use strict";var r=n(5250),i=n(6804);t.exports=function(t){var e=t.ttf_glyph_size<131072,n=new i(function(t,e){return(t.glyphs.length+1)*(e?2:4)}(t,e)),o=0;return r.forEach(t.glyphs,(function(t){e?(n.writeUint16(o),o+=t.ttf_size/2):(n.writeUint32(o),o+=t.ttf_size)})),e?n.writeUint16(o):n.writeUint32(o),n}},1605:(t,e,n)=>{"use strict";t.exports=Object.assign({},n(8737),n(1881),n(4423),n(2591),n(6288),n(3376),n(3798),n(8617),n(2455),n(3811),n(9288),n(5422));const r=n(9896);Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(t.exports,"promises",{get:()=>r.promises})},1824:(t,e)=>{"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(t[i]=n[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},o={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(n)},1881:(t,e,n)=>{"use strict";t.exports={copySync:n(174)}},1883:t=>{"use strict";var e=2*Math.PI;function n(t,e,n,r){var i=t*n+e*r;return i>1&&(i=1),i<-1&&(i=-1),(t*r-e*n<0?-1:1)*Math.acos(i)}function r(t,e){var n=4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[r,i,r-i*n,i+r*n,o+a*n,a-o*n,o,a]}t.exports=function(t,i,o,a,s,u,c,f,l){var h=Math.sin(l*e/360),p=Math.cos(l*e/360),d=p*(t-o)/2+h*(i-a)/2,m=-h*(t-o)/2+p*(i-a)/2;if(0===d&&0===m)return[];if(0===c||0===f)return[];c=Math.abs(c),f=Math.abs(f);var y=d*d/(c*c)+m*m/(f*f);y>1&&(c*=Math.sqrt(y),f*=Math.sqrt(y));var g=function(t,r,i,o,a,s,u,c,f,l){var h=l*(t-i)/2+f*(r-o)/2,p=-f*(t-i)/2+l*(r-o)/2,d=u*u,m=c*c,y=h*h,g=p*p,v=d*m-d*g-m*y;v<0&&(v=0),v/=d*g+m*y;var _=(v=Math.sqrt(v)*(a===s?-1:1))*u/c*p,w=v*-c/u*h,b=l*_-f*w+(t+i)/2,x=f*_+l*w+(r+o)/2,E=(h-_)/u,S=(p-w)/c,T=(-h-_)/u,N=(-p-w)/c,A=n(1,0,E,S),O=n(E,S,T,N);return 0===s&&O>0&&(O-=e),1===s&&O<0&&(O+=e),[b,x,A,O]}(t,i,o,a,s,u,c,f,h,p),v=[],_=g[2],w=g[3],b=Math.max(Math.ceil(Math.abs(w)/(e/4)),1);w/=b;for(var x=0;x<b;x++)v.push(r(_,w)),_+=w;return v.map((function(t){for(var e=0;e<t.length;e+=2){var n=t[e+0],r=t[e+1],i=p*(n*=c)-h*(r*=f),o=h*n+p*r;t[e+0]=i+g[0],t[e+1]=o+g[1]}return t}))}},2069:(t,e,n)=>{"use strict";const r=n(6928);function i(t){return(t=r.normalize(r.resolve(t)).split(r.sep)).length>0?t[0]:null}const o=/[<>:"|?*]/;t.exports={getRootPath:i,invalidWin32Path:function(t){const e=i(t);return t=t.replace(e,""),o.test(t)}}},2188:(t,e,n)=>{"use strict";const r=n(8998),i=n(6928),o=n(3798),a=n(2934);t.exports=function(t,e,n){const s=i.dirname(t);r.existsSync(s)||o.mkdirsSync(s),a.writeJsonSync(t,e,n)}},2203:t=>{"use strict";t.exports=require("stream")},2455:(t,e,n)=>{"use strict";const r=n(1236).S;t.exports={move:r(n(3314))}},2495:t=>{"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},2506:t=>{"use strict";var e=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,n,r,i){var o=e,a=i+r;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^n[s])];return-1^t}},2591:(t,e,n)=>{"use strict";const r=n(1236).S,i=n(8998),o=n(6928),a=n(3798),s=n(5422),u=r((function(t,e){e=e||function(){},i.readdir(t,((n,r)=>{if(n)return a.mkdirs(t,e);r=r.map((e=>o.join(t,e))),function t(){const n=r.pop();if(!n)return e();s.remove(n,(n=>{if(n)return e(n);t()}))}()}))}));function c(t){let e;try{e=i.readdirSync(t)}catch(e){return a.mkdirsSync(t)}e.forEach((e=>{e=o.join(t,e),s.removeSync(e)}))}t.exports={emptyDirSync:c,emptydirSync:c,emptyDir:u,emptydir:u}},2613:t=>{"use strict";t.exports=require("assert")},2746:(t,e,n)=>{"use strict";var r=n(5250),i=n(7721),o=n(5225).S,a=n(859);t.exports.load=function(t){var e,n,i,s,u=(new o).parseFromString(t,"application/xml");if(n=u.getElementsByTagName("metadata")[0],!(i=u.getElementsByTagName("font")[0]))throw new Error("Can't find <font> tag. Make sure you SVG file is font, not image.");var c=(s=i.getElementsByTagName("font-face")[0]).getAttribute("font-family")||"fontello",f=s.getAttribute("font-style")||"Regular",l={id:i.getAttribute("id")||(c+"-"+f).replace(/[\s\(\)\[\]<>%\/]/g,"").substr(0,62),familyName:c,subfamilyName:f,stretch:s.getAttribute("font-stretch")||"normal"};n&&n.textContent&&(l.metadata=n.textContent),e={width:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y"},r.forEach(e,(function(t,e){i.hasAttribute(t)&&(l[e]=parseInt(i.getAttribute(t),10))})),e={ascent:"ascent",descent:"descent",unitsPerEm:"units-per-em",underlineThickness:"underline-thickness",underlinePosition:"underline-position"},r.forEach(e,(function(t,e){s.hasAttribute(t)&&(l[e]=parseInt(s.getAttribute(t),10))})),s.hasAttribute("font-weight")&&(l.weightClass=s.getAttribute("font-weight"));var h=i.getElementsByTagName("missing-glyph")[0];h&&(l.missingGlyph={},l.missingGlyph.d=h.getAttribute("d")||"",h.getAttribute("horiz-adv-x")&&(l.missingGlyph.width=parseInt(h.getAttribute("horiz-adv-x"),10)));var p=[],d=[];return r.forEach(i.getElementsByTagName("glyph"),(function(t){var e=function(t){var e={};if(e.d=t.getAttribute("d").trim(),e.unicode=[],t.getAttribute("unicode")){e.character=t.getAttribute("unicode");var n=a.decode(e.character);n.length>1?(e.ligature=e.character,e.ligatureCodes=n):e.unicode.push(n[0])}return e.name=t.getAttribute("glyph-name"),t.getAttribute("horiz-adv-x")&&(e.width=parseInt(t.getAttribute("horiz-adv-x"),10)),e}(t);r.has(e,"ligature")&&d.push({ligature:e.ligature,unicode:e.ligatureCodes,glyph:e}),p.push(e)})),p=function(t,e){var n=[];return r.forEach(t,(function(t){var e=r.find(n,{width:t.width,d:t.d});e?(e.unicode=e.unicode.concat(t.unicode),t.canonical=e):n.push(t)})),r.forEach(e,(function(t){for(;r.has(t.glyph,"canonical");)t.glyph=t.glyph.canonical})),n}(p,d),l.glyphs=p,l.ligatures=d,l},t.exports.cubicToQuad=function(t,e,n,r,o){if("C"===t[0]){for(var a=i(n,r,t[1],t[2],t[3],t[4],t[5],t[6],o),s=[],u=2;u<a.length;u+=4)s.push(["Q",a[u],a[u+1],a[u+2],a[u+3]]);return s}},t.exports.toSfntCoutours=function(t){var e=[],n=[];return t.iterate((function(t,r,i,o){0!==r&&"M"!==t[0]||(n=[],e.push(n));var a=t[0];"Q"===a&&n.push({x:t[1],y:t[2],onCurve:!1}),"H"===a?n.push({x:t[1],y:o,onCurve:!0}):"V"===a?n.push({x:i,y:t[1],onCurve:!0}):"Z"!==a&&n.push({x:t[t.length-2],y:t[t.length-1],onCurve:!0})})),e}},2817:t=>{"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},2909:(t,e,n)=>{var r;try{r=n(8998)}catch(t){r=n(9896)}function i(t,e){var n,r="\n";return"object"==typeof e&&null!==e&&(e.spaces&&(n=e.spaces),e.EOL&&(r=e.EOL)),JSON.stringify(t,e?e.replacer:null,n).replace(/\n/g,r)+r}function o(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}var a={readFile:function(t,e,n){null==n&&(n=e,e={}),"string"==typeof e&&(e={encoding:e});var i=(e=e||{}).fs||r,a=!0;"throws"in e&&(a=e.throws),i.readFile(t,e,(function(r,i){if(r)return n(r);var s;i=o(i);try{s=JSON.parse(i,e?e.reviver:null)}catch(e){return a?(e.message=t+": "+e.message,n(e)):n(null,null)}n(null,s)}))},readFileSync:function(t,e){"string"==typeof(e=e||{})&&(e={encoding:e});var n=e.fs||r,i=!0;"throws"in e&&(i=e.throws);try{var a=n.readFileSync(t,e);return a=o(a),JSON.parse(a,e.reviver)}catch(e){if(i)throw e.message=t+": "+e.message,e;return null}},writeFile:function(t,e,n,o){null==o&&(o=n,n={});var a=(n=n||{}).fs||r,s="";try{s=i(e,n)}catch(t){return void(o&&o(t,null))}a.writeFile(t,s,n,o)},writeFileSync:function(t,e,n){var o=(n=n||{}).fs||r,a=i(e,n);return o.writeFileSync(t,a,n)}};t.exports=a},2934:(t,e,n)=>{"use strict";const r=n(1236).S,i=n(2909);t.exports={readJson:r(i.readFile),readJsonSync:i.readFileSync,writeJson:r(i.writeFile),writeJsonSync:i.writeFileSync}},3180:(t,e,n)=>{"use strict";const r=n(8998),i=n(6928),o=n(2069).invalidWin32Path,a=parseInt("0777",8);t.exports=function t(e,n,s,u){if("function"==typeof n?(s=n,n={}):n&&"object"==typeof n||(n={mode:n}),"win32"===process.platform&&o(e)){const t=new Error(e+" contains invalid WIN32 path characters.");return t.code="EINVAL",s(t)}let c=n.mode;const f=n.fs||r;void 0===c&&(c=a&~process.umask()),u||(u=null),s=s||function(){},e=i.resolve(e),f.mkdir(e,c,(r=>{if(!r)return s(null,u=u||e);if("ENOENT"===r.code){if(i.dirname(e)===e)return s(r);t(i.dirname(e),n,((r,i)=>{r?s(r,i):t(e,n,s,i)}))}else f.stat(e,((t,e)=>{t||!e.isDirectory()?s(r,u):s(null,u)}))}))}},3193:t=>{"use strict";t.exports=require("string_decoder")},3314:(t,e,n)=>{"use strict";const r=n(8998),i=n(6928),o=n(4423).copy,a=n(5422).remove,s=n(3798).mkdirp,u=n(9288).pathExists,c=n(6462);function f(t,e,n,i){r.rename(t,e,(r=>r?"EXDEV"!==r.code?i(r):function(t,e,n,r){o(t,e,{overwrite:n,errorOnExist:!0},(e=>e?r(e):a(t,r)))}(t,e,n,i):i()))}t.exports=function(t,e,n,r){"function"==typeof n&&(r=n,n={});const o=n.overwrite||n.clobber||!1;c.checkPaths(t,e,"move",((n,l)=>{if(n)return r(n);const{srcStat:h}=l;c.checkParentPaths(t,h,e,"move",(n=>{if(n)return r(n);s(i.dirname(e),(n=>n?r(n):function(t,e,n,r){if(n)return a(e,(i=>i?r(i):f(t,e,n,r)));u(e,((i,o)=>i?r(i):o?r(new Error("dest already exists.")):f(t,e,n,r)))}(t,e,o,r)))}))}))}},3376:(t,e,n)=>{"use strict";const r=n(1236).S,i=n(2934);i.outputJson=r(n(6426)),i.outputJsonSync=n(2188),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,t.exports=i},3439:(t,e,n)=>{var r=n(9140),i=process.cwd,o=null,a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return o||(o=i.call(process)),o};try{process.cwd()}catch(t){}if("function"==typeof process.chdir){var s=process.chdir;process.chdir=function(t){o=null,s.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s)}t.exports=function(t){function e(e){return e?function(n,r,i){return e.call(t,n,r,(function(t){c(t)&&(t=null),i&&i.apply(this,arguments)}))}:e}function n(e){return e?function(n,r){try{return e.call(t,n,r)}catch(t){if(!c(t))throw t}}:e}function i(e){return e?function(n,r,i,o){return e.call(t,n,r,i,(function(t){c(t)&&(t=null),o&&o.apply(this,arguments)}))}:e}function o(e){return e?function(n,r,i){try{return e.call(t,n,r,i)}catch(t){if(!c(t))throw t}}:e}function s(e){return e?function(n,r,i){function o(t,e){e&&(e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof r&&(i=r,r=null),r?e.call(t,n,r,o):e.call(t,n,o)}:e}function u(e){return e?function(n,r){var i=r?e.call(t,n,r):e.call(t,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:e}function c(t){return!t||"ENOSYS"===t.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==t.code&&"EPERM"!==t.code)}var f;r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,n,i){t.open(e,r.O_WRONLY|r.O_SYMLINK,n,(function(e,r){e?i&&i(e):t.fchmod(r,n,(function(e){t.close(r,(function(t){i&&i(e||t)}))}))}))},t.lchmodSync=function(e,n){var i,o=t.openSync(e,r.O_WRONLY|r.O_SYMLINK,n),a=!0;try{i=t.fchmodSync(o,n),a=!1}finally{if(a)try{t.closeSync(o)}catch(t){}else t.closeSync(o)}return i}}(t),t.lutimes||function(t){r.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(e,n,i,o){t.open(e,r.O_SYMLINK,(function(e,r){e?o&&o(e):t.futimes(r,n,i,(function(e){t.close(r,(function(t){o&&o(e||t)}))}))}))},t.lutimesSync=function(e,n,i){var o,a=t.openSync(e,r.O_SYMLINK),s=!0;try{o=t.futimesSync(a,n,i),s=!1}finally{if(s)try{t.closeSync(a)}catch(t){}else t.closeSync(a)}return o}):t.futimes&&(t.lutimes=function(t,e,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t),t.chown=i(t.chown),t.fchown=i(t.fchown),t.lchown=i(t.lchown),t.chmod=e(t.chmod),t.fchmod=e(t.fchmod),t.lchmod=e(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=s(t.stat),t.fstat=s(t.fstat),t.lstat=s(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(t,e,n){n&&process.nextTick(n)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(t,e,n,r){r&&process.nextTick(r)},t.lchownSync=function(){}),"win32"===a&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function n(n,r,i){var o=Date.now(),a=0;e(n,r,(function s(u){if(u&&("EACCES"===u.code||"EPERM"===u.code||"EBUSY"===u.code)&&Date.now()-o<6e4)return setTimeout((function(){t.stat(r,(function(t,o){t&&"ENOENT"