create-zuplo-api 2.3.0 → 6.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +20 -0
- package/README.md +120 -9
- package/dist/index.js +67 -26
- package/dist/templates/default/README-template.md +29 -0
- package/dist/templates/default/eslintrc.json +7 -0
- package/dist/templates/default/prettierrc.json +1 -0
- package/dist/templates/default/vscode/launch.json +7 -7
- package/dist/templates/default/zuplo.jsonc +1 -1
- package/dist/templates/default-empty/config/policies.json +3 -0
- package/dist/templates/default-empty/config/routes.oas.json +5 -0
- package/dist/templates/default-empty/env.example +2 -0
- package/dist/templates/default-empty/eslintrc.json +7 -0
- package/dist/templates/default-empty/gitignore +10 -0
- package/dist/templates/default-empty/prettierrc.json +1 -0
- package/dist/templates/default-empty/tsconfig.json +19 -0
- package/dist/templates/default-empty/zuplo.jsonc +4 -0
- package/package.json +43 -53
- package/LICENSE.txt +0 -20
- package/create-zuplo-api.js +0 -6
- package/dist/fe522462c16fc21893a4.js +0 -1
- package/dist/package.json +0 -3
- package/dist/src/cli.d.ts +0 -2
- package/dist/src/cli.d.ts.map +0 -1
- package/dist/src/common/analytics/lib.d.ts +0 -18
- package/dist/src/common/analytics/lib.d.ts.map +0 -1
- package/dist/src/common/constants.d.ts +0 -5
- package/dist/src/common/constants.d.ts.map +0 -1
- package/dist/src/common/machine-id/lib.d.ts +0 -2
- package/dist/src/common/machine-id/lib.d.ts.map +0 -1
- package/dist/src/common/output.d.ts +0 -9
- package/dist/src/common/output.d.ts.map +0 -1
- package/dist/src/create/create.d.ts +0 -6
- package/dist/src/create/create.d.ts.map +0 -1
- package/dist/src/create/handler.d.ts +0 -2
- package/dist/src/create/handler.d.ts.map +0 -1
- package/dist/src/create/package-json.d.ts +0 -16
- package/dist/src/create/package-json.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/utils.d.ts +0 -2
- package/dist/src/utils.d.ts.map +0 -1
- package/dist/templates/default/_README.md +0 -1
- package/dist/templates/default/eslintrc.js +0 -11
package/dist/index.js
CHANGED
|
@@ -1,31 +1,72 @@
|
|
|
1
|
-
import{createRequire as e}from"module";var t={1642:(e,t,n)=>{e=n.nmd(e);const wrapAnsi16=(e,t)=>(...n)=>{const s=e(...n);return`[${s+t}m`};const wrapAnsi256=(e,t)=>(...n)=>{const s=e(...n);return`[${38+t};5;${s}m`};const wrapAnsi16m=(e,t)=>(...n)=>{const s=e(...n);return`[${38+t};2;${s[0]};${s[1]};${s[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,n)=>[e,t,n];const setLazyProperty=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const s=n();Object.defineProperty(e,t,{value:s,enumerable:true,configurable:true});return s},enumerable:true,configurable:true})};let s;const makeDynamicStyles=(e,t,r,o)=>{if(s===undefined){s=n(7493)}const i=o?10:0;const a={};for(const[n,o]of Object.entries(s)){const s=n==="ansi16"?"ansi":n;if(n===t){a[s]=e(r,i)}else if(typeof o==="object"){a[s]=e(o[t],i)}}return a};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],blackBright:[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.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,s]of Object.entries(t)){for(const[n,r]of Object.entries(s)){t[n]={open:`[${r[0]}m`,close:`[${r[1]}m`};s[n]=t[n];e.set(r[0],r[1])}Object.defineProperty(t,n,{value:s,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="[39m";t.bgColor.close="[49m";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},8976:(e,t,n)=>{const s=n(1642);const{stdout:r,stderr:o}=n(3105);const{stringReplaceAll:i,stringEncaseCRLFWithFirstIndex:a}=n(4821);const{isArray:c}=Array;const u=["ansi","ansi","ansi256","ansi16m"];const l=Object.create(null);const applyOptions=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const n=r?r.level:0;e.level=t.level===undefined?n:t.level};class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const t={};applyOptions(t,e);t.template=(...e)=>chalkTag(t.template,...e);Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};t.template.Instance=ChalkClass;return t.template};function Chalk(e){return chalkFactory(e)}for(const[e,t]of Object.entries(s)){l[e]={get(){const n=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:n});return n}}}l.visible={get(){const e=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of p){l[e]={get(){const{level:t}=this;return function(...n){const r=createStyler(s.color[u[t]][e](...n),s.color.close,this._styler);return createBuilder(this,r,this._isEmpty)}}}}for(const e of p){const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const{level:t}=this;return function(...n){const r=createStyler(s.bgColor[u[t]][e](...n),s.bgColor.close,this._styler);return createBuilder(this,r,this._isEmpty)}}}}const d=Object.defineProperties((()=>{}),{...l,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const createStyler=(e,t,n)=>{let s;let r;if(n===undefined){s=e;r=t}else{s=n.openAll+e;r=t+n.closeAll}return{open:e,close:t,openAll:s,closeAll:r,parent:n}};const createBuilder=(e,t,n)=>{const builder=(...e)=>{if(c(e[0])&&c(e[0].raw)){return applyStyle(builder,chalkTag(builder,...e))}return applyStyle(builder,e.length===1?""+e[0]:e.join(" "))};Object.setPrototypeOf(builder,d);builder._generator=e;builder._styler=t;builder._isEmpty=n;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let n=e._styler;if(n===undefined){return t}const{openAll:s,closeAll:r}=n;if(t.indexOf("")!==-1){while(n!==undefined){t=i(t,n.close,n.open);n=n.parent}}const o=t.indexOf("\n");if(o!==-1){t=a(t,r,s,o)}return s+t+r};let f;const chalkTag=(e,...t)=>{const[s]=t;if(!c(s)||!c(s.raw)){return t.join(" ")}const r=t.slice(1);const o=[s.raw[0]];for(let e=1;e<s.length;e++){o.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"),String(s.raw[e]))}if(f===undefined){f=n(9584)}return f(e,o.join(""))};Object.defineProperties(Chalk.prototype,l);const m=Chalk();m.supportsColor=r;m.stderr=Chalk({level:o?o.level:0});m.stderr.supportsColor=o;e.exports=m},9584:e=>{const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const s=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const r=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|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){const t=e[0]==="u";const n=e[1]==="{";if(t&&!n&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&n){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return o.get(e)||e}function parseArguments(e,t){const n=[];const o=t.trim().split(/\s*,\s*/g);let i;for(const t of o){const o=Number(t);if(!Number.isNaN(o)){n.push(o)}else if(i=t.match(s)){n.push(i[2].replace(r,((e,t,n)=>t?unescape(t):n)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return n}function parseStyle(e){n.lastIndex=0;const t=[];let s;while((s=n.exec(e))!==null){const e=s[1];if(s[2]){const n=parseArguments(e,s[2]);t.push([e].concat(n))}else{t.push([e])}}return t}function buildStyle(e,t){const n={};for(const e of t){for(const t of e.styles){n[t[0]]=e.inverse?null:t.slice(1)}}let s=e;for(const[e,t]of Object.entries(n)){if(!Array.isArray(t)){continue}if(!(e in s)){throw new Error(`Unknown Chalk style: ${e}`)}s=t.length>0?s[e](...t):s[e]}return s}e.exports=(e,n)=>{const s=[];const r=[];let o=[];n.replace(t,((t,n,i,a,c,u)=>{if(n){o.push(unescape(n))}else if(a){const t=o.join("");o=[];r.push(s.length===0?t:buildStyle(e,s)(t));s.push({inverse:i,styles:parseStyle(a)})}else if(c){if(s.length===0){throw new Error("Found extraneous } in Chalk template literal")}r.push(buildStyle(e,s)(o.join("")));o=[];s.pop()}else{o.push(u)}}));r.push(o.join(""));if(s.length>0){const e=`Chalk template literal is missing ${s.length} closing bracket${s.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return r.join("")}},4821:e=>{const stringReplaceAll=(e,t,n)=>{let s=e.indexOf(t);if(s===-1){return e}const r=t.length;let o=0;let i="";do{i+=e.substr(o,s-o)+t+n;o=s+r;s=e.indexOf(t,o)}while(s!==-1);i+=e.substr(o);return i};const stringEncaseCRLFWithFirstIndex=(e,t,n,s)=>{let r=0;let o="";do{const i=e[s-1]==="\r";o+=e.substr(r,(i?s-1:s)-r)+t+(i?"\r\n":"\n")+n;r=s+1;s=e.indexOf("\n",r)}while(s!==-1);o+=e.substr(r);return o};e.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},3644:(e,t,n)=>{const s=n(524);const r={};for(const e of Object.keys(s)){r[s[e]]=e}const o={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"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e])){throw new Error("missing channels property: "+e)}if(!("labels"in o[e])){throw new Error("missing channel labels property: "+e)}if(o[e].labels.length!==o[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:n}=o[e];delete o[e].channels;delete o[e].labels;Object.defineProperty(o[e],"channels",{value:t});Object.defineProperty(o[e],"labels",{value:n})}o.rgb.hsl=function(e){const t=e[0]/255;const n=e[1]/255;const s=e[2]/255;const r=Math.min(t,n,s);const o=Math.max(t,n,s);const i=o-r;let a;let c;if(o===r){a=0}else if(t===o){a=(n-s)/i}else if(n===o){a=2+(s-t)/i}else if(s===o){a=4+(t-n)/i}a=Math.min(a*60,360);if(a<0){a+=360}const u=(r+o)/2;if(o===r){c=0}else if(u<=.5){c=i/(o+r)}else{c=i/(2-o-r)}return[a,c*100,u*100]};o.rgb.hsv=function(e){let t;let n;let s;let r;let o;const i=e[0]/255;const a=e[1]/255;const c=e[2]/255;const u=Math.max(i,a,c);const l=u-Math.min(i,a,c);const diffc=function(e){return(u-e)/6/l+1/2};if(l===0){r=0;o=0}else{o=l/u;t=diffc(i);n=diffc(a);s=diffc(c);if(i===u){r=s-n}else if(a===u){r=1/3+t-s}else if(c===u){r=2/3+n-t}if(r<0){r+=1}else if(r>1){r-=1}}return[r*360,o*100,u*100]};o.rgb.hwb=function(e){const t=e[0];const n=e[1];let s=e[2];const r=o.rgb.hsl(e)[0];const i=1/255*Math.min(t,Math.min(n,s));s=1-1/255*Math.max(t,Math.max(n,s));return[r,i*100,s*100]};o.rgb.cmyk=function(e){const t=e[0]/255;const n=e[1]/255;const s=e[2]/255;const r=Math.min(1-t,1-n,1-s);const o=(1-t-r)/(1-r)||0;const i=(1-n-r)/(1-r)||0;const a=(1-s-r)/(1-r)||0;return[o*100,i*100,a*100,r*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.keyword=function(e){const t=r[e];if(t){return t}let n=Infinity;let o;for(const t of Object.keys(s)){const r=s[t];const i=comparativeDistance(e,r);if(i<n){n=i;o=t}}return o};o.keyword.rgb=function(e){return s[e]};o.rgb.xyz=function(e){let t=e[0]/255;let n=e[1]/255;let s=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;const r=t*.4124+n*.3576+s*.1805;const o=t*.2126+n*.7152+s*.0722;const i=t*.0193+n*.1192+s*.9505;return[r*100,o*100,i*100]};o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0];let s=t[1];let r=t[2];n/=95.047;s/=100;r/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;s=s>.008856?s**(1/3):7.787*s+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*s-16;const a=500*(n-s);const c=200*(s-r);return[i,a,c]};o.hsl.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const s=e[2]/100;let r;let o;let i;if(n===0){i=s*255;return[i,i,i]}if(s<.5){r=s*(1+n)}else{r=s+n-s*n}const a=2*s-r;const c=[0,0,0];for(let e=0;e<3;e++){o=t+1/3*-(e-1);if(o<0){o++}if(o>1){o--}if(6*o<1){i=a+(r-a)*6*o}else if(2*o<1){i=r}else if(3*o<2){i=a+(r-a)*(2/3-o)*6}else{i=a}c[e]=i*255}return c};o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100;let s=e[2]/100;let r=n;const o=Math.max(s,.01);s*=2;n*=s<=1?s:2-s;r*=o<=1?o:2-o;const i=(s+n)/2;const a=s===0?2*r/(o+r):2*n/(s+n);return[t,a*100,i*100]};o.hsv.rgb=function(e){const t=e[0]/60;const n=e[1]/100;let s=e[2]/100;const r=Math.floor(t)%6;const o=t-Math.floor(t);const i=255*s*(1-n);const a=255*s*(1-n*o);const c=255*s*(1-n*(1-o));s*=255;switch(r){case 0:return[s,c,i];case 1:return[a,s,i];case 2:return[i,s,c];case 3:return[i,a,s];case 4:return[c,i,s];case 5:return[s,i,a]}};o.hsv.hsl=function(e){const t=e[0];const n=e[1]/100;const s=e[2]/100;const r=Math.max(s,.01);let o;let i;i=(2-n)*s;const a=(2-n)*r;o=n*r;o/=a<=1?a:2-a;o=o||0;i/=2;return[t,o*100,i*100]};o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100;let s=e[2]/100;const r=n+s;let o;if(r>1){n/=r;s/=r}const i=Math.floor(6*t);const a=1-s;o=6*t-i;if((i&1)!==0){o=1-o}const c=n+o*(a-n);let u;let l;let p;switch(i){default:case 6:case 0:u=a;l=c;p=n;break;case 1:u=c;l=a;p=n;break;case 2:u=n;l=a;p=c;break;case 3:u=n;l=c;p=a;break;case 4:u=c;l=n;p=a;break;case 5:u=a;l=n;p=c;break}return[u*255,l*255,p*255]};o.cmyk.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const s=e[2]/100;const r=e[3]/100;const o=1-Math.min(1,t*(1-r)+r);const i=1-Math.min(1,n*(1-r)+r);const a=1-Math.min(1,s*(1-r)+r);return[o*255,i*255,a*255]};o.xyz.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const s=e[2]/100;let r;let o;let i;r=t*3.2406+n*-1.5372+s*-.4986;o=t*-.9689+n*1.8758+s*.0415;i=t*.0557+n*-.204+s*1.057;r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92;r=Math.min(Math.max(0,r),1);o=Math.min(Math.max(0,o),1);i=Math.min(Math.max(0,i),1);return[r*255,o*255,i*255]};o.xyz.lab=function(e){let t=e[0];let n=e[1];let s=e[2];t/=95.047;n/=100;s/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;s=s>.008856?s**(1/3):7.787*s+16/116;const r=116*n-16;const o=500*(t-n);const i=200*(n-s);return[r,o,i]};o.lab.xyz=function(e){const t=e[0];const n=e[1];const s=e[2];let r;let o;let i;o=(t+16)/116;r=n/500+o;i=o-s/200;const a=o**3;const c=r**3;const u=i**3;o=a>.008856?a:(o-16/116)/7.787;r=c>.008856?c:(r-16/116)/7.787;i=u>.008856?u:(i-16/116)/7.787;r*=95.047;o*=100;i*=108.883;return[r,o,i]};o.lab.lch=function(e){const t=e[0];const n=e[1];const s=e[2];let r;const o=Math.atan2(s,n);r=o*360/2/Math.PI;if(r<0){r+=360}const i=Math.sqrt(n*n+s*s);return[t,i,r]};o.lch.lab=function(e){const t=e[0];const n=e[1];const s=e[2];const r=s/360*2*Math.PI;const o=n*Math.cos(r);const i=n*Math.sin(r);return[t,o,i]};o.rgb.ansi16=function(e,t=null){const[n,s,r]=e;let i=t===null?o.rgb.hsv(e)[2]:t;i=Math.round(i/50);if(i===0){return 30}let a=30+(Math.round(r/255)<<2|Math.round(s/255)<<1|Math.round(n/255));if(i===2){a+=60}return a};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){const t=e[0];const n=e[1];const s=e[2];if(t===n&&n===s){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const r=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(s/255*5);return r};o.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const n=(~~(e>50)+1)*.5;const s=(t&1)*n*255;const r=(t>>1&1)*n*255;const o=(t>>2&1)*n*255;return[s,r,o]};o.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const n=Math.floor(e/36)/5*255;const s=Math.floor((t=e%36)/6)/5*255;const r=t%6/5*255;return[n,s,r]};o.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let n=t[0];if(t[0].length===3){n=n.split("").map((e=>e+e)).join("")}const s=parseInt(n,16);const r=s>>16&255;const o=s>>8&255;const i=s&255;return[r,o,i]};o.rgb.hcg=function(e){const t=e[0]/255;const n=e[1]/255;const s=e[2]/255;const r=Math.max(Math.max(t,n),s);const o=Math.min(Math.min(t,n),s);const i=r-o;let a;let c;if(i<1){a=o/(1-i)}else{a=0}if(i<=0){c=0}else if(r===t){c=(n-s)/i%6}else if(r===n){c=2+(s-t)/i}else{c=4+(t-n)/i}c/=6;c%=1;return[c*360,i*100,a*100]};o.hsl.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const s=n<.5?2*t*n:2*t*(1-n);let r=0;if(s<1){r=(n-.5*s)/(1-s)}return[e[0],s*100,r*100]};o.hsv.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const s=t*n;let r=0;if(s<1){r=(n-s)/(1-s)}return[e[0],s*100,r*100]};o.hcg.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const s=e[2]/100;if(n===0){return[s*255,s*255,s*255]}const r=[0,0,0];const o=t%1*6;const i=o%1;const a=1-i;let c=0;switch(Math.floor(o)){case 0:r[0]=1;r[1]=i;r[2]=0;break;case 1:r[0]=a;r[1]=1;r[2]=0;break;case 2:r[0]=0;r[1]=1;r[2]=i;break;case 3:r[0]=0;r[1]=a;r[2]=1;break;case 4:r[0]=i;r[1]=0;r[2]=1;break;default:r[0]=1;r[1]=0;r[2]=a}c=(1-n)*s;return[(n*r[0]+c)*255,(n*r[1]+c)*255,(n*r[2]+c)*255]};o.hcg.hsv=function(e){const t=e[1]/100;const n=e[2]/100;const s=t+n*(1-t);let r=0;if(s>0){r=t/s}return[e[0],r*100,s*100]};o.hcg.hsl=function(e){const t=e[1]/100;const n=e[2]/100;const s=n*(1-t)+.5*t;let r=0;if(s>0&&s<.5){r=t/(2*s)}else if(s>=.5&&s<1){r=t/(2*(1-s))}return[e[0],r*100,s*100]};o.hcg.hwb=function(e){const t=e[1]/100;const n=e[2]/100;const s=t+n*(1-t);return[e[0],(s-t)*100,(1-s)*100]};o.hwb.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const s=1-n;const r=s-t;let o=0;if(r<1){o=(s-r)/(1-r)}return[e[0],r*100,o*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=function(e){return[0,0,e[0]]};o.gray.hsv=o.gray.hsl;o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const n=(t<<16)+(t<<8)+t;const s=n.toString(16).toUpperCase();return"000000".substring(s.length)+s};o.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},7493:(e,t,n)=>{const s=n(3644);const r=n(6885);const o={};const i=Object.keys(s);function wrapRaw(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}const s=e(t);if(typeof s==="object"){for(let e=s.length,t=0;t<e;t++){s[t]=Math.round(s[t])}}return s};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}i.forEach((e=>{o[e]={};Object.defineProperty(o[e],"channels",{value:s[e].channels});Object.defineProperty(o[e],"labels",{value:s[e].labels});const t=r(e);const n=Object.keys(t);n.forEach((n=>{const s=t[n];o[e][n]=wrapRounded(s);o[e][n].raw=wrapRaw(s)}))}));e.exports=o},6885:(e,t,n)=>{const s=n(3644);function buildGraph(){const e={};const t=Object.keys(s);for(let n=t.length,s=0;s<n;s++){e[t[s]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const n=[e];t[e].distance=0;while(n.length){const e=n.pop();const r=Object.keys(s[e]);for(let s=r.length,o=0;o<s;o++){const s=r[o];const i=t[s];if(i.distance===-1){i.distance=t[e].distance+1;i.parent=e;n.unshift(s)}}}return t}function link(e,t){return function(n){return t(e(n))}}function wrapConversion(e,t){const n=[t[e].parent,e];let r=s[t[e].parent][e];let o=t[e].parent;while(t[o].parent){n.unshift(t[o].parent);r=link(s[t[o].parent][o],r);o=t[o].parent}r.conversion=n;return r}e.exports=function(e){const t=deriveBFS(e);const n={};const s=Object.keys(t);for(let e=s.length,r=0;r<e;r++){const e=s[r];const o=t[e];if(o.parent===null){continue}n[e]=wrapConversion(e,t)}return n}},524:e=>{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]}},9352:e=>{e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const s=t.indexOf(n+e);const r=t.indexOf("--");return s!==-1&&(r===-1||s<r)}},3105:(e,t,n)=>{const s=n(2037);const r=n(6224);const o=n(9352);const{env:i}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){a=1}else if(i.FORCE_COLOR==="false"){a=0}else{a=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const n=a||0;if(i.TERM==="dumb"){return n}if(process.platform==="win32"){const e=s.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,r.isatty(1))),stderr:translateLevel(supportsColor(true,r.isatty(2)))}},5619:(e,t,n)=>{e=n.nmd(e);const wrapAnsi16=(e,t)=>(...n)=>{const s=e(...n);return`[${s+t}m`};const wrapAnsi256=(e,t)=>(...n)=>{const s=e(...n);return`[${38+t};5;${s}m`};const wrapAnsi16m=(e,t)=>(...n)=>{const s=e(...n);return`[${38+t};2;${s[0]};${s[1]};${s[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,n)=>[e,t,n];const setLazyProperty=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const s=n();Object.defineProperty(e,t,{value:s,enumerable:true,configurable:true});return s},enumerable:true,configurable:true})};let s;const makeDynamicStyles=(e,t,r,o)=>{if(s===undefined){s=n(5978)}const i=o?10:0;const a={};for(const[n,o]of Object.entries(s)){const s=n==="ansi16"?"ansi":n;if(n===t){a[s]=e(r,i)}else if(typeof o==="object"){a[s]=e(o[t],i)}}return a};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],blackBright:[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.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,s]of Object.entries(t)){for(const[n,r]of Object.entries(s)){t[n]={open:`[${r[0]}m`,close:`[${r[1]}m`};s[n]=t[n];e.set(r[0],r[1])}Object.defineProperty(t,n,{value:s,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="[39m";t.bgColor.close="[49m";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},7810:(e,t,n)=>{const s=n(5619);const{stdout:r,stderr:o}=n(2304);const{stringReplaceAll:i,stringEncaseCRLFWithFirstIndex:a}=n(2390);const{isArray:c}=Array;const u=["ansi","ansi","ansi256","ansi16m"];const l=Object.create(null);const applyOptions=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const n=r?r.level:0;e.level=t.level===undefined?n:t.level};class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const t={};applyOptions(t,e);t.template=(...e)=>chalkTag(t.template,...e);Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};t.template.Instance=ChalkClass;return t.template};function Chalk(e){return chalkFactory(e)}for(const[e,t]of Object.entries(s)){l[e]={get(){const n=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:n});return n}}}l.visible={get(){const e=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of p){l[e]={get(){const{level:t}=this;return function(...n){const r=createStyler(s.color[u[t]][e](...n),s.color.close,this._styler);return createBuilder(this,r,this._isEmpty)}}}}for(const e of p){const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const{level:t}=this;return function(...n){const r=createStyler(s.bgColor[u[t]][e](...n),s.bgColor.close,this._styler);return createBuilder(this,r,this._isEmpty)}}}}const d=Object.defineProperties((()=>{}),{...l,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const createStyler=(e,t,n)=>{let s;let r;if(n===undefined){s=e;r=t}else{s=n.openAll+e;r=t+n.closeAll}return{open:e,close:t,openAll:s,closeAll:r,parent:n}};const createBuilder=(e,t,n)=>{const builder=(...e)=>{if(c(e[0])&&c(e[0].raw)){return applyStyle(builder,chalkTag(builder,...e))}return applyStyle(builder,e.length===1?""+e[0]:e.join(" "))};Object.setPrototypeOf(builder,d);builder._generator=e;builder._styler=t;builder._isEmpty=n;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let n=e._styler;if(n===undefined){return t}const{openAll:s,closeAll:r}=n;if(t.indexOf("")!==-1){while(n!==undefined){t=i(t,n.close,n.open);n=n.parent}}const o=t.indexOf("\n");if(o!==-1){t=a(t,r,s,o)}return s+t+r};let f;const chalkTag=(e,...t)=>{const[s]=t;if(!c(s)||!c(s.raw)){return t.join(" ")}const r=t.slice(1);const o=[s.raw[0]];for(let e=1;e<s.length;e++){o.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"),String(s.raw[e]))}if(f===undefined){f=n(9602)}return f(e,o.join(""))};Object.defineProperties(Chalk.prototype,l);const m=Chalk();m.supportsColor=r;m.stderr=Chalk({level:o?o.level:0});m.stderr.supportsColor=o;e.exports=m},9602:e=>{const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const s=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const r=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|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){const t=e[0]==="u";const n=e[1]==="{";if(t&&!n&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&n){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return o.get(e)||e}function parseArguments(e,t){const n=[];const o=t.trim().split(/\s*,\s*/g);let i;for(const t of o){const o=Number(t);if(!Number.isNaN(o)){n.push(o)}else if(i=t.match(s)){n.push(i[2].replace(r,((e,t,n)=>t?unescape(t):n)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return n}function parseStyle(e){n.lastIndex=0;const t=[];let s;while((s=n.exec(e))!==null){const e=s[1];if(s[2]){const n=parseArguments(e,s[2]);t.push([e].concat(n))}else{t.push([e])}}return t}function buildStyle(e,t){const n={};for(const e of t){for(const t of e.styles){n[t[0]]=e.inverse?null:t.slice(1)}}let s=e;for(const[e,t]of Object.entries(n)){if(!Array.isArray(t)){continue}if(!(e in s)){throw new Error(`Unknown Chalk style: ${e}`)}s=t.length>0?s[e](...t):s[e]}return s}e.exports=(e,n)=>{const s=[];const r=[];let o=[];n.replace(t,((t,n,i,a,c,u)=>{if(n){o.push(unescape(n))}else if(a){const t=o.join("");o=[];r.push(s.length===0?t:buildStyle(e,s)(t));s.push({inverse:i,styles:parseStyle(a)})}else if(c){if(s.length===0){throw new Error("Found extraneous } in Chalk template literal")}r.push(buildStyle(e,s)(o.join("")));o=[];s.pop()}else{o.push(u)}}));r.push(o.join(""));if(s.length>0){const e=`Chalk template literal is missing ${s.length} closing bracket${s.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return r.join("")}},2390:e=>{const stringReplaceAll=(e,t,n)=>{let s=e.indexOf(t);if(s===-1){return e}const r=t.length;let o=0;let i="";do{i+=e.substr(o,s-o)+t+n;o=s+r;s=e.indexOf(t,o)}while(s!==-1);i+=e.substr(o);return i};const stringEncaseCRLFWithFirstIndex=(e,t,n,s)=>{let r=0;let o="";do{const i=e[s-1]==="\r";o+=e.substr(r,(i?s-1:s)-r)+t+(i?"\r\n":"\n")+n;r=s+1;s=e.indexOf("\n",r)}while(s!==-1);o+=e.substr(r);return o};e.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},1912:(e,t,n)=>{const s=n(6997);const r={};for(const e of Object.keys(s)){r[s[e]]=e}const o={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"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e])){throw new Error("missing channels property: "+e)}if(!("labels"in o[e])){throw new Error("missing channel labels property: "+e)}if(o[e].labels.length!==o[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:n}=o[e];delete o[e].channels;delete o[e].labels;Object.defineProperty(o[e],"channels",{value:t});Object.defineProperty(o[e],"labels",{value:n})}o.rgb.hsl=function(e){const t=e[0]/255;const n=e[1]/255;const s=e[2]/255;const r=Math.min(t,n,s);const o=Math.max(t,n,s);const i=o-r;let a;let c;if(o===r){a=0}else if(t===o){a=(n-s)/i}else if(n===o){a=2+(s-t)/i}else if(s===o){a=4+(t-n)/i}a=Math.min(a*60,360);if(a<0){a+=360}const u=(r+o)/2;if(o===r){c=0}else if(u<=.5){c=i/(o+r)}else{c=i/(2-o-r)}return[a,c*100,u*100]};o.rgb.hsv=function(e){let t;let n;let s;let r;let o;const i=e[0]/255;const a=e[1]/255;const c=e[2]/255;const u=Math.max(i,a,c);const l=u-Math.min(i,a,c);const diffc=function(e){return(u-e)/6/l+1/2};if(l===0){r=0;o=0}else{o=l/u;t=diffc(i);n=diffc(a);s=diffc(c);if(i===u){r=s-n}else if(a===u){r=1/3+t-s}else if(c===u){r=2/3+n-t}if(r<0){r+=1}else if(r>1){r-=1}}return[r*360,o*100,u*100]};o.rgb.hwb=function(e){const t=e[0];const n=e[1];let s=e[2];const r=o.rgb.hsl(e)[0];const i=1/255*Math.min(t,Math.min(n,s));s=1-1/255*Math.max(t,Math.max(n,s));return[r,i*100,s*100]};o.rgb.cmyk=function(e){const t=e[0]/255;const n=e[1]/255;const s=e[2]/255;const r=Math.min(1-t,1-n,1-s);const o=(1-t-r)/(1-r)||0;const i=(1-n-r)/(1-r)||0;const a=(1-s-r)/(1-r)||0;return[o*100,i*100,a*100,r*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.keyword=function(e){const t=r[e];if(t){return t}let n=Infinity;let o;for(const t of Object.keys(s)){const r=s[t];const i=comparativeDistance(e,r);if(i<n){n=i;o=t}}return o};o.keyword.rgb=function(e){return s[e]};o.rgb.xyz=function(e){let t=e[0]/255;let n=e[1]/255;let s=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;const r=t*.4124+n*.3576+s*.1805;const o=t*.2126+n*.7152+s*.0722;const i=t*.0193+n*.1192+s*.9505;return[r*100,o*100,i*100]};o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0];let s=t[1];let r=t[2];n/=95.047;s/=100;r/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;s=s>.008856?s**(1/3):7.787*s+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*s-16;const a=500*(n-s);const c=200*(s-r);return[i,a,c]};o.hsl.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const s=e[2]/100;let r;let o;let i;if(n===0){i=s*255;return[i,i,i]}if(s<.5){r=s*(1+n)}else{r=s+n-s*n}const a=2*s-r;const c=[0,0,0];for(let e=0;e<3;e++){o=t+1/3*-(e-1);if(o<0){o++}if(o>1){o--}if(6*o<1){i=a+(r-a)*6*o}else if(2*o<1){i=r}else if(3*o<2){i=a+(r-a)*(2/3-o)*6}else{i=a}c[e]=i*255}return c};o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100;let s=e[2]/100;let r=n;const o=Math.max(s,.01);s*=2;n*=s<=1?s:2-s;r*=o<=1?o:2-o;const i=(s+n)/2;const a=s===0?2*r/(o+r):2*n/(s+n);return[t,a*100,i*100]};o.hsv.rgb=function(e){const t=e[0]/60;const n=e[1]/100;let s=e[2]/100;const r=Math.floor(t)%6;const o=t-Math.floor(t);const i=255*s*(1-n);const a=255*s*(1-n*o);const c=255*s*(1-n*(1-o));s*=255;switch(r){case 0:return[s,c,i];case 1:return[a,s,i];case 2:return[i,s,c];case 3:return[i,a,s];case 4:return[c,i,s];case 5:return[s,i,a]}};o.hsv.hsl=function(e){const t=e[0];const n=e[1]/100;const s=e[2]/100;const r=Math.max(s,.01);let o;let i;i=(2-n)*s;const a=(2-n)*r;o=n*r;o/=a<=1?a:2-a;o=o||0;i/=2;return[t,o*100,i*100]};o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100;let s=e[2]/100;const r=n+s;let o;if(r>1){n/=r;s/=r}const i=Math.floor(6*t);const a=1-s;o=6*t-i;if((i&1)!==0){o=1-o}const c=n+o*(a-n);let u;let l;let p;switch(i){default:case 6:case 0:u=a;l=c;p=n;break;case 1:u=c;l=a;p=n;break;case 2:u=n;l=a;p=c;break;case 3:u=n;l=c;p=a;break;case 4:u=c;l=n;p=a;break;case 5:u=a;l=n;p=c;break}return[u*255,l*255,p*255]};o.cmyk.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const s=e[2]/100;const r=e[3]/100;const o=1-Math.min(1,t*(1-r)+r);const i=1-Math.min(1,n*(1-r)+r);const a=1-Math.min(1,s*(1-r)+r);return[o*255,i*255,a*255]};o.xyz.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const s=e[2]/100;let r;let o;let i;r=t*3.2406+n*-1.5372+s*-.4986;o=t*-.9689+n*1.8758+s*.0415;i=t*.0557+n*-.204+s*1.057;r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92;r=Math.min(Math.max(0,r),1);o=Math.min(Math.max(0,o),1);i=Math.min(Math.max(0,i),1);return[r*255,o*255,i*255]};o.xyz.lab=function(e){let t=e[0];let n=e[1];let s=e[2];t/=95.047;n/=100;s/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;s=s>.008856?s**(1/3):7.787*s+16/116;const r=116*n-16;const o=500*(t-n);const i=200*(n-s);return[r,o,i]};o.lab.xyz=function(e){const t=e[0];const n=e[1];const s=e[2];let r;let o;let i;o=(t+16)/116;r=n/500+o;i=o-s/200;const a=o**3;const c=r**3;const u=i**3;o=a>.008856?a:(o-16/116)/7.787;r=c>.008856?c:(r-16/116)/7.787;i=u>.008856?u:(i-16/116)/7.787;r*=95.047;o*=100;i*=108.883;return[r,o,i]};o.lab.lch=function(e){const t=e[0];const n=e[1];const s=e[2];let r;const o=Math.atan2(s,n);r=o*360/2/Math.PI;if(r<0){r+=360}const i=Math.sqrt(n*n+s*s);return[t,i,r]};o.lch.lab=function(e){const t=e[0];const n=e[1];const s=e[2];const r=s/360*2*Math.PI;const o=n*Math.cos(r);const i=n*Math.sin(r);return[t,o,i]};o.rgb.ansi16=function(e,t=null){const[n,s,r]=e;let i=t===null?o.rgb.hsv(e)[2]:t;i=Math.round(i/50);if(i===0){return 30}let a=30+(Math.round(r/255)<<2|Math.round(s/255)<<1|Math.round(n/255));if(i===2){a+=60}return a};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){const t=e[0];const n=e[1];const s=e[2];if(t===n&&n===s){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const r=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(s/255*5);return r};o.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const n=(~~(e>50)+1)*.5;const s=(t&1)*n*255;const r=(t>>1&1)*n*255;const o=(t>>2&1)*n*255;return[s,r,o]};o.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const n=Math.floor(e/36)/5*255;const s=Math.floor((t=e%36)/6)/5*255;const r=t%6/5*255;return[n,s,r]};o.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let n=t[0];if(t[0].length===3){n=n.split("").map((e=>e+e)).join("")}const s=parseInt(n,16);const r=s>>16&255;const o=s>>8&255;const i=s&255;return[r,o,i]};o.rgb.hcg=function(e){const t=e[0]/255;const n=e[1]/255;const s=e[2]/255;const r=Math.max(Math.max(t,n),s);const o=Math.min(Math.min(t,n),s);const i=r-o;let a;let c;if(i<1){a=o/(1-i)}else{a=0}if(i<=0){c=0}else if(r===t){c=(n-s)/i%6}else if(r===n){c=2+(s-t)/i}else{c=4+(t-n)/i}c/=6;c%=1;return[c*360,i*100,a*100]};o.hsl.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const s=n<.5?2*t*n:2*t*(1-n);let r=0;if(s<1){r=(n-.5*s)/(1-s)}return[e[0],s*100,r*100]};o.hsv.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const s=t*n;let r=0;if(s<1){r=(n-s)/(1-s)}return[e[0],s*100,r*100]};o.hcg.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const s=e[2]/100;if(n===0){return[s*255,s*255,s*255]}const r=[0,0,0];const o=t%1*6;const i=o%1;const a=1-i;let c=0;switch(Math.floor(o)){case 0:r[0]=1;r[1]=i;r[2]=0;break;case 1:r[0]=a;r[1]=1;r[2]=0;break;case 2:r[0]=0;r[1]=1;r[2]=i;break;case 3:r[0]=0;r[1]=a;r[2]=1;break;case 4:r[0]=i;r[1]=0;r[2]=1;break;default:r[0]=1;r[1]=0;r[2]=a}c=(1-n)*s;return[(n*r[0]+c)*255,(n*r[1]+c)*255,(n*r[2]+c)*255]};o.hcg.hsv=function(e){const t=e[1]/100;const n=e[2]/100;const s=t+n*(1-t);let r=0;if(s>0){r=t/s}return[e[0],r*100,s*100]};o.hcg.hsl=function(e){const t=e[1]/100;const n=e[2]/100;const s=n*(1-t)+.5*t;let r=0;if(s>0&&s<.5){r=t/(2*s)}else if(s>=.5&&s<1){r=t/(2*(1-s))}return[e[0],r*100,s*100]};o.hcg.hwb=function(e){const t=e[1]/100;const n=e[2]/100;const s=t+n*(1-t);return[e[0],(s-t)*100,(1-s)*100]};o.hwb.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const s=1-n;const r=s-t;let o=0;if(r<1){o=(s-r)/(1-r)}return[e[0],r*100,o*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=function(e){return[0,0,e[0]]};o.gray.hsv=o.gray.hsl;o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const n=(t<<16)+(t<<8)+t;const s=n.toString(16).toUpperCase();return"000000".substring(s.length)+s};o.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},5978:(e,t,n)=>{const s=n(1912);const r=n(1154);const o={};const i=Object.keys(s);function wrapRaw(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}const s=e(t);if(typeof s==="object"){for(let e=s.length,t=0;t<e;t++){s[t]=Math.round(s[t])}}return s};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}i.forEach((e=>{o[e]={};Object.defineProperty(o[e],"channels",{value:s[e].channels});Object.defineProperty(o[e],"labels",{value:s[e].labels});const t=r(e);const n=Object.keys(t);n.forEach((n=>{const s=t[n];o[e][n]=wrapRounded(s);o[e][n].raw=wrapRaw(s)}))}));e.exports=o},1154:(e,t,n)=>{const s=n(1912);function buildGraph(){const e={};const t=Object.keys(s);for(let n=t.length,s=0;s<n;s++){e[t[s]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const n=[e];t[e].distance=0;while(n.length){const e=n.pop();const r=Object.keys(s[e]);for(let s=r.length,o=0;o<s;o++){const s=r[o];const i=t[s];if(i.distance===-1){i.distance=t[e].distance+1;i.parent=e;n.unshift(s)}}}return t}function link(e,t){return function(n){return t(e(n))}}function wrapConversion(e,t){const n=[t[e].parent,e];let r=s[t[e].parent][e];let o=t[e].parent;while(t[o].parent){n.unshift(t[o].parent);r=link(s[t[o].parent][o],r);o=t[o].parent}r.conversion=n;return r}e.exports=function(e){const t=deriveBFS(e);const n={};const s=Object.keys(t);for(let e=s.length,r=0;r<e;r++){const e=s[r];const o=t[e];if(o.parent===null){continue}n[e]=wrapConversion(e,t)}return n}},6997:e=>{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]}},6648:e=>{e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const s=t.indexOf(n+e);const r=t.indexOf("--");return s!==-1&&(r===-1||s<r)}},2304:(e,t,n)=>{const s=n(2037);const r=n(6224);const o=n(6648);const{env:i}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){a=1}else if(i.FORCE_COLOR==="false"){a=0}else{a=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const n=a||0;if(i.TERM==="dumb"){return n}if(process.platform==="win32"){const e=s.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,r.isatty(1))),stderr:translateLevel(supportsColor(true,r.isatty(2)))}},904:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(5761);const r=n(3582);const o=n(5694);function registerBackgroundTabDetection(){if(o.WINDOW&&o.WINDOW.document){o.WINDOW.document.addEventListener("visibilitychange",(()=>{const e=s.getActiveTransaction();if(o.WINDOW.document.hidden&&e){const t="cancelled";(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`);if(!e.status){e.setStatus(t)}e.setTag("visibilitychange","document.hidden");e.finish()}}))}else{(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.warn("[Tracing] Could not set up background tab detection due to lack of global document")}}t.registerBackgroundTabDetection=registerBackgroundTabDetection},4318:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(5761);const r=n(3582);const o=n(904);const i=n(7540);const a=n(6295);const c=n(5191);const u=n(5694);const l="BrowserTracing";const p={...s.TRACING_DEFAULTS,markBackgroundTransactions:true,routingInstrumentation:c.instrumentRoutingWithDefaults,startTransactionOnLocationChange:true,startTransactionOnPageLoad:true,enableLongTask:true,_experiments:{},...a.defaultRequestInstrumentationOptions};class BrowserTracing{constructor(e){this.name=l;this._hasSetTracePropagationTargets=false;s.addTracingExtensions();if(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__){this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))}this.options={...p,...e};if(this.options._experiments.enableLongTask!==undefined){this.options.enableLongTask=this.options._experiments.enableLongTask}if(e&&!e.tracePropagationTargets&&e.tracingOrigins){this.options.tracePropagationTargets=e.tracingOrigins}this._collectWebVitals=i.startTrackingWebVitals();if(this.options.enableLongTask){i.startTrackingLongTasks()}if(this.options._experiments.enableInteractions){i.startTrackingInteractions()}}setupOnce(e,t){this._getCurrentHub=t;const n=t();const s=n.getClient();const i=s&&s.getOptions();const{routingInstrumentation:c,startTransactionOnLocationChange:u,startTransactionOnPageLoad:l,markBackgroundTransactions:p,traceFetch:d,traceXHR:f,shouldCreateSpanForRequest:m,enableHTTPTimings:h,_experiments:g}=this.options;const _=i&&i.tracePropagationTargets;const v=_||this.options.tracePropagationTargets;if((typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&_){r.logger.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.")}c((e=>{const n=this._createRouteTransaction(e);this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t);return n}),l,u);if(p){o.registerBackgroundTabDetection()}if(g.enableInteractions){this._registerInteractionListener()}a.instrumentOutgoingRequests({traceFetch:d,traceXHR:f,tracePropagationTargets:v,shouldCreateSpanForRequest:m,enableHTTPTimings:h})}_createRouteTransaction(e){if(!this._getCurrentHub){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return undefined}const t=this._getCurrentHub();const{beforeNavigate:n,idleTimeout:o,finalTimeout:a,heartbeatInterval:c}=this.options;const l=e.op==="pageload";const p=l?getMetaContent("sentry-trace"):"";const d=l?getMetaContent("baggage"):"";const{traceparentData:f,dynamicSamplingContext:m,propagationContext:h}=r.tracingContextFromHeaders(p,d);const g={...e,...f,metadata:{...e.metadata,dynamicSamplingContext:f&&!m?{}:m},trimEnd:true};const _=typeof n==="function"?n(g):g;const v=_===undefined?{...g,sampled:false}:_;v.metadata=v.name!==g.name?{...v.metadata,source:"custom"}:v.metadata;this._latestRouteName=v.name;this._latestRouteSource=v.metadata&&v.metadata.source;if(v.sampled===false){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log(`[Tracing] Will not send ${v.op} transaction because of beforeNavigate.`)}(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log(`[Tracing] Starting ${v.op} transaction on scope`);const{location:b}=u.WINDOW;const x=s.startIdleTransaction(t,v,o,a,true,{location:b},c);const y=t.getScope();if(l&&f){y.setPropagationContext(h)}else{y.setPropagationContext({traceId:x.traceId,spanId:x.spanId,parentSpanId:x.parentSpanId,sampled:x.sampled})}x.registerBeforeFinishCallback((e=>{this._collectWebVitals();i.addPerformanceEntries(e)}));return x}_registerInteractionListener(){let e;const registerInteractionTransaction=()=>{const{idleTimeout:t,finalTimeout:n,heartbeatInterval:o}=this.options;const i="ui.action.click";const a=s.getActiveTransaction();if(a&&a.op&&["navigation","pageload"].includes(a.op)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`);return undefined}if(e){e.setFinishReason("interactionInterrupted");e.finish();e=undefined}if(!this._getCurrentHub){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`);return undefined}if(!this._latestRouteName){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return undefined}const c=this._getCurrentHub();const{location:l}=u.WINDOW;const p={name:this._latestRouteName,op:i,trimEnd:true,metadata:{source:this._latestRouteSource||"url"}};e=s.startIdleTransaction(c,p,t,n,true,{location:l},o)};["click"].forEach((e=>{addEventListener(e,registerInteractionTransaction,{once:false,capture:true})}))}}function getMetaContent(e){const t=r.getDomElement(`meta[name=${e}]`);return t?t.getAttribute("content"):undefined}t.BROWSER_TRACING_INTEGRATION_ID=l;t.BrowserTracing=BrowserTracing;t.getMetaContent=getMetaContent},7540:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(5761);const r=n(3582);const o=n(5694);const i=n(8504);const a=n(4792);const c=n(2695);const u=n(7966);const l=n(8293);const p=n(61);function msToSec(e){return e/1e3}function getBrowserPerformanceAPI(){return o.WINDOW&&o.WINDOW.addEventListener&&o.WINDOW.performance}let d=0;let f={};let m;let h;function startTrackingWebVitals(){const e=getBrowserPerformanceAPI();if(e&&r.browserPerformanceTimeOrigin){if(e.mark){o.WINDOW.performance.mark("sentry-tracing-init")}_trackFID();const t=_trackCLS();const n=_trackLCP();return()=>{if(t){t()}if(n){n()}}}return()=>undefined}function startTrackingLongTasks(){const entryHandler=e=>{for(const t of e){const e=s.getActiveTransaction();if(!e){return}const n=msToSec(r.browserPerformanceTimeOrigin+t.startTime);const o=msToSec(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+o})}};l.observe("longtask",entryHandler)}function startTrackingInteractions(){const entryHandler=e=>{for(const t of e){const e=s.getActiveTransaction();if(!e){return}if(t.name==="click"){const n=msToSec(r.browserPerformanceTimeOrigin+t.startTime);const s=msToSec(t.duration);e.startChild({description:r.htmlTreeAsString(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+s})}}};l.observe("event",entryHandler,{durationThreshold:0})}function _trackCLS(){return i.onCLS((e=>{const t=e.entries.pop();if(!t){return}(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log("[Measurements] Adding CLS");f["cls"]={value:e.value,unit:""};h=t}))}function _trackLCP(){return c.onLCP((e=>{const t=e.entries.pop();if(!t){return}(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log("[Measurements] Adding LCP");f["lcp"]={value:e.value,unit:"millisecond"};m=t}))}function _trackFID(){a.onFID((e=>{const t=e.entries.pop();if(!t){return}const n=msToSec(r.browserPerformanceTimeOrigin);const s=msToSec(t.startTime);(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log("[Measurements] Adding FID");f["fid"]={value:e.value,unit:"millisecond"};f["mark.fid"]={value:n+s,unit:"second"}}))}function addPerformanceEntries(e){const t=getBrowserPerformanceAPI();if(!t||!o.WINDOW.performance.getEntries||!r.browserPerformanceTimeOrigin){return}(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log("[Tracing] Adding & adjusting spans using Performance API");const n=msToSec(r.browserPerformanceTimeOrigin);const s=t.getEntries();let i;let a;s.slice(d).forEach((t=>{const s=msToSec(t.startTime);const c=msToSec(t.duration);if(e.op==="navigation"&&n+s<e.startTimestamp){return}switch(t.entryType){case"navigation":{_addNavigationSpans(e,t,n);i=n+msToSec(t.responseStart);a=n+msToSec(t.requestStart);break}case"mark":case"paint":case"measure":{_addMeasureSpans(e,t,s,c,n);const o=u.getVisibilityWatcher();const i=t.startTime<o.firstHiddenTime;if(t.name==="first-paint"&&i){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log("[Measurements] Adding FP");f["fp"]={value:t.startTime,unit:"millisecond"}}if(t.name==="first-contentful-paint"&&i){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log("[Measurements] Adding FCP");f["fcp"]={value:t.startTime,unit:"millisecond"}}break}case"resource":{const r=t.name.replace(o.WINDOW.location.origin,"");_addResourceSpans(e,t,r,s,c,n);break}}}));d=Math.max(s.length-1,0);_trackNavigator(e);if(e.op==="pageload"){if(typeof i==="number"){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log("[Measurements] Adding TTFB");f["ttfb"]={value:(i-e.startTimestamp)*1e3,unit:"millisecond"};if(typeof a==="number"&&a<=i){f["ttfb.requestTime"]={value:(i-a)*1e3,unit:"millisecond"}}}["fcp","fp","lcp"].forEach((t=>{if(!f[t]||n>=e.startTimestamp){return}const s=f[t].value;const o=n+msToSec(s);const i=Math.abs((o-e.startTimestamp)*1e3);const a=i-s;(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log(`[Measurements] Normalized ${t} from ${s} to ${i} (${a})`);f[t].value=i}));const t=f["mark.fid"];if(t&&f["fid"]){p._startChild(e,{description:"first input delay",endTimestamp:t.value+msToSec(f["fid"].value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value});delete f["mark.fid"]}if(!("fcp"in f)){delete f.cls}Object.keys(f).forEach((t=>{e.setMeasurement(t,f[t].value,f[t].unit)}));_tagMetricInfo(e)}m=undefined;h=undefined;f={}}function _addMeasureSpans(e,t,n,s,r){const o=r+n;const i=o+s;p._startChild(e,{description:t.name,endTimestamp:i,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o});return o}function _addNavigationSpans(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((s=>{_addPerformanceNavigationTiming(e,t,s,n)}));_addPerformanceNavigationTiming(e,t,"secureConnection",n,"TLS/SSL","connectEnd");_addPerformanceNavigationTiming(e,t,"fetch",n,"cache","domainLookupStart");_addPerformanceNavigationTiming(e,t,"domainLookup",n,"DNS");_addRequest(e,t,n)}function _addPerformanceNavigationTiming(e,t,n,s,r,o){const i=o?t[o]:t[`${n}End`];const a=t[`${n}Start`];if(!a||!i){return}p._startChild(e,{op:"browser",origin:"auto.browser.browser.metrics",description:r||n,startTimestamp:s+msToSec(a),endTimestamp:s+msToSec(i)})}function _addRequest(e,t,n){p._startChild(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+msToSec(t.requestStart),endTimestamp:n+msToSec(t.responseEnd)});p._startChild(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+msToSec(t.responseStart),endTimestamp:n+msToSec(t.responseEnd)})}function _addResourceSpans(e,t,n,s,r,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch"){return}const i={};if("transferSize"in t){i["http.response_transfer_size"]=t.transferSize}if("encodedBodySize"in t){i["http.response_content_length"]=t.encodedBodySize}if("decodedBodySize"in t){i["http.decoded_response_content_length"]=t.decodedBodySize}if("renderBlockingStatus"in t){i["resource.render_blocking_status"]=t.renderBlockingStatus}const a=o+s;const c=a+r;p._startChild(e,{description:n,endTimestamp:c,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:a,data:i})}function _trackNavigator(e){const t=o.WINDOW.navigator;if(!t){return}const n=t.connection;if(n){if(n.effectiveType){e.setTag("effectiveConnectionType",n.effectiveType)}if(n.type){e.setTag("connectionType",n.type)}if(p.isMeasurementValue(n.rtt)){f["connection.rtt"]={value:n.rtt,unit:"millisecond"}}}if(p.isMeasurementValue(t.deviceMemory)){e.setTag("deviceMemory",`${t.deviceMemory} GB`)}if(p.isMeasurementValue(t.hardwareConcurrency)){e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}}function _tagMetricInfo(e){if(m){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log("[Measurements] Adding LCP Data");if(m.element){e.setTag("lcp.element",r.htmlTreeAsString(m.element))}if(m.id){e.setTag("lcp.id",m.id)}if(m.url){e.setTag("lcp.url",m.url.trim().slice(0,200))}e.setTag("lcp.size",m.size)}if(h&&h.sources){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log("[Measurements] Adding CLS Data");h.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,r.htmlTreeAsString(t.node))))}}t._addMeasureSpans=_addMeasureSpans;t._addResourceSpans=_addResourceSpans;t.addPerformanceEntries=addPerformanceEntries;t.startTrackingInteractions=startTrackingInteractions;t.startTrackingLongTasks=startTrackingLongTasks;t.startTrackingWebVitals=startTrackingWebVitals},61:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function isMeasurementValue(e){return typeof e==="number"&&isFinite(e)}function _startChild(e,{startTimestamp:t,...n}){if(t&&e.startTimestamp>t){e.startTimestamp=t}return e.startChild({startTimestamp:t,...n})}t._startChild=_startChild;t.isMeasurementValue=isMeasurementValue},6295:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(5761);const r=n(3582);const o=["localhost",/^\/(?!\/)/];const i={traceFetch:true,traceXHR:true,enableHTTPTimings:true,tracingOrigins:o,tracePropagationTargets:o};function instrumentOutgoingRequests(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:s,tracingOrigins:o,shouldCreateSpanForRequest:a,enableHTTPTimings:c}={traceFetch:i.traceFetch,traceXHR:i.traceXHR,...e};const u=typeof a==="function"?a:e=>true;const shouldAttachHeadersWithTargets=e=>shouldAttachHeaders(e,s||o);const l={};if(t){r.addInstrumentationHandler("fetch",(e=>{const t=fetchCallback(e,u,shouldAttachHeadersWithTargets,l);if(c&&t){addHTTPTimings(t)}}))}if(n){r.addInstrumentationHandler("xhr",(e=>{const t=xhrCallback(e,u,shouldAttachHeadersWithTargets,l);if(c&&t){addHTTPTimings(t)}}))}}function isPerformanceResourceTiming(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol==="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function addHTTPTimings(e){const t=e.data.url;const n=new PerformanceObserver((s=>{const r=s.getEntries();r.forEach((s=>{if(isPerformanceResourceTiming(s)&&s.name.endsWith(t)){const t=resourceTimingEntryToSpanData(s);t.forEach((t=>e.setData(...t)));n.disconnect()}}))}));n.observe({entryTypes:["resource"]})}function extractNetworkProtocol(e){let t="unknown";let n="unknown";let s="";for(const r of e){if(r==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(r))){t=s==="h"?"http":s;n=e.split(s)[1];break}s+=r}if(s===e){t=s}return{name:t,version:n}}function getAbsoluteTime(e=0){return((r.browserPerformanceTimeOrigin||performance.timeOrigin)+e)/1e3}function resourceTimingEntryToSpanData(e){const{name:t,version:n}=extractNetworkProtocol(e.nextHopProtocol);const s=[];s.push(["network.protocol.version",n],["network.protocol.name",t]);if(!r.browserPerformanceTimeOrigin){return s}return[...s,["http.request.redirect_start",getAbsoluteTime(e.redirectStart)],["http.request.fetch_start",getAbsoluteTime(e.fetchStart)],["http.request.domain_lookup_start",getAbsoluteTime(e.domainLookupStart)],["http.request.domain_lookup_end",getAbsoluteTime(e.domainLookupEnd)],["http.request.connect_start",getAbsoluteTime(e.connectStart)],["http.request.secure_connection_start",getAbsoluteTime(e.secureConnectionStart)],["http.request.connection_end",getAbsoluteTime(e.connectEnd)],["http.request.request_start",getAbsoluteTime(e.requestStart)],["http.request.response_start",getAbsoluteTime(e.responseStart)],["http.request.response_end",getAbsoluteTime(e.responseEnd)]]}function shouldAttachHeaders(e,t){return r.stringMatchesSomePattern(e,t||o)}function fetchCallback(e,t,n,r){if(!s.hasTracingEnabled()||!e.fetchData){return undefined}const o=t(e.fetchData.url);if(e.endTimestamp&&o){const t=e.fetchData.__span;if(!t)return;const n=r[t];if(n){if(e.response){n.setHttpStatus(e.response.status);const t=e.response&&e.response.headers&&e.response.headers.get("content-length");const s=parseInt(t);if(s>0){n.setData("http.response_content_length",s)}}else if(e.error){n.setStatus("internal_error")}n.finish();delete r[t]}return undefined}const i=s.getCurrentHub();const a=i.getScope();const c=i.getClient();const u=a.getSpan();const{method:l,url:p}=e.fetchData;const d=o&&u?u.startChild({data:{url:p,type:"fetch","http.method":l},description:`${l} ${p}`,op:"http.client",origin:"auto.http.browser"}):undefined;if(d){e.fetchData.__span=d.spanId;r[d.spanId]=d}if(n(e.fetchData.url)&&c){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=addTracingHeadersToFetchRequest(t,c,a,n,d)}return d}function addTracingHeadersToFetchRequest(e,t,n,o,i){const a=i||n.getSpan();const c=a&&a.transaction;const{traceId:u,sampled:l,dsc:p}=n.getPropagationContext();const d=a?a.toTraceparent():r.generateSentryTraceHeader(u,undefined,l);const f=c?c.getDynamicSamplingContext():p?p:s.getDynamicSamplingContextFromClient(u,t,n);const m=r.dynamicSamplingContextToSentryBaggageHeader(f);const h=typeof Request!=="undefined"&&r.isInstanceOf(e,Request)?e.headers:o.headers;if(!h){return{"sentry-trace":d,baggage:m}}else if(typeof Headers!=="undefined"&&r.isInstanceOf(h,Headers)){const e=new Headers(h);e.append("sentry-trace",d);if(m){e.append(r.BAGGAGE_HEADER_NAME,m)}return e}else if(Array.isArray(h)){const e=[...h,["sentry-trace",d]];if(m){e.push([r.BAGGAGE_HEADER_NAME,m])}return e}else{const e="baggage"in h?h.baggage:undefined;const t=[];if(Array.isArray(e)){t.push(...e)}else if(e){t.push(e)}if(m){t.push(m)}return{...h,"sentry-trace":d,baggage:t.length>0?t.join(","):undefined}}}function xhrCallback(e,t,n,o){const i=e.xhr;const a=i&&i[r.SENTRY_XHR_DATA_KEY];if(!s.hasTracingEnabled()||i&&i.__sentry_own_request__||!i||!a){return undefined}const c=t(a.url);if(e.endTimestamp&&c){const e=i.__sentry_xhr_span_id__;if(!e)return;const t=o[e];if(t){t.setHttpStatus(a.status_code);t.finish();delete o[e]}return undefined}const u=s.getCurrentHub();const l=u.getScope();const p=l.getSpan();const d=c&&p?p.startChild({data:{...a.data,type:"xhr","http.method":a.method,url:a.url},description:`${a.method} ${a.url}`,op:"http.client",origin:"auto.http.browser"}):undefined;if(d){i.__sentry_xhr_span_id__=d.spanId;o[i.__sentry_xhr_span_id__]=d}if(i.setRequestHeader&&n(a.url)){if(d){const e=d&&d.transaction;const t=e&&e.getDynamicSamplingContext();const n=r.dynamicSamplingContextToSentryBaggageHeader(t);setHeaderOnXhr(i,d.toTraceparent(),n)}else{const e=u.getClient();const{traceId:t,sampled:n,dsc:o}=l.getPropagationContext();const a=r.generateSentryTraceHeader(t,undefined,n);const c=o||(e?s.getDynamicSamplingContextFromClient(t,e,l):undefined);const p=r.dynamicSamplingContextToSentryBaggageHeader(c);setHeaderOnXhr(i,a,p)}}return d}function setHeaderOnXhr(e,t,n){try{e.setRequestHeader("sentry-trace",t);if(n){e.setRequestHeader(r.BAGGAGE_HEADER_NAME,n)}}catch(e){}}t.DEFAULT_TRACE_PROPAGATION_TARGETS=o;t.addTracingHeadersToFetchRequest=addTracingHeadersToFetchRequest;t.defaultRequestInstrumentationOptions=i;t.extractNetworkProtocol=extractNetworkProtocol;t.fetchCallback=fetchCallback;t.instrumentOutgoingRequests=instrumentOutgoingRequests;t.shouldAttachHeaders=shouldAttachHeaders;t.xhrCallback=xhrCallback},5191:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(5694);function instrumentRoutingWithDefaults(e,t=true,n=true){if(!r.WINDOW||!r.WINDOW.location){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn("Could not initialize routing instrumentation due to invalid location");return}let o=r.WINDOW.location.href;let i;if(t){i=e({name:r.WINDOW.location.pathname,startTimestamp:s.browserPerformanceTimeOrigin?s.browserPerformanceTimeOrigin/1e3:undefined,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})}if(n){s.addInstrumentationHandler("history",(({to:t,from:n})=>{if(n===undefined&&o&&o.indexOf(t)!==-1){o=undefined;return}if(n!==t){o=undefined;if(i){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log(`[Tracing] Finishing current transaction with op: ${i.op}`);i.finish()}i=e({name:r.WINDOW.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}})}}))}}t.instrumentRoutingWithDefaults=instrumentRoutingWithDefaults},5694:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=s.GLOBAL_OBJ;t.WINDOW=r},8504:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3510);const r=n(2601);const o=n(8293);const i=n(8187);const onCLS=e=>{const t=r.initMetric("CLS",0);let n;let a=0;let c=[];const handleEntries=e=>{e.forEach((e=>{if(!e.hadRecentInput){const s=c[0];const r=c[c.length-1];if(a&&c.length!==0&&e.startTime-r.startTime<1e3&&e.startTime-s.startTime<5e3){a+=e.value;c.push(e)}else{a=e.value;c=[e]}if(a>t.value){t.value=a;t.entries=c;if(n){n()}}}}))};const u=o.observe("layout-shift",handleEntries);if(u){n=s.bindReporter(e,t);const stopListening=()=>{handleEntries(u.takeRecords());n(true)};i.onHidden(stopListening);return stopListening}return};t.onCLS=onCLS},4792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3510);const r=n(7966);const o=n(2601);const i=n(8293);const a=n(8187);const onFID=e=>{const t=r.getVisibilityWatcher();const n=o.initMetric("FID");let c;const handleEntry=e=>{if(e.startTime<t.firstHiddenTime){n.value=e.processingStart-e.startTime;n.entries.push(e);c(true)}};const handleEntries=e=>{e.forEach(handleEntry)};const u=i.observe("first-input",handleEntries);c=s.bindReporter(e,n);if(u){a.onHidden((()=>{handleEntries(u.takeRecords());u.disconnect()}),true)}};t.onFID=onFID},2695:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3510);const r=n(588);const o=n(7966);const i=n(2601);const a=n(8293);const c=n(8187);const u={};const onLCP=e=>{const t=o.getVisibilityWatcher();const n=i.initMetric("LCP");let l;const handleEntries=e=>{const s=e[e.length-1];if(s){const e=Math.max(s.startTime-r.getActivationStart(),0);if(e<t.firstHiddenTime){n.value=e;n.entries=[s];l()}}};const p=a.observe("largest-contentful-paint",handleEntries);if(p){l=s.bindReporter(e,n);const stopListening=()=>{if(!u[n.id]){handleEntries(p.takeRecords());p.disconnect();u[n.id]=true;l(true)}};["keydown","click"].forEach((e=>{addEventListener(e,stopListening,{once:true,capture:true})}));c.onHidden(stopListening,true);return stopListening}return};t.onLCP=onLCP},3510:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});const bindReporter=(e,t,n)=>{let s;let r;return o=>{if(t.value>=0){if(o||n){r=t.value-(s||0);if(r||s===undefined){s=t.value;t.delta=r;e(t)}}}}};t.bindReporter=bindReporter},4449:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});const generateUniqueID=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`;t.generateUniqueID=generateUniqueID},588:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(4802);const getActivationStart=()=>{const e=s.getNavigationEntry();return e&&e.activationStart||0};t.getActivationStart=getActivationStart},4802:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(5694);const getNavigationEntryFromPerformanceTiming=()=>{const e=s.WINDOW.performance.timing;const t=s.WINDOW.performance.navigation.type;const n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const t in e){if(t!=="navigationStart"&&t!=="toJSON"){n[t]=Math.max(e[t]-e.navigationStart,0)}}return n};const getNavigationEntry=()=>{if(s.WINDOW.__WEB_VITALS_POLYFILL__){return s.WINDOW.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||getNavigationEntryFromPerformanceTiming())}else{return s.WINDOW.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]}};t.getNavigationEntry=getNavigationEntry},7966:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(5694);const r=n(8187);let o=-1;const initHiddenTime=()=>s.WINDOW.document.visibilityState==="hidden"&&!s.WINDOW.document.prerendering?0:Infinity;const trackChanges=()=>{r.onHidden((({timeStamp:e})=>{o=e}),true)};const getVisibilityWatcher=()=>{if(o<0){o=initHiddenTime();trackChanges()}return{get firstHiddenTime(){return o}}};t.getVisibilityWatcher=getVisibilityWatcher},2601:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(5694);const r=n(4449);const o=n(588);const i=n(4802);const initMetric=(e,t)=>{const n=i.getNavigationEntry();let a="navigate";if(n){if(s.WINDOW.document.prerendering||o.getActivationStart()>0){a="prerender"}else{a=n.type.replace(/_/g,"-")}}return{name:e,value:typeof t==="undefined"?-1:t,rating:"good",delta:0,entries:[],id:r.generateUniqueID(),navigationType:a}};t.initMetric=initMetric},8293:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});const observe=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const s=new PerformanceObserver((e=>{t(e.getEntries())}));s.observe(Object.assign({type:e,buffered:true},n||{}));return s}}catch(e){}return};t.observe=observe},8187:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(5694);const onHidden=(e,t)=>{const onHiddenOrPageHide=n=>{if(n.type==="pagehide"||s.WINDOW.document.visibilityState==="hidden"){e(n);if(t){removeEventListener("visibilitychange",onHiddenOrPageHide,true);removeEventListener("pagehide",onHiddenOrPageHide,true)}}};addEventListener("visibilitychange",onHiddenOrPageHide,true);addEventListener("pagehide",onHiddenOrPageHide,true)};t.onHidden=onHidden},2991:(e,t,n)=>{e=n.nmd(e);Object.defineProperty(t,"__esModule",{value:true});const s=n(5761);const r=n(3582);function _autoloadDatabaseIntegrations(){const t=s.getMainCarrier();if(!t.__SENTRY__){return}const n={mongodb(){const t=r.dynamicRequire(e,"./node/integrations/mongo");return new t.Mongo},mongoose(){const t=r.dynamicRequire(e,"./node/integrations/mongo");return new t.Mongo},mysql(){const t=r.dynamicRequire(e,"./node/integrations/mysql");return new t.Mysql},pg(){const t=r.dynamicRequire(e,"./node/integrations/postgres");return new t.Postgres}};const o=Object.keys(n).filter((e=>!!r.loadModule(e))).map((e=>{try{return n[e]()}catch(e){return undefined}})).filter((e=>e));if(o.length>0){t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...o]}}function addExtensionMethods(){s.addTracingExtensions();if(r.isNodeEnv()){_autoloadDatabaseIntegrations()}}t.addExtensionMethods=addExtensionMethods},8759:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(5761);const r=n(3582);const o=n(7361);const i=n(7438);const a=n(458);const c=n(7040);const u=n(405);const l=n(75);const p=n(846);const d=n(4496);const f=n(4318);const m=n(6295);const h=n(2991);t.IdleTransaction=s.IdleTransaction;t.Span=s.Span;t.SpanStatus=s.SpanStatus;t.Transaction=s.Transaction;t.extractTraceparentData=s.extractTraceparentData;t.getActiveTransaction=s.getActiveTransaction;t.hasTracingEnabled=s.hasTracingEnabled;t.spanStatusfromHttpCode=s.spanStatusfromHttpCode;t.startIdleTransaction=s.startIdleTransaction;t.TRACEPARENT_REGEXP=r.TRACEPARENT_REGEXP;t.stripUrlQueryAndFragment=r.stripUrlQueryAndFragment;t.Express=o.Express;t.Postgres=i.Postgres;t.Mysql=a.Mysql;t.Mongo=c.Mongo;t.Prisma=u.Prisma;t.GraphQL=l.GraphQL;t.Apollo=p.Apollo;t.lazyLoadedNodePerformanceMonitoringIntegrations=d.lazyLoadedNodePerformanceMonitoringIntegrations;t.BROWSER_TRACING_INTEGRATION_ID=f.BROWSER_TRACING_INTEGRATION_ID;t.BrowserTracing=f.BrowserTracing;t.addTracingHeadersToFetchRequest=m.addTracingHeadersToFetchRequest;t.defaultRequestInstrumentationOptions=m.defaultRequestInstrumentationOptions;t.instrumentOutgoingRequests=m.instrumentOutgoingRequests;t.addExtensionMethods=h.addExtensionMethods},846:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(3582);const o=n(2780);class Apollo{static __initStatic(){this.id="Apollo"}constructor(e={useNestjs:false}){this.name=Apollo.id;this._useNest=!!e.useNestjs}loadDependency(){if(this._useNest){this._module=this._module||r.loadModule("@nestjs/graphql")}else{this._module=this._module||r.loadModule("apollo-server-core")}return this._module}setupOnce(e,t){if(o.shouldDisableAutoInstrumentation(t)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log("Apollo Integration is skipped because of instrumenter configuration.");return}if(this._useNest){const e=this.loadDependency();if(!e){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.error("Apollo-NestJS Integration was unable to require @nestjs/graphql package.");return}r.fill(e.GraphQLFactory.prototype,"mergeWithSchema",(function(e){return function(...n){r.fill(this.resolversExplorerService,"explore",(function(e){return function(){const n=r.arrayify(e.call(this));const s=instrumentResolvers(n,t);return s}}));return e.call(this,...n)}}))}else{const e=this.loadDependency();if(!e){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.error("Apollo Integration was unable to require apollo-server-core package.");return}r.fill(e.ApolloServerBase.prototype,"constructSchema",(function(e){return function(){if(!this.config.resolvers){if(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__){if(this.config.schema){r.logger.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `schema` property."+"If you are using NestJS with Apollo, please use `Sentry.Integrations.Apollo({ useNestjs: true })` instead.");r.logger.warn()}else if(this.config.modules){r.logger.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `modules` property.")}r.logger.error("Skipping tracing as no resolvers found on the `ApolloServer` instance.")}return e.call(this)}const n=r.arrayify(this.config.resolvers);this.config.resolvers=instrumentResolvers(n,t);return e.call(this)}}))}}}Apollo.__initStatic();function instrumentResolvers(e,t){return e.map((e=>{Object.keys(e).forEach((n=>{Object.keys(e[n]).forEach((s=>{if(typeof e[n][s]!=="function"){return}wrapResolver(e,n,s,t)}))}));return e}))}function wrapResolver(e,t,n,o){r.fill(e[t],n,(function(e){return function(...i){const a=o().getScope();const c=a.getSpan();const u=s([c,"optionalAccess",e=>e.startChild,"call",e=>e({description:`${t}.${n}`,op:"graphql.resolve",origin:"auto.graphql.apollo"})]);const l=e.call(this,...i);if(r.isThenable(l)){return l.then((e=>{s([u,"optionalAccess",e=>e.finish,"call",e=>e()]);return e}))}s([u,"optionalAccess",e=>e.finish,"call",e=>e()]);return l}}))}t.Apollo=Apollo},7361:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(3582);const o=n(2780);class Express{static __initStatic(){this.id="Express"}constructor(e={}){this.name=Express.id;this._router=e.router||e.app;this._methods=(Array.isArray(e.methods)?e.methods:[]).concat("use")}setupOnce(e,t){if(!this._router){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.error("ExpressIntegration is missing an Express instance");return}if(o.shouldDisableAutoInstrumentation(t)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log("Express Integration is skipped because of instrumenter configuration.");return}instrumentMiddlewares(this._router,this._methods);instrumentRouter(this._router)}}Express.__initStatic();function wrap(e,t){const n=e.length;switch(n){case 2:{return function(n,s){const r=s.__sentry_transaction;if(r){const n=r.startChild({description:e.name,op:`middleware.express.${t}`,origin:"auto.middleware.express"});s.once("finish",(()=>{n.finish()}))}return e.call(this,n,s)}}case 3:{return function(n,r,o){const i=r.__sentry_transaction;const a=s([i,"optionalAccess",e=>e.startChild,"call",n=>n({description:e.name,op:`middleware.express.${t}`,origin:"auto.middleware.express"})]);e.call(this,n,r,(function(...e){s([a,"optionalAccess",e=>e.finish,"call",e=>e()]);o.call(this,...e)}))}}case 4:{return function(n,r,o,i){const a=o.__sentry_transaction;const c=s([a,"optionalAccess",e=>e.startChild,"call",n=>n({description:e.name,op:`middleware.express.${t}`,origin:"auto.middleware.express"})]);e.call(this,n,r,o,(function(...e){s([c,"optionalAccess",e=>e.finish,"call",e=>e()]);i.call(this,...e)}))}}default:{throw new Error(`Express middleware takes 2-4 arguments. Got: ${n}`)}}}function wrapMiddlewareArgs(e,t){return e.map((e=>{if(typeof e==="function"){return wrap(e,t)}if(Array.isArray(e)){return e.map((e=>{if(typeof e==="function"){return wrap(e,t)}return e}))}return e}))}function patchMiddleware(e,t){const n=e[t];e[t]=function(...e){return n.call(this,...wrapMiddlewareArgs(e,t))};return e}function instrumentMiddlewares(e,t=[]){t.forEach((t=>patchMiddleware(e,t)))}function instrumentRouter(e){const t="settings"in e;if(t&&e._router===undefined&&e.lazyrouter){e.lazyrouter()}const n=t?e._router:e;if(!n){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.debug("Cannot instrument router for URL Parameterization (did not find a valid router).");(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.debug("Routing instrumentation is currently only supported in Express 4.");return}const s=Object.getPrototypeOf(n);const o=s.process_params;s.process_params=function process_params(e,t,n,s,i){if(!n._reconstructedRoute){n._reconstructedRoute=""}const{layerRoutePath:a,isRegex:c,isArray:u,numExtraSegments:l}=getLayerRoutePathInfo(e);if(a||c||u){n._hasParameters=true}const p=a||e.path||"";const d=p.split("/").filter((e=>e.length>0&&(c||u||!e.includes("*")))).join("/");if(d&&d.length>0){n._reconstructedRoute+=`/${d}${c?"/":""}`}const f=r.getNumberOfUrlSegments(n.originalUrl||"")+l;const m=r.getNumberOfUrlSegments(n._reconstructedRoute);if(f===m){if(!n._hasParameters){if(n._reconstructedRoute!==n.originalUrl){n._reconstructedRoute=n.originalUrl?r.stripUrlQueryAndFragment(n.originalUrl):n.originalUrl}}const e=s.__sentry_transaction;if(e&&e.metadata.source!=="custom"){const t=n._reconstructedRoute||"/";e.setName(...r.extractPathForTransaction(n,{path:true,method:true,customRoute:t}))}}return o.call(this,e,t,n,s,i)}}function getLayerRoutePathInfo(e){const t=s([e,"access",e=>e.route,"optionalAccess",e=>e.path]);const n=r.isRegExp(t);const o=Array.isArray(t);if(!t){return{isRegex:n,isArray:o,numExtraSegments:0}}const i=o?Math.max(getNumberOfArrayUrlSegments(t)-r.getNumberOfUrlSegments(e.path||""),0):0;const a=getLayerRoutePathString(o,t);return{layerRoutePath:a,isRegex:n,isArray:o,numExtraSegments:i}}function getNumberOfArrayUrlSegments(e){return e.reduce(((e,t)=>e+r.getNumberOfUrlSegments(t.toString())),0)}function getLayerRoutePathString(e,t){if(e){return t.map((e=>e.toString())).join(",")}return t&&t.toString()}t.Express=Express},75:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(3582);const o=n(2780);class GraphQL{static __initStatic(){this.id="GraphQL"}constructor(){this.name=GraphQL.id}loadDependency(){return this._module=this._module||r.loadModule("graphql/execution/execute.js")}setupOnce(e,t){if(o.shouldDisableAutoInstrumentation(t)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log("GraphQL Integration is skipped because of instrumenter configuration.");return}const n=this.loadDependency();if(!n){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.error("GraphQL Integration was unable to require graphql/execution package.");return}r.fill(n,"execute",(function(e){return function(...n){const o=t().getScope();const i=o.getSpan();const a=s([i,"optionalAccess",e=>e.startChild,"call",e=>e({description:"execute",op:"graphql.execute",origin:"auto.graphql.graphql"})]);s([o,"optionalAccess",e=>e.setSpan,"call",e=>e(a)]);const c=e.call(this,...n);if(r.isThenable(c)){return c.then((e=>{s([a,"optionalAccess",e=>e.finish,"call",e=>e()]);s([o,"optionalAccess",e=>e.setSpan,"call",e=>e(i)]);return e}))}s([a,"optionalAccess",e=>e.finish,"call",e=>e()]);s([o,"optionalAccess",e=>e.setSpan,"call",e=>e(i)]);return c}}))}}GraphQL.__initStatic();t.GraphQL=GraphQL},4496:(e,t,n)=>{e=n.nmd(e);Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=[()=>{const t=s.dynamicRequire(e,"./apollo");return new t.Apollo},()=>{const t=s.dynamicRequire(e,"./apollo");return new t.Apollo({useNestjs:true})},()=>{const t=s.dynamicRequire(e,"./graphql");return new t.GraphQL},()=>{const t=s.dynamicRequire(e,"./mongo");return new t.Mongo},()=>{const t=s.dynamicRequire(e,"./mongo");return new t.Mongo({mongoose:true})},()=>{const t=s.dynamicRequire(e,"./mysql");return new t.Mysql},()=>{const t=s.dynamicRequire(e,"./postgres");return new t.Postgres}];t.lazyLoadedNodePerformanceMonitoringIntegrations=r},7040:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(3582);const o=n(2780);const i=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"];const a={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]};function isCursor(e){return e&&typeof e==="object"&&e.once&&typeof e.once==="function"}class Mongo{static __initStatic(){this.id="Mongo"}constructor(e={}){this.name=Mongo.id;this._operations=Array.isArray(e.operations)?e.operations:i;this._describeOperations="describeOperations"in e?e.describeOperations:true;this._useMongoose=!!e.useMongoose}loadDependency(){const e=this._useMongoose?"mongoose":"mongodb";return this._module=this._module||r.loadModule(e)}setupOnce(e,t){if(o.shouldDisableAutoInstrumentation(t)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log("Mongo Integration is skipped because of instrumenter configuration.");return}const n=this.loadDependency();if(!n){const e=this._useMongoose?"mongoose":"mongodb";(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.error(`Mongo Integration was unable to require \`${e}\` package.`);return}this._instrumentOperations(n.Collection,this._operations,t)}_instrumentOperations(e,t,n){t.forEach((t=>this._patchOperation(e,t,n)))}_patchOperation(e,t,n){if(!(t in e.prototype))return;const o=this._getSpanContextFromOperationArguments.bind(this);r.fill(e.prototype,t,(function(e){return function(...i){const a=i[i.length-1];const c=n().getScope();const u=c.getSpan();if(typeof a!=="function"||t==="mapReduce"&&i.length===2){const n=s([u,"optionalAccess",e=>e.startChild,"call",e=>e(o(this,t,i))]);const a=e.call(this,...i);if(r.isThenable(a)){return a.then((e=>{s([n,"optionalAccess",e=>e.finish,"call",e=>e()]);return e}))}else if(isCursor(a)){const e=a;try{e.once("close",(()=>{s([n,"optionalAccess",e=>e.finish,"call",e=>e()])}))}catch(e){s([n,"optionalAccess",e=>e.finish,"call",e=>e()])}return e}else{s([n,"optionalAccess",e=>e.finish,"call",e=>e()]);return a}}const l=s([u,"optionalAccess",e=>e.startChild,"call",e=>e(o(this,t,i.slice(0,-1)))]);return e.call(this,...i.slice(0,-1),(function(e,t){s([l,"optionalAccess",e=>e.finish,"call",e=>e()]);a(e,t)}))}}))}_getSpanContextFromOperationArguments(e,t,n){const s={"db.system":"mongodb","db.name":e.dbName,"db.operation":t,"db.mongodb.collection":e.collectionName};const r={op:"db",origin:"auto.db.mongo",description:t,data:s};const o=a[t];const i=Array.isArray(this._describeOperations)?this._describeOperations.includes(t):this._describeOperations;if(!o||!i){return r}try{if(t==="mapReduce"){const[e,t]=n;s[o[0]]=typeof e==="string"?e:e.name||"<anonymous>";s[o[1]]=typeof t==="string"?t:t.name||"<anonymous>"}else{for(let e=0;e<o.length;e++){s[`db.mongodb.${o[e]}`]=JSON.stringify(n[e])}}}catch(e){}return r}}Mongo.__initStatic();t.Mongo=Mongo},458:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(3582);const o=n(2780);class Mysql{static __initStatic(){this.id="Mysql"}constructor(){this.name=Mysql.id}loadDependency(){return this._module=this._module||r.loadModule("mysql/lib/Connection.js")}setupOnce(e,t){if(o.shouldDisableAutoInstrumentation(t)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log("Mysql Integration is skipped because of instrumenter configuration.");return}const n=this.loadDependency();if(!n){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.error("Mysql Integration was unable to require `mysql` package.");return}let i=undefined;try{n.prototype.connect=new Proxy(n.prototype.connect,{apply(e,t,n){if(!i){i=t.config}return e.apply(t,n)}})}catch(e){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.error("Mysql Integration was unable to instrument `mysql` config.")}function spanDataFromConfig(){if(!i){return{}}return{"server.address":i.host,"server.port":i.port,"db.user":i.user}}function finishSpan(e){if(!e){return}const t=spanDataFromConfig();Object.keys(t).forEach((n=>{e.setData(n,t[n])}));e.finish()}r.fill(n,"createQuery",(function(e){return function(n,r,o){const i=t().getScope();const a=i.getSpan();const c=s([a,"optionalAccess",e=>e.startChild,"call",e=>e({description:typeof n==="string"?n:n.sql,op:"db",origin:"auto.db.mysql",data:{"db.system":"mysql"}})]);if(typeof o==="function"){return e.call(this,n,r,(function(e,t,n){finishSpan(c);o(e,t,n)}))}if(typeof r==="function"){return e.call(this,n,(function(e,t,n){finishSpan(c);r(e,t,n)}))}return e.call(this,n,r,(function(){finishSpan(c)}))}}))}}Mysql.__initStatic();t.Mysql=Mysql},7438:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(3582);const o=n(2780);class Postgres{static __initStatic(){this.id="Postgres"}constructor(e={}){this.name=Postgres.id;this._usePgNative=!!e.usePgNative}loadDependency(){return this._module=this._module||r.loadModule("pg")}setupOnce(e,t){if(o.shouldDisableAutoInstrumentation(t)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.log("Postgres Integration is skipped because of instrumenter configuration.");return}const n=this.loadDependency();if(!n){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.error("Postgres Integration was unable to require `pg` package.");return}if(this._usePgNative&&!s([n,"access",e=>e.native,"optionalAccess",e=>e.Client])){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.error("Postgres Integration was unable to access 'pg-native' bindings.");return}const{Client:i}=this._usePgNative?n.native:n;r.fill(i.prototype,"query",(function(e){return function(n,o,i){const a=t().getScope();const c=a.getSpan();const u={"db.system":"postgresql"};try{if(this.database){u["db.name"]=this.database}if(this.host){u["server.address"]=this.host}if(this.port){u["server.port"]=this.port}if(this.user){u["db.user"]=this.user}}catch(e){}const l=s([c,"optionalAccess",e=>e.startChild,"call",e=>e({description:typeof n==="string"?n:n.text,op:"db",origin:"auto.db.postgres",data:u})]);if(typeof i==="function"){return e.call(this,n,o,(function(e,t){s([l,"optionalAccess",e=>e.finish,"call",e=>e()]);i(e,t)}))}if(typeof o==="function"){return e.call(this,n,(function(e,t){s([l,"optionalAccess",e=>e.finish,"call",e=>e()]);o(e,t)}))}const p=typeof o!=="undefined"?e.call(this,n,o):e.call(this,n);if(r.isThenable(p)){return p.then((e=>{s([l,"optionalAccess",e=>e.finish,"call",e=>e()]);return e}))}s([l,"optionalAccess",e=>e.finish,"call",e=>e()]);return p}}))}}Postgres.__initStatic();t.Postgres=Postgres},405:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(5761);const r=n(3582);const o=n(2780);function isValidPrismaClient(e){return!!e&&!!e["$use"]}class Prisma{static __initStatic(){this.id="Prisma"}constructor(e={}){this.name=Prisma.id;if(isValidPrismaClient(e.client)&&!e.client._sentryInstrumented){r.addNonEnumerableProperty(e.client,"_sentryInstrumented",true);const t={};try{const n=e.client._engineConfig;if(n){const{activeProvider:e,clientVersion:s}=n;if(e){t["db.system"]=e}if(s){t["db.prisma.version"]=s}}}catch(e){}e.client.$use(((e,n)=>{if(o.shouldDisableAutoInstrumentation(s.getCurrentHub)){return n(e)}const r=e.action;const i=e.model;return s.trace({name:i?`${i} ${r}`:r,op:"db.sql.prisma",origin:"auto.db.prisma",data:{...t,"db.operation":r}},(()=>n(e)))}))}else{(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.warn("Unsupported Prisma client provided to PrismaIntegration. Provided client:",e.client)}}setupOnce(){}}Prisma.__initStatic();t.Prisma=Prisma},2780:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});function shouldDisableAutoInstrumentation(e){const t=s([e,"call",e=>e(),"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e()]);const n=s([t,"optionalAccess",e=>e.instrumenter])||"sentry";return n!=="sentry"}t.shouldDisableAutoInstrumentation=shouldDisableAutoInstrumentation},4355:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r="7";function getBaseApiEndpoint(e){const t=e.protocol?`${e.protocol}:`:"";const n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function _getIngestEndpoint(e){return`${getBaseApiEndpoint(e)}${e.projectId}/envelope/`}function _encodedAuth(e,t){return s.urlEncode({sentry_key:e.publicKey,sentry_version:r,...t&&{sentry_client:`${t.name}/${t.version}`}})}function getEnvelopeEndpointWithUrlEncodedAuth(e,t={}){const n=typeof t==="string"?t:t.tunnel;const s=typeof t==="string"||!t._metadata?undefined:t._metadata.sdk;return n?n:`${_getIngestEndpoint(e)}?${_encodedAuth(e,s)}`}function getReportDialogEndpoint(e,t){const n=s.makeDsn(e);if(!n){return""}const r=`${getBaseApiEndpoint(n)}embed/error-page/`;let o=`dsn=${s.dsnToString(n)}`;for(const e in t){if(e==="dsn"){continue}if(e==="user"){const e=t.user;if(!e){continue}if(e.name){o+=`&name=${encodeURIComponent(e.name)}`}if(e.email){o+=`&email=${encodeURIComponent(e.email)}`}}else{o+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`}}return`${r}?${o}`}t.getEnvelopeEndpointWithUrlEncodedAuth=getEnvelopeEndpointWithUrlEncodedAuth;t.getReportDialogEndpoint=getReportDialogEndpoint},718:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(4355);const o=n(5365);const i=n(2867);const a=n(3017);const c=n(5781);const u=n(2280);const l="Not capturing exception because it's already been captured.";class BaseClient{constructor(e){this._options=e;this._integrations={};this._integrationsInitialized=false;this._numProcessing=0;this._outcomes={};this._hooks={};this._eventProcessors=[];if(e.dsn){this._dsn=s.makeDsn(e.dsn)}else{(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn("No DSN provided, client will not do anything.")}if(this._dsn){const t=r.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(s.checkOrSetAlreadyCaught(e)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log(l);return}let r=t&&t.event_id;this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e})));return r}captureMessage(e,t,n,r){let o=n&&n.event_id;const i=s.isPrimitive(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);this._process(i.then((e=>this._captureEvent(e,n,r))).then((e=>{o=e})));return o}captureEvent(e,t,n){if(t&&t.originalException&&s.checkOrSetAlreadyCaught(t.originalException)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log(l);return}let r=t&&t.event_id;this._process(this._captureEvent(e,t,n).then((e=>{r=e})));return r}captureSession(e){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn("SDK not enabled, will not capture session.");return}if(!(typeof e.release==="string")){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn("Discarded session because of missing or non-string release")}else{this.sendSession(e);a.updateSession(e,{init:false})}}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;if(t){return this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))}else{return s.resolvedSyncPromise(true)}}close(e){return this.flush(e).then((e=>{this.getOptions().enabled=false;return e}))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(){if(this._isEnabled()&&!this._integrationsInitialized){this._integrations=i.setupIntegrations(this,this._options.integrations);this._integrationsInitialized=true}}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn(`Cannot retrieve integration ${e.id} from the current Client`);return null}}addIntegration(e){i.setupIntegration(this,e,this._integrations)}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);if(this._dsn){let n=o.createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[]){n=s.addItemToEnvelope(n,s.createAttachmentEnvelopeItem(e,this._options.transportOptions&&this._options.transportOptions.textEncoder))}const r=this._sendEnvelope(n);if(r){r.then((t=>this.emit("afterSendEvent",e,t)),null)}}}sendSession(e){if(this._dsn){const t=o.createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);void this._sendEnvelope(t)}}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log(`Adding outcome: "${n}"`);this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){if(!this._hooks[e]){this._hooks[e]=[]}this._hooks[e].push(t)}emit(e,...t){if(this._hooks[e]){this._hooks[e].forEach((e=>e(...t)))}}_updateSessionFromEvent(e,t){let n=false;let s=false;const r=t.exception&&t.exception.values;if(r){s=true;for(const e of r){const t=e.mechanism;if(t&&t.handled===false){n=true;break}}}const o=e.status==="ok";const i=o&&e.errors===0||o&&n;if(i){a.updateSession(e,{...n&&{status:"crashed"},errors:e.errors||Number(s||n)});this.captureSession(e)}}_isClientDoneProcessing(e){return new s.SyncPromise((t=>{let n=0;const s=1;const r=setInterval((()=>{if(this._numProcessing==0){clearInterval(r);t(true)}else{n+=s;if(e&&n>=e){clearInterval(r);t(false)}}}),s)}))}_isEnabled(){return this.getOptions().enabled!==false&&this._dsn!==undefined}_prepareEvent(e,t,n){const s=this.getOptions();const r=Object.keys(this._integrations);if(!t.integrations&&r.length>0){t.integrations=r}this.emit("preprocessEvent",e,t);return u.prepareEvent(s,e,t,n,this).then((e=>{if(e===null){return e}const{propagationContext:t}=e.sdkProcessingMetadata||{};const s=e.contexts&&e.contexts.trace;if(!s&&t){const{traceId:s,spanId:r,parentSpanId:o,dsc:i}=t;e.contexts={trace:{trace_id:s,span_id:r,parent_span_id:o},...e.contexts};const a=i?i:c.getDynamicSamplingContextFromClient(s,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__){const t=e;if(t.logLevel==="log"){s.logger.log(t.message)}else{s.logger.warn(t)}}return undefined}))}_processEvent(e,t,n){const r=this.getOptions();const{sampleRate:o}=r;if(!this._isEnabled()){return s.rejectedSyncPromise(new s.SentryError("SDK not enabled, will not capture event.","log"))}const i=isTransactionEvent(e);const a=isErrorEvent(e);const c=e.type||"error";const u=`before send for type \`${c}\``;if(a&&typeof o==="number"&&Math.random()>o){this.recordDroppedEvent("sample_rate","error",e);return s.rejectedSyncPromise(new s.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"))}const l=c==="replay_event"?"replay":c;return this._prepareEvent(e,t,n).then((n=>{if(n===null){this.recordDroppedEvent("event_processor",l,e);throw new s.SentryError("An event processor returned `null`, will not send event.","log")}const o=t.data&&t.data.__sentry__===true;if(o){return n}const i=processBeforeSend(r,n,t);return _validateBeforeSendResult(i,u)})).then((r=>{if(r===null){this.recordDroppedEvent("before_send",l,e);throw new s.SentryError(`${u} returned \`null\`, will not send event.`,"log")}const o=n&&n.getSession();if(!i&&o){this._updateSessionFromEvent(o,r)}const a=r.transaction_info;if(i&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}this.sendEvent(r,t);return r})).then(null,(e=>{if(e instanceof s.SentryError){throw e}this.captureException(e,{data:{__sentry__:true},originalException:e});throw new s.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++;void e.then((e=>{this._numProcessing--;return e}),(e=>{this._numProcessing--;return e}))}_sendEnvelope(e){if(this._transport&&this._dsn){this.emit("beforeEnvelope",e);return this._transport.send(e).then(null,(e=>{(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.error("Error while sending event:",e)}))}else{(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.error("Transport disabled")}}_clearOutcomes(){const e=this._outcomes;this._outcomes={};return Object.keys(e).map((t=>{const[n,s]=t.split(":");return{reason:n,category:s,quantity:e[t]}}))}}function _validateBeforeSendResult(e,t){const n=`${t} must return \`null\` or a valid event.`;if(s.isThenable(e)){return e.then((e=>{if(!s.isPlainObject(e)&&e!==null){throw new s.SentryError(n)}return e}),(e=>{throw new s.SentryError(`${t} rejected with ${e}`)}))}else if(!s.isPlainObject(e)&&e!==null){throw new s.SentryError(n)}return e}function processBeforeSend(e,t,n){const{beforeSend:s,beforeSendTransaction:r}=e;if(isErrorEvent(t)&&s){return s(t,n)}if(isTransactionEvent(t)&&r){return r(t,n)}return t}function isErrorEvent(e){return e.type===undefined}function isTransactionEvent(e){return e.type==="transaction"}t.BaseClient=BaseClient},1217:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);function createCheckInEnvelope(e,t,n,r,o){const i={sent_at:(new Date).toISOString()};if(n&&n.sdk){i.sdk={name:n.sdk.name,version:n.sdk.version}}if(!!r&&!!o){i.dsn=s.dsnToString(o)}if(t){i.trace=s.dropUndefinedKeys(t)}const a=createCheckInEnvelopeItem(e);return s.createEnvelope(i,[a])}function createCheckInEnvelopeItem(e){const t={type:"check_in"};return[t,e]}t.createCheckInEnvelope=createCheckInEnvelope},8957:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});const n="production";t.DEFAULT_ENVIRONMENT=n},5365:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);function enhanceEventWithSdkInfo(e,t){if(!t){return e}e.sdk=e.sdk||{};e.sdk.name=e.sdk.name||t.name;e.sdk.version=e.sdk.version||t.version;e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]];e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]];return e}function createSessionEnvelope(e,t,n,r){const o=s.getSdkMetadataForEnvelopeHeader(n);const i={sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&{dsn:s.dsnToString(t)}};const a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return s.createEnvelope(i,[a])}function createEventEnvelope(e,t,n,r){const o=s.getSdkMetadataForEnvelopeHeader(n);const i=e.type&&e.type!=="replay_event"?e.type:"event";enhanceEventWithSdkInfo(e,n&&n.sdk);const a=s.createEventEnvelopeHeaders(e,o,r,t);delete e.sdkProcessingMetadata;const c=[{type:i},e];return s.createEnvelope(a,[c])}t.createEventEnvelope=createEventEnvelope;t.createSessionEnvelope=createSessionEnvelope},4925:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);function getGlobalEventProcessors(){return s.getGlobalSingleton("globalEventProcessors",(()=>[]))}function addGlobalEventProcessor(e){getGlobalEventProcessors().push(e)}function notifyEventProcessors(e,t,n,r=0){return new s.SyncPromise(((o,i)=>{const a=e[r];if(t===null||typeof a!=="function"){o(t)}else{const c=a({...t},n);(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&a.id&&c===null&&s.logger.log(`Event processor "${a.id}" dropped event`);if(s.isThenable(c)){void c.then((t=>notifyEventProcessors(e,t,n,r+1).then(o))).then(null,i)}else{void notifyEventProcessors(e,c,n,r+1).then(o).then(null,i)}}}))}t.addGlobalEventProcessor=addGlobalEventProcessor;t.getGlobalEventProcessors=getGlobalEventProcessors;t.notifyEventProcessors=notifyEventProcessors},7918:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(7390);function captureException(e,t){return r.getCurrentHub().captureException(e,{captureContext:t})}function captureMessage(e,t){const n=typeof t==="string"?t:undefined;const s=typeof t!=="string"?{captureContext:t}:undefined;return r.getCurrentHub().captureMessage(e,n,s)}function captureEvent(e,t){return r.getCurrentHub().captureEvent(e,t)}function configureScope(e){r.getCurrentHub().configureScope(e)}function addBreadcrumb(e){r.getCurrentHub().addBreadcrumb(e)}function setContext(e,t){r.getCurrentHub().setContext(e,t)}function setExtras(e){r.getCurrentHub().setExtras(e)}function setExtra(e,t){r.getCurrentHub().setExtra(e,t)}function setTags(e){r.getCurrentHub().setTags(e)}function setTag(e,t){r.getCurrentHub().setTag(e,t)}function setUser(e){r.getCurrentHub().setUser(e)}function withScope(e){r.getCurrentHub().withScope(e)}function startTransaction(e,t){return r.getCurrentHub().startTransaction({...e},t)}function captureCheckIn(e,t){const n=r.getCurrentHub();const o=n.getScope();const i=n.getClient();if(!i){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn("Cannot capture check-in. No client defined.")}else if(!i.captureCheckIn){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn("Cannot capture check-in. Client does not support sending check-ins.")}else{return i.captureCheckIn(e,t,o)}return s.uuid4()}async function flush(e){const t=r.getCurrentHub().getClient();if(t){return t.flush(e)}(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn("Cannot flush events. No client defined.");return Promise.resolve(false)}async function close(e){const t=r.getCurrentHub().getClient();if(t){return t.close(e)}(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn("Cannot flush events and disable SDK. No client defined.");return Promise.resolve(false)}function lastEventId(){return r.getCurrentHub().lastEventId()}t.addBreadcrumb=addBreadcrumb;t.captureCheckIn=captureCheckIn;t.captureEvent=captureEvent;t.captureException=captureException;t.captureMessage=captureMessage;t.close=close;t.configureScope=configureScope;t.flush=flush;t.lastEventId=lastEventId;t.setContext=setContext;t.setExtra=setExtra;t.setExtras=setExtras;t.setTag=setTag;t.setTags=setTags;t.setUser=setUser;t.startTransaction=startTransaction;t.withScope=withScope},7390:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(8957);const o=n(3997);const i=n(3017);const a=4;const c=100;class Hub{constructor(e,t=new o.Scope,n=a){this._version=n;this._stack=[{scope:t}];if(e){this.bindClient(e)}}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e;if(e&&e.setupIntegrations){e.setupIntegrations()}}pushScope(){const e=o.Scope.clone(this.getScope());this.getStack().push({client:this.getClient(),scope:e});return e}popScope(){if(this.getStack().length<=1)return false;return!!this.getStack().pop()}withScope(e){const t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:s.uuid4();const r=new Error("Sentry syntheticException");this._withClient(((s,o)=>{s.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},o)}));return n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:s.uuid4();const o=new Error(e);this._withClient(((s,i)=>{s.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},i)}));return r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:s.uuid4();if(!e.type){this._lastEventId=n}this._withClient(((s,r)=>{s.captureEvent(e,{...t,event_id:n},r)}));return n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=c}=r.getOptions&&r.getOptions()||{};if(i<=0)return;const a=s.dateTimestampInSeconds();const u={timestamp:a,...e};const l=o?s.consoleSandbox((()=>o(u,t))):u;if(l===null)return;if(r.emit){r.emit("beforeAddBreadcrumb",l,t)}n.addBreadcrumb(l,i)}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();if(n){e(t)}}run(e){const t=makeMain(this);try{e(this)}finally{makeMain(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn(`Cannot retrieve integration ${e.id} from the current Hub`);return null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if((typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&!n){const e=this.getClient();if(!e){console.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}else{console.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n`)}}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=false){if(e){return this.endSession()}this._sendSessionUpdate()}endSession(){const e=this.getStackTop();const t=e.scope;const n=t.getSession();if(n){i.closeSession(n)}this._sendSessionUpdate();t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop();const{release:o,environment:a=r.DEFAULT_ENVIRONMENT}=n&&n.getOptions()||{};const{userAgent:c}=s.GLOBAL_OBJ.navigator||{};const u=i.makeSession({release:o,environment:a,user:t.getUser(),...c&&{userAgent:c},...e});const l=t.getSession&&t.getSession();if(l&&l.status==="ok"){i.updateSession(l,{status:"exited"})}this.endSession();t.setSession(u);return u}shouldSendDefaultPii(){const e=this.getClient();const t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();const n=e.getSession();if(n&&t&&t.captureSession){t.captureSession(n)}}_withClient(e){const{scope:t,client:n}=this.getStackTop();if(n){e(n,t)}}_callExtensionMethod(e,...t){const n=getMainCarrier();const r=n.__SENTRY__;if(r&&r.extensions&&typeof r.extensions[e]==="function"){return r.extensions[e].apply(this,t)}(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function getMainCarrier(){s.GLOBAL_OBJ.__SENTRY__=s.GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:undefined};return s.GLOBAL_OBJ}function makeMain(e){const t=getMainCarrier();const n=getHubFromCarrier(t);setHubOnCarrier(t,e);return n}function getCurrentHub(){const e=getMainCarrier();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t){return t}}return getGlobalHub(e)}function getGlobalHub(e=getMainCarrier()){if(!hasHubOnCarrier(e)||getHubFromCarrier(e).isOlderThan(a)){setHubOnCarrier(e,new Hub)}return getHubFromCarrier(e)}function ensureHubOnCarrier(e,t=getGlobalHub()){if(!hasHubOnCarrier(e)||getHubFromCarrier(e).isOlderThan(a)){const n=t.getStackTop();setHubOnCarrier(e,new Hub(n.client,o.Scope.clone(n.scope)))}}function setAsyncContextStrategy(e){const t=getMainCarrier();t.__SENTRY__=t.__SENTRY__||{};t.__SENTRY__.acs=e}function runWithAsyncContext(e,t={}){const n=getMainCarrier();if(n.__SENTRY__&&n.__SENTRY__.acs){return n.__SENTRY__.acs.runWithAsyncContext(e,t)}return e()}function hasHubOnCarrier(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function getHubFromCarrier(e){return s.getGlobalSingleton("hub",(()=>new Hub),e)}function setHubOnCarrier(e,t){if(!e)return false;const n=e.__SENTRY__=e.__SENTRY__||{};n.hub=t;return true}t.API_VERSION=a;t.Hub=Hub;t.ensureHubOnCarrier=ensureHubOnCarrier;t.getCurrentHub=getCurrentHub;t.getHubFromCarrier=getHubFromCarrier;t.getMainCarrier=getMainCarrier;t.makeMain=makeMain;t.runWithAsyncContext=runWithAsyncContext;t.setAsyncContextStrategy=setAsyncContextStrategy;t.setHubOnCarrier=setHubOnCarrier},5761:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(7221);const r=n(472);const o=n(566);const i=n(1701);const a=n(4120);const c=n(3950);const u=n(917);const l=n(5781);const p=n(4329);const d=n(7918);const f=n(7390);const m=n(3017);const h=n(7064);const g=n(3997);const _=n(4925);const v=n(4355);const b=n(718);const x=n(2040);const y=n(9869);const E=n(6845);const D=n(9492);const S=n(8645);const w=n(3109);const C=n(2867);const T=n(117);const R=n(2280);const k=n(1217);const O=n(4634);const F=n(8957);const A=n(5078);const P=n(1499);const I=n(7312);const N=n(3582);t.addTracingExtensions=s.addTracingExtensions;t.startIdleTransaction=s.startIdleTransaction;t.IdleTransaction=r.IdleTransaction;t.TRACING_DEFAULTS=r.TRACING_DEFAULTS;t.Span=o.Span;t.spanStatusfromHttpCode=o.spanStatusfromHttpCode;t.Transaction=i.Transaction;t.getActiveTransaction=a.getActiveTransaction;Object.defineProperty(t,"SpanStatus",{enumerable:true,get:()=>c.SpanStatus});t.getActiveSpan=u.getActiveSpan;t.startActiveSpan=u.startActiveSpan;t.startInactiveSpan=u.startInactiveSpan;t.startSpan=u.startSpan;t.startSpanManual=u.startSpanManual;t.trace=u.trace;t.getDynamicSamplingContextFromClient=l.getDynamicSamplingContextFromClient;t.setMeasurement=p.setMeasurement;t.addBreadcrumb=d.addBreadcrumb;t.captureCheckIn=d.captureCheckIn;t.captureEvent=d.captureEvent;t.captureException=d.captureException;t.captureMessage=d.captureMessage;t.close=d.close;t.configureScope=d.configureScope;t.flush=d.flush;t.lastEventId=d.lastEventId;t.setContext=d.setContext;t.setExtra=d.setExtra;t.setExtras=d.setExtras;t.setTag=d.setTag;t.setTags=d.setTags;t.setUser=d.setUser;t.startTransaction=d.startTransaction;t.withScope=d.withScope;t.Hub=f.Hub;t.ensureHubOnCarrier=f.ensureHubOnCarrier;t.getCurrentHub=f.getCurrentHub;t.getHubFromCarrier=f.getHubFromCarrier;t.getMainCarrier=f.getMainCarrier;t.makeMain=f.makeMain;t.runWithAsyncContext=f.runWithAsyncContext;t.setAsyncContextStrategy=f.setAsyncContextStrategy;t.setHubOnCarrier=f.setHubOnCarrier;t.closeSession=m.closeSession;t.makeSession=m.makeSession;t.updateSession=m.updateSession;t.SessionFlusher=h.SessionFlusher;t.Scope=g.Scope;t.addGlobalEventProcessor=_.addGlobalEventProcessor;t.getEnvelopeEndpointWithUrlEncodedAuth=v.getEnvelopeEndpointWithUrlEncodedAuth;t.getReportDialogEndpoint=v.getReportDialogEndpoint;t.BaseClient=b.BaseClient;t.ServerRuntimeClient=x.ServerRuntimeClient;t.initAndBind=y.initAndBind;t.createTransport=E.createTransport;t.makeOfflineTransport=D.makeOfflineTransport;t.makeMultiplexedTransport=S.makeMultiplexedTransport;t.SDK_VERSION=w.SDK_VERSION;t.getIntegrationsToSetup=C.getIntegrationsToSetup;t.Integrations=T;t.prepareEvent=R.prepareEvent;t.createCheckInEnvelope=k.createCheckInEnvelope;t.hasTracingEnabled=O.hasTracingEnabled;t.DEFAULT_ENVIRONMENT=F.DEFAULT_ENVIRONMENT;t.ModuleMetadata=A.ModuleMetadata;t.FunctionToString=P.FunctionToString;t.InboundFilters=I.InboundFilters;t.extractTraceparentData=N.extractTraceparentData},2867:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(4925);const o=n(7390);const i=[];function filterDuplicates(e){const t={};e.forEach((e=>{const{name:n}=e;const s=t[n];if(s&&!s.isDefaultInstance&&e.isDefaultInstance){return}t[n]=e}));return Object.keys(t).map((e=>t[e]))}function getIntegrationsToSetup(e){const t=e.defaultIntegrations||[];const n=e.integrations;t.forEach((e=>{e.isDefaultInstance=true}));let r;if(Array.isArray(n)){r=[...t,...n]}else if(typeof n==="function"){r=s.arrayify(n(t))}else{r=t}const o=filterDuplicates(r);const i=findIndex(o,(e=>e.name==="Debug"));if(i!==-1){const[e]=o.splice(i,1);o.push(e)}return o}function setupIntegrations(e,t){const n={};t.forEach((t=>{if(t){setupIntegration(e,t,n)}}));return n}function setupIntegration(e,t,n){n[t.name]=t;if(i.indexOf(t.name)===-1){t.setupOnce(r.addGlobalEventProcessor,o.getCurrentHub);i.push(t.name)}if(e.on&&typeof t.preprocessEvent==="function"){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,s)=>n(t,s,e)))}if(e.addEventProcessor&&typeof t.processEvent==="function"){const n=t.processEvent.bind(t);const s=Object.assign(((t,s)=>n(t,s,e)),{id:t.name});e.addEventProcessor(s)}(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log(`Integration installed: ${t.name}`)}function findIndex(e,t){for(let n=0;n<e.length;n++){if(t(e[n])===true){return n}}return-1}t.getIntegrationsToSetup=getIntegrationsToSetup;t.installedIntegrations=i;t.setupIntegration=setupIntegration;t.setupIntegrations=setupIntegrations},1499:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);let r;class FunctionToString{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=FunctionToString.id}setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=s.getOriginalFunction(this)||this;return r.apply(t,e)}}catch(e){}}}FunctionToString.__initStatic();t.FunctionToString=FunctionToString},7312:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];const o=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class InboundFilters{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=InboundFilters.id;this._options=e}setupOnce(e,t){const eventProcess=e=>{const n=t();if(n){const t=n.getIntegration(InboundFilters);if(t){const s=n.getClient();const r=s?s.getOptions():{};const o=_mergeOptions(t._options,r);return _shouldDropEvent(e,o)?null:e}}return e};eventProcess.id=this.name;e(eventProcess)}}InboundFilters.__initStatic();function _mergeOptions(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:r],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:o],ignoreInternal:e.ignoreInternal!==undefined?e.ignoreInternal:true}}function _shouldDropEvent(e,t){if(t.ignoreInternal&&_isSentryError(e)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${s.getEventDescription(e)}`);return true}if(_isIgnoredError(e,t.ignoreErrors)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${s.getEventDescription(e)}`);return true}if(_isIgnoredTransaction(e,t.ignoreTransactions)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${s.getEventDescription(e)}`);return true}if(_isDeniedUrl(e,t.denyUrls)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${s.getEventDescription(e)}.\nUrl: ${_getEventFilterUrl(e)}`);return true}if(!_isAllowedUrl(e,t.allowUrls)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${s.getEventDescription(e)}.\nUrl: ${_getEventFilterUrl(e)}`);return true}return false}function _isIgnoredError(e,t){if(e.type||!t||!t.length){return false}return _getPossibleEventMessages(e).some((e=>s.stringMatchesSomePattern(e,t)))}function _isIgnoredTransaction(e,t){if(e.type!=="transaction"||!t||!t.length){return false}const n=e.transaction;return n?s.stringMatchesSomePattern(n,t):false}function _isDeniedUrl(e,t){if(!t||!t.length){return false}const n=_getEventFilterUrl(e);return!n?false:s.stringMatchesSomePattern(n,t)}function _isAllowedUrl(e,t){if(!t||!t.length){return true}const n=_getEventFilterUrl(e);return!n?true:s.stringMatchesSomePattern(n,t)}function _getPossibleEventMessages(e){const t=[];if(e.message){t.push(e.message)}let n;try{n=e.exception.values[e.exception.values.length-1]}catch(e){}if(n){if(n.value){t.push(n.value);if(n.type){t.push(`${n.type}: ${n.value}`)}}}if((typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&t.length===0){s.logger.error(`Could not extract message for event ${s.getEventDescription(e)}`)}return t}function _isSentryError(e){try{return e.exception.values[0].type==="SentryError"}catch(e){}return false}function _getLastValidUrl(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]"){return n.filename||null}}return null}function _getEventFilterUrl(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?_getLastValidUrl(t):null}catch(t){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.error(`Cannot extract url for event ${s.getEventDescription(e)}`);return null}}t.InboundFilters=InboundFilters;t._mergeOptions=_mergeOptions;t._shouldDropEvent=_shouldDropEvent},117:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(1499);const r=n(7312);t.FunctionToString=s.FunctionToString;t.InboundFilters=r.InboundFilters},5078:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(2890);class ModuleMetadata{static __initStatic(){this.id="ModuleMetadata"}constructor(){this.name=ModuleMetadata.id}setupOnce(e,t){const n=t().getClient();if(!n||typeof n.on!=="function"){return}n.on("beforeEnvelope",(e=>{s.forEachEnvelopeItem(e,((e,t)=>{if(t==="event"){const t=Array.isArray(e)?e[1]:undefined;if(t){r.stripMetadataFromStackFrames(t);e[1]=t}}}))}));const o=n.getOptions().stackParser;e((e=>{r.addMetadataToStackFrames(o,e);return e}))}}ModuleMetadata.__initStatic();t.ModuleMetadata=ModuleMetadata},2890:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=new Map;const o=new Set;function ensureMetadataStacksAreParsed(e){if(!s.GLOBAL_OBJ._sentryModuleMetadata){return}for(const t of Object.keys(s.GLOBAL_OBJ._sentryModuleMetadata)){const n=s.GLOBAL_OBJ._sentryModuleMetadata[t];if(o.has(t)){continue}o.add(t);const i=e(t);for(const e of i.reverse()){if(e.filename){r.set(e.filename,n);break}}}}function getMetadataForUrl(e,t){ensureMetadataStacksAreParsed(e);return r.get(t)}function addMetadataToStackFrames(e,t){try{t.exception.values.forEach((t=>{if(!t.stacktrace){return}for(const n of t.stacktrace.frames||[]){if(!n.filename){continue}const t=getMetadataForUrl(e,n.filename);if(t){n.module_metadata=t}}}))}catch(e){}}function stripMetadataFromStackFrames(e){try{e.exception.values.forEach((e=>{if(!e.stacktrace){return}for(const t of e.stacktrace.frames||[]){delete t.module_metadata}}))}catch(e){}}t.addMetadataToStackFrames=addMetadataToStackFrames;t.getMetadataForUrl=getMetadataForUrl;t.stripMetadataFromStackFrames=stripMetadataFromStackFrames},3997:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(4925);const o=n(3017);const i=100;class Scope{constructor(){this._notifyingListeners=false;this._scopeListeners=[];this._eventProcessors=[];this._breadcrumbs=[];this._attachments=[];this._user={};this._tags={};this._extra={};this._contexts={};this._sdkProcessingMetadata={};this._propagationContext=generatePropagationContext()}static clone(e){const t=new Scope;if(e){t._breadcrumbs=[...e._breadcrumbs];t._tags={...e._tags};t._extra={...e._extra};t._contexts={...e._contexts};t._user=e._user;t._level=e._level;t._span=e._span;t._session=e._session;t._transactionName=e._transactionName;t._fingerprint=e._fingerprint;t._eventProcessors=[...e._eventProcessors];t._requestSession=e._requestSession;t._attachments=[...e._attachments];t._sdkProcessingMetadata={...e._sdkProcessingMetadata};t._propagationContext={...e._propagationContext}}return t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){this._eventProcessors.push(e);return this}setUser(e){this._user=e||{};if(this._session){o.updateSession(this._session,{user:e})}this._notifyScopeListeners();return this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){this._requestSession=e;return this}setTags(e){this._tags={...this._tags,...e};this._notifyScopeListeners();return this}setTag(e,t){this._tags={...this._tags,[e]:t};this._notifyScopeListeners();return this}setExtras(e){this._extra={...this._extra,...e};this._notifyScopeListeners();return this}setExtra(e,t){this._extra={...this._extra,[e]:t};this._notifyScopeListeners();return this}setFingerprint(e){this._fingerprint=e;this._notifyScopeListeners();return this}setLevel(e){this._level=e;this._notifyScopeListeners();return this}setTransactionName(e){this._transactionName=e;this._notifyScopeListeners();return this}setContext(e,t){if(t===null){delete this._contexts[e]}else{this._contexts[e]=t}this._notifyScopeListeners();return this}setSpan(e){this._span=e;this._notifyScopeListeners();return this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){if(!e){delete this._session}else{this._session=e}this._notifyScopeListeners();return this}getSession(){return this._session}update(e){if(!e){return this}if(typeof e==="function"){const t=e(this);return t instanceof Scope?t:this}if(e instanceof Scope){this._tags={...this._tags,...e._tags};this._extra={...this._extra,...e._extra};this._contexts={...this._contexts,...e._contexts};if(e._user&&Object.keys(e._user).length){this._user=e._user}if(e._level){this._level=e._level}if(e._fingerprint){this._fingerprint=e._fingerprint}if(e._requestSession){this._requestSession=e._requestSession}if(e._propagationContext){this._propagationContext=e._propagationContext}}else if(s.isPlainObject(e)){e=e;this._tags={...this._tags,...e.tags};this._extra={...this._extra,...e.extra};this._contexts={...this._contexts,...e.contexts};if(e.user){this._user=e.user}if(e.level){this._level=e.level}if(e.fingerprint){this._fingerprint=e.fingerprint}if(e.requestSession){this._requestSession=e.requestSession}if(e.propagationContext){this._propagationContext=e.propagationContext}}return this}clear(){this._breadcrumbs=[];this._tags={};this._extra={};this._user={};this._contexts={};this._level=undefined;this._transactionName=undefined;this._fingerprint=undefined;this._requestSession=undefined;this._span=undefined;this._session=undefined;this._notifyScopeListeners();this._attachments=[];this._propagationContext=generatePropagationContext();return this}addBreadcrumb(e,t){const n=typeof t==="number"?t:i;if(n<=0){return this}const r={timestamp:s.dateTimestampInSeconds(),...e};const o=this._breadcrumbs;o.push(r);this._breadcrumbs=o.length>n?o.slice(-n):o;this._notifyScopeListeners();return this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){this._breadcrumbs=[];this._notifyScopeListeners();return this}addAttachment(e){this._attachments.push(e);return this}getAttachments(){return this._attachments}clearAttachments(){this._attachments=[];return this}applyToEvent(e,t={},n){if(this._extra&&Object.keys(this._extra).length){e.extra={...this._extra,...e.extra}}if(this._tags&&Object.keys(this._tags).length){e.tags={...this._tags,...e.tags}}if(this._user&&Object.keys(this._user).length){e.user={...this._user,...e.user}}if(this._contexts&&Object.keys(this._contexts).length){e.contexts={...this._contexts,...e.contexts}}if(this._level){e.level=this._level}if(this._transactionName){e.transaction=this._transactionName}if(this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const n=t.name;if(n){e.tags={transaction:n,...e.tags}}}}this._applyFingerprint(e);const s=this._getBreadcrumbs();const o=[...e.breadcrumbs||[],...s];e.breadcrumbs=o.length>0?o:undefined;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext};return r.notifyEventProcessors([...n||[],...r.getGlobalEventProcessors(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e};return this}setPropagationContext(e){this._propagationContext=e;return this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){if(!this._notifyingListeners){this._notifyingListeners=true;this._scopeListeners.forEach((e=>{e(this)}));this._notifyingListeners=false}}_applyFingerprint(e){e.fingerprint=e.fingerprint?s.arrayify(e.fingerprint):[];if(this._fingerprint){e.fingerprint=e.fingerprint.concat(this._fingerprint)}if(e.fingerprint&&!e.fingerprint.length){delete e.fingerprint}}}function generatePropagationContext(){return{traceId:s.uuid4(),spanId:s.uuid4().substring(16)}}t.Scope=Scope},9869:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(7390);function initAndBind(e,t){if(t.debug===true){if(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__){s.logger.enable()}else{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}}const n=r.getCurrentHub();const o=n.getScope();o.update(t.initialScope);const i=new e(t);n.bindClient(i)}t.initAndBind=initAndBind},2040:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(718);const o=n(1217);const i=n(7390);const a=n(7064);const c=n(7221);const u=n(5781);n(3950);class ServerRuntimeClient extends r.BaseClient{constructor(e){c.addTracingExtensions();super(e)}eventFromException(e,t){return s.resolvedSyncPromise(s.eventFromUnknownInput(i.getCurrentHub,this._options.stackParser,e,t))}eventFromMessage(e,t="info",n){return s.resolvedSyncPromise(s.eventFromMessage(this._options.stackParser,e,t,n,this._options.attachStacktrace))}captureException(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&n){const e=n.getRequestSession();if(e&&e.status==="ok"){e.status="errored"}}return super.captureException(e,t,n)}captureEvent(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&n){const t=e.type||"exception";const s=t==="exception"&&e.exception&&e.exception.values&&e.exception.values.length>0;if(s){const e=n.getRequestSession();if(e&&e.status==="ok"){e.status="errored"}}}return super.captureEvent(e,t,n)}close(e){if(this._sessionFlusher){this._sessionFlusher.close()}return super.close(e)}initSessionFlusher(){const{release:e,environment:t}=this._options;if(!e){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}else{this._sessionFlusher=new a.SessionFlusher(this,{release:e,environment:t})}}captureCheckIn(e,t,n){const r=e.status!=="in_progress"&&e.checkInId?e.checkInId:s.uuid4();if(!this._isEnabled()){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn("SDK not enabled, will not capture checkin.");return r}const i=this.getOptions();const{release:a,environment:c,tunnel:u}=i;const l={check_in_id:r,monitor_slug:e.monitorSlug,status:e.status,release:a,environment:c};if(e.status!=="in_progress"){l.duration=e.duration}if(t){l.monitor_config={schedule:t.schedule,checkin_margin:t.checkinMargin,max_runtime:t.maxRuntime,timezone:t.timezone}}const[p,d]=this._getTraceInfoFromScope(n);if(d){l.contexts={trace:d}}const f=o.createCheckInEnvelope(l,p,this.getSdkMetadata(),u,this.getDsn());(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.info("Sending checkin:",e.monitorSlug,e.status);void this._sendEnvelope(f);return r}_captureRequestSession(){if(!this._sessionFlusher){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")}else{this._sessionFlusher.incrementSessionStatusCount()}}_prepareEvent(e,t,n){if(this._options.platform){e.platform=e.platform||this._options.platform}if(this._options.runtime){e.contexts={...e.contexts,runtime:(e.contexts||{}).runtime||this._options.runtime}}if(this._options.serverName){e.server_name=e.server_name||this._options.serverName}return super._prepareEvent(e,t,n)}_getTraceInfoFromScope(e){if(!e){return[undefined,undefined]}const t=e.getSpan();if(t){const e=t.transaction?t.transaction.getDynamicSamplingContext():undefined;return[e,t.getTraceContext()]}const{traceId:n,spanId:s,parentSpanId:r,dsc:o}=e.getPropagationContext();const i={trace_id:n,span_id:s,parent_span_id:r};if(o){return[o,i]}return[u.getDynamicSamplingContextFromClient(n,this,e),i]}}t.ServerRuntimeClient=ServerRuntimeClient},3017:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);function makeSession(e){const t=s.timestampInSeconds();const n={sid:s.uuid4(),init:true,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:false,toJSON:()=>sessionToJSON(n)};if(e){updateSession(n,e)}return n}function updateSession(e,t={}){if(t.user){if(!e.ipAddress&&t.user.ip_address){e.ipAddress=t.user.ip_address}if(!e.did&&!t.did){e.did=t.user.id||t.user.email||t.user.username}}e.timestamp=t.timestamp||s.timestampInSeconds();if(t.ignoreDuration){e.ignoreDuration=t.ignoreDuration}if(t.sid){e.sid=t.sid.length===32?t.sid:s.uuid4()}if(t.init!==undefined){e.init=t.init}if(!e.did&&t.did){e.did=`${t.did}`}if(typeof t.started==="number"){e.started=t.started}if(e.ignoreDuration){e.duration=undefined}else if(typeof t.duration==="number"){e.duration=t.duration}else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}if(t.release){e.release=t.release}if(t.environment){e.environment=t.environment}if(!e.ipAddress&&t.ipAddress){e.ipAddress=t.ipAddress}if(!e.userAgent&&t.userAgent){e.userAgent=t.userAgent}if(typeof t.errors==="number"){e.errors=t.errors}if(t.status){e.status=t.status}}function closeSession(e,t){let n={};if(t){n={status:t}}else if(e.status==="ok"){n={status:"exited"}}updateSession(e,n)}function sessionToJSON(e){return s.dropUndefinedKeys({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==="number"||typeof e.did==="string"?`${e.did}`:undefined,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}t.closeSession=closeSession;t.makeSession=makeSession;t.updateSession=updateSession},7064:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(7390);class SessionFlusher{constructor(e,t){this._client=e;this.flushTimeout=60;this._pendingAggregates={};this._isEnabled=true;this._intervalId=setInterval((()=>this.flush()),this.flushTimeout*1e3);this._sessionAttrs=t}flush(){const e=this.getSessionAggregates();if(e.aggregates.length===0){return}this._pendingAggregates={};this._client.sendSession(e)}getSessionAggregates(){const e=Object.keys(this._pendingAggregates).map((e=>this._pendingAggregates[parseInt(e)]));const t={attrs:this._sessionAttrs,aggregates:e};return s.dropUndefinedKeys(t)}close(){clearInterval(this._intervalId);this._isEnabled=false;this.flush()}incrementSessionStatusCount(){if(!this._isEnabled){return}const e=r.getCurrentHub().getScope();const t=e.getRequestSession();if(t&&t.status){this._incrementSessionStatusCount(t.status,new Date);e.setRequestSession(undefined)}}_incrementSessionStatusCount(e,t){const n=new Date(t).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};const s=this._pendingAggregates[n];if(!s.started){s.started=new Date(n).toISOString()}switch(e){case"errored":s.errored=(s.errored||0)+1;return s.errored;case"ok":s.exited=(s.exited||0)+1;return s.exited;default:s.crashed=(s.crashed||0)+1;return s.crashed}}}t.SessionFlusher=SessionFlusher},5781:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(8957);function getDynamicSamplingContextFromClient(e,t,n){const o=t.getOptions();const{publicKey:i}=t.getDsn()||{};const{segment:a}=n&&n.getUser()||{};const c=s.dropUndefinedKeys({environment:o.environment||r.DEFAULT_ENVIRONMENT,release:o.release,user_segment:a,public_key:i,trace_id:e});t.emit&&t.emit("createDsc",c);return c}t.getDynamicSamplingContextFromClient=getDynamicSamplingContextFromClient},307:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(4120);let o=false;function registerErrorInstrumentation(){if(o){return}o=true;s.addInstrumentationHandler("error",errorCallback);s.addInstrumentationHandler("unhandledrejection",errorCallback)}function errorCallback(){const e=r.getActiveTransaction();if(e){const t="internal_error";(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log(`[Tracing] Transaction: ${t} -> Global error occured`);e.setStatus(t)}}errorCallback.tag="sentry_tracingErrorCallback";t.registerErrorInstrumentation=registerErrorInstrumentation},7221:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(7390);const o=n(4634);const i=n(307);const a=n(472);const c=n(1701);function traceHeaders(){const e=this.getScope();const t=e.getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function sample(e,t,n){if(!o.hasTracingEnabled(t)){e.sampled=false;return e}if(e.sampled!==undefined){e.setMetadata({sampleRate:Number(e.sampled)});return e}let r;if(typeof t.tracesSampler==="function"){r=t.tracesSampler(n);e.setMetadata({sampleRate:Number(r)})}else if(n.parentSampled!==undefined){r=n.parentSampled}else if(typeof t.tracesSampleRate!=="undefined"){r=t.tracesSampleRate;e.setMetadata({sampleRate:Number(r)})}else{r=1;e.setMetadata({sampleRate:r})}if(!isValidSampleRate(r)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn("[Tracing] Discarding transaction because of invalid sample rate.");e.sampled=false;return e}if(!r){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler==="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`);e.sampled=false;return e}e.sampled=Math.random()<r;if(!e.sampled){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`);return e}(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log(`[Tracing] starting ${e.op} transaction - ${e.name}`);return e}function isValidSampleRate(e){if(s.isNaN(e)||!(typeof e==="number"||typeof e==="boolean")){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return false}if(e<0||e>1){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`);return false}return true}function _startTransaction(e,t){const n=this.getClient();const r=n&&n.getOptions()||{};const o=r.instrumenter||"sentry";const i=e.instrumenter||"sentry";if(o!==i){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${o}\` instrumenter.\nThe transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`);e.sampled=false}let a=new c.Transaction(e,this);a=sample(a,r,{parentSampled:e.parentSampled,transactionContext:e,...t});if(a.sampled){a.initSpanRecorder(r._experiments&&r._experiments.maxSpans)}if(n&&n.emit){n.emit("startTransaction",a)}return a}function startIdleTransaction(e,t,n,s,r,o,i){const c=e.getClient();const u=c&&c.getOptions()||{};let l=new a.IdleTransaction(t,e,n,s,i,r);l=sample(l,u,{parentSampled:t.parentSampled,transactionContext:t,...o});if(l.sampled){l.initSpanRecorder(u._experiments&&u._experiments.maxSpans)}if(c&&c.emit){c.emit("startTransaction",l)}return l}function addTracingExtensions(){const e=r.getMainCarrier();if(!e.__SENTRY__){return}e.__SENTRY__.extensions=e.__SENTRY__.extensions||{};if(!e.__SENTRY__.extensions.startTransaction){e.__SENTRY__.extensions.startTransaction=_startTransaction}if(!e.__SENTRY__.extensions.traceHeaders){e.__SENTRY__.extensions.traceHeaders=traceHeaders}i.registerErrorInstrumentation()}t.addTracingExtensions=addTracingExtensions;t.startIdleTransaction=startIdleTransaction},472:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(566);const o=n(1701);const i={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};const a="finishReason";const c=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class IdleTransactionSpanRecorder extends r.SpanRecorder{constructor(e,t,n,s){super(s);this._pushActivity=e;this._popActivity=t;this.transactionSpanId=n}add(e){if(e.spanId!==this.transactionSpanId){e.finish=t=>{e.endTimestamp=typeof t==="number"?t:s.timestampInSeconds();this._popActivity(e.spanId)};if(e.endTimestamp===undefined){this._pushActivity(e.spanId)}}super.add(e)}}class IdleTransaction extends o.Transaction{constructor(e,t,n=i.idleTimeout,r=i.finalTimeout,o=i.heartbeatInterval,a=false){super(e,t);this._idleHub=t;this._idleTimeout=n;this._finalTimeout=r;this._heartbeatInterval=o;this._onScope=a;this.activities={};this._heartbeatCounter=0;this._finished=false;this._idleTimeoutCanceledPermanently=false;this._beforeFinishCallbacks=[];this._finishReason=c[4];if(a){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`);t.configureScope((e=>e.setSpan(this)))}this._restartIdleTimeout();setTimeout((()=>{if(!this._finished){this.setStatus("deadline_exceeded");this._finishReason=c[3];this.finish()}}),this._finalTimeout)}finish(e=s.timestampInSeconds()){this._finished=true;this.activities={};if(this.op==="ui.action.click"){this.setTag(a,this._finishReason)}if(this.spanRecorder){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log("[Tracing] finishing IdleTransaction",new Date(e*1e3).toISOString(),this.op);for(const t of this._beforeFinishCallbacks){t(this,e)}this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId){return true}if(!t.endTimestamp){t.endTimestamp=e;t.setStatus("cancelled");(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,undefined,2))}const n=t.startTimestamp<e;const r=(this._finalTimeout+this._idleTimeout)/1e3;const o=t.endTimestamp-this.startTimestamp<r;if(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__){const e=JSON.stringify(t,undefined,2);if(!n){s.logger.log("[Tracing] discarding Span since it happened after Transaction was finished",e)}else if(!o){s.logger.log("[Tracing] discarding Span since it finished after Transaction final timeout",e)}}return n&&o}));(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log("[Tracing] flushing IdleTransaction")}else{(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log("[Tracing] No active IdleTransaction")}if(this._onScope){const e=this._idleHub.getScope();if(e.getTransaction()===this){e.setSpan(undefined)}}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const pushActivity=e=>{if(this._finished){return}this._pushActivity(e)};const popActivity=e=>{if(this._finished){return}this._popActivity(e)};this.spanRecorder=new IdleTransactionSpanRecorder(pushActivity,popActivity,this.spanId,e);(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log("Starting heartbeat");this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:true}){this._idleTimeoutCanceledPermanently=t===false;if(this._idleTimeoutID){clearTimeout(this._idleTimeoutID);this._idleTimeoutID=undefined;if(Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently){this._finishReason=c[5];this.finish(e)}}}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout();this._idleTimeoutID=setTimeout((()=>{if(!this._finished&&Object.keys(this.activities).length===0){this._finishReason=c[1];this.finish(e)}}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(undefined,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently});(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log(`[Tracing] pushActivity: ${e}`);this.activities[e]=true;(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log(`[Tracing] popActivity ${e}`);delete this.activities[e];(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)}if(Object.keys(this.activities).length===0){const e=s.timestampInSeconds();if(this._idleTimeoutCanceledPermanently){this._finishReason=c[5];this.finish(e)}else{this._restartIdleTimeout(e+this._idleTimeout/1e3)}}}_beat(){if(this._finished){return}const e=Object.keys(this.activities).join("");if(e===this._prevHeartbeatString){this._heartbeatCounter++}else{this._heartbeatCounter=1}this._prevHeartbeatString=e;if(this._heartbeatCounter>=3){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log("[Tracing] Transaction finished because of no change for 3 heart beats");this.setStatus("deadline_exceeded");this._finishReason=c[0];this.finish()}else{this._pingHeartbeat()}}_pingHeartbeat(){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`);setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}t.IdleTransaction=IdleTransaction;t.IdleTransactionSpanRecorder=IdleTransactionSpanRecorder;t.TRACING_DEFAULTS=i},4329:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(4120);function setMeasurement(e,t,n){const r=s.getActiveTransaction();if(r){r.setMeasurement(e,t,n)}}t.setMeasurement=setMeasurement},566:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);class SpanRecorder{constructor(e=1e3){this._maxlen=e;this.spans=[]}add(e){if(this.spans.length>this._maxlen){e.spanRecorder=undefined}else{this.spans.push(e)}}}class Span{constructor(e={}){this.traceId=e.traceId||s.uuid4();this.spanId=e.spanId||s.uuid4().substring(16);this.startTimestamp=e.startTimestamp||s.timestampInSeconds();this.tags=e.tags||{};this.data=e.data||{};this.instrumenter=e.instrumenter||"sentry";this.origin=e.origin||"manual";if(e.parentSpanId){this.parentSpanId=e.parentSpanId}if("sampled"in e){this.sampled=e.sampled}if(e.op){this.op=e.op}if(e.description){this.description=e.description}if(e.name){this.description=e.name}if(e.status){this.status=e.status}if(e.endTimestamp){this.endTimestamp=e.endTimestamp}}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){const t=new Span({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});t.spanRecorder=this.spanRecorder;if(t.spanRecorder){t.spanRecorder.add(t)}t.transaction=this.transaction;if((typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&t.transaction){const n=e&&e.op||"< unknown op >";const r=t.transaction.name||"< unknown name >";const o=t.transaction.spanId;const i=`[Tracing] Starting '${n}' span on transaction '${r}' (${o}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:i};s.logger.log(i)}return t}setTag(e,t){this.tags={...this.tags,[e]:t};return this}setData(e,t){this.data={...this.data,[e]:t};return this}setStatus(e){this.status=e;return this}setHttpStatus(e){this.setTag("http.status_code",String(e));this.setData("http.response.status_code",e);const t=spanStatusfromHttpCode(e);if(t!=="unknown_error"){this.setStatus(t)}return this}setName(e){this.description=e}isSuccess(){return this.status==="ok"}finish(e){if((typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];if(e){s.logger.log(e.replace("Starting","Finishing"))}}this.endTimestamp=typeof e==="number"?e:s.timestampInSeconds()}toTraceparent(){return s.generateSentryTraceHeader(this.traceId,this.spanId,this.sampled)}toContext(){return s.dropUndefinedKeys({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){this.data=e.data||{};this.description=e.description;this.endTimestamp=e.endTimestamp;this.op=e.op;this.parentSpanId=e.parentSpanId;this.sampled=e.sampled;this.spanId=e.spanId||this.spanId;this.startTimestamp=e.startTimestamp||this.startTimestamp;this.status=e.status;this.tags=e.tags||{};this.traceId=e.traceId||this.traceId;return this}getTraceContext(){return s.dropUndefinedKeys({data:Object.keys(this.data).length>0?this.data:undefined,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:undefined,trace_id:this.traceId})}toJSON(){return s.dropUndefinedKeys({data:Object.keys(this.data).length>0?this.data:undefined,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:undefined,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}function spanStatusfromHttpCode(e){if(e<400&&e>=100){return"ok"}if(e>=400&&e<500){switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}}if(e>=500&&e<600){switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}}return"unknown_error"}t.Span=Span;t.SpanRecorder=SpanRecorder;t.spanStatusfromHttpCode=spanStatusfromHttpCode},3950:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.SpanStatus=void 0;(function(e){const t="ok";e["Ok"]=t;const n="deadline_exceeded";e["DeadlineExceeded"]=n;const s="unauthenticated";e["Unauthenticated"]=s;const r="permission_denied";e["PermissionDenied"]=r;const o="not_found";e["NotFound"]=o;const i="resource_exhausted";e["ResourceExhausted"]=i;const a="invalid_argument";e["InvalidArgument"]=a;const c="unimplemented";e["Unimplemented"]=c;const u="unavailable";e["Unavailable"]=u;const l="internal_error";e["InternalError"]=l;const p="unknown_error";e["UnknownError"]=p;const d="cancelled";e["Cancelled"]=d;const f="already_exists";e["AlreadyExists"]=f;const m="failed_precondition";e["FailedPrecondition"]=m;const h="aborted";e["Aborted"]=h;const g="out_of_range";e["OutOfRange"]=g;const _="data_loss";e["DataLoss"]=_})(t.SpanStatus||(t.SpanStatus={}))},917:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(7390);const o=n(4634);function trace(e,t,n=(()=>{})){const o=normalizeContext(e);const i=r.getCurrentHub();const a=i.getScope();const c=a.getSpan();const u=createChildSpanOrTransaction(i,c,o);a.setSpan(u);function finishAndSetSpan(){u&&u.finish();i.getScope().setSpan(c)}let l;try{l=t(u)}catch(e){u&&u.setStatus("internal_error");n(e);finishAndSetSpan();throw e}if(s.isThenable(l)){Promise.resolve(l).then((()=>{finishAndSetSpan()}),(e=>{u&&u.setStatus("internal_error");n(e);finishAndSetSpan()}))}else{finishAndSetSpan()}return l}function startSpan(e,t){const n=normalizeContext(e);const o=r.getCurrentHub();const i=o.getScope();const a=i.getSpan();const c=createChildSpanOrTransaction(o,a,n);i.setSpan(c);function finishAndSetSpan(){c&&c.finish();o.getScope().setSpan(a)}let u;try{u=t(c)}catch(e){c&&c.setStatus("internal_error");finishAndSetSpan();throw e}if(s.isThenable(u)){Promise.resolve(u).then((()=>{finishAndSetSpan()}),(()=>{c&&c.setStatus("internal_error");finishAndSetSpan()}))}else{finishAndSetSpan()}return u}const i=startSpan;function startSpanManual(e,t){const n=normalizeContext(e);const o=r.getCurrentHub();const i=o.getScope();const a=i.getSpan();const c=createChildSpanOrTransaction(o,a,n);i.setSpan(c);function finishAndSetSpan(){c&&c.finish();o.getScope().setSpan(a)}let u;try{u=t(c,finishAndSetSpan)}catch(e){c&&c.setStatus("internal_error");throw e}if(s.isThenable(u)){Promise.resolve(u).then(undefined,(()=>{c&&c.setStatus("internal_error")}))}return u}function startInactiveSpan(e){if(!o.hasTracingEnabled()){return undefined}const t={...e};if(t.name!==undefined&&t.description===undefined){t.description=t.name}const n=r.getCurrentHub();const s=getActiveSpan();return s?s.startChild(t):n.startTransaction(t)}function getActiveSpan(){return r.getCurrentHub().getScope().getSpan()}function createChildSpanOrTransaction(e,t,n){if(!o.hasTracingEnabled()){return undefined}return t?t.startChild(n):e.startTransaction(n)}function normalizeContext(e){const t={...e};if(t.name!==undefined&&t.description===undefined){t.description=t.name}return t}t.getActiveSpan=getActiveSpan;t.startActiveSpan=i;t.startInactiveSpan=startInactiveSpan;t.startSpan=startSpan;t.startSpanManual=startSpanManual;t.trace=trace},1701:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(7390);const o=n(5781);const i=n(566);class Transaction extends i.Span{constructor(e,t){super(e);delete this.description;this._measurements={};this._contexts={};this._hub=t||r.getCurrentHub();this._name=e.name||"";this.metadata={source:"custom",...e.metadata,spanMetadata:{}};this._trimEnd=e.trimEnd;this.transaction=this;const n=this.metadata.dynamicSamplingContext;if(n){this._frozenDynamicSamplingContext={...n}}}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e;this.metadata.source=t}initSpanRecorder(e=1e3){if(!this.spanRecorder){this.spanRecorder=new i.SpanRecorder(e)}this.spanRecorder.add(this)}setContext(e,t){if(t===null){delete this._contexts[e]}else{this._contexts[e]=t}}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(this.endTimestamp!==undefined){return undefined}if(!this.name){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`.");this.name="<unlabeled transaction>"}super.finish(e);const t=this._hub.getClient();if(t&&t.emit){t.emit("finishTransaction",this)}if(this.sampled!==true){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");if(t){t.recordDroppedEvent("sample_rate","transaction")}return undefined}const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];if(this._trimEnd&&n.length>0){this.endTimestamp=n.reduce(((e,t)=>{if(e.endTimestamp&&t.endTimestamp){return e.endTimestamp>t.endTimestamp?e:t}return e})).endTimestamp}const r=this.metadata;const o={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...r,dynamicSamplingContext:this.getDynamicSamplingContext()},...r.source&&{transaction_info:{source:r.source}}};const i=Object.keys(this._measurements).length>0;if(i){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,undefined,2));o.measurements=this._measurements}(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`);return this._hub.captureEvent(o)}toContext(){const e=super.toContext();return s.dropUndefinedKeys({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){super.updateWithContext(e);this.name=e.name||"";this._trimEnd=e.trimEnd;return this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext){return this._frozenDynamicSamplingContext}const e=this._hub||r.getCurrentHub();const t=e.getClient();if(!t)return{};const n=e.getScope();const s=o.getDynamicSamplingContextFromClient(this.traceId,t,n);const i=this.metadata.sampleRate;if(i!==undefined){s.sample_rate=`${i}`}const a=this.metadata.source;if(a&&a!=="url"){s.transaction=this.name}if(this.sampled!==undefined){s.sampled=String(this.sampled)}return s}setHub(e){this._hub=e}}t.Transaction=Transaction},4120:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(7390);const r=n(3582);function getActiveTransaction(e){const t=e||s.getCurrentHub();const n=t.getScope();return n.getTransaction()}t.TRACEPARENT_REGEXP=r.TRACEPARENT_REGEXP;t.extractTraceparentData=r.extractTraceparentData;t.stripUrlQueryAndFragment=r.stripUrlQueryAndFragment;t.getActiveTransaction=getActiveTransaction},6845:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=30;function createTransport(e,t,n=s.makePromiseBuffer(e.bufferSize||r)){let o={};const flush=e=>n.drain(e);function send(r){const i=[];s.forEachEnvelopeItem(r,((t,n)=>{const r=s.envelopeItemTypeToDataCategory(n);if(s.isRateLimited(o,r)){const s=getEventForEnvelopeItem(t,n);e.recordDroppedEvent("ratelimit_backoff",r,s)}else{i.push(t)}}));if(i.length===0){return s.resolvedSyncPromise()}const a=s.createEnvelope(r[0],i);const recordEnvelopeLoss=t=>{s.forEachEnvelopeItem(a,((n,r)=>{const o=getEventForEnvelopeItem(n,r);e.recordDroppedEvent(t,s.envelopeItemTypeToDataCategory(r),o)}))};const requestTask=()=>t({body:s.serializeEnvelope(a,e.textEncoder)}).then((e=>{if(e.statusCode!==undefined&&(e.statusCode<200||e.statusCode>=300)){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn(`Sentry responded with status code ${e.statusCode} to sent event.`)}o=s.updateRateLimits(o,e);return e}),(e=>{recordEnvelopeLoss("network_error");throw e}));return n.add(requestTask).then((e=>e),(e=>{if(e instanceof s.SentryError){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.error("Skipped sending event because buffer is full.");recordEnvelopeLoss("queue_overflow");return s.resolvedSyncPromise()}else{throw e}}))}send.__sentry__baseTransport__=true;return{send:send,flush:flush}}function getEventForEnvelopeItem(e,t){if(t!=="event"&&t!=="transaction"){return undefined}return Array.isArray(e)?e[1]:undefined}t.DEFAULT_TRANSPORT_BUFFER_SIZE=r;t.createTransport=createTransport},8645:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(4355);function eventFromEnvelope(e,t){let n;s.forEachEnvelopeItem(e,((e,s)=>{if(t.includes(s)){n=Array.isArray(e)?e[1]:undefined}return!!n}));return n}function makeOverrideReleaseTransport(e,t){return n=>{const s=e(n);return{send:async e=>{const n=eventFromEnvelope(e,["event","transaction","profile","replay_event"]);if(n){n.release=t}return s.send(e)},flush:e=>s.flush(e)}}}function makeMultiplexedTransport(e,t){return n=>{const o=e(n);const i={};function getTransport(t,o){const a=o?`${t}:${o}`:t;if(!i[a]){const c=s.dsnFromString(t);if(!c){return undefined}const u=r.getEnvelopeEndpointWithUrlEncodedAuth(c);i[a]=o?makeOverrideReleaseTransport(e,o)({...n,url:u}):e({...n,url:u})}return i[a]}async function send(e){function getEvent(t){const n=t&&t.length?t:["event"];return eventFromEnvelope(e,n)}const n=t({envelope:e,getEvent:getEvent}).map((e=>{if(typeof e==="string"){return getTransport(e,undefined)}else{return getTransport(e.dsn,e.release)}})).filter((e=>!!e));if(n.length===0){n.push(o)}const s=await Promise.all(n.map((t=>t.send(e))));return s[0]}async function flush(e){const t=[...Object.keys(i).map((e=>i[e])),o];const n=await Promise.all(t.map((t=>t.flush(e))));return n.every((e=>e))}return{send:send,flush:flush}}}t.eventFromEnvelope=eventFromEnvelope;t.makeMultiplexedTransport=makeMultiplexedTransport},9492:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=100;const o=5e3;const i=36e5;function log(e,t){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.info(`[Offline]: ${e}`,t)}function makeOfflineTransport(e){return t=>{const n=e(t);const a=t.createStore?t.createStore(t):undefined;let c=o;let u;function shouldQueue(e,n,r){if(s.envelopeContainsItemType(e,["replay_event","replay_recording","client_report"])){return false}if(t.shouldStore){return t.shouldStore(e,n,r)}return true}function flushIn(e){if(!a){return}if(u){clearTimeout(u)}u=setTimeout((async()=>{u=undefined;const e=await a.pop();if(e){log("Attempting to send previously queued event");void send(e).catch((e=>{log("Failed to retry sending",e)}))}}),e);if(typeof u!=="number"&&u.unref){u.unref()}}function flushWithBackOff(){if(u){return}flushIn(c);c=Math.min(c*2,i)}async function send(e){try{const t=await n.send(e);let i=r;if(t){if(t.headers&&t.headers["retry-after"]){i=s.parseRetryAfterHeader(t.headers["retry-after"])}else if((t.statusCode||0)>=400){return t}}flushIn(i);c=o;return t}catch(t){if(a&&await shouldQueue(e,t,c)){await a.insert(e);flushWithBackOff();log("Error sending. Event queued",t);return{}}else{throw t}}}if(t.flushAtStartup){flushWithBackOff()}return{send:send,flush:e=>n.flush(e)}}}t.MIN_DELAY=r;t.START_DELAY=o;t.makeOfflineTransport=makeOfflineTransport},4634:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(7390);function hasTracingEnabled(e){if(typeof __SENTRY_TRACING__==="boolean"&&!__SENTRY_TRACING__){return false}const t=s.getCurrentHub().getClient();const n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}t.hasTracingEnabled=hasTracingEnabled},2280:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(8957);const o=n(4925);const i=n(3997);function prepareEvent(e,t,n,r,a){const{normalizeDepth:c=3,normalizeMaxBreadth:u=1e3}=e;const l={...t,event_id:t.event_id||n.event_id||s.uuid4(),timestamp:t.timestamp||s.dateTimestampInSeconds()};const p=n.integrations||e.integrations.map((e=>e.name));applyClientOptions(l,e);applyIntegrationsMetadata(l,p);if(t.type===undefined){applyDebugIds(l,e.stackParser)}let d=r;if(n.captureContext){d=i.Scope.clone(d).update(n.captureContext)}let f=s.resolvedSyncPromise(l);const m=a&&a.getEventProcessors?a.getEventProcessors():[];if(d){if(d.getAttachments){const e=[...n.attachments||[],...d.getAttachments()];if(e.length){n.attachments=e}}f=d.applyToEvent(l,n,m)}else{f=o.notifyEventProcessors([...m,...o.getGlobalEventProcessors()],l,n)}return f.then((e=>{if(e){applyDebugMeta(e)}if(typeof c==="number"&&c>0){return normalizeEvent(e,c,u)}return e}))}function applyClientOptions(e,t){const{environment:n,release:o,dist:i,maxValueLength:a=250}=t;if(!("environment"in e)){e.environment="environment"in t?n:r.DEFAULT_ENVIRONMENT}if(e.release===undefined&&o!==undefined){e.release=o}if(e.dist===undefined&&i!==undefined){e.dist=i}if(e.message){e.message=s.truncate(e.message,a)}const c=e.exception&&e.exception.values&&e.exception.values[0];if(c&&c.value){c.value=s.truncate(c.value,a)}const u=e.request;if(u&&u.url){u.url=s.truncate(u.url,a)}}const a=new WeakMap;function applyDebugIds(e,t){const n=s.GLOBAL_OBJ._sentryDebugIds;if(!n){return}let r;const o=a.get(t);if(o){r=o}else{r=new Map;a.set(t,r)}const i=Object.keys(n).reduce(((e,s)=>{let o;const i=r.get(s);if(i){o=i}else{o=t(s);r.set(s,o)}for(let t=o.length-1;t>=0;t--){const r=o[t];if(r.filename){e[r.filename]=n[s];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{if(e.filename){e.debug_id=i[e.filename]}}))}))}catch(e){}}function applyDebugMeta(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{if(e.debug_id){if(e.abs_path){t[e.abs_path]=e.debug_id}else if(e.filename){t[e.filename]=e.debug_id}delete e.debug_id}}))}))}catch(e){}if(Object.keys(t).length===0){return}e.debug_meta=e.debug_meta||{};e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}function applyIntegrationsMetadata(e,t){if(t.length>0){e.sdk=e.sdk||{};e.sdk.integrations=[...e.sdk.integrations||[],...t]}}function normalizeEvent(e,t,n){if(!e){return null}const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:s.normalize(e.data,t,n)}})))},...e.user&&{user:s.normalize(e.user,t,n)},...e.contexts&&{contexts:s.normalize(e.contexts,t,n)},...e.extra&&{extra:s.normalize(e.extra,t,n)}};if(e.contexts&&e.contexts.trace&&r.contexts){r.contexts.trace=e.contexts.trace;if(e.contexts.trace.data){r.contexts.trace.data=s.normalize(e.contexts.trace.data,t,n)}}if(e.spans){r.spans=e.spans.map((e=>{if(e.data){e.data=s.normalize(e.data,t,n)}return e}))}return r}t.applyDebugIds=applyDebugIds;t.applyDebugMeta=applyDebugMeta;t.prepareEvent=prepareEvent},3109:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});const n="7.72.0";t.SDK_VERSION=n},4273:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(3582);const o=n(6485);const i=n(8017);function callFrameToStackFrame(e,t){const n=s([t,"call",t=>t(e.location.scriptId),"optionalAccess",e=>e.replace,"call",e=>e(/^file:\/\//,"")]);const i=e.location.columnNumber?e.location.columnNumber+1:undefined;const a=e.location.lineNumber?e.location.lineNumber+1:undefined;return r.dropUndefinedKeys({filename:n,module:o.getModuleFromFilename(n),function:e.functionName||"?",colno:i,lineno:a,in_app:n?r.filenameIsInApp(n):undefined})}async function webSocketDebugger(e,t){let n=0;const s=await i.createWebSocketClient(e);s.on("message",(e=>{const n=JSON.parse(e.toString());t(n)}));return(e,t)=>{s.send(JSON.stringify({id:n++,method:e,params:t}))}}async function captureStackTrace(e,t){const n=new Map;const s=await webSocketDebugger(e,(e=>{if(e.method==="Debugger.scriptParsed"){n.set(e.params.scriptId,e.params.url)}else if(e.method==="Debugger.paused"){const r=[...e.params.callFrames];s("Debugger.resume");s("Debugger.disable");const o=r.map((e=>callFrameToStackFrame(e,(e=>n.get(e))))).reverse();t(o)}}));return()=>{s("Debugger.enable");s("Debugger.pause")}}t.captureStackTrace=captureStackTrace},1334:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(2081);const o=n(1405);const i=n(4273);const a=n(5761);const c=50;const u=5e3;function watchdogTimer(e,t,n){let s=process.hrtime();let r=false;setInterval((()=>{const[o,i]=process.hrtime(s);const a=Math.floor(o*1e3+i/1e6);if(r===false&&a>e+t){r=true;n()}if(a<e+t){r=false}}),20);return()=>{s=process.hrtime()}}function sendEvent(e,t){const n={level:"error",exception:{values:[{type:"ApplicationNotResponding",value:`Application Not Responding for at least ${e} ms`,stacktrace:{frames:t},mechanism:{type:"ANR"}}]}};a.captureEvent(n);void a.flush(3e3).then((()=>{process.exit()}))}function startChildProcess(e){function log(t,n){if(e.debug){if(n){s.logger.log(`[ANR] ${t}`,n)}else{s.logger.log(`[ANR] ${t}`)}}}try{const t={...process.env};if(e.captureStackTrace){o.open();t.SENTRY_INSPECT_URL=o.url()}const n=r.fork(e.entryScript,{env:t,stdio:e.debug?"inherit":"ignore"});n.unref();const s=setInterval((()=>{try{n.send("ping")}catch(e){}}),e.pollInterval);const end=e=>{clearInterval(s);log("Child process ended",e)};n.on("error",end);n.on("disconnect",end);n.on("exit",end)}catch(e){log("Failed to start child process",e)}}function handleChildProcess(e){function log(t){if(e.debug){s.logger.log(`[ANR child process] ${t}`)}}log("Started");a.addGlobalEventProcessor((e=>{delete e.sdkProcessingMetadata;e.tags={...e.tags,"process.name":"ANR"};return e}));let t;if(process.env.SENTRY_INSPECT_URL){log("Connecting to debugger");t=i.captureStackTrace(process.env.SENTRY_INSPECT_URL,(t=>{log("Capturing event with stack frames");sendEvent(e.anrThreshold,t)}))}async function watchdogTimeout(){log("Watchdog timeout");const n=await t;if(n){log("Pausing debugger to capture stack trace");n()}else{log("Capturing event");sendEvent(e.anrThreshold)}}const n=watchdogTimer(e.pollInterval,e.anrThreshold,watchdogTimeout);process.on("message",(()=>{n()}))}function enableAnrDetection(e){const t=!!process.send;const n={entryScript:e.entryScript||process.argv[1],pollInterval:e.pollInterval||c,anrThreshold:e.anrThreshold||u,captureStackTrace:!!e.captureStackTrace,debug:!!e.debug};if(t){handleChildProcess(n);return new Promise((()=>{}))}else{startChildProcess(n);return Promise.resolve()}}t.enableAnrDetection=enableAnrDetection},8017:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(6113);const r=n(2361);const o=n(3685);const i=n(7310);const a={CONTINUATION:0,TEXT:1,BINARY:2,TERMINATE:8,PING:9,PONG:10};const c="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";function isCompleteFrame(e){return Buffer.byteLength(e.payload)>=e.payloadLength}function unmaskPayload(e,t,n){if(t===undefined){return e}for(let s=0;s<e.length;s++){e[s]^=t[n+s&3]}return e}function buildFrame(e){const{opcode:t,fin:n,data:r}=e;let o=6;let i=r.length;if(i>=65536){o+=8;i=127}else if(i>125){o+=2;i=126}const a=Buffer.allocUnsafe(o);a[0]=n?t|128:t;a[1]=i;if(i===126){a.writeUInt16BE(r.length,2)}else if(i===127){a.writeUInt32BE(0,2);a.writeUInt32BE(r.length,6)}const c=s.randomBytes(4);a[1]|=128;a[o-4]=c[0];a[o-3]=c[1];a[o-2]=c[2];a[o-1]=c[3];const u=Buffer.alloc(i);for(let e=0;e<i;++e){u[e]=r[e]^c[e&3]}return Buffer.concat([a,u])}function parseFrame(e){const t=e.readUInt8(0);const n=Boolean(t>>>7&1);const s=t&15;const r=e.readUInt8(1);const o=Boolean(r>>>7&1);let i=2;let a=r&127;if(a>125){if(a===126){a=e.readUInt16BE(i);i+=2}else if(a===127){const t=e.readUInt32BE(i);i+=4;if(t>=Number.MAX_SAFE_INTEGER){throw new Error("Unsupported WebSocket frame: payload length > 2^53 - 1")}const n=e.readUInt32BE(i);i+=4;a=t*Math.pow(2,32)+n}else{throw new Error("Unknown payload length")}}let c;if(o){c=e.slice(i,i+4);i+=4}const u=unmaskPayload(e.slice(i),c,0);return{fin:n,opcode:s,mask:c,payload:u,payloadLength:a}}function createKey(e){return s.createHash("sha1").update(`${e}${c}`).digest("base64")}class WebSocketInterface extends r.EventEmitter{constructor(e){super();this._unfinishedFrame=undefined;this._incompleteFrame=undefined;this._socket=e;this._alive=true;e.on("data",(e=>{this._addBuffer(e)}));e.on("error",(e=>{if(e.code==="ECONNRESET"){this.emit("close")}else{this.emit("error")}}));e.on("close",(()=>{this.end()}))}end(){if(!this._alive){return}this._alive=false;this.emit("close");this._socket.end()}send(e){this._sendFrame({opcode:a.TEXT,fin:true,data:Buffer.from(e)})}_sendFrame(e){this._socket.write(buildFrame(e))}_completeFrame(e){const{_unfinishedFrame:t}=this;if(t!==undefined){if(e.opcode===a.CONTINUATION){t.payload=Buffer.concat([t.payload,unmaskPayload(e.payload,t.mask,t.payload.length)]);if(e.fin){this._unfinishedFrame=undefined;this._completeFrame(t)}return}else{this._unfinishedFrame=undefined}}if(e.fin){if(e.opcode===a.PING){this._sendFrame({opcode:a.PONG,fin:true,data:e.payload})}else{let t;if(e.payload.length>e.payloadLength){t=e.payload.slice(e.payloadLength);e.payload=e.payload.slice(0,e.payloadLength)}this.emit("message",e.payload);if(t!==undefined){this._addBuffer(t)}}}else{this._unfinishedFrame=e}}_addBufferToIncompleteFrame(e,t){e.payload=Buffer.concat([e.payload,unmaskPayload(t,e.mask,e.payload.length)]);if(isCompleteFrame(e)){this._incompleteFrame=undefined;this._completeFrame(e)}}_addBuffer(e){const{_incompleteFrame:t}=this;if(t!==undefined){this._addBufferToIncompleteFrame(t,e);return}const n=parseFrame(e);if(isCompleteFrame(n)){this._completeFrame(n)}else{this._incompleteFrame=n}}}async function createWebSocketClient(e){const t=i.parse(e);return new Promise(((e,n)=>{const r=s.randomBytes(16).toString("base64");const i=createKey(r);const a=o.request({hostname:t.hostname,port:t.port,path:t.path,method:"GET",headers:{Connection:"Upgrade",Upgrade:"websocket","Sec-WebSocket-Key":r,"Sec-WebSocket-Version":"13"}});a.on("response",(e=>{if(e.statusCode&&e.statusCode>=400){process.stderr.write(`Unexpected HTTP code: ${e.statusCode}\n`);e.pipe(process.stderr)}else{e.pipe(process.stderr)}}));a.on("upgrade",((t,s)=>{if(t.headers["sec-websocket-accept"]!==i){s.end();n(new Error(`Digest mismatch ${i} !== ${t.headers["sec-websocket-accept"]}`));return}const r=new WebSocketInterface(s);e(r)}));a.on("error",(e=>{n(e)}));a.end()}))}t.createWebSocketClient=createWebSocketClient},8647:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(5761);const o=n(3639);function getActiveDomain(){return o.active}function getCurrentHub(){const e=getActiveDomain();if(!e){return undefined}r.ensureHubOnCarrier(e);return r.getHubFromCarrier(e)}function createNewHub(e){const t={};r.ensureHubOnCarrier(t,e);return r.getHubFromCarrier(t)}function runWithAsyncContext(e,t){const n=getActiveDomain();if(n&&s([t,"optionalAccess",e=>e.reuseExisting])){return e()}const i=o.create();const a=n?r.getHubFromCarrier(n):undefined;const c=createNewHub(a);r.setHubOnCarrier(i,c);return i.bind((()=>e()))()}function setDomainAsyncContextStrategy(){r.setAsyncContextStrategy({getCurrentHub:getCurrentHub,runWithAsyncContext:runWithAsyncContext})}t.setDomainAsyncContextStrategy=setDomainAsyncContextStrategy},7986:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(5761);const o=n(852);let i;function setHooksAsyncContextStrategy(){if(!i){i=new o.AsyncLocalStorage}function getCurrentHub(){return i.getStore()}function createNewHub(e){const t={};r.ensureHubOnCarrier(t,e);return r.getHubFromCarrier(t)}function runWithAsyncContext(e,t){const n=getCurrentHub();if(n&&s([t,"optionalAccess",e=>e.reuseExisting])){return e()}const r=createNewHub(n);return i.run(r,(()=>e()))}r.setAsyncContextStrategy({getCurrentHub:getCurrentHub,runWithAsyncContext:runWithAsyncContext})}t.setHooksAsyncContextStrategy=setHooksAsyncContextStrategy},3812:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(7804);const r=n(8647);const o=n(7986);function setNodeAsyncContextStrategy(){if(s.NODE_VERSION.major&&s.NODE_VERSION.major>=14){o.setHooksAsyncContextStrategy()}else{r.setDomainAsyncContextStrategy()}}t.setNodeAsyncContextStrategy=setNodeAsyncContextStrategy},8430:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(5761);const r=n(2037);const o=n(3837);class NodeClient extends s.ServerRuntimeClient{constructor(e){e._metadata=e._metadata||{};e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.node",packages:[{name:"npm:@sentry/node",version:s.SDK_VERSION}],version:s.SDK_VERSION};e.transportOptions={textEncoder:new o.TextEncoder,...e.transportOptions};const t={...e,platform:"node",runtime:{name:"node",version:global.process.version},serverName:e.serverName||global.process.env.SENTRY_NAME||r.hostname()};super(t)}}t.NodeClient=NodeClient},478:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(5761);const o=n(3582);const i=n(4206);const a=n(5302);const c=n(6916);function tracingHandler(){return function sentryTracingMiddleware(e,t,n){const a=r.getCurrentHub();const c=s([a,"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e()]);if(!c||c.instrumenter!=="sentry"||s([e,"access",e=>e.method,"optionalAccess",e=>e.toUpperCase,"call",e=>e()])==="OPTIONS"||s([e,"access",e=>e.method,"optionalAccess",e=>e.toUpperCase,"call",e=>e()])==="HEAD"){return n()}const u=e.headers&&o.isString(e.headers["sentry-trace"])?e.headers["sentry-trace"]:undefined;const l=s([e,"access",e=>e.headers,"optionalAccess",e=>e.baggage]);const{traceparentData:p,dynamicSamplingContext:d,propagationContext:f}=o.tracingContextFromHeaders(u,l);a.getScope().setPropagationContext(f);if(!r.hasTracingEnabled(c)){return n()}const[m,h]=o.extractPathForTransaction(e,{path:true,method:true});const g=r.startTransaction({name:m,op:"http.server",origin:"auto.http.node.tracingHandler",...p,metadata:{dynamicSamplingContext:p&&!d?{}:d,request:e,source:h}},{request:i.extractRequestData(e)});a.configureScope((e=>{e.setSpan(g)}));t.__sentry_transaction=g;t.once("finish",(()=>{setImmediate((()=>{o.addRequestDataToTransaction(g,e);g.setHttpStatus(t.statusCode);g.finish()}))}));n()}}function convertReqHandlerOptsToAddReqDataOpts(e={}){let t;if("include"in e){t={include:e.include}}else{const{ip:n,request:s,transaction:r,user:i}=e;if(n||s||r||i){t={include:o.dropUndefinedKeys({ip:n,request:s,transaction:r,user:i})}}}return t}function requestHandler(e){const t=convertReqHandlerOptsToAddReqDataOpts(e);const n=r.getCurrentHub();const s=n.getClient();if(s&&a.isAutoSessionTrackingEnabled(s)){s.initSessionFlusher();const e=n.getScope();if(e.getSession()){e.setSession()}}return function sentryRequestMiddleware(n,s,i){if(e&&e.flushTimeout&&e.flushTimeout>0){const t=s.end;s.end=function(n,s,i){void r.flush(e.flushTimeout).then((()=>{t.call(this,n,s,i)})).then(null,(e=>{(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&o.logger.error(e);t.call(this,n,s,i)}))}}r.runWithAsyncContext((()=>{const e=r.getCurrentHub();e.configureScope((s=>{s.setSDKProcessingMetadata({request:n,requestDataOptionsFromExpressHandler:t});const r=e.getClient();if(a.isAutoSessionTrackingEnabled(r)){const t=e.getScope();t.setRequestSession({status:"ok"})}}));s.once("finish",(()=>{const t=e.getClient();if(a.isAutoSessionTrackingEnabled(t)){setImmediate((()=>{if(t&&t._captureRequestSession){t._captureRequestSession()}}))}}));i()}))}}function getStatusCodeFromResponse(e){const t=e.status||e.statusCode||e.status_code||e.output&&e.output.statusCode;return t?parseInt(t,10):500}function defaultShouldHandleError(e){const t=getStatusCodeFromResponse(e);return t>=500}function errorHandler(e){return function sentryErrorMiddleware(t,n,s,i){const c=e&&e.shouldHandleError||defaultShouldHandleError;if(c(t)){r.withScope((e=>{e.setSDKProcessingMetadata({request:n});const c=s.__sentry_transaction;if(c&&e.getSpan()===undefined){e.setSpan(c)}const u=r.getCurrentHub().getClient();if(u&&a.isAutoSessionTrackingEnabled(u)){const t=u._sessionFlusher!==undefined;if(t){const t=e.getRequestSession();if(t&&t.status!==undefined){t.status="crashed"}}}e.addEventProcessor((e=>{o.addExceptionMechanism(e,{type:"middleware",handled:false});return e}));const l=r.captureException(t);s.sentry=l;i(t)}));return}i(t)}}function trpcMiddleware(e={}){return function({path:t,type:n,next:i,rawInput:a}){const c=r.getCurrentHub();const u=s([c,"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e()]);const l=c.getScope().getTransaction();if(l){l.setName(`trpc/${t}`,"route");l.op="rpc.server";const r={procedure_type:n};if(e.attachRpcInput!==undefined?e.attachRpcInput:s([u,"optionalAccess",e=>e.sendDefaultPii])){r.input=o.normalize(a)}l.setContext("trpc",r)}return i()}}t.extractRequestData=c.extractRequestData;t.parseRequest=c.parseRequest;t.errorHandler=errorHandler;t.requestHandler=requestHandler;t.tracingHandler=tracingHandler;t.trpcMiddleware=trpcMiddleware},5374:(e,t,n)=>{var s;s={value:true};const r=n(5761);const o=n(4873);const i=n(8430);const a=n(3842);const c=n(5302);const u=n(4206);const l=n(5668);const p=n(6485);const d=n(1334);const f=n(478);const m=n(4337);const h=n(7238);const g={...r.Integrations,...m,...h};s=r.Hub;s=r.SDK_VERSION;s=r.Scope;s=r.addBreadcrumb;s=r.addGlobalEventProcessor;s=r.captureCheckIn;s=r.captureEvent;t.Tb=r.captureException;s=r.captureMessage;t.xv=r.close;s=r.configureScope;s=r.createTransport;s=r.extractTraceparentData;s=r.flush;s=r.getActiveSpan;s=r.getActiveTransaction;s=r.getCurrentHub;s=r.getHubFromCarrier;s=r.lastEventId;s=r.makeMain;s=r.runWithAsyncContext;s=r.setContext;s=r.setExtra;s=r.setExtras;s=r.setMeasurement;s=r.setTag;s=r.setTags;s=r.setUser;s=r.spanStatusfromHttpCode;s=r.startActiveSpan;s=r.startInactiveSpan;s=r.startSpan;s=r.startSpanManual;s=r.startTransaction;s=r.trace;s=r.withScope;s=o.autoDiscoverNodePerformanceMonitoringIntegrations;s=i.NodeClient;s=a.makeNodeTransport;t.SS=c.defaultIntegrations;s=c.defaultStackParser;s=c.getSentryRelease;t.S1=c.init;s=u.DEFAULT_USER_INCLUDES;s=u.addRequestDataToEvent;s=u.extractRequestData;s=l.deepReadDirSync;s=p.getModuleFromFilename;s=d.enableAnrDetection;s=f;s=g},8332:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(5761);const r=n(3582);const o=n(3837);class Console{constructor(){Console.prototype.__init.call(this)}static __initStatic(){this.id="Console"}__init(){this.name=Console.id}setupOnce(){r.addInstrumentationHandler("console",(({args:e,level:t})=>{const n=s.getCurrentHub();if(!n.getIntegration(Console)){return}n.addBreadcrumb({category:"console",level:r.severityLevelFromString(t),message:o.format.apply(undefined,e)},{input:[...e],level:t})}))}}Console.__initStatic();t.Console=Console},9954:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(2081);const o=n(7147);const i=n(2037);const a=n(1017);const c=n(3837);const u=c.promisify(o.readFile);const l=c.promisify(o.readdir);class Context{static __initStatic(){this.id="Context"}__init(){this.name=Context.id}constructor(e={app:true,os:true,device:true,culture:true,cloudResource:true}){this._options=e;Context.prototype.__init.call(this)}setupOnce(e){e((e=>this.addContext(e)))}async addContext(e){if(this._cachedContext===undefined){this._cachedContext=this._getContexts()}const t=this._updateContext(await this._cachedContext);e.contexts={...e.contexts,app:{...t.app,...s([e,"access",e=>e.contexts,"optionalAccess",e=>e.app])},os:{...t.os,...s([e,"access",e=>e.contexts,"optionalAccess",e=>e.os])},device:{...t.device,...s([e,"access",e=>e.contexts,"optionalAccess",e=>e.device])},culture:{...t.culture,...s([e,"access",e=>e.contexts,"optionalAccess",e=>e.culture])},cloud_resource:{...t.cloud_resource,...s([e,"access",e=>e.contexts,"optionalAccess",e=>e.cloud_resource])}};return e}_updateContext(e){if(s([e,"optionalAccess",e=>e.app,"optionalAccess",e=>e.app_memory])){e.app.app_memory=process.memoryUsage().rss}if(s([e,"optionalAccess",e=>e.device,"optionalAccess",e=>e.free_memory])){e.device.free_memory=i.freemem()}return e}async _getContexts(){const e={};if(this._options.os){e.os=await getOsContext()}if(this._options.app){e.app=getAppContext()}if(this._options.device){e.device=getDeviceContext(this._options.device)}if(this._options.culture){const t=getCultureContext();if(t){e.culture=t}}if(this._options.cloudResource){e.cloud_resource=getCloudResourceContext()}return e}}Context.__initStatic();async function getOsContext(){const e=i.platform();switch(e){case"darwin":return getDarwinInfo();case"linux":return getLinuxInfo();default:return{name:p[e]||e,version:i.release()}}}function getCultureContext(){try{if(typeof process.versions.icu!=="string"){return}const e=new Date(9e8);const t=new Intl.DateTimeFormat("es",{month:"long"});if(t.format(e)==="enero"){const e=Intl.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone}}}catch(e){}return}function getAppContext(){const e=process.memoryUsage().rss;const t=new Date(Date.now()-process.uptime()*1e3).toISOString();return{app_start_time:t,app_memory:e}}function getDeviceContext(e){const t={};let n;try{n=i.uptime&&i.uptime()}catch(e){}if(typeof n==="number"){t.boot_time=new Date(Date.now()-n*1e3).toISOString()}t.arch=i.arch();if(e===true||e.memory){t.memory_size=i.totalmem();t.free_memory=i.freemem()}if(e===true||e.cpu){const e=i.cpus();if(e&&e.length){const n=e[0];t.processor_count=e.length;t.cpu_description=n.model;t.processor_frequency=n.speed}}return t}const p={aix:"IBM AIX",freebsd:"FreeBSD",openbsd:"OpenBSD",sunos:"SunOS",win32:"Windows"};const d=[{name:"fedora-release",distros:["Fedora"]},{name:"redhat-release",distros:["Red Hat Linux","Centos"]},{name:"redhat_version",distros:["Red Hat Linux"]},{name:"SuSE-release",distros:["SUSE Linux"]},{name:"lsb-release",distros:["Ubuntu Linux","Arch Linux"]},{name:"debian_version",distros:["Debian"]},{name:"debian_release",distros:["Debian"]},{name:"arch-release",distros:["Arch Linux"]},{name:"gentoo-release",distros:["Gentoo Linux"]},{name:"novell-release",distros:["SUSE Linux"]},{name:"alpine-release",distros:["Alpine Linux"]}];const f={alpine:e=>e,arch:e=>matchFirst(/distrib_release=(.*)/,e),centos:e=>matchFirst(/release ([^ ]+)/,e),debian:e=>e,fedora:e=>matchFirst(/release (..)/,e),mint:e=>matchFirst(/distrib_release=(.*)/,e),red:e=>matchFirst(/release ([^ ]+)/,e),suse:e=>matchFirst(/VERSION = (.*)\n/,e),ubuntu:e=>matchFirst(/distrib_release=(.*)/,e)};function matchFirst(e,t){const n=e.exec(t);return n?n[1]:undefined}async function getDarwinInfo(){const e={kernel_version:i.release(),name:"Mac OS X",version:`10.${Number(i.release().split(".")[0])-4}`};try{const t=await new Promise(((e,t)=>{r.execFile("/usr/bin/sw_vers",((n,s)=>{if(n){t(n);return}e(s)}))}));e.name=matchFirst(/^ProductName:\s+(.*)$/m,t);e.version=matchFirst(/^ProductVersion:\s+(.*)$/m,t);e.build=matchFirst(/^BuildVersion:\s+(.*)$/m,t)}catch(e){}return e}function getLinuxDistroId(e){return e.split(" ")[0].toLowerCase()}async function getLinuxInfo(){const e={kernel_version:i.release(),name:"Linux"};try{const t=await l("/etc");const n=d.find((e=>t.includes(e.name)));if(!n){return e}const s=a.join("/etc",n.name);const r=(await u(s,{encoding:"utf-8"})).toLowerCase();const{distros:o}=n;e.name=o.find((e=>r.indexOf(getLinuxDistroId(e))>=0))||o[0];const i=getLinuxDistroId(e.name);e.version=f[i](r)}catch(e){}return e}function getCloudResourceContext(){if(process.env.VERCEL){return{"cloud.provider":"vercel","cloud.region":process.env.VERCEL_REGION}}else if(process.env.AWS_REGION){return{"cloud.provider":"aws","cloud.region":process.env.AWS_REGION,"cloud.platform":process.env.AWS_EXECUTION_ENV}}else if(process.env.GCP_PROJECT){return{"cloud.provider":"gcp"}}else if(process.env.ALIYUN_REGION_ID){return{"cloud.provider":"alibaba_cloud","cloud.region":process.env.ALIYUN_REGION_ID}}else if(process.env.WEBSITE_SITE_NAME&&process.env.REGION_NAME){return{"cloud.provider":"azure","cloud.region":process.env.REGION_NAME}}else if(process.env.IBM_CLOUD_REGION){return{"cloud.provider":"ibm_cloud","cloud.region":process.env.IBM_CLOUD_REGION}}else if(process.env.TENCENTCLOUD_REGION){return{"cloud.provider":"tencent_cloud","cloud.region":process.env.TENCENTCLOUD_REGION,"cloud.account.id":process.env.TENCENTCLOUD_APPID,"cloud.availability_zone":process.env.TENCENTCLOUD_ZONE}}else if(process.env.NETLIFY){return{"cloud.provider":"netlify"}}else if(process.env.FLY_REGION){return{"cloud.provider":"fly.io","cloud.region":process.env.FLY_REGION}}else if(process.env.DYNO){return{"cloud.provider":"heroku"}}else{return undefined}}t.Context=Context;t.getDeviceContext=getDeviceContext;t.readDirAsync=l;t.readFileAsync=u},6887:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(3582);const o=n(7147);const i=n(8424);const a=new i.LRUMap(100);const c=7;function readTextFileAsync(e){return new Promise(((t,n)=>{o.readFile(e,"utf8",((e,s)=>{if(e)n(e);else t(s)}))}))}class ContextLines{static __initStatic(){this.id="ContextLines"}__init(){this.name=ContextLines.id}constructor(e={}){this._options=e;ContextLines.prototype.__init.call(this)}get _contextLines(){return this._options.frameContextLines!==undefined?this._options.frameContextLines:c}setupOnce(e,t){e((e=>{const n=t().getIntegration(ContextLines);if(!n){return e}return this.addSourceContext(e)}))}async addSourceContext(e){const t={};const n=[];if(this._contextLines>0&&s([e,"access",e=>e.exception,"optionalAccess",e=>e.values])){for(const r of e.exception.values){if(!s([r,"access",e=>e.stacktrace,"optionalAccess",e=>e.frames])){continue}for(let e=r.stacktrace.frames.length-1;e>=0;e--){const s=r.stacktrace.frames[e];if(s.filename&&!t[s.filename]&&!a.get(s.filename)){n.push(_readSourceFile(s.filename));t[s.filename]=1}}}}if(n.length>0){await Promise.all(n)}if(this._contextLines>0&&s([e,"access",e=>e.exception,"optionalAccess",e=>e.values])){for(const t of e.exception.values){if(t.stacktrace&&t.stacktrace.frames){await this.addSourceContextToFrames(t.stacktrace.frames)}}}return e}addSourceContextToFrames(e){for(const t of e){if(t.filename&&t.context_line===undefined){const e=a.get(t.filename);if(e){try{r.addContextToFrame(e,t,this._contextLines)}catch(e){}}}}}}ContextLines.__initStatic();async function _readSourceFile(e){const t=a.get(e);if(t===null){return null}if(t!==undefined){return t}let n=null;try{const t=await readTextFileAsync(e);n=t.split("\n")}catch(e){}a.set(e,n);return n}t.ContextLines=ContextLines},80:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(5761);const o=n(3582);const i=n(8424);const a=n(7804);const c=n(3390);class Http{static __initStatic(){this.id="Http"}__init(){this.name=Http.id}constructor(e={}){Http.prototype.__init.call(this);this._breadcrumbs=typeof e.breadcrumbs==="undefined"?true:e.breadcrumbs;this._tracing=!e.tracing?undefined:e.tracing===true?{}:e.tracing}setupOnce(e,t){if(!this._breadcrumbs&&!this._tracing){return}const r=s([t,"call",e=>e(),"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e()]);if(r&&r.instrumenter!=="sentry"){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&o.logger.log("HTTP Integration is skipped because of instrumenter configuration.");return}const i=s([this,"access",e=>e._tracing,"optionalAccess",e=>e.shouldCreateSpanForRequest])||s([r,"optionalAccess",e=>e.shouldCreateSpanForRequest]);const c=s([r,"optionalAccess",e=>e.tracePropagationTargets])||s([this,"access",e=>e._tracing,"optionalAccess",e=>e.tracePropagationTargets]);const u=n(3685);const l=_createWrappedRequestMethodFactory(u,this._breadcrumbs,i,c);o.fill(u,"get",l);o.fill(u,"request",l);if(a.NODE_VERSION.major&&a.NODE_VERSION.major>8){const e=n(5687);const t=_createWrappedRequestMethodFactory(e,this._breadcrumbs,i,c);o.fill(e,"get",t);o.fill(e,"request",t)}}}Http.__initStatic();function _createWrappedRequestMethodFactory(e,t,n,a){const u=new i.LRUMap(100);const l=new i.LRUMap(100);const shouldCreateSpan=e=>{if(n===undefined){return true}const t=u.get(e);if(t!==undefined){return t}const s=n(e);u.set(e,s);return s};const shouldAttachTraceData=e=>{if(a===undefined){return true}const t=l.get(e);if(t!==undefined){return t}const n=o.stringMatchesSomePattern(e,a);l.set(e,n);return n};function addRequestBreadcrumb(e,t,n,s){if(!r.getCurrentHub().getIntegration(Http)){return}r.getCurrentHub().addBreadcrumb({category:"http",data:{status_code:s&&s.statusCode,...t},type:"http"},{event:e,request:n,response:s})}return function wrappedRequestMethodFactory(n){return function wrappedMethod(...i){const a=c.normalizeRequestArgs(e,i);const u=a[0];const l=c.extractRawUrl(u);const p=c.extractUrl(u);if(c.isSentryRequest(p)){return n.apply(e,a)}const d=r.getCurrentHub();const f=d.getScope();const m=f.getSpan();const h=getRequestSpanData(p,u);const g=shouldCreateSpan(l)?s([m,"optionalAccess",e=>e.startChild,"call",e=>e({op:"http.client",origin:"auto.http.node.http",description:`${h["http.method"]} ${h.url}`,data:h})]):undefined;if(shouldAttachTraceData(l)){if(g){const e=g.toTraceparent();const t=s([g,"optionalAccess",e=>e.transaction,"optionalAccess",e=>e.getDynamicSamplingContext,"call",e=>e()]);addHeadersToRequestOptions(u,p,e,t)}else{const e=d.getClient();const{traceId:t,sampled:n,dsc:s}=f.getPropagationContext();const i=o.generateSentryTraceHeader(t,undefined,n);const a=s||(e?r.getDynamicSamplingContextFromClient(t,e,f):undefined);addHeadersToRequestOptions(u,p,i,a)}}else{(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&o.logger.log(`[Tracing] Not adding sentry-trace header to outgoing request (${p}) due to mismatching tracePropagationTargets option.`)}return n.apply(e,a).once("response",(function(e){const n=this;if(t){addRequestBreadcrumb("response",h,n,e)}if(g){if(e.statusCode){g.setHttpStatus(e.statusCode)}g.description=c.cleanSpanDescription(g.description,u,n);g.finish()}})).once("error",(function(){const e=this;if(t){addRequestBreadcrumb("error",h,e)}if(g){g.setHttpStatus(500);g.description=c.cleanSpanDescription(g.description,u,e);g.finish()}}))}}}function addHeadersToRequestOptions(e,t,n,s){const r=e.headers||{};if(r["sentry-trace"]){return}(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&o.logger.log(`[Tracing] Adding sentry-trace header ${n} to outgoing request to "${t}": `);const i=o.dynamicSamplingContextToSentryBaggageHeader(s);const a=i&&i.length>0?normalizeBaggageHeader(e,i):undefined;e.headers={...e.headers,"sentry-trace":n,...a&&{baggage:a}}}function getRequestSpanData(e,t){const n=t.method||"GET";const s={url:e,"http.method":n};if(t.hash){s["http.fragment"]=t.hash.substring(1)}if(t.search){s["http.query"]=t.search.substring(1)}return s}function normalizeBaggageHeader(e,t){if(!e.headers||!e.headers.baggage){return t}else if(!t){return e.headers.baggage}else if(Array.isArray(e.headers.baggage)){return[...e.headers.baggage,t]}return[e.headers.baggage,t]}t.Http=Http},4337:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(8332);const r=n(80);const o=n(3049);const i=n(4234);const a=n(256);const c=n(1506);const u=n(6887);const l=n(9954);const p=n(9619);const d=n(5409);const f=n(4818);t.Console=s.Console;t.Http=r.Http;t.OnUncaughtException=o.OnUncaughtException;t.OnUnhandledRejection=i.OnUnhandledRejection;t.LinkedErrors=a.LinkedErrors;t.Modules=c.Modules;t.ContextLines=u.ContextLines;t.Context=l.Context;t.RequestData=p.RequestData;t.LocalVariables=d.LocalVariables;t.Undici=f.Undici},256:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r="cause";const o=5;class LinkedErrors{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=LinkedErrors.id}constructor(e={}){LinkedErrors.prototype.__init.call(this);this._key=e.key||r;this._limit=e.limit||o}setupOnce(){}preprocessEvent(e,t,n){const r=n.getOptions();s.applyAggregateErrorsToEvent(s.exceptionFromError,r.stackParser,r.maxValueLength,this._key,this._limit,e,t)}}LinkedErrors.__initStatic();t.LinkedErrors=LinkedErrors},5409:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(3582);const o=n(8424);const i=n(7804);function createCallbackList(e){let t=[];let n=false;function checkedComplete(s){t=[];if(n){return}n=true;e(s)}t.push(checkedComplete);function add(e){t.push(e)}function next(e){const n=t.pop()||checkedComplete;try{n(e)}catch(t){checkedComplete(e)}}return{add:add,next:next}}class AsyncSession{constructor(){const{Session:e}=n(1405);this._session=new e}configureAndConnect(e,t){this._session.connect();this._session.on("Debugger.paused",(t=>{e(t,(()=>{this._session.post("Debugger.resume")}))}));this._session.post("Debugger.enable");this._session.post("Debugger.setPauseOnExceptions",{state:t?"all":"uncaught"})}getLocalVariables(e,t){this._getProperties(e,(e=>{const{add:n,next:r}=createCallbackList(t);for(const t of e){if(s([t,"optionalAccess",e=>e.value,"optionalAccess",e=>e.objectId])&&s([t,"optionalAccess",e=>e.value,"access",e=>e.className])==="Array"){const e=t.value.objectId;n((n=>this._unrollArray(e,t.name,n,r)))}else if(s([t,"optionalAccess",e=>e.value,"optionalAccess",e=>e.objectId])&&s([t,"optionalAccess",e=>e.value,"optionalAccess",e=>e.className])==="Object"){const e=t.value.objectId;n((n=>this._unrollObject(e,t.name,n,r)))}else if(s([t,"optionalAccess",e=>e.value,"optionalAccess",e=>e.value])||s([t,"optionalAccess",e=>e.value,"optionalAccess",e=>e.description])){n((e=>this._unrollOther(t,e,r)))}}r({})}))}_getProperties(e,t){this._session.post("Runtime.getProperties",{objectId:e,ownProperties:true},((e,n)=>{if(e){t([])}else{t(n.result)}}))}_unrollArray(e,t,n,r){this._getProperties(e,(e=>{n[t]=e.filter((e=>e.name!=="length"&&!isNaN(parseInt(e.name,10)))).sort(((e,t)=>parseInt(e.name,10)-parseInt(t.name,10))).map((e=>s([e,"optionalAccess",e=>e.value,"optionalAccess",e=>e.value])));r(n)}))}_unrollObject(e,t,n,r){this._getProperties(e,(e=>{n[t]=e.map((e=>[e.name,s([e,"optionalAccess",e=>e.value,"optionalAccess",e=>e.value])])).reduce(((e,[t,n])=>{e[t]=n;return e}),{});r(n)}))}_unrollOther(e,t,n){if(s([e,"optionalAccess",e=>e.value,"optionalAccess",e=>e.value])){t[e.name]=e.value.value}else if(s([e,"optionalAccess",e=>e.value,"optionalAccess",e=>e.description])&&s([e,"optionalAccess",e=>e.value,"optionalAccess",e=>e.type])!=="function"){t[e.name]=`<${e.value.description}>`}n(t)}}function tryNewAsyncSession(){try{return new AsyncSession}catch(e){return undefined}}function isAnonymous(e){return e!==undefined&&["","?","<anonymous>"].includes(e)}function functionNamesMatch(e,t){return e===t||isAnonymous(e)&&isAnonymous(t)}function hashFrames(e){if(e===undefined){return}return e.slice(-10).reduce(((e,t)=>`${e},${t.function},${t.lineno},${t.colno}`),"")}function hashFromStack(e,t){if(t===undefined){return undefined}return hashFrames(e(t,1))}class LocalVariables{static __initStatic(){this.id="LocalVariables"}__init(){this.name=LocalVariables.id}__init2(){this._cachedFrames=new o.LRUMap(20)}constructor(e={},t=tryNewAsyncSession()){this._options=e;this._session=t;LocalVariables.prototype.__init.call(this);LocalVariables.prototype.__init2.call(this)}setupOnce(e,t){this._setup(e,s([t,"call",e=>e(),"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e()]))}_setup(e,t){if(this._session&&s([t,"optionalAccess",e=>e.includeLocalVariables])){const n=(i.NODE_VERSION.major||0)<18;if(n){r.logger.log("The `LocalVariables` integration is only supported on Node >= v18.");return}this._session.configureAndConnect(((e,n)=>this._handlePaused(t.stackParser,e,n)),!!this._options.captureAllExceptions);e((async e=>this._addLocalVariables(e)))}}_handlePaused(e,{params:{reason:t,data:n,callFrames:r}},o){if(t!=="exception"&&t!=="promiseRejection"){o();return}const i=hashFromStack(e,s([n,"optionalAccess",e=>e.description]));if(i==undefined){o();return}const{add:a,next:c}=createCallbackList((e=>{this._cachedFrames.set(i,e);o()}));for(let e=0;e<Math.min(r.length,5);e++){const{scopeChain:t,functionName:n,this:o}=r[e];const i=t.find((e=>e.type==="local"));const u=o.className==="global"||!o.className?n:`${o.className}.${n}`;if(s([i,"optionalAccess",e=>e.object,"access",e=>e.objectId])===undefined){a((t=>{t[e]={function:u};c(t)}))}else{const t=i.object.objectId;a((n=>s([this,"access",e=>e._session,"optionalAccess",e=>e.getLocalVariables,"call",s=>s(t,(t=>{n[e]={function:u,vars:t};c(n)}))])))}}c([])}_addLocalVariables(e){for(const t of s([e,"optionalAccess",e=>e.exception,"optionalAccess",e=>e.values])||[]){this._addLocalVariablesToException(t)}return e}_addLocalVariablesToException(e){const t=hashFrames(s([e,"optionalAccess",e=>e.stacktrace,"optionalAccess",e=>e.frames]));if(t===undefined){return}const n=this._cachedFrames.delete(t);if(n===undefined){return}const r=s([e,"access",e=>e.stacktrace,"optionalAccess",e=>e.frames,"optionalAccess",e=>e.length])||0;for(let t=0;t<r;t++){const o=r-t-1;if(!s([e,"optionalAccess",e=>e.stacktrace,"optionalAccess",e=>e.frames,"optionalAccess",e=>e[o]])||!n[t]){break}if(n[t].vars===undefined||e.stacktrace.frames[o].in_app===false||!functionNamesMatch(e.stacktrace.frames[o].function,n[t].function)){continue}e.stacktrace.frames[o].vars=n[t].vars}}}LocalVariables.__initStatic();t.LocalVariables=LocalVariables;t.createCallbackList=createCallbackList},1506:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(7147);const r=n(1017);let o;function getPaths(){try{return require.cache?Object.keys(require.cache):[]}catch(e){return[]}}function collectModules(){const e=require.main&&require.main.paths||[];const t=getPaths();const n={};const o={};t.forEach((t=>{let i=t;const updir=()=>{const t=i;i=r.dirname(t);if(!i||t===i||o[t]){return undefined}if(e.indexOf(i)<0){return updir()}const a=r.join(t,"package.json");o[t]=true;if(!s.existsSync(a)){return updir()}try{const e=JSON.parse(s.readFileSync(a,"utf8"));n[e.name]=e.version}catch(e){}};updir()}));return n}class Modules{constructor(){Modules.prototype.__init.call(this)}static __initStatic(){this.id="Modules"}__init(){this.name=Modules.id}setupOnce(e,t){e((e=>{if(!t().getIntegration(Modules)){return e}return{...e,modules:{...e.modules,...this._getModules()}}}))}_getModules(){if(!o){o=collectModules()}return o}}Modules.__initStatic();t.Modules=Modules},3049:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(5761);const r=n(3582);const o=n(9563);class OnUncaughtException{static __initStatic(){this.id="OnUncaughtException"}__init(){this.name=OnUncaughtException.id}__init2(){this.handler=this._makeErrorHandler()}constructor(e={}){OnUncaughtException.prototype.__init.call(this);OnUncaughtException.prototype.__init2.call(this);this._options={exitEvenIfOtherHandlersAreRegistered:true,...e}}setupOnce(){global.process.on("uncaughtException",this.handler)}_makeErrorHandler(){const e=2e3;let t=false;let n=false;let i=false;let a;return c=>{let u=o.logAndExitProcess;const l=s.getCurrentHub().getClient();if(this._options.onFatalError){u=this._options.onFatalError}else if(l&&l.getOptions().onFatalError){u=l.getOptions().onFatalError}const p=global.process.listeners("uncaughtException").reduce(((e,t)=>{if(t.name==="domainUncaughtExceptionClear"||t.tag&&t.tag==="sentry_tracingErrorCallback"||t===this.handler){return e}else{return e+1}}),0);const d=p===0;const f=this._options.exitEvenIfOtherHandlersAreRegistered||d;if(!t){const e=s.getCurrentHub();a=c;t=true;if(e.getIntegration(OnUncaughtException)){e.withScope((t=>{t.setLevel("fatal");e.captureException(c,{originalException:c,data:{mechanism:{handled:false,type:"onuncaughtexception"}}});if(!i&&f){i=true;u(c)}}))}else{if(!i&&f){i=true;u(c)}}}else{if(f){if(i){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.warn("uncaught exception after calling fatal error shutdown callback - this is bad! forcing shutdown");o.logAndExitProcess(c)}else if(!n){n=true;setTimeout((()=>{if(!i){i=true;u(a,c)}}),e)}}}}}}OnUncaughtException.__initStatic();t.OnUncaughtException=OnUncaughtException},4234:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(5761);const r=n(3582);const o=n(9563);class OnUnhandledRejection{static __initStatic(){this.id="OnUnhandledRejection"}__init(){this.name=OnUnhandledRejection.id}constructor(e={mode:"warn"}){this._options=e;OnUnhandledRejection.prototype.__init.call(this)}setupOnce(){global.process.on("unhandledRejection",this.sendUnhandledPromise.bind(this))}sendUnhandledPromise(e,t){const n=s.getCurrentHub();if(n.getIntegration(OnUnhandledRejection)){n.withScope((s=>{s.setExtra("unhandledPromiseRejection",true);n.captureException(e,{originalException:t,data:{mechanism:{handled:false,type:"onunhandledrejection"}}})}))}this._handleRejection(e)}_handleRejection(e){const t="This error originated either by "+"throwing inside of an async function without a catch block, "+"or by rejecting a promise which was not handled with .catch()."+" The promise rejected with the reason:";if(this._options.mode==="warn"){r.consoleSandbox((()=>{console.warn(t);console.error(e&&e.stack?e.stack:e)}))}else if(this._options.mode==="strict"){r.consoleSandbox((()=>{console.warn(t)}));o.logAndExitProcess(e)}}}OnUnhandledRejection.__initStatic();t.OnUnhandledRejection=OnUnhandledRejection},9619:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=n(4206);const o={include:{cookies:true,data:true,headers:true,ip:false,query_string:true,url:true,user:{id:true,username:true,email:true}},transactionNamingScheme:"methodPath"};class RequestData{static __initStatic(){this.id="RequestData"}__init(){this.name=RequestData.id}constructor(e={}){RequestData.prototype.__init.call(this);this._addRequestData=r.addRequestDataToEvent;this._options={...o,...e,include:{method:true,...o.include,...e.include,user:e.include&&typeof e.include.user==="boolean"?e.include.user:{...o.include.user,...(e.include||{}).user}}}}setupOnce(e,t){const{transactionNamingScheme:n}=this._options;e((e=>{const r=t();const o=r.getIntegration(RequestData);const{sdkProcessingMetadata:i={}}=e;const a=i.request;if(!o||!a){return e}const c=i.requestDataOptionsFromExpressHandler||i.requestDataOptionsFromGCPWrapper||convertReqDataIntegrationOptsToAddReqDataOpts(this._options);const u=this._addRequestData(e,a,c);if(e.type==="transaction"||n==="handler"){return u}const l=a;const p=l._sentryTransaction;if(p){const e=getSDKName(r)==="sentry.javascript.nextjs"?p.name.startsWith("/api"):n!=="path";const[t]=s.extractPathForTransaction(a,{path:true,method:e,customRoute:p.name});u.transaction=t}return u}))}}RequestData.__initStatic();function convertReqDataIntegrationOptsToAddReqDataOpts(e){const{transactionNamingScheme:t,include:{ip:n,user:s,...r}}=e;const o=[];for(const[e,t]of Object.entries(r)){if(t){o.push(e)}}let i;if(s===undefined){i=true}else if(typeof s==="boolean"){i=s}else{const e=[];for(const[t,n]of Object.entries(s)){if(n){e.push(t)}}i=e}return{include:{ip:n,user:i,request:o.length!==0?o:undefined,transaction:t}}}function getSDKName(e){try{return e.getClient().getOptions()._metadata.sdk.name}catch(e){return undefined}}t.RequestData=RequestData},4818:(e,t,n)=>{e=n.nmd(e);var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(5761);const o=n(3582);const i=n(8424);const a=n(7804);const c=n(3390);t.ChannelName=void 0;(function(e){const t="undici:request:create";e["RequestCreate"]=t;const n="undici:request:headers";e["RequestEnd"]=n;const s="undici:request:error";e["RequestError"]=s})(t.ChannelName||(t.ChannelName={}));class Undici{static __initStatic(){this.id="Undici"}__init(){this.name=Undici.id}__init2(){this._createSpanUrlMap=new i.LRUMap(100)}__init3(){this._headersUrlMap=new i.LRUMap(100)}constructor(e={}){Undici.prototype.__init.call(this);Undici.prototype.__init2.call(this);Undici.prototype.__init3.call(this);Undici.prototype.__init4.call(this);Undici.prototype.__init5.call(this);Undici.prototype.__init6.call(this);this._options={breadcrumbs:e.breadcrumbs===undefined?true:e.breadcrumbs,shouldCreateSpanForRequest:e.shouldCreateSpanForRequest}}setupOnce(n){if(a.NODE_VERSION.major&&a.NODE_VERSION.major<16){return}let s;try{s=o.dynamicRequire(e,"diagnostics_channel")}catch(e){}if(!s||!s.subscribe){return}s.subscribe(t.ChannelName.RequestCreate,this._onRequestCreate);s.subscribe(t.ChannelName.RequestEnd,this._onRequestEnd);s.subscribe(t.ChannelName.RequestError,this._onRequestError)}_shouldCreateSpan(e){if(this._options.shouldCreateSpanForRequest===undefined){return true}const t=this._createSpanUrlMap.get(e);if(t!==undefined){return t}const n=this._options.shouldCreateSpanForRequest(e);this._createSpanUrlMap.set(e,n);return n}__init4(){this._onRequestCreate=e=>{const t=r.getCurrentHub();if(!t.getIntegration(Undici)){return}const{request:n}=e;const i=n.origin?n.origin.toString()+n.path:n.path;if(c.isSentryRequest(i)||n.__sentry_span__!==undefined){return}const a=t.getClient();if(!a){return}const u=a.getOptions();const l=t.getScope();const p=l.getSpan();const d=this._shouldCreateSpan(i)?createRequestSpan(p,n,i):undefined;if(d){n.__sentry_span__=d}const shouldAttachTraceData=e=>{if(u.tracePropagationTargets===undefined){return true}const t=this._headersUrlMap.get(e);if(t!==undefined){return t}const n=o.stringMatchesSomePattern(e,u.tracePropagationTargets);this._headersUrlMap.set(e,n);return n};if(shouldAttachTraceData(i)){if(d){const e=s([d,"optionalAccess",e=>e.transaction,"optionalAccess",e=>e.getDynamicSamplingContext,"call",e=>e()]);const t=o.dynamicSamplingContextToSentryBaggageHeader(e);setHeadersOnRequest(n,d.toTraceparent(),t)}else{const{traceId:e,sampled:t,dsc:s}=l.getPropagationContext();const i=o.generateSentryTraceHeader(e,undefined,t);const c=s||r.getDynamicSamplingContextFromClient(e,a,l);const u=o.dynamicSamplingContextToSentryBaggageHeader(c);setHeadersOnRequest(n,i,u)}}}}__init5(){this._onRequestEnd=e=>{const t=r.getCurrentHub();if(!t.getIntegration(Undici)){return}const{request:n,response:s}=e;const o=n.origin?n.origin.toString()+n.path:n.path;if(c.isSentryRequest(o)){return}const i=n.__sentry_span__;if(i){i.setHttpStatus(s.statusCode);i.finish()}if(this._options.breadcrumbs){t.addBreadcrumb({category:"http",data:{method:n.method,status_code:s.statusCode,url:o},type:"http"},{event:"response",request:n,response:s})}}}__init6(){this._onRequestError=e=>{const t=r.getCurrentHub();if(!t.getIntegration(Undici)){return}const{request:n}=e;const s=n.origin?n.origin.toString()+n.path:n.path;if(c.isSentryRequest(s)){return}const o=n.__sentry_span__;if(o){o.setStatus("internal_error");o.finish()}if(this._options.breadcrumbs){t.addBreadcrumb({category:"http",data:{method:n.method,url:s},level:"error",type:"http"},{event:"error",request:n})}}}}Undici.__initStatic();function setHeadersOnRequest(e,t,n){if(e.__sentry_has_headers__){return}e.addHeader("sentry-trace",t);if(n){e.addHeader("baggage",n)}e.__sentry_has_headers__=true}function createRequestSpan(e,t,n){const r=o.parseUrl(n);const i=t.method||"GET";const a={"http.method":i};if(r.search){a["http.query"]=r.search}if(r.hash){a["http.fragment"]=r.hash}return s([e,"optionalAccess",e=>e.startChild,"call",e=>e({op:"http.client",origin:"auto.http.node.undici",description:`${i} ${o.getSanitizedUrlString(r)}`,data:a})])}t.Undici=Undici},9563:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(5761);const r=n(3582);const o=2e3;function logAndExitProcess(e){console.error(e);const t=s.getCurrentHub().getClient();if(t===undefined){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.warn("No NodeClient was defined, we are exiting the process now.");global.process.exit(1)}const n=t.getOptions();const i=n&&n.shutdownTimeout&&n.shutdownTimeout>0&&n.shutdownTimeout||o;t.close(i).then((e=>{if(!e){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.warn("We reached the timeout for emptying the request buffer, still exiting now!")}global.process.exit(1)}),(e=>{(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.error(e)}))}t.logAndExitProcess=logAndExitProcess},3390:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(5761);const o=n(7310);const i=n(7804);function isSentryRequest(e){const t=s([r.getCurrentHub,"call",e=>e(),"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getDsn,"call",e=>e()]);return t?e.includes(t.host):false}function extractRawUrl(e){const t=e.protocol||"";const n=e.hostname||e.host||"";const s=!e.port||e.port===80||e.port===443?"":`:${e.port}`;const r=e.path?e.path:"/";return`${t}//${n}${s}${r}`}function extractUrl(e){const t=e.protocol||"";const n=e.hostname||e.host||"";const s=!e.port||e.port===80||e.port===443?"":`:${e.port}`;const r=e.pathname||"/";const o=e.auth?redactAuthority(e.auth):"";return`${t}//${o}${n}${s}${r}`}function redactAuthority(e){const[t,n]=e.split(":");return`${t?"[Filtered]":""}:${n?"[Filtered]":""}@`}function cleanSpanDescription(e,t,n){if(!e){return e}let[r,o]=e.split(" ");if(t.host&&!t.protocol){t.protocol=s([n,"optionalAccess",e=>e.agent,"optionalAccess",e=>e.protocol]);o=extractUrl(t)}if(s([o,"optionalAccess",e=>e.startsWith,"call",e=>e("///")])){o=o.slice(2)}return`${r} ${o}`}function urlToOptions(e){const t={protocol:e.protocol,hostname:typeof e.hostname==="string"&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:`${e.pathname||""}${e.search||""}`,href:e.href};if(e.port!==""){t.port=Number(e.port)}if(e.username||e.password){t.auth=`${e.username}:${e.password}`}return t}function normalizeRequestArgs(e,t){let n,r;if(typeof t[t.length-1]==="function"){n=t.pop()}if(typeof t[0]==="string"){r=urlToOptions(new o.URL(t[0]))}else if(t[0]instanceof o.URL){r=urlToOptions(t[0])}else{r=t[0]}if(t.length===2){r={...r,...t[1]}}if(r.protocol===undefined){if(i.NODE_VERSION.major&&i.NODE_VERSION.major>8){r.protocol=s([s([e,"optionalAccess",e=>e.globalAgent]),"optionalAccess",e=>e.protocol])||s([r.agent,"optionalAccess",e=>e.protocol])||s([r._defaultAgent,"optionalAccess",e=>e.protocol])}else{r.protocol=s([r.agent,"optionalAccess",e=>e.protocol])||s([r._defaultAgent,"optionalAccess",e=>e.protocol])||s([s([e,"optionalAccess",e=>e.globalAgent]),"optionalAccess",e=>e.protocol])}}if(n){return[r,n]}else{return[r]}}t.cleanSpanDescription=cleanSpanDescription;t.extractRawUrl=extractRawUrl;t.extractUrl=extractUrl;t.isSentryRequest=isSentryRequest;t.normalizeRequestArgs=normalizeRequestArgs;t.urlToOptions=urlToOptions},6485:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(1017);const r=s.sep==="\\";function normalizeWindowsPath(e){return e.replace(/^[A-Z]:/,"").replace(/\\/g,"/")}function getModuleFromFilename(e,t=r){if(!e){return}const n=t?normalizeWindowsPath(e):e;let{root:o,dir:i,base:a,ext:c}=s.posix.parse(n);const u=require&&require.main&&require.main.filename&&i||global.process.cwd();const l=`${u}/`;let p=a;if(c===".js"){p=p.slice(0,p.length-".js".length)}if(!o&&!i){i="."}let d=i.lastIndexOf("/node_modules/");if(d>-1){return`${i.slice(d+14).replace(/\//g,".")}:${p}`}d=`${i}/`.lastIndexOf(l,0);if(d===0){let e=i.slice(l.length).replace(/\//g,".");if(e){e+=":"}e+=p;return e}return p}t.getModuleFromFilename=getModuleFromFilename},7804:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3582);const r=s.parseSemver(process.versions.node);t.NODE_VERSION=r},6916:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(4206);function extractRequestData(e,t){return s.extractRequestData(e,{include:t})}function parseRequest(e,t,n={}){return s.addRequestDataToEvent(e,t,{include:n})}t.extractRequestData=extractRequestData;t.parseRequest=parseRequest},4206:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(3582);const o=n(3658);const i=n(7310);const a={ip:false,request:true,transaction:true,user:true};const c=["cookies","data","headers","method","query_string","url"];const u=["id","username","email"];function extractPathForTransaction(e,t={}){const n=e.method&&e.method.toUpperCase();let s="";let o="url";if(t.customRoute||e.route){s=t.customRoute||`${e.baseUrl||""}${e.route&&e.route.path}`;o="route"}else if(e.originalUrl||e.url){s=r.stripUrlQueryAndFragment(e.originalUrl||e.url||"")}let i="";if(t.method&&n){i+=n}if(t.method&&t.path){i+=" "}if(t.path&&s){i+=s}return[i,o]}function extractTransaction(e,t){switch(t){case"path":{return extractPathForTransaction(e,{path:true})[0]}case"handler":{return e.route&&e.route.stack&&e.route.stack[0]&&e.route.stack[0].name||"<anonymous>"}case"methodPath":default:{return extractPathForTransaction(e,{path:true,method:true})[0]}}}function extractUserData(e,t){const n={};const s=Array.isArray(t)?t:u;s.forEach((t=>{if(e&&t in e){n[t]=e[t]}}));return n}function extractRequestData(e,t){const{include:n=c}=t||{};const s={};const i=e.headers||{};const a=e.method;const u=e.hostname||e.host||i.host||"<no host>";const l=e.protocol==="https"||e.socket&&e.socket.encrypted?"https":"http";const p=e.originalUrl||e.url||"";const d=p.startsWith(l)?p:`${l}://${u}${p}`;n.forEach((t=>{switch(t){case"headers":{s.headers=i;if(!n.includes("cookies")){delete s.headers.cookie}break}case"method":{s.method=a;break}case"url":{s.url=d;break}case"cookies":{s.cookies=e.cookies||i.cookie&&o.parse(i.cookie)||{};break}case"query_string":{s.query_string=extractQueryParams(e);break}case"data":{if(a==="GET"||a==="HEAD"){break}if(e.body!==undefined){s.data=r.isString(e.body)?e.body:JSON.stringify(r.normalize(e.body))}break}default:{if({}.hasOwnProperty.call(e,t)){s[t]=e[t]}}}}));return s}function addRequestDataToEvent(e,t,n){const o={...a,...s([n,"optionalAccess",e=>e.include])};if(o.request){const n=Array.isArray(o.request)?extractRequestData(t,{include:o.request}):extractRequestData(t);e.request={...e.request,...n}}if(o.user){const n=t.user&&r.isPlainObject(t.user)?extractUserData(t.user,o.user):{};if(Object.keys(n).length){e.user={...e.user,...n}}}if(o.ip){const n=t.ip||t.socket&&t.socket.remoteAddress;if(n){e.user={...e.user,ip_address:n}}}if(o.transaction&&!e.transaction){e.transaction=extractTransaction(t,o.transaction)}return e}function extractQueryParams(e){let t=e.originalUrl||e.url||"";if(!t){return}if(t.startsWith("/")){t=`http://dogs.are.great${t}`}return e.query||new i.URL(t).search.replace("?","")||undefined}t.DEFAULT_USER_INCLUDES=u;t.addRequestDataToEvent=addRequestDataToEvent;t.extractPathForTransaction=extractPathForTransaction;t.extractRequestData=extractRequestData},5302:(e,t,n)=>{var{_optionalChain:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(5761);const o=n(3582);const i=n(3812);const a=n(8430);const c=n(8332);const u=n(80);const l=n(3049);const p=n(4234);const d=n(256);const f=n(1506);const m=n(6887);const h=n(9954);const g=n(9619);const _=n(5409);const v=n(4818);const b=n(6485);const x=n(3842);const y=[new r.Integrations.InboundFilters,new r.Integrations.FunctionToString,new c.Console,new u.Http,new v.Undici,new l.OnUncaughtException,new p.OnUnhandledRejection,new m.ContextLines,new _.LocalVariables,new h.Context,new f.Modules,new g.RequestData,new d.LinkedErrors];function init(e={}){const t=r.getMainCarrier();i.setNodeAsyncContextStrategy();const n=s([t,"access",e=>e.__SENTRY__,"optionalAccess",e=>e.integrations])||[];e.defaultIntegrations=e.defaultIntegrations===false?[]:[...Array.isArray(e.defaultIntegrations)?e.defaultIntegrations:y,...n];if(e.dsn===undefined&&process.env.SENTRY_DSN){e.dsn=process.env.SENTRY_DSN}const c=process.env.SENTRY_TRACES_SAMPLE_RATE;if(e.tracesSampleRate===undefined&&c){const t=parseFloat(c);if(isFinite(t)){e.tracesSampleRate=t}}if(e.release===undefined){const t=getSentryRelease();if(t!==undefined){e.release=t}else{e.autoSessionTracking=false}}if(e.environment===undefined&&process.env.SENTRY_ENVIRONMENT){e.environment=process.env.SENTRY_ENVIRONMENT}if(e.autoSessionTracking===undefined&&e.dsn!==undefined){e.autoSessionTracking=true}if(e.instrumenter===undefined){e.instrumenter="sentry"}const u={...e,stackParser:o.stackParserFromStackParserOptions(e.stackParser||E),integrations:r.getIntegrationsToSetup(e),transport:e.transport||x.makeNodeTransport};r.initAndBind(e.clientClass||a.NodeClient,u);if(e.autoSessionTracking){startSessionTracking()}updateScopeFromEnvVariables()}function isAutoSessionTrackingEnabled(e){if(e===undefined){return false}const t=e&&e.getOptions();if(t&&t.autoSessionTracking!==undefined){return t.autoSessionTracking}return false}function getSentryRelease(e){if(process.env.SENTRY_RELEASE){return process.env.SENTRY_RELEASE}if(o.GLOBAL_OBJ.SENTRY_RELEASE&&o.GLOBAL_OBJ.SENTRY_RELEASE.id){return o.GLOBAL_OBJ.SENTRY_RELEASE.id}return process.env.GITHUB_SHA||process.env.COMMIT_REF||process.env.VERCEL_GIT_COMMIT_SHA||process.env.VERCEL_GITHUB_COMMIT_SHA||process.env.VERCEL_GITLAB_COMMIT_SHA||process.env.VERCEL_BITBUCKET_COMMIT_SHA||process.env.ZEIT_GITHUB_COMMIT_SHA||process.env.ZEIT_GITLAB_COMMIT_SHA||process.env.ZEIT_BITBUCKET_COMMIT_SHA||e}const E=o.createStackParser(o.nodeStackLineParser(b.getModuleFromFilename));function startSessionTracking(){const e=r.getCurrentHub();e.startSession();process.on("beforeExit",(()=>{const t=e.getScope().getSession();const n=["exited","crashed"];if(t&&!n.includes(t.status))e.endSession()}))}function updateScopeFromEnvVariables(){const e=(process.env.SENTRY_USE_ENVIRONMENT||"").toLowerCase();if(!["false","n","no","off","0"].includes(e)){const e=process.env.SENTRY_TRACE;const t=process.env.SENTRY_BAGGAGE;const{propagationContext:n}=o.tracingContextFromHeaders(e,t);r.getCurrentHub().getScope().setPropagationContext(n)}}t.defaultIntegrations=y;t.defaultStackParser=E;t.getSentryRelease=getSentryRelease;t.init=init;t.isAutoSessionTrackingEnabled=isAutoSessionTrackingEnabled},4873:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(8759);const r=n(3582);function autoDiscoverNodePerformanceMonitoringIntegrations(){const e=s.lazyLoadedNodePerformanceMonitoringIntegrations.map((e=>{try{return e()}catch(e){return undefined}})).filter((e=>!!e));if(e.length===0){r.logger.warn("Performance monitoring integrations could not be automatically loaded.")}return e.filter((e=>!!e.loadDependency()))}t.autoDiscoverNodePerformanceMonitoringIntegrations=autoDiscoverNodePerformanceMonitoringIntegrations},7238:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(8759);t.Apollo=s.Apollo;t.Express=s.Express;t.GraphQL=s.GraphQL;t.Mongo=s.Mongo;t.Mysql=s.Mysql;t.Postgres=s.Postgres;t.Prisma=s.Prisma},3842:(e,t,n)=>{var{_nullishCoalesce:s}=n(1060);Object.defineProperty(t,"__esModule",{value:true});const r=n(5761);const o=n(3685);const i=n(5687);const a=n(7219);const c=n(2781);const u=n(7310);const l=n(9796);const p=1024*32;function streamFromBody(e){return new c.Readable({read(){this.push(e);this.push(null)}})}function makeNodeTransport(e){let t;try{t=new u.URL(e.url)}catch(t){console.warn("[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.");return r.createTransport(e,(()=>Promise.resolve({})))}const n=t.protocol==="https:";const c=applyNoProxyOption(t,e.proxy||(n?process.env.https_proxy:undefined)||process.env.http_proxy);const l=n?i:o;const p=e.keepAlive===undefined?false:e.keepAlive;const d=c?new a.HttpsProxyAgent(c):new l.Agent({keepAlive:p,maxSockets:30,timeout:2e3});const f=createRequestExecutor(e,s(e.httpModule,(()=>l)),d);return r.createTransport(e,f)}function applyNoProxyOption(e,t){const{no_proxy:n}=process.env;const s=n&&n.split(",").some((t=>e.host.endsWith(t)||e.hostname.endsWith(t)));if(s){return undefined}else{return t}}function createRequestExecutor(e,t,n){const{hostname:r,pathname:o,port:i,protocol:a,search:c}=new u.URL(e.url);return function makeRequest(u){return new Promise(((d,f)=>{let m=streamFromBody(u.body);const h={...e.headers};if(u.body.length>p){h["content-encoding"]="gzip";m=m.pipe(l.createGzip())}const g=t.request({method:"POST",agent:n,headers:h,hostname:r,path:`${o}${c}`,port:i,protocol:a,ca:e.caCerts},(e=>{e.on("data",(()=>{}));e.on("end",(()=>{}));e.setEncoding("utf8");const t=s(e.headers["retry-after"],(()=>null));const n=s(e.headers["x-sentry-rate-limits"],(()=>null));d({statusCode:e.statusCode,headers:{"retry-after":t,"x-sentry-rate-limits":Array.isArray(n)?n[0]:n}})}));g.on("error",f);m.pipe(g)}))}}t.makeNodeTransport=makeNodeTransport},5668:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(7147);const r=n(1017);function deepReadDirSync(e){const t=r.resolve(e);if(!s.existsSync(t)){throw new Error(`Cannot read contents of ${t}. Directory does not exist.`)}if(!s.statSync(t).isDirectory()){throw new Error(`Cannot read contents of ${t}, because it is not a directory.`)}const deepReadCurrentDir=e=>s.readdirSync(e).reduce(((t,n)=>{const o=r.join(e,n);if(s.statSync(o).isDirectory()){return t.concat(deepReadCurrentDir(o))}t.push(o);return t}),[]);return deepReadCurrentDir(t).map((e=>r.relative(t,e)))}t.deepReadDirSync=deepReadDirSync},7102:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(8113);const r=n(4678);function applyAggregateErrorsToEvent(e,t,n=250,r,o,i,a){if(!i.exception||!i.exception.values||!a||!s.isInstanceOf(a.originalException,Error)){return}const c=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:undefined;if(c){i.exception.values=truncateAggregateExceptions(aggregateExceptionsFromError(e,t,o,a.originalException,r,i.exception.values,c,0),n)}}function aggregateExceptionsFromError(e,t,n,r,o,i,a,c){if(i.length>=n+1){return i}let u=[...i];if(s.isInstanceOf(r[o],Error)){applyExceptionGroupFieldsForParentException(a,c);const s=e(t,r[o]);const i=u.length;applyExceptionGroupFieldsForChildException(s,o,i,c);u=aggregateExceptionsFromError(e,t,n,r[o],o,[s,...u],s,i)}if(Array.isArray(r.errors)){r.errors.forEach(((r,i)=>{if(s.isInstanceOf(r,Error)){applyExceptionGroupFieldsForParentException(a,c);const s=e(t,r);const l=u.length;applyExceptionGroupFieldsForChildException(s,`errors[${i}]`,l,c);u=aggregateExceptionsFromError(e,t,n,r,o,[s,...u],s,l)}}))}return u}function applyExceptionGroupFieldsForParentException(e,t){e.mechanism=e.mechanism||{type:"generic",handled:true};e.mechanism={...e.mechanism,is_exception_group:true,exception_id:t}}function applyExceptionGroupFieldsForChildException(e,t,n,s){e.mechanism=e.mechanism||{type:"generic",handled:true};e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:s}}function truncateAggregateExceptions(e,t){return e.map((e=>{if(e.value){e.value=r.truncate(e.value,t)}return e}))}t.applyAggregateErrorsToEvent=applyAggregateErrorsToEvent},2123:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(8113);const r=n(4356);const o="baggage";const i="sentry-";const a=/^sentry-/;const c=8192;function baggageHeaderToDynamicSamplingContext(e){if(!s.isString(e)&&!Array.isArray(e)){return undefined}let t={};if(Array.isArray(e)){t=e.reduce(((e,t)=>{const n=baggageHeaderToObject(t);return{...e,...n}}),{})}else{if(!e){return undefined}t=baggageHeaderToObject(e)}const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(a)){const s=t.slice(i.length);e[s]=n}return e}),{});if(Object.keys(n).length>0){return n}else{return undefined}}function dynamicSamplingContextToSentryBaggageHeader(e){if(!e){return undefined}const t=Object.entries(e).reduce(((e,[t,n])=>{if(n){e[`${i}${t}`]=n}return e}),{});return objectToBaggageHeader(t)}function baggageHeaderToObject(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>{e[t]=n;return e}),{})}function objectToBaggageHeader(e){if(Object.keys(e).length===0){return undefined}return Object.entries(e).reduce(((e,[t,n],s)=>{const o=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`;const i=s===0?o:`${e},${o}`;if(i.length>c){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`);return e}else{return i}}),"")}t.BAGGAGE_HEADER_NAME=o;t.MAX_BAGGAGE_STRING_LENGTH=c;t.SENTRY_BAGGAGE_KEY_PREFIX=i;t.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=a;t.baggageHeaderToDynamicSamplingContext=baggageHeaderToDynamicSamplingContext;t.dynamicSamplingContextToSentryBaggageHeader=dynamicSamplingContextToSentryBaggageHeader},7306:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(8113);const r=n(7640);const o=r.getGlobalObject();const i=80;function htmlTreeAsString(e,t={}){try{let n=e;const s=5;const r=[];let o=0;let a=0;const c=" > ";const u=c.length;let l;const p=Array.isArray(t)?t:t.keyAttrs;const d=!Array.isArray(t)&&t.maxStringLength||i;while(n&&o++<s){l=_htmlElementAsString(n,p);if(l==="html"||o>1&&a+r.length*u+l.length>=d){break}r.push(l);a+=l.length;n=n.parentNode}return r.reverse().join(c)}catch(e){return"<unknown>"}}function _htmlElementAsString(e,t){const n=e;const r=[];let o;let i;let a;let c;let u;if(!n||!n.tagName){return""}r.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length){l.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}))}else{if(n.id){r.push(`#${n.id}`)}o=n.className;if(o&&s.isString(o)){i=o.split(/\s+/);for(u=0;u<i.length;u++){r.push(`.${i[u]}`)}}}const p=["aria-label","type","name","title","alt"];for(u=0;u<p.length;u++){a=p[u];c=n.getAttribute(a);if(c){r.push(`[${a}="${c}"]`)}}return r.join("")}function getLocationHref(){try{return o.document.location.href}catch(e){return""}}function getDomElement(e){if(o.document&&o.document.querySelector){return o.document.querySelector(e)}return null}t.getDomElement=getDomElement;t.getLocationHref=getLocationHref;t.htmlTreeAsString=htmlTreeAsString},3340:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(1722);async function _asyncNullishCoalesce(e,t){return s._nullishCoalesce(e,t)}t._asyncNullishCoalesce=_asyncNullishCoalesce},553:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});async function _asyncOptionalChain(e){let t=undefined;let n=e[0];let s=1;while(s<e.length){const r=e[s];const o=e[s+1];s+=2;if((r==="optionalAccess"||r==="optionalCall")&&n==null){return}if(r==="access"||r==="optionalAccess"){t=n;n=await o(n)}else if(r==="call"||r==="optionalCall"){n=await o(((...e)=>n.call(t,...e)));t=undefined}}return n}t._asyncOptionalChain=_asyncOptionalChain},3890:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(553);async function _asyncOptionalChainDelete(e){const t=await s._asyncOptionalChain(e);return t==null?true:t}t._asyncOptionalChainDelete=_asyncOptionalChainDelete},1722:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function _nullishCoalesce(e,t){return e!=null?e:t()}t._nullishCoalesce=_nullishCoalesce},6586:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function _optionalChain(e){let t=undefined;let n=e[0];let s=1;while(s<e.length){const r=e[s];const o=e[s+1];s+=2;if((r==="optionalAccess"||r==="optionalCall")&&n==null){return}if(r==="access"||r==="optionalAccess"){t=n;n=o(n)}else if(r==="call"||r==="optionalCall"){n=o(((...e)=>n.call(t,...e)));t=undefined}}return n}t._optionalChain=_optionalChain},4189:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(6586);function _optionalChainDelete(e){const t=s._optionalChain(e);return t==null?true:t}t._optionalChainDelete=_optionalChainDelete},1060:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(3340);const r=n(553);const o=n(3890);const i=n(1722);const a=n(6586);const c=n(4189);t._asyncNullishCoalesce=s._asyncNullishCoalesce;t._asyncOptionalChain=r._asyncOptionalChain;t._asyncOptionalChainDelete=o._asyncOptionalChainDelete;t._nullishCoalesce=i._nullishCoalesce;t._optionalChain=a._optionalChain;t._optionalChainDelete=c._optionalChainDelete},9106:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function makeFifoCache(e){let t=[];let n={};return{add(s,r){while(t.length>=e){const e=t.shift();if(e!==undefined){delete n[e]}}if(n[s]){this.delete(s)}t.push(s);n[s]=r},clear(){n={};t=[]},get(e){return n[e]},size(){return t.length},delete(e){if(!n[e]){return false}delete n[e];for(let n=0;n<t.length;n++){if(t[n]===e){t.splice(n,1);break}}return true}}}t.makeFifoCache=makeFifoCache},410:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(6952);const r=n(8003);function createClientReportEnvelope(e,t,n){const o=[{type:"client_report"},{timestamp:n||r.dateTimestampInSeconds(),discarded_events:e}];return s.createEnvelope(t?{dsn:t}:{},[o])}t.createClientReportEnvelope=createClientReportEnvelope},6044:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(4356);const r=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function isValidProtocol(e){return e==="http"||e==="https"}function dsnToString(e,t=false){const{host:n,path:s,pass:r,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&r?`:${r}`:""}`+`@${n}${o?`:${o}`:""}/${s?`${s}/`:s}${i}`}function dsnFromString(e){const t=r.exec(e);if(!t){console.error(`Invalid Sentry Dsn: ${e}`);return undefined}const[n,s,o="",i,a="",c]=t.slice(1);let u="";let l=c;const p=l.split("/");if(p.length>1){u=p.slice(0,-1).join("/");l=p.pop()}if(l){const e=l.match(/^\d+/);if(e){l=e[0]}}return dsnFromComponents({host:i,pass:o,path:u,projectId:l,port:a,protocol:n,publicKey:s})}function dsnFromComponents(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function validateDsn(e){if(!(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)){return true}const{port:t,projectId:n,protocol:r}=e;const o=["protocol","publicKey","host","projectId"];const i=o.find((t=>{if(!e[t]){s.logger.error(`Invalid Sentry Dsn: ${t} missing`);return true}return false}));if(i){return false}if(!n.match(/^\d+$/)){s.logger.error(`Invalid Sentry Dsn: Invalid projectId ${n}`);return false}if(!isValidProtocol(r)){s.logger.error(`Invalid Sentry Dsn: Invalid protocol ${r}`);return false}if(t&&isNaN(parseInt(t,10))){s.logger.error(`Invalid Sentry Dsn: Invalid port ${t}`);return false}return true}function makeDsn(e){const t=typeof e==="string"?dsnFromString(e):dsnFromComponents(e);if(!t||!validateDsn(t)){return undefined}return t}t.dsnFromString=dsnFromString;t.dsnToString=dsnToString;t.makeDsn=makeDsn},2110:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function isBrowserBundle(){return typeof __SENTRY_BROWSER_BUNDLE__!=="undefined"&&!!__SENTRY_BROWSER_BUNDLE__}function getSDKSource(){return"npm"}t.getSDKSource=getSDKSource;t.isBrowserBundle=isBrowserBundle},6952:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(6044);const r=n(2732);const o=n(6407);function createEnvelope(e,t=[]){return[e,t]}function addItemToEnvelope(e,t){const[n,s]=e;return[n,[...s,t]]}function forEachEnvelopeItem(e,t){const n=e[1];for(const e of n){const n=e[0].type;const s=t(e,n);if(s){return true}}return false}function envelopeContainsItemType(e,t){return forEachEnvelopeItem(e,((e,n)=>t.includes(n)))}function encodeUTF8(e,t){const n=t||new TextEncoder;return n.encode(e)}function serializeEnvelope(e,t){const[n,s]=e;let o=JSON.stringify(n);function append(e){if(typeof o==="string"){o=typeof e==="string"?o+e:[encodeUTF8(o,t),e]}else{o.push(typeof e==="string"?encodeUTF8(e,t):e)}}for(const e of s){const[t,n]=e;append(`\n${JSON.stringify(t)}\n`);if(typeof n==="string"||n instanceof Uint8Array){append(n)}else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(r.normalize(n))}append(e)}}return typeof o==="string"?o:concatBuffers(o)}function concatBuffers(e){const t=e.reduce(((e,t)=>e+t.length),0);const n=new Uint8Array(t);let s=0;for(const t of e){n.set(t,s);s+=t.length}return n}function parseEnvelope(e,t,n){let s=typeof e==="string"?t.encode(e):e;function readBinary(e){const t=s.subarray(0,e);s=s.subarray(e+1);return t}function readJson(){let e=s.indexOf(10);if(e<0){e=s.length}return JSON.parse(n.decode(readBinary(e)))}const r=readJson();const o=[];while(s.length){const e=readJson();const t=typeof e.length==="number"?e.length:undefined;o.push([e,t?readBinary(t):readJson()])}return[r,o]}function createAttachmentEnvelopeItem(e,t){const n=typeof e.data==="string"?encodeUTF8(e.data,t):e.data;return[o.dropUndefinedKeys({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const i={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function envelopeItemTypeToDataCategory(e){return i[e]}function getSdkMetadataForEnvelopeHeader(e){if(!e||!e.sdk){return}const{name:t,version:n}=e.sdk;return{name:t,version:n}}function createEventEnvelopeHeaders(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:s.dsnToString(r)},...i&&{trace:o.dropUndefinedKeys({...i})}}}t.addItemToEnvelope=addItemToEnvelope;t.createAttachmentEnvelopeItem=createAttachmentEnvelopeItem;t.createEnvelope=createEnvelope;t.createEventEnvelopeHeaders=createEventEnvelopeHeaders;t.envelopeContainsItemType=envelopeContainsItemType;t.envelopeItemTypeToDataCategory=envelopeItemTypeToDataCategory;t.forEachEnvelopeItem=forEachEnvelopeItem;t.getSdkMetadataForEnvelopeHeader=getSdkMetadataForEnvelopeHeader;t.parseEnvelope=parseEnvelope;t.serializeEnvelope=serializeEnvelope},9683:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});class SentryError extends Error{constructor(e,t="warn"){super(e);this.message=e;this.name=new.target.prototype.constructor.name;Object.setPrototypeOf(this,new.target.prototype);this.logLevel=t}}t.SentryError=SentryError},2504:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(8113);const r=n(2310);const o=n(2732);const i=n(6407);function parseStackFrames(e,t){return e(t.stack||"",1)}function exceptionFromError(e,t){const n={type:t.name||t.constructor.name,value:t.message};const s=parseStackFrames(e,t);if(s.length){n.stacktrace={frames:s}}return n}function getMessageForObject(e){if("name"in e&&typeof e.name==="string"){let t=`'${e.name}' captured as exception`;if("message"in e&&typeof e.message==="string"){t+=` with message '${e.message}'`}return t}else if("message"in e&&typeof e.message==="string"){return e.message}else{return`Object captured as exception with keys: ${i.extractExceptionKeysForMessage(e)}`}}function eventFromUnknownInput(e,t,n,i){let a=n;const c=i&&i.data&&i.data.mechanism;const u=c||{handled:true,type:"generic"};if(!s.isError(n)){if(s.isPlainObject(n)){const t=e();const s=t.getClient();const r=s&&s.getOptions().normalizeDepth;t.configureScope((e=>{e.setExtra("__serialized__",o.normalizeToSize(n,r))}));const c=getMessageForObject(n);a=i&&i.syntheticException||new Error(c);a.message=c}else{a=i&&i.syntheticException||new Error(n);a.message=n}u.synthetic=true}const l={exception:{values:[exceptionFromError(t,a)]}};r.addExceptionTypeValue(l,undefined,undefined);r.addExceptionMechanism(l,u);return{...l,event_id:i&&i.event_id}}function eventFromMessage(e,t,n="info",s,r){const o={event_id:s&&s.event_id,level:n,message:t};if(r&&s&&s.syntheticException){const n=parseStackFrames(e,s.syntheticException);if(n.length){o.exception={values:[{value:t,stacktrace:{frames:n}}]}}}return o}t.eventFromMessage=eventFromMessage;t.eventFromUnknownInput=eventFromUnknownInput;t.exceptionFromError=exceptionFromError;t.parseStackFrames=parseStackFrames},3582:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(7102);const r=n(7306);const o=n(6044);const i=n(9683);const a=n(7640);const c=n(2114);const u=n(8113);const l=n(4356);const p=n(5095);const d=n(2310);const f=n(7402);const m=n(2732);const h=n(6407);const g=n(6669);const _=n(187);const v=n(3264);const b=n(8979);const x=n(5493);const y=n(4678);const E=n(9709);const D=n(1030);const S=n(8003);const w=n(299);const C=n(2110);const T=n(6952);const R=n(410);const k=n(9144);const O=n(2123);const F=n(8375);const A=n(626);const P=n(9106);const I=n(2504);const N=n(6272);const M=n(9864);const j=n(5079);t.applyAggregateErrorsToEvent=s.applyAggregateErrorsToEvent;t.getDomElement=r.getDomElement;t.getLocationHref=r.getLocationHref;t.htmlTreeAsString=r.htmlTreeAsString;t.dsnFromString=o.dsnFromString;t.dsnToString=o.dsnToString;t.makeDsn=o.makeDsn;t.SentryError=i.SentryError;t.GLOBAL_OBJ=a.GLOBAL_OBJ;t.getGlobalObject=a.getGlobalObject;t.getGlobalSingleton=a.getGlobalSingleton;t.SENTRY_XHR_DATA_KEY=c.SENTRY_XHR_DATA_KEY;t.addInstrumentationHandler=c.addInstrumentationHandler;t.instrumentDOM=c.instrumentDOM;t.instrumentXHR=c.instrumentXHR;t.parseFetchArgs=c.parseFetchArgs;t.resetInstrumentationHandlers=c.resetInstrumentationHandlers;t.isDOMError=u.isDOMError;t.isDOMException=u.isDOMException;t.isElement=u.isElement;t.isError=u.isError;t.isErrorEvent=u.isErrorEvent;t.isEvent=u.isEvent;t.isInstanceOf=u.isInstanceOf;t.isNaN=u.isNaN;t.isPlainObject=u.isPlainObject;t.isPrimitive=u.isPrimitive;t.isRegExp=u.isRegExp;t.isString=u.isString;t.isSyntheticEvent=u.isSyntheticEvent;t.isThenable=u.isThenable;t.isVueViewModel=u.isVueViewModel;t.CONSOLE_LEVELS=l.CONSOLE_LEVELS;t.consoleSandbox=l.consoleSandbox;t.logger=l.logger;t.originalConsoleMethods=l.originalConsoleMethods;t.memoBuilder=p.memoBuilder;t.addContextToFrame=d.addContextToFrame;t.addExceptionMechanism=d.addExceptionMechanism;t.addExceptionTypeValue=d.addExceptionTypeValue;t.arrayify=d.arrayify;t.checkOrSetAlreadyCaught=d.checkOrSetAlreadyCaught;t.getEventDescription=d.getEventDescription;t.parseSemver=d.parseSemver;t.uuid4=d.uuid4;t.dynamicRequire=f.dynamicRequire;t.isNodeEnv=f.isNodeEnv;t.loadModule=f.loadModule;t.normalize=m.normalize;t.normalizeToSize=m.normalizeToSize;t.walk=m.walk;t.addNonEnumerableProperty=h.addNonEnumerableProperty;t.convertToPlainObject=h.convertToPlainObject;t.dropUndefinedKeys=h.dropUndefinedKeys;t.extractExceptionKeysForMessage=h.extractExceptionKeysForMessage;t.fill=h.fill;t.getOriginalFunction=h.getOriginalFunction;t.markFunctionWrapped=h.markFunctionWrapped;t.objectify=h.objectify;t.urlEncode=h.urlEncode;t.basename=g.basename;t.dirname=g.dirname;t.isAbsolute=g.isAbsolute;t.join=g.join;t.normalizePath=g.normalizePath;t.relative=g.relative;t.resolve=g.resolve;t.makePromiseBuffer=_.makePromiseBuffer;t.addRequestDataToEvent=v.addRequestDataToEvent;t.addRequestDataToTransaction=v.addRequestDataToTransaction;t.extractPathForTransaction=v.extractPathForTransaction;t.extractRequestData=v.extractRequestData;t.severityFromString=b.severityFromString;t.severityLevelFromString=b.severityLevelFromString;t.validSeverityLevels=b.validSeverityLevels;t.createStackParser=x.createStackParser;t.getFunctionName=x.getFunctionName;t.nodeStackLineParser=x.nodeStackLineParser;t.stackParserFromStackParserOptions=x.stackParserFromStackParserOptions;t.stripSentryFramesAndReverse=x.stripSentryFramesAndReverse;t.isMatchingPattern=y.isMatchingPattern;t.safeJoin=y.safeJoin;t.snipLine=y.snipLine;t.stringMatchesSomePattern=y.stringMatchesSomePattern;t.truncate=y.truncate;t.isNativeFetch=E.isNativeFetch;t.supportsDOMError=E.supportsDOMError;t.supportsDOMException=E.supportsDOMException;t.supportsErrorEvent=E.supportsErrorEvent;t.supportsFetch=E.supportsFetch;t.supportsNativeFetch=E.supportsNativeFetch;t.supportsReferrerPolicy=E.supportsReferrerPolicy;t.supportsReportingObserver=E.supportsReportingObserver;t.SyncPromise=D.SyncPromise;t.rejectedSyncPromise=D.rejectedSyncPromise;t.resolvedSyncPromise=D.resolvedSyncPromise;Object.defineProperty(t,"_browserPerformanceTimeOriginMode",{enumerable:true,get:()=>S._browserPerformanceTimeOriginMode});t.browserPerformanceTimeOrigin=S.browserPerformanceTimeOrigin;t.dateTimestampInSeconds=S.dateTimestampInSeconds;t.timestampInSeconds=S.timestampInSeconds;t.timestampWithMs=S.timestampWithMs;t.usingPerformanceAPI=S.usingPerformanceAPI;t.TRACEPARENT_REGEXP=w.TRACEPARENT_REGEXP;t.extractTraceparentData=w.extractTraceparentData;t.generateSentryTraceHeader=w.generateSentryTraceHeader;t.tracingContextFromHeaders=w.tracingContextFromHeaders;t.getSDKSource=C.getSDKSource;t.isBrowserBundle=C.isBrowserBundle;t.addItemToEnvelope=T.addItemToEnvelope;t.createAttachmentEnvelopeItem=T.createAttachmentEnvelopeItem;t.createEnvelope=T.createEnvelope;t.createEventEnvelopeHeaders=T.createEventEnvelopeHeaders;t.envelopeContainsItemType=T.envelopeContainsItemType;t.envelopeItemTypeToDataCategory=T.envelopeItemTypeToDataCategory;t.forEachEnvelopeItem=T.forEachEnvelopeItem;t.getSdkMetadataForEnvelopeHeader=T.getSdkMetadataForEnvelopeHeader;t.parseEnvelope=T.parseEnvelope;t.serializeEnvelope=T.serializeEnvelope;t.createClientReportEnvelope=R.createClientReportEnvelope;t.DEFAULT_RETRY_AFTER=k.DEFAULT_RETRY_AFTER;t.disabledUntil=k.disabledUntil;t.isRateLimited=k.isRateLimited;t.parseRetryAfterHeader=k.parseRetryAfterHeader;t.updateRateLimits=k.updateRateLimits;t.BAGGAGE_HEADER_NAME=O.BAGGAGE_HEADER_NAME;t.MAX_BAGGAGE_STRING_LENGTH=O.MAX_BAGGAGE_STRING_LENGTH;t.SENTRY_BAGGAGE_KEY_PREFIX=O.SENTRY_BAGGAGE_KEY_PREFIX;t.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=O.SENTRY_BAGGAGE_KEY_PREFIX_REGEX;t.baggageHeaderToDynamicSamplingContext=O.baggageHeaderToDynamicSamplingContext;t.dynamicSamplingContextToSentryBaggageHeader=O.dynamicSamplingContextToSentryBaggageHeader;t.getNumberOfUrlSegments=F.getNumberOfUrlSegments;t.getSanitizedUrlString=F.getSanitizedUrlString;t.parseUrl=F.parseUrl;t.stripUrlQueryAndFragment=F.stripUrlQueryAndFragment;t.addOrUpdateIntegration=A.addOrUpdateIntegration;t.makeFifoCache=P.makeFifoCache;t.eventFromMessage=I.eventFromMessage;t.eventFromUnknownInput=I.eventFromUnknownInput;t.exceptionFromError=I.exceptionFromError;t.parseStackFrames=I.parseStackFrames;t.filenameIsInApp=N.filenameIsInApp;t.escapeStringForRegex=M.escapeStringForRegex;t.supportsHistory=j.supportsHistory},2114:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(8113);const r=n(4356);const o=n(6407);const i=n(5493);const a=n(9709);const c=n(7640);const u=n(5079);const l=c.getGlobalObject();const p="__sentry_xhr_v2__";const d={};const f={};function instrument(e){if(f[e]){return}f[e]=true;switch(e){case"console":instrumentConsole();break;case"dom":instrumentDOM();break;case"xhr":instrumentXHR();break;case"fetch":instrumentFetch();break;case"history":instrumentHistory();break;case"error":instrumentError();break;case"unhandledrejection":instrumentUnhandledRejection();break;default:(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.warn("unknown instrumentation type:",e);return}}function addInstrumentationHandler(e,t){d[e]=d[e]||[];d[e].push(t);instrument(e)}function resetInstrumentationHandlers(){Object.keys(d).forEach((e=>{d[e]=undefined}))}function triggerHandlers(e,t){if(!e||!d[e]){return}for(const n of d[e]||[]){try{n(t)}catch(t){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&r.logger.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${i.getFunctionName(n)}\nError:`,t)}}}function instrumentConsole(){if(!("console"in c.GLOBAL_OBJ)){return}r.CONSOLE_LEVELS.forEach((function(e){if(!(e in c.GLOBAL_OBJ.console)){return}o.fill(c.GLOBAL_OBJ.console,e,(function(t){r.originalConsoleMethods[e]=t;return function(...t){triggerHandlers("console",{args:t,level:e});const n=r.originalConsoleMethods[e];n&&n.apply(c.GLOBAL_OBJ.console,t)}}))}))}function instrumentFetch(){if(!a.supportsNativeFetch()){return}o.fill(c.GLOBAL_OBJ,"fetch",(function(e){return function(...t){const{method:n,url:s}=parseFetchArgs(t);const r={args:t,fetchData:{method:n,url:s},startTimestamp:Date.now()};triggerHandlers("fetch",{...r});return e.apply(c.GLOBAL_OBJ,t).then((e=>{triggerHandlers("fetch",{...r,endTimestamp:Date.now(),response:e});return e}),(e=>{triggerHandlers("fetch",{...r,endTimestamp:Date.now(),error:e});throw e}))}}))}function hasProp(e,t){return!!e&&typeof e==="object"&&!!e[t]}function getUrlFromResource(e){if(typeof e==="string"){return e}if(!e){return""}if(hasProp(e,"url")){return e.url}if(e.toString){return e.toString()}return""}function parseFetchArgs(e){if(e.length===0){return{method:"GET",url:""}}if(e.length===2){const[t,n]=e;return{url:getUrlFromResource(t),method:hasProp(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:getUrlFromResource(t),method:hasProp(t,"method")?String(t.method).toUpperCase():"GET"}}function instrumentXHR(){if(!l.XMLHttpRequest){return}const e=XMLHttpRequest.prototype;o.fill(e,"open",(function(e){return function(...t){const n=t[1];const r=this[p]={method:s.isString(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};if(s.isString(n)&&r.method==="POST"&&n.match(/sentry_key/)){this.__sentry_own_request__=true}const onreadystatechangeHandler=()=>{const e=this[p];if(!e){return}if(this.readyState===4){try{e.status_code=this.status}catch(e){}triggerHandlers("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};if("onreadystatechange"in this&&typeof this.onreadystatechange==="function"){o.fill(this,"onreadystatechange",(function(e){return function(...t){onreadystatechangeHandler();return e.apply(this,t)}}))}else{this.addEventListener("readystatechange",onreadystatechangeHandler)}o.fill(this,"setRequestHeader",(function(e){return function(...t){const[n,s]=t;const r=this[p];if(r){r.request_headers[n.toLowerCase()]=s}return e.apply(this,t)}}));return e.apply(this,t)}}));o.fill(e,"send",(function(e){return function(...t){const n=this[p];if(n&&t[0]!==undefined){n.body=t[0]}triggerHandlers("xhr",{args:t,startTimestamp:Date.now(),xhr:this});return e.apply(this,t)}}))}let m;function instrumentHistory(){if(!u.supportsHistory()){return}const e=l.onpopstate;l.onpopstate=function(...t){const n=l.location.href;const s=m;m=n;triggerHandlers("history",{from:s,to:n});if(e){try{return e.apply(this,t)}catch(e){}}};function historyReplacementFunction(e){return function(...t){const n=t.length>2?t[2]:undefined;if(n){const e=m;const t=String(n);m=t;triggerHandlers("history",{from:e,to:t})}return e.apply(this,t)}}o.fill(l.history,"pushState",historyReplacementFunction);o.fill(l.history,"replaceState",historyReplacementFunction)}const h=1e3;let g;let _;function shouldShortcircuitPreviousDebounce(e,t){if(!e){return true}if(e.type!==t.type){return true}try{if(e.target!==t.target){return true}}catch(e){}return false}function shouldSkipDOMEvent(e){if(e.type!=="keypress"){return false}try{const t=e.target;if(!t||!t.tagName){return true}if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable){return false}}catch(e){}return true}function makeDOMEventHandler(e,t=false){return n=>{if(!n||_===n){return}if(shouldSkipDOMEvent(n)){return}const s=n.type==="keypress"?"input":n.type;if(g===undefined){e({event:n,name:s,global:t});_=n}else if(shouldShortcircuitPreviousDebounce(_,n)){e({event:n,name:s,global:t});_=n}clearTimeout(g);g=l.setTimeout((()=>{g=undefined}),h)}}function instrumentDOM(){if(!l.document){return}const e=triggerHandlers.bind(null,"dom");const t=makeDOMEventHandler(e,true);l.document.addEventListener("click",t,false);l.document.addEventListener("keypress",t,false);["EventTarget","Node"].forEach((t=>{const n=l[t]&&l[t].prototype;if(!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")){return}o.fill(n,"addEventListener",(function(t){return function(n,s,r){if(n==="click"||n=="keypress"){try{const s=this;const o=s.__sentry_instrumentation_handlers__=s.__sentry_instrumentation_handlers__||{};const i=o[n]=o[n]||{refCount:0};if(!i.handler){const s=makeDOMEventHandler(e);i.handler=s;t.call(this,n,s,r)}i.refCount++}catch(e){}}return t.call(this,n,s,r)}}));o.fill(n,"removeEventListener",(function(e){return function(t,n,s){if(t==="click"||t=="keypress"){try{const n=this;const r=n.__sentry_instrumentation_handlers__||{};const o=r[t];if(o){o.refCount--;if(o.refCount<=0){e.call(this,t,o.handler,s);o.handler=undefined;delete r[t]}if(Object.keys(r).length===0){delete n.__sentry_instrumentation_handlers__}}}catch(e){}}return e.call(this,t,n,s)}}))}))}let v=null;function instrumentError(){v=l.onerror;l.onerror=function(e,t,n,s,r){triggerHandlers("error",{column:s,error:r,line:n,msg:e,url:t});if(v&&!v.__SENTRY_LOADER__){return v.apply(this,arguments)}return false};l.onerror.__SENTRY_INSTRUMENTED__=true}let b=null;function instrumentUnhandledRejection(){b=l.onunhandledrejection;l.onunhandledrejection=function(e){triggerHandlers("unhandledrejection",e);if(b&&!b.__SENTRY_LOADER__){return b.apply(this,arguments)}return true};l.onunhandledrejection.__SENTRY_INSTRUMENTED__=true}t.SENTRY_XHR_DATA_KEY=p;t.addInstrumentationHandler=addInstrumentationHandler;t.instrumentDOM=instrumentDOM;t.instrumentXHR=instrumentXHR;t.parseFetchArgs=parseFetchArgs;t.resetInstrumentationHandlers=resetInstrumentationHandlers},8113:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});const n=Object.prototype.toString;function isError(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return true;default:return isInstanceOf(e,Error)}}function isBuiltin(e,t){return n.call(e)===`[object ${t}]`}function isErrorEvent(e){return isBuiltin(e,"ErrorEvent")}function isDOMError(e){return isBuiltin(e,"DOMError")}function isDOMException(e){return isBuiltin(e,"DOMException")}function isString(e){return isBuiltin(e,"String")}function isPrimitive(e){return e===null||typeof e!=="object"&&typeof e!=="function"}function isPlainObject(e){return isBuiltin(e,"Object")}function isEvent(e){return typeof Event!=="undefined"&&isInstanceOf(e,Event)}function isElement(e){return typeof Element!=="undefined"&&isInstanceOf(e,Element)}function isRegExp(e){return isBuiltin(e,"RegExp")}function isThenable(e){return Boolean(e&&e.then&&typeof e.then==="function")}function isSyntheticEvent(e){return isPlainObject(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function isNaN(e){return typeof e==="number"&&e!==e}function isInstanceOf(e,t){try{return e instanceof t}catch(e){return false}}function isVueViewModel(e){return!!(typeof e==="object"&&e!==null&&(e.__isVue||e._isVue))}t.isDOMError=isDOMError;t.isDOMException=isDOMException;t.isElement=isElement;t.isError=isError;t.isErrorEvent=isErrorEvent;t.isEvent=isEvent;t.isInstanceOf=isInstanceOf;t.isNaN=isNaN;t.isPlainObject=isPlainObject;t.isPrimitive=isPrimitive;t.isRegExp=isRegExp;t.isString=isString;t.isSyntheticEvent=isSyntheticEvent;t.isThenable=isThenable;t.isVueViewModel=isVueViewModel},4356:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(7640);const r="Sentry Logger ";const o=["debug","info","warn","error","log","assert","trace"];const i={};function consoleSandbox(e){if(!("console"in s.GLOBAL_OBJ)){return e()}const t=s.GLOBAL_OBJ.console;const n={};const r=Object.keys(i);r.forEach((e=>{const s=i[e];n[e]=t[e];t[e]=s}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function makeLogger(){let e=false;const t={enable:()=>{e=true},disable:()=>{e=false}};if(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__){o.forEach((n=>{t[n]=(...t)=>{if(e){consoleSandbox((()=>{s.GLOBAL_OBJ.console[n](`${r}[${n}]:`,...t)}))}}}))}else{o.forEach((e=>{t[e]=()=>undefined}))}return t}const a=makeLogger();t.CONSOLE_LEVELS=o;t.consoleSandbox=consoleSandbox;t.logger=a;t.originalConsoleMethods=i},5095:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function memoBuilder(){const e=typeof WeakSet==="function";const t=e?new WeakSet:[];function memoize(n){if(e){if(t.has(n)){return true}t.add(n);return false}for(let e=0;e<t.length;e++){const s=t[e];if(s===n){return true}}t.push(n);return false}function unmemoize(n){if(e){t.delete(n)}else{for(let e=0;e<t.length;e++){if(t[e]===n){t.splice(e,1);break}}}}return[memoize,unmemoize]}t.memoBuilder=memoBuilder},2310:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(6407);const r=n(4678);const o=n(7640);function uuid4(){const e=o.GLOBAL_OBJ;const t=e.crypto||e.msCrypto;let getRandomByte=()=>Math.random()*16;try{if(t&&t.randomUUID){return t.randomUUID().replace(/-/g,"")}if(t&&t.getRandomValues){getRandomByte=()=>t.getRandomValues(new Uint8Array(1))[0]}}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(getRandomByte()&15)>>e/4).toString(16)))}function getFirstException(e){return e.exception&&e.exception.values?e.exception.values[0]:undefined}function getEventDescription(e){const{message:t,event_id:n}=e;if(t){return t}const s=getFirstException(e);if(s){if(s.type&&s.value){return`${s.type}: ${s.value}`}return s.type||s.value||n||"<unknown>"}return n||"<unknown>"}function addExceptionTypeValue(e,t,n){const s=e.exception=e.exception||{};const r=s.values=s.values||[];const o=r[0]=r[0]||{};if(!o.value){o.value=t||""}if(!o.type){o.type=n||"Error"}}function addExceptionMechanism(e,t){const n=getFirstException(e);if(!n){return}const s={type:"generic",handled:true};const r=n.mechanism;n.mechanism={...s,...r,...t};if(t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}const i=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function parseSemver(e){const t=e.match(i)||[];const n=parseInt(t[1],10);const s=parseInt(t[2],10);const r=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(n)?undefined:n,minor:isNaN(s)?undefined:s,patch:isNaN(r)?undefined:r,prerelease:t[4]}}function addContextToFrame(e,t,n=5){if(t.lineno===undefined){return}const s=e.length;const o=Math.max(Math.min(s-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map((e=>r.snipLine(e,0)));t.context_line=r.snipLine(e[Math.min(s-1,o)],t.colno||0);t.post_context=e.slice(Math.min(o+1,s),o+1+n).map((e=>r.snipLine(e,0)))}function checkOrSetAlreadyCaught(e){if(e&&e.__sentry_captured__){return true}try{s.addNonEnumerableProperty(e,"__sentry_captured__",true)}catch(e){}return false}function arrayify(e){return Array.isArray(e)?e:[e]}t.addContextToFrame=addContextToFrame;t.addExceptionMechanism=addExceptionMechanism;t.addExceptionTypeValue=addExceptionTypeValue;t.arrayify=arrayify;t.checkOrSetAlreadyCaught=checkOrSetAlreadyCaught;t.getEventDescription=getEventDescription;t.parseSemver=parseSemver;t.uuid4=uuid4},6272:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function filenameIsInApp(e,t=false){const n=t||e&&!e.startsWith("/")&&!e.includes(":\\")&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//);return!n&&e!==undefined&&!e.includes("node_modules/")}function node(e){const t=/^\s*[-]{4,}$/;const n=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return s=>{const r=s.match(n);if(r){let t;let n;let s;let o;let i;if(r[1]){s=r[1];let e=s.lastIndexOf(".");if(s[e-1]==="."){e--}if(e>0){t=s.slice(0,e);n=s.slice(e+1);const r=t.indexOf(".Module");if(r>0){s=s.slice(r+1);t=t.slice(0,r)}}o=undefined}if(n){o=t;i=n}if(n==="<anonymous>"){i=undefined;s=undefined}if(s===undefined){i=i||"<anonymous>";s=o?`${o}.${i}`:i}let a=r[2]&&r[2].startsWith("file://")?r[2].slice(7):r[2];const c=r[5]==="native";if(!a&&r[5]&&!c){a=r[5]}return{filename:a,module:e?e(a):undefined,function:s,lineno:parseInt(r[3],10)||undefined,colno:parseInt(r[4],10)||undefined,in_app:filenameIsInApp(a,c)}}if(s.match(t)){return{filename:s}}return undefined}}t.filenameIsInApp=filenameIsInApp;t.node=node},7402:(e,t,n)=>{e=n.nmd(e);Object.defineProperty(t,"__esModule",{value:true});const s=n(2110);function isNodeEnv(){return!s.isBrowserBundle()&&Object.prototype.toString.call(typeof process!=="undefined"?process:0)==="[object process]"}function dynamicRequire(e,t){return e.require(t)}function loadModule(t){let n;try{n=dynamicRequire(e,t)}catch(e){}try{const{cwd:s}=dynamicRequire(e,"process");n=dynamicRequire(e,`${s()}/node_modules/${t}`)}catch(e){}return n}t.dynamicRequire=dynamicRequire;t.isNodeEnv=isNodeEnv;t.loadModule=loadModule},2732:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(8113);const r=n(5095);const o=n(6407);const i=n(5493);function normalize(e,t=100,n=+Infinity){try{return visit("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function normalizeToSize(e,t=3,n=100*1024){const s=normalize(e,t);if(jsonSize(s)>n){return normalizeToSize(e,t-1,n)}return s}function visit(e,t,n=+Infinity,i=+Infinity,a=r.memoBuilder()){const[c,u]=a;if(t==null||["number","boolean","string"].includes(typeof t)&&!s.isNaN(t)){return t}const l=stringifyValue(e,t);if(!l.startsWith("[object ")){return l}if(t["__sentry_skip_normalization__"]){return t}const p=typeof t["__sentry_override_normalization_depth__"]==="number"?t["__sentry_override_normalization_depth__"]:n;if(p===0){return l.replace("object ","")}if(c(t)){return"[Circular ~]"}const d=t;if(d&&typeof d.toJSON==="function"){try{const e=d.toJSON();return visit("",e,p-1,i,a)}catch(e){}}const f=Array.isArray(t)?[]:{};let m=0;const h=o.convertToPlainObject(t);for(const e in h){if(!Object.prototype.hasOwnProperty.call(h,e)){continue}if(m>=i){f[e]="[MaxProperties ~]";break}const t=h[e];f[e]=visit(e,t,p-1,i,a);m++}u(t);return f}function stringifyValue(e,t){try{if(e==="domain"&&t&&typeof t==="object"&&t._events){return"[Domain]"}if(e==="domainEmitter"){return"[DomainEmitter]"}if(typeof global!=="undefined"&&t===global){return"[Global]"}if(typeof window!=="undefined"&&t===window){return"[Window]"}if(typeof document!=="undefined"&&t===document){return"[Document]"}if(s.isVueViewModel(t)){return"[VueViewModel]"}if(s.isSyntheticEvent(t)){return"[SyntheticEvent]"}if(typeof t==="number"&&t!==t){return"[NaN]"}if(typeof t==="function"){return`[Function: ${i.getFunctionName(t)}]`}if(typeof t==="symbol"){return`[${String(t)}]`}if(typeof t==="bigint"){return`[BigInt: ${String(t)}]`}const n=getConstructorName(t);if(/^HTML(\w*)Element$/.test(n)){return`[HTMLElement: ${n}]`}return`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function getConstructorName(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function utf8Length(e){return~-encodeURI(e).split(/%..|./).length}function jsonSize(e){return utf8Length(JSON.stringify(e))}t.normalize=normalize;t.normalizeToSize=normalizeToSize;t.walk=visit},6407:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(7306);const r=n(8113);const o=n(4356);const i=n(4678);function fill(e,t,n){if(!(t in e)){return}const s=e[t];const r=n(s);if(typeof r==="function"){markFunctionWrapped(r,s)}e[t]=r}function addNonEnumerableProperty(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:true,configurable:true})}catch(n){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&o.logger.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function markFunctionWrapped(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n;addNonEnumerableProperty(e,"__sentry_original__",t)}catch(e){}}function getOriginalFunction(e){return e.__sentry_original__}function urlEncode(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function convertToPlainObject(e){if(r.isError(e)){return{message:e.message,name:e.name,stack:e.stack,...getOwnProperties(e)}}else if(r.isEvent(e)){const t={type:e.type,target:serializeEventTarget(e.target),currentTarget:serializeEventTarget(e.currentTarget),...getOwnProperties(e)};if(typeof CustomEvent!=="undefined"&&r.isInstanceOf(e,CustomEvent)){t.detail=e.detail}return t}else{return e}}function serializeEventTarget(e){try{return r.isElement(e)?s.htmlTreeAsString(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function getOwnProperties(e){if(typeof e==="object"&&e!==null){const t={};for(const n in e){if(Object.prototype.hasOwnProperty.call(e,n)){t[n]=e[n]}}return t}else{return{}}}function extractExceptionKeysForMessage(e,t=40){const n=Object.keys(convertToPlainObject(e));n.sort();if(!n.length){return"[object has no keys]"}if(n[0].length>=t){return i.truncate(n[0],t)}for(let e=n.length;e>0;e--){const s=n.slice(0,e).join(", ");if(s.length>t){continue}if(e===n.length){return s}return i.truncate(s,t)}return""}function dropUndefinedKeys(e){const t=new Map;return _dropUndefinedKeys(e,t)}function _dropUndefinedKeys(e,t){if(r.isPlainObject(e)){const n=t.get(e);if(n!==undefined){return n}const s={};t.set(e,s);for(const n of Object.keys(e)){if(typeof e[n]!=="undefined"){s[n]=_dropUndefinedKeys(e[n],t)}}return s}if(Array.isArray(e)){const n=t.get(e);if(n!==undefined){return n}const s=[];t.set(e,s);e.forEach((e=>{s.push(_dropUndefinedKeys(e,t))}));return s}return e}function objectify(e){let t;switch(true){case e===undefined||e===null:t=new String(e);break;case typeof e==="symbol"||typeof e==="bigint":t=Object(e);break;case r.isPrimitive(e):t=new e.constructor(e);break;default:t=e;break}return t}t.addNonEnumerableProperty=addNonEnumerableProperty;t.convertToPlainObject=convertToPlainObject;t.dropUndefinedKeys=dropUndefinedKeys;t.extractExceptionKeysForMessage=extractExceptionKeysForMessage;t.fill=fill;t.getOriginalFunction=getOriginalFunction;t.markFunctionWrapped=markFunctionWrapped;t.objectify=objectify;t.urlEncode=urlEncode},6669:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function normalizeArray(e,t){let n=0;for(let t=e.length-1;t>=0;t--){const s=e[t];if(s==="."){e.splice(t,1)}else if(s===".."){e.splice(t,1);n++}else if(n){e.splice(t,1);n--}}if(t){for(;n--;n){e.unshift("..")}}return e}const n=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function splitPath(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e;const s=n.exec(t);return s?s.slice(1):[]}function resolve(...e){let t="";let n=false;for(let s=e.length-1;s>=-1&&!n;s--){const r=s>=0?e[s]:"/";if(!r){continue}t=`${r}/${t}`;n=r.charAt(0)==="/"}t=normalizeArray(t.split("/").filter((e=>!!e)),!n).join("/");return(n?"/":"")+t||"."}function trim(e){let t=0;for(;t<e.length;t++){if(e[t]!==""){break}}let n=e.length-1;for(;n>=0;n--){if(e[n]!==""){break}}if(t>n){return[]}return e.slice(t,n-t+1)}function relative(e,t){e=resolve(e).slice(1);t=resolve(t).slice(1);const n=trim(e.split("/"));const s=trim(t.split("/"));const r=Math.min(n.length,s.length);let o=r;for(let e=0;e<r;e++){if(n[e]!==s[e]){o=e;break}}let i=[];for(let e=o;e<n.length;e++){i.push("..")}i=i.concat(s.slice(o));return i.join("/")}function normalizePath(e){const t=isAbsolute(e);const n=e.slice(-1)==="/";let s=normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/");if(!s&&!t){s="."}if(s&&n){s+="/"}return(t?"/":"")+s}function isAbsolute(e){return e.charAt(0)==="/"}function join(...e){return normalizePath(e.join("/"))}function dirname(e){const t=splitPath(e);const n=t[0];let s=t[1];if(!n&&!s){return"."}if(s){s=s.slice(0,s.length-1)}return n+s}function basename(e,t){let n=splitPath(e)[2];if(t&&n.slice(t.length*-1)===t){n=n.slice(0,n.length-t.length)}return n}t.basename=basename;t.dirname=dirname;t.isAbsolute=isAbsolute;t.join=join;t.normalizePath=normalizePath;t.relative=relative;t.resolve=resolve},187:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(9683);const r=n(1030);function makePromiseBuffer(e){const t=[];function isReady(){return e===undefined||t.length<e}function remove(e){return t.splice(t.indexOf(e),1)[0]}function add(e){if(!isReady()){return r.rejectedSyncPromise(new s.SentryError("Not adding Promise because buffer limit was reached."))}const n=e();if(t.indexOf(n)===-1){t.push(n)}void n.then((()=>remove(n))).then(null,(()=>remove(n).then(null,(()=>{}))));return n}function drain(e){return new r.SyncPromise(((n,s)=>{let o=t.length;if(!o){return n(true)}const i=setTimeout((()=>{if(e&&e>0){n(false)}}),e);t.forEach((e=>{void r.resolvedSyncPromise(e).then((()=>{if(! --o){clearTimeout(i);n(true)}}),s)}))}))}return{$:t,add:add,drain:drain}}t.makePromiseBuffer=makePromiseBuffer},9144:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});const n=60*1e3;function parseRetryAfterHeader(e,t=Date.now()){const s=parseInt(`${e}`,10);if(!isNaN(s)){return s*1e3}const r=Date.parse(`${e}`);if(!isNaN(r)){return r-t}return n}function disabledUntil(e,t){return e[t]||e.all||0}function isRateLimited(e,t,n=Date.now()){return disabledUntil(e,t)>n}function updateRateLimits(e,{statusCode:t,headers:n},s=Date.now()){const r={...e};const o=n&&n["x-sentry-rate-limits"];const i=n&&n["retry-after"];if(o){for(const e of o.trim().split(",")){const[t,n]=e.split(":",2);const o=parseInt(t,10);const i=(!isNaN(o)?o:60)*1e3;if(!n){r.all=s+i}else{for(const e of n.split(";")){r[e]=s+i}}}}else if(i){r.all=s+parseRetryAfterHeader(i,s)}else if(t===429){r.all=s+60*1e3}return r}t.DEFAULT_RETRY_AFTER=n;t.disabledUntil=disabledUntil;t.isRateLimited=isRateLimited;t.parseRetryAfterHeader=parseRetryAfterHeader;t.updateRateLimits=updateRateLimits},3264:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(8113);const r=n(2732);const o=n(8375);const i={ip:false,request:true,transaction:true,user:true};const a=["cookies","data","headers","method","query_string","url"];const c=["id","username","email"];function addRequestDataToTransaction(e,t,n){if(!e)return;if(!e.metadata.source||e.metadata.source==="url"){e.setName(...extractPathForTransaction(t,{path:true,method:true}))}e.setData("url",t.originalUrl||t.url);if(t.baseUrl){e.setData("baseUrl",t.baseUrl)}e.setData("query",extractQueryParams(t,n))}function extractPathForTransaction(e,t={}){const n=e.method&&e.method.toUpperCase();let s="";let r="url";if(t.customRoute||e.route){s=t.customRoute||`${e.baseUrl||""}${e.route&&e.route.path}`;r="route"}else if(e.originalUrl||e.url){s=o.stripUrlQueryAndFragment(e.originalUrl||e.url||"")}let i="";if(t.method&&n){i+=n}if(t.method&&t.path){i+=" "}if(t.path&&s){i+=s}return[i,r]}function extractTransaction(e,t){switch(t){case"path":{return extractPathForTransaction(e,{path:true})[0]}case"handler":{return e.route&&e.route.stack&&e.route.stack[0]&&e.route.stack[0].name||"<anonymous>"}case"methodPath":default:{return extractPathForTransaction(e,{path:true,method:true})[0]}}}function extractUserData(e,t){const n={};const s=Array.isArray(t)?t:c;s.forEach((t=>{if(e&&t in e){n[t]=e[t]}}));return n}function extractRequestData(e,t){const{include:n=a,deps:o}=t||{};const i={};const c=e.headers||{};const u=e.method;const l=e.hostname||e.host||c.host||"<no host>";const p=e.protocol==="https"||e.socket&&e.socket.encrypted?"https":"http";const d=e.originalUrl||e.url||"";const f=`${p}://${l}${d}`;n.forEach((t=>{switch(t){case"headers":{i.headers=c;break}case"method":{i.method=u;break}case"url":{i.url=f;break}case"cookies":{i.cookies=e.cookies||c.cookie&&o&&o.cookie&&o.cookie.parse(c.cookie)||{};break}case"query_string":{i.query_string=extractQueryParams(e,o);break}case"data":{if(u==="GET"||u==="HEAD"){break}if(e.body!==undefined){i.data=s.isString(e.body)?e.body:JSON.stringify(r.normalize(e.body))}break}default:{if({}.hasOwnProperty.call(e,t)){i[t]=e[t]}}}}));return i}function addRequestDataToEvent(e,t,n){const r={...i,...n&&n.include};if(r.request){const s=Array.isArray(r.request)?extractRequestData(t,{include:r.request,deps:n&&n.deps}):extractRequestData(t,{deps:n&&n.deps});e.request={...e.request,...s}}if(r.user){const n=t.user&&s.isPlainObject(t.user)?extractUserData(t.user,r.user):{};if(Object.keys(n).length){e.user={...e.user,...n}}}if(r.ip){const n=t.ip||t.socket&&t.socket.remoteAddress;if(n){e.user={...e.user,ip_address:n}}}if(r.transaction&&!e.transaction){e.transaction=extractTransaction(t,r.transaction)}return e}function extractQueryParams(e,t){let n=e.originalUrl||e.url||"";if(!n){return}if(n.startsWith("/")){n=`http://dogs.are.great${n}`}return e.query||typeof URL!==undefined&&new URL(n).search.replace("?","")||t&&t.url&&t.url.parse(n).query||undefined}t.addRequestDataToEvent=addRequestDataToEvent;t.addRequestDataToTransaction=addRequestDataToTransaction;t.extractPathForTransaction=extractPathForTransaction;t.extractRequestData=extractRequestData},8979:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});const n=["fatal","error","warning","log","info","debug"];function severityFromString(e){return severityLevelFromString(e)}function severityLevelFromString(e){return e==="warn"?"warning":n.includes(e)?e:"log"}t.severityFromString=severityFromString;t.severityLevelFromString=severityLevelFromString;t.validSeverityLevels=n},5493:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(6272);const r=50;const o=/\(error: (.*)\)/;const i=/captureMessage|captureException/;function createStackParser(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const s=[];const i=e.split("\n");for(let e=n;e<i.length;e++){const n=i[e];if(n.length>1024){continue}const a=o.test(n)?n.replace(o,"$1"):n;if(a.match(/\S*Error: /)){continue}for(const e of t){const t=e(a);if(t){s.push(t);break}}if(s.length>=r){break}}return stripSentryFramesAndReverse(s)}}function stackParserFromStackParserOptions(e){if(Array.isArray(e)){return createStackParser(...e)}return e}function stripSentryFramesAndReverse(e){if(!e.length){return[]}const t=Array.from(e);if(/sentryWrapped/.test(t[t.length-1].function||"")){t.pop()}t.reverse();if(i.test(t[t.length-1].function||"")){t.pop();if(i.test(t[t.length-1].function||"")){t.pop()}}return t.slice(0,r).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}const a="<anonymous>";function getFunctionName(e){try{if(!e||typeof e!=="function"){return a}return e.name||a}catch(e){return a}}function nodeStackLineParser(e){return[90,s.node(e)]}t.filenameIsInApp=s.filenameIsInApp;t.createStackParser=createStackParser;t.getFunctionName=getFunctionName;t.nodeStackLineParser=nodeStackLineParser;t.stackParserFromStackParserOptions=stackParserFromStackParserOptions;t.stripSentryFramesAndReverse=stripSentryFramesAndReverse},4678:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(8113);function truncate(e,t=0){if(typeof e!=="string"||t===0){return e}return e.length<=t?e:`${e.slice(0,t)}...`}function snipLine(e,t){let n=e;const s=n.length;if(s<=150){return n}if(t>s){t=s}let r=Math.max(t-60,0);if(r<5){r=0}let o=Math.min(r+140,s);if(o>s-5){o=s}if(o===s){r=Math.max(o-140,0)}n=n.slice(r,o);if(r>0){n=`'{snip} ${n}`}if(o<s){n+=" {snip}"}return n}function safeJoin(e,t){if(!Array.isArray(e)){return""}const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{if(s.isVueViewModel(r)){n.push("[VueViewModel]")}else{n.push(String(r))}}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function isMatchingPattern(e,t,n=false){if(!s.isString(e)){return false}if(s.isRegExp(t)){return t.test(e)}if(s.isString(t)){return n?e===t:e.includes(t)}return false}function stringMatchesSomePattern(e,t=[],n=false){return t.some((t=>isMatchingPattern(e,t,n)))}t.isMatchingPattern=isMatchingPattern;t.safeJoin=safeJoin;t.snipLine=snipLine;t.stringMatchesSomePattern=stringMatchesSomePattern;t.truncate=truncate},9709:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(4356);const r=n(7640);const o=r.getGlobalObject();function supportsErrorEvent(){try{new ErrorEvent("");return true}catch(e){return false}}function supportsDOMError(){try{new DOMError("");return true}catch(e){return false}}function supportsDOMException(){try{new DOMException("");return true}catch(e){return false}}function supportsFetch(){if(!("fetch"in o)){return false}try{new Headers;new Request("http://www.example.com");new Response;return true}catch(e){return false}}function isNativeFetch(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function supportsNativeFetch(){if(!supportsFetch()){return false}if(isNativeFetch(o.fetch)){return true}let e=false;const t=o.document;if(t&&typeof t.createElement==="function"){try{const n=t.createElement("iframe");n.hidden=true;t.head.appendChild(n);if(n.contentWindow&&n.contentWindow.fetch){e=isNativeFetch(n.contentWindow.fetch)}t.head.removeChild(n)}catch(e){(typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__)&&s.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}}return e}function supportsReportingObserver(){return"ReportingObserver"in o}function supportsReferrerPolicy(){if(!supportsFetch()){return false}try{new Request("_",{referrerPolicy:"origin"});return true}catch(e){return false}}t.isNativeFetch=isNativeFetch;t.supportsDOMError=supportsDOMError;t.supportsDOMException=supportsDOMException;t.supportsErrorEvent=supportsErrorEvent;t.supportsFetch=supportsFetch;t.supportsNativeFetch=supportsNativeFetch;t.supportsReferrerPolicy=supportsReferrerPolicy;t.supportsReportingObserver=supportsReportingObserver},1030:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(8113);var r;(function(e){const t=0;e[e["PENDING"]=t]="PENDING";const n=1;e[e["RESOLVED"]=n]="RESOLVED";const s=2;e[e["REJECTED"]=s]="REJECTED"})(r||(r={}));function resolvedSyncPromise(e){return new SyncPromise((t=>{t(e)}))}function rejectedSyncPromise(e){return new SyncPromise(((t,n)=>{n(e)}))}class SyncPromise{constructor(e){SyncPromise.prototype.__init.call(this);SyncPromise.prototype.__init2.call(this);SyncPromise.prototype.__init3.call(this);SyncPromise.prototype.__init4.call(this);this._state=r.PENDING;this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new SyncPromise(((n,s)=>{this._handlers.push([false,t=>{if(!e){n(t)}else{try{n(e(t))}catch(e){s(e)}}},e=>{if(!t){s(e)}else{try{n(t(e))}catch(e){s(e)}}}]);this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new SyncPromise(((t,n)=>{let s;let r;return this.then((t=>{r=false;s=t;if(e){e()}}),(t=>{r=true;s=t;if(e){e()}})).then((()=>{if(r){n(s);return}t(s)}))}))}__init(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state!==r.PENDING){return}if(s.isThenable(t)){void t.then(this._resolve,this._reject);return}this._state=e;this._value=t;this._executeHandlers()}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING){return}const e=this._handlers.slice();this._handlers=[];e.forEach((e=>{if(e[0]){return}if(this._state===r.RESOLVED){e[1](this._value)}if(this._state===r.REJECTED){e[2](this._value)}e[0]=true}))}}}t.SyncPromise=SyncPromise;t.rejectedSyncPromise=rejectedSyncPromise;t.resolvedSyncPromise=resolvedSyncPromise},8003:(e,t,n)=>{e=n.nmd(e);Object.defineProperty(t,"__esModule",{value:true});const s=n(7402);const r=n(7640);const o=r.getGlobalObject();const i={nowSeconds:()=>Date.now()/1e3};function getBrowserPerformance(){const{performance:e}=o;if(!e||!e.now){return undefined}const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function getNodePerformance(){try{const t=s.dynamicRequire(e,"perf_hooks");return t.performance}catch(e){return undefined}}const a=s.isNodeEnv()?getNodePerformance():getBrowserPerformance();const c=a===undefined?i:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3};const u=i.nowSeconds.bind(i);const l=c.nowSeconds.bind(c);const p=l;const d=a!==undefined;t._browserPerformanceTimeOriginMode=void 0;const f=(()=>{const{performance:e}=o;if(!e||!e.now){t._browserPerformanceTimeOriginMode="none";return undefined}const n=3600*1e3;const s=e.now();const r=Date.now();const i=e.timeOrigin?Math.abs(e.timeOrigin+s-r):n;const a=i<n;const c=e.timing&&e.timing.navigationStart;const u=typeof c==="number";const l=u?Math.abs(c+s-r):n;const p=l<n;if(a||p){if(i<=l){t._browserPerformanceTimeOriginMode="timeOrigin";return e.timeOrigin}else{t._browserPerformanceTimeOriginMode="navigationStart";return c}}t._browserPerformanceTimeOriginMode="dateNow";return r})();t.browserPerformanceTimeOrigin=f;t.dateTimestampInSeconds=u;t.timestampInSeconds=l;t.timestampWithMs=p;t.usingPerformanceAPI=d},299:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(2123);const r=n(2310);const o=new RegExp("^[ \\t]*"+"([0-9a-f]{32})?"+"-?([0-9a-f]{16})?"+"-?([01])?"+"[ \\t]*$");function extractTraceparentData(e){if(!e){return undefined}const t=e.match(o);if(!t){return undefined}let n;if(t[3]==="1"){n=true}else if(t[3]==="0"){n=false}return{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function tracingContextFromHeaders(e,t){const n=extractTraceparentData(e);const o=s.baggageHeaderToDynamicSamplingContext(t);const{traceId:i,parentSpanId:a,parentSampled:c}=n||{};const u={traceId:i||r.uuid4(),spanId:r.uuid4().substring(16),sampled:c};if(a){u.parentSpanId=a}if(o){u.dsc=o}return{traceparentData:n,dynamicSamplingContext:o,propagationContext:u}}function generateSentryTraceHeader(e=r.uuid4(),t=r.uuid4().substring(16),n){let s="";if(n!==undefined){s=n?"-1":"-0"}return`${e}-${t}${s}`}t.TRACEPARENT_REGEXP=o;t.extractTraceparentData=extractTraceparentData;t.generateSentryTraceHeader=generateSentryTraceHeader;t.tracingContextFromHeaders=tracingContextFromHeaders},8375:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function parseUrl(e){if(!e){return{}}const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t){return{}}const n=t[6]||"";const s=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:s,relative:t[5]+n+s}}function stripUrlQueryAndFragment(e){return e.split(/[\?#]/,1)[0]}function getNumberOfUrlSegments(e){return e.split(/\\?\//).filter((e=>e.length>0&&e!==",")).length}function getSanitizedUrlString(e){const{protocol:t,host:n,path:s}=e;const r=n&&n.replace(/^.*@/,"[filtered]:[filtered]@").replace(":80","").replace(":443","")||"";return`${t?`${t}://`:""}${r}${s}`}t.getNumberOfUrlSegments=getNumberOfUrlSegments;t.getSanitizedUrlString=getSanitizedUrlString;t.parseUrl=parseUrl;t.stripUrlQueryAndFragment=stripUrlQueryAndFragment},626:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function setNestedKey(e,t,n){const s=t.match(/([a-z_]+)\.(.*)/i);if(s===null){e[t]=n}else{const t=e[s[1]];setNestedKey(t,s[2],n)}}function addOrUpdateIntegration(e,t,n={}){return Array.isArray(t)?addOrUpdateIntegrationInArray(e,t,n):addOrUpdateIntegrationInFunction(e,t,n)}function addOrUpdateIntegrationInArray(e,t,n){const s=t.find((t=>t.name===e.name));if(s){for(const[e,t]of Object.entries(n)){setNestedKey(s,e,t)}return t}return[...t,e]}function addOrUpdateIntegrationInFunction(e,t,n){const wrapper=s=>{const r=t(s);if(e.allowExclusionByUser){const t=r.find((t=>t.name===e.name));if(!t){return r}}return addOrUpdateIntegrationInArray(e,r,n)};return wrapper}t.addOrUpdateIntegration=addOrUpdateIntegration},9864:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function escapeStringForRegex(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}t.escapeStringForRegex=escapeStringForRegex},5079:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const s=n(7640);const r=s.getGlobalObject();function supportsHistory(){const e=r.chrome;const t=e&&e.app&&e.app.runtime;const n="history"in r&&!!r.history.pushState&&!!r.history.replaceState;return!t&&n}t.supportsHistory=supportsHistory},7640:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function isGlobalObj(e){return e&&e.Math==Math?e:undefined}const n=typeof globalThis=="object"&&isGlobalObj(globalThis)||typeof window=="object"&&isGlobalObj(window)||typeof self=="object"&&isGlobalObj(self)||typeof global=="object"&&isGlobalObj(global)||function(){return this}()||{};function getGlobalObject(){return n}function getGlobalSingleton(e,t,s){const r=s||n;const o=r.__SENTRY__=r.__SENTRY__||{};const i=o[e]||(o[e]=t());return i}t.GLOBAL_OBJ=n;t.getGlobalObject=getGlobalObject;t.getGlobalSingleton=getGlobalSingleton},9690:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=n(2361);const o=s(n(8237));const i=s(n(6570));const a=o.default("agent-base");function isAgent(e){return Boolean(e)&&typeof e.addRequest==="function"}function isSecureEndpoint(){const{stack:e}=new Error;if(typeof e!=="string")return false;return e.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}function createAgent(e,t){return new createAgent.Agent(e,t)}(function(e){class Agent extends r.EventEmitter{constructor(e,t){super();let n=t;if(typeof e==="function"){this.callback=e}else if(e){n=e}this.timeout=null;if(n&&typeof n.timeout==="number"){this.timeout=n.timeout}this.maxFreeSockets=1;this.maxSockets=1;this.maxTotalSockets=Infinity;this.sockets={};this.freeSockets={};this.requests={};this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number"){return this.explicitDefaultPort}return isSecureEndpoint()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){if(typeof this.explicitProtocol==="string"){return this.explicitProtocol}return isSecureEndpoint()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,n){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const n=Object.assign({},t);if(typeof n.secureEndpoint!=="boolean"){n.secureEndpoint=isSecureEndpoint()}if(n.host==null){n.host="localhost"}if(n.port==null){n.port=n.secureEndpoint?443:80}if(n.protocol==null){n.protocol=n.secureEndpoint?"https:":"http:"}if(n.host&&n.path){delete n.path}delete n.agent;delete n.hostname;delete n._defaultAgent;delete n.defaultPort;delete n.createConnection;e._last=true;e.shouldKeepAlive=false;let s=false;let r=null;const o=n.timeout||this.timeout;const onerror=t=>{if(e._hadError)return;e.emit("error",t);e._hadError=true};const ontimeout=()=>{r=null;s=true;const e=new Error(`A "socket" was not created for HTTP request before ${o}ms`);e.code="ETIMEOUT";onerror(e)};const callbackError=e=>{if(s)return;if(r!==null){clearTimeout(r);r=null}onerror(e)};const onsocket=t=>{if(s)return;if(r!=null){clearTimeout(r);r=null}if(isAgent(t)){a("Callback returned another Agent instance %o",t.constructor.name);t.addRequest(e,n);return}if(t){t.once("free",(()=>{this.freeSocket(t,n)}));e.onSocket(t);return}const o=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);onerror(o)};if(typeof this.callback!=="function"){onerror(new Error("`callback` is not defined"));return}if(!this.promisifiedCallback){if(this.callback.length>=3){a("Converting legacy callback function to promise");this.promisifiedCallback=i.default(this.callback)}else{this.promisifiedCallback=this.callback}}if(typeof o==="number"&&o>0){r=setTimeout(ontimeout,o)}if("port"in n&&typeof n.port!=="number"){n.port=Number(n.port)}try{a("Resolving socket for %o request: %o",n.protocol,`${e.method} ${e.path}`);Promise.resolve(this.promisifiedCallback(e,n)).then(onsocket,callbackError)}catch(e){Promise.reject(e).catch(callbackError)}}freeSocket(e,t){a("Freeing socket %o %o",e.constructor.name,t);e.destroy()}destroy(){a("Destroying agent %o",this.constructor.name)}}e.Agent=Agent;e.prototype=e.Agent.prototype})(createAgent||(createAgent={}));e.exports=createAgent},6570:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function promisify(e){return function(t,n){return new Promise(((s,r)=>{e.call(this,t,n,((e,t)=>{if(e){r(e)}else{s(t)}}))}))}}t["default"]=promisify},8512:e=>{const t=e.exports;e.exports["default"]=t;const n="[";const s="]";const r="";const o=";";const i=process.env.TERM_PROGRAM==="Apple_Terminal";t.cursorTo=(e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}if(typeof t!=="number"){return n+(e+1)+"G"}return n+(t+1)+";"+(e+1)+"H"};t.cursorMove=(e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}let s="";if(e<0){s+=n+-e+"D"}else if(e>0){s+=n+e+"C"}if(t<0){s+=n+-t+"A"}else if(t>0){s+=n+t+"B"}return s};t.cursorUp=(e=1)=>n+e+"A";t.cursorDown=(e=1)=>n+e+"B";t.cursorForward=(e=1)=>n+e+"C";t.cursorBackward=(e=1)=>n+e+"D";t.cursorLeft=n+"G";t.cursorSavePosition=i?"7":n+"s";t.cursorRestorePosition=i?"8":n+"u";t.cursorGetPosition=n+"6n";t.cursorNextLine=n+"E";t.cursorPrevLine=n+"F";t.cursorHide=n+"?25l";t.cursorShow=n+"?25h";t.eraseLines=e=>{let n="";for(let s=0;s<e;s++){n+=t.eraseLine+(s<e-1?t.cursorUp():"")}if(e){n+=t.cursorLeft}return n};t.eraseEndLine=n+"K";t.eraseStartLine=n+"1K";t.eraseLine=n+"2K";t.eraseDown=n+"J";t.eraseUp=n+"1J";t.eraseScreen=n+"2J";t.scrollUp=n+"S";t.scrollDown=n+"T";t.clearScreen="c";t.clearTerminal=process.platform==="win32"?`${t.eraseScreen}${n}0f`:`${t.eraseScreen}${n}3J${n}H`;t.beep=r;t.link=(e,t)=>[s,"8",o,o,t,r,e,s,"8",o,o,r].join("");t.image=(e,t={})=>{let n=`${s}1337;File=inline=1`;if(t.width){n+=`;width=${t.width}`}if(t.height){n+=`;height=${t.height}`}if(t.preserveAspectRatio===false){n+=";preserveAspectRatio=0"}return n+":"+e.toString("base64")+r};t.iTerm={setCwd:(e=process.cwd())=>`${s}50;CurrentDir=${e}${r}`,annotation:(e,t={})=>{let n=`${s}1337;`;const o=typeof t.x!=="undefined";const i=typeof t.y!=="undefined";if((o||i)&&!(o&&i&&typeof t.length!=="undefined")){throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined")}e=e.replace(/\|/g,"");n+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=";if(t.length>0){n+=(o?[e,t.length,t.x,t.y]:[t.length,e]).join("|")}else{n+=e}return n+r}}},5063:e=>{e.exports=({onlyFirst:e=false}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?undefined:"g")}},4812:(e,t,n)=>{e.exports={parallel:n(8210),serial:n(445),serialOrdered:n(3578)}},1700:e=>{e.exports=abort;function abort(e){Object.keys(e.jobs).forEach(clean.bind(e));e.jobs={}}function clean(e){if(typeof this.jobs[e]=="function"){this.jobs[e]()}}},2794:(e,t,n)=>{var s=n(5295);e.exports=async;function async(e){var t=false;s((function(){t=true}));return function async_callback(n,r){if(t){e(n,r)}else{s((function nextTick_callback(){e(n,r)}))}}}},5295:e=>{e.exports=defer;function defer(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(t){t(e)}else{setTimeout(e,0)}}},9023:(e,t,n)=>{var s=n(2794),r=n(1700);e.exports=iterate;function iterate(e,t,n,s){var o=n["keyedList"]?n["keyedList"][n.index]:n.index;n.jobs[o]=runJob(t,o,e[o],(function(e,t){if(!(o in n.jobs)){return}delete n.jobs[o];if(e){r(n)}else{n.results[o]=t}s(e,n.results)}))}function runJob(e,t,n,r){var o;if(e.length==2){o=e(n,s(r))}else{o=e(n,t,s(r))}return o}},2474:e=>{e.exports=state;function state(e,t){var n=!Array.isArray(e),s={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};if(t){s.keyedList.sort(n?t:function(n,s){return t(e[n],e[s])})}return s}},7942:(e,t,n)=>{var s=n(1700),r=n(2794);e.exports=terminator;function terminator(e){if(!Object.keys(this.jobs).length){return}this.index=this.size;s(this);r(e)(null,this.results)}},8210:(e,t,n)=>{var s=n(9023),r=n(2474),o=n(7942);e.exports=parallel;function parallel(e,t,n){var i=r(e);while(i.index<(i["keyedList"]||e).length){s(e,t,i,(function(e,t){if(e){n(e,t);return}if(Object.keys(i.jobs).length===0){n(null,i.results);return}}));i.index++}return o.bind(i,n)}},445:(e,t,n)=>{var s=n(3578);e.exports=serial;function serial(e,t,n){return s(e,t,null,n)}},3578:(e,t,n)=>{var s=n(9023),r=n(2474),o=n(7942);e.exports=serialOrdered;e.exports.ascending=ascending;e.exports.descending=descending;function serialOrdered(e,t,n,i){var a=r(e,n);s(e,t,a,(function iteratorHandler(n,r){if(n){i(n,r);return}a.index++;if(a.index<(a["keyedList"]||e).length){s(e,t,a,iteratorHandler);return}i(null,a.results)}));return o.bind(a,i)}function ascending(e,t){return e<t?-1:e>t?1:0}function descending(e,t){return-1*ascending(e,t)}},2031:(e,t,n)=>{const s=Object.assign({},n(6374));const r=Object.keys(s);Object.defineProperty(s,"random",{get(){const e=Math.floor(Math.random()*r.length);const t=r[e];return s[t]}});e.exports=s},2455:(e,t,n)=>{e.exports=cliWidth;function normalizeOpts(e){const t={defaultWidth:0,output:process.stdout,tty:n(6224)};if(!e){return t}Object.keys(t).forEach((function(n){if(!e[n]){e[n]=t[n]}}));return e}function cliWidth(e){const t=normalizeOpts(e);if(t.output.getWindowSize){return t.output.getWindowSize()[0]||t.defaultWidth}if(t.tty.getWindowSize){return t.tty.getWindowSize()[1]||t.defaultWidth}if(t.output.columns){return t.output.columns}if(process.env.CLI_WIDTH){const e=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(e)&&e!==0){return e}}return t.defaultWidth}},5443:(e,t,n)=>{var s=n(3837);var r=n(2781).Stream;var o=n(8611);e.exports=CombinedStream;function CombinedStream(){this.writable=false;this.readable=true;this.dataSize=0;this.maxDataSize=2*1024*1024;this.pauseStreams=true;this._released=false;this._streams=[];this._currentStream=null;this._insideLoop=false;this._pendingNext=false}s.inherits(CombinedStream,r);CombinedStream.create=function(e){var t=new this;e=e||{};for(var n in e){t[n]=e[n]}return t};CombinedStream.isStreamLike=function(e){return typeof e!=="function"&&typeof e!=="string"&&typeof e!=="boolean"&&typeof e!=="number"&&!Buffer.isBuffer(e)};CombinedStream.prototype.append=function(e){var t=CombinedStream.isStreamLike(e);if(t){if(!(e instanceof o)){var n=o.create(e,{maxDataSize:Infinity,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this));e=n}this._handleErrors(e);if(this.pauseStreams){e.pause()}}this._streams.push(e);return this};CombinedStream.prototype.pipe=function(e,t){r.prototype.pipe.call(this,e,t);this.resume();return e};CombinedStream.prototype._getNext=function(){this._currentStream=null;if(this._insideLoop){this._pendingNext=true;return}this._insideLoop=true;try{do{this._pendingNext=false;this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=false}};CombinedStream.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e=="undefined"){this.end();return}if(typeof e!=="function"){this._pipeNext(e);return}var t=e;t(function(e){var t=CombinedStream.isStreamLike(e);if(t){e.on("data",this._checkDataSize.bind(this));this._handleErrors(e)}this._pipeNext(e)}.bind(this))};CombinedStream.prototype._pipeNext=function(e){this._currentStream=e;var t=CombinedStream.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this));e.pipe(this,{end:false});return}var n=e;this.write(n);this._getNext()};CombinedStream.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))};CombinedStream.prototype.write=function(e){this.emit("data",e)};CombinedStream.prototype.pause=function(){if(!this.pauseStreams){return}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};CombinedStream.prototype.resume=function(){if(!this._released){this._released=true;this.writable=true;this._getNext()}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};CombinedStream.prototype.end=function(){this._reset();this.emit("end")};CombinedStream.prototype.destroy=function(){this._reset();this.emit("close")};CombinedStream.prototype._reset=function(){this.writable=false;this._streams=[];this._currentStream=null};CombinedStream.prototype._checkDataSize=function(){this._updateDataSize();if(this.dataSize<=this.maxDataSize){return}var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))};CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){if(!t.dataSize){return}e.dataSize+=t.dataSize}));if(this._currentStream&&this._currentStream.dataSize){this.dataSize+=this._currentStream.dataSize}};CombinedStream.prototype._emitError=function(e){this._reset();this.emit("error",e)}},3658:(e,t)=>{
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
(()=>{var t={9988:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createFileSystemAdapter=r.FILE_SYSTEM_ADAPTER=void 0;const o=i(9896);r.FILE_SYSTEM_ADAPTER={lstat:o.lstat,stat:o.stat,lstatSync:o.lstatSync,statSync:o.statSync,readdir:o.readdir,readdirSync:o.readdirSync};function createFileSystemAdapter(t){if(t===undefined){return r.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},r.FILE_SYSTEM_ADAPTER),t)}r.createFileSystemAdapter=createFileSystemAdapter},9459:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const i=process.versions.node.split(".");if(i[0]===undefined||i[1]===undefined){throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`)}const o=Number.parseInt(i[0],10);const a=Number.parseInt(i[1],10);const c=10;const l=10;const u=o>c;const h=o===c&&a>=l;r.IS_SUPPORT_READDIR_WITH_FILE_TYPES=u||h},4482:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Settings=r.scandirSync=r.scandir=void 0;const o=i(1740);const a=i(9588);const c=i(2321);r.Settings=c.default;function scandir(t,r,i){if(typeof r==="function"){o.read(t,getSettings(),r);return}o.read(t,getSettings(r),i)}r.scandir=scandir;function scandirSync(t,r){const i=getSettings(r);return a.read(t,i)}r.scandirSync=scandirSync;function getSettings(t={}){if(t instanceof c.default){return t}return new c.default(t)}},1740:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.readdir=r.readdirWithFileTypes=r.read=void 0;const o=i(794);const a=i(347);const c=i(9459);const l=i(6556);const u=i(7254);function read(t,r,i){if(!r.stats&&c.IS_SUPPORT_READDIR_WITH_FILE_TYPES){readdirWithFileTypes(t,r,i);return}readdir(t,r,i)}r.read=read;function readdirWithFileTypes(t,r,i){r.fs.readdir(t,{withFileTypes:true},((o,c)=>{if(o!==null){callFailureCallback(i,o);return}const l=c.map((i=>({dirent:i,name:i.name,path:u.joinPathSegments(t,i.name,r.pathSegmentSeparator)})));if(!r.followSymbolicLinks){callSuccessCallback(i,l);return}const h=l.map((t=>makeRplTaskEntry(t,r)));a(h,((t,r)=>{if(t!==null){callFailureCallback(i,t);return}callSuccessCallback(i,r)}))}))}r.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(t,r){return i=>{if(!t.dirent.isSymbolicLink()){i(null,t);return}r.fs.stat(t.path,((o,a)=>{if(o!==null){if(r.throwErrorOnBrokenSymbolicLink){i(o);return}i(null,t);return}t.dirent=l.fs.createDirentFromStats(t.name,a);i(null,t)}))}}function readdir(t,r,i){r.fs.readdir(t,((c,h)=>{if(c!==null){callFailureCallback(i,c);return}const d=h.map((i=>{const a=u.joinPathSegments(t,i,r.pathSegmentSeparator);return t=>{o.stat(a,r.fsStatSettings,((o,c)=>{if(o!==null){t(o);return}const u={name:i,path:a,dirent:l.fs.createDirentFromStats(i,c)};if(r.stats){u.stats=c}t(null,u)}))}}));a(d,((t,r)=>{if(t!==null){callFailureCallback(i,t);return}callSuccessCallback(i,r)}))}))}r.readdir=readdir;function callFailureCallback(t,r){t(r)}function callSuccessCallback(t,r){t(null,r)}},7254:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.joinPathSegments=void 0;function joinPathSegments(t,r,i){if(t.endsWith(i)){return t+r}return t+i+r}r.joinPathSegments=joinPathSegments},9588:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.readdir=r.readdirWithFileTypes=r.read=void 0;const o=i(794);const a=i(9459);const c=i(6556);const l=i(7254);function read(t,r){if(!r.stats&&a.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,r)}return readdir(t,r)}r.read=read;function readdirWithFileTypes(t,r){const i=r.fs.readdirSync(t,{withFileTypes:true});return i.map((i=>{const o={dirent:i,name:i.name,path:l.joinPathSegments(t,i.name,r.pathSegmentSeparator)};if(o.dirent.isSymbolicLink()&&r.followSymbolicLinks){try{const t=r.fs.statSync(o.path);o.dirent=c.fs.createDirentFromStats(o.name,t)}catch(t){if(r.throwErrorOnBrokenSymbolicLink){throw t}}}return o}))}r.readdirWithFileTypes=readdirWithFileTypes;function readdir(t,r){const i=r.fs.readdirSync(t);return i.map((i=>{const a=l.joinPathSegments(t,i,r.pathSegmentSeparator);const u=o.statSync(a,r.fsStatSettings);const h={name:i,path:a,dirent:c.fs.createDirentFromStats(i,u)};if(r.stats){h.stats=u}return h}))}r.readdir=readdir},2321:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6928);const a=i(794);const c=i(9988);class Settings{constructor(t={}){this._options=t;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=c.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,o.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new a.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!==null&&t!==void 0?t:r}}r["default"]=Settings},2789:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createDirentFromStats=void 0;class DirentFromStats{constructor(t,r){this.name=t;this.isBlockDevice=r.isBlockDevice.bind(r);this.isCharacterDevice=r.isCharacterDevice.bind(r);this.isDirectory=r.isDirectory.bind(r);this.isFIFO=r.isFIFO.bind(r);this.isFile=r.isFile.bind(r);this.isSocket=r.isSocket.bind(r);this.isSymbolicLink=r.isSymbolicLink.bind(r)}}function createDirentFromStats(t,r){return new DirentFromStats(t,r)}r.createDirentFromStats=createDirentFromStats},6556:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.fs=void 0;const o=i(2789);r.fs=o},4076:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createFileSystemAdapter=r.FILE_SYSTEM_ADAPTER=void 0;const o=i(9896);r.FILE_SYSTEM_ADAPTER={lstat:o.lstat,stat:o.stat,lstatSync:o.lstatSync,statSync:o.statSync};function createFileSystemAdapter(t){if(t===undefined){return r.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},r.FILE_SYSTEM_ADAPTER),t)}r.createFileSystemAdapter=createFileSystemAdapter},794:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.statSync=r.stat=r.Settings=void 0;const o=i(6103);const a=i(652);const c=i(5897);r.Settings=c.default;function stat(t,r,i){if(typeof r==="function"){o.read(t,getSettings(),r);return}o.read(t,getSettings(r),i)}r.stat=stat;function statSync(t,r){const i=getSettings(r);return a.read(t,i)}r.statSync=statSync;function getSettings(t={}){if(t instanceof c.default){return t}return new c.default(t)}},6103:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.read=void 0;function read(t,r,i){r.fs.lstat(t,((o,a)=>{if(o!==null){callFailureCallback(i,o);return}if(!a.isSymbolicLink()||!r.followSymbolicLink){callSuccessCallback(i,a);return}r.fs.stat(t,((t,o)=>{if(t!==null){if(r.throwErrorOnBrokenSymbolicLink){callFailureCallback(i,t);return}callSuccessCallback(i,a);return}if(r.markSymbolicLink){o.isSymbolicLink=()=>true}callSuccessCallback(i,o)}))}))}r.read=read;function callFailureCallback(t,r){t(r)}function callSuccessCallback(t,r){t(null,r)}},652:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.read=void 0;function read(t,r){const i=r.fs.lstatSync(t);if(!i.isSymbolicLink()||!r.followSymbolicLink){return i}try{const i=r.fs.statSync(t);if(r.markSymbolicLink){i.isSymbolicLink=()=>true}return i}catch(t){if(!r.throwErrorOnBrokenSymbolicLink){return i}throw t}}r.read=read},5897:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(4076);class Settings{constructor(t={}){this._options=t;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=o.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(t,r){return t!==null&&t!==void 0?t:r}}r["default"]=Settings},3989:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Settings=r.walkStream=r.walkSync=r.walk=void 0;const o=i(1316);const a=i(390);const c=i(7405);const l=i(4520);r.Settings=l.default;function walk(t,r,i){if(typeof r==="function"){new o.default(t,getSettings()).read(r);return}new o.default(t,getSettings(r)).read(i)}r.walk=walk;function walkSync(t,r){const i=getSettings(r);const o=new c.default(t,i);return o.read()}r.walkSync=walkSync;function walkStream(t,r){const i=getSettings(r);const o=new a.default(t,i);return o.read()}r.walkStream=walkStream;function getSettings(t={}){if(t instanceof l.default){return t}return new l.default(t)}},1316:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(9134);class AsyncProvider{constructor(t,r){this._root=t;this._settings=r;this._reader=new o.default(this._root,this._settings);this._storage=[]}read(t){this._reader.onError((r=>{callFailureCallback(t,r)}));this._reader.onEntry((t=>{this._storage.push(t)}));this._reader.onEnd((()=>{callSuccessCallback(t,this._storage)}));this._reader.read()}}r["default"]=AsyncProvider;function callFailureCallback(t,r){t(r)}function callSuccessCallback(t,r){t(null,r)}},390:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(2203);const a=i(9134);class StreamProvider{constructor(t,r){this._root=t;this._settings=r;this._reader=new a.default(this._root,this._settings);this._stream=new o.Readable({objectMode:true,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed){this._reader.destroy()}}})}read(){this._reader.onError((t=>{this._stream.emit("error",t)}));this._reader.onEntry((t=>{this._stream.push(t)}));this._reader.onEnd((()=>{this._stream.push(null)}));this._reader.read();return this._stream}}r["default"]=StreamProvider},7405:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(3339);class SyncProvider{constructor(t,r){this._root=t;this._settings=r;this._reader=new o.default(this._root,this._settings)}read(){return this._reader.read()}}r["default"]=SyncProvider},9134:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(4434);const a=i(4482);const c=i(4898);const l=i(757);const u=i(4739);class AsyncReader extends u.default{constructor(t,r){super(t,r);this._settings=r;this._scandir=a.scandir;this._emitter=new o.EventEmitter;this._queue=c(this._worker.bind(this),this._settings.concurrency);this._isFatalError=false;this._isDestroyed=false;this._queue.drain=()=>{if(!this._isFatalError){this._emitter.emit("end")}}}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)}));return this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){const i={directory:t,base:r};this._queue.push(i,(t=>{if(t!==null){this._handleError(t)}}))}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,((i,o)=>{if(i!==null){r(i,undefined);return}for(const r of o){this._handleEntry(r,t.base)}r(null,undefined)}))}_handleError(t){if(this._isDestroyed||!l.isFatalError(this._settings,t)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",t)}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError){return}const i=t.path;if(r!==undefined){t.path=l.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)}if(l.isAppliedFilter(this._settings.entryFilter,t)){this._emitEntry(t)}if(t.dirent.isDirectory()&&l.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(i,r===undefined?undefined:t.path)}}_emitEntry(t){this._emitter.emit("entry",t)}}r["default"]=AsyncReader},757:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.joinPathSegments=r.replacePathSegmentSeparator=r.isAppliedFilter=r.isFatalError=void 0;function isFatalError(t,r){if(t.errorFilter===null){return true}return!t.errorFilter(r)}r.isFatalError=isFatalError;function isAppliedFilter(t,r){return t===null||t(r)}r.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(t,r){return t.split(/[/\\]/).join(r)}r.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(t,r,i){if(t===""){return r}if(t.endsWith(i)){return t+r}return t+i+r}r.joinPathSegments=joinPathSegments},4739:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(757);class Reader{constructor(t,r){this._root=t;this._settings=r;this._root=o.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}}r["default"]=Reader},3339:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(4482);const a=i(757);const c=i(4739);class SyncReader extends c.default{constructor(){super(...arguments);this._scandir=o.scandirSync;this._storage=[];this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(const t of this._queue.values()){this._handleDirectory(t.directory,t.base)}}_handleDirectory(t,r){try{const i=this._scandir(t,this._settings.fsScandirSettings);for(const t of i){this._handleEntry(t,r)}}catch(t){this._handleError(t)}}_handleError(t){if(!a.isFatalError(this._settings,t)){return}throw t}_handleEntry(t,r){const i=t.path;if(r!==undefined){t.path=a.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)}if(a.isAppliedFilter(this._settings.entryFilter,t)){this._pushToStorage(t)}if(t.dirent.isDirectory()&&a.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(i,r===undefined?undefined:t.path)}}_pushToStorage(t){this._storage.push(t)}}r["default"]=SyncReader},4520:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6928);const a=i(4482);class Settings{constructor(t={}){this._options=t;this.basePath=this._getValue(this._options.basePath,undefined);this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY);this.deepFilter=this._getValue(this._options.deepFilter,null);this.entryFilter=this._getValue(this._options.entryFilter,null);this.errorFilter=this._getValue(this._options.errorFilter,null);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,o.sep);this.fsScandirSettings=new a.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!==null&&t!==void 0?t:r}}r["default"]=Settings},4575:(t,r,i)=>{var o=i(9070);function retry(t,r){function run(i,a){var c=r||{};var l;if(!("randomize"in c)){c.randomize=true}l=o.operation(c);function bail(t){a(t||new Error("Aborted"))}function onError(t,r){if(t.bail){bail(t);return}if(!l.retry(t)){a(l.mainError())}else if(c.onRetry){c.onRetry(t,r)}}function runAttempt(r){var o;try{o=t(bail,r)}catch(t){onError(t,r);return}Promise.resolve(o).then(i).catch((function catchIt(t){onError(t,r)}))}l.attempt(runAttempt)}return new Promise(run)}t.exports=retry},7120:(t,r,i)=>{"use strict";const o=i(641);const a=i(6453);const c=i(6374);const l=i(5583);const braces=(t,r={})=>{let i=[];if(Array.isArray(t)){for(const o of t){const t=braces.create(o,r);if(Array.isArray(t)){i.push(...t)}else{i.push(t)}}}else{i=[].concat(braces.create(t,r))}if(r&&r.expand===true&&r.nodupes===true){i=[...new Set(i)]}return i};braces.parse=(t,r={})=>l(t,r);braces.stringify=(t,r={})=>{if(typeof t==="string"){return o(braces.parse(t,r),r)}return o(t,r)};braces.compile=(t,r={})=>{if(typeof t==="string"){t=braces.parse(t,r)}return a(t,r)};braces.expand=(t,r={})=>{if(typeof t==="string"){t=braces.parse(t,r)}let i=c(t,r);if(r.noempty===true){i=i.filter(Boolean)}if(r.nodupes===true){i=[...new Set(i)]}return i};braces.create=(t,r={})=>{if(t===""||t.length<3){return[t]}return r.expand!==true?braces.compile(t,r):braces.expand(t,r)};t.exports=braces},6453:(t,r,i)=>{"use strict";const o=i(9073);const a=i(837);const compile=(t,r={})=>{const walk=(t,i={})=>{const c=a.isInvalidBrace(i);const l=t.invalid===true&&r.escapeInvalid===true;const u=c===true||l===true;const h=r.escapeInvalid===true?"\\":"";let d="";if(t.isOpen===true){return h+t.value}if(t.isClose===true){console.log("node.isClose",h,t.value);return h+t.value}if(t.type==="open"){return u?h+t.value:"("}if(t.type==="close"){return u?h+t.value:")"}if(t.type==="comma"){return t.prev.type==="comma"?"":u?t.value:"|"}if(t.value){return t.value}if(t.nodes&&t.ranges>0){const i=a.reduce(t.nodes);const c=o(...i,{...r,wrap:false,toRegex:true,strictZeros:true});if(c.length!==0){return i.length>1&&c.length>1?`(${c})`:c}}if(t.nodes){for(const r of t.nodes){d+=walk(r,t)}}return d};return walk(t)};t.exports=compile},7201:t=>{"use strict";t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},6374:(t,r,i)=>{"use strict";const o=i(9073);const a=i(641);const c=i(837);const append=(t="",r="",i=false)=>{const o=[];t=[].concat(t);r=[].concat(r);if(!r.length)return t;if(!t.length){return i?c.flatten(r).map((t=>`{${t}}`)):r}for(const a of t){if(Array.isArray(a)){for(const t of a){o.push(append(t,r,i))}}else{for(let t of r){if(i===true&&typeof t==="string")t=`{${t}}`;o.push(Array.isArray(t)?append(a,t,i):a+t)}}}return c.flatten(o)};const expand=(t,r={})=>{const i=r.rangeLimit===undefined?1e3:r.rangeLimit;const walk=(t,l={})=>{t.queue=[];let u=l;let h=l.queue;while(u.type!=="brace"&&u.type!=="root"&&u.parent){u=u.parent;h=u.queue}if(t.invalid||t.dollar){h.push(append(h.pop(),a(t,r)));return}if(t.type==="brace"&&t.invalid!==true&&t.nodes.length===2){h.push(append(h.pop(),["{}"]));return}if(t.nodes&&t.ranges>0){const l=c.reduce(t.nodes);if(c.exceedsLimit(...l,r.step,i)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let u=o(...l,r);if(u.length===0){u=a(t,r)}h.push(append(h.pop(),u));t.nodes=[];return}const d=c.encloseBrace(t);let p=t.queue;let m=t;while(m.type!=="brace"&&m.type!=="root"&&m.parent){m=m.parent;p=m.queue}for(let r=0;r<t.nodes.length;r++){const i=t.nodes[r];if(i.type==="comma"&&t.type==="brace"){if(r===1)p.push("");p.push("");continue}if(i.type==="close"){h.push(append(h.pop(),p,d));continue}if(i.value&&i.type!=="open"){p.push(append(p.pop(),i.value));continue}if(i.nodes){walk(i,t)}}return p};return c.flatten(walk(t))};t.exports=expand},5583:(t,r,i)=>{"use strict";const o=i(641);const{MAX_LENGTH:a,CHAR_BACKSLASH:c,CHAR_BACKTICK:l,CHAR_COMMA:u,CHAR_DOT:h,CHAR_LEFT_PARENTHESES:d,CHAR_RIGHT_PARENTHESES:p,CHAR_LEFT_CURLY_BRACE:m,CHAR_RIGHT_CURLY_BRACE:g,CHAR_LEFT_SQUARE_BRACKET:y,CHAR_RIGHT_SQUARE_BRACKET:v,CHAR_DOUBLE_QUOTE:b,CHAR_SINGLE_QUOTE:w,CHAR_NO_BREAK_SPACE:E,CHAR_ZERO_WIDTH_NOBREAK_SPACE:S}=i(7201);const parse=(t,r={})=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}const i=r||{};const $=typeof i.maxLength==="number"?Math.min(a,i.maxLength):a;if(t.length>$){throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${$})`)}const R={type:"root",input:t,nodes:[]};const P=[R];let O=R;let A=R;let x=0;const T=t.length;let k=0;let C=0;let I;const advance=()=>t[k++];const push=t=>{if(t.type==="text"&&A.type==="dot"){A.type="text"}if(A&&A.type==="text"&&t.type==="text"){A.value+=t.value;return}O.nodes.push(t);t.parent=O;t.prev=A;A=t;return t};push({type:"bos"});while(k<T){O=P[P.length-1];I=advance();if(I===S||I===E){continue}if(I===c){push({type:"text",value:(r.keepEscaping?I:"")+advance()});continue}if(I===v){push({type:"text",value:"\\"+I});continue}if(I===y){x++;let t;while(k<T&&(t=advance())){I+=t;if(t===y){x++;continue}if(t===c){I+=advance();continue}if(t===v){x--;if(x===0){break}}}push({type:"text",value:I});continue}if(I===d){O=push({type:"paren",nodes:[]});P.push(O);push({type:"text",value:I});continue}if(I===p){if(O.type!=="paren"){push({type:"text",value:I});continue}O=P.pop();push({type:"text",value:I});O=P[P.length-1];continue}if(I===b||I===w||I===l){const t=I;let i;if(r.keepQuotes!==true){I=""}while(k<T&&(i=advance())){if(i===c){I+=i+advance();continue}if(i===t){if(r.keepQuotes===true)I+=i;break}I+=i}push({type:"text",value:I});continue}if(I===m){C++;const t=A.value&&A.value.slice(-1)==="$"||O.dollar===true;const r={type:"brace",open:true,close:false,dollar:t,depth:C,commas:0,ranges:0,nodes:[]};O=push(r);P.push(O);push({type:"open",value:I});continue}if(I===g){if(O.type!=="brace"){push({type:"text",value:I});continue}const t="close";O=P.pop();O.close=true;push({type:t,value:I});C--;O=P[P.length-1];continue}if(I===u&&C>0){if(O.ranges>0){O.ranges=0;const t=O.nodes.shift();O.nodes=[t,{type:"text",value:o(O)}]}push({type:"comma",value:I});O.commas++;continue}if(I===h&&C>0&&O.commas===0){const t=O.nodes;if(C===0||t.length===0){push({type:"text",value:I});continue}if(A.type==="dot"){O.range=[];A.value+=I;A.type="range";if(O.nodes.length!==3&&O.nodes.length!==5){O.invalid=true;O.ranges=0;A.type="text";continue}O.ranges++;O.args=[];continue}if(A.type==="range"){t.pop();const r=t[t.length-1];r.value+=A.value+I;A=r;O.ranges--;continue}push({type:"dot",value:I});continue}push({type:"text",value:I})}do{O=P.pop();if(O.type!=="root"){O.nodes.forEach((t=>{if(!t.nodes){if(t.type==="open")t.isOpen=true;if(t.type==="close")t.isClose=true;if(!t.nodes)t.type="text";t.invalid=true}}));const t=P[P.length-1];const r=t.nodes.indexOf(O);t.nodes.splice(r,1,...O.nodes)}}while(P.length>0);push({type:"eos"});return R};t.exports=parse},641:(t,r,i)=>{"use strict";const o=i(837);t.exports=(t,r={})=>{const stringify=(t,i={})=>{const a=r.escapeInvalid&&o.isInvalidBrace(i);const c=t.invalid===true&&r.escapeInvalid===true;let l="";if(t.value){if((a||c)&&o.isOpenOrClose(t)){return"\\"+t.value}return t.value}if(t.value){return t.value}if(t.nodes){for(const r of t.nodes){l+=stringify(r)}}return l};return stringify(t)}},837:(t,r)=>{"use strict";r.isInteger=t=>{if(typeof t==="number"){return Number.isInteger(t)}if(typeof t==="string"&&t.trim()!==""){return Number.isInteger(Number(t))}return false};r.find=(t,r)=>t.nodes.find((t=>t.type===r));r.exceedsLimit=(t,i,o=1,a)=>{if(a===false)return false;if(!r.isInteger(t)||!r.isInteger(i))return false;return(Number(i)-Number(t))/Number(o)>=a};r.escapeNode=(t,r=0,i)=>{const o=t.nodes[r];if(!o)return;if(i&&o.type===i||o.type==="open"||o.type==="close"){if(o.escaped!==true){o.value="\\"+o.value;o.escaped=true}}};r.encloseBrace=t=>{if(t.type!=="brace")return false;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}return false};r.isInvalidBrace=t=>{if(t.type!=="brace")return false;if(t.invalid===true||t.dollar)return true;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}if(t.open!==true||t.close!==true){t.invalid=true;return true}return false};r.isOpenOrClose=t=>{if(t.type==="open"||t.type==="close"){return true}return t.open===true||t.close===true};r.reduce=t=>t.reduce(((t,r)=>{if(r.type==="text")t.push(r.value);if(r.type==="range")r.type="text";return t}),[]);r.flatten=(...t)=>{const r=[];const flat=t=>{for(let i=0;i<t.length;i++){const o=t[i];if(Array.isArray(o)){flat(o);continue}if(o!==undefined){r.push(o)}}return r};flat(t);return r}},4422:(t,r,i)=>{"use strict";const o=i(5317);const a=i(7641);const c=i(3609);function spawn(t,r,i){const l=a(t,r,i);const u=o.spawn(l.command,l.args,l.options);c.hookChildProcess(u,l);return u}function spawnSync(t,r,i){const l=a(t,r,i);const u=o.spawnSync(l.command,l.args,l.options);u.error=u.error||c.verifyENOENTSync(u.status,l);return u}t.exports=spawn;t.exports.spawn=spawn;t.exports.sync=spawnSync;t.exports._parse=a;t.exports._enoent=c},3609:t=>{"use strict";const r=process.platform==="win32";function notFoundError(t,r){return Object.assign(new Error(`${r} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${t.command}`,path:t.command,spawnargs:t.args})}function hookChildProcess(t,i){if(!r){return}const o=t.emit;t.emit=function(r,a){if(r==="exit"){const r=verifyENOENT(a,i,"spawn");if(r){return o.call(t,"error",r)}}return o.apply(t,arguments)}}function verifyENOENT(t,i){if(r&&t===1&&!i.file){return notFoundError(i.original,"spawn")}return null}function verifyENOENTSync(t,i){if(r&&t===1&&!i.file){return notFoundError(i.original,"spawnSync")}return null}t.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},7641:(t,r,i)=>{"use strict";const o=i(6928);const a=i(1998);const c=i(528);const l=i(8115);const u=process.platform==="win32";const h=/\.(?:com|exe)$/i;const d=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function detectShebang(t){t.file=a(t);const r=t.file&&l(t.file);if(r){t.args.unshift(t.file);t.command=r;return a(t)}return t.file}function parseNonShell(t){if(!u){return t}const r=detectShebang(t);const i=!h.test(r);if(t.options.forceShell||i){const i=d.test(r);t.command=o.normalize(t.command);t.command=c.command(t.command);t.args=t.args.map((t=>c.argument(t,i)));const a=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${a}"`];t.command=process.env.comspec||"cmd.exe";t.options.windowsVerbatimArguments=true}return t}function parse(t,r,i){if(r&&!Array.isArray(r)){i=r;r=null}r=r?r.slice(0):[];i=Object.assign({},i);const o={command:t,args:r,options:i,file:undefined,original:{command:t,args:r}};return i.shell?o:parseNonShell(o)}t.exports=parse},528:t=>{"use strict";const r=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(t){t=t.replace(r,"^$1");return t}function escapeArgument(t,i){t=`${t}`;t=t.replace(/(\\*)"/g,'$1$1\\"');t=t.replace(/(\\*)$/,"$1$1");t=`"${t}"`;t=t.replace(r,"^$1");if(i){t=t.replace(r,"^$1")}return t}t.exports.command=escapeCommand;t.exports.argument=escapeArgument},8115:(t,r,i)=>{"use strict";const o=i(9896);const a=i(2668);function readShebang(t){const r=150;const i=Buffer.alloc(r);let c;try{c=o.openSync(t,"r");o.readSync(c,i,0,r,0);o.closeSync(c)}catch(t){}return a(i.toString())}t.exports=readShebang},1998:(t,r,i)=>{"use strict";const o=i(6928);const a=i(3340);const c=i(661);function resolveCommandAttempt(t,r){const i=t.options.env||process.env;const l=process.cwd();const u=t.options.cwd!=null;const h=u&&process.chdir!==undefined&&!process.chdir.disabled;if(h){try{process.chdir(t.options.cwd)}catch(t){}}let d;try{d=a.sync(t.command,{path:i[c({env:i})],pathExt:r?o.delimiter:undefined})}catch(t){}finally{if(h){process.chdir(l)}}if(d){d=o.resolve(u?t.options.cwd:"",d)}return d}function resolveCommand(t){return resolveCommandAttempt(t)||resolveCommandAttempt(t,true)}t.exports=resolveCommand},2536:t=>{"use strict";
|
|
2
3
|
/*!
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
t.parse=parse;t.serialize=serialize;var n=Object.prototype.toString;var s=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function parse(e,t){if(typeof e!=="string"){throw new TypeError("argument str must be a string")}var n={};var s=t||{};var r=s.decode||decode;var o=0;while(o<e.length){var i=e.indexOf("=",o);if(i===-1){break}var a=e.indexOf(";",o);if(a===-1){a=e.length}else if(a<i){o=e.lastIndexOf(";",i-1)+1;continue}var c=e.slice(o,i).trim();if(undefined===n[c]){var u=e.slice(i+1,a).trim();if(u.charCodeAt(0)===34){u=u.slice(1,-1)}n[c]=tryDecode(u,r)}o=a+1}return n}function serialize(e,t,n){var r=n||{};var o=r.encode||encode;if(typeof o!=="function"){throw new TypeError("option encode is invalid")}if(!s.test(e)){throw new TypeError("argument name is invalid")}var i=o(t);if(i&&!s.test(i)){throw new TypeError("argument val is invalid")}var a=e+"="+i;if(null!=r.maxAge){var c=r.maxAge-0;if(isNaN(c)||!isFinite(c)){throw new TypeError("option maxAge is invalid")}a+="; Max-Age="+Math.floor(c)}if(r.domain){if(!s.test(r.domain)){throw new TypeError("option domain is invalid")}a+="; Domain="+r.domain}if(r.path){if(!s.test(r.path)){throw new TypeError("option path is invalid")}a+="; Path="+r.path}if(r.expires){var u=r.expires;if(!isDate(u)||isNaN(u.valueOf())){throw new TypeError("option expires is invalid")}a+="; Expires="+u.toUTCString()}if(r.httpOnly){a+="; HttpOnly"}if(r.secure){a+="; Secure"}if(r.priority){var l=typeof r.priority==="string"?r.priority.toLowerCase():r.priority;switch(l){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var p=typeof r.sameSite==="string"?r.sameSite.toLowerCase():r.sameSite;switch(p){case true:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a}function decode(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function encode(e){return encodeURIComponent(e)}function isDate(e){return n.call(e)==="[object Date]"||e instanceof Date}function tryDecode(e,t){try{return t(e)}catch(t){return e}}},8222:(e,t,n)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let s=0;let r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}s++;if(e==="%c"){r=s}}));t.splice(r,0,n)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(6243)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,t,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(9992);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let n=null;let s;let r;function debug(...e){if(!debug.enabled){return}const n=debug;const s=Number(new Date);const r=s-(t||s);n.diff=r;n.prev=t;n.curr=s;t=s;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,s)=>{if(t==="%%"){return"%"}o++;const r=createDebug.formatters[s];if(typeof r==="function"){const s=e[o];t=r.call(n,s);e.splice(o,1);o--}return t}));createDebug.formatArgs.call(n,e);const i=n.log||createDebug.log;i.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(n!==null){return n}if(s!==createDebug.namespaces){s=createDebug.namespaces;r=createDebug.enabled(e)}return r},set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const n=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const s=n.length;for(t=0;t<s;t++){if(!n[t]){continue}e=n[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.slice(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let n;for(t=0,n=createDebug.skips.length;t<n;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,n=createDebug.names.length;t<n;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},8237:(e,t,n)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(8222)}else{e.exports=n(5332)}},5332:(e,t,n)=>{const s=n(6224);const r=n(3837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=r.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=n(9318);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let s=process.env[t];if(/^(yes|on|true|enabled)$/i.test(s)){s=true}else if(/^(no|off|false|disabled)$/i.test(s)){s=false}else if(s==="null"){s=null}else{s=Number(s)}e[n]=s;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):s.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:n,useColors:s}=this;if(s){const s=this.color;const r="[3"+(s<8?s:"8;5;"+s);const o=` ${r};1m${n} [0m`;t[0]=o+t[0].split("\n").join("\n"+o);t.push(r+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+n+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(r.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let s=0;s<n.length;s++){e.inspectOpts[n[s]]=t.inspectOpts[n[s]]}}e.exports=n(6243)(t);const{formatters:o}=e.exports;o.o=function(e){this.inspectOpts.colors=this.useColors;return r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};o.O=function(e){this.inspectOpts.colors=this.useColors;return r.inspect(e,this.inspectOpts)}},8611:(e,t,n)=>{var s=n(2781).Stream;var r=n(3837);e.exports=DelayedStream;function DelayedStream(){this.source=null;this.dataSize=0;this.maxDataSize=1024*1024;this.pauseStream=true;this._maxDataSizeExceeded=false;this._released=false;this._bufferedEvents=[]}r.inherits(DelayedStream,s);DelayedStream.create=function(e,t){var n=new this;t=t||{};for(var s in t){n[s]=t[s]}n.source=e;var r=e.emit;e.emit=function(){n._handleEmit(arguments);return r.apply(e,arguments)};e.on("error",(function(){}));if(n.pauseStream){e.pause()}return n};Object.defineProperty(DelayedStream.prototype,"readable",{configurable:true,enumerable:true,get:function(){return this.source.readable}});DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};DelayedStream.prototype.resume=function(){if(!this._released){this.release()}this.source.resume()};DelayedStream.prototype.pause=function(){this.source.pause()};DelayedStream.prototype.release=function(){this._released=true;this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this));this._bufferedEvents=[]};DelayedStream.prototype.pipe=function(){var e=s.prototype.pipe.apply(this,arguments);this.resume();return e};DelayedStream.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}if(e[0]==="data"){this.dataSize+=e[1].length;this._checkIfMaxDataSizeExceeded()}this._bufferedEvents.push(e)};DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded){return}if(this.dataSize<=this.maxDataSize){return}this._maxDataSizeExceeded=true;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}},2437:(e,t,n)=>{const s=n(7147);const r=n(1017);const o=n(2037);const i=n(6113);const a=n(9968);const c=a.version;const u=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(e){const t={};let n=e.toString();n=n.replace(/\r\n?/gm,"\n");let s;while((s=u.exec(n))!=null){const e=s[1];let n=s[2]||"";n=n.trim();const r=n[0];n=n.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(r==='"'){n=n.replace(/\\n/g,"\n");n=n.replace(/\\r/g,"\r")}t[e]=n}return t}function _parseVault(e){const t=_vaultPath(e);const n=l.configDotenv({path:t});if(!n.parsed){throw new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`)}const s=_dotenvKey(e).split(",");const r=s.length;let o;for(let e=0;e<r;e++){try{const t=s[e].trim();const r=_instructions(n,t);o=l.decrypt(r.ciphertext,r.key);break}catch(t){if(e+1>=r){throw t}}}return l.parse(o)}function _log(e){console.log(`[dotenv@${c}][INFO] ${e}`)}function _warn(e){console.log(`[dotenv@${c}][WARN] ${e}`)}function _debug(e){console.log(`[dotenv@${c}][DEBUG] ${e}`)}function _dotenvKey(e){if(e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0){return e.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(e,t){let n;try{n=new URL(t)}catch(e){if(e.code==="ERR_INVALID_URL"){throw new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenv.org/vault/.env.vault?environment=development")}throw e}const s=n.password;if(!s){throw new Error("INVALID_DOTENV_KEY: Missing key part")}const r=n.searchParams.get("environment");if(!r){throw new Error("INVALID_DOTENV_KEY: Missing environment part")}const o=`DOTENV_VAULT_${r.toUpperCase()}`;const i=e.parsed[o];if(!i){throw new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`)}return{ciphertext:i,key:s}}function _vaultPath(e){let t=r.resolve(process.cwd(),".env");if(e&&e.path&&e.path.length>0){t=e.path}return t.endsWith(".vault")?t:`${t}.vault`}function _resolveHome(e){return e[0]==="~"?r.join(o.homedir(),e.slice(1)):e}function _configVault(e){_log("Loading env from encrypted .env.vault");const t=l._parseVault(e);let n=process.env;if(e&&e.processEnv!=null){n=e.processEnv}l.populate(n,t,e);return{parsed:t}}function configDotenv(e){let t=r.resolve(process.cwd(),".env");let n="utf8";const o=Boolean(e&&e.debug);if(e){if(e.path!=null){t=_resolveHome(e.path)}if(e.encoding!=null){n=e.encoding}}try{const r=l.parse(s.readFileSync(t,{encoding:n}));let o=process.env;if(e&&e.processEnv!=null){o=e.processEnv}l.populate(o,r,e);return{parsed:r}}catch(e){if(o){_debug(`Failed to load ${t} ${e.message}`)}return{error:e}}}function config(e){const t=_vaultPath(e);if(_dotenvKey(e).length===0){return l.configDotenv(e)}if(!s.existsSync(t)){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`);return l.configDotenv(e)}return l._configVault(e)}function decrypt(e,t){const n=Buffer.from(t.slice(-64),"hex");let s=Buffer.from(e,"base64");const r=s.slice(0,12);const o=s.slice(-16);s=s.slice(12,-16);try{const e=i.createDecipheriv("aes-256-gcm",n,r);e.setAuthTag(o);return`${e.update(s)}${e.final()}`}catch(e){const t=e instanceof RangeError;const n=e.message==="Invalid key length";const s=e.message==="Unsupported state or unable to authenticate data";if(t||n){const e="INVALID_DOTENV_KEY: It must be 64 characters long (or more)";throw new Error(e)}else if(s){const e="DECRYPTION_FAILED: Please check your DOTENV_KEY";throw new Error(e)}else{console.error("Error: ",e.code);console.error("Error: ",e.message);throw e}}}function populate(e,t,n={}){const s=Boolean(n&&n.debug);const r=Boolean(n&&n.override);if(typeof t!=="object"){throw new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate")}for(const n of Object.keys(t)){if(Object.prototype.hasOwnProperty.call(e,n)){if(r===true){e[n]=t[n]}if(s){if(r===true){_debug(`"${n}" is already defined and WAS overwritten`)}else{_debug(`"${n}" is already defined and was NOT overwritten`)}}}else{e[n]=t[n]}}}const l={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};e.exports.configDotenv=l.configDotenv;e.exports._configVault=l._configVault;e.exports._parseVault=l._parseVault;e.exports.config=l.config;e.exports.decrypt=l.decrypt;e.exports.parse=l.parse;e.exports.populate=l.populate;e.exports=l},7099:(e,t,n)=>{const s=n(6639);const{platform:r}=process;const o={tick:"✔",cross:"✖",star:"★",square:"▇",squareSmall:"◻",squareSmallFilled:"◼",play:"▶",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",circleQuestionMark:"?⃝",bullet:"●",dot:"․",line:"─",ellipsis:"…",pointer:"❯",pointerSmall:"›",info:"ℹ",warning:"⚠",hamburger:"☰",smiley:"㋡",mustache:"෴",heart:"♥",nodejs:"⬢",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",questionMarkPrefix:"?⃝",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneSeventh:"⅐",oneEighth:"⅛",oneNinth:"⅑",oneTenth:"⅒",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞"};const i={tick:"√",cross:"×",star:"*",square:"█",squareSmall:"[ ]",squareSmallFilled:"[█]",play:"►",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",circleQuestionMark:"(?)",bullet:"*",dot:".",line:"─",ellipsis:"...",pointer:">",pointerSmall:"»",info:"i",warning:"‼",hamburger:"≡",smiley:"☺",mustache:"┌─┐",heart:o.heart,nodejs:"♦",arrowUp:o.arrowUp,arrowDown:o.arrowDown,arrowLeft:o.arrowLeft,arrowRight:o.arrowRight,radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",questionMarkPrefix:"?",oneHalf:"1/2",oneThird:"1/3",oneQuarter:"1/4",oneFifth:"1/5",oneSixth:"1/6",oneSeventh:"1/7",oneEighth:"1/8",oneNinth:"1/9",oneTenth:"1/10",twoThirds:"2/3",twoFifths:"2/5",threeQuarters:"3/4",threeFifths:"3/5",threeEighths:"3/8",fourFifths:"4/5",fiveSixths:"5/6",fiveEighths:"5/8",sevenEighths:"7/8"};if(r==="linux"){o.questionMarkPrefix="?"}const a=r==="win32"?i:o;const fn=e=>{if(a===o){return e}for(const[t,n]of Object.entries(o)){if(n===a[t]){continue}e=e.replace(new RegExp(s(n),"g"),a[t])}return e};e.exports=Object.assign(fn,a);e.exports.main=o;e.exports.windows=i},6639:e=>{var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(t,"\\$&")}},1133:(e,t,n)=>{var s;e.exports=function(){if(!s){try{s=n(8237)("follow-redirects")}catch(e){}if(typeof s!=="function"){s=function(){}}}s.apply(null,arguments)}},7707:(e,t,n)=>{var s=n(7310);var r=s.URL;var o=n(3685);var i=n(5687);var a=n(2781).Writable;var c=n(9491);var u=n(1133);var l=false;try{c(new r)}catch(e){l=e.code==="ERR_INVALID_URL"}var p=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"];var d=["abort","aborted","connect","error","socket","timeout"];var f=Object.create(null);d.forEach((function(e){f[e]=function(t,n,s){this._redirectable.emit(e,t,n,s)}}));var m=createErrorType("ERR_INVALID_URL","Invalid URL",TypeError);var h=createErrorType("ERR_FR_REDIRECTION_FAILURE","Redirected request failed");var g=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",h);var _=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var v=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");var b=a.prototype.destroy||noop;function RedirectableRequest(e,t){a.call(this);this._sanitizeOptions(e);this._options=e;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(t){this.on("response",t)}var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof h?e:new h({cause:e}))}};this._performRequest()}RedirectableRequest.prototype=Object.create(a.prototype);RedirectableRequest.prototype.abort=function(){destroyRequest(this._currentRequest);this._currentRequest.abort();this.emit("abort")};RedirectableRequest.prototype.destroy=function(e){destroyRequest(this._currentRequest,e);b.call(this,e);return this};RedirectableRequest.prototype.write=function(e,t,n){if(this._ending){throw new v}if(!isString(e)&&!isBuffer(e)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(isFunction(t)){n=t;t=null}if(e.length===0){if(n){n()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:t});this._currentRequest.write(e,t,n)}else{this.emit("error",new _);this.abort()}};RedirectableRequest.prototype.end=function(e,t,n){if(isFunction(e)){n=e;e=t=null}else if(isFunction(t)){n=t;t=null}if(!e){this._ended=this._ending=true;this._currentRequest.end(null,null,n)}else{var s=this;var r=this._currentRequest;this.write(e,t,(function(){s._ended=true;r.end(null,null,n)}));this._ending=true}};RedirectableRequest.prototype.setHeader=function(e,t){this._options.headers[e]=t;this._currentRequest.setHeader(e,t)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};RedirectableRequest.prototype.setTimeout=function(e,t){var n=this;function destroyOnTimeout(t){t.setTimeout(e);t.removeListener("timeout",t.destroy);t.addListener("timeout",t.destroy)}function startTimer(t){if(n._timeout){clearTimeout(n._timeout)}n._timeout=setTimeout((function(){n.emit("timeout");clearTimer()}),e);destroyOnTimeout(t)}function clearTimer(){if(n._timeout){clearTimeout(n._timeout);n._timeout=null}n.removeListener("abort",clearTimer);n.removeListener("error",clearTimer);n.removeListener("response",clearTimer);n.removeListener("close",clearTimer);if(t){n.removeListener("timeout",t)}if(!n.socket){n._currentRequest.removeListener("socket",startTimer)}}if(t){this.on("timeout",t)}if(this.socket){startTimer(this.socket)}else{this._currentRequest.once("socket",startTimer)}this.on("socket",destroyOnTimeout);this.on("abort",clearTimer);this.on("error",clearTimer);this.on("response",clearTimer);this.on("close",clearTimer);return this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){RedirectableRequest.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}));["aborted","connection","socket"].forEach((function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})}));RedirectableRequest.prototype._sanitizeOptions=function(e){if(!e.headers){e.headers={}}if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(!e.pathname&&e.path){var t=e.path.indexOf("?");if(t<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,t);e.search=e.path.substring(t)}}};RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var t=this._options.nativeProtocols[e];if(!t){throw new TypeError("Unsupported protocol "+e)}if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var r=this._currentRequest=t.request(this._options,this._onNativeResponse);r._redirectable=this;for(var o of d){r.on(o,f[o])}this._currentUrl=/^\//.test(this._options.path)?s.format(this._options):this._options.path;if(this._isRedirect){var i=0;var a=this;var c=this._requestBodyBuffers;(function writeNext(e){if(r===a._currentRequest){if(e){a.emit("error",e)}else if(i<c.length){var t=c[i++];if(!r.finished){r.write(t.data,t.encoding,writeNext)}}else if(a._ended){r.end()}}})()}};RedirectableRequest.prototype._processResponse=function(e){var t=e.statusCode;if(this._options.trackRedirects){this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t})}var n=e.headers.location;if(!n||this._options.followRedirects===false||t<300||t>=400){e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[];return}destroyRequest(this._currentRequest);e.destroy();if(++this._redirectCount>this._options.maxRedirects){throw new g}var r;var o=this._options.beforeRedirect;if(o){r=Object.assign({Host:e.req.getHeader("host")},this._options.headers)}var i=this._options.method;if((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var a=removeMatchingHeaders(/^host$/i,this._options.headers);var c=parseUrl(this._currentUrl);var l=a||c.host;var p=/^\w+:/.test(n)?this._currentUrl:s.format(Object.assign(c,{host:l}));var d=resolveUrl(n,p);u("redirecting to",d.href);this._isRedirect=true;spreadUrlObject(d,this._options);if(d.protocol!==c.protocol&&d.protocol!=="https:"||d.host!==l&&!isSubdomain(d.host,l)){removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers)}if(isFunction(o)){var f={headers:e.headers,statusCode:t};var m={url:p,method:i,headers:r};o(this._options,f,m);this._sanitizeOptions(this._options)}this._performRequest()};function wrap(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024};var n={};Object.keys(e).forEach((function(s){var r=s+":";var o=n[r]=e[s];var i=t[s]=Object.create(o);function request(e,s,o){if(isURL(e)){e=spreadUrlObject(e)}else if(isString(e)){e=spreadUrlObject(parseUrl(e))}else{o=s;s=validateUrl(e);e={protocol:r}}if(isFunction(s)){o=s;s=null}s=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,s);s.nativeProtocols=n;if(!isString(s.host)&&!isString(s.hostname)){s.hostname="::1"}c.equal(s.protocol,r,"protocol mismatch");u("options",s);return new RedirectableRequest(s,o)}function get(e,t,n){var s=i.request(e,t,n);s.end();return s}Object.defineProperties(i,{request:{value:request,configurable:true,enumerable:true,writable:true},get:{value:get,configurable:true,enumerable:true,writable:true}})}));return t}function noop(){}function parseUrl(e){var t;if(l){t=new r(e)}else{t=validateUrl(s.parse(e));if(!isString(t.protocol)){throw new m({input:e})}}return t}function resolveUrl(e,t){return l?new r(e,t):parseUrl(s.resolve(t,e))}function validateUrl(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname)){throw new m({input:e.href||e})}if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host)){throw new m({input:e.href||e})}return e}function spreadUrlObject(e,t){var n=t||{};for(var s of p){n[s]=e[s]}if(n.hostname.startsWith("[")){n.hostname=n.hostname.slice(1,-1)}if(n.port!==""){n.port=Number(n.port)}n.path=n.search?n.pathname+n.search:n.pathname;return n}function removeMatchingHeaders(e,t){var n;for(var s in t){if(e.test(s)){n=t[s];delete t[s]}}return n===null||typeof n==="undefined"?undefined:String(n).trim()}function createErrorType(e,t,n){function CustomError(n){Error.captureStackTrace(this,this.constructor);Object.assign(this,n||{});this.code=e;this.message=this.cause?t+": "+this.cause.message:t}CustomError.prototype=new(n||Error);Object.defineProperties(CustomError.prototype,{constructor:{value:CustomError,enumerable:false},name:{value:"Error ["+e+"]",enumerable:false}});return CustomError}function destroyRequest(e,t){for(var n of d){e.removeListener(n,f[n])}e.on("error",noop);e.destroy(t)}function isSubdomain(e,t){c(isString(e)&&isString(t));var n=e.length-t.length-1;return n>0&&e[n]==="."&&e.endsWith(t)}function isString(e){return typeof e==="string"||e instanceof String}function isFunction(e){return typeof e==="function"}function isBuffer(e){return typeof e==="object"&&"length"in e}function isURL(e){return r&&e instanceof r}e.exports=wrap({http:o,https:i});e.exports.wrap=wrap},4334:(e,t,n)=>{var s=n(5443);var r=n(3837);var o=n(1017);var i=n(3685);var a=n(5687);var c=n(7310).parse;var u=n(7147);var l=n(2781).Stream;var p=n(3583);var d=n(4812);var f=n(7142);e.exports=FormData;r.inherits(FormData,s);function FormData(e){if(!(this instanceof FormData)){return new FormData(e)}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];s.call(this);e=e||{};for(var t in e){this[t]=e[t]}}FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(e,t,n){n=n||{};if(typeof n=="string"){n={filename:n}}var o=s.prototype.append.bind(this);if(typeof t=="number"){t=""+t}if(r.isArray(t)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(e,t,n);var a=this._multiPartFooter();o(i);o(t);o(a);this._trackLength(i,t,n)};FormData.prototype._trackLength=function(e,t,n){var s=0;if(n.knownLength!=null){s+=+n.knownLength}else if(Buffer.isBuffer(t)){s=t.length}else if(typeof t==="string"){s=Buffer.byteLength(t)}this._valueLength+=s;this._overheadLength+=Buffer.byteLength(e)+FormData.LINE_BREAK.length;if(!t||!t.path&&!(t.readable&&t.hasOwnProperty("httpVersion"))&&!(t instanceof l)){return}if(!n.knownLength){this._valuesToMeasure.push(t)}};FormData.prototype._lengthRetriever=function(e,t){if(e.hasOwnProperty("fd")){if(e.end!=undefined&&e.end!=Infinity&&e.start!=undefined){t(null,e.end+1-(e.start?e.start:0))}else{u.stat(e.path,(function(n,s){var r;if(n){t(n);return}r=s.size-(e.start?e.start:0);t(null,r)}))}}else if(e.hasOwnProperty("httpVersion")){t(null,+e.headers["content-length"])}else if(e.hasOwnProperty("httpModule")){e.on("response",(function(n){e.pause();t(null,+n.headers["content-length"])}));e.resume()}else{t("Unknown stream")}};FormData.prototype._multiPartHeader=function(e,t,n){if(typeof n.header=="string"){return n.header}var s=this._getContentDisposition(t,n);var r=this._getContentType(t,n);var o="";var i={"Content-Disposition":["form-data",'name="'+e+'"'].concat(s||[]),"Content-Type":[].concat(r||[])};if(typeof n.header=="object"){f(i,n.header)}var a;for(var c in i){if(!i.hasOwnProperty(c))continue;a=i[c];if(a==null){continue}if(!Array.isArray(a)){a=[a]}if(a.length){o+=c+": "+a.join("; ")+FormData.LINE_BREAK}}return"--"+this.getBoundary()+FormData.LINE_BREAK+o+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(e,t){var n,s;if(typeof t.filepath==="string"){n=o.normalize(t.filepath).replace(/\\/g,"/")}else if(t.filename||e.name||e.path){n=o.basename(t.filename||e.name||e.path)}else if(e.readable&&e.hasOwnProperty("httpVersion")){n=o.basename(e.client._httpMessage.path||"")}if(n){s='filename="'+n+'"'}return s};FormData.prototype._getContentType=function(e,t){var n=t.contentType;if(!n&&e.name){n=p.lookup(e.name)}if(!n&&e.path){n=p.lookup(e.path)}if(!n&&e.readable&&e.hasOwnProperty("httpVersion")){n=e.headers["content-type"]}if(!n&&(t.filepath||t.filename)){n=p.lookup(t.filepath||t.filename)}if(!n&&typeof e=="object"){n=FormData.DEFAULT_CONTENT_TYPE}return n};FormData.prototype._multiPartFooter=function(){return function(e){var t=FormData.LINE_BREAK;var n=this._streams.length===0;if(n){t+=this._lastBoundary()}e(t)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(e){var t;var n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e){if(e.hasOwnProperty(t)){n[t.toLowerCase()]=e[t]}}return n};FormData.prototype.setBoundary=function(e){this._boundary=e};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype.getBuffer=function(){var e=new Buffer.alloc(0);var t=this.getBoundary();for(var n=0,s=this._streams.length;n<s;n++){if(typeof this._streams[n]!=="function"){if(Buffer.isBuffer(this._streams[n])){e=Buffer.concat([e,this._streams[n]])}else{e=Buffer.concat([e,Buffer.from(this._streams[n])])}if(typeof this._streams[n]!=="string"||this._streams[n].substring(2,t.length+2)!==t){e=Buffer.concat([e,Buffer.from(FormData.LINE_BREAK)])}}}return Buffer.concat([e,Buffer.from(this._lastBoundary())])};FormData.prototype._generateBoundary=function(){var e="--------------------------";for(var t=0;t<24;t++){e+=Math.floor(Math.random()*10).toString(16)}this._boundary=e};FormData.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;if(this._streams.length){e+=this._lastBoundary().length}if(!this.hasKnownLength()){this._error(new Error("Cannot calculate proper length in synchronous way."))}return e};FormData.prototype.hasKnownLength=function(){var e=true;if(this._valuesToMeasure.length){e=false}return e};FormData.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length){t+=this._lastBoundary().length}if(!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}d.parallel(this._valuesToMeasure,this._lengthRetriever,(function(n,s){if(n){e(n);return}s.forEach((function(e){t+=e}));e(null,t)}))};FormData.prototype.submit=function(e,t){var n,s,r={method:"post"};if(typeof e=="string"){e=c(e);s=f({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)}else{s=f(e,r);if(!s.port){s.port=s.protocol=="https:"?443:80}}s.headers=this.getHeaders(e.headers);if(s.protocol=="https:"){n=a.request(s)}else{n=i.request(s)}this.getLength(function(e,s){if(e&&e!=="Unknown stream"){this._error(e);return}if(s){n.setHeader("Content-Length",s)}this.pipe(n);if(t){var r;var callback=function(e,s){n.removeListener("error",callback);n.removeListener("response",r);return t.call(this,e,s)};r=callback.bind(this,null);n.on("error",callback);n.on("response",r)}}.bind(this));return n};FormData.prototype._error=function(e){if(!this.error){this.error=e;this.pause();this.emit("error",e)}};FormData.prototype.toString=function(){return"[object FormData]"}},7142:e=>{e.exports=function(e,t){Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]}));return e}},1621:e=>{e.exports=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":e.length===1?"-":"--";const s=t.indexOf(n+e);const r=t.indexOf("--");return s!==-1&&(r===-1?true:s<r)}},3734:function(e,t,n){var s=this&&this.__awaiter||function(e,t,n,s){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const o=r(n(1808));const i=r(n(4404));const a=r(n(7310));const c=r(n(9491));const u=r(n(8237));const l=n(9690);const p=r(n(595));const d=u.default("https-proxy-agent:agent");class HttpsProxyAgent extends l.Agent{constructor(e){let t;if(typeof e==="string"){t=a.default.parse(e)}else{t=e}if(!t){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}d("creating new HttpsProxyAgent instance: %o",t);super(t);const n=Object.assign({},t);this.secureProxy=t.secureProxy||isHTTPS(n.protocol);n.host=n.hostname||n.host;if(typeof n.port==="string"){n.port=parseInt(n.port,10)}if(!n.port&&n.host){n.port=this.secureProxy?443:80}if(this.secureProxy&&!("ALPNProtocols"in n)){n.ALPNProtocols=["http 1.1"]}if(n.host&&n.path){delete n.path;delete n.pathname}this.proxy=n}callback(e,t){return s(this,void 0,void 0,(function*(){const{proxy:n,secureProxy:s}=this;let r;if(s){d("Creating `tls.Socket`: %o",n);r=i.default.connect(n)}else{d("Creating `net.Socket`: %o",n);r=o.default.connect(n)}const a=Object.assign({},n.headers);const u=`${t.host}:${t.port}`;let l=`CONNECT ${u} HTTP/1.1\r\n`;if(n.auth){a["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`}let{host:f,port:m,secureEndpoint:h}=t;if(!isDefaultPort(m,h)){f+=`:${m}`}a.Host=f;a.Connection="close";for(const e of Object.keys(a)){l+=`${e}: ${a[e]}\r\n`}const g=p.default(r);r.write(`${l}\r\n`);const{statusCode:_,buffered:v}=yield g;if(_===200){e.once("socket",resume);if(t.secureEndpoint){d("Upgrading socket connection to TLS");const e=t.servername||t.host;return i.default.connect(Object.assign(Object.assign({},omit(t,"host","hostname","path","port")),{socket:r,servername:e}))}return r}r.destroy();const b=new o.default.Socket({writable:false});b.readable=true;e.once("socket",(e=>{d("replaying proxy buffer for failed request");c.default(e.listenerCount("data")>0);e.push(v);e.push(null)}));return b}))}}t["default"]=HttpsProxyAgent;function resume(e){e.resume()}function isDefaultPort(e,t){return Boolean(!t&&e===80||t&&e===443)}function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}function omit(e,...t){const n={};let s;for(s in e){if(!t.includes(s)){n[s]=e[s]}}return n}},7219:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=s(n(3734));function createHttpsProxyAgent(e){return new r.default(e)}(function(e){e.HttpsProxyAgent=r.default;e.prototype=r.default.prototype})(createHttpsProxyAgent||(createHttpsProxyAgent={}));e.exports=createHttpsProxyAgent},595:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const r=s(n(8237));const o=r.default("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,n)=>{let s=0;const r=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose);e.removeListener("readable",read)}function onclose(e){o("onclose had error %o",e)}function onend(){o("onend")}function onerror(e){cleanup();o("onerror %o",e);n(e)}function ondata(e){r.push(e);s+=e.length;const n=Buffer.concat(r,s);const i=n.indexOf("\r\n\r\n");if(i===-1){o("have not received end of HTTP headers yet...");read();return}const a=n.toString("ascii",0,n.indexOf("\r\n"));const c=+a.split(" ")[1];o("got proxy server response: %o",a);t({statusCode:c,buffered:n})}e.on("error",onerror);e.on("close",onclose);e.on("end",onend);read()}))}t["default"]=parseProxyResponse},8424:function(e,t){(function(e,n){const s=true?t:0;n(s);if(typeof define=="function"&&define.amd){define("lru",s)}})(this,(function(e){const t=Symbol("newer");const n=Symbol("older");function LRUMap(e,t){if(typeof e!=="number"){t=e;e=0}this.size=0;this.limit=e;this.oldest=this.newest=undefined;this._keymap=new Map;if(t){this.assign(t);if(e<1){this.limit=this.size}}}e.LRUMap=LRUMap;function Entry(e,s){this.key=e;this.value=s;this[t]=undefined;this[n]=undefined}LRUMap.prototype._markEntryAsUsed=function(e){if(e===this.newest){return}if(e[t]){if(e===this.oldest){this.oldest=e[t]}e[t][n]=e[n]}if(e[n]){e[n][t]=e[t]}e[t]=undefined;e[n]=this.newest;if(this.newest){this.newest[t]=e}this.newest=e};LRUMap.prototype.assign=function(e){let s,r=this.limit||Number.MAX_VALUE;this._keymap.clear();let o=e[Symbol.iterator]();for(let e=o.next();!e.done;e=o.next()){let o=new Entry(e.value[0],e.value[1]);this._keymap.set(o.key,o);if(!s){this.oldest=o}else{s[t]=o;o[n]=s}s=o;if(r--==0){throw new Error("overflow")}}this.newest=s;this.size=this._keymap.size};LRUMap.prototype.get=function(e){var t=this._keymap.get(e);if(!t)return;this._markEntryAsUsed(t);return t.value};LRUMap.prototype.set=function(e,s){var r=this._keymap.get(e);if(r){r.value=s;this._markEntryAsUsed(r);return this}this._keymap.set(e,r=new Entry(e,s));if(this.newest){this.newest[t]=r;r[n]=this.newest}else{this.oldest=r}this.newest=r;++this.size;if(this.size>this.limit){this.shift()}return this};LRUMap.prototype.shift=function(){var e=this.oldest;if(e){if(this.oldest[t]){this.oldest=this.oldest[t];this.oldest[n]=undefined}else{this.oldest=undefined;this.newest=undefined}e[t]=e[n]=undefined;this._keymap.delete(e.key);--this.size;return[e.key,e.value]}};LRUMap.prototype.find=function(e){let t=this._keymap.get(e);return t?t.value:undefined};LRUMap.prototype.has=function(e){return this._keymap.has(e)};LRUMap.prototype["delete"]=function(e){var s=this._keymap.get(e);if(!s)return;this._keymap.delete(s.key);if(s[t]&&s[n]){s[n][t]=s[t];s[t][n]=s[n]}else if(s[t]){s[t][n]=undefined;this.oldest=s[t]}else if(s[n]){s[n][t]=undefined;this.newest=s[n]}else{this.oldest=this.newest=undefined}this.size--;return s.value};LRUMap.prototype.clear=function(){this.oldest=this.newest=undefined;this.size=0;this._keymap.clear()};function EntryIterator(e){this.entry=e}EntryIterator.prototype[Symbol.iterator]=function(){return this};EntryIterator.prototype.next=function(){let e=this.entry;if(e){this.entry=e[t];return{done:false,value:[e.key,e.value]}}else{return{done:true,value:undefined}}};function KeyIterator(e){this.entry=e}KeyIterator.prototype[Symbol.iterator]=function(){return this};KeyIterator.prototype.next=function(){let e=this.entry;if(e){this.entry=e[t];return{done:false,value:e.key}}else{return{done:true,value:undefined}}};function ValueIterator(e){this.entry=e}ValueIterator.prototype[Symbol.iterator]=function(){return this};ValueIterator.prototype.next=function(){let e=this.entry;if(e){this.entry=e[t];return{done:false,value:e.value}}else{return{done:true,value:undefined}}};LRUMap.prototype.keys=function(){return new KeyIterator(this.oldest)};LRUMap.prototype.values=function(){return new ValueIterator(this.oldest)};LRUMap.prototype.entries=function(){return this};LRUMap.prototype[Symbol.iterator]=function(){return new EntryIterator(this.oldest)};LRUMap.prototype.forEach=function(e,n){if(typeof n!=="object"){n=this}let s=this.oldest;while(s){e.call(n,s.value,s.key,this);s=s[t]}};LRUMap.prototype.toJSON=function(){var e=new Array(this.size),n=0,s=this.oldest;while(s){e[n++]={key:s.key,value:s.value};s=s[t]}return e};LRUMap.prototype.toString=function(){var e="",n=this.oldest;while(n){e+=String(n.key)+":"+n.value;n=n[t];if(n){e+=" < "}}return e}}))},7426:(e,t,n)=>{
|
|
4
|
+
* @description Recursive object extending
|
|
5
|
+
* @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
|
|
6
|
+
* @license MIT
|
|
7
|
+
*
|
|
8
|
+
* The MIT License (MIT)
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2013-2018 Viacheslav Lotsmanov
|
|
11
|
+
*
|
|
12
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
13
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
14
|
+
* the Software without restriction, including without limitation the rights to
|
|
15
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
16
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
17
|
+
* subject to the following conditions:
|
|
18
|
+
*
|
|
19
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
* copies or substantial portions of the Software.
|
|
21
|
+
*
|
|
22
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
24
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
25
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
26
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
27
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
|
+
*/function isSpecificValue(t){return t instanceof Buffer||t instanceof Date||t instanceof RegExp?true:false}function cloneSpecificValue(t){if(t instanceof Buffer){var r=Buffer.alloc?Buffer.alloc(t.length):new Buffer(t.length);t.copy(r);return r}else if(t instanceof Date){return new Date(t.getTime())}else if(t instanceof RegExp){return new RegExp(t)}else{throw new Error("Unexpected situation")}}function deepCloneArray(t){var i=[];t.forEach((function(t,o){if(typeof t==="object"&&t!==null){if(Array.isArray(t)){i[o]=deepCloneArray(t)}else if(isSpecificValue(t)){i[o]=cloneSpecificValue(t)}else{i[o]=r({},t)}}else{i[o]=t}}));return i}function safeGetProperty(t,r){return r==="__proto__"?undefined:t[r]}var r=t.exports=function(){if(arguments.length<1||typeof arguments[0]!=="object"){return false}if(arguments.length<2){return arguments[0]}var t=arguments[0];var i=Array.prototype.slice.call(arguments,1);var o,a,c;i.forEach((function(i){if(typeof i!=="object"||i===null||Array.isArray(i)){return}Object.keys(i).forEach((function(c){a=safeGetProperty(t,c);o=safeGetProperty(i,c);if(o===t){return}else if(typeof o!=="object"||o===null){t[c]=o;return}else if(Array.isArray(o)){t[c]=deepCloneArray(o);return}else if(isSpecificValue(o)){t[c]=cloneSpecificValue(o);return}else if(typeof a!=="object"||a===null||Array.isArray(a)){t[c]=r({},o);return}else{t[c]=r(a,o);return}}))}));return t}},5546:t=>{"use strict";t.exports=function equal(t,r){if(t===r)return true;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return false;var i,o,a;if(Array.isArray(t)){i=t.length;if(i!=r.length)return false;for(o=i;o--!==0;)if(!equal(t[o],r[o]))return false;return true}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();a=Object.keys(t);i=a.length;if(i!==Object.keys(r).length)return false;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return false;for(o=i;o--!==0;){var c=a[o];if(!equal(t[c],r[c]))return false}return true}return t!==t&&r!==r}},2584:(t,r,i)=>{"use strict";var o=i(1753);var a=i(6928).posix.dirname;var c=i(857).platform()==="win32";var l="/";var u=/\\/g;var h=/[\{\[].*[\}\]]$/;var d=/(^|[^\\])([\{\[]|\([^\)]+$)/;var p=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function globParent(t,r){var i=Object.assign({flipBackslashes:true},r);if(i.flipBackslashes&&c&&t.indexOf(l)<0){t=t.replace(u,l)}if(h.test(t)){t+=l}t+="a";do{t=a(t)}while(o(t)||d.test(t));return t.replace(p,"$1")}},484:(t,r,i)=>{"use strict";const o=i(2123);const a=i(5649);const c=i(613);const l=i(1850);const u=i(4763);const h=i(1062);async function FastGlob(t,r){assertPatternsInput(t);const i=getWorks(t,a.default,r);const o=await Promise.all(i);return h.array.flatten(o)}(function(t){t.glob=t;t.globSync=sync;t.globStream=stream;t.async=t;function sync(t,r){assertPatternsInput(t);const i=getWorks(t,l.default,r);return h.array.flatten(i)}t.sync=sync;function stream(t,r){assertPatternsInput(t);const i=getWorks(t,c.default,r);return h.stream.merge(i)}t.stream=stream;function generateTasks(t,r){assertPatternsInput(t);const i=[].concat(t);const a=new u.default(r);return o.generate(i,a)}t.generateTasks=generateTasks;function isDynamicPattern(t,r){assertPatternsInput(t);const i=new u.default(r);return h.pattern.isDynamicPattern(t,i)}t.isDynamicPattern=isDynamicPattern;function escapePath(t){assertPatternsInput(t);return h.path.escape(t)}t.escapePath=escapePath;function convertPathToPattern(t){assertPatternsInput(t);return h.path.convertPathToPattern(t)}t.convertPathToPattern=convertPathToPattern;let r;(function(t){function escapePath(t){assertPatternsInput(t);return h.path.escapePosixPath(t)}t.escapePath=escapePath;function convertPathToPattern(t){assertPatternsInput(t);return h.path.convertPosixPathToPattern(t)}t.convertPathToPattern=convertPathToPattern})(r=t.posix||(t.posix={}));let i;(function(t){function escapePath(t){assertPatternsInput(t);return h.path.escapeWindowsPath(t)}t.escapePath=escapePath;function convertPathToPattern(t){assertPatternsInput(t);return h.path.convertWindowsPathToPattern(t)}t.convertPathToPattern=convertPathToPattern})(i=t.win32||(t.win32={}))})(FastGlob||(FastGlob={}));function getWorks(t,r,i){const a=[].concat(t);const c=new u.default(i);const l=o.generate(a,c);const h=new r(c);return l.map(h.read,h)}function assertPatternsInput(t){const r=[].concat(t);const i=r.every((t=>h.string.isString(t)&&!h.string.isEmpty(t)));if(!i){throw new TypeError("Patterns must be a string (non empty) or an array of strings")}}t.exports=FastGlob},2123:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.convertPatternGroupToTask=r.convertPatternGroupsToTasks=r.groupPatternsByBaseDirectory=r.getNegativePatternsAsPositive=r.getPositivePatterns=r.convertPatternsToTasks=r.generate=void 0;const o=i(1062);function generate(t,r){const i=processPatterns(t,r);const a=processPatterns(r.ignore,r);const c=getPositivePatterns(i);const l=getNegativePatternsAsPositive(i,a);const u=c.filter((t=>o.pattern.isStaticPattern(t,r)));const h=c.filter((t=>o.pattern.isDynamicPattern(t,r)));const d=convertPatternsToTasks(u,l,false);const p=convertPatternsToTasks(h,l,true);return d.concat(p)}r.generate=generate;function processPatterns(t,r){let i=t;if(r.braceExpansion){i=o.pattern.expandPatternsWithBraceExpansion(i)}if(r.baseNameMatch){i=i.map((t=>t.includes("/")?t:`**/${t}`))}return i.map((t=>o.pattern.removeDuplicateSlashes(t)))}function convertPatternsToTasks(t,r,i){const a=[];const c=o.pattern.getPatternsOutsideCurrentDirectory(t);const l=o.pattern.getPatternsInsideCurrentDirectory(t);const u=groupPatternsByBaseDirectory(c);const h=groupPatternsByBaseDirectory(l);a.push(...convertPatternGroupsToTasks(u,r,i));if("."in h){a.push(convertPatternGroupToTask(".",l,r,i))}else{a.push(...convertPatternGroupsToTasks(h,r,i))}return a}r.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(t){return o.pattern.getPositivePatterns(t)}r.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(t,r){const i=o.pattern.getNegativePatterns(t).concat(r);const a=i.map(o.pattern.convertToPositivePattern);return a}r.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(t){const r={};return t.reduce(((t,r)=>{const i=o.pattern.getBaseDirectory(r);if(i in t){t[i].push(r)}else{t[i]=[r]}return t}),r)}r.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(t,r,i){return Object.keys(t).map((o=>convertPatternGroupToTask(o,t[o],r,i)))}r.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(t,r,i,a){return{dynamic:a,positive:r,negative:i,base:t,patterns:[].concat(r,i.map(o.pattern.convertToNegativePattern))}}r.convertPatternGroupToTask=convertPatternGroupToTask},5649:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(9439);const a=i(5420);class ProviderAsync extends a.default{constructor(){super(...arguments);this._reader=new o.default(this._settings)}async read(t){const r=this._getRootDirectory(t);const i=this._getReaderOptions(t);const o=await this.api(r,t,i);return o.map((t=>i.transform(t)))}api(t,r,i){if(r.dynamic){return this._reader.dynamic(t,i)}return this._reader.static(r.patterns,i)}}r["default"]=ProviderAsync},6595:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(1062);const a=i(2600);class DeepFilter{constructor(t,r){this._settings=t;this._micromatchOptions=r}getFilter(t,r,i){const o=this._getMatcher(r);const a=this._getNegativePatternsRe(i);return r=>this._filter(t,r,o,a)}_getMatcher(t){return new a.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){const r=t.filter(o.pattern.isAffectDepthOfReadingPattern);return o.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,i,a){if(this._isSkippedByDeep(t,r.path)){return false}if(this._isSkippedSymbolicLink(r)){return false}const c=o.path.removeLeadingDotSegment(r.path);if(this._isSkippedByPositivePatterns(c,i)){return false}return this._isSkippedByNegativePatterns(c,a)}_isSkippedByDeep(t,r){if(this._settings.deep===Infinity){return false}return this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){const i=r.split("/").length;if(t===""){return i}const o=t.split("/").length;return i-o}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!o.pattern.matchAny(t,r)}}r["default"]=DeepFilter},4193:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(1062);class EntryFilter{constructor(t,r){this._settings=t;this._micromatchOptions=r;this.index=new Map}getFilter(t,r){const i=o.pattern.convertPatternsToRe(t,this._micromatchOptions);const a=o.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:true}));return t=>this._filter(t,i,a)}_filter(t,r,i){const a=o.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(a)){return false}if(this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)){return false}if(this._isSkippedByAbsoluteNegativePatterns(a,i)){return false}const c=t.dirent.isDirectory();const l=this._isMatchToPatterns(a,r,c)&&!this._isMatchToPatterns(a,i,c);if(this._settings.unique&&l){this._createIndexRecord(a)}return l}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,undefined)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute){return false}const i=o.path.makeAbsolute(this._settings.cwd,t);return o.pattern.matchAny(i,r)}_isMatchToPatterns(t,r,i){const a=o.pattern.matchAny(t,r);if(!a&&i){return o.pattern.matchAny(t+"/",r)}return a}}r["default"]=EntryFilter},4591:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(1062);class ErrorFilter{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return o.errno.isEnoentCodeError(t)||this._settings.suppressErrors}}r["default"]=ErrorFilter},1703:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(1062);class Matcher{constructor(t,r,i){this._patterns=t;this._settings=r;this._micromatchOptions=i;this._storage=[];this._fillStorage()}_fillStorage(){for(const t of this._patterns){const r=this._getPatternSegments(t);const i=this._splitSegmentsIntoSections(r);this._storage.push({complete:i.length<=1,pattern:t,segments:r,sections:i})}}_getPatternSegments(t){const r=o.pattern.getPatternParts(t,this._micromatchOptions);return r.map((t=>{const r=o.pattern.isDynamicPattern(t,this._settings);if(!r){return{dynamic:false,pattern:t}}return{dynamic:true,pattern:t,patternRe:o.pattern.makeRe(t,this._micromatchOptions)}}))}_splitSegmentsIntoSections(t){return o.array.splitWhen(t,(t=>t.dynamic&&o.pattern.hasGlobStar(t.pattern)))}}r["default"]=Matcher},2600:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(1703);class PartialMatcher extends o.default{match(t){const r=t.split("/");const i=r.length;const o=this._storage.filter((t=>!t.complete||t.segments.length>i));for(const t of o){const o=t.sections[0];if(!t.complete&&i>o.length){return true}const a=r.every(((r,i)=>{const o=t.segments[i];if(o.dynamic&&o.patternRe.test(r)){return true}if(!o.dynamic&&o.pattern===r){return true}return false}));if(a){return true}}return false}}r["default"]=PartialMatcher},5420:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6928);const a=i(6595);const c=i(4193);const l=i(4591);const u=i(3826);class Provider{constructor(t){this._settings=t;this.errorFilter=new l.default(this._settings);this.entryFilter=new c.default(this._settings,this._getMicromatchOptions());this.deepFilter=new a.default(this._settings,this._getMicromatchOptions());this.entryTransformer=new u.default(this._settings)}_getRootDirectory(t){return o.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){const r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:true,strictSlashes:false}}}r["default"]=Provider},613:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(2203);const a=i(9491);const c=i(5420);class ProviderStream extends c.default{constructor(){super(...arguments);this._reader=new a.default(this._settings)}read(t){const r=this._getRootDirectory(t);const i=this._getReaderOptions(t);const a=this.api(r,t,i);const c=new o.Readable({objectMode:true,read:()=>{}});a.once("error",(t=>c.emit("error",t))).on("data",(t=>c.emit("data",i.transform(t)))).once("end",(()=>c.emit("end")));c.once("close",(()=>a.destroy()));return c}api(t,r,i){if(r.dynamic){return this._reader.dynamic(t,i)}return this._reader.static(r.patterns,i)}}r["default"]=ProviderStream},1850:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(5908);const a=i(5420);class ProviderSync extends a.default{constructor(){super(...arguments);this._reader=new o.default(this._settings)}read(t){const r=this._getRootDirectory(t);const i=this._getReaderOptions(t);const o=this.api(r,t,i);return o.map(i.transform)}api(t,r,i){if(r.dynamic){return this._reader.dynamic(t,i)}return this._reader.static(r.patterns,i)}}r["default"]=ProviderSync},3826:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(1062);class EntryTransformer{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;if(this._settings.absolute){r=o.path.makeAbsolute(this._settings.cwd,r);r=o.path.unixify(r)}if(this._settings.markDirectories&&t.dirent.isDirectory()){r+="/"}if(!this._settings.objectMode){return r}return Object.assign(Object.assign({},t),{path:r})}}r["default"]=EntryTransformer},9439:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(3989);const a=i(9692);const c=i(9491);class ReaderAsync extends a.default{constructor(){super(...arguments);this._walkAsync=o.walk;this._readerStream=new c.default(this._settings)}dynamic(t,r){return new Promise(((i,o)=>{this._walkAsync(t,r,((t,r)=>{if(t===null){i(r)}else{o(t)}}))}))}async static(t,r){const i=[];const o=this._readerStream.static(t,r);return new Promise(((t,r)=>{o.once("error",r);o.on("data",(t=>i.push(t)));o.once("end",(()=>t(i)))}))}}r["default"]=ReaderAsync},9692:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6928);const a=i(794);const c=i(1062);class Reader{constructor(t){this._settings=t;this._fsStatSettings=new a.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return o.resolve(this._settings.cwd,t)}_makeEntry(t,r){const i={name:r,path:r,dirent:c.fs.createDirentFromStats(r,t)};if(this._settings.stats){i.stats=t}return i}_isFatalError(t){return!c.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}}r["default"]=Reader},9491:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(2203);const a=i(794);const c=i(3989);const l=i(9692);class ReaderStream extends l.default{constructor(){super(...arguments);this._walkStream=c.walkStream;this._stat=a.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){const i=t.map(this._getFullEntryPath,this);const a=new o.PassThrough({objectMode:true});a._write=(o,c,l)=>this._getEntry(i[o],t[o],r).then((t=>{if(t!==null&&r.entryFilter(t)){a.push(t)}if(o===i.length-1){a.end()}l()})).catch(l);for(let t=0;t<i.length;t++){a.write(t)}return a}_getEntry(t,r,i){return this._getStat(t).then((t=>this._makeEntry(t,r))).catch((t=>{if(i.errorFilter(t)){return null}throw t}))}_getStat(t){return new Promise(((r,i)=>{this._stat(t,this._fsStatSettings,((t,o)=>t===null?r(o):i(t)))}))}}r["default"]=ReaderStream},5908:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(794);const a=i(3989);const c=i(9692);class ReaderSync extends c.default{constructor(){super(...arguments);this._walkSync=a.walkSync;this._statSync=o.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){const i=[];for(const o of t){const t=this._getFullEntryPath(o);const a=this._getEntry(t,o,r);if(a===null||!r.entryFilter(a)){continue}i.push(a)}return i}_getEntry(t,r,i){try{const i=this._getStat(t);return this._makeEntry(i,r)}catch(t){if(i.errorFilter(t)){return null}throw t}}_getStat(t){return this._statSync(t,this._fsStatSettings)}}r["default"]=ReaderSync},4763:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const o=i(9896);const a=i(857);const c=Math.max(a.cpus().length,1);r.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:o.lstat,lstatSync:o.lstatSync,stat:o.stat,statSync:o.statSync,readdir:o.readdir,readdirSync:o.readdirSync};class Settings{constructor(t={}){this._options=t;this.absolute=this._getValue(this._options.absolute,false);this.baseNameMatch=this._getValue(this._options.baseNameMatch,false);this.braceExpansion=this._getValue(this._options.braceExpansion,true);this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,true);this.concurrency=this._getValue(this._options.concurrency,c);this.cwd=this._getValue(this._options.cwd,process.cwd());this.deep=this._getValue(this._options.deep,Infinity);this.dot=this._getValue(this._options.dot,false);this.extglob=this._getValue(this._options.extglob,true);this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,true);this.fs=this._getFileSystemMethods(this._options.fs);this.globstar=this._getValue(this._options.globstar,true);this.ignore=this._getValue(this._options.ignore,[]);this.markDirectories=this._getValue(this._options.markDirectories,false);this.objectMode=this._getValue(this._options.objectMode,false);this.onlyDirectories=this._getValue(this._options.onlyDirectories,false);this.onlyFiles=this._getValue(this._options.onlyFiles,true);this.stats=this._getValue(this._options.stats,false);this.suppressErrors=this._getValue(this._options.suppressErrors,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,false);this.unique=this._getValue(this._options.unique,true);if(this.onlyDirectories){this.onlyFiles=false}if(this.stats){this.objectMode=true}this.ignore=[].concat(this.ignore)}_getValue(t,r){return t===undefined?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},r.DEFAULT_FILE_SYSTEM_ADAPTER),t)}}r["default"]=Settings},4811:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.splitWhen=r.flatten=void 0;function flatten(t){return t.reduce(((t,r)=>[].concat(t,r)),[])}r.flatten=flatten;function splitWhen(t,r){const i=[[]];let o=0;for(const a of t){if(r(a)){o++;i[o]=[]}else{i[o].push(a)}}return i}r.splitWhen=splitWhen},9738:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isEnoentCodeError=void 0;function isEnoentCodeError(t){return t.code==="ENOENT"}r.isEnoentCodeError=isEnoentCodeError},271:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createDirentFromStats=void 0;class DirentFromStats{constructor(t,r){this.name=t;this.isBlockDevice=r.isBlockDevice.bind(r);this.isCharacterDevice=r.isCharacterDevice.bind(r);this.isDirectory=r.isDirectory.bind(r);this.isFIFO=r.isFIFO.bind(r);this.isFile=r.isFile.bind(r);this.isSocket=r.isSocket.bind(r);this.isSymbolicLink=r.isSymbolicLink.bind(r)}}function createDirentFromStats(t,r){return new DirentFromStats(t,r)}r.createDirentFromStats=createDirentFromStats},1062:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.string=r.stream=r.pattern=r.path=r.fs=r.errno=r.array=void 0;const o=i(4811);r.array=o;const a=i(9738);r.errno=a;const c=i(271);r.fs=c;const l=i(9519);r.path=l;const u=i(7044);r.pattern=u;const h=i(3732);r.stream=h;const d=i(5589);r.string=d},9519:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.convertPosixPathToPattern=r.convertWindowsPathToPattern=r.convertPathToPattern=r.escapePosixPath=r.escapeWindowsPath=r.escape=r.removeLeadingDotSegment=r.makeAbsolute=r.unixify=void 0;const o=i(857);const a=i(6928);const c=o.platform()==="win32";const l=2;const u=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;const h=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g;const d=/^\\\\([.?])/;const p=/\\(?![!()+@[\]{}])/g;function unixify(t){return t.replace(/\\/g,"/")}r.unixify=unixify;function makeAbsolute(t,r){return a.resolve(t,r)}r.makeAbsolute=makeAbsolute;function removeLeadingDotSegment(t){if(t.charAt(0)==="."){const r=t.charAt(1);if(r==="/"||r==="\\"){return t.slice(l)}}return t}r.removeLeadingDotSegment=removeLeadingDotSegment;r.escape=c?escapeWindowsPath:escapePosixPath;function escapeWindowsPath(t){return t.replace(h,"\\$2")}r.escapeWindowsPath=escapeWindowsPath;function escapePosixPath(t){return t.replace(u,"\\$2")}r.escapePosixPath=escapePosixPath;r.convertPathToPattern=c?convertWindowsPathToPattern:convertPosixPathToPattern;function convertWindowsPathToPattern(t){return escapeWindowsPath(t).replace(d,"//$1").replace(p,"/")}r.convertWindowsPathToPattern=convertWindowsPathToPattern;function convertPosixPathToPattern(t){return escapePosixPath(t)}r.convertPosixPathToPattern=convertPosixPathToPattern},7044:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.removeDuplicateSlashes=r.matchAny=r.convertPatternsToRe=r.makeRe=r.getPatternParts=r.expandBraceExpansion=r.expandPatternsWithBraceExpansion=r.isAffectDepthOfReadingPattern=r.endsWithSlashGlobStar=r.hasGlobStar=r.getBaseDirectory=r.isPatternRelatedToParentDirectory=r.getPatternsOutsideCurrentDirectory=r.getPatternsInsideCurrentDirectory=r.getPositivePatterns=r.getNegativePatterns=r.isPositivePattern=r.isNegativePattern=r.convertToNegativePattern=r.convertToPositivePattern=r.isDynamicPattern=r.isStaticPattern=void 0;const o=i(6928);const a=i(2584);const c=i(7805);const l="**";const u="\\";const h=/[*?]|^!/;const d=/\[[^[]*]/;const p=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;const m=/[!*+?@]\([^(]*\)/;const g=/,|\.\./;const y=/(?!^)\/{2,}/g;function isStaticPattern(t,r={}){return!isDynamicPattern(t,r)}r.isStaticPattern=isStaticPattern;function isDynamicPattern(t,r={}){if(t===""){return false}if(r.caseSensitiveMatch===false||t.includes(u)){return true}if(h.test(t)||d.test(t)||p.test(t)){return true}if(r.extglob!==false&&m.test(t)){return true}if(r.braceExpansion!==false&&hasBraceExpansion(t)){return true}return false}r.isDynamicPattern=isDynamicPattern;function hasBraceExpansion(t){const r=t.indexOf("{");if(r===-1){return false}const i=t.indexOf("}",r+1);if(i===-1){return false}const o=t.slice(r,i);return g.test(o)}function convertToPositivePattern(t){return isNegativePattern(t)?t.slice(1):t}r.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(t){return"!"+t}r.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(t){return t.startsWith("!")&&t[1]!=="("}r.isNegativePattern=isNegativePattern;function isPositivePattern(t){return!isNegativePattern(t)}r.isPositivePattern=isPositivePattern;function getNegativePatterns(t){return t.filter(isNegativePattern)}r.getNegativePatterns=getNegativePatterns;function getPositivePatterns(t){return t.filter(isPositivePattern)}r.getPositivePatterns=getPositivePatterns;function getPatternsInsideCurrentDirectory(t){return t.filter((t=>!isPatternRelatedToParentDirectory(t)))}r.getPatternsInsideCurrentDirectory=getPatternsInsideCurrentDirectory;function getPatternsOutsideCurrentDirectory(t){return t.filter(isPatternRelatedToParentDirectory)}r.getPatternsOutsideCurrentDirectory=getPatternsOutsideCurrentDirectory;function isPatternRelatedToParentDirectory(t){return t.startsWith("..")||t.startsWith("./..")}r.isPatternRelatedToParentDirectory=isPatternRelatedToParentDirectory;function getBaseDirectory(t){return a(t,{flipBackslashes:false})}r.getBaseDirectory=getBaseDirectory;function hasGlobStar(t){return t.includes(l)}r.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(t){return t.endsWith("/"+l)}r.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(t){const r=o.basename(t);return endsWithSlashGlobStar(t)||isStaticPattern(r)}r.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function expandPatternsWithBraceExpansion(t){return t.reduce(((t,r)=>t.concat(expandBraceExpansion(r))),[])}r.expandPatternsWithBraceExpansion=expandPatternsWithBraceExpansion;function expandBraceExpansion(t){const r=c.braces(t,{expand:true,nodupes:true,keepEscaping:true});r.sort(((t,r)=>t.length-r.length));return r.filter((t=>t!==""))}r.expandBraceExpansion=expandBraceExpansion;function getPatternParts(t,r){let{parts:i}=c.scan(t,Object.assign(Object.assign({},r),{parts:true}));if(i.length===0){i=[t]}if(i[0].startsWith("/")){i[0]=i[0].slice(1);i.unshift("")}return i}r.getPatternParts=getPatternParts;function makeRe(t,r){return c.makeRe(t,r)}r.makeRe=makeRe;function convertPatternsToRe(t,r){return t.map((t=>makeRe(t,r)))}r.convertPatternsToRe=convertPatternsToRe;function matchAny(t,r){return r.some((r=>r.test(t)))}r.matchAny=matchAny;function removeDuplicateSlashes(t){return t.replace(y,"/")}r.removeDuplicateSlashes=removeDuplicateSlashes},3732:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.merge=void 0;const o=i(6606);function merge(t){const r=o(t);t.forEach((t=>{t.once("error",(t=>r.emit("error",t)))}));r.once("close",(()=>propagateCloseEventToSources(t)));r.once("end",(()=>propagateCloseEventToSources(t)));return r}r.merge=merge;function propagateCloseEventToSources(t){t.forEach((t=>t.emit("close")))}},5589:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isEmpty=r.isString=void 0;function isString(t){return typeof t==="string"}r.isString=isString;function isEmpty(t){return t===""}r.isEmpty=isEmpty},4898:(t,r,i)=>{"use strict";var o=i(4088);function fastqueue(t,r,i){if(typeof t==="function"){i=r;r=t;t=null}if(!(i>=1)){throw new Error("fastqueue concurrency must be equal to or greater than 1")}var a=o(Task);var c=null;var l=null;var u=0;var h=null;var d={push:push,drain:noop,saturated:noop,pause:pause,paused:false,get concurrency(){return i},set concurrency(t){if(!(t>=1)){throw new Error("fastqueue concurrency must be equal to or greater than 1")}i=t;if(d.paused)return;for(;c&&u<i;){u++;release()}},running:running,resume:resume,idle:idle,length:length,getQueue:getQueue,unshift:unshift,empty:noop,kill:kill,killAndDrain:killAndDrain,error:error};return d;function running(){return u}function pause(){d.paused=true}function length(){var t=c;var r=0;while(t){t=t.next;r++}return r}function getQueue(){var t=c;var r=[];while(t){r.push(t.value);t=t.next}return r}function resume(){if(!d.paused)return;d.paused=false;if(c===null){u++;release();return}for(;c&&u<i;){u++;release()}}function idle(){return u===0&&d.length()===0}function push(o,p){var m=a.get();m.context=t;m.release=release;m.value=o;m.callback=p||noop;m.errorHandler=h;if(u>=i||d.paused){if(l){l.next=m;l=m}else{c=m;l=m;d.saturated()}}else{u++;r.call(t,m.value,m.worked)}}function unshift(o,p){var m=a.get();m.context=t;m.release=release;m.value=o;m.callback=p||noop;m.errorHandler=h;if(u>=i||d.paused){if(c){m.next=c;c=m}else{c=m;l=m;d.saturated()}}else{u++;r.call(t,m.value,m.worked)}}function release(o){if(o){a.release(o)}var h=c;if(h&&u<=i){if(!d.paused){if(l===c){l=null}c=h.next;h.next=null;r.call(t,h.value,h.worked);if(l===null){d.empty()}}else{u--}}else if(--u===0){d.drain()}}function kill(){c=null;l=null;d.drain=noop}function killAndDrain(){c=null;l=null;d.drain();d.drain=noop}function error(t){h=t}}function noop(){}function Task(){this.value=null;this.callback=noop;this.next=null;this.release=noop;this.context=null;this.errorHandler=null;var t=this;this.worked=function worked(r,i){var o=t.callback;var a=t.errorHandler;var c=t.value;t.value=null;t.callback=noop;if(t.errorHandler){a(r,c)}o.call(t.context,r,i);t.release(t)}}function queueAsPromised(t,r,i){if(typeof t==="function"){i=r;r=t;t=null}function asyncWrapper(t,i){r.call(this,t).then((function(t){i(null,t)}),i)}var o=fastqueue(t,asyncWrapper,i);var a=o.push;var c=o.unshift;o.push=push;o.unshift=unshift;o.drained=drained;return o;function push(t){var r=new Promise((function(r,i){a(t,(function(t,o){if(t){i(t);return}r(o)}))}));r.catch(noop);return r}function unshift(t){var r=new Promise((function(r,i){c(t,(function(t,o){if(t){i(t);return}r(o)}))}));r.catch(noop);return r}function drained(){if(o.idle()){return new Promise((function(t){t()}))}var t=o.drain;var r=new Promise((function(r){o.drain=function(){t();r()}}));return r}}t.exports=fastqueue;t.exports.promise=queueAsPromised},9073:(t,r,i)=>{"use strict";
|
|
29
|
+
/*!
|
|
30
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*/const o=i(9023);const a=i(4395);const isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);const transform=t=>r=>t===true?Number(r):String(r);const isValidValue=t=>typeof t==="number"||typeof t==="string"&&t!=="";const isNumber=t=>Number.isInteger(+t);const zeros=t=>{let r=`${t}`;let i=-1;if(r[0]==="-")r=r.slice(1);if(r==="0")return false;while(r[++i]==="0");return i>0};const stringify=(t,r,i)=>{if(typeof t==="string"||typeof r==="string"){return true}return i.stringify===true};const pad=(t,r,i)=>{if(r>0){let i=t[0]==="-"?"-":"";if(i)t=t.slice(1);t=i+t.padStart(i?r-1:r,"0")}if(i===false){return String(t)}return t};const toMaxLen=(t,r)=>{let i=t[0]==="-"?"-":"";if(i){t=t.slice(1);r--}while(t.length<r)t="0"+t;return i?"-"+t:t};const toSequence=(t,r,i)=>{t.negatives.sort(((t,r)=>t<r?-1:t>r?1:0));t.positives.sort(((t,r)=>t<r?-1:t>r?1:0));let o=r.capture?"":"?:";let a="";let c="";let l;if(t.positives.length){a=t.positives.map((t=>toMaxLen(String(t),i))).join("|")}if(t.negatives.length){c=`-(${o}${t.negatives.map((t=>toMaxLen(String(t),i))).join("|")})`}if(a&&c){l=`${a}|${c}`}else{l=a||c}if(r.wrap){return`(${o}${l})`}return l};const toRange=(t,r,i,o)=>{if(i){return a(t,r,{wrap:false,...o})}let c=String.fromCharCode(t);if(t===r)return c;let l=String.fromCharCode(r);return`[${c}-${l}]`};const toRegex=(t,r,i)=>{if(Array.isArray(t)){let r=i.wrap===true;let o=i.capture?"":"?:";return r?`(${o}${t.join("|")})`:t.join("|")}return a(t,r,i)};const rangeError=(...t)=>new RangeError("Invalid range arguments: "+o.inspect(...t));const invalidRange=(t,r,i)=>{if(i.strictRanges===true)throw rangeError([t,r]);return[]};const invalidStep=(t,r)=>{if(r.strictRanges===true){throw new TypeError(`Expected step "${t}" to be a number`)}return[]};const fillNumbers=(t,r,i=1,o={})=>{let a=Number(t);let c=Number(r);if(!Number.isInteger(a)||!Number.isInteger(c)){if(o.strictRanges===true)throw rangeError([t,r]);return[]}if(a===0)a=0;if(c===0)c=0;let l=a>c;let u=String(t);let h=String(r);let d=String(i);i=Math.max(Math.abs(i),1);let p=zeros(u)||zeros(h)||zeros(d);let m=p?Math.max(u.length,h.length,d.length):0;let g=p===false&&stringify(t,r,o)===false;let y=o.transform||transform(g);if(o.toRegex&&i===1){return toRange(toMaxLen(t,m),toMaxLen(r,m),true,o)}let v={negatives:[],positives:[]};let push=t=>v[t<0?"negatives":"positives"].push(Math.abs(t));let b=[];let w=0;while(l?a>=c:a<=c){if(o.toRegex===true&&i>1){push(a)}else{b.push(pad(y(a,w),m,g))}a=l?a-i:a+i;w++}if(o.toRegex===true){return i>1?toSequence(v,o,m):toRegex(b,null,{wrap:false,...o})}return b};const fillLetters=(t,r,i=1,o={})=>{if(!isNumber(t)&&t.length>1||!isNumber(r)&&r.length>1){return invalidRange(t,r,o)}let a=o.transform||(t=>String.fromCharCode(t));let c=`${t}`.charCodeAt(0);let l=`${r}`.charCodeAt(0);let u=c>l;let h=Math.min(c,l);let d=Math.max(c,l);if(o.toRegex&&i===1){return toRange(h,d,false,o)}let p=[];let m=0;while(u?c>=l:c<=l){p.push(a(c,m));c=u?c-i:c+i;m++}if(o.toRegex===true){return toRegex(p,null,{wrap:false,options:o})}return p};const fill=(t,r,i,o={})=>{if(r==null&&isValidValue(t)){return[t]}if(!isValidValue(t)||!isValidValue(r)){return invalidRange(t,r,o)}if(typeof i==="function"){return fill(t,r,1,{transform:i})}if(isObject(i)){return fill(t,r,0,i)}let a={...o};if(a.capture===true)a.wrap=true;i=i||a.step||1;if(!isNumber(i)){if(i!=null&&!isObject(i))return invalidStep(i,a);return fill(t,r,1,i)}if(isNumber(t)&&isNumber(r)){return fillNumbers(t,r,i,a)}return fillLetters(t,r,Math.max(Math.abs(i),1),a)};t.exports=fill},7280:t=>{
|
|
9
35
|
/*!
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* Copyright(c)
|
|
13
|
-
* MIT
|
|
36
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
39
|
+
* Licensed under the MIT License.
|
|
14
40
|
*/
|
|
15
|
-
|
|
41
|
+
t.exports=function isExtglob(t){if(typeof t!=="string"||t===""){return false}var r;while(r=/(\\).|([@?!+*]\(.*\))/g.exec(t)){if(r[2])return true;t=t.slice(r.index+r[0].length)}return false}},1753:(t,r,i)=>{
|
|
16
42
|
/*!
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* Copyright(c)
|
|
20
|
-
* MIT
|
|
43
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
44
|
+
*
|
|
45
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
46
|
+
* Released under the MIT License.
|
|
21
47
|
*/
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* @packageDocumentation
|
|
29
|
-
*/const p="0123456789abcdef";class UUID{constructor(e){this.bytes=e}static ofInner(e){if(e.length!==16){throw new TypeError("not 128-bit length")}else{return new UUID(e)}}static fromFieldsV7(e,t,n,s){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(s)||e<0||t<0||n<0||s<0||e>0xffffffffffff||t>4095||n>1073741823||s>4294967295){throw new RangeError("invalid field value")}const r=new Uint8Array(16);r[0]=e/2**40;r[1]=e/2**32;r[2]=e/2**24;r[3]=e/2**16;r[4]=e/2**8;r[5]=e;r[6]=112|t>>>8;r[7]=t;r[8]=128|n>>>24;r[9]=n>>>16;r[10]=n>>>8;r[11]=n;r[12]=s>>>24;r[13]=s>>>16;r[14]=s>>>8;r[15]=s;return new UUID(r)}static parse(e){let t=undefined;switch(e.length){case 32:t=/^[0-9a-f]{32}$/i.exec(e)?.[0];break;case 36:t=/^([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(e)?.slice(1,6).join("");break;case 38:t=/^\{([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})\}$/i.exec(e)?.slice(1,6).join("");break;case 45:t=/^urn:uuid:([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(e)?.slice(1,6).join("");break}if(t){const e=new Uint8Array(16);for(let n=0;n<16;n+=4){const s=parseInt(t.substring(2*n,2*n+8),16);e[n+0]=s>>>24;e[n+1]=s>>>16;e[n+2]=s>>>8;e[n+3]=s}return new UUID(e)}else{throw new SyntaxError("could not parse UUID string")}}toString(){let e="";for(let t=0;t<this.bytes.length;t++){e+=p.charAt(this.bytes[t]>>>4);e+=p.charAt(this.bytes[t]&15);if(t===3||t===5||t===7||t===9){e+="-"}}return e}toHex(){let e="";for(let t=0;t<this.bytes.length;t++){e+=p.charAt(this.bytes[t]>>>4);e+=p.charAt(this.bytes[t]&15)}return e}toJSON(){return this.toString()}getVariant(){const e=this.bytes[8]>>>4;if(e<0){throw new Error("unreachable")}else if(e<=7){return this.bytes.every((e=>e===0))?"NIL":"VAR_0"}else if(e<=11){return"VAR_10"}else if(e<=13){return"VAR_110"}else if(e<=15){return this.bytes.every((e=>e===255))?"MAX":"VAR_RESERVED"}else{throw new Error("unreachable")}}getVersion(){return this.getVariant()==="VAR_10"?this.bytes[6]>>>4:undefined}clone(){return new UUID(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(let t=0;t<16;t++){const n=this.bytes[t]-e.bytes[t];if(n!==0){return Math.sign(n)}}return 0}}class V7Generator{constructor(e){this.timestamp=0;this.counter=0;this.random=e??getDefaultRandom()}generate(){return this.generateOrResetCore(Date.now(),1e4)}generateOrAbort(){return this.generateOrAbortCore(Date.now(),1e4)}generateOrResetCore(e,t){let n=this.generateOrAbortCore(e,t);if(n===undefined){this.timestamp=0;n=this.generateOrAbortCore(e,t)}return n}generateOrAbortCore(e,t){const n=4398046511103;if(!Number.isInteger(e)||e<1||e>0xffffffffffff){throw new RangeError("`unixTsMs` must be a 48-bit positive integer")}else if(t<0||t>0xffffffffffff){throw new RangeError("`rollbackAllowance` out of reasonable range")}if(e>this.timestamp){this.timestamp=e;this.resetCounter()}else if(e+t>=this.timestamp){this.counter++;if(this.counter>n){this.timestamp++;this.resetCounter()}}else{return undefined}return UUID.fromFieldsV7(this.timestamp,Math.trunc(this.counter/2**30),this.counter&2**30-1,this.random.nextUint32())}resetCounter(){this.counter=this.random.nextUint32()*1024+(this.random.nextUint32()&1023)}generateV4(){const e=new Uint8Array(Uint32Array.of(this.random.nextUint32(),this.random.nextUint32(),this.random.nextUint32(),this.random.nextUint32()).buffer);e[6]=64|e[6]>>>4;e[8]=128|e[8]>>>2;return UUID.ofInner(e)}}const getDefaultRandom=()=>({nextUint32:()=>Math.trunc(Math.random()*65536)*65536+Math.trunc(Math.random()*65536)});let d;const uuidv7=()=>uuidv7obj().toString();const uuidv7obj=()=>(d||(d=new V7Generator)).generate();class PostHogFetchHttpError extends Error{constructor(e){super("HTTP error while fetching PostHog: "+e.status);this.response=e;this.name="PostHogFetchHttpError"}}class PostHogFetchNetworkError extends Error{constructor(e){super("Network error while fetching PostHog",e instanceof Error?{cause:e}:{});this.error=e;this.name="PostHogFetchNetworkError"}}function isPostHogFetchError(e){return typeof e==="object"&&(e instanceof PostHogFetchHttpError||e instanceof PostHogFetchNetworkError)}class PostHogCoreStateless{constructor(e,t){this.flushPromise=null;this.disableGeoip=true;this.disabled=false;this.defaultOptIn=true;this.pendingPromises={};this._events=new SimpleEventEmitter;this._isInitialized=false;assert(e,"You must pass your PostHog project's api key.");this.apiKey=e;this.host=removeTrailingSlash(t?.host||"https://app.posthog.com");this.flushAt=t?.flushAt?Math.max(t?.flushAt,1):20;this.maxBatchSize=Math.max(this.flushAt,t?.maxBatchSize??100);this.maxQueueSize=Math.max(this.flushAt,t?.maxQueueSize??1e3);this.flushInterval=t?.flushInterval??1e4;this.captureMode=t?.captureMode||"form";this.defaultOptIn=t?.defaultOptIn??true;this._retryOptions={retryCount:t?.fetchRetryCount??3,retryDelay:t?.fetchRetryDelay??3e3,retryCheck:isPostHogFetchError};this.requestTimeout=t?.requestTimeout??1e4;this.featureFlagsRequestTimeoutMs=t?.featureFlagsRequestTimeoutMs??3e3;this.disableGeoip=t?.disableGeoip??true;this.disabled=t?.disabled??false;this._initPromise=Promise.resolve();this._isInitialized=true}wrap(e){if(this.disabled){if(this.isDebug){console.warn("[PostHog] The client is disabled")}return}if(this._isInitialized){return e()}this._initPromise.then((()=>e()))}getCommonEventProperties(){return{$lib:this.getLibraryId(),$lib_version:this.getLibraryVersion()}}get optedOut(){return this.getPersistedProperty(i.OptedOut)??!this.defaultOptIn}async optIn(){this.wrap((()=>{this.setPersistedProperty(i.OptedOut,false)}))}async optOut(){this.wrap((()=>{this.setPersistedProperty(i.OptedOut,true)}))}on(e,t){return this._events.on(e,t)}debug(e=true){this.removeDebugCallback?.();if(e){const e=this.on("*",((e,t)=>console.log("PostHog Debug",e,t)));this.removeDebugCallback=()=>{e();this.removeDebugCallback=undefined}}}get isDebug(){return!!this.removeDebugCallback}buildPayload(e){return{distinct_id:e.distinct_id,event:e.event,properties:{...e.properties||{},...this.getCommonEventProperties()}}}addPendingPromise(e){const t=uuidv7();this.pendingPromises[t]=e;e.catch((()=>{})).finally((()=>{delete this.pendingPromises[t]}));return e}identifyStateless(e,t,n){this.wrap((()=>{const s={...this.buildPayload({distinct_id:e,event:"$identify",properties:t})};this.enqueue("identify",s,n)}))}captureStateless(e,t,n,s){this.wrap((()=>{const r=this.buildPayload({distinct_id:e,event:t,properties:n});this.enqueue("capture",r,s)}))}aliasStateless(e,t,n,s){this.wrap((()=>{const r=this.buildPayload({event:"$create_alias",distinct_id:t,properties:{...n||{},distinct_id:t,alias:e}});this.enqueue("alias",r,s)}))}groupIdentifyStateless(e,t,n,s,r,o){this.wrap((()=>{const i=this.buildPayload({distinct_id:r||`$${e}_${t}`,event:"$groupidentify",properties:{$group_type:e,$group_key:t,$group_set:n||{},...o||{}}});this.enqueue("capture",i,s)}))}async getDecide(e,t={},n={},s={},r={}){await this._initPromise;const o=`${this.host}/decide/?v=3`;const i={method:"POST",headers:{...this.getCustomHeaders(),"Content-Type":"application/json"},body:JSON.stringify({token:this.apiKey,distinct_id:e,groups:t,person_properties:n,group_properties:s,...r})};return this.fetchWithRetry(o,i,{retryCount:0},this.featureFlagsRequestTimeoutMs).then((e=>e.json())).catch((e=>{this._events.emit("error",e);return undefined}))}async getFeatureFlagStateless(e,t,n={},s={},r={},o){await this._initPromise;const i=await this.getFeatureFlagsStateless(t,n,s,r,o);if(!i){return undefined}let a=i[e];if(a===undefined){a=false}return a}async getFeatureFlagPayloadStateless(e,t,n={},s={},r={},o){await this._initPromise;const i=await this.getFeatureFlagPayloadsStateless(t,n,s,r,o);if(!i){return undefined}const a=i[e];if(a===undefined){return null}return a}async getFeatureFlagPayloadsStateless(e,t={},n={},s={},r){await this._initPromise;const o=(await this.getFeatureFlagsAndPayloadsStateless(e,t,n,s,r)).payloads;return o}_parsePayload(e){try{return JSON.parse(e)}catch{return e}}async getFeatureFlagsStateless(e,t={},n={},s={},r){await this._initPromise;return(await this.getFeatureFlagsAndPayloadsStateless(e,t,n,s,r)).flags}async getFeatureFlagsAndPayloadsStateless(e,t={},n={},s={},r){await this._initPromise;const o={};if(r??this.disableGeoip){o["geoip_disable"]=true}const i=await this.getDecide(e,t,n,s,o);const a=i?.featureFlags;const c=i?.featureFlagPayloads;let u=c;if(c){u=Object.fromEntries(Object.entries(c).map((([e,t])=>[e,this._parsePayload(t)])))}return{flags:a,payloads:u}}enqueue(e,t,n){this.wrap((()=>{if(this.optedOut){this._events.emit(e,`Library is disabled. Not sending event. To re-enable, call posthog.optIn()`);return}const s={...t,type:e,library:this.getLibraryId(),library_version:this.getLibraryVersion(),timestamp:n?.timestamp?n?.timestamp:currentISOTime(),uuid:n?.uuid?n.uuid:uuidv7()};const r=n?.disableGeoip??this.disableGeoip;if(r){if(!s.properties){s.properties={}}s["properties"]["$geoip_disable"]=true}if(s.distinctId){s.distinct_id=s.distinctId;delete s.distinctId}const o=this.getPersistedProperty(i.Queue)||[];if(o.length>=this.maxQueueSize){o.shift();console.info("Queue is full, the oldest event is dropped.")}o.push({message:s});this.setPersistedProperty(i.Queue,o);this._events.emit(e,s);if(o.length>=this.flushAt){this.flushBackground()}if(this.flushInterval&&!this._flushTimer){this._flushTimer=safeSetTimeout((()=>this.flushBackground()),this.flushInterval)}}))}clearFlushTimer(){if(this._flushTimer){clearTimeout(this._flushTimer);this._flushTimer=undefined}}flushBackground(){void this.flush().catch((()=>{}))}async flush(){if(!this.flushPromise){this.flushPromise=this._flush().finally((()=>{this.flushPromise=null}));this.addPendingPromise(this.flushPromise)}return this.flushPromise}getCustomHeaders(){const e=this.getCustomUserAgent();const t={};if(e&&e!==""){t["User-Agent"]=e}return t}async _flush(){this.clearFlushTimer();await this._initPromise;const e=this.getPersistedProperty(i.Queue)||[];if(!e.length){return[]}const t=e.slice(0,this.maxBatchSize);const n=t.map((e=>e.message));const persistQueueChange=()=>{const e=this.getPersistedProperty(i.Queue)||[];this.setPersistedProperty(i.Queue,e.slice(t.length))};const s={api_key:this.apiKey,batch:n,sent_at:currentISOTime()};const r=JSON.stringify(s);const o=this.captureMode==="form"?`${this.host}/e/?ip=1&_=${currentTimestamp()}&v=${this.getLibraryVersion()}`:`${this.host}/batch/`;const a=this.captureMode==="form"?{method:"POST",mode:"no-cors",credentials:"omit",headers:{...this.getCustomHeaders(),"Content-Type":"application/x-www-form-urlencoded"},body:`data=${encodeURIComponent(l.compressToBase64(r))}&compression=lz64`}:{method:"POST",headers:{...this.getCustomHeaders(),"Content-Type":"application/json"},body:r};try{await this.fetchWithRetry(o,a)}catch(e){if(!(e instanceof PostHogFetchNetworkError)){persistQueueChange()}this._events.emit("error",e);throw e}persistQueueChange();this._events.emit("flush",n);return n}async fetchWithRetry(e,t,n,s){var r;(r=AbortSignal).timeout??(r.timeout=function timeout(e){const t=new AbortController;setTimeout((()=>t.abort()),e);return t.signal});return await retriable((async()=>{let n=null;try{n=await this.fetch(e,{signal:AbortSignal.timeout(s??this.requestTimeout),...t})}catch(e){throw new PostHogFetchNetworkError(e)}const r=t.mode==="no-cors";if(!r&&(n.status<200||n.status>=400)){throw new PostHogFetchHttpError(n)}return n}),{...this._retryOptions,...n})}async shutdown(e=3e4){await this._initPromise;this.clearFlushTimer();try{await Promise.all(Object.values(this.pendingPromises));const t=Date.now()+e;while(true){const e=this.getPersistedProperty(i.Queue)||[];if(e.length===0){break}await this.flush();const n=Date.now();if(t<n){break}}}catch(e){if(!isPostHogFetchError(e)){throw e}console.error("Error while shutting down PostHog",e)}}}class PostHogMemoryStorage{constructor(){this._memoryStorage={}}getProperty(e){return this._memoryStorage[e]}setProperty(e,t){this._memoryStorage[e]=t!==null?t:undefined}}let f=typeof fetch!=="undefined"?fetch:typeof global.fetch!=="undefined"?global.fetch:undefined;if(!f){const e=n(8757);f=async(t,n)=>{const s=await e.request({url:t,headers:n.headers,method:n.method.toLowerCase(),data:n.body,signal:n.signal,validateStatus:()=>true});return{status:s.status,text:async()=>s.data,json:async()=>s.data}}}var m=f;const h=0x1000000000000000;class ClientError extends Error{constructor(e){super();Error.captureStackTrace(this,this.constructor);this.name="ClientError";this.message=e;Object.setPrototypeOf(this,ClientError.prototype)}}class InconclusiveMatchError extends Error{constructor(e){super(e);this.name=this.constructor.name;Error.captureStackTrace(this,this.constructor);Object.setPrototypeOf(this,InconclusiveMatchError.prototype)}}class FeatureFlagsPoller{constructor({pollingInterval:e,personalApiKey:t,projectApiKey:n,timeout:s,host:r,customHeaders:o,...i}){this.debugMode=false;this.pollingInterval=e;this.personalApiKey=t;this.featureFlags=[];this.featureFlagsByKey={};this.groupTypeMapping={};this.cohorts={};this.loadedSuccessfullyOnce=false;this.timeout=s;this.projectApiKey=n;this.host=r;this.poller=undefined;this.fetch=i.fetch||m;this.onError=i.onError;this.customHeaders=o;void this.loadFeatureFlags()}debug(e=true){this.debugMode=e}async getFeatureFlag(e,t,n={},s={},r={}){await this.loadFeatureFlags();let o=undefined;let i=undefined;if(!this.loadedSuccessfullyOnce){return o}for(const t of this.featureFlags){if(e===t.key){i=t;break}}if(i!==undefined){try{o=this.computeFlagLocally(i,t,n,s,r);if(this.debugMode){console.debug(`Successfully computed flag locally: ${e} -> ${o}`)}}catch(t){if(t instanceof InconclusiveMatchError){if(this.debugMode){console.debug(`InconclusiveMatchError when computing flag locally: ${e}: ${t}`)}}else if(t instanceof Error){this.onError?.(new Error(`Error computing flag locally: ${e}: ${t}`))}}}return o}async computeFeatureFlagPayloadLocally(e,t){await this.loadFeatureFlags();let n=undefined;if(!this.loadedSuccessfullyOnce){return undefined}if(typeof t=="boolean"){n=this.featureFlagsByKey?.[e]?.filters?.payloads?.[t.toString()]}else if(typeof t=="string"){n=this.featureFlagsByKey?.[e]?.filters?.payloads?.[t]}if(n===undefined||n===null){return null}try{return JSON.parse(n)}catch{return n}}async getAllFlagsAndPayloads(e,t={},n={},s={}){await this.loadFeatureFlags();const r={};const o={};let i=this.featureFlags.length==0;this.featureFlags.map((async a=>{try{const i=this.computeFlagLocally(a,e,t,n,s);r[a.key]=i;const c=await this.computeFeatureFlagPayloadLocally(a.key,i);if(c){o[a.key]=c}}catch(e){if(e instanceof InconclusiveMatchError);else if(e instanceof Error){this.onError?.(new Error(`Error computing flag locally: ${a.key}: ${e}`))}i=true}}));return{response:r,payloads:o,fallbackToDecide:i}}computeFlagLocally(e,t,n={},s={},r={}){if(e.ensure_experience_continuity){throw new InconclusiveMatchError("Flag has experience continuity enabled")}if(!e.active){return false}const o=e.filters||{};const i=o.aggregation_group_type_index;if(i!=undefined){const t=this.groupTypeMapping[String(i)];if(!t){if(this.debugMode){console.warn(`[FEATURE FLAGS] Unknown group type index ${i} for feature flag ${e.key}`)}throw new InconclusiveMatchError("Flag has unknown group type index")}if(!(t in n)){if(this.debugMode){console.warn(`[FEATURE FLAGS] Can't compute group feature flag: ${e.key} without group names passed in`)}return false}const s=r[t];return this.matchFeatureFlagProperties(e,n[t],s)}else{return this.matchFeatureFlagProperties(e,t,s)}}matchFeatureFlagProperties(e,t,n){const s=e.filters||{};const r=s.groups||[];let o=false;let i=undefined;const a=[...r].sort(((e,t)=>{const n=!!e.variant;const s=!!t.variant;if(n&&s){return 0}else if(n){return-1}else if(s){return 1}else{return 0}}));for(const r of a){try{if(this.isConditionMatch(e,t,r,n)){const n=r.variant;const o=s.multivariate?.variants||[];if(n&&o.some((e=>e.key===n))){i=n}else{i=this.getMatchingVariant(e,t)||true}break}}catch(e){if(e instanceof InconclusiveMatchError){o=true}else{throw e}}}if(i!==undefined){return i}else if(o){throw new InconclusiveMatchError("Can't determine if feature flag is enabled or not with given properties")}return false}isConditionMatch(e,t,n,s){const r=n.rollout_percentage;if((n.properties||[]).length>0){for(const e of n.properties){const t=e.type;let n=false;if(t==="cohort"){n=matchCohort(e,s,this.cohorts,this.debugMode)}else{n=matchProperty(e,s)}if(!n){return false}}if(r==undefined){return true}}if(r!=undefined&&_hash(e.key,t)>r/100){return false}return true}getMatchingVariant(e,t){const n=_hash(e.key,t,"variant");const s=this.variantLookupTable(e).find((e=>n>=e.valueMin&&n<e.valueMax));if(s){return s.key}return undefined}variantLookupTable(e){const t=[];let n=0;let s=0;const r=e.filters||{};const o=r.multivariate?.variants||[];o.forEach((e=>{s=n+e.rollout_percentage/100;t.push({valueMin:n,valueMax:s,key:e.key});n=s}));return t}async loadFeatureFlags(e=false){if(!this.loadedSuccessfullyOnce||e){await this._loadFeatureFlags()}}async _loadFeatureFlags(){if(this.poller){clearTimeout(this.poller);this.poller=undefined}this.poller=setTimeout((()=>this._loadFeatureFlags()),this.pollingInterval);try{const e=await this._requestFeatureFlagDefinitions();if(e&&e.status===401){throw new ClientError(`Your personalApiKey is invalid. Are you sure you're not using your Project API key? More information: https://posthog.com/docs/api/overview`)}if(e&&e.status!==200){return}const t=await e.json();if(!("flags"in t)){this.onError?.(new Error(`Invalid response when getting feature flags: ${JSON.stringify(t)}`))}this.featureFlags=t.flags||[];this.featureFlagsByKey=this.featureFlags.reduce(((e,t)=>(e[t.key]=t,e)),{});this.groupTypeMapping=t.group_type_mapping||{};this.cohorts=t.cohorts||[];this.loadedSuccessfullyOnce=true}catch(e){if(e instanceof ClientError){this.onError?.(e)}}}async _requestFeatureFlagDefinitions(){const e=`${this.host}/api/feature_flag/local_evaluation?token=${this.projectApiKey}&send_cohorts`;const t={method:"GET",headers:{...this.customHeaders,"Content-Type":"application/json",Authorization:`Bearer ${this.personalApiKey}`}};let n=null;if(this.timeout&&typeof this.timeout==="number"){const e=new AbortController;n=safeSetTimeout((()=>{e.abort()}),this.timeout);t.signal=e.signal}try{return await this.fetch(e,t)}finally{clearTimeout(n)}}stopPoller(){clearTimeout(this.poller)}}function _hash(e,t,n=""){const s=r.createHash();s.update(`${e}.${t}${n}`);return parseInt(s.digest("hex").slice(0,15),16)/h}function matchProperty(e,t){const n=e.key;const s=e.value;const r=e.operator||"exact";if(!(n in t)){throw new InconclusiveMatchError(`Property ${n} not found in propertyValues`)}else if(r==="is_not_set"){throw new InconclusiveMatchError(`Operator is_not_set is not supported`)}const o=t[n];function computeExactMatch(e,t){if(Array.isArray(e)){return e.map((e=>String(e).toLowerCase())).includes(String(t).toLowerCase())}return String(e).toLowerCase()===String(t).toLowerCase()}function compare(e,t,n){if(n==="gt"){return e>t}else if(n==="gte"){return e>=t}else if(n==="lt"){return e<t}else if(n==="lte"){return e<=t}else{throw new Error(`Invalid operator: ${n}`)}}switch(r){case"exact":return computeExactMatch(s,o);case"is_not":return!computeExactMatch(s,o);case"is_set":return n in t;case"icontains":return String(o).toLowerCase().includes(String(s).toLowerCase());case"not_icontains":return!String(o).toLowerCase().includes(String(s).toLowerCase());case"regex":return isValidRegex(String(s))&&String(o).match(String(s))!==null;case"not_regex":return isValidRegex(String(s))&&String(o).match(String(s))===null;case"gt":case"gte":case"lt":case"lte":{let e=typeof s==="number"?s:null;if(typeof s==="string"){try{e=parseFloat(s)}catch(e){}}if(e!=null&&o!=null){if(typeof o==="string"){return compare(o,String(s),r)}else{return compare(o,e,r)}}else{return compare(String(o),String(s),r)}}case"is_date_after":case"is_date_before":{let e=relativeDateParseForFeatureFlagMatching(String(s));if(e==null){e=convertToDateTime(s)}if(e==null){throw new InconclusiveMatchError(`Invalid date: ${s}`)}const t=convertToDateTime(o);if(["is_date_before"].includes(r)){return t<e}return t>e}default:throw new InconclusiveMatchError(`Unknown operator: ${r}`)}}function matchCohort(e,t,n,s=false){const r=String(e.value);if(!(r in n)){throw new InconclusiveMatchError("can't match cohort without a given cohort property value")}const o=n[r];return matchPropertyGroup(o,t,n,s)}function matchPropertyGroup(e,t,n,s=false){if(!e){return true}const r=e.type;const o=e.values;if(!o||o.length===0){return true}let i=false;if("values"in o[0]){for(const e of o){try{const o=matchPropertyGroup(e,t,n,s);if(r==="AND"){if(!o){return false}}else{if(o){return true}}}catch(t){if(t instanceof InconclusiveMatchError){if(s){console.debug(`Failed to compute property ${e} locally: ${t}`)}i=true}else{throw t}}}if(i){throw new InconclusiveMatchError("Can't match cohort without a given cohort property value")}return r==="AND"}else{for(const e of o){try{let o;if(e.type==="cohort"){o=matchCohort(e,t,n,s)}else{o=matchProperty(e,t)}const i=e.negation||false;if(r==="AND"){if(!o&&!i){return false}if(o&&i){return false}}else{if(o&&!i){return true}if(!o&&i){return true}}}catch(t){if(t instanceof InconclusiveMatchError){if(s){console.debug(`Failed to compute property ${e} locally: ${t}`)}i=true}else{throw t}}}if(i){throw new InconclusiveMatchError("can't match cohort without a given cohort property value")}return r==="AND"}}function isValidRegex(e){try{new RegExp(e);return true}catch(e){return false}}function convertToDateTime(e){if(e instanceof Date){return e}else if(typeof e==="string"||typeof e==="number"){const t=new Date(e);if(!isNaN(t.valueOf())){return t}throw new InconclusiveMatchError(`${e} is in an invalid date format`)}else{throw new InconclusiveMatchError(`The date provided ${e} must be a string, number, or date object`)}}function relativeDateParseForFeatureFlagMatching(e){const t=/^-?(?<number>[0-9]+)(?<interval>[a-z])$/;const n=e.match(t);const s=new Date((new Date).toISOString());if(n){if(!n.groups){return null}const e=parseInt(n.groups["number"]);if(e>=1e4){return null}const t=n.groups["interval"];if(t=="h"){s.setUTCHours(s.getUTCHours()-e)}else if(t=="d"){s.setUTCDate(s.getUTCDate()-e)}else if(t=="w"){s.setUTCDate(s.getUTCDate()-e*7)}else if(t=="m"){s.setUTCMonth(s.getUTCMonth()-e)}else if(t=="y"){s.setUTCFullYear(s.getUTCFullYear()-e)}else{return null}return s}else{return null}}const g=30*1e3;const _=50*1e3;class PostHog extends PostHogCoreStateless{constructor(e,t={}){t.captureMode=t?.captureMode||"json";super(e,t);this._memoryStorage=new PostHogMemoryStorage;this.options=t;if(t.personalApiKey){this.featureFlagsPoller=new FeatureFlagsPoller({pollingInterval:typeof t.featureFlagsPollingInterval==="number"?t.featureFlagsPollingInterval:g,personalApiKey:t.personalApiKey,projectApiKey:e,timeout:t.requestTimeout??1e4,host:this.host,fetch:t.fetch,onError:e=>{this._events.emit("error",e)},customHeaders:this.getCustomHeaders()})}this.distinctIdHasSentFlagCalls={};this.maxCacheSize=t.maxCacheSize||_}getPersistedProperty(e){return this._memoryStorage.getProperty(e)}setPersistedProperty(e,t){return this._memoryStorage.setProperty(e,t)}fetch(e,t){return this.options.fetch?this.options.fetch(e,t):m(e,t)}getLibraryId(){return"posthog-node"}getLibraryVersion(){return o}getCustomUserAgent(){return`${this.getLibraryId()}/${this.getLibraryVersion()}`}enable(){return super.optIn()}disable(){return super.optOut()}debug(e=true){super.debug(e);this.featureFlagsPoller?.debug(e)}capture({distinctId:e,event:t,properties:n,groups:s,sendFeatureFlags:r,timestamp:o,disableGeoip:i,uuid:a}){const _capture=n=>{super.captureStateless(e,t,n,{timestamp:o,disableGeoip:i,uuid:a})};const _getFlags=(e,t,n)=>super.getFeatureFlagsStateless(e,t,undefined,undefined,n);const c=Promise.resolve().then((async()=>{if(r){return await _getFlags(e,s,i)}if((this.featureFlagsPoller?.featureFlags?.length||0)>0){const t={};for(const[e,n]of Object.entries(s||{})){t[e]=String(n)}return await this.getAllFlags(e,{groups:t,disableGeoip:i,onlyEvaluateLocally:true})}return{}})).then((e=>{const t={};if(e){for(const[n,s]of Object.entries(e)){t[`$feature/${n}`]=s}}const n=Object.keys(e||{}).filter((t=>e?.[t]!==false));if(n.length>0){t["$active_feature_flags"]=n}return t})).catch((()=>({}))).then((e=>{_capture({...e,...n,$groups:s})}));this.addPendingPromise(c)}identify({distinctId:e,properties:t,disableGeoip:n}){const s=t?.$set||t;super.identifyStateless(e,{$set:s},{disableGeoip:n})}alias(e){super.aliasStateless(e.alias,e.distinctId,undefined,{disableGeoip:e.disableGeoip})}async getFeatureFlag(e,t,n){const{groups:s,disableGeoip:r}=n||{};let{onlyEvaluateLocally:o,sendFeatureFlagEvents:i,personProperties:a,groupProperties:c}=n||{};const u=this.addLocalPersonAndGroupProperties(t,s,a,c);a=u.allPersonProperties;c=u.allGroupProperties;if(o==undefined){o=false}if(i==undefined){i=true}let l=await(this.featureFlagsPoller?.getFeatureFlag(e,t,s,a,c));const p=l!==undefined;if(!p&&!o){l=await super.getFeatureFlagStateless(e,t,s,a,c,r)}const d=`${e}_${l}`;if(i&&(!(t in this.distinctIdHasSentFlagCalls)||!this.distinctIdHasSentFlagCalls[t].includes(d))){if(Object.keys(this.distinctIdHasSentFlagCalls).length>=this.maxCacheSize){this.distinctIdHasSentFlagCalls={}}if(Array.isArray(this.distinctIdHasSentFlagCalls[t])){this.distinctIdHasSentFlagCalls[t].push(d)}else{this.distinctIdHasSentFlagCalls[t]=[d]}this.capture({distinctId:t,event:"$feature_flag_called",properties:{$feature_flag:e,$feature_flag_response:l,locally_evaluated:p,[`$feature/${e}`]:l},groups:s,disableGeoip:r})}return l}async getFeatureFlagPayload(e,t,n,s){const{groups:r,disableGeoip:o}=s||{};let{onlyEvaluateLocally:i,sendFeatureFlagEvents:a,personProperties:c,groupProperties:u}=s||{};const l=this.addLocalPersonAndGroupProperties(t,r,c,u);c=l.allPersonProperties;u=l.allGroupProperties;let p=undefined;if(!n){n=await this.getFeatureFlag(e,t,{...s,onlyEvaluateLocally:true})}if(n){p=await(this.featureFlagsPoller?.computeFeatureFlagPayloadLocally(e,n))}if(i==undefined){i=false}if(a==undefined){a=true}if(i==undefined){i=false}const d=p!==undefined;if(!d&&!i){p=await super.getFeatureFlagPayloadStateless(e,t,r,c,u,o)}return p}async isFeatureEnabled(e,t,n){const s=await this.getFeatureFlag(e,t,n);if(s===undefined){return undefined}return!!s||false}async getAllFlags(e,t){const n=await this.getAllFlagsAndPayloads(e,t);return n.featureFlags}async getAllFlagsAndPayloads(e,t){const{groups:n,disableGeoip:s}=t||{};let{onlyEvaluateLocally:r,personProperties:o,groupProperties:i}=t||{};const a=this.addLocalPersonAndGroupProperties(e,n,o,i);o=a.allPersonProperties;i=a.allGroupProperties;if(r==undefined){r=false}const c=await(this.featureFlagsPoller?.getAllFlagsAndPayloads(e,n,o,i));let u={};let l={};let p=true;if(c){u=c.response;l=c.payloads;p=c.fallbackToDecide}if(p&&!r){const t=await super.getFeatureFlagsAndPayloadsStateless(e,n,o,i,s);u={...u,...t.flags||{}};l={...l,...t.payloads||{}}}return{featureFlags:u,featureFlagPayloads:l}}groupIdentify({groupType:e,groupKey:t,properties:n,distinctId:s,disableGeoip:r}){super.groupIdentifyStateless(e,t,n,{disableGeoip:r},s)}async reloadFeatureFlags(){await(this.featureFlagsPoller?.loadFeatureFlags(true))}async shutdown(e){this.featureFlagsPoller?.stopPoller();return super.shutdown(e)}addLocalPersonAndGroupProperties(e,t,n,s){const r={distinct_id:e,...n||{}};const o={};if(t){for(const e of Object.keys(t)){o[e]={$group_key:t[e],...s?.[e]||{}}}}return{allPersonProperties:r,allGroupProperties:o}}}class PostHogSentryIntegration{constructor(e,t,n,s){this.posthog=e;this.posthogHost=t;this.organization=n;this.prefix=s;this.name="posthog-node";this.posthogHost=e.options.host??"https://app.posthog.com"}setupOnce(e,t){e((e=>{if(e.exception?.values===undefined||e.exception.values.length===0){return e}if(!e.tags){e.tags={}}const n=t();const s=e.tags[PostHogSentryIntegration.POSTHOG_ID_TAG];if(s===undefined){return e}e.tags["PostHog Person URL"]=new URL(`/person/${s}`,this.posthogHost).toString();const r={$exception_message:e.exception.values[0]?.value,$exception_type:e.exception.values[0]?.type,$exception_personURL:e.tags["PostHog Person URL"],$sentry_event_id:e.event_id,$sentry_exception:e.exception,$sentry_exception_message:e.exception.values[0]?.value,$sentry_exception_type:e.exception.values[0]?.type,$sentry_tags:e.tags};const o=n.getClient()?.getDsn()?.projectId;if(this.organization!==undefined&&o!==undefined&&e.event_id!==undefined){r.$sentry_url=`${this.prefix??"https://sentry.io/organizations"}/${this.organization}/issues/?project=${o}&query=${e.event_id}`}this.posthog.capture({event:"$exception",distinctId:s,properties:r});return e}))}}PostHogSentryIntegration.POSTHOG_ID_TAG="posthog_distinct_id";t.AR=PostHog;s=PostHogSentryIntegration},3329:(e,t,n)=>{var s=n(7310).parse;var r={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};var o=String.prototype.endsWith||function(e){return e.length<=this.length&&this.indexOf(e,this.length-e.length)!==-1};function getProxyForUrl(e){var t=typeof e==="string"?s(e):e||{};var n=t.protocol;var o=t.host;var i=t.port;if(typeof o!=="string"||!o||typeof n!=="string"){return""}n=n.split(":",1)[0];o=o.replace(/:\d*$/,"");i=parseInt(i)||r[n]||0;if(!shouldProxy(o,i)){return""}var a=getEnv("npm_config_"+n+"_proxy")||getEnv(n+"_proxy")||getEnv("npm_config_proxy")||getEnv("all_proxy");if(a&&a.indexOf("://")===-1){a=n+"://"+a}return a}function shouldProxy(e,t){var n=(getEnv("npm_config_no_proxy")||getEnv("no_proxy")).toLowerCase();if(!n){return true}if(n==="*"){return false}return n.split(/[,\s]/).every((function(n){if(!n){return true}var s=n.match(/^(.+):(\d+)$/);var r=s?s[1]:n;var i=s?parseInt(s[2]):0;if(i&&i!==t){return true}if(!/^[.*]/.test(r)){return e!==r}if(r.charAt(0)==="*"){r=r.slice(1)}return!o.call(e,r)}))}function getEnv(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}t.getProxyForUrl=getProxyForUrl},7235:function(e){(function webpackUniversalModuleDefinition(t,n){if(true)e.exports=n();else{}})(typeof self!=="undefined"?self:this,(function(){return function(e){var t={};function __nested_webpack_require_570__(n){if(t[n]){return t[n].exports}var s=t[n]={i:n,l:false,exports:{}};e[n].call(s.exports,s,s.exports,__nested_webpack_require_570__);s.l=true;return s.exports}__nested_webpack_require_570__.m=e;__nested_webpack_require_570__.c=t;__nested_webpack_require_570__.d=function(e,t,n){if(!__nested_webpack_require_570__.o(e,t)){Object.defineProperty(e,t,{configurable:false,enumerable:true,get:n})}};__nested_webpack_require_570__.n=function(e){var t=e&&e.__esModule?function getDefault(){return e["default"]}:function getModuleExports(){return e};__nested_webpack_require_570__.d(t,"a",t);return t};__nested_webpack_require_570__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};__nested_webpack_require_570__.p="";return __nested_webpack_require_570__(__nested_webpack_require_570__.s=3)}([function(e,t,n){function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var s=n(5);var r=n(1),o=r.toHex,i=r.ceilHeapSize;var a=n(6);var padlen=function(e){for(e+=9;e%64>0;e+=1){}return e};var padZeroes=function(e,t){var n=new Uint8Array(e.buffer);var s=t%4,r=t-s;switch(s){case 0:n[r+3]=0;case 1:n[r+2]=0;case 2:n[r+1]=0;case 3:n[r+0]=0}for(var o=(t>>2)+1;o<e.length;o++){e[o]=0}};var padData=function(e,t,n){e[t>>2]|=128<<24-(t%4<<3);e[((t>>2)+2&~15)+14]=n/(1<<29)|0;e[((t>>2)+2&~15)+15]=n<<3};var getRawDigest=function(e,t){var n=new Int32Array(e,t+320,5);var s=new Int32Array(5);var r=new DataView(s.buffer);r.setInt32(0,n[0],false);r.setInt32(4,n[1],false);r.setInt32(8,n[2],false);r.setInt32(12,n[3],false);r.setInt32(16,n[4],false);return s};var c=function(){function Rusha(e){_classCallCheck(this,Rusha);e=e||64*1024;if(e%64>0){throw new Error("Chunk size must be a multiple of 128 bit")}this._offset=0;this._maxChunkLen=e;this._padMaxChunkLen=padlen(e);this._heap=new ArrayBuffer(i(this._padMaxChunkLen+320+20));this._h32=new Int32Array(this._heap);this._h8=new Int8Array(this._heap);this._core=new s({Int32Array:Int32Array},{},this._heap)}Rusha.prototype._initState=function _initState(e,t){this._offset=0;var n=new Int32Array(e,t+320,5);n[0]=1732584193;n[1]=-271733879;n[2]=-1732584194;n[3]=271733878;n[4]=-1009589776};Rusha.prototype._padChunk=function _padChunk(e,t){var n=padlen(e);var s=new Int32Array(this._heap,0,n>>2);padZeroes(s,e);padData(s,e,t);return n};Rusha.prototype._write=function _write(e,t,n,s){a(e,this._h8,this._h32,t,n,s||0)};Rusha.prototype._coreCall=function _coreCall(e,t,n,s,r){var o=n;this._write(e,t,n);if(r){o=this._padChunk(n,s)}this._core.hash(o,this._padMaxChunkLen)};Rusha.prototype.rawDigest=function rawDigest(e){var t=e.byteLength||e.length||e.size||0;this._initState(this._heap,this._padMaxChunkLen);var n=0,s=this._maxChunkLen;for(n=0;t>n+s;n+=s){this._coreCall(e,n,s,t,false)}this._coreCall(e,n,t-n,t,true);return getRawDigest(this._heap,this._padMaxChunkLen)};Rusha.prototype.digest=function digest(e){return o(this.rawDigest(e).buffer)};Rusha.prototype.digestFromString=function digestFromString(e){return this.digest(e)};Rusha.prototype.digestFromBuffer=function digestFromBuffer(e){return this.digest(e)};Rusha.prototype.digestFromArrayBuffer=function digestFromArrayBuffer(e){return this.digest(e)};Rusha.prototype.resetState=function resetState(){this._initState(this._heap,this._padMaxChunkLen);return this};Rusha.prototype.append=function append(e){var t=0;var n=e.byteLength||e.length||e.size||0;var s=this._offset%this._maxChunkLen;var r=void 0;this._offset+=n;while(t<n){r=Math.min(n-t,this._maxChunkLen-s);this._write(e,t,r,s);s+=r;t+=r;if(s===this._maxChunkLen){this._core.hash(this._maxChunkLen,this._padMaxChunkLen);s=0}}return this};Rusha.prototype.getState=function getState(){var e=this._offset%this._maxChunkLen;var t=void 0;if(!e){var n=new Int32Array(this._heap,this._padMaxChunkLen+320,5);t=n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}else{t=this._heap.slice(0)}return{offset:this._offset,heap:t}};Rusha.prototype.setState=function setState(e){this._offset=e.offset;if(e.heap.byteLength===20){var t=new Int32Array(this._heap,this._padMaxChunkLen+320,5);t.set(new Int32Array(e.heap))}else{this._h32.set(new Int32Array(e.heap))}return this};Rusha.prototype.rawEnd=function rawEnd(){var e=this._offset;var t=e%this._maxChunkLen;var n=this._padChunk(t,e);this._core.hash(n,this._padMaxChunkLen);var s=getRawDigest(this._heap,this._padMaxChunkLen);this._initState(this._heap,this._padMaxChunkLen);return s};Rusha.prototype.end=function end(){return o(this.rawEnd().buffer)};return Rusha}();e.exports=c;e.exports._core=s},function(e,t){var n=new Array(256);for(var s=0;s<256;s++){n[s]=(s<16?"0":"")+s.toString(16)}e.exports.toHex=function(e){var t=new Uint8Array(e);var s=new Array(e.byteLength);for(var r=0;r<s.length;r++){s[r]=n[t[r]]}return s.join("")};e.exports.ceilHeapSize=function(e){var t=0;if(e<=65536)return 65536;if(e<16777216){for(t=1;t<e;t=t<<1){}}else{for(t=16777216;t<e;t+=16777216){}}return t};e.exports.isDedicatedWorkerScope=function(e){var t="WorkerGlobalScope"in e&&e instanceof e.WorkerGlobalScope;var n="SharedWorkerGlobalScope"in e&&e instanceof e.SharedWorkerGlobalScope;var s="ServiceWorkerGlobalScope"in e&&e instanceof e.ServiceWorkerGlobalScope;return t&&!n&&!s}},function(e,t,n){e.exports=function(){var e=n(0);var hashData=function(e,t,n){try{return n(null,e.digest(t))}catch(e){return n(e)}};var hashFile=function(e,t,n,s,r){var o=new self.FileReader;o.onloadend=function onloadend(){if(o.error){return r(o.error)}var i=o.result;t+=o.result.byteLength;try{e.append(i)}catch(e){r(e);return}if(t<s.size){hashFile(e,t,n,s,r)}else{r(null,e.end())}};o.readAsArrayBuffer(s.slice(t,t+n))};var t=true;self.onmessage=function(n){if(!t){return}var s=n.data.data,r=n.data.file,o=n.data.id;if(typeof o==="undefined")return;if(!r&&!s)return;var i=n.data.blockSize||4*1024*1024;var a=new e(i);a.resetState();var done=function(e,t){if(!e){self.postMessage({id:o,hash:t})}else{self.postMessage({id:o,error:e.name})}};if(s)hashData(a,s,done);if(r)hashFile(a,0,i,r,done)};return function(){t=false}}},function(e,t,n){var s=n(4);var r=n(0);var o=n(7);var i=n(2);var a=n(1),c=a.isDedicatedWorkerScope;var u=typeof self!=="undefined"&&c(self);r.disableWorkerBehaviour=u?i():function(){};r.createWorker=function(){var e=s(2);var t=e.terminate;e.terminate=function(){URL.revokeObjectURL(e.objectURL);t.call(e)};return e};r.createHash=o;e.exports=r},function(e,t,n){function webpackBootstrapFunc(e){var t={};function __nested_webpack_require_14289__(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:false,exports:{}};e[n].call(s.exports,s,s.exports,__nested_webpack_require_14289__);s.l=true;return s.exports}__nested_webpack_require_14289__.m=e;__nested_webpack_require_14289__.c=t;__nested_webpack_require_14289__.i=function(e){return e};__nested_webpack_require_14289__.d=function(e,t,n){if(!__nested_webpack_require_14289__.o(e,t)){Object.defineProperty(e,t,{configurable:false,enumerable:true,get:n})}};__nested_webpack_require_14289__.r=function(e){Object.defineProperty(e,"__esModule",{value:true})};__nested_webpack_require_14289__.n=function(e){var t=e&&e.__esModule?function getDefault(){return e["default"]}:function getModuleExports(){return e};__nested_webpack_require_14289__.d(t,"a",t);return t};__nested_webpack_require_14289__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};__nested_webpack_require_14289__.p="/";__nested_webpack_require_14289__.oe=function(e){console.error(e);throw e};var n=__nested_webpack_require_14289__(__nested_webpack_require_14289__.s=ENTRY_MODULE);return n.default||n}var s="[\\.|\\-|\\+|\\w|/|@]+";var r="\\((/\\*.*?\\*/)?s?.*?("+s+").*?\\)";function quoteRegExp(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function getModuleDependencies(e,t,o){var i={};i[o]=[];var a=t.toString();var c=a.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/);if(!c)return i;var u=c[1];var l=new RegExp("(\\\\n|\\W)"+quoteRegExp(u)+r,"g");var p;while(p=l.exec(a)){if(p[3]==="dll-reference")continue;i[o].push(p[3])}l=new RegExp("\\("+quoteRegExp(u)+'\\("(dll-reference\\s('+s+'))"\\)\\)'+r,"g");while(p=l.exec(a)){if(!e[p[2]]){i[o].push(p[1]);e[p[2]]=n(p[1]).m}i[p[2]]=i[p[2]]||[];i[p[2]].push(p[4])}return i}function hasValuesInQueues(e){var t=Object.keys(e);return t.reduce((function(t,n){return t||e[n].length>0}),false)}function getRequiredModules(e,t){var n={main:[t]};var s={main:[]};var r={main:{}};while(hasValuesInQueues(n)){var o=Object.keys(n);for(var i=0;i<o.length;i++){var a=o[i];var c=n[a];var u=c.pop();r[a]=r[a]||{};if(r[a][u]||!e[a][u])continue;r[a][u]=true;s[a]=s[a]||[];s[a].push(u);var l=getModuleDependencies(e,e[a][u],a);var p=Object.keys(l);for(var d=0;d<p.length;d++){n[p[d]]=n[p[d]]||[];n[p[d]]=n[p[d]].concat(l[p[d]])}}}return s}e.exports=function(e,t){t=t||{};var s={main:n.m};var r=t.all?{main:Object.keys(s)}:getRequiredModules(s,e);var o="";Object.keys(r).filter((function(e){return e!=="main"})).forEach((function(e){var t=0;while(r[e][t]){t++}r[e].push(t);s[e][t]="(function(module, exports, __nccwpck_require__) { module.exports = __nccwpck_require__; })";o=o+"var "+e+" = ("+webpackBootstrapFunc.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+r[e].map((function(t){return""+JSON.stringify(t)+": "+s[e][t].toString()})).join(",")+"});\n"}));o=o+"("+webpackBootstrapFunc.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+r.main.map((function(e){return""+JSON.stringify(e)+": "+s.main[e].toString()})).join(",")+"})(self);";var i=new window.Blob([o],{type:"text/javascript"});if(t.bare){return i}var a=window.URL||window.webkitURL||window.mozURL||window.msURL;var c=a.createObjectURL(i);var u=new window.Worker(c);u.objectURL=c;return u}},function(e,t){e.exports=function RushaCore(e,t,n){"use asm";var s=new e.Int32Array(n);function hash$844(e,t){e=e|0;t=t|0;var n=0,r=0,o=0,i=0,a=0,c=0,u=0,l=0,p=0,d=0,f=0,m=0,h=0,g=0;o=s[t+320>>2]|0;a=s[t+324>>2]|0;u=s[t+328>>2]|0;p=s[t+332>>2]|0;f=s[t+336>>2]|0;for(n=0;(n|0)<(e|0);n=n+64|0){i=o;c=a;l=u;d=p;m=f;for(r=0;(r|0)<64;r=r+4|0){g=s[n+r>>2]|0;h=((o<<5|o>>>27)+(a&u|~a&p)|0)+((g+f|0)+1518500249|0)|0;f=p;p=u;u=a<<30|a>>>2;a=o;o=h;s[e+r>>2]=g}for(r=e+64|0;(r|0)<(e+80|0);r=r+4|0){g=(s[r-12>>2]^s[r-32>>2]^s[r-56>>2]^s[r-64>>2])<<1|(s[r-12>>2]^s[r-32>>2]^s[r-56>>2]^s[r-64>>2])>>>31;h=((o<<5|o>>>27)+(a&u|~a&p)|0)+((g+f|0)+1518500249|0)|0;f=p;p=u;u=a<<30|a>>>2;a=o;o=h;s[r>>2]=g}for(r=e+80|0;(r|0)<(e+160|0);r=r+4|0){g=(s[r-12>>2]^s[r-32>>2]^s[r-56>>2]^s[r-64>>2])<<1|(s[r-12>>2]^s[r-32>>2]^s[r-56>>2]^s[r-64>>2])>>>31;h=((o<<5|o>>>27)+(a^u^p)|0)+((g+f|0)+1859775393|0)|0;f=p;p=u;u=a<<30|a>>>2;a=o;o=h;s[r>>2]=g}for(r=e+160|0;(r|0)<(e+240|0);r=r+4|0){g=(s[r-12>>2]^s[r-32>>2]^s[r-56>>2]^s[r-64>>2])<<1|(s[r-12>>2]^s[r-32>>2]^s[r-56>>2]^s[r-64>>2])>>>31;h=((o<<5|o>>>27)+(a&u|a&p|u&p)|0)+((g+f|0)-1894007588|0)|0;f=p;p=u;u=a<<30|a>>>2;a=o;o=h;s[r>>2]=g}for(r=e+240|0;(r|0)<(e+320|0);r=r+4|0){g=(s[r-12>>2]^s[r-32>>2]^s[r-56>>2]^s[r-64>>2])<<1|(s[r-12>>2]^s[r-32>>2]^s[r-56>>2]^s[r-64>>2])>>>31;h=((o<<5|o>>>27)+(a^u^p)|0)+((g+f|0)-899497514|0)|0;f=p;p=u;u=a<<30|a>>>2;a=o;o=h;s[r>>2]=g}o=o+i|0;a=a+c|0;u=u+l|0;p=p+d|0;f=f+m|0}s[t+320>>2]=o;s[t+324>>2]=a;s[t+328>>2]=u;s[t+332>>2]=p;s[t+336>>2]=f}return{hash:hash$844}}},function(e,t){var n=this;var s=void 0;if(typeof self!=="undefined"&&typeof self.FileReaderSync!=="undefined"){s=new self.FileReaderSync}var convStr=function(e,t,n,s,r,o){var i=void 0,a=o%4,c=(r+a)%4,u=r-c;switch(a){case 0:t[o]=e.charCodeAt(s+3);case 1:t[o+1-(a<<1)|0]=e.charCodeAt(s+2);case 2:t[o+2-(a<<1)|0]=e.charCodeAt(s+1);case 3:t[o+3-(a<<1)|0]=e.charCodeAt(s)}if(r<c+(4-a)){return}for(i=4-a;i<u;i=i+4|0){n[o+i>>2]=e.charCodeAt(s+i)<<24|e.charCodeAt(s+i+1)<<16|e.charCodeAt(s+i+2)<<8|e.charCodeAt(s+i+3)}switch(c){case 3:t[o+u+1|0]=e.charCodeAt(s+u+2);case 2:t[o+u+2|0]=e.charCodeAt(s+u+1);case 1:t[o+u+3|0]=e.charCodeAt(s+u)}};var convBuf=function(e,t,n,s,r,o){var i=void 0,a=o%4,c=(r+a)%4,u=r-c;switch(a){case 0:t[o]=e[s+3];case 1:t[o+1-(a<<1)|0]=e[s+2];case 2:t[o+2-(a<<1)|0]=e[s+1];case 3:t[o+3-(a<<1)|0]=e[s]}if(r<c+(4-a)){return}for(i=4-a;i<u;i=i+4|0){n[o+i>>2|0]=e[s+i]<<24|e[s+i+1]<<16|e[s+i+2]<<8|e[s+i+3]}switch(c){case 3:t[o+u+1|0]=e[s+u+2];case 2:t[o+u+2|0]=e[s+u+1];case 1:t[o+u+3|0]=e[s+u]}};var convBlob=function(e,t,n,r,o,i){var a=void 0,c=i%4,u=(o+c)%4,l=o-u;var p=new Uint8Array(s.readAsArrayBuffer(e.slice(r,r+o)));switch(c){case 0:t[i]=p[3];case 1:t[i+1-(c<<1)|0]=p[2];case 2:t[i+2-(c<<1)|0]=p[1];case 3:t[i+3-(c<<1)|0]=p[0]}if(o<u+(4-c)){return}for(a=4-c;a<l;a=a+4|0){n[i+a>>2|0]=p[a]<<24|p[a+1]<<16|p[a+2]<<8|p[a+3]}switch(u){case 3:t[i+l+1|0]=p[l+2];case 2:t[i+l+2|0]=p[l+1];case 1:t[i+l+3|0]=p[l]}};e.exports=function(e,t,s,r,o,i){if(typeof e==="string"){return convStr(e,t,s,r,o,i)}if(e instanceof Array){return convBuf(e,t,s,r,o,i)}if(n&&n.Buffer&&n.Buffer.isBuffer(e)){return convBuf(e,t,s,r,o,i)}if(e instanceof ArrayBuffer){return convBuf(new Uint8Array(e),t,s,r,o,i)}if(e.buffer instanceof ArrayBuffer){return convBuf(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t,s,r,o,i)}if(e instanceof Blob){return convBlob(e,t,s,r,o,i)}throw new Error("Unsupported data type.")}},function(e,t,n){var s=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||false;s.configurable=true;if("value"in s)s.writable=true;Object.defineProperty(e,s.key,s)}}return function(e,t,n){if(t)defineProperties(e.prototype,t);if(n)defineProperties(e,n);return e}}();function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var r=n(0);var o=n(1),i=o.toHex;var a=function(){function Hash(){_classCallCheck(this,Hash);this._rusha=new r;this._rusha.resetState()}Hash.prototype.update=function update(e){this._rusha.append(e);return this};Hash.prototype.digest=function digest(e){var digest=this._rusha.rawEnd().buffer;if(!e){return digest}if(e==="hex"){return i(digest)}throw new Error("unsupported digest encoding")};s(Hash,[{key:"state",get:function(){return this._rusha.getState()},set:function(e){this._rusha.setState(e)}}]);return Hash}();e.exports=function(){return new a}}])}))},1532:(e,t,n)=>{const s=Symbol("SemVer ANY");class Comparator{static get ANY(){return s}constructor(e,t){t=r(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");c("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===s){this.value=""}else{this.value=this.operator+this.semver.version}c("comp",this)}parse(e){const t=this.options.loose?o[i.COMPARATORLOOSE]:o[i.COMPARATOR];const n=e.match(t);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=s}else{this.semver=new u(n[2],this.options.loose)}}toString(){return this.value}test(e){c("Comparator.test",e,this.options.loose);if(this.semver===s||e===s){return true}if(typeof e==="string"){try{e=new u(e,this.options)}catch(e){return false}}return a(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new l(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new l(this.value,t).test(e.semver)}t=r(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(a(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(a(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const r=n(785);const{safeRe:o,t:i}=n(9523);const a=n(5098);const c=n(427);const u=n(8088);const l=n(9828)},9828:(e,t,n)=>{class Range{constructor(e,t){t=o(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof i){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&m)|(this.options.loose&&h);const n=t+":"+e;const s=r.get(n);if(s){return s}const o=this.options.loose;const c=o?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(c,hyphenReplace(this.options.includePrerelease));a("hyphen replace",e);e=e.replace(u[l.COMPARATORTRIM],p);a("comparator trim",e);e=e.replace(u[l.TILDETRIM],d);a("tilde trim",e);e=e.replace(u[l.CARETTRIM],f);a("caret trim",e);let g=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(o){g=g.filter((e=>{a("loose invalid filter",e,this.options);return!!e.match(u[l.COMPARATORLOOSE])}))}a("range list",g);const _=new Map;const v=g.map((e=>new i(e,this.options)));for(const e of v){if(isNullSet(e)){return[e]}_.set(e.value,e)}if(_.size>1&&_.has("")){_.delete("")}const b=[..._.values()];r.set(n,b);return b}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((n=>isSatisfiable(n,t)&&e.set.some((e=>isSatisfiable(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new c(e,this.options)}catch(e){return false}}for(let t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false}}e.exports=Range;const s=n(5339);const r=new s;const o=n(785);const i=n(1532);const a=n(427);const c=n(8088);const{safeRe:u,t:l,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:f}=n(9523);const{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:h}=n(2293);const isNullSet=e=>e.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let n=true;const s=e.slice();let r=s.pop();while(n&&s.length){n=s.every((e=>r.intersects(e,t)));r=s.pop()}return n};const parseComparator=(e,t)=>{a("comp",e,t);e=replaceCarets(e,t);a("caret",e);e=replaceTildes(e,t);a("tildes",e);e=replaceXRanges(e,t);a("xrange",e);e=replaceStars(e,t);a("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const n=t.loose?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(n,((t,n,s,r,o)=>{a("tilde",e,t,n,s,r,o);let i;if(isX(n)){i=""}else if(isX(s)){i=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(isX(r)){i=`>=${n}.${s}.0 <${n}.${+s+1}.0-0`}else if(o){a("replaceTilde pr",o);i=`>=${n}.${s}.${r}-${o} <${n}.${+s+1}.0-0`}else{i=`>=${n}.${s}.${r} <${n}.${+s+1}.0-0`}a("tilde return",i);return i}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{a("caret",e,t);const n=t.loose?u[l.CARETLOOSE]:u[l.CARET];const s=t.includePrerelease?"-0":"";return e.replace(n,((t,n,r,o,i)=>{a("caret",e,t,n,r,o,i);let c;if(isX(n)){c=""}else if(isX(r)){c=`>=${n}.0.0${s} <${+n+1}.0.0-0`}else if(isX(o)){if(n==="0"){c=`>=${n}.${r}.0${s} <${n}.${+r+1}.0-0`}else{c=`>=${n}.${r}.0${s} <${+n+1}.0.0-0`}}else if(i){a("replaceCaret pr",i);if(n==="0"){if(r==="0"){c=`>=${n}.${r}.${o}-${i} <${n}.${r}.${+o+1}-0`}else{c=`>=${n}.${r}.${o}-${i} <${n}.${+r+1}.0-0`}}else{c=`>=${n}.${r}.${o}-${i} <${+n+1}.0.0-0`}}else{a("no pr");if(n==="0"){if(r==="0"){c=`>=${n}.${r}.${o}${s} <${n}.${r}.${+o+1}-0`}else{c=`>=${n}.${r}.${o}${s} <${n}.${+r+1}.0-0`}}else{c=`>=${n}.${r}.${o} <${+n+1}.0.0-0`}}a("caret return",c);return c}))};const replaceXRanges=(e,t)=>{a("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const n=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(n,((n,s,r,o,i,c)=>{a("xRange",e,n,s,r,o,i,c);const u=isX(r);const l=u||isX(o);const p=l||isX(i);const d=p;if(s==="="&&d){s=""}c=t.includePrerelease?"-0":"";if(u){if(s===">"||s==="<"){n="<0.0.0-0"}else{n="*"}}else if(s&&d){if(l){o=0}i=0;if(s===">"){s=">=";if(l){r=+r+1;o=0;i=0}else{o=+o+1;i=0}}else if(s==="<="){s="<";if(l){r=+r+1}else{o=+o+1}}if(s==="<"){c="-0"}n=`${s+r}.${o}.${i}${c}`}else if(l){n=`>=${r}.0.0${c} <${+r+1}.0.0-0`}else if(p){n=`>=${r}.${o}.0${c} <${r}.${+o+1}.0-0`}a("xRange return",n);return n}))};const replaceStars=(e,t)=>{a("replaceStars",e,t);return e.trim().replace(u[l.STAR],"")};const replaceGTE0=(e,t)=>{a("replaceGTE0",e,t);return e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")};const hyphenReplace=e=>(t,n,s,r,o,i,a,c,u,l,p,d)=>{if(isX(s)){n=""}else if(isX(r)){n=`>=${s}.0.0${e?"-0":""}`}else if(isX(o)){n=`>=${s}.${r}.0${e?"-0":""}`}else if(i){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(isX(u)){c=""}else if(isX(l)){c=`<${+u+1}.0.0-0`}else if(isX(p)){c=`<${u}.${+l+1}.0-0`}else if(d){c=`<=${u}.${l}.${p}-${d}`}else if(e){c=`<${u}.${l}.${+p+1}-0`}else{c=`<=${c}`}return`${n} ${c}`.trim()};const testSet=(e,t,n)=>{for(let n=0;n<e.length;n++){if(!e[n].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++){a(e[n].semver);if(e[n].semver===i.ANY){continue}if(e[n].semver.prerelease.length>0){const s=e[n].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}},8088:(e,t,n)=>{const s=n(427);const{MAX_LENGTH:r,MAX_SAFE_INTEGER:o}=n(2293);const{safeRe:i,t:a}=n(9523);const c=n(785);const{compareIdentifiers:u}=n(2463);class SemVer{constructor(e,t){t=c(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>r){throw new TypeError(`version is longer than ${r} characters`)}s("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?i[a.LOOSE]:i[a.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o){return t}}return e}))}this.build=n[5]?n[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(e){s("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){if(typeof e==="string"&&e===this.version){return 0}e=new SemVer(e,this.options)}if(e.version===this.version){return 0}return this.compareMain(e)||this.comparePre(e)}compareMain(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}let t=0;do{const n=this.prerelease[t];const r=e.prerelease[t];s("prerelease compare",t,n,r);if(n===undefined&&r===undefined){return 0}else if(r===undefined){return 1}else if(n===undefined){return-1}else if(n===r){continue}else{return u(n,r)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const n=this.build[t];const r=e.build[t];s("build compare",t,n,r);if(n===undefined&&r===undefined){return 0}else if(r===undefined){return 1}else if(n===undefined){return-1}else if(n===r){continue}else{return u(n,r)}}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t,n);this.inc("pre",t,n);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t,n)}this.inc("pre",t,n);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&n===false){throw new Error("invalid increment argument: identifier is empty")}if(this.prerelease.length===0){this.prerelease=[e]}else{let s=this.prerelease.length;while(--s>=0){if(typeof this.prerelease[s]==="number"){this.prerelease[s]++;s=-2}}if(s===-1){if(t===this.prerelease.join(".")&&n===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let s=[t,e];if(n===false){s=[t]}if(u(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=s}}else{this.prerelease=s}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},8848:(e,t,n)=>{const s=n(5925);const clean=(e,t)=>{const n=s(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=clean},5098:(e,t,n)=>{const s=n(1898);const r=n(6017);const o=n(4123);const i=n(5522);const a=n(194);const c=n(7520);const cmp=(e,t,n,u)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e===n;case"!==":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e!==n;case"":case"=":case"==":return s(e,n,u);case"!=":return r(e,n,u);case">":return o(e,n,u);case">=":return i(e,n,u);case"<":return a(e,n,u);case"<=":return c(e,n,u);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},3466:(e,t,n)=>{const s=n(8088);const r=n(5925);const{safeRe:o,t:i}=n(9523);const coerce=(e,t)=>{if(e instanceof s){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let n=null;if(!t.rtl){n=e.match(t.includePrerelease?o[i.COERCEFULL]:o[i.COERCE])}else{const s=t.includePrerelease?o[i.COERCERTLFULL]:o[i.COERCERTL];let r;while((r=s.exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||r.index+r[0].length!==n.index+n[0].length){n=r}s.lastIndex=r.index+r[1].length+r[2].length}s.lastIndex=-1}if(n===null){return null}const a=n[2];const c=n[3]||"0";const u=n[4]||"0";const l=t.includePrerelease&&n[5]?`-${n[5]}`:"";const p=t.includePrerelease&&n[6]?`+${n[6]}`:"";return r(`${a}.${c}.${u}${l}${p}`,t)};e.exports=coerce},2156:(e,t,n)=>{const s=n(8088);const compareBuild=(e,t,n)=>{const r=new s(e,n);const o=new s(t,n);return r.compare(o)||r.compareBuild(o)};e.exports=compareBuild},2804:(e,t,n)=>{const s=n(4309);const compareLoose=(e,t)=>s(e,t,true);e.exports=compareLoose},4309:(e,t,n)=>{const s=n(8088);const compare=(e,t,n)=>new s(e,n).compare(new s(t,n));e.exports=compare},4297:(e,t,n)=>{const s=n(5925);const diff=(e,t)=>{const n=s(e,null,true);const r=s(t,null,true);const o=n.compare(r);if(o===0){return null}const i=o>0;const a=i?n:r;const c=i?r:n;const u=!!a.prerelease.length;const l=!!c.prerelease.length;if(l&&!u){if(!c.patch&&!c.minor){return"major"}if(a.patch){return"patch"}if(a.minor){return"minor"}return"major"}const p=u?"pre":"";if(n.major!==r.major){return p+"major"}if(n.minor!==r.minor){return p+"minor"}if(n.patch!==r.patch){return p+"patch"}return"prerelease"};e.exports=diff},1898:(e,t,n)=>{const s=n(4309);const eq=(e,t,n)=>s(e,t,n)===0;e.exports=eq},4123:(e,t,n)=>{const s=n(4309);const gt=(e,t,n)=>s(e,t,n)>0;e.exports=gt},5522:(e,t,n)=>{const s=n(4309);const gte=(e,t,n)=>s(e,t,n)>=0;e.exports=gte},900:(e,t,n)=>{const s=n(8088);const inc=(e,t,n,r,o)=>{if(typeof n==="string"){o=r;r=n;n=undefined}try{return new s(e instanceof s?e.version:e,n).inc(t,r,o).version}catch(e){return null}};e.exports=inc},194:(e,t,n)=>{const s=n(4309);const lt=(e,t,n)=>s(e,t,n)<0;e.exports=lt},7520:(e,t,n)=>{const s=n(4309);const lte=(e,t,n)=>s(e,t,n)<=0;e.exports=lte},6688:(e,t,n)=>{const s=n(8088);const major=(e,t)=>new s(e,t).major;e.exports=major},8447:(e,t,n)=>{const s=n(8088);const minor=(e,t)=>new s(e,t).minor;e.exports=minor},6017:(e,t,n)=>{const s=n(4309);const neq=(e,t,n)=>s(e,t,n)!==0;e.exports=neq},5925:(e,t,n)=>{const s=n(8088);const parse=(e,t,n=false)=>{if(e instanceof s){return e}try{return new s(e,t)}catch(e){if(!n){return null}throw e}};e.exports=parse},2866:(e,t,n)=>{const s=n(8088);const patch=(e,t)=>new s(e,t).patch;e.exports=patch},4016:(e,t,n)=>{const s=n(5925);const prerelease=(e,t)=>{const n=s(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=prerelease},6417:(e,t,n)=>{const s=n(4309);const rcompare=(e,t,n)=>s(t,e,n);e.exports=rcompare},8701:(e,t,n)=>{const s=n(2156);const rsort=(e,t)=>e.sort(((e,n)=>s(n,e,t)));e.exports=rsort},6055:(e,t,n)=>{const s=n(9828);const satisfies=(e,t,n)=>{try{t=new s(t,n)}catch(e){return false}return t.test(e)};e.exports=satisfies},1426:(e,t,n)=>{const s=n(2156);const sort=(e,t)=>e.sort(((e,n)=>s(e,n,t)));e.exports=sort},9601:(e,t,n)=>{const s=n(5925);const valid=(e,t)=>{const n=s(e,t);return n?n.version:null};e.exports=valid},1383:(e,t,n)=>{const s=n(9523);const r=n(2293);const o=n(8088);const i=n(2463);const a=n(5925);const c=n(9601);const u=n(8848);const l=n(900);const p=n(4297);const d=n(6688);const f=n(8447);const m=n(2866);const h=n(4016);const g=n(4309);const _=n(6417);const v=n(2804);const b=n(2156);const x=n(1426);const y=n(8701);const E=n(4123);const D=n(194);const S=n(1898);const w=n(6017);const C=n(5522);const T=n(7520);const R=n(5098);const k=n(3466);const O=n(1532);const F=n(9828);const A=n(6055);const P=n(2706);const I=n(579);const N=n(832);const M=n(4179);const j=n(2098);const B=n(420);const L=n(9380);const U=n(3323);const $=n(7008);const q=n(5297);const G=n(7863);e.exports={parse:a,valid:c,clean:u,inc:l,diff:p,major:d,minor:f,patch:m,prerelease:h,compare:g,rcompare:_,compareLoose:v,compareBuild:b,sort:x,rsort:y,gt:E,lt:D,eq:S,neq:w,gte:C,lte:T,cmp:R,coerce:k,Comparator:O,Range:F,satisfies:A,toComparators:P,maxSatisfying:I,minSatisfying:N,minVersion:M,validRange:j,outside:B,gtr:L,ltr:U,intersects:$,simplifyRange:q,subset:G,SemVer:o,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},2293:e=>{const t="2.0.0";const n=256;const s=Number.MAX_SAFE_INTEGER||9007199254740991;const r=16;const o=n-6;const i=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:s,RELEASE_TYPES:i,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},427:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},2463:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,n)=>{const s=t.test(e);const r=t.test(n);if(s&&r){e=+e;n=+n}return e===n?0:s&&!r?-1:r&&!s?1:e<n?-1:1};const rcompareIdentifiers=(e,t)=>compareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},5339:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const n=this.delete(e);if(!n&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},785:e=>{const t=Object.freeze({loose:true});const n=Object.freeze({});const parseOptions=e=>{if(!e){return n}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},9523:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=n(2293);const i=n(427);t=e.exports={};const a=t.re=[];const c=t.safeRe=[];const u=t.src=[];const l=t.t={};let p=0;const d="[a-zA-Z0-9-]";const f=[["\\s",1],["\\d",o],[d,r]];const makeSafeRegex=e=>{for(const[t,n]of f){e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`)}return e};const createToken=(e,t,n)=>{const s=makeSafeRegex(t);const r=p++;i(e,r,t);l[e]=r;u[r]=t;a[r]=new RegExp(t,n?"g":undefined);c[r]=new RegExp(s,n?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`);createToken("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.`+`(${u[l.NUMERICIDENTIFIER]})\\.`+`(${u[l.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${u[l.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${d}+`);createToken("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`);createToken("FULL",`^${u[l.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`);createToken("LOOSE",`^${u[l.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})`+`(?:\\.(${u[l.XRANGEIDENTIFIER]})`+`(?:\\.(${u[l.XRANGEIDENTIFIER]})`+`(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})`+`(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${s}})`+`(?:\\.(\\d{1,${s}}))?`+`(?:\\.(\\d{1,${s}}))?`);createToken("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?`+`(?:${u[l.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",u[l.COERCE],true);createToken("COERCERTLFULL",u[l.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${u[l.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${u[l.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9380:(e,t,n)=>{const s=n(420);const gtr=(e,t,n)=>s(e,t,">",n);e.exports=gtr},7008:(e,t,n)=>{const s=n(9828);const intersects=(e,t,n)=>{e=new s(e,n);t=new s(t,n);return e.intersects(t,n)};e.exports=intersects},3323:(e,t,n)=>{const s=n(420);const ltr=(e,t,n)=>s(e,t,"<",n);e.exports=ltr},579:(e,t,n)=>{const s=n(8088);const r=n(9828);const maxSatisfying=(e,t,n)=>{let o=null;let i=null;let a=null;try{a=new r(t,n)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!o||i.compare(e)===-1){o=e;i=new s(o,n)}}}));return o};e.exports=maxSatisfying},832:(e,t,n)=>{const s=n(8088);const r=n(9828);const minSatisfying=(e,t,n)=>{let o=null;let i=null;let a=null;try{a=new r(t,n)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!o||i.compare(e)===1){o=e;i=new s(o,n)}}}));return o};e.exports=minSatisfying},4179:(e,t,n)=>{const s=n(8088);const r=n(9828);const o=n(4123);const minVersion=(e,t)=>{e=new r(e,t);let n=new s("0.0.0");if(e.test(n)){return n}n=new s("0.0.0-0");if(e.test(n)){return n}n=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let i=null;r.forEach((e=>{const t=new s(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!i||o(t,i)){i=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(i&&(!n||o(n,i))){n=i}}if(n&&e.test(n)){return n}return null};e.exports=minVersion},420:(e,t,n)=>{const s=n(8088);const r=n(1532);const{ANY:o}=r;const i=n(9828);const a=n(6055);const c=n(4123);const u=n(194);const l=n(7520);const p=n(5522);const outside=(e,t,n,d)=>{e=new s(e,d);t=new i(t,d);let f,m,h,g,_;switch(n){case">":f=c;m=l;h=u;g=">";_=">=";break;case"<":f=u;m=p;h=c;g="<";_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d)){return false}for(let n=0;n<t.set.length;++n){const s=t.set[n];let i=null;let a=null;s.forEach((e=>{if(e.semver===o){e=new r(">=0.0.0")}i=i||e;a=a||e;if(f(e.semver,i.semver,d)){i=e}else if(h(e.semver,a.semver,d)){a=e}}));if(i.operator===g||i.operator===_){return false}if((!a.operator||a.operator===g)&&m(e,a.semver)){return false}else if(a.operator===_&&h(e,a.semver)){return false}}return true};e.exports=outside},5297:(e,t,n)=>{const s=n(6055);const r=n(4309);e.exports=(e,t,n)=>{const o=[];let i=null;let a=null;const c=e.sort(((e,t)=>r(e,t,n)));for(const e of c){const r=s(e,t,n);if(r){a=e;if(!i){i=e}}else{if(a){o.push([i,a])}a=null;i=null}}if(i){o.push([i,null])}const u=[];for(const[e,t]of o){if(e===t){u.push(e)}else if(!t&&e===c[0]){u.push("*")}else if(!t){u.push(`>=${e}`)}else if(e===c[0]){u.push(`<=${t}`)}else{u.push(`${e} - ${t}`)}}const l=u.join(" || ");const p=typeof t.raw==="string"?t.raw:String(t);return l.length<p.length?l:t}},7863:(e,t,n)=>{const s=n(9828);const r=n(1532);const{ANY:o}=r;const i=n(6055);const a=n(4309);const subset=(e,t,n={})=>{if(e===t){return true}e=new s(e,n);t=new s(t,n);let r=false;e:for(const s of e.set){for(const e of t.set){const t=simpleSubset(s,e,n);r=r||t!==null;if(t){continue e}}if(r){return false}}return true};const c=[new r(">=0.0.0-0")];const u=[new r(">=0.0.0")];const simpleSubset=(e,t,n)=>{if(e===t){return true}if(e.length===1&&e[0].semver===o){if(t.length===1&&t[0].semver===o){return true}else if(n.includePrerelease){e=c}else{e=u}}if(t.length===1&&t[0].semver===o){if(n.includePrerelease){return true}else{t=u}}const s=new Set;let r,l;for(const t of e){if(t.operator===">"||t.operator===">="){r=higherGT(r,t,n)}else if(t.operator==="<"||t.operator==="<="){l=lowerLT(l,t,n)}else{s.add(t.semver)}}if(s.size>1){return null}let p;if(r&&l){p=a(r.semver,l.semver,n);if(p>0){return null}else if(p===0&&(r.operator!==">="||l.operator!=="<=")){return null}}for(const e of s){if(r&&!i(e,String(r),n)){return null}if(l&&!i(e,String(l),n)){return null}for(const s of t){if(!i(e,String(s),n)){return false}}return true}let d,f;let m,h;let g=l&&!n.includePrerelease&&l.semver.prerelease.length?l.semver:false;let _=r&&!n.includePrerelease&&r.semver.prerelease.length?r.semver:false;if(g&&g.prerelease.length===1&&l.operator==="<"&&g.prerelease[0]===0){g=false}for(const e of t){h=h||e.operator===">"||e.operator===">=";m=m||e.operator==="<"||e.operator==="<=";if(r){if(_){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===_.major&&e.semver.minor===_.minor&&e.semver.patch===_.patch){_=false}}if(e.operator===">"||e.operator===">="){d=higherGT(r,e,n);if(d===e&&d!==r){return false}}else if(r.operator===">="&&!i(r.semver,String(e),n)){return false}}if(l){if(g){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch){g=false}}if(e.operator==="<"||e.operator==="<="){f=lowerLT(l,e,n);if(f===e&&f!==l){return false}}else if(l.operator==="<="&&!i(l.semver,String(e),n)){return false}}if(!e.operator&&(l||r)&&p!==0){return false}}if(r&&m&&!l&&p!==0){return false}if(l&&h&&!r&&p!==0){return false}if(_||g){return false}return true};const higherGT=(e,t,n)=>{if(!e){return t}const s=a(e.semver,t.semver,n);return s>0?e:s<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,n)=>{if(!e){return t}const s=a(e.semver,t.semver,n);return s<0?e:s>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},2706:(e,t,n)=>{const s=n(9828);const toComparators=(e,t)=>new s(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},2098:(e,t,n)=>{const s=n(9828);const validRange=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}};e.exports=validRange},5591:(e,t,n)=>{const s=n(5063);e.exports=e=>typeof e==="string"?e.replace(s(),""):e},9318:(e,t,n)=>{const s=n(2037);const r=n(1621);const o=process.env;let i;if(r("no-color")||r("no-colors")||r("color=false")){i=false}else if(r("color")||r("colors")||r("color=true")||r("color=always")){i=true}if("FORCE_COLOR"in o){i=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(i===false){return 0}if(r("color=16m")||r("color=full")||r("color=truecolor")){return 3}if(r("color=256")){return 2}if(e&&!e.isTTY&&i!==true){return 0}const t=i?1:0;if(process.platform==="win32"){const e=s.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)}},9824:(e,t,n)=>{const s=n(2568);const r=n(5591);const o=n(8862);const i=new Set(["",""]);const a=39;const wrapAnsi=e=>`${i.values().next().value}[${e}m`;const wordLengths=e=>e.split(" ").map((e=>s(e)));const wrapWord=(e,t,n)=>{const o=[...t];let a=false;let c=s(r(e[e.length-1]));for(const[t,r]of o.entries()){const u=s(r);if(c+u<=n){e[e.length-1]+=r}else{e.push(r);c=0}if(i.has(r)){a=true}else if(a&&r==="m"){a=false;continue}if(a){continue}c+=u;if(c===n&&t<o.length-1){e.push("");c=0}}if(!c&&e[e.length-1].length>0&&e.length>1){e[e.length-2]+=e.pop()}};const stringVisibleTrimSpacesRight=e=>{const t=e.split(" ");let n=t.length;while(n>0){if(s(t[n-1])>0){break}n--}if(n===t.length){return e}return t.slice(0,n).join(" ")+t.slice(n).join("")};const exec=(e,t,n={})=>{if(n.trim!==false&&e.trim()===""){return""}let r="";let c="";let u;const l=wordLengths(e);let p=[""];for(const[r,o]of e.split(" ").entries()){if(n.trim!==false){p[p.length-1]=p[p.length-1].trimLeft()}let e=s(p[p.length-1]);if(r!==0){if(e>=t&&(n.wordWrap===false||n.trim===false)){p.push("");e=0}if(e>0||n.trim===false){p[p.length-1]+=" ";e++}}if(n.hard&&l[r]>t){const n=t-e;const s=1+Math.floor((l[r]-n-1)/t);const i=Math.floor((l[r]-1)/t);if(i<s){p.push("")}wrapWord(p,o,t);continue}if(e+l[r]>t&&e>0&&l[r]>0){if(n.wordWrap===false&&e<t){wrapWord(p,o,t);continue}p.push("")}if(e+l[r]>t&&n.wordWrap===false){wrapWord(p,o,t);continue}p[p.length-1]+=o}if(n.trim!==false){p=p.map(stringVisibleTrimSpacesRight)}r=p.join("\n");for(const[e,t]of[...r].entries()){c+=t;if(i.has(t)){const t=parseFloat(/\d[^m]*/.exec(r.slice(e,e+4)));u=t===a?null:t}const n=o.codes.get(Number(u));if(u&&n){if(r[e+1]==="\n"){c+=wrapAnsi(n)}else if(t==="\n"){c+=wrapAnsi(u)}}}return c};e.exports=(e,t,n)=>String(e).normalize().replace(/\r\n/g,"\n").split("\n").map((e=>exec(e,t,n))).join("\n")},8862:(e,t,n)=>{e=n.nmd(e);const wrapAnsi16=(e,t)=>(...n)=>{const s=e(...n);return`[${s+t}m`};const wrapAnsi256=(e,t)=>(...n)=>{const s=e(...n);return`[${38+t};5;${s}m`};const wrapAnsi16m=(e,t)=>(...n)=>{const s=e(...n);return`[${38+t};2;${s[0]};${s[1]};${s[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,n)=>[e,t,n];const setLazyProperty=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const s=n();Object.defineProperty(e,t,{value:s,enumerable:true,configurable:true});return s},enumerable:true,configurable:true})};let s;const makeDynamicStyles=(e,t,r,o)=>{if(s===undefined){s=n(5996)}const i=o?10:0;const a={};for(const[n,o]of Object.entries(s)){const s=n==="ansi16"?"ansi":n;if(n===t){a[s]=e(r,i)}else if(typeof o==="object"){a[s]=e(o[t],i)}}return a};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],blackBright:[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.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,s]of Object.entries(t)){for(const[n,r]of Object.entries(s)){t[n]={open:`[${r[0]}m`,close:`[${r[1]}m`};s[n]=t[n];e.set(r[0],r[1])}Object.defineProperty(t,n,{value:s,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="[39m";t.bgColor.close="[49m";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},6784:(e,t,n)=>{const s=n(199);const r={};for(const e of Object.keys(s)){r[s[e]]=e}const o={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"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e])){throw new Error("missing channels property: "+e)}if(!("labels"in o[e])){throw new Error("missing channel labels property: "+e)}if(o[e].labels.length!==o[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:n}=o[e];delete o[e].channels;delete o[e].labels;Object.defineProperty(o[e],"channels",{value:t});Object.defineProperty(o[e],"labels",{value:n})}o.rgb.hsl=function(e){const t=e[0]/255;const n=e[1]/255;const s=e[2]/255;const r=Math.min(t,n,s);const o=Math.max(t,n,s);const i=o-r;let a;let c;if(o===r){a=0}else if(t===o){a=(n-s)/i}else if(n===o){a=2+(s-t)/i}else if(s===o){a=4+(t-n)/i}a=Math.min(a*60,360);if(a<0){a+=360}const u=(r+o)/2;if(o===r){c=0}else if(u<=.5){c=i/(o+r)}else{c=i/(2-o-r)}return[a,c*100,u*100]};o.rgb.hsv=function(e){let t;let n;let s;let r;let o;const i=e[0]/255;const a=e[1]/255;const c=e[2]/255;const u=Math.max(i,a,c);const l=u-Math.min(i,a,c);const diffc=function(e){return(u-e)/6/l+1/2};if(l===0){r=0;o=0}else{o=l/u;t=diffc(i);n=diffc(a);s=diffc(c);if(i===u){r=s-n}else if(a===u){r=1/3+t-s}else if(c===u){r=2/3+n-t}if(r<0){r+=1}else if(r>1){r-=1}}return[r*360,o*100,u*100]};o.rgb.hwb=function(e){const t=e[0];const n=e[1];let s=e[2];const r=o.rgb.hsl(e)[0];const i=1/255*Math.min(t,Math.min(n,s));s=1-1/255*Math.max(t,Math.max(n,s));return[r,i*100,s*100]};o.rgb.cmyk=function(e){const t=e[0]/255;const n=e[1]/255;const s=e[2]/255;const r=Math.min(1-t,1-n,1-s);const o=(1-t-r)/(1-r)||0;const i=(1-n-r)/(1-r)||0;const a=(1-s-r)/(1-r)||0;return[o*100,i*100,a*100,r*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.keyword=function(e){const t=r[e];if(t){return t}let n=Infinity;let o;for(const t of Object.keys(s)){const r=s[t];const i=comparativeDistance(e,r);if(i<n){n=i;o=t}}return o};o.keyword.rgb=function(e){return s[e]};o.rgb.xyz=function(e){let t=e[0]/255;let n=e[1]/255;let s=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;const r=t*.4124+n*.3576+s*.1805;const o=t*.2126+n*.7152+s*.0722;const i=t*.0193+n*.1192+s*.9505;return[r*100,o*100,i*100]};o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0];let s=t[1];let r=t[2];n/=95.047;s/=100;r/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;s=s>.008856?s**(1/3):7.787*s+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*s-16;const a=500*(n-s);const c=200*(s-r);return[i,a,c]};o.hsl.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const s=e[2]/100;let r;let o;let i;if(n===0){i=s*255;return[i,i,i]}if(s<.5){r=s*(1+n)}else{r=s+n-s*n}const a=2*s-r;const c=[0,0,0];for(let e=0;e<3;e++){o=t+1/3*-(e-1);if(o<0){o++}if(o>1){o--}if(6*o<1){i=a+(r-a)*6*o}else if(2*o<1){i=r}else if(3*o<2){i=a+(r-a)*(2/3-o)*6}else{i=a}c[e]=i*255}return c};o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100;let s=e[2]/100;let r=n;const o=Math.max(s,.01);s*=2;n*=s<=1?s:2-s;r*=o<=1?o:2-o;const i=(s+n)/2;const a=s===0?2*r/(o+r):2*n/(s+n);return[t,a*100,i*100]};o.hsv.rgb=function(e){const t=e[0]/60;const n=e[1]/100;let s=e[2]/100;const r=Math.floor(t)%6;const o=t-Math.floor(t);const i=255*s*(1-n);const a=255*s*(1-n*o);const c=255*s*(1-n*(1-o));s*=255;switch(r){case 0:return[s,c,i];case 1:return[a,s,i];case 2:return[i,s,c];case 3:return[i,a,s];case 4:return[c,i,s];case 5:return[s,i,a]}};o.hsv.hsl=function(e){const t=e[0];const n=e[1]/100;const s=e[2]/100;const r=Math.max(s,.01);let o;let i;i=(2-n)*s;const a=(2-n)*r;o=n*r;o/=a<=1?a:2-a;o=o||0;i/=2;return[t,o*100,i*100]};o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100;let s=e[2]/100;const r=n+s;let o;if(r>1){n/=r;s/=r}const i=Math.floor(6*t);const a=1-s;o=6*t-i;if((i&1)!==0){o=1-o}const c=n+o*(a-n);let u;let l;let p;switch(i){default:case 6:case 0:u=a;l=c;p=n;break;case 1:u=c;l=a;p=n;break;case 2:u=n;l=a;p=c;break;case 3:u=n;l=c;p=a;break;case 4:u=c;l=n;p=a;break;case 5:u=a;l=n;p=c;break}return[u*255,l*255,p*255]};o.cmyk.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const s=e[2]/100;const r=e[3]/100;const o=1-Math.min(1,t*(1-r)+r);const i=1-Math.min(1,n*(1-r)+r);const a=1-Math.min(1,s*(1-r)+r);return[o*255,i*255,a*255]};o.xyz.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const s=e[2]/100;let r;let o;let i;r=t*3.2406+n*-1.5372+s*-.4986;o=t*-.9689+n*1.8758+s*.0415;i=t*.0557+n*-.204+s*1.057;r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92;r=Math.min(Math.max(0,r),1);o=Math.min(Math.max(0,o),1);i=Math.min(Math.max(0,i),1);return[r*255,o*255,i*255]};o.xyz.lab=function(e){let t=e[0];let n=e[1];let s=e[2];t/=95.047;n/=100;s/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;s=s>.008856?s**(1/3):7.787*s+16/116;const r=116*n-16;const o=500*(t-n);const i=200*(n-s);return[r,o,i]};o.lab.xyz=function(e){const t=e[0];const n=e[1];const s=e[2];let r;let o;let i;o=(t+16)/116;r=n/500+o;i=o-s/200;const a=o**3;const c=r**3;const u=i**3;o=a>.008856?a:(o-16/116)/7.787;r=c>.008856?c:(r-16/116)/7.787;i=u>.008856?u:(i-16/116)/7.787;r*=95.047;o*=100;i*=108.883;return[r,o,i]};o.lab.lch=function(e){const t=e[0];const n=e[1];const s=e[2];let r;const o=Math.atan2(s,n);r=o*360/2/Math.PI;if(r<0){r+=360}const i=Math.sqrt(n*n+s*s);return[t,i,r]};o.lch.lab=function(e){const t=e[0];const n=e[1];const s=e[2];const r=s/360*2*Math.PI;const o=n*Math.cos(r);const i=n*Math.sin(r);return[t,o,i]};o.rgb.ansi16=function(e,t=null){const[n,s,r]=e;let i=t===null?o.rgb.hsv(e)[2]:t;i=Math.round(i/50);if(i===0){return 30}let a=30+(Math.round(r/255)<<2|Math.round(s/255)<<1|Math.round(n/255));if(i===2){a+=60}return a};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){const t=e[0];const n=e[1];const s=e[2];if(t===n&&n===s){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const r=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(s/255*5);return r};o.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const n=(~~(e>50)+1)*.5;const s=(t&1)*n*255;const r=(t>>1&1)*n*255;const o=(t>>2&1)*n*255;return[s,r,o]};o.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const n=Math.floor(e/36)/5*255;const s=Math.floor((t=e%36)/6)/5*255;const r=t%6/5*255;return[n,s,r]};o.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let n=t[0];if(t[0].length===3){n=n.split("").map((e=>e+e)).join("")}const s=parseInt(n,16);const r=s>>16&255;const o=s>>8&255;const i=s&255;return[r,o,i]};o.rgb.hcg=function(e){const t=e[0]/255;const n=e[1]/255;const s=e[2]/255;const r=Math.max(Math.max(t,n),s);const o=Math.min(Math.min(t,n),s);const i=r-o;let a;let c;if(i<1){a=o/(1-i)}else{a=0}if(i<=0){c=0}else if(r===t){c=(n-s)/i%6}else if(r===n){c=2+(s-t)/i}else{c=4+(t-n)/i}c/=6;c%=1;return[c*360,i*100,a*100]};o.hsl.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const s=n<.5?2*t*n:2*t*(1-n);let r=0;if(s<1){r=(n-.5*s)/(1-s)}return[e[0],s*100,r*100]};o.hsv.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const s=t*n;let r=0;if(s<1){r=(n-s)/(1-s)}return[e[0],s*100,r*100]};o.hcg.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const s=e[2]/100;if(n===0){return[s*255,s*255,s*255]}const r=[0,0,0];const o=t%1*6;const i=o%1;const a=1-i;let c=0;switch(Math.floor(o)){case 0:r[0]=1;r[1]=i;r[2]=0;break;case 1:r[0]=a;r[1]=1;r[2]=0;break;case 2:r[0]=0;r[1]=1;r[2]=i;break;case 3:r[0]=0;r[1]=a;r[2]=1;break;case 4:r[0]=i;r[1]=0;r[2]=1;break;default:r[0]=1;r[1]=0;r[2]=a}c=(1-n)*s;return[(n*r[0]+c)*255,(n*r[1]+c)*255,(n*r[2]+c)*255]};o.hcg.hsv=function(e){const t=e[1]/100;const n=e[2]/100;const s=t+n*(1-t);let r=0;if(s>0){r=t/s}return[e[0],r*100,s*100]};o.hcg.hsl=function(e){const t=e[1]/100;const n=e[2]/100;const s=n*(1-t)+.5*t;let r=0;if(s>0&&s<.5){r=t/(2*s)}else if(s>=.5&&s<1){r=t/(2*(1-s))}return[e[0],r*100,s*100]};o.hcg.hwb=function(e){const t=e[1]/100;const n=e[2]/100;const s=t+n*(1-t);return[e[0],(s-t)*100,(1-s)*100]};o.hwb.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const s=1-n;const r=s-t;let o=0;if(r<1){o=(s-r)/(1-r)}return[e[0],r*100,o*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=function(e){return[0,0,e[0]]};o.gray.hsv=o.gray.hsl;o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const n=(t<<16)+(t<<8)+t;const s=n.toString(16).toUpperCase();return"000000".substring(s.length)+s};o.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},5996:(e,t,n)=>{const s=n(6784);const r=n(7004);const o={};const i=Object.keys(s);function wrapRaw(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}const s=e(t);if(typeof s==="object"){for(let e=s.length,t=0;t<e;t++){s[t]=Math.round(s[t])}}return s};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}i.forEach((e=>{o[e]={};Object.defineProperty(o[e],"channels",{value:s[e].channels});Object.defineProperty(o[e],"labels",{value:s[e].labels});const t=r(e);const n=Object.keys(t);n.forEach((n=>{const s=t[n];o[e][n]=wrapRounded(s);o[e][n].raw=wrapRaw(s)}))}));e.exports=o},7004:(e,t,n)=>{const s=n(6784);function buildGraph(){const e={};const t=Object.keys(s);for(let n=t.length,s=0;s<n;s++){e[t[s]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const n=[e];t[e].distance=0;while(n.length){const e=n.pop();const r=Object.keys(s[e]);for(let s=r.length,o=0;o<s;o++){const s=r[o];const i=t[s];if(i.distance===-1){i.distance=t[e].distance+1;i.parent=e;n.unshift(s)}}}return t}function link(e,t){return function(n){return t(e(n))}}function wrapConversion(e,t){const n=[t[e].parent,e];let r=s[t[e].parent][e];let o=t[e].parent;while(t[o].parent){n.unshift(t[o].parent);r=link(s[t[o].parent][o],r);o=t[o].parent}r.conversion=n;return r}e.exports=function(e){const t=deriveBFS(e);const n={};const s=Object.keys(t);for(let e=s.length,r=0;r<e;r++){const e=s[r];const o=t[e];if(o.parent===null){continue}n[e]=wrapConversion(e,t)}return n}},199:e=>{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]}},7465:e=>{e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},8988:e=>{const isFullwidthCodePoint=e=>{if(Number.isNaN(e)){return false}if(e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)){return true}return false};e.exports=isFullwidthCodePoint;e.exports["default"]=isFullwidthCodePoint},2568:(e,t,n)=>{const s=n(5591);const r=n(8988);const o=n(7465);const stringWidth=e=>{if(typeof e!=="string"||e.length===0){return 0}e=s(e);if(e.length===0){return 0}e=e.replace(o()," ");let t=0;for(let n=0;n<e.length;n++){const s=e.codePointAt(n);if(s<=31||s>=127&&s<=159){continue}if(s>=768&&s<=879){continue}if(s>65535){n++}t+=r(s)?2:1}return t};e.exports=stringWidth;e.exports["default"]=stringWidth},3674:(e,t,n)=>{e.exports=n.p+"fe522462c16fc21893a4.js?../../"},9491:t=>{t.exports=e(import.meta.url)("assert")},852:t=>{t.exports=e(import.meta.url)("async_hooks")},2081:t=>{t.exports=e(import.meta.url)("child_process")},6113:t=>{t.exports=e(import.meta.url)("crypto")},3639:t=>{t.exports=e(import.meta.url)("domain")},2361:t=>{t.exports=e(import.meta.url)("events")},7147:t=>{t.exports=e(import.meta.url)("fs")},3685:t=>{t.exports=e(import.meta.url)("http")},5687:t=>{t.exports=e(import.meta.url)("https")},1405:t=>{t.exports=e(import.meta.url)("inspector")},1808:t=>{t.exports=e(import.meta.url)("net")},2037:t=>{t.exports=e(import.meta.url)("os")},1017:t=>{t.exports=e(import.meta.url)("path")},2781:t=>{t.exports=e(import.meta.url)("stream")},4404:t=>{t.exports=e(import.meta.url)("tls")},6224:t=>{t.exports=e(import.meta.url)("tty")},7310:t=>{t.exports=e(import.meta.url)("url")},3837:t=>{t.exports=e(import.meta.url)("util")},9796:t=>{t.exports=e(import.meta.url)("zlib")},8757:(e,t,n)=>{const s=n(4334);const r=n(7310);const o=n(3329);const i=n(3685);const a=n(5687);const c=n(3837);const u=n(7707);const l=n(9796);const p=n(2781);const d=n(2361);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}const f=_interopDefaultLegacy(s);const m=_interopDefaultLegacy(r);const h=_interopDefaultLegacy(i);const g=_interopDefaultLegacy(a);const _=_interopDefaultLegacy(c);const v=_interopDefaultLegacy(u);const b=_interopDefaultLegacy(l);const x=_interopDefaultLegacy(p);function bind(e,t){return function wrap(){return e.apply(t,arguments)}}const{toString:y}=Object.prototype;const{getPrototypeOf:E}=Object;const D=(e=>t=>{const n=y.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null));const kindOfTest=e=>{e=e.toLowerCase();return t=>D(t)===e};const typeOfTest=e=>t=>typeof t===e;const{isArray:S}=Array;const w=typeOfTest("undefined");function isBuffer(e){return e!==null&&!w(e)&&e.constructor!==null&&!w(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const C=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&C(e.buffer)}return t}const T=typeOfTest("string");const R=typeOfTest("function");const k=typeOfTest("number");const isObject=e=>e!==null&&typeof e==="object";const isBoolean=e=>e===true||e===false;const isPlainObject=e=>{if(D(e)!=="object"){return false}const t=E(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};const O=kindOfTest("Date");const F=kindOfTest("File");const A=kindOfTest("Blob");const P=kindOfTest("FileList");const isStream=e=>isObject(e)&&R(e.pipe);const isFormData=e=>{let t;return e&&(typeof FormData==="function"&&e instanceof FormData||R(e.append)&&((t=D(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))};const I=kindOfTest("URLSearchParams");const[N,M,j,B]=["ReadableStream","Request","Response","Headers"].map(kindOfTest);const trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:n=false}={}){if(e===null||typeof e==="undefined"){return}let s;let r;if(typeof e!=="object"){e=[e]}if(S(e)){for(s=0,r=e.length;s<r;s++){t.call(null,e[s],s,e)}}else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e);const o=r.length;let i;for(s=0;s<o;s++){i=r[s];t.call(null,e[i],i,e)}}}function findKey(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length;let r;while(s-- >0){r=n[s];if(t===r.toLowerCase()){return r}}return null}const L=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})();const isContextDefined=e=>!w(e)&&e!==L;function merge(){const{caseless:e}=isContextDefined(this)&&this||{};const t={};const assignValue=(n,s)=>{const r=e&&findKey(t,s)||s;if(isPlainObject(t[r])&&isPlainObject(n)){t[r]=merge(t[r],n)}else if(isPlainObject(n)){t[r]=merge({},n)}else if(S(n)){t[r]=n.slice()}else{t[r]=n}};for(let e=0,t=arguments.length;e<t;e++){arguments[e]&&forEach(arguments[e],assignValue)}return t}const extend=(e,t,n,{allOwnKeys:s}={})=>{forEach(t,((t,s)=>{if(n&&R(t)){e[s]=bind(t,n)}else{e[s]=t}}),{allOwnKeys:s});return e};const stripBOM=e=>{if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};const inherits=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});n&&Object.assign(e.prototype,n)};const toFlatObject=(e,t,n,s)=>{let r;let o;let i;const a={};t=t||{};if(e==null)return t;do{r=Object.getOwnPropertyNames(e);o=r.length;while(o-- >0){i=r[o];if((!s||s(i,e,t))&&!a[i]){t[i]=e[i];a[i]=true}}e=n!==false&&E(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t};const endsWith=(e,t,n)=>{e=String(e);if(n===undefined||n>e.length){n=e.length}n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n};const toArray=e=>{if(!e)return null;if(S(e))return e;let t=e.length;if(!k(t))return null;const n=new Array(t);while(t-- >0){n[t]=e[t]}return n};const U=(e=>t=>e&&t instanceof e)(typeof Uint8Array!=="undefined"&&E(Uint8Array));const forEachEntry=(e,t)=>{const n=e&&e[Symbol.iterator];const s=n.call(e);let r;while((r=s.next())&&!r.done){const n=r.value;t.call(e,n[0],n[1])}};const matchAll=(e,t)=>{let n;const s=[];while((n=e.exec(t))!==null){s.push(n)}return s};const $=kindOfTest("HTMLFormElement");const toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function replacer(e,t,n){return t.toUpperCase()+n}));const q=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype);const G=kindOfTest("RegExp");const reduceDescriptors=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e);const s={};forEach(n,((n,r)=>{let o;if((o=t(n,r,e))!==false){s[r]=o||n}}));Object.defineProperties(e,s)};const freezeMethods=e=>{reduceDescriptors(e,((t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1){return false}const s=e[n];if(!R(s))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}}}))};const toObjectSet=(e,t)=>{const n={};const define=e=>{e.forEach((e=>{n[e]=true}))};S(e)?define(e):define(String(e).split(t));return n};const noop=()=>{};const toFiniteNumber=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;const H="abcdefghijklmnopqrstuvwxyz";const z="0123456789";const Y={DIGIT:z,ALPHA:H,ALPHA_DIGIT:H+H.toUpperCase()+z};const generateString=(e=16,t=Y.ALPHA_DIGIT)=>{let n="";const{length:s}=t;while(e--){n+=t[Math.random()*s|0]}return n};function isSpecCompliantForm(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const toJSONObject=e=>{const t=new Array(10);const visit=(e,n)=>{if(isObject(e)){if(t.indexOf(e)>=0){return}if(!("toJSON"in e)){t[n]=e;const s=S(e)?[]:{};forEach(e,((e,t)=>{const r=visit(e,n+1);!w(r)&&(s[t]=r)}));t[n]=undefined;return s}}return e};return visit(e,0)};const V=kindOfTest("AsyncFunction");const isThenable=e=>e&&(isObject(e)||R(e))&&R(e.then)&&R(e.catch);const W=((e,t)=>{if(e){return setImmediate}return t?((e,t)=>{L.addEventListener("message",(({source:n,data:s})=>{if(n===L&&s===e){t.length&&t.shift()()}}),false);return n=>{t.push(n);L.postMessage(e,"*")}})(`axios@${Math.random()}`,[]):e=>setTimeout(e)})(typeof setImmediate==="function",R(L.postMessage));const K=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(L):typeof process!=="undefined"&&process.nextTick||W;const J={isArray:S,isArrayBuffer:C,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:T,isNumber:k,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isReadableStream:N,isRequest:M,isResponse:j,isHeaders:B,isUndefined:w,isDate:O,isFile:F,isBlob:A,isRegExp:G,isFunction:R,isStream:isStream,isURLSearchParams:I,isTypedArray:U,isFileList:P,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:D,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:$,hasOwnProperty:q,hasOwnProp:q,reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:L,isContextDefined:isContextDefined,ALPHABET:Y,generateString:generateString,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:V,isThenable:isThenable,setImmediate:W,asap:K};function AxiosError(e,t,n,s,r){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=e;this.name="AxiosError";t&&(this.code=t);n&&(this.config=n);s&&(this.request=s);r&&(this.response=r)}J.inherits(AxiosError,Error,{toJSON:function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const X=AxiosError.prototype;const Q={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Q[e]={value:e}}));Object.defineProperties(AxiosError,Q);Object.defineProperty(X,"isAxiosError",{value:true});AxiosError.from=(e,t,n,s,r,o)=>{const i=Object.create(X);J.toFlatObject(e,i,(function filter(e){return e!==Error.prototype}),(e=>e!=="isAxiosError"));AxiosError.call(i,e.message,t,n,s,r);i.cause=e;i.name=e.name;o&&Object.assign(i,o);return i};function isVisitable(e){return J.isPlainObject(e)||J.isArray(e)}function removeBrackets(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,n){if(!e)return t;return e.concat(t).map((function each(e,t){e=removeBrackets(e);return!n&&t?"["+e+"]":e})).join(n?".":"")}function isFlatArray(e){return J.isArray(e)&&!e.some(isVisitable)}const Z=J.toFlatObject(J,{},null,(function filter(e){return/^is[A-Z]/.test(e)}));function toFormData(e,t,n){if(!J.isObject(e)){throw new TypeError("target must be an object")}t=t||new(f["default"]||FormData);n=J.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,(function defined(e,t){return!J.isUndefined(t[e])}));const s=n.metaTokens;const r=n.visitor||defaultVisitor;const o=n.dots;const i=n.indexes;const a=n.Blob||typeof Blob!=="undefined"&&Blob;const c=a&&J.isSpecCompliantForm(t);if(!J.isFunction(r)){throw new TypeError("visitor must be a function")}function convertValue(e){if(e===null)return"";if(J.isDate(e)){return e.toISOString()}if(!c&&J.isBlob(e)){throw new AxiosError("Blob is not supported. Use a Buffer instead.")}if(J.isArrayBuffer(e)||J.isTypedArray(e)){return c&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function defaultVisitor(e,n,r){let a=e;if(e&&!r&&typeof e==="object"){if(J.endsWith(n,"{}")){n=s?n:n.slice(0,-2);e=JSON.stringify(e)}else if(J.isArray(e)&&isFlatArray(e)||(J.isFileList(e)||J.endsWith(n,"[]"))&&(a=J.toArray(e))){n=removeBrackets(n);a.forEach((function each(e,s){!(J.isUndefined(e)||e===null)&&t.append(i===true?renderKey([n],s,o):i===null?n:n+"[]",convertValue(e))}));return false}}if(isVisitable(e)){return true}t.append(renderKey(r,n,o),convertValue(e));return false}const u=[];const l=Object.assign(Z,{defaultVisitor:defaultVisitor,convertValue:convertValue,isVisitable:isVisitable});function build(e,n){if(J.isUndefined(e))return;if(u.indexOf(e)!==-1){throw Error("Circular reference detected in "+n.join("."))}u.push(e);J.forEach(e,(function each(e,s){const o=!(J.isUndefined(e)||e===null)&&r.call(t,e,J.isString(s)?s.trim():s,n,l);if(o===true){build(e,n?n.concat(s):[s])}}));u.pop()}if(!J.isObject(e)){throw new TypeError("data must be an object")}build(e);return t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function replacer(e){return t[e]}))}function AxiosURLSearchParams(e,t){this._pairs=[];e&&toFormData(e,this,t)}const ee=AxiosURLSearchParams.prototype;ee.append=function append(e,t){this._pairs.push([e,t])};ee.toString=function toString(e){const t=e?function(t){return e.call(this,t,encode$1)}:encode$1;return this._pairs.map((function each(e){return t(e[0])+"="+t(e[1])}),"").join("&")};function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,t,n){if(!t){return e}const s=n&&n.encode||encode;const r=n&&n.serialize;let o;if(r){o=r(t,n)}else{o=J.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,n).toString(s)}if(o){const t=e.indexOf("#");if(t!==-1){e=e.slice(0,t)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class InterceptorManager{constructor(){this.handlers=[]}use(e,t,n){this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1}eject(e){if(this.handlers[e]){this.handlers[e]=null}}clear(){if(this.handlers){this.handlers=[]}}forEach(e){J.forEach(this.handlers,(function forEachHandler(t){if(t!==null){e(t)}}))}}const te=InterceptorManager;const ne={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};const se=m["default"].URLSearchParams;const re={isNode:true,classes:{URLSearchParams:se,FormData:f["default"],Blob:typeof Blob!=="undefined"&&Blob||null},protocols:["http","https","file","data"]};const oe=typeof window!=="undefined"&&typeof document!=="undefined";const ie=(e=>oe&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator!=="undefined"&&navigator.product);const ae=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const ce=oe&&window.location.href||"http://localhost";const ue=Object.freeze({__proto__:null,hasBrowserEnv:oe,hasStandardBrowserWebWorkerEnv:ae,hasStandardBrowserEnv:ie,origin:ce});const le={...ue,...re};function toURLEncodedForm(e,t){return toFormData(e,new le.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,s){if(le.isNode&&J.isBuffer(e)){this.append(t,e.toString("base64"));return false}return s.defaultVisitor.apply(this,arguments)}},t))}function parsePropPath(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map((e=>e[0]==="[]"?"":e[1]||e[0]))}function arrayToObject(e){const t={};const n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s<r;s++){o=n[s];t[o]=e[o]}return t}function formDataToJSON(e){function buildPath(e,t,n,s){let r=e[s++];if(r==="__proto__")return true;const o=Number.isFinite(+r);const i=s>=e.length;r=!r&&J.isArray(n)?n.length:r;if(i){if(J.hasOwnProp(n,r)){n[r]=[n[r],t]}else{n[r]=t}return!o}if(!n[r]||!J.isObject(n[r])){n[r]=[]}const a=buildPath(e,t,n[r],s);if(a&&J.isArray(n[r])){n[r]=arrayToObject(n[r])}return!o}if(J.isFormData(e)&&J.isFunction(e.entries)){const t={};J.forEachEntry(e,((e,n)=>{buildPath(parsePropPath(e),n,t,0)}));return t}return null}function stringifySafely(e,t,n){if(J.isString(e)){try{(t||JSON.parse)(e);return J.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(n||JSON.stringify)(e)}const pe={transitional:ne,adapter:["xhr","http","fetch"],transformRequest:[function transformRequest(e,t){const n=t.getContentType()||"";const s=n.indexOf("application/json")>-1;const r=J.isObject(e);if(r&&J.isHTMLForm(e)){e=new FormData(e)}const o=J.isFormData(e);if(o){return s?JSON.stringify(formDataToJSON(e)):e}if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e)){return e}if(J.isArrayBufferView(e)){return e.buffer}if(J.isURLSearchParams(e)){t.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return e.toString()}let i;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1){return toURLEncodedForm(e,this.formSerializer).toString()}if((i=J.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(r||s){t.setContentType("application/json",false);return stringifySafely(e)}return e}],transformResponse:[function transformResponse(e){const t=this.transitional||pe.transitional;const n=t&&t.forcedJSONParsing;const s=this.responseType==="json";if(J.isResponse(e)||J.isReadableStream(e)){return e}if(e&&J.isString(e)&&(n&&!this.responseType||s)){const n=t&&t.silentJSONParsing;const r=!n&&s;try{return JSON.parse(e)}catch(e){if(r){if(e.name==="SyntaxError"){throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:le.classes.FormData,Blob:le.classes.Blob},validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};J.forEach(["delete","get","head","post","put","patch"],(e=>{pe.headers[e]={}}));const de=pe;const fe=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const parseHeaders=e=>{const t={};let n;let s;let r;e&&e.split("\n").forEach((function parser(e){r=e.indexOf(":");n=e.substring(0,r).trim().toLowerCase();s=e.substring(r+1).trim();if(!n||t[n]&&fe[n]){return}if(n==="set-cookie"){if(t[n]){t[n].push(s)}else{t[n]=[s]}}else{t[n]=t[n]?t[n]+", "+s:s}}));return t};const me=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){if(e===false||e==null){return e}return J.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null);const n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;while(s=n.exec(e)){t[s[1]]=s[2]}return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,n,s,r){if(J.isFunction(s)){return s.call(this,t,n)}if(r){t=n}if(!J.isString(t))return;if(J.isString(s)){return t.indexOf(s)!==-1}if(J.isRegExp(s)){return s.test(t)}}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function buildAccessors(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach((s=>{Object.defineProperty(e,s+n,{value:function(e,n,r){return this[s].call(this,t,e,n,r)},configurable:true})}))}class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,t,n){const s=this;function setHeader(e,t,n){const r=normalizeHeader(t);if(!r){throw new Error("header name must be a non-empty string")}const o=J.findKey(s,r);if(!o||s[o]===undefined||n===true||n===undefined&&s[o]!==false){s[o||t]=normalizeValue(e)}}const setHeaders=(e,t)=>J.forEach(e,((e,n)=>setHeader(e,n,t)));if(J.isPlainObject(e)||e instanceof this.constructor){setHeaders(e,t)}else if(J.isString(e)&&(e=e.trim())&&!isValidHeaderName(e)){setHeaders(parseHeaders(e),t)}else if(J.isHeaders(e)){for(const[t,s]of e.entries()){setHeader(s,t,n)}}else{e!=null&&setHeader(t,e,n)}return this}get(e,t){e=normalizeHeader(e);if(e){const n=J.findKey(this,e);if(n){const e=this[n];if(!t){return e}if(t===true){return parseTokens(e)}if(J.isFunction(t)){return t.call(this,e,n)}if(J.isRegExp(t)){return t.exec(e)}throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){e=normalizeHeader(e);if(e){const n=J.findKey(this,e);return!!(n&&this[n]!==undefined&&(!t||matchHeaderValue(this,this[n],n,t)))}return false}delete(e,t){const n=this;let s=false;function deleteHeader(e){e=normalizeHeader(e);if(e){const r=J.findKey(n,e);if(r&&(!t||matchHeaderValue(n,n[r],r,t))){delete n[r];s=true}}}if(J.isArray(e)){e.forEach(deleteHeader)}else{deleteHeader(e)}return s}clear(e){const t=Object.keys(this);let n=t.length;let s=false;while(n--){const r=t[n];if(!e||matchHeaderValue(this,this[r],r,e,true)){delete this[r];s=true}}return s}normalize(e){const t=this;const n={};J.forEach(this,((s,r)=>{const o=J.findKey(n,r);if(o){t[o]=normalizeValue(s);delete t[r];return}const i=e?formatHeader(r):String(r).trim();if(i!==r){delete t[r]}t[i]=normalizeValue(s);n[i]=true}));return this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);J.forEach(this,((n,s)=>{n!=null&&n!==false&&(t[s]=e&&J.isArray(n)?n.join(", "):n)}));return t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);t.forEach((e=>n.set(e)));return n}static accessor(e){const t=this[me]=this[me]={accessors:{}};const n=t.accessors;const s=this.prototype;function defineAccessor(e){const t=normalizeHeader(e);if(!n[t]){buildAccessors(s,e);n[t]=true}}J.isArray(e)?e.forEach(defineAccessor):defineAccessor(e);return this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(AxiosHeaders.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}));J.freezeMethods(AxiosHeaders);const he=AxiosHeaders;function transformData(e,t){const n=this||de;const s=t||n;const r=he.from(s.headers);let o=s.data;J.forEach(e,(function transform(e){o=e.call(n,o,r.normalize(),t?t.status:undefined)}));r.normalize();return o}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,t,n){AxiosError.call(this,e==null?"canceled":e,AxiosError.ERR_CANCELED,t,n);this.name="CanceledError"}J.inherits(CanceledError,AxiosError,{__CANCEL__:true});function settle(e,t,n){const s=n.config.validateStatus;if(!n.status||!s||s(n.status)){e(n)}else{t(new AxiosError("Request failed with status code "+n.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}}function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t){if(e&&!isAbsoluteURL(t)){return combineURLs(e,t)}return t}const ge="1.7.4";function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const _e=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function fromDataURI(e,t,n){const s=n&&n.Blob||le.classes.Blob;const r=parseProtocol(e);if(t===undefined&&s){t=true}if(r==="data"){e=r.length?e.slice(r.length+1):e;const n=_e.exec(e);if(!n){throw new AxiosError("Invalid URL",AxiosError.ERR_INVALID_URL)}const o=n[1];const i=n[2];const a=n[3];const c=Buffer.from(decodeURIComponent(a),i?"base64":"utf8");if(t){if(!s){throw new AxiosError("Blob is not supported",AxiosError.ERR_NOT_SUPPORT)}return new s([c],{type:o})}return c}throw new AxiosError("Unsupported protocol "+r,AxiosError.ERR_NOT_SUPPORT)}const ve=Symbol("internals");class AxiosTransformStream extends x["default"].Transform{constructor(e){e=J.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,t)=>!J.isUndefined(t[e])));super({readableHighWaterMark:e.chunkSize});const t=this[ve]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:false,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(e=>{if(e==="progress"){if(!t.isCaptured){t.isCaptured=true}}}))}_read(e){const t=this[ve];if(t.onReadCallback){t.onReadCallback()}return super._read(e)}_transform(e,t,n){const s=this[ve];const r=s.maxRate;const o=this.readableHighWaterMark;const i=s.timeWindow;const a=1e3/i;const c=r/a;const u=s.minChunkSize!==false?Math.max(s.minChunkSize,c*.01):0;const pushChunk=(e,t)=>{const n=Buffer.byteLength(e);s.bytesSeen+=n;s.bytes+=n;s.isCaptured&&this.emit("progress",s.bytesSeen);if(this.push(e)){process.nextTick(t)}else{s.onReadCallback=()=>{s.onReadCallback=null;process.nextTick(t)}}};const transformChunk=(e,t)=>{const n=Buffer.byteLength(e);let a=null;let l=o;let p;let d=0;if(r){const e=Date.now();if(!s.ts||(d=e-s.ts)>=i){s.ts=e;p=c-s.bytes;s.bytes=p<0?-p:0;d=0}p=c-s.bytes}if(r){if(p<=0){return setTimeout((()=>{t(null,e)}),i-d)}if(p<l){l=p}}if(l&&n>l&&n-l>u){a=e.subarray(l);e=e.subarray(0,l)}pushChunk(e,a?()=>{process.nextTick(t,null,a)}:t)};transformChunk(e,(function transformNextChunk(e,t){if(e){return n(e)}if(t){transformChunk(t,transformNextChunk)}else{n(null)}}))}}const be=AxiosTransformStream;const{asyncIterator:xe}=Symbol;const readBlob=async function*(e){if(e.stream){yield*e.stream()}else if(e.arrayBuffer){yield await e.arrayBuffer()}else if(e[xe]){yield*e[xe]()}else{yield e}};const ye=readBlob;const Ee=J.ALPHABET.ALPHA_DIGIT+"-_";const De=new c.TextEncoder;const Se="\r\n";const we=De.encode(Se);const Ce=2;class FormDataPart{constructor(e,t){const{escapeName:n}=this.constructor;const s=J.isString(t);let r=`Content-Disposition: form-data; name="${n(e)}"${!s&&t.name?`; filename="${n(t.name)}"`:""}${Se}`;if(s){t=De.encode(String(t).replace(/\r?\n|\r\n?/g,Se))}else{r+=`Content-Type: ${t.type||"application/octet-stream"}${Se}`}this.headers=De.encode(r+Se);this.contentLength=s?t.byteLength:t.size;this.size=this.headers.byteLength+this.contentLength+Ce;this.name=e;this.value=t}async*encode(){yield this.headers;const{value:e}=this;if(J.isTypedArray(e)){yield e}else{yield*ye(e)}yield we}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}const formDataToStream=(e,t,n)=>{const{tag:s="form-data-boundary",size:r=25,boundary:o=s+"-"+J.generateString(r,Ee)}=n||{};if(!J.isFormData(e)){throw TypeError("FormData instance required")}if(o.length<1||o.length>70){throw Error("boundary must be 10-70 characters long")}const i=De.encode("--"+o+Se);const a=De.encode("--"+o+"--"+Se+Se);let c=a.byteLength;const u=Array.from(e.entries()).map((([e,t])=>{const n=new FormDataPart(e,t);c+=n.size;return n}));c+=i.byteLength*u.length;c=J.toFiniteNumber(c);const l={"Content-Type":`multipart/form-data; boundary=${o}`};if(Number.isFinite(c)){l["Content-Length"]=c}t&&t(l);return p.Readable.from(async function*(){for(const e of u){yield i;yield*e.encode()}yield a}())};const Te=formDataToStream;class ZlibHeaderTransformStream extends x["default"].Transform{__transform(e,t,n){this.push(e);n()}_transform(e,t,n){if(e.length!==0){this._transform=this.__transform;if(e[0]!==120){const e=Buffer.alloc(2);e[0]=120;e[1]=156;this.push(e,t)}}this.__transform(e,t,n)}}const Re=ZlibHeaderTransformStream;const callbackify=(e,t)=>J.isAsyncFn(e)?function(...n){const s=n.pop();e.apply(this,n).then((e=>{try{t?s(null,...t(e)):s(null,e)}catch(e){s(e)}}),s)}:e;const ke=callbackify;function speedometer(e,t){e=e||10;const n=new Array(e);const s=new Array(e);let r=0;let o=0;let i;t=t!==undefined?t:1e3;return function push(a){const c=Date.now();const u=s[o];if(!i){i=c}n[r]=a;s[r]=c;let l=o;let p=0;while(l!==r){p+=n[l++];l=l%e}r=(r+1)%e;if(r===o){o=(o+1)%e}if(c-i<t){return}const d=u&&c-u;return d?Math.round(p*1e3/d):undefined}}function throttle(e,t){let n=0;let s=1e3/t;let r;let o;const invoke=(t,s=Date.now())=>{n=s;r=null;if(o){clearTimeout(o);o=null}e.apply(null,t)};const throttled=(...e)=>{const t=Date.now();const i=t-n;if(i>=s){invoke(e,t)}else{r=e;if(!o){o=setTimeout((()=>{o=null;invoke(r)}),s-i)}}};const flush=()=>r&&invoke(r);return[throttled,flush]}const progressEventReducer=(e,t,n=3)=>{let s=0;const r=speedometer(50,250);return throttle((n=>{const o=n.loaded;const i=n.lengthComputable?n.total:undefined;const a=o-s;const c=r(a);const u=o<=i;s=o;const l={loaded:o,total:i,progress:i?o/i:undefined,bytes:a,rate:c?c:undefined,estimated:c&&i&&u?(i-o)/c:undefined,event:n,lengthComputable:i!=null,[t?"download":"upload"]:true};e(l)}),n)};const progressEventDecorator=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]};const asyncDecorator=e=>(...t)=>J.asap((()=>e(...t)));const Oe={flush:b["default"].constants.Z_SYNC_FLUSH,finishFlush:b["default"].constants.Z_SYNC_FLUSH};const Fe={flush:b["default"].constants.BROTLI_OPERATION_FLUSH,finishFlush:b["default"].constants.BROTLI_OPERATION_FLUSH};const Ae=J.isFunction(b["default"].createBrotliDecompress);const{http:Pe,https:Ie}=v["default"];const Ne=/https:?/;const Me=le.protocols.map((e=>e+":"));const flushOnFinish=(e,[t,n])=>{e.on("end",n).on("error",n);return t};function dispatchBeforeRedirect(e,t){if(e.beforeRedirects.proxy){e.beforeRedirects.proxy(e)}if(e.beforeRedirects.config){e.beforeRedirects.config(e,t)}}function setProxy(e,t,n){let s=t;if(!s&&s!==false){const e=o.getProxyForUrl(n);if(e){s=new URL(e)}}if(s){if(s.username){s.auth=(s.username||"")+":"+(s.password||"")}if(s.auth){if(s.auth.username||s.auth.password){s.auth=(s.auth.username||"")+":"+(s.auth.password||"")}const t=Buffer.from(s.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=s.hostname||s.host;e.hostname=t;e.host=t;e.port=s.port;e.path=n;if(s.protocol){e.protocol=s.protocol.includes(":")?s.protocol:`${s.protocol}:`}}e.beforeRedirects.proxy=function beforeRedirect(e){setProxy(e,t,e.href)}}const je=typeof process!=="undefined"&&J.kindOf(process)==="process";const wrapAsync=e=>new Promise(((t,n)=>{let s;let r;const done=(e,t)=>{if(r)return;r=true;s&&s(e,t)};const _resolve=e=>{done(e);t(e)};const _reject=e=>{done(e,true);n(e)};e(_resolve,_reject,(e=>s=e)).catch(_reject)}));const resolveFamily=({address:e,family:t})=>{if(!J.isString(e)){throw TypeError("address must be a string")}return{address:e,family:t||(e.indexOf(".")<0?6:4)}};const buildAddressEntry=(e,t)=>resolveFamily(J.isObject(e)?e:{address:e,family:t});const Be=je&&function httpAdapter(e){return wrapAsync((async function dispatchHttpRequest(t,n,s){let{data:r,lookup:o,family:i}=e;const{responseType:a,responseEncoding:c}=e;const u=e.method.toUpperCase();let l;let p=false;let f;if(o){const e=ke(o,(e=>J.isArray(e)?e:[e]));o=(t,n,s)=>{e(t,n,((e,t,r)=>{if(e){return s(e)}const o=J.isArray(t)?t.map((e=>buildAddressEntry(e))):[buildAddressEntry(t,r)];n.all?s(e,o):s(e,o[0].address,o[0].family)}))}}const m=new d.EventEmitter;const onFinished=()=>{if(e.cancelToken){e.cancelToken.unsubscribe(abort)}if(e.signal){e.signal.removeEventListener("abort",abort)}m.removeAllListeners()};s(((e,t)=>{l=true;if(t){p=true;onFinished()}}));function abort(t){m.emit("abort",!t||t.type?new CanceledError(null,e,f):t)}m.once("abort",n);if(e.cancelToken||e.signal){e.cancelToken&&e.cancelToken.subscribe(abort);if(e.signal){e.signal.aborted?abort():e.signal.addEventListener("abort",abort)}}const v=buildFullPath(e.baseURL,e.url);const y=new URL(v,J.hasBrowserEnv?le.origin:undefined);const E=y.protocol||Me[0];if(E==="data:"){let s;if(u!=="GET"){return settle(t,n,{status:405,statusText:"method not allowed",headers:{},config:e})}try{s=fromDataURI(e.url,a==="blob",{Blob:e.env&&e.env.Blob})}catch(t){throw AxiosError.from(t,AxiosError.ERR_BAD_REQUEST,e)}if(a==="text"){s=s.toString(c);if(!c||c==="utf8"){s=J.stripBOM(s)}}else if(a==="stream"){s=x["default"].Readable.from(s)}return settle(t,n,{data:s,status:200,statusText:"OK",headers:new he,config:e})}if(Me.indexOf(E)===-1){return n(new AxiosError("Unsupported protocol "+E,AxiosError.ERR_BAD_REQUEST,e))}const D=he.from(e.headers).normalize();D.set("User-Agent","axios/"+ge,false);const{onUploadProgress:S,onDownloadProgress:w}=e;const C=e.maxRate;let T=undefined;let R=undefined;if(J.isSpecCompliantForm(r)){const e=D.getContentType(/boundary=([-_\w\d]{10,70})/i);r=Te(r,(e=>{D.set(e)}),{tag:`axios-${ge}-boundary`,boundary:e&&e[1]||undefined})}else if(J.isFormData(r)&&J.isFunction(r.getHeaders)){D.set(r.getHeaders());if(!D.hasContentLength()){try{const e=await _["default"].promisify(r.getLength).call(r);Number.isFinite(e)&&e>=0&&D.setContentLength(e)}catch(e){}}}else if(J.isBlob(r)){r.size&&D.setContentType(r.type||"application/octet-stream");D.setContentLength(r.size||0);r=x["default"].Readable.from(ye(r))}else if(r&&!J.isStream(r)){if(Buffer.isBuffer(r));else if(J.isArrayBuffer(r)){r=Buffer.from(new Uint8Array(r))}else if(J.isString(r)){r=Buffer.from(r,"utf-8")}else{return n(new AxiosError("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",AxiosError.ERR_BAD_REQUEST,e))}D.setContentLength(r.length,false);if(e.maxBodyLength>-1&&r.length>e.maxBodyLength){return n(new AxiosError("Request body larger than maxBodyLength limit",AxiosError.ERR_BAD_REQUEST,e))}}const k=J.toFiniteNumber(D.getContentLength());if(J.isArray(C)){T=C[0];R=C[1]}else{T=R=C}if(r&&(S||T)){if(!J.isStream(r)){r=x["default"].Readable.from(r,{objectMode:false})}r=x["default"].pipeline([r,new be({maxRate:J.toFiniteNumber(T)})],J.noop);S&&r.on("progress",flushOnFinish(r,progressEventDecorator(k,progressEventReducer(asyncDecorator(S),false,3))))}let O=undefined;if(e.auth){const t=e.auth.username||"";const n=e.auth.password||"";O=t+":"+n}if(!O&&y.username){const e=y.username;const t=y.password;O=e+":"+t}O&&D.delete("authorization");let F;try{F=buildURL(y.pathname+y.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const s=new Error(t.message);s.config=e;s.url=e.url;s.exists=true;return n(s)}D.set("Accept-Encoding","gzip, compress, deflate"+(Ae?", br":""),false);const A={path:F,method:u,headers:D.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:O,protocol:E,family:i,beforeRedirect:dispatchBeforeRedirect,beforeRedirects:{}};!J.isUndefined(o)&&(A.lookup=o);if(e.socketPath){A.socketPath=e.socketPath}else{A.hostname=y.hostname;A.port=y.port;setProxy(A,e.proxy,E+"//"+y.hostname+(y.port?":"+y.port:"")+A.path)}let P;const I=Ne.test(A.protocol);A.agent=I?e.httpsAgent:e.httpAgent;if(e.transport){P=e.transport}else if(e.maxRedirects===0){P=I?g["default"]:h["default"]}else{if(e.maxRedirects){A.maxRedirects=e.maxRedirects}if(e.beforeRedirect){A.beforeRedirects.config=e.beforeRedirect}P=I?Ie:Pe}if(e.maxBodyLength>-1){A.maxBodyLength=e.maxBodyLength}else{A.maxBodyLength=Infinity}if(e.insecureHTTPParser){A.insecureHTTPParser=e.insecureHTTPParser}f=P.request(A,(function handleResponse(s){if(f.destroyed)return;const r=[s];const o=+s.headers["content-length"];if(w||R){const e=new be({maxRate:J.toFiniteNumber(R)});w&&e.on("progress",flushOnFinish(e,progressEventDecorator(o,progressEventReducer(asyncDecorator(w),true,3))));r.push(e)}let i=s;const l=s.req||f;if(e.decompress!==false&&s.headers["content-encoding"]){if(u==="HEAD"||s.statusCode===204){delete s.headers["content-encoding"]}switch((s.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":r.push(b["default"].createUnzip(Oe));delete s.headers["content-encoding"];break;case"deflate":r.push(new Re);r.push(b["default"].createUnzip(Oe));delete s.headers["content-encoding"];break;case"br":if(Ae){r.push(b["default"].createBrotliDecompress(Fe));delete s.headers["content-encoding"]}}}i=r.length>1?x["default"].pipeline(r,J.noop):r[0];const d=x["default"].finished(i,(()=>{d();onFinished()}));const h={status:s.statusCode,statusText:s.statusMessage,headers:new he(s.headers),config:e,request:l};if(a==="stream"){h.data=i;settle(t,n,h)}else{const s=[];let r=0;i.on("data",(function handleStreamData(t){s.push(t);r+=t.length;if(e.maxContentLength>-1&&r>e.maxContentLength){p=true;i.destroy();n(new AxiosError("maxContentLength size of "+e.maxContentLength+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,l))}}));i.on("aborted",(function handlerStreamAborted(){if(p){return}const t=new AxiosError("maxContentLength size of "+e.maxContentLength+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,l);i.destroy(t);n(t)}));i.on("error",(function handleStreamError(t){if(f.destroyed)return;n(AxiosError.from(t,null,e,l))}));i.on("end",(function handleStreamEnd(){try{let e=s.length===1?s[0]:Buffer.concat(s);if(a!=="arraybuffer"){e=e.toString(c);if(!c||c==="utf8"){e=J.stripBOM(e)}}h.data=e}catch(t){return n(AxiosError.from(t,null,e,h.request,h))}settle(t,n,h)}))}m.once("abort",(e=>{if(!i.destroyed){i.emit("error",e);i.destroy()}}))}));m.once("abort",(e=>{n(e);f.destroy(e)}));f.on("error",(function handleRequestError(t){n(AxiosError.from(t,null,e,f))}));f.on("socket",(function handleRequestSocket(e){e.setKeepAlive(true,1e3*60)}));if(e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t)){n(new AxiosError("error trying to parse `config.timeout` to int",AxiosError.ERR_BAD_OPTION_VALUE,e,f));return}f.setTimeout(t,(function handleRequestTimeout(){if(l)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const s=e.transitional||ne;if(e.timeoutErrorMessage){t=e.timeoutErrorMessage}n(new AxiosError(t,s.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,f));abort()}))}if(J.isStream(r)){let t=false;let n=false;r.on("end",(()=>{t=true}));r.once("error",(e=>{n=true;f.destroy(e)}));r.on("close",(()=>{if(!t&&!n){abort(new CanceledError("Request stream has been aborted",e,f))}}));r.pipe(f)}else{f.end(r)}}))};const Le=le.hasStandardBrowserEnv?function standardBrowserEnv(){const e=/(msie|trident)/i.test(navigator.userAgent);const t=document.createElement("a");let n;function resolveURL(n){let s=n;if(e){t.setAttribute("href",s);s=t.href}t.setAttribute("href",s);return{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}n=resolveURL(window.location.href);return function isURLSameOrigin(e){const t=J.isString(e)?resolveURL(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}();const Ue=le.hasStandardBrowserEnv?{write(e,t,n,s,r,o){const i=[e+"="+encodeURIComponent(t)];J.isNumber(n)&&i.push("expires="+new Date(n).toGMTString());J.isString(s)&&i.push("path="+s);J.isString(r)&&i.push("domain="+r);o===true&&i.push("secure");document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};const headersToObject=e=>e instanceof he?{...e}:e;function mergeConfig(e,t){t=t||{};const n={};function getMergedValue(e,t,n){if(J.isPlainObject(e)&&J.isPlainObject(t)){return J.merge.call({caseless:n},e,t)}else if(J.isPlainObject(t)){return J.merge({},t)}else if(J.isArray(t)){return t.slice()}return t}function mergeDeepProperties(e,t,n){if(!J.isUndefined(t)){return getMergedValue(e,t,n)}else if(!J.isUndefined(e)){return getMergedValue(undefined,e,n)}}function valueFromConfig2(e,t){if(!J.isUndefined(t)){return getMergedValue(undefined,t)}}function defaultToConfig2(e,t){if(!J.isUndefined(t)){return getMergedValue(undefined,t)}else if(!J.isUndefined(e)){return getMergedValue(undefined,e)}}function mergeDirectKeys(n,s,r){if(r in t){return getMergedValue(n,s)}else if(r in e){return getMergedValue(undefined,n)}}const s={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(e,t)=>mergeDeepProperties(headersToObject(e),headersToObject(t),true)};J.forEach(Object.keys(Object.assign({},e,t)),(function computeConfigValue(r){const o=s[r]||mergeDeepProperties;const i=o(e[r],t[r],r);J.isUndefined(i)&&o!==mergeDirectKeys||(n[r]=i)}));return n}const resolveConfig=e=>{const t=mergeConfig({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:a}=t;t.headers=i=he.from(i);t.url=buildURL(buildFullPath(t.baseURL,t.url),e.params,e.paramsSerializer);if(a){i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")))}let c;if(J.isFormData(n)){if(le.hasStandardBrowserEnv||le.hasStandardBrowserWebWorkerEnv){i.setContentType(undefined)}else if((c=i.getContentType())!==false){const[e,...t]=c?c.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}}if(le.hasStandardBrowserEnv){s&&J.isFunction(s)&&(s=s(t));if(s||s!==false&&Le(t.url)){const e=r&&o&&Ue.read(o);if(e){i.set(r,e)}}}return t};const $e=typeof XMLHttpRequest!=="undefined";const qe=$e&&function(e){return new Promise((function dispatchXhrRequest(t,n){const s=resolveConfig(e);let r=s.data;const o=he.from(s.headers).normalize();let{responseType:i,onUploadProgress:a,onDownloadProgress:c}=s;let u;let l,p;let d,f;function done(){d&&d();f&&f();s.cancelToken&&s.cancelToken.unsubscribe(u);s.signal&&s.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(s.method.toUpperCase(),s.url,true);m.timeout=s.timeout;function onloadend(){if(!m){return}const s=he.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());const r=!i||i==="text"||i==="json"?m.responseText:m.response;const o={data:r,status:m.status,statusText:m.statusText,headers:s,config:e,request:m};settle((function _resolve(e){t(e);done()}),(function _reject(e){n(e);done()}),o);m=null}if("onloadend"in m){m.onloadend=onloadend}else{m.onreadystatechange=function handleLoad(){if(!m||m.readyState!==4){return}if(m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)){return}setTimeout(onloadend)}}m.onabort=function handleAbort(){if(!m){return}n(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,m));m=null};m.onerror=function handleError(){n(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,m));m=null};m.ontimeout=function handleTimeout(){let t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const r=s.transitional||ne;if(s.timeoutErrorMessage){t=s.timeoutErrorMessage}n(new AxiosError(t,r.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,m));m=null};r===undefined&&o.setContentType(null);if("setRequestHeader"in m){J.forEach(o.toJSON(),(function setRequestHeader(e,t){m.setRequestHeader(t,e)}))}if(!J.isUndefined(s.withCredentials)){m.withCredentials=!!s.withCredentials}if(i&&i!=="json"){m.responseType=s.responseType}if(c){[p,f]=progressEventReducer(c,true);m.addEventListener("progress",p)}if(a&&m.upload){[l,d]=progressEventReducer(a);m.upload.addEventListener("progress",l);m.upload.addEventListener("loadend",d)}if(s.cancelToken||s.signal){u=t=>{if(!m){return}n(!t||t.type?new CanceledError(null,e,m):t);m.abort();m=null};s.cancelToken&&s.cancelToken.subscribe(u);if(s.signal){s.signal.aborted?u():s.signal.addEventListener("abort",u)}}const h=parseProtocol(s.url);if(h&&le.protocols.indexOf(h)===-1){n(new AxiosError("Unsupported protocol "+h+":",AxiosError.ERR_BAD_REQUEST,e));return}m.send(r||null)}))};const composeSignals=(e,t)=>{let n=new AbortController;let s;const onabort=function(e){if(!s){s=true;unsubscribe();const t=e instanceof Error?e:this.reason;n.abort(t instanceof AxiosError?t:new CanceledError(t instanceof Error?t.message:t))}};let r=t&&setTimeout((()=>{onabort(new AxiosError(`timeout ${t} of ms exceeded`,AxiosError.ETIMEDOUT))}),t);const unsubscribe=()=>{if(e){r&&clearTimeout(r);r=null;e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",onabort):e.unsubscribe(onabort))}));e=null}};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",onabort)));const{signal:o}=n;o.unsubscribe=unsubscribe;return[o,()=>{r&&clearTimeout(r);r=null}]};const Ge=composeSignals;const streamChunk=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let s=0;let r;while(s<n){r=s+t;yield e.slice(s,r);s=r}};const readBytes=async function*(e,t,n){for await(const s of e){yield*streamChunk(ArrayBuffer.isView(s)?s:await n(String(s)),t)}};const trackStream=(e,t,n,s,r)=>{const o=readBytes(e,t,r);let i=0;let a;let _onFinish=e=>{if(!a){a=true;s&&s(e)}};return new ReadableStream({async pull(e){try{const{done:t,value:s}=await o.next();if(t){_onFinish();e.close();return}let r=s.byteLength;if(n){let e=i+=r;n(e)}e.enqueue(new Uint8Array(s))}catch(e){_onFinish(e);throw e}},cancel(e){_onFinish(e);return o.return()}},{highWaterMark:2})};const He=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function";const ze=He&&typeof ReadableStream==="function";const Ye=He&&(typeof TextEncoder==="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer()));const test=(e,...t)=>{try{return!!e(...t)}catch(e){return false}};const Ve=ze&&test((()=>{let e=false;const t=new Request(le.origin,{body:new ReadableStream,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");return e&&!t}));const We=64*1024;const Ke=ze&&test((()=>J.isReadableStream(new Response("").body)));const Je={stream:Ke&&(e=>e.body)};He&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Je[t]&&(Je[t]=J.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new AxiosError(`Response type '${t}' is not supported`,AxiosError.ERR_NOT_SUPPORT,n)})}))})(new Response);const getBodyLength=async e=>{if(e==null){return 0}if(J.isBlob(e)){return e.size}if(J.isSpecCompliantForm(e)){return(await new Request(e).arrayBuffer()).byteLength}if(J.isArrayBufferView(e)||J.isArrayBuffer(e)){return e.byteLength}if(J.isURLSearchParams(e)){e=e+""}if(J.isString(e)){return(await Ye(e)).byteLength}};const resolveBodyLength=async(e,t)=>{const n=J.toFiniteNumber(e.getContentLength());return n==null?getBodyLength(t):n};const Xe=He&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:o,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:p="same-origin",fetchOptions:d}=resolveConfig(e);u=u?(u+"").toLowerCase():"text";let[f,m]=r||o||i?Ge([r,o],i):[];let h,g;const onFinish=()=>{!h&&setTimeout((()=>{f&&f.unsubscribe()}));h=true};let _;try{if(c&&Ve&&n!=="get"&&n!=="head"&&(_=await resolveBodyLength(l,s))!==0){let e=new Request(t,{method:"POST",body:s,duplex:"half"});let n;if(J.isFormData(s)&&(n=e.headers.get("content-type"))){l.setContentType(n)}if(e.body){const[t,n]=progressEventDecorator(_,progressEventReducer(asyncDecorator(c)));s=trackStream(e.body,We,t,n,Ye)}}if(!J.isString(p)){p=p?"include":"omit"}g=new Request(t,{...d,signal:f,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:s,duplex:"half",credentials:p});let r=await fetch(g);const o=Ke&&(u==="stream"||u==="response");if(Ke&&(a||o)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=r[t]}));const t=J.toFiniteNumber(r.headers.get("content-length"));const[n,s]=a&&progressEventDecorator(t,progressEventReducer(asyncDecorator(a),true))||[];r=new Response(trackStream(r.body,We,n,(()=>{s&&s();o&&onFinish()}),Ye),e)}u=u||"text";let i=await Je[J.findKey(Je,u)||"text"](r,e);!o&&onFinish();m&&m();return await new Promise(((t,n)=>{settle(t,n,{data:i,headers:he.from(r.headers),status:r.status,statusText:r.statusText,config:e,request:g})}))}catch(t){onFinish();if(t&&t.name==="TypeError"&&/fetch/i.test(t.message)){throw Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,g),{cause:t.cause||t})}throw AxiosError.from(t,t&&t.code,e,g)}});const Qe={http:Be,xhr:qe,fetch:Xe};J.forEach(Qe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const renderReason=e=>`- ${e}`;const isResolvedHandle=e=>J.isFunction(e)||e===null||e===false;const Ze={getAdapter:e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let n;let s;const r={};for(let o=0;o<t;o++){n=e[o];let t;s=n;if(!isResolvedHandle(n)){s=Qe[(t=String(n)).toLowerCase()];if(s===undefined){throw new AxiosError(`Unknown adapter '${t}'`)}}if(s){break}r[t||"#"+o]=s}if(!s){const e=Object.entries(r).map((([e,t])=>`adapter ${e} `+(t===false?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified";throw new AxiosError(`There is no suitable adapter to dispatch the request `+n,"ERR_NOT_SUPPORT")}return s},adapters:Qe};function throwIfCancellationRequested(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new CanceledError(null,e)}}function dispatchRequest(e){throwIfCancellationRequested(e);e.headers=he.from(e.headers);e.data=transformData.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}const t=Ze.getAdapter(e.adapter||de.adapter);return t(e).then((function onAdapterResolution(t){throwIfCancellationRequested(e);t.data=transformData.call(e,e.transformResponse,t);t.headers=he.from(t.headers);return t}),(function onAdapterRejection(t){if(!isCancel(t)){throwIfCancellationRequested(e);if(t&&t.response){t.response.data=transformData.call(e,e.transformResponse,t.response);t.response.headers=he.from(t.response.headers)}}return Promise.reject(t)}))}const et={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{et[e]=function validator(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const tt={};et.transitional=function transitional(e,t,n){function formatMessage(e,t){return"[Axios v"+ge+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,s,r)=>{if(e===false){throw new AxiosError(formatMessage(s," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED)}if(t&&!tt[s]){tt[s]=true;console.warn(formatMessage(s," has been deprecated since v"+t+" and will be removed in the near future"))}return e?e(n,s,r):true}};function assertOptions(e,t,n){if(typeof e!=="object"){throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE)}const s=Object.keys(e);let r=s.length;while(r-- >0){const o=s[r];const i=t[o];if(i){const t=e[o];const n=t===undefined||i(t,o,e);if(n!==true){throw new AxiosError("option "+o+" must be "+n,AxiosError.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new AxiosError("Unknown option "+o,AxiosError.ERR_BAD_OPTION)}}}const nt={assertOptions:assertOptions,validators:et};const st=nt.validators;class Axios{constructor(e){this.defaults=e;this.interceptors={request:new te,response:new te}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{if(!e.stack){e.stack=n}else if(n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))){e.stack+="\n"+n}}catch(e){}}throw e}}_request(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=mergeConfig(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:r}=t;if(n!==undefined){nt.assertOptions(n,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},false)}if(s!=null){if(J.isFunction(s)){t.paramsSerializer={serialize:s}}else{nt.assertOptions(s,{encode:st.function,serialize:st.function},true)}}t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=r&&J.merge(r.common,r[t.method]);r&&J.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]}));t.headers=he.concat(o,r);const i=[];let a=true;this.interceptors.request.forEach((function unshiftRequestInterceptors(e){if(typeof e.runWhen==="function"&&e.runWhen(t)===false){return}a=a&&e.synchronous;i.unshift(e.fulfilled,e.rejected)}));const c=[];this.interceptors.response.forEach((function pushResponseInterceptors(e){c.push(e.fulfilled,e.rejected)}));let u;let l=0;let p;if(!a){const e=[dispatchRequest.bind(this),undefined];e.unshift.apply(e,i);e.push.apply(e,c);p=e.length;u=Promise.resolve(t);while(l<p){u=u.then(e[l++],e[l++])}return u}p=i.length;let d=t;l=0;while(l<p){const e=i[l++];const t=i[l++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=dispatchRequest.call(this,d)}catch(e){return Promise.reject(e)}l=0;p=c.length;while(l<p){u=u.then(c[l++],c[l++])}return u}getUri(e){e=mergeConfig(this.defaults,e);const t=buildFullPath(e.baseURL,e.url);return buildURL(t,e.params,e.paramsSerializer)}}J.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(mergeConfig(n||{},{method:e,url:t,data:(n||{}).data}))}}));J.forEach(["post","put","patch"],(function forEachMethodWithData(e){function generateHTTPMethod(t){return function httpMethod(n,s,r){return this.request(mergeConfig(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}Axios.prototype[e]=generateHTTPMethod();Axios.prototype[e+"Form"]=generateHTTPMethod(true)}));const rt=Axios;class CancelToken{constructor(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}let t;this.promise=new Promise((function promiseExecutor(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0){n._listeners[t](e)}n._listeners=null}));this.promise.then=e=>{let t;const s=new Promise((e=>{n.subscribe(e);t=e})).then(e);s.cancel=function reject(){n.unsubscribe(t)};return s};e((function cancel(e,s,r){if(n.reason){return}n.reason=new CanceledError(e,s,r);t(n.reason)}))}throwIfRequested(){if(this.reason){throw this.reason}}subscribe(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}}unsubscribe(e){if(!this._listeners){return}const t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}}static source(){let e;const t=new CancelToken((function executor(t){e=t}));return{token:t,cancel:e}}}const ot=CancelToken;function spread(e){return function wrap(t){return e.apply(null,t)}}function isAxiosError(e){return J.isObject(e)&&e.isAxiosError===true}const it={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(it).forEach((([e,t])=>{it[t]=e}));const at=it;function createInstance(e){const t=new rt(e);const n=bind(rt.prototype.request,t);J.extend(n,rt.prototype,t,{allOwnKeys:true});J.extend(n,t,null,{allOwnKeys:true});n.create=function create(t){return createInstance(mergeConfig(e,t))};return n}const ct=createInstance(de);ct.Axios=rt;ct.CanceledError=CanceledError;ct.CancelToken=ot;ct.isCancel=isCancel;ct.VERSION=ge;ct.toFormData=toFormData;ct.AxiosError=AxiosError;ct.Cancel=ct.CanceledError;ct.all=function all(e){return Promise.all(e)};ct.spread=spread;ct.isAxiosError=isAxiosError;ct.mergeConfig=mergeConfig;ct.AxiosHeaders=he;ct.formToJSON=e=>formDataToJSON(J.isHTMLForm(e)?new FormData(e):e);ct.getAdapter=Ze.getAdapter;ct.HttpStatusCode=at;ct.default=ct;e.exports=ct},6374:e=>{e.exports=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots13":{"interval":80,"frames":["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"sand":{"interval":80,"frames":["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"binary":{"interval":80,"frames":["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","❤️ "]},"clock":{"interval":100,"frames":["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},"fistBump":{"interval":80,"frames":["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},"soccerHeader":{"interval":80,"frames":[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},"mindblown":{"interval":160,"frames":["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},"speaker":{"interval":160,"frames":["🔈 ","🔉 ","🔊 ","🔉 "]},"orangePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},"bluePulse":{"interval":100,"frames":["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"orangeBluePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"timeTravel":{"interval":100,"frames":["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},"dwarfFortress":{"interval":80,"frames":[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]}}')},9968:e=>{e.exports=JSON.parse('{"name":"dotenv","version":"16.3.1","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://github.com/motdotla/dotenv?sponsor=1","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')},3765:e=>{e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}};var n={};function __nccwpck_require__(e){var s=n[e];if(s!==undefined){return s.exports}var r=n[e]={id:e,loaded:false,exports:{}};var o=true;try{t[e].call(r.exports,r,r.exports,__nccwpck_require__);o=false}finally{if(o)delete n[e]}r.loaded=true;return r.exports}__nccwpck_require__.m=t;(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var n in t){if(__nccwpck_require__.o(t,n)&&!__nccwpck_require__.o(e,n)){Object.defineProperty(e,n,{enumerable:true,get:t[n]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();(()=>{var e;if(typeof import.meta.url==="string")e=import.meta.url;if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");__nccwpck_require__.p=e})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";(()=>{__nccwpck_require__.b=new URL("./",import.meta.url);var e={179:0}})();var s={};(()=>{__nccwpck_require__.d(s,{L:()=>createApi,G:()=>exec});var t=__nccwpck_require__(5374);var n=__nccwpck_require__(2437);var r=__nccwpck_require__(1383);const o={i8:"2.3.0"};var i=__nccwpck_require__(6063);const a="zuplo-user-id";const c="https://e98d81e78b23b65fa607473823a9957a@o1036703.ingest.sentry.io/4505953760313344";const u=1e3;const l="phc_LDSwSTOvIjiDDZql2g54Q7xEXoQ0EN9RMYb3STbdz1V";const p=e(import.meta.url)("node:child_process");const d=e(import.meta.url)("node:crypto");const f={skipped:"",native:"%windir%\\System32",mixed:"%windir%\\sysnative\\cmd.exe /c %windir%\\System32"};const m={darwin:"ioreg -rd1 -c IOPlatformExpertDevice",win32:`${f[isWindowsProcessMixedOrNativeArchitecture()]}\\REG.exe `+"QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography "+"/v MachineGuid",linux:"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :"};function isWindowsProcessMixedOrNativeArchitecture(){if(process.platform!=="win32"){return"skipped"}if(process.arch==="ia32"&&process.env["PROCESSOR_ARCHITEW6432"]){return"mixed"}return"native"}function hash(e){return(0,d.createHash)("sha256").update(e).digest("hex")}function expose(e){switch(process.platform){case"darwin":return e.split("IOPlatformUUID")[1].split("\n")[0].replace(/=|\s+]"/gi,"").toLowerCase();case"win32":return e.toString().split("REG_SZ")[1].replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"linux":return e.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"freebsd":return e.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();default:throw new Error(`Unsupported platform: ${process.platform}`)}}function machineId(){switch(process.platform){case"darwin":case"win32":case"linux":return hash(expose((0,p.execSync)(m[process.platform]).toString()));default:return"e16fc483-5593-4d71-b485-a6533693da9b"}}let h;let g;function init(){if(process.env.ZUPLO_DO_NOT_TRACK){return undefined}h=new i.AR(l,{host:"https://app.posthog.com",flushAt:1,flushInterval:1});g=t.SS.filter((e=>e.name=="Context"))[0];return h}async function captureEvent({argv:e,event:t,properties:n,groups:s,sendFeatureFlags:r,timestamp:o,disableGeoip:i}){try{if(h===undefined){init()}if(h){n=n??{};n.$set_once=n.$set_once??{};if(e[a]&&typeof e[a]==="string"){n.$set_once["user-id"]=e[a]}if(e.account&&typeof e.account==="string"){n.$set_once["account"]=e["account"]}if(e.project&&typeof e.project==="string"){n.$set_once["project"]=e["project"]}if(process.env.CI){n["ci"]=process.env.CI}if(g&&g.addContext){await g.addContext(n)}h?.capture({distinctId:e[a]||machineId(),event:t,properties:n,groups:s,sendFeatureFlags:r,timestamp:o,disableGeoip:i})}}catch(e){}}async function shutdownAnalytics(){return h?.shutdown()}const _=10;const wrapAnsi16=(e=0)=>t=>`[${t+e}m`;const wrapAnsi256=(e=0)=>t=>`[${38+e};5;${t}m`;const wrapAnsi16m=(e=0)=>(t,n,s)=>`[${38+e};2;${t};${n};${s}m`;const v={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],blackBright:[90,39],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};const b=Object.keys(v.modifier);const x=Object.keys(v.color);const y=Object.keys(v.bgColor);const E=[...x,...y];function assembleStyles(){const e=new Map;for(const[t,n]of Object.entries(v)){for(const[t,s]of Object.entries(n)){v[t]={open:`[${s[0]}m`,close:`[${s[1]}m`};n[t]=v[t];e.set(s[0],s[1])}Object.defineProperty(v,t,{value:n,enumerable:false})}Object.defineProperty(v,"codes",{value:e,enumerable:false});v.color.close="[39m";v.bgColor.close="[49m";v.color.ansi=wrapAnsi16();v.color.ansi256=wrapAnsi256();v.color.ansi16m=wrapAnsi16m();v.bgColor.ansi=wrapAnsi16(_);v.bgColor.ansi256=wrapAnsi256(_);v.bgColor.ansi16m=wrapAnsi16m(_);Object.defineProperties(v,{rgbToAnsi256:{value(e,t,n){if(e===t&&t===n){if(e<8){return 16}if(e>248){return 231}return Math.round((e-8)/247*24)+232}return 16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:false},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t){return[0,0,0]}let[n]=t;if(n.length===3){n=[...n].map((e=>e+e)).join("")}const s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},enumerable:false},hexToAnsi256:{value:e=>v.rgbToAnsi256(...v.hexToRgb(e)),enumerable:false},ansi256ToAnsi:{value(e){if(e<8){return 30+e}if(e<16){return 90+(e-8)}let t;let n;let s;if(e>=232){t=((e-232)*10+8)/255;n=t;s=t}else{e-=16;const r=e%36;t=Math.floor(e/36)/5;n=Math.floor(r/6)/5;s=r%6/5}const r=Math.max(t,n,s)*2;if(r===0){return 30}let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(t));if(r===2){o+=60}return o},enumerable:false},rgbToAnsi:{value:(e,t,n)=>v.ansi256ToAnsi(v.rgbToAnsi256(e,t,n)),enumerable:false},hexToAnsi:{value:e=>v.ansi256ToAnsi(v.hexToAnsi256(e)),enumerable:false}});return v}const D=assembleStyles();const S=D;const w=e(import.meta.url)("node:process");const C=e(import.meta.url)("node:os");const T=e(import.meta.url)("node:tty");function hasFlag(e,t=(globalThis.Deno?globalThis.Deno.args:w.argv)){const n=e.startsWith("-")?"":e.length===1?"-":"--";const s=t.indexOf(n+e);const r=t.indexOf("--");return s!==-1&&(r===-1||s<r)}const{env:R}=w;let k;if(hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")){k=0}else if(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always")){k=1}function envForceColor(){if("FORCE_COLOR"in R){if(R.FORCE_COLOR==="true"){return 1}if(R.FORCE_COLOR==="false"){return 0}return R.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(R.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function _supportsColor(e,{streamIsTTY:t,sniffFlags:n=true}={}){const s=envForceColor();if(s!==undefined){k=s}const r=n?k:s;if(r===0){return 0}if(n){if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor")){return 3}if(hasFlag("color=256")){return 2}}if("TF_BUILD"in R&&"AGENT_NAME"in R){return 1}if(e&&!t&&r===undefined){return 0}const o=r||0;if(R.TERM==="dumb"){return o}if(w.platform==="win32"){const e=C.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in R){if("GITHUB_ACTIONS"in R||"GITEA_ACTIONS"in R){return 3}if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in R))||R.CI_NAME==="codeship"){return 1}return o}if("TEAMCITY_VERSION"in R){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(R.TEAMCITY_VERSION)?1:0}if(R.COLORTERM==="truecolor"){return 3}if(R.TERM==="xterm-kitty"){return 3}if("TERM_PROGRAM"in R){const e=Number.parseInt((R.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(R.TERM_PROGRAM){case"iTerm.app":{return e>=3?3:2}case"Apple_Terminal":{return 2}}}if(/-256(color)?$/i.test(R.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(R.TERM)){return 1}if("COLORTERM"in R){return 1}return o}function createSupportsColor(e,t={}){const n=_supportsColor(e,{streamIsTTY:e&&e.isTTY,...t});return translateLevel(n)}const O={stdout:createSupportsColor({isTTY:T.isatty(1)}),stderr:createSupportsColor({isTTY:T.isatty(2)})};const F=O;function stringReplaceAll(e,t,n){let s=e.indexOf(t);if(s===-1){return e}const r=t.length;let o=0;let i="";do{i+=e.slice(o,s)+t+n;o=s+r;s=e.indexOf(t,o)}while(s!==-1);i+=e.slice(o);return i}function stringEncaseCRLFWithFirstIndex(e,t,n,s){let r=0;let o="";do{const i=e[s-1]==="\r";o+=e.slice(r,i?s-1:s)+t+(i?"\r\n":"\n")+n;r=s+1;s=e.indexOf("\n",r)}while(s!==-1);o+=e.slice(r);return o}const{stdout:A,stderr:P}=F;const I=Symbol("GENERATOR");const N=Symbol("STYLER");const M=Symbol("IS_EMPTY");const j=["ansi","ansi","ansi256","ansi16m"];const B=Object.create(null);const applyOptions=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const n=A?A.level:0;e.level=t.level===undefined?n:t.level};class Chalk{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const chalk=(...e)=>e.join(" ");applyOptions(chalk,e);Object.setPrototypeOf(chalk,createChalk.prototype);return chalk};function createChalk(e){return chalkFactory(e)}Object.setPrototypeOf(createChalk.prototype,Function.prototype);for(const[e,t]of Object.entries(S)){B[e]={get(){const n=createBuilder(this,createStyler(t.open,t.close,this[N]),this[M]);Object.defineProperty(this,e,{value:n});return n}}}B.visible={get(){const e=createBuilder(this,this[N],true);Object.defineProperty(this,"visible",{value:e});return e}};const getModelAnsi=(e,t,n,...s)=>{if(e==="rgb"){if(t==="ansi16m"){return S[n].ansi16m(...s)}if(t==="ansi256"){return S[n].ansi256(S.rgbToAnsi256(...s))}return S[n].ansi(S.rgbToAnsi(...s))}if(e==="hex"){return getModelAnsi("rgb",t,n,...S.hexToRgb(...s))}return S[n][e](...s)};const L=["rgb","hex","ansi256"];for(const e of L){B[e]={get(){const{level:t}=this;return function(...n){const s=createStyler(getModelAnsi(e,j[t],"color",...n),S.color.close,this[N]);return createBuilder(this,s,this[M])}}};const t="bg"+e[0].toUpperCase()+e.slice(1);B[t]={get(){const{level:t}=this;return function(...n){const s=createStyler(getModelAnsi(e,j[t],"bgColor",...n),S.bgColor.close,this[N]);return createBuilder(this,s,this[M])}}}}const U=Object.defineProperties((()=>{}),{...B,level:{enumerable:true,get(){return this[I].level},set(e){this[I].level=e}}});const createStyler=(e,t,n)=>{let s;let r;if(n===undefined){s=e;r=t}else{s=n.openAll+e;r=t+n.closeAll}return{open:e,close:t,openAll:s,closeAll:r,parent:n}};const createBuilder=(e,t,n)=>{const builder=(...e)=>applyStyle(builder,e.length===1?""+e[0]:e.join(" "));Object.setPrototypeOf(builder,U);builder[I]=e;builder[N]=t;builder[M]=n;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e[M]?"":t}let n=e[N];if(n===undefined){return t}const{openAll:s,closeAll:r}=n;if(t.includes("")){while(n!==undefined){t=stringReplaceAll(t,n.close,n.open);n=n.parent}}const o=t.indexOf("\n");if(o!==-1){t=stringEncaseCRLFWithFirstIndex(t,r,s,o)}return s+t+r};Object.defineProperties(createChalk.prototype,B);const $=createChalk();const q=createChalk({level:P?P.level:0});const G=$;function printDiagnosticsToConsole(e){console.error(G.bold.blue(e))}function printCriticalFailureToConsoleAndExit(e){console.error(G.bold.red(e));void t.xv(u).then((()=>{process.exit(1)}))}function printResultToConsole(e){console.log(G.bold.green(e))}function printTableToConsole(e){console.table(e)}function printResultToConsoleAndExitGracefully(e){printResultToConsole(e);void Sentry.close(MAX_WAIT_PENDING_TIME_MS).then((()=>{process.exit(0)}))}function printTableToConsoleAndExitGracefully(e){printTableToConsole(e);void Sentry.close(MAX_WAIT_PENDING_TIME_MS).then((()=>{process.exit(0)}))}function setBlocking(){if(typeof process==="undefined")return;[process.stdout,process.stderr].forEach((e=>{const t=e;if(t._handle&&t.isTTY&&typeof t._handle.setBlocking==="function"){t._handle.setBlocking(true)}}))}function textOrJson(e){try{return JSON.parse(e)}catch(t){return e}}const isUpKey=e=>e.name==="up"||e.name==="k"||e.ctrl&&e.name==="p";const isDownKey=e=>e.name==="down"||e.name==="j"||e.ctrl&&e.name==="n";const isSpaceKey=e=>e.name==="space";const isBackspaceKey=e=>e.name==="backspace";const isNumberKey=e=>"123456789".includes(e.name);const isEnterKey=e=>e.name==="enter"||e.name==="return";var H=__nccwpck_require__(8976);var z=__nccwpck_require__(2031);const Y=e(import.meta.url)("node:async_hooks");const V=new Y.AsyncLocalStorage;function createStore(e){const t={rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}};return t}function withHooks(e,t){const n=createStore(e);return V.run(n,(()=>{t(n)}))}function getStore(){const e=V.getStore();if(!e){throw new Error("[Inquirer] Hook functions can only be called from within a prompt")}return e}function readline(){return getStore().rl}function withUpdates(e){const wrapped=(...t)=>{const n=getStore();let s=false;const r=n.handleChange;n.handleChange=()=>{s=true};const o=e(...t);if(s){r()}n.handleChange=r;return o};return Y.AsyncResource.bind(wrapped)}function withPointer(e){const t=getStore();const{index:n}=t;const s={get(){return t.hooks[n]},set(e){t.hooks[n]=e},initialized:n in t.hooks};const r=e(s);t.index++;return r}function handleChange(){getStore().handleChange()}const W={queue(e){const t=getStore();const{index:n}=t;t.hooksEffect.push((()=>{t.hooksCleanup[n]?.();const s=e(readline());if(s!=null&&typeof s!=="function"){throw new Error("useEffect return value must be a cleanup function or nothing.")}t.hooksCleanup[n]=s}))},run(){const e=getStore();withUpdates((()=>{e.hooksEffect.forEach((e=>{e()}));e.hooksEffect.length=0}))()}};function useState(e){return withPointer((t=>{if(!t.initialized){if(typeof e==="function"){t.set(e())}else{t.set(e)}}return[t.get(),e=>{if(t.get()!==e){t.set(e);handleChange()}}]}))}function useEffect(e,t){withPointer((n=>{const s=n.get();const r=!Array.isArray(s)||t.some(((e,t)=>!Object.is(e,s[t])));if(r){W.queue(e)}n.set(t)}))}const K=z.dots;function usePrefix(e=false){const[t,n]=useState(0);useEffect((()=>{if(e){const e=setTimeout((()=>{n(t+1)}),K.interval);return()=>clearTimeout(e)}}),[e,t]);if(e){const e=t%K.frames.length;return H.yellow(K.frames[e])}return H.green("?")}function use_ref_useRef(e){return useState({current:e})[0]}function useKeypress(e){const t=use_ref_useRef(e);t.current=e;useEffect((e=>{const n=withUpdates(((n,s)=>{t.current(s,e)}));e.input.on("keypress",n);return()=>{e.input.removeListener("keypress",n)}}),[])}var J=__nccwpck_require__(2455);var X=__nccwpck_require__(9824);function utils_breakLines(e,t){return e.split("\n").flatMap((e=>X(e,t,{trim:false,hard:true}).split("\n").map((e=>e.trimEnd())))).join("\n")}function utils_readlineWidth(){return J({defaultWidth:80,output:readline().output})}function usePagination(e,{active:t,pageSize:n=7}){const s=useRef({pointer:0,lastIndex:0});const r=readlineWidth();const o=breakLines(e,r).split("\n");if(o.length<=n){return e}const i=Math.floor(n/2);const{pointer:a,lastIndex:c}=s.current;if(a<i&&c<t&&t-c<n){s.current.pointer=Math.min(i,a+t-c)}s.current.lastIndex=t;const u=[o,o,o].flat();const l=Math.max(0,t+o.length-s.current.pointer);const p=u.splice(l,n).join("\n");return p+"\n"+chalk.dim("(Use arrow keys to reveal more choices)")}const Q=e(import.meta.url)("node:readline");class CancelablePromise extends Promise{cancel=()=>{}}var Z=__nccwpck_require__(8533);const ee=[];ee.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32"){ee.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){ee.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")}const processOk=e=>!!e&&typeof e==="object"&&typeof e.removeListener==="function"&&typeof e.emit==="function"&&typeof e.reallyExit==="function"&&typeof e.listeners==="function"&&typeof e.kill==="function"&&typeof e.pid==="number"&&typeof e.on==="function";const te=Symbol.for("signal-exit emitter");const ne=globalThis;const se=Object.defineProperty.bind(Object);class Emitter{emitted={afterExit:false,exit:false};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(ne[te]){return ne[te]}se(ne,te,{value:this,writable:false,enumerable:false,configurable:false})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const n=this.listeners[e];const s=n.indexOf(t);if(s===-1){return}if(s===0&&n.length===1){n.length=0}else{n.splice(s,1)}}emit(e,t,n){if(this.emitted[e]){return false}this.emitted[e]=true;let s=false;for(const r of this.listeners[e]){s=r(t,n)===true||s}if(e==="exit"){s=this.emit("afterExit",t,n)||s}return s}}class SignalExitBase{}const signalExitWrap=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}});class SignalExitFallback extends SignalExitBase{onExit(){return()=>{}}load(){}unload(){}}class SignalExit extends SignalExitBase{#s=re.platform==="win32"?"SIGINT":"SIGHUP";#r=new Emitter;#o;#i;#a;#c={};#u=false;constructor(e){super();this.#o=e;this.#c={};for(const t of ee){this.#c[t]=()=>{const n=this.#o.listeners(t);let{count:s}=this.#r;const r=e;if(typeof r.__signal_exit_emitter__==="object"&&typeof r.__signal_exit_emitter__.count==="number"){s+=r.__signal_exit_emitter__.count}if(n.length===s){this.unload();const n=this.#r.emit("exit",null,t);const s=t==="SIGHUP"?this.#s:t;if(!n)e.kill(e.pid,s)}}}this.#a=e.reallyExit;this.#i=e.emit}onExit(e,t){if(!processOk(this.#o)){return()=>{}}if(this.#u===false){this.load()}const n=t?.alwaysLast?"afterExit":"exit";this.#r.on(n,e);return()=>{this.#r.removeListener(n,e);if(this.#r.listeners["exit"].length===0&&this.#r.listeners["afterExit"].length===0){this.unload()}}}load(){if(this.#u){return}this.#u=true;this.#r.count+=1;for(const e of ee){try{const t=this.#c[e];if(t)this.#o.on(e,t)}catch(e){}}this.#o.emit=(e,...t)=>this.#l(e,...t);this.#o.reallyExit=e=>this.#p(e)}unload(){if(!this.#u){return}this.#u=false;ee.forEach((e=>{const t=this.#c[e];if(!t){throw new Error("Listener not defined for signal: "+e)}try{this.#o.removeListener(e,t)}catch(e){}}));this.#o.emit=this.#i;this.#o.reallyExit=this.#a;this.#r.count-=1}#p(e){if(!processOk(this.#o)){return 0}this.#o.exitCode=e||0;this.#r.emit("exit",this.#o.exitCode,null);return this.#a.call(this.#o,this.#o.exitCode)}#l(e,...t){const n=this.#i;if(e==="exit"&&processOk(this.#o)){if(typeof t[0]==="number"){this.#o.exitCode=t[0]}const s=n.call(this.#o,e,...t);this.#r.emit("exit",this.#o.exitCode,null);return s}else{return n.call(this.#o,e,...t)}}}const re=globalThis.process;const{onExit:oe,load:ie,unload:ae}=signalExitWrap(processOk(re)?new SignalExit(re):new SignalExitFallback);var ce=__nccwpck_require__(5591);var ue=__nccwpck_require__(8512);const height=e=>e.split("\n").length;const lastLine=e=>e.split("\n").pop()??"";class ScreenManager{rl;height=0;extraLinesUnderPrompt=0;cursorPos;constructor(e){this.rl=e;this.rl=e;this.cursorPos=e.getCursorPos()}render(e,t=""){this.clean();this.rl.output.unmute();const n=lastLine(e);const s=ce(n);let r=s;if(this.rl.line.length){r=r.slice(0,-this.rl.line.length)}this.rl.setPrompt(r);this.cursorPos=this.rl.getCursorPos();const o=utils_readlineWidth();e=utils_breakLines(e,o);t=utils_breakLines(t,o);if(s.length%o===0){e+="\n"}let i=e+(t?"\n"+t:"");const a=Math.floor(s.length/o)-this.cursorPos.rows;const c=a+(t?height(t):0);if(c>0)i+=ue.cursorUp(c);i+=ue.cursorTo(this.cursorPos.cols);this.extraLinesUnderPrompt=c;this.height=height(i);this.rl.output.write(i);this.rl.output.mute()}checkCursorPos(){const e=this.rl.getCursorPos();if(e.cols!==this.cursorPos.cols){this.rl.output.unmute();this.rl.output.write(ue.cursorTo(e.cols));this.rl.output.mute();this.cursorPos=e}}clean(){this.rl.output.unmute();this.rl.output.write([this.extraLinesUnderPrompt>0?ue.cursorDown(this.extraLinesUnderPrompt):"",ue.eraseLines(this.height)].join(""));this.extraLinesUnderPrompt=0;this.rl.output.mute()}clearContent(){this.rl.output.unmute();this.rl.output.write([this.extraLinesUnderPrompt>0?ue.cursorDown(this.extraLinesUnderPrompt):"","\n"].join(""));this.rl.output.mute()}done(){this.rl.setPrompt("");this.rl.output.unmute();this.rl.output.write(ue.cursorShow);this.rl.output.end();this.rl.close()}}async function getPromptConfig(e){const t=typeof e.message==="function"?e.message():e.message;return{...e,message:await t}}function createPrompt(e){const prompt=(t,n)=>{const s=n?.input??process.stdin;const r=new Z;r.pipe(n?.output??process.stdout);const o=Q.createInterface({terminal:true,input:s,output:r});const i=new ScreenManager(o);let cancel=()=>{};const a=new CancelablePromise(((s,r)=>{withHooks(o,(o=>{function checkCursorPos(){i.checkCursorPos()}const a=oe(((e,t)=>{onExit();r(new Error(`User force closed the prompt with ${e} ${t}`))}));function onExit(){try{o.hooksCleanup.forEach((e=>{e?.()}))}catch(e){r(e)}if(n?.clearPromptOnDone){i.clean()}else{i.clearContent()}i.done();a();o.rl.input.removeListener("keypress",checkCursorPos)}cancel=()=>{onExit();r(new Error("Prompt was canceled"))};function done(e){setImmediate((()=>{onExit();s(e)}))}function workLoop(t){o.index=0;o.handleChange=()=>workLoop(t);try{const n=e(t,done);const[s,r]=typeof n==="string"?[n]:n;i.render(s,r);W.run()}catch(e){onExit();r(e)}}getPromptConfig(t).then((e=>{workLoop(e);o.rl.input.on("keypress",checkCursorPos)}),r)}))}));a.cancel=cancel;return a};return prompt}var le=__nccwpck_require__(7099);class Separator{separator=chalk.dim(new Array(15).join(figures.line));type="separator";constructor(e){if(e){this.separator=e}}static isSeparator(e){return Boolean(e&&e.type==="separator")}}var pe=__nccwpck_require__(7810);const de=createPrompt(((e,t)=>{const{validate:n=(()=>true)}=e;const[s,r]=useState("pending");const[o="",i]=useState(e.default);const[a,c]=useState(undefined);const[u,l]=useState("");const p=s==="loading";const d=usePrefix(p);useKeypress((async(e,a)=>{if(s!=="pending"){return}if(isEnterKey(e)){const e=u||o;r("loading");const s=await n(e);if(s===true){l(e);r("done");t(e)}else{a.write(u);c(s||"You must provide a valid value");r("pending")}}else if(isBackspaceKey(e)&&!u){i(undefined)}else if(e.name==="tab"&&!u){i(undefined);a.clearLine(0);a.write(o);l(o)}else{l(a.line);c(undefined)}}));const f=pe.bold(e.message);let m=u;if(typeof e.transformer==="function"){m=e.transformer(u,{isFinal:s==="done"})}if(s==="done"){m=pe.cyan(m)}let h="";if(o&&s!=="done"&&!u){h=pe.dim(` (${o})`)}let g="";if(a){g=pe.red(`> ${a}`)}return[`${d} ${f}${h} ${m}`,g]}));const fe=e(import.meta.url)("node:fs/promises");var me=__nccwpck_require__.n(fe);const he=e(import.meta.url)("node:path");var ge=__nccwpck_require__.n(he);function getTemplateDir(e){return ge().resolve(__nccwpck_require__.ab+"templates",e)}async function generateDefaultPackageJson(e){const t={name:e,version:"1.0.0",author:"",copyright:"",scripts:{dev:"zup dev",test:"zup test"},dependencies:{zuplo:"latest"}};if(process.env.USE_MONOREPO_PACKAGES){const e=getPackageOverrides();t.overrides=e;t.dependencies["@zuplo/runtime"]=e["@zuplo/runtime"];if(t.devDependencies&&"@zuplo/core"in t.devDependencies){t.devDependencies["@zuplo/core"]=e["@zuplo/core"]}if("@zuplo/core"in t.dependencies){t.dependencies["@zuplo/core"]=e["@zuplo/core"]}}return t}function getPackageOverrides(){const e=new URL(__nccwpck_require__(3674),__nccwpck_require__.b).pathname;return{"@zuplo/core":`file:${e}/core`,"@zuplo/runtime":`file:${e}/runtime`,"@zuplo/debug":`file:${e}/debug`,"@zuplo/errors":`file:${e}/errors`}}async function getProjectPackageJson(e){const t=path.join(e,"package.json");const n=await fs.readFile(t,"utf-8");const s=JSON.parse(n);return s}async function updateProjectPackageJson(e,t){const n=path.join(e,"package.json");const s=JSON.stringify(t,undefined,2);await fs.writeFile(n,s,"utf-8")}const _e=["config","docs","modules"];const ve=["tsconfig.json","gitignore","env.example","zuplo.jsonc"];async function createApi({rootDirectory:e,name:t,template:n}){const s=getTemplateDir(n);const r=ge().join(e,t);for(const e of _e){await me().cp(ge().join(s,e),ge().join(r,e),{recursive:true})}await me().cp(ge().join(s,"vscode"),ge().join(r,".vscode"),{recursive:true});for(const e of ve){await me().copyFile(ge().join(s,e),ge().join(r,e==="gitignore"?".gitignore":e))}await me().copyFile(ge().join(s,"_README.md"),ge().join(r,"README.md"));const o=await generateDefaultPackageJson(t);await me().writeFile(ge().join(r,"package.json"),JSON.stringify(o,null,2))}async function create(){await captureEvent({argv:{},event:"create-zuplo-api"});const e=await de({message:"What do you want to name your project?"});if(e){try{const t=process.cwd();printDiagnosticsToConsole("");printDiagnosticsToConsole(`Scaffolding project in ${t}/${e}...`);await createApi({rootDirectory:t,name:e,template:"default"});printDiagnosticsToConsole("");printDiagnosticsToConsole("Your Zuplo API is created. Now run:");printDiagnosticsToConsole("");printResultToConsole(` cd ${e}`);printResultToConsole(` npm install`);printResultToConsole(` npm run dev`)}catch(e){printDiagnosticsToConsole(e.message??e)}}else{printCriticalFailureToConsoleAndExit("Please enter a name for your project")}}async function exec(){n.config();const e="18.0.0";if((0,r.gte)(process.versions.node,e)){t.S1({dsn:c,release:o.i8});try{printDiagnosticsToConsole("");printDiagnosticsToConsole("Zuplo: The Programmable API Gateway");printDiagnosticsToConsole("");await create();void t.xv(u).then((()=>{process.exit(0)}))}catch(e){if(e instanceof Error){t.Tb(e)}printCriticalFailureToConsoleAndExit(e.message??e)}finally{await shutdownAnalytics()}}else{printCriticalFailureToConsoleAndExit(`The create-zuplo-api package requires at least node.js v${e}. You are using v${process.versions.node}. Please update your version of node.js.\n\n Consider using a Node.js version manager such as https://github.com/nvm-sh/nvm.`)}}})();var r=s.L;var o=s.G;export{r as createApi,o as exec};
|
|
30
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d7edb2dc-6eb9-5bd4-8199-3e51b5a770e8")}catch(e){}}();
|
|
31
|
-
|
|
48
|
+
var o=i(7280);var a={"{":"}","(":")","[":"]"};var strictCheck=function(t){if(t[0]==="!"){return true}var r=0;var i=-2;var o=-2;var c=-2;var l=-2;var u=-2;while(r<t.length){if(t[r]==="*"){return true}if(t[r+1]==="?"&&/[\].+)]/.test(t[r])){return true}if(o!==-1&&t[r]==="["&&t[r+1]!=="]"){if(o<r){o=t.indexOf("]",r)}if(o>r){if(u===-1||u>o){return true}u=t.indexOf("\\",r);if(u===-1||u>o){return true}}}if(c!==-1&&t[r]==="{"&&t[r+1]!=="}"){c=t.indexOf("}",r);if(c>r){u=t.indexOf("\\",r);if(u===-1||u>c){return true}}}if(l!==-1&&t[r]==="("&&t[r+1]==="?"&&/[:!=]/.test(t[r+2])&&t[r+3]!==")"){l=t.indexOf(")",r);if(l>r){u=t.indexOf("\\",r);if(u===-1||u>l){return true}}}if(i!==-1&&t[r]==="("&&t[r+1]!=="|"){if(i<r){i=t.indexOf("|",r)}if(i!==-1&&t[i+1]!==")"){l=t.indexOf(")",i);if(l>i){u=t.indexOf("\\",i);if(u===-1||u>l){return true}}}}if(t[r]==="\\"){var h=t[r+1];r+=2;var d=a[h];if(d){var p=t.indexOf(d,r);if(p!==-1){r=p+1}}if(t[r]==="!"){return true}}else{r++}}return false};var relaxedCheck=function(t){if(t[0]==="!"){return true}var r=0;while(r<t.length){if(/[*?{}()[\]]/.test(t[r])){return true}if(t[r]==="\\"){var i=t[r+1];r+=2;var o=a[i];if(o){var c=t.indexOf(o,r);if(c!==-1){r=c+1}}if(t[r]==="!"){return true}}else{r++}}return false};t.exports=function isGlob(t,r){if(typeof t!=="string"||t===""){return false}if(o(t)){return true}var i=strictCheck;if(r&&r.strict===false){i=relaxedCheck}return i(t)}},7850:t=>{"use strict";
|
|
49
|
+
/*!
|
|
50
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
53
|
+
* Released under the MIT License.
|
|
54
|
+
*/t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},9648:(t,r,i)=>{var o=i(9896);var a;if(process.platform==="win32"||global.TESTING_WINDOWS){a=i(3117)}else{a=i(8341)}t.exports=isexe;isexe.sync=sync;function isexe(t,r,i){if(typeof r==="function"){i=r;r={}}if(!i){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(i,o){isexe(t,r||{},(function(t,r){if(t){o(t)}else{i(r)}}))}))}a(t,r||{},(function(t,o){if(t){if(t.code==="EACCES"||r&&r.ignoreErrors){t=null;o=false}}i(t,o)}))}function sync(t,r){try{return a.sync(t,r||{})}catch(t){if(r&&r.ignoreErrors||t.code==="EACCES"){return false}else{throw t}}}},8341:(t,r,i)=>{t.exports=isexe;isexe.sync=sync;var o=i(9896);function isexe(t,r,i){o.stat(t,(function(t,o){i(t,t?false:checkStat(o,r))}))}function sync(t,r){return checkStat(o.statSync(t),r)}function checkStat(t,r){return t.isFile()&&checkMode(t,r)}function checkMode(t,r){var i=t.mode;var o=t.uid;var a=t.gid;var c=r.uid!==undefined?r.uid:process.getuid&&process.getuid();var l=r.gid!==undefined?r.gid:process.getgid&&process.getgid();var u=parseInt("100",8);var h=parseInt("010",8);var d=parseInt("001",8);var p=u|h;var m=i&d||i&h&&a===l||i&u&&o===c||i&p&&c===0;return m}},3117:(t,r,i)=>{t.exports=isexe;isexe.sync=sync;var o=i(9896);function checkPathExt(t,r){var i=r.pathExt!==undefined?r.pathExt:process.env.PATHEXT;if(!i){return true}i=i.split(";");if(i.indexOf("")!==-1){return true}for(var o=0;o<i.length;o++){var a=i[o].toLowerCase();if(a&&t.substr(-a.length).toLowerCase()===a){return true}}return false}function checkStat(t,r,i){if(!t.isSymbolicLink()&&!t.isFile()){return false}return checkPathExt(r,i)}function isexe(t,r,i){o.stat(t,(function(o,a){i(o,o?false:checkStat(a,t,r))}))}function sync(t,r){return checkStat(o.statSync(t),t,r)}},6651:t=>{"use strict";var r=t.exports=function(t,r,i){if(typeof r=="function"){i=r;r={}}i=r.cb||i;var o=typeof i=="function"?i:i.pre||function(){};var a=i.post||function(){};_traverse(r,o,a,t,"",t)};r.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true,if:true,then:true,else:true};r.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};r.propsKeywords={$defs:true,definitions:true,properties:true,patternProperties:true,dependencies:true};r.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(t,i,o,a,c,l,u,h,d,p){if(a&&typeof a=="object"&&!Array.isArray(a)){i(a,c,l,u,h,d,p);for(var m in a){var g=a[m];if(Array.isArray(g)){if(m in r.arrayKeywords){for(var y=0;y<g.length;y++)_traverse(t,i,o,g[y],c+"/"+m+"/"+y,l,c,m,a,y)}}else if(m in r.propsKeywords){if(g&&typeof g=="object"){for(var v in g)_traverse(t,i,o,g[v],c+"/"+m+"/"+escapeJsonPtr(v),l,c,m,a,v)}}else if(m in r.keywords||t.allKeys&&!(m in r.skipKeywords)){_traverse(t,i,o,g,c+"/"+m,l,c,m,a)}}o(a,c,l,u,h,d,p)}}function escapeJsonPtr(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}},6401:t=>{"use strict";const{FORCE_COLOR:r,NODE_DISABLE_COLORS:i,TERM:o}=process.env;const a={enabled:!i&&o!=="dumb"&&r!=="0",reset:init(0,0),bold:init(1,22),dim:init(2,22),italic:init(3,23),underline:init(4,24),inverse:init(7,27),hidden:init(8,28),strikethrough:init(9,29),black:init(30,39),red:init(31,39),green:init(32,39),yellow:init(33,39),blue:init(34,39),magenta:init(35,39),cyan:init(36,39),white:init(37,39),gray:init(90,39),grey:init(90,39),bgBlack:init(40,49),bgRed:init(41,49),bgGreen:init(42,49),bgYellow:init(43,49),bgBlue:init(44,49),bgMagenta:init(45,49),bgCyan:init(46,49),bgWhite:init(47,49)};function run(t,r){let i=0,o,a="",c="";for(;i<t.length;i++){o=t[i];a+=o.open;c+=o.close;if(r.includes(o.close)){r=r.replace(o.rgx,o.close+o.open)}}return a+r+c}function chain(t,r){let i={has:t,keys:r};i.reset=a.reset.bind(i);i.bold=a.bold.bind(i);i.dim=a.dim.bind(i);i.italic=a.italic.bind(i);i.underline=a.underline.bind(i);i.inverse=a.inverse.bind(i);i.hidden=a.hidden.bind(i);i.strikethrough=a.strikethrough.bind(i);i.black=a.black.bind(i);i.red=a.red.bind(i);i.green=a.green.bind(i);i.yellow=a.yellow.bind(i);i.blue=a.blue.bind(i);i.magenta=a.magenta.bind(i);i.cyan=a.cyan.bind(i);i.white=a.white.bind(i);i.gray=a.gray.bind(i);i.grey=a.grey.bind(i);i.bgBlack=a.bgBlack.bind(i);i.bgRed=a.bgRed.bind(i);i.bgGreen=a.bgGreen.bind(i);i.bgYellow=a.bgYellow.bind(i);i.bgBlue=a.bgBlue.bind(i);i.bgMagenta=a.bgMagenta.bind(i);i.bgCyan=a.bgCyan.bind(i);i.bgWhite=a.bgWhite.bind(i);return i}function init(t,r){let i={open:`[${t}m`,close:`[${r}m`,rgx:new RegExp(`\\x1b\\[${r}m`,"g")};return function(r){if(this!==void 0&&this.has!==void 0){this.has.includes(t)||(this.has.push(t),this.keys.push(i));return r===void 0?this:a.enabled?run(this.keys,r+""):r+""}return r===void 0?chain([t],[i]):a.enabled?run([i],r+""):r+""}}t.exports=a},6606:(t,r,i)=>{"use strict";const o=i(2203);const a=o.PassThrough;const c=Array.prototype.slice;t.exports=merge2;function merge2(){const t=[];const r=c.call(arguments);let i=false;let o=r[r.length-1];if(o&&!Array.isArray(o)&&o.pipe==null){r.pop()}else{o={}}const l=o.end!==false;const u=o.pipeError===true;if(o.objectMode==null){o.objectMode=true}if(o.highWaterMark==null){o.highWaterMark=64*1024}const h=a(o);function addStream(){for(let r=0,i=arguments.length;r<i;r++){t.push(pauseStreams(arguments[r],o))}mergeStream();return this}function mergeStream(){if(i){return}i=true;let r=t.shift();if(!r){process.nextTick(endStream);return}if(!Array.isArray(r)){r=[r]}let o=r.length+1;function next(){if(--o>0){return}i=false;mergeStream()}function pipe(t){function onend(){t.removeListener("merge2UnpipeEnd",onend);t.removeListener("end",onend);if(u){t.removeListener("error",onerror)}next()}function onerror(t){h.emit("error",t)}if(t._readableState.endEmitted){return next()}t.on("merge2UnpipeEnd",onend);t.on("end",onend);if(u){t.on("error",onerror)}t.pipe(h,{end:false});t.resume()}for(let t=0;t<r.length;t++){pipe(r[t])}next()}function endStream(){i=false;h.emit("queueDrain");if(l){h.end()}}h.setMaxListeners(0);h.add=addStream;h.on("unpipe",(function(t){t.emit("merge2UnpipeEnd")}));if(r.length){addStream.apply(null,r)}return h}function pauseStreams(t,r){if(!Array.isArray(t)){if(!t._readableState&&t.pipe){t=t.pipe(a(r))}if(!t._readableState||!t.pause||!t.pipe){throw new Error("Only readable stream can be merged.")}t.pause()}else{for(let i=0,o=t.length;i<o;i++){t[i]=pauseStreams(t[i],r)}}return t}},7805:(t,r,i)=>{"use strict";const o=i(9023);const a=i(7120);const c=i(1026);const l=i(2599);const isEmptyString=t=>t===""||t==="./";const hasBraces=t=>{const r=t.indexOf("{");return r>-1&&t.indexOf("}",r)>-1};const micromatch=(t,r,i)=>{r=[].concat(r);t=[].concat(t);let o=new Set;let a=new Set;let l=new Set;let u=0;let onResult=t=>{l.add(t.output);if(i&&i.onResult){i.onResult(t)}};for(let l=0;l<r.length;l++){let h=c(String(r[l]),{...i,onResult:onResult},true);let d=h.state.negated||h.state.negatedExtglob;if(d)u++;for(let r of t){let t=h(r,true);let i=d?!t.isMatch:t.isMatch;if(!i)continue;if(d){o.add(t.output)}else{o.delete(t.output);a.add(t.output)}}}let h=u===r.length?[...l]:[...a];let d=h.filter((t=>!o.has(t)));if(i&&d.length===0){if(i.failglob===true){throw new Error(`No matches found for "${r.join(", ")}"`)}if(i.nonull===true||i.nullglob===true){return i.unescape?r.map((t=>t.replace(/\\/g,""))):r}}return d};micromatch.match=micromatch;micromatch.matcher=(t,r)=>c(t,r);micromatch.isMatch=(t,r,i)=>c(r,i)(t);micromatch.any=micromatch.isMatch;micromatch.not=(t,r,i={})=>{r=[].concat(r).map(String);let o=new Set;let a=[];let onResult=t=>{if(i.onResult)i.onResult(t);a.push(t.output)};let c=new Set(micromatch(t,r,{...i,onResult:onResult}));for(let t of a){if(!c.has(t)){o.add(t)}}return[...o]};micromatch.contains=(t,r,i)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${o.inspect(t)}"`)}if(Array.isArray(r)){return r.some((r=>micromatch.contains(t,r,i)))}if(typeof r==="string"){if(isEmptyString(t)||isEmptyString(r)){return false}if(t.includes(r)||t.startsWith("./")&&t.slice(2).includes(r)){return true}}return micromatch.isMatch(t,r,{...i,contains:true})};micromatch.matchKeys=(t,r,i)=>{if(!l.isObject(t)){throw new TypeError("Expected the first argument to be an object")}let o=micromatch(Object.keys(t),r,i);let a={};for(let r of o)a[r]=t[r];return a};micromatch.some=(t,r,i)=>{let o=[].concat(t);for(let t of[].concat(r)){let r=c(String(t),i);if(o.some((t=>r(t)))){return true}}return false};micromatch.every=(t,r,i)=>{let o=[].concat(t);for(let t of[].concat(r)){let r=c(String(t),i);if(!o.every((t=>r(t)))){return false}}return true};micromatch.all=(t,r,i)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${o.inspect(t)}"`)}return[].concat(r).every((r=>c(r,i)(t)))};micromatch.capture=(t,r,i)=>{let o=l.isWindows(i);let a=c.makeRe(String(t),{...i,capture:true});let u=a.exec(o?l.toPosixSlashes(r):r);if(u){return u.slice(1).map((t=>t===void 0?"":t))}};micromatch.makeRe=(...t)=>c.makeRe(...t);micromatch.scan=(...t)=>c.scan(...t);micromatch.parse=(t,r)=>{let i=[];for(let o of[].concat(t||[])){for(let t of a(String(o),r)){i.push(c.parse(t,r))}}return i};micromatch.braces=(t,r)=>{if(typeof t!=="string")throw new TypeError("Expected a string");if(r&&r.nobrace===true||!hasBraces(t)){return[t]}return a(t,r)};micromatch.braceExpand=(t,r)=>{if(typeof t!=="string")throw new TypeError("Expected a string");return micromatch.braces(t,{...r,expand:true})};micromatch.hasBraces=hasBraces;t.exports=micromatch},4750:t=>{t.exports=function(t,r){if(!r)r={};var i={bools:{},strings:{},unknownFn:null};if(typeof r["unknown"]==="function"){i.unknownFn=r["unknown"]}if(typeof r["boolean"]==="boolean"&&r["boolean"]){i.allBools=true}else{[].concat(r["boolean"]).filter(Boolean).forEach((function(t){i.bools[t]=true}))}var o={};Object.keys(r.alias||{}).forEach((function(t){o[t]=[].concat(r.alias[t]);o[t].forEach((function(r){o[r]=[t].concat(o[t].filter((function(t){return r!==t})))}))}));[].concat(r.string).filter(Boolean).forEach((function(t){i.strings[t]=true;if(o[t]){i.strings[o[t]]=true}}));var a=r["default"]||{};var c={_:[]};Object.keys(i.bools).forEach((function(t){setArg(t,a[t]===undefined?false:a[t])}));var l=[];if(t.indexOf("--")!==-1){l=t.slice(t.indexOf("--")+1);t=t.slice(0,t.indexOf("--"))}function argDefined(t,r){return i.allBools&&/^--[^=]+$/.test(r)||i.strings[t]||i.bools[t]||o[t]}function setArg(t,r,a){if(a&&i.unknownFn&&!argDefined(t,a)){if(i.unknownFn(a)===false)return}var l=!i.strings[t]&&isNumber(r)?Number(r):r;setKey(c,t.split("."),l);(o[t]||[]).forEach((function(t){setKey(c,t.split("."),l)}))}function setKey(t,r,o){var a=t;for(var c=0;c<r.length-1;c++){var l=r[c];if(isConstructorOrProto(a,l))return;if(a[l]===undefined)a[l]={};if(a[l]===Object.prototype||a[l]===Number.prototype||a[l]===String.prototype)a[l]={};if(a[l]===Array.prototype)a[l]=[];a=a[l]}var l=r[r.length-1];if(isConstructorOrProto(a,l))return;if(a===Object.prototype||a===Number.prototype||a===String.prototype)a={};if(a===Array.prototype)a=[];if(a[l]===undefined||i.bools[l]||typeof a[l]==="boolean"){a[l]=o}else if(Array.isArray(a[l])){a[l].push(o)}else{a[l]=[a[l],o]}}function aliasIsBoolean(t){return o[t].some((function(t){return i.bools[t]}))}for(var u=0;u<t.length;u++){var h=t[u];if(/^--.+=/.test(h)){var d=h.match(/^--([^=]+)=([\s\S]*)$/);var p=d[1];var m=d[2];if(i.bools[p]){m=m!=="false"}setArg(p,m,h)}else if(/^--no-.+/.test(h)){var p=h.match(/^--no-(.+)/)[1];setArg(p,false,h)}else if(/^--.+/.test(h)){var p=h.match(/^--(.+)/)[1];var g=t[u+1];if(g!==undefined&&!/^-/.test(g)&&!i.bools[p]&&!i.allBools&&(o[p]?!aliasIsBoolean(p):true)){setArg(p,g,h);u++}else if(/^(true|false)$/.test(g)){setArg(p,g==="true",h);u++}else{setArg(p,i.strings[p]?"":true,h)}}else if(/^-[^-]+/.test(h)){var y=h.slice(1,-1).split("");var v=false;for(var b=0;b<y.length;b++){var g=h.slice(b+2);if(g==="-"){setArg(y[b],g,h);continue}if(/[A-Za-z]/.test(y[b])&&/=/.test(g)){setArg(y[b],g.split("=")[1],h);v=true;break}if(/[A-Za-z]/.test(y[b])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(g)){setArg(y[b],g,h);v=true;break}if(y[b+1]&&y[b+1].match(/\W/)){setArg(y[b],h.slice(b+2),h);v=true;break}else{setArg(y[b],i.strings[y[b]]?"":true,h)}}var p=h.slice(-1)[0];if(!v&&p!=="-"){if(t[u+1]&&!/^(-|--)[^-]/.test(t[u+1])&&!i.bools[p]&&(o[p]?!aliasIsBoolean(p):true)){setArg(p,t[u+1],h);u++}else if(t[u+1]&&/^(true|false)$/.test(t[u+1])){setArg(p,t[u+1]==="true",h);u++}else{setArg(p,i.strings[p]?"":true,h)}}}else{if(!i.unknownFn||i.unknownFn(h)!==false){c._.push(i.strings["_"]||!isNumber(h)?h:Number(h))}if(r.stopEarly){c._.push.apply(c._,t.slice(u+1));break}}}Object.keys(a).forEach((function(t){if(!hasKey(c,t.split("."))){setKey(c,t.split("."),a[t]);(o[t]||[]).forEach((function(r){setKey(c,r.split("."),a[t])}))}}));if(r["--"]){c["--"]=new Array;l.forEach((function(t){c["--"].push(t)}))}else{l.forEach((function(t){c._.push(t)}))}return c};function hasKey(t,r){var i=t;r.slice(0,-1).forEach((function(t){i=i[t]||{}}));var o=r[r.length-1];return o in i}function isNumber(t){if(typeof t==="number")return true;if(/^0x[0-9a-f]+$/i.test(t))return true;return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function isConstructorOrProto(t,r){return r==="constructor"&&typeof t[r]==="function"||r==="__proto__"}},661:t=>{"use strict";const pathKey=(t={})=>{const r=t.env||process.env;const i=t.platform||process.platform;if(i!=="win32"){return"PATH"}return Object.keys(r).reverse().find((t=>t.toUpperCase()==="PATH"))||"Path"};t.exports=pathKey;t.exports["default"]=pathKey},6596:(t,r,i)=>{let o=process.argv||[],a=process.env;let c=!("NO_COLOR"in a||o.includes("--no-color"))&&("FORCE_COLOR"in a||o.includes("--color")||process.platform==="win32"||require!=null&&i(2018).isatty(1)&&a.TERM!=="dumb"||"CI"in a);let formatter=(t,r,i=t)=>o=>{let a=""+o;let c=a.indexOf(r,t.length);return~c?t+replaceClose(a,r,i,c)+r:t+a+r};let replaceClose=(t,r,i,o)=>{let a="";let c=0;do{a+=t.substring(c,o)+i;c=o+r.length;o=t.indexOf(r,c)}while(~o);return a+t.substring(c)};let createColors=(t=c)=>{let r=t?formatter:()=>String;return{isColorSupported:t,reset:r("[0m","[0m"),bold:r("[1m","[22m","[22m[1m"),dim:r("[2m","[22m","[22m[2m"),italic:r("[3m","[23m"),underline:r("[4m","[24m"),inverse:r("[7m","[27m"),hidden:r("[8m","[28m"),strikethrough:r("[9m","[29m"),black:r("[30m","[39m"),red:r("[31m","[39m"),green:r("[32m","[39m"),yellow:r("[33m","[39m"),blue:r("[34m","[39m"),magenta:r("[35m","[39m"),cyan:r("[36m","[39m"),white:r("[37m","[39m"),gray:r("[90m","[39m"),bgBlack:r("[40m","[49m"),bgRed:r("[41m","[49m"),bgGreen:r("[42m","[49m"),bgYellow:r("[43m","[49m"),bgBlue:r("[44m","[49m"),bgMagenta:r("[45m","[49m"),bgCyan:r("[46m","[49m"),bgWhite:r("[47m","[49m"),blackBright:r("[90m","[39m"),redBright:r("[91m","[39m"),greenBright:r("[92m","[39m"),yellowBright:r("[93m","[39m"),blueBright:r("[94m","[39m"),magentaBright:r("[95m","[39m"),cyanBright:r("[96m","[39m"),whiteBright:r("[97m","[39m"),bgBlackBright:r("[100m","[49m"),bgRedBright:r("[101m","[49m"),bgGreenBright:r("[102m","[49m"),bgYellowBright:r("[103m","[49m"),bgBlueBright:r("[104m","[49m"),bgMagentaBright:r("[105m","[49m"),bgCyanBright:r("[106m","[49m"),bgWhiteBright:r("[107m","[49m")}};t.exports=createColors();t.exports.createColors=createColors},1026:(t,r,i)=>{"use strict";t.exports=i(4156)},7223:(t,r,i)=>{"use strict";const o=i(6928);const a="\\\\/";const c=`[^${a}]`;const l="\\.";const u="\\+";const h="\\?";const d="\\/";const p="(?=.)";const m="[^/]";const g=`(?:${d}|$)`;const y=`(?:^|${d})`;const v=`${l}{1,2}${g}`;const b=`(?!${l})`;const w=`(?!${y}${v})`;const E=`(?!${l}{0,1}${g})`;const S=`(?!${v})`;const $=`[^.${d}]`;const R=`${m}*?`;const P={DOT_LITERAL:l,PLUS_LITERAL:u,QMARK_LITERAL:h,SLASH_LITERAL:d,ONE_CHAR:p,QMARK:m,END_ANCHOR:g,DOTS_SLASH:v,NO_DOT:b,NO_DOTS:w,NO_DOT_SLASH:E,NO_DOTS_SLASH:S,QMARK_NO_DOT:$,STAR:R,START_ANCHOR:y};const O={...P,SLASH_LITERAL:`[${a}]`,QMARK:c,STAR:`${c}*?`,DOTS_SLASH:`${l}{1,2}(?:[${a}]|$)`,NO_DOT:`(?!${l})`,NO_DOTS:`(?!(?:^|[${a}])${l}{1,2}(?:[${a}]|$))`,NO_DOT_SLASH:`(?!${l}{0,1}(?:[${a}]|$))`,NO_DOTS_SLASH:`(?!${l}{1,2}(?:[${a}]|$))`,QMARK_NO_DOT:`[^.${a}]`,START_ANCHOR:`(?:^|[${a}])`,END_ANCHOR:`(?:[${a}]|$)`};const A={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:A,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:o.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?O:P}}},3717:(t,r,i)=>{"use strict";const o=i(7223);const a=i(2599);const{MAX_LENGTH:c,POSIX_REGEX_SOURCE:l,REGEX_NON_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_BACKREF:h,REPLACEMENTS:d}=o;const expandRange=(t,r)=>{if(typeof r.expandRange==="function"){return r.expandRange(...t,r)}t.sort();const i=`[${t.join("-")}]`;try{new RegExp(i)}catch(r){return t.map((t=>a.escapeRegex(t))).join("..")}return i};const syntaxError=(t,r)=>`Missing ${t}: "${r}" - use "\\\\${r}" to match literal characters`;const parse=(t,r)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=d[t]||t;const i={...r};const p=typeof i.maxLength==="number"?Math.min(c,i.maxLength):c;let m=t.length;if(m>p){throw new SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${p}`)}const g={type:"bos",value:"",output:i.prepend||""};const y=[g];const v=i.capture?"":"?:";const b=a.isWindows(r);const w=o.globChars(b);const E=o.extglobChars(w);const{DOT_LITERAL:S,PLUS_LITERAL:$,SLASH_LITERAL:R,ONE_CHAR:P,DOTS_SLASH:O,NO_DOT:A,NO_DOT_SLASH:x,NO_DOTS_SLASH:T,QMARK:k,QMARK_NO_DOT:C,STAR:I,START_ANCHOR:N}=w;const globstar=t=>`(${v}(?:(?!${N}${t.dot?O:S}).)*?)`;const D=i.dot?"":A;const L=i.dot?k:C;let M=i.bash===true?globstar(i):I;if(i.capture){M=`(${M})`}if(typeof i.noext==="boolean"){i.noextglob=i.noext}const j={input:t,index:-1,start:0,dot:i.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:y};t=a.removePrefix(t,j);m=t.length;const U=[];const B=[];const H=[];let V=g;let z;const eos=()=>j.index===m-1;const G=j.peek=(r=1)=>t[j.index+r];const q=j.advance=()=>t[++j.index]||"";const remaining=()=>t.slice(j.index+1);const consume=(t="",r=0)=>{j.consumed+=t;j.index+=r};const append=t=>{j.output+=t.output!=null?t.output:t.value;consume(t.value)};const negate=()=>{let t=1;while(G()==="!"&&(G(2)!=="("||G(3)==="?")){q();j.start++;t++}if(t%2===0){return false}j.negated=true;j.start++;return true};const increment=t=>{j[t]++;H.push(t)};const decrement=t=>{j[t]--;H.pop()};const push=t=>{if(V.type==="globstar"){const r=j.braces>0&&(t.type==="comma"||t.type==="brace");const i=t.extglob===true||U.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!r&&!i){j.output=j.output.slice(0,-V.output.length);V.type="star";V.value="*";V.output=M;j.output+=V.output}}if(U.length&&t.type!=="paren"){U[U.length-1].inner+=t.value}if(t.value||t.output)append(t);if(V&&V.type==="text"&&t.type==="text"){V.value+=t.value;V.output=(V.output||"")+t.value;return}t.prev=V;y.push(t);V=t};const extglobOpen=(t,r)=>{const o={...E[r],conditions:1,inner:""};o.prev=V;o.parens=j.parens;o.output=j.output;const a=(i.capture?"(":"")+o.open;increment("parens");push({type:t,value:r,output:j.output?"":P});push({type:"paren",extglob:true,value:q(),output:a});U.push(o)};const extglobClose=t=>{let o=t.close+(i.capture?")":"");let a;if(t.type==="negate"){let c=M;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){c=globstar(i)}if(c!==M||eos()||/^\)+$/.test(remaining())){o=t.close=`)$))${c}`}if(t.inner.includes("*")&&(a=remaining())&&/^\.[^\\/.]+$/.test(a)){const i=parse(a,{...r,fastpaths:false}).output;o=t.close=`)${i})${c})`}if(t.prev.type==="bos"){j.negatedExtglob=true}}push({type:"paren",extglob:true,value:z,output:o});decrement("parens")};if(i.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let o=false;let c=t.replace(h,((t,r,i,a,c,l)=>{if(a==="\\"){o=true;return t}if(a==="?"){if(r){return r+a+(c?k.repeat(c.length):"")}if(l===0){return L+(c?k.repeat(c.length):"")}return k.repeat(i.length)}if(a==="."){return S.repeat(i.length)}if(a==="*"){if(r){return r+a+(c?M:"")}return M}return r?t:`\\${t}`}));if(o===true){if(i.unescape===true){c=c.replace(/\\/g,"")}else{c=c.replace(/\\+/g,(t=>t.length%2===0?"\\\\":t?"\\":""))}}if(c===t&&i.contains===true){j.output=t;return j}j.output=a.wrapOutput(c,j,r);return j}while(!eos()){z=q();if(z==="\0"){continue}if(z==="\\"){const t=G();if(t==="/"&&i.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){z+="\\";push({type:"text",value:z});continue}const r=/^\\+/.exec(remaining());let o=0;if(r&&r[0].length>2){o=r[0].length;j.index+=o;if(o%2!==0){z+="\\"}}if(i.unescape===true){z=q()}else{z+=q()}if(j.brackets===0){push({type:"text",value:z});continue}}if(j.brackets>0&&(z!=="]"||V.value==="["||V.value==="[^")){if(i.posix!==false&&z===":"){const t=V.value.slice(1);if(t.includes("[")){V.posix=true;if(t.includes(":")){const t=V.value.lastIndexOf("[");const r=V.value.slice(0,t);const i=V.value.slice(t+2);const o=l[i];if(o){V.value=r+o;j.backtrack=true;q();if(!g.output&&y.indexOf(V)===1){g.output=P}continue}}}}if(z==="["&&G()!==":"||z==="-"&&G()==="]"){z=`\\${z}`}if(z==="]"&&(V.value==="["||V.value==="[^")){z=`\\${z}`}if(i.posix===true&&z==="!"&&V.value==="["){z="^"}V.value+=z;append({value:z});continue}if(j.quotes===1&&z!=='"'){z=a.escapeRegex(z);V.value+=z;append({value:z});continue}if(z==='"'){j.quotes=j.quotes===1?0:1;if(i.keepQuotes===true){push({type:"text",value:z})}continue}if(z==="("){increment("parens");push({type:"paren",value:z});continue}if(z===")"){if(j.parens===0&&i.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const t=U[U.length-1];if(t&&j.parens===t.parens+1){extglobClose(U.pop());continue}push({type:"paren",value:z,output:j.parens?")":"\\)"});decrement("parens");continue}if(z==="["){if(i.nobracket===true||!remaining().includes("]")){if(i.nobracket!==true&&i.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}z=`\\${z}`}else{increment("brackets")}push({type:"bracket",value:z});continue}if(z==="]"){if(i.nobracket===true||V&&V.type==="bracket"&&V.value.length===1){push({type:"text",value:z,output:`\\${z}`});continue}if(j.brackets===0){if(i.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:z,output:`\\${z}`});continue}decrement("brackets");const t=V.value.slice(1);if(V.posix!==true&&t[0]==="^"&&!t.includes("/")){z=`/${z}`}V.value+=z;append({value:z});if(i.literalBrackets===false||a.hasRegexChars(t)){continue}const r=a.escapeRegex(V.value);j.output=j.output.slice(0,-V.value.length);if(i.literalBrackets===true){j.output+=r;V.value=r;continue}V.value=`(${v}${r}|${V.value})`;j.output+=V.value;continue}if(z==="{"&&i.nobrace!==true){increment("braces");const t={type:"brace",value:z,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};B.push(t);push(t);continue}if(z==="}"){const t=B[B.length-1];if(i.nobrace===true||!t){push({type:"text",value:z,output:z});continue}let r=")";if(t.dots===true){const t=y.slice();const o=[];for(let r=t.length-1;r>=0;r--){y.pop();if(t[r].type==="brace"){break}if(t[r].type!=="dots"){o.unshift(t[r].value)}}r=expandRange(o,i);j.backtrack=true}if(t.comma!==true&&t.dots!==true){const i=j.output.slice(0,t.outputIndex);const o=j.tokens.slice(t.tokensIndex);t.value=t.output="\\{";z=r="\\}";j.output=i;for(const t of o){j.output+=t.output||t.value}}push({type:"brace",value:z,output:r});decrement("braces");B.pop();continue}if(z==="|"){if(U.length>0){U[U.length-1].conditions++}push({type:"text",value:z});continue}if(z===","){let t=z;const r=B[B.length-1];if(r&&H[H.length-1]==="braces"){r.comma=true;t="|"}push({type:"comma",value:z,output:t});continue}if(z==="/"){if(V.type==="dot"&&j.index===j.start+1){j.start=j.index+1;j.consumed="";j.output="";y.pop();V=g;continue}push({type:"slash",value:z,output:R});continue}if(z==="."){if(j.braces>0&&V.type==="dot"){if(V.value===".")V.output=S;const t=B[B.length-1];V.type="dots";V.output+=z;V.value+=z;t.dots=true;continue}if(j.braces+j.parens===0&&V.type!=="bos"&&V.type!=="slash"){push({type:"text",value:z,output:S});continue}push({type:"dot",value:z,output:S});continue}if(z==="?"){const t=V&&V.value==="(";if(!t&&i.noextglob!==true&&G()==="("&&G(2)!=="?"){extglobOpen("qmark",z);continue}if(V&&V.type==="paren"){const t=G();let r=z;if(t==="<"&&!a.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(V.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(remaining())){r=`\\${z}`}push({type:"text",value:z,output:r});continue}if(i.dot!==true&&(V.type==="slash"||V.type==="bos")){push({type:"qmark",value:z,output:C});continue}push({type:"qmark",value:z,output:k});continue}if(z==="!"){if(i.noextglob!==true&&G()==="("){if(G(2)!=="?"||!/[!=<:]/.test(G(3))){extglobOpen("negate",z);continue}}if(i.nonegate!==true&&j.index===0){negate();continue}}if(z==="+"){if(i.noextglob!==true&&G()==="("&&G(2)!=="?"){extglobOpen("plus",z);continue}if(V&&V.value==="("||i.regex===false){push({type:"plus",value:z,output:$});continue}if(V&&(V.type==="bracket"||V.type==="paren"||V.type==="brace")||j.parens>0){push({type:"plus",value:z});continue}push({type:"plus",value:$});continue}if(z==="@"){if(i.noextglob!==true&&G()==="("&&G(2)!=="?"){push({type:"at",extglob:true,value:z,output:""});continue}push({type:"text",value:z});continue}if(z!=="*"){if(z==="$"||z==="^"){z=`\\${z}`}const t=u.exec(remaining());if(t){z+=t[0];j.index+=t[0].length}push({type:"text",value:z});continue}if(V&&(V.type==="globstar"||V.star===true)){V.type="star";V.star=true;V.value+=z;V.output=M;j.backtrack=true;j.globstar=true;consume(z);continue}let r=remaining();if(i.noextglob!==true&&/^\([^?]/.test(r)){extglobOpen("star",z);continue}if(V.type==="star"){if(i.noglobstar===true){consume(z);continue}const o=V.prev;const a=o.prev;const c=o.type==="slash"||o.type==="bos";const l=a&&(a.type==="star"||a.type==="globstar");if(i.bash===true&&(!c||r[0]&&r[0]!=="/")){push({type:"star",value:z,output:""});continue}const u=j.braces>0&&(o.type==="comma"||o.type==="brace");const h=U.length&&(o.type==="pipe"||o.type==="paren");if(!c&&o.type!=="paren"&&!u&&!h){push({type:"star",value:z,output:""});continue}while(r.slice(0,3)==="/**"){const i=t[j.index+4];if(i&&i!=="/"){break}r=r.slice(3);consume("/**",3)}if(o.type==="bos"&&eos()){V.type="globstar";V.value+=z;V.output=globstar(i);j.output=V.output;j.globstar=true;consume(z);continue}if(o.type==="slash"&&o.prev.type!=="bos"&&!l&&eos()){j.output=j.output.slice(0,-(o.output+V.output).length);o.output=`(?:${o.output}`;V.type="globstar";V.output=globstar(i)+(i.strictSlashes?")":"|$)");V.value+=z;j.globstar=true;j.output+=o.output+V.output;consume(z);continue}if(o.type==="slash"&&o.prev.type!=="bos"&&r[0]==="/"){const t=r[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(o.output+V.output).length);o.output=`(?:${o.output}`;V.type="globstar";V.output=`${globstar(i)}${R}|${R}${t})`;V.value+=z;j.output+=o.output+V.output;j.globstar=true;consume(z+q());push({type:"slash",value:"/",output:""});continue}if(o.type==="bos"&&r[0]==="/"){V.type="globstar";V.value+=z;V.output=`(?:^|${R}|${globstar(i)}${R})`;j.output=V.output;j.globstar=true;consume(z+q());push({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-V.output.length);V.type="globstar";V.output=globstar(i);V.value+=z;j.output+=V.output;j.globstar=true;consume(z);continue}const o={type:"star",value:z,output:M};if(i.bash===true){o.output=".*?";if(V.type==="bos"||V.type==="slash"){o.output=D+o.output}push(o);continue}if(V&&(V.type==="bracket"||V.type==="paren")&&i.regex===true){o.output=z;push(o);continue}if(j.index===j.start||V.type==="slash"||V.type==="dot"){if(V.type==="dot"){j.output+=x;V.output+=x}else if(i.dot===true){j.output+=T;V.output+=T}else{j.output+=D;V.output+=D}if(G()!=="*"){j.output+=P;V.output+=P}}push(o)}while(j.brackets>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));j.output=a.escapeLast(j.output,"[");decrement("brackets")}while(j.parens>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));j.output=a.escapeLast(j.output,"(");decrement("parens")}while(j.braces>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));j.output=a.escapeLast(j.output,"{");decrement("braces")}if(i.strictSlashes!==true&&(V.type==="star"||V.type==="bracket")){push({type:"maybe_slash",value:"",output:`${R}?`})}if(j.backtrack===true){j.output="";for(const t of j.tokens){j.output+=t.output!=null?t.output:t.value;if(t.suffix){j.output+=t.suffix}}}return j};parse.fastpaths=(t,r)=>{const i={...r};const l=typeof i.maxLength==="number"?Math.min(c,i.maxLength):c;const u=t.length;if(u>l){throw new SyntaxError(`Input length: ${u}, exceeds maximum allowed length: ${l}`)}t=d[t]||t;const h=a.isWindows(r);const{DOT_LITERAL:p,SLASH_LITERAL:m,ONE_CHAR:g,DOTS_SLASH:y,NO_DOT:v,NO_DOTS:b,NO_DOTS_SLASH:w,STAR:E,START_ANCHOR:S}=o.globChars(h);const $=i.dot?b:v;const R=i.dot?w:v;const P=i.capture?"":"?:";const O={negated:false,prefix:""};let A=i.bash===true?".*?":E;if(i.capture){A=`(${A})`}const globstar=t=>{if(t.noglobstar===true)return A;return`(${P}(?:(?!${S}${t.dot?y:p}).)*?)`};const create=t=>{switch(t){case"*":return`${$}${g}${A}`;case".*":return`${p}${g}${A}`;case"*.*":return`${$}${A}${p}${g}${A}`;case"*/*":return`${$}${A}${m}${g}${R}${A}`;case"**":return $+globstar(i);case"**/*":return`(?:${$}${globstar(i)}${m})?${R}${g}${A}`;case"**/*.*":return`(?:${$}${globstar(i)}${m})?${R}${A}${p}${g}${A}`;case"**/.*":return`(?:${$}${globstar(i)}${m})?${p}${g}${A}`;default:{const r=/^(.*?)\.(\w+)$/.exec(t);if(!r)return;const i=create(r[1]);if(!i)return;return i+p+r[2]}}};const x=a.removePrefix(t,O);let T=create(x);if(T&&i.strictSlashes!==true){T+=`${m}?`}return T};t.exports=parse},4156:(t,r,i)=>{"use strict";const o=i(6928);const a=i(6745);const c=i(3717);const l=i(2599);const u=i(7223);const isObject=t=>t&&typeof t==="object"&&!Array.isArray(t);const picomatch=(t,r,i=false)=>{if(Array.isArray(t)){const o=t.map((t=>picomatch(t,r,i)));const arrayMatcher=t=>{for(const r of o){const i=r(t);if(i)return i}return false};return arrayMatcher}const o=isObject(t)&&t.tokens&&t.input;if(t===""||typeof t!=="string"&&!o){throw new TypeError("Expected pattern to be a non-empty string")}const a=r||{};const c=l.isWindows(r);const u=o?picomatch.compileRe(t,r):picomatch.makeRe(t,r,false,true);const h=u.state;delete u.state;let isIgnored=()=>false;if(a.ignore){const t={...r,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(a.ignore,t,i)}const matcher=(i,o=false)=>{const{isMatch:l,match:d,output:p}=picomatch.test(i,u,r,{glob:t,posix:c});const m={glob:t,state:h,regex:u,posix:c,input:i,output:p,match:d,isMatch:l};if(typeof a.onResult==="function"){a.onResult(m)}if(l===false){m.isMatch=false;return o?m:false}if(isIgnored(i)){if(typeof a.onIgnore==="function"){a.onIgnore(m)}m.isMatch=false;return o?m:false}if(typeof a.onMatch==="function"){a.onMatch(m)}return o?m:true};if(i){matcher.state=h}return matcher};picomatch.test=(t,r,i,{glob:o,posix:a}={})=>{if(typeof t!=="string"){throw new TypeError("Expected input to be a string")}if(t===""){return{isMatch:false,output:""}}const c=i||{};const u=c.format||(a?l.toPosixSlashes:null);let h=t===o;let d=h&&u?u(t):t;if(h===false){d=u?u(t):t;h=d===o}if(h===false||c.capture===true){if(c.matchBase===true||c.basename===true){h=picomatch.matchBase(t,r,i,a)}else{h=r.exec(d)}}return{isMatch:Boolean(h),match:h,output:d}};picomatch.matchBase=(t,r,i,a=l.isWindows(i))=>{const c=r instanceof RegExp?r:picomatch.makeRe(r,i);return c.test(o.basename(t))};picomatch.isMatch=(t,r,i)=>picomatch(r,i)(t);picomatch.parse=(t,r)=>{if(Array.isArray(t))return t.map((t=>picomatch.parse(t,r)));return c(t,{...r,fastpaths:false})};picomatch.scan=(t,r)=>a(t,r);picomatch.compileRe=(t,r,i=false,o=false)=>{if(i===true){return t.output}const a=r||{};const c=a.contains?"":"^";const l=a.contains?"":"$";let u=`${c}(?:${t.output})${l}`;if(t&&t.negated===true){u=`^(?!${u}).*$`}const h=picomatch.toRegex(u,r);if(o===true){h.state=t}return h};picomatch.makeRe=(t,r={},i=false,o=false)=>{if(!t||typeof t!=="string"){throw new TypeError("Expected a non-empty string")}let a={negated:false,fastpaths:true};if(r.fastpaths!==false&&(t[0]==="."||t[0]==="*")){a.output=c.fastpaths(t,r)}if(!a.output){a=c(t,r)}return picomatch.compileRe(a,r,i,o)};picomatch.toRegex=(t,r)=>{try{const i=r||{};return new RegExp(t,i.flags||(i.nocase?"i":""))}catch(t){if(r&&r.debug===true)throw t;return/$^/}};picomatch.constants=u;t.exports=picomatch},6745:(t,r,i)=>{"use strict";const o=i(2599);const{CHAR_ASTERISK:a,CHAR_AT:c,CHAR_BACKWARD_SLASH:l,CHAR_COMMA:u,CHAR_DOT:h,CHAR_EXCLAMATION_MARK:d,CHAR_FORWARD_SLASH:p,CHAR_LEFT_CURLY_BRACE:m,CHAR_LEFT_PARENTHESES:g,CHAR_LEFT_SQUARE_BRACKET:y,CHAR_PLUS:v,CHAR_QUESTION_MARK:b,CHAR_RIGHT_CURLY_BRACE:w,CHAR_RIGHT_PARENTHESES:E,CHAR_RIGHT_SQUARE_BRACKET:S}=i(7223);const isPathSeparator=t=>t===p||t===l;const depth=t=>{if(t.isPrefix!==true){t.depth=t.isGlobstar?Infinity:1}};const scan=(t,r)=>{const i=r||{};const $=t.length-1;const R=i.parts===true||i.scanToEnd===true;const P=[];const O=[];const A=[];let x=t;let T=-1;let k=0;let C=0;let I=false;let N=false;let D=false;let L=false;let M=false;let j=false;let U=false;let B=false;let H=false;let V=false;let z=0;let G;let q;let W={value:"",depth:0,isGlob:false};const eos=()=>T>=$;const peek=()=>x.charCodeAt(T+1);const advance=()=>{G=q;return x.charCodeAt(++T)};while(T<$){q=advance();let t;if(q===l){U=W.backslashes=true;q=advance();if(q===m){j=true}continue}if(j===true||q===m){z++;while(eos()!==true&&(q=advance())){if(q===l){U=W.backslashes=true;advance();continue}if(q===m){z++;continue}if(j!==true&&q===h&&(q=advance())===h){I=W.isBrace=true;D=W.isGlob=true;V=true;if(R===true){continue}break}if(j!==true&&q===u){I=W.isBrace=true;D=W.isGlob=true;V=true;if(R===true){continue}break}if(q===w){z--;if(z===0){j=false;I=W.isBrace=true;V=true;break}}}if(R===true){continue}break}if(q===p){P.push(T);O.push(W);W={value:"",depth:0,isGlob:false};if(V===true)continue;if(G===h&&T===k+1){k+=2;continue}C=T+1;continue}if(i.noext!==true){const t=q===v||q===c||q===a||q===b||q===d;if(t===true&&peek()===g){D=W.isGlob=true;L=W.isExtglob=true;V=true;if(q===d&&T===k){H=true}if(R===true){while(eos()!==true&&(q=advance())){if(q===l){U=W.backslashes=true;q=advance();continue}if(q===E){D=W.isGlob=true;V=true;break}}continue}break}}if(q===a){if(G===a)M=W.isGlobstar=true;D=W.isGlob=true;V=true;if(R===true){continue}break}if(q===b){D=W.isGlob=true;V=true;if(R===true){continue}break}if(q===y){while(eos()!==true&&(t=advance())){if(t===l){U=W.backslashes=true;advance();continue}if(t===S){N=W.isBracket=true;D=W.isGlob=true;V=true;break}}if(R===true){continue}break}if(i.nonegate!==true&&q===d&&T===k){B=W.negated=true;k++;continue}if(i.noparen!==true&&q===g){D=W.isGlob=true;if(R===true){while(eos()!==true&&(q=advance())){if(q===g){U=W.backslashes=true;q=advance();continue}if(q===E){V=true;break}}continue}break}if(D===true){V=true;if(R===true){continue}break}}if(i.noext===true){L=false;D=false}let K=x;let Y="";let Z="";if(k>0){Y=x.slice(0,k);x=x.slice(k);C-=k}if(K&&D===true&&C>0){K=x.slice(0,C);Z=x.slice(C)}else if(D===true){K="";Z=x}else{K=x}if(K&&K!==""&&K!=="/"&&K!==x){if(isPathSeparator(K.charCodeAt(K.length-1))){K=K.slice(0,-1)}}if(i.unescape===true){if(Z)Z=o.removeBackslashes(Z);if(K&&U===true){K=o.removeBackslashes(K)}}const X={prefix:Y,input:t,start:k,base:K,glob:Z,isBrace:I,isBracket:N,isGlob:D,isExtglob:L,isGlobstar:M,negated:B,negatedExtglob:H};if(i.tokens===true){X.maxDepth=0;if(!isPathSeparator(q)){O.push(W)}X.tokens=O}if(i.parts===true||i.tokens===true){let r;for(let o=0;o<P.length;o++){const a=r?r+1:k;const c=P[o];const l=t.slice(a,c);if(i.tokens){if(o===0&&k!==0){O[o].isPrefix=true;O[o].value=Y}else{O[o].value=l}depth(O[o]);X.maxDepth+=O[o].depth}if(o!==0||l!==""){A.push(l)}r=c}if(r&&r+1<t.length){const o=t.slice(r+1);A.push(o);if(i.tokens){O[O.length-1].value=o;depth(O[O.length-1]);X.maxDepth+=O[O.length-1].depth}}X.slashes=P;X.parts=A}return X};t.exports=scan},2599:(t,r,i)=>{"use strict";const o=i(6928);const a=process.platform==="win32";const{REGEX_BACKSLASH:c,REGEX_REMOVE_BACKSLASH:l,REGEX_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_GLOBAL:h}=i(7223);r.isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);r.hasRegexChars=t=>u.test(t);r.isRegexChar=t=>t.length===1&&r.hasRegexChars(t);r.escapeRegex=t=>t.replace(h,"\\$1");r.toPosixSlashes=t=>t.replace(c,"/");r.removeBackslashes=t=>t.replace(l,(t=>t==="\\"?"":t));r.supportsLookbehinds=()=>{const t=process.version.slice(1).split(".").map(Number);if(t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10){return true}return false};r.isWindows=t=>{if(t&&typeof t.windows==="boolean"){return t.windows}return a===true||o.sep==="\\"};r.escapeLast=(t,i,o)=>{const a=t.lastIndexOf(i,o);if(a===-1)return t;if(t[a-1]==="\\")return r.escapeLast(t,i,a-1);return`${t.slice(0,a)}\\${t.slice(a)}`};r.removePrefix=(t,r={})=>{let i=t;if(i.startsWith("./")){i=i.slice(2);r.prefix="./"}return i};r.wrapOutput=(t,r={},i={})=>{const o=i.contains?"":"^";const a=i.contains?"":"$";let c=`${o}(?:${t})${a}`;if(r.negated===true){c=`(?:^(?!${c}).*$)`}return c}},1220:t=>{"use strict";class DatePart{constructor({token:t,date:r,parts:i,locales:o}){this.token=t;this.date=r||new Date;this.parts=i||[this];this.locales=o||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,i)=>i>t&&r instanceof DatePart))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,i)=>i>r&&t instanceof DatePart))}toString(){return String(this.date)}}t.exports=DatePart},6919:(t,r,i)=>{"use strict";const o=i(1220);const pos=t=>{t=t%10;return t===1?"st":t===2?"nd":t===3?"rd":"th"};class Day extends o{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate();let r=this.date.getDay();return this.token==="DD"?String(t).padStart(2,"0"):this.token==="Do"?t+pos(t):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:t}}t.exports=Day},7474:(t,r,i)=>{"use strict";const o=i(1220);class Hours extends o{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();if(/h/.test(this.token))t=t%12||12;return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Hours},4889:(t,r,i)=>{"use strict";t.exports={DatePart:i(1220),Meridiem:i(3675),Day:i(6919),Hours:i(7474),Milliseconds:i(8635),Minutes:i(8756),Month:i(8363),Seconds:i(7940),Year:i(9340)}},3675:(t,r,i)=>{"use strict";const o=i(1220);class Meridiem extends o{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}t.exports=Meridiem},8635:(t,r,i)=>{"use strict";const o=i(1220);class Milliseconds extends o{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}t.exports=Milliseconds},8756:(t,r,i)=>{"use strict";const o=i(1220);class Minutes extends o{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Minutes},8363:(t,r,i)=>{"use strict";const o=i(1220);class Month extends o{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1;this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth();let r=this.token.length;return r===2?String(t+1).padStart(2,"0"):r===3?this.locales.monthsShort[t]:r===4?this.locales.months[t]:String(t+1)}}t.exports=Month},7940:(t,r,i)=>{"use strict";const o=i(1220);class Seconds extends o{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Seconds},9340:(t,r,i)=>{"use strict";const o=i(1220);class Year extends o{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?t.substr(-2):t}}t.exports=Year},2050:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,c,l){try{var u=t[c](l);var h=u.value}catch(t){i(t);return}if(u.done){r(h)}else{Promise.resolve(h).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var c=t.apply(r,i);function _next(t){asyncGeneratorStep(c,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(c,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(6401);const a=i(7332);const c=i(9798),l=c.erase,u=c.cursor;const h=i(8985),d=h.style,p=h.clear,m=h.figures,g=h.wrap,y=h.entriesToDisplay;const getVal=(t,r)=>t[r]&&(t[r].value||t[r].title||t[r]);const getTitle=(t,r)=>t[r]&&(t[r].title||t[r].value||t[r]);const getIndex=(t,r)=>{const i=t.findIndex((t=>t.value===r||t.title===r));return i>-1?i:undefined};class AutocompletePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.suggest=t.suggest;this.choices=t.choices;this.initial=typeof t.initial==="number"?t.initial:getIndex(t.choices,t.initial);this.select=this.initial||t.cursor||0;this.i18n={noMatches:t.noMatches||"no matches found"};this.fallback=t.fallback||this.initial;this.clearFirst=t.clearFirst||false;this.suggestions=[];this.input="";this.limit=t.limit||10;this.cursor=0;this.transform=d.render(t.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=p("",this.out.columns);this.complete(this.render);this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;if(typeof this._fb==="number")t=this.choices[this._fb];else if(typeof this._fb==="string")t={title:this._fb};return t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t;if(this.suggestions.length>0)this.value=getVal(this.suggestions,t);else this.value=this.fallback.value;this.fire()}complete(t){var r=this;return _asyncToGenerator((function*(){const i=r.completing=r.suggest(r.input,r.choices);const o=yield i;if(r.completing!==i)return;r.suggestions=o.map(((t,r,i)=>({title:getTitle(i,r),value:getVal(i,r),description:t.description})));r.completing=false;const a=Math.max(o.length-1,0);r.moveSelect(Math.min(a,r.select));t&&t()}))()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}exit(){if(this.clearFirst&&this.input.length>0){this.reset()}else{this.done=this.exited=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}abort(){this.done=this.aborted=true;this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){let i=this.input.slice(0,this.cursor);let o=this.input.slice(this.cursor);this.input=`${i}${t}${o}`;this.cursor=i.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let t=this.input.slice(0,this.cursor-1);let r=this.input.slice(this.cursor);this.input=`${t}${r}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor);let r=this.input.slice(this.cursor+1);this.input=`${t}${r}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions.length-1);this.render()}up(){if(this.select===0){this.moveSelect(this.suggestions.length-1)}else{this.moveSelect(this.select-1)}this.render()}down(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else{this.moveSelect(this.select+1)}this.render()}next(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1));this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0));this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}renderOption(t,r,i,a){let c;let l=i?m.arrowUp:a?m.arrowDown:" ";let u=r?o.cyan().underline(t.title):t.title;l=(r?o.cyan(m.pointer)+" ":" ")+l;if(t.description){c=` - ${t.description}`;if(l.length+u.length+c.length>=this.out.columns||t.description.split(/\r?\n/).length>1){c="\n"+g(t.description,{margin:3,width:this.out.columns})}}return l+" "+u+o.gray(c||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);else this.out.write(p(this.outputText,this.out.columns));super.render();let t=y(this.select,this.choices.length,this.limit),r=t.startIndex,i=t.endIndex;this.outputText=[d.symbol(this.done,this.aborted,this.exited),o.bold(this.msg),d.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" ");if(!this.done){const t=this.suggestions.slice(r,i).map(((t,o)=>this.renderOption(t,this.select===o+r,o===0&&r>0,o+r===i-1&&i<this.choices.length))).join("\n");this.outputText+=`\n`+(t||o.gray(this.fallback.title))}this.out.write(l.line+u.to(0)+this.outputText)}}t.exports=AutocompletePrompt},7081:(t,r,i)=>{"use strict";const o=i(6401);const a=i(9798),c=a.cursor;const l=i(8065);const u=i(8985),h=u.clear,d=u.style,p=u.figures;class AutocompleteMultiselectPrompt extends l{constructor(t={}){t.overrideRender=true;super(t);this.inputValue="";this.clear=h("",this.out.columns);this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>{if(this.inputValue){if(typeof t.title==="string"){if(t.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof t.value==="string"){if(t.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const r=this.filteredOptions.findIndex((r=>r===t));this.cursor=r<0?0:r;this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t;this.updateFilteredOptions()}_(t,r){if(t===" "){this.handleSpaceToggle()}else{this.handleInputChange(t)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n ${p.arrowUp}/${p.arrowDown}: Highlight option\n ${p.arrowLeft}/${p.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`}return""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:o.gray("Enter something to filter")}\n`}renderOption(t,r,i){let a;if(r.disabled)a=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title);else a=t===i?o.cyan().underline(r.title):r.title;return(r.selected?o.green(p.radioOn):p.radioOff)+" "+a}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(c.hide);super.render();let t=[d.symbol(this.done,this.aborted),o.bold(this.msg),d.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+t);this.clear=h(t,this.out.columns)}}t.exports=AutocompleteMultiselectPrompt},6352:(t,r,i)=>{"use strict";const o=i(6401);const a=i(7332);const c=i(8985),l=c.style,u=c.clear;const h=i(9798),d=h.erase,p=h.cursor;class ConfirmPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=t.initial;this.initialValue=!!t.initial;this.yesMsg=t.yes||"yes";this.yesOption=t.yesOption||"(Y/n)";this.noMsg=t.no||"no";this.noOption=t.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){if(t.toLowerCase()==="y"){this.value=true;return this.submit()}if(t.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(p.hide);else this.out.write(u(this.outputText,this.out.columns));super.render();this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:o.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(d.line+p.to(0)+this.outputText)}}t.exports=ConfirmPrompt},8614:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,c,l){try{var u=t[c](l);var h=u.value}catch(t){i(t);return}if(u.done){r(h)}else{Promise.resolve(h).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var c=t.apply(r,i);function _next(t){asyncGeneratorStep(c,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(c,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(6401);const a=i(7332);const c=i(8985),l=c.style,u=c.clear,h=c.figures;const d=i(9798),p=d.erase,m=d.cursor;const g=i(4889),y=g.DatePart,v=g.Meridiem,b=g.Day,w=g.Hours,E=g.Milliseconds,S=g.Minutes,$=g.Month,R=g.Seconds,P=g.Year;const O=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const A={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new b(t),3:t=>new $(t),4:t=>new P(t),5:t=>new v(t),6:t=>new w(t),7:t=>new S(t),8:t=>new R(t),9:t=>new E(t)};const x={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.cursor=0;this.typed="";this.locales=Object.assign(x,t.locales);this._date=t.initial||new Date;this.errorMsg=t.error||"Please Enter A Valid Value";this.validator=t.validate||(()=>true);this.mask=t.mask||"YYYY-MM-DD HH:mm:ss";this.clear=u("",this.out.columns);this.render()}get value(){return this.date}get date(){return this._date}set date(t){if(t)this._date.setTime(t.getTime())}set mask(t){let r;this.parts=[];while(r=O.exec(t)){let t=r.shift();let i=r.findIndex((t=>t!=null));this.parts.push(i in A?A[i]({token:r[i]||t,date:this.date,parts:this.parts,locales:this.locales}):r[i]||t)}let i=this.parts.reduce(((t,r)=>{if(typeof r==="string"&&typeof t[t.length-1]==="string")t[t.length-1]+=r;else t.push(r);return t}),[]);this.parts.splice(0);this.parts.push(...i);this.reset()}moveCursor(t){this.typed="";this.cursor=t;this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof y)));this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var t=this;return _asyncToGenerator((function*(){let r=yield t.validator(t.value);if(typeof r==="string"){t.errorMsg=r;r=false}t.error=!r}))()}submit(){var t=this;return _asyncToGenerator((function*(){yield t.validate();if(t.error){t.color="red";t.fire();t.render();return}t.done=true;t.aborted=false;t.fire();t.render();t.out.write("\n");t.close()}))()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let t=this.parts[this.cursor].prev();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}right(){let t=this.parts[this.cursor].next();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof y)));this.render()}_(t){if(/\d/.test(t)){this.typed+=t;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(m.hide);else this.out.write(u(this.outputText,this.out.columns));super.render();this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(false),this.parts.reduce(((t,r,i)=>t.concat(i===this.cursor&&!this.done?o.cyan().underline(r.toString()):r)),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce(((t,r,i)=>t+`\n${i?` `:h.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(p.line+m.to(0)+this.outputText)}}t.exports=DatePrompt},7444:(t,r,i)=>{"use strict";t.exports={TextPrompt:i(8717),SelectPrompt:i(4850),TogglePrompt:i(7994),DatePrompt:i(8614),NumberPrompt:i(5651),MultiselectPrompt:i(8065),AutocompletePrompt:i(2050),AutocompleteMultiselectPrompt:i(7081),ConfirmPrompt:i(6352)}},8065:(t,r,i)=>{"use strict";const o=i(6401);const a=i(9798),c=a.cursor;const l=i(7332);const u=i(8985),h=u.clear,d=u.figures,p=u.style,m=u.wrap,g=u.entriesToDisplay;class MultiselectPrompt extends l{constructor(t={}){super(t);this.msg=t.message;this.cursor=t.cursor||0;this.scrollIndex=t.cursor||0;this.hint=t.hint||"";this.warn=t.warn||"- This option is disabled -";this.minSelected=t.min;this.showMinError=false;this.maxChoices=t.max;this.instructions=t.instructions;this.optionsPerPage=t.optionsPerPage||10;this.value=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(t.value===undefined?r:t.value),selected:t&&t.selected,disabled:t&&t.disabled}}));this.clear=h("",this.out.columns);if(!t.overrideRender){this.render()}}reset(){this.value.map((t=>!t.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const t=this.value.filter((t=>t.selected));if(this.minSelected&&t.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((r=>r.selected=t));this.render()}_(t,r){if(t===" "){this.handleSpaceToggle()}else if(t==="a"){this.toggleAll()}else{return this.bell()}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return"\nInstructions:\n"+` ${d.arrowUp}/${d.arrowDown}: Highlight option\n`+` ${d.arrowLeft}/${d.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?` a: Toggle all\n`:"")+` enter/return: Complete answer`}return""}renderOption(t,r,i,a){const c=(r.selected?o.green(d.radioOn):d.radioOff)+" "+a+" ";let l,u;if(r.disabled){l=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title)}else{l=t===i?o.cyan().underline(r.title):r.title;if(t===i&&r.description){u=` - ${r.description}`;if(c.length+l.length+u.length>=this.out.columns||r.description.split(/\r?\n/).length>1){u="\n"+m(r.description,{margin:c.length,width:this.out.columns})}}}return c+l+o.gray(u||"")}paginateOptions(t){if(t.length===0){return o.red("No matches for this query.")}let r=g(this.cursor,t.length,this.optionsPerPage),i=r.startIndex,a=r.endIndex;let c,l=[];for(let r=i;r<a;r++){if(r===i&&i>0){c=d.arrowUp}else if(r===a-1&&a<t.length){c=d.arrowDown}else{c=" "}l.push(this.renderOption(this.cursor,t[r],r,c))}return"\n"+l.join("\n")}renderOptions(t){if(!this.done){return this.paginateOptions(t)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(c.hide);super.render();let t=[p.symbol(this.done,this.aborted),o.bold(this.msg),p.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.value);this.out.write(this.clear+t);this.clear=h(t,this.out.columns)}}t.exports=MultiselectPrompt},5651:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,c,l){try{var u=t[c](l);var h=u.value}catch(t){i(t);return}if(u.done){r(h)}else{Promise.resolve(h).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var c=t.apply(r,i);function _next(t){asyncGeneratorStep(c,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(c,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(6401);const a=i(7332);const c=i(9798),l=c.cursor,u=c.erase;const h=i(8985),d=h.style,p=h.figures,m=h.clear,g=h.lines;const y=/[0-9]/;const isDef=t=>t!==undefined;const round=(t,r)=>{let i=Math.pow(10,r);return Math.round(t*i)/i};class NumberPrompt extends a{constructor(t={}){super(t);this.transform=d.render(t.style);this.msg=t.message;this.initial=isDef(t.initial)?t.initial:"";this.float=!!t.float;this.round=t.round||2;this.inc=t.increment||1;this.min=isDef(t.min)?t.min:-Infinity;this.max=isDef(t.max)?t.max:Infinity;this.errorMsg=t.error||`Please Enter A Valid Value`;this.validator=t.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(t){if(!t&&t!==0){this.placeholder=true;this.rendered=o.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(t,this.round)}`);this._value=round(t,this.round)}this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return t===`-`||t===`.`&&this.float||y.test(t)}reset(){this.typed=``;this.value=``;this.fire();this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=t!==``?t:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}validate(){var t=this;return _asyncToGenerator((function*(){let r=yield t.validator(t.value);if(typeof r===`string`){t.errorMsg=r;r=false}t.error=!r}))()}submit(){var t=this;return _asyncToGenerator((function*(){yield t.validate();if(t.error){t.color=`red`;t.fire();t.render();return}let r=t.value;t.value=r!==``?r:t.initial;t.done=true;t.aborted=false;t.error=false;t.fire();t.render();t.out.write(`\n`);t.close()}))()}up(){this.typed=``;if(this.value===""){this.value=this.min-this.inc}if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value===""){this.value=this.min+this.inc}if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let t=this.value.toString();if(t.length===0)return this.bell();this.value=this.parse(t=t.slice(0,-1))||``;if(this.value!==""&&this.value<this.min){this.value=this.min}this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(t,r){if(!this.valid(t))return this.bell();const i=Date.now();if(i-this.lastHit>1e3)this.typed=``;this.typed+=t;this.lastHit=i;this.color=`cyan`;if(t===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(l.down(g(this.outputError,this.out.columns)-1)+m(this.outputError,this.out.columns));this.out.write(m(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[d.symbol(this.done,this.aborted),o.bold(this.msg),d.delimiter(this.done),!this.done||!this.done&&!this.placeholder?o[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?` `:p.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(u.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore)}}t.exports=NumberPrompt},7332:(t,r,i)=>{"use strict";const o=i(3785);const a=i(8985),c=a.action;const l=i(4434);const u=i(9798),h=u.beep,d=u.cursor;const p=i(6401);class Prompt extends l{constructor(t={}){super();this.firstRender=true;this.in=t.stdin||process.stdin;this.out=t.stdout||process.stdout;this.onRender=(t.onRender||(()=>void 0)).bind(this);const r=o.createInterface({input:this.in,escapeCodeTimeout:50});o.emitKeypressEvents(this.in,r);if(this.in.isTTY)this.in.setRawMode(true);const i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const keypress=(t,r)=>{let o=c(r,i);if(o===false){this._&&this._(t,r)}else if(typeof this[o]==="function"){this[o](r)}else{this.bell()}};this.close=()=>{this.out.write(d.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);r.close();this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(h)}render(){this.onRender(p);if(this.firstRender)this.firstRender=false}}t.exports=Prompt},4850:(t,r,i)=>{"use strict";const o=i(6401);const a=i(7332);const c=i(8985),l=c.style,u=c.clear,h=c.figures,d=c.wrap,p=c.entriesToDisplay;const m=i(9798),g=m.cursor;class SelectPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.hint=t.hint||"- Use arrow-keys. Return to submit.";this.warn=t.warn||"- This option is disabled";this.cursor=t.initial||0;this.choices=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),value:t&&(t.value===undefined?r:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}}));this.optionsPerPage=t.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=u("",this.out.columns);this.render()}moveCursor(t){this.cursor=t;this.value=this.choices[t].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0){this.moveCursor(this.choices.length-1)}else{this.moveCursor(this.cursor-1)}this.render()}down(){if(this.cursor===this.choices.length-1){this.moveCursor(0)}else{this.moveCursor(this.cursor+1)}this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(t,r){if(t===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(g.hide);else this.out.write(u(this.outputText,this.out.columns));super.render();let t=p(this.cursor,this.choices.length,this.optionsPerPage),r=t.startIndex,i=t.endIndex;this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(false),this.done?this.selection.title:this.selection.disabled?o.yellow(this.warn):o.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let t=r;t<i;t++){let a,c,l="",u=this.choices[t];if(t===r&&r>0){c=h.arrowUp}else if(t===i-1&&i<this.choices.length){c=h.arrowDown}else{c=" "}if(u.disabled){a=this.cursor===t?o.gray().underline(u.title):o.strikethrough().gray(u.title);c=(this.cursor===t?o.bold().gray(h.pointer)+" ":" ")+c}else{a=this.cursor===t?o.cyan().underline(u.title):u.title;c=(this.cursor===t?o.cyan(h.pointer)+" ":" ")+c;if(u.description&&this.cursor===t){l=` - ${u.description}`;if(c.length+a.length+l.length>=this.out.columns||u.description.split(/\r?\n/).length>1){l="\n"+d(u.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${c} ${a}${o.gray(l)}\n`}}this.out.write(this.outputText)}}t.exports=SelectPrompt},8717:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,c,l){try{var u=t[c](l);var h=u.value}catch(t){i(t);return}if(u.done){r(h)}else{Promise.resolve(h).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var c=t.apply(r,i);function _next(t){asyncGeneratorStep(c,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(c,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(6401);const a=i(7332);const c=i(9798),l=c.erase,u=c.cursor;const h=i(8985),d=h.style,p=h.clear,m=h.lines,g=h.figures;class TextPrompt extends a{constructor(t={}){super(t);this.transform=d.render(t.style);this.scale=this.transform.scale;this.msg=t.message;this.initial=t.initial||``;this.validator=t.validate||(()=>true);this.value=``;this.errorMsg=t.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.clear=p(``,this.out.columns);this.render()}set value(t){if(!t&&this.initial){this.placeholder=true;this.rendered=o.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(t)}this._value=t;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.fire();this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var t=this;return _asyncToGenerator((function*(){let r=yield t.validator(t.value);if(typeof r===`string`){t.errorMsg=r;r=false}t.error=!r}))()}submit(){var t=this;return _asyncToGenerator((function*(){t.value=t.value||t.initial;t.cursorOffset=0;t.cursor=t.rendered.length;yield t.validate();if(t.error){t.red=true;t.fire();t.render();return}t.done=true;t.aborted=false;t.fire();t.render();t.out.write("\n");t.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(t){if(this.placeholder)return;this.cursor=this.cursor+t;this.cursorOffset+=t}_(t,r){let i=this.value.slice(0,this.cursor);let o=this.value.slice(this.cursor);this.value=`${i}${t}${o}`;this.red=false;this.cursor=this.placeholder?0:i.length+1;this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1);let r=this.value.slice(this.cursor);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtStart()){this.cursorOffset=0}else{this.cursorOffset++;this.moveCursor(-1)}this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor);let r=this.value.slice(this.cursor+1);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtEnd()){this.cursorOffset=0}else{this.cursorOffset++}this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(u.down(m(this.outputError,this.out.columns)-1)+p(this.outputError,this.out.columns));this.out.write(p(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[d.symbol(this.done,this.aborted),o.bold(this.msg),d.delimiter(this.done),this.red?o.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?" ":g.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(l.line+u.to(0)+this.outputText+u.save+this.outputError+u.restore+u.move(this.cursorOffset,0))}}t.exports=TextPrompt},7994:(t,r,i)=>{"use strict";const o=i(6401);const a=i(7332);const c=i(8985),l=c.style,u=c.clear;const h=i(9798),d=h.cursor,p=h.erase;class TogglePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=!!t.initial;this.active=t.active||"on";this.inactive=t.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(t,r){if(t===" "){this.value=!this.value}else if(t==="1"){this.value=true}else if(t==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(d.hide);else this.out.write(u(this.outputText,this.out.columns));super.render();this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(this.done),this.value?this.inactive:o.cyan().underline(this.inactive),o.gray("/"),this.value?o.cyan().underline(this.active):this.active].join(" ");this.out.write(p.line+d.to(0)+this.outputText)}}t.exports=TogglePrompt},3744:(t,r,i)=>{"use strict";function ownKeys(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);if(r){o=o.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))}i.push.apply(i,o)}return i}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){ownKeys(Object(i),true).forEach((function(r){_defineProperty(t,r,i[r])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(i))}else{ownKeys(Object(i)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))}))}}return t}function _defineProperty(t,r,i){if(r in t){Object.defineProperty(t,r,{value:i,enumerable:true,configurable:true,writable:true})}else{t[r]=i}return t}function _createForOfIteratorHelper(t,r){var i=typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||r&&t&&typeof t.length==="number"){if(i)t=i;var o=0;var a=function F(){};return{s:a,n:function n(){if(o>=t.length)return{done:true};return{done:false,value:t[o++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=true,l=false,u;return{s:function s(){i=i.call(t)},n:function n(){var t=i.next();c=t.done;return t},e:function e(t){l=true;u=t},f:function f(){try{if(!c&&i.return!=null)i.return()}finally{if(l)throw u}}}}function _unsupportedIterableToArray(t,r){if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor)i=t.constructor.name;if(i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(t,r)}function _arrayLikeToArray(t,r){if(r==null||r>t.length)r=t.length;for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function asyncGeneratorStep(t,r,i,o,a,c,l){try{var u=t[c](l);var h=u.value}catch(t){i(t);return}if(u.done){r(h)}else{Promise.resolve(h).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var c=t.apply(r,i);function _next(t){asyncGeneratorStep(c,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(c,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(1447);const a=["suggest","format","onState","validate","onRender","type"];const noop=()=>{};function prompt(){return _prompt.apply(this,arguments)}function _prompt(){_prompt=_asyncToGenerator((function*(t=[],{onSubmit:r=noop,onCancel:i=noop}={}){const c={};const l=prompt._override||{};t=[].concat(t);let u,h,d,p,m,g;const y=function(){var t=_asyncToGenerator((function*(t,r,i=false){if(!i&&t.validate&&t.validate(r)!==true){return}return t.format?yield t.format(r,c):r}));return function getFormattedAnswer(r,i){return t.apply(this,arguments)}}();var v=_createForOfIteratorHelper(t),b;try{for(v.s();!(b=v.n()).done;){h=b.value;var w=h;p=w.name;m=w.type;if(typeof m==="function"){m=yield m(u,_objectSpread({},c),h);h["type"]=m}if(!m)continue;for(let t in h){if(a.includes(t))continue;let r=h[t];h[t]=typeof r==="function"?yield r(u,_objectSpread({},c),g):r}g=h;if(typeof h.message!=="string"){throw new Error("prompt message is required")}var E=h;p=E.name;m=E.type;if(o[m]===void 0){throw new Error(`prompt type (${m}) is not defined`)}if(l[h.name]!==undefined){u=yield y(h,l[h.name]);if(u!==undefined){c[p]=u;continue}}try{u=prompt._injected?getInjectedAnswer(prompt._injected,h.initial):yield o[m](h);c[p]=u=yield y(h,u,true);d=yield r(h,u,c)}catch(t){d=!(yield i(h,c))}if(d)return c}}catch(t){v.e(t)}finally{v.f()}return c}));return _prompt.apply(this,arguments)}function getInjectedAnswer(t,r){const i=t.shift();if(i instanceof Error){throw i}return i===undefined?r:i}function inject(t){prompt._injected=(prompt._injected||[]).concat(t)}function override(t){prompt._override=Object.assign({},t)}t.exports=Object.assign(prompt,{prompt:prompt,prompts:o,inject:inject,override:override})},1447:(t,r,i)=>{"use strict";const o=r;const a=i(7444);const noop=t=>t;function toPrompt(t,r,i={}){return new Promise(((o,c)=>{const l=new a[t](r);const u=i.onAbort||noop;const h=i.onSubmit||noop;const d=i.onExit||noop;l.on("state",r.onState||noop);l.on("submit",(t=>o(h(t))));l.on("exit",(t=>o(d(t))));l.on("abort",(t=>c(u(t))))}))}o.text=t=>toPrompt("TextPrompt",t);o.password=t=>{t.style="password";return o.text(t)};o.invisible=t=>{t.style="invisible";return o.text(t)};o.number=t=>toPrompt("NumberPrompt",t);o.date=t=>toPrompt("DatePrompt",t);o.confirm=t=>toPrompt("ConfirmPrompt",t);o.list=t=>{const r=t.separator||",";return toPrompt("TextPrompt",t,{onSubmit:t=>t.split(r).map((t=>t.trim()))})};o.toggle=t=>toPrompt("TogglePrompt",t);o.select=t=>toPrompt("SelectPrompt",t);o.multiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("MultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};o.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("AutocompleteMultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(t,r)=>Promise.resolve(r.filter((r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));o.autocomplete=t=>{t.suggest=t.suggest||byTitle;t.choices=[].concat(t.choices||[]);return toPrompt("AutocompletePrompt",t)}},5823:t=>{"use strict";t.exports=(t,r)=>{if(t.meta&&t.name!=="escape")return;if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c")return"abort";if(t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(r){if(t.name==="j")return"down";if(t.name==="k")return"up"}if(t.name==="return")return"submit";if(t.name==="enter")return"submit";if(t.name==="backspace")return"delete";if(t.name==="delete")return"deleteForward";if(t.name==="abort")return"abort";if(t.name==="escape")return"exit";if(t.name==="tab")return"next";if(t.name==="pagedown")return"nextPage";if(t.name==="pageup")return"prevPage";if(t.name==="home")return"home";if(t.name==="end")return"end";if(t.name==="up")return"up";if(t.name==="down")return"down";if(t.name==="right")return"right";if(t.name==="left")return"left";return false}},2704:(t,r,i)=>{"use strict";function _createForOfIteratorHelper(t,r){var i=typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||r&&t&&typeof t.length==="number"){if(i)t=i;var o=0;var a=function F(){};return{s:a,n:function n(){if(o>=t.length)return{done:true};return{done:false,value:t[o++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=true,l=false,u;return{s:function s(){i=i.call(t)},n:function n(){var t=i.next();c=t.done;return t},e:function e(t){l=true;u=t},f:function f(){try{if(!c&&i.return!=null)i.return()}finally{if(l)throw u}}}}function _unsupportedIterableToArray(t,r){if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor)i=t.constructor.name;if(i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(t,r)}function _arrayLikeToArray(t,r){if(r==null||r>t.length)r=t.length;for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}const o=i(3147);const a=i(9798),c=a.erase,l=a.cursor;const width=t=>[...o(t)].length;t.exports=function(t,r){if(!r)return c.line+l.to(0);let i=0;const o=t.split(/\r?\n/);var a=_createForOfIteratorHelper(o),u;try{for(a.s();!(u=a.n()).done;){let t=u.value;i+=1+Math.floor(Math.max(width(t)-1,0)/r)}}catch(t){a.e(t)}finally{a.f()}return c.lines(i)}},604:t=>{"use strict";t.exports=(t,r,i)=>{i=i||r;let o=Math.min(r-i,t-Math.floor(i/2));if(o<0)o=0;let a=Math.min(o+i,r);return{startIndex:o,endIndex:a}}},2612:t=>{"use strict";const r={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const i={arrowUp:r.arrowUp,arrowDown:r.arrowDown,arrowLeft:r.arrowLeft,arrowRight:r.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const o=process.platform==="win32"?i:r;t.exports=o},8985:(t,r,i)=>{"use strict";t.exports={action:i(5823),clear:i(2704),style:i(6428),strip:i(3147),figures:i(2612),lines:i(8170),wrap:i(1697),entriesToDisplay:i(604)}},8170:(t,r,i)=>{"use strict";const o=i(3147);t.exports=function(t,r){let i=String(o(t)||"").split(/\r?\n/);if(!r)return i.length;return i.map((t=>Math.ceil(t.length/r))).reduce(((t,r)=>t+r))}},3147:t=>{"use strict";t.exports=t=>{const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const i=new RegExp(r,"g");return typeof t==="string"?t.replace(i,""):t}},6428:(t,r,i)=>{"use strict";const o=i(6401);const a=i(2612);const c=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"😃".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}});const render=t=>c[t]||c.default;const l=Object.freeze({aborted:o.red(a.cross),done:o.green(a.tick),exited:o.yellow(a.cross),default:o.cyan("?")});const symbol=(t,r,i)=>r?l.aborted:i?l.exited:t?l.done:l.default;const delimiter=t=>o.gray(t?a.ellipsis:a.pointerSmall);const item=(t,r)=>o.gray(t?r?a.pointerSmall:"+":a.line);t.exports={styles:c,render:render,symbols:l,symbol:symbol,delimiter:delimiter,item:item}},1697:t=>{"use strict";t.exports=(t,r={})=>{const i=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"";const o=r.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,r)=>{if(r.length+i.length>=o||t[t.length-1].length+r.length+1<o)t[t.length-1]+=` ${r}`;else t.push(`${i}${r}`);return t}),[i]).join("\n"))).join("\n")}},2171:(t,r,i)=>{function isNodeLT(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let r=0,i=process.versions.node.split(".").map(Number);for(;r<t.length;r++){if(i[r]>t[r])return false;if(t[r]>i[r])return true}return false}t.exports=isNodeLT("8.6.0")?i(3744):i(9819)},4437:t=>{"use strict";class DatePart{constructor({token:t,date:r,parts:i,locales:o}){this.token=t;this.date=r||new Date;this.parts=i||[this];this.locales=o||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,i)=>i>t&&r instanceof DatePart))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,i)=>i>r&&t instanceof DatePart))}toString(){return String(this.date)}}t.exports=DatePart},6324:(t,r,i)=>{"use strict";const o=i(4437);const pos=t=>{t=t%10;return t===1?"st":t===2?"nd":t===3?"rd":"th"};class Day extends o{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate();let r=this.date.getDay();return this.token==="DD"?String(t).padStart(2,"0"):this.token==="Do"?t+pos(t):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:t}}t.exports=Day},3181:(t,r,i)=>{"use strict";const o=i(4437);class Hours extends o{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();if(/h/.test(this.token))t=t%12||12;return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Hours},698:(t,r,i)=>{"use strict";t.exports={DatePart:i(4437),Meridiem:i(9342),Day:i(6324),Hours:i(3181),Milliseconds:i(9230),Minutes:i(3535),Month:i(5300),Seconds:i(9799),Year:i(2913)}},9342:(t,r,i)=>{"use strict";const o=i(4437);class Meridiem extends o{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}t.exports=Meridiem},9230:(t,r,i)=>{"use strict";const o=i(4437);class Milliseconds extends o{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}t.exports=Milliseconds},3535:(t,r,i)=>{"use strict";const o=i(4437);class Minutes extends o{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Minutes},5300:(t,r,i)=>{"use strict";const o=i(4437);class Month extends o{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1;this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth();let r=this.token.length;return r===2?String(t+1).padStart(2,"0"):r===3?this.locales.monthsShort[t]:r===4?this.locales.months[t]:String(t+1)}}t.exports=Month},9799:(t,r,i)=>{"use strict";const o=i(4437);class Seconds extends o{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Seconds},2913:(t,r,i)=>{"use strict";const o=i(4437);class Year extends o{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?t.substr(-2):t}}t.exports=Year},5629:(t,r,i)=>{"use strict";const o=i(6401);const a=i(1903);const{erase:c,cursor:l}=i(9798);const{style:u,clear:h,figures:d,wrap:p,entriesToDisplay:m}=i(2876);const getVal=(t,r)=>t[r]&&(t[r].value||t[r].title||t[r]);const getTitle=(t,r)=>t[r]&&(t[r].title||t[r].value||t[r]);const getIndex=(t,r)=>{const i=t.findIndex((t=>t.value===r||t.title===r));return i>-1?i:undefined};class AutocompletePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.suggest=t.suggest;this.choices=t.choices;this.initial=typeof t.initial==="number"?t.initial:getIndex(t.choices,t.initial);this.select=this.initial||t.cursor||0;this.i18n={noMatches:t.noMatches||"no matches found"};this.fallback=t.fallback||this.initial;this.clearFirst=t.clearFirst||false;this.suggestions=[];this.input="";this.limit=t.limit||10;this.cursor=0;this.transform=u.render(t.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=h("",this.out.columns);this.complete(this.render);this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;if(typeof this._fb==="number")t=this.choices[this._fb];else if(typeof this._fb==="string")t={title:this._fb};return t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t;if(this.suggestions.length>0)this.value=getVal(this.suggestions,t);else this.value=this.fallback.value;this.fire()}async complete(t){const r=this.completing=this.suggest(this.input,this.choices);const i=await r;if(this.completing!==r)return;this.suggestions=i.map(((t,r,i)=>({title:getTitle(i,r),value:getVal(i,r),description:t.description})));this.completing=false;const o=Math.max(i.length-1,0);this.moveSelect(Math.min(o,this.select));t&&t()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}exit(){if(this.clearFirst&&this.input.length>0){this.reset()}else{this.done=this.exited=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}abort(){this.done=this.aborted=true;this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){let i=this.input.slice(0,this.cursor);let o=this.input.slice(this.cursor);this.input=`${i}${t}${o}`;this.cursor=i.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let t=this.input.slice(0,this.cursor-1);let r=this.input.slice(this.cursor);this.input=`${t}${r}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor);let r=this.input.slice(this.cursor+1);this.input=`${t}${r}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions.length-1);this.render()}up(){if(this.select===0){this.moveSelect(this.suggestions.length-1)}else{this.moveSelect(this.select-1)}this.render()}down(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else{this.moveSelect(this.select+1)}this.render()}next(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1));this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0));this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}renderOption(t,r,i,a){let c;let l=i?d.arrowUp:a?d.arrowDown:" ";let u=r?o.cyan().underline(t.title):t.title;l=(r?o.cyan(d.pointer)+" ":" ")+l;if(t.description){c=` - ${t.description}`;if(l.length+u.length+c.length>=this.out.columns||t.description.split(/\r?\n/).length>1){c="\n"+p(t.description,{margin:3,width:this.out.columns})}}return l+" "+u+o.gray(c||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(h(this.outputText,this.out.columns));super.render();let{startIndex:t,endIndex:r}=m(this.select,this.choices.length,this.limit);this.outputText=[u.symbol(this.done,this.aborted,this.exited),o.bold(this.msg),u.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" ");if(!this.done){const i=this.suggestions.slice(t,r).map(((i,o)=>this.renderOption(i,this.select===o+t,o===0&&t>0,o+t===r-1&&r<this.choices.length))).join("\n");this.outputText+=`\n`+(i||o.gray(this.fallback.title))}this.out.write(c.line+l.to(0)+this.outputText)}}t.exports=AutocompletePrompt},5688:(t,r,i)=>{"use strict";const o=i(6401);const{cursor:a}=i(9798);const c=i(9752);const{clear:l,style:u,figures:h}=i(2876);class AutocompleteMultiselectPrompt extends c{constructor(t={}){t.overrideRender=true;super(t);this.inputValue="";this.clear=l("",this.out.columns);this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>{if(this.inputValue){if(typeof t.title==="string"){if(t.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof t.value==="string"){if(t.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const r=this.filteredOptions.findIndex((r=>r===t));this.cursor=r<0?0:r;this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t;this.updateFilteredOptions()}_(t,r){if(t===" "){this.handleSpaceToggle()}else{this.handleInputChange(t)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n ${h.arrowUp}/${h.arrowDown}: Highlight option\n ${h.arrowLeft}/${h.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`}return""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:o.gray("Enter something to filter")}\n`}renderOption(t,r,i){let a;if(r.disabled)a=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title);else a=t===i?o.cyan().underline(r.title):r.title;return(r.selected?o.green(h.radioOn):h.radioOff)+" "+a}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();let t=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+t);this.clear=l(t,this.out.columns)}}t.exports=AutocompleteMultiselectPrompt},909:(t,r,i)=>{const o=i(6401);const a=i(1903);const{style:c,clear:l}=i(2876);const{erase:u,cursor:h}=i(9798);class ConfirmPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=t.initial;this.initialValue=!!t.initial;this.yesMsg=t.yes||"yes";this.yesOption=t.yesOption||"(Y/n)";this.noMsg=t.no||"no";this.noOption=t.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){if(t.toLowerCase()==="y"){this.value=true;return this.submit()}if(t.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();this.outputText=[c.symbol(this.done,this.aborted),o.bold(this.msg),c.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:o.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(u.line+h.to(0)+this.outputText)}}t.exports=ConfirmPrompt},1473:(t,r,i)=>{"use strict";const o=i(6401);const a=i(1903);const{style:c,clear:l,figures:u}=i(2876);const{erase:h,cursor:d}=i(9798);const{DatePart:p,Meridiem:m,Day:g,Hours:y,Milliseconds:v,Minutes:b,Month:w,Seconds:E,Year:S}=i(698);const $=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const R={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new g(t),3:t=>new w(t),4:t=>new S(t),5:t=>new m(t),6:t=>new y(t),7:t=>new b(t),8:t=>new E(t),9:t=>new v(t)};const P={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.cursor=0;this.typed="";this.locales=Object.assign(P,t.locales);this._date=t.initial||new Date;this.errorMsg=t.error||"Please Enter A Valid Value";this.validator=t.validate||(()=>true);this.mask=t.mask||"YYYY-MM-DD HH:mm:ss";this.clear=l("",this.out.columns);this.render()}get value(){return this.date}get date(){return this._date}set date(t){if(t)this._date.setTime(t.getTime())}set mask(t){let r;this.parts=[];while(r=$.exec(t)){let t=r.shift();let i=r.findIndex((t=>t!=null));this.parts.push(i in R?R[i]({token:r[i]||t,date:this.date,parts:this.parts,locales:this.locales}):r[i]||t)}let i=this.parts.reduce(((t,r)=>{if(typeof r==="string"&&typeof t[t.length-1]==="string")t[t.length-1]+=r;else t.push(r);return t}),[]);this.parts.splice(0);this.parts.push(...i);this.reset()}moveCursor(t){this.typed="";this.cursor=t;this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof p)));this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let t=await this.validator(this.value);if(typeof t==="string"){this.errorMsg=t;t=false}this.error=!t}async submit(){await this.validate();if(this.error){this.color="red";this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let t=this.parts[this.cursor].prev();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}right(){let t=this.parts[this.cursor].next();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof p)));this.render()}_(t){if(/\d/.test(t)){this.typed+=t;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(d.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();this.outputText=[c.symbol(this.done,this.aborted),o.bold(this.msg),c.delimiter(false),this.parts.reduce(((t,r,i)=>t.concat(i===this.cursor&&!this.done?o.cyan().underline(r.toString()):r)),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce(((t,r,i)=>t+`\n${i?` `:u.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(h.line+d.to(0)+this.outputText)}}t.exports=DatePrompt},8326:(t,r,i)=>{"use strict";t.exports={TextPrompt:i(9362),SelectPrompt:i(6661),TogglePrompt:i(3157),DatePrompt:i(1473),NumberPrompt:i(9412),MultiselectPrompt:i(9752),AutocompletePrompt:i(5629),AutocompleteMultiselectPrompt:i(5688),ConfirmPrompt:i(909)}},9752:(t,r,i)=>{"use strict";const o=i(6401);const{cursor:a}=i(9798);const c=i(1903);const{clear:l,figures:u,style:h,wrap:d,entriesToDisplay:p}=i(2876);class MultiselectPrompt extends c{constructor(t={}){super(t);this.msg=t.message;this.cursor=t.cursor||0;this.scrollIndex=t.cursor||0;this.hint=t.hint||"";this.warn=t.warn||"- This option is disabled -";this.minSelected=t.min;this.showMinError=false;this.maxChoices=t.max;this.instructions=t.instructions;this.optionsPerPage=t.optionsPerPage||10;this.value=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(t.value===undefined?r:t.value),selected:t&&t.selected,disabled:t&&t.disabled}}));this.clear=l("",this.out.columns);if(!t.overrideRender){this.render()}}reset(){this.value.map((t=>!t.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const t=this.value.filter((t=>t.selected));if(this.minSelected&&t.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((r=>r.selected=t));this.render()}_(t,r){if(t===" "){this.handleSpaceToggle()}else if(t==="a"){this.toggleAll()}else{return this.bell()}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return"\nInstructions:\n"+` ${u.arrowUp}/${u.arrowDown}: Highlight option\n`+` ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?` a: Toggle all\n`:"")+` enter/return: Complete answer`}return""}renderOption(t,r,i,a){const c=(r.selected?o.green(u.radioOn):u.radioOff)+" "+a+" ";let l,h;if(r.disabled){l=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title)}else{l=t===i?o.cyan().underline(r.title):r.title;if(t===i&&r.description){h=` - ${r.description}`;if(c.length+l.length+h.length>=this.out.columns||r.description.split(/\r?\n/).length>1){h="\n"+d(r.description,{margin:c.length,width:this.out.columns})}}}return c+l+o.gray(h||"")}paginateOptions(t){if(t.length===0){return o.red("No matches for this query.")}let{startIndex:r,endIndex:i}=p(this.cursor,t.length,this.optionsPerPage);let a,c=[];for(let o=r;o<i;o++){if(o===r&&r>0){a=u.arrowUp}else if(o===i-1&&i<t.length){a=u.arrowDown}else{a=" "}c.push(this.renderOption(this.cursor,t[o],o,a))}return"\n"+c.join("\n")}renderOptions(t){if(!this.done){return this.paginateOptions(t)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();let t=[h.symbol(this.done,this.aborted),o.bold(this.msg),h.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.value);this.out.write(this.clear+t);this.clear=l(t,this.out.columns)}}t.exports=MultiselectPrompt},9412:(t,r,i)=>{const o=i(6401);const a=i(1903);const{cursor:c,erase:l}=i(9798);const{style:u,figures:h,clear:d,lines:p}=i(2876);const m=/[0-9]/;const isDef=t=>t!==undefined;const round=(t,r)=>{let i=Math.pow(10,r);return Math.round(t*i)/i};class NumberPrompt extends a{constructor(t={}){super(t);this.transform=u.render(t.style);this.msg=t.message;this.initial=isDef(t.initial)?t.initial:"";this.float=!!t.float;this.round=t.round||2;this.inc=t.increment||1;this.min=isDef(t.min)?t.min:-Infinity;this.max=isDef(t.max)?t.max:Infinity;this.errorMsg=t.error||`Please Enter A Valid Value`;this.validator=t.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(t){if(!t&&t!==0){this.placeholder=true;this.rendered=o.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(t,this.round)}`);this._value=round(t,this.round)}this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return t===`-`||t===`.`&&this.float||m.test(t)}reset(){this.typed=``;this.value=``;this.fire();this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=t!==``?t:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}async validate(){let t=await this.validator(this.value);if(typeof t===`string`){this.errorMsg=t;t=false}this.error=!t}async submit(){await this.validate();if(this.error){this.color=`red`;this.fire();this.render();return}let t=this.value;this.value=t!==``?t:this.initial;this.done=true;this.aborted=false;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}up(){this.typed=``;if(this.value===""){this.value=this.min-this.inc}if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value===""){this.value=this.min+this.inc}if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let t=this.value.toString();if(t.length===0)return this.bell();this.value=this.parse(t=t.slice(0,-1))||``;if(this.value!==""&&this.value<this.min){this.value=this.min}this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(t,r){if(!this.valid(t))return this.bell();const i=Date.now();if(i-this.lastHit>1e3)this.typed=``;this.typed+=t;this.lastHit=i;this.color=`cyan`;if(t===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(c.down(p(this.outputError,this.out.columns)-1)+d(this.outputError,this.out.columns));this.out.write(d(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(this.done),!this.done||!this.done&&!this.placeholder?o[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?` `:h.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(l.line+c.to(0)+this.outputText+c.save+this.outputError+c.restore)}}t.exports=NumberPrompt},1903:(t,r,i)=>{"use strict";const o=i(3785);const{action:a}=i(2876);const c=i(4434);const{beep:l,cursor:u}=i(9798);const h=i(6401);class Prompt extends c{constructor(t={}){super();this.firstRender=true;this.in=t.stdin||process.stdin;this.out=t.stdout||process.stdout;this.onRender=(t.onRender||(()=>void 0)).bind(this);const r=o.createInterface({input:this.in,escapeCodeTimeout:50});o.emitKeypressEvents(this.in,r);if(this.in.isTTY)this.in.setRawMode(true);const i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const keypress=(t,r)=>{let o=a(r,i);if(o===false){this._&&this._(t,r)}else if(typeof this[o]==="function"){this[o](r)}else{this.bell()}};this.close=()=>{this.out.write(u.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);r.close();this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(l)}render(){this.onRender(h);if(this.firstRender)this.firstRender=false}}t.exports=Prompt},6661:(t,r,i)=>{"use strict";const o=i(6401);const a=i(1903);const{style:c,clear:l,figures:u,wrap:h,entriesToDisplay:d}=i(2876);const{cursor:p}=i(9798);class SelectPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.hint=t.hint||"- Use arrow-keys. Return to submit.";this.warn=t.warn||"- This option is disabled";this.cursor=t.initial||0;this.choices=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),value:t&&(t.value===undefined?r:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}}));this.optionsPerPage=t.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=l("",this.out.columns);this.render()}moveCursor(t){this.cursor=t;this.value=this.choices[t].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0){this.moveCursor(this.choices.length-1)}else{this.moveCursor(this.cursor-1)}this.render()}down(){if(this.cursor===this.choices.length-1){this.moveCursor(0)}else{this.moveCursor(this.cursor+1)}this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(t,r){if(t===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(p.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();let{startIndex:t,endIndex:r}=d(this.cursor,this.choices.length,this.optionsPerPage);this.outputText=[c.symbol(this.done,this.aborted),o.bold(this.msg),c.delimiter(false),this.done?this.selection.title:this.selection.disabled?o.yellow(this.warn):o.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let i=t;i<r;i++){let a,c,l="",d=this.choices[i];if(i===t&&t>0){c=u.arrowUp}else if(i===r-1&&r<this.choices.length){c=u.arrowDown}else{c=" "}if(d.disabled){a=this.cursor===i?o.gray().underline(d.title):o.strikethrough().gray(d.title);c=(this.cursor===i?o.bold().gray(u.pointer)+" ":" ")+c}else{a=this.cursor===i?o.cyan().underline(d.title):d.title;c=(this.cursor===i?o.cyan(u.pointer)+" ":" ")+c;if(d.description&&this.cursor===i){l=` - ${d.description}`;if(c.length+a.length+l.length>=this.out.columns||d.description.split(/\r?\n/).length>1){l="\n"+h(d.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${c} ${a}${o.gray(l)}\n`}}this.out.write(this.outputText)}}t.exports=SelectPrompt},9362:(t,r,i)=>{const o=i(6401);const a=i(1903);const{erase:c,cursor:l}=i(9798);const{style:u,clear:h,lines:d,figures:p}=i(2876);class TextPrompt extends a{constructor(t={}){super(t);this.transform=u.render(t.style);this.scale=this.transform.scale;this.msg=t.message;this.initial=t.initial||``;this.validator=t.validate||(()=>true);this.value=``;this.errorMsg=t.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.clear=h(``,this.out.columns);this.render()}set value(t){if(!t&&this.initial){this.placeholder=true;this.rendered=o.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(t)}this._value=t;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.fire();this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let t=await this.validator(this.value);if(typeof t===`string`){this.errorMsg=t;t=false}this.error=!t}async submit(){this.value=this.value||this.initial;this.cursorOffset=0;this.cursor=this.rendered.length;await this.validate();if(this.error){this.red=true;this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(t){if(this.placeholder)return;this.cursor=this.cursor+t;this.cursorOffset+=t}_(t,r){let i=this.value.slice(0,this.cursor);let o=this.value.slice(this.cursor);this.value=`${i}${t}${o}`;this.red=false;this.cursor=this.placeholder?0:i.length+1;this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1);let r=this.value.slice(this.cursor);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtStart()){this.cursorOffset=0}else{this.cursorOffset++;this.moveCursor(-1)}this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor);let r=this.value.slice(this.cursor+1);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtEnd()){this.cursorOffset=0}else{this.cursorOffset++}this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(l.down(d(this.outputError,this.out.columns)-1)+h(this.outputError,this.out.columns));this.out.write(h(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(this.done),this.red?o.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?" ":p.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(c.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore+l.move(this.cursorOffset,0))}}t.exports=TextPrompt},3157:(t,r,i)=>{const o=i(6401);const a=i(1903);const{style:c,clear:l}=i(2876);const{cursor:u,erase:h}=i(9798);class TogglePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=!!t.initial;this.active=t.active||"on";this.inactive=t.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(t,r){if(t===" "){this.value=!this.value}else if(t==="1"){this.value=true}else if(t==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();this.outputText=[c.symbol(this.done,this.aborted),o.bold(this.msg),c.delimiter(this.done),this.value?this.inactive:o.cyan().underline(this.inactive),o.gray("/"),this.value?o.cyan().underline(this.active):this.active].join(" ");this.out.write(h.line+u.to(0)+this.outputText)}}t.exports=TogglePrompt},9819:(t,r,i)=>{"use strict";const o=i(3908);const a=["suggest","format","onState","validate","onRender","type"];const noop=()=>{};async function prompt(t=[],{onSubmit:r=noop,onCancel:i=noop}={}){const c={};const l=prompt._override||{};t=[].concat(t);let u,h,d,p,m,g;const getFormattedAnswer=async(t,r,i=false)=>{if(!i&&t.validate&&t.validate(r)!==true){return}return t.format?await t.format(r,c):r};for(h of t){({name:p,type:m}=h);if(typeof m==="function"){m=await m(u,{...c},h);h["type"]=m}if(!m)continue;for(let t in h){if(a.includes(t))continue;let r=h[t];h[t]=typeof r==="function"?await r(u,{...c},g):r}g=h;if(typeof h.message!=="string"){throw new Error("prompt message is required")}({name:p,type:m}=h);if(o[m]===void 0){throw new Error(`prompt type (${m}) is not defined`)}if(l[h.name]!==undefined){u=await getFormattedAnswer(h,l[h.name]);if(u!==undefined){c[p]=u;continue}}try{u=prompt._injected?getInjectedAnswer(prompt._injected,h.initial):await o[m](h);c[p]=u=await getFormattedAnswer(h,u,true);d=await r(h,u,c)}catch(t){d=!await i(h,c)}if(d)return c}return c}function getInjectedAnswer(t,r){const i=t.shift();if(i instanceof Error){throw i}return i===undefined?r:i}function inject(t){prompt._injected=(prompt._injected||[]).concat(t)}function override(t){prompt._override=Object.assign({},t)}t.exports=Object.assign(prompt,{prompt:prompt,prompts:o,inject:inject,override:override})},3908:(t,r,i)=>{"use strict";const o=r;const a=i(8326);const noop=t=>t;function toPrompt(t,r,i={}){return new Promise(((o,c)=>{const l=new a[t](r);const u=i.onAbort||noop;const h=i.onSubmit||noop;const d=i.onExit||noop;l.on("state",r.onState||noop);l.on("submit",(t=>o(h(t))));l.on("exit",(t=>o(d(t))));l.on("abort",(t=>c(u(t))))}))}o.text=t=>toPrompt("TextPrompt",t);o.password=t=>{t.style="password";return o.text(t)};o.invisible=t=>{t.style="invisible";return o.text(t)};o.number=t=>toPrompt("NumberPrompt",t);o.date=t=>toPrompt("DatePrompt",t);o.confirm=t=>toPrompt("ConfirmPrompt",t);o.list=t=>{const r=t.separator||",";return toPrompt("TextPrompt",t,{onSubmit:t=>t.split(r).map((t=>t.trim()))})};o.toggle=t=>toPrompt("TogglePrompt",t);o.select=t=>toPrompt("SelectPrompt",t);o.multiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("MultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};o.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("AutocompleteMultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(t,r)=>Promise.resolve(r.filter((r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));o.autocomplete=t=>{t.suggest=t.suggest||byTitle;t.choices=[].concat(t.choices||[]);return toPrompt("AutocompletePrompt",t)}},3496:t=>{"use strict";t.exports=(t,r)=>{if(t.meta&&t.name!=="escape")return;if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c")return"abort";if(t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(r){if(t.name==="j")return"down";if(t.name==="k")return"up"}if(t.name==="return")return"submit";if(t.name==="enter")return"submit";if(t.name==="backspace")return"delete";if(t.name==="delete")return"deleteForward";if(t.name==="abort")return"abort";if(t.name==="escape")return"exit";if(t.name==="tab")return"next";if(t.name==="pagedown")return"nextPage";if(t.name==="pageup")return"prevPage";if(t.name==="home")return"home";if(t.name==="end")return"end";if(t.name==="up")return"up";if(t.name==="down")return"down";if(t.name==="right")return"right";if(t.name==="left")return"left";return false}},3761:(t,r,i)=>{"use strict";const o=i(4566);const{erase:a,cursor:c}=i(9798);const width=t=>[...o(t)].length;t.exports=function(t,r){if(!r)return a.line+c.to(0);let i=0;const o=t.split(/\r?\n/);for(let t of o){i+=1+Math.floor(Math.max(width(t)-1,0)/r)}return a.lines(i)}},6431:t=>{"use strict";t.exports=(t,r,i)=>{i=i||r;let o=Math.min(r-i,t-Math.floor(i/2));if(o<0)o=0;let a=Math.min(o+i,r);return{startIndex:o,endIndex:a}}},3525:t=>{"use strict";const r={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const i={arrowUp:r.arrowUp,arrowDown:r.arrowDown,arrowLeft:r.arrowLeft,arrowRight:r.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const o=process.platform==="win32"?i:r;t.exports=o},2876:(t,r,i)=>{"use strict";t.exports={action:i(3496),clear:i(3761),style:i(189),strip:i(4566),figures:i(3525),lines:i(4255),wrap:i(50),entriesToDisplay:i(6431)}},4255:(t,r,i)=>{"use strict";const o=i(4566);t.exports=function(t,r){let i=String(o(t)||"").split(/\r?\n/);if(!r)return i.length;return i.map((t=>Math.ceil(t.length/r))).reduce(((t,r)=>t+r))}},4566:t=>{"use strict";t.exports=t=>{const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const i=new RegExp(r,"g");return typeof t==="string"?t.replace(i,""):t}},189:(t,r,i)=>{"use strict";const o=i(6401);const a=i(3525);const c=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"😃".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}});const render=t=>c[t]||c.default;const l=Object.freeze({aborted:o.red(a.cross),done:o.green(a.tick),exited:o.yellow(a.cross),default:o.cyan("?")});const symbol=(t,r,i)=>r?l.aborted:i?l.exited:t?l.done:l.default;const delimiter=t=>o.gray(t?a.ellipsis:a.pointerSmall);const item=(t,r)=>o.gray(t?r?a.pointerSmall:"+":a.line);t.exports={styles:c,render:render,symbols:l,symbol:symbol,delimiter:delimiter,item:item}},50:t=>{"use strict";t.exports=(t,r={})=>{const i=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"";const o=r.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,r)=>{if(r.length+i.length>=o||t[t.length-1].length+r.length+1<o)t[t.length-1]+=` ${r}`;else t.push(`${i}${r}`);return t}),[i]).join("\n"))).join("\n")}},1843:t=>{
|
|
55
|
+
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
56
|
+
let r;t.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window!=="undefined"?window:global):t=>(r||(r=Promise.resolve())).then(t).catch((t=>setTimeout((()=>{throw t}),0)))},8987:(t,r,i)=>{var o=i(4038);var a=i(6928).join;var c=i(2536);var l="/etc";var u=process.platform==="win32";var h=u?process.env.USERPROFILE:process.env.HOME;t.exports=function(t,r,d,p){if("string"!==typeof t)throw new Error("rc(name): name *must* be string");if(!d)d=i(4750)(process.argv.slice(2));r=("string"===typeof r?o.json(r):r)||{};p=p||o.parse;var m=o.env(t+"_");var g=[r];var y=[];function addConfigFile(t){if(y.indexOf(t)>=0)return;var r=o.file(t);if(r){g.push(p(r));y.push(t)}}if(!u)[a(l,t,"config"),a(l,t+"rc")].forEach(addConfigFile);if(h)[a(h,".config",t,"config"),a(h,".config",t),a(h,"."+t,"config"),a(h,"."+t+"rc")].forEach(addConfigFile);addConfigFile(o.find("."+t+"rc"));if(m.config)addConfigFile(m.config);if(d.config)addConfigFile(d.config);return c.apply(null,g.concat([m,d,y.length?{configs:y,config:y[y.length-1]}:undefined]))}},4038:(t,r,i)=>{"use strict";var o=i(9896);var a=i(4065);var c=i(6928);var l=i(5405);var u=r.parse=function(t){if(/^\s*{/.test(t))return JSON.parse(l(t));return a.parse(t)};var h=r.file=function(){var t=[].slice.call(arguments).filter((function(t){return t!=null}));for(var r in t)if("string"!==typeof t[r])return;var i=c.join.apply(null,t);var a;try{return o.readFileSync(i,"utf-8")}catch(t){return}};var d=r.json=function(){var t=h.apply(null,arguments);return t?u(t):null};var p=r.env=function(t,r){r=r||process.env;var i={};var o=t.length;for(var a in r){if(a.toLowerCase().indexOf(t.toLowerCase())===0){var c=a.substring(o).split("__");var l;while((l=c.indexOf(""))>-1){c.splice(l,1)}var u=i;c.forEach((function _buildSubObj(t,i){if(!t||typeof u!=="object")return;if(i===c.length-1)u[t]=r[a];if(u[t]===undefined)u[t]={};u=u[t]}))}}return i};var m=r.find=function(){var t=c.join.apply(null,[].slice.call(arguments));function find(t,r){var i=c.join(t,r);try{o.statSync(i);return i}catch(i){if(c.dirname(t)!==t)return find(c.dirname(t),r)}}return find(process.cwd(),t)}},4065:(t,r)=>{r.parse=r.decode=decode;r.stringify=r.encode=encode;r.safe=safe;r.unsafe=unsafe;var i=typeof process!=="undefined"&&process.platform==="win32"?"\r\n":"\n";function encode(t,r){var o=[];var a="";if(typeof r==="string"){r={section:r,whitespace:false}}else{r=r||{};r.whitespace=r.whitespace===true}var c=r.whitespace?" = ":"=";Object.keys(t).forEach((function(r,l,u){var h=t[r];if(h&&Array.isArray(h)){h.forEach((function(t){a+=safe(r+"[]")+c+safe(t)+"\n"}))}else if(h&&typeof h==="object")o.push(r);else a+=safe(r)+c+safe(h)+i}));if(r.section&&a.length)a="["+safe(r.section)+"]"+i+a;o.forEach((function(o,c,l){var u=dotSplit(o).join("\\.");var h=(r.section?r.section+".":"")+u;var d=encode(t[o],{section:h,whitespace:r.whitespace});if(a.length&&d.length)a+=i;a+=d}));return a}function dotSplit(t){return t.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map((function(t){return t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")}))}function decode(t){var r={};var i=r;var o=null;var a=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;var c=t.split(/[\r\n]+/g);c.forEach((function(t,c,l){if(!t||t.match(/^\s*[;#]/))return;var u=t.match(a);if(!u)return;if(u[1]!==undefined){o=unsafe(u[1]);if(o==="__proto__"){i={};return}i=r[o]=r[o]||{};return}var h=unsafe(u[2]);if(h==="__proto__")return;var d=u[3]?unsafe(u[4]):true;switch(d){case"true":case"false":case"null":d=JSON.parse(d)}if(h.length>2&&h.slice(-2)==="[]"){h=h.substring(0,h.length-2);if(h==="__proto__")return;if(!i[h])i[h]=[];else if(!Array.isArray(i[h]))i[h]=[i[h]]}if(Array.isArray(i[h]))i[h].push(d);else i[h]=d}));Object.keys(r).filter((function(t,i,o){if(!r[t]||typeof r[t]!=="object"||Array.isArray(r[t]))return false;var a=dotSplit(t);var c=r;var l=a.pop();var u=l.replace(/\\\./g,".");a.forEach((function(t,r,i){if(t==="__proto__")return;if(!c[t]||typeof c[t]!=="object")c[t]={};c=c[t]}));if(c===r&&u===l)return false;c[u]=r[t];return true})).forEach((function(t,i,o){delete r[t]}));return r}function isQuoted(t){return t.charAt(0)==='"'&&t.slice(-1)==='"'||t.charAt(0)==="'"&&t.slice(-1)==="'"}function safe(t){return typeof t!=="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&isQuoted(t)||t!==t.trim()?JSON.stringify(t):t.replace(/;/g,"\\;").replace(/#/g,"\\#")}function unsafe(t,r){t=(t||"").trim();if(isQuoted(t)){if(t.charAt(0)==="'")t=t.substr(1,t.length-2);try{t=JSON.parse(t)}catch(t){}}else{var i=false;var o="";for(var a=0,c=t.length;a<c;a++){var l=t.charAt(a);if(i){if("\\;#".indexOf(l)!==-1)o+=l;else o+="\\"+l;i=false}else if(";#".indexOf(l)!==-1)break;else if(l==="\\")i=true;else o+=l}if(i)o+="\\";return o.trim()}return t}},5405:t=>{"use strict";var r=1;var i=2;function stripWithoutWhitespace(){return""}function stripWithWhitespace(t,r,i){return t.slice(r,i).replace(/\S/g," ")}t.exports=function(t,o){o=o||{};var a;var c;var l=false;var u=false;var h=0;var d="";var p=o.whitespace===false?stripWithoutWhitespace:stripWithWhitespace;for(var m=0;m<t.length;m++){a=t[m];c=t[m+1];if(!u&&a==='"'){var g=t[m-1]==="\\"&&t[m-2]!=="\\";if(!g){l=!l}}if(l){continue}if(!u&&a+c==="//"){d+=t.slice(h,m);h=m;u=r;m++}else if(u===r&&a+c==="\r\n"){m++;u=false;d+=p(t,h,m);h=m;continue}else if(u===r&&a==="\n"){u=false;d+=p(t,h,m);h=m}else if(!u&&a+c==="/*"){d+=t.slice(h,m);h=m;u=i;m++;continue}else if(u===i&&a+c==="*/"){m++;u=false;d+=p(t,h,m+1);h=m+1;continue}}return d+(u?p(t.substr(h)):t.substr(h))}},8381:(t,r,i)=>{const o=i(5950).Buffer;function decodeBase64(t){return o.from(t,"base64").toString("utf8")}function encodeBase64(t){return o.from(t,"utf8").toString("base64")}t.exports={decodeBase64:decodeBase64,encodeBase64:encodeBase64}},6856:(t,r,i)=>{var o=i(7016);var a=i(8381);var c=a.decodeBase64;var l=a.encodeBase64;var u=":_authToken";var h=":username";var d=":_password";t.exports=function(){var t;var r;if(arguments.length>=2){t=arguments[0];r=arguments[1]}else if(typeof arguments[0]==="string"){t=arguments[0]}else{r=arguments[0]}r=r||{};r.npmrc=r.npmrc||i(8987)("npm",{registry:"https://registry.npmjs.org/"});t=t||r.npmrc.registry;return getRegistryAuthInfo(t,r)||getLegacyAuthInfo(r.npmrc)};function getRegistryAuthInfo(t,r){var i=o.parse(t,false,true);var a;while(a!=="/"&&i.pathname!==a){a=i.pathname||"/";var c="//"+i.host+a.replace(/\/$/,"");var l=getAuthInfoForUrl(c,r.npmrc);if(l){return l}if(!r.recursive){return/\/$/.test(t)?undefined:getRegistryAuthInfo(o.resolve(t,"."),r)}i.pathname=o.resolve(normalizePath(a),"..")||"/"}return undefined}function getLegacyAuthInfo(t){if(t._auth){return{token:t._auth,type:"Basic"}}return undefined}function normalizePath(t){return t[t.length-1]==="/"?t:t+"/"}function getAuthInfoForUrl(t,r){var i=getBearerToken(r[t+u]||r[t+"/"+u]);if(i){return i}var o=r[t+h]||r[t+"/"+h];var a=r[t+d]||r[t+"/"+d];var c=getTokenForUsernameAndPassword(o,a);if(c){return c}return undefined}function getBearerToken(t){if(!t){return undefined}var r=t.replace(/^\$\{?([^}]*)\}?$/,(function(t,r){return process.env[r]}));return{token:r,type:"Bearer"}}function getTokenForUsernameAndPassword(t,r){if(!t||!r){return undefined}var i=c(r.replace(/^\$\{?([^}]*)\}?$/,(function(t,r){return process.env[r]})));var o=l(t+":"+i);return{token:o,type:"Basic",password:i,username:t}}},2139:(t,r,i)=>{"use strict";t.exports=function(t){var r=i(8987)("npm",{registry:"https://registry.npmjs.org/"});var o=r[t+":registry"]||r.registry;return o.slice(-1)==="/"?o:o+"/"}},9070:(t,r,i)=>{t.exports=i(7752)},7752:(t,r,i)=>{var o=i(8366);r.operation=function(t){var i=r.timeouts(t);return new o(i,{forever:t&&(t.forever||t.retries===Infinity),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};r.timeouts=function(t){if(t instanceof Array){return[].concat(t)}var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:Infinity,randomize:false};for(var i in t){r[i]=t[i]}if(r.minTimeout>r.maxTimeout){throw new Error("minTimeout is greater than maxTimeout")}var o=[];for(var a=0;a<r.retries;a++){o.push(this.createTimeout(a,r))}if(t&&t.forever&&!o.length){o.push(this.createTimeout(a,r))}o.sort((function(t,r){return t-r}));return o};r.createTimeout=function(t,r){var i=r.randomize?Math.random()+1:1;var o=Math.round(i*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));o=Math.min(o,r.maxTimeout);return o};r.wrap=function(t,i,o){if(i instanceof Array){o=i;i=null}if(!o){o=[];for(var a in t){if(typeof t[a]==="function"){o.push(a)}}}for(var c=0;c<o.length;c++){var l=o[c];var u=t[l];t[l]=function retryWrapper(o){var a=r.operation(i);var c=Array.prototype.slice.call(arguments,1);var l=c.pop();c.push((function(t){if(a.retry(t)){return}if(t){arguments[0]=a.mainError()}l.apply(this,arguments)}));a.attempt((function(){o.apply(t,c)}))}.bind(t,u);t[l].options=i}}},8366:t=>{function RetryOperation(t,r){if(typeof r==="boolean"){r={forever:r}}this._originalTimeouts=JSON.parse(JSON.stringify(t));this._timeouts=t;this._options=r||{};this._maxRetryTime=r&&r.maxRetryTime||Infinity;this._fn=null;this._errors=[];this._attempts=1;this._operationTimeout=null;this._operationTimeoutCb=null;this._timeout=null;this._operationStart=null;this._timer=null;if(this._options.forever){this._cachedTimeouts=this._timeouts.slice(0)}}t.exports=RetryOperation;RetryOperation.prototype.reset=function(){this._attempts=1;this._timeouts=this._originalTimeouts.slice(0)};RetryOperation.prototype.stop=function(){if(this._timeout){clearTimeout(this._timeout)}if(this._timer){clearTimeout(this._timer)}this._timeouts=[];this._cachedTimeouts=null};RetryOperation.prototype.retry=function(t){if(this._timeout){clearTimeout(this._timeout)}if(!t){return false}var r=(new Date).getTime();if(t&&r-this._operationStart>=this._maxRetryTime){this._errors.push(t);this._errors.unshift(new Error("RetryOperation timeout occurred"));return false}this._errors.push(t);var i=this._timeouts.shift();if(i===undefined){if(this._cachedTimeouts){this._errors.splice(0,this._errors.length-1);i=this._cachedTimeouts.slice(-1)}else{return false}}var o=this;this._timer=setTimeout((function(){o._attempts++;if(o._operationTimeoutCb){o._timeout=setTimeout((function(){o._operationTimeoutCb(o._attempts)}),o._operationTimeout);if(o._options.unref){o._timeout.unref()}}o._fn(o._attempts)}),i);if(this._options.unref){this._timer.unref()}return true};RetryOperation.prototype.attempt=function(t,r){this._fn=t;if(r){if(r.timeout){this._operationTimeout=r.timeout}if(r.cb){this._operationTimeoutCb=r.cb}}var i=this;if(this._operationTimeoutCb){this._timeout=setTimeout((function(){i._operationTimeoutCb()}),i._operationTimeout)}this._operationStart=(new Date).getTime();this._fn(this._attempts)};RetryOperation.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated");this.attempt(t)};RetryOperation.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated");this.attempt(t)};RetryOperation.prototype.start=RetryOperation.prototype.try;RetryOperation.prototype.errors=function(){return this._errors};RetryOperation.prototype.attempts=function(){return this._attempts};RetryOperation.prototype.mainError=function(){if(this._errors.length===0){return null}var t={};var r=null;var i=0;for(var o=0;o<this._errors.length;o++){var a=this._errors[o];var c=a.message;var l=(t[c]||0)+1;t[c]=l;if(l>=i){r=a;i=l}}return r}},4088:t=>{"use strict";function reusify(t){var r=new t;var i=r;function get(){var o=r;if(o.next){r=o.next}else{r=new t;i=r}o.next=null;return o}function release(t){i.next=t;i=t}return{get:get,release:release}}t.exports=reusify},347:(t,r,i)=>{
|
|
57
|
+
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
58
|
+
t.exports=runParallel;const o=i(1843);function runParallel(t,r){let i,a,c;let l=true;if(Array.isArray(t)){i=[];a=t.length}else{c=Object.keys(t);i={};a=c.length}function done(t){function end(){if(r)r(t,i);r=null}if(l)o(end);else end()}function each(t,r,o){i[t]=o;if(--a===0||r){done(r)}}if(!a){done(null)}else if(c){c.forEach((function(r){t[r]((function(t,i){each(r,t,i)}))}))}else{t.forEach((function(t,r){t((function(t,i){each(r,t,i)}))}))}l=false}},5950:(t,r,i)=>{
|
|
59
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
60
|
+
var o=i(181);var a=o.Buffer;function copyProps(t,r){for(var i in t){r[i]=t[i]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){t.exports=o}else{copyProps(o,r);r.Buffer=SafeBuffer}function SafeBuffer(t,r,i){return a(t,r,i)}SafeBuffer.prototype=Object.create(a.prototype);copyProps(a,SafeBuffer);SafeBuffer.from=function(t,r,i){if(typeof t==="number"){throw new TypeError("Argument must not be a number")}return a(t,r,i)};SafeBuffer.alloc=function(t,r,i){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}var o=a(t);if(r!==undefined){if(typeof i==="string"){o.fill(r,i)}else{o.fill(r)}}else{o.fill(0)}return o};SafeBuffer.allocUnsafe=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return a(t)};SafeBuffer.allocUnsafeSlow=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return o.SlowBuffer(t)}},2668:(t,r,i)=>{"use strict";const o=i(3570);t.exports=(t="")=>{const r=t.match(o);if(!r){return null}const[i,a]=r[0].replace(/#! ?/,"").split(" ");const c=i.split("/").pop();if(c==="env"){return a}return a?`${c} ${a}`:c}},3570:t=>{"use strict";t.exports=/^#!(.*)/},9798:t=>{"use strict";const r="";const i=`${r}[`;const o="";const a={to(t,r){if(!r)return`${i}${t+1}G`;return`${i}${r+1};${t+1}H`},move(t,r){let o="";if(t<0)o+=`${i}${-t}D`;else if(t>0)o+=`${i}${t}C`;if(r<0)o+=`${i}${-r}A`;else if(r>0)o+=`${i}${r}B`;return o},up:(t=1)=>`${i}${t}A`,down:(t=1)=>`${i}${t}B`,forward:(t=1)=>`${i}${t}C`,backward:(t=1)=>`${i}${t}D`,nextLine:(t=1)=>`${i}E`.repeat(t),prevLine:(t=1)=>`${i}F`.repeat(t),left:`${i}G`,hide:`${i}?25l`,show:`${i}?25h`,save:`${r}7`,restore:`${r}8`};const c={up:(t=1)=>`${i}S`.repeat(t),down:(t=1)=>`${i}T`.repeat(t)};const l={screen:`${i}2J`,up:(t=1)=>`${i}1J`.repeat(t),down:(t=1)=>`${i}J`.repeat(t),line:`${i}2K`,lineEnd:`${i}K`,lineStart:`${i}1K`,lines(t){let r="";for(let i=0;i<t;i++)r+=this.line+(i<t-1?a.up():"");if(t)r+=a.left;return r}};t.exports={cursor:a,scroll:c,erase:l,beep:o}},4395:(t,r,i)=>{"use strict";
|
|
61
|
+
/*!
|
|
62
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
63
|
+
*
|
|
64
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
65
|
+
* Released under the MIT License.
|
|
66
|
+
*/const o=i(7850);const toRegexRange=(t,r,i)=>{if(o(t)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(r===void 0||t===r){return String(t)}if(o(r)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let a={relaxZeros:true,...i};if(typeof a.strictZeros==="boolean"){a.relaxZeros=a.strictZeros===false}let c=String(a.relaxZeros);let l=String(a.shorthand);let u=String(a.capture);let h=String(a.wrap);let d=t+":"+r+"="+c+l+u+h;if(toRegexRange.cache.hasOwnProperty(d)){return toRegexRange.cache[d].result}let p=Math.min(t,r);let m=Math.max(t,r);if(Math.abs(p-m)===1){let i=t+"|"+r;if(a.capture){return`(${i})`}if(a.wrap===false){return i}return`(?:${i})`}let g=hasPadding(t)||hasPadding(r);let y={min:t,max:r,a:p,b:m};let v=[];let b=[];if(g){y.isPadded=g;y.maxLen=String(y.max).length}if(p<0){let t=m<0?Math.abs(m):1;b=splitToPatterns(t,Math.abs(p),y,a);p=y.a=0}if(m>=0){v=splitToPatterns(p,m,y,a)}y.negatives=b;y.positives=v;y.result=collatePatterns(b,v,a);if(a.capture===true){y.result=`(${y.result})`}else if(a.wrap!==false&&v.length+b.length>1){y.result=`(?:${y.result})`}toRegexRange.cache[d]=y;return y.result};function collatePatterns(t,r,i){let o=filterPatterns(t,r,"-",false,i)||[];let a=filterPatterns(r,t,"",false,i)||[];let c=filterPatterns(t,r,"-?",true,i)||[];let l=o.concat(c).concat(a);return l.join("|")}function splitToRanges(t,r){let i=1;let o=1;let a=countNines(t,i);let c=new Set([r]);while(t<=a&&a<=r){c.add(a);i+=1;a=countNines(t,i)}a=countZeros(r+1,o)-1;while(t<a&&a<=r){c.add(a);o+=1;a=countZeros(r+1,o)-1}c=[...c];c.sort(compare);return c}function rangeToPattern(t,r,i){if(t===r){return{pattern:t,count:[],digits:0}}let o=zip(t,r);let a=o.length;let c="";let l=0;for(let t=0;t<a;t++){let[r,a]=o[t];if(r===a){c+=r}else if(r!=="0"||a!=="9"){c+=toCharacterClass(r,a,i)}else{l++}}if(l){c+=i.shorthand===true?"\\d":"[0-9]"}return{pattern:c,count:[l],digits:a}}function splitToPatterns(t,r,i,o){let a=splitToRanges(t,r);let c=[];let l=t;let u;for(let t=0;t<a.length;t++){let r=a[t];let h=rangeToPattern(String(l),String(r),o);let d="";if(!i.isPadded&&u&&u.pattern===h.pattern){if(u.count.length>1){u.count.pop()}u.count.push(h.count[0]);u.string=u.pattern+toQuantifier(u.count);l=r+1;continue}if(i.isPadded){d=padZeros(r,i,o)}h.string=d+h.pattern+toQuantifier(h.count);c.push(h);l=r+1;u=h}return c}function filterPatterns(t,r,i,o,a){let c=[];for(let a of t){let{string:t}=a;if(!o&&!contains(r,"string",t)){c.push(i+t)}if(o&&contains(r,"string",t)){c.push(i+t)}}return c}function zip(t,r){let i=[];for(let o=0;o<t.length;o++)i.push([t[o],r[o]]);return i}function compare(t,r){return t>r?1:r>t?-1:0}function contains(t,r,i){return t.some((t=>t[r]===i))}function countNines(t,r){return Number(String(t).slice(0,-r)+"9".repeat(r))}function countZeros(t,r){return t-t%Math.pow(10,r)}function toQuantifier(t){let[r=0,i=""]=t;if(i||r>1){return`{${r+(i?","+i:"")}}`}return""}function toCharacterClass(t,r,i){return`[${t}${r-t===1?"":"-"}${r}]`}function hasPadding(t){return/^-?(0+)\d/.test(t)}function padZeros(t,r,i){if(!r.isPadded){return t}let o=Math.abs(r.maxLen-String(t).length);let a=i.relaxZeros!==false;switch(o){case 0:return"";case 1:return a?"0?":"0";case 2:return a?"0{0,2}":"00";default:{return a?`0{0,${o}}`:`0{${o}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};t.exports=toRegexRange},5012:(t,r,i)=>{const{URL:o}=i(7016);const{join:a}=i(6928);const c=i(9896);const{promisify:l}=i(9023);const{tmpdir:u}=i(857);const h=i(2139);const d=l(c.writeFile);const p=l(c.mkdir);const m=l(c.readFile);const compareVersions=(t,r)=>t.localeCompare(r,"en-US",{numeric:true});const encode=t=>encodeURIComponent(t).replace(/^%40/,"@");const getFile=async(t,r)=>{const i=u();const o=a(i,"update-check");if(!c.existsSync(o)){await p(o)}let l=`${t.name}-${r}.json`;if(t.scope){l=`${t.scope}-${l}`}return a(o,l)};const evaluateCache=async(t,r,i)=>{if(c.existsSync(t)){const o=await m(t,"utf8");const{lastUpdate:a,latest:c}=JSON.parse(o);const l=a+i;if(l>r){return{shouldCheck:false,latest:c}}}return{shouldCheck:true,latest:null}};const updateCache=async(t,r,i)=>{const o=JSON.stringify({latest:r,lastUpdate:i});await d(t,o,"utf8")};const loadPackage=(t,r)=>new Promise(((o,a)=>{const c={host:t.hostname,path:t.pathname,port:t.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(r){c.headers.authorization=`${r.type} ${r.token}`}const{get:l}=i(t.protocol==="https:"?5692:8611);l(c,(t=>{const{statusCode:r}=t;if(r!==200){const i=new Error(`Request failed with code ${r}`);i.code=r;a(i);t.resume();return}let i="";t.setEncoding("utf8");t.on("data",(t=>{i+=t}));t.on("end",(()=>{try{const t=JSON.parse(i);o(t)}catch(t){a(t)}}))})).on("error",a).on("timeout",a)}));const getMostRecent=async({full:t,scope:r},a)=>{const c=h(r);const l=new o(t,c);let u=null;try{u=await loadPackage(l)}catch(t){if(t.code&&String(t.code).startsWith(4)){const t=i(6856);const r=t(c,{recursive:true});u=await loadPackage(l,r)}else{throw t}}const d=u["dist-tags"][a];if(!d){throw new Error(`Distribution tag ${a} is not available`)}return d};const g={interval:36e5,distTag:"latest"};const getDetails=t=>{const r={full:encode(t)};if(t.includes("/")){const i=t.split("/");r.scope=i[0];r.name=i[1]}else{r.scope=null;r.name=t}return r};t.exports=async(t,r)=>{if(typeof t!=="object"){throw new Error("The first parameter should be your package.json file content")}const i=getDetails(t.name);const o=Date.now();const{distTag:a,interval:c}=Object.assign({},g,r);const l=await getFile(i,a);let u=null;let h=true;({shouldCheck:h,latest:u}=await evaluateCache(l,o,c));if(h){u=await getMostRecent(i,a);await updateCache(l,u,o)}const d=compareVersions(t.version,u);if(d===-1){return{latest:u,fromCache:!h}}return null}},3340:(t,r,i)=>{const o=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const a=i(6928);const c=o?";":":";const l=i(9648);const getNotFoundError=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"});const getPathInfo=(t,r)=>{const i=r.colon||c;const a=t.match(/\//)||o&&t.match(/\\/)?[""]:[...o?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(i)];const l=o?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const u=o?l.split(i):[""];if(o){if(t.indexOf(".")!==-1&&u[0]!=="")u.unshift("")}return{pathEnv:a,pathExt:u,pathExtExe:l}};const which=(t,r,i)=>{if(typeof r==="function"){i=r;r={}}if(!r)r={};const{pathEnv:o,pathExt:c,pathExtExe:u}=getPathInfo(t,r);const h=[];const step=i=>new Promise(((c,l)=>{if(i===o.length)return r.all&&h.length?c(h):l(getNotFoundError(t));const u=o[i];const d=/^".*"$/.test(u)?u.slice(1,-1):u;const p=a.join(d,t);const m=!d&&/^\.[\\\/]/.test(t)?t.slice(0,2)+p:p;c(subStep(m,i,0))}));const subStep=(t,i,o)=>new Promise(((a,d)=>{if(o===c.length)return a(step(i+1));const p=c[o];l(t+p,{pathExt:u},((c,l)=>{if(!c&&l){if(r.all)h.push(t+p);else return a(t+p)}return a(subStep(t,i,o+1))}))}));return i?step(0).then((t=>i(null,t)),i):step(0)};const whichSync=(t,r)=>{r=r||{};const{pathEnv:i,pathExt:o,pathExtExe:c}=getPathInfo(t,r);const u=[];for(let h=0;h<i.length;h++){const d=i[h];const p=/^".*"$/.test(d)?d.slice(1,-1):d;const m=a.join(p,t);const g=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;for(let t=0;t<o.length;t++){const i=g+o[t];try{const t=l.sync(i,{pathExt:c});if(t){if(r.all)u.push(i);else return i}}catch(t){}}}if(r.all&&u.length)return u;if(r.nothrow)return null;throw getNotFoundError(t)};t.exports=which;which.sync=whichSync},4868:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.formatNames=r.fastFormats=r.fullFormats=void 0;function fmtDef(t,r){return{validate:t,compare:r}}r.fullFormats={date:fmtDef(date,compareDate),time:fmtDef(getTime(true),compareTime),"date-time":fmtDef(getDateTime(true),compareDateTime),"iso-time":fmtDef(getTime(),compareIsoTime),"iso-date-time":fmtDef(getDateTime(),compareIsoDateTime),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:uri,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:regex,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:byte,int32:{type:"number",validate:validateInt32},int64:{type:"number",validate:validateInt64},float:{type:"number",validate:validateNumber},double:{type:"number",validate:validateNumber},password:true,binary:true};r.fastFormats={...r.fullFormats,date:fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,compareDate),time:fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareTime),"date-time":fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareDateTime),"iso-time":fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareIsoTime),"iso-date-time":fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareIsoDateTime),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};r.formatNames=Object.keys(r.fullFormats);function isLeapYear(t){return t%4===0&&(t%100!==0||t%400===0)}const i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;const o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function date(t){const r=i.exec(t);if(!r)return false;const a=+r[1];const c=+r[2];const l=+r[3];return c>=1&&c<=12&&l>=1&&l<=(c===2&&isLeapYear(a)?29:o[c])}function compareDate(t,r){if(!(t&&r))return undefined;if(t>r)return 1;if(t<r)return-1;return 0}const a=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function getTime(t){return function time(r){const i=a.exec(r);if(!i)return false;const o=+i[1];const c=+i[2];const l=+i[3];const u=i[4];const h=i[5]==="-"?-1:1;const d=+(i[6]||0);const p=+(i[7]||0);if(d>23||p>59||t&&!u)return false;if(o<=23&&c<=59&&l<60)return true;const m=c-p*h;const g=o-d*h-(m<0?1:0);return(g===23||g===-1)&&(m===59||m===-1)&&l<61}}function compareTime(t,r){if(!(t&&r))return undefined;const i=new Date("2020-01-01T"+t).valueOf();const o=new Date("2020-01-01T"+r).valueOf();if(!(i&&o))return undefined;return i-o}function compareIsoTime(t,r){if(!(t&&r))return undefined;const i=a.exec(t);const o=a.exec(r);if(!(i&&o))return undefined;t=i[1]+i[2]+i[3];r=o[1]+o[2]+o[3];if(t>r)return 1;if(t<r)return-1;return 0}const c=/t|\s/i;function getDateTime(t){const r=getTime(t);return function date_time(t){const i=t.split(c);return i.length===2&&date(i[0])&&r(i[1])}}function compareDateTime(t,r){if(!(t&&r))return undefined;const i=new Date(t).valueOf();const o=new Date(r).valueOf();if(!(i&&o))return undefined;return i-o}function compareIsoDateTime(t,r){if(!(t&&r))return undefined;const[i,o]=t.split(c);const[a,l]=r.split(c);const u=compareDate(i,a);if(u===undefined)return undefined;return u||compareTime(o,l)}const l=/\/|:/;const u=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function uri(t){return l.test(t)&&u.test(t)}const h=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function byte(t){h.lastIndex=0;return h.test(t)}const d=-(2**31);const p=2**31-1;function validateInt32(t){return Number.isInteger(t)&&t<=p&&t>=d}function validateInt64(t){return Number.isInteger(t)}function validateNumber(){return true}const m=/[^\\]\\Z/;function regex(t){if(m.test(t))return false;try{new RegExp(t);return true}catch(t){return false}}},9084:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(4868);const a=i(5351);const c=i(6515);const l=new c.Name("fullFormats");const u=new c.Name("fastFormats");const formatsPlugin=(t,r={keywords:true})=>{if(Array.isArray(r)){addFormats(t,r,o.fullFormats,l);return t}const[i,c]=r.mode==="fast"?[o.fastFormats,u]:[o.fullFormats,l];const h=r.formats||o.formatNames;addFormats(t,h,i,c);if(r.keywords)(0,a.default)(t);return t};formatsPlugin.get=(t,r="full")=>{const i=r==="fast"?o.fastFormats:o.fullFormats;const a=i[t];if(!a)throw new Error(`Unknown format "${t}"`);return a};function addFormats(t,r,i,o){var a;var l;(a=(l=t.opts.code).formats)!==null&&a!==void 0?a:l.formats=(0,c._)`require("ajv-formats/dist/formats").${o}`;for(const o of r)t.addFormat(o,i[o])}t.exports=r=formatsPlugin;Object.defineProperty(r,"__esModule",{value:true});r["default"]=formatsPlugin},5351:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.formatLimitDefinition=void 0;const o=i(3956);const a=i(6515);const c=a.operators;const l={formatMaximum:{okStr:"<=",ok:c.LTE,fail:c.GT},formatMinimum:{okStr:">=",ok:c.GTE,fail:c.LT},formatExclusiveMaximum:{okStr:"<",ok:c.LT,fail:c.GTE},formatExclusiveMinimum:{okStr:">",ok:c.GT,fail:c.LTE}};const u={message:({keyword:t,schemaCode:r})=>(0,a.str)`should be ${l[t].okStr} ${r}`,params:({keyword:t,schemaCode:r})=>(0,a._)`{comparison: ${l[t].okStr}, limit: ${r}}`};r.formatLimitDefinition={keyword:Object.keys(l),type:"string",schemaType:"string",$data:true,error:u,code(t){const{gen:r,data:i,schemaCode:c,keyword:u,it:h}=t;const{opts:d,self:p}=h;if(!d.validateFormats)return;const m=new o.KeywordCxt(h,p.RULES.all.format.definition,"format");if(m.$data)validate$DataFormat();else validateFormat();function validate$DataFormat(){const i=r.scopeValue("formats",{ref:p.formats,code:d.code.formats});const o=r.const("fmt",(0,a._)`${i}[${m.schemaCode}]`);t.fail$data((0,a.or)((0,a._)`typeof ${o} != "object"`,(0,a._)`${o} instanceof RegExp`,(0,a._)`typeof ${o}.compare != "function"`,compareCode(o)))}function validateFormat(){const i=m.schema;const o=p.formats[i];if(!o||o===true)return;if(typeof o!="object"||o instanceof RegExp||typeof o.compare!="function"){throw new Error(`"${u}": format "${i}" does not define "compare" function`)}const c=r.scopeValue("formats",{key:i,ref:o,code:d.code.formats?(0,a._)`${d.code.formats}${(0,a.getProperty)(i)}`:undefined});t.fail$data(compareCode(c))}function compareCode(t){return(0,a._)`${t}.compare(${i}, ${c}) ${l[u].fail} 0`}},dependencies:["format"]};const formatLimitPlugin=t=>{t.addKeyword(r.formatLimitDefinition);return t};r["default"]=formatLimitPlugin},2911:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.MissingRefError=r.ValidationError=r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=r.Ajv2020=void 0;const o=i(8124);const a=i(5219);const c=i(1079);const l=i(3166);const u="https://json-schema.org/draft/2020-12/schema";class Ajv2020 extends o.default{constructor(t={}){super({...t,dynamicRef:true,next:true,unevaluated:true})}_addVocabularies(){super._addVocabularies();a.default.forEach((t=>this.addVocabulary(t)));if(this.opts.discriminator)this.addKeyword(c.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:t,meta:r}=this.opts;if(!r)return;l.default.call(this,t);this.refs["http://json-schema.org/schema"]=u}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:undefined)}}r.Ajv2020=Ajv2020;t.exports=r=Ajv2020;t.exports.Ajv2020=Ajv2020;Object.defineProperty(r,"__esModule",{value:true});r["default"]=Ajv2020;var h=i(9688);Object.defineProperty(r,"KeywordCxt",{enumerable:true,get:function(){return h.KeywordCxt}});var d=i(6515);Object.defineProperty(r,"_",{enumerable:true,get:function(){return d._}});Object.defineProperty(r,"str",{enumerable:true,get:function(){return d.str}});Object.defineProperty(r,"stringify",{enumerable:true,get:function(){return d.stringify}});Object.defineProperty(r,"nil",{enumerable:true,get:function(){return d.nil}});Object.defineProperty(r,"Name",{enumerable:true,get:function(){return d.Name}});Object.defineProperty(r,"CodeGen",{enumerable:true,get:function(){return d.CodeGen}});var p=i(7248);Object.defineProperty(r,"ValidationError",{enumerable:true,get:function(){return p.default}});var m=i(5945);Object.defineProperty(r,"MissingRefError",{enumerable:true,get:function(){return m.default}})},3956:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.MissingRefError=r.ValidationError=r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=r.Ajv=void 0;const o=i(8124);const a=i(9242);const c=i(1079);const l=i(2079);const u=["/properties"];const h="http://json-schema.org/draft-07/schema";class Ajv extends o.default{_addVocabularies(){super._addVocabularies();a.default.forEach((t=>this.addVocabulary(t)));if(this.opts.discriminator)this.addKeyword(c.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();if(!this.opts.meta)return;const t=this.opts.$data?this.$dataMetaSchema(l,u):l;this.addMetaSchema(t,h,false);this.refs["http://json-schema.org/schema"]=h}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(h)?h:undefined)}}r.Ajv=Ajv;t.exports=r=Ajv;t.exports.Ajv=Ajv;Object.defineProperty(r,"__esModule",{value:true});r["default"]=Ajv;var d=i(9688);Object.defineProperty(r,"KeywordCxt",{enumerable:true,get:function(){return d.KeywordCxt}});var p=i(6515);Object.defineProperty(r,"_",{enumerable:true,get:function(){return p._}});Object.defineProperty(r,"str",{enumerable:true,get:function(){return p.str}});Object.defineProperty(r,"stringify",{enumerable:true,get:function(){return p.stringify}});Object.defineProperty(r,"nil",{enumerable:true,get:function(){return p.nil}});Object.defineProperty(r,"Name",{enumerable:true,get:function(){return p.Name}});Object.defineProperty(r,"CodeGen",{enumerable:true,get:function(){return p.CodeGen}});var m=i(7248);Object.defineProperty(r,"ValidationError",{enumerable:true,get:function(){return m.default}});var g=i(5945);Object.defineProperty(r,"MissingRefError",{enumerable:true,get:function(){return g.default}})},3070:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.regexpCode=r.getEsmExportName=r.getProperty=r.safeStringify=r.stringify=r.strConcat=r.addCodeArg=r.str=r._=r.nil=r._Code=r.Name=r.IDENTIFIER=r._CodeOrName=void 0;class _CodeOrName{}r._CodeOrName=_CodeOrName;r.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Name extends _CodeOrName{constructor(t){super();if(!r.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return false}get names(){return{[this.str]:1}}}r.Name=Name;class _Code extends _CodeOrName{constructor(t){super();this._items=typeof t==="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return false;const t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce(((t,r)=>`${t}${r}`),"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce(((t,r)=>{if(r instanceof Name)t[r.str]=(t[r.str]||0)+1;return t}),{})}}r._Code=_Code;r.nil=new _Code("");function _(t,...r){const i=[t[0]];let o=0;while(o<r.length){addCodeArg(i,r[o]);i.push(t[++o])}return new _Code(i)}r._=_;const i=new _Code("+");function str(t,...r){const o=[safeStringify(t[0])];let a=0;while(a<r.length){o.push(i);addCodeArg(o,r[a]);o.push(i,safeStringify(t[++a]))}optimize(o);return new _Code(o)}r.str=str;function addCodeArg(t,r){if(r instanceof _Code)t.push(...r._items);else if(r instanceof Name)t.push(r);else t.push(interpolate(r))}r.addCodeArg=addCodeArg;function optimize(t){let r=1;while(r<t.length-1){if(t[r]===i){const i=mergeExprItems(t[r-1],t[r+1]);if(i!==undefined){t.splice(r-1,3,i);continue}t[r++]="+"}r++}}function mergeExprItems(t,r){if(r==='""')return t;if(t==='""')return r;if(typeof t=="string"){if(r instanceof Name||t[t.length-1]!=='"')return;if(typeof r!="string")return`${t.slice(0,-1)}${r}"`;if(r[0]==='"')return t.slice(0,-1)+r.slice(1);return}if(typeof r=="string"&&r[0]==='"'&&!(t instanceof Name))return`"${t}${r.slice(1)}`;return}function strConcat(t,r){return r.emptyStr()?t:t.emptyStr()?r:str`${t}${r}`}r.strConcat=strConcat;function interpolate(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:safeStringify(Array.isArray(t)?t.join(","):t)}function stringify(t){return new _Code(safeStringify(t))}r.stringify=stringify;function safeStringify(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}r.safeStringify=safeStringify;function getProperty(t){return typeof t=="string"&&r.IDENTIFIER.test(t)?new _Code(`.${t}`):_`[${t}]`}r.getProperty=getProperty;function getEsmExportName(t){if(typeof t=="string"&&r.IDENTIFIER.test(t)){return new _Code(`${t}`)}throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}r.getEsmExportName=getEsmExportName;function regexpCode(t){return new _Code(t.toString())}r.regexpCode=regexpCode},6515:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.or=r.and=r.not=r.CodeGen=r.operators=r.varKinds=r.ValueScopeName=r.ValueScope=r.Scope=r.Name=r.regexpCode=r.stringify=r.getProperty=r.nil=r.strConcat=r.str=r._=void 0;const o=i(3070);const a=i(2835);var c=i(3070);Object.defineProperty(r,"_",{enumerable:true,get:function(){return c._}});Object.defineProperty(r,"str",{enumerable:true,get:function(){return c.str}});Object.defineProperty(r,"strConcat",{enumerable:true,get:function(){return c.strConcat}});Object.defineProperty(r,"nil",{enumerable:true,get:function(){return c.nil}});Object.defineProperty(r,"getProperty",{enumerable:true,get:function(){return c.getProperty}});Object.defineProperty(r,"stringify",{enumerable:true,get:function(){return c.stringify}});Object.defineProperty(r,"regexpCode",{enumerable:true,get:function(){return c.regexpCode}});Object.defineProperty(r,"Name",{enumerable:true,get:function(){return c.Name}});var l=i(2835);Object.defineProperty(r,"Scope",{enumerable:true,get:function(){return l.Scope}});Object.defineProperty(r,"ValueScope",{enumerable:true,get:function(){return l.ValueScope}});Object.defineProperty(r,"ValueScopeName",{enumerable:true,get:function(){return l.ValueScopeName}});Object.defineProperty(r,"varKinds",{enumerable:true,get:function(){return l.varKinds}});r.operators={GT:new o._Code(">"),GTE:new o._Code(">="),LT:new o._Code("<"),LTE:new o._Code("<="),EQ:new o._Code("==="),NEQ:new o._Code("!=="),NOT:new o._Code("!"),OR:new o._Code("||"),AND:new o._Code("&&"),ADD:new o._Code("+")};class Node{optimizeNodes(){return this}optimizeNames(t,r){return this}}class Def extends Node{constructor(t,r,i){super();this.varKind=t;this.name=r;this.rhs=i}render({es5:t,_n:r}){const i=t?a.varKinds.var:this.varKind;const o=this.rhs===undefined?"":` = ${this.rhs}`;return`${i} ${this.name}${o};`+r}optimizeNames(t,r){if(!t[this.name.str])return;if(this.rhs)this.rhs=optimizeExpr(this.rhs,t,r);return this}get names(){return this.rhs instanceof o._CodeOrName?this.rhs.names:{}}}class Assign extends Node{constructor(t,r,i){super();this.lhs=t;this.rhs=r;this.sideEffects=i}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(this.lhs instanceof o.Name&&!t[this.lhs.str]&&!this.sideEffects)return;this.rhs=optimizeExpr(this.rhs,t,r);return this}get names(){const t=this.lhs instanceof o.Name?{}:{...this.lhs.names};return addExprNames(t,this.rhs)}}class AssignOp extends Assign{constructor(t,r,i,o){super(t,i,o);this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}}class Label extends Node{constructor(t){super();this.label=t;this.names={}}render({_n:t}){return`${this.label}:`+t}}class Break extends Node{constructor(t){super();this.label=t;this.names={}}render({_n:t}){const r=this.label?` ${this.label}`:"";return`break${r};`+t}}class Throw extends Node{constructor(t){super();this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}}class AnyCode extends Node{constructor(t){super();this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:undefined}optimizeNames(t,r){this.code=optimizeExpr(this.code,t,r);return this}get names(){return this.code instanceof o._CodeOrName?this.code.names:{}}}class ParentNode extends Node{constructor(t=[]){super();this.nodes=t}render(t){return this.nodes.reduce(((r,i)=>r+i.render(t)),"")}optimizeNodes(){const{nodes:t}=this;let r=t.length;while(r--){const i=t[r].optimizeNodes();if(Array.isArray(i))t.splice(r,1,...i);else if(i)t[r]=i;else t.splice(r,1)}return t.length>0?this:undefined}optimizeNames(t,r){const{nodes:i}=this;let o=i.length;while(o--){const a=i[o];if(a.optimizeNames(t,r))continue;subtractNames(t,a.names);i.splice(o,1)}return i.length>0?this:undefined}get names(){return this.nodes.reduce(((t,r)=>addNames(t,r.names)),{})}}class BlockNode extends ParentNode{render(t){return"{"+t._n+super.render(t)+"}"+t._n}}class Root extends ParentNode{}class Else extends BlockNode{}Else.kind="else";class If extends BlockNode{constructor(t,r){super(r);this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);if(this.else)r+="else "+this.else.render(t);return r}optimizeNodes(){super.optimizeNodes();const t=this.condition;if(t===true)return this.nodes;let r=this.else;if(r){const t=r.optimizeNodes();r=this.else=Array.isArray(t)?new Else(t):t}if(r){if(t===false)return r instanceof If?r:r.nodes;if(this.nodes.length)return this;return new If(not(t),r instanceof If?[r]:r.nodes)}if(t===false||!this.nodes.length)return undefined;return this}optimizeNames(t,r){var i;this.else=(i=this.else)===null||i===void 0?void 0:i.optimizeNames(t,r);if(!(super.optimizeNames(t,r)||this.else))return;this.condition=optimizeExpr(this.condition,t,r);return this}get names(){const t=super.names;addExprNames(t,this.condition);if(this.else)addNames(t,this.else.names);return t}}If.kind="if";class For extends BlockNode{}For.kind="for";class ForLoop extends For{constructor(t){super();this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(!super.optimizeNames(t,r))return;this.iteration=optimizeExpr(this.iteration,t,r);return this}get names(){return addNames(super.names,this.iteration.names)}}class ForRange extends For{constructor(t,r,i,o){super();this.varKind=t;this.name=r;this.from=i;this.to=o}render(t){const r=t.es5?a.varKinds.var:this.varKind;const{name:i,from:o,to:c}=this;return`for(${r} ${i}=${o}; ${i}<${c}; ${i}++)`+super.render(t)}get names(){const t=addExprNames(super.names,this.from);return addExprNames(t,this.to)}}class ForIter extends For{constructor(t,r,i,o){super();this.loop=t;this.varKind=r;this.name=i;this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(!super.optimizeNames(t,r))return;this.iterable=optimizeExpr(this.iterable,t,r);return this}get names(){return addNames(super.names,this.iterable.names)}}class Func extends BlockNode{constructor(t,r,i){super();this.name=t;this.args=r;this.async=i}render(t){const r=this.async?"async ":"";return`${r}function ${this.name}(${this.args})`+super.render(t)}}Func.kind="func";class Return extends ParentNode{render(t){return"return "+super.render(t)}}Return.kind="return";class Try extends BlockNode{render(t){let r="try"+super.render(t);if(this.catch)r+=this.catch.render(t);if(this.finally)r+=this.finally.render(t);return r}optimizeNodes(){var t,r;super.optimizeNodes();(t=this.catch)===null||t===void 0?void 0:t.optimizeNodes();(r=this.finally)===null||r===void 0?void 0:r.optimizeNodes();return this}optimizeNames(t,r){var i,o;super.optimizeNames(t,r);(i=this.catch)===null||i===void 0?void 0:i.optimizeNames(t,r);(o=this.finally)===null||o===void 0?void 0:o.optimizeNames(t,r);return this}get names(){const t=super.names;if(this.catch)addNames(t,this.catch.names);if(this.finally)addNames(t,this.finally.names);return t}}class Catch extends BlockNode{constructor(t){super();this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}Catch.kind="catch";class Finally extends BlockNode{render(t){return"finally"+super.render(t)}}Finally.kind="finally";class CodeGen{constructor(t,r={}){this._values={};this._blockStarts=[];this._constants={};this.opts={...r,_n:r.lines?"\n":""};this._extScope=t;this._scope=new a.Scope({parent:t});this._nodes=[new Root]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){const i=this._extScope.value(t,r);const o=this._values[i.prefix]||(this._values[i.prefix]=new Set);o.add(i);return i}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,i,o){const a=this._scope.toName(r);if(i!==undefined&&o)this._constants[a.str]=i;this._leafNode(new Def(t,a,i));return a}const(t,r,i){return this._def(a.varKinds.const,t,r,i)}let(t,r,i){return this._def(a.varKinds.let,t,r,i)}var(t,r,i){return this._def(a.varKinds.var,t,r,i)}assign(t,r,i){return this._leafNode(new Assign(t,r,i))}add(t,i){return this._leafNode(new AssignOp(t,r.operators.ADD,i))}code(t){if(typeof t=="function")t();else if(t!==o.nil)this._leafNode(new AnyCode(t));return this}object(...t){const r=["{"];for(const[i,a]of t){if(r.length>1)r.push(",");r.push(i);if(i!==a||this.opts.es5){r.push(":");(0,o.addCodeArg)(r,a)}}r.push("}");return new o._Code(r)}if(t,r,i){this._blockNode(new If(t));if(r&&i){this.code(r).else().code(i).endIf()}else if(r){this.code(r).endIf()}else if(i){throw new Error('CodeGen: "else" body without "then" body')}return this}elseIf(t){return this._elseNode(new If(t))}else(){return this._elseNode(new Else)}endIf(){return this._endBlockNode(If,Else)}_for(t,r){this._blockNode(t);if(r)this.code(r).endFor();return this}for(t,r){return this._for(new ForLoop(t),r)}forRange(t,r,i,o,c=(this.opts.es5?a.varKinds.var:a.varKinds.let)){const l=this._scope.toName(t);return this._for(new ForRange(c,l,r,i),(()=>o(l)))}forOf(t,r,i,c=a.varKinds.const){const l=this._scope.toName(t);if(this.opts.es5){const t=r instanceof o.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,o._)`${t}.length`,(r=>{this.var(l,(0,o._)`${t}[${r}]`);i(l)}))}return this._for(new ForIter("of",c,l,r),(()=>i(l)))}forIn(t,r,i,c=(this.opts.es5?a.varKinds.var:a.varKinds.const)){if(this.opts.ownProperties){return this.forOf(t,(0,o._)`Object.keys(${r})`,i)}const l=this._scope.toName(t);return this._for(new ForIter("in",c,l,r),(()=>i(l)))}endFor(){return this._endBlockNode(For)}label(t){return this._leafNode(new Label(t))}break(t){return this._leafNode(new Break(t))}return(t){const r=new Return;this._blockNode(r);this.code(t);if(r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Return)}try(t,r,i){if(!r&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');const o=new Try;this._blockNode(o);this.code(t);if(r){const t=this.name("e");this._currNode=o.catch=new Catch(t);r(t)}if(i){this._currNode=o.finally=new Finally;this.code(i)}return this._endBlockNode(Catch,Finally)}throw(t){return this._leafNode(new Throw(t))}block(t,r){this._blockStarts.push(this._nodes.length);if(t)this.code(t).endBlock(r);return this}endBlock(t){const r=this._blockStarts.pop();if(r===undefined)throw new Error("CodeGen: not in self-balancing block");const i=this._nodes.length-r;if(i<0||t!==undefined&&i!==t){throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${t} expected`)}this._nodes.length=r;return this}func(t,r=o.nil,i,a){this._blockNode(new Func(t,r,i));if(a)this.code(a).endFunc();return this}endFunc(){return this._endBlockNode(Func)}optimize(t=1){while(t-- >0){this._root.optimizeNodes();this._root.optimizeNames(this._root.names,this._constants)}}_leafNode(t){this._currNode.nodes.push(t);return this}_blockNode(t){this._currNode.nodes.push(t);this._nodes.push(t)}_endBlockNode(t,r){const i=this._currNode;if(i instanceof t||r&&i instanceof r){this._nodes.pop();return this}throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){const r=this._currNode;if(!(r instanceof If)){throw new Error('CodeGen: "else" without "if"')}this._currNode=r.else=t;return this}get _root(){return this._nodes[0]}get _currNode(){const t=this._nodes;return t[t.length-1]}set _currNode(t){const r=this._nodes;r[r.length-1]=t}}r.CodeGen=CodeGen;function addNames(t,r){for(const i in r)t[i]=(t[i]||0)+(r[i]||0);return t}function addExprNames(t,r){return r instanceof o._CodeOrName?addNames(t,r.names):t}function optimizeExpr(t,r,i){if(t instanceof o.Name)return replaceName(t);if(!canOptimize(t))return t;return new o._Code(t._items.reduce(((t,r)=>{if(r instanceof o.Name)r=replaceName(r);if(r instanceof o._Code)t.push(...r._items);else t.push(r);return t}),[]));function replaceName(t){const o=i[t.str];if(o===undefined||r[t.str]!==1)return t;delete r[t.str];return o}function canOptimize(t){return t instanceof o._Code&&t._items.some((t=>t instanceof o.Name&&r[t.str]===1&&i[t.str]!==undefined))}}function subtractNames(t,r){for(const i in r)t[i]=(t[i]||0)-(r[i]||0)}function not(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,o._)`!${par(t)}`}r.not=not;const u=mappend(r.operators.AND);function and(...t){return t.reduce(u)}r.and=and;const h=mappend(r.operators.OR);function or(...t){return t.reduce(h)}r.or=or;function mappend(t){return(r,i)=>r===o.nil?i:i===o.nil?r:(0,o._)`${par(r)} ${t} ${par(i)}`}function par(t){return t instanceof o.Name?t:(0,o._)`(${t})`}},2835:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.ValueScope=r.ValueScopeName=r.Scope=r.varKinds=r.UsedValueState=void 0;const o=i(3070);class ValueError extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`);this.value=t.value}}var a;(function(t){t[t["Started"]=0]="Started";t[t["Completed"]=1]="Completed"})(a||(r.UsedValueState=a={}));r.varKinds={const:new o.Name("const"),let:new o.Name("let"),var:new o.Name("var")};class Scope{constructor({prefixes:t,parent:r}={}){this._names={};this._prefixes=t;this._parent=r}toName(t){return t instanceof o.Name?t:this.name(t)}name(t){return new o.Name(this._newName(t))}_newName(t){const r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,i;if(((i=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||i===void 0?void 0:i.has(t))||this._prefixes&&!this._prefixes.has(t)){throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`)}return this._names[t]={prefix:t,index:0}}}r.Scope=Scope;class ValueScopeName extends o.Name{constructor(t,r){super(r);this.prefix=t}setValue(t,{property:r,itemIndex:i}){this.value=t;this.scopePath=(0,o._)`.${new o.Name(r)}[${i}]`}}r.ValueScopeName=ValueScopeName;const c=(0,o._)`\n`;class ValueScope extends Scope{constructor(t){super(t);this._values={};this._scope=t.scope;this.opts={...t,_n:t.lines?c:o.nil}}get(){return this._scope}name(t){return new ValueScopeName(t,this._newName(t))}value(t,r){var i;if(r.ref===undefined)throw new Error("CodeGen: ref must be passed in value");const o=this.toName(t);const{prefix:a}=o;const c=(i=r.key)!==null&&i!==void 0?i:r.ref;let l=this._values[a];if(l){const t=l.get(c);if(t)return t}else{l=this._values[a]=new Map}l.set(c,o);const u=this._scope[a]||(this._scope[a]=[]);const h=u.length;u[h]=r.ref;o.setValue(r,{property:a,itemIndex:h});return o}getValue(t,r){const i=this._values[t];if(!i)return;return i.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,(r=>{if(r.scopePath===undefined)throw new Error(`CodeGen: name "${r}" has no value`);return(0,o._)`${t}${r.scopePath}`}))}scopeCode(t=this._values,r,i){return this._reduceValues(t,(t=>{if(t.value===undefined)throw new Error(`CodeGen: name "${t}" has no value`);return t.value.code}),r,i)}_reduceValues(t,i,c={},l){let u=o.nil;for(const h in t){const d=t[h];if(!d)continue;const p=c[h]=c[h]||new Map;d.forEach((t=>{if(p.has(t))return;p.set(t,a.Started);let c=i(t);if(c){const i=this.opts.es5?r.varKinds.var:r.varKinds.const;u=(0,o._)`${u}${i} ${t} = ${c};${this.opts._n}`}else if(c=l===null||l===void 0?void 0:l(t)){u=(0,o._)`${u}${c}${this.opts._n}`}else{throw new ValueError(t)}p.set(t,a.Completed)}))}return u}}r.ValueScope=ValueScope},8674:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.extendErrors=r.resetErrorsCount=r.reportExtraError=r.reportError=r.keyword$DataError=r.keywordError=void 0;const o=i(6515);const a=i(7373);const c=i(3877);r.keywordError={message:({keyword:t})=>(0,o.str)`must pass "${t}" keyword validation`};r.keyword$DataError={message:({keyword:t,schemaType:r})=>r?(0,o.str)`"${t}" keyword must be ${r} ($data)`:(0,o.str)`"${t}" keyword is invalid ($data)`};function reportError(t,i=r.keywordError,a,c){const{it:l}=t;const{gen:u,compositeRule:h,allErrors:d}=l;const p=errorObjectCode(t,i,a);if(c!==null&&c!==void 0?c:h||d){addError(u,p)}else{returnErrors(l,(0,o._)`[${p}]`)}}r.reportError=reportError;function reportExtraError(t,i=r.keywordError,o){const{it:a}=t;const{gen:l,compositeRule:u,allErrors:h}=a;const d=errorObjectCode(t,i,o);addError(l,d);if(!(u||h)){returnErrors(a,c.default.vErrors)}}r.reportExtraError=reportExtraError;function resetErrorsCount(t,r){t.assign(c.default.errors,r);t.if((0,o._)`${c.default.vErrors} !== null`,(()=>t.if(r,(()=>t.assign((0,o._)`${c.default.vErrors}.length`,r)),(()=>t.assign(c.default.vErrors,null)))))}r.resetErrorsCount=resetErrorsCount;function extendErrors({gen:t,keyword:r,schemaValue:i,data:a,errsCount:l,it:u}){if(l===undefined)throw new Error("ajv implementation error");const h=t.name("err");t.forRange("i",l,c.default.errors,(l=>{t.const(h,(0,o._)`${c.default.vErrors}[${l}]`);t.if((0,o._)`${h}.instancePath === undefined`,(()=>t.assign((0,o._)`${h}.instancePath`,(0,o.strConcat)(c.default.instancePath,u.errorPath))));t.assign((0,o._)`${h}.schemaPath`,(0,o.str)`${u.errSchemaPath}/${r}`);if(u.opts.verbose){t.assign((0,o._)`${h}.schema`,i);t.assign((0,o._)`${h}.data`,a)}}))}r.extendErrors=extendErrors;function addError(t,r){const i=t.const("err",r);t.if((0,o._)`${c.default.vErrors} === null`,(()=>t.assign(c.default.vErrors,(0,o._)`[${i}]`)),(0,o._)`${c.default.vErrors}.push(${i})`);t.code((0,o._)`${c.default.errors}++`)}function returnErrors(t,r){const{gen:i,validateName:a,schemaEnv:c}=t;if(c.$async){i.throw((0,o._)`new ${t.ValidationError}(${r})`)}else{i.assign((0,o._)`${a}.errors`,r);i.return(false)}}const l={keyword:new o.Name("keyword"),schemaPath:new o.Name("schemaPath"),params:new o.Name("params"),propertyName:new o.Name("propertyName"),message:new o.Name("message"),schema:new o.Name("schema"),parentSchema:new o.Name("parentSchema")};function errorObjectCode(t,r,i){const{createErrors:a}=t.it;if(a===false)return(0,o._)`{}`;return errorObject(t,r,i)}function errorObject(t,r,i={}){const{gen:o,it:a}=t;const c=[errorInstancePath(a,i),errorSchemaPath(t,i)];extraErrorProps(t,r,c);return o.object(...c)}function errorInstancePath({errorPath:t},{instancePath:r}){const i=r?(0,o.str)`${t}${(0,a.getErrorPath)(r,a.Type.Str)}`:t;return[c.default.instancePath,(0,o.strConcat)(c.default.instancePath,i)]}function errorSchemaPath({keyword:t,it:{errSchemaPath:r}},{schemaPath:i,parentSchema:c}){let u=c?r:(0,o.str)`${r}/${t}`;if(i){u=(0,o.str)`${u}${(0,a.getErrorPath)(i,a.Type.Str)}`}return[l.schemaPath,u]}function extraErrorProps(t,{params:r,message:i},a){const{keyword:u,data:h,schemaValue:d,it:p}=t;const{opts:m,propertyName:g,topSchemaRef:y,schemaPath:v}=p;a.push([l.keyword,u],[l.params,typeof r=="function"?r(t):r||(0,o._)`{}`]);if(m.messages){a.push([l.message,typeof i=="function"?i(t):i])}if(m.verbose){a.push([l.schema,d],[l.parentSchema,(0,o._)`${y}${v}`],[c.default.data,h])}if(g)a.push([l.propertyName,g])}},4621:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.resolveSchema=r.getCompilingSchema=r.resolveRef=r.compileSchema=r.SchemaEnv=void 0;const o=i(6515);const a=i(7248);const c=i(3877);const l=i(2657);const u=i(7373);const h=i(9688);class SchemaEnv{constructor(t){var r;this.refs={};this.dynamicAnchors={};let i;if(typeof t.schema=="object")i=t.schema;this.schema=t.schema;this.schemaId=t.schemaId;this.root=t.root||this;this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,l.normalizeId)(i===null||i===void 0?void 0:i[t.schemaId||"$id"]);this.schemaPath=t.schemaPath;this.localRefs=t.localRefs;this.meta=t.meta;this.$async=i===null||i===void 0?void 0:i.$async;this.refs={}}}r.SchemaEnv=SchemaEnv;function compileSchema(t){const r=getCompilingSchema.call(this,t);if(r)return r;const i=(0,l.getFullPath)(this.opts.uriResolver,t.root.baseId);const{es5:u,lines:d}=this.opts.code;const{ownProperties:p}=this.opts;const m=new o.CodeGen(this.scope,{es5:u,lines:d,ownProperties:p});let g;if(t.$async){g=m.scopeValue("Error",{ref:a.default,code:(0,o._)`require("ajv/dist/runtime/validation_error").default`})}const y=m.scopeName("validate");t.validateName=y;const v={gen:m,allErrors:this.opts.allErrors,data:c.default.data,parentData:c.default.parentData,parentDataProperty:c.default.parentDataProperty,dataNames:[c.default.data],dataPathArr:[o.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:m.scopeValue("schema",this.opts.code.source===true?{ref:t.schema,code:(0,o.stringify)(t.schema)}:{ref:t.schema}),validateName:y,ValidationError:g,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:o.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,o._)`""`,opts:this.opts,self:this};let b;try{this._compilations.add(t);(0,h.validateFunctionCode)(v);m.optimize(this.opts.code.optimize);const r=m.toString();b=`${m.scopeRefs(c.default.scope)}return ${r}`;if(this.opts.code.process)b=this.opts.code.process(b,t);const i=new Function(`${c.default.self}`,`${c.default.scope}`,b);const a=i(this,this.scope.get());this.scope.value(y,{ref:a});a.errors=null;a.schema=t.schema;a.schemaEnv=t;if(t.$async)a.$async=true;if(this.opts.code.source===true){a.source={validateName:y,validateCode:r,scopeValues:m._values}}if(this.opts.unevaluated){const{props:t,items:r}=v;a.evaluated={props:t instanceof o.Name?undefined:t,items:r instanceof o.Name?undefined:r,dynamicProps:t instanceof o.Name,dynamicItems:r instanceof o.Name};if(a.source)a.source.evaluated=(0,o.stringify)(a.evaluated)}t.validate=a;return t}catch(r){delete t.validate;delete t.validateName;if(b)this.logger.error("Error compiling schema, function code:",b);throw r}finally{this._compilations.delete(t)}}r.compileSchema=compileSchema;function resolveRef(t,r,i){var o;i=(0,l.resolveUrl)(this.opts.uriResolver,r,i);const a=t.refs[i];if(a)return a;let c=resolve.call(this,t,i);if(c===undefined){const a=(o=t.localRefs)===null||o===void 0?void 0:o[i];const{schemaId:l}=this.opts;if(a)c=new SchemaEnv({schema:a,schemaId:l,root:t,baseId:r})}if(c===undefined)return;return t.refs[i]=inlineOrCompile.call(this,c)}r.resolveRef=resolveRef;function inlineOrCompile(t){if((0,l.inlineRef)(t.schema,this.opts.inlineRefs))return t.schema;return t.validate?t:compileSchema.call(this,t)}function getCompilingSchema(t){for(const r of this._compilations){if(sameSchemaEnv(r,t))return r}}r.getCompilingSchema=getCompilingSchema;function sameSchemaEnv(t,r){return t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId}function resolve(t,r){let i;while(typeof(i=this.refs[r])=="string")r=i;return i||this.schemas[r]||resolveSchema.call(this,t,r)}function resolveSchema(t,r){const i=this.opts.uriResolver.parse(r);const o=(0,l._getFullPath)(this.opts.uriResolver,i);let a=(0,l.getFullPath)(this.opts.uriResolver,t.baseId,undefined);if(Object.keys(t.schema).length>0&&o===a){return getJsonPointer.call(this,i,t)}const c=(0,l.normalizeId)(o);const u=this.refs[c]||this.schemas[c];if(typeof u=="string"){const r=resolveSchema.call(this,t,u);if(typeof(r===null||r===void 0?void 0:r.schema)!=="object")return;return getJsonPointer.call(this,i,r)}if(typeof(u===null||u===void 0?void 0:u.schema)!=="object")return;if(!u.validate)compileSchema.call(this,u);if(c===(0,l.normalizeId)(r)){const{schema:r}=u;const{schemaId:i}=this.opts;const o=r[i];if(o)a=(0,l.resolveUrl)(this.opts.uriResolver,a,o);return new SchemaEnv({schema:r,schemaId:i,root:t,baseId:a})}return getJsonPointer.call(this,i,u)}r.resolveSchema=resolveSchema;const d=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(t,{baseId:r,schema:i,root:o}){var a;if(((a=t.fragment)===null||a===void 0?void 0:a[0])!=="/")return;for(const o of t.fragment.slice(1).split("/")){if(typeof i==="boolean")return;const t=i[(0,u.unescapeFragment)(o)];if(t===undefined)return;i=t;const a=typeof i==="object"&&i[this.opts.schemaId];if(!d.has(o)&&a){r=(0,l.resolveUrl)(this.opts.uriResolver,r,a)}}let c;if(typeof i!="boolean"&&i.$ref&&!(0,u.schemaHasRulesButRef)(i,this.RULES)){const t=(0,l.resolveUrl)(this.opts.uriResolver,r,i.$ref);c=resolveSchema.call(this,o,t)}const{schemaId:h}=this.opts;c=c||new SchemaEnv({schema:i,schemaId:h,root:o,baseId:r});if(c.schema!==c.root.schema)return c;return undefined}},3877:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a={data:new o.Name("data"),valCxt:new o.Name("valCxt"),instancePath:new o.Name("instancePath"),parentData:new o.Name("parentData"),parentDataProperty:new o.Name("parentDataProperty"),rootData:new o.Name("rootData"),dynamicAnchors:new o.Name("dynamicAnchors"),vErrors:new o.Name("vErrors"),errors:new o.Name("errors"),this:new o.Name("this"),self:new o.Name("self"),scope:new o.Name("scope"),json:new o.Name("json"),jsonPos:new o.Name("jsonPos"),jsonLen:new o.Name("jsonLen"),jsonPart:new o.Name("jsonPart")};r["default"]=a},5945:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(2657);class MissingRefError extends Error{constructor(t,r,i,a){super(a||`can't resolve reference ${i} from id ${r}`);this.missingRef=(0,o.resolveUrl)(t,r,i);this.missingSchema=(0,o.normalizeId)((0,o.getFullPath)(t,this.missingRef))}}r["default"]=MissingRefError},2657:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getSchemaRefs=r.resolveUrl=r.normalizeId=r._getFullPath=r.getFullPath=r.inlineRef=void 0;const o=i(7373);const a=i(5546);const c=i(6651);const l=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function inlineRef(t,r=true){if(typeof t=="boolean")return true;if(r===true)return!hasRef(t);if(!r)return false;return countKeys(t)<=r}r.inlineRef=inlineRef;const u=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(t){for(const r in t){if(u.has(r))return true;const i=t[r];if(Array.isArray(i)&&i.some(hasRef))return true;if(typeof i=="object"&&hasRef(i))return true}return false}function countKeys(t){let r=0;for(const i in t){if(i==="$ref")return Infinity;r++;if(l.has(i))continue;if(typeof t[i]=="object"){(0,o.eachItem)(t[i],(t=>r+=countKeys(t)))}if(r===Infinity)return Infinity}return r}function getFullPath(t,r="",i){if(i!==false)r=normalizeId(r);const o=t.parse(r);return _getFullPath(t,o)}r.getFullPath=getFullPath;function _getFullPath(t,r){const i=t.serialize(r);return i.split("#")[0]+"#"}r._getFullPath=_getFullPath;const h=/#\/?$/;function normalizeId(t){return t?t.replace(h,""):""}r.normalizeId=normalizeId;function resolveUrl(t,r,i){i=normalizeId(i);return t.resolve(r,i)}r.resolveUrl=resolveUrl;const d=/^[a-z_][-a-z0-9._]*$/i;function getSchemaRefs(t,r){if(typeof t=="boolean")return{};const{schemaId:i,uriResolver:o}=this.opts;const l=normalizeId(t[i]||r);const u={"":l};const h=getFullPath(o,l,false);const p={};const m=new Set;c(t,{allKeys:true},((t,r,o,a)=>{if(a===undefined)return;const c=h+r;let l=u[a];if(typeof t[i]=="string")l=addRef.call(this,t[i]);addAnchor.call(this,t.$anchor);addAnchor.call(this,t.$dynamicAnchor);u[r]=l;function addRef(r){const i=this.opts.uriResolver.resolve;r=normalizeId(l?i(l,r):r);if(m.has(r))throw ambiguos(r);m.add(r);let o=this.refs[r];if(typeof o=="string")o=this.refs[o];if(typeof o=="object"){checkAmbiguosRef(t,o.schema,r)}else if(r!==normalizeId(c)){if(r[0]==="#"){checkAmbiguosRef(t,p[r],r);p[r]=t}else{this.refs[r]=c}}return r}function addAnchor(t){if(typeof t=="string"){if(!d.test(t))throw new Error(`invalid anchor "${t}"`);addRef.call(this,`#${t}`)}}}));return p;function checkAmbiguosRef(t,r,i){if(r!==undefined&&!a(t,r))throw ambiguos(i)}function ambiguos(t){return new Error(`reference "${t}" resolves to more than one schema`)}}r.getSchemaRefs=getSchemaRefs},7282:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getRules=r.isJSONType=void 0;const i=["string","number","integer","boolean","null","object","array"];const o=new Set(i);function isJSONType(t){return typeof t=="string"&&o.has(t)}r.isJSONType=isJSONType;function getRules(){const t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:true,boolean:true,null:true},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}r.getRules=getRules},7373:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.checkStrictMode=r.getErrorPath=r.Type=r.useFunc=r.setEvaluated=r.evaluatedPropsToName=r.mergeEvaluated=r.eachItem=r.unescapeJsonPointer=r.escapeJsonPointer=r.escapeFragment=r.unescapeFragment=r.schemaRefOrVal=r.schemaHasRulesButRef=r.schemaHasRules=r.checkUnknownRules=r.alwaysValidSchema=r.toHash=void 0;const o=i(6515);const a=i(3070);function toHash(t){const r={};for(const i of t)r[i]=true;return r}r.toHash=toHash;function alwaysValidSchema(t,r){if(typeof r=="boolean")return r;if(Object.keys(r).length===0)return true;checkUnknownRules(t,r);return!schemaHasRules(r,t.self.RULES.all)}r.alwaysValidSchema=alwaysValidSchema;function checkUnknownRules(t,r=t.schema){const{opts:i,self:o}=t;if(!i.strictSchema)return;if(typeof r==="boolean")return;const a=o.RULES.keywords;for(const i in r){if(!a[i])checkStrictMode(t,`unknown keyword: "${i}"`)}}r.checkUnknownRules=checkUnknownRules;function schemaHasRules(t,r){if(typeof t=="boolean")return!t;for(const i in t)if(r[i])return true;return false}r.schemaHasRules=schemaHasRules;function schemaHasRulesButRef(t,r){if(typeof t=="boolean")return!t;for(const i in t)if(i!=="$ref"&&r.all[i])return true;return false}r.schemaHasRulesButRef=schemaHasRulesButRef;function schemaRefOrVal({topSchemaRef:t,schemaPath:r},i,a,c){if(!c){if(typeof i=="number"||typeof i=="boolean")return i;if(typeof i=="string")return(0,o._)`${i}`}return(0,o._)`${t}${r}${(0,o.getProperty)(a)}`}r.schemaRefOrVal=schemaRefOrVal;function unescapeFragment(t){return unescapeJsonPointer(decodeURIComponent(t))}r.unescapeFragment=unescapeFragment;function escapeFragment(t){return encodeURIComponent(escapeJsonPointer(t))}r.escapeFragment=escapeFragment;function escapeJsonPointer(t){if(typeof t=="number")return`${t}`;return t.replace(/~/g,"~0").replace(/\//g,"~1")}r.escapeJsonPointer=escapeJsonPointer;function unescapeJsonPointer(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}r.unescapeJsonPointer=unescapeJsonPointer;function eachItem(t,r){if(Array.isArray(t)){for(const i of t)r(i)}else{r(t)}}r.eachItem=eachItem;function makeMergeEvaluated({mergeNames:t,mergeToName:r,mergeValues:i,resultToName:a}){return(c,l,u,h)=>{const d=u===undefined?l:u instanceof o.Name?(l instanceof o.Name?t(c,l,u):r(c,l,u),u):l instanceof o.Name?(r(c,u,l),l):i(l,u);return h===o.Name&&!(d instanceof o.Name)?a(c,d):d}}r.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(t,r,i)=>t.if((0,o._)`${i} !== true && ${r} !== undefined`,(()=>{t.if((0,o._)`${r} === true`,(()=>t.assign(i,true)),(()=>t.assign(i,(0,o._)`${i} || {}`).code((0,o._)`Object.assign(${i}, ${r})`)))})),mergeToName:(t,r,i)=>t.if((0,o._)`${i} !== true`,(()=>{if(r===true){t.assign(i,true)}else{t.assign(i,(0,o._)`${i} || {}`);setEvaluated(t,i,r)}})),mergeValues:(t,r)=>t===true?true:{...t,...r},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(t,r,i)=>t.if((0,o._)`${i} !== true && ${r} !== undefined`,(()=>t.assign(i,(0,o._)`${r} === true ? true : ${i} > ${r} ? ${i} : ${r}`))),mergeToName:(t,r,i)=>t.if((0,o._)`${i} !== true`,(()=>t.assign(i,r===true?true:(0,o._)`${i} > ${r} ? ${i} : ${r}`))),mergeValues:(t,r)=>t===true?true:Math.max(t,r),resultToName:(t,r)=>t.var("items",r)})};function evaluatedPropsToName(t,r){if(r===true)return t.var("props",true);const i=t.var("props",(0,o._)`{}`);if(r!==undefined)setEvaluated(t,i,r);return i}r.evaluatedPropsToName=evaluatedPropsToName;function setEvaluated(t,r,i){Object.keys(i).forEach((i=>t.assign((0,o._)`${r}${(0,o.getProperty)(i)}`,true)))}r.setEvaluated=setEvaluated;const c={};function useFunc(t,r){return t.scopeValue("func",{ref:r,code:c[r.code]||(c[r.code]=new a._Code(r.code))})}r.useFunc=useFunc;var l;(function(t){t[t["Num"]=0]="Num";t[t["Str"]=1]="Str"})(l||(r.Type=l={}));function getErrorPath(t,r,i){if(t instanceof o.Name){const a=r===l.Num;return i?a?(0,o._)`"[" + ${t} + "]"`:(0,o._)`"['" + ${t} + "']"`:a?(0,o._)`"/" + ${t}`:(0,o._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return i?(0,o.getProperty)(t).toString():"/"+escapeJsonPointer(t)}r.getErrorPath=getErrorPath;function checkStrictMode(t,r,i=t.opts.strictSchema){if(!i)return;r=`strict mode: ${r}`;if(i===true)throw new Error(r);t.self.logger.warn(r)}r.checkStrictMode=checkStrictMode},7825:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.shouldUseRule=r.shouldUseGroup=r.schemaHasRulesForType=void 0;function schemaHasRulesForType({schema:t,self:r},i){const o=r.RULES.types[i];return o&&o!==true&&shouldUseGroup(t,o)}r.schemaHasRulesForType=schemaHasRulesForType;function shouldUseGroup(t,r){return r.rules.some((r=>shouldUseRule(t,r)))}r.shouldUseGroup=shouldUseGroup;function shouldUseRule(t,r){var i;return t[r.keyword]!==undefined||((i=r.definition.implements)===null||i===void 0?void 0:i.some((r=>t[r]!==undefined)))}r.shouldUseRule=shouldUseRule},3113:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.boolOrEmptySchema=r.topBoolOrEmptySchema=void 0;const o=i(8674);const a=i(6515);const c=i(3877);const l={message:"boolean schema is false"};function topBoolOrEmptySchema(t){const{gen:r,schema:i,validateName:o}=t;if(i===false){falseSchemaError(t,false)}else if(typeof i=="object"&&i.$async===true){r.return(c.default.data)}else{r.assign((0,a._)`${o}.errors`,null);r.return(true)}}r.topBoolOrEmptySchema=topBoolOrEmptySchema;function boolOrEmptySchema(t,r){const{gen:i,schema:o}=t;if(o===false){i.var(r,false);falseSchemaError(t)}else{i.var(r,true)}}r.boolOrEmptySchema=boolOrEmptySchema;function falseSchemaError(t,r){const{gen:i,data:a}=t;const c={gen:i,keyword:"false schema",data:a,schema:false,schemaCode:false,schemaValue:false,params:{},it:t};(0,o.reportError)(c,l,undefined,r)}},8486:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.reportTypeError=r.checkDataTypes=r.checkDataType=r.coerceAndCheckDataType=r.getJSONTypes=r.getSchemaTypes=r.DataType=void 0;const o=i(7282);const a=i(7825);const c=i(8674);const l=i(6515);const u=i(7373);var h;(function(t){t[t["Correct"]=0]="Correct";t[t["Wrong"]=1]="Wrong"})(h||(r.DataType=h={}));function getSchemaTypes(t){const r=getJSONTypes(t.type);const i=r.includes("null");if(i){if(t.nullable===false)throw new Error("type: null contradicts nullable: false")}else{if(!r.length&&t.nullable!==undefined){throw new Error('"nullable" cannot be used without "type"')}if(t.nullable===true)r.push("null")}return r}r.getSchemaTypes=getSchemaTypes;function getJSONTypes(t){const r=Array.isArray(t)?t:t?[t]:[];if(r.every(o.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}r.getJSONTypes=getJSONTypes;function coerceAndCheckDataType(t,r){const{gen:i,data:o,opts:c}=t;const l=coerceToTypes(r,c.coerceTypes);const u=r.length>0&&!(l.length===0&&r.length===1&&(0,a.schemaHasRulesForType)(t,r[0]));if(u){const a=checkDataTypes(r,o,c.strictNumbers,h.Wrong);i.if(a,(()=>{if(l.length)coerceData(t,r,l);else reportTypeError(t)}))}return u}r.coerceAndCheckDataType=coerceAndCheckDataType;const d=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(t,r){return r?t.filter((t=>d.has(t)||r==="array"&&t==="array")):[]}function coerceData(t,r,i){const{gen:o,data:a,opts:c}=t;const u=o.let("dataType",(0,l._)`typeof ${a}`);const h=o.let("coerced",(0,l._)`undefined`);if(c.coerceTypes==="array"){o.if((0,l._)`${u} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,(()=>o.assign(a,(0,l._)`${a}[0]`).assign(u,(0,l._)`typeof ${a}`).if(checkDataTypes(r,a,c.strictNumbers),(()=>o.assign(h,a)))))}o.if((0,l._)`${h} !== undefined`);for(const t of i){if(d.has(t)||t==="array"&&c.coerceTypes==="array"){coerceSpecificType(t)}}o.else();reportTypeError(t);o.endIf();o.if((0,l._)`${h} !== undefined`,(()=>{o.assign(a,h);assignParentData(t,h)}));function coerceSpecificType(t){switch(t){case"string":o.elseIf((0,l._)`${u} == "number" || ${u} == "boolean"`).assign(h,(0,l._)`"" + ${a}`).elseIf((0,l._)`${a} === null`).assign(h,(0,l._)`""`);return;case"number":o.elseIf((0,l._)`${u} == "boolean" || ${a} === null
|
|
67
|
+
|| (${u} == "string" && ${a} && ${a} == +${a})`).assign(h,(0,l._)`+${a}`);return;case"integer":o.elseIf((0,l._)`${u} === "boolean" || ${a} === null
|
|
68
|
+
|| (${u} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(h,(0,l._)`+${a}`);return;case"boolean":o.elseIf((0,l._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(h,false).elseIf((0,l._)`${a} === "true" || ${a} === 1`).assign(h,true);return;case"null":o.elseIf((0,l._)`${a} === "" || ${a} === 0 || ${a} === false`);o.assign(h,null);return;case"array":o.elseIf((0,l._)`${u} === "string" || ${u} === "number"
|
|
69
|
+
|| ${u} === "boolean" || ${a} === null`).assign(h,(0,l._)`[${a}]`)}}}function assignParentData({gen:t,parentData:r,parentDataProperty:i},o){t.if((0,l._)`${r} !== undefined`,(()=>t.assign((0,l._)`${r}[${i}]`,o)))}function checkDataType(t,r,i,o=h.Correct){const a=o===h.Correct?l.operators.EQ:l.operators.NEQ;let c;switch(t){case"null":return(0,l._)`${r} ${a} null`;case"array":c=(0,l._)`Array.isArray(${r})`;break;case"object":c=(0,l._)`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":c=numCond((0,l._)`!(${r} % 1) && !isNaN(${r})`);break;case"number":c=numCond();break;default:return(0,l._)`typeof ${r} ${a} ${t}`}return o===h.Correct?c:(0,l.not)(c);function numCond(t=l.nil){return(0,l.and)((0,l._)`typeof ${r} == "number"`,t,i?(0,l._)`isFinite(${r})`:l.nil)}}r.checkDataType=checkDataType;function checkDataTypes(t,r,i,o){if(t.length===1){return checkDataType(t[0],r,i,o)}let a;const c=(0,u.toHash)(t);if(c.array&&c.object){const t=(0,l._)`typeof ${r} != "object"`;a=c.null?t:(0,l._)`!${r} || ${t}`;delete c.null;delete c.array;delete c.object}else{a=l.nil}if(c.number)delete c.integer;for(const t in c)a=(0,l.and)(a,checkDataType(t,r,i,o));return a}r.checkDataTypes=checkDataTypes;const p={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:r})=>typeof t=="string"?(0,l._)`{type: ${t}}`:(0,l._)`{type: ${r}}`};function reportTypeError(t){const r=getTypeErrorContext(t);(0,c.reportError)(r,p)}r.reportTypeError=reportTypeError;function getTypeErrorContext(t){const{gen:r,data:i,schema:o}=t;const a=(0,u.schemaRefOrVal)(t,o,"type");return{gen:r,keyword:"type",data:i,schema:o.type,schemaCode:a,schemaValue:a,parentSchema:o,params:{},it:t}}},4940:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.assignDefaults=void 0;const o=i(6515);const a=i(7373);function assignDefaults(t,r){const{properties:i,items:o}=t.schema;if(r==="object"&&i){for(const r in i){assignDefault(t,r,i[r].default)}}else if(r==="array"&&Array.isArray(o)){o.forEach(((r,i)=>assignDefault(t,i,r.default)))}}r.assignDefaults=assignDefaults;function assignDefault(t,r,i){const{gen:c,compositeRule:l,data:u,opts:h}=t;if(i===undefined)return;const d=(0,o._)`${u}${(0,o.getProperty)(r)}`;if(l){(0,a.checkStrictMode)(t,`default is ignored for: ${d}`);return}let p=(0,o._)`${d} === undefined`;if(h.useDefaults==="empty"){p=(0,o._)`${p} || ${d} === null || ${d} === ""`}c.if(p,(0,o._)`${d} = ${(0,o.stringify)(i)}`)}},9688:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getData=r.KeywordCxt=r.validateFunctionCode=void 0;const o=i(3113);const a=i(8486);const c=i(7825);const l=i(8486);const u=i(4940);const h=i(3659);const d=i(6553);const p=i(6515);const m=i(3877);const g=i(2657);const y=i(7373);const v=i(8674);function validateFunctionCode(t){if(isSchemaObj(t)){checkKeywords(t);if(schemaCxtHasRules(t)){topSchemaObjCode(t);return}}validateFunction(t,(()=>(0,o.topBoolOrEmptySchema)(t)))}r.validateFunctionCode=validateFunctionCode;function validateFunction({gen:t,validateName:r,schema:i,schemaEnv:o,opts:a},c){if(a.code.es5){t.func(r,(0,p._)`${m.default.data}, ${m.default.valCxt}`,o.$async,(()=>{t.code((0,p._)`"use strict"; ${funcSourceUrl(i,a)}`);destructureValCxtES5(t,a);t.code(c)}))}else{t.func(r,(0,p._)`${m.default.data}, ${destructureValCxt(a)}`,o.$async,(()=>t.code(funcSourceUrl(i,a)).code(c)))}}function destructureValCxt(t){return(0,p._)`{${m.default.instancePath}="", ${m.default.parentData}, ${m.default.parentDataProperty}, ${m.default.rootData}=${m.default.data}${t.dynamicRef?(0,p._)`, ${m.default.dynamicAnchors}={}`:p.nil}}={}`}function destructureValCxtES5(t,r){t.if(m.default.valCxt,(()=>{t.var(m.default.instancePath,(0,p._)`${m.default.valCxt}.${m.default.instancePath}`);t.var(m.default.parentData,(0,p._)`${m.default.valCxt}.${m.default.parentData}`);t.var(m.default.parentDataProperty,(0,p._)`${m.default.valCxt}.${m.default.parentDataProperty}`);t.var(m.default.rootData,(0,p._)`${m.default.valCxt}.${m.default.rootData}`);if(r.dynamicRef)t.var(m.default.dynamicAnchors,(0,p._)`${m.default.valCxt}.${m.default.dynamicAnchors}`)}),(()=>{t.var(m.default.instancePath,(0,p._)`""`);t.var(m.default.parentData,(0,p._)`undefined`);t.var(m.default.parentDataProperty,(0,p._)`undefined`);t.var(m.default.rootData,m.default.data);if(r.dynamicRef)t.var(m.default.dynamicAnchors,(0,p._)`{}`)}))}function topSchemaObjCode(t){const{schema:r,opts:i,gen:o}=t;validateFunction(t,(()=>{if(i.$comment&&r.$comment)commentKeyword(t);checkNoDefault(t);o.let(m.default.vErrors,null);o.let(m.default.errors,0);if(i.unevaluated)resetEvaluated(t);typeAndKeywords(t);returnResults(t)}));return}function resetEvaluated(t){const{gen:r,validateName:i}=t;t.evaluated=r.const("evaluated",(0,p._)`${i}.evaluated`);r.if((0,p._)`${t.evaluated}.dynamicProps`,(()=>r.assign((0,p._)`${t.evaluated}.props`,(0,p._)`undefined`)));r.if((0,p._)`${t.evaluated}.dynamicItems`,(()=>r.assign((0,p._)`${t.evaluated}.items`,(0,p._)`undefined`)))}function funcSourceUrl(t,r){const i=typeof t=="object"&&t[r.schemaId];return i&&(r.code.source||r.code.process)?(0,p._)`/*# sourceURL=${i} */`:p.nil}function subschemaCode(t,r){if(isSchemaObj(t)){checkKeywords(t);if(schemaCxtHasRules(t)){subSchemaObjCode(t,r);return}}(0,o.boolOrEmptySchema)(t,r)}function schemaCxtHasRules({schema:t,self:r}){if(typeof t=="boolean")return!t;for(const i in t)if(r.RULES.all[i])return true;return false}function isSchemaObj(t){return typeof t.schema!="boolean"}function subSchemaObjCode(t,r){const{schema:i,gen:o,opts:a}=t;if(a.$comment&&i.$comment)commentKeyword(t);updateContext(t);checkAsyncSchema(t);const c=o.const("_errs",m.default.errors);typeAndKeywords(t,c);o.var(r,(0,p._)`${c} === ${m.default.errors}`)}function checkKeywords(t){(0,y.checkUnknownRules)(t);checkRefsAndKeywords(t)}function typeAndKeywords(t,r){if(t.opts.jtd)return schemaKeywords(t,[],false,r);const i=(0,a.getSchemaTypes)(t.schema);const o=(0,a.coerceAndCheckDataType)(t,i);schemaKeywords(t,i,!o,r)}function checkRefsAndKeywords(t){const{schema:r,errSchemaPath:i,opts:o,self:a}=t;if(r.$ref&&o.ignoreKeywordsWithRef&&(0,y.schemaHasRulesButRef)(r,a.RULES)){a.logger.warn(`$ref: keywords ignored in schema at path "${i}"`)}}function checkNoDefault(t){const{schema:r,opts:i}=t;if(r.default!==undefined&&i.useDefaults&&i.strictSchema){(0,y.checkStrictMode)(t,"default is ignored in the schema root")}}function updateContext(t){const r=t.schema[t.opts.schemaId];if(r)t.baseId=(0,g.resolveUrl)(t.opts.uriResolver,t.baseId,r)}function checkAsyncSchema(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen:t,schemaEnv:r,schema:i,errSchemaPath:o,opts:a}){const c=i.$comment;if(a.$comment===true){t.code((0,p._)`${m.default.self}.logger.log(${c})`)}else if(typeof a.$comment=="function"){const i=(0,p.str)`${o}/$comment`;const a=t.scopeValue("root",{ref:r.root});t.code((0,p._)`${m.default.self}.opts.$comment(${c}, ${i}, ${a}.schema)`)}}function returnResults(t){const{gen:r,schemaEnv:i,validateName:o,ValidationError:a,opts:c}=t;if(i.$async){r.if((0,p._)`${m.default.errors} === 0`,(()=>r.return(m.default.data)),(()=>r.throw((0,p._)`new ${a}(${m.default.vErrors})`)))}else{r.assign((0,p._)`${o}.errors`,m.default.vErrors);if(c.unevaluated)assignEvaluated(t);r.return((0,p._)`${m.default.errors} === 0`)}}function assignEvaluated({gen:t,evaluated:r,props:i,items:o}){if(i instanceof p.Name)t.assign((0,p._)`${r}.props`,i);if(o instanceof p.Name)t.assign((0,p._)`${r}.items`,o)}function schemaKeywords(t,r,i,o){const{gen:a,schema:u,data:h,allErrors:d,opts:g,self:v}=t;const{RULES:b}=v;if(u.$ref&&(g.ignoreKeywordsWithRef||!(0,y.schemaHasRulesButRef)(u,b))){a.block((()=>keywordCode(t,"$ref",b.all.$ref.definition)));return}if(!g.jtd)checkStrictTypes(t,r);a.block((()=>{for(const t of b.rules)groupKeywords(t);groupKeywords(b.post)}));function groupKeywords(y){if(!(0,c.shouldUseGroup)(u,y))return;if(y.type){a.if((0,l.checkDataType)(y.type,h,g.strictNumbers));iterateKeywords(t,y);if(r.length===1&&r[0]===y.type&&i){a.else();(0,l.reportTypeError)(t)}a.endIf()}else{iterateKeywords(t,y)}if(!d)a.if((0,p._)`${m.default.errors} === ${o||0}`)}}function iterateKeywords(t,r){const{gen:i,schema:o,opts:{useDefaults:a}}=t;if(a)(0,u.assignDefaults)(t,r.type);i.block((()=>{for(const i of r.rules){if((0,c.shouldUseRule)(o,i)){keywordCode(t,i.keyword,i.definition,r.type)}}}))}function checkStrictTypes(t,r){if(t.schemaEnv.meta||!t.opts.strictTypes)return;checkContextTypes(t,r);if(!t.opts.allowUnionTypes)checkMultipleTypes(t,r);checkKeywordTypes(t,t.dataTypes)}function checkContextTypes(t,r){if(!r.length)return;if(!t.dataTypes.length){t.dataTypes=r;return}r.forEach((r=>{if(!includesType(t.dataTypes,r)){strictTypesError(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}}));narrowSchemaTypes(t,r)}function checkMultipleTypes(t,r){if(r.length>1&&!(r.length===2&&r.includes("null"))){strictTypesError(t,"use allowUnionTypes to allow union type keyword")}}function checkKeywordTypes(t,r){const i=t.self.RULES.all;for(const o in i){const a=i[o];if(typeof a=="object"&&(0,c.shouldUseRule)(t.schema,a)){const{type:i}=a.definition;if(i.length&&!i.some((t=>hasApplicableType(r,t)))){strictTypesError(t,`missing type "${i.join(",")}" for keyword "${o}"`)}}}}function hasApplicableType(t,r){return t.includes(r)||r==="number"&&t.includes("integer")}function includesType(t,r){return t.includes(r)||r==="integer"&&t.includes("number")}function narrowSchemaTypes(t,r){const i=[];for(const o of t.dataTypes){if(includesType(r,o))i.push(o);else if(r.includes("integer")&&o==="number")i.push("integer")}t.dataTypes=i}function strictTypesError(t,r){const i=t.schemaEnv.baseId+t.errSchemaPath;r+=` at "${i}" (strictTypes)`;(0,y.checkStrictMode)(t,r,t.opts.strictTypes)}class KeywordCxt{constructor(t,r,i){(0,h.validateKeywordUsage)(t,r,i);this.gen=t.gen;this.allErrors=t.allErrors;this.keyword=i;this.data=t.data;this.schema=t.schema[i];this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data;this.schemaValue=(0,y.schemaRefOrVal)(t,this.schema,i,this.$data);this.schemaType=r.schemaType;this.parentSchema=t.schema;this.params={};this.it=t;this.def=r;if(this.$data){this.schemaCode=t.gen.const("vSchema",getData(this.$data,t))}else{this.schemaCode=this.schemaValue;if(!(0,h.validSchemaType)(this.schema,r.schemaType,r.allowUndefined)){throw new Error(`${i} value must be ${JSON.stringify(r.schemaType)}`)}}if("code"in r?r.trackErrors:r.errors!==false){this.errsCount=t.gen.const("_errs",m.default.errors)}}result(t,r,i){this.failResult((0,p.not)(t),r,i)}failResult(t,r,i){this.gen.if(t);if(i)i();else this.error();if(r){this.gen.else();r();if(this.allErrors)this.gen.endIf()}else{if(this.allErrors)this.gen.endIf();else this.gen.else()}}pass(t,r){this.failResult((0,p.not)(t),undefined,r)}fail(t){if(t===undefined){this.error();if(!this.allErrors)this.gen.if(false);return}this.gen.if(t);this.error();if(this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,p._)`${r} !== undefined && (${(0,p.or)(this.invalid$data(),t)})`)}error(t,r,i){if(r){this.setParams(r);this._error(t,i);this.setParams({});return}this._error(t,i)}_error(t,r){(t?v.reportExtraError:v.reportError)(this,this.def.error,r)}$dataError(){(0,v.reportError)(this,this.def.$dataError||v.keyword$DataError)}reset(){if(this.errsCount===undefined)throw new Error('add "trackErrors" to keyword definition');(0,v.resetErrorsCount)(this.gen,this.errsCount)}ok(t){if(!this.allErrors)this.gen.if(t)}setParams(t,r){if(r)Object.assign(this.params,t);else this.params=t}block$data(t,r,i=p.nil){this.gen.block((()=>{this.check$data(t,i);r()}))}check$data(t=p.nil,r=p.nil){if(!this.$data)return;const{gen:i,schemaCode:o,schemaType:a,def:c}=this;i.if((0,p.or)((0,p._)`${o} === undefined`,r));if(t!==p.nil)i.assign(t,true);if(a.length||c.validateSchema){i.elseIf(this.invalid$data());this.$dataError();if(t!==p.nil)i.assign(t,false)}i.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:i,def:o,it:a}=this;return(0,p.or)(wrong$DataType(),invalid$DataSchema());function wrong$DataType(){if(i.length){if(!(r instanceof p.Name))throw new Error("ajv implementation error");const t=Array.isArray(i)?i:[i];return(0,p._)`${(0,l.checkDataTypes)(t,r,a.opts.strictNumbers,l.DataType.Wrong)}`}return p.nil}function invalid$DataSchema(){if(o.validateSchema){const i=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,p._)`!${i}(${r})`}return p.nil}}subschema(t,r){const i=(0,d.getSubschema)(this.it,t);(0,d.extendSubschemaData)(i,this.it,t);(0,d.extendSubschemaMode)(i,t);const o={...this.it,...i,items:undefined,props:undefined};subschemaCode(o,r);return o}mergeEvaluated(t,r){const{it:i,gen:o}=this;if(!i.opts.unevaluated)return;if(i.props!==true&&t.props!==undefined){i.props=y.mergeEvaluated.props(o,t.props,i.props,r)}if(i.items!==true&&t.items!==undefined){i.items=y.mergeEvaluated.items(o,t.items,i.items,r)}}mergeValidEvaluated(t,r){const{it:i,gen:o}=this;if(i.opts.unevaluated&&(i.props!==true||i.items!==true)){o.if(r,(()=>this.mergeEvaluated(t,p.Name)));return true}}}r.KeywordCxt=KeywordCxt;function keywordCode(t,r,i,o){const a=new KeywordCxt(t,i,r);if("code"in i){i.code(a,o)}else if(a.$data&&i.validate){(0,h.funcKeywordCode)(a,i)}else if("macro"in i){(0,h.macroKeywordCode)(a,i)}else if(i.compile||i.validate){(0,h.funcKeywordCode)(a,i)}}const b=/^\/(?:[^~]|~0|~1)*$/;const w=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(t,{dataLevel:r,dataNames:i,dataPathArr:o}){let a;let c;if(t==="")return m.default.rootData;if(t[0]==="/"){if(!b.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);a=t;c=m.default.rootData}else{const l=w.exec(t);if(!l)throw new Error(`Invalid JSON-pointer: ${t}`);const u=+l[1];a=l[2];if(a==="#"){if(u>=r)throw new Error(errorMsg("property/index",u));return o[r-u]}if(u>r)throw new Error(errorMsg("data",u));c=i[r-u];if(!a)return c}let l=c;const u=a.split("/");for(const t of u){if(t){c=(0,p._)`${c}${(0,p.getProperty)((0,y.unescapeJsonPointer)(t))}`;l=(0,p._)`${l} && ${c}`}}return l;function errorMsg(t,i){return`Cannot access ${t} ${i} levels up, current level is ${r}`}}r.getData=getData},3659:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.validateKeywordUsage=r.validSchemaType=r.funcKeywordCode=r.macroKeywordCode=void 0;const o=i(6515);const a=i(3877);const c=i(3955);const l=i(8674);function macroKeywordCode(t,r){const{gen:i,keyword:a,schema:c,parentSchema:l,it:u}=t;const h=r.macro.call(u.self,c,l,u);const d=useKeyword(i,a,h);if(u.opts.validateSchema!==false)u.self.validateSchema(h,true);const p=i.name("valid");t.subschema({schema:h,schemaPath:o.nil,errSchemaPath:`${u.errSchemaPath}/${a}`,topSchemaRef:d,compositeRule:true},p);t.pass(p,(()=>t.error(true)))}r.macroKeywordCode=macroKeywordCode;function funcKeywordCode(t,r){var i;const{gen:l,keyword:u,schema:h,parentSchema:d,$data:p,it:m}=t;checkAsyncKeyword(m,r);const g=!p&&r.compile?r.compile.call(m.self,h,d,m):r.validate;const y=useKeyword(l,u,g);const v=l.let("valid");t.block$data(v,validateKeyword);t.ok((i=r.valid)!==null&&i!==void 0?i:v);function validateKeyword(){if(r.errors===false){assignValid();if(r.modifying)modifyData(t);reportErrs((()=>t.error()))}else{const i=r.async?validateAsync():validateSync();if(r.modifying)modifyData(t);reportErrs((()=>addErrs(t,i)))}}function validateAsync(){const t=l.let("ruleErrs",null);l.try((()=>assignValid((0,o._)`await `)),(r=>l.assign(v,false).if((0,o._)`${r} instanceof ${m.ValidationError}`,(()=>l.assign(t,(0,o._)`${r}.errors`)),(()=>l.throw(r)))));return t}function validateSync(){const t=(0,o._)`${y}.errors`;l.assign(t,null);assignValid(o.nil);return t}function assignValid(i=(r.async?(0,o._)`await `:o.nil)){const u=m.opts.passContext?a.default.this:a.default.self;const h=!("compile"in r&&!p||r.schema===false);l.assign(v,(0,o._)`${i}${(0,c.callValidateCode)(t,y,u,h)}`,r.modifying)}function reportErrs(t){var i;l.if((0,o.not)((i=r.valid)!==null&&i!==void 0?i:v),t)}}r.funcKeywordCode=funcKeywordCode;function modifyData(t){const{gen:r,data:i,it:a}=t;r.if(a.parentData,(()=>r.assign(i,(0,o._)`${a.parentData}[${a.parentDataProperty}]`)))}function addErrs(t,r){const{gen:i}=t;i.if((0,o._)`Array.isArray(${r})`,(()=>{i.assign(a.default.vErrors,(0,o._)`${a.default.vErrors} === null ? ${r} : ${a.default.vErrors}.concat(${r})`).assign(a.default.errors,(0,o._)`${a.default.vErrors}.length`);(0,l.extendErrors)(t)}),(()=>t.error()))}function checkAsyncKeyword({schemaEnv:t},r){if(r.async&&!t.$async)throw new Error("async keyword in sync schema")}function useKeyword(t,r,i){if(i===undefined)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword",typeof i=="function"?{ref:i}:{ref:i,code:(0,o.stringify)(i)})}function validSchemaType(t,r,i=false){return!r.length||r.some((r=>r==="array"?Array.isArray(t):r==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==r||i&&typeof t=="undefined"))}r.validSchemaType=validSchemaType;function validateKeywordUsage({schema:t,opts:r,self:i,errSchemaPath:o},a,c){if(Array.isArray(a.keyword)?!a.keyword.includes(c):a.keyword!==c){throw new Error("ajv implementation error")}const l=a.dependencies;if(l===null||l===void 0?void 0:l.some((r=>!Object.prototype.hasOwnProperty.call(t,r)))){throw new Error(`parent schema must have dependencies of ${c}: ${l.join(",")}`)}if(a.validateSchema){const l=a.validateSchema(t[c]);if(!l){const t=`keyword "${c}" value is invalid at path "${o}": `+i.errorsText(a.validateSchema.errors);if(r.validateSchema==="log")i.logger.error(t);else throw new Error(t)}}}r.validateKeywordUsage=validateKeywordUsage},6553:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.extendSubschemaMode=r.extendSubschemaData=r.getSubschema=void 0;const o=i(6515);const a=i(7373);function getSubschema(t,{keyword:r,schemaProp:i,schema:c,schemaPath:l,errSchemaPath:u,topSchemaRef:h}){if(r!==undefined&&c!==undefined){throw new Error('both "keyword" and "schema" passed, only one allowed')}if(r!==undefined){const c=t.schema[r];return i===undefined?{schema:c,schemaPath:(0,o._)`${t.schemaPath}${(0,o.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${r}`}:{schema:c[i],schemaPath:(0,o._)`${t.schemaPath}${(0,o.getProperty)(r)}${(0,o.getProperty)(i)}`,errSchemaPath:`${t.errSchemaPath}/${r}/${(0,a.escapeFragment)(i)}`}}if(c!==undefined){if(l===undefined||u===undefined||h===undefined){throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"')}return{schema:c,schemaPath:l,topSchemaRef:h,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}r.getSubschema=getSubschema;function extendSubschemaData(t,r,{dataProp:i,dataPropType:c,data:l,dataTypes:u,propertyName:h}){if(l!==undefined&&i!==undefined){throw new Error('both "data" and "dataProp" passed, only one allowed')}const{gen:d}=r;if(i!==undefined){const{errorPath:l,dataPathArr:u,opts:h}=r;const p=d.let("data",(0,o._)`${r.data}${(0,o.getProperty)(i)}`,true);dataContextProps(p);t.errorPath=(0,o.str)`${l}${(0,a.getErrorPath)(i,c,h.jsPropertySyntax)}`;t.parentDataProperty=(0,o._)`${i}`;t.dataPathArr=[...u,t.parentDataProperty]}if(l!==undefined){const r=l instanceof o.Name?l:d.let("data",l,true);dataContextProps(r);if(h!==undefined)t.propertyName=h}if(u)t.dataTypes=u;function dataContextProps(i){t.data=i;t.dataLevel=r.dataLevel+1;t.dataTypes=[];r.definedProperties=new Set;t.parentData=r.data;t.dataNames=[...r.dataNames,i]}}r.extendSubschemaData=extendSubschemaData;function extendSubschemaMode(t,{jtdDiscriminator:r,jtdMetadata:i,compositeRule:o,createErrors:a,allErrors:c}){if(o!==undefined)t.compositeRule=o;if(a!==undefined)t.createErrors=a;if(c!==undefined)t.allErrors=c;t.jtdDiscriminator=r;t.jtdMetadata=i}r.extendSubschemaMode=extendSubschemaMode},8124:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=void 0;var o=i(9688);Object.defineProperty(r,"KeywordCxt",{enumerable:true,get:function(){return o.KeywordCxt}});var a=i(6515);Object.defineProperty(r,"_",{enumerable:true,get:function(){return a._}});Object.defineProperty(r,"str",{enumerable:true,get:function(){return a.str}});Object.defineProperty(r,"stringify",{enumerable:true,get:function(){return a.stringify}});Object.defineProperty(r,"nil",{enumerable:true,get:function(){return a.nil}});Object.defineProperty(r,"Name",{enumerable:true,get:function(){return a.Name}});Object.defineProperty(r,"CodeGen",{enumerable:true,get:function(){return a.CodeGen}});const c=i(7248);const l=i(5945);const u=i(7282);const h=i(4621);const d=i(6515);const p=i(2657);const m=i(8486);const g=i(7373);const y=i(3837);const v=i(5554);const defaultRegExp=(t,r)=>new RegExp(t,r);defaultRegExp.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"];const w=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]);const E={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."};const S={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};const $=200;function requiredOptions(t){var r,i,o,a,c,l,u,h,d,p,m,g,y,b,w,E,S,R,P,O,A,x,T,k,C;const I=t.strict;const N=(r=t.code)===null||r===void 0?void 0:r.optimize;const D=N===true||N===undefined?1:N||0;const L=(o=(i=t.code)===null||i===void 0?void 0:i.regExp)!==null&&o!==void 0?o:defaultRegExp;const M=(a=t.uriResolver)!==null&&a!==void 0?a:v.default;return{strictSchema:(l=(c=t.strictSchema)!==null&&c!==void 0?c:I)!==null&&l!==void 0?l:true,strictNumbers:(h=(u=t.strictNumbers)!==null&&u!==void 0?u:I)!==null&&h!==void 0?h:true,strictTypes:(p=(d=t.strictTypes)!==null&&d!==void 0?d:I)!==null&&p!==void 0?p:"log",strictTuples:(g=(m=t.strictTuples)!==null&&m!==void 0?m:I)!==null&&g!==void 0?g:"log",strictRequired:(b=(y=t.strictRequired)!==null&&y!==void 0?y:I)!==null&&b!==void 0?b:false,code:t.code?{...t.code,optimize:D,regExp:L}:{optimize:D,regExp:L},loopRequired:(w=t.loopRequired)!==null&&w!==void 0?w:$,loopEnum:(E=t.loopEnum)!==null&&E!==void 0?E:$,meta:(S=t.meta)!==null&&S!==void 0?S:true,messages:(R=t.messages)!==null&&R!==void 0?R:true,inlineRefs:(P=t.inlineRefs)!==null&&P!==void 0?P:true,schemaId:(O=t.schemaId)!==null&&O!==void 0?O:"$id",addUsedSchema:(A=t.addUsedSchema)!==null&&A!==void 0?A:true,validateSchema:(x=t.validateSchema)!==null&&x!==void 0?x:true,validateFormats:(T=t.validateFormats)!==null&&T!==void 0?T:true,unicodeRegExp:(k=t.unicodeRegExp)!==null&&k!==void 0?k:true,int32range:(C=t.int32range)!==null&&C!==void 0?C:true,uriResolver:M}}class Ajv{constructor(t={}){this.schemas={};this.refs={};this.formats={};this._compilations=new Set;this._loading={};this._cache=new Map;t=this.opts={...t,...requiredOptions(t)};const{es5:r,lines:i}=this.opts.code;this.scope=new d.ValueScope({scope:{},prefixes:w,es5:r,lines:i});this.logger=getLogger(t.logger);const o=t.validateFormats;t.validateFormats=false;this.RULES=(0,u.getRules)();checkOptions.call(this,E,t,"NOT SUPPORTED");checkOptions.call(this,S,t,"DEPRECATED","warn");this._metaOpts=getMetaSchemaOptions.call(this);if(t.formats)addInitialFormats.call(this);this._addVocabularies();this._addDefaultMetaSchema();if(t.keywords)addInitialKeywords.call(this,t.keywords);if(typeof t.meta=="object")this.addMetaSchema(t.meta);addInitialSchemas.call(this);t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:t,meta:r,schemaId:i}=this.opts;let o=y;if(i==="id"){o={...y};o.id=o.$id;delete o.$id}if(r&&t)this.addMetaSchema(o,o[i],false)}defaultMeta(){const{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:undefined}validate(t,r){let i;if(typeof t=="string"){i=this.getSchema(t);if(!i)throw new Error(`no schema with key or ref "${t}"`)}else{i=this.compile(t)}const o=i(r);if(!("$async"in i))this.errors=i.errors;return o}compile(t,r){const i=this._addSchema(t,r);return i.validate||this._compileSchemaEnv(i)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function"){throw new Error("options.loadSchema should be a function")}const{loadSchema:i}=this.opts;return runCompileAsync.call(this,t,r);async function runCompileAsync(t,r){await loadMetaSchema.call(this,t.$schema);const i=this._addSchema(t,r);return i.validate||_compileAsync.call(this,i)}async function loadMetaSchema(t){if(t&&!this.getSchema(t)){await runCompileAsync.call(this,{$ref:t},true)}}async function _compileAsync(t){try{return this._compileSchemaEnv(t)}catch(r){if(!(r instanceof l.default))throw r;checkLoaded.call(this,r);await loadMissingSchema.call(this,r.missingSchema);return _compileAsync.call(this,t)}}function checkLoaded({missingSchema:t,missingRef:r}){if(this.refs[t]){throw new Error(`AnySchema ${t} is loaded but ${r} cannot be resolved`)}}async function loadMissingSchema(t){const i=await _loadSchema.call(this,t);if(!this.refs[t])await loadMetaSchema.call(this,i.$schema);if(!this.refs[t])this.addSchema(i,t,r)}async function _loadSchema(t){const r=this._loading[t];if(r)return r;try{return await(this._loading[t]=i(t))}finally{delete this._loading[t]}}}addSchema(t,r,i,o=this.opts.validateSchema){if(Array.isArray(t)){for(const r of t)this.addSchema(r,undefined,i,o);return this}let a;if(typeof t==="object"){const{schemaId:r}=this.opts;a=t[r];if(a!==undefined&&typeof a!="string"){throw new Error(`schema ${r} must be string`)}}r=(0,p.normalizeId)(r||a);this._checkUnique(r);this.schemas[r]=this._addSchema(t,i,r,o,true);return this}addMetaSchema(t,r,i=this.opts.validateSchema){this.addSchema(t,r,true,i);return this}validateSchema(t,r){if(typeof t=="boolean")return true;let i;i=t.$schema;if(i!==undefined&&typeof i!="string"){throw new Error("$schema must be a string")}i=i||this.opts.defaultMeta||this.defaultMeta();if(!i){this.logger.warn("meta-schema not available");this.errors=null;return true}const o=this.validate(i,t);if(!o&&r){const t="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(t);else throw new Error(t)}return o}getSchema(t){let r;while(typeof(r=getSchEnv.call(this,t))=="string")t=r;if(r===undefined){const{schemaId:i}=this.opts;const o=new h.SchemaEnv({schema:{},schemaId:i});r=h.resolveSchema.call(this,o,t);if(!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp){this._removeAllSchemas(this.schemas,t);this._removeAllSchemas(this.refs,t);return this}switch(typeof t){case"undefined":this._removeAllSchemas(this.schemas);this._removeAllSchemas(this.refs);this._cache.clear();return this;case"string":{const r=getSchEnv.call(this,t);if(typeof r=="object")this._cache.delete(r.schema);delete this.schemas[t];delete this.refs[t];return this}case"object":{const r=t;this._cache.delete(r);let i=t[this.opts.schemaId];if(i){i=(0,p.normalizeId)(i);delete this.schemas[i];delete this.refs[i]}return this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(const r of t)this.addKeyword(r);return this}addKeyword(t,r){let i;if(typeof t=="string"){i=t;if(typeof r=="object"){this.logger.warn("these parameters are deprecated, see docs for addKeyword");r.keyword=i}}else if(typeof t=="object"&&r===undefined){r=t;i=r.keyword;if(Array.isArray(i)&&!i.length){throw new Error("addKeywords: keyword must be string or non-empty array")}}else{throw new Error("invalid addKeywords parameters")}checkKeyword.call(this,i,r);if(!r){(0,g.eachItem)(i,(t=>addRule.call(this,t)));return this}keywordMetaschema.call(this,r);const o={...r,type:(0,m.getJSONTypes)(r.type),schemaType:(0,m.getJSONTypes)(r.schemaType)};(0,g.eachItem)(i,o.type.length===0?t=>addRule.call(this,t,o):t=>o.type.forEach((r=>addRule.call(this,t,o,r))));return this}getKeyword(t){const r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){const{RULES:r}=this;delete r.keywords[t];delete r.all[t];for(const i of r.rules){const r=i.rules.findIndex((r=>r.keyword===t));if(r>=0)i.rules.splice(r,1)}return this}addFormat(t,r){if(typeof r=="string")r=new RegExp(r);this.formats[t]=r;return this}errorsText(t=this.errors,{separator:r=", ",dataVar:i="data"}={}){if(!t||t.length===0)return"No errors";return t.map((t=>`${i}${t.instancePath} ${t.message}`)).reduce(((t,i)=>t+r+i))}$dataMetaSchema(t,r){const i=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(const o of r){const r=o.split("/").slice(1);let a=t;for(const t of r)a=a[t];for(const t in i){const r=i[t];if(typeof r!="object")continue;const{$data:o}=r.definition;const c=a[t];if(o&&c)a[t]=schemaOrData(c)}}return t}_removeAllSchemas(t,r){for(const i in t){const o=t[i];if(!r||r.test(i)){if(typeof o=="string"){delete t[i]}else if(o&&!o.meta){this._cache.delete(o.schema);delete t[i]}}}}_addSchema(t,r,i,o=this.opts.validateSchema,a=this.opts.addUsedSchema){let c;const{schemaId:l}=this.opts;if(typeof t=="object"){c=t[l]}else{if(this.opts.jtd)throw new Error("schema must be object");else if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==undefined)return u;i=(0,p.normalizeId)(c||i);const d=p.getSchemaRefs.call(this,t,i);u=new h.SchemaEnv({schema:t,schemaId:l,meta:r,baseId:i,localRefs:d});this._cache.set(u.schema,u);if(a&&!i.startsWith("#")){if(i)this._checkUnique(i);this.refs[i]=u}if(o)this.validateSchema(t,true);return u}_checkUnique(t){if(this.schemas[t]||this.refs[t]){throw new Error(`schema with key or id "${t}" already exists`)}}_compileSchemaEnv(t){if(t.meta)this._compileMetaSchema(t);else h.compileSchema.call(this,t);if(!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){const r=this.opts;this.opts=this._metaOpts;try{h.compileSchema.call(this,t)}finally{this.opts=r}}}Ajv.ValidationError=c.default;Ajv.MissingRefError=l.default;r["default"]=Ajv;function checkOptions(t,r,i,o="error"){for(const a in t){const c=a;if(c in r)this.logger[o](`${i}: option ${a}. ${t[c]}`)}}function getSchEnv(t){t=(0,p.normalizeId)(t);return this.schemas[t]||this.refs[t]}function addInitialSchemas(){const t=this.opts.schemas;if(!t)return;if(Array.isArray(t))this.addSchema(t);else for(const r in t)this.addSchema(t[r],r)}function addInitialFormats(){for(const t in this.opts.formats){const r=this.opts.formats[t];if(r)this.addFormat(t,r)}}function addInitialKeywords(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const r in t){const i=t[r];if(!i.keyword)i.keyword=r;this.addKeyword(i)}}function getMetaSchemaOptions(){const t={...this.opts};for(const r of b)delete t[r];return t}const R={log(){},warn(){},error(){}};function getLogger(t){if(t===false)return R;if(t===undefined)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}const P=/^[a-z_$][a-z0-9_$:-]*$/i;function checkKeyword(t,r){const{RULES:i}=this;(0,g.eachItem)(t,(t=>{if(i.keywords[t])throw new Error(`Keyword ${t} is already defined`);if(!P.test(t))throw new Error(`Keyword ${t} has invalid name`)}));if(!r)return;if(r.$data&&!("code"in r||"validate"in r)){throw new Error('$data keyword must have "code" or "validate" function')}}function addRule(t,r,i){var o;const a=r===null||r===void 0?void 0:r.post;if(i&&a)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:c}=this;let l=a?c.post:c.rules.find((({type:t})=>t===i));if(!l){l={type:i,rules:[]};c.rules.push(l)}c.keywords[t]=true;if(!r)return;const u={keyword:t,definition:{...r,type:(0,m.getJSONTypes)(r.type),schemaType:(0,m.getJSONTypes)(r.schemaType)}};if(r.before)addBeforeRule.call(this,l,u,r.before);else l.rules.push(u);c.all[t]=u;(o=r.implements)===null||o===void 0?void 0:o.forEach((t=>this.addKeyword(t)))}function addBeforeRule(t,r,i){const o=t.rules.findIndex((t=>t.keyword===i));if(o>=0){t.rules.splice(o,0,r)}else{t.rules.push(r);this.logger.warn(`rule ${i} is not defined`)}}function keywordMetaschema(t){let{metaSchema:r}=t;if(r===undefined)return;if(t.$data&&this.opts.$data)r=schemaOrData(r);t.validateSchema=this.compile(r,true)}const O={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function schemaOrData(t){return{anyOf:[t,O]}}},3166:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(1678);const a=i(7216);const c=i(9547);const l=i(8226);const u=i(518);const h=i(4588);const d=i(5707);const p=i(7082);const m=["/properties"];function addMetaSchema2020(t){[o,a,c,l,u,with$data(this,h),d,with$data(this,p)].forEach((t=>this.addMetaSchema(t,undefined,false)));return this;function with$data(r,i){return t?r.$dataMetaSchema(i,m):i}}r["default"]=addMetaSchema2020},1760:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(5546);o.code='require("ajv/dist/runtime/equal").default';r["default"]=o},4475:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function ucs2length(t){const r=t.length;let i=0;let o=0;let a;while(o<r){i++;a=t.charCodeAt(o++);if(a>=55296&&a<=56319&&o<r){a=t.charCodeAt(o);if((a&64512)===56320)o++}}return i}r["default"]=ucs2length;ucs2length.code='require("ajv/dist/runtime/ucs2length").default'},5554:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(2387);o.code='require("ajv/dist/runtime/uri").default';r["default"]=o},7248:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class ValidationError extends Error{constructor(t){super("validation failed");this.errors=t;this.ajv=this.validation=true}}r["default"]=ValidationError},611:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.validateAdditionalItems=void 0;const o=i(6515);const a=i(7373);const c={message:({params:{len:t}})=>(0,o.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,o._)`{limit: ${t}}`};const l={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:c,code(t){const{parentSchema:r,it:i}=t;const{items:o}=r;if(!Array.isArray(o)){(0,a.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}validateAdditionalItems(t,o)}};function validateAdditionalItems(t,r){const{gen:i,schema:c,data:l,keyword:u,it:h}=t;h.items=true;const d=i.const("len",(0,o._)`${l}.length`);if(c===false){t.setParams({len:r.length});t.pass((0,o._)`${d} <= ${r.length}`)}else if(typeof c=="object"&&!(0,a.alwaysValidSchema)(h,c)){const a=i.var("valid",(0,o._)`${d} <= ${r.length}`);i.if((0,o.not)(a),(()=>validateItems(a)));t.ok(a)}function validateItems(c){i.forRange("i",r.length,d,(r=>{t.subschema({keyword:u,dataProp:r,dataPropType:a.Type.Num},c);if(!h.allErrors)i.if((0,o.not)(c),(()=>i.break()))}))}}r.validateAdditionalItems=validateAdditionalItems;r["default"]=l},8846:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(3955);const a=i(6515);const c=i(3877);const l=i(7373);const u={message:"must NOT have additional properties",params:({params:t})=>(0,a._)`{additionalProperty: ${t.additionalProperty}}`};const h={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:true,trackErrors:true,error:u,code(t){const{gen:r,schema:i,parentSchema:u,data:h,errsCount:d,it:p}=t;if(!d)throw new Error("ajv implementation error");const{allErrors:m,opts:g}=p;p.props=true;if(g.removeAdditional!=="all"&&(0,l.alwaysValidSchema)(p,i))return;const y=(0,o.allSchemaProperties)(u.properties);const v=(0,o.allSchemaProperties)(u.patternProperties);checkAdditionalProperties();t.ok((0,a._)`${d} === ${c.default.errors}`);function checkAdditionalProperties(){r.forIn("key",h,(t=>{if(!y.length&&!v.length)additionalPropertyCode(t);else r.if(isAdditional(t),(()=>additionalPropertyCode(t)))}))}function isAdditional(i){let c;if(y.length>8){const t=(0,l.schemaRefOrVal)(p,u.properties,"properties");c=(0,o.isOwnProperty)(r,t,i)}else if(y.length){c=(0,a.or)(...y.map((t=>(0,a._)`${i} === ${t}`)))}else{c=a.nil}if(v.length){c=(0,a.or)(c,...v.map((r=>(0,a._)`${(0,o.usePattern)(t,r)}.test(${i})`)))}return(0,a.not)(c)}function deleteAdditional(t){r.code((0,a._)`delete ${h}[${t}]`)}function additionalPropertyCode(o){if(g.removeAdditional==="all"||g.removeAdditional&&i===false){deleteAdditional(o);return}if(i===false){t.setParams({additionalProperty:o});t.error();if(!m)r.break();return}if(typeof i=="object"&&!(0,l.alwaysValidSchema)(p,i)){const i=r.name("valid");if(g.removeAdditional==="failing"){applyAdditionalSchema(o,i,false);r.if((0,a.not)(i),(()=>{t.reset();deleteAdditional(o)}))}else{applyAdditionalSchema(o,i);if(!m)r.if((0,a.not)(i),(()=>r.break()))}}}function applyAdditionalSchema(r,i,o){const a={keyword:"additionalProperties",dataProp:r,dataPropType:l.Type.Str};if(o===false){Object.assign(a,{compositeRule:true,createErrors:false,allErrors:false})}t.subschema(a,i)}}};r["default"]=h},6170:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(7373);const a={keyword:"allOf",schemaType:"array",code(t){const{gen:r,schema:i,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");const c=r.name("valid");i.forEach(((r,i)=>{if((0,o.alwaysValidSchema)(a,r))return;const l=t.subschema({keyword:"allOf",schemaProp:i},c);t.ok(c);t.mergeEvaluated(l)}))}};r["default"]=a},2307:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(3955);const a={keyword:"anyOf",schemaType:"array",trackErrors:true,code:o.validateUnion,error:{message:"must match a schema in anyOf"}};r["default"]=a},4795:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a=i(7373);const c={message:({params:{min:t,max:r}})=>r===undefined?(0,o.str)`must contain at least ${t} valid item(s)`:(0,o.str)`must contain at least ${t} and no more than ${r} valid item(s)`,params:({params:{min:t,max:r}})=>r===undefined?(0,o._)`{minContains: ${t}}`:(0,o._)`{minContains: ${t}, maxContains: ${r}}`};const l={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:true,error:c,code(t){const{gen:r,schema:i,parentSchema:c,data:l,it:u}=t;let h;let d;const{minContains:p,maxContains:m}=c;if(u.opts.next){h=p===undefined?1:p;d=m}else{h=1}const g=r.const("len",(0,o._)`${l}.length`);t.setParams({min:h,max:d});if(d===undefined&&h===0){(0,a.checkStrictMode)(u,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(d!==undefined&&h>d){(0,a.checkStrictMode)(u,`"minContains" > "maxContains" is always invalid`);t.fail();return}if((0,a.alwaysValidSchema)(u,i)){let r=(0,o._)`${g} >= ${h}`;if(d!==undefined)r=(0,o._)`${r} && ${g} <= ${d}`;t.pass(r);return}u.items=true;const y=r.name("valid");if(d===undefined&&h===1){validateItems(y,(()=>r.if(y,(()=>r.break()))))}else if(h===0){r.let(y,true);if(d!==undefined)r.if((0,o._)`${l}.length > 0`,validateItemsWithCount)}else{r.let(y,false);validateItemsWithCount()}t.result(y,(()=>t.reset()));function validateItemsWithCount(){const t=r.name("_valid");const i=r.let("count",0);validateItems(t,(()=>r.if(t,(()=>checkLimits(i)))))}function validateItems(i,o){r.forRange("i",0,g,(r=>{t.subschema({keyword:"contains",dataProp:r,dataPropType:a.Type.Num,compositeRule:true},i);o()}))}function checkLimits(t){r.code((0,o._)`${t}++`);if(d===undefined){r.if((0,o._)`${t} >= ${h}`,(()=>r.assign(y,true).break()))}else{r.if((0,o._)`${t} > ${d}`,(()=>r.assign(y,false).break()));if(h===1)r.assign(y,true);else r.if((0,o._)`${t} >= ${h}`,(()=>r.assign(y,true)))}}}};r["default"]=l},8803:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.validateSchemaDeps=r.validatePropertyDeps=r.error=void 0;const o=i(6515);const a=i(7373);const c=i(3955);r.error={message:({params:{property:t,depsCount:r,deps:i}})=>{const a=r===1?"property":"properties";return(0,o.str)`must have ${a} ${i} when property ${t} is present`},params:({params:{property:t,depsCount:r,deps:i,missingProperty:a}})=>(0,o._)`{property: ${t},
|
|
70
|
+
missingProperty: ${a},
|
|
71
|
+
depsCount: ${r},
|
|
72
|
+
deps: ${i}}`};const l={keyword:"dependencies",type:"object",schemaType:"object",error:r.error,code(t){const[r,i]=splitDependencies(t);validatePropertyDeps(t,r);validateSchemaDeps(t,i)}};function splitDependencies({schema:t}){const r={};const i={};for(const o in t){if(o==="__proto__")continue;const a=Array.isArray(t[o])?r:i;a[o]=t[o]}return[r,i]}function validatePropertyDeps(t,r=t.schema){const{gen:i,data:a,it:l}=t;if(Object.keys(r).length===0)return;const u=i.let("missing");for(const h in r){const d=r[h];if(d.length===0)continue;const p=(0,c.propertyInData)(i,a,h,l.opts.ownProperties);t.setParams({property:h,depsCount:d.length,deps:d.join(", ")});if(l.allErrors){i.if(p,(()=>{for(const r of d){(0,c.checkReportMissingProp)(t,r)}}))}else{i.if((0,o._)`${p} && (${(0,c.checkMissingProp)(t,d,u)})`);(0,c.reportMissingProp)(t,u);i.else()}}}r.validatePropertyDeps=validatePropertyDeps;function validateSchemaDeps(t,r=t.schema){const{gen:i,data:o,keyword:l,it:u}=t;const h=i.name("valid");for(const d in r){if((0,a.alwaysValidSchema)(u,r[d]))continue;i.if((0,c.propertyInData)(i,o,d,u.opts.ownProperties),(()=>{const r=t.subschema({keyword:l,schemaProp:d},h);t.mergeValidEvaluated(r,h)}),(()=>i.var(h,true)));t.ok(h)}}r.validateSchemaDeps=validateSchemaDeps;r["default"]=l},539:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(8803);const a={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t=>(0,o.validateSchemaDeps)(t)};r["default"]=a},4373:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a=i(7373);const c={message:({params:t})=>(0,o.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,o._)`{failingKeyword: ${t.ifClause}}`};const l={keyword:"if",schemaType:["object","boolean"],trackErrors:true,error:c,code(t){const{gen:r,parentSchema:i,it:c}=t;if(i.then===undefined&&i.else===undefined){(0,a.checkStrictMode)(c,'"if" without "then" and "else" is ignored')}const l=hasSchema(c,"then");const u=hasSchema(c,"else");if(!l&&!u)return;const h=r.let("valid",true);const d=r.name("_valid");validateIf();t.reset();if(l&&u){const i=r.let("ifClause");t.setParams({ifClause:i});r.if(d,validateClause("then",i),validateClause("else",i))}else if(l){r.if(d,validateClause("then"))}else{r.if((0,o.not)(d),validateClause("else"))}t.pass(h,(()=>t.error(true)));function validateIf(){const r=t.subschema({keyword:"if",compositeRule:true,createErrors:false,allErrors:false},d);t.mergeEvaluated(r)}function validateClause(i,a){return()=>{const c=t.subschema({keyword:i},d);r.assign(h,d);t.mergeValidEvaluated(c,h);if(a)r.assign(a,(0,o._)`${i}`);else t.setParams({ifClause:i})}}}};function hasSchema(t,r){const i=t.schema[r];return i!==undefined&&!(0,a.alwaysValidSchema)(t,i)}r["default"]=l},2756:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(611);const a=i(5836);const c=i(400);const l=i(3184);const u=i(4795);const h=i(8803);const d=i(6763);const p=i(8846);const m=i(2503);const g=i(7539);const y=i(1665);const v=i(2307);const b=i(7545);const w=i(6170);const E=i(4373);const S=i(6220);function getApplicator(t=false){const r=[y.default,v.default,b.default,w.default,E.default,S.default,d.default,p.default,h.default,m.default,g.default];if(t)r.push(a.default,l.default);else r.push(o.default,c.default);r.push(u.default);return r}r["default"]=getApplicator},400:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.validateTuple=void 0;const o=i(6515);const a=i(7373);const c=i(3955);const l={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){const{schema:r,it:i}=t;if(Array.isArray(r))return validateTuple(t,"additionalItems",r);i.items=true;if((0,a.alwaysValidSchema)(i,r))return;t.ok((0,c.validateArray)(t))}};function validateTuple(t,r,i=t.schema){const{gen:c,parentSchema:l,data:u,keyword:h,it:d}=t;checkStrictTuple(l);if(d.opts.unevaluated&&i.length&&d.items!==true){d.items=a.mergeEvaluated.items(c,i.length,d.items)}const p=c.name("valid");const m=c.const("len",(0,o._)`${u}.length`);i.forEach(((r,i)=>{if((0,a.alwaysValidSchema)(d,r))return;c.if((0,o._)`${m} > ${i}`,(()=>t.subschema({keyword:h,schemaProp:i,dataProp:i},p)));t.ok(p)}));function checkStrictTuple(t){const{opts:o,errSchemaPath:c}=d;const l=i.length;const u=l===t.minItems&&(l===t.maxItems||t[r]===false);if(o.strictTuples&&!u){const t=`"${h}" is ${l}-tuple, but minItems or maxItems/${r} are not specified or different at path "${c}"`;(0,a.checkStrictMode)(d,t,o.strictTuples)}}}r.validateTuple=validateTuple;r["default"]=l},3184:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a=i(7373);const c=i(3955);const l=i(611);const u={message:({params:{len:t}})=>(0,o.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,o._)`{limit: ${t}}`};const h={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:u,code(t){const{schema:r,parentSchema:i,it:o}=t;const{prefixItems:u}=i;o.items=true;if((0,a.alwaysValidSchema)(o,r))return;if(u)(0,l.validateAdditionalItems)(t,u);else t.ok((0,c.validateArray)(t))}};r["default"]=h},1665:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(7373);const a={keyword:"not",schemaType:["object","boolean"],trackErrors:true,code(t){const{gen:r,schema:i,it:a}=t;if((0,o.alwaysValidSchema)(a,i)){t.fail();return}const c=r.name("valid");t.subschema({keyword:"not",compositeRule:true,createErrors:false,allErrors:false},c);t.failResult(c,(()=>t.reset()),(()=>t.error()))},error:{message:"must NOT be valid"}};r["default"]=a},7545:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a=i(7373);const c={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,o._)`{passingSchemas: ${t.passing}}`};const l={keyword:"oneOf",schemaType:"array",trackErrors:true,error:c,code(t){const{gen:r,schema:i,parentSchema:c,it:l}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(l.opts.discriminator&&c.discriminator)return;const u=i;const h=r.let("valid",false);const d=r.let("passing",null);const p=r.name("_valid");t.setParams({passing:d});r.block(validateOneOf);t.result(h,(()=>t.reset()),(()=>t.error(true)));function validateOneOf(){u.forEach(((i,c)=>{let u;if((0,a.alwaysValidSchema)(l,i)){r.var(p,true)}else{u=t.subschema({keyword:"oneOf",schemaProp:c,compositeRule:true},p)}if(c>0){r.if((0,o._)`${p} && ${h}`).assign(h,false).assign(d,(0,o._)`[${d}, ${c}]`).else()}r.if(p,(()=>{r.assign(h,true);r.assign(d,c);if(u)t.mergeEvaluated(u,o.Name)}))}))}}};r["default"]=l},7539:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(3955);const a=i(6515);const c=i(7373);const l=i(7373);const u={keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:r,schema:i,data:u,parentSchema:h,it:d}=t;const{opts:p}=d;const m=(0,o.allSchemaProperties)(i);const g=m.filter((t=>(0,c.alwaysValidSchema)(d,i[t])));if(m.length===0||g.length===m.length&&(!d.opts.unevaluated||d.props===true)){return}const y=p.strictSchema&&!p.allowMatchingProperties&&h.properties;const v=r.name("valid");if(d.props!==true&&!(d.props instanceof a.Name)){d.props=(0,l.evaluatedPropsToName)(r,d.props)}const{props:b}=d;validatePatternProperties();function validatePatternProperties(){for(const t of m){if(y)checkMatchingProperties(t);if(d.allErrors){validateProperties(t)}else{r.var(v,true);validateProperties(t);r.if(v)}}}function checkMatchingProperties(t){for(const r in y){if(new RegExp(t).test(r)){(0,c.checkStrictMode)(d,`property ${r} matches pattern ${t} (use allowMatchingProperties)`)}}}function validateProperties(i){r.forIn("key",u,(c=>{r.if((0,a._)`${(0,o.usePattern)(t,i)}.test(${c})`,(()=>{const o=g.includes(i);if(!o){t.subschema({keyword:"patternProperties",schemaProp:i,dataProp:c,dataPropType:l.Type.Str},v)}if(d.opts.unevaluated&&b!==true){r.assign((0,a._)`${b}[${c}]`,true)}else if(!o&&!d.allErrors){r.if((0,a.not)(v),(()=>r.break()))}}))}))}}};r["default"]=u},5836:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(400);const a={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,o.validateTuple)(t,"items")};r["default"]=a},2503:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(9688);const a=i(3955);const c=i(7373);const l=i(8846);const u={keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:r,schema:i,parentSchema:u,data:h,it:d}=t;if(d.opts.removeAdditional==="all"&&u.additionalProperties===undefined){l.default.code(new o.KeywordCxt(d,l.default,"additionalProperties"))}const p=(0,a.allSchemaProperties)(i);for(const t of p){d.definedProperties.add(t)}if(d.opts.unevaluated&&p.length&&d.props!==true){d.props=c.mergeEvaluated.props(r,(0,c.toHash)(p),d.props)}const m=p.filter((t=>!(0,c.alwaysValidSchema)(d,i[t])));if(m.length===0)return;const g=r.name("valid");for(const i of m){if(hasDefault(i)){applyPropertySchema(i)}else{r.if((0,a.propertyInData)(r,h,i,d.opts.ownProperties));applyPropertySchema(i);if(!d.allErrors)r.else().var(g,true);r.endIf()}t.it.definedProperties.add(i);t.ok(g)}function hasDefault(t){return d.opts.useDefaults&&!d.compositeRule&&i[t].default!==undefined}function applyPropertySchema(r){t.subschema({keyword:"properties",schemaProp:r,dataProp:r},g)}}};r["default"]=u},6763:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a=i(7373);const c={message:"property name must be valid",params:({params:t})=>(0,o._)`{propertyName: ${t.propertyName}}`};const l={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:c,code(t){const{gen:r,schema:i,data:c,it:l}=t;if((0,a.alwaysValidSchema)(l,i))return;const u=r.name("valid");r.forIn("key",c,(i=>{t.setParams({propertyName:i});t.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:true},u);r.if((0,o.not)(u),(()=>{t.error(true);if(!l.allErrors)r.break()}))}));t.ok(u)}};r["default"]=l},6220:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(7373);const a={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:i}){if(r.if===undefined)(0,o.checkStrictMode)(i,`"${t}" without "if" is ignored`)}};r["default"]=a},3955:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.validateUnion=r.validateArray=r.usePattern=r.callValidateCode=r.schemaProperties=r.allSchemaProperties=r.noPropertyInData=r.propertyInData=r.isOwnProperty=r.hasPropFunc=r.reportMissingProp=r.checkMissingProp=r.checkReportMissingProp=void 0;const o=i(6515);const a=i(7373);const c=i(3877);const l=i(7373);function checkReportMissingProp(t,r){const{gen:i,data:a,it:c}=t;i.if(noPropertyInData(i,a,r,c.opts.ownProperties),(()=>{t.setParams({missingProperty:(0,o._)`${r}`},true);t.error()}))}r.checkReportMissingProp=checkReportMissingProp;function checkMissingProp({gen:t,data:r,it:{opts:i}},a,c){return(0,o.or)(...a.map((a=>(0,o.and)(noPropertyInData(t,r,a,i.ownProperties),(0,o._)`${c} = ${a}`))))}r.checkMissingProp=checkMissingProp;function reportMissingProp(t,r){t.setParams({missingProperty:r},true);t.error()}r.reportMissingProp=reportMissingProp;function hasPropFunc(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,o._)`Object.prototype.hasOwnProperty`})}r.hasPropFunc=hasPropFunc;function isOwnProperty(t,r,i){return(0,o._)`${hasPropFunc(t)}.call(${r}, ${i})`}r.isOwnProperty=isOwnProperty;function propertyInData(t,r,i,a){const c=(0,o._)`${r}${(0,o.getProperty)(i)} !== undefined`;return a?(0,o._)`${c} && ${isOwnProperty(t,r,i)}`:c}r.propertyInData=propertyInData;function noPropertyInData(t,r,i,a){const c=(0,o._)`${r}${(0,o.getProperty)(i)} === undefined`;return a?(0,o.or)(c,(0,o.not)(isOwnProperty(t,r,i))):c}r.noPropertyInData=noPropertyInData;function allSchemaProperties(t){return t?Object.keys(t).filter((t=>t!=="__proto__")):[]}r.allSchemaProperties=allSchemaProperties;function schemaProperties(t,r){return allSchemaProperties(r).filter((i=>!(0,a.alwaysValidSchema)(t,r[i])))}r.schemaProperties=schemaProperties;function callValidateCode({schemaCode:t,data:r,it:{gen:i,topSchemaRef:a,schemaPath:l,errorPath:u},it:h},d,p,m){const g=m?(0,o._)`${t}, ${r}, ${a}${l}`:r;const y=[[c.default.instancePath,(0,o.strConcat)(c.default.instancePath,u)],[c.default.parentData,h.parentData],[c.default.parentDataProperty,h.parentDataProperty],[c.default.rootData,c.default.rootData]];if(h.opts.dynamicRef)y.push([c.default.dynamicAnchors,c.default.dynamicAnchors]);const v=(0,o._)`${g}, ${i.object(...y)}`;return p!==o.nil?(0,o._)`${d}.call(${p}, ${v})`:(0,o._)`${d}(${v})`}r.callValidateCode=callValidateCode;const u=(0,o._)`new RegExp`;function usePattern({gen:t,it:{opts:r}},i){const a=r.unicodeRegExp?"u":"";const{regExp:c}=r.code;const h=c(i,a);return t.scopeValue("pattern",{key:h.toString(),ref:h,code:(0,o._)`${c.code==="new RegExp"?u:(0,l.useFunc)(t,c)}(${i}, ${a})`})}r.usePattern=usePattern;function validateArray(t){const{gen:r,data:i,keyword:c,it:l}=t;const u=r.name("valid");if(l.allErrors){const t=r.let("valid",true);validateItems((()=>r.assign(t,false)));return t}r.var(u,true);validateItems((()=>r.break()));return u;function validateItems(l){const h=r.const("len",(0,o._)`${i}.length`);r.forRange("i",0,h,(i=>{t.subschema({keyword:c,dataProp:i,dataPropType:a.Type.Num},u);r.if((0,o.not)(u),l)}))}}r.validateArray=validateArray;function validateUnion(t){const{gen:r,schema:i,keyword:c,it:l}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");const u=i.some((t=>(0,a.alwaysValidSchema)(l,t)));if(u&&!l.opts.unevaluated)return;const h=r.let("valid",false);const d=r.name("_valid");r.block((()=>i.forEach(((i,a)=>{const l=t.subschema({keyword:c,schemaProp:a,compositeRule:true},d);r.assign(h,(0,o._)`${h} || ${d}`);const u=t.mergeValidEvaluated(l,d);if(!u)r.if((0,o.not)(h))}))));t.result(h,(()=>t.reset()),(()=>t.error(true)))}r.validateUnion=validateUnion},8129:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const i={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};r["default"]=i},6594:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(8129);const a=i(1259);const c=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",o.default,a.default];r["default"]=c},1259:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.callRef=r.getValidate=void 0;const o=i(5945);const a=i(3955);const c=i(6515);const l=i(3877);const u=i(4621);const h=i(7373);const d={keyword:"$ref",schemaType:"string",code(t){const{gen:r,schema:i,it:a}=t;const{baseId:l,schemaEnv:h,validateName:d,opts:p,self:m}=a;const{root:g}=h;if((i==="#"||i==="#/")&&l===g.baseId)return callRootRef();const y=u.resolveRef.call(m,g,l,i);if(y===undefined)throw new o.default(a.opts.uriResolver,l,i);if(y instanceof u.SchemaEnv)return callValidate(y);return inlineRefSchema(y);function callRootRef(){if(h===g)return callRef(t,d,h,h.$async);const i=r.scopeValue("root",{ref:g});return callRef(t,(0,c._)`${i}.validate`,g,g.$async)}function callValidate(r){const i=getValidate(t,r);callRef(t,i,r,r.$async)}function inlineRefSchema(o){const a=r.scopeValue("schema",p.code.source===true?{ref:o,code:(0,c.stringify)(o)}:{ref:o});const l=r.name("valid");const u=t.subschema({schema:o,dataTypes:[],schemaPath:c.nil,topSchemaRef:a,errSchemaPath:i},l);t.mergeEvaluated(u);t.ok(l)}}};function getValidate(t,r){const{gen:i}=t;return r.validate?i.scopeValue("validate",{ref:r.validate}):(0,c._)`${i.scopeValue("wrapper",{ref:r})}.validate`}r.getValidate=getValidate;function callRef(t,r,i,o){const{gen:u,it:d}=t;const{allErrors:p,schemaEnv:m,opts:g}=d;const y=g.passContext?l.default.this:c.nil;if(o)callAsyncRef();else callSyncRef();function callAsyncRef(){if(!m.$async)throw new Error("async schema referenced by sync schema");const i=u.let("valid");u.try((()=>{u.code((0,c._)`await ${(0,a.callValidateCode)(t,r,y)}`);addEvaluatedFrom(r);if(!p)u.assign(i,true)}),(t=>{u.if((0,c._)`!(${t} instanceof ${d.ValidationError})`,(()=>u.throw(t)));addErrorsFrom(t);if(!p)u.assign(i,false)}));t.ok(i)}function callSyncRef(){t.result((0,a.callValidateCode)(t,r,y),(()=>addEvaluatedFrom(r)),(()=>addErrorsFrom(r)))}function addErrorsFrom(t){const r=(0,c._)`${t}.errors`;u.assign(l.default.vErrors,(0,c._)`${l.default.vErrors} === null ? ${r} : ${l.default.vErrors}.concat(${r})`);u.assign(l.default.errors,(0,c._)`${l.default.vErrors}.length`)}function addEvaluatedFrom(t){var r;if(!d.opts.unevaluated)return;const o=(r=i===null||i===void 0?void 0:i.validate)===null||r===void 0?void 0:r.evaluated;if(d.props!==true){if(o&&!o.dynamicProps){if(o.props!==undefined){d.props=h.mergeEvaluated.props(u,o.props,d.props)}}else{const r=u.var("props",(0,c._)`${t}.evaluated.props`);d.props=h.mergeEvaluated.props(u,r,d.props,c.Name)}}if(d.items!==true){if(o&&!o.dynamicItems){if(o.items!==undefined){d.items=h.mergeEvaluated.items(u,o.items,d.items)}}else{const r=u.var("items",(0,c._)`${t}.evaluated.items`);d.items=h.mergeEvaluated.items(u,r,d.items,c.Name)}}}}r.callRef=callRef;r["default"]=d},1079:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a=i(3710);const c=i(4621);const l=i(5945);const u=i(7373);const h={message:({params:{discrError:t,tagName:r}})=>t===a.DiscrError.Tag?`tag "${r}" must be string`:`value of tag "${r}" must be in oneOf`,params:({params:{discrError:t,tag:r,tagName:i}})=>(0,o._)`{error: ${t}, tag: ${i}, tagValue: ${r}}`};const d={keyword:"discriminator",type:"object",schemaType:"object",error:h,code(t){const{gen:r,data:i,schema:h,parentSchema:d,it:p}=t;const{oneOf:m}=d;if(!p.opts.discriminator){throw new Error("discriminator: requires discriminator option")}const g=h.propertyName;if(typeof g!="string")throw new Error("discriminator: requires propertyName");if(h.mapping)throw new Error("discriminator: mapping is not supported");if(!m)throw new Error("discriminator: requires oneOf keyword");const y=r.let("valid",false);const v=r.const("tag",(0,o._)`${i}${(0,o.getProperty)(g)}`);r.if((0,o._)`typeof ${v} == "string"`,(()=>validateMapping()),(()=>t.error(false,{discrError:a.DiscrError.Tag,tag:v,tagName:g})));t.ok(y);function validateMapping(){const i=getMapping();r.if(false);for(const t in i){r.elseIf((0,o._)`${v} === ${t}`);r.assign(y,applyTagSchema(i[t]))}r.else();t.error(false,{discrError:a.DiscrError.Mapping,tag:v,tagName:g});r.endIf()}function applyTagSchema(i){const a=r.name("valid");const c=t.subschema({keyword:"oneOf",schemaProp:i},a);t.mergeEvaluated(c,o.Name);return a}function getMapping(){var t;const r={};const i=hasRequired(d);let o=true;for(let r=0;r<m.length;r++){let a=m[r];if((a===null||a===void 0?void 0:a.$ref)&&!(0,u.schemaHasRulesButRef)(a,p.self.RULES)){const t=a.$ref;a=c.resolveRef.call(p.self,p.schemaEnv.root,p.baseId,t);if(a instanceof c.SchemaEnv)a=a.schema;if(a===undefined)throw new l.default(p.opts.uriResolver,p.baseId,t)}const h=(t=a===null||a===void 0?void 0:a.properties)===null||t===void 0?void 0:t[g];if(typeof h!="object"){throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`)}o=o&&(i||hasRequired(a));addMappings(h,r)}if(!o)throw new Error(`discriminator: "${g}" must be required`);return r;function hasRequired({required:t}){return Array.isArray(t)&&t.includes(g)}function addMappings(t,r){if(t.const){addMapping(t.const,r)}else if(t.enum){for(const i of t.enum){addMapping(i,r)}}else{throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`)}}function addMapping(t,i){if(typeof t!="string"||t in r){throw new Error(`discriminator: "${g}" values must be unique strings`)}r[t]=i}}}};r["default"]=d},3710:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.DiscrError=void 0;var i;(function(t){t["Tag"]="tag";t["Mapping"]="mapping"})(i||(r.DiscrError=i={}))},5219:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6594);const a=i(7862);const c=i(2756);const l=i(6738);const u=i(7055);const h=i(5339);const d=i(7102);const p=i(6343);const m=[l.default,o.default,a.default,(0,c.default)(true),d.default,p.metadataVocabulary,p.contentVocabulary,u.default,h.default];r["default"]=m},9242:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6594);const a=i(7862);const c=i(2756);const l=i(7102);const u=i(6343);const h=[o.default,a.default,(0,c.default)(),l.default,u.metadataVocabulary,u.contentVocabulary];r["default"]=h},290:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.dynamicAnchor=void 0;const o=i(6515);const a=i(3877);const c=i(4621);const l=i(1259);const u={keyword:"$dynamicAnchor",schemaType:"string",code:t=>dynamicAnchor(t,t.schema)};function dynamicAnchor(t,r){const{gen:i,it:c}=t;c.schemaEnv.root.dynamicAnchors[r]=true;const l=(0,o._)`${a.default.dynamicAnchors}${(0,o.getProperty)(r)}`;const u=c.errSchemaPath==="#"?c.validateName:_getValidate(t);i.if((0,o._)`!${l}`,(()=>i.assign(l,u)))}r.dynamicAnchor=dynamicAnchor;function _getValidate(t){const{schemaEnv:r,schema:i,self:o}=t.it;const{root:a,baseId:u,localRefs:h,meta:d}=r.root;const{schemaId:p}=o.opts;const m=new c.SchemaEnv({schema:i,schemaId:p,root:a,baseId:u,localRefs:h,meta:d});c.compileSchema.call(o,m);return(0,l.getValidate)(t,m)}r["default"]=u},3422:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.dynamicRef=void 0;const o=i(6515);const a=i(3877);const c=i(1259);const l={keyword:"$dynamicRef",schemaType:"string",code:t=>dynamicRef(t,t.schema)};function dynamicRef(t,r){const{gen:i,keyword:l,it:u}=t;if(r[0]!=="#")throw new Error(`"${l}" only supports hash fragment reference`);const h=r.slice(1);if(u.allErrors){_dynamicRef()}else{const r=i.let("valid",false);_dynamicRef(r);t.ok(r)}function _dynamicRef(t){if(u.schemaEnv.root.dynamicAnchors[h]){const r=i.let("_v",(0,o._)`${a.default.dynamicAnchors}${(0,o.getProperty)(h)}`);i.if(r,_callRef(r,t),_callRef(u.validateName,t))}else{_callRef(u.validateName,t)()}}function _callRef(r,o){return o?()=>i.block((()=>{(0,c.callRef)(t,r);i.let(o,true)})):()=>(0,c.callRef)(t,r)}}r.dynamicRef=dynamicRef;r["default"]=l},6738:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(290);const a=i(3422);const c=i(9475);const l=i(4709);const u=[o.default,a.default,c.default,l.default];r["default"]=u},9475:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(290);const a=i(7373);const c={keyword:"$recursiveAnchor",schemaType:"boolean",code(t){if(t.schema)(0,o.dynamicAnchor)(t,"");else(0,a.checkStrictMode)(t.it,"$recursiveAnchor: false is ignored")}};r["default"]=c},4709:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(3422);const a={keyword:"$recursiveRef",schemaType:"string",code:t=>(0,o.dynamicRef)(t,t.schema)};r["default"]=a},9711:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a={message:({schemaCode:t})=>(0,o.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,o._)`{format: ${t}}`};const c={keyword:"format",type:["number","string"],schemaType:"string",$data:true,error:a,code(t,r){const{gen:i,data:a,$data:c,schema:l,schemaCode:u,it:h}=t;const{opts:d,errSchemaPath:p,schemaEnv:m,self:g}=h;if(!d.validateFormats)return;if(c)validate$DataFormat();else validateFormat();function validate$DataFormat(){const c=i.scopeValue("formats",{ref:g.formats,code:d.code.formats});const l=i.const("fDef",(0,o._)`${c}[${u}]`);const h=i.let("fType");const p=i.let("format");i.if((0,o._)`typeof ${l} == "object" && !(${l} instanceof RegExp)`,(()=>i.assign(h,(0,o._)`${l}.type || "string"`).assign(p,(0,o._)`${l}.validate`)),(()=>i.assign(h,(0,o._)`"string"`).assign(p,l)));t.fail$data((0,o.or)(unknownFmt(),invalidFmt()));function unknownFmt(){if(d.strictSchema===false)return o.nil;return(0,o._)`${u} && !${p}`}function invalidFmt(){const t=m.$async?(0,o._)`(${l}.async ? await ${p}(${a}) : ${p}(${a}))`:(0,o._)`${p}(${a})`;const i=(0,o._)`(typeof ${p} == "function" ? ${t} : ${p}.test(${a}))`;return(0,o._)`${p} && ${p} !== true && ${h} === ${r} && !${i}`}}function validateFormat(){const c=g.formats[l];if(!c){unknownFormat();return}if(c===true)return;const[u,h,y]=getFormat(c);if(u===r)t.pass(validCondition());function unknownFormat(){if(d.strictSchema===false){g.logger.warn(unknownMsg());return}throw new Error(unknownMsg());function unknownMsg(){return`unknown format "${l}" ignored in schema at path "${p}"`}}function getFormat(t){const r=t instanceof RegExp?(0,o.regexpCode)(t):d.code.formats?(0,o._)`${d.code.formats}${(0,o.getProperty)(l)}`:undefined;const a=i.scopeValue("formats",{key:l,ref:t,code:r});if(typeof t=="object"&&!(t instanceof RegExp)){return[t.type||"string",t.validate,(0,o._)`${a}.validate`]}return["string",t,a]}function validCondition(){if(typeof c=="object"&&!(c instanceof RegExp)&&c.async){if(!m.$async)throw new Error("async format in sync schema");return(0,o._)`await ${y}(${a})`}return typeof h=="function"?(0,o._)`${y}(${a})`:(0,o._)`${y}.test(${a})`}}}};r["default"]=c},7102:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(9711);const a=[o.default];r["default"]=a},6343:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.contentVocabulary=r.metadataVocabulary=void 0;r.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];r.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},7055:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(5020);const a=i(539);const c=i(8660);const l=[o.default,a.default,c.default];r["default"]=l},5339:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(1038);const a=i(8003);const c=[o.default,a.default];r["default"]=c},8003:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a=i(7373);const c={message:({params:{len:t}})=>(0,o.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,o._)`{limit: ${t}}`};const l={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:c,code(t){const{gen:r,schema:i,data:c,it:l}=t;const u=l.items||0;if(u===true)return;const h=r.const("len",(0,o._)`${c}.length`);if(i===false){t.setParams({len:u});t.fail((0,o._)`${h} > ${u}`)}else if(typeof i=="object"&&!(0,a.alwaysValidSchema)(l,i)){const i=r.var("valid",(0,o._)`${h} <= ${u}`);r.if((0,o.not)(i),(()=>validateItems(i,u)));t.ok(i)}l.items=true;function validateItems(i,c){r.forRange("i",c,h,(c=>{t.subschema({keyword:"unevaluatedItems",dataProp:c,dataPropType:a.Type.Num},i);if(!l.allErrors)r.if((0,o.not)(i),(()=>r.break()))}))}}};r["default"]=l},1038:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a=i(7373);const c=i(3877);const l={message:"must NOT have unevaluated properties",params:({params:t})=>(0,o._)`{unevaluatedProperty: ${t.unevaluatedProperty}}`};const u={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:true,error:l,code(t){const{gen:r,schema:i,data:l,errsCount:u,it:h}=t;if(!u)throw new Error("ajv implementation error");const{allErrors:d,props:p}=h;if(p instanceof o.Name){r.if((0,o._)`${p} !== true`,(()=>r.forIn("key",l,(t=>r.if(unevaluatedDynamic(p,t),(()=>unevaluatedPropCode(t)))))))}else if(p!==true){r.forIn("key",l,(t=>p===undefined?unevaluatedPropCode(t):r.if(unevaluatedStatic(p,t),(()=>unevaluatedPropCode(t)))))}h.props=true;t.ok((0,o._)`${u} === ${c.default.errors}`);function unevaluatedPropCode(c){if(i===false){t.setParams({unevaluatedProperty:c});t.error();if(!d)r.break();return}if(!(0,a.alwaysValidSchema)(h,i)){const i=r.name("valid");t.subschema({keyword:"unevaluatedProperties",dataProp:c,dataPropType:a.Type.Str},i);if(!d)r.if((0,o.not)(i),(()=>r.break()))}}function unevaluatedDynamic(t,r){return(0,o._)`!${t} || !${t}[${r}]`}function unevaluatedStatic(t,r){const i=[];for(const a in t){if(t[a]===true)i.push((0,o._)`${r} !== ${a}`)}return(0,o.and)(...i)}}};r["default"]=u},4381:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a=i(7373);const c=i(1760);const l={message:"must be equal to constant",params:({schemaCode:t})=>(0,o._)`{allowedValue: ${t}}`};const u={keyword:"const",$data:true,error:l,code(t){const{gen:r,data:i,$data:l,schemaCode:u,schema:h}=t;if(l||h&&typeof h=="object"){t.fail$data((0,o._)`!${(0,a.useFunc)(r,c.default)}(${i}, ${u})`)}else{t.fail((0,o._)`${h} !== ${i}`)}}};r["default"]=u},5020:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(8803);const a={keyword:"dependentRequired",type:"object",schemaType:"object",error:o.error,code:t=>(0,o.validatePropertyDeps)(t)};r["default"]=a},4209:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a=i(7373);const c=i(1760);const l={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,o._)`{allowedValues: ${t}}`};const u={keyword:"enum",schemaType:"array",$data:true,error:l,code(t){const{gen:r,data:i,$data:l,schema:u,schemaCode:h,it:d}=t;if(!l&&u.length===0)throw new Error("enum must have non-empty array");const p=u.length>=d.opts.loopEnum;let m;const getEql=()=>m!==null&&m!==void 0?m:m=(0,a.useFunc)(r,c.default);let g;if(p||l){g=r.let("valid");t.block$data(g,loopEnum)}else{if(!Array.isArray(u))throw new Error("ajv implementation error");const t=r.const("vSchema",h);g=(0,o.or)(...u.map(((r,i)=>equalCode(t,i))))}t.pass(g);function loopEnum(){r.assign(g,false);r.forOf("v",h,(t=>r.if((0,o._)`${getEql()}(${i}, ${t})`,(()=>r.assign(g,true).break()))))}function equalCode(t,r){const a=u[r];return typeof a==="object"&&a!==null?(0,o._)`${getEql()}(${i}, ${t}[${r}])`:(0,o._)`${i} === ${a}`}}};r["default"]=u},7862:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(2708);const a=i(1177);const c=i(2737);const l=i(6340);const u=i(1188);const h=i(4141);const d=i(2049);const p=i(9359);const m=i(4381);const g=i(4209);const y=[o.default,a.default,c.default,l.default,u.default,h.default,d.default,p.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},m.default,g.default];r["default"]=y},8660:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(7373);const a={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:t,parentSchema:r,it:i}){if(r.contains===undefined){(0,o.checkStrictMode)(i,`"${t}" without "contains" is ignored`)}}};r["default"]=a},2049:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a={message({keyword:t,schemaCode:r}){const i=t==="maxItems"?"more":"fewer";return(0,o.str)`must NOT have ${i} than ${r} items`},params:({schemaCode:t})=>(0,o._)`{limit: ${t}}`};const c={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:true,error:a,code(t){const{keyword:r,data:i,schemaCode:a}=t;const c=r==="maxItems"?o.operators.GT:o.operators.LT;t.fail$data((0,o._)`${i}.length ${c} ${a}`)}};r["default"]=c},2737:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a=i(7373);const c=i(4475);const l={message({keyword:t,schemaCode:r}){const i=t==="maxLength"?"more":"fewer";return(0,o.str)`must NOT have ${i} than ${r} characters`},params:({schemaCode:t})=>(0,o._)`{limit: ${t}}`};const u={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:true,error:l,code(t){const{keyword:r,data:i,schemaCode:l,it:u}=t;const h=r==="maxLength"?o.operators.GT:o.operators.LT;const d=u.opts.unicode===false?(0,o._)`${i}.length`:(0,o._)`${(0,a.useFunc)(t.gen,c.default)}(${i})`;t.fail$data((0,o._)`${d} ${h} ${l}`)}};r["default"]=u},2708:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a=o.operators;const c={maximum:{okStr:"<=",ok:a.LTE,fail:a.GT},minimum:{okStr:">=",ok:a.GTE,fail:a.LT},exclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},exclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}};const l={message:({keyword:t,schemaCode:r})=>(0,o.str)`must be ${c[t].okStr} ${r}`,params:({keyword:t,schemaCode:r})=>(0,o._)`{comparison: ${c[t].okStr}, limit: ${r}}`};const u={keyword:Object.keys(c),type:"number",schemaType:"number",$data:true,error:l,code(t){const{keyword:r,data:i,schemaCode:a}=t;t.fail$data((0,o._)`${i} ${c[r].fail} ${a} || isNaN(${i})`)}};r["default"]=u},1188:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a={message({keyword:t,schemaCode:r}){const i=t==="maxProperties"?"more":"fewer";return(0,o.str)`must NOT have ${i} than ${r} properties`},params:({schemaCode:t})=>(0,o._)`{limit: ${t}}`};const c={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:true,error:a,code(t){const{keyword:r,data:i,schemaCode:a}=t;const c=r==="maxProperties"?o.operators.GT:o.operators.LT;t.fail$data((0,o._)`Object.keys(${i}).length ${c} ${a}`)}};r["default"]=c},1177:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(6515);const a={message:({schemaCode:t})=>(0,o.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,o._)`{multipleOf: ${t}}`};const c={keyword:"multipleOf",type:"number",schemaType:"number",$data:true,error:a,code(t){const{gen:r,data:i,schemaCode:a,it:c}=t;const l=c.opts.multipleOfPrecision;const u=r.let("res");const h=l?(0,o._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${l}`:(0,o._)`${u} !== parseInt(${u})`;t.fail$data((0,o._)`(${a} === 0 || (${u} = ${i}/${a}, ${h}))`)}};r["default"]=c},6340:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(3955);const a=i(6515);const c={message:({schemaCode:t})=>(0,a.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,a._)`{pattern: ${t}}`};const l={keyword:"pattern",type:"string",schemaType:"string",$data:true,error:c,code(t){const{data:r,$data:i,schema:c,schemaCode:l,it:u}=t;const h=u.opts.unicodeRegExp?"u":"";const d=i?(0,a._)`(new RegExp(${l}, ${h}))`:(0,o.usePattern)(t,c);t.fail$data((0,a._)`!${d}.test(${r})`)}};r["default"]=l},4141:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(3955);const a=i(6515);const c=i(7373);const l={message:({params:{missingProperty:t}})=>(0,a.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,a._)`{missingProperty: ${t}}`};const u={keyword:"required",type:"object",schemaType:"array",$data:true,error:l,code(t){const{gen:r,schema:i,schemaCode:l,data:u,$data:h,it:d}=t;const{opts:p}=d;if(!h&&i.length===0)return;const m=i.length>=p.loopRequired;if(d.allErrors)allErrorsMode();else exitOnErrorMode();if(p.strictRequired){const r=t.parentSchema.properties;const{definedProperties:o}=t.it;for(const t of i){if((r===null||r===void 0?void 0:r[t])===undefined&&!o.has(t)){const r=d.schemaEnv.baseId+d.errSchemaPath;const i=`required property "${t}" is not defined at "${r}" (strictRequired)`;(0,c.checkStrictMode)(d,i,d.opts.strictRequired)}}}function allErrorsMode(){if(m||h){t.block$data(a.nil,loopAllRequired)}else{for(const r of i){(0,o.checkReportMissingProp)(t,r)}}}function exitOnErrorMode(){const a=r.let("missing");if(m||h){const i=r.let("valid",true);t.block$data(i,(()=>loopUntilMissing(a,i)));t.ok(i)}else{r.if((0,o.checkMissingProp)(t,i,a));(0,o.reportMissingProp)(t,a);r.else()}}function loopAllRequired(){r.forOf("prop",l,(i=>{t.setParams({missingProperty:i});r.if((0,o.noPropertyInData)(r,u,i,p.ownProperties),(()=>t.error()))}))}function loopUntilMissing(i,c){t.setParams({missingProperty:i});r.forOf(i,l,(()=>{r.assign(c,(0,o.propertyInData)(r,u,i,p.ownProperties));r.if((0,a.not)(c),(()=>{t.error();r.break()}))}),a.nil)}}};r["default"]=u},9359:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(8486);const a=i(6515);const c=i(7373);const l=i(1760);const u={message:({params:{i:t,j:r}})=>(0,a.str)`must NOT have duplicate items (items ## ${r} and ${t} are identical)`,params:({params:{i:t,j:r}})=>(0,a._)`{i: ${t}, j: ${r}}`};const h={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:true,error:u,code(t){const{gen:r,data:i,$data:u,schema:h,parentSchema:d,schemaCode:p,it:m}=t;if(!u&&!h)return;const g=r.let("valid");const y=d.items?(0,o.getSchemaTypes)(d.items):[];t.block$data(g,validateUniqueItems,(0,a._)`${p} === false`);t.ok(g);function validateUniqueItems(){const o=r.let("i",(0,a._)`${i}.length`);const c=r.let("j");t.setParams({i:o,j:c});r.assign(g,true);r.if((0,a._)`${o} > 1`,(()=>(canOptimize()?loopN:loopN2)(o,c)))}function canOptimize(){return y.length>0&&!y.some((t=>t==="object"||t==="array"))}function loopN(c,l){const u=r.name("item");const h=(0,o.checkDataTypes)(y,u,m.opts.strictNumbers,o.DataType.Wrong);const d=r.const("indices",(0,a._)`{}`);r.for((0,a._)`;${c}--;`,(()=>{r.let(u,(0,a._)`${i}[${c}]`);r.if(h,(0,a._)`continue`);if(y.length>1)r.if((0,a._)`typeof ${u} == "string"`,(0,a._)`${u} += "_"`);r.if((0,a._)`typeof ${d}[${u}] == "number"`,(()=>{r.assign(l,(0,a._)`${d}[${u}]`);t.error();r.assign(g,false).break()})).code((0,a._)`${d}[${u}] = ${c}`)}))}function loopN2(o,u){const h=(0,c.useFunc)(r,l.default);const d=r.name("outer");r.label(d).for((0,a._)`;${o}--;`,(()=>r.for((0,a._)`${u} = ${o}; ${u}--;`,(()=>r.if((0,a._)`${h}(${i}[${o}], ${i}[${u}])`,(()=>{t.error();r.assign(g,false).break(d)}))))))}}};r["default"]=h},7362:(t,r,i)=>{"use strict";const o=i(2040);const a=process.env;Object.defineProperty(r,"_vendors",{value:o.map((function(t){return t.constant}))});r.name=null;r.isPR=null;o.forEach((function(t){const i=Array.isArray(t.env)?t.env:[t.env];const o=i.every((function(t){return checkEnv(t)}));r[t.constant]=o;if(!o){return}r.name=t.name;switch(typeof t.pr){case"string":r.isPR=!!a[t.pr];break;case"object":if("env"in t.pr){r.isPR=t.pr.env in a&&a[t.pr.env]!==t.pr.ne}else if("any"in t.pr){r.isPR=t.pr.any.some((function(t){return!!a[t]}))}else{r.isPR=checkEnv(t.pr)}break;default:r.isPR=null}}));r.isCI=!!(a.CI!=="false"&&(a.BUILD_ID||a.BUILD_NUMBER||a.CI||a.CI_APP_ID||a.CI_BUILD_ID||a.CI_BUILD_NUMBER||a.CI_NAME||a.CONTINUOUS_INTEGRATION||a.RUN_ID||r.name||false));function checkEnv(t){if(typeof t==="string")return!!a[t];if("env"in t){return a[t.env]&&a[t.env].includes(t.includes)}if("any"in t){return t.any.some((function(t){return!!a[t]}))}return Object.keys(t).every((function(r){return a[r]===t[r]}))}},2370:(t,r,i)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(t,r){r=a(r);if(t instanceof Comparator){if(t.loose===!!r.loose){return t}else{t=t.value}}t=t.trim().split(/\s+/).join(" ");h("comparator",t,r);this.options=r;this.loose=!!r.loose;this.parse(t);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}h("comp",this)}parse(t){const r=this.options.loose?c[l.COMPARATORLOOSE]:c[l.COMPARATOR];const i=t.match(r);if(!i){throw new TypeError(`Invalid comparator: ${t}`)}this.operator=i[1]!==undefined?i[1]:"";if(this.operator==="="){this.operator=""}if(!i[2]){this.semver=o}else{this.semver=new d(i[2],this.options.loose)}}toString(){return this.value}test(t){h("Comparator.test",t,this.options.loose);if(this.semver===o||t===o){return true}if(typeof t==="string"){try{t=new d(t,this.options)}catch(t){return false}}return u(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new p(t.value,r).test(this.value)}else if(t.operator===""){if(t.value===""){return true}return new p(this.value,r).test(t.semver)}r=a(r);if(r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")){return false}if(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&t.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&t.operator.startsWith("<")){return true}if(this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")){return true}if(u(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")){return true}if(u(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")){return true}return false}}t.exports=Comparator;const a=i(1629);const{safeRe:c,t:l}=i(4376);const u=i(869);const h=i(9394);const d=i(1886);const p=i(597)},597:(t,r,i)=>{const o=/\s+/g;class Range{constructor(t,r){r=l(r);if(t instanceof Range){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{return new Range(t.raw,r)}}if(t instanceof u){this.raw=t.value;this.set=[[t]];this.formatted=undefined;return this}this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;this.raw=t.trim().replace(o," ");this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const t=this.set[0];this.set=this.set.filter((t=>!isNullSet(t[0])));if(this.set.length===0){this.set=[t]}else if(this.set.length>1){for(const t of this.set){if(t.length===1&&isAny(t[0])){this.set=[t];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let t=0;t<this.set.length;t++){if(t>0){this.formatted+="||"}const r=this.set[t];for(let t=0;t<r.length;t++){if(t>0){this.formatted+=" "}this.formatted+=r[t].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){const r=(this.options.includePrerelease&&b)|(this.options.loose&&w);const i=r+":"+t;const o=c.get(i);if(o){return o}const a=this.options.loose;const l=a?p[m.HYPHENRANGELOOSE]:p[m.HYPHENRANGE];t=t.replace(l,hyphenReplace(this.options.includePrerelease));h("hyphen replace",t);t=t.replace(p[m.COMPARATORTRIM],g);h("comparator trim",t);t=t.replace(p[m.TILDETRIM],y);h("tilde trim",t);t=t.replace(p[m.CARETTRIM],v);h("caret trim",t);let d=t.split(" ").map((t=>parseComparator(t,this.options))).join(" ").split(/\s+/).map((t=>replaceGTE0(t,this.options)));if(a){d=d.filter((t=>{h("loose invalid filter",t,this.options);return!!t.match(p[m.COMPARATORLOOSE])}))}h("range list",d);const E=new Map;const S=d.map((t=>new u(t,this.options)));for(const t of S){if(isNullSet(t)){return[t]}E.set(t.value,t)}if(E.size>1&&E.has("")){E.delete("")}const $=[...E.values()];c.set(i,$);return $}intersects(t,r){if(!(t instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((i=>isSatisfiable(i,r)&&t.set.some((t=>isSatisfiable(t,r)&&i.every((i=>t.every((t=>i.intersects(t,r)))))))))}test(t){if(!t){return false}if(typeof t==="string"){try{t=new d(t,this.options)}catch(t){return false}}for(let r=0;r<this.set.length;r++){if(testSet(this.set[r],t,this.options)){return true}}return false}}t.exports=Range;const a=i(8860);const c=new a;const l=i(1629);const u=i(2370);const h=i(9394);const d=i(1886);const{safeRe:p,t:m,comparatorTrimReplace:g,tildeTrimReplace:y,caretTrimReplace:v}=i(4376);const{FLAG_INCLUDE_PRERELEASE:b,FLAG_LOOSE:w}=i(756);const isNullSet=t=>t.value==="<0.0.0-0";const isAny=t=>t.value==="";const isSatisfiable=(t,r)=>{let i=true;const o=t.slice();let a=o.pop();while(i&&o.length){i=o.every((t=>a.intersects(t,r)));a=o.pop()}return i};const parseComparator=(t,r)=>{h("comp",t,r);t=replaceCarets(t,r);h("caret",t);t=replaceTildes(t,r);h("tildes",t);t=replaceXRanges(t,r);h("xrange",t);t=replaceStars(t,r);h("stars",t);return t};const isX=t=>!t||t.toLowerCase()==="x"||t==="*";const replaceTildes=(t,r)=>t.trim().split(/\s+/).map((t=>replaceTilde(t,r))).join(" ");const replaceTilde=(t,r)=>{const i=r.loose?p[m.TILDELOOSE]:p[m.TILDE];return t.replace(i,((r,i,o,a,c)=>{h("tilde",t,r,i,o,a,c);let l;if(isX(i)){l=""}else if(isX(o)){l=`>=${i}.0.0 <${+i+1}.0.0-0`}else if(isX(a)){l=`>=${i}.${o}.0 <${i}.${+o+1}.0-0`}else if(c){h("replaceTilde pr",c);l=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`}else{l=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`}h("tilde return",l);return l}))};const replaceCarets=(t,r)=>t.trim().split(/\s+/).map((t=>replaceCaret(t,r))).join(" ");const replaceCaret=(t,r)=>{h("caret",t,r);const i=r.loose?p[m.CARETLOOSE]:p[m.CARET];const o=r.includePrerelease?"-0":"";return t.replace(i,((r,i,a,c,l)=>{h("caret",t,r,i,a,c,l);let u;if(isX(i)){u=""}else if(isX(a)){u=`>=${i}.0.0${o} <${+i+1}.0.0-0`}else if(isX(c)){if(i==="0"){u=`>=${i}.${a}.0${o} <${i}.${+a+1}.0-0`}else{u=`>=${i}.${a}.0${o} <${+i+1}.0.0-0`}}else if(l){h("replaceCaret pr",l);if(i==="0"){if(a==="0"){u=`>=${i}.${a}.${c}-${l} <${i}.${a}.${+c+1}-0`}else{u=`>=${i}.${a}.${c}-${l} <${i}.${+a+1}.0-0`}}else{u=`>=${i}.${a}.${c}-${l} <${+i+1}.0.0-0`}}else{h("no pr");if(i==="0"){if(a==="0"){u=`>=${i}.${a}.${c}${o} <${i}.${a}.${+c+1}-0`}else{u=`>=${i}.${a}.${c}${o} <${i}.${+a+1}.0-0`}}else{u=`>=${i}.${a}.${c} <${+i+1}.0.0-0`}}h("caret return",u);return u}))};const replaceXRanges=(t,r)=>{h("replaceXRanges",t,r);return t.split(/\s+/).map((t=>replaceXRange(t,r))).join(" ")};const replaceXRange=(t,r)=>{t=t.trim();const i=r.loose?p[m.XRANGELOOSE]:p[m.XRANGE];return t.replace(i,((i,o,a,c,l,u)=>{h("xRange",t,i,o,a,c,l,u);const d=isX(a);const p=d||isX(c);const m=p||isX(l);const g=m;if(o==="="&&g){o=""}u=r.includePrerelease?"-0":"";if(d){if(o===">"||o==="<"){i="<0.0.0-0"}else{i="*"}}else if(o&&g){if(p){c=0}l=0;if(o===">"){o=">=";if(p){a=+a+1;c=0;l=0}else{c=+c+1;l=0}}else if(o==="<="){o="<";if(p){a=+a+1}else{c=+c+1}}if(o==="<"){u="-0"}i=`${o+a}.${c}.${l}${u}`}else if(p){i=`>=${a}.0.0${u} <${+a+1}.0.0-0`}else if(m){i=`>=${a}.${c}.0${u} <${a}.${+c+1}.0-0`}h("xRange return",i);return i}))};const replaceStars=(t,r)=>{h("replaceStars",t,r);return t.trim().replace(p[m.STAR],"")};const replaceGTE0=(t,r)=>{h("replaceGTE0",t,r);return t.trim().replace(p[r.includePrerelease?m.GTE0PRE:m.GTE0],"")};const hyphenReplace=t=>(r,i,o,a,c,l,u,h,d,p,m,g)=>{if(isX(o)){i=""}else if(isX(a)){i=`>=${o}.0.0${t?"-0":""}`}else if(isX(c)){i=`>=${o}.${a}.0${t?"-0":""}`}else if(l){i=`>=${i}`}else{i=`>=${i}${t?"-0":""}`}if(isX(d)){h=""}else if(isX(p)){h=`<${+d+1}.0.0-0`}else if(isX(m)){h=`<${d}.${+p+1}.0-0`}else if(g){h=`<=${d}.${p}.${m}-${g}`}else if(t){h=`<${d}.${p}.${+m+1}-0`}else{h=`<=${h}`}return`${i} ${h}`.trim()};const testSet=(t,r,i)=>{for(let i=0;i<t.length;i++){if(!t[i].test(r)){return false}}if(r.prerelease.length&&!i.includePrerelease){for(let i=0;i<t.length;i++){h(t[i].semver);if(t[i].semver===u.ANY){continue}if(t[i].semver.prerelease.length>0){const o=t[i].semver;if(o.major===r.major&&o.minor===r.minor&&o.patch===r.patch){return true}}}return false}return true}},1886:(t,r,i)=>{const o=i(9394);const{MAX_LENGTH:a,MAX_SAFE_INTEGER:c}=i(756);const{safeRe:l,t:u}=i(4376);const h=i(1629);const{compareIdentifiers:d}=i(797);class SemVer{constructor(t,r){r=h(r);if(t instanceof SemVer){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{t=t.version}}else if(typeof t!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`)}if(t.length>a){throw new TypeError(`version is longer than ${a} characters`)}o("SemVer",t,r);this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;const i=t.trim().match(r.loose?l[u.LOOSE]:l[u.FULL]);if(!i){throw new TypeError(`Invalid Version: ${t}`)}this.raw=t;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>c||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>c||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>c||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const r=+t;if(r>=0&&r<c){return r}}return t}))}this.build=i[5]?i[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(t){o("SemVer.compare",this.version,this.options,t);if(!(t instanceof SemVer)){if(typeof t==="string"&&t===this.version){return 0}t=new SemVer(t,this.options)}if(t.version===this.version){return 0}return this.compareMain(t)||this.comparePre(t)}compareMain(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}return d(this.major,t.major)||d(this.minor,t.minor)||d(this.patch,t.patch)}comparePre(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}if(this.prerelease.length&&!t.prerelease.length){return-1}else if(!this.prerelease.length&&t.prerelease.length){return 1}else if(!this.prerelease.length&&!t.prerelease.length){return 0}let r=0;do{const i=this.prerelease[r];const a=t.prerelease[r];o("prerelease compare",r,i,a);if(i===undefined&&a===undefined){return 0}else if(a===undefined){return 1}else if(i===undefined){return-1}else if(i===a){continue}else{return d(i,a)}}while(++r)}compareBuild(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}let r=0;do{const i=this.build[r];const a=t.build[r];o("build compare",r,i,a);if(i===undefined&&a===undefined){return 0}else if(a===undefined){return 1}else if(i===undefined){return-1}else if(i===a){continue}else{return d(i,a)}}while(++r)}inc(t,r,i){switch(t){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",r,i);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0;this.inc("patch",r,i);this.inc("pre",r,i);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",r,i)}this.inc("pre",r,i);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const t=Number(i)?1:0;if(!r&&i===false){throw new Error("invalid increment argument: identifier is empty")}if(this.prerelease.length===0){this.prerelease=[t]}else{let o=this.prerelease.length;while(--o>=0){if(typeof this.prerelease[o]==="number"){this.prerelease[o]++;o=-2}}if(o===-1){if(r===this.prerelease.join(".")&&i===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(t)}}if(r){let o=[r,t];if(i===false){o=[r]}if(d(this.prerelease[0],r)===0){if(isNaN(this.prerelease[1])){this.prerelease=o}}else{this.prerelease=o}}break}default:throw new Error(`invalid increment argument: ${t}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}t.exports=SemVer},9368:(t,r,i)=>{const o=i(4882);const clean=(t,r)=>{const i=o(t.trim().replace(/^[=v]+/,""),r);return i?i.version:null};t.exports=clean},869:(t,r,i)=>{const o=i(4783);const a=i(157);const c=i(3110);const l=i(9199);const u=i(3769);const h=i(4362);const cmp=(t,r,i,d)=>{switch(r){case"===":if(typeof t==="object"){t=t.version}if(typeof i==="object"){i=i.version}return t===i;case"!==":if(typeof t==="object"){t=t.version}if(typeof i==="object"){i=i.version}return t!==i;case"":case"=":case"==":return o(t,i,d);case"!=":return a(t,i,d);case">":return c(t,i,d);case">=":return l(t,i,d);case"<":return u(t,i,d);case"<=":return h(t,i,d);default:throw new TypeError(`Invalid operator: ${r}`)}};t.exports=cmp},3384:(t,r,i)=>{const o=i(1886);const a=i(4882);const{safeRe:c,t:l}=i(4376);const coerce=(t,r)=>{if(t instanceof o){return t}if(typeof t==="number"){t=String(t)}if(typeof t!=="string"){return null}r=r||{};let i=null;if(!r.rtl){i=t.match(r.includePrerelease?c[l.COERCEFULL]:c[l.COERCE])}else{const o=r.includePrerelease?c[l.COERCERTLFULL]:c[l.COERCERTL];let a;while((a=o.exec(t))&&(!i||i.index+i[0].length!==t.length)){if(!i||a.index+a[0].length!==i.index+i[0].length){i=a}o.lastIndex=a.index+a[1].length+a[2].length}o.lastIndex=-1}if(i===null){return null}const u=i[2];const h=i[3]||"0";const d=i[4]||"0";const p=r.includePrerelease&&i[5]?`-${i[5]}`:"";const m=r.includePrerelease&&i[6]?`+${i[6]}`:"";return a(`${u}.${h}.${d}${p}${m}`,r)};t.exports=coerce},7151:(t,r,i)=>{const o=i(1886);const compareBuild=(t,r,i)=>{const a=new o(t,i);const c=new o(r,i);return a.compare(c)||a.compareBuild(c)};t.exports=compareBuild},5733:(t,r,i)=>{const o=i(8718);const compareLoose=(t,r)=>o(t,r,true);t.exports=compareLoose},8718:(t,r,i)=>{const o=i(1886);const compare=(t,r,i)=>new o(t,i).compare(new o(r,i));t.exports=compare},4542:(t,r,i)=>{const o=i(4882);const diff=(t,r)=>{const i=o(t,null,true);const a=o(r,null,true);const c=i.compare(a);if(c===0){return null}const l=c>0;const u=l?i:a;const h=l?a:i;const d=!!u.prerelease.length;const p=!!h.prerelease.length;if(p&&!d){if(!h.patch&&!h.minor){return"major"}if(u.patch){return"patch"}if(u.minor){return"minor"}return"major"}const m=d?"pre":"";if(i.major!==a.major){return m+"major"}if(i.minor!==a.minor){return m+"minor"}if(i.patch!==a.patch){return m+"patch"}return"prerelease"};t.exports=diff},4783:(t,r,i)=>{const o=i(8718);const eq=(t,r,i)=>o(t,r,i)===0;t.exports=eq},3110:(t,r,i)=>{const o=i(8718);const gt=(t,r,i)=>o(t,r,i)>0;t.exports=gt},9199:(t,r,i)=>{const o=i(8718);const gte=(t,r,i)=>o(t,r,i)>=0;t.exports=gte},9129:(t,r,i)=>{const o=i(1886);const inc=(t,r,i,a,c)=>{if(typeof i==="string"){c=a;a=i;i=undefined}try{return new o(t instanceof o?t.version:t,i).inc(r,a,c).version}catch(t){return null}};t.exports=inc},3769:(t,r,i)=>{const o=i(8718);const lt=(t,r,i)=>o(t,r,i)<0;t.exports=lt},4362:(t,r,i)=>{const o=i(8718);const lte=(t,r,i)=>o(t,r,i)<=0;t.exports=lte},2560:(t,r,i)=>{const o=i(1886);const major=(t,r)=>new o(t,r).major;t.exports=major},6620:(t,r,i)=>{const o=i(1886);const minor=(t,r)=>new o(t,r).minor;t.exports=minor},157:(t,r,i)=>{const o=i(8718);const neq=(t,r,i)=>o(t,r,i)!==0;t.exports=neq},4882:(t,r,i)=>{const o=i(1886);const parse=(t,r,i=false)=>{if(t instanceof o){return t}try{return new o(t,r)}catch(t){if(!i){return null}throw t}};t.exports=parse},1603:(t,r,i)=>{const o=i(1886);const patch=(t,r)=>new o(t,r).patch;t.exports=patch},9507:(t,r,i)=>{const o=i(4882);const prerelease=(t,r)=>{const i=o(t,r);return i&&i.prerelease.length?i.prerelease:null};t.exports=prerelease},8520:(t,r,i)=>{const o=i(8718);const rcompare=(t,r,i)=>o(r,t,i);t.exports=rcompare},1359:(t,r,i)=>{const o=i(7151);const rsort=(t,r)=>t.sort(((t,i)=>o(i,t,r)));t.exports=rsort},1995:(t,r,i)=>{const o=i(597);const satisfies=(t,r,i)=>{try{r=new o(r,i)}catch(t){return false}return r.test(t)};t.exports=satisfies},5537:(t,r,i)=>{const o=i(7151);const sort=(t,r)=>t.sort(((t,i)=>o(t,i,r)));t.exports=sort},3783:(t,r,i)=>{const o=i(4882);const valid=(t,r)=>{const i=o(t,r);return i?i.version:null};t.exports=valid},8407:(t,r,i)=>{const o=i(4376);const a=i(756);const c=i(1886);const l=i(797);const u=i(4882);const h=i(3783);const d=i(9368);const p=i(9129);const m=i(4542);const g=i(2560);const y=i(6620);const v=i(1603);const b=i(9507);const w=i(8718);const E=i(8520);const S=i(5733);const $=i(7151);const R=i(5537);const P=i(1359);const O=i(3110);const A=i(3769);const x=i(4783);const T=i(157);const k=i(9199);const C=i(4362);const I=i(869);const N=i(3384);const D=i(2370);const L=i(597);const M=i(1995);const j=i(6197);const U=i(1754);const B=i(1280);const H=i(4187);const V=i(6460);const z=i(1097);const G=i(5345);const q=i(472);const W=i(5298);const K=i(5303);const Y=i(9766);t.exports={parse:u,valid:h,clean:d,inc:p,diff:m,major:g,minor:y,patch:v,prerelease:b,compare:w,rcompare:E,compareLoose:S,compareBuild:$,sort:R,rsort:P,gt:O,lt:A,eq:x,neq:T,gte:k,lte:C,cmp:I,coerce:N,Comparator:D,Range:L,satisfies:M,toComparators:j,maxSatisfying:U,minSatisfying:B,minVersion:H,validRange:V,outside:z,gtr:G,ltr:q,intersects:W,simplifyRange:K,subset:Y,SemVer:c,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:l.compareIdentifiers,rcompareIdentifiers:l.rcompareIdentifiers}},756:t=>{const r="2.0.0";const i=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const a=16;const c=i-6;const l=["major","premajor","minor","preminor","patch","prepatch","prerelease"];t.exports={MAX_LENGTH:i,MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:c,MAX_SAFE_INTEGER:o,RELEASE_TYPES:l,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},9394:t=>{const r=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=r},797:t=>{const r=/^[0-9]+$/;const compareIdentifiers=(t,i)=>{const o=r.test(t);const a=r.test(i);if(o&&a){t=+t;i=+i}return t===i?0:o&&!a?-1:a&&!o?1:t<i?-1:1};const rcompareIdentifiers=(t,r)=>compareIdentifiers(r,t);t.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},8860:t=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(t){const r=this.map.get(t);if(r===undefined){return undefined}else{this.map.delete(t);this.map.set(t,r);return r}}delete(t){return this.map.delete(t)}set(t,r){const i=this.delete(t);if(!i&&r!==undefined){if(this.map.size>=this.max){const t=this.map.keys().next().value;this.delete(t)}this.map.set(t,r)}return this}}t.exports=LRUCache},1629:t=>{const r=Object.freeze({loose:true});const i=Object.freeze({});const parseOptions=t=>{if(!t){return i}if(typeof t!=="object"){return r}return t};t.exports=parseOptions},4376:(t,r,i)=>{const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:c}=i(756);const l=i(9394);r=t.exports={};const u=r.re=[];const h=r.safeRe=[];const d=r.src=[];const p=r.t={};let m=0;const g="[a-zA-Z0-9-]";const y=[["\\s",1],["\\d",c],[g,a]];const makeSafeRegex=t=>{for(const[r,i]of y){t=t.split(`${r}*`).join(`${r}{0,${i}}`).split(`${r}+`).join(`${r}{1,${i}}`)}return t};const createToken=(t,r,i)=>{const o=makeSafeRegex(r);const a=m++;l(t,a,r);p[t]=a;d[a]=r;u[a]=new RegExp(r,i?"g":undefined);h[a]=new RegExp(o,i?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${g}*`);createToken("MAINVERSION",`(${d[p.NUMERICIDENTIFIER]})\\.`+`(${d[p.NUMERICIDENTIFIER]})\\.`+`(${d[p.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${d[p.NUMERICIDENTIFIERLOOSE]})\\.`+`(${d[p.NUMERICIDENTIFIERLOOSE]})\\.`+`(${d[p.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${d[p.NUMERICIDENTIFIER]}|${d[p.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${d[p.NUMERICIDENTIFIERLOOSE]}|${d[p.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${d[p.PRERELEASEIDENTIFIER]}(?:\\.${d[p.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${d[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[p.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${g}+`);createToken("BUILD",`(?:\\+(${d[p.BUILDIDENTIFIER]}(?:\\.${d[p.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${d[p.MAINVERSION]}${d[p.PRERELEASE]}?${d[p.BUILD]}?`);createToken("FULL",`^${d[p.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${d[p.MAINVERSIONLOOSE]}${d[p.PRERELEASELOOSE]}?${d[p.BUILD]}?`);createToken("LOOSE",`^${d[p.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${d[p.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${d[p.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${d[p.XRANGEIDENTIFIER]})`+`(?:\\.(${d[p.XRANGEIDENTIFIER]})`+`(?:\\.(${d[p.XRANGEIDENTIFIER]})`+`(?:${d[p.PRERELEASE]})?${d[p.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${d[p.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${d[p.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${d[p.XRANGEIDENTIFIERLOOSE]})`+`(?:${d[p.PRERELEASELOOSE]})?${d[p.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${d[p.GTLT]}\\s*${d[p.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${d[p.GTLT]}\\s*${d[p.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`);createToken("COERCE",`${d[p.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",d[p.COERCEPLAIN]+`(?:${d[p.PRERELEASE]})?`+`(?:${d[p.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",d[p.COERCE],true);createToken("COERCERTLFULL",d[p.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${d[p.LONETILDE]}\\s+`,true);r.tildeTrimReplace="$1~";createToken("TILDE",`^${d[p.LONETILDE]}${d[p.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${d[p.LONETILDE]}${d[p.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${d[p.LONECARET]}\\s+`,true);r.caretTrimReplace="$1^";createToken("CARET",`^${d[p.LONECARET]}${d[p.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${d[p.LONECARET]}${d[p.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${d[p.GTLT]}\\s*(${d[p.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${d[p.GTLT]}\\s*(${d[p.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${d[p.GTLT]}\\s*(${d[p.LOOSEPLAIN]}|${d[p.XRANGEPLAIN]})`,true);r.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${d[p.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${d[p.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${d[p.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${d[p.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5345:(t,r,i)=>{const o=i(1097);const gtr=(t,r,i)=>o(t,r,">",i);t.exports=gtr},5298:(t,r,i)=>{const o=i(597);const intersects=(t,r,i)=>{t=new o(t,i);r=new o(r,i);return t.intersects(r,i)};t.exports=intersects},472:(t,r,i)=>{const o=i(1097);const ltr=(t,r,i)=>o(t,r,"<",i);t.exports=ltr},1754:(t,r,i)=>{const o=i(1886);const a=i(597);const maxSatisfying=(t,r,i)=>{let c=null;let l=null;let u=null;try{u=new a(r,i)}catch(t){return null}t.forEach((t=>{if(u.test(t)){if(!c||l.compare(t)===-1){c=t;l=new o(c,i)}}}));return c};t.exports=maxSatisfying},1280:(t,r,i)=>{const o=i(1886);const a=i(597);const minSatisfying=(t,r,i)=>{let c=null;let l=null;let u=null;try{u=new a(r,i)}catch(t){return null}t.forEach((t=>{if(u.test(t)){if(!c||l.compare(t)===1){c=t;l=new o(c,i)}}}));return c};t.exports=minSatisfying},4187:(t,r,i)=>{const o=i(1886);const a=i(597);const c=i(3110);const minVersion=(t,r)=>{t=new a(t,r);let i=new o("0.0.0");if(t.test(i)){return i}i=new o("0.0.0-0");if(t.test(i)){return i}i=null;for(let r=0;r<t.set.length;++r){const a=t.set[r];let l=null;a.forEach((t=>{const r=new o(t.semver.version);switch(t.operator){case">":if(r.prerelease.length===0){r.patch++}else{r.prerelease.push(0)}r.raw=r.format();case"":case">=":if(!l||c(r,l)){l=r}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}}));if(l&&(!i||c(i,l))){i=l}}if(i&&t.test(i)){return i}return null};t.exports=minVersion},1097:(t,r,i)=>{const o=i(1886);const a=i(2370);const{ANY:c}=a;const l=i(597);const u=i(1995);const h=i(3110);const d=i(3769);const p=i(4362);const m=i(9199);const outside=(t,r,i,g)=>{t=new o(t,g);r=new l(r,g);let y,v,b,w,E;switch(i){case">":y=h;v=p;b=d;w=">";E=">=";break;case"<":y=d;v=m;b=h;w="<";E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(u(t,r,g)){return false}for(let i=0;i<r.set.length;++i){const o=r.set[i];let l=null;let u=null;o.forEach((t=>{if(t.semver===c){t=new a(">=0.0.0")}l=l||t;u=u||t;if(y(t.semver,l.semver,g)){l=t}else if(b(t.semver,u.semver,g)){u=t}}));if(l.operator===w||l.operator===E){return false}if((!u.operator||u.operator===w)&&v(t,u.semver)){return false}else if(u.operator===E&&b(t,u.semver)){return false}}return true};t.exports=outside},5303:(t,r,i)=>{const o=i(1995);const a=i(8718);t.exports=(t,r,i)=>{const c=[];let l=null;let u=null;const h=t.sort(((t,r)=>a(t,r,i)));for(const t of h){const a=o(t,r,i);if(a){u=t;if(!l){l=t}}else{if(u){c.push([l,u])}u=null;l=null}}if(l){c.push([l,null])}const d=[];for(const[t,r]of c){if(t===r){d.push(t)}else if(!r&&t===h[0]){d.push("*")}else if(!r){d.push(`>=${t}`)}else if(t===h[0]){d.push(`<=${r}`)}else{d.push(`${t} - ${r}`)}}const p=d.join(" || ");const m=typeof r.raw==="string"?r.raw:String(r);return p.length<m.length?p:r}},9766:(t,r,i)=>{const o=i(597);const a=i(2370);const{ANY:c}=a;const l=i(1995);const u=i(8718);const subset=(t,r,i={})=>{if(t===r){return true}t=new o(t,i);r=new o(r,i);let a=false;e:for(const o of t.set){for(const t of r.set){const r=simpleSubset(o,t,i);a=a||r!==null;if(r){continue e}}if(a){return false}}return true};const h=[new a(">=0.0.0-0")];const d=[new a(">=0.0.0")];const simpleSubset=(t,r,i)=>{if(t===r){return true}if(t.length===1&&t[0].semver===c){if(r.length===1&&r[0].semver===c){return true}else if(i.includePrerelease){t=h}else{t=d}}if(r.length===1&&r[0].semver===c){if(i.includePrerelease){return true}else{r=d}}const o=new Set;let a,p;for(const r of t){if(r.operator===">"||r.operator===">="){a=higherGT(a,r,i)}else if(r.operator==="<"||r.operator==="<="){p=lowerLT(p,r,i)}else{o.add(r.semver)}}if(o.size>1){return null}let m;if(a&&p){m=u(a.semver,p.semver,i);if(m>0){return null}else if(m===0&&(a.operator!==">="||p.operator!=="<=")){return null}}for(const t of o){if(a&&!l(t,String(a),i)){return null}if(p&&!l(t,String(p),i)){return null}for(const o of r){if(!l(t,String(o),i)){return false}}return true}let g,y;let v,b;let w=p&&!i.includePrerelease&&p.semver.prerelease.length?p.semver:false;let E=a&&!i.includePrerelease&&a.semver.prerelease.length?a.semver:false;if(w&&w.prerelease.length===1&&p.operator==="<"&&w.prerelease[0]===0){w=false}for(const t of r){b=b||t.operator===">"||t.operator===">=";v=v||t.operator==="<"||t.operator==="<=";if(a){if(E){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===E.major&&t.semver.minor===E.minor&&t.semver.patch===E.patch){E=false}}if(t.operator===">"||t.operator===">="){g=higherGT(a,t,i);if(g===t&&g!==a){return false}}else if(a.operator===">="&&!l(a.semver,String(t),i)){return false}}if(p){if(w){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===w.major&&t.semver.minor===w.minor&&t.semver.patch===w.patch){w=false}}if(t.operator==="<"||t.operator==="<="){y=lowerLT(p,t,i);if(y===t&&y!==p){return false}}else if(p.operator==="<="&&!l(p.semver,String(t),i)){return false}}if(!t.operator&&(p||a)&&m!==0){return false}}if(a&&v&&!p&&m!==0){return false}if(p&&b&&!a&&m!==0){return false}if(E||w){return false}return true};const higherGT=(t,r,i)=>{if(!t){return r}const o=u(t.semver,r.semver,i);return o>0?t:o<0?r:r.operator===">"&&t.operator===">="?r:t};const lowerLT=(t,r,i)=>{if(!t){return r}const o=u(t.semver,r.semver,i);return o<0?t:o>0?r:r.operator==="<"&&t.operator==="<="?r:t};t.exports=subset},6197:(t,r,i)=>{const o=i(597);const toComparators=(t,r)=>new o(t,r).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")));t.exports=toComparators},6460:(t,r,i)=>{const o=i(597);const validRange=(t,r)=>{try{return new o(t,r).range||"*"}catch(t){return null}};t.exports=validRange},2544:(t,r,i)=>{"use strict";const{builtinModules:o}=i(5720);var a=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var c=["node_modules","favicon.ico"];function validate(t){var r=[];var i=[];if(t===null){i.push("name cannot be null");return done(r,i)}if(t===undefined){i.push("name cannot be undefined");return done(r,i)}if(typeof t!=="string"){i.push("name must be a string");return done(r,i)}if(!t.length){i.push("name length must be greater than zero")}if(t.match(/^\./)){i.push("name cannot start with a period")}if(t.match(/^_/)){i.push("name cannot start with an underscore")}if(t.trim()!==t){i.push("name cannot contain leading or trailing spaces")}c.forEach((function(r){if(t.toLowerCase()===r){i.push(r+" is a blacklisted name")}}));if(o.includes(t.toLowerCase())){r.push(t+" is a core module name")}if(t.length>214){r.push("name can no longer contain more than 214 characters")}if(t.toLowerCase()!==t){r.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(t.split("/").slice(-1)[0])){r.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(t)!==t){var l=t.match(a);if(l){var u=l[1];var h=l[2];if(encodeURIComponent(u)===u&&encodeURIComponent(h)===h){return done(r,i)}}i.push("name can only contain URL-friendly characters")}return done(r,i)}var done=function(t,r){var i={validForNewPackages:r.length===0&&t.length===0,validForOldPackages:r.length===0,warnings:t,errors:r};if(!i.warnings.length){delete i.warnings}if(!i.errors.length){delete i.errors}return i};t.exports=validate},181:t=>{"use strict";t.exports=require("buffer")},5317:t=>{"use strict";t.exports=require("child_process")},4434:t=>{"use strict";t.exports=require("events")},9896:t=>{"use strict";t.exports=require("fs")},8611:t=>{"use strict";t.exports=require("http")},5692:t=>{"use strict";t.exports=require("https")},5720:t=>{"use strict";t.exports=require("module")},1421:t=>{"use strict";t.exports=require("node:child_process")},8474:t=>{"use strict";t.exports=require("node:events")},3024:t=>{"use strict";t.exports=require("node:fs")},6760:t=>{"use strict";t.exports=require("node:path")},1708:t=>{"use strict";t.exports=require("node:process")},857:t=>{"use strict";t.exports=require("os")},6928:t=>{"use strict";t.exports=require("path")},3785:t=>{"use strict";t.exports=require("readline")},2203:t=>{"use strict";t.exports=require("stream")},2018:t=>{"use strict";t.exports=require("tty")},7016:t=>{"use strict";t.exports=require("url")},9023:t=>{"use strict";t.exports=require("util")},7944:(t,r,i)=>{const{Argument:o}=i(3573);const{Command:a}=i(217);const{CommanderError:c,InvalidArgumentError:l}=i(5246);const{Help:u}=i(5889);const{Option:h}=i(8127);r.DM=new a;r.gu=t=>new a(t);r.Ww=(t,r)=>new h(t,r);r.er=(t,r)=>new o(t,r);r.uB=a;r.c$=h;r.ef=o;r._V=u;r.b7=c;r.Di=l;r.a2=l},3573:(t,r,i)=>{const{InvalidArgumentError:o}=i(5246);class Argument{constructor(t,r){this.description=r||"";this.variadic=false;this.parseArg=undefined;this.defaultValue=undefined;this.defaultValueDescription=undefined;this.argChoices=undefined;switch(t[0]){case"<":this.required=true;this._name=t.slice(1,-1);break;case"[":this.required=false;this._name=t.slice(1,-1);break;default:this.required=true;this._name=t;break}if(this._name.length>3&&this._name.slice(-3)==="..."){this.variadic=true;this._name=this._name.slice(0,-3)}}name(){return this._name}_concatValue(t,r){if(r===this.defaultValue||!Array.isArray(r)){return[t]}return r.concat(t)}default(t,r){this.defaultValue=t;this.defaultValueDescription=r;return this}argParser(t){this.parseArg=t;return this}choices(t){this.argChoices=t.slice();this.parseArg=(t,r)=>{if(!this.argChoices.includes(t)){throw new o(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._concatValue(t,r)}return t};return this}argRequired(){this.required=true;return this}argOptional(){this.required=false;return this}}function humanReadableArgName(t){const r=t.name()+(t.variadic===true?"...":"");return t.required?"<"+r+">":"["+r+"]"}r.Argument=Argument;r.humanReadableArgName=humanReadableArgName},217:(t,r,i)=>{const o=i(8474).EventEmitter;const a=i(1421);const c=i(6760);const l=i(3024);const u=i(1708);const{Argument:h,humanReadableArgName:d}=i(3573);const{CommanderError:p}=i(5246);const{Help:m}=i(5889);const{Option:g,DualOptions:y}=i(8127);const{suggestSimilar:v}=i(3733);class Command extends o{constructor(t){super();this.commands=[];this.options=[];this.parent=null;this._allowUnknownOption=false;this._allowExcessArguments=true;this.registeredArguments=[];this._args=this.registeredArguments;this.args=[];this.rawArgs=[];this.processedArgs=[];this._scriptPath=null;this._name=t||"";this._optionValues={};this._optionValueSources={};this._storeOptionsAsProperties=false;this._actionHandler=null;this._executableHandler=false;this._executableFile=null;this._executableDir=null;this._defaultCommandName=null;this._exitCallback=null;this._aliases=[];this._combineFlagAndOptionalValue=true;this._description="";this._summary="";this._argsDescription=undefined;this._enablePositionalOptions=false;this._passThroughOptions=false;this._lifeCycleHooks={};this._showHelpAfterError=false;this._showSuggestionAfterError=true;this._outputConfiguration={writeOut:t=>u.stdout.write(t),writeErr:t=>u.stderr.write(t),getOutHelpWidth:()=>u.stdout.isTTY?u.stdout.columns:undefined,getErrHelpWidth:()=>u.stderr.isTTY?u.stderr.columns:undefined,outputError:(t,r)=>r(t)};this._hidden=false;this._helpOption=undefined;this._addImplicitHelpCommand=undefined;this._helpCommand=undefined;this._helpConfiguration={}}copyInheritedSettings(t){this._outputConfiguration=t._outputConfiguration;this._helpOption=t._helpOption;this._helpCommand=t._helpCommand;this._helpConfiguration=t._helpConfiguration;this._exitCallback=t._exitCallback;this._storeOptionsAsProperties=t._storeOptionsAsProperties;this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue;this._allowExcessArguments=t._allowExcessArguments;this._enablePositionalOptions=t._enablePositionalOptions;this._showHelpAfterError=t._showHelpAfterError;this._showSuggestionAfterError=t._showSuggestionAfterError;return this}_getCommandAndAncestors(){const t=[];for(let r=this;r;r=r.parent){t.push(r)}return t}command(t,r,i){let o=r;let a=i;if(typeof o==="object"&&o!==null){a=o;o=null}a=a||{};const[,c,l]=t.match(/([^ ]+) *(.*)/);const u=this.createCommand(c);if(o){u.description(o);u._executableHandler=true}if(a.isDefault)this._defaultCommandName=u._name;u._hidden=!!(a.noHelp||a.hidden);u._executableFile=a.executableFile||null;if(l)u.arguments(l);this._registerCommand(u);u.parent=this;u.copyInheritedSettings(this);if(o)return this;return u}createCommand(t){return new Command(t)}createHelp(){return Object.assign(new m,this.configureHelp())}configureHelp(t){if(t===undefined)return this._helpConfiguration;this._helpConfiguration=t;return this}configureOutput(t){if(t===undefined)return this._outputConfiguration;Object.assign(this._outputConfiguration,t);return this}showHelpAfterError(t=true){if(typeof t!=="string")t=!!t;this._showHelpAfterError=t;return this}showSuggestionAfterError(t=true){this._showSuggestionAfterError=!!t;return this}addCommand(t,r){if(!t._name){throw new Error(`Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()`)}r=r||{};if(r.isDefault)this._defaultCommandName=t._name;if(r.noHelp||r.hidden)t._hidden=true;this._registerCommand(t);t.parent=this;t._checkForBrokenPassThrough();return this}createArgument(t,r){return new h(t,r)}argument(t,r,i,o){const a=this.createArgument(t,r);if(typeof i==="function"){a.default(o).argParser(i)}else{a.default(i)}this.addArgument(a);return this}arguments(t){t.trim().split(/ +/).forEach((t=>{this.argument(t)}));return this}addArgument(t){const r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic){throw new Error(`only the last argument can be variadic '${r.name()}'`)}if(t.required&&t.defaultValue!==undefined&&t.parseArg===undefined){throw new Error(`a default value for a required argument is never used: '${t.name()}'`)}this.registeredArguments.push(t);return this}helpCommand(t,r){if(typeof t==="boolean"){this._addImplicitHelpCommand=t;return this}t=t??"help [command]";const[,i,o]=t.match(/([^ ]+) *(.*)/);const a=r??"display help for command";const c=this.createCommand(i);c.helpOption(false);if(o)c.arguments(o);if(a)c.description(a);this._addImplicitHelpCommand=true;this._helpCommand=c;return this}addHelpCommand(t,r){if(typeof t!=="object"){this.helpCommand(t,r);return this}this._addImplicitHelpCommand=true;this._helpCommand=t;return this}_getHelpCommand(){const t=this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"));if(t){if(this._helpCommand===undefined){this.helpCommand(undefined,undefined)}return this._helpCommand}return null}hook(t,r){const i=["preSubcommand","preAction","postAction"];if(!i.includes(t)){throw new Error(`Unexpected value for event passed to hook : '${t}'.\nExpecting one of '${i.join("', '")}'`)}if(this._lifeCycleHooks[t]){this._lifeCycleHooks[t].push(r)}else{this._lifeCycleHooks[t]=[r]}return this}exitOverride(t){if(t){this._exitCallback=t}else{this._exitCallback=t=>{if(t.code!=="commander.executeSubCommandAsync"){throw t}else{}}}return this}_exit(t,r,i){if(this._exitCallback){this._exitCallback(new p(t,r,i))}u.exit(t)}action(t){const listener=r=>{const i=this.registeredArguments.length;const o=r.slice(0,i);if(this._storeOptionsAsProperties){o[i]=this}else{o[i]=this.opts()}o.push(this);return t.apply(this,o)};this._actionHandler=listener;return this}createOption(t,r){return new g(t,r)}_callParseArg(t,r,i,o){try{return t.parseArg(r,i)}catch(t){if(t.code==="commander.invalidArgument"){const r=`${o} ${t.message}`;this.error(r,{exitCode:t.exitCode,code:t.code})}throw t}}_registerOption(t){const r=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(r){const i=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${i}'\n- already used by option '${r.flags}'`)}this.options.push(t)}_registerCommand(t){const knownBy=t=>[t.name()].concat(t.aliases());const r=knownBy(t).find((t=>this._findCommand(t)));if(r){const i=knownBy(this._findCommand(r)).join("|");const o=knownBy(t).join("|");throw new Error(`cannot add command '${o}' as already have command '${i}'`)}this.commands.push(t)}addOption(t){this._registerOption(t);const r=t.name();const i=t.attributeName();if(t.negate){const r=t.long.replace(/^--no-/,"--");if(!this._findOption(r)){this.setOptionValueWithSource(i,t.defaultValue===undefined?true:t.defaultValue,"default")}}else if(t.defaultValue!==undefined){this.setOptionValueWithSource(i,t.defaultValue,"default")}const handleOptionValue=(r,o,a)=>{if(r==null&&t.presetArg!==undefined){r=t.presetArg}const c=this.getOptionValue(i);if(r!==null&&t.parseArg){r=this._callParseArg(t,r,c,o)}else if(r!==null&&t.variadic){r=t._concatValue(r,c)}if(r==null){if(t.negate){r=false}else if(t.isBoolean()||t.optional){r=true}else{r=""}}this.setOptionValueWithSource(i,r,a)};this.on("option:"+r,(r=>{const i=`error: option '${t.flags}' argument '${r}' is invalid.`;handleOptionValue(r,i,"cli")}));if(t.envVar){this.on("optionEnv:"+r,(r=>{const i=`error: option '${t.flags}' value '${r}' from env '${t.envVar}' is invalid.`;handleOptionValue(r,i,"env")}))}return this}_optionEx(t,r,i,o,a){if(typeof r==="object"&&r instanceof g){throw new Error("To add an Option object use addOption() instead of option() or requiredOption()")}const c=this.createOption(r,i);c.makeOptionMandatory(!!t.mandatory);if(typeof o==="function"){c.default(a).argParser(o)}else if(o instanceof RegExp){const t=o;o=(r,i)=>{const o=t.exec(r);return o?o[0]:i};c.default(a).argParser(o)}else{c.default(o)}return this.addOption(c)}option(t,r,i,o){return this._optionEx({},t,r,i,o)}requiredOption(t,r,i,o){return this._optionEx({mandatory:true},t,r,i,o)}combineFlagAndOptionalValue(t=true){this._combineFlagAndOptionalValue=!!t;return this}allowUnknownOption(t=true){this._allowUnknownOption=!!t;return this}allowExcessArguments(t=true){this._allowExcessArguments=!!t;return this}enablePositionalOptions(t=true){this._enablePositionalOptions=!!t;return this}passThroughOptions(t=true){this._passThroughOptions=!!t;this._checkForBrokenPassThrough();return this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions){throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}}storeOptionsAsProperties(t=true){if(this.options.length){throw new Error("call .storeOptionsAsProperties() before adding options")}if(Object.keys(this._optionValues).length){throw new Error("call .storeOptionsAsProperties() before setting option values")}this._storeOptionsAsProperties=!!t;return this}getOptionValue(t){if(this._storeOptionsAsProperties){return this[t]}return this._optionValues[t]}setOptionValue(t,r){return this.setOptionValueWithSource(t,r,undefined)}setOptionValueWithSource(t,r,i){if(this._storeOptionsAsProperties){this[t]=r}else{this._optionValues[t]=r}this._optionValueSources[t]=i;return this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let r;this._getCommandAndAncestors().forEach((i=>{if(i.getOptionValueSource(t)!==undefined){r=i.getOptionValueSource(t)}}));return r}_prepareUserArgs(t,r){if(t!==undefined&&!Array.isArray(t)){throw new Error("first parameter to parse must be array or undefined")}r=r||{};if(t===undefined&&r.from===undefined){if(u.versions?.electron){r.from="electron"}const t=u.execArgv??[];if(t.includes("-e")||t.includes("--eval")||t.includes("-p")||t.includes("--print")){r.from="eval"}}if(t===undefined){t=u.argv}this.rawArgs=t.slice();let i;switch(r.from){case undefined:case"node":this._scriptPath=t[1];i=t.slice(2);break;case"electron":if(u.defaultApp){this._scriptPath=t[1];i=t.slice(2)}else{i=t.slice(1)}break;case"user":i=t.slice(0);break;case"eval":i=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);this._name=this._name||"program";return i}parse(t,r){const i=this._prepareUserArgs(t,r);this._parseCommand([],i);return this}async parseAsync(t,r){const i=this._prepareUserArgs(t,r);await this._parseCommand([],i);return this}_executeSubCommand(t,r){r=r.slice();let i=false;const o=[".js",".ts",".tsx",".mjs",".cjs"];function findFile(t,r){const i=c.resolve(t,r);if(l.existsSync(i))return i;if(o.includes(c.extname(r)))return undefined;const a=o.find((t=>l.existsSync(`${i}${t}`)));if(a)return`${i}${a}`;return undefined}this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();let h=t._executableFile||`${this._name}-${t._name}`;let d=this._executableDir||"";if(this._scriptPath){let t;try{t=l.realpathSync(this._scriptPath)}catch(r){t=this._scriptPath}d=c.resolve(c.dirname(t),d)}if(d){let r=findFile(d,h);if(!r&&!t._executableFile&&this._scriptPath){const i=c.basename(this._scriptPath,c.extname(this._scriptPath));if(i!==this._name){r=findFile(d,`${i}-${t._name}`)}}h=r||h}i=o.includes(c.extname(h));let m;if(u.platform!=="win32"){if(i){r.unshift(h);r=incrementNodeInspectorPort(u.execArgv).concat(r);m=a.spawn(u.argv[0],r,{stdio:"inherit"})}else{m=a.spawn(h,r,{stdio:"inherit"})}}else{r.unshift(h);r=incrementNodeInspectorPort(u.execArgv).concat(r);m=a.spawn(u.execPath,r,{stdio:"inherit"})}if(!m.killed){const t=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];t.forEach((t=>{u.on(t,(()=>{if(m.killed===false&&m.exitCode===null){m.kill(t)}}))}))}const g=this._exitCallback;m.on("close",(t=>{t=t??1;if(!g){u.exit(t)}else{g(new p(t,"commander.executeSubCommandAsync","(close)"))}}));m.on("error",(r=>{if(r.code==="ENOENT"){const r=d?`searched for local subcommand relative to directory '${d}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory";const i=`'${h}' does not exist\n - if '${t._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${r}`;throw new Error(i)}else if(r.code==="EACCES"){throw new Error(`'${h}' not executable`)}if(!g){u.exit(1)}else{const t=new p(1,"commander.executeSubCommandAsync","(error)");t.nestedError=r;g(t)}}));this.runningCommand=m}_dispatchSubcommand(t,r,i){const o=this._findCommand(t);if(!o)this.help({error:true});let a;a=this._chainOrCallSubCommandHook(a,o,"preSubcommand");a=this._chainOrCall(a,(()=>{if(o._executableHandler){this._executeSubCommand(o,r.concat(i))}else{return o._parseCommand(r,i)}}));return a}_dispatchHelpCommand(t){if(!t){this.help()}const r=this._findCommand(t);if(r&&!r._executableHandler){r.help()}return this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach(((t,r)=>{if(t.required&&this.args[r]==null){this.missingArgument(t.name())}}));if(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic){return}if(this.args.length>this.registeredArguments.length){this._excessArguments(this.args)}}_processArguments(){const myParseArg=(t,r,i)=>{let o=r;if(r!==null&&t.parseArg){const a=`error: command-argument value '${r}' is invalid for argument '${t.name()}'.`;o=this._callParseArg(t,r,i,a)}return o};this._checkNumberOfArguments();const t=[];this.registeredArguments.forEach(((r,i)=>{let o=r.defaultValue;if(r.variadic){if(i<this.args.length){o=this.args.slice(i);if(r.parseArg){o=o.reduce(((t,i)=>myParseArg(r,i,t)),r.defaultValue)}}else if(o===undefined){o=[]}}else if(i<this.args.length){o=this.args[i];if(r.parseArg){o=myParseArg(r,o,r.defaultValue)}}t[i]=o}));this.processedArgs=t}_chainOrCall(t,r){if(t&&t.then&&typeof t.then==="function"){return t.then((()=>r()))}return r()}_chainOrCallHooks(t,r){let i=t;const o=[];this._getCommandAndAncestors().reverse().filter((t=>t._lifeCycleHooks[r]!==undefined)).forEach((t=>{t._lifeCycleHooks[r].forEach((r=>{o.push({hookedCommand:t,callback:r})}))}));if(r==="postAction"){o.reverse()}o.forEach((t=>{i=this._chainOrCall(i,(()=>t.callback(t.hookedCommand,this)))}));return i}_chainOrCallSubCommandHook(t,r,i){let o=t;if(this._lifeCycleHooks[i]!==undefined){this._lifeCycleHooks[i].forEach((t=>{o=this._chainOrCall(o,(()=>t(this,r)))}))}return o}_parseCommand(t,r){const i=this.parseOptions(r);this._parseOptionsEnv();this._parseOptionsImplied();t=t.concat(i.operands);r=i.unknown;this.args=t.concat(r);if(t&&this._findCommand(t[0])){return this._dispatchSubcommand(t[0],t.slice(1),r)}if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name()){return this._dispatchHelpCommand(t[1])}if(this._defaultCommandName){this._outputHelpIfRequested(r);return this._dispatchSubcommand(this._defaultCommandName,t,r)}if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName){this.help({error:true})}this._outputHelpIfRequested(i.unknown);this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();const checkForUnknownOptions=()=>{if(i.unknown.length>0){this.unknownOption(i.unknown[0])}};const o=`command:${this.name()}`;if(this._actionHandler){checkForUnknownOptions();this._processArguments();let i;i=this._chainOrCallHooks(i,"preAction");i=this._chainOrCall(i,(()=>this._actionHandler(this.processedArgs)));if(this.parent){i=this._chainOrCall(i,(()=>{this.parent.emit(o,t,r)}))}i=this._chainOrCallHooks(i,"postAction");return i}if(this.parent&&this.parent.listenerCount(o)){checkForUnknownOptions();this._processArguments();this.parent.emit(o,t,r)}else if(t.length){if(this._findCommand("*")){return this._dispatchSubcommand("*",t,r)}if(this.listenerCount("command:*")){this.emit("command:*",t,r)}else if(this.commands.length){this.unknownCommand()}else{checkForUnknownOptions();this._processArguments()}}else if(this.commands.length){checkForUnknownOptions();this.help({error:true})}else{checkForUnknownOptions();this._processArguments()}}_findCommand(t){if(!t)return undefined;return this.commands.find((r=>r._name===t||r._aliases.includes(t)))}_findOption(t){return this.options.find((r=>r.is(t)))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((t=>{t.options.forEach((r=>{if(r.mandatory&&t.getOptionValue(r.attributeName())===undefined){t.missingMandatoryOptionValue(r)}}))}))}_checkForConflictingLocalOptions(){const t=this.options.filter((t=>{const r=t.attributeName();if(this.getOptionValue(r)===undefined){return false}return this.getOptionValueSource(r)!=="default"}));const r=t.filter((t=>t.conflictsWith.length>0));r.forEach((r=>{const i=t.find((t=>r.conflictsWith.includes(t.attributeName())));if(i){this._conflictingOption(r,i)}}))}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((t=>{t._checkForConflictingLocalOptions()}))}parseOptions(t){const r=[];const i=[];let o=r;const a=t.slice();function maybeOption(t){return t.length>1&&t[0]==="-"}let c=null;while(a.length){const t=a.shift();if(t==="--"){if(o===i)o.push(t);o.push(...a);break}if(c&&!maybeOption(t)){this.emit(`option:${c.name()}`,t);continue}c=null;if(maybeOption(t)){const r=this._findOption(t);if(r){if(r.required){const t=a.shift();if(t===undefined)this.optionMissingArgument(r);this.emit(`option:${r.name()}`,t)}else if(r.optional){let t=null;if(a.length>0&&!maybeOption(a[0])){t=a.shift()}this.emit(`option:${r.name()}`,t)}else{this.emit(`option:${r.name()}`)}c=r.variadic?r:null;continue}}if(t.length>2&&t[0]==="-"&&t[1]!=="-"){const r=this._findOption(`-${t[1]}`);if(r){if(r.required||r.optional&&this._combineFlagAndOptionalValue){this.emit(`option:${r.name()}`,t.slice(2))}else{this.emit(`option:${r.name()}`);a.unshift(`-${t.slice(2)}`)}continue}}if(/^--[^=]+=/.test(t)){const r=t.indexOf("=");const i=this._findOption(t.slice(0,r));if(i&&(i.required||i.optional)){this.emit(`option:${i.name()}`,t.slice(r+1));continue}}if(maybeOption(t)){o=i}if((this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&i.length===0){if(this._findCommand(t)){r.push(t);if(a.length>0)i.push(...a);break}else if(this._getHelpCommand()&&t===this._getHelpCommand().name()){r.push(t);if(a.length>0)r.push(...a);break}else if(this._defaultCommandName){i.push(t);if(a.length>0)i.push(...a);break}}if(this._passThroughOptions){o.push(t);if(a.length>0)o.push(...a);break}o.push(t)}return{operands:r,unknown:i}}opts(){if(this._storeOptionsAsProperties){const t={};const r=this.options.length;for(let i=0;i<r;i++){const r=this.options[i].attributeName();t[r]=r===this._versionOptionName?this._version:this[r]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce(((t,r)=>Object.assign(t,r.opts())),{})}error(t,r){this._outputConfiguration.outputError(`${t}\n`,this._outputConfiguration.writeErr);if(typeof this._showHelpAfterError==="string"){this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`)}else if(this._showHelpAfterError){this._outputConfiguration.writeErr("\n");this.outputHelp({error:true})}const i=r||{};const o=i.exitCode||1;const a=i.code||"commander.error";this._exit(o,a,t)}_parseOptionsEnv(){this.options.forEach((t=>{if(t.envVar&&t.envVar in u.env){const r=t.attributeName();if(this.getOptionValue(r)===undefined||["default","config","env"].includes(this.getOptionValueSource(r))){if(t.required||t.optional){this.emit(`optionEnv:${t.name()}`,u.env[t.envVar])}else{this.emit(`optionEnv:${t.name()}`)}}}}))}_parseOptionsImplied(){const t=new y(this.options);const hasCustomOptionValue=t=>this.getOptionValue(t)!==undefined&&!["default","implied"].includes(this.getOptionValueSource(t));this.options.filter((r=>r.implied!==undefined&&hasCustomOptionValue(r.attributeName())&&t.valueFromOption(this.getOptionValue(r.attributeName()),r))).forEach((t=>{Object.keys(t.implied).filter((t=>!hasCustomOptionValue(t))).forEach((r=>{this.setOptionValueWithSource(r,t.implied[r],"implied")}))}))}missingArgument(t){const r=`error: missing required argument '${t}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(t){const r=`error: option '${t.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){const r=`error: required option '${t.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,r){const findBestOptionFromValue=t=>{const r=t.attributeName();const i=this.getOptionValue(r);const o=this.options.find((t=>t.negate&&r===t.attributeName()));const a=this.options.find((t=>!t.negate&&r===t.attributeName()));if(o&&(o.presetArg===undefined&&i===false||o.presetArg!==undefined&&i===o.presetArg)){return o}return a||t};const getErrorMessage=t=>{const r=findBestOptionFromValue(t);const i=r.attributeName();const o=this.getOptionValueSource(i);if(o==="env"){return`environment variable '${r.envVar}'`}return`option '${r.flags}'`};const i=`error: ${getErrorMessage(t)} cannot be used with ${getErrorMessage(r)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let r="";if(t.startsWith("--")&&this._showSuggestionAfterError){let i=[];let o=this;do{const t=o.createHelp().visibleOptions(o).filter((t=>t.long)).map((t=>t.long));i=i.concat(t);o=o.parent}while(o&&!o._enablePositionalOptions);r=v(t,i)}const i=`error: unknown option '${t}'${r}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;const r=this.registeredArguments.length;const i=r===1?"":"s";const o=this.parent?` for '${this.name()}'`:"";const a=`error: too many arguments${o}. Expected ${r} argument${i} but got ${t.length}.`;this.error(a,{code:"commander.excessArguments"})}unknownCommand(){const t=this.args[0];let r="";if(this._showSuggestionAfterError){const i=[];this.createHelp().visibleCommands(this).forEach((t=>{i.push(t.name());if(t.alias())i.push(t.alias())}));r=v(t,i)}const i=`error: unknown command '${t}'${r}`;this.error(i,{code:"commander.unknownCommand"})}version(t,r,i){if(t===undefined)return this._version;this._version=t;r=r||"-V, --version";i=i||"output the version number";const o=this.createOption(r,i);this._versionOptionName=o.attributeName();this._registerOption(o);this.on("option:"+o.name(),(()=>{this._outputConfiguration.writeOut(`${t}\n`);this._exit(0,"commander.version",t)}));return this}description(t,r){if(t===undefined&&r===undefined)return this._description;this._description=t;if(r){this._argsDescription=r}return this}summary(t){if(t===undefined)return this._summary;this._summary=t;return this}alias(t){if(t===undefined)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler){r=this.commands[this.commands.length-1]}if(t===r._name)throw new Error("Command alias can't be the same as its name");const i=this.parent?._findCommand(t);if(i){const r=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${r}'`)}r._aliases.push(t);return this}aliases(t){if(t===undefined)return this._aliases;t.forEach((t=>this.alias(t)));return this}usage(t){if(t===undefined){if(this._usage)return this._usage;const t=this.registeredArguments.map((t=>d(t)));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?t:[]).join(" ")}this._usage=t;return this}name(t){if(t===undefined)return this._name;this._name=t;return this}nameFromFilename(t){this._name=c.basename(t,c.extname(t));return this}executableDir(t){if(t===undefined)return this._executableDir;this._executableDir=t;return this}helpInformation(t){const r=this.createHelp();if(r.helpWidth===undefined){r.helpWidth=t&&t.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()}return r.formatHelp(this,r)}_getHelpContext(t){t=t||{};const r={error:!!t.error};let i;if(r.error){i=t=>this._outputConfiguration.writeErr(t)}else{i=t=>this._outputConfiguration.writeOut(t)}r.write=t.write||i;r.command=this;return r}outputHelp(t){let r;if(typeof t==="function"){r=t;t=undefined}const i=this._getHelpContext(t);this._getCommandAndAncestors().reverse().forEach((t=>t.emit("beforeAllHelp",i)));this.emit("beforeHelp",i);let o=this.helpInformation(i);if(r){o=r(o);if(typeof o!=="string"&&!Buffer.isBuffer(o)){throw new Error("outputHelp callback must return a string or a Buffer")}}i.write(o);if(this._getHelpOption()?.long){this.emit(this._getHelpOption().long)}this.emit("afterHelp",i);this._getCommandAndAncestors().forEach((t=>t.emit("afterAllHelp",i)))}helpOption(t,r){if(typeof t==="boolean"){if(t){this._helpOption=this._helpOption??undefined}else{this._helpOption=null}return this}t=t??"-h, --help";r=r??"display help for command";this._helpOption=this.createOption(t,r);return this}_getHelpOption(){if(this._helpOption===undefined){this.helpOption(undefined,undefined)}return this._helpOption}addHelpOption(t){this._helpOption=t;return this}help(t){this.outputHelp(t);let r=u.exitCode||0;if(r===0&&t&&typeof t!=="function"&&t.error){r=1}this._exit(r,"commander.help","(outputHelp)")}addHelpText(t,r){const i=["beforeAll","before","after","afterAll"];if(!i.includes(t)){throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${i.join("', '")}'`)}const o=`${t}Help`;this.on(o,(t=>{let i;if(typeof r==="function"){i=r({error:t.error,command:t.command})}else{i=r}if(i){t.write(`${i}\n`)}}));return this}_outputHelpIfRequested(t){const r=this._getHelpOption();const i=r&&t.find((t=>r.is(t)));if(i){this.outputHelp();this._exit(0,"commander.helpDisplayed","(outputHelp)")}}}function incrementNodeInspectorPort(t){return t.map((t=>{if(!t.startsWith("--inspect")){return t}let r;let i="127.0.0.1";let o="9229";let a;if((a=t.match(/^(--inspect(-brk)?)$/))!==null){r=a[1]}else if((a=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null){r=a[1];if(/^\d+$/.test(a[3])){o=a[3]}else{i=a[3]}}else if((a=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null){r=a[1];i=a[3];o=a[4]}if(r&&o!=="0"){return`${r}=${i}:${parseInt(o)+1}`}return t}))}r.Command=Command},5246:(t,r)=>{class CommanderError extends Error{constructor(t,r,i){super(i);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name;this.code=r;this.exitCode=t;this.nestedError=undefined}}class InvalidArgumentError extends CommanderError{constructor(t){super(1,"commander.invalidArgument",t);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name}}r.CommanderError=CommanderError;r.InvalidArgumentError=InvalidArgumentError},5889:(t,r,i)=>{const{humanReadableArgName:o}=i(3573);class Help{constructor(){this.helpWidth=undefined;this.sortSubcommands=false;this.sortOptions=false;this.showGlobalOptions=false}visibleCommands(t){const r=t.commands.filter((t=>!t._hidden));const i=t._getHelpCommand();if(i&&!i._hidden){r.push(i)}if(this.sortSubcommands){r.sort(((t,r)=>t.name().localeCompare(r.name())))}return r}compareOptions(t,r){const getSortKey=t=>t.short?t.short.replace(/^-/,""):t.long.replace(/^--/,"");return getSortKey(t).localeCompare(getSortKey(r))}visibleOptions(t){const r=t.options.filter((t=>!t.hidden));const i=t._getHelpOption();if(i&&!i.hidden){const o=i.short&&t._findOption(i.short);const a=i.long&&t._findOption(i.long);if(!o&&!a){r.push(i)}else if(i.long&&!a){r.push(t.createOption(i.long,i.description))}else if(i.short&&!o){r.push(t.createOption(i.short,i.description))}}if(this.sortOptions){r.sort(this.compareOptions)}return r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];const r=[];for(let i=t.parent;i;i=i.parent){const t=i.options.filter((t=>!t.hidden));r.push(...t)}if(this.sortOptions){r.sort(this.compareOptions)}return r}visibleArguments(t){if(t._argsDescription){t.registeredArguments.forEach((r=>{r.description=r.description||t._argsDescription[r.name()]||""}))}if(t.registeredArguments.find((t=>t.description))){return t.registeredArguments}return[]}subcommandTerm(t){const r=t.registeredArguments.map((t=>o(t))).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce(((t,i)=>Math.max(t,r.subcommandTerm(i).length)),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce(((t,i)=>Math.max(t,r.optionTerm(i).length)),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce(((t,i)=>Math.max(t,r.optionTerm(i).length)),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce(((t,i)=>Math.max(t,r.argumentTerm(i).length)),0)}commandUsage(t){let r=t._name;if(t._aliases[0]){r=r+"|"+t._aliases[0]}let i="";for(let r=t.parent;r;r=r.parent){i=r.name()+" "+i}return i+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){const r=[];if(t.argChoices){r.push(`choices: ${t.argChoices.map((t=>JSON.stringify(t))).join(", ")}`)}if(t.defaultValue!==undefined){const i=t.required||t.optional||t.isBoolean()&&typeof t.defaultValue==="boolean";if(i){r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`)}}if(t.presetArg!==undefined&&t.optional){r.push(`preset: ${JSON.stringify(t.presetArg)}`)}if(t.envVar!==undefined){r.push(`env: ${t.envVar}`)}if(r.length>0){return`${t.description} (${r.join(", ")})`}return t.description}argumentDescription(t){const r=[];if(t.argChoices){r.push(`choices: ${t.argChoices.map((t=>JSON.stringify(t))).join(", ")}`)}if(t.defaultValue!==undefined){r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`)}if(r.length>0){const i=`(${r.join(", ")})`;if(t.description){return`${t.description} ${i}`}return i}return t.description}formatHelp(t,r){const i=r.padWidth(t,r);const o=r.helpWidth||80;const a=2;const c=2;function formatItem(t,l){if(l){const u=`${t.padEnd(i+c)}${l}`;return r.wrap(u,o-a,i+c)}return t}function formatList(t){return t.join("\n").replace(/^/gm," ".repeat(a))}let l=[`Usage: ${r.commandUsage(t)}`,""];const u=r.commandDescription(t);if(u.length>0){l=l.concat([r.wrap(u,o,0),""])}const h=r.visibleArguments(t).map((t=>formatItem(r.argumentTerm(t),r.argumentDescription(t))));if(h.length>0){l=l.concat(["Arguments:",formatList(h),""])}const d=r.visibleOptions(t).map((t=>formatItem(r.optionTerm(t),r.optionDescription(t))));if(d.length>0){l=l.concat(["Options:",formatList(d),""])}if(this.showGlobalOptions){const i=r.visibleGlobalOptions(t).map((t=>formatItem(r.optionTerm(t),r.optionDescription(t))));if(i.length>0){l=l.concat(["Global Options:",formatList(i),""])}}const p=r.visibleCommands(t).map((t=>formatItem(r.subcommandTerm(t),r.subcommandDescription(t))));if(p.length>0){l=l.concat(["Commands:",formatList(p),""])}return l.join("\n")}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,r),r.longestArgumentTermLength(t,r))}wrap(t,r,i,o=40){const a=" \\f\\t\\v - \ufeff";const c=new RegExp(`[\\n][${a}]+`);if(t.match(c))return t;const l=r-i;if(l<o)return t;const u=t.slice(0,i);const h=t.slice(i).replace("\r\n","\n");const d=" ".repeat(i);const p="";const m=`\\s${p}`;const g=new RegExp(`\n|.{1,${l-1}}([${m}]|$)|[^${m}]+?([${m}]|$)`,"g");const y=h.match(g)||[];return u+y.map(((t,r)=>{if(t==="\n")return"";return(r>0?d:"")+t.trimEnd()})).join("\n")}}r.Help=Help},8127:(t,r,i)=>{const{InvalidArgumentError:o}=i(5246);class Option{constructor(t,r){this.flags=t;this.description=r||"";this.required=t.includes("<");this.optional=t.includes("[");this.variadic=/\w\.\.\.[>\]]$/.test(t);this.mandatory=false;const i=splitOptionFlags(t);this.short=i.shortFlag;this.long=i.longFlag;this.negate=false;if(this.long){this.negate=this.long.startsWith("--no-")}this.defaultValue=undefined;this.defaultValueDescription=undefined;this.presetArg=undefined;this.envVar=undefined;this.parseArg=undefined;this.hidden=false;this.argChoices=undefined;this.conflictsWith=[];this.implied=undefined}default(t,r){this.defaultValue=t;this.defaultValueDescription=r;return this}preset(t){this.presetArg=t;return this}conflicts(t){this.conflictsWith=this.conflictsWith.concat(t);return this}implies(t){let r=t;if(typeof t==="string"){r={[t]:true}}this.implied=Object.assign(this.implied||{},r);return this}env(t){this.envVar=t;return this}argParser(t){this.parseArg=t;return this}makeOptionMandatory(t=true){this.mandatory=!!t;return this}hideHelp(t=true){this.hidden=!!t;return this}_concatValue(t,r){if(r===this.defaultValue||!Array.isArray(r)){return[t]}return r.concat(t)}choices(t){this.argChoices=t.slice();this.parseArg=(t,r)=>{if(!this.argChoices.includes(t)){throw new o(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._concatValue(t,r)}return t};return this}name(){if(this.long){return this.long.replace(/^--/,"")}return this.short.replace(/^-/,"")}attributeName(){return camelcase(this.name().replace(/^no-/,""))}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class DualOptions{constructor(t){this.positiveOptions=new Map;this.negativeOptions=new Map;this.dualOptions=new Set;t.forEach((t=>{if(t.negate){this.negativeOptions.set(t.attributeName(),t)}else{this.positiveOptions.set(t.attributeName(),t)}}));this.negativeOptions.forEach(((t,r)=>{if(this.positiveOptions.has(r)){this.dualOptions.add(r)}}))}valueFromOption(t,r){const i=r.attributeName();if(!this.dualOptions.has(i))return true;const o=this.negativeOptions.get(i).presetArg;const a=o!==undefined?o:false;return r.negate===(a===t)}}function camelcase(t){return t.split("-").reduce(((t,r)=>t+r[0].toUpperCase()+r.slice(1)))}function splitOptionFlags(t){let r;let i;const o=t.split(/[ |,]+/);if(o.length>1&&!/^[[<]/.test(o[1]))r=o.shift();i=o.shift();if(!r&&/^-[^-]$/.test(i)){r=i;i=undefined}return{shortFlag:r,longFlag:i}}r.Option=Option;r.DualOptions=DualOptions},3733:(t,r)=>{const i=3;function editDistance(t,r){if(Math.abs(t.length-r.length)>i)return Math.max(t.length,r.length);const o=[];for(let r=0;r<=t.length;r++){o[r]=[r]}for(let t=0;t<=r.length;t++){o[0][t]=t}for(let i=1;i<=r.length;i++){for(let a=1;a<=t.length;a++){let c=1;if(t[a-1]===r[i-1]){c=0}else{c=1}o[a][i]=Math.min(o[a-1][i]+1,o[a][i-1]+1,o[a-1][i-1]+c);if(a>1&&i>1&&t[a-1]===r[i-2]&&t[a-2]===r[i-1]){o[a][i]=Math.min(o[a][i],o[a-2][i-2]+1)}}}return o[t.length][r.length]}function suggestSimilar(t,r){if(!r||r.length===0)return"";r=Array.from(new Set(r));const o=t.startsWith("--");if(o){t=t.slice(2);r=r.map((t=>t.slice(2)))}let a=[];let c=i;const l=.4;r.forEach((r=>{if(r.length<=1)return;const i=editDistance(t,r);const o=Math.max(t.length,r.length);const u=(o-i)/o;if(u>l){if(i<c){c=i;a=[r]}else if(i===c){a.push(r)}}}));a.sort(((t,r)=>t.localeCompare(r)));if(o){a=a.map((t=>`--${t}`))}if(a.length>1){return`\n(Did you mean one of ${a.join(", ")}?)`}if(a.length===1){return`\n(Did you mean ${a[0]}?)`}return""}r.suggestSimilar=suggestSimilar},2387:(t,r,i)=>{"use strict";const{normalizeIPv6:o,normalizeIPv4:a,removeDotSegments:c,recomposeAuthority:l,normalizeComponentEncoding:u}=i(3918);const h=i(7475);function normalize(t,r){if(typeof t==="string"){t=serialize(parse(t,r),r)}else if(typeof t==="object"){t=parse(serialize(t,r),r)}return t}function resolve(t,r,i){const o=Object.assign({scheme:"null"},i);const a=resolveComponents(parse(t,o),parse(r,o),o,true);return serialize(a,{...o,skipEscape:true})}function resolveComponents(t,r,i,o){const a={};if(!o){t=parse(serialize(t,i),i);r=parse(serialize(r,i),i)}i=i||{};if(!i.tolerant&&r.scheme){a.scheme=r.scheme;a.userinfo=r.userinfo;a.host=r.host;a.port=r.port;a.path=c(r.path||"");a.query=r.query}else{if(r.userinfo!==undefined||r.host!==undefined||r.port!==undefined){a.userinfo=r.userinfo;a.host=r.host;a.port=r.port;a.path=c(r.path||"");a.query=r.query}else{if(!r.path){a.path=t.path;if(r.query!==undefined){a.query=r.query}else{a.query=t.query}}else{if(r.path.charAt(0)==="/"){a.path=c(r.path)}else{if((t.userinfo!==undefined||t.host!==undefined||t.port!==undefined)&&!t.path){a.path="/"+r.path}else if(!t.path){a.path=r.path}else{a.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+r.path}a.path=c(a.path)}a.query=r.query}a.userinfo=t.userinfo;a.host=t.host;a.port=t.port}a.scheme=t.scheme}a.fragment=r.fragment;return a}function equal(t,r,i){if(typeof t==="string"){t=unescape(t);t=serialize(u(parse(t,i),true),{...i,skipEscape:true})}else if(typeof t==="object"){t=serialize(u(t,true),{...i,skipEscape:true})}if(typeof r==="string"){r=unescape(r);r=serialize(u(parse(r,i),true),{...i,skipEscape:true})}else if(typeof r==="object"){r=serialize(u(r,true),{...i,skipEscape:true})}return t.toLowerCase()===r.toLowerCase()}function serialize(t,r){const i={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""};const o=Object.assign({},r);const a=[];const u=h[(o.scheme||i.scheme||"").toLowerCase()];if(u&&u.serialize)u.serialize(i,o);if(i.path!==undefined){if(!o.skipEscape){i.path=escape(i.path);if(i.scheme!==undefined){i.path=i.path.split("%3A").join(":")}}else{i.path=unescape(i.path)}}if(o.reference!=="suffix"&&i.scheme){a.push(i.scheme,":")}const d=l(i,o);if(d!==undefined){if(o.reference!=="suffix"){a.push("//")}a.push(d);if(i.path&&i.path.charAt(0)!=="/"){a.push("/")}}if(i.path!==undefined){let t=i.path;if(!o.absolutePath&&(!u||!u.absolutePath)){t=c(t)}if(d===undefined){t=t.replace(/^\/\//u,"/%2F")}a.push(t)}if(i.query!==undefined){a.push("?",i.query)}if(i.fragment!==undefined){a.push("#",i.fragment)}return a.join("")}const d=Array.from({length:127},((t,r)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(r))));function nonSimpleDomain(t){let r=0;for(let i=0,o=t.length;i<o;++i){r=t.charCodeAt(i);if(r>126||d[r]){return true}}return false}const p=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function parse(t,r){const i=Object.assign({},r);const c={scheme:undefined,userinfo:undefined,host:"",port:undefined,path:"",query:undefined,fragment:undefined};const l=t.indexOf("%")!==-1;let u=false;if(i.reference==="suffix")t=(i.scheme?i.scheme+":":"")+"//"+t;const d=t.match(p);if(d){c.scheme=d[1];c.userinfo=d[3];c.host=d[4];c.port=parseInt(d[5],10);c.path=d[6]||"";c.query=d[7];c.fragment=d[8];if(isNaN(c.port)){c.port=d[5]}if(c.host){const t=a(c.host);if(t.isIPV4===false){const r=o(t.host,{isIPV4:false});c.host=r.host.toLowerCase();u=r.isIPV6}else{c.host=t.host;u=true}}if(c.scheme===undefined&&c.userinfo===undefined&&c.host===undefined&&c.port===undefined&&!c.path&&c.query===undefined){c.reference="same-document"}else if(c.scheme===undefined){c.reference="relative"}else if(c.fragment===undefined){c.reference="absolute"}else{c.reference="uri"}if(i.reference&&i.reference!=="suffix"&&i.reference!==c.reference){c.error=c.error||"URI is not a "+i.reference+" reference."}const t=h[(i.scheme||c.scheme||"").toLowerCase()];if(!i.unicodeSupport&&(!t||!t.unicodeSupport)){if(c.host&&(i.domainHost||t&&t.domainHost)&&u===false&&nonSimpleDomain(c.host)){try{c.host=URL.domainToASCII(c.host.toLowerCase())}catch(t){c.error=c.error||"Host's domain name can not be converted to ASCII: "+t}}}if(!t||t&&!t.skipNormalize){if(l&&c.scheme!==undefined){c.scheme=unescape(c.scheme)}if(l&&c.host!==undefined){c.host=unescape(c.host)}if(c.path!==undefined&&c.path.length){c.path=escape(unescape(c.path))}if(c.fragment!==undefined&&c.fragment.length){c.fragment=encodeURI(decodeURIComponent(c.fragment))}}if(t&&t.parse){t.parse(c,i)}}else{c.error=c.error||"URI can not be parsed."}return c}const m={SCHEMES:h,normalize:normalize,resolve:resolve,resolveComponents:resolveComponents,equal:equal,serialize:serialize,parse:parse};t.exports=m;t.exports["default"]=m;t.exports.fastUri=m},7475:t=>{"use strict";const r=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu;const i=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function isSecure(t){return typeof t.secure==="boolean"?t.secure:String(t.scheme).toLowerCase()==="wss"}function httpParse(t){if(!t.host){t.error=t.error||"HTTP URIs must have a host."}return t}function httpSerialize(t){const r=String(t.scheme).toLowerCase()==="https";if(t.port===(r?443:80)||t.port===""){t.port=undefined}if(!t.path){t.path="/"}return t}function wsParse(t){t.secure=isSecure(t);t.resourceName=(t.path||"/")+(t.query?"?"+t.query:"");t.path=undefined;t.query=undefined;return t}function wsSerialize(t){if(t.port===(isSecure(t)?443:80)||t.port===""){t.port=undefined}if(typeof t.secure==="boolean"){t.scheme=t.secure?"wss":"ws";t.secure=undefined}if(t.resourceName){const[r,i]=t.resourceName.split("?");t.path=r&&r!=="/"?r:undefined;t.query=i;t.resourceName=undefined}t.fragment=undefined;return t}function urnParse(t,r){if(!t.path){t.error="URN can not be parsed";return t}const o=t.path.match(i);if(o){const i=r.scheme||t.scheme||"urn";t.nid=o[1].toLowerCase();t.nss=o[2];const a=`${i}:${r.nid||t.nid}`;const c=d[a];t.path=undefined;if(c){t=c.parse(t,r)}}else{t.error=t.error||"URN can not be parsed."}return t}function urnSerialize(t,r){const i=r.scheme||t.scheme||"urn";const o=t.nid.toLowerCase();const a=`${i}:${r.nid||o}`;const c=d[a];if(c){t=c.serialize(t,r)}const l=t;const u=t.nss;l.path=`${o||r.nid}:${u}`;r.skipEscape=true;return l}function urnuuidParse(t,i){const o=t;o.uuid=o.nss;o.nss=undefined;if(!i.tolerant&&(!o.uuid||!r.test(o.uuid))){o.error=o.error||"UUID is not valid."}return o}function urnuuidSerialize(t){const r=t;r.nss=(t.uuid||"").toLowerCase();return r}const o={scheme:"http",domainHost:true,parse:httpParse,serialize:httpSerialize};const a={scheme:"https",domainHost:o.domainHost,parse:httpParse,serialize:httpSerialize};const c={scheme:"ws",domainHost:true,parse:wsParse,serialize:wsSerialize};const l={scheme:"wss",domainHost:c.domainHost,parse:c.parse,serialize:c.serialize};const u={scheme:"urn",parse:urnParse,serialize:urnSerialize,skipNormalize:true};const h={scheme:"urn:uuid",parse:urnuuidParse,serialize:urnuuidSerialize,skipNormalize:true};const d={http:o,https:a,ws:c,wss:l,urn:u,"urn:uuid":h};t.exports=d},6046:t=>{"use strict";const r={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};t.exports={HEX:r}},3918:(t,r,i)=>{"use strict";const{HEX:o}=i(6046);function normalizeIPv4(t){if(findToken(t,".")<3){return{host:t,isIPV4:false}}const r=t.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[];const[i]=r;if(i){return{host:stripLeadingZeros(i,"."),isIPV4:true}}else{return{host:t,isIPV4:false}}}function stringArrayToHexStripped(t,r=false){let i="";let a=true;for(const r of t){if(o[r]===undefined)return undefined;if(r!=="0"&&a===true)a=false;if(!a)i+=r}if(r&&i.length===0)i="0";return i}function getIPV6(t){let r=0;const i={error:false,address:"",zone:""};const o=[];const a=[];let c=false;let l=false;let u=false;function consume(){if(a.length){if(c===false){const t=stringArrayToHexStripped(a);if(t!==undefined){o.push(t)}else{i.error=true;return false}}a.length=0}return true}for(let h=0;h<t.length;h++){const d=t[h];if(d==="["||d==="]"){continue}if(d===":"){if(l===true){u=true}if(!consume()){break}r++;o.push(":");if(r>7){i.error=true;break}if(h-1>=0&&t[h-1]===":"){l=true}continue}else if(d==="%"){if(!consume()){break}c=true}else{a.push(d);continue}}if(a.length){if(c){i.zone=a.join("")}else if(u){o.push(a.join(""))}else{o.push(stringArrayToHexStripped(a))}}i.address=o.join("");return i}function normalizeIPv6(t,r={}){if(findToken(t,":")<2){return{host:t,isIPV6:false}}const i=getIPV6(t);if(!i.error){let t=i.address;let r=i.address;if(i.zone){t+="%"+i.zone;r+="%25"+i.zone}return{host:t,escapedHost:r,isIPV6:true}}else{return{host:t,isIPV6:false}}}function stripLeadingZeros(t,r){let i="";let o=true;const a=t.length;for(let c=0;c<a;c++){const l=t[c];if(l==="0"&&o){if(c+1<=a&&t[c+1]===r||c+1===a){i+=l;o=false}}else{if(l===r){o=true}else{o=false}i+=l}}return i}function findToken(t,r){let i=0;for(let o=0;o<t.length;o++){if(t[o]===r)i++}return i}const a=/^\.\.?\//u;const c=/^\/\.(?:\/|$)/u;const l=/^\/\.\.(?:\/|$)/u;const u=/^\/?(?:.|\n)*?(?=\/|$)/u;function removeDotSegments(t){const r=[];while(t.length){if(t.match(a)){t=t.replace(a,"")}else if(t.match(c)){t=t.replace(c,"/")}else if(t.match(l)){t=t.replace(l,"/");r.pop()}else if(t==="."||t===".."){t=""}else{const i=t.match(u);if(i){const o=i[0];t=t.slice(o.length);r.push(o)}else{throw new Error("Unexpected dot segment condition")}}}return r.join("")}function normalizeComponentEncoding(t,r){const i=r!==true?escape:unescape;if(t.scheme!==undefined){t.scheme=i(t.scheme)}if(t.userinfo!==undefined){t.userinfo=i(t.userinfo)}if(t.host!==undefined){t.host=i(t.host)}if(t.path!==undefined){t.path=i(t.path)}if(t.query!==undefined){t.query=i(t.query)}if(t.fragment!==undefined){t.fragment=i(t.fragment)}return t}function recomposeAuthority(t,r){const i=[];if(t.userinfo!==undefined){i.push(t.userinfo);i.push("@")}if(t.host!==undefined){let r=unescape(t.host);const o=normalizeIPv4(r);if(o.isIPV4){r=o.host}else{const i=normalizeIPv6(o.host,{isIPV4:false});if(i.isIPV6===true){r=`[${i.escapedHost}]`}else{r=t.host}}i.push(r)}if(typeof t.port==="number"||typeof t.port==="string"){i.push(":");i.push(String(t.port))}return i.length?i.join(""):undefined}t.exports={recomposeAuthority:recomposeAuthority,normalizeComponentEncoding:normalizeComponentEncoding,removeDotSegments:removeDotSegments,normalizeIPv4:normalizeIPv4,normalizeIPv6:normalizeIPv6,stringArrayToHexStripped:stringArrayToHexStripped}},3837:t=>{"use strict";t.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},7216:t=>{"use strict";t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/applicator","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/applicator":true},"$dynamicAnchor":"meta","title":"Applicator vocabulary meta-schema","type":["object","boolean"],"properties":{"prefixItems":{"$ref":"#/$defs/schemaArray"},"items":{"$dynamicRef":"#meta"},"contains":{"$dynamicRef":"#meta"},"additionalProperties":{"$dynamicRef":"#meta"},"properties":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"},"propertyNames":{"format":"regex"},"default":{}},"dependentSchemas":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"},"default":{}},"propertyNames":{"$dynamicRef":"#meta"},"if":{"$dynamicRef":"#meta"},"then":{"$dynamicRef":"#meta"},"else":{"$dynamicRef":"#meta"},"allOf":{"$ref":"#/$defs/schemaArray"},"anyOf":{"$ref":"#/$defs/schemaArray"},"oneOf":{"$ref":"#/$defs/schemaArray"},"not":{"$dynamicRef":"#meta"}},"$defs":{"schemaArray":{"type":"array","minItems":1,"items":{"$dynamicRef":"#meta"}}}}')},8226:t=>{"use strict";t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/content","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/content":true},"$dynamicAnchor":"meta","title":"Content vocabulary meta-schema","type":["object","boolean"],"properties":{"contentEncoding":{"type":"string"},"contentMediaType":{"type":"string"},"contentSchema":{"$dynamicRef":"#meta"}}}')},518:t=>{"use strict";t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/core","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/core":true},"$dynamicAnchor":"meta","title":"Core vocabulary meta-schema","type":["object","boolean"],"properties":{"$id":{"$ref":"#/$defs/uriReferenceString","$comment":"Non-empty fragments not allowed.","pattern":"^[^#]*#?$"},"$schema":{"$ref":"#/$defs/uriString"},"$ref":{"$ref":"#/$defs/uriReferenceString"},"$anchor":{"$ref":"#/$defs/anchorString"},"$dynamicRef":{"$ref":"#/$defs/uriReferenceString"},"$dynamicAnchor":{"$ref":"#/$defs/anchorString"},"$vocabulary":{"type":"object","propertyNames":{"$ref":"#/$defs/uriString"},"additionalProperties":{"type":"boolean"}},"$comment":{"type":"string"},"$defs":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"}}},"$defs":{"anchorString":{"type":"string","pattern":"^[A-Za-z_][-A-Za-z0-9._]*$"},"uriString":{"type":"string","format":"uri"},"uriReferenceString":{"type":"string","format":"uri-reference"}}}')},4588:t=>{"use strict";t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/format-annotation","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/format-annotation":true},"$dynamicAnchor":"meta","title":"Format vocabulary meta-schema for annotation results","type":["object","boolean"],"properties":{"format":{"type":"string"}}}')},5707:t=>{"use strict";t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/meta-data","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/meta-data":true},"$dynamicAnchor":"meta","title":"Meta-data vocabulary meta-schema","type":["object","boolean"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"default":true,"deprecated":{"type":"boolean","default":false},"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true}}}')},9547:t=>{"use strict";t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/unevaluated","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/unevaluated":true},"$dynamicAnchor":"meta","title":"Unevaluated applicator vocabulary meta-schema","type":["object","boolean"],"properties":{"unevaluatedItems":{"$dynamicRef":"#meta"},"unevaluatedProperties":{"$dynamicRef":"#meta"}}}')},7082:t=>{"use strict";t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/validation","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/validation":true},"$dynamicAnchor":"meta","title":"Validation vocabulary meta-schema","type":["object","boolean"],"properties":{"type":{"anyOf":[{"$ref":"#/$defs/simpleTypes"},{"type":"array","items":{"$ref":"#/$defs/simpleTypes"},"minItems":1,"uniqueItems":true}]},"const":true,"enum":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/$defs/nonNegativeInteger"},"minLength":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"maxItems":{"$ref":"#/$defs/nonNegativeInteger"},"minItems":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxContains":{"$ref":"#/$defs/nonNegativeInteger"},"minContains":{"$ref":"#/$defs/nonNegativeInteger","default":1},"maxProperties":{"$ref":"#/$defs/nonNegativeInteger"},"minProperties":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"required":{"$ref":"#/$defs/stringArray"},"dependentRequired":{"type":"object","additionalProperties":{"$ref":"#/$defs/stringArray"}}},"$defs":{"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"$ref":"#/$defs/nonNegativeInteger","default":0},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}}}')},1678:t=>{"use strict";t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/schema","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/core":true,"https://json-schema.org/draft/2020-12/vocab/applicator":true,"https://json-schema.org/draft/2020-12/vocab/unevaluated":true,"https://json-schema.org/draft/2020-12/vocab/validation":true,"https://json-schema.org/draft/2020-12/vocab/meta-data":true,"https://json-schema.org/draft/2020-12/vocab/format-annotation":true,"https://json-schema.org/draft/2020-12/vocab/content":true},"$dynamicAnchor":"meta","title":"Core and Validation specifications meta-schema","allOf":[{"$ref":"meta/core"},{"$ref":"meta/applicator"},{"$ref":"meta/unevaluated"},{"$ref":"meta/validation"},{"$ref":"meta/meta-data"},{"$ref":"meta/format-annotation"},{"$ref":"meta/content"}],"type":["object","boolean"],"$comment":"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.","properties":{"definitions":{"$comment":"\\"definitions\\" has been replaced by \\"$defs\\".","type":"object","additionalProperties":{"$dynamicRef":"#meta"},"deprecated":true,"default":{}},"dependencies":{"$comment":"\\"dependencies\\" has been split and replaced by \\"dependentSchemas\\" and \\"dependentRequired\\" in order to serve their differing semantics.","type":"object","additionalProperties":{"anyOf":[{"$dynamicRef":"#meta"},{"$ref":"meta/validation#/$defs/stringArray"}]},"deprecated":true,"default":{}},"$recursiveAnchor":{"$comment":"\\"$recursiveAnchor\\" has been replaced by \\"$dynamicAnchor\\".","$ref":"meta/core#/$defs/anchorString","deprecated":true},"$recursiveRef":{"$comment":"\\"$recursiveRef\\" has been replaced by \\"$dynamicRef\\".","$ref":"meta/core#/$defs/uriReferenceString","deprecated":true}}}')},2079:t=>{"use strict";t.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},2040:t=>{"use strict";t.exports=JSON.parse('[{"name":"Agola CI","constant":"AGOLA","env":"AGOLA_GIT_REF","pr":"AGOLA_PULL_REQUEST_ID"},{"name":"Appcircle","constant":"APPCIRCLE","env":"AC_APPCIRCLE"},{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"TF_BUILD","pr":{"BUILD_REASON":"PullRequest"}},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"Codefresh","constant":"CODEFRESH","env":"CF_BUILD_ID","pr":{"any":["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{"name":"Codemagic","constant":"CODEMAGIC","env":"CM_BUILD_ID","pr":"CM_PULL_REQUEST"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"Earthly","constant":"EARTHLY","env":"EARTHLY_CI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"Gitea Actions","constant":"GITEA_ACTIONS","env":"GITEA_ACTIONS"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI","pr":"CI_MERGE_REQUEST_ID"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Google Cloud Build","constant":"GOOGLE_CLOUD_BUILD","env":"BUILDER_OUTPUT"},{"name":"Harness CI","constant":"HARNESS","env":"HARNESS_BUILD_ID"},{"name":"Heroku","constant":"HEROKU","env":{"env":"NODE","includes":"/app/.heroku/node/bin/node"}},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"LayerCI","constant":"LAYERCI","env":"LAYERCI","pr":"LAYERCI_PULL_REQUEST"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"Prow","constant":"PROW","env":"PROW_JOB_ID"},{"name":"ReleaseHub","constant":"RELEASEHUB","env":"RELEASE_BUILD_ID"},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Screwdriver","constant":"SCREWDRIVER","env":"SCREWDRIVER","pr":{"env":"SD_PULL_REQUEST","ne":"false"}},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Sourcehut","constant":"SOURCEHUT","env":{"CI_NAME":"sourcehut"}},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}},{"name":"Vela","constant":"VELA","env":"VELA","pr":{"VELA_PULL_REQUEST":"1"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]},"pr":"VERCEL_GIT_PULL_REQUEST_ID"},{"name":"Visual Studio App Center","constant":"APPCENTER","env":"APPCENTER_BUILD_ID"},{"name":"Woodpecker","constant":"WOODPECKER","env":{"CI":"woodpecker"},"pr":{"CI_BUILD_EVENT":"pull_request"}},{"name":"Xcode Cloud","constant":"XCODE_CLOUD","env":"CI_XCODE_PROJECT","pr":"CI_PULL_REQUEST_NUMBER"},{"name":"Xcode Server","constant":"XCODE_SERVER","env":"XCS"}]')}};var r={};function __nccwpck_require__(i){var o=r[i];if(o!==undefined){return o.exports}var a=r[i]={exports:{}};var c=true;try{t[i](a,a.exports,__nccwpck_require__);c=false}finally{if(c)delete r[i]}return a.exports}(()=>{__nccwpck_require__.n=t=>{var r=t&&t.__esModule?()=>t["default"]:()=>t;__nccwpck_require__.d(r,{a:r});return r}})();(()=>{__nccwpck_require__.d=(t,r)=>{for(var i in r){if(__nccwpck_require__.o(r,i)&&!__nccwpck_require__.o(t,i)){Object.defineProperty(t,i,{enumerable:true,get:r[i]})}}}})();(()=>{__nccwpck_require__.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r)})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var i={};(()=>{"use strict";var t=__nccwpck_require__(7362);var r=__nccwpck_require__.n(t);var i=__nccwpck_require__(7944);const{DM:o,gu:a,er:c,Ww:l,b7:u,Di:h,a2:d,uB:p,ef:m,c$:g,_V:y}=i;const v=require("node:util");var b=__nccwpck_require__(1708);var w=__nccwpck_require__(3024);var E=__nccwpck_require__(6760);const S=require("node:crypto");const $=require("node:assert");const isObject=t=>{const r=typeof t;return t!==null&&(r==="object"||r==="function")};const isEmptyObject=t=>isObject(t)&&Object.keys(t).length===0;const R=new Set(["__proto__","prototype","constructor"]);const P=new Set("0123456789");function getPathSegments(t){const r=[];let i="";let o="start";let a=false;for(const c of t){switch(c){case"\\":{if(o==="index"){throw new Error("Invalid character in an index")}if(o==="indexEnd"){throw new Error("Invalid character after an index")}if(a){i+=c}o="property";a=!a;break}case".":{if(o==="index"){throw new Error("Invalid character in an index")}if(o==="indexEnd"){o="property";break}if(a){a=false;i+=c;break}if(R.has(i)){return[]}r.push(i);i="";o="property";break}case"[":{if(o==="index"){throw new Error("Invalid character in an index")}if(o==="indexEnd"){o="index";break}if(a){a=false;i+=c;break}if(o==="property"){if(R.has(i)){return[]}r.push(i);i=""}o="index";break}case"]":{if(o==="index"){r.push(Number.parseInt(i,10));i="";o="indexEnd";break}if(o==="indexEnd"){throw new Error("Invalid character after an index")}}default:{if(o==="index"&&!P.has(c)){throw new Error("Invalid character in an index")}if(o==="indexEnd"){throw new Error("Invalid character after an index")}if(o==="start"){o="property"}if(a){a=false;i+="\\"}i+=c}}}if(a){i+="\\"}switch(o){case"property":{if(R.has(i)){return[]}r.push(i);break}case"index":{throw new Error("Index was not closed")}case"start":{r.push("");break}}return r}function isStringIndex(t,r){if(typeof r!=="number"&&Array.isArray(t)){const i=Number.parseInt(r,10);return Number.isInteger(i)&&t[i]===t[r]}return false}function assertNotStringIndex(t,r){if(isStringIndex(t,r)){throw new Error("Cannot use string index")}}function getProperty(t,r,i){if(!isObject(t)||typeof r!=="string"){return i===undefined?t:i}const o=getPathSegments(r);if(o.length===0){return i}for(let r=0;r<o.length;r++){const a=o[r];if(isStringIndex(t,a)){t=r===o.length-1?undefined:null}else{t=t[a]}if(t===undefined||t===null){if(r!==o.length-1){return i}break}}return t===undefined?i:t}function setProperty(t,r,i){if(!isObject(t)||typeof r!=="string"){return t}const o=t;const a=getPathSegments(r);for(let r=0;r<a.length;r++){const o=a[r];assertNotStringIndex(t,o);if(r===a.length-1){t[o]=i}else if(!isObject(t[o])){t[o]=typeof a[r+1]==="number"?[]:{}}t=t[o]}return o}function deleteProperty(t,r){if(!isObject(t)||typeof r!=="string"){return false}const i=getPathSegments(r);for(let r=0;r<i.length;r++){const o=i[r];assertNotStringIndex(t,o);if(r===i.length-1){delete t[o];return true}t=t[o];if(!isObject(t)){return false}}}function hasProperty(t,r){if(!isObject(t)||typeof r!=="string"){return false}const i=getPathSegments(r);if(i.length===0){return false}for(const r of i){if(!isObject(t)||!(r in t)||isStringIndex(t,r)){return false}t=t[r]}return true}function escapePath(t){if(typeof t!=="string"){throw new TypeError("Expected a string")}return t.replaceAll(/[\\.[]/g,"\\$&")}function entries(t){const r=Object.entries(t);if(Array.isArray(t)){return r.map((([t,r])=>[Number(t),r]))}return r}function stringifyPath(t){let r="";for(let[i,o]of entries(t)){if(typeof o==="number"){r+=`[${o}]`}else{o=escapePath(o);r+=i===0?o:`.${o}`}}return r}function*deepKeysIterator(t,r=[]){if(!isObject(t)||isEmptyObject(t)){if(r.length>0){yield stringifyPath(r)}return}for(const[i,o]of entries(t)){yield*deepKeysIterator(o,[...r,i])}}function deepKeys(t){return[...deepKeysIterator(t)]}const O=require("node:os");const A=O.homedir();const x=O.tmpdir();const{env:T}=b;const macos=t=>{const r=E.join(A,"Library");return{data:E.join(r,"Application Support",t),config:E.join(r,"Preferences",t),cache:E.join(r,"Caches",t),log:E.join(r,"Logs",t),temp:E.join(x,t)}};const windows=t=>{const r=T.APPDATA||E.join(A,"AppData","Roaming");const i=T.LOCALAPPDATA||E.join(A,"AppData","Local");return{data:E.join(i,t,"Data"),config:E.join(r,t,"Config"),cache:E.join(i,t,"Cache"),log:E.join(i,t,"Log"),temp:E.join(x,t)}};const linux=t=>{const r=E.basename(A);return{data:E.join(T.XDG_DATA_HOME||E.join(A,".local","share"),t),config:E.join(T.XDG_CONFIG_HOME||E.join(A,".config"),t),cache:E.join(T.XDG_CACHE_HOME||E.join(A,".cache"),t),log:E.join(T.XDG_STATE_HOME||E.join(A,".local","state"),t),temp:E.join(x,r,t)}};function envPaths(t,{suffix:r="nodejs"}={}){if(typeof t!=="string"){throw new TypeError(`Expected a string, got ${typeof t}`)}if(r){t+=`-${r}`}if(b.platform==="darwin"){return macos(t)}if(b.platform==="win32"){return windows(t)}return linux(t)}const attemptifyAsync=(t,r)=>function attemptified(...i){return t.apply(undefined,i).catch(r)};const attemptifySync=(t,r)=>function attemptified(...i){try{return t.apply(undefined,i)}catch(t){return r(t)}};const k=b.getuid?!b.getuid():false;const C=1e4;const NOOP=()=>undefined;const I={isChangeErrorOk:t=>{if(!I.isNodeError(t))return false;const{code:r}=t;if(r==="ENOSYS")return true;if(!k&&(r==="EINVAL"||r==="EPERM"))return true;return false},isNodeError:t=>t instanceof Error,isRetriableError:t=>{if(!I.isNodeError(t))return false;const{code:r}=t;if(r==="EMFILE"||r==="ENFILE"||r==="EAGAIN"||r==="EBUSY"||r==="EACCESS"||r==="EACCES"||r==="EACCS"||r==="EPERM")return true;return false},onChangeError:t=>{if(!I.isNodeError(t))throw t;if(I.isChangeErrorOk(t))return;throw t}};const N=I;class RetryfyQueue{constructor(){this.interval=25;this.intervalId=undefined;this.limit=C;this.queueActive=new Set;this.queueWaiting=new Set;this.init=()=>{if(this.intervalId)return;this.intervalId=setInterval(this.tick,this.interval)};this.reset=()=>{if(!this.intervalId)return;clearInterval(this.intervalId);delete this.intervalId};this.add=t=>{this.queueWaiting.add(t);if(this.queueActive.size<this.limit/2){this.tick()}else{this.init()}};this.remove=t=>{this.queueWaiting.delete(t);this.queueActive.delete(t)};this.schedule=()=>new Promise((t=>{const cleanup=()=>this.remove(resolver);const resolver=()=>t(cleanup);this.add(resolver)}));this.tick=()=>{if(this.queueActive.size>=this.limit)return;if(!this.queueWaiting.size)return this.reset();for(const t of this.queueWaiting){if(this.queueActive.size>=this.limit)break;this.queueWaiting.delete(t);this.queueActive.add(t);t()}}}}const D=new RetryfyQueue;const retryifyAsync=(t,r)=>function retrified(i){return function attempt(...o){return D.schedule().then((a=>{const onResolve=t=>{a();return t};const onReject=t=>{a();if(Date.now()>=i)throw t;if(r(t)){const t=Math.round(100*Math.random());const r=new Promise((r=>setTimeout(r,t)));return r.then((()=>attempt.apply(undefined,o)))}throw t};return t.apply(undefined,o).then(onResolve,onReject)}))}};const retryifySync=(t,r)=>function retrified(i){return function attempt(...o){try{return t.apply(undefined,o)}catch(t){if(Date.now()>i)throw t;if(r(t))return attempt.apply(undefined,o);throw t}}};const L={attempt:{chmod:attemptifyAsync((0,v.promisify)(w.chmod),N.onChangeError),chown:attemptifyAsync((0,v.promisify)(w.chown),N.onChangeError),close:attemptifyAsync((0,v.promisify)(w.close),NOOP),fsync:attemptifyAsync((0,v.promisify)(w.fsync),NOOP),mkdir:attemptifyAsync((0,v.promisify)(w.mkdir),NOOP),realpath:attemptifyAsync((0,v.promisify)(w.realpath),NOOP),stat:attemptifyAsync((0,v.promisify)(w.stat),NOOP),unlink:attemptifyAsync((0,v.promisify)(w.unlink),NOOP),chmodSync:attemptifySync(w.chmodSync,N.onChangeError),chownSync:attemptifySync(w.chownSync,N.onChangeError),closeSync:attemptifySync(w.closeSync,NOOP),existsSync:attemptifySync(w.existsSync,NOOP),fsyncSync:attemptifySync(w.fsync,NOOP),mkdirSync:attemptifySync(w.mkdirSync,NOOP),realpathSync:attemptifySync(w.realpathSync,NOOP),statSync:attemptifySync(w.statSync,NOOP),unlinkSync:attemptifySync(w.unlinkSync,NOOP)},retry:{close:retryifyAsync((0,v.promisify)(w.close),N.isRetriableError),fsync:retryifyAsync((0,v.promisify)(w.fsync),N.isRetriableError),open:retryifyAsync((0,v.promisify)(w.open),N.isRetriableError),readFile:retryifyAsync((0,v.promisify)(w.readFile),N.isRetriableError),rename:retryifyAsync((0,v.promisify)(w.rename),N.isRetriableError),stat:retryifyAsync((0,v.promisify)(w.stat),N.isRetriableError),write:retryifyAsync((0,v.promisify)(w.write),N.isRetriableError),writeFile:retryifyAsync((0,v.promisify)(w.writeFile),N.isRetriableError),closeSync:retryifySync(w.closeSync,N.isRetriableError),fsyncSync:retryifySync(w.fsyncSync,N.isRetriableError),openSync:retryifySync(w.openSync,N.isRetriableError),readFileSync:retryifySync(w.readFileSync,N.isRetriableError),renameSync:retryifySync(w.renameSync,N.isRetriableError),statSync:retryifySync(w.statSync,N.isRetriableError),writeSync:retryifySync(w.writeSync,N.isRetriableError),writeFileSync:retryifySync(w.writeFileSync,N.isRetriableError)}};const M=L;const j="utf8";const U=438;const B=511;const H={};const V={};const z=O.userInfo().uid;const G=O.userInfo().gid;const q=7500;const W=1e3;const K=!!b.getuid;const Y=b.getuid?!b.getuid():false;const Z=128;const X=1e4;const constants_NOOP=()=>{};const lang_isException=t=>t instanceof Error&&"code"in t;const lang_isFunction=t=>typeof t==="function";const lang_isString=t=>typeof t==="string";const lang_isUndefined=t=>t===undefined;const J={};const Q={next:t=>{const r=J[t];if(!r)return;r.shift();const i=r[0];if(i){i((()=>Q.next(t)))}else{delete J[t]}},schedule:t=>new Promise((r=>{let i=J[t];if(!i)i=J[t]=[];i.push(r);if(i.length>1)return;r((()=>Q.next(t)))}))};const ee=null&&Q;const te=b.platform==="linux";const re=b.platform==="win32";const se=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(!re){se.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(te){se.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}const ne=se;class Interceptor{constructor(){this.callbacks=new Set;this.exited=false;this.exit=t=>{if(this.exited)return;this.exited=true;for(const t of this.callbacks){t()}if(t){if(re&&(t!=="SIGINT"&&t!=="SIGTERM"&&t!=="SIGKILL")){b.kill(b.pid,"SIGTERM")}else{b.kill(b.pid,t)}}};this.hook=()=>{b.once("exit",(()=>this.exit()));for(const t of ne){try{b.once(t,(()=>this.exit(t)))}catch{}}};this.register=t=>{this.callbacks.add(t);return()=>{this.callbacks.delete(t)}};this.hook()}}const ie=new Interceptor;const oe=ie.register;const ae=oe;const ce={store:{},create:t=>{const r=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6);const i=Date.now().toString().slice(-10);const o="tmp-";const a=`.${o}${i}${r}`;const c=`${t}${a}`;return c},get:(t,r,i=true)=>{const o=ce.truncate(r(t));if(o in ce.store)return ce.get(t,r,i);ce.store[o]=i;const disposer=()=>delete ce.store[o];return[o,disposer]},purge:t=>{if(!ce.store[t])return;delete ce.store[t];M.attempt.unlink(t)},purgeSync:t=>{if(!ce.store[t])return;delete ce.store[t];M.attempt.unlinkSync(t)},purgeSyncAll:()=>{for(const t in ce.store){ce.purgeSync(t)}},truncate:t=>{const r=E.basename(t);if(r.length<=Z)return t;const i=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(r);if(!i)return t;const o=r.length-Z;return`${t.slice(0,-r.length)}${i[1]}${i[2].slice(0,-o)}${i[3]}`}};ae(ce.purgeSyncAll);const le=ce;function readFile(t,r=DEFAULT_READ_OPTIONS){if(isString(r))return readFile(t,{encoding:r});const i=Date.now()+((r.timeout??DEFAULT_TIMEOUT_ASYNC)||-1);return fs.retry.readFile(i)(t,r)}function readFileSync(t,r=DEFAULT_READ_OPTIONS){if(isString(r))return readFileSync(t,{encoding:r});const i=Date.now()+((r.timeout??DEFAULT_TIMEOUT_SYNC)||-1);return fs.retry.readFileSync(i)(t,r)}function writeFile(t,r,i,o){if(isFunction(i))return writeFile(t,r,DEFAULT_WRITE_OPTIONS,i);const a=writeFileAsync(t,r,i);if(o)a.then(o,o);return a}async function writeFileAsync(t,r,i=DEFAULT_WRITE_OPTIONS){if(isString(i))return writeFileAsync(t,r,{encoding:i});const o=Date.now()+((i.timeout??DEFAULT_TIMEOUT_ASYNC)||-1);let a=null;let c=null;let l=null;let u=null;let h=null;try{if(i.schedule)a=await i.schedule(t);c=await Scheduler.schedule(t);const d=await fs.attempt.realpath(t);const p=!!d;t=d||t;[u,l]=Temp.get(t,i.tmpCreate||Temp.create,!(i.tmpPurge===false));const m=IS_POSIX&&isUndefined(i.chown);const g=isUndefined(i.mode);if(p&&(m||g)){const r=await fs.attempt.stat(t);if(r){i={...i};if(m){i.chown={uid:r.uid,gid:r.gid}}if(g){i.mode=r.mode}}}if(!p){const r=path.dirname(t);await fs.attempt.mkdir(r,{mode:DEFAULT_FOLDER_MODE,recursive:true})}h=await fs.retry.open(o)(u,"w",i.mode||DEFAULT_FILE_MODE);if(i.tmpCreated){i.tmpCreated(u)}if(isString(r)){await fs.retry.write(o)(h,r,0,i.encoding||DEFAULT_ENCODING)}else if(!isUndefined(r)){await fs.retry.write(o)(h,r,0,r.length,0)}if(i.fsync!==false){if(i.fsyncWait!==false){await fs.retry.fsync(o)(h)}else{fs.attempt.fsync(h)}}await fs.retry.close(o)(h);h=null;if(i.chown&&(i.chown.uid!==DEFAULT_USER_UID||i.chown.gid!==DEFAULT_USER_GID)){await fs.attempt.chown(u,i.chown.uid,i.chown.gid)}if(i.mode&&i.mode!==DEFAULT_FILE_MODE){await fs.attempt.chmod(u,i.mode)}try{await fs.retry.rename(o)(u,t)}catch(r){if(!isException(r))throw r;if(r.code!=="ENAMETOOLONG")throw r;await fs.retry.rename(o)(u,Temp.truncate(t))}l();u=null}finally{if(h)await fs.attempt.close(h);if(u)Temp.purge(u);if(a)a();if(c)c()}}function writeFileSync(t,r,i=V){if(lang_isString(i))return writeFileSync(t,r,{encoding:i});const o=Date.now()+((i.timeout??W)||-1);let a=null;let c=null;let l=null;try{const u=M.attempt.realpathSync(t);const h=!!u;t=u||t;[c,a]=le.get(t,i.tmpCreate||le.create,!(i.tmpPurge===false));const d=K&&lang_isUndefined(i.chown);const p=lang_isUndefined(i.mode);if(h&&(d||p)){const r=M.attempt.statSync(t);if(r){i={...i};if(d){i.chown={uid:r.uid,gid:r.gid}}if(p){i.mode=r.mode}}}if(!h){const r=E.dirname(t);M.attempt.mkdirSync(r,{mode:B,recursive:true})}l=M.retry.openSync(o)(c,"w",i.mode||U);if(i.tmpCreated){i.tmpCreated(c)}if(lang_isString(r)){M.retry.writeSync(o)(l,r,0,i.encoding||j)}else if(!lang_isUndefined(r)){M.retry.writeSync(o)(l,r,0,r.length,0)}if(i.fsync!==false){if(i.fsyncWait!==false){M.retry.fsyncSync(o)(l)}else{M.attempt.fsync(l)}}M.retry.closeSync(o)(l);l=null;if(i.chown&&(i.chown.uid!==z||i.chown.gid!==G)){M.attempt.chownSync(c,i.chown.uid,i.chown.gid)}if(i.mode&&i.mode!==U){M.attempt.chmodSync(c,i.mode)}try{M.retry.renameSync(o)(c,t)}catch(r){if(!lang_isException(r))throw r;if(r.code!=="ENAMETOOLONG")throw r;M.retry.renameSync(o)(c,le.truncate(t))}a();c=null}finally{if(l)M.attempt.closeSync(l);if(c)le.purge(c)}}var ue=__nccwpck_require__(2911);var he=__nccwpck_require__(9084);const copyProperty=(t,r,i,o)=>{if(i==="length"||i==="prototype"){return}if(i==="arguments"||i==="caller"){return}const a=Object.getOwnPropertyDescriptor(t,i);const c=Object.getOwnPropertyDescriptor(r,i);if(!canCopyProperty(a,c)&&o){return}Object.defineProperty(t,i,c)};const canCopyProperty=function(t,r){return t===undefined||t.configurable||t.writable===r.writable&&t.enumerable===r.enumerable&&t.configurable===r.configurable&&(t.writable||t.value===r.value)};const changePrototype=(t,r)=>{const i=Object.getPrototypeOf(r);if(i===Object.getPrototypeOf(t)){return}Object.setPrototypeOf(t,i)};const wrappedToString=(t,r)=>`/* Wrapped ${t}*/\n${r}`;const fe=Object.getOwnPropertyDescriptor(Function.prototype,"toString");const de=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");const changeToString=(t,r,i)=>{const o=i===""?"":`with ${i.trim()}() `;const a=wrappedToString.bind(null,o,r.toString());Object.defineProperty(a,"name",de);const{writable:c,enumerable:l,configurable:u}=fe;Object.defineProperty(t,"toString",{value:a,writable:c,enumerable:l,configurable:u})};function mimicFunction(t,r,{ignoreNonConfigurable:i=false}={}){const{name:o}=t;for(const o of Reflect.ownKeys(r)){copyProperty(t,r,o,i)}changePrototype(t,r);changeToString(t,r,o);return t}const debounceFunction=(t,r={})=>{if(typeof t!=="function"){throw new TypeError(`Expected the first argument to be a function, got \`${typeof t}\``)}const{wait:i=0,maxWait:o=Number.POSITIVE_INFINITY,before:a=false,after:c=true}=r;if(i<0||o<0){throw new RangeError("`wait` and `maxWait` must not be negative.")}if(!a&&!c){throw new Error("Both `before` and `after` are false, function wouldn't be called.")}let l;let u;let h;const debouncedFunction=function(...r){const d=this;const later=()=>{l=undefined;if(u){clearTimeout(u);u=undefined}if(c){h=t.apply(d,r)}};const maxLater=()=>{u=undefined;if(l){clearTimeout(l);l=undefined}if(c){h=t.apply(d,r)}};const p=a&&!l;clearTimeout(l);l=setTimeout(later,i);if(o>0&&o!==Number.POSITIVE_INFINITY&&!u){u=setTimeout(maxLater,o)}if(p){h=t.apply(d,r)}return h};mimicFunction(debouncedFunction,t);debouncedFunction.cancel=()=>{if(l){clearTimeout(l);l=undefined}if(u){clearTimeout(u);u=undefined}};return debouncedFunction};const pe=debounceFunction;var me=__nccwpck_require__(8407);const ge=Object.prototype.toString;const ye="[object Uint8Array]";const _e="[object ArrayBuffer]";function isType(t,r,i){if(!t){return false}if(t.constructor===r){return true}return ge.call(t)===i}function isUint8Array(t){return isType(t,Uint8Array,ye)}function isArrayBuffer(t){return isType(t,ArrayBuffer,_e)}function isUint8ArrayOrArrayBuffer(t){return isUint8Array(t)||isArrayBuffer(t)}function assertUint8Array(t){if(!isUint8Array(t)){throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}}function assertUint8ArrayOrArrayBuffer(t){if(!isUint8ArrayOrArrayBuffer(t)){throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}}function toUint8Array(t){if(t instanceof ArrayBuffer){return new Uint8Array(t)}if(ArrayBuffer.isView(t)){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}throw new TypeError(`Unsupported value, got \`${typeof t}\`.`)}function concatUint8Arrays(t,r){if(t.length===0){return new Uint8Array(0)}r??=t.reduce(((t,r)=>t+r.length),0);const i=new Uint8Array(r);let o=0;for(const r of t){assertUint8Array(r);i.set(r,o);o+=r.length}return i}function areUint8ArraysEqual(t,r){assertUint8Array(t);assertUint8Array(r);if(t===r){return true}if(t.length!==r.length){return false}for(let i=0;i<t.length;i++){if(t[i]!==r[i]){return false}}return true}function compareUint8Arrays(t,r){assertUint8Array(t);assertUint8Array(r);const i=Math.min(t.length,r.length);for(let o=0;o<i;o++){const i=t[o]-r[o];if(i!==0){return Math.sign(i)}}return Math.sign(t.length-r.length)}const ve={utf8:new globalThis.TextDecoder("utf8")};function uint8ArrayToString(t,r="utf8"){assertUint8ArrayOrArrayBuffer(t);ve[r]??=new globalThis.TextDecoder(r);return ve[r].decode(t)}function assertString(t){if(typeof t!=="string"){throw new TypeError(`Expected \`string\`, got \`${typeof t}\``)}}const be=new globalThis.TextEncoder;function stringToUint8Array(t){assertString(t);return be.encode(t)}function base64ToBase64Url(t){return t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function base64UrlToBase64(t){return t.replaceAll("-","+").replaceAll("_","/")}const we=65535;function uint8ArrayToBase64(t,{urlSafe:r=false}={}){assertUint8Array(t);let i;if(t.length<we){i=globalThis.btoa(String.fromCodePoint.apply(this,t))}else{i="";for(const r of t){i+=String.fromCodePoint(r)}i=globalThis.btoa(i)}return r?base64ToBase64Url(i):i}function base64ToUint8Array(t){assertString(t);return Uint8Array.from(globalThis.atob(base64UrlToBase64(t)),(t=>t.codePointAt(0)))}function stringToBase64(t,{urlSafe:r=false}={}){assertString(t);return uint8ArrayToBase64(stringToUint8Array(t),{urlSafe:r})}function base64ToString(t){assertString(t);return uint8ArrayToString(base64ToUint8Array(t))}const Ee=Array.from({length:256},((t,r)=>r.toString(16).padStart(2,"0")));function uint8ArrayToHex(t){assertUint8Array(t);let r="";for(let i=0;i<t.length;i++){r+=Ee[t[i]]}return r}const Se={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,b:11,c:12,d:13,e:14,f:15,A:10,B:11,C:12,D:13,E:14,F:15};function hexToUint8Array(t){assertString(t);if(t.length%2!==0){throw new Error("Invalid Hex string length.")}const r=t.length/2;const i=new Uint8Array(r);for(let o=0;o<r;o++){const r=Se[t[o*2]];const a=Se[t[o*2+1]];if(r===undefined||a===undefined){throw new Error(`Invalid Hex character encountered at position ${o*2}`)}i[o]=r<<4|a}return i}function getUintBE(t){const{byteLength:r}=t;if(r===6){return t.getUint16(0)*2**32+t.getUint32(2)}if(r===5){return t.getUint8(0)*2**32+t.getUint32(1)}if(r===4){return t.getUint32(0)}if(r===3){return t.getUint8(0)*2**16+t.getUint16(1)}if(r===2){return t.getUint16(0)}if(r===1){return t.getUint8(0)}}function indexOf(t,r){const i=t.length;const o=r.length;if(o===0){return-1}if(o>i){return-1}const a=i-o;for(let i=0;i<=a;i++){let a=true;for(let c=0;c<o;c++){if(t[i+c]!==r[c]){a=false;break}}if(a){return i}}return-1}function includes(t,r){return indexOf(t,r)!==-1}const $e=he["default"];const Re="aes-256-cbc";const createPlainObject=()=>Object.create(null);const isExist=t=>t!==undefined&&t!==null;const checkValueType=(t,r)=>{const i=new Set(["undefined","symbol","function"]);const o=typeof r;if(i.has(o)){throw new TypeError(`Setting a value of type \`${o}\` for key \`${t}\` is not allowed as it's not supported by JSON`)}};const Pe="__internal__";const Oe=`${Pe}.migrations.version`;class Conf{path;events;#e;#t;#r;#s={};constructor(t={}){const r={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:false,accessPropertiesByDotNotation:true,configFileMode:438,...t};if(!r.cwd){if(!r.projectName){throw new Error("Please specify the `projectName` option.")}r.cwd=envPaths(r.projectName,{suffix:r.projectSuffix}).config}this.#r=r;if(r.schema){if(typeof r.schema!=="object"){throw new TypeError("The `schema` option must be an object.")}const t=new ue.Ajv2020({allErrors:true,useDefaults:true});$e(t);const i={type:"object",properties:r.schema};this.#e=t.compile(i);for(const[t,i]of Object.entries(r.schema)){if(i?.default){this.#s[t]=i.default}}}if(r.defaults){this.#s={...this.#s,...r.defaults}}if(r.serialize){this._serialize=r.serialize}if(r.deserialize){this._deserialize=r.deserialize}this.events=new EventTarget;this.#t=r.encryptionKey;const i=r.fileExtension?`.${r.fileExtension}`:"";this.path=E.resolve(r.cwd,`${r.configName??"config"}${i}`);const o=this.store;const a=Object.assign(createPlainObject(),r.defaults,o);if(r.migrations){if(!r.projectVersion){throw new Error("Please specify the `projectVersion` option.")}this._migrate(r.migrations,r.projectVersion,r.beforeEachMigration)}this._validate(a);try{$.deepEqual(o,a)}catch{this.store=a}if(r.watch){this._watch()}}get(t,r){if(this.#r.accessPropertiesByDotNotation){return this._get(t,r)}const{store:i}=this;return t in i?i[t]:r}set(t,r){if(typeof t!=="string"&&typeof t!=="object"){throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof t}`)}if(typeof t!=="object"&&r===undefined){throw new TypeError("Use `delete()` to clear values")}if(this._containsReservedKey(t)){throw new TypeError(`Please don't use the ${Pe} key, as it's used to manage this module internal operations.`)}const{store:i}=this;const set=(t,r)=>{checkValueType(t,r);if(this.#r.accessPropertiesByDotNotation){setProperty(i,t,r)}else{i[t]=r}};if(typeof t==="object"){const r=t;for(const[t,i]of Object.entries(r)){set(t,i)}}else{set(t,r)}this.store=i}has(t){if(this.#r.accessPropertiesByDotNotation){return hasProperty(this.store,t)}return t in this.store}reset(...t){for(const r of t){if(isExist(this.#s[r])){this.set(r,this.#s[r])}}}delete(t){const{store:r}=this;if(this.#r.accessPropertiesByDotNotation){deleteProperty(r,t)}else{delete r[t]}this.store=r}clear(){this.store=createPlainObject();for(const t of Object.keys(this.#s)){this.reset(t)}}onDidChange(t,r){if(typeof t!=="string"){throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof t}`)}if(typeof r!=="function"){throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof r}`)}return this._handleChange((()=>this.get(t)),r)}onDidAnyChange(t){if(typeof t!=="function"){throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof t}`)}return this._handleChange((()=>this.store),t)}get size(){return Object.keys(this.store).length}get store(){try{const t=w.readFileSync(this.path,this.#t?null:"utf8");const r=this._encryptData(t);const i=this._deserialize(r);this._validate(i);return Object.assign(createPlainObject(),i)}catch(t){if(t?.code==="ENOENT"){this._ensureDirectory();return createPlainObject()}if(this.#r.clearInvalidConfig&&t.name==="SyntaxError"){return createPlainObject()}throw t}}set store(t){this._ensureDirectory();this._validate(t);this._write(t);this.events.dispatchEvent(new Event("change"))}*[Symbol.iterator](){for(const[t,r]of Object.entries(this.store)){yield[t,r]}}_encryptData(t){if(!this.#t){return typeof t==="string"?t:uint8ArrayToString(t)}try{const r=t.slice(0,16);const i=S.pbkdf2Sync(this.#t,r.toString(),1e4,32,"sha512");const o=S.createDecipheriv(Re,i,r);const a=t.slice(17);const c=typeof a==="string"?stringToUint8Array(a):a;return uint8ArrayToString(concatUint8Arrays([o.update(c),o.final()]))}catch{}return t.toString()}_handleChange(t,r){let i=t();const onChange=()=>{const o=i;const a=t();if((0,v.isDeepStrictEqual)(a,o)){return}i=a;r.call(this,a,o)};this.events.addEventListener("change",onChange);return()=>{this.events.removeEventListener("change",onChange)}}_deserialize=t=>JSON.parse(t);_serialize=t=>JSON.stringify(t,undefined,"\t");_validate(t){if(!this.#e){return}const r=this.#e(t);if(r||!this.#e.errors){return}const i=this.#e.errors.map((({instancePath:t,message:r=""})=>`\`${t.slice(1)}\` ${r}`));throw new Error("Config schema violation: "+i.join("; "))}_ensureDirectory(){w.mkdirSync(E.dirname(this.path),{recursive:true})}_write(t){let r=this._serialize(t);if(this.#t){const t=S.randomBytes(16);const i=S.pbkdf2Sync(this.#t,t.toString(),1e4,32,"sha512");const o=S.createCipheriv(Re,i,t);r=concatUint8Arrays([t,stringToUint8Array(":"),o.update(stringToUint8Array(r)),o.final()])}if(b.env.SNAP){w.writeFileSync(this.path,r,{mode:this.#r.configFileMode})}else{try{writeFileSync(this.path,r,{mode:this.#r.configFileMode})}catch(t){if(t?.code==="EXDEV"){w.writeFileSync(this.path,r,{mode:this.#r.configFileMode});return}throw t}}}_watch(){this._ensureDirectory();if(!w.existsSync(this.path)){this._write(createPlainObject())}if(b.platform==="win32"){w.watch(this.path,{persistent:false},pe((()=>{this.events.dispatchEvent(new Event("change"))}),{wait:100}))}else{w.watchFile(this.path,{persistent:false},pe((()=>{this.events.dispatchEvent(new Event("change"))}),{wait:5e3}))}}_migrate(t,r,i){let o=this._get(Oe,"0.0.0");const a=Object.keys(t).filter((t=>this._shouldPerformMigration(t,o,r)));let c={...this.store};for(const l of a){try{if(i){i(this,{fromVersion:o,toVersion:l,finalVersion:r,versions:a})}const u=t[l];u?.(this);this._set(Oe,l);o=l;c={...this.store}}catch(t){this.store=c;throw new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${t}`)}}if(this._isVersionInRangeFormat(o)||!me.eq(o,r)){this._set(Oe,r)}}_containsReservedKey(t){if(typeof t==="object"){const r=Object.keys(t)[0];if(r===Pe){return true}}if(typeof t!=="string"){return false}if(this.#r.accessPropertiesByDotNotation){if(t.startsWith(`${Pe}.`)){return true}return false}return false}_isVersionInRangeFormat(t){return me.clean(t)===null}_shouldPerformMigration(t,r,i){if(this._isVersionInRangeFormat(t)){if(r!=="0.0.0"&&me.satisfies(r,t)){return false}return me.satisfies(i,t)}if(me.lte(t,r)){return false}if(me.gt(t,i)){return false}return true}_get(t,r){return getProperty(this.store,t,r)}_set(t,r){const{store:i}=this;setProperty(i,t,r);this.store=i}}var Ae=__nccwpck_require__(9896);var xe=__nccwpck_require__(6928);var Te=__nccwpck_require__.n(xe);var ke=__nccwpck_require__(6596);var Ce=__nccwpck_require__(2171);var Ie=__nccwpck_require__.n(Ce);var Ne=__nccwpck_require__(5012);var De=__nccwpck_require__.n(Ne);var Le=__nccwpck_require__(4575);var Me=__nccwpck_require__.n(Le);const je=require("node:stream");const Fe=require("node:stream/promises");var Ue=__nccwpck_require__(4434);var Be=__nccwpck_require__(8474);const He=require("node:string_decoder");const Ve=typeof process==="object"&&process?process:{stdout:null,stderr:null};const isStream=t=>!!t&&typeof t==="object"&&(t instanceof Minipass||t instanceof je||isReadable(t)||isWritable(t));const isReadable=t=>!!t&&typeof t==="object"&&t instanceof Be.EventEmitter&&typeof t.pipe==="function"&&t.pipe!==je.Writable.prototype.pipe;const isWritable=t=>!!t&&typeof t==="object"&&t instanceof Be.EventEmitter&&typeof t.write==="function"&&typeof t.end==="function";const ze=Symbol("EOF");const Ge=Symbol("maybeEmitEnd");const qe=Symbol("emittedEnd");const We=Symbol("emittingEnd");const Ke=Symbol("emittedError");const Ye=Symbol("closed");const Ze=Symbol("read");const Xe=Symbol("flush");const Je=Symbol("flushChunk");const Qe=Symbol("encoding");const et=Symbol("decoder");const tt=Symbol("flowing");const rt=Symbol("paused");const st=Symbol("resume");const nt=Symbol("buffer");const it=Symbol("pipes");const ot=Symbol("bufferLength");const at=Symbol("bufferPush");const ct=Symbol("bufferShift");const ut=Symbol("objectMode");const ht=Symbol("destroyed");const ft=Symbol("error");const dt=Symbol("emitData");const pt=Symbol("emitEnd");const mt=Symbol("emitEnd2");const yt=Symbol("async");const _t=Symbol("abort");const vt=Symbol("aborted");const bt=Symbol("signal");const wt=Symbol("dataListeners");const Et=Symbol("discarded");const defer=t=>Promise.resolve().then(t);const nodefer=t=>t();const isEndish=t=>t==="end"||t==="finish"||t==="prefinish";const isArrayBufferLike=t=>t instanceof ArrayBuffer||!!t&&typeof t==="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0;const isArrayBufferView=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);class Pipe{src;dest;opts;ondrain;constructor(t,r,i){this.src=t;this.dest=r;this.opts=i;this.ondrain=()=>t[st]();this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(t,r,i){super(t,r,i);this.proxyErrors=t=>r.emit("error",t);t.on("error",this.proxyErrors)}}const isObjectModeOptions=t=>!!t.objectMode;const isEncodingOptions=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer";class Minipass extends Be.EventEmitter{[tt]=false;[rt]=false;[it]=[];[nt]=[];[ut];[Qe];[yt];[et];[ze]=false;[qe]=false;[We]=false;[Ye]=false;[Ke]=null;[ot]=0;[ht]=false;[bt];[vt]=false;[wt]=0;[Et]=false;writable=true;readable=true;constructor(...t){const r=t[0]||{};super();if(r.objectMode&&typeof r.encoding==="string"){throw new TypeError("Encoding and objectMode may not be used together")}if(isObjectModeOptions(r)){this[ut]=true;this[Qe]=null}else if(isEncodingOptions(r)){this[Qe]=r.encoding;this[ut]=false}else{this[ut]=false;this[Qe]=null}this[yt]=!!r.async;this[et]=this[Qe]?new He.StringDecoder(this[Qe]):null;if(r&&r.debugExposeBuffer===true){Object.defineProperty(this,"buffer",{get:()=>this[nt]})}if(r&&r.debugExposePipes===true){Object.defineProperty(this,"pipes",{get:()=>this[it]})}const{signal:i}=r;if(i){this[bt]=i;if(i.aborted){this[_t]()}else{i.addEventListener("abort",(()=>this[_t]()))}}}get bufferLength(){return this[ot]}get encoding(){return this[Qe]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[ut]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get["async"](){return this[yt]}set["async"](t){this[yt]=this[yt]||!!t}[_t](){this[vt]=true;this.emit("abort",this[bt]?.reason);this.destroy(this[bt]?.reason)}get aborted(){return this[vt]}set aborted(t){}write(t,r,i){if(this[vt])return false;if(this[ze])throw new Error("write after end");if(this[ht]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof r==="function"){i=r;r="utf8"}if(!r)r="utf8";const o=this[yt]?defer:nodefer;if(!this[ut]&&!Buffer.isBuffer(t)){if(isArrayBufferView(t)){t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)}else if(isArrayBufferLike(t)){t=Buffer.from(t)}else if(typeof t!=="string"){throw new Error("Non-contiguous data written to non-objectMode stream")}}if(this[ut]){if(this[tt]&&this[ot]!==0)this[Xe](true);if(this[tt])this.emit("data",t);else this[at](t);if(this[ot]!==0)this.emit("readable");if(i)o(i);return this[tt]}if(!t.length){if(this[ot]!==0)this.emit("readable");if(i)o(i);return this[tt]}if(typeof t==="string"&&!(r===this[Qe]&&!this[et]?.lastNeed)){t=Buffer.from(t,r)}if(Buffer.isBuffer(t)&&this[Qe]){t=this[et].write(t)}if(this[tt]&&this[ot]!==0)this[Xe](true);if(this[tt])this.emit("data",t);else this[at](t);if(this[ot]!==0)this.emit("readable");if(i)o(i);return this[tt]}read(t){if(this[ht])return null;this[Et]=false;if(this[ot]===0||t===0||t&&t>this[ot]){this[Ge]();return null}if(this[ut])t=null;if(this[nt].length>1&&!this[ut]){this[nt]=[this[Qe]?this[nt].join(""):Buffer.concat(this[nt],this[ot])]}const r=this[Ze](t||null,this[nt][0]);this[Ge]();return r}[Ze](t,r){if(this[ut])this[ct]();else{const i=r;if(t===i.length||t===null)this[ct]();else if(typeof i==="string"){this[nt][0]=i.slice(t);r=i.slice(0,t);this[ot]-=t}else{this[nt][0]=i.subarray(t);r=i.subarray(0,t);this[ot]-=t}}this.emit("data",r);if(!this[nt].length&&!this[ze])this.emit("drain");return r}end(t,r,i){if(typeof t==="function"){i=t;t=undefined}if(typeof r==="function"){i=r;r="utf8"}if(t!==undefined)this.write(t,r);if(i)this.once("end",i);this[ze]=true;this.writable=false;if(this[tt]||!this[rt])this[Ge]();return this}[st](){if(this[ht])return;if(!this[wt]&&!this[it].length){this[Et]=true}this[rt]=false;this[tt]=true;this.emit("resume");if(this[nt].length)this[Xe]();else if(this[ze])this[Ge]();else this.emit("drain")}resume(){return this[st]()}pause(){this[tt]=false;this[rt]=true;this[Et]=false}get destroyed(){return this[ht]}get flowing(){return this[tt]}get paused(){return this[rt]}[at](t){if(this[ut])this[ot]+=1;else this[ot]+=t.length;this[nt].push(t)}[ct](){if(this[ut])this[ot]-=1;else this[ot]-=this[nt][0].length;return this[nt].shift()}[Xe](t=false){do{}while(this[Je](this[ct]())&&this[nt].length);if(!t&&!this[nt].length&&!this[ze])this.emit("drain")}[Je](t){this.emit("data",t);return this[tt]}pipe(t,r){if(this[ht])return t;this[Et]=false;const i=this[qe];r=r||{};if(t===Ve.stdout||t===Ve.stderr)r.end=false;else r.end=r.end!==false;r.proxyErrors=!!r.proxyErrors;if(i){if(r.end)t.end()}else{this[it].push(!r.proxyErrors?new Pipe(this,t,r):new PipeProxyErrors(this,t,r));if(this[yt])defer((()=>this[st]()));else this[st]()}return t}unpipe(t){const r=this[it].find((r=>r.dest===t));if(r){if(this[it].length===1){if(this[tt]&&this[wt]===0){this[tt]=false}this[it]=[]}else this[it].splice(this[it].indexOf(r),1);r.unpipe()}}addListener(t,r){return this.on(t,r)}on(t,r){const i=super.on(t,r);if(t==="data"){this[Et]=false;this[wt]++;if(!this[it].length&&!this[tt]){this[st]()}}else if(t==="readable"&&this[ot]!==0){super.emit("readable")}else if(isEndish(t)&&this[qe]){super.emit(t);this.removeAllListeners(t)}else if(t==="error"&&this[Ke]){const t=r;if(this[yt])defer((()=>t.call(this,this[Ke])));else t.call(this,this[Ke])}return i}removeListener(t,r){return this.off(t,r)}off(t,r){const i=super.off(t,r);if(t==="data"){this[wt]=this.listeners("data").length;if(this[wt]===0&&!this[Et]&&!this[it].length){this[tt]=false}}return i}removeAllListeners(t){const r=super.removeAllListeners(t);if(t==="data"||t===undefined){this[wt]=0;if(!this[Et]&&!this[it].length){this[tt]=false}}return r}get emittedEnd(){return this[qe]}[Ge](){if(!this[We]&&!this[qe]&&!this[ht]&&this[nt].length===0&&this[ze]){this[We]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[Ye])this.emit("close");this[We]=false}}emit(t,...r){const i=r[0];if(t!=="error"&&t!=="close"&&t!==ht&&this[ht]){return false}else if(t==="data"){return!this[ut]&&!i?false:this[yt]?(defer((()=>this[dt](i))),true):this[dt](i)}else if(t==="end"){return this[pt]()}else if(t==="close"){this[Ye]=true;if(!this[qe]&&!this[ht])return false;const t=super.emit("close");this.removeAllListeners("close");return t}else if(t==="error"){this[Ke]=i;super.emit(ft,i);const t=!this[bt]||this.listeners("error").length?super.emit("error",i):false;this[Ge]();return t}else if(t==="resume"){const t=super.emit("resume");this[Ge]();return t}else if(t==="finish"||t==="prefinish"){const r=super.emit(t);this.removeAllListeners(t);return r}const o=super.emit(t,...r);this[Ge]();return o}[dt](t){for(const r of this[it]){if(r.dest.write(t)===false)this.pause()}const r=this[Et]?false:super.emit("data",t);this[Ge]();return r}[pt](){if(this[qe])return false;this[qe]=true;this.readable=false;return this[yt]?(defer((()=>this[mt]())),true):this[mt]()}[mt](){if(this[et]){const t=this[et].end();if(t){for(const r of this[it]){r.dest.write(t)}if(!this[Et])super.emit("data",t)}}for(const t of this[it]){t.end()}const t=super.emit("end");this.removeAllListeners("end");return t}async collect(){const t=Object.assign([],{dataLength:0});if(!this[ut])t.dataLength=0;const r=this.promise();this.on("data",(r=>{t.push(r);if(!this[ut])t.dataLength+=r.length}));await r;return t}async concat(){if(this[ut]){throw new Error("cannot concat in objectMode")}const t=await this.collect();return this[Qe]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,r)=>{this.on(ht,(()=>r(new Error("stream destroyed"))));this.on("error",(t=>r(t)));this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[Et]=false;let t=false;const stop=async()=>{this.pause();t=true;return{value:undefined,done:true}};const next=()=>{if(t)return stop();const r=this.read();if(r!==null)return Promise.resolve({done:false,value:r});if(this[ze])return stop();let i;let o;const onerr=t=>{this.off("data",ondata);this.off("end",onend);this.off(ht,ondestroy);stop();o(t)};const ondata=t=>{this.off("error",onerr);this.off("end",onend);this.off(ht,ondestroy);this.pause();i({value:t,done:!!this[ze]})};const onend=()=>{this.off("error",onerr);this.off("data",ondata);this.off(ht,ondestroy);stop();i({done:true,value:undefined})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((t,r)=>{o=r;i=t;this.once(ht,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next,throw:stop,return:stop,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[Et]=false;let t=false;const stop=()=>{this.pause();this.off(ft,stop);this.off(ht,stop);this.off("end",stop);t=true;return{done:true,value:undefined}};const next=()=>{if(t)return stop();const r=this.read();return r===null?stop():{done:false,value:r}};this.once("end",stop);this.once(ft,stop);this.once(ht,stop);return{next:next,throw:stop,return:stop,[Symbol.iterator](){return this}}}destroy(t){if(this[ht]){if(t)this.emit("error",t);else this.emit(ht);return this}this[ht]=true;this[Et]=true;this[nt].length=0;this[ot]=0;const r=this;if(typeof r.close==="function"&&!this[Ye])r.close();if(t)this.emit("error",t);else this.emit(ht);return this}static get isStream(){return isStream}}const St=Ae.writev;const $t=Symbol("_autoClose");const Rt=Symbol("_close");const Pt=Symbol("_ended");const Ot=Symbol("_fd");const At=Symbol("_finished");const xt=Symbol("_flags");const Tt=Symbol("_flush");const kt=Symbol("_handleChunk");const Ct=Symbol("_makeBuf");const It=Symbol("_mode");const Nt=Symbol("_needDrain");const Dt=Symbol("_onerror");const Lt=Symbol("_onopen");const Mt=Symbol("_onread");const jt=Symbol("_onwrite");const Ft=Symbol("_open");const Ut=Symbol("_path");const Bt=Symbol("_pos");const Ht=Symbol("_queue");const Vt=Symbol("_read");const zt=Symbol("_readSize");const Gt=Symbol("_reading");const qt=Symbol("_remain");const Wt=Symbol("_size");const Kt=Symbol("_write");const Yt=Symbol("_writing");const Zt=Symbol("_defaultFlag");const Xt=Symbol("_errored");class ReadStream extends Minipass{[Xt]=false;[Ot];[Ut];[zt];[Gt]=false;[Wt];[qt];[$t];constructor(t,r){r=r||{};super(r);this.readable=true;this.writable=false;if(typeof t!=="string"){throw new TypeError("path must be a string")}this[Xt]=false;this[Ot]=typeof r.fd==="number"?r.fd:undefined;this[Ut]=t;this[zt]=r.readSize||16*1024*1024;this[Gt]=false;this[Wt]=typeof r.size==="number"?r.size:Infinity;this[qt]=this[Wt];this[$t]=typeof r.autoClose==="boolean"?r.autoClose:true;if(typeof this[Ot]==="number"){this[Vt]()}else{this[Ft]()}}get fd(){return this[Ot]}get path(){return this[Ut]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Ft](){Ae.open(this[Ut],"r",((t,r)=>this[Lt](t,r)))}[Lt](t,r){if(t){this[Dt](t)}else{this[Ot]=r;this.emit("open",r);this[Vt]()}}[Ct](){return Buffer.allocUnsafe(Math.min(this[zt],this[qt]))}[Vt](){if(!this[Gt]){this[Gt]=true;const t=this[Ct]();if(t.length===0){return process.nextTick((()=>this[Mt](null,0,t)))}Ae.read(this[Ot],t,0,t.length,null,((t,r,i)=>this[Mt](t,r,i)))}}[Mt](t,r,i){this[Gt]=false;if(t){this[Dt](t)}else if(this[kt](r,i)){this[Vt]()}}[Rt](){if(this[$t]&&typeof this[Ot]==="number"){const t=this[Ot];this[Ot]=undefined;Ae.close(t,(t=>t?this.emit("error",t):this.emit("close")))}}[Dt](t){this[Gt]=true;this[Rt]();this.emit("error",t)}[kt](t,r){let i=false;this[qt]-=t;if(t>0){i=super.write(t<r.length?r.subarray(0,t):r)}if(t===0||this[qt]<=0){i=false;this[Rt]();super.end()}return i}emit(t,...r){switch(t){case"prefinish":case"finish":return false;case"drain":if(typeof this[Ot]==="number"){this[Vt]()}return false;case"error":if(this[Xt]){return false}this[Xt]=true;return super.emit(t,...r);default:return super.emit(t,...r)}}}class ReadStreamSync extends ReadStream{[Ft](){let t=true;try{this[Lt](null,Ae.openSync(this[Ut],"r"));t=false}finally{if(t){this[Rt]()}}}[Vt](){let t=true;try{if(!this[Gt]){this[Gt]=true;do{const t=this[Ct]();const r=t.length===0?0:Ae.readSync(this[Ot],t,0,t.length,null);if(!this[kt](r,t)){break}}while(true);this[Gt]=false}t=false}finally{if(t){this[Rt]()}}}[Rt](){if(this[$t]&&typeof this[Ot]==="number"){const t=this[Ot];this[Ot]=undefined;Ae.closeSync(t);this.emit("close")}}}class WriteStream extends Ue{readable=false;writable=true;[Xt]=false;[Yt]=false;[Pt]=false;[Ht]=[];[Nt]=false;[Ut];[It];[$t];[Ot];[Zt];[xt];[At]=false;[Bt];constructor(t,r){r=r||{};super(r);this[Ut]=t;this[Ot]=typeof r.fd==="number"?r.fd:undefined;this[It]=r.mode===undefined?438:r.mode;this[Bt]=typeof r.start==="number"?r.start:undefined;this[$t]=typeof r.autoClose==="boolean"?r.autoClose:true;const i=this[Bt]!==undefined?"r+":"w";this[Zt]=r.flags===undefined;this[xt]=r.flags===undefined?i:r.flags;if(this[Ot]===undefined){this[Ft]()}}emit(t,...r){if(t==="error"){if(this[Xt]){return false}this[Xt]=true}return super.emit(t,...r)}get fd(){return this[Ot]}get path(){return this[Ut]}[Dt](t){this[Rt]();this[Yt]=true;this.emit("error",t)}[Ft](){Ae.open(this[Ut],this[xt],this[It],((t,r)=>this[Lt](t,r)))}[Lt](t,r){if(this[Zt]&&this[xt]==="r+"&&t&&t.code==="ENOENT"){this[xt]="w";this[Ft]()}else if(t){this[Dt](t)}else{this[Ot]=r;this.emit("open",r);if(!this[Yt]){this[Tt]()}}}end(t,r){if(t){this.write(t,r)}this[Pt]=true;if(!this[Yt]&&!this[Ht].length&&typeof this[Ot]==="number"){this[jt](null,0)}return this}write(t,r){if(typeof t==="string"){t=Buffer.from(t,r)}if(this[Pt]){this.emit("error",new Error("write() after end()"));return false}if(this[Ot]===undefined||this[Yt]||this[Ht].length){this[Ht].push(t);this[Nt]=true;return false}this[Yt]=true;this[Kt](t);return true}[Kt](t){Ae.write(this[Ot],t,0,t.length,this[Bt],((t,r)=>this[jt](t,r)))}[jt](t,r){if(t){this[Dt](t)}else{if(this[Bt]!==undefined&&typeof r==="number"){this[Bt]+=r}if(this[Ht].length){this[Tt]()}else{this[Yt]=false;if(this[Pt]&&!this[At]){this[At]=true;this[Rt]();this.emit("finish")}else if(this[Nt]){this[Nt]=false;this.emit("drain")}}}}[Tt](){if(this[Ht].length===0){if(this[Pt]){this[jt](null,0)}}else if(this[Ht].length===1){this[Kt](this[Ht].pop())}else{const t=this[Ht];this[Ht]=[];St(this[Ot],t,this[Bt],((t,r)=>this[jt](t,r)))}}[Rt](){if(this[$t]&&typeof this[Ot]==="number"){const t=this[Ot];this[Ot]=undefined;Ae.close(t,(t=>t?this.emit("error",t):this.emit("close")))}}}class WriteStreamSync extends WriteStream{[Ft](){let t;if(this[Zt]&&this[xt]==="r+"){try{t=Ae.openSync(this[Ut],this[xt],this[It])}catch(t){if(t?.code==="ENOENT"){this[xt]="w";return this[Ft]()}else{throw t}}}else{t=Ae.openSync(this[Ut],this[xt],this[It])}this[Lt](null,t)}[Rt](){if(this[$t]&&typeof this[Ot]==="number"){const t=this[Ot];this[Ot]=undefined;Ae.closeSync(t);this.emit("close")}}[Kt](t){let r=true;try{this[jt](null,Ae.writeSync(this[Ot],t,0,t.length,this[Bt]));r=false}finally{if(r){try{this[Rt]()}catch{}}}}}const Jt=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"],["onentry","onReadEntry"]]);const isSyncFile=t=>!!t.sync&&!!t.file;const isAsyncFile=t=>!t.sync&&!!t.file;const isSyncNoFile=t=>!!t.sync&&!t.file;const isAsyncNoFile=t=>!t.sync&&!t.file;const isSync=t=>!!t.sync;const isAsync=t=>!t.sync;const isFile=t=>!!t.file;const isNoFile=t=>!t.file;const dealiasKey=t=>{const r=Jt.get(t);if(r)return r;return t};const dealias=(t={})=>{if(!t)return{};const r={};for(const[i,o]of Object.entries(t)){const t=dealiasKey(i);r[t]=o}if(r.chmod===undefined&&r.noChmod===false){r.chmod=true}delete r.noChmod;return r};const makeCommand=(t,r,i,o,a)=>Object.assign(((c=[],l,u)=>{if(Array.isArray(c)){l=c;c={}}if(typeof l==="function"){u=l;l=undefined}if(!l){l=[]}else{l=Array.from(l)}const h=dealias(c);a?.(h,l);if(isSyncFile(h)){if(typeof u==="function"){throw new TypeError("callback not supported for sync tar functions")}return t(h,l)}else if(isAsyncFile(h)){const t=r(h,l);const i=u?u:undefined;return i?t.then((()=>i()),i):t}else if(isSyncNoFile(h)){if(typeof u==="function"){throw new TypeError("callback not supported for sync tar functions")}return i(h,l)}else if(isAsyncNoFile(h)){if(typeof u==="function"){throw new TypeError("callback only supported with file option")}return o(h,l)}else{throw new Error("impossible options??")}}),{syncFile:t,asyncFile:r,syncNoFile:i,asyncNoFile:o,validate:a});const Qt=require("assert");var er=__nccwpck_require__(181);const tr=require("zlib");const rr=tr.constants||{ZLIB_VERNUM:4736};const sr=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},rr));const nr=er.Buffer.concat;const ir=Symbol("_superWrite");class ZlibError extends Error{code;errno;constructor(t){super("zlib: "+t.message);this.code=t.code;this.errno=t.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+t.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const ar=Symbol("flushFlag");class ZlibBase extends Minipass{#n=false;#i=false;#o;#a;#c;#l;#u;get sawError(){return this.#n}get handle(){return this.#l}get flushFlag(){return this.#o}constructor(t,r){if(!t||typeof t!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(t);this.#o=t.flush??0;this.#a=t.finishFlush??0;this.#c=t.fullFlushFlag??0;try{this.#l=new tr[r](t)}catch(t){throw new ZlibError(t)}this.#u=t=>{if(this.#n)return;this.#n=true;this.close();this.emit("error",t)};this.#l?.on("error",(t=>this.#u(new ZlibError(t))));this.once("end",(()=>this.close))}close(){if(this.#l){this.#l.close();this.#l=undefined;this.emit("close")}}reset(){if(!this.#n){Qt(this.#l,"zlib binding closed");return this.#l.reset?.()}}flush(t){if(this.ended)return;if(typeof t!=="number")t=this.#c;this.write(Object.assign(er.Buffer.alloc(0),{[ar]:t}))}end(t,r,i){if(typeof t==="function"){i=t;r=undefined;t=undefined}if(typeof r==="function"){i=r;r=undefined}if(t){if(r)this.write(t,r);else this.write(t)}this.flush(this.#a);this.#i=true;return super.end(i)}get ended(){return this.#i}[ir](t){return super.write(t)}write(t,r,i){if(typeof r==="function")i=r,r="utf8";if(typeof t==="string")t=er.Buffer.from(t,r);if(this.#n)return;Qt(this.#l,"zlib binding closed");const o=this.#l._handle;const a=o.close;o.close=()=>{};const c=this.#l.close;this.#l.close=()=>{};er.Buffer.concat=t=>t;let l=undefined;try{const r=typeof t[ar]==="number"?t[ar]:this.#o;l=this.#l._processChunk(t,r);er.Buffer.concat=nr}catch(t){er.Buffer.concat=nr;this.#u(new ZlibError(t))}finally{if(this.#l){this.#l._handle=o;o.close=a;this.#l.close=c;this.#l.removeAllListeners("error")}}if(this.#l)this.#l.on("error",(t=>this.#u(new ZlibError(t))));let u;if(l){if(Array.isArray(l)&&l.length>0){const t=l[0];u=this[ir](er.Buffer.from(t));for(let t=1;t<l.length;t++){u=this[ir](l[t])}}else{u=this[ir](er.Buffer.from(l))}}if(i)i();return u}}class Zlib extends ZlibBase{#h;#f;constructor(t,r){t=t||{};t.flush=t.flush||sr.Z_NO_FLUSH;t.finishFlush=t.finishFlush||sr.Z_FINISH;t.fullFlushFlag=sr.Z_FULL_FLUSH;super(t,r);this.#h=t.level;this.#f=t.strategy}params(t,r){if(this.sawError)return;if(!this.handle)throw new Error("cannot switch params when binding is closed");if(!this.handle.params)throw new Error("not supported in this implementation");if(this.#h!==t||this.#f!==r){this.flush(sr.Z_SYNC_FLUSH);Qt(this.handle,"zlib binding closed");const i=this.handle.flush;this.handle.flush=(t,r)=>{if(typeof t==="function"){r=t;t=this.flushFlag}this.flush(t);r?.()};try{this.handle.params(t,r)}finally{this.handle.flush=i}if(this.handle){this.#h=t;this.#f=r}}}}class Deflate extends Zlib{constructor(t){super(t,"Deflate")}}class Inflate extends Zlib{constructor(t){super(t,"Inflate")}}class Gzip extends Zlib{#d;constructor(t){super(t,"Gzip");this.#d=t&&!!t.portable}[ir](t){if(!this.#d)return super[ir](t);this.#d=false;t[9]=255;return super[ir](t)}}class Gunzip extends Zlib{constructor(t){super(t,"Gunzip")}}class DeflateRaw extends Zlib{constructor(t){super(t,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(t){super(t,"InflateRaw")}}class Unzip extends Zlib{constructor(t){super(t,"Unzip")}}class Brotli extends ZlibBase{constructor(t,r){t=t||{};t.flush=t.flush||sr.BROTLI_OPERATION_PROCESS;t.finishFlush=t.finishFlush||sr.BROTLI_OPERATION_FINISH;t.fullFlushFlag=sr.BROTLI_OPERATION_FLUSH;super(t,r)}}class BrotliCompress extends Brotli{constructor(t){super(t,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(t){super(t,"BrotliDecompress")}}class Yallist{tail;head;length=0;static create(t=[]){return new Yallist(t)}constructor(t=[]){for(const r of t){this.push(r)}}*[Symbol.iterator](){for(let t=this.head;t;t=t.next){yield t.value}}removeNode(t){if(t.list!==this){throw new Error("removing node which does not belong to this list")}const r=t.next;const i=t.prev;if(r){r.prev=i}if(i){i.next=r}if(t===this.head){this.head=r}if(t===this.tail){this.tail=i}this.length--;t.next=undefined;t.prev=undefined;t.list=undefined;return r}unshiftNode(t){if(t===this.head){return}if(t.list){t.list.removeNode(t)}const r=this.head;t.list=this;t.next=r;if(r){r.prev=t}this.head=t;if(!this.tail){this.tail=t}this.length++}pushNode(t){if(t===this.tail){return}if(t.list){t.list.removeNode(t)}const r=this.tail;t.list=this;t.prev=r;if(r){r.next=t}this.tail=t;if(!this.head){this.head=t}this.length++}push(...t){for(let r=0,i=t.length;r<i;r++){push(this,t[r])}return this.length}unshift(...t){for(var r=0,i=t.length;r<i;r++){unshift(this,t[r])}return this.length}pop(){if(!this.tail){return undefined}const t=this.tail.value;const r=this.tail;this.tail=this.tail.prev;if(this.tail){this.tail.next=undefined}else{this.head=undefined}r.list=undefined;this.length--;return t}shift(){if(!this.head){return undefined}const t=this.head.value;const r=this.head;this.head=this.head.next;if(this.head){this.head.prev=undefined}else{this.tail=undefined}r.list=undefined;this.length--;return t}forEach(t,r){r=r||this;for(let i=this.head,o=0;!!i;o++){t.call(r,i.value,o,this);i=i.next}}forEachReverse(t,r){r=r||this;for(let i=this.tail,o=this.length-1;!!i;o--){t.call(r,i.value,o,this);i=i.prev}}get(t){let r=0;let i=this.head;for(;!!i&&r<t;r++){i=i.next}if(r===t&&!!i){return i.value}}getReverse(t){let r=0;let i=this.tail;for(;!!i&&r<t;r++){i=i.prev}if(r===t&&!!i){return i.value}}map(t,r){r=r||this;const i=new Yallist;for(let o=this.head;!!o;){i.push(t.call(r,o.value,this));o=o.next}return i}mapReverse(t,r){r=r||this;var i=new Yallist;for(let o=this.tail;!!o;){i.push(t.call(r,o.value,this));o=o.prev}return i}reduce(t,r){let i;let o=this.head;if(arguments.length>1){i=r}else if(this.head){o=this.head.next;i=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=0;!!o;a++){i=t(i,o.value,a);o=o.next}return i}reduceReverse(t,r){let i;let o=this.tail;if(arguments.length>1){i=r}else if(this.tail){o=this.tail.prev;i=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(let r=this.length-1;!!o;r--){i=t(i,o.value,r);o=o.prev}return i}toArray(){const t=new Array(this.length);for(let r=0,i=this.head;!!i;r++){t[r]=i.value;i=i.next}return t}toArrayReverse(){const t=new Array(this.length);for(let r=0,i=this.tail;!!i;r++){t[r]=i.value;i=i.prev}return t}slice(t=0,r=this.length){if(r<0){r+=this.length}if(t<0){t+=this.length}const i=new Yallist;if(r<t||r<0){return i}if(t<0){t=0}if(r>this.length){r=this.length}let o=this.head;let a=0;for(a=0;!!o&&a<t;a++){o=o.next}for(;!!o&&a<r;a++,o=o.next){i.push(o.value)}return i}sliceReverse(t=0,r=this.length){if(r<0){r+=this.length}if(t<0){t+=this.length}const i=new Yallist;if(r<t||r<0){return i}if(t<0){t=0}if(r>this.length){r=this.length}let o=this.length;let a=this.tail;for(;!!a&&o>r;o--){a=a.prev}for(;!!a&&o>t;o--,a=a.prev){i.push(a.value)}return i}splice(t,r=0,...i){if(t>this.length){t=this.length-1}if(t<0){t=this.length+t}let o=this.head;for(let r=0;!!o&&r<t;r++){o=o.next}const a=[];for(let t=0;!!o&&t<r;t++){a.push(o.value);o=this.removeNode(o)}if(!o){o=this.tail}else if(o!==this.tail){o=o.prev}for(const t of i){o=insertAfter(this,o,t)}return a}reverse(){const t=this.head;const r=this.tail;for(let r=t;!!r;r=r.prev){const t=r.prev;r.prev=r.next;r.next=t}this.head=r;this.tail=t;return this}}function insertAfter(t,r,i){const o=r;const a=r?r.next:t.head;const c=new Node(i,o,a,t);if(c.next===undefined){t.tail=c}if(c.prev===undefined){t.head=c}t.length++;return c}function push(t,r){t.tail=new Node(r,t.tail,undefined,t);if(!t.head){t.head=t.tail}t.length++}function unshift(t,r){t.head=new Node(r,undefined,t.head,t);if(!t.tail){t.tail=t.head}t.length++}class Node{list;next;prev;value;constructor(t,r,i,o){this.list=o;this.value=t;if(r){r.next=this;this.prev=r}else{this.prev=undefined}if(i){i.prev=this;this.next=i}else{this.next=undefined}}}const encode=(t,r)=>{if(!Number.isSafeInteger(t)){throw Error("cannot encode number outside of javascript safe integer range")}else if(t<0){encodeNegative(t,r)}else{encodePositive(t,r)}return r};const encodePositive=(t,r)=>{r[0]=128;for(var i=r.length;i>1;i--){r[i-1]=t&255;t=Math.floor(t/256)}};const encodeNegative=(t,r)=>{r[0]=255;var i=false;t=t*-1;for(var o=r.length;o>1;o--){var a=t&255;t=Math.floor(t/256);if(i){r[o-1]=onesComp(a)}else if(a===0){r[o-1]=0}else{i=true;r[o-1]=twosComp(a)}}};const parse=t=>{const r=t[0];const i=r===128?pos(t.subarray(1,t.length)):r===255?twos(t):null;if(i===null){throw Error("invalid base256 encoding")}if(!Number.isSafeInteger(i)){throw Error("parsed number outside of javascript safe integer range")}return i};const twos=t=>{var r=t.length;var i=0;var o=false;for(var a=r-1;a>-1;a--){var c=Number(t[a]);var l;if(o){l=onesComp(c)}else if(c===0){l=c}else{o=true;l=twosComp(c)}if(l!==0){i-=l*Math.pow(256,r-a-1)}}return i};const pos=t=>{var r=t.length;var i=0;for(var o=r-1;o>-1;o--){var a=Number(t[o]);if(a!==0){i+=a*Math.pow(256,r-o-1)}}return i};const onesComp=t=>(255^t)&255;const twosComp=t=>(255^t)+1&255;const isCode=t=>cr.has(t);const isName=t=>lr.has(t);const cr=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);const lr=new Map(Array.from(cr).map((t=>[t[1],t[0]])));class Header{cksumValid=false;needPax=false;nullBlock=false;block;path;mode;uid;gid;size;cksum;#p="Unsupported";linkpath;uname;gname;devmaj=0;devmin=0;atime;ctime;mtime;charset;comment;constructor(t,r=0,i,o){if(Buffer.isBuffer(t)){this.decode(t,r||0,i,o)}else if(t){this.#m(t)}}decode(t,r,i,o){if(!r){r=0}if(!t||!(t.length>=r+512)){throw new Error("need 512 bytes for header")}this.path=decString(t,r,100);this.mode=decNumber(t,r+100,8);this.uid=decNumber(t,r+108,8);this.gid=decNumber(t,r+116,8);this.size=decNumber(t,r+124,12);this.mtime=decDate(t,r+136,12);this.cksum=decNumber(t,r+148,12);if(o)this.#m(o,true);if(i)this.#m(i);const a=decString(t,r+156,1);if(isCode(a)){this.#p=a||"0"}if(this.#p==="0"&&this.path.slice(-1)==="/"){this.#p="5"}if(this.#p==="5"){this.size=0}this.linkpath=decString(t,r+157,100);if(t.subarray(r+257,r+265).toString()==="ustar\x0000"){this.uname=decString(t,r+265,32);this.gname=decString(t,r+297,32);this.devmaj=decNumber(t,r+329,8)??0;this.devmin=decNumber(t,r+337,8)??0;if(t[r+475]!==0){const i=decString(t,r+345,155);this.path=i+"/"+this.path}else{const i=decString(t,r+345,130);if(i){this.path=i+"/"+this.path}this.atime=decDate(t,r+476,12);this.ctime=decDate(t,r+488,12)}}let c=8*32;for(let i=r;i<r+148;i++){c+=t[i]}for(let i=r+156;i<r+512;i++){c+=t[i]}this.cksumValid=c===this.cksum;if(this.cksum===undefined&&c===8*32){this.nullBlock=true}}#m(t,r=false){Object.assign(this,Object.fromEntries(Object.entries(t).filter((([t,i])=>!(i===null||i===undefined||t==="path"&&r||t==="linkpath"&&r||t==="global")))))}encode(t,r=0){if(!t){t=this.block=Buffer.alloc(512)}if(this.#p==="Unsupported"){this.#p="0"}if(!(t.length>=r+512)){throw new Error("need 512 bytes for header")}const i=this.ctime||this.atime?130:155;const o=splitPrefix(this.path||"",i);const a=o[0];const c=o[1];this.needPax=!!o[2];this.needPax=encString(t,r,100,a)||this.needPax;this.needPax=encNumber(t,r+100,8,this.mode)||this.needPax;this.needPax=encNumber(t,r+108,8,this.uid)||this.needPax;this.needPax=encNumber(t,r+116,8,this.gid)||this.needPax;this.needPax=encNumber(t,r+124,12,this.size)||this.needPax;this.needPax=encDate(t,r+136,12,this.mtime)||this.needPax;t[r+156]=this.#p.charCodeAt(0);this.needPax=encString(t,r+157,100,this.linkpath)||this.needPax;t.write("ustar\x0000",r+257,8);this.needPax=encString(t,r+265,32,this.uname)||this.needPax;this.needPax=encString(t,r+297,32,this.gname)||this.needPax;this.needPax=encNumber(t,r+329,8,this.devmaj)||this.needPax;this.needPax=encNumber(t,r+337,8,this.devmin)||this.needPax;this.needPax=encString(t,r+345,i,c)||this.needPax;if(t[r+475]!==0){this.needPax=encString(t,r+345,155,c)||this.needPax}else{this.needPax=encString(t,r+345,130,c)||this.needPax;this.needPax=encDate(t,r+476,12,this.atime)||this.needPax;this.needPax=encDate(t,r+488,12,this.ctime)||this.needPax}let l=8*32;for(let i=r;i<r+148;i++){l+=t[i]}for(let i=r+156;i<r+512;i++){l+=t[i]}this.cksum=l;encNumber(t,r+148,8,this.cksum);this.cksumValid=true;return this.needPax}get type(){return this.#p==="Unsupported"?this.#p:cr.get(this.#p)}get typeKey(){return this.#p}set type(t){const r=String(lr.get(t));if(isCode(r)||r==="Unsupported"){this.#p=r}else if(isCode(t)){this.#p=t}else{throw new TypeError("invalid entry type: "+t)}}}const splitPrefix=(t,r)=>{const i=100;let o=t;let a="";let c=undefined;const l=E.posix.parse(t).root||".";if(Buffer.byteLength(o)<i){c=[o,a,false]}else{a=E.posix.dirname(o);o=E.posix.basename(o);do{if(Buffer.byteLength(o)<=i&&Buffer.byteLength(a)<=r){c=[o,a,false]}else if(Buffer.byteLength(o)>i&&Buffer.byteLength(a)<=r){c=[o.slice(0,i-1),a,true]}else{o=E.posix.join(E.posix.basename(a),o);a=E.posix.dirname(a)}}while(a!==l&&c===undefined);if(!c){c=[t.slice(0,i-1),"",true]}}return c};const decString=(t,r,i)=>t.subarray(r,r+i).toString("utf8").replace(/\0.*/,"");const decDate=(t,r,i)=>numToDate(decNumber(t,r,i));const numToDate=t=>t===undefined?undefined:new Date(t*1e3);const decNumber=(t,r,i)=>Number(t[r])&128?parse(t.subarray(r,r+i)):decSmallNumber(t,r,i);const nanUndef=t=>isNaN(t)?undefined:t;const decSmallNumber=(t,r,i)=>nanUndef(parseInt(t.subarray(r,r+i).toString("utf8").replace(/\0.*$/,"").trim(),8));const ur={12:8589934591,8:2097151};const encNumber=(t,r,i,o)=>o===undefined?false:o>ur[i]||o<0?(encode(o,t.subarray(r,r+i)),true):(encSmallNumber(t,r,i,o),false);const encSmallNumber=(t,r,i,o)=>t.write(octalString(o,i),r,i,"ascii");const octalString=(t,r)=>padOctal(Math.floor(t).toString(8),r);const padOctal=(t,r)=>(t.length===r-1?t:new Array(r-t.length-1).join("0")+t+" ")+"\0";const encDate=(t,r,i,o)=>o===undefined?false:encNumber(t,r,i,o.getTime()/1e3);const hr=new Array(156).join("\0");const encString=(t,r,i,o)=>o===undefined?false:(t.write(o+hr,r,i,"utf8"),o.length!==Buffer.byteLength(o)||o.length>i);class Pax{atime;mtime;ctime;charset;comment;gid;uid;gname;uname;linkpath;dev;ino;nlink;path;size;mode;global;constructor(t,r=false){this.atime=t.atime;this.charset=t.charset;this.comment=t.comment;this.ctime=t.ctime;this.dev=t.dev;this.gid=t.gid;this.global=r;this.gname=t.gname;this.ino=t.ino;this.linkpath=t.linkpath;this.mtime=t.mtime;this.nlink=t.nlink;this.path=t.path;this.size=t.size;this.uid=t.uid;this.uname=t.uname}encode(){const t=this.encodeBody();if(t===""){return Buffer.allocUnsafe(0)}const r=Buffer.byteLength(t);const i=512*Math.ceil(1+r/512);const o=Buffer.allocUnsafe(i);for(let t=0;t<512;t++){o[t]=0}new Header({path:("PaxHeader/"+(0,E.basename)(this.path??"")).slice(0,99),mode:this.mode||420,uid:this.uid,gid:this.gid,size:r,mtime:this.mtime,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime,ctime:this.ctime}).encode(o);o.write(t,512,r,"utf8");for(let t=r+512;t<o.length;t++){o[t]=0}return o}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(t){if(this[t]===undefined){return""}const r=this[t];const i=r instanceof Date?r.getTime()/1e3:r;const o=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+i+"\n";const a=Buffer.byteLength(o);let c=Math.floor(Math.log(a)/Math.log(10))+1;if(a+c>=Math.pow(10,c)){c+=1}const l=c+a;return l+o}static parse(t,r,i=false){return new Pax(merge(parseKV(t),r),i)}}const merge=(t,r)=>r?Object.assign({},r,t):t;const parseKV=t=>t.replace(/\n$/,"").split("\n").reduce(parseKVLine,Object.create(null));const parseKVLine=(t,r)=>{const i=parseInt(r,10);if(i!==Buffer.byteLength(r)+1){return t}r=r.slice((i+" ").length);const o=r.split("=");const a=o.shift();if(!a){return t}const c=a.replace(/^SCHILY\.(dev|ino|nlink)/,"$1");const l=o.join("=");t[c]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(c)?new Date(Number(l)*1e3):/^[0-9]+$/.test(l)?+l:l;return t};const fr=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;const dr=fr!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/");class ReadEntry extends Minipass{extended;globalExtended;header;startBlockSize;blockRemain;remain;type;meta=false;ignore=false;path;mode;uid;gid;uname;gname;size=0;mtime;atime;ctime;linkpath;dev;ino;nlink;invalid=false;absolute;unsupported=false;constructor(t,r,i){super({});this.pause();this.extended=r;this.globalExtended=i;this.header=t;this.remain=t.size??0;this.startBlockSize=512*Math.ceil(this.remain/512);this.blockRemain=this.startBlockSize;this.type=t.type;switch(this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=true;break;default:this.ignore=true}if(!t.path){throw new Error("no path provided for tar.ReadEntry")}this.path=dr(t.path);this.mode=t.mode;if(this.mode){this.mode=this.mode&4095}this.uid=t.uid;this.gid=t.gid;this.uname=t.uname;this.gname=t.gname;this.size=this.remain;this.mtime=t.mtime;this.atime=t.atime;this.ctime=t.ctime;this.linkpath=t.linkpath?dr(t.linkpath):undefined;this.uname=t.uname;this.gname=t.gname;if(r){this.#m(r)}if(i){this.#m(i,true)}}write(t){const r=t.length;if(r>this.blockRemain){throw new Error("writing more to entry than is appropriate")}const i=this.remain;const o=this.blockRemain;this.remain=Math.max(0,i-r);this.blockRemain=Math.max(0,o-r);if(this.ignore){return true}if(i>=r){return super.write(t)}return super.write(t.subarray(0,i))}#m(t,r=false){if(t.path)t.path=dr(t.path);if(t.linkpath)t.linkpath=dr(t.linkpath);Object.assign(this,Object.fromEntries(Object.entries(t).filter((([t,i])=>!(i===null||i===undefined||t==="path"&&r)))))}}const warnMethod=(t,r,i,o={})=>{if(t.file){o.file=t.file}if(t.cwd){o.cwd=t.cwd}o.code=i instanceof Error&&i.code||r;o.tarCode=r;if(!t.strict&&o.recoverable!==false){if(i instanceof Error){o=Object.assign(i,o);i=i.message}t.emit("warn",r,i,o)}else if(i instanceof Error){t.emit("error",Object.assign(i,o))}else{t.emit("error",Object.assign(new Error(`${r}: ${i}`),o))}};const pr=1024*1024;const mr=Buffer.from([31,139]);const gr=Symbol("state");const yr=Symbol("writeEntry");const _r=Symbol("readEntry");const vr=Symbol("nextEntry");const br=Symbol("processEntry");const wr=Symbol("extendedHeader");const Er=Symbol("globalExtendedHeader");const Sr=Symbol("meta");const $r=Symbol("emitMeta");const Rr=Symbol("buffer");const Pr=Symbol("queue");const Or=Symbol("ended");const Ar=Symbol("emittedEnd");const xr=Symbol("emit");const Tr=Symbol("unzip");const kr=Symbol("consumeChunk");const Cr=Symbol("consumeChunkSub");const Ir=Symbol("consumeBody");const Nr=Symbol("consumeMeta");const Dr=Symbol("consumeHeader");const Lr=Symbol("consuming");const Mr=Symbol("bufferConcat");const jr=Symbol("maybeEnd");const Fr=Symbol("writing");const Ur=Symbol("aborted");const Br=Symbol("onDone");const Hr=Symbol("sawValidEntry");const Vr=Symbol("sawNullBlock");const zr=Symbol("sawEOF");const Gr=Symbol("closeStream");const noop=()=>true;class Parser extends Ue.EventEmitter{file;strict;maxMetaEntrySize;filter;brotli;writable=true;readable=false;[Pr]=new Yallist;[Rr];[_r];[yr];[gr]="begin";[Sr]="";[wr];[Er];[Or]=false;[Tr];[Ur]=false;[Hr];[Vr]=false;[zr]=false;[Fr]=false;[Lr]=false;[Ar]=false;constructor(t={}){super();this.file=t.file||"";this.on(Br,(()=>{if(this[gr]==="begin"||this[Hr]===false){this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}}));if(t.ondone){this.on(Br,t.ondone)}else{this.on(Br,(()=>{this.emit("prefinish");this.emit("finish");this.emit("end")}))}this.strict=!!t.strict;this.maxMetaEntrySize=t.maxMetaEntrySize||pr;this.filter=typeof t.filter==="function"?t.filter:noop;const r=t.file&&(t.file.endsWith(".tar.br")||t.file.endsWith(".tbr"));this.brotli=!t.gzip&&t.brotli!==undefined?t.brotli:r?undefined:false;this.on("end",(()=>this[Gr]()));if(typeof t.onwarn==="function"){this.on("warn",t.onwarn)}if(typeof t.onReadEntry==="function"){this.on("entry",t.onReadEntry)}}warn(t,r,i={}){warnMethod(this,t,r,i)}[Dr](t,r){if(this[Hr]===undefined){this[Hr]=false}let i;try{i=new Header(t,r,this[wr],this[Er])}catch(t){return this.warn("TAR_ENTRY_INVALID",t)}if(i.nullBlock){if(this[Vr]){this[zr]=true;if(this[gr]==="begin"){this[gr]="header"}this[xr]("eof")}else{this[Vr]=true;this[xr]("nullBlock")}}else{this[Vr]=false;if(!i.cksumValid){this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i})}else if(!i.path){this.warn("TAR_ENTRY_INVALID","path is required",{header:i})}else{const t=i.type;if(/^(Symbolic)?Link$/.test(t)&&!i.linkpath){this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i})}else if(!/^(Symbolic)?Link$/.test(t)&&!/^(Global)?ExtendedHeader$/.test(t)&&i.linkpath){this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i})}else{const t=this[yr]=new ReadEntry(i,this[wr],this[Er]);if(!this[Hr]){if(t.remain){const onend=()=>{if(!t.invalid){this[Hr]=true}};t.on("end",onend)}else{this[Hr]=true}}if(t.meta){if(t.size>this.maxMetaEntrySize){t.ignore=true;this[xr]("ignoredEntry",t);this[gr]="ignore";t.resume()}else if(t.size>0){this[Sr]="";t.on("data",(t=>this[Sr]+=t));this[gr]="meta"}}else{this[wr]=undefined;t.ignore=t.ignore||!this.filter(t.path,t);if(t.ignore){this[xr]("ignoredEntry",t);this[gr]=t.remain?"ignore":"header";t.resume()}else{if(t.remain){this[gr]="body"}else{this[gr]="header";t.end()}if(!this[_r]){this[Pr].push(t);this[vr]()}else{this[Pr].push(t)}}}}}}}[Gr](){queueMicrotask((()=>this.emit("close")))}[br](t){let r=true;if(!t){this[_r]=undefined;r=false}else if(Array.isArray(t)){const[r,...i]=t;this.emit(r,...i)}else{this[_r]=t;this.emit("entry",t);if(!t.emittedEnd){t.on("end",(()=>this[vr]()));r=false}}return r}[vr](){do{}while(this[br](this[Pr].shift()));if(!this[Pr].length){const t=this[_r];const r=!t||t.flowing||t.size===t.remain;if(r){if(!this[Fr]){this.emit("drain")}}else{t.once("drain",(()=>this.emit("drain")))}}}[Ir](t,r){const i=this[yr];if(!i){throw new Error("attempt to consume body without entry??")}const o=i.blockRemain??0;const a=o>=t.length&&r===0?t:t.subarray(r,r+o);i.write(a);if(!i.blockRemain){this[gr]="header";this[yr]=undefined;i.end()}return a.length}[Nr](t,r){const i=this[yr];const o=this[Ir](t,r);if(!this[yr]&&i){this[$r](i)}return o}[xr](t,r,i){if(!this[Pr].length&&!this[_r]){this.emit(t,r,i)}else{this[Pr].push([t,r,i])}}[$r](t){this[xr]("meta",this[Sr]);switch(t.type){case"ExtendedHeader":case"OldExtendedHeader":this[wr]=Pax.parse(this[Sr],this[wr],false);break;case"GlobalExtendedHeader":this[Er]=Pax.parse(this[Sr],this[Er],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":{const t=this[wr]??Object.create(null);this[wr]=t;t.path=this[Sr].replace(/\0.*/,"");break}case"NextFileHasLongLinkpath":{const t=this[wr]||Object.create(null);this[wr]=t;t.linkpath=this[Sr].replace(/\0.*/,"");break}default:throw new Error("unknown meta: "+t.type)}}abort(t){this[Ur]=true;this.emit("abort",t);this.warn("TAR_ABORT",t,{recoverable:false})}write(t,r,i){if(typeof r==="function"){i=r;r=undefined}if(typeof t==="string"){t=Buffer.from(t,typeof r==="string"?r:"utf8")}if(this[Ur]){i?.();return false}const o=this[Tr]===undefined||this.brotli===undefined&&this[Tr]===false;if(o&&t){if(this[Rr]){t=Buffer.concat([this[Rr],t]);this[Rr]=undefined}if(t.length<mr.length){this[Rr]=t;i?.();return true}for(let r=0;this[Tr]===undefined&&r<mr.length;r++){if(t[r]!==mr[r]){this[Tr]=false}}const r=this.brotli===undefined;if(this[Tr]===false&&r){if(t.length<512){if(this[Or]){this.brotli=true}else{this[Rr]=t;i?.();return true}}else{try{new Header(t.subarray(0,512));this.brotli=false}catch(t){this.brotli=true}}}if(this[Tr]===undefined||this[Tr]===false&&this.brotli){const r=this[Or];this[Or]=false;this[Tr]=this[Tr]===undefined?new Unzip({}):new BrotliDecompress({});this[Tr].on("data",(t=>this[kr](t)));this[Tr].on("error",(t=>this.abort(t)));this[Tr].on("end",(()=>{this[Or]=true;this[kr]()}));this[Fr]=true;const o=!!this[Tr][r?"end":"write"](t);this[Fr]=false;i?.();return o}}this[Fr]=true;if(this[Tr]){this[Tr].write(t)}else{this[kr](t)}this[Fr]=false;const a=this[Pr].length?false:this[_r]?this[_r].flowing:true;if(!a&&!this[Pr].length){this[_r]?.once("drain",(()=>this.emit("drain")))}i?.();return a}[Mr](t){if(t&&!this[Ur]){this[Rr]=this[Rr]?Buffer.concat([this[Rr],t]):t}}[jr](){if(this[Or]&&!this[Ar]&&!this[Ur]&&!this[Lr]){this[Ar]=true;const t=this[yr];if(t&&t.blockRemain){const r=this[Rr]?this[Rr].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${r} available)`,{entry:t});if(this[Rr]){t.write(this[Rr])}t.end()}this[xr](Br)}}[kr](t){if(this[Lr]&&t){this[Mr](t)}else if(!t&&!this[Rr]){this[jr]()}else if(t){this[Lr]=true;if(this[Rr]){this[Mr](t);const r=this[Rr];this[Rr]=undefined;this[Cr](r)}else{this[Cr](t)}while(this[Rr]&&this[Rr]?.length>=512&&!this[Ur]&&!this[zr]){const t=this[Rr];this[Rr]=undefined;this[Cr](t)}this[Lr]=false}if(!this[Rr]||this[Or]){this[jr]()}}[Cr](t){let r=0;const i=t.length;while(r+512<=i&&!this[Ur]&&!this[zr]){switch(this[gr]){case"begin":case"header":this[Dr](t,r);r+=512;break;case"ignore":case"body":r+=this[Ir](t,r);break;case"meta":r+=this[Nr](t,r);break;default:throw new Error("invalid state: "+this[gr])}}if(r<i){if(this[Rr]){this[Rr]=Buffer.concat([t.subarray(r),this[Rr]])}else{this[Rr]=t.subarray(r)}}}end(t,r,i){if(typeof t==="function"){i=t;r=undefined;t=undefined}if(typeof r==="function"){i=r;r=undefined}if(typeof t==="string"){t=Buffer.from(t,r)}if(i)this.once("finish",i);if(!this[Ur]){if(this[Tr]){if(t)this[Tr].write(t);this[Tr].end()}else{this[Or]=true;if(this.brotli===undefined)t=t||Buffer.alloc(0);if(t)this.write(t);this[jr]()}}return this}}const stripTrailingSlashes=t=>{let r=t.length-1;let i=-1;while(r>-1&&t.charAt(r)==="/"){i=r;r--}return i===-1?t:t.slice(0,i)};const onReadEntryFunction=t=>{const r=t.onReadEntry;t.onReadEntry=r?t=>{r(t);t.resume()}:t=>t.resume()};const filesFilter=(t,r)=>{const i=new Map(r.map((t=>[stripTrailingSlashes(t),true])));const o=t.filter;const mapHas=(t,r="")=>{const o=r||(0,xe.parse)(t).root||".";let a;if(t===o)a=false;else{const r=i.get(t);if(r!==undefined){a=r}else{a=mapHas((0,xe.dirname)(t),o)}}i.set(t,a);return a};t.filter=o?(t,r)=>o(t,r)&&mapHas(stripTrailingSlashes(t)):t=>mapHas(stripTrailingSlashes(t))};const listFileSync=t=>{const r=new Parser(t);const i=t.file;let o;try{const a=w.statSync(i);const c=t.maxReadSize||16*1024*1024;if(a.size<c){r.end(w.readFileSync(i))}else{let t=0;const l=Buffer.allocUnsafe(c);o=w.openSync(i,"r");while(t<a.size){const i=w.readSync(o,l,0,c,t);t+=i;r.write(l.subarray(0,i))}r.end()}}finally{if(typeof o==="number"){try{w.closeSync(o)}catch(t){}}}};const listFile=(t,r)=>{const i=new Parser(t);const o=t.maxReadSize||16*1024*1024;const a=t.file;const c=new Promise(((t,r)=>{i.on("error",r);i.on("end",t);w.stat(a,((t,c)=>{if(t){r(t)}else{const t=new ReadStream(a,{readSize:o,size:c.size});t.on("error",r);t.pipe(i)}}))}));return c};const qr=makeCommand(listFileSync,listFile,(t=>new Parser(t)),(t=>new Parser(t)),((t,r)=>{if(r?.length)filesFilter(t,r);if(!t.noResume)onReadEntryFunction(t)}));const modeFix=(t,r,i)=>{t&=4095;if(i){t=(t|384)&~18}if(r){if(t&256){t|=64}if(t&32){t|=8}if(t&4){t|=1}}return t};const{isAbsolute:Wr,parse:Kr}=E.win32;const stripAbsolutePath=t=>{let r="";let i=Kr(t);while(Wr(t)||i.root){const o=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":i.root;t=t.slice(o.length);r+=o;i=Kr(t)}return[r,t]};const Yr=["|","<",">","?",":"];const Zr=Yr.map((t=>String.fromCharCode(61440+t.charCodeAt(0))));const Xr=new Map(Yr.map(((t,r)=>[t,Zr[r]])));const Jr=new Map(Zr.map(((t,r)=>[t,Yr[r]])));const winchars_encode=t=>Yr.reduce(((t,r)=>t.split(r).join(Xr.get(r))),t);const decode=t=>Zr.reduce(((t,r)=>t.split(r).join(Jr.get(r))),t);const prefixPath=(t,r)=>{if(!r){return dr(t)}t=dr(t).replace(/^\.(\/|$)/,"");return stripTrailingSlashes(r)+"/"+t};const Qr=16*1024*1024;const es=Symbol("process");const ts=Symbol("file");const rs=Symbol("directory");const ss=Symbol("symlink");const ns=Symbol("hardlink");const is=Symbol("header");const os=Symbol("read");const as=Symbol("lstat");const cs=Symbol("onlstat");const ls=Symbol("onread");const us=Symbol("onreadlink");const hs=Symbol("openfile");const ds=Symbol("onopenfile");const ps=Symbol("close");const ms=Symbol("mode");const gs=Symbol("awaitDrain");const ys=Symbol("ondrain");const _s=Symbol("prefix");class WriteEntry extends Minipass{path;portable;myuid=process.getuid&&process.getuid()||0;myuser=process.env.USER||"";maxReadSize;linkCache;statCache;preservePaths;cwd;strict;mtime;noPax;noMtime;prefix;fd;blockLen=0;blockRemain=0;buf;pos=0;remain=0;length=0;offset=0;win32;absolute;header;type;linkpath;stat;onWriteEntry;#g=false;constructor(t,r={}){const i=dealias(r);super();this.path=dr(t);this.portable=!!i.portable;this.maxReadSize=i.maxReadSize||Qr;this.linkCache=i.linkCache||new Map;this.statCache=i.statCache||new Map;this.preservePaths=!!i.preservePaths;this.cwd=dr(i.cwd||process.cwd());this.strict=!!i.strict;this.noPax=!!i.noPax;this.noMtime=!!i.noMtime;this.mtime=i.mtime;this.prefix=i.prefix?dr(i.prefix):undefined;this.onWriteEntry=i.onWriteEntry;if(typeof i.onwarn==="function"){this.on("warn",i.onwarn)}let o=false;if(!this.preservePaths){const[t,r]=stripAbsolutePath(this.path);if(t&&typeof r==="string"){this.path=r;o=t}}this.win32=!!i.win32||process.platform==="win32";if(this.win32){this.path=decode(this.path.replace(/\\/g,"/"));t=t.replace(/\\/g,"/")}this.absolute=dr(i.absolute||xe.resolve(this.cwd,t));if(this.path===""){this.path="./"}if(o){this.warn("TAR_ENTRY_INFO",`stripping ${o} from absolute path`,{entry:this,path:o+this.path})}const a=this.statCache.get(this.absolute);if(a){this[cs](a)}else{this[as]()}}warn(t,r,i={}){return warnMethod(this,t,r,i)}emit(t,...r){if(t==="error"){this.#g=true}return super.emit(t,...r)}[as](){Ae.lstat(this.absolute,((t,r)=>{if(t){return this.emit("error",t)}this[cs](r)}))}[cs](t){this.statCache.set(this.absolute,t);this.stat=t;if(!t.isFile()){t.size=0}this.type=getType(t);this.emit("stat",t);this[es]()}[es](){switch(this.type){case"File":return this[ts]();case"Directory":return this[rs]();case"SymbolicLink":return this[ss]();default:return this.end()}}[ms](t){return modeFix(t,this.type==="Directory",this.portable)}[_s](t){return prefixPath(t,this.prefix)}[is](){if(!this.stat){throw new Error("cannot write header before stat")}if(this.type==="Directory"&&this.portable){this.noMtime=true}this.onWriteEntry?.(this);this.header=new Header({path:this[_s](this.path),linkpath:this.type==="Link"&&this.linkpath!==undefined?this[_s](this.linkpath):this.linkpath,mode:this[ms](this.stat.mode),uid:this.portable?undefined:this.stat.uid,gid:this.portable?undefined:this.stat.gid,size:this.stat.size,mtime:this.noMtime?undefined:this.mtime||this.stat.mtime,type:this.type==="Unsupported"?undefined:this.type,uname:this.portable?undefined:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?undefined:this.stat.atime,ctime:this.portable?undefined:this.stat.ctime});if(this.header.encode()&&!this.noPax){super.write(new Pax({atime:this.portable?undefined:this.header.atime,ctime:this.portable?undefined:this.header.ctime,gid:this.portable?undefined:this.header.gid,mtime:this.noMtime?undefined:this.mtime||this.header.mtime,path:this[_s](this.path),linkpath:this.type==="Link"&&this.linkpath!==undefined?this[_s](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?undefined:this.header.uid,uname:this.portable?undefined:this.header.uname,dev:this.portable?undefined:this.stat.dev,ino:this.portable?undefined:this.stat.ino,nlink:this.portable?undefined:this.stat.nlink}).encode())}const t=this.header?.block;if(!t){throw new Error("failed to encode header")}super.write(t)}[rs](){if(!this.stat){throw new Error("cannot create directory entry without stat")}if(this.path.slice(-1)!=="/"){this.path+="/"}this.stat.size=0;this[is]();this.end()}[ss](){Ae.readlink(this.absolute,((t,r)=>{if(t){return this.emit("error",t)}this[us](r)}))}[us](t){this.linkpath=dr(t);this[is]();this.end()}[ns](t){if(!this.stat){throw new Error("cannot create link entry without stat")}this.type="Link";this.linkpath=dr(xe.relative(this.cwd,t));this.stat.size=0;this[is]();this.end()}[ts](){if(!this.stat){throw new Error("cannot create file entry without stat")}if(this.stat.nlink>1){const t=`${this.stat.dev}:${this.stat.ino}`;const r=this.linkCache.get(t);if(r?.indexOf(this.cwd)===0){return this[ns](r)}this.linkCache.set(t,this.absolute)}this[is]();if(this.stat.size===0){return this.end()}this[hs]()}[hs](){Ae.open(this.absolute,"r",((t,r)=>{if(t){return this.emit("error",t)}this[ds](r)}))}[ds](t){this.fd=t;if(this.#g){return this[ps]()}if(!this.stat){throw new Error("should stat before calling onopenfile")}this.blockLen=512*Math.ceil(this.stat.size/512);this.blockRemain=this.blockLen;const r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r);this.offset=0;this.pos=0;this.remain=this.stat.size;this.length=this.buf.length;this[os]()}[os](){const{fd:t,buf:r,offset:i,length:o,pos:a}=this;if(t===undefined||r===undefined){throw new Error("cannot read file without first opening")}Ae.read(t,r,i,o,a,((t,r)=>{if(t){return this[ps]((()=>this.emit("error",t)))}this[ls](r)}))}[ps](t=()=>{}){if(this.fd!==undefined)Ae.close(this.fd,t)}[ls](t){if(t<=0&&this.remain>0){const t=Object.assign(new Error("encountered unexpected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[ps]((()=>this.emit("error",t)))}if(t>this.remain){const t=Object.assign(new Error("did not encounter expected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[ps]((()=>this.emit("error",t)))}if(!this.buf){throw new Error("should have created buffer prior to reading")}if(t===this.remain){for(let r=t;r<this.length&&t<this.blockRemain;r++){this.buf[r+this.offset]=0;t++;this.remain++}}const r=this.offset===0&&t===this.buf.length?this.buf:this.buf.subarray(this.offset,this.offset+t);const i=this.write(r);if(!i){this[gs]((()=>this[ys]()))}else{this[ys]()}}[gs](t){this.once("drain",t)}write(t,r,i){if(typeof r==="function"){i=r;r=undefined}if(typeof t==="string"){t=Buffer.from(t,typeof r==="string"?r:"utf8")}if(this.blockRemain<t.length){const t=Object.assign(new Error("writing more data than expected"),{path:this.absolute});return this.emit("error",t)}this.remain-=t.length;this.blockRemain-=t.length;this.pos+=t.length;this.offset+=t.length;return super.write(t,null,i)}[ys](){if(!this.remain){if(this.blockRemain){super.write(Buffer.alloc(this.blockRemain))}return this[ps]((t=>t?this.emit("error",t):this.end()))}if(!this.buf){throw new Error("buffer lost somehow in ONDRAIN")}if(this.offset>=this.length){this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length));this.offset=0}this.length=this.buf.length-this.offset;this[os]()}}class WriteEntrySync extends WriteEntry{sync=true;[as](){this[cs](Ae.lstatSync(this.absolute))}[ss](){this[us](Ae.readlinkSync(this.absolute))}[hs](){this[ds](Ae.openSync(this.absolute,"r"))}[os](){let t=true;try{const{fd:r,buf:i,offset:o,length:a,pos:c}=this;if(r===undefined||i===undefined){throw new Error("fd and buf must be set in READ method")}const l=Ae.readSync(r,i,o,a,c);this[ls](l);t=false}finally{if(t){try{this[ps]((()=>{}))}catch(t){}}}}[gs](t){t()}[ps](t=()=>{}){if(this.fd!==undefined)Ae.closeSync(this.fd);t()}}class WriteEntryTar extends Minipass{blockLen=0;blockRemain=0;buf=0;pos=0;remain=0;length=0;preservePaths;portable;strict;noPax;noMtime;readEntry;type;prefix;path;mode;uid;gid;uname;gname;header;mtime;atime;ctime;linkpath;size;onWriteEntry;warn(t,r,i={}){return warnMethod(this,t,r,i)}constructor(t,r={}){const i=dealias(r);super();this.preservePaths=!!i.preservePaths;this.portable=!!i.portable;this.strict=!!i.strict;this.noPax=!!i.noPax;this.noMtime=!!i.noMtime;this.onWriteEntry=i.onWriteEntry;this.readEntry=t;const{type:o}=t;if(o==="Unsupported"){throw new Error("writing entry that should be ignored")}this.type=o;if(this.type==="Directory"&&this.portable){this.noMtime=true}this.prefix=i.prefix;this.path=dr(t.path);this.mode=t.mode!==undefined?this[ms](t.mode):undefined;this.uid=this.portable?undefined:t.uid;this.gid=this.portable?undefined:t.gid;this.uname=this.portable?undefined:t.uname;this.gname=this.portable?undefined:t.gname;this.size=t.size;this.mtime=this.noMtime?undefined:i.mtime||t.mtime;this.atime=this.portable?undefined:t.atime;this.ctime=this.portable?undefined:t.ctime;this.linkpath=t.linkpath!==undefined?dr(t.linkpath):undefined;if(typeof i.onwarn==="function"){this.on("warn",i.onwarn)}let a=false;if(!this.preservePaths){const[t,r]=stripAbsolutePath(this.path);if(t&&typeof r==="string"){this.path=r;a=t}}this.remain=t.size;this.blockRemain=t.startBlockSize;this.onWriteEntry?.(this);this.header=new Header({path:this[_s](this.path),linkpath:this.type==="Link"&&this.linkpath!==undefined?this[_s](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?undefined:this.uid,gid:this.portable?undefined:this.gid,size:this.size,mtime:this.noMtime?undefined:this.mtime,type:this.type,uname:this.portable?undefined:this.uname,atime:this.portable?undefined:this.atime,ctime:this.portable?undefined:this.ctime});if(a){this.warn("TAR_ENTRY_INFO",`stripping ${a} from absolute path`,{entry:this,path:a+this.path})}if(this.header.encode()&&!this.noPax){super.write(new Pax({atime:this.portable?undefined:this.atime,ctime:this.portable?undefined:this.ctime,gid:this.portable?undefined:this.gid,mtime:this.noMtime?undefined:this.mtime,path:this[_s](this.path),linkpath:this.type==="Link"&&this.linkpath!==undefined?this[_s](this.linkpath):this.linkpath,size:this.size,uid:this.portable?undefined:this.uid,uname:this.portable?undefined:this.uname,dev:this.portable?undefined:this.readEntry.dev,ino:this.portable?undefined:this.readEntry.ino,nlink:this.portable?undefined:this.readEntry.nlink}).encode())}const c=this.header?.block;if(!c)throw new Error("failed to encode header");super.write(c);t.pipe(this)}[_s](t){return prefixPath(t,this.prefix)}[ms](t){return modeFix(t,this.type==="Directory",this.portable)}write(t,r,i){if(typeof r==="function"){i=r;r=undefined}if(typeof t==="string"){t=Buffer.from(t,typeof r==="string"?r:"utf8")}const o=t.length;if(o>this.blockRemain){throw new Error("writing more to entry than is appropriate")}this.blockRemain-=o;return super.write(t,i)}end(t,r,i){if(this.blockRemain){super.write(Buffer.alloc(this.blockRemain))}if(typeof t==="function"){i=t;r=undefined;t=undefined}if(typeof r==="function"){i=r;r=undefined}if(typeof t==="string"){t=Buffer.from(t,r??"utf8")}if(i)this.once("finish",i);t?super.end(t,i):super.end(i);return this}}const getType=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";class PackJob{path;absolute;entry;stat;readdir;pending=false;ignore=false;piped=false;constructor(t,r){this.path=t||"./";this.absolute=r}}const vs=Buffer.alloc(1024);const bs=Symbol("onStat");const ws=Symbol("ended");const Es=Symbol("queue");const Ss=Symbol("current");const $s=Symbol("process");const Rs=Symbol("processing");const Ps=Symbol("processJob");const Os=Symbol("jobs");const As=Symbol("jobDone");const xs=Symbol("addFSEntry");const Ts=Symbol("addTarEntry");const ks=Symbol("stat");const Cs=Symbol("readdir");const Is=Symbol("onreaddir");const Ns=Symbol("pipe");const Ds=Symbol("entry");const Ls=Symbol("entryOpt");const Ms=Symbol("writeEntryClass");const js=Symbol("write");const Fs=Symbol("ondrain");class Pack extends Minipass{opt;cwd;maxReadSize;preservePaths;strict;noPax;prefix;linkCache;statCache;file;portable;zip;readdirCache;noDirRecurse;follow;noMtime;mtime;filter;jobs;[Ms];onWriteEntry;[Es];[Os]=0;[Rs]=false;[ws]=false;constructor(t={}){super();this.opt=t;this.file=t.file||"";this.cwd=t.cwd||process.cwd();this.maxReadSize=t.maxReadSize;this.preservePaths=!!t.preservePaths;this.strict=!!t.strict;this.noPax=!!t.noPax;this.prefix=dr(t.prefix||"");this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.readdirCache=t.readdirCache||new Map;this.onWriteEntry=t.onWriteEntry;this[Ms]=WriteEntry;if(typeof t.onwarn==="function"){this.on("warn",t.onwarn)}this.portable=!!t.portable;if(t.gzip||t.brotli){if(t.gzip&&t.brotli){throw new TypeError("gzip and brotli are mutually exclusive")}if(t.gzip){if(typeof t.gzip!=="object"){t.gzip={}}if(this.portable){t.gzip.portable=true}this.zip=new Gzip(t.gzip)}if(t.brotli){if(typeof t.brotli!=="object"){t.brotli={}}this.zip=new BrotliCompress(t.brotli)}if(!this.zip)throw new Error("impossible");const r=this.zip;r.on("data",(t=>super.write(t)));r.on("end",(()=>super.end()));r.on("drain",(()=>this[Fs]()));this.on("resume",(()=>r.resume()))}else{this.on("drain",this[Fs])}this.noDirRecurse=!!t.noDirRecurse;this.follow=!!t.follow;this.noMtime=!!t.noMtime;if(t.mtime)this.mtime=t.mtime;this.filter=typeof t.filter==="function"?t.filter:()=>true;this[Es]=new Yallist;this[Os]=0;this.jobs=Number(t.jobs)||4;this[Rs]=false;this[ws]=false}[js](t){return super.write(t)}add(t){this.write(t);return this}end(t,r,i){if(typeof t==="function"){i=t;t=undefined}if(typeof r==="function"){i=r;r=undefined}if(t){this.add(t)}this[ws]=true;this[$s]();if(i)i();return this}write(t){if(this[ws]){throw new Error("write after end")}if(t instanceof ReadEntry){this[Ts](t)}else{this[xs](t)}return this.flowing}[Ts](t){const r=dr(xe.resolve(this.cwd,t.path));if(!this.filter(t.path,t)){t.resume()}else{const i=new PackJob(t.path,r);i.entry=new WriteEntryTar(t,this[Ls](i));i.entry.on("end",(()=>this[As](i)));this[Os]+=1;this[Es].push(i)}this[$s]()}[xs](t){const r=dr(xe.resolve(this.cwd,t));this[Es].push(new PackJob(t,r));this[$s]()}[ks](t){t.pending=true;this[Os]+=1;const r=this.follow?"stat":"lstat";Ae[r](t.absolute,((r,i)=>{t.pending=false;this[Os]-=1;if(r){this.emit("error",r)}else{this[bs](t,i)}}))}[bs](t,r){this.statCache.set(t.absolute,r);t.stat=r;if(!this.filter(t.path,r)){t.ignore=true}this[$s]()}[Cs](t){t.pending=true;this[Os]+=1;Ae.readdir(t.absolute,((r,i)=>{t.pending=false;this[Os]-=1;if(r){return this.emit("error",r)}this[Is](t,i)}))}[Is](t,r){this.readdirCache.set(t.absolute,r);t.readdir=r;this[$s]()}[$s](){if(this[Rs]){return}this[Rs]=true;for(let t=this[Es].head;!!t&&this[Os]<this.jobs;t=t.next){this[Ps](t.value);if(t.value.ignore){const r=t.next;this[Es].removeNode(t);t.next=r}}this[Rs]=false;if(this[ws]&&!this[Es].length&&this[Os]===0){if(this.zip){this.zip.end(vs)}else{super.write(vs);super.end()}}}get[Ss](){return this[Es]&&this[Es].head&&this[Es].head.value}[As](t){this[Es].shift();this[Os]-=1;this[$s]()}[Ps](t){if(t.pending){return}if(t.entry){if(t===this[Ss]&&!t.piped){this[Ns](t)}return}if(!t.stat){const r=this.statCache.get(t.absolute);if(r){this[bs](t,r)}else{this[ks](t)}}if(!t.stat){return}if(t.ignore){return}if(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir){const r=this.readdirCache.get(t.absolute);if(r){this[Is](t,r)}else{this[Cs](t)}if(!t.readdir){return}}t.entry=this[Ds](t);if(!t.entry){t.ignore=true;return}if(t===this[Ss]&&!t.piped){this[Ns](t)}}[Ls](t){return{onwarn:(t,r,i)=>this.warn(t,r,i),noPax:this.noPax,cwd:this.cwd,absolute:t.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix,onWriteEntry:this.onWriteEntry}}[Ds](t){this[Os]+=1;try{const r=new this[Ms](t.path,this[Ls](t));return r.on("end",(()=>this[As](t))).on("error",(t=>this.emit("error",t)))}catch(t){this.emit("error",t)}}[Fs](){if(this[Ss]&&this[Ss].entry){this[Ss].entry.resume()}}[Ns](t){t.piped=true;if(t.readdir){t.readdir.forEach((r=>{const i=t.path;const o=i==="./"?"":i.replace(/\/*$/,"/");this[xs](o+r)}))}const r=t.entry;const i=this.zip;if(!r)throw new Error("cannot pipe without source");if(i){r.on("data",(t=>{if(!i.write(t)){r.pause()}}))}else{r.on("data",(t=>{if(!super.write(t)){r.pause()}}))}}pause(){if(this.zip){this.zip.pause()}return super.pause()}warn(t,r,i={}){warnMethod(this,t,r,i)}}class PackSync extends Pack{sync=true;constructor(t){super(t);this[Ms]=WriteEntrySync}pause(){}resume(){}[ks](t){const r=this.follow?"statSync":"lstatSync";this[bs](t,Ae[r](t.absolute))}[Cs](t){this[Is](t,Ae.readdirSync(t.absolute))}[Ns](t){const r=t.entry;const i=this.zip;if(t.readdir){t.readdir.forEach((r=>{const i=t.path;const o=i==="./"?"":i.replace(/\/*$/,"/");this[xs](o+r)}))}if(!r)throw new Error("Cannot pipe without source");if(i){r.on("data",(t=>{i.write(t)}))}else{r.on("data",(t=>{super[js](t)}))}}}const createFileSync=(t,r)=>{const i=new PackSync(t);const o=new WriteStreamSync(t.file,{mode:t.mode||438});i.pipe(o);addFilesSync(i,r)};const createFile=(t,r)=>{const i=new Pack(t);const o=new WriteStream(t.file,{mode:t.mode||438});i.pipe(o);const a=new Promise(((t,r)=>{o.on("error",r);o.on("close",t);i.on("error",r)}));addFilesAsync(i,r);return a};const addFilesSync=(t,r)=>{r.forEach((r=>{if(r.charAt(0)==="@"){qr({file:E.resolve(t.cwd,r.slice(1)),sync:true,noResume:true,onReadEntry:r=>t.add(r)})}else{t.add(r)}}));t.end()};const addFilesAsync=async(t,r)=>{for(let i=0;i<r.length;i++){const o=String(r[i]);if(o.charAt(0)==="@"){await qr({file:E.resolve(String(t.cwd),o.slice(1)),noResume:true,onReadEntry:r=>{t.add(r)}})}else{t.add(o)}}t.end()};const createSync=(t,r)=>{const i=new PackSync(t);addFilesSync(i,r);return i};const createAsync=(t,r)=>{const i=new Pack(t);addFilesAsync(i,r);return i};const Us=makeCommand(createFileSync,createFile,createSync,createAsync,((t,r)=>{if(!r?.length){throw new TypeError("no paths specified to add to archive")}}));const Bs=process.env.__FAKE_PLATFORM__||process.platform;const Hs=Bs==="win32";const{O_CREAT:Vs,O_TRUNC:zs,O_WRONLY:Gs}=Ae.constants;const qs=Number(process.env.__FAKE_FS_O_FILENAME__)||Ae.constants.UV_FS_O_FILEMAP||0;const Ws=Hs&&!!qs;const Ks=512*1024;const Ys=qs|zs|Vs|Gs;const Zs=!Ws?()=>"w":t=>t<Ks?Ys:"w";const lchownSync=(t,r,i)=>{try{return w.lchownSync(t,r,i)}catch(t){if(t?.code!=="ENOENT")throw t}};const chown=(t,r,i,o)=>{w.lchown(t,r,i,(t=>{o(t&&t?.code!=="ENOENT"?t:null)}))};const chownrKid=(t,r,i,o,a)=>{if(r.isDirectory()){chownr(E.resolve(t,r.name),i,o,(c=>{if(c)return a(c);const l=E.resolve(t,r.name);chown(l,i,o,a)}))}else{const c=E.resolve(t,r.name);chown(c,i,o,a)}};const chownr=(t,r,i,o)=>{w.readdir(t,{withFileTypes:true},((a,c)=>{if(a){if(a.code==="ENOENT")return o();else if(a.code!=="ENOTDIR"&&a.code!=="ENOTSUP")return o(a)}if(a||!c.length)return chown(t,r,i,o);let l=c.length;let u=null;const then=a=>{if(u)return;if(a)return o(u=a);if(--l===0)return chown(t,r,i,o)};for(const o of c){chownrKid(t,o,r,i,then)}}))};const chownrKidSync=(t,r,i,o)=>{if(r.isDirectory())chownrSync(E.resolve(t,r.name),i,o);lchownSync(E.resolve(t,r.name),i,o)};const chownrSync=(t,r,i)=>{let o;try{o=w.readdirSync(t,{withFileTypes:true})}catch(o){const a=o;if(a?.code==="ENOENT")return;else if(a?.code==="ENOTDIR"||a?.code==="ENOTSUP")return lchownSync(t,r,i);else throw a}for(const a of o){chownrKidSync(t,a,r,i)}return lchownSync(t,r,i)};const optsArg=t=>{if(!t){t={mode:511}}else if(typeof t==="object"){t={mode:511,...t}}else if(typeof t==="number"){t={mode:t}}else if(typeof t==="string"){t={mode:parseInt(t,8)}}else{throw new TypeError("invalid options argument")}const r=t;const i=t.fs||{};t.mkdir=t.mkdir||i.mkdir||Ae.mkdir;t.mkdirAsync=t.mkdirAsync?t.mkdirAsync:async(t,i)=>new Promise(((o,a)=>r.mkdir(t,i,((t,r)=>t?a(t):o(r)))));t.stat=t.stat||i.stat||Ae.stat;t.statAsync=t.statAsync?t.statAsync:async t=>new Promise(((i,o)=>r.stat(t,((t,r)=>t?o(t):i(r)))));t.statSync=t.statSync||i.statSync||Ae.statSync;t.mkdirSync=t.mkdirSync||i.mkdirSync||Ae.mkdirSync;return r};const mkdirp_manual_mkdirpManualSync=(t,r,i)=>{const o=(0,xe.dirname)(t);const a={...optsArg(r),recursive:false};if(o===t){try{return a.mkdirSync(t,a)}catch(t){const r=t;if(r&&r.code!=="EISDIR"){throw t}return}}try{a.mkdirSync(t,a);return i||t}catch(r){const c=r;if(c&&c.code==="ENOENT"){return mkdirp_manual_mkdirpManualSync(t,a,mkdirp_manual_mkdirpManualSync(o,a,i))}if(c&&c.code!=="EEXIST"&&c&&c.code!=="EROFS"){throw r}try{if(!a.statSync(t).isDirectory())throw r}catch(t){throw r}}};const Xs=Object.assign((async(t,r,i)=>{const o=optsArg(r);o.recursive=false;const a=(0,xe.dirname)(t);if(a===t){return o.mkdirAsync(t,o).catch((t=>{const r=t;if(r&&r.code!=="EISDIR"){throw t}}))}return o.mkdirAsync(t,o).then((()=>i||t),(async r=>{const c=r;if(c&&c.code==="ENOENT"){return Xs(a,o).then((r=>Xs(t,o,r)))}if(c&&c.code!=="EEXIST"&&c.code!=="EROFS"){throw r}return o.statAsync(t).then((t=>{if(t.isDirectory()){return i}else{throw r}}),(()=>{throw r}))}))}),{sync:mkdirp_manual_mkdirpManualSync});const findMade=async(t,r,i)=>{if(i===r){return}return t.statAsync(r).then((t=>t.isDirectory()?i:undefined),(i=>{const o=i;return o&&o.code==="ENOENT"?findMade(t,(0,xe.dirname)(r),r):undefined}))};const findMadeSync=(t,r,i)=>{if(i===r){return undefined}try{return t.statSync(r).isDirectory()?i:undefined}catch(i){const o=i;return o&&o.code==="ENOENT"?findMadeSync(t,(0,xe.dirname)(r),r):undefined}};const mkdirp_native_mkdirpNativeSync=(t,r)=>{const i=optsArg(r);i.recursive=true;const o=(0,xe.dirname)(t);if(o===t){return i.mkdirSync(t,i)}const a=findMadeSync(i,t);try{i.mkdirSync(t,i);return a}catch(r){const o=r;if(o&&o.code==="ENOENT"){return mkdirp_manual_mkdirpManualSync(t,i)}else{throw r}}};const Js=Object.assign((async(t,r)=>{const i={...optsArg(r),recursive:true};const o=(0,xe.dirname)(t);if(o===t){return await i.mkdirAsync(t,i)}return findMade(i,t).then((r=>i.mkdirAsync(t,i).then((t=>r||t)).catch((r=>{const o=r;if(o&&o.code==="ENOENT"){return Xs(t,i)}else{throw r}}))))}),{sync:mkdirp_native_mkdirpNativeSync});const Qs=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const pathArg=t=>{if(/\0/.test(t)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"})}t=(0,xe.resolve)(t);if(Qs==="win32"){const r=/[*|"<>?:]/;const{root:i}=(0,xe.parse)(t);if(r.test(t.substring(i.length))){throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}}return t};const en=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version;const tn=en.replace(/^v/,"").split(".");const rn=+tn[0]>10||+tn[0]===10&&+tn[1]>=12;const sn=!rn?()=>false:t=>optsArg(t).mkdirSync===Ae.mkdirSync;const nn=Object.assign(!rn?()=>false:t=>optsArg(t).mkdir===Ae.mkdir,{sync:sn});const mkdirpSync=(t,r)=>{t=pathArg(t);const i=optsArg(r);return sn(i)?mkdirp_native_mkdirpNativeSync(t,i):mkdirp_manual_mkdirpManualSync(t,i)};const on=null&&mkdirpSync;const an=null&&mkdirpManual;const cn=null&&mkdirpManualSync;const ln=null&&mkdirpNative;const un=null&&mkdirpNativeSync;const hn=Object.assign((async(t,r)=>{t=pathArg(t);const i=optsArg(r);return nn(i)?Js(t,i):Xs(t,i)}),{mkdirpSync:mkdirpSync,mkdirpNative:Js,mkdirpNativeSync:mkdirp_native_mkdirpNativeSync,mkdirpManual:Xs,mkdirpManualSync:mkdirp_manual_mkdirpManualSync,sync:mkdirpSync,native:Js,nativeSync:mkdirp_native_mkdirpNativeSync,manual:Xs,manualSync:mkdirp_manual_mkdirpManualSync,useNative:nn,useNativeSync:sn});class CwdError extends Error{path;code;syscall="chdir";constructor(t,r){super(`${r}: Cannot cd into '${t}'`);this.path=t;this.code=r}get name(){return"CwdError"}}class SymlinkError extends Error{path;symlink;syscall="symlink";code="TAR_SYMLINK_ERROR";constructor(t,r){super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link");this.symlink=t;this.path=r}get name(){return"SymlinkError"}}const cGet=(t,r)=>t.get(dr(r));const cSet=(t,r,i)=>t.set(dr(r),i);const checkCwd=(t,r)=>{Ae.stat(t,((i,o)=>{if(i||!o.isDirectory()){i=new CwdError(t,i?.code||"ENOTDIR")}r(i)}))};const mkdir=(t,r,i)=>{t=dr(t);const o=r.umask??18;const a=r.mode|448;const c=(a&o)!==0;const l=r.uid;const u=r.gid;const h=typeof l==="number"&&typeof u==="number"&&(l!==r.processUid||u!==r.processGid);const d=r.preserve;const p=r.unlink;const m=r.cache;const g=dr(r.cwd);const done=(r,o)=>{if(r){i(r)}else{cSet(m,t,true);if(o&&h){chownr(o,l,u,(t=>done(t)))}else if(c){Ae.chmod(t,a,i)}else{i()}}};if(m&&cGet(m,t)===true){return done()}if(t===g){return checkCwd(t,done)}if(d){return hn(t,{mode:a}).then((t=>done(null,t??undefined)),done)}const y=dr(E.relative(g,t));const v=y.split("/");mkdir_(g,v,a,m,p,g,undefined,done)};const mkdir_=(t,r,i,o,a,c,l,u)=>{if(!r.length){return u(null,l)}const h=r.shift();const d=dr(E.resolve(t+"/"+h));if(cGet(o,d)){return mkdir_(d,r,i,o,a,c,l,u)}Ae.mkdir(d,i,onmkdir(d,r,i,o,a,c,l,u))};const onmkdir=(t,r,i,o,a,c,l,u)=>h=>{if(h){Ae.lstat(t,((d,p)=>{if(d){d.path=d.path&&dr(d.path);u(d)}else if(p.isDirectory()){mkdir_(t,r,i,o,a,c,l,u)}else if(a){Ae.unlink(t,(h=>{if(h){return u(h)}Ae.mkdir(t,i,onmkdir(t,r,i,o,a,c,l,u))}))}else if(p.isSymbolicLink()){return u(new SymlinkError(t,t+"/"+r.join("/")))}else{u(h)}}))}else{l=l||t;mkdir_(t,r,i,o,a,c,l,u)}};const checkCwdSync=t=>{let r=false;let i=undefined;try{r=Ae.statSync(t).isDirectory()}catch(t){i=t?.code}finally{if(!r){throw new CwdError(t,i??"ENOTDIR")}}};const mkdirSync=(t,r)=>{t=dr(t);const i=r.umask??18;const o=r.mode|448;const a=(o&i)!==0;const c=r.uid;const l=r.gid;const u=typeof c==="number"&&typeof l==="number"&&(c!==r.processUid||l!==r.processGid);const h=r.preserve;const d=r.unlink;const p=r.cache;const m=dr(r.cwd);const done=r=>{cSet(p,t,true);if(r&&u){chownrSync(r,c,l)}if(a){Ae.chmodSync(t,o)}};if(p&&cGet(p,t)===true){return done()}if(t===m){checkCwdSync(m);return done()}if(h){return done(mkdirpSync(t,o)??undefined)}const g=dr(E.relative(m,t));const y=g.split("/");let v=undefined;for(let t=y.shift(),r=m;t&&(r+="/"+t);t=y.shift()){r=dr(E.resolve(r));if(cGet(p,r)){continue}try{Ae.mkdirSync(r,o);v=v||r;cSet(p,r,true)}catch(t){const i=Ae.lstatSync(r);if(i.isDirectory()){cSet(p,r,true);continue}else if(d){Ae.unlinkSync(r);Ae.mkdirSync(r,o);v=v||r;cSet(p,r,true);continue}else if(i.isSymbolicLink()){return new SymlinkError(r,r+"/"+y.join("/"))}}}return done(v)};const fn=Object.create(null);const{hasOwnProperty:dn}=Object.prototype;const normalizeUnicode=t=>{if(!dn.call(fn,t)){fn[t]=t.normalize("NFD")}return fn[t]};const pn=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;const mn=pn==="win32";const getDirs=t=>{const r=t.split("/").slice(0,-1).reduce(((t,r)=>{const i=t[t.length-1];if(i!==undefined){r=(0,E.join)(i,r)}t.push(r||"/");return t}),[]);return r};class PathReservations{#y=new Map;#_=new Map;#v=new Set;reserve(t,r){t=mn?["win32 parallelization disabled"]:t.map((t=>stripTrailingSlashes((0,E.join)(normalizeUnicode(t))).toLowerCase()));const i=new Set(t.map((t=>getDirs(t))).reduce(((t,r)=>t.concat(r))));this.#_.set(r,{dirs:i,paths:t});for(const i of t){const t=this.#y.get(i);if(!t){this.#y.set(i,[r])}else{t.push(r)}}for(const t of i){const i=this.#y.get(t);if(!i){this.#y.set(t,[new Set([r])])}else{const t=i[i.length-1];if(t instanceof Set){t.add(r)}else{i.push(new Set([r]))}}}return this.#b(r)}#w(t){const r=this.#_.get(t);if(!r){throw new Error("function does not have any path reservations")}return{paths:r.paths.map((t=>this.#y.get(t))),dirs:[...r.dirs].map((t=>this.#y.get(t)))}}check(t){const{paths:r,dirs:i}=this.#w(t);return r.every((r=>r&&r[0]===t))&&i.every((r=>r&&r[0]instanceof Set&&r[0].has(t)))}#b(t){if(this.#v.has(t)||!this.check(t)){return false}this.#v.add(t);t((()=>this.#E(t)));return true}#E(t){if(!this.#v.has(t)){return false}const r=this.#_.get(t);if(!r){throw new Error("invalid reservation")}const{paths:i,dirs:o}=r;const a=new Set;for(const r of i){const i=this.#y.get(r);if(!i||i?.[0]!==t){continue}const o=i[1];if(!o){this.#y.delete(r);continue}i.shift();if(typeof o==="function"){a.add(o)}else{for(const t of o){a.add(t)}}}for(const r of o){const i=this.#y.get(r);const o=i?.[0];if(!i||!(o instanceof Set))continue;if(o.size===1&&i.length===1){this.#y.delete(r);continue}else if(o.size===1){i.shift();const t=i[0];if(typeof t==="function"){a.add(t)}}else{o.delete(t)}}this.#v.delete(t);a.forEach((t=>this.#b(t)));return true}}const gn=Symbol("onEntry");const yn=Symbol("checkFs");const _n=Symbol("checkFs2");const vn=Symbol("pruneCache");const bn=Symbol("isReusable");const wn=Symbol("makeFs");const En=Symbol("file");const Sn=Symbol("directory");const $n=Symbol("link");const Rn=Symbol("symlink");const Pn=Symbol("hardlink");const On=Symbol("unsupported");const An=Symbol("checkPath");const xn=Symbol("mkdir");const Tn=Symbol("onError");const kn=Symbol("pending");const Cn=Symbol("pend");const In=Symbol("unpend");const Nn=Symbol("ended");const Dn=Symbol("maybeClose");const Ln=Symbol("skip");const Mn=Symbol("doChown");const jn=Symbol("uid");const Fn=Symbol("gid");const Un=Symbol("checkedCwd");const Bn=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;const Hn=Bn==="win32";const Vn=1024;const unlinkFile=(t,r)=>{if(!Hn){return w.unlink(t,r)}const i=t+".DELETE."+(0,S.randomBytes)(16).toString("hex");w.rename(t,i,(t=>{if(t){return r(t)}w.unlink(i,r)}))};const unlinkFileSync=t=>{if(!Hn){return w.unlinkSync(t)}const r=t+".DELETE."+(0,S.randomBytes)(16).toString("hex");w.renameSync(t,r);w.unlinkSync(r)};const uint32=(t,r,i)=>t!==undefined&&t===t>>>0?t:r!==undefined&&r===r>>>0?r:i;const cacheKeyNormalize=t=>stripTrailingSlashes(dr(normalizeUnicode(t))).toLowerCase();const pruneCache=(t,r)=>{r=cacheKeyNormalize(r);for(const i of t.keys()){const o=cacheKeyNormalize(i);if(o===r||o.indexOf(r+"/")===0){t.delete(i)}}};const dropCache=t=>{for(const r of t.keys()){t.delete(r)}};class Unpack extends Parser{[Nn]=false;[Un]=false;[kn]=0;reservations=new PathReservations;transform;writable=true;readable=false;dirCache;uid;gid;setOwner;preserveOwner;processGid;processUid;maxDepth;forceChown;win32;newer;keep;noMtime;preservePaths;unlink;cwd;strip;processUmask;umask;dmode;fmode;chmod;constructor(t={}){t.ondone=()=>{this[Nn]=true;this[Dn]()};super(t);this.transform=t.transform;this.dirCache=t.dirCache||new Map;this.chmod=!!t.chmod;if(typeof t.uid==="number"||typeof t.gid==="number"){if(typeof t.uid!=="number"||typeof t.gid!=="number"){throw new TypeError("cannot set owner without number uid and gid")}if(t.preserveOwner){throw new TypeError("cannot preserve owner in archive and also set owner explicitly")}this.uid=t.uid;this.gid=t.gid;this.setOwner=true}else{this.uid=undefined;this.gid=undefined;this.setOwner=false}if(t.preserveOwner===undefined&&typeof t.uid!=="number"){this.preserveOwner=!!(process.getuid&&process.getuid()===0)}else{this.preserveOwner=!!t.preserveOwner}this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():undefined;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():undefined;this.maxDepth=typeof t.maxDepth==="number"?t.maxDepth:Vn;this.forceChown=t.forceChown===true;this.win32=!!t.win32||Hn;this.newer=!!t.newer;this.keep=!!t.keep;this.noMtime=!!t.noMtime;this.preservePaths=!!t.preservePaths;this.unlink=!!t.unlink;this.cwd=dr(E.resolve(t.cwd||process.cwd()));this.strip=Number(t.strip)||0;this.processUmask=!this.chmod?0:typeof t.processUmask==="number"?t.processUmask:process.umask();this.umask=typeof t.umask==="number"?t.umask:this.processUmask;this.dmode=t.dmode||511&~this.umask;this.fmode=t.fmode||438&~this.umask;this.on("entry",(t=>this[gn](t)))}warn(t,r,i={}){if(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT"){i.recoverable=false}return super.warn(t,r,i)}[Dn](){if(this[Nn]&&this[kn]===0){this.emit("prefinish");this.emit("finish");this.emit("end")}}[An](t){const r=dr(t.path);const i=r.split("/");if(this.strip){if(i.length<this.strip){return false}if(t.type==="Link"){const r=dr(String(t.linkpath)).split("/");if(r.length>=this.strip){t.linkpath=r.slice(this.strip).join("/")}else{return false}}i.splice(0,this.strip);t.path=i.join("/")}if(isFinite(this.maxDepth)&&i.length>this.maxDepth){this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:t,path:r,depth:i.length,maxDepth:this.maxDepth});return false}if(!this.preservePaths){if(i.includes("..")||Hn&&/^[a-z]:\.\.$/i.test(i[0]??"")){this.warn("TAR_ENTRY_ERROR",`path contains '..'`,{entry:t,path:r});return false}const[o,a]=stripAbsolutePath(r);if(o){t.path=String(a);this.warn("TAR_ENTRY_INFO",`stripping ${o} from absolute path`,{entry:t,path:r})}}if(E.isAbsolute(t.path)){t.absolute=dr(E.resolve(t.path))}else{t.absolute=dr(E.resolve(this.cwd,t.path))}if(!this.preservePaths&&typeof t.absolute==="string"&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd){this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:dr(t.path),resolvedPath:t.absolute,cwd:this.cwd});return false}if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir"){return false}if(this.win32){const{root:r}=E.win32.parse(String(t.absolute));t.absolute=r+winchars_encode(String(t.absolute).slice(r.length));const{root:i}=E.win32.parse(t.path);t.path=i+winchars_encode(t.path.slice(i.length))}return true}[gn](t){if(!this[An](t)){return t.resume()}$.equal(typeof t.absolute,"string");switch(t.type){case"Directory":case"GNUDumpDir":if(t.mode){t.mode=t.mode|448}case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[yn](t);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[On](t)}}[Tn](t,r){if(t.name==="CwdError"){this.emit("error",t)}else{this.warn("TAR_ENTRY_ERROR",t,{entry:r});this[In]();r.resume()}}[xn](t,r,i){mkdir(dr(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r},i)}[Mn](t){return this.forceChown||this.preserveOwner&&(typeof t.uid==="number"&&t.uid!==this.processUid||typeof t.gid==="number"&&t.gid!==this.processGid)||typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid}[jn](t){return uint32(this.uid,t.uid,this.processUid)}[Fn](t){return uint32(this.gid,t.gid,this.processGid)}[En](t,r){const i=typeof t.mode==="number"?t.mode&4095:this.fmode;const o=new WriteStream(String(t.absolute),{flags:Zs(t.size),mode:i,autoClose:false});o.on("error",(i=>{if(o.fd){w.close(o.fd,(()=>{}))}o.write=()=>true;this[Tn](i,t);r()}));let a=1;const done=i=>{if(i){if(o.fd){w.close(o.fd,(()=>{}))}this[Tn](i,t);r();return}if(--a===0){if(o.fd!==undefined){w.close(o.fd,(i=>{if(i){this[Tn](i,t)}else{this[In]()}r()}))}}};o.on("finish",(()=>{const r=String(t.absolute);const i=o.fd;if(typeof i==="number"&&t.mtime&&!this.noMtime){a++;const o=t.atime||new Date;const c=t.mtime;w.futimes(i,o,c,(t=>t?w.utimes(r,o,c,(r=>done(r&&t))):done()))}if(typeof i==="number"&&this[Mn](t)){a++;const o=this[jn](t);const c=this[Fn](t);if(typeof o==="number"&&typeof c==="number"){w.fchown(i,o,c,(t=>t?w.chown(r,o,c,(r=>done(r&&t))):done()))}}done()}));const c=this.transform?this.transform(t)||t:t;if(c!==t){c.on("error",(i=>{this[Tn](i,t);r()}));t.pipe(c)}c.pipe(o)}[Sn](t,r){const i=typeof t.mode==="number"?t.mode&4095:this.dmode;this[xn](String(t.absolute),i,(i=>{if(i){this[Tn](i,t);r();return}let o=1;const done=()=>{if(--o===0){r();this[In]();t.resume()}};if(t.mtime&&!this.noMtime){o++;w.utimes(String(t.absolute),t.atime||new Date,t.mtime,done)}if(this[Mn](t)){o++;w.chown(String(t.absolute),Number(this[jn](t)),Number(this[Fn](t)),done)}done()}))}[On](t){t.unsupported=true;this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t});t.resume()}[Rn](t,r){this[$n](t,String(t.linkpath),"symlink",r)}[Pn](t,r){const i=dr(E.resolve(this.cwd,String(t.linkpath)));this[$n](t,i,"link",r)}[Cn](){this[kn]++}[In](){this[kn]--;this[Dn]()}[Ln](t){this[In]();t.resume()}[bn](t,r){return t.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Hn}[yn](t){this[Cn]();const r=[t.path];if(t.linkpath){r.push(t.linkpath)}this.reservations.reserve(r,(r=>this[_n](t,r)))}[vn](t){if(t.type==="SymbolicLink"){dropCache(this.dirCache)}else if(t.type!=="Directory"){pruneCache(this.dirCache,String(t.absolute))}}[_n](t,r){this[vn](t);const done=i=>{this[vn](t);r(i)};const checkCwd=()=>{this[xn](this.cwd,this.dmode,(r=>{if(r){this[Tn](r,t);done();return}this[Un]=true;start()}))};const start=()=>{if(t.absolute!==this.cwd){const r=dr(E.dirname(String(t.absolute)));if(r!==this.cwd){return this[xn](r,this.dmode,(r=>{if(r){this[Tn](r,t);done();return}afterMakeParent()}))}}afterMakeParent()};const afterMakeParent=()=>{w.lstat(String(t.absolute),((r,i)=>{if(i&&(this.keep||this.newer&&i.mtime>(t.mtime??i.mtime))){this[Ln](t);done();return}if(r||this[bn](t,i)){return this[wn](null,t,done)}if(i.isDirectory()){if(t.type==="Directory"){const r=this.chmod&&t.mode&&(i.mode&4095)!==t.mode;const afterChmod=r=>this[wn](r??null,t,done);if(!r){return afterChmod()}return w.chmod(String(t.absolute),Number(t.mode),afterChmod)}if(t.absolute!==this.cwd){return w.rmdir(String(t.absolute),(r=>this[wn](r??null,t,done)))}}if(t.absolute===this.cwd){return this[wn](null,t,done)}unlinkFile(String(t.absolute),(r=>this[wn](r??null,t,done)))}))};if(this[Un]){start()}else{checkCwd()}}[wn](t,r,i){if(t){this[Tn](t,r);i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[En](r,i);case"Link":return this[Pn](r,i);case"SymbolicLink":return this[Rn](r,i);case"Directory":case"GNUDumpDir":return this[Sn](r,i)}}[$n](t,r,i,o){w[i](r,String(t.absolute),(r=>{if(r){this[Tn](r,t)}else{this[In]();t.resume()}o()}))}}const callSync=t=>{try{return[null,t()]}catch(t){return[t,null]}};class UnpackSync extends Unpack{sync=true;[wn](t,r){return super[wn](t,r,(()=>{}))}[yn](t){this[vn](t);if(!this[Un]){const r=this[xn](this.cwd,this.dmode);if(r){return this[Tn](r,t)}this[Un]=true}if(t.absolute!==this.cwd){const r=dr(E.dirname(String(t.absolute)));if(r!==this.cwd){const i=this[xn](r,this.dmode);if(i){return this[Tn](i,t)}}}const[r,i]=callSync((()=>w.lstatSync(String(t.absolute))));if(i&&(this.keep||this.newer&&i.mtime>(t.mtime??i.mtime))){return this[Ln](t)}if(r||this[bn](t,i)){return this[wn](null,t)}if(i.isDirectory()){if(t.type==="Directory"){const r=this.chmod&&t.mode&&(i.mode&4095)!==t.mode;const[o]=r?callSync((()=>{w.chmodSync(String(t.absolute),Number(t.mode))})):[];return this[wn](o,t)}const[r]=callSync((()=>w.rmdirSync(String(t.absolute))));this[wn](r,t)}const[o]=t.absolute===this.cwd?[]:callSync((()=>unlinkFileSync(String(t.absolute))));this[wn](o,t)}[En](t,r){const i=typeof t.mode==="number"?t.mode&4095:this.fmode;const oner=i=>{let a;try{w.closeSync(o)}catch(t){a=t}if(i||a){this[Tn](i||a,t)}r()};let o;try{o=w.openSync(String(t.absolute),Zs(t.size),i)}catch(t){return oner(t)}const a=this.transform?this.transform(t)||t:t;if(a!==t){a.on("error",(r=>this[Tn](r,t)));t.pipe(a)}a.on("data",(t=>{try{w.writeSync(o,t,0,t.length)}catch(t){oner(t)}}));a.on("end",(()=>{let r=null;if(t.mtime&&!this.noMtime){const i=t.atime||new Date;const a=t.mtime;try{w.futimesSync(o,i,a)}catch(o){try{w.utimesSync(String(t.absolute),i,a)}catch(t){r=o}}}if(this[Mn](t)){const i=this[jn](t);const a=this[Fn](t);try{w.fchownSync(o,Number(i),Number(a))}catch(o){try{w.chownSync(String(t.absolute),Number(i),Number(a))}catch(t){r=r||o}}}oner(r)}))}[Sn](t,r){const i=typeof t.mode==="number"?t.mode&4095:this.dmode;const o=this[xn](String(t.absolute),i);if(o){this[Tn](o,t);r();return}if(t.mtime&&!this.noMtime){try{w.utimesSync(String(t.absolute),t.atime||new Date,t.mtime)}catch(o){}}if(this[Mn](t)){try{w.chownSync(String(t.absolute),Number(this[jn](t)),Number(this[Fn](t)))}catch(o){}}r();t.resume()}[xn](t,r){try{return mkdirSync(dr(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(t){return t}}[$n](t,r,i,o){const a=`${i}Sync`;try{w[a](r,String(t.absolute));o();t.resume()}catch(r){return this[Tn](r,t)}}}const extractFileSync=t=>{const r=new UnpackSync(t);const i=t.file;const o=w.statSync(i);const a=t.maxReadSize||16*1024*1024;const c=new ReadStreamSync(i,{readSize:a,size:o.size});c.pipe(r)};const extractFile=(t,r)=>{const i=new Unpack(t);const o=t.maxReadSize||16*1024*1024;const a=t.file;const c=new Promise(((t,r)=>{i.on("error",r);i.on("close",t);w.stat(a,((t,c)=>{if(t){r(t)}else{const t=new ReadStream(a,{readSize:o,size:c.size});t.on("error",r);t.pipe(i)}}))}));return c};const zn=makeCommand(extractFileSync,extractFile,(t=>new UnpackSync(t)),(t=>new Unpack(t)),((t,r)=>{if(r?.length)filesFilter(t,r)}));const replaceSync=(t,r)=>{const i=new PackSync(t);let o=true;let a;let c;try{try{a=w.openSync(t.file,"r+")}catch(r){if(r?.code==="ENOENT"){a=w.openSync(t.file,"w+")}else{throw r}}const l=w.fstatSync(a);const u=Buffer.alloc(512);e:for(c=0;c<l.size;c+=512){for(let t=0,r=0;t<512;t+=r){r=w.readSync(a,u,t,u.length-t,c+t);if(c===0&&u[0]===31&&u[1]===139){throw new Error("cannot append to compressed archives")}if(!r){break e}}const r=new Header(u);if(!r.cksumValid){break}const i=512*Math.ceil((r.size||0)/512);if(c+i+512>l.size){break}c+=i;if(t.mtimeCache&&r.mtime){t.mtimeCache.set(String(r.path),r.mtime)}}o=false;streamSync(t,i,c,a,r)}finally{if(o){try{w.closeSync(a)}catch(t){}}}};const streamSync=(t,r,i,o,a)=>{const c=new WriteStreamSync(t.file,{fd:o,start:i});r.pipe(c);replace_addFilesSync(r,a)};const replaceAsync=(t,r)=>{r=Array.from(r);const i=new Pack(t);const getPos=(r,i,o)=>{const cb=(t,i)=>{if(t){w.close(r,(r=>o(t)))}else{o(null,i)}};let a=0;if(i===0){return cb(null,0)}let c=0;const l=Buffer.alloc(512);const onread=(o,u)=>{if(o||typeof u==="undefined"){return cb(o)}c+=u;if(c<512&&u){return w.read(r,l,c,l.length-c,a+c,onread)}if(a===0&&l[0]===31&&l[1]===139){return cb(new Error("cannot append to compressed archives"))}if(c<512){return cb(null,a)}const h=new Header(l);if(!h.cksumValid){return cb(null,a)}const d=512*Math.ceil((h.size??0)/512);if(a+d+512>i){return cb(null,a)}a+=d+512;if(a>=i){return cb(null,a)}if(t.mtimeCache&&h.mtime){t.mtimeCache.set(String(h.path),h.mtime)}c=0;w.read(r,l,0,512,a,onread)};w.read(r,l,0,512,a,onread)};const o=new Promise(((o,a)=>{i.on("error",a);let c="r+";const onopen=(l,u)=>{if(l&&l.code==="ENOENT"&&c==="r+"){c="w+";return w.open(t.file,c,onopen)}if(l||!u){return a(l)}w.fstat(u,((c,l)=>{if(c){return w.close(u,(()=>a(c)))}getPos(u,l.size,((c,l)=>{if(c){return a(c)}const h=new WriteStream(t.file,{fd:u,start:l});i.pipe(h);h.on("error",a);h.on("close",o);replace_addFilesAsync(i,r)}))}))};w.open(t.file,c,onopen)}));return o};const replace_addFilesSync=(t,r)=>{r.forEach((r=>{if(r.charAt(0)==="@"){qr({file:E.resolve(t.cwd,r.slice(1)),sync:true,noResume:true,onReadEntry:r=>t.add(r)})}else{t.add(r)}}));t.end()};const replace_addFilesAsync=async(t,r)=>{for(let i=0;i<r.length;i++){const o=String(r[i]);if(o.charAt(0)==="@"){await qr({file:E.resolve(String(t.cwd),o.slice(1)),noResume:true,onReadEntry:r=>t.add(r)})}else{t.add(o)}}t.end()};const Gn=makeCommand(replaceSync,replaceAsync,(()=>{throw new TypeError("file is required")}),(()=>{throw new TypeError("file is required")}),((t,r)=>{if(!isFile(t)){throw new TypeError("file is required")}if(t.gzip||t.brotli||t.file.endsWith(".br")||t.file.endsWith(".tbr")){throw new TypeError("cannot append to compressed archives")}if(!r?.length){throw new TypeError("no paths specified to add/replace")}}));const qn=makeCommand(Gn.syncFile,Gn.asyncFile,Gn.syncNoFile,Gn.asyncNoFile,((t,r=[])=>{Gn.validate?.(t,r);mtimeFilter(t)}));const mtimeFilter=t=>{const r=t.filter;if(!t.mtimeCache){t.mtimeCache=new Map}t.filter=r?(i,o)=>r(i,o)&&!((t.mtimeCache?.get(i)??o.mtime??0)>(o.mtime??0)):(r,i)=>!((t.mtimeCache?.get(r)??i.mtime??0)>(i.mtime??0))};async function isUrlOk(t){try{const r=await fetch(t,{method:"HEAD"});return r.status===200}catch{return false}}async function getRepoInfo(t,r){const[,i,o,a,c,...l]=t.pathname.split("/");const u=r?r.replace(/^\//,""):l.join("/");if(a===undefined||a===""&&c===undefined){try{const t=await fetch(`https://api.github.com/repos/${i}/${o}`);if(t.status!==200){return}const r=await t.json();return{username:i,name:o,branch:r["default_branch"],filePath:u}}catch{return}}const h=r?`${c}/${l.join("/")}`.replace(new RegExp(`/${u}|/$`),""):c;if(i&&o&&h&&a==="tree"){return{username:i,name:o,branch:h,filePath:u}}}function hasRepo({username:t,name:r,branch:i,filePath:o}){const a=`https://api.github.com/repos/${t}/${r}/contents`;const c=`${o?`/${o}`:""}/package.json`;return isUrlOk(a+c+`?ref=${i}`)}function existsInRepo(t){try{const r=new URL(t);return isUrlOk(r.href)}catch{return isUrlOk(`https://api.github.com/repos/zuplo/zuplo/contents/examples/${encodeURIComponent(t)}`)}}async function downloadTarStream(t){const r=await fetch(t);if(!r.body){throw new Error(`Failed to download: ${t}`)}return je.Readable.fromWeb(r.body)}async function downloadAndExtractRepo(t,{username:r,name:i,branch:o,filePath:a}){let c=null;await(0,Fe.pipeline)(await downloadTarStream(`https://codeload.github.com/${r}/${i}/tar.gz/${o}`),zn({cwd:t,strip:a?a.split("/").length+1:1,filter:t=>{if(c===null){const r=t.split(E.sep);c=r.length?r[0]:null}return t.startsWith(`${c}${a?`/${a}/`:"/"}`)}}))}async function downloadAndExtractExample(t,r){if(r==="__internal-testing-retry"){throw new Error("This is an internal example for testing the CLI.")}await(0,Fe.pipeline)(await downloadTarStream("https://codeload.github.com/zuplo/zuplo/tar.gz/canary"),zn({cwd:t,strip:2+r.split("/").length,filter:t=>t.includes(`zuplo-canary/examples/${r}/`)}))}var Wn=__nccwpck_require__(1421);function isInGitRepository(){try{(0,Wn.execSync)("git rev-parse --is-inside-work-tree",{stdio:"ignore"});return true}catch(t){}return false}function isInMercurialRepository(){try{(0,Wn.execSync)("hg --cwd . root",{stdio:"ignore"});return true}catch(t){}return false}function isDefaultBranchSet(){try{(0,Wn.execSync)("git config init.defaultBranch",{stdio:"ignore"});return true}catch(t){}return false}function tryGitInit(t){let r=false;try{(0,Wn.execSync)("git --version",{stdio:"ignore"});if(isInGitRepository()||isInMercurialRepository()){return false}(0,Wn.execSync)("git init",{stdio:"ignore"});r=true;if(!isDefaultBranchSet()){(0,Wn.execSync)("git checkout -b main",{stdio:"ignore"})}(0,Wn.execSync)("git add -A",{stdio:"ignore"});(0,Wn.execSync)('git commit -m "Initial commit from Create Next App"',{stdio:"ignore"});return true}catch(i){if(r){try{(0,w.rmSync)((0,E.join)(t,".git"),{recursive:true,force:true})}catch(t){}}return false}}var Kn=__nccwpck_require__(4422);var Yn=__nccwpck_require__.n(Kn);async function install(t,r){const i=["install"];if(!r){console.log((0,ke.yellow)("You appear to be offline.\nFalling back to the local cache."));i.push("--offline")}return new Promise(((r,o)=>{const a=Yn()(t,i,{stdio:"inherit",env:{...process.env,ADBLOCK:"1",NODE_ENV:"development",DISABLE_OPENCOLLECTIVE:"1"}});a.on("close",(a=>{if(a!==0){o({command:`${t} ${i.join(" ")}`});return}r()}))}))}function isFolderEmpty(t,r){const i=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log","yarnrc.yml",".yarn"];const o=(0,w.readdirSync)(t).filter((t=>!i.includes(t)&&!/\.iml$/.test(t)));if(o.length>0){console.log(`The directory ${(0,ke.green)(r)} contains files that could conflict:`);console.log();for(const r of o){try{const i=(0,w.lstatSync)((0,E.join)(t,r));if(i.isDirectory()){console.log(` ${(0,ke.blue)(r)}/`)}else{console.log(` ${r}`)}}catch{console.log(` ${r}`)}}console.log();console.log("Either try using a new directory name, or remove the files listed above.");console.log();return false}return true}const Zn=require("node:dns/promises");const Xn=require("node:url");var Jn=__nccwpck_require__.n(Xn);function getProxy(){if(process.env.https_proxy){return process.env.https_proxy}try{const t=(0,Wn.execSync)("npm config get https-proxy").toString().trim();return t!=="null"?t:undefined}catch(t){return}}async function getOnline(){try{await(0,Zn.lookup)("registry.yarnpkg.com");return true}catch{const t=getProxy();if(!t){return false}const{hostname:r}=Jn().parse(t);if(!r){return false}try{await(0,Zn.lookup)(r);return true}catch{return false}}}const Qn=require("node:constants");const ei=require("node:fs/promises");async function isWriteable(t){try{await(0,ei.access)(t,Qn.W_OK);return true}catch(t){return false}}const ti=require("fs/promises");var ri=__nccwpck_require__.n(ti);var si=__nccwpck_require__(857);var ni=__nccwpck_require__.n(si);var ii=__nccwpck_require__(484);const identity=t=>t;const copy=async(t,r,{cwd:i,rename:o=identity,parents:a=true}={})=>{const c=typeof t==="string"?[t]:t;if(c.length===0||!r){throw new TypeError("`src` and `dest` are required")}const l=await(0,ii.async)(c,{cwd:i,dot:true,absolute:false,stats:false});const u=i?(0,E.resolve)(i,r):r;return Promise.all(l.map((async t=>{const r=(0,E.dirname)(t);const c=o((0,E.basename)(t));const l=i?(0,E.resolve)(i,t):t;const h=a?(0,E.join)(u,r,c):(0,E.join)(u,c);await(0,ei.mkdir)((0,E.dirname)(h),{recursive:true});return(0,ei.copyFile)(l,h)})))};const getTemplateFile=({template:t,file:r})=>__nccwpck_require__.ab+"templates/"+t+"/"+r;const installTemplate=async({appName:t,root:r,packageManager:i,isOnline:o,template:a,eslint:c,prettier:l,installPackages:u,zuploVersion:h})=>{var d;console.log((0,ke.bold)(`Using ${i}.`));console.log("\nInitializing project with template:",a,"\n");const p=__nccwpck_require__.ab+"templates/"+a;const m=["**","!vscode/**"];if(!c)m.push("!eslintrc.json");if(!l)m.push("!prettierrc.json");await copy(m,r,{parents:true,cwd:p,rename(t){console.log(t);switch(t){case"gitignore":case"prettierrc.json":{return`.${t}`}case"README-template.md":{return"README.md"}default:{return t}}}});const g=["settings.json","launch.json"];for(const t of g){const i=Te().join(p,"vscode",t);const o=Te().join(r,".vscode",t);if((0,Ae.existsSync)(i)){await ri().mkdir(Te().join(r,".vscode"),{recursive:true});await ri().copyFile(i,o)}}const y=(d=process.env.ZUPLO_PRIVATE_TEST_VERSION)!==null&&d!==void 0?d:h;const v={name:t,version:"0.1.0",type:"module",private:true,scripts:{dev:`zup dev`,test:"zup test",lint:"eslint"},dependencies:{zuplo:y},devDependencies:{typescript:"^5","@types/node":"^20"}};if(c){v.devDependencies={...v.devDependencies,eslint:"^8","@typescript-eslint/eslint-plugin":"^8","@typescript-eslint/parser":"^8"}}if(l){v.devDependencies={...v.devDependencies,prettier:"^3"}}if(c&&l){v.devDependencies={...v.devDependencies,"eslint-config-prettier":"^9"};const t=Te().join(r,".eslintrc.json");const i=await ri().readFile(t,"utf-8").then(JSON.parse);i.extends.push("prettier");await ri().writeFile(t,JSON.stringify(i,null,2)+ni().EOL,"utf-8")}const sortObjectKeys=t=>Object.keys(t).sort().reduce(((r,i)=>{r[i]=t[i];return r}),{});if(v.dependencies){v.dependencies=sortObjectKeys(v.dependencies)}if(v.devDependencies){v.devDependencies=sortObjectKeys(v.devDependencies)}const b=Object.keys(v.devDependencies).length;if(!b)delete v.devDependencies;await ri().writeFile(Te().join(r,"package.json"),JSON.stringify(v,null,2)+ni().EOL);if(!u)return;console.log("\nInstalling dependencies:");for(const t in v.dependencies)console.log(`- ${(0,ke.cyan)(t)}`);if(b){console.log("\nInstalling devDependencies:");for(const t in v.devDependencies)console.log(`- ${(0,ke.cyan)(t)}`)}console.log();await install(i,o)};class DownloadError extends Error{}async function createApp({appPath:t,packageManager:r,example:i,examplePath:o,eslint:a,prettier:c,installPackages:l,empty:u,initGit:h,zuploVersion:d}){let p;const m=`default${u?"-empty":""}`;if(i){let R;try{R=new URL(i)}catch(P){const O=P;if(O.code!=="ERR_INVALID_URL"){console.error(P);process.exit(1)}}if(R){if(R.origin!=="https://github.com"){console.error(`Invalid URL: ${(0,ke.red)(`"${i}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`);process.exit(1)}p=await getRepoInfo(R,o);if(!p){console.error(`Found invalid GitHub URL: ${(0,ke.red)(`"${i}"`)}. Please fix the URL and try again.`);process.exit(1)}const A=await hasRepo(p);if(!A){console.error(`Could not locate the repository for ${(0,ke.red)(`"${i}"`)}. Please check that the repository exists and try again.`);process.exit(1)}}else if(i!=="__internal-testing-retry"){const x=await existsInRepo(i);if(!x){console.error(`Could not locate an example named ${(0,ke.red)(`"${i}"`)}. It could be due to the following:\n`,`1. Your spelling of example ${(0,ke.red)(`"${i}"`)} might be incorrect.\n`,`2. You might not be connected to the internet or you are behind a proxy.`);process.exit(1)}}}const g=(0,xe.resolve)(t);if(!await isWriteable((0,xe.dirname)(g))){console.error("The application path is not writable, please check folder permissions and try again.");console.error("It is likely you do not have write permissions for this folder.");process.exit(1)}const y=(0,xe.basename)(g);(0,Ae.mkdirSync)(g,{recursive:true});if(!isFolderEmpty(g,y)){process.exit(1)}const v=r==="yarn";const b=!v||await getOnline();const w=process.cwd();console.log(`Creating a new Zuplo API in ${(0,ke.green)(g)}.`);console.log();process.chdir(g);const E=(0,xe.join)(g,"package.json");let S=false;if(i){try{if(p){const k=p;console.log(`Downloading files from repo ${(0,ke.cyan)(i)}. This might take a moment.`);console.log();await Me()((()=>downloadAndExtractRepo(g,k)),{retries:3})}else{console.log(`Downloading files for example ${(0,ke.cyan)(i)}. This might take a moment.`);console.log();await Me()((()=>downloadAndExtractExample(g,i)),{retries:3})}}catch(C){function isErrorLike(t){return typeof t==="object"&&t!==null&&typeof t.message==="string"}throw new DownloadError(isErrorLike(C)?C.message:C+"")}const T=(0,xe.join)(g,".gitignore");if(!(0,Ae.existsSync)(T)){(0,Ae.copyFileSync)(getTemplateFile({template:m,file:"gitignore"}),T)}S=(0,Ae.existsSync)(E);if(l&&S){console.log("Installing packages. This might take a couple of minutes.");console.log();await install(r,b);console.log()}}else{await installTemplate({appName:y,root:g,template:m,packageManager:r,isOnline:b,eslint:a,prettier:c,installPackages:l,zuploVersion:d})}if(h){if(tryGitInit(g)){console.log("Initialized a git repository.");console.log()}}let $;if((0,xe.join)(w,y)===t){$=y}else{$=t}console.log(`${(0,ke.green)("Success!")} Created ${y} at ${t}`);if(S){console.log("Inside that directory, you can run several commands:");console.log();console.log((0,ke.cyan)(` ${r} ${v?"":"run "}dev`));console.log(" Starts the development server.");console.log();console.log((0,ke.cyan)(` ${r} ${v?"":"run "}build`));console.log(" Builds the app for production.");console.log();console.log((0,ke.cyan)(` ${r} start`));console.log(" Runs the built app in production mode.");console.log();console.log("We suggest that you begin by typing:");console.log();console.log((0,ke.cyan)(" cd"),$);console.log(` ${(0,ke.cyan)(`${r} ${v?"":"run "}dev`)}`)}console.log()}function getPkgManager(){var t;const r=(t=process.env.npm_config_user_agent)!==null&&t!==void 0?t:"";if(r.startsWith("yarn")){return"yarn"}if(r.startsWith("pnpm")){return"pnpm"}if(r.startsWith("bun")){return"bun"}return"npm"}var oi=__nccwpck_require__(2544);var ai=__nccwpck_require__.n(oi);function validateNpmName(t){const r=ai()(t);if(r.validForNewPackages){return{valid:true}}return{valid:false,problems:[...r.errors||[],...r.warnings||[]]}}let ci="";const handleSigTerm=()=>process.exit(0);process.on("SIGINT",handleSigTerm);process.on("SIGTERM",handleSigTerm);const onPromptState=t=>{if(t.aborted){process.stdout.write("[?25h");process.stdout.write("\n");process.exit(1)}};const li=JSON.parse((0,Ae.readFileSync)(Te().resolve(__dirname,"../package.json"),"utf-8"));const ui=new p(li.name).version(li.version,"-v, --version","Output the current version of create-zuplo-api.").argument("[directory]").usage("[directory] [options]").helpOption("-h, --help","Display this help message.").option("--eslint","Initialize with ESLint config.").option("--prettier","Initialize with Prettier config.").option("--empty","Initialize an empty project.").option("--use-npm","Explicitly tell the CLI to bootstrap the application using npm.").option("--use-pnpm","Explicitly tell the CLI to bootstrap the application using pnpm.").option("--use-yarn","Explicitly tell the CLI to bootstrap the application using Yarn.").option("--use-bun","Explicitly tell the CLI to bootstrap the application using Bun.").option("--reset, --reset-preferences","Reset the preferences saved for create-zuplo-api.").option("--git","Whether or not to initialize the project as a git repo.").option("--version-check","Whether or not to check for an outdated version.").option("--install","Whether or not to install packages.").option("--yes","Use saved preferences or defaults for unprovided options.").option("-e, --example <example-name|github-url>",`\n\n An example to bootstrap the api with. You can use an example name\n from the official Zuplo repo or a public GitHub URL. The URL can use\n any branch and/or subdirectory.\n`).option("--example-path <path-to-example>",`\n\n In a rare case, your GitHub URL might contain a branch name with\n a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).\n In this case, you must specify the path to the example separately:\n --example-path foo/bar\n`).action((t=>{if(t&&!t.startsWith("--no-")){ci=t}})).allowUnknownOption().parse(process.argv);const hi=ui.opts();const{args:fi}=ui;const di=hi.useNpm?"npm":hi.usePnpm?"pnpm":hi.useYarn?"yarn":hi.useBun?"bun":getPkgManager();async function run(){var t,i,o;const a=new Conf({projectName:"create-zuplo-api"});if(hi.resetPreferences){const{resetPreferences:t}=await Ie()({onState:onPromptState,type:"toggle",name:"resetPreferences",message:"Would you like to reset the saved preferences?",initial:false,active:"Yes",inactive:"No"});if(t){a.clear();console.log("The preferences have been reset successfully!")}process.exit(0)}if(typeof ci==="string"){ci=ci.trim()}if(!ci){const t=await Ie()({onState:onPromptState,type:"text",name:"path",message:"What is your project named?",initial:"my-api",validate:t=>{const r=validateNpmName((0,xe.basename)((0,xe.resolve)(t)));if(r.valid){return true}return"Invalid project name: "+r.problems[0]}});if(typeof t.path==="string"){ci=t.path.trim()}}if(!ci){console.log("\nPlease specify the project directory:\n"+` ${(0,ke.cyan)(hi.name())} ${(0,ke.green)("<project-directory>")}\n`+"For example:\n"+` ${(0,ke.cyan)(hi.name())} ${(0,ke.green)("my-zuplo-api")}\n\n`+`Run ${(0,ke.cyan)(`${hi.name()} --help`)} to see all options.`);process.exit(1)}const c=(0,xe.resolve)(ci);const l=(0,xe.basename)(c);const u=validateNpmName(l);if(!u.valid){console.error(`Could not create a project called ${(0,ke.red)(`"${l}"`)} because of npm naming restrictions:`);u.problems.forEach((t=>console.error(` ${(0,ke.red)((0,ke.bold)("*"))} ${t}`)));process.exit(1)}if(hi.example===true){console.error("Please provide an example name or url, otherwise remove the example option.");process.exit(1)}if((0,Ae.existsSync)(c)&&!isFolderEmpty(c,l)){process.exit(1)}const h=typeof hi.example==="string"&&hi.example.trim();const d=a.get("preferences")||{};const p=r().isCI||hi.yes;if(!h){const t={eslint:true,prettier:true,git:true,install:true,versionCheck:true,empty:false};const getPrefOrDefault=r=>{var i;return(i=d[r])!==null&&i!==void 0?i:t[r]};if(!hi.eslint&&!fi.includes("--no-eslint")){if(p){hi.eslint=getPrefOrDefault("eslint")}else{const t=(0,ke.blue)("ESLint");const{eslint:r}=await Ie()({onState:onPromptState,type:"toggle",name:"eslint",message:`Would you like to use ${t}?`,initial:getPrefOrDefault("eslint"),active:"Yes",inactive:"No"});hi.eslint=Boolean(r);d.eslint=Boolean(r)}}if(!hi.prettier&&!fi.includes("--no-prettier")){if(p){hi.prettier=getPrefOrDefault("prettier")}else{const t=(0,ke.blue)("Prettier");const{prettier:r}=await Ie()({onState:onPromptState,type:"toggle",name:"prettier",message:`Would you like to use ${t}?`,initial:getPrefOrDefault("prettier"),active:"Yes",inactive:"No"});hi.prettier=Boolean(r);d.prettier=Boolean(r)}}}hi.git=(t=hi.git)!==null&&t!==void 0?t:!fi.includes("--no-git");hi.install=(i=hi.install)!==null&&i!==void 0?i:!fi.includes("--no-install");hi.versionCheck=(o=hi.versionCheck)!==null&&o!==void 0?o:!fi.includes("--no-version-check");try{await createApp({appPath:c,packageManager:di,example:h&&h!=="default"?h:undefined,examplePath:hi.examplePath,eslint:hi.eslint,prettier:hi.prettier,installPackages:hi.install,empty:hi.empty,initGit:hi.git,zuploVersion:li.version})}catch(t){if(!(t instanceof DownloadError)){throw t}const r=await Ie()({onState:onPromptState,type:"confirm",name:"builtin",message:`Could not download "${h}" because of a connectivity issue between your machine and GitHub.\n`+`Do you want to use the default template instead?`,initial:true});if(!r.builtin){throw t}await createApp({appPath:c,packageManager:di,eslint:hi.eslint,prettier:hi.prettier,installPackages:hi.install,empty:hi.empty,initGit:hi.git,zuploVersion:li.version})}a.set("preferences",d);if(hi.versionCheck){console.log();await notifyUpdate()}}const pi=De()(li).catch((()=>null));async function notifyUpdate(){var t;try{if((t=await pi)===null||t===void 0?void 0:t.latest){const t={npm:"npm i -g",yarn:"yarn global add",pnpm:"pnpm add -g",bun:"bun add -g"};const r=`${t[di]} create-zuplo-api`;console.log((0,ke.yellow)((0,ke.bold)("A new version of `create-zuplo-api` is available!"))+"\n"+"You can update by running: "+(0,ke.cyan)(r)+"\n")}process.exit(0)}catch{}}async function exit(t){console.log();console.log("Aborting installation.");if(t.command){console.log(` ${(0,ke.cyan)(t.command)} has failed.`)}else{console.log((0,ke.red)("Unexpected error. Please report it as a bug:")+"\n",t)}process.exit(1)}run().catch(exit)})();module.exports=i})();
|