UNPKG

@modern-js/module-tools

Version:

Simple, powerful, high-performance modern npm package development solution.

1 lines 97.6 kB
(()=>{var e={112:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";const t=",".charCodeAt(0);const r=";".charCodeAt(0);const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const i=new Uint8Array(64);const o=new Uint8Array(128);for(let e=0;e<n.length;e++){const t=n.charCodeAt(e);i[e]=t;o[t]=e}const s=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(e){const t=Buffer.from(e.buffer,e.byteOffset,e.byteLength);return t.toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++){t+=String.fromCharCode(e[r])}return t}};function decode(e){const t=new Int32Array(5);const r=[];let n=0;do{const i=indexOf(e,n);const o=[];let s=true;let a=0;t[0]=0;for(let r=n;r<i;r++){let n;r=decodeInteger(e,r,t,0);const l=t[0];if(l<a)s=false;a=l;if(hasMoreVlq(e,r,i)){r=decodeInteger(e,r,t,1);r=decodeInteger(e,r,t,2);r=decodeInteger(e,r,t,3);if(hasMoreVlq(e,r,i)){r=decodeInteger(e,r,t,4);n=[l,t[1],t[2],t[3],t[4]]}else{n=[l,t[1],t[2],t[3]]}}else{n=[l]}o.push(n)}if(!s)sort(o);r.push(o);n=i+1}while(n<=e.length);return r}function indexOf(e,t){const r=e.indexOf(";",t);return r===-1?e.length:r}function decodeInteger(e,t,r,n){let i=0;let s=0;let a=0;do{const r=e.charCodeAt(t++);a=o[r];i|=(a&31)<<s;s+=5}while(a&32);const l=i&1;i>>>=1;if(l){i=-2147483648|-i}r[n]+=i;return t}function hasMoreVlq(e,r,n){if(r>=n)return false;return e.charCodeAt(r)!==t}function sort(e){e.sort(sortComparator)}function sortComparator(e,t){return e[0]-t[0]}function encode(e){const n=new Int32Array(5);const i=1024*16;const o=i-36;const a=new Uint8Array(i);const l=a.subarray(0,o);let c=0;let u="";for(let f=0;f<e.length;f++){const d=e[f];if(f>0){if(c===i){u+=s.decode(a);c=0}a[c++]=r}if(d.length===0)continue;n[0]=0;for(let e=0;e<d.length;e++){const r=d[e];if(c>o){u+=s.decode(l);a.copyWithin(0,o,c);c-=o}if(e>0)a[c++]=t;c=encodeInteger(a,c,n,r,0);if(r.length===1)continue;c=encodeInteger(a,c,n,r,1);c=encodeInteger(a,c,n,r,2);c=encodeInteger(a,c,n,r,3);if(r.length===4)continue;c=encodeInteger(a,c,n,r,4)}}return u+s.decode(a.subarray(0,c))}function encodeInteger(e,t,r,n,o){const s=n[o];let a=s-r[o];r[o]=s;a=a<0?-a<<1|1:a<<1;do{let r=a&31;a>>>=5;if(a>0)r|=32;e[t++]=i[r]}while(a>0);return t}e.decode=decode;e.encode=encode;Object.defineProperty(e,"__esModule",{value:true})}))},571:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(755);const wrapAnsi16=(e,t)=>function(){const r=e.apply(n,arguments);return`[${r+t}m`};const wrapAnsi256=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const i=n[r];t[r]={open:`[${i[0]}m`,close:`[${i[1]}m`};n[r]=t[r];e.set(i[0],i[1])}Object.defineProperty(t,r,{value:n,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const ansi2ansi=e=>e;const rgb2rgb=(e,t,r)=>[e,t,r];t.color.close="";t.bgColor.close="";t.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};t.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};t.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};t.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};t.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};t.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let e of Object.keys(n)){if(typeof n[e]!=="object"){continue}const r=n[e];if(e==="ansi16"){e="ansi"}if("ansi16"in r){t.color.ansi[e]=wrapAnsi16(r.ansi16,0);t.bgColor.ansi[e]=wrapAnsi16(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=wrapAnsi256(r.ansi256,0);t.bgColor.ansi256[e]=wrapAnsi256(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=wrapAnsi16m(r.rgb,0);t.bgColor.ansi16m[e]=wrapAnsi16m(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},673:(e,t,r)=>{"use strict";const n=r(434);const i=r(571);const o=r(332).stdout;const s=r(274);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const l=["ansi","ansi","ansi256","ansi16m"];const c=new Set(["gray"]);const u=Object.create(null);function applyOptions(e,t){t=t||{};const r=o?o.level:0;e.level=t.level===undefined?r:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(a){i.blue.open=""}for(const e of Object.keys(i)){i[e].closeRe=new RegExp(n(i[e].close),"g");u[e]={get(){const t=i[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}u.visible={get(){return build.call(this,this._styles||[],true,"visible")}};i.color.closeRe=new RegExp(n(i.color.close),"g");for(const e of Object.keys(i.color.ansi)){if(c.has(e)){continue}u[e]={get(){const t=this.level;return function(){const r=i.color[l[t]][e].apply(null,arguments);const n={open:r,close:i.color.close,closeRe:i.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}i.bgColor.closeRe=new RegExp(n(i.bgColor.close),"g");for(const e of Object.keys(i.bgColor.ansi)){if(c.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);u[t]={get(){const t=this.level;return function(){const r=i.bgColor[l[t]][e].apply(null,arguments);const n={open:r,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const f=Object.defineProperties((()=>{}),u);function build(e,t,r){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=e;builder._empty=t;const n=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return n.level},set(e){n.level=e}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return n.enabled},set(e){n.enabled=e}});builder.hasGrey=this.hasGrey||r==="gray"||r==="grey";builder.__proto__=f;return builder}function applyStyle(){const e=arguments;const t=e.length;let r=String(arguments[0]);if(t===0){return""}if(t>1){for(let n=1;n<t;n++){r+=" "+e[n]}}if(!this.enabled||this.level<=0||!r){return this._empty?"":r}const n=i.dim.open;if(a&&this.hasGrey){i.dim.open=""}for(const e of this._styles.slice().reverse()){r=e.open+r.replace(e.closeRe,e.open)+e.close;r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`)}i.dim.open=n;return r}function chalkTag(e,t){if(!Array.isArray(t)){return[].slice.call(arguments,1).join(" ")}const r=[].slice.call(arguments,2);const n=[t.raw[0]];for(let e=1;e<t.length;e++){n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"));n.push(String(t.raw[e]))}return s(e,n.join(""))}Object.defineProperties(Chalk.prototype,u);e.exports=Chalk();e.exports.supportsColor=o;e.exports["default"]=e.exports},274:e=>{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const i=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return o.get(e)||e}function parseArguments(e,t){const r=[];const o=t.trim().split(/\s*,\s*/g);let s;for(const t of o){if(!isNaN(t)){r.push(Number(t))}else if(s=t.match(n)){r.push(s[2].replace(i,((e,t,r)=>t?unescape(t):r)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const e of Object.keys(r)){if(Array.isArray(r[e])){if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}if(r[e].length>0){n=n[e].apply(n,r[e])}else{n=n[e]}}}return n}e.exports=(e,r)=>{const n=[];const i=[];let o=[];r.replace(t,((t,r,s,a,l,c)=>{if(r){o.push(unescape(r))}else if(a){const t=o.join("");o=[];i.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:s,styles:parseStyle(a)})}else if(l){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(e,n)(o.join("")));o=[];n.pop()}else{o.push(c)}}));i.push(o.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")}},461:(e,t,r)=>{var n=r(391);var i={};for(var o in n){if(n.hasOwnProperty(o)){i[n[o]]=o}}var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in s){if(s.hasOwnProperty(a)){if(!("channels"in s[a])){throw new Error("missing channels property: "+a)}if(!("labels"in s[a])){throw new Error("missing channel labels property: "+a)}if(s[a].labels.length!==s[a].channels){throw new Error("channel and label counts mismatch: "+a)}var l=s[a].channels;var c=s[a].labels;delete s[a].channels;delete s[a].labels;Object.defineProperty(s[a],"channels",{value:l});Object.defineProperty(s[a],"labels",{value:c})}}s.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.min(t,r,n);var o=Math.max(t,r,n);var s=o-i;var a;var l;var c;if(o===i){a=0}else if(t===o){a=(r-n)/s}else if(r===o){a=2+(n-t)/s}else if(n===o){a=4+(t-r)/s}a=Math.min(a*60,360);if(a<0){a+=360}c=(i+o)/2;if(o===i){l=0}else if(c<=.5){l=s/(o+i)}else{l=s/(2-o-i)}return[a,l*100,c*100]};s.rgb.hsv=function(e){var t;var r;var n;var i;var o;var s=e[0]/255;var a=e[1]/255;var l=e[2]/255;var c=Math.max(s,a,l);var u=c-Math.min(s,a,l);var diffc=function(e){return(c-e)/6/u+1/2};if(u===0){i=o=0}else{o=u/c;t=diffc(s);r=diffc(a);n=diffc(l);if(s===c){i=n-r}else if(a===c){i=1/3+t-n}else if(l===c){i=2/3+r-t}if(i<0){i+=1}else if(i>1){i-=1}}return[i*360,o*100,c*100]};s.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var i=s.rgb.hsl(e)[0];var o=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[i,o*100,n*100]};s.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i;var o;var s;var a;a=Math.min(1-t,1-r,1-n);i=(1-t-a)/(1-a)||0;o=(1-r-a)/(1-a)||0;s=(1-n-a)/(1-a)||0;return[i*100,o*100,s*100,a*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}s.rgb.keyword=function(e){var t=i[e];if(t){return t}var r=Infinity;var o;for(var s in n){if(n.hasOwnProperty(s)){var a=n[s];var l=comparativeDistance(e,a);if(l<r){r=l;o=s}}}return o};s.keyword.rgb=function(e){return n[e]};s.rgb.xyz=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805;var o=t*.2126+r*.7152+n*.0722;var s=t*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};s.rgb.lab=function(e){var t=s.rgb.xyz(e);var r=t[0];var n=t[1];var i=t[2];var o;var a;var l;r/=95.047;n/=100;i/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;o=116*n-16;a=500*(r-n);l=200*(n-i);return[o,a,l]};s.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i;var o;var s;var a;var l;if(r===0){l=n*255;return[l,l,l]}if(n<.5){o=n*(1+r)}else{o=n+r-n*r}i=2*n-o;a=[0,0,0];for(var c=0;c<3;c++){s=t+1/3*-(c-1);if(s<0){s++}if(s>1){s--}if(6*s<1){l=i+(o-i)*6*s}else if(2*s<1){l=o}else if(3*s<2){l=i+(o-i)*(2/3-s)*6}else{l=i}a[c]=l*255}return a};s.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=r;var o=Math.max(n,.01);var s;var a;n*=2;r*=n<=1?n:2-n;i*=o<=1?o:2-o;a=(n+r)/2;s=n===0?2*i/(o+i):2*r/(n+r);return[t,s*100,a*100]};s.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var i=Math.floor(t)%6;var o=t-Math.floor(t);var s=255*n*(1-r);var a=255*n*(1-r*o);var l=255*n*(1-r*(1-o));n*=255;switch(i){case 0:return[n,l,s];case 1:return[a,n,s];case 2:return[s,n,l];case 3:return[s,a,n];case 4:return[l,s,n];case 5:return[n,s,a]}};s.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=Math.max(n,.01);var o;var s;var a;a=(2-r)*n;o=(2-r)*i;s=r*i;s/=o<=1?o:2-o;s=s||0;a/=2;return[t,s*100,a*100]};s.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i=r+n;var o;var s;var a;var l;if(i>1){r/=i;n/=i}o=Math.floor(6*t);s=1-n;a=6*t-o;if((o&1)!==0){a=1-a}l=r+a*(s-r);var c;var u;var f;switch(o){default:case 6:case 0:c=s;u=l;f=r;break;case 1:c=l;u=s;f=r;break;case 2:c=r;u=s;f=l;break;case 3:c=r;u=l;f=s;break;case 4:c=l;u=r;f=s;break;case 5:c=s;u=r;f=l;break}return[c*255,u*255,f*255]};s.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i=e[3]/100;var o;var s;var a;o=1-Math.min(1,t*(1-i)+i);s=1-Math.min(1,r*(1-i)+i);a=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,a*255]};s.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i;var o;var s;i=t*3.2406+r*-1.5372+n*-.4986;o=t*-.9689+r*1.8758+n*.0415;s=t*.0557+r*-.204+n*1.057;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;i=Math.min(Math.max(0,i),1);o=Math.min(Math.max(0,o),1);s=Math.min(Math.max(0,s),1);return[i*255,o*255,s*255]};s.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var o;var s;t/=95.047;r/=100;n/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=116*r-16;o=500*(t-r);s=200*(r-n);return[i,o,s]};s.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var o;var s;o=(t+16)/116;i=r/500+o;s=o-n/200;var a=Math.pow(o,3);var l=Math.pow(i,3);var c=Math.pow(s,3);o=a>.008856?a:(o-16/116)/7.787;i=l>.008856?l:(i-16/116)/7.787;s=c>.008856?c:(s-16/116)/7.787;i*=95.047;o*=100;s*=108.883;return[i,o,s]};s.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var o;var s;i=Math.atan2(n,r);o=i*360/2/Math.PI;if(o<0){o+=360}s=Math.sqrt(r*r+n*n);return[t,s,o]};s.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var o;var s;s=n/360*2*Math.PI;i=r*Math.cos(s);o=r*Math.sin(s);return[t,i,o]};s.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var i=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];i=Math.round(i/50);if(i===0){return 30}var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(i===2){o+=60}return o};s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])};s.rgb.ansi256=function(e){var t=e[0];var r=e[1];var n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};s.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var n=(t&1)*r*255;var i=(t>>1&1)*r*255;var o=(t>>2&1)*r*255;return[n,i,o]};s.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var n=Math.floor(e/36)/5*255;var i=Math.floor((r=e%36)/6)/5*255;var o=r%6/5*255;return[n,i,o]};s.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var r=t[0];if(t[0].length===3){r=r.split("").map((function(e){return e+e})).join("")}var n=parseInt(r,16);var i=n>>16&255;var o=n>>8&255;var s=n&255;return[i,o,s]};s.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.max(Math.max(t,r),n);var o=Math.min(Math.min(t,r),n);var s=i-o;var a;var l;if(s<1){a=o/(1-s)}else{a=0}if(s<=0){l=0}else if(i===t){l=(r-n)/s%6}else if(i===r){l=2+(n-t)/s}else{l=4+(t-r)/s+4}l/=6;l%=1;return[l*360,s*100,a*100]};s.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1;var i=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){i=(r-.5*n)/(1-n)}return[e[0],n*100,i*100]};s.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var i=0;if(n<1){i=(r-n)/(1-n)}return[e[0],n*100,i*100]};s.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}var i=[0,0,0];var o=t%1*6;var s=o%1;var a=1-s;var l=0;switch(Math.floor(o)){case 0:i[0]=1;i[1]=s;i[2]=0;break;case 1:i[0]=a;i[1]=1;i[2]=0;break;case 2:i[0]=0;i[1]=1;i[2]=s;break;case 3:i[0]=0;i[1]=a;i[2]=1;break;case 4:i[0]=s;i[1]=0;i[2]=1;break;default:i[0]=1;i[1]=0;i[2]=a}l=(1-r)*n;return[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};s.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var i=0;if(n>0){i=t/n}return[e[0],i*100,n*100]};s.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var i=0;if(n>0&&n<.5){i=t/(2*n)}else if(n>=.5&&n<1){i=t/(2*(1-n))}return[e[0],i*100,n*100]};s.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};s.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var i=n-t;var o=0;if(i<1){o=(n-i)/(1-i)}return[e[0],i*100,o*100]};s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]};s.gray.hwb=function(e){return[0,100,e[0]]};s.gray.cmyk=function(e){return[0,0,0,e[0]]};s.gray.lab=function(e){return[e[0],0,0]};s.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};s.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},755:(e,t,r)=>{var n=r(461);var i=r(974);var o={};var s=Object.keys(n);function wrapRaw(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var r=e(t);if(typeof r==="object"){for(var n=r.length,i=0;i<n;i++){r[i]=Math.round(r[i])}}return r};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}s.forEach((function(e){o[e]={};Object.defineProperty(o[e],"channels",{value:n[e].channels});Object.defineProperty(o[e],"labels",{value:n[e].labels});var t=i(e);var r=Object.keys(t);r.forEach((function(r){var n=t[r];o[e][r]=wrapRounded(n);o[e][r].raw=wrapRaw(n)}))}));e.exports=o},974:(e,t,r)=>{var n=r(461);function buildGraph(){var e={};var t=Object.keys(n);for(var r=t.length,i=0;i<r;i++){e[t[i]]={distance:-1,parent:null}}return e}function deriveBFS(e){var t=buildGraph();var r=[e];t[e].distance=0;while(r.length){var i=r.pop();var o=Object.keys(n[i]);for(var s=o.length,a=0;a<s;a++){var l=o[a];var c=t[l];if(c.distance===-1){c.distance=t[i].distance+1;c.parent=i;r.unshift(l)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){var r=[t[e].parent,e];var i=n[t[e].parent][e];var o=t[e].parent;while(t[o].parent){r.unshift(t[o].parent);i=link(n[t[o].parent][o],i);o=t[o].parent}i.conversion=r;return i}e.exports=function(e){var t=deriveBFS(e);var r={};var n=Object.keys(t);for(var i=n.length,o=0;o<i;o++){var s=n[o];var a=t[s];if(a.parent===null){continue}r[s]=wrapConversion(s,t)}return r}},391:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},434:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(t,"\\$&")}},419:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1?true:n<i)}},629:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:undefined};if(e[1])t.type="string",t.closed=!!(e[3]||e[4]);else if(e[5])t.type="comment";else if(e[6])t.type="comment",t.closed=!!e[7];else if(e[8])t.type="regex";else if(e[9])t.type="number";else if(e[10])t.type="name";else if(e[11])t.type="punctuator";else if(e[12])t.type="whitespace";return t}},642:(e,t,r)=>{"use strict";var n=r(112);class BitSet{constructor(e){this.bits=e instanceof BitSet?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}}class Chunk{constructor(e,t,r){this.start=e;this.end=t;this.original=r;this.intro="";this.outro="";this.content=r;this.storeName=false;this.edited=false;{this.previous=null;this.next=null}}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new Chunk(this.start,this.end,this.original);e.intro=this.intro;e.outro=this.outro;e.content=this.content;e.storeName=this.storeName;e.edited=this.edited;return e}contains(e){return this.start<e&&e<this.end}eachNext(e){let t=this;while(t){e(t);t=t.next}}eachPrevious(e){let t=this;while(t){e(t);t=t.previous}}edit(e,t,r){this.content=e;if(!r){this.intro="";this.outro=""}this.storeName=t;this.edited=true;return this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}split(e){const t=e-this.start;const r=this.original.slice(0,t);const n=this.original.slice(t);this.original=r;const i=new Chunk(e,this.end,n);i.outro=this.outro;this.outro="";this.end=e;if(this.edited){i.edit("",false);this.content=""}else{this.content=r}i.next=this.next;if(i.next)i.next.previous=i;i.previous=this;this.next=i;return i}toString(){return this.intro+this.content+this.outro}trimEnd(e){this.outro=this.outro.replace(e,"");if(this.outro.length)return true;const t=this.content.replace(e,"");if(t.length){if(t!==this.content){this.split(this.start+t.length).edit("",undefined,true);if(this.edited){this.edit(t,this.storeName,true)}}return true}else{this.edit("",undefined,true);this.intro=this.intro.replace(e,"");if(this.intro.length)return true}}trimStart(e){this.intro=this.intro.replace(e,"");if(this.intro.length)return true;const t=this.content.replace(e,"");if(t.length){if(t!==this.content){const e=this.split(this.end-t.length);if(this.edited){e.edit(t,this.storeName,true)}this.edit("",undefined,true)}return true}else{this.edit("",undefined,true);this.outro=this.outro.replace(e,"");if(this.outro.length)return true}}}function getBtoa(){if(typeof window!=="undefined"&&typeof window.btoa==="function"){return e=>window.btoa(unescape(encodeURIComponent(e)))}else if(typeof Buffer==="function"){return e=>Buffer.from(e,"utf-8").toString("base64")}else{return()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}}const i=getBtoa();class SourceMap{constructor(e){this.version=3;this.file=e.file;this.sources=e.sources;this.sourcesContent=e.sourcesContent;this.names=e.names;this.mappings=n.encode(e.mappings);if(typeof e.x_google_ignoreList!=="undefined"){this.x_google_ignoreList=e.x_google_ignoreList}}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+i(this.toString())}}function guessIndent(e){const t=e.split("\n");const r=t.filter((e=>/^\t+/.test(e)));const n=t.filter((e=>/^ {2,}/.test(e)));if(r.length===0&&n.length===0){return null}if(r.length>=n.length){return"\t"}const i=n.reduce(((e,t)=>{const r=/^ +/.exec(t)[0].length;return Math.min(r,e)}),Infinity);return new Array(i+1).join(" ")}function getRelativePath(e,t){const r=e.split(/[/\\]/);const n=t.split(/[/\\]/);r.pop();while(r[0]===n[0]){r.shift();n.shift()}if(r.length){let e=r.length;while(e--)r[e]=".."}return r.concat(n).join("/")}const o=Object.prototype.toString;function isObject(e){return o.call(e)==="[object Object]"}function getLocator(e){const t=e.split("\n");const r=[];for(let e=0,n=0;e<t.length;e++){r.push(n);n+=t[e].length+1}return function locate(e){let t=0;let n=r.length;while(t<n){const i=t+n>>1;if(e<r[i]){n=i}else{t=i+1}}const i=t-1;const o=e-r[i];return{line:i,column:o}}}const s=/\w/;class Mappings{constructor(e){this.hires=e;this.generatedCodeLine=0;this.generatedCodeColumn=0;this.raw=[];this.rawSegments=this.raw[this.generatedCodeLine]=[];this.pending=null}addEdit(e,t,r,n){if(t.length){let i=t.indexOf("\n",0);let o=-1;while(i>=0){const s=[this.generatedCodeColumn,e,r.line,r.column];if(n>=0){s.push(n)}this.rawSegments.push(s);this.generatedCodeLine+=1;this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0;o=i;i=t.indexOf("\n",i+1)}const s=[this.generatedCodeColumn,e,r.line,r.column];if(n>=0){s.push(n)}this.rawSegments.push(s);this.advance(t.slice(o+1))}else if(this.pending){this.rawSegments.push(this.pending);this.advance(t)}this.pending=null}addUneditedChunk(e,t,r,n,i){let o=t.start;let a=true;let l=false;while(o<t.end){if(this.hires||a||i.has(o)){const t=[this.generatedCodeColumn,e,n.line,n.column];if(this.hires==="boundary"){if(s.test(r[o])){if(!l){this.rawSegments.push(t);l=true}}else{this.rawSegments.push(t);l=false}}else{this.rawSegments.push(t)}}if(r[o]==="\n"){n.line+=1;n.column=0;this.generatedCodeLine+=1;this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0;a=true}else{n.column+=1;this.generatedCodeColumn+=1;a=false}o+=1}this.pending=null}advance(e){if(!e)return;const t=e.split("\n");if(t.length>1){for(let e=0;e<t.length-1;e++){this.generatedCodeLine++;this.raw[this.generatedCodeLine]=this.rawSegments=[]}this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}}const a="\n";const l={insertLeft:false,insertRight:false,storeName:false};class MagicString{constructor(e,t={}){const r=new Chunk(0,e.length,e);Object.defineProperties(this,{original:{writable:true,value:e},outro:{writable:true,value:""},intro:{writable:true,value:""},firstChunk:{writable:true,value:r},lastChunk:{writable:true,value:r},lastSearchedChunk:{writable:true,value:r},byStart:{writable:true,value:{}},byEnd:{writable:true,value:{}},filename:{writable:true,value:t.filename},indentExclusionRanges:{writable:true,value:t.indentExclusionRanges},sourcemapLocations:{writable:true,value:new BitSet},storedNames:{writable:true,value:{}},indentStr:{writable:true,value:undefined},ignoreList:{writable:true,value:t.ignoreList}});this.byStart[0]=r;this.byEnd[e.length]=r}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!=="string")throw new TypeError("outro content must be a string");this.outro+=e;return this}appendLeft(e,t){if(typeof t!=="string")throw new TypeError("inserted content must be a string");this._split(e);const r=this.byEnd[e];if(r){r.appendLeft(t)}else{this.intro+=t}return this}appendRight(e,t){if(typeof t!=="string")throw new TypeError("inserted content must be a string");this._split(e);const r=this.byStart[e];if(r){r.appendRight(t)}else{this.outro+=t}return this}clone(){const e=new MagicString(this.original,{filename:this.filename});let t=this.firstChunk;let r=e.firstChunk=e.lastSearchedChunk=t.clone();while(t){e.byStart[r.start]=r;e.byEnd[r.end]=r;const n=t.next;const i=n&&n.clone();if(i){r.next=i;i.previous=r;r=i}t=n}e.lastChunk=r;if(this.indentExclusionRanges){e.indentExclusionRanges=this.indentExclusionRanges.slice()}e.sourcemapLocations=new BitSet(this.sourcemapLocations);e.intro=this.intro;e.outro=this.outro;return e}generateDecodedMap(e){e=e||{};const t=0;const r=Object.keys(this.storedNames);const n=new Mappings(e.hires);const i=getLocator(this.original);if(this.intro){n.advance(this.intro)}this.firstChunk.eachNext((e=>{const o=i(e.start);if(e.intro.length)n.advance(e.intro);if(e.edited){n.addEdit(t,e.content,o,e.storeName?r.indexOf(e.original):-1)}else{n.addUneditedChunk(t,e,this.original,o,this.sourcemapLocations)}if(e.outro.length)n.advance(e.outro)}));return{file:e.file?e.file.split(/[/\\]/).pop():undefined,sources:[e.source?getRelativePath(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:undefined,names:r,mappings:n.raw,x_google_ignoreList:this.ignoreList?[t]:undefined}}generateMap(e){return new SourceMap(this.generateDecodedMap(e))}_ensureindentStr(){if(this.indentStr===undefined){this.indentStr=guessIndent(this.original)}}_getRawIndentString(){this._ensureindentStr();return this.indentStr}getIndentString(){this._ensureindentStr();return this.indentStr===null?"\t":this.indentStr}indent(e,t){const r=/^[^\r\n]/gm;if(isObject(e)){t=e;e=undefined}if(e===undefined){this._ensureindentStr();e=this.indentStr||"\t"}if(e==="")return this;t=t||{};const n={};if(t.exclude){const e=typeof t.exclude[0]==="number"?[t.exclude]:t.exclude;e.forEach((e=>{for(let t=e[0];t<e[1];t+=1){n[t]=true}}))}let i=t.indentStart!==false;const replacer=t=>{if(i)return`${e}${t}`;i=true;return t};this.intro=this.intro.replace(r,replacer);let o=0;let s=this.firstChunk;while(s){const t=s.end;if(s.edited){if(!n[o]){s.content=s.content.replace(r,replacer);if(s.content.length){i=s.content[s.content.length-1]==="\n"}}}else{o=s.start;while(o<t){if(!n[o]){const t=this.original[o];if(t==="\n"){i=true}else if(t!=="\r"&&i){i=false;if(o===s.start){s.prependRight(e)}else{this._splitChunk(s,o);s=s.next;s.prependRight(e)}}}o+=1}}o=s.end;s=s.next}this.outro=this.outro.replace(r,replacer);return this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,t){if(!l.insertLeft){console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead");l.insertLeft=true}return this.appendLeft(e,t)}insertRight(e,t){if(!l.insertRight){console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead");l.insertRight=true}return this.prependRight(e,t)}move(e,t,r){if(r>=e&&r<=t)throw new Error("Cannot move a selection inside itself");this._split(e);this._split(t);this._split(r);const n=this.byStart[e];const i=this.byEnd[t];const o=n.previous;const s=i.next;const a=this.byStart[r];if(!a&&i===this.lastChunk)return this;const l=a?a.previous:this.lastChunk;if(o)o.next=s;if(s)s.previous=o;if(l)l.next=n;if(a)a.previous=i;if(!n.previous)this.firstChunk=i.next;if(!i.next){this.lastChunk=n.previous;this.lastChunk.next=null}n.previous=l;i.next=a||null;if(!l)this.firstChunk=n;if(!a)this.lastChunk=i;return this}overwrite(e,t,r,n){n=n||{};return this.update(e,t,r,{...n,overwrite:!n.contentOnly})}update(e,t,r,n){if(typeof r!=="string")throw new TypeError("replacement content must be a string");while(e<0)e+=this.original.length;while(t<0)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e);this._split(t);if(n===true){if(!l.storeName){console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string");l.storeName=true}n={storeName:true}}const i=n!==undefined?n.storeName:false;const o=n!==undefined?n.overwrite:false;if(i){const r=this.original.slice(e,t);Object.defineProperty(this.storedNames,r,{writable:true,value:true,enumerable:true})}const s=this.byStart[e];const a=this.byEnd[t];if(s){let e=s;while(e!==a){if(e.next!==this.byStart[e.end]){throw new Error("Cannot overwrite across a split point")}e=e.next;e.edit("",false)}s.edit(r,i,!o)}else{const n=new Chunk(e,t,"").edit(r,i);a.next=n;n.previous=a}return this}prepend(e){if(typeof e!=="string")throw new TypeError("outro content must be a string");this.intro=e+this.intro;return this}prependLeft(e,t){if(typeof t!=="string")throw new TypeError("inserted content must be a string");this._split(e);const r=this.byEnd[e];if(r){r.prependLeft(t)}else{this.intro=t+this.intro}return this}prependRight(e,t){if(typeof t!=="string")throw new TypeError("inserted content must be a string");this._split(e);const r=this.byStart[e];if(r){r.prependRight(t)}else{this.outro=t+this.outro}return this}remove(e,t){while(e<0)e+=this.original.length;while(t<0)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e);this._split(t);let r=this.byStart[e];while(r){r.intro="";r.outro="";r.edit("");r=t>r.end?this.byStart[r.end]:null}return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);if(this.intro.length)return this.intro[this.intro.length-1];return""}lastLine(){let e=this.outro.lastIndexOf(a);if(e!==-1)return this.outro.substr(e+1);let t=this.outro;let r=this.lastChunk;do{if(r.outro.length>0){e=r.outro.lastIndexOf(a);if(e!==-1)return r.outro.substr(e+1)+t;t=r.outro+t}if(r.content.length>0){e=r.content.lastIndexOf(a);if(e!==-1)return r.content.substr(e+1)+t;t=r.content+t}if(r.intro.length>0){e=r.intro.lastIndexOf(a);if(e!==-1)return r.intro.substr(e+1)+t;t=r.intro+t}}while(r=r.previous);e=this.intro.lastIndexOf(a);if(e!==-1)return this.intro.substr(e+1)+t;return this.intro+t}slice(e=0,t=this.original.length){while(e<0)e+=this.original.length;while(t<0)t+=this.original.length;let r="";let n=this.firstChunk;while(n&&(n.start>e||n.end<=e)){if(n.start<t&&n.end>=t){return r}n=n.next}if(n&&n.edited&&n.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const i=n;while(n){if(n.intro&&(i!==n||n.start===e)){r+=n.intro}const o=n.start<t&&n.end>=t;if(o&&n.edited&&n.end!==t)throw new Error(`Cannot use replaced character ${t} as slice end anchor.`);const s=i===n?e-n.start:0;const a=o?n.content.length+t-n.end:n.content.length;r+=n.content.slice(s,a);if(n.outro&&(!o||n.end===t)){r+=n.outro}if(o){break}n=n.next}return r}snip(e,t){const r=this.clone();r.remove(0,e);r.remove(t,r.original.length);return r}_split(e){if(this.byStart[e]||this.byEnd[e])return;let t=this.lastSearchedChunk;const r=e>t.end;while(t){if(t.contains(e))return this._splitChunk(t,e);t=r?this.byStart[t.end]:this.byEnd[t.start]}}_splitChunk(e,t){if(e.edited&&e.content.length){const r=getLocator(this.original)(t);throw new Error(`Cannot split a chunk that has already been edited (${r.line}:${r.column} – "${e.original}")`)}const r=e.split(t);this.byEnd[t]=e;this.byStart[t]=r;this.byEnd[r.end]=r;if(e===this.lastChunk)this.lastChunk=r;this.lastSearchedChunk=e;return true}toString(){let e=this.intro;let t=this.firstChunk;while(t){e+=t.toString();t=t.next}return e+this.outro}isEmpty(){let e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return false}while(e=e.next);return true}length(){let e=this.firstChunk;let t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const t=new RegExp((e||"\\s")+"+$");this.outro=this.outro.replace(t,"");if(this.outro.length)return true;let r=this.lastChunk;do{const e=r.end;const n=r.trimEnd(t);if(r.end!==e){if(this.lastChunk===r){this.lastChunk=r.next}this.byEnd[r.end]=r;this.byStart[r.next.start]=r.next;this.byEnd[r.next.end]=r.next}if(n)return true;r=r.previous}while(r);return false}trimEnd(e){this.trimEndAborted(e);return this}trimStartAborted(e){const t=new RegExp("^"+(e||"\\s")+"+");this.intro=this.intro.replace(t,"");if(this.intro.length)return true;let r=this.firstChunk;do{const e=r.end;const n=r.trimStart(t);if(r.end!==e){if(r===this.lastChunk)this.lastChunk=r.next;this.byEnd[r.end]=r;this.byStart[r.next.start]=r.next;this.byEnd[r.next.end]=r.next}if(n)return true;r=r.next}while(r);return false}trimStart(e){this.trimStartAborted(e);return this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,t){function getReplacement(e,r){if(typeof t==="string"){return t.replace(/\$(\$|&|\d+)/g,((t,r)=>{if(r==="$")return"$";if(r==="&")return e[0];const n=+r;if(n<e.length)return e[+r];return`$${r}`}))}else{return t(...e,e.index,r,e.groups)}}function matchAll(e,t){let r;const n=[];while(r=e.exec(t)){n.push(r)}return n}if(e.global){const t=matchAll(e,this.original);t.forEach((e=>{if(e.index!=null)this.overwrite(e.index,e.index+e[0].length,getReplacement(e,this.original))}))}else{const t=this.original.match(e);if(t&&t.index!=null)this.overwrite(t.index,t.index+t[0].length,getReplacement(t,this.original))}return this}_replaceString(e,t){const{original:r}=this;const n=r.indexOf(e);if(n!==-1){this.overwrite(n,n+e.length,t)}return this}replace(e,t){if(typeof e==="string"){return this._replaceString(e,t)}return this._replaceRegexp(e,t)}_replaceAllString(e,t){const{original:r}=this;const n=e.length;for(let i=r.indexOf(e);i!==-1;i=r.indexOf(e,i+n)){this.overwrite(i,i+n,t)}return this}replaceAll(e,t){if(typeof e==="string"){return this._replaceAllString(e,t)}if(!e.global){throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument")}return this._replaceRegexp(e,t)}}const c=Object.prototype.hasOwnProperty;class Bundle{constructor(e={}){this.intro=e.intro||"";this.separator=e.separator!==undefined?e.separator:"\n";this.sources=[];this.uniqueSources=[];this.uniqueSourceIndexByFilename={}}addSource(e){if(e instanceof MagicString){return this.addSource({content:e,filename:e.filename,separator:this.separator})}if(!isObject(e)||!e.content){throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`")}["filename","ignoreList","indentExclusionRanges","separator"].forEach((t=>{if(!c.call(e,t))e[t]=e.content[t]}));if(e.separator===undefined){e.separator=this.separator}if(e.filename){if(!c.call(this.uniqueSourceIndexByFilename,e.filename)){this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length;this.uniqueSources.push({filename:e.filename,content:e.content.original})}else{const t=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==t.content){throw new Error(`Illegal source: same filename (${e.filename}), different contents`)}}}this.sources.push(e);return this}append(e,t){this.addSource({content:new MagicString(e),separator:t&&t.separator||""});return this}clone(){const e=new Bundle({intro:this.intro,separator:this.separator});this.sources.forEach((t=>{e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})}));return e}generateDecodedMap(e={}){const t=[];let r=undefined;this.sources.forEach((e=>{Object.keys(e.content.storedNames).forEach((e=>{if(!~t.indexOf(e))t.push(e)}))}));const n=new Mappings(e.hires);if(this.intro){n.advance(this.intro)}this.sources.forEach(((e,i)=>{if(i>0){n.advance(this.separator)}const o=e.filename?this.uniqueSourceIndexByFilename[e.filename]:-1;const s=e.content;const a=getLocator(s.original);if(s.intro){n.advance(s.intro)}s.firstChunk.eachNext((r=>{const i=a(r.start);if(r.intro.length)n.advance(r.intro);if(e.filename){if(r.edited){n.addEdit(o,r.content,i,r.storeName?t.indexOf(r.original):-1)}else{n.addUneditedChunk(o,r,s.original,i,s.sourcemapLocations)}}else{n.advance(r.content)}if(r.outro.length)n.advance(r.outro)}));if(s.outro){n.advance(s.outro)}if(e.ignoreList&&o!==-1){if(r===undefined){r=[]}r.push(o)}}));return{file:e.file?e.file.split(/[/\\]/).pop():undefined,sources:this.uniqueSources.map((t=>e.file?getRelativePath(e.file,t.filename):t.filename)),sourcesContent:this.uniqueSources.map((t=>e.includeContent?t.content:null)),names:t,mappings:n.raw,x_google_ignoreList:r}}generateMap(e){return new SourceMap(this.generateDecodedMap(e))}getIndentString(){const e={};this.sources.forEach((t=>{const r=t.content._getRawIndentString();if(r===null)return;if(!e[r])e[r]=0;e[r]+=1}));return Object.keys(e).sort(((t,r)=>e[t]-e[r]))[0]||"\t"}indent(e){if(!arguments.length){e=this.getIndentString()}if(e==="")return this;let t=!this.intro||this.intro.slice(-1)==="\n";this.sources.forEach(((r,n)=>{const i=r.separator!==undefined?r.separator:this.separator;const o=t||n>0&&/\r?\n$/.test(i);r.content.indent(e,{exclude:r.indentExclusionRanges,indentStart:o});t=r.content.lastChar()==="\n"}));if(this.intro){this.intro=e+this.intro.replace(/^[^\n]/gm,((t,r)=>r>0?e+t:t))}return this}prepend(e){this.intro=e+this.intro;return this}toString(){const e=this.sources.map(((e,t)=>{const r=e.separator!==undefined?e.separator:this.separator;const n=(t>0?r:"")+e.content.toString();return n})).join("");return this.intro+e}isEmpty(){if(this.intro.length&&this.intro.trim())return false;if(this.sources.some((e=>!e.content.isEmpty())))return false;return true}length(){return this.sources.reduce(((e,t)=>e+t.content.length()),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimStart(e){const t=new RegExp("^"+(e||"\\s")+"+");this.intro=this.intro.replace(t,"");if(!this.intro){let t;let r=0;do{t=this.sources[r++];if(!t){break}}while(!t.content.trimStartAborted(e))}return this}trimEnd(e){const t=new RegExp((e||"\\s")+"+$");let r;let n=this.sources.length-1;do{r=this.sources[n--];if(!r){this.intro=this.intro.replace(t,"");break}}while(!r.content.trimEndAborted(e));return this}}MagicString.Bundle=Bundle;MagicString.SourceMap=SourceMap;MagicString.default=MagicString;e.exports=MagicString},332:(e,t,r)=>{"use strict";const n=r(37);const i=r(419);const o=process.env;let s;if(i("no-color")||i("no-colors")||i("color=false")){s=false}else if(i("color")||i("colors")||i("color=true")||i("color=always")){s=true}if("FORCE_COLOR"in o){s=o.FORCE_COLOR.length===0||parseInt(o.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(s===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!e.isTTY&&s!==true){return 0}const t=s?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in o))||o.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}if(o.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},188:e=>{"use strict";e.exports=require("module")},37:e=>{"use strict";e.exports=require("os")},17:e=>{"use strict";e.exports=require("path")},440:e=>{"use strict";e.exports=require("typescript")},310:e=>{"use strict";e.exports=require("url")},956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.codeFrameColumns=codeFrameColumns;t["default"]=_default;var n=r(72);var i=_interopRequireWildcard(r(673),true);function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}let o=undefined;function getChalk(e){if(e){var t;(t=o)!=null?t:o=new i.default.constructor({enabled:true,level:1});return o}return i.default}let s=false;function getDefs(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}const a=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,r){const n=Object.assign({column:0,line:-1},e.start);const i=Obje