@xframework-ca-test/cli 1.0.26 → 1.0.27

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.
Files changed (2) hide show
  1. package/index.bundle.js +30 -32
  2. package/package.json +1 -1
package/index.bundle.js CHANGED
@@ -1,33 +1,33 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var dc=Object.create;var ji=Object.defineProperty;var hc=Object.getOwnPropertyDescriptor;var pc=Object.getOwnPropertyNames;var gc=Object.getPrototypeOf,mc=Object.prototype.hasOwnProperty;var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var yc=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of pc(e))!mc.call(t,i)&&i!==r&&ji(t,i,{get:()=>e[i],enumerable:!(n=hc(e,i))||n.enumerable});return t};var _c=(t,e,r)=>(r=t!=null?dc(gc(t)):{},yc(e||!t||!t.__esModule?ji(r,"default",{value:t,enumerable:!0}):r,t));var tt=p(Vr=>{var At=class extends Error{constructor(e,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},Ur=class extends At{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Vr.CommanderError=At;Vr.InvalidArgumentError=Ur});var Ot=p(Hr=>{var{InvalidArgumentError:bc}=tt(),Wr=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new bc(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function xc(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}Hr.Argument=Wr;Hr.humanReadableArgName=xc});var zr=p($i=>{var{humanReadableArgName:wc}=Ot(),Gr=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=e.createCommand(n).helpOption(!1);s.description(e._helpCommandDescription),i&&s.arguments(i),r.push(s)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(e,r){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(e).localeCompare(n(r))}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let s;n?i?s=e.createOption(e._helpFlags,e._helpDescription):s=e.createOption(e._helpShortFlag,e._helpDescription):s=e.createOption(e._helpLongFlag,e._helpDescription),r.push(s)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let n=e.parent;n;n=n.parent){let i=n.options.filter(s=>!s.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e.registeredArguments.find(r=>r.description)?e.registeredArguments:[]}subcommandTerm(e){let r=e.registeredArguments.map(n=>wc(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,s=2,o=2;function a(m,d){if(d){let y=`${m.padEnd(n+o)}${d}`;return r.wrap(y,i-s,n+o)}return m}function l(m){return m.join(`
2
+ "use strict";var fc=Object.create;var Bi=Object.defineProperty;var dc=Object.getOwnPropertyDescriptor;var hc=Object.getOwnPropertyNames;var pc=Object.getPrototypeOf,gc=Object.prototype.hasOwnProperty;var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var mc=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of hc(e))!gc.call(t,i)&&i!==r&&Bi(t,i,{get:()=>e[i],enumerable:!(n=dc(e,i))||n.enumerable});return t};var yc=(t,e,r)=>(r=t!=null?fc(pc(t)):{},mc(e||!t||!t.__esModule?Bi(r,"default",{value:t,enumerable:!0}):r,t));var tt=p(Vr=>{var At=class extends Error{constructor(e,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},Ur=class extends At{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Vr.CommanderError=At;Vr.InvalidArgumentError=Ur});var Ot=p(Hr=>{var{InvalidArgumentError:_c}=tt(),Wr=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new _c(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function bc(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}Hr.Argument=Wr;Hr.humanReadableArgName=bc});var zr=p(ji=>{var{humanReadableArgName:xc}=Ot(),Gr=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=e.createCommand(n).helpOption(!1);s.description(e._helpCommandDescription),i&&s.arguments(i),r.push(s)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(e,r){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(e).localeCompare(n(r))}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let s;n?i?s=e.createOption(e._helpFlags,e._helpDescription):s=e.createOption(e._helpShortFlag,e._helpDescription):s=e.createOption(e._helpLongFlag,e._helpDescription),r.push(s)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let n=e.parent;n;n=n.parent){let i=n.options.filter(s=>!s.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e.registeredArguments.find(r=>r.description)?e.registeredArguments:[]}subcommandTerm(e){let r=e.registeredArguments.map(n=>xc(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,s=2,o=2;function a(m,d){if(d){let y=`${m.padEnd(n+o)}${d}`;return r.wrap(y,i-s,n+o)}return m}function l(m){return m.join(`
3
3
  `).replace(/^/gm," ".repeat(s))}let c=[`Usage: ${r.commandUsage(e)}`,""],u=r.commandDescription(e);u.length>0&&(c=c.concat([r.wrap(u,i,0),""]));let f=r.visibleArguments(e).map(m=>a(r.argumentTerm(m),r.argumentDescription(m)));f.length>0&&(c=c.concat(["Arguments:",l(f),""]));let h=r.visibleOptions(e).map(m=>a(r.optionTerm(m),r.optionDescription(m)));if(h.length>0&&(c=c.concat(["Options:",l(h),""])),this.showGlobalOptions){let m=r.visibleGlobalOptions(e).map(d=>a(r.optionTerm(d),r.optionDescription(d)));m.length>0&&(c=c.concat(["Global Options:",l(m),""]))}let g=r.visibleCommands(e).map(m=>a(r.subcommandTerm(m),r.subcommandDescription(m)));return g.length>0&&(c=c.concat(["Commands:",l(g),""])),c.join(`
4
4
  `)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,n,i=40){let s=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",o=new RegExp(`[\\n][${s}]+`);if(e.match(o))return e;let a=r-n;if(a<i)return e;let l=e.slice(0,n),c=e.slice(n).replace(`\r
5
5
  `,`
6
6
  `),u=" ".repeat(n),h="\\s\u200B",g=new RegExp(`
7
7
  |.{1,${a-1}}([${h}]|$)|[^${h}]+?([${h}]|$)`,"g"),m=c.match(g)||[];return l+m.map((d,y)=>d===`
8
8
  `?"":(y>0?u:"")+d.trimEnd()).join(`
9
- `)}};$i.Help=Gr});var Jr=p(It=>{var{InvalidArgumentError:vc}=tt(),Kr=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=Ui(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;return typeof e=="string"&&(r={[e]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new vc(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return Ec(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Yr=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,n)=>{this.positiveOptions.has(n)&&this.dualOptions.add(n)})}valueFromOption(e,r){let n=r.attributeName();if(!this.dualOptions.has(n))return!0;let i=this.negativeOptions.get(n).presetArg,s=i!==void 0?i:!1;return r.negate===(s===e)}};function Ec(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function Ui(t){let e,r,n=t.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),r=n.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}It.Option=Kr;It.splitOptionFlags=Ui;It.DualOptions=Yr});var Wi=p(Vi=>{function Sc(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let n=0;n<=t.length;n++)r[n]=[n];for(let n=0;n<=e.length;n++)r[0][n]=n;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let s=1;t[i-1]===e[n-1]?s=0:s=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+s),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}function Cc(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(o=>o.slice(2)));let n=[],i=3,s=.4;return e.forEach(o=>{if(o.length<=1)return;let a=Sc(t,o),l=Math.max(t.length,o.length);(l-a)/l>s&&(a<i?(i=a,n=[o]):a===i&&n.push(o))}),n.sort((o,a)=>o.localeCompare(a)),r&&(n=n.map(o=>`--${o}`)),n.length>1?`
9
+ `)}};ji.Help=Gr});var Jr=p(It=>{var{InvalidArgumentError:wc}=tt(),Kr=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=$i(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;return typeof e=="string"&&(r={[e]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new wc(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return vc(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Yr=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,n)=>{this.positiveOptions.has(n)&&this.dualOptions.add(n)})}valueFromOption(e,r){let n=r.attributeName();if(!this.dualOptions.has(n))return!0;let i=this.negativeOptions.get(n).presetArg,s=i!==void 0?i:!1;return r.negate===(s===e)}};function vc(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function $i(t){let e,r,n=t.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),r=n.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}It.Option=Kr;It.splitOptionFlags=$i;It.DualOptions=Yr});var Vi=p(Ui=>{function Ec(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let n=0;n<=t.length;n++)r[n]=[n];for(let n=0;n<=e.length;n++)r[0][n]=n;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let s=1;t[i-1]===e[n-1]?s=0:s=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+s),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}function Sc(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(o=>o.slice(2)));let n=[],i=3,s=.4;return e.forEach(o=>{if(o.length<=1)return;let a=Ec(t,o),l=Math.max(t.length,o.length);(l-a)/l>s&&(a<i?(i=a,n=[o]):a===i&&n.push(o))}),n.sort((o,a)=>o.localeCompare(a)),r&&(n=n.map(o=>`--${o}`)),n.length>1?`
10
10
  (Did you mean one of ${n.join(", ")}?)`:n.length===1?`
11
- (Did you mean ${n[0]}?)`:""}Vi.suggestSimilar=Cc});var Ji=p(Yi=>{var Ac=require("events").EventEmitter,Xr=require("child_process"),le=require("path"),Zr=require("fs"),P=require("process"),{Argument:Oc,humanReadableArgName:Ic}=Ot(),{CommanderError:Qr}=tt(),{Help:Rc}=zr(),{Option:Hi,splitOptionFlags:Tc,DualOptions:Fc}=Jr(),{suggestSimilar:Gi}=Wi(),en=class t extends Ac{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:r=>P.stdout.write(r),writeErr:r=>P.stderr.write(r),getOutHelpWidth:()=>P.stdout.isTTY?P.stdout.columns:void 0,getErrHelpWidth:()=>P.stderr.isTTY?P.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let r=this;r;r=r.parent)e.push(r);return e}command(e,r,n){let i=r,s=n;typeof i=="object"&&i!==null&&(s=i,i=null),s=s||{};let[,o,a]=e.match(/([^ ]+) *(.*)/),l=this.createCommand(o);return i&&(l.description(i),l._executableHandler=!0),s.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(s.noHelp||s.hidden),l._executableFile=s.executableFile||null,a&&l.arguments(a),this.commands.push(l),l.parent=this,l.copyInheritedSettings(this),i?this:l}createCommand(e){return new t(e)}createHelp(){return Object.assign(new Rc,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
12
- - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,r){return new Oc(e,r)}argument(e,r,n,i){let s=this.createArgument(e,r);return typeof n=="function"?s.default(i).argParser(n):s.default(n),this.addArgument(s),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}addHelpCommand(e,r){return e===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(e,r){let n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
13
- Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,n){this._exitCallback&&this._exitCallback(new Qr(e,r,n)),P.exit(e)}action(e){let r=n=>{let i=this.registeredArguments.length,s=n.slice(0,i);return this._storeOptionsAsProperties?s[i]=this:s[i]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=r,this}createOption(e,r){return new Hi(e,r)}_callParseArg(e,r,n,i){try{return e.parseArg(r,n)}catch(s){if(s.code==="commander.invalidArgument"){let o=`${i} ${s.message}`;this.error(o,{exitCode:s.exitCode,code:s.code})}throw s}}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,"default");this.options.push(e);let i=(s,o,a)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let l=this.getOptionValue(n);s!==null&&e.parseArg?s=this._callParseArg(e,s,l,o):s!==null&&e.variadic&&(s=e._concatValue(s,l)),s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(n,s,a)};return this.on("option:"+r,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;i(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+r,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;i(s,o,"env")}),this}_optionEx(e,r,n,i,s){if(typeof r=="object"&&r instanceof Hi)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,n);if(o.makeOptionMandatory(!!e.mandatory),typeof i=="function")o.default(s).argParser(i);else if(i instanceof RegExp){let a=i;i=(l,c)=>{let u=a.exec(l);return u?u[0]:c},o.default(s).argParser(i)}else o.default(i);return this.addOption(o)}option(e,r,n,i){return this._optionEx({},e,r,n,i)}requiredOption(e,r,n,i){return this._optionEx({mandatory:!0},e,r,n,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){if(this._passThroughOptions=!!e,this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,n){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return this._getCommandAndAncestors().forEach(n=>{n.getOptionValueSource(e)!==void 0&&(r=n.getOptionValueSource(e))}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");r=r||{},e===void 0&&(e=P.argv,P.versions&&P.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":P.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,r){let n=this._prepareUserArgs(e,r);return this._parseCommand([],n),this}async parseAsync(e,r){let n=this._prepareUserArgs(e,r);return await this._parseCommand([],n),this}_executeSubCommand(e,r){r=r.slice();let n=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function s(u,f){let h=le.resolve(u,f);if(Zr.existsSync(h))return h;if(i.includes(le.extname(f)))return;let g=i.find(m=>Zr.existsSync(`${h}${m}`));if(g)return`${h}${g}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let u;try{u=Zr.realpathSync(this._scriptPath)}catch{u=this._scriptPath}a=le.resolve(le.dirname(u),a)}if(a){let u=s(a,o);if(!u&&!e._executableFile&&this._scriptPath){let f=le.basename(this._scriptPath,le.extname(this._scriptPath));f!==this._name&&(u=s(a,`${f}-${e._name}`))}o=u||o}n=i.includes(le.extname(o));let l;P.platform!=="win32"?n?(r.unshift(o),r=Ki(P.execArgv).concat(r),l=Xr.spawn(P.argv[0],r,{stdio:"inherit"})):l=Xr.spawn(o,r,{stdio:"inherit"}):(r.unshift(o),r=Ki(P.execArgv).concat(r),l=Xr.spawn(P.execPath,r,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{P.on(f,()=>{l.killed===!1&&l.exitCode===null&&l.kill(f)})});let c=this._exitCallback;c?l.on("close",()=>{c(new Qr(P.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):l.on("close",P.exit.bind(P)),l.on("error",u=>{if(u.code==="ENOENT"){let f=a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",h=`'${o}' does not exist
11
+ (Did you mean ${n[0]}?)`:""}Ui.suggestSimilar=Sc});var Yi=p(Ki=>{var Cc=require("events").EventEmitter,Xr=require("child_process"),ae=require("path"),Zr=require("fs"),P=require("process"),{Argument:Ac,humanReadableArgName:Oc}=Ot(),{CommanderError:Qr}=tt(),{Help:Ic}=zr(),{Option:Wi,splitOptionFlags:Rc,DualOptions:Tc}=Jr(),{suggestSimilar:Hi}=Vi(),en=class t extends Cc{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:r=>P.stdout.write(r),writeErr:r=>P.stderr.write(r),getOutHelpWidth:()=>P.stdout.isTTY?P.stdout.columns:void 0,getErrHelpWidth:()=>P.stderr.isTTY?P.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let r=this;r;r=r.parent)e.push(r);return e}command(e,r,n){let i=r,s=n;typeof i=="object"&&i!==null&&(s=i,i=null),s=s||{};let[,o,a]=e.match(/([^ ]+) *(.*)/),l=this.createCommand(o);return i&&(l.description(i),l._executableHandler=!0),s.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(s.noHelp||s.hidden),l._executableFile=s.executableFile||null,a&&l.arguments(a),this.commands.push(l),l.parent=this,l.copyInheritedSettings(this),i?this:l}createCommand(e){return new t(e)}createHelp(){return Object.assign(new Ic,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
12
+ - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,r){return new Ac(e,r)}argument(e,r,n,i){let s=this.createArgument(e,r);return typeof n=="function"?s.default(i).argParser(n):s.default(n),this.addArgument(s),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}addHelpCommand(e,r){return e===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(e,r){let n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
13
+ Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,n){this._exitCallback&&this._exitCallback(new Qr(e,r,n)),P.exit(e)}action(e){let r=n=>{let i=this.registeredArguments.length,s=n.slice(0,i);return this._storeOptionsAsProperties?s[i]=this:s[i]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=r,this}createOption(e,r){return new Wi(e,r)}_callParseArg(e,r,n,i){try{return e.parseArg(r,n)}catch(s){if(s.code==="commander.invalidArgument"){let o=`${i} ${s.message}`;this.error(o,{exitCode:s.exitCode,code:s.code})}throw s}}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,"default");this.options.push(e);let i=(s,o,a)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let l=this.getOptionValue(n);s!==null&&e.parseArg?s=this._callParseArg(e,s,l,o):s!==null&&e.variadic&&(s=e._concatValue(s,l)),s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(n,s,a)};return this.on("option:"+r,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;i(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+r,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;i(s,o,"env")}),this}_optionEx(e,r,n,i,s){if(typeof r=="object"&&r instanceof Wi)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,n);if(o.makeOptionMandatory(!!e.mandatory),typeof i=="function")o.default(s).argParser(i);else if(i instanceof RegExp){let a=i;i=(l,c)=>{let u=a.exec(l);return u?u[0]:c},o.default(s).argParser(i)}else o.default(i);return this.addOption(o)}option(e,r,n,i){return this._optionEx({},e,r,n,i)}requiredOption(e,r,n,i){return this._optionEx({mandatory:!0},e,r,n,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){if(this._passThroughOptions=!!e,this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,n){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return this._getCommandAndAncestors().forEach(n=>{n.getOptionValueSource(e)!==void 0&&(r=n.getOptionValueSource(e))}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");r=r||{},e===void 0&&(e=P.argv,P.versions&&P.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":P.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,r){let n=this._prepareUserArgs(e,r);return this._parseCommand([],n),this}async parseAsync(e,r){let n=this._prepareUserArgs(e,r);return await this._parseCommand([],n),this}_executeSubCommand(e,r){r=r.slice();let n=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function s(u,f){let h=ae.resolve(u,f);if(Zr.existsSync(h))return h;if(i.includes(ae.extname(f)))return;let g=i.find(m=>Zr.existsSync(`${h}${m}`));if(g)return`${h}${g}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let u;try{u=Zr.realpathSync(this._scriptPath)}catch{u=this._scriptPath}a=ae.resolve(ae.dirname(u),a)}if(a){let u=s(a,o);if(!u&&!e._executableFile&&this._scriptPath){let f=ae.basename(this._scriptPath,ae.extname(this._scriptPath));f!==this._name&&(u=s(a,`${f}-${e._name}`))}o=u||o}n=i.includes(ae.extname(o));let l;P.platform!=="win32"?n?(r.unshift(o),r=zi(P.execArgv).concat(r),l=Xr.spawn(P.argv[0],r,{stdio:"inherit"})):l=Xr.spawn(o,r,{stdio:"inherit"}):(r.unshift(o),r=zi(P.execArgv).concat(r),l=Xr.spawn(P.execPath,r,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{P.on(f,()=>{l.killed===!1&&l.exitCode===null&&l.kill(f)})});let c=this._exitCallback;c?l.on("close",()=>{c(new Qr(P.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):l.on("close",P.exit.bind(P)),l.on("error",u=>{if(u.code==="ENOENT"){let f=a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",h=`'${o}' does not exist
14
14
  - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
15
15
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
16
- - ${f}`;throw new Error(h)}else if(u.code==="EACCES")throw new Error(`'${o}' not executable`);if(!c)P.exit(1);else{let f=new Qr(1,"commander.executeSubCommandAsync","(error)");f.nestedError=u,c(f)}}),this.runningCommand=l}_dispatchSubcommand(e,r,n){let i=this._findCommand(e);i||this.help({error:!0});let s;return s=this._chainOrCallSubCommandHook(s,i,"preSubcommand"),s=this._chainOrCall(s,()=>{if(i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}),s}_dispatchHelpCommand(e){e||this.help();let r=this._findCommand(e);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(e,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,r)=>{e.required&&this.args[r]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(n,i,s)=>{let o=i;if(i!==null&&n.parseArg){let a=`error: command-argument value '${i}' is invalid for argument '${n.name()}'.`;o=this._callParseArg(n,i,s,a)}return o};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((n,i)=>{let s=n.defaultValue;n.variadic?i<this.args.length?(s=this.args.slice(i),n.parseArg&&(s=s.reduce((o,a)=>e(n,a,o),n.defaultValue))):s===void 0&&(s=[]):i<this.args.length&&(s=this.args[i],n.parseArg&&(s=e(n,s,n.defaultValue))),r[i]=s}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let n=e,i=[];return this._getCommandAndAncestors().reverse().filter(s=>s._lifeCycleHooks[r]!==void 0).forEach(s=>{s._lifeCycleHooks[r].forEach(o=>{i.push({hookedCommand:s,callback:o})})}),r==="postAction"&&i.reverse(),i.forEach(s=>{n=this._chainOrCall(n,()=>s.callback(s.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,r,n){let i=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(s=>{i=this._chainOrCall(i,()=>s(this,r))}),i}_parseCommand(e,r){let n=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),r=n.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName)return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return zi(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),zi(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(s,e,r)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(s))i(),this._processArguments(),this.parent.emit(s,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(n=>{let i=n.attributeName();return this.getOptionValue(i)===void 0?!1:this.getOptionValueSource(i)!=="default"});e.filter(n=>n.conflictsWith.length>0).forEach(n=>{let i=e.find(s=>n.conflictsWith.includes(s.attributeName()));i&&this._conflictingOption(n,i)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let r=[],n=[],i=r,s=e.slice();function o(l){return l.length>1&&l[0]==="-"}let a=null;for(;s.length;){let l=s.shift();if(l==="--"){i===n&&i.push(l),i.push(...s);break}if(a&&!o(l)){this.emit(`option:${a.name()}`,l);continue}if(a=null,o(l)){let c=this._findOption(l);if(c){if(c.required){let u=s.shift();u===void 0&&this.optionMissingArgument(c),this.emit(`option:${c.name()}`,u)}else if(c.optional){let u=null;s.length>0&&!o(s[0])&&(u=s.shift()),this.emit(`option:${c.name()}`,u)}else this.emit(`option:${c.name()}`);a=c.variadic?c:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let c=this._findOption(`-${l[1]}`);if(c){c.required||c.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${c.name()}`,l.slice(2)):(this.emit(`option:${c.name()}`),s.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let c=l.indexOf("="),u=this._findOption(l.slice(0,c));if(u&&(u.required||u.optional)){this.emit(`option:${u.name()}`,l.slice(c+1));continue}}if(o(l)&&(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(l)){r.push(l),s.length>0&&n.push(...s);break}else if(l===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(l),s.length>0&&r.push(...s);break}else if(this._defaultCommandName){n.push(l),s.length>0&&n.push(...s);break}}if(this._passThroughOptions){i.push(l),s.length>0&&i.push(...s);break}i.push(l)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let n=0;n<r;n++){let i=this.options[n].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
16
+ - ${f}`;throw new Error(h)}else if(u.code==="EACCES")throw new Error(`'${o}' not executable`);if(!c)P.exit(1);else{let f=new Qr(1,"commander.executeSubCommandAsync","(error)");f.nestedError=u,c(f)}}),this.runningCommand=l}_dispatchSubcommand(e,r,n){let i=this._findCommand(e);i||this.help({error:!0});let s;return s=this._chainOrCallSubCommandHook(s,i,"preSubcommand"),s=this._chainOrCall(s,()=>{if(i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}),s}_dispatchHelpCommand(e){e||this.help();let r=this._findCommand(e);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(e,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,r)=>{e.required&&this.args[r]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(n,i,s)=>{let o=i;if(i!==null&&n.parseArg){let a=`error: command-argument value '${i}' is invalid for argument '${n.name()}'.`;o=this._callParseArg(n,i,s,a)}return o};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((n,i)=>{let s=n.defaultValue;n.variadic?i<this.args.length?(s=this.args.slice(i),n.parseArg&&(s=s.reduce((o,a)=>e(n,a,o),n.defaultValue))):s===void 0&&(s=[]):i<this.args.length&&(s=this.args[i],n.parseArg&&(s=e(n,s,n.defaultValue))),r[i]=s}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let n=e,i=[];return this._getCommandAndAncestors().reverse().filter(s=>s._lifeCycleHooks[r]!==void 0).forEach(s=>{s._lifeCycleHooks[r].forEach(o=>{i.push({hookedCommand:s,callback:o})})}),r==="postAction"&&i.reverse(),i.forEach(s=>{n=this._chainOrCall(n,()=>s.callback(s.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,r,n){let i=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(s=>{i=this._chainOrCall(i,()=>s(this,r))}),i}_parseCommand(e,r){let n=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),r=n.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName)return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return Gi(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),Gi(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(s,e,r)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(s))i(),this._processArguments(),this.parent.emit(s,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(n=>{let i=n.attributeName();return this.getOptionValue(i)===void 0?!1:this.getOptionValueSource(i)!=="default"});e.filter(n=>n.conflictsWith.length>0).forEach(n=>{let i=e.find(s=>n.conflictsWith.includes(s.attributeName()));i&&this._conflictingOption(n,i)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let r=[],n=[],i=r,s=e.slice();function o(l){return l.length>1&&l[0]==="-"}let a=null;for(;s.length;){let l=s.shift();if(l==="--"){i===n&&i.push(l),i.push(...s);break}if(a&&!o(l)){this.emit(`option:${a.name()}`,l);continue}if(a=null,o(l)){let c=this._findOption(l);if(c){if(c.required){let u=s.shift();u===void 0&&this.optionMissingArgument(c),this.emit(`option:${c.name()}`,u)}else if(c.optional){let u=null;s.length>0&&!o(s[0])&&(u=s.shift()),this.emit(`option:${c.name()}`,u)}else this.emit(`option:${c.name()}`);a=c.variadic?c:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let c=this._findOption(`-${l[1]}`);if(c){c.required||c.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${c.name()}`,l.slice(2)):(this.emit(`option:${c.name()}`),s.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let c=l.indexOf("="),u=this._findOption(l.slice(0,c));if(u&&(u.required||u.optional)){this.emit(`option:${u.name()}`,l.slice(c+1));continue}}if(o(l)&&(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(l)){r.push(l),s.length>0&&n.push(...s);break}else if(l===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(l),s.length>0&&r.push(...s);break}else if(this._defaultCommandName){n.push(l),s.length>0&&n.push(...s);break}}if(this._passThroughOptions){i.push(l),s.length>0&&i.push(...s);break}i.push(l)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let n=0;n<r;n++){let i=this.options[n].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
17
17
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
18
18
  `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
19
- `),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,s=n.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in P.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,P.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new Fc(this.options),r=n=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter(n=>n.implied!==void 0&&r(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(i=>!r(i)).forEach(i=>{this.setOptionValueWithSource(i,n.implied[i],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let n=o=>{let a=o.attributeName(),l=this.getOptionValue(a),c=this.options.find(f=>f.negate&&a===f.attributeName()),u=this.options.find(f=>!f.negate&&a===f.attributeName());return c&&(c.presetArg===void 0&&l===!1||c.presetArg!==void 0&&l===c.presetArg)?c:u||o},i=o=>{let a=n(o),l=a.attributeName();return this.getOptionValueSource(l)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},s=`error: ${i(e)} cannot be used with ${i(r)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],s=this;do{let o=s.createHelp().visibleOptions(s).filter(a=>a.long).map(a=>a.long);i=i.concat(o),s=s.parent}while(s&&!s._enablePositionalOptions);r=Gi(e,i)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,n=r===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(s=>{i.push(s.name()),s.alias()&&i.push(s.alias())}),r=Gi(e,i)}let n=`error: unknown command '${e}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(e,r,n){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",n=n||"output the version number";let i=this.createOption(r,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
20
- `),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)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]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(n=>Ic(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=le.basename(e,le.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},n;return r.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),r.write=e.write||n,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let n=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this._helpLongFlag&&this.emit(this._helpLongFlag),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=Tc(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=P.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
19
+ `),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,s=n.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in P.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,P.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new Tc(this.options),r=n=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter(n=>n.implied!==void 0&&r(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(i=>!r(i)).forEach(i=>{this.setOptionValueWithSource(i,n.implied[i],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let n=o=>{let a=o.attributeName(),l=this.getOptionValue(a),c=this.options.find(f=>f.negate&&a===f.attributeName()),u=this.options.find(f=>!f.negate&&a===f.attributeName());return c&&(c.presetArg===void 0&&l===!1||c.presetArg!==void 0&&l===c.presetArg)?c:u||o},i=o=>{let a=n(o),l=a.attributeName();return this.getOptionValueSource(l)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},s=`error: ${i(e)} cannot be used with ${i(r)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],s=this;do{let o=s.createHelp().visibleOptions(s).filter(a=>a.long).map(a=>a.long);i=i.concat(o),s=s.parent}while(s&&!s._enablePositionalOptions);r=Hi(e,i)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,n=r===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(s=>{i.push(s.name()),s.alias()&&i.push(s.alias())}),r=Hi(e,i)}let n=`error: unknown command '${e}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(e,r,n){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",n=n||"output the version number";let i=this.createOption(r,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
20
+ `),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)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]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(n=>Oc(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=ae.basename(e,ae.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},n;return r.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),r.write=e.write||n,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let n=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this._helpLongFlag&&this.emit(this._helpLongFlag),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=Rc(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=P.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
21
21
  Expecting one of '${n.join("', '")}'`);let i=`${e}Help`;return this.on(i,s=>{let o;typeof r=="function"?o=r({error:s.error,command:s.command}):o=r,o&&s.write(`${o}
22
- `)}),this}};function zi(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Ki(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?i=s[3]:n=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],n=s[3],i=s[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}Yi.Command=en});var es=p((X,Qi)=>{var{Argument:Pc}=Ot(),{Command:Xi}=Ji(),{CommanderError:Lc,InvalidArgumentError:Zi}=tt(),{Help:kc}=zr(),{Option:Dc}=Jr();X=Qi.exports=new Xi;X.program=X;X.Command=Xi;X.Option=Dc;X.Argument=Pc;X.Help=kc;X.CommanderError=Lc;X.InvalidArgumentError=Zi;X.InvalidOptionArgumentError=Zi});var tn=p((_0,Nc)=>{Nc.exports={name:"@xframework-ca-test/cli",version:"1.0.26",description:"xFramework \u2014 one command to run your portal locally",main:"index.bundle.js",bin:{"xframework-cli":"./index.bundle.js"},scripts:{start:"node index.js start",build:"npx esbuild index.js --bundle --platform=node --minify --external:embedded-postgres --external:*.node --outfile=index.bundle.js",prepack:"node scripts/prepack.js",prepublishOnly:"npm run build","build:aws":"node scripts/build-aws.js"},dependencies:{"adm-zip":"^0.5.17",chalk:"^4.1.2",commander:"^11.0.0",dotenv:"^16.4.5","embedded-postgres":"^18.3.0-beta.16","extract-zip":"^2.0.1",open:"^8.4.2",ora:"^5.4.1"},devDependencies:{esbuild:"^0.20.0"},engines:{node:">=18.0.0"},optionalDependencies:{"@embedded-postgres/win32-x64":"*"}}});var rs=p((b0,ts)=>{"use strict";ts.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]}});var rn=p((x0,is)=>{var rt=rs(),ns={};for(let t of Object.keys(rt))ns[rt[t]]=t;var x={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"]}};is.exports=x;for(let t of Object.keys(x)){if(!("channels"in x[t]))throw new Error("missing channels property: "+t);if(!("labels"in x[t]))throw new Error("missing channel labels property: "+t);if(x[t].labels.length!==x[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=x[t];delete x[t].channels,delete x[t].labels,Object.defineProperty(x[t],"channels",{value:e}),Object.defineProperty(x[t],"labels",{value:r})}x.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,l;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let c=(i+s)/2;return s===i?l=0:c<=.5?l=o/(s+i):l=o/(2-s-i),[a,l*100,c*100]};x.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,l=t[2]/255,c=Math.max(o,a,l),u=c-Math.min(o,a,l),f=function(h){return(c-h)/6/u+1/2};return u===0?(i=0,s=0):(s=u/c,e=f(o),r=f(a),n=f(l),o===c?i=n-r:a===c?i=1/3+e-n:l===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};x.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=x.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};x.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function Mc(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}x.rgb.keyword=function(t){let e=ns[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(rt)){let s=rt[i],o=Mc(t,s);o<r&&(r=o,n=i)}return n};x.keyword.rgb=function(t){return rt[t]};x.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};x.rgb.lab=function(t){let e=x.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};x.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,l=[0,0,0];for(let c=0;c<3;c++)s=e+1/3*-(c-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,l[c]=o*255;return l};x.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};x.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),l=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}};x.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};x.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let l=r+s*(a-r),c,u,f;switch(o){default:case 6:case 0:c=a,u=l,f=r;break;case 1:c=l,u=a,f=r;break;case 2:c=r,u=a,f=l;break;case 3:c=r,u=l,f=a;break;case 4:c=l,u=r,f=a;break;case 5:c=a,u=r,f=l;break}return[c*255,u*255,f*255]};x.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};x.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};x.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};x.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,l=i**3,c=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};x.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};x.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};x.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?x.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};x.hsv.ansi16=function(t){return x.rgb.ansi16(x.hsv.rgb(t),t[2])};x.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};x.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};x.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};x.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};x.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};x.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,l;return o<1?a=s/(1-o):a=0,o<=0?l=0:i===e?l=(r-n)/o%6:i===r?l=2+(n-e)/o:l=4+(e-r)/o,l/=6,l%=1,[l*360,o*100,a*100]};x.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};x.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};x.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,l=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-r)*n,[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};x.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};x.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};x.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};x.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};x.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};x.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};x.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};x.gray.hsl=function(t){return[0,0,t[0]]};x.gray.hsv=x.gray.hsl;x.gray.hwb=function(t){return[0,100,t[0]]};x.gray.cmyk=function(t){return[0,0,0,t[0]]};x.gray.lab=function(t){return[t[0],0,0]};x.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};x.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var os=p((w0,ss)=>{var Rt=rn();function qc(){let t={},e=Object.keys(Rt);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Bc(t){let e=qc(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(Rt[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],l=e[a];l.distance===-1&&(l.distance=e[n].distance+1,l.parent=n,r.unshift(a))}}return e}function jc(t,e){return function(r){return e(t(r))}}function $c(t,e){let r=[e[t].parent,t],n=Rt[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=jc(Rt[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}ss.exports=function(t){let e=Bc(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=$c(o,e))}return r}});var ls=p((v0,as)=>{var nn=rn(),Uc=os(),Le={},Vc=Object.keys(nn);function Wc(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Hc(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}Vc.forEach(t=>{Le[t]={},Object.defineProperty(Le[t],"channels",{value:nn[t].channels}),Object.defineProperty(Le[t],"labels",{value:nn[t].labels});let e=Uc(t);Object.keys(e).forEach(n=>{let i=e[n];Le[t][n]=Hc(i),Le[t][n].raw=Wc(i)})});as.exports=Le});var ps=p((E0,hs)=>{"use strict";var cs=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,us=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},fs=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},Tt=t=>t,ds=(t,e,r)=>[t,e,r],ke=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},sn,De=(t,e,r,n)=>{sn===void 0&&(sn=ls());let i=n?10:0,s={};for(let[o,a]of Object.entries(sn)){let l=o==="ansi16"?"ansi":o;o===e?s[l]=t(r,i):typeof a=="object"&&(s[l]=t(a[e],i))}return s};function Gc(){let t=new Map,e={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]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",ke(e.color,"ansi",()=>De(cs,"ansi16",Tt,!1)),ke(e.color,"ansi256",()=>De(us,"ansi256",Tt,!1)),ke(e.color,"ansi16m",()=>De(fs,"rgb",ds,!1)),ke(e.bgColor,"ansi",()=>De(cs,"ansi16",Tt,!0)),ke(e.bgColor,"ansi256",()=>De(us,"ansi256",Tt,!0)),ke(e.bgColor,"ansi16m",()=>De(fs,"rgb",ds,!0)),e}Object.defineProperty(hs,"exports",{enumerable:!0,get:Gc})});var ms=p((S0,gs)=>{"use strict";gs.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var ln=p((C0,_s)=>{"use strict";var zc=require("os"),ys=require("tty"),z=ms(),{env:q}=process,de;z("no-color")||z("no-colors")||z("color=false")||z("color=never")?de=0:(z("color")||z("colors")||z("color=true")||z("color=always"))&&(de=1);"FORCE_COLOR"in q&&(q.FORCE_COLOR==="true"?de=1:q.FORCE_COLOR==="false"?de=0:de=q.FORCE_COLOR.length===0?1:Math.min(parseInt(q.FORCE_COLOR,10),3));function on(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function an(t,e){if(de===0)return 0;if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2;if(t&&!e&&de===void 0)return 0;let r=de||0;if(q.TERM==="dumb")return r;if(process.platform==="win32"){let n=zc.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in q)||q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(q.TEAMCITY_VERSION)?1:0;if(q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in q){let n=parseInt((q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(q.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(q.TERM)||"COLORTERM"in q?1:r}function Kc(t){let e=an(t,t&&t.isTTY);return on(e)}_s.exports={supportsColor:Kc,stdout:on(an(!0,ys.isatty(1))),stderr:on(an(!0,ys.isatty(2)))}});var xs=p((A0,bs)=>{"use strict";var Yc=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},Jc=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
22
+ `)}),this}};function Gi(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function zi(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?i=s[3]:n=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],n=s[3],i=s[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}Ki.Command=en});var Qi=p((J,Zi)=>{var{Argument:Fc}=Ot(),{Command:Ji}=Yi(),{CommanderError:Pc,InvalidArgumentError:Xi}=tt(),{Help:Lc}=zr(),{Option:kc}=Jr();J=Zi.exports=new Ji;J.program=J;J.Command=Ji;J.Option=kc;J.Argument=Fc;J.Help=Lc;J.CommanderError=Pc;J.InvalidArgumentError=Xi;J.InvalidOptionArgumentError=Xi});var tn=p((_0,Dc)=>{Dc.exports={name:"@xframework-ca-test/cli",version:"1.0.27",description:"xFramework \u2014 one command to run your portal locally",main:"index.bundle.js",bin:{"xframework-cli":"./index.bundle.js"},scripts:{start:"node index.js start",build:"npx esbuild index.js --bundle --platform=node --minify --external:embedded-postgres --external:*.node --outfile=index.bundle.js",prepack:"node scripts/prepack.js",prepublishOnly:"npm run build","build:aws":"node scripts/build-aws.js"},dependencies:{"adm-zip":"^0.5.17",chalk:"^4.1.2",commander:"^11.0.0",dotenv:"^16.4.5","embedded-postgres":"^18.3.0-beta.16","extract-zip":"^2.0.1",open:"^8.4.2",ora:"^5.4.1"},devDependencies:{esbuild:"^0.20.0"},engines:{node:">=18.0.0"},optionalDependencies:{"@embedded-postgres/win32-x64":"*"}}});var ts=p((b0,es)=>{"use strict";es.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]}});var rn=p((x0,ns)=>{var rt=ts(),rs={};for(let t of Object.keys(rt))rs[rt[t]]=t;var x={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"]}};ns.exports=x;for(let t of Object.keys(x)){if(!("channels"in x[t]))throw new Error("missing channels property: "+t);if(!("labels"in x[t]))throw new Error("missing channel labels property: "+t);if(x[t].labels.length!==x[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=x[t];delete x[t].channels,delete x[t].labels,Object.defineProperty(x[t],"channels",{value:e}),Object.defineProperty(x[t],"labels",{value:r})}x.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,l;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let c=(i+s)/2;return s===i?l=0:c<=.5?l=o/(s+i):l=o/(2-s-i),[a,l*100,c*100]};x.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,l=t[2]/255,c=Math.max(o,a,l),u=c-Math.min(o,a,l),f=function(h){return(c-h)/6/u+1/2};return u===0?(i=0,s=0):(s=u/c,e=f(o),r=f(a),n=f(l),o===c?i=n-r:a===c?i=1/3+e-n:l===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};x.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=x.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};x.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function Nc(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}x.rgb.keyword=function(t){let e=rs[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(rt)){let s=rt[i],o=Nc(t,s);o<r&&(r=o,n=i)}return n};x.keyword.rgb=function(t){return rt[t]};x.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};x.rgb.lab=function(t){let e=x.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};x.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,l=[0,0,0];for(let c=0;c<3;c++)s=e+1/3*-(c-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,l[c]=o*255;return l};x.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};x.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),l=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}};x.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};x.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let l=r+s*(a-r),c,u,f;switch(o){default:case 6:case 0:c=a,u=l,f=r;break;case 1:c=l,u=a,f=r;break;case 2:c=r,u=a,f=l;break;case 3:c=r,u=l,f=a;break;case 4:c=l,u=r,f=a;break;case 5:c=a,u=r,f=l;break}return[c*255,u*255,f*255]};x.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};x.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};x.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};x.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,l=i**3,c=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};x.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};x.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};x.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?x.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};x.hsv.ansi16=function(t){return x.rgb.ansi16(x.hsv.rgb(t),t[2])};x.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};x.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};x.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};x.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};x.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};x.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,l;return o<1?a=s/(1-o):a=0,o<=0?l=0:i===e?l=(r-n)/o%6:i===r?l=2+(n-e)/o:l=4+(e-r)/o,l/=6,l%=1,[l*360,o*100,a*100]};x.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};x.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};x.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,l=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-r)*n,[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};x.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};x.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};x.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};x.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};x.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};x.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};x.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};x.gray.hsl=function(t){return[0,0,t[0]]};x.gray.hsv=x.gray.hsl;x.gray.hwb=function(t){return[0,100,t[0]]};x.gray.cmyk=function(t){return[0,0,0,t[0]]};x.gray.lab=function(t){return[t[0],0,0]};x.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};x.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var ss=p((w0,is)=>{var Rt=rn();function Mc(){let t={},e=Object.keys(Rt);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function qc(t){let e=Mc(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(Rt[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],l=e[a];l.distance===-1&&(l.distance=e[n].distance+1,l.parent=n,r.unshift(a))}}return e}function Bc(t,e){return function(r){return e(t(r))}}function jc(t,e){let r=[e[t].parent,t],n=Rt[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=Bc(Rt[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}is.exports=function(t){let e=qc(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=jc(o,e))}return r}});var as=p((v0,os)=>{var nn=rn(),$c=ss(),Le={},Uc=Object.keys(nn);function Vc(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Wc(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}Uc.forEach(t=>{Le[t]={},Object.defineProperty(Le[t],"channels",{value:nn[t].channels}),Object.defineProperty(Le[t],"labels",{value:nn[t].labels});let e=$c(t);Object.keys(e).forEach(n=>{let i=e[n];Le[t][n]=Wc(i),Le[t][n].raw=Vc(i)})});os.exports=Le});var hs=p((E0,ds)=>{"use strict";var ls=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,cs=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},us=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},Tt=t=>t,fs=(t,e,r)=>[t,e,r],ke=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},sn,De=(t,e,r,n)=>{sn===void 0&&(sn=as());let i=n?10:0,s={};for(let[o,a]of Object.entries(sn)){let l=o==="ansi16"?"ansi":o;o===e?s[l]=t(r,i):typeof a=="object"&&(s[l]=t(a[e],i))}return s};function Hc(){let t=new Map,e={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]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",ke(e.color,"ansi",()=>De(ls,"ansi16",Tt,!1)),ke(e.color,"ansi256",()=>De(cs,"ansi256",Tt,!1)),ke(e.color,"ansi16m",()=>De(us,"rgb",fs,!1)),ke(e.bgColor,"ansi",()=>De(ls,"ansi16",Tt,!0)),ke(e.bgColor,"ansi256",()=>De(cs,"ansi256",Tt,!0)),ke(e.bgColor,"ansi16m",()=>De(us,"rgb",fs,!0)),e}Object.defineProperty(ds,"exports",{enumerable:!0,get:Hc})});var gs=p((S0,ps)=>{"use strict";ps.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var ln=p((C0,ys)=>{"use strict";var Gc=require("os"),ms=require("tty"),z=gs(),{env:N}=process,de;z("no-color")||z("no-colors")||z("color=false")||z("color=never")?de=0:(z("color")||z("colors")||z("color=true")||z("color=always"))&&(de=1);"FORCE_COLOR"in N&&(N.FORCE_COLOR==="true"?de=1:N.FORCE_COLOR==="false"?de=0:de=N.FORCE_COLOR.length===0?1:Math.min(parseInt(N.FORCE_COLOR,10),3));function on(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function an(t,e){if(de===0)return 0;if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2;if(t&&!e&&de===void 0)return 0;let r=de||0;if(N.TERM==="dumb")return r;if(process.platform==="win32"){let n=Gc.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in N)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in N)||N.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in N)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(N.TEAMCITY_VERSION)?1:0;if(N.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in N){let n=parseInt((N.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(N.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(N.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(N.TERM)||"COLORTERM"in N?1:r}function zc(t){let e=an(t,t&&t.isTTY);return on(e)}ys.exports={supportsColor:zc,stdout:on(an(!0,ms.isatty(1))),stderr:on(an(!0,ms.isatty(2)))}});var bs=p((A0,_s)=>{"use strict";var Kc=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},Yc=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
23
23
  `:`
24
24
  `)+r,i=n+1,n=t.indexOf(`
25
- `,i)}while(n!==-1);return s+=t.substr(i),s};bs.exports={stringReplaceAll:Yc,stringEncaseCRLFWithFirstIndex:Jc}});var Cs=p((O0,Ss)=>{"use strict";var Xc=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,ws=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Zc=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Qc=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,eu=new Map([["n",`
26
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Es(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):eu.get(t)||t}function tu(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(Zc))r.push(i[2].replace(Qc,(a,l,c)=>l?Es(l):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function ru(t){ws.lastIndex=0;let e=[],r;for(;(r=ws.exec(t))!==null;){let n=r[1];if(r[2]){let i=tu(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function vs(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}Ss.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Xc,(s,o,a,l,c,u)=>{if(o)i.push(Es(o));else if(l){let f=i.join("");i=[],n.push(r.length===0?f:vs(t,r)(f)),r.push({inverse:a,styles:ru(l)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(vs(t,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Z=p((I0,Fs)=>{"use strict";var nt=ps(),{stdout:un,stderr:fn}=ln(),{stringReplaceAll:nu,stringEncaseCRLFWithFirstIndex:iu}=xs(),{isArray:Ft}=Array,Os=["ansi","ansi","ansi256","ansi16m"],Ne=Object.create(null),su=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=un?un.level:0;t.level=e.level===void 0?r:e.level},dn=class{constructor(e){return Is(e)}},Is=t=>{let e={};return su(e,t),e.template=(...r)=>Ts(e.template,...r),Object.setPrototypeOf(e,Pt.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=dn,e.template};function Pt(t){return Is(t)}for(let[t,e]of Object.entries(nt))Ne[t]={get(){let r=Lt(this,hn(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Ne.visible={get(){let t=Lt(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Rs=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of Rs)Ne[t]={get(){let{level:e}=this;return function(...r){let n=hn(nt.color[Os[e]][t](...r),nt.color.close,this._styler);return Lt(this,n,this._isEmpty)}}};for(let t of Rs){let e="bg"+t[0].toUpperCase()+t.slice(1);Ne[e]={get(){let{level:r}=this;return function(...n){let i=hn(nt.bgColor[Os[r]][t](...n),nt.bgColor.close,this._styler);return Lt(this,i,this._isEmpty)}}}}var ou=Object.defineProperties(()=>{},{...Ne,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),hn=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Lt=(t,e,r)=>{let n=(...i)=>Ft(i[0])&&Ft(i[0].raw)?As(n,Ts(n,...i)):As(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,ou),n._generator=t,n._styler=e,n._isEmpty=r,n},As=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=nu(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
27
- `);return s!==-1&&(e=iu(e,i,n,s)),n+e+i},cn,Ts=(t,...e)=>{let[r]=e;if(!Ft(r)||!Ft(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return cn===void 0&&(cn=Cs()),cn(t,i.join(""))};Object.defineProperties(Pt.prototype,Ne);var kt=Pt();kt.supportsColor=un;kt.stderr=Pt({level:fn?fn.level:0});kt.stderr.supportsColor=fn;Fs.exports=kt});var Ls=p((R0,pn)=>{"use strict";var Ps=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};pn.exports=Ps;pn.exports.default=Ps});var Ds=p((T0,Nt)=>{"use strict";var au=Ls(),Dt=new WeakMap,ks=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Dt.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return au(s,t),Dt.set(s,n),s};Nt.exports=ks;Nt.exports.default=ks;Nt.exports.callCount=t=>{if(!Dt.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Dt.get(t)}});var Ns=p((F0,Mt)=>{Mt.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Mt.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Mt.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var $s=p((P0,Be)=>{var L=global.process,ve=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};ve(L)?(Ms=require("assert"),Me=Ns(),qs=/^win/i.test(L.platform),it=require("events"),typeof it!="function"&&(it=it.EventEmitter),L.__signal_exit_emitter__?B=L.__signal_exit_emitter__:(B=L.__signal_exit_emitter__=new it,B.count=0,B.emitted={}),B.infinite||(B.setMaxListeners(1/0),B.infinite=!0),Be.exports=function(t,e){if(!ve(global.process))return function(){};Ms.equal(typeof t,"function","a callback must be provided for exit handler"),qe===!1&&gn();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){B.removeListener(r,t),B.listeners("exit").length===0&&B.listeners("afterexit").length===0&&qt()};return B.on(r,t),n},qt=function(){!qe||!ve(global.process)||(qe=!1,Me.forEach(function(e){try{L.removeListener(e,Bt[e])}catch{}}),L.emit=jt,L.reallyExit=mn,B.count-=1)},Be.exports.unload=qt,Ee=function(e,r,n){B.emitted[e]||(B.emitted[e]=!0,B.emit(e,r,n))},Bt={},Me.forEach(function(t){Bt[t]=function(){if(ve(global.process)){var r=L.listeners(t);r.length===B.count&&(qt(),Ee("exit",null,t),Ee("afterexit",null,t),qs&&t==="SIGHUP"&&(t="SIGINT"),L.kill(L.pid,t))}}}),Be.exports.signals=function(){return Me},qe=!1,gn=function(){qe||!ve(global.process)||(qe=!0,B.count+=1,Me=Me.filter(function(e){try{return L.on(e,Bt[e]),!0}catch{return!1}}),L.emit=js,L.reallyExit=Bs)},Be.exports.load=gn,mn=L.reallyExit,Bs=function(e){ve(global.process)&&(L.exitCode=e||0,Ee("exit",L.exitCode,null),Ee("afterexit",L.exitCode,null),mn.call(L,L.exitCode))},jt=L.emit,js=function(e,r){if(e==="exit"&&ve(global.process)){r!==void 0&&(L.exitCode=r);var n=jt.apply(this,arguments);return Ee("exit",L.exitCode,null),Ee("afterexit",L.exitCode,null),n}else return jt.apply(this,arguments)}):Be.exports=function(){return function(){}};var Ms,Me,qs,it,B,qt,Ee,Bt,qe,gn,mn,Bs,jt,js});var Vs=p((L0,Us)=>{"use strict";var lu=Ds(),cu=$s();Us.exports=lu(()=>{cu(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var Ws=p(je=>{"use strict";var uu=Vs(),$t=!1;je.show=(t=process.stderr)=>{t.isTTY&&($t=!1,t.write("\x1B[?25h"))};je.hide=(t=process.stderr)=>{t.isTTY&&(uu(),$t=!0,t.write("\x1B[?25l"))};je.toggle=(t,e)=>{t!==void 0&&($t=t),$t?je.show(e):je.hide(e)}});var Hs=p((D0,fu)=>{fu.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var Ks=p((N0,zs)=>{"use strict";var Ut=Object.assign({},Hs()),Gs=Object.keys(Ut);Object.defineProperty(Ut,"random",{get(){let t=Math.floor(Math.random()*Gs.length),e=Gs[t];return Ut[e]}});zs.exports=Ut});var yn=p((M0,Ys)=>{"use strict";Ys.exports=()=>process.platform!=="win32"?!0:!!process.env.CI||!!process.env.WT_SESSION||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"});var Xs=p((q0,Js)=>{"use strict";var he=Z(),du=yn(),hu={info:he.blue("\u2139"),success:he.green("\u2714"),warning:he.yellow("\u26A0"),error:he.red("\u2716")},pu={info:he.blue("i"),success:he.green("\u221A"),warning:he.yellow("\u203C"),error:he.red("\xD7")};Js.exports=du()?hu:pu});var Qs=p((B0,Zs)=>{"use strict";Zs.exports=({onlyFirst:t=!1}={})=>{let e=["[\\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(e,t?void 0:"g")}});var to=p((j0,eo)=>{"use strict";var gu=Qs();eo.exports=t=>typeof t=="string"?t.replace(gu(),""):t});var ro=p(($0,Vt)=>{var mu=function(){"use strict";function t(o,a,l,c){var u;typeof a=="object"&&(l=a.depth,c=a.prototype,u=a.filter,a=a.circular);var f=[],h=[],g=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function m(d,y){if(d===null)return null;if(y==0)return d;var b,v;if(typeof d!="object")return d;if(t.__isArray(d))b=[];else if(t.__isRegExp(d))b=new RegExp(d.source,s(d)),d.lastIndex&&(b.lastIndex=d.lastIndex);else if(t.__isDate(d))b=new Date(d.getTime());else{if(g&&Buffer.isBuffer(d))return Buffer.allocUnsafe?b=Buffer.allocUnsafe(d.length):b=new Buffer(d.length),d.copy(b),b;typeof c>"u"?(v=Object.getPrototypeOf(d),b=Object.create(v)):(b=Object.create(c),v=c)}if(a){var R=f.indexOf(d);if(R!=-1)return h[R];f.push(d),h.push(b)}for(var N in d){var W;v&&(W=Object.getOwnPropertyDescriptor(v,N)),!(W&&W.set==null)&&(b[N]=m(d[N],y-1))}return b}return m(o,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof Vt=="object"&&Vt.exports&&(Vt.exports=mu)});var io=p((U0,no)=>{var yu=ro();no.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=yu(e[r]))}),t}});var oo=p((V0,so)=>{so.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var uo=p((W0,_n)=>{"use strict";var _u=io(),st=oo(),lo={nul:0,control:0};_n.exports=function(e){return co(e,lo)};_n.exports.config=function(t){return t=_u(t||{},lo),function(r){return co(r,t)}};function co(t,e){if(typeof t!="string")return ao(t,e);for(var r=0,n=0;n<t.length;n++){var i=ao(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function ao(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:bu(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function bu(t){var e=0,r=st.length-1,n;if(t<st[0][0]||t>st[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>st[n][1])e=n+1;else if(t<st[n][0])r=n-1;else return!0;return!1}});var ho=p((H0,fo)=>{"use strict";fo.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var bn=p((G0,po)=>{po.exports=require("stream")});var xo=p((z0,bo)=>{"use strict";function go(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function mo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?go(Object(r),!0).forEach(function(n){xu(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):go(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function xu(t,e,r){return e=_o(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yo(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_o(n.key),n)}}function vu(t,e,r){return e&&yo(t.prototype,e),r&&yo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _o(t){var e=Eu(t,"string");return typeof e=="symbol"?e:String(e)}function Eu(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Su=require("buffer"),Wt=Su.Buffer,Cu=require("util"),xn=Cu.inspect,Au=xn&&xn.custom||"inspect";function Ou(t,e,r){Wt.prototype.copy.call(t,e,r)}bo.exports=function(){function t(){wu(this,t),this.head=null,this.tail=null,this.length=0}return vu(t,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Wt.alloc(0);for(var n=Wt.allocUnsafe(r>>>0),i=this.head,s=0;i;)Ou(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=Wt.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:Au,value:function(r,n){return xn(this,mo(mo({},n),{},{depth:0,customInspect:!1}))}}]),t}()});var vn=p((K0,vo)=>{"use strict";function Iu(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(wn,this,t)):process.nextTick(wn,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Ht,r):(r._writableState.errorEmitted=!0,process.nextTick(wo,r,s)):process.nextTick(wo,r,s):e?(process.nextTick(Ht,r),e(s)):process.nextTick(Ht,r)}),this)}function wo(t,e){wn(t,e),Ht(t)}function Ht(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Ru(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function wn(t,e){t.emit("error",e)}function Tu(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}vo.exports={destroy:Iu,undestroy:Ru,errorOrDestroy:Tu}});var pe=p((Y0,Co)=>{"use strict";var So={};function K(t,e,r){r||(r=Error);function n(s,o,a){return typeof e=="string"?e:e(s,o,a)}class i extends r{constructor(o,a,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=t,So[t]=i}function Eo(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(n=>String(n)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function Fu(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Pu(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function Lu(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}K("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);K("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&Fu(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(Pu(t," argument"))i=`The ${t} ${n} ${Eo(e,"type")}`;else{let s=Lu(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${Eo(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);K("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");K("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});K("ERR_STREAM_PREMATURE_CLOSE","Premature close");K("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});K("ERR_MULTIPLE_CALLBACK","Callback called multiple times");K("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");K("ERR_STREAM_WRITE_AFTER_END","write after end");K("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);K("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);K("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Co.exports.codes=So});var En=p((J0,Ao)=>{"use strict";var ku=pe().codes.ERR_INVALID_OPT_VALUE;function Du(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Nu(t,e,r,n){var i=Du(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new ku(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}Ao.exports={getHighWaterMark:Nu}});var Oo=p((X0,Sn)=>{typeof Object.create=="function"?Sn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Sn.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Se=p((Z0,An)=>{try{if(Cn=require("util"),typeof Cn.inherits!="function")throw"";An.exports=Cn.inherits}catch{An.exports=Oo()}var Cn});var Ro=p((Q0,Io)=>{Io.exports=require("util").deprecate});var Rn=p((eg,Do)=>{"use strict";Do.exports=k;function Fo(t){var e=this;this.next=null,this.entry=null,this.finish=function(){uf(e,t)}}var $e;k.WritableState=at;var Mu={deprecate:Ro()},Po=bn(),zt=require("buffer").Buffer,qu=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Bu(t){return zt.from(t)}function ju(t){return zt.isBuffer(t)||t instanceof qu}var In=vn(),$u=En(),Uu=$u.getHighWaterMark,ge=pe().codes,Vu=ge.ERR_INVALID_ARG_TYPE,Wu=ge.ERR_METHOD_NOT_IMPLEMENTED,Hu=ge.ERR_MULTIPLE_CALLBACK,Gu=ge.ERR_STREAM_CANNOT_PIPE,zu=ge.ERR_STREAM_DESTROYED,Ku=ge.ERR_STREAM_NULL_VALUES,Yu=ge.ERR_STREAM_WRITE_AFTER_END,Ju=ge.ERR_UNKNOWN_ENCODING,Ue=In.errorOrDestroy;Se()(k,Po);function Xu(){}function at(t,e,r){$e=$e||Ce(),t=t||{},typeof r!="boolean"&&(r=e instanceof $e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Uu(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){sf(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Fo(this)}at.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(at.prototype,"buffer",{get:Mu.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Gt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Gt=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return Gt.call(this,e)?!0:this!==k?!1:e&&e._writableState instanceof at}})):Gt=function(e){return e instanceof this};function k(t){$e=$e||Ce();var e=this instanceof $e;if(!e&&!Gt.call(k,this))return new k(t);this._writableState=new at(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Po.call(this)}k.prototype.pipe=function(){Ue(this,new Gu)};function Zu(t,e){var r=new Yu;Ue(t,r),process.nextTick(e,r)}function Qu(t,e,r,n){var i;return r===null?i=new Ku:typeof r!="string"&&!e.objectMode&&(i=new Vu("chunk",["string","Buffer"],r)),i?(Ue(t,i),process.nextTick(n,i),!1):!0}k.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&ju(t);return s&&!zt.isBuffer(t)&&(t=Bu(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=Xu),n.ending?Zu(this,r):(s||Qu(this,n,t,r))&&(n.pendingcb++,i=tf(this,n,s,t,e,r)),i};k.prototype.cork=function(){this._writableState.corked++};k.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Lo(this,t))};k.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Ju(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ef(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=zt.from(e,r)),e}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function tf(t,e,r,n,i,s){if(!r){var o=ef(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=e.objectMode?1:n.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else On(t,e,!1,a,n,i,s);return l}function On(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new zu("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function rf(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(ot,t,e),t._writableState.errorEmitted=!0,Ue(t,n)):(i(n),t._writableState.errorEmitted=!0,Ue(t,n),ot(t,e))}function nf(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function sf(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new Hu;if(nf(r),e)rf(t,r,n,e,i);else{var s=ko(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Lo(t,r),n?process.nextTick(To,t,r,s,i):To(t,r,s,i)}}function To(t,e,r,n){r||of(t,e),e.pendingcb--,n(),ot(t,e)}function of(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Lo(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,On(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Fo(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,f=e.objectMode?1:l.length;if(On(t,e,!1,f,l,c,u),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}k.prototype._write=function(t,e,r){r(new Wu("_write()"))};k.prototype._writev=null;k.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||cf(this,n,r),this};Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ko(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function af(t,e){t._final(function(r){e.pendingcb--,r&&Ue(t,r),e.prefinished=!0,t.emit("prefinish"),ot(t,e)})}function lf(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(af,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function ot(t,e){var r=ko(e);if(r&&(lf(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function cf(t,e,r){e.ending=!0,ot(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function uf(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});k.prototype.destroy=In.destroy;k.prototype._undestroy=In.undestroy;k.prototype._destroy=function(t,e){e(t)}});var Ce=p((tg,Mo)=>{"use strict";var ff=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Mo.exports=ie;var No=Pn(),Fn=Rn();Se()(ie,No);for(Tn=ff(Fn.prototype),Kt=0;Kt<Tn.length;Kt++)Yt=Tn[Kt],ie.prototype[Yt]||(ie.prototype[Yt]=Fn.prototype[Yt]);var Tn,Yt,Kt;function ie(t){if(!(this instanceof ie))return new ie(t);No.call(this,t),Fn.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",df)))}Object.defineProperty(ie.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ie.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ie.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function df(){this._writableState.ended||process.nextTick(hf,this)}function hf(t){t.end()}Object.defineProperty(ie.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var jo=p((Ln,Bo)=>{var Jt=require("buffer"),se=Jt.Buffer;function qo(t,e){for(var r in t)e[r]=t[r]}se.from&&se.alloc&&se.allocUnsafe&&se.allocUnsafeSlow?Bo.exports=Jt:(qo(Jt,Ln),Ln.Buffer=Ae);function Ae(t,e,r){return se(t,e,r)}Ae.prototype=Object.create(se.prototype);qo(se,Ae);Ae.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return se(t,e,r)};Ae.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=se(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};Ae.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return se(t)};Ae.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Jt.SlowBuffer(t)}});var Nn=p(Uo=>{"use strict";var Dn=jo().Buffer,$o=Dn.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function pf(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function gf(t){var e=pf(t);if(typeof e!="string"&&(Dn.isEncoding===$o||!$o(t)))throw new Error("Unknown encoding: "+t);return e||t}Uo.StringDecoder=lt;function lt(t){this.encoding=gf(t);var e;switch(this.encoding){case"utf16le":this.text=wf,this.end=vf,e=4;break;case"utf8":this.fillLast=_f,e=4;break;case"base64":this.text=Ef,this.end=Sf,e=3;break;default:this.write=Cf,this.end=Af;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Dn.allocUnsafe(e)}lt.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};lt.prototype.end=xf;lt.prototype.text=bf;lt.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function kn(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function mf(t,e,r){var n=e.length-1;if(n<r)return 0;var i=kn(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=kn(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=kn(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function yf(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function _f(t){var e=this.lastTotal-this.lastNeed,r=yf(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function bf(t,e){var r=mf(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function xf(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function wf(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function vf(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function Ef(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function Sf(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Cf(t){return t.toString(this.encoding)}function Af(t){return t&&t.length?this.write(t):""}});var Xt=p((ng,Ho)=>{"use strict";var Vo=pe().codes.ERR_STREAM_PREMATURE_CLOSE;function Of(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function If(){}function Rf(t){return t.setHeader&&typeof t.abort=="function"}function Wo(t,e,r){if(typeof e=="function")return Wo(t,null,e);e||(e={}),r=Of(r||If);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){i=!1,o=!0,n||r.call(t)},l=t._readableState&&t._readableState.endEmitted,c=function(){n=!1,l=!0,i||r.call(t)},u=function(m){r.call(t,m)},f=function(){var m;if(n&&!l)return(!t._readableState||!t._readableState.ended)&&(m=new Vo),r.call(t,m);if(i&&!o)return(!t._writableState||!t._writableState.ended)&&(m=new Vo),r.call(t,m)},h=function(){t.req.on("finish",a)};return Rf(t)?(t.on("complete",a),t.on("abort",f),t.req?h():t.on("request",h)):i&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",c),t.on("finish",a),e.error!==!1&&t.on("error",u),t.on("close",f),function(){t.removeListener("complete",a),t.removeListener("abort",f),t.removeListener("request",h),t.req&&t.req.removeListener("finish",a),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",a),t.removeListener("end",c),t.removeListener("error",u),t.removeListener("close",f)}}Ho.exports=Wo});var zo=p((ig,Go)=>{"use strict";var Zt;function me(t,e,r){return e=Tf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tf(t){var e=Ff(t,"string");return typeof e=="symbol"?e:String(e)}function Ff(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Pf=Xt(),ye=Symbol("lastResolve"),Oe=Symbol("lastReject"),ct=Symbol("error"),Qt=Symbol("ended"),Ie=Symbol("lastPromise"),Mn=Symbol("handlePromise"),Re=Symbol("stream");function _e(t,e){return{value:t,done:e}}function Lf(t){var e=t[ye];if(e!==null){var r=t[Re].read();r!==null&&(t[Ie]=null,t[ye]=null,t[Oe]=null,e(_e(r,!1)))}}function kf(t){process.nextTick(Lf,t)}function Df(t,e){return function(r,n){t.then(function(){if(e[Qt]){r(_e(void 0,!0));return}e[Mn](r,n)},n)}}var Nf=Object.getPrototypeOf(function(){}),Mf=Object.setPrototypeOf((Zt={get stream(){return this[Re]},next:function(){var e=this,r=this[ct];if(r!==null)return Promise.reject(r);if(this[Qt])return Promise.resolve(_e(void 0,!0));if(this[Re].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[ct]?a(e[ct]):o(_e(void 0,!0))})});var n=this[Ie],i;if(n)i=new Promise(Df(n,this));else{var s=this[Re].read();if(s!==null)return Promise.resolve(_e(s,!1));i=new Promise(this[Mn])}return this[Ie]=i,i}},me(Zt,Symbol.asyncIterator,function(){return this}),me(Zt,"return",function(){var e=this;return new Promise(function(r,n){e[Re].destroy(null,function(i){if(i){n(i);return}r(_e(void 0,!0))})})}),Zt),Nf),qf=function(e){var r,n=Object.create(Mf,(r={},me(r,Re,{value:e,writable:!0}),me(r,ye,{value:null,writable:!0}),me(r,Oe,{value:null,writable:!0}),me(r,ct,{value:null,writable:!0}),me(r,Qt,{value:e._readableState.endEmitted,writable:!0}),me(r,Mn,{value:function(s,o){var a=n[Re].read();a?(n[Ie]=null,n[ye]=null,n[Oe]=null,s(_e(a,!1))):(n[ye]=s,n[Oe]=o)},writable:!0}),r));return n[Ie]=null,Pf(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[Oe];s!==null&&(n[Ie]=null,n[ye]=null,n[Oe]=null,s(i)),n[ct]=i;return}var o=n[ye];o!==null&&(n[Ie]=null,n[ye]=null,n[Oe]=null,o(_e(void 0,!0))),n[Qt]=!0}),e.on("readable",kf.bind(null,n)),n};Go.exports=qf});var Xo=p((sg,Jo)=>{"use strict";function Ko(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(c){r(c);return}a.done?e(l):Promise.resolve(l).then(n,i)}function Bf(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function o(l){Ko(s,n,i,o,a,"next",l)}function a(l){Ko(s,n,i,o,a,"throw",l)}o(void 0)})}}function Yo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function jf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Yo(Object(r),!0).forEach(function(n){$f(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function $f(t,e,r){return e=Uf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uf(t){var e=Vf(t,"string");return typeof e=="symbol"?e:String(e)}function Vf(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Wf=pe().codes.ERR_INVALID_ARG_TYPE;function Hf(t,e,r){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new Wf("iterable",["Iterable"],e);var i=new t(jf({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=Bf(function*(){try{var l=yield n.next(),c=l.value,u=l.done;u?i.push(null):i.push(yield c)?o():s=!1}catch(f){i.destroy(f)}}),a.apply(this,arguments)}return i}Jo.exports=Hf});var Pn=p((ag,aa)=>{"use strict";aa.exports=O;var Ve;O.ReadableState=ta;var og=require("events").EventEmitter,ea=function(e,r){return e.listeners(r).length},ft=bn(),er=require("buffer").Buffer,Gf=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function zf(t){return er.from(t)}function Kf(t){return er.isBuffer(t)||t instanceof Gf}var qn=require("util"),C;qn&&qn.debuglog?C=qn.debuglog("stream"):C=function(){};var Yf=xo(),Hn=vn(),Jf=En(),Xf=Jf.getHighWaterMark,tr=pe().codes,Zf=tr.ERR_INVALID_ARG_TYPE,Qf=tr.ERR_STREAM_PUSH_AFTER_EOF,ed=tr.ERR_METHOD_NOT_IMPLEMENTED,td=tr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,We,Bn,jn;Se()(O,ft);var ut=Hn.errorOrDestroy,$n=["error","close","destroy","pause","resume"];function rd(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function ta(t,e,r){Ve=Ve||Ce(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ve),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Xf(this,t,"readableHighWaterMark",r),this.buffer=new Yf,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(We||(We=Nn().StringDecoder),this.decoder=new We(t.encoding),this.encoding=t.encoding)}function O(t){if(Ve=Ve||Ce(),!(this instanceof O))return new O(t);var e=this instanceof Ve;this._readableState=new ta(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),ft.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});O.prototype.destroy=Hn.destroy;O.prototype._undestroy=Hn.undestroy;O.prototype._destroy=function(t,e){e(t)};O.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=er.from(t,e),e=""),n=!0),ra(this,t,e,!1,n)};O.prototype.unshift=function(t){return ra(this,t,null,!0,!1)};function ra(t,e,r,n,i){C("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,sd(t,s);else{var o;if(i||(o=nd(s,e)),o)ut(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==er.prototype&&(e=zf(e)),n)s.endEmitted?ut(t,new td):Un(t,s,e,!0);else if(s.ended)ut(t,new Qf);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?Un(t,s,e,!1):Wn(t,s)):Un(t,s,e,!1)}else n||(s.reading=!1,Wn(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Un(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&rr(t)),Wn(t,e)}function nd(t,e){var r;return!Kf(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new Zf("chunk",["string","Buffer","Uint8Array"],e)),r}O.prototype.isPaused=function(){return this._readableState.flowing===!1};O.prototype.setEncoding=function(t){We||(We=Nn().StringDecoder);var e=new We(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Zo=1073741824;function id(t){return t>=Zo?t=Zo:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Qo(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=id(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}O.prototype.read=function(t){C("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return C("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Vn(this):rr(this),null;if(t=Qo(t,e),t===0&&e.ended)return e.length===0&&Vn(this),null;var n=e.needReadable;C("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,C("length less than watermark",n)),e.ended||e.reading?(n=!1,C("reading or ended",n)):n&&(C("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Qo(r,e)));var i;return t>0?i=sa(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Vn(this)),i!==null&&this.emit("data",i),i};function sd(t,e){if(C("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?rr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,na(t)))}}function rr(t){var e=t._readableState;C("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(C("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(na,t))}function na(t){var e=t._readableState;C("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Gn(t)}function Wn(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(od,t,e))}function od(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(C("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}O.prototype._read=function(t){ut(this,new ed("_read()"))};O.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,C("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?a:d;n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(y,b){C("onunpipe"),y===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,u())}function a(){C("onend"),t.end()}var l=ad(r);t.on("drain",l);var c=!1;function u(){C("cleanup"),t.removeListener("close",g),t.removeListener("finish",m),t.removeListener("drain",l),t.removeListener("error",h),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",d),r.removeListener("data",f),c=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",f);function f(y){C("ondata");var b=t.write(y);C("dest.write",b),b===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&oa(n.pipes,t)!==-1)&&!c&&(C("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(y){C("onerror",y),d(),t.removeListener("error",h),ea(t,"error")===0&&ut(t,y)}rd(t,"error",h);function g(){t.removeListener("finish",m),d()}t.once("close",g);function m(){C("onfinish"),t.removeListener("close",g),d()}t.once("finish",m);function d(){C("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(C("pipe resume"),r.resume()),t};function ad(t){return function(){var r=t._readableState;C("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&ea(t,"data")&&(r.flowing=!0,Gn(t))}}O.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=oa(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};O.prototype.on=function(t,e){var r=ft.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,C("on readable",n.length,n.reading),n.length?rr(this):n.reading||process.nextTick(ld,this)),r};O.prototype.addListener=O.prototype.on;O.prototype.removeListener=function(t,e){var r=ft.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(ia,this),r};O.prototype.removeAllListeners=function(t){var e=ft.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(ia,this),e};function ia(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function ld(t){C("readable nexttick read 0"),t.read(0)}O.prototype.resume=function(){var t=this._readableState;return t.flowing||(C("resume"),t.flowing=!t.readableListening,cd(this,t)),t.paused=!1,this};function cd(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(ud,t,e))}function ud(t,e){C("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Gn(t),e.flowing&&!e.reading&&t.read(0)}O.prototype.pause=function(){return C("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(C("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Gn(t){var e=t._readableState;for(C("flow",e.flowing);e.flowing&&t.read()!==null;);}O.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(C("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(C("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=function(a){return function(){return t[a].apply(t,arguments)}}(i));for(var s=0;s<$n.length;s++)t.on($n[s],this.emit.bind(this,$n[s]));return this._read=function(o){C("wrapped _read",o),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return Bn===void 0&&(Bn=zo()),Bn(this)});Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});O._fromList=sa;Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function sa(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Vn(t){var e=t._readableState;C("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(fd,e,t))}function fd(t,e){if(C("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(O.from=function(t,e){return jn===void 0&&(jn=Xo()),jn(O,t,e)});function oa(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var zn=p((lg,ca)=>{"use strict";ca.exports=ce;var nr=pe().codes,dd=nr.ERR_METHOD_NOT_IMPLEMENTED,hd=nr.ERR_MULTIPLE_CALLBACK,pd=nr.ERR_TRANSFORM_ALREADY_TRANSFORMING,gd=nr.ERR_TRANSFORM_WITH_LENGTH_0,ir=Ce();Se()(ce,ir);function md(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new hd);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ce(t){if(!(this instanceof ce))return new ce(t);ir.call(this,t),this._transformState={afterTransform:md.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",yd)}function yd(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){la(t,e,r)}):la(this,null,null)}ce.prototype.push=function(t,e){return this._transformState.needTransform=!1,ir.prototype.push.call(this,t,e)};ce.prototype._transform=function(t,e,r){r(new dd("_transform()"))};ce.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ce.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};ce.prototype._destroy=function(t,e){ir.prototype._destroy.call(this,t,function(r){e(r)})};function la(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new gd;if(t._transformState.transforming)throw new pd;return t.push(null)}});var da=p((cg,fa)=>{"use strict";fa.exports=dt;var ua=zn();Se()(dt,ua);function dt(t){if(!(this instanceof dt))return new dt(t);ua.call(this,t)}dt.prototype._transform=function(t,e,r){r(null,t)}});var ya=p((ug,ma)=>{"use strict";var Kn;function _d(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var ga=pe().codes,bd=ga.ERR_MISSING_ARGS,xd=ga.ERR_STREAM_DESTROYED;function ha(t){if(t)throw t}function wd(t){return t.setHeader&&typeof t.abort=="function"}function vd(t,e,r,n){n=_d(n);var i=!1;t.on("close",function(){i=!0}),Kn===void 0&&(Kn=Xt()),Kn(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,wd(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(o||new xd("pipe"))}}}function pa(t){t()}function Ed(t,e){return t.pipe(e)}function Sd(t){return!t.length||typeof t[t.length-1]!="function"?ha:t.pop()}function Cd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Sd(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new bd("streams");var i,s=e.map(function(o,a){var l=a<e.length-1,c=a>0;return vd(o,l,c,function(u){i||(i=u),u&&s.forEach(pa),!l&&(s.forEach(pa),n(i))})});return e.reduce(Ed)}ma.exports=Cd});var _a=p((Y,pt)=>{var ht=require("stream");process.env.READABLE_STREAM==="disable"&&ht?(pt.exports=ht.Readable,Object.assign(pt.exports,ht),pt.exports.Stream=ht):(Y=pt.exports=Pn(),Y.Stream=ht||Y,Y.Readable=Y,Y.Writable=Rn(),Y.Duplex=Ce(),Y.Transform=zn(),Y.PassThrough=da(),Y.finished=Xt(),Y.pipeline=ya())});var wa=p((fg,xa)=>{"use strict";var{Buffer:Q}=require("buffer"),ba=Symbol.for("BufferList");function F(t){if(!(this instanceof F))return new F(t);F._init.call(this,t)}F._init=function(e){Object.defineProperty(this,ba,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};F.prototype._new=function(e){return new F(e)};F.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(e<i||n===this._bufs.length-1)return[n,e-r];r=i}};F.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let n=0;n<e;n++)r+=this._bufs[n].length;return r};F.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};F.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};F.prototype.copy=function(e,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return e||Q.alloc(0);let s=!!e,o=this._offset(n),a=i-n,l=a,c=s&&r||0,u=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:Q.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(e,c),c+=this._bufs[f].length;return e}if(l<=this._bufs[o[0]].length-u)return s?this._bufs[o[0]].copy(e,r,u,u+l):this._bufs[o[0]].slice(u,u+l);s||(e=Q.allocUnsafe(a));for(let f=o[0];f<this._bufs.length;f++){let h=this._bufs[f].length-u;if(l>h)this._bufs[f].copy(e,c,u),c+=h;else{this._bufs[f].copy(e,c,u,u+l),c+=h;break}l-=h,u&&(u=0)}return e.length>c?e.slice(0,c):e};F.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let n=this._offset(e),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};F.prototype.toString=function(e,r,n){return this.slice(r,n).toString(e)};F.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};F.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};F.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(Q.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(Q.from(e));return this};F.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};F.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=Q.from([t]):typeof t=="string"?t=Q.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=Q.from(t.buffer,t.byteOffset,t.byteLength):Q.isBuffer(t)||(t=Q.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let n=this._offset(e),i=n[0],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=t.length){let l=o.indexOf(t,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-t.length+1}else{let l=this._reverseOffset([i,s]);if(this._match(l,t))return l;s++}s=0}return-1};F.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?F.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:F.prototype[r]=function(n=0){return this.slice(n,n+t[r])[r](0)}})(e)})();F.prototype._isBufferList=function(e){return e instanceof F||F.isBufferList(e)};F.isBufferList=function(e){return e!=null&&e[ba]};xa.exports=F});var va=p((dg,sr)=>{"use strict";var Yn=_a().Duplex,Ad=Se(),gt=wa();function U(t){if(!(this instanceof U))return new U(t);if(typeof t=="function"){this._callback=t;let e=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",e)}),this.on("unpipe",function(n){n.removeListener("error",e)}),t=null}gt._init.call(this,t),Yn.call(this)}Ad(U,Yn);Object.assign(U.prototype,gt.prototype);U.prototype._new=function(e){return new U(e)};U.prototype._write=function(e,r,n){this._appendBuffer(e),typeof n=="function"&&n()};U.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};U.prototype.end=function(e){Yn.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};U.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};U.prototype._isBufferList=function(e){return e instanceof U||e instanceof gt||U.isBufferList(e)};U.isBufferList=gt.isBufferList;sr.exports=U;sr.exports.BufferListStream=U;sr.exports.BufferList=gt});var ur=p((hg,Qn)=>{"use strict";var Od=require("readline"),Id=Z(),Ea=Ws(),or=Ks(),ar=Xs(),Rd=to(),Td=uo(),Fd=ho(),Pd=yn(),{BufferListStream:Ld}=va(),Jn=Symbol("text"),Xn=Symbol("prefixText"),kd=3,Zn=class{constructor(){this.requests=0,this.mutedStream=new Ld,this.mutedStream.pipe(process.stdout);let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(kd)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=Od.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},lr,cr=class{constructor(e){lr||(lr=new Zn),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:Fd({stream:this.stream}),this.isSilent=typeof this.options.isSilent=="boolean"?this.options.isSilent:!1,this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(!Pd())this._spinner=or.line;else if(e===void 0)this._spinner=or.dots;else if(e!=="default"&&or[e])this._spinner=or[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Jn]}set text(e){this[Jn]=e,this.updateLineCount()}get prefixText(){return this[Xn]}set prefixText(e){this[Xn]=e,this.updateLineCount()}get isSpinning(){return this.id!==void 0}getFullPrefixText(e=this[Xn],r=" "){return typeof e=="string"?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=this.stream.columns||80,r=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(let n of Rd(r+"--"+this[Jn]).split(`
28
- `))this.lineCount+=Math.max(1,Math.ceil(Td(n)/e))}get isEnabled(){return this._isEnabled&&!this.isSilent}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this._isEnabled=e}get isSilent(){return this._isSilent}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this._isSilent=e}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=Id[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.isSilent?this:(this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this)}start(e){return e&&(this.text=e),this.isSilent?this:this.isEnabled?this.isSpinning?this:(this.hideCursor&&Ea.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,lr.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
29
- `),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&Ea.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(lr.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:ar.success,text:e})}fail(e){return this.stopAndPersist({symbol:ar.error,text:e})}warn(e){return this.stopAndPersist({symbol:ar.warning,text:e})}info(e){return this.stopAndPersist({symbol:ar.info,text:e})}stopAndPersist(e={}){if(this.isSilent)return this;let r=e.prefixText||this.prefixText,n=e.text||this.text,i=typeof n=="string"?" "+n:"";return this.stop(),this.stream.write(`${this.getFullPrefixText(r," ")}${e.symbol||" "}${i}
30
- `),this}},Dd=function(t){return new cr(t)};Qn.exports=Dd;Qn.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new cr(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var ti=p((pg,Ca)=>{"use strict";var Sa=require("fs"),ei;function Nd(){try{return Sa.statSync("/.dockerenv"),!0}catch{return!1}}function Md(){try{return Sa.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}Ca.exports=()=>(ei===void 0&&(ei=Nd()||Md()),ei)});var Ia=p((gg,ri)=>{"use strict";var qd=require("os"),Bd=require("fs"),Aa=ti(),Oa=()=>{if(process.platform!=="linux")return!1;if(qd.release().toLowerCase().includes("microsoft"))return!Aa();try{return Bd.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Aa():!1}catch{return!1}};process.env.__IS_WSL_TEST__?ri.exports=Oa:ri.exports=Oa()});var Ta=p((mg,Ra)=>{"use strict";Ra.exports=(t,e,r)=>{let n=i=>Object.defineProperty(t,e,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get(){let i=r();return n(i),i},set(i){n(i)}}),t}});var ai=p((yg,Na)=>{var jd=require("path"),$d=require("child_process"),{promises:dr,constants:Da}=require("fs"),fr=Ia(),Ud=ti(),ii=Ta(),Fa=jd.join(__dirname,"xdg-open"),{platform:He,arch:Pa}=process,Vd=()=>{try{return dr.statSync("/run/.containerenv"),!0}catch{return!1}},ni;function Wd(){return ni===void 0&&(ni=Vd()||Ud()),ni}var Hd=(()=>{let t="/mnt/",e;return async function(){if(e)return e;let r="/etc/wsl.conf",n=!1;try{await dr.access(r,Da.F_OK),n=!0}catch{}if(!n)return t;let i=await dr.readFile(r,{encoding:"utf8"}),s=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return s?(e=s.groups.mountPoint.trim(),e=e.endsWith("/")?e:`${e}/`,e):t}})(),La=async(t,e)=>{let r;for(let n of t)try{return await e(n)}catch(i){r=i}throw r},hr=async t=>{if(t={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...t},Array.isArray(t.app))return La(t.app,a=>hr({...t,app:a}));let{name:e,arguments:r=[]}=t.app||{};if(r=[...r],Array.isArray(e))return La(e,a=>hr({...t,app:{name:a,arguments:r}}));let n,i=[],s={};if(He==="darwin")n="open",t.wait&&i.push("--wait-apps"),t.background&&i.push("--background"),t.newInstance&&i.push("--new"),e&&i.push("-a",e);else if(He==="win32"||fr&&!Wd()&&!e){let a=await Hd();n=fr?`${a}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),fr||(s.windowsVerbatimArguments=!0);let l=["Start"];t.wait&&l.push("-Wait"),e?(l.push(`"\`"${e}\`""`,"-ArgumentList"),t.target&&r.unshift(t.target)):t.target&&l.push(`"${t.target}"`),r.length>0&&(r=r.map(c=>`"\`"${c}\`""`),l.push(r.join(","))),t.target=Buffer.from(l.join(" "),"utf16le").toString("base64")}else{if(e)n=e;else{let a=!__dirname||__dirname==="/",l=!1;try{await dr.access(Fa,Da.X_OK),l=!0}catch{}n=process.versions.electron||He==="android"||a||!l?"xdg-open":Fa}r.length>0&&i.push(...r),t.wait||(s.stdio="ignore",s.detached=!0)}t.target&&i.push(t.target),He==="darwin"&&r.length>0&&i.push("--args",...r);let o=$d.spawn(n,i,s);return t.wait?new Promise((a,l)=>{o.once("error",l),o.once("close",c=>{if(!t.allowNonzeroExitCode&&c>0){l(new Error(`Exited with code ${c}`));return}a(o)})}):(o.unref(),o)},si=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `target`");return hr({...e,target:t})},Gd=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `name`");let{arguments:r=[]}=e||{};if(r!=null&&!Array.isArray(r))throw new TypeError("Expected `appArguments` as Array type");return hr({...e,app:{name:t,arguments:r}})};function ka(t){if(typeof t=="string"||Array.isArray(t))return t;let{[Pa]:e}=t;if(!e)throw new Error(`${Pa} is not supported`);return e}function oi({[He]:t},{wsl:e}){if(e&&fr)return ka(e);if(!t)throw new Error(`${He} is not supported`);return ka(t)}var pr={};ii(pr,"chrome",()=>oi({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));ii(pr,"firefox",()=>oi({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));ii(pr,"edge",()=>oi({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));si.apps=pr;si.openApp=Gd;Na.exports=si});var yt=p((_g,ja)=>{"use strict";var mt=require("fs"),qa=require("path"),zd=require("crypto"),Kd=require("os"),Yd=qa.join(Kd.homedir(),".xFramework","instances","default"),Ge=qa.join(Yd,"license.key"),Jd=`-----BEGIN PUBLIC KEY-----
25
+ `,i)}while(n!==-1);return s+=t.substr(i),s};_s.exports={stringReplaceAll:Kc,stringEncaseCRLFWithFirstIndex:Yc}});var Ss=p((O0,Es)=>{"use strict";var Jc=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,xs=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Xc=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Zc=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Qc=new Map([["n",`
26
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function vs(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):Qc.get(t)||t}function eu(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(Xc))r.push(i[2].replace(Zc,(a,l,c)=>l?vs(l):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function tu(t){xs.lastIndex=0;let e=[],r;for(;(r=xs.exec(t))!==null;){let n=r[1];if(r[2]){let i=eu(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function ws(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}Es.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Jc,(s,o,a,l,c,u)=>{if(o)i.push(vs(o));else if(l){let f=i.join("");i=[],n.push(r.length===0?f:ws(t,r)(f)),r.push({inverse:a,styles:tu(l)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(ws(t,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var X=p((I0,Ts)=>{"use strict";var nt=hs(),{stdout:un,stderr:fn}=ln(),{stringReplaceAll:ru,stringEncaseCRLFWithFirstIndex:nu}=bs(),{isArray:Ft}=Array,As=["ansi","ansi","ansi256","ansi16m"],Ne=Object.create(null),iu=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=un?un.level:0;t.level=e.level===void 0?r:e.level},dn=class{constructor(e){return Os(e)}},Os=t=>{let e={};return iu(e,t),e.template=(...r)=>Rs(e.template,...r),Object.setPrototypeOf(e,Pt.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=dn,e.template};function Pt(t){return Os(t)}for(let[t,e]of Object.entries(nt))Ne[t]={get(){let r=Lt(this,hn(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Ne.visible={get(){let t=Lt(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Is=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of Is)Ne[t]={get(){let{level:e}=this;return function(...r){let n=hn(nt.color[As[e]][t](...r),nt.color.close,this._styler);return Lt(this,n,this._isEmpty)}}};for(let t of Is){let e="bg"+t[0].toUpperCase()+t.slice(1);Ne[e]={get(){let{level:r}=this;return function(...n){let i=hn(nt.bgColor[As[r]][t](...n),nt.bgColor.close,this._styler);return Lt(this,i,this._isEmpty)}}}}var su=Object.defineProperties(()=>{},{...Ne,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),hn=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Lt=(t,e,r)=>{let n=(...i)=>Ft(i[0])&&Ft(i[0].raw)?Cs(n,Rs(n,...i)):Cs(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,su),n._generator=t,n._styler=e,n._isEmpty=r,n},Cs=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=ru(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
27
+ `);return s!==-1&&(e=nu(e,i,n,s)),n+e+i},cn,Rs=(t,...e)=>{let[r]=e;if(!Ft(r)||!Ft(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return cn===void 0&&(cn=Ss()),cn(t,i.join(""))};Object.defineProperties(Pt.prototype,Ne);var kt=Pt();kt.supportsColor=un;kt.stderr=Pt({level:fn?fn.level:0});kt.stderr.supportsColor=fn;Ts.exports=kt});var Ps=p((R0,pn)=>{"use strict";var Fs=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};pn.exports=Fs;pn.exports.default=Fs});var ks=p((T0,Nt)=>{"use strict";var ou=Ps(),Dt=new WeakMap,Ls=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Dt.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return ou(s,t),Dt.set(s,n),s};Nt.exports=Ls;Nt.exports.default=Ls;Nt.exports.callCount=t=>{if(!Dt.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Dt.get(t)}});var Ds=p((F0,Mt)=>{Mt.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Mt.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Mt.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var js=p((P0,Be)=>{var L=global.process,ve=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};ve(L)?(Ns=require("assert"),Me=Ds(),Ms=/^win/i.test(L.platform),it=require("events"),typeof it!="function"&&(it=it.EventEmitter),L.__signal_exit_emitter__?M=L.__signal_exit_emitter__:(M=L.__signal_exit_emitter__=new it,M.count=0,M.emitted={}),M.infinite||(M.setMaxListeners(1/0),M.infinite=!0),Be.exports=function(t,e){if(!ve(global.process))return function(){};Ns.equal(typeof t,"function","a callback must be provided for exit handler"),qe===!1&&gn();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){M.removeListener(r,t),M.listeners("exit").length===0&&M.listeners("afterexit").length===0&&qt()};return M.on(r,t),n},qt=function(){!qe||!ve(global.process)||(qe=!1,Me.forEach(function(e){try{L.removeListener(e,Bt[e])}catch{}}),L.emit=jt,L.reallyExit=mn,M.count-=1)},Be.exports.unload=qt,Ee=function(e,r,n){M.emitted[e]||(M.emitted[e]=!0,M.emit(e,r,n))},Bt={},Me.forEach(function(t){Bt[t]=function(){if(ve(global.process)){var r=L.listeners(t);r.length===M.count&&(qt(),Ee("exit",null,t),Ee("afterexit",null,t),Ms&&t==="SIGHUP"&&(t="SIGINT"),L.kill(L.pid,t))}}}),Be.exports.signals=function(){return Me},qe=!1,gn=function(){qe||!ve(global.process)||(qe=!0,M.count+=1,Me=Me.filter(function(e){try{return L.on(e,Bt[e]),!0}catch{return!1}}),L.emit=Bs,L.reallyExit=qs)},Be.exports.load=gn,mn=L.reallyExit,qs=function(e){ve(global.process)&&(L.exitCode=e||0,Ee("exit",L.exitCode,null),Ee("afterexit",L.exitCode,null),mn.call(L,L.exitCode))},jt=L.emit,Bs=function(e,r){if(e==="exit"&&ve(global.process)){r!==void 0&&(L.exitCode=r);var n=jt.apply(this,arguments);return Ee("exit",L.exitCode,null),Ee("afterexit",L.exitCode,null),n}else return jt.apply(this,arguments)}):Be.exports=function(){return function(){}};var Ns,Me,Ms,it,M,qt,Ee,Bt,qe,gn,mn,qs,jt,Bs});var Us=p((L0,$s)=>{"use strict";var au=ks(),lu=js();$s.exports=au(()=>{lu(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var Vs=p(je=>{"use strict";var cu=Us(),$t=!1;je.show=(t=process.stderr)=>{t.isTTY&&($t=!1,t.write("\x1B[?25h"))};je.hide=(t=process.stderr)=>{t.isTTY&&(cu(),$t=!0,t.write("\x1B[?25l"))};je.toggle=(t,e)=>{t!==void 0&&($t=t),$t?je.show(e):je.hide(e)}});var Ws=p((D0,uu)=>{uu.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var zs=p((N0,Gs)=>{"use strict";var Ut=Object.assign({},Ws()),Hs=Object.keys(Ut);Object.defineProperty(Ut,"random",{get(){let t=Math.floor(Math.random()*Hs.length),e=Hs[t];return Ut[e]}});Gs.exports=Ut});var yn=p((M0,Ks)=>{"use strict";Ks.exports=()=>process.platform!=="win32"?!0:!!process.env.CI||!!process.env.WT_SESSION||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"});var Js=p((q0,Ys)=>{"use strict";var he=X(),fu=yn(),du={info:he.blue("\u2139"),success:he.green("\u2714"),warning:he.yellow("\u26A0"),error:he.red("\u2716")},hu={info:he.blue("i"),success:he.green("\u221A"),warning:he.yellow("\u203C"),error:he.red("\xD7")};Ys.exports=fu()?du:hu});var Zs=p((B0,Xs)=>{"use strict";Xs.exports=({onlyFirst:t=!1}={})=>{let e=["[\\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(e,t?void 0:"g")}});var eo=p((j0,Qs)=>{"use strict";var pu=Zs();Qs.exports=t=>typeof t=="string"?t.replace(pu(),""):t});var to=p(($0,Vt)=>{var gu=function(){"use strict";function t(o,a,l,c){var u;typeof a=="object"&&(l=a.depth,c=a.prototype,u=a.filter,a=a.circular);var f=[],h=[],g=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function m(d,y){if(d===null)return null;if(y==0)return d;var _,v;if(typeof d!="object")return d;if(t.__isArray(d))_=[];else if(t.__isRegExp(d))_=new RegExp(d.source,s(d)),d.lastIndex&&(_.lastIndex=d.lastIndex);else if(t.__isDate(d))_=new Date(d.getTime());else{if(g&&Buffer.isBuffer(d))return Buffer.allocUnsafe?_=Buffer.allocUnsafe(d.length):_=new Buffer(d.length),d.copy(_),_;typeof c>"u"?(v=Object.getPrototypeOf(d),_=Object.create(v)):(_=Object.create(c),v=c)}if(a){var F=f.indexOf(d);if(F!=-1)return h[F];f.push(d),h.push(_)}for(var $ in d){var G;v&&(G=Object.getOwnPropertyDescriptor(v,$)),!(G&&G.set==null)&&(_[$]=m(d[$],y-1))}return _}return m(o,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof Vt=="object"&&Vt.exports&&(Vt.exports=gu)});var no=p((U0,ro)=>{var mu=to();ro.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=mu(e[r]))}),t}});var so=p((V0,io)=>{io.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var co=p((W0,_n)=>{"use strict";var yu=no(),st=so(),ao={nul:0,control:0};_n.exports=function(e){return lo(e,ao)};_n.exports.config=function(t){return t=yu(t||{},ao),function(r){return lo(r,t)}};function lo(t,e){if(typeof t!="string")return oo(t,e);for(var r=0,n=0;n<t.length;n++){var i=oo(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function oo(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:_u(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function _u(t){var e=0,r=st.length-1,n;if(t<st[0][0]||t>st[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>st[n][1])e=n+1;else if(t<st[n][0])r=n-1;else return!0;return!1}});var fo=p((H0,uo)=>{"use strict";uo.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var bn=p((G0,ho)=>{ho.exports=require("stream")});var bo=p((z0,_o)=>{"use strict";function po(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function go(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?po(Object(r),!0).forEach(function(n){bu(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):po(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function bu(t,e,r){return e=yo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mo(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yo(n.key),n)}}function wu(t,e,r){return e&&mo(t.prototype,e),r&&mo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function yo(t){var e=vu(t,"string");return typeof e=="symbol"?e:String(e)}function vu(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Eu=require("buffer"),Wt=Eu.Buffer,Su=require("util"),xn=Su.inspect,Cu=xn&&xn.custom||"inspect";function Au(t,e,r){Wt.prototype.copy.call(t,e,r)}_o.exports=function(){function t(){xu(this,t),this.head=null,this.tail=null,this.length=0}return wu(t,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Wt.alloc(0);for(var n=Wt.allocUnsafe(r>>>0),i=this.head,s=0;i;)Au(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=Wt.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:Cu,value:function(r,n){return xn(this,go(go({},n),{},{depth:0,customInspect:!1}))}}]),t}()});var vn=p((K0,wo)=>{"use strict";function Ou(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(wn,this,t)):process.nextTick(wn,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Ht,r):(r._writableState.errorEmitted=!0,process.nextTick(xo,r,s)):process.nextTick(xo,r,s):e?(process.nextTick(Ht,r),e(s)):process.nextTick(Ht,r)}),this)}function xo(t,e){wn(t,e),Ht(t)}function Ht(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Iu(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function wn(t,e){t.emit("error",e)}function Ru(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}wo.exports={destroy:Ou,undestroy:Iu,errorOrDestroy:Ru}});var pe=p((Y0,So)=>{"use strict";var Eo={};function K(t,e,r){r||(r=Error);function n(s,o,a){return typeof e=="string"?e:e(s,o,a)}class i extends r{constructor(o,a,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=t,Eo[t]=i}function vo(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(n=>String(n)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function Tu(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Fu(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function Pu(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}K("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);K("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&Tu(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(Fu(t," argument"))i=`The ${t} ${n} ${vo(e,"type")}`;else{let s=Pu(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${vo(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);K("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");K("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});K("ERR_STREAM_PREMATURE_CLOSE","Premature close");K("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});K("ERR_MULTIPLE_CALLBACK","Callback called multiple times");K("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");K("ERR_STREAM_WRITE_AFTER_END","write after end");K("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);K("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);K("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");So.exports.codes=Eo});var En=p((J0,Co)=>{"use strict";var Lu=pe().codes.ERR_INVALID_OPT_VALUE;function ku(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Du(t,e,r,n){var i=ku(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new Lu(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}Co.exports={getHighWaterMark:Du}});var Ao=p((X0,Sn)=>{typeof Object.create=="function"?Sn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Sn.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Se=p((Z0,An)=>{try{if(Cn=require("util"),typeof Cn.inherits!="function")throw"";An.exports=Cn.inherits}catch{An.exports=Ao()}var Cn});var Io=p((Q0,Oo)=>{Oo.exports=require("util").deprecate});var Rn=p((eg,ko)=>{"use strict";ko.exports=k;function To(t){var e=this;this.next=null,this.entry=null,this.finish=function(){cf(e,t)}}var $e;k.WritableState=at;var Nu={deprecate:Io()},Fo=bn(),zt=require("buffer").Buffer,Mu=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function qu(t){return zt.from(t)}function Bu(t){return zt.isBuffer(t)||t instanceof Mu}var In=vn(),ju=En(),$u=ju.getHighWaterMark,ge=pe().codes,Uu=ge.ERR_INVALID_ARG_TYPE,Vu=ge.ERR_METHOD_NOT_IMPLEMENTED,Wu=ge.ERR_MULTIPLE_CALLBACK,Hu=ge.ERR_STREAM_CANNOT_PIPE,Gu=ge.ERR_STREAM_DESTROYED,zu=ge.ERR_STREAM_NULL_VALUES,Ku=ge.ERR_STREAM_WRITE_AFTER_END,Yu=ge.ERR_UNKNOWN_ENCODING,Ue=In.errorOrDestroy;Se()(k,Fo);function Ju(){}function at(t,e,r){$e=$e||Ce(),t=t||{},typeof r!="boolean"&&(r=e instanceof $e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=$u(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){nf(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new To(this)}at.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(at.prototype,"buffer",{get:Nu.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Gt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Gt=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return Gt.call(this,e)?!0:this!==k?!1:e&&e._writableState instanceof at}})):Gt=function(e){return e instanceof this};function k(t){$e=$e||Ce();var e=this instanceof $e;if(!e&&!Gt.call(k,this))return new k(t);this._writableState=new at(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Fo.call(this)}k.prototype.pipe=function(){Ue(this,new Hu)};function Xu(t,e){var r=new Ku;Ue(t,r),process.nextTick(e,r)}function Zu(t,e,r,n){var i;return r===null?i=new zu:typeof r!="string"&&!e.objectMode&&(i=new Uu("chunk",["string","Buffer"],r)),i?(Ue(t,i),process.nextTick(n,i),!1):!0}k.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&Bu(t);return s&&!zt.isBuffer(t)&&(t=qu(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=Ju),n.ending?Xu(this,r):(s||Zu(this,n,t,r))&&(n.pendingcb++,i=ef(this,n,s,t,e,r)),i};k.prototype.cork=function(){this._writableState.corked++};k.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Po(this,t))};k.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Yu(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Qu(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=zt.from(e,r)),e}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ef(t,e,r,n,i,s){if(!r){var o=Qu(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=e.objectMode?1:n.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else On(t,e,!1,a,n,i,s);return l}function On(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Gu("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function tf(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(ot,t,e),t._writableState.errorEmitted=!0,Ue(t,n)):(i(n),t._writableState.errorEmitted=!0,Ue(t,n),ot(t,e))}function rf(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function nf(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new Wu;if(rf(r),e)tf(t,r,n,e,i);else{var s=Lo(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Po(t,r),n?process.nextTick(Ro,t,r,s,i):Ro(t,r,s,i)}}function Ro(t,e,r,n){r||sf(t,e),e.pendingcb--,n(),ot(t,e)}function sf(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Po(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,On(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new To(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,f=e.objectMode?1:l.length;if(On(t,e,!1,f,l,c,u),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}k.prototype._write=function(t,e,r){r(new Vu("_write()"))};k.prototype._writev=null;k.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||lf(this,n,r),this};Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Lo(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function of(t,e){t._final(function(r){e.pendingcb--,r&&Ue(t,r),e.prefinished=!0,t.emit("prefinish"),ot(t,e)})}function af(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(of,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function ot(t,e){var r=Lo(e);if(r&&(af(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function lf(t,e,r){e.ending=!0,ot(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function cf(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});k.prototype.destroy=In.destroy;k.prototype._undestroy=In.undestroy;k.prototype._destroy=function(t,e){e(t)}});var Ce=p((tg,No)=>{"use strict";var uf=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};No.exports=ne;var Do=Pn(),Fn=Rn();Se()(ne,Do);for(Tn=uf(Fn.prototype),Kt=0;Kt<Tn.length;Kt++)Yt=Tn[Kt],ne.prototype[Yt]||(ne.prototype[Yt]=Fn.prototype[Yt]);var Tn,Yt,Kt;function ne(t){if(!(this instanceof ne))return new ne(t);Do.call(this,t),Fn.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",ff)))}Object.defineProperty(ne.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ne.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ne.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ff(){this._writableState.ended||process.nextTick(df,this)}function df(t){t.end()}Object.defineProperty(ne.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var Bo=p((Ln,qo)=>{var Jt=require("buffer"),ie=Jt.Buffer;function Mo(t,e){for(var r in t)e[r]=t[r]}ie.from&&ie.alloc&&ie.allocUnsafe&&ie.allocUnsafeSlow?qo.exports=Jt:(Mo(Jt,Ln),Ln.Buffer=Ae);function Ae(t,e,r){return ie(t,e,r)}Ae.prototype=Object.create(ie.prototype);Mo(ie,Ae);Ae.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ie(t,e,r)};Ae.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=ie(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};Ae.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ie(t)};Ae.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Jt.SlowBuffer(t)}});var Nn=p($o=>{"use strict";var Dn=Bo().Buffer,jo=Dn.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function hf(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function pf(t){var e=hf(t);if(typeof e!="string"&&(Dn.isEncoding===jo||!jo(t)))throw new Error("Unknown encoding: "+t);return e||t}$o.StringDecoder=lt;function lt(t){this.encoding=pf(t);var e;switch(this.encoding){case"utf16le":this.text=xf,this.end=wf,e=4;break;case"utf8":this.fillLast=yf,e=4;break;case"base64":this.text=vf,this.end=Ef,e=3;break;default:this.write=Sf,this.end=Cf;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Dn.allocUnsafe(e)}lt.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};lt.prototype.end=bf;lt.prototype.text=_f;lt.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function kn(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function gf(t,e,r){var n=e.length-1;if(n<r)return 0;var i=kn(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=kn(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=kn(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function mf(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function yf(t){var e=this.lastTotal-this.lastNeed,r=mf(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function _f(t,e){var r=gf(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function bf(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function xf(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function wf(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function vf(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function Ef(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Sf(t){return t.toString(this.encoding)}function Cf(t){return t&&t.length?this.write(t):""}});var Xt=p((ng,Wo)=>{"use strict";var Uo=pe().codes.ERR_STREAM_PREMATURE_CLOSE;function Af(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function Of(){}function If(t){return t.setHeader&&typeof t.abort=="function"}function Vo(t,e,r){if(typeof e=="function")return Vo(t,null,e);e||(e={}),r=Af(r||Of);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){i=!1,o=!0,n||r.call(t)},l=t._readableState&&t._readableState.endEmitted,c=function(){n=!1,l=!0,i||r.call(t)},u=function(m){r.call(t,m)},f=function(){var m;if(n&&!l)return(!t._readableState||!t._readableState.ended)&&(m=new Uo),r.call(t,m);if(i&&!o)return(!t._writableState||!t._writableState.ended)&&(m=new Uo),r.call(t,m)},h=function(){t.req.on("finish",a)};return If(t)?(t.on("complete",a),t.on("abort",f),t.req?h():t.on("request",h)):i&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",c),t.on("finish",a),e.error!==!1&&t.on("error",u),t.on("close",f),function(){t.removeListener("complete",a),t.removeListener("abort",f),t.removeListener("request",h),t.req&&t.req.removeListener("finish",a),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",a),t.removeListener("end",c),t.removeListener("error",u),t.removeListener("close",f)}}Wo.exports=Vo});var Go=p((ig,Ho)=>{"use strict";var Zt;function me(t,e,r){return e=Rf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rf(t){var e=Tf(t,"string");return typeof e=="symbol"?e:String(e)}function Tf(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ff=Xt(),ye=Symbol("lastResolve"),Oe=Symbol("lastReject"),ct=Symbol("error"),Qt=Symbol("ended"),Ie=Symbol("lastPromise"),Mn=Symbol("handlePromise"),Re=Symbol("stream");function _e(t,e){return{value:t,done:e}}function Pf(t){var e=t[ye];if(e!==null){var r=t[Re].read();r!==null&&(t[Ie]=null,t[ye]=null,t[Oe]=null,e(_e(r,!1)))}}function Lf(t){process.nextTick(Pf,t)}function kf(t,e){return function(r,n){t.then(function(){if(e[Qt]){r(_e(void 0,!0));return}e[Mn](r,n)},n)}}var Df=Object.getPrototypeOf(function(){}),Nf=Object.setPrototypeOf((Zt={get stream(){return this[Re]},next:function(){var e=this,r=this[ct];if(r!==null)return Promise.reject(r);if(this[Qt])return Promise.resolve(_e(void 0,!0));if(this[Re].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[ct]?a(e[ct]):o(_e(void 0,!0))})});var n=this[Ie],i;if(n)i=new Promise(kf(n,this));else{var s=this[Re].read();if(s!==null)return Promise.resolve(_e(s,!1));i=new Promise(this[Mn])}return this[Ie]=i,i}},me(Zt,Symbol.asyncIterator,function(){return this}),me(Zt,"return",function(){var e=this;return new Promise(function(r,n){e[Re].destroy(null,function(i){if(i){n(i);return}r(_e(void 0,!0))})})}),Zt),Df),Mf=function(e){var r,n=Object.create(Nf,(r={},me(r,Re,{value:e,writable:!0}),me(r,ye,{value:null,writable:!0}),me(r,Oe,{value:null,writable:!0}),me(r,ct,{value:null,writable:!0}),me(r,Qt,{value:e._readableState.endEmitted,writable:!0}),me(r,Mn,{value:function(s,o){var a=n[Re].read();a?(n[Ie]=null,n[ye]=null,n[Oe]=null,s(_e(a,!1))):(n[ye]=s,n[Oe]=o)},writable:!0}),r));return n[Ie]=null,Ff(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[Oe];s!==null&&(n[Ie]=null,n[ye]=null,n[Oe]=null,s(i)),n[ct]=i;return}var o=n[ye];o!==null&&(n[Ie]=null,n[ye]=null,n[Oe]=null,o(_e(void 0,!0))),n[Qt]=!0}),e.on("readable",Lf.bind(null,n)),n};Ho.exports=Mf});var Jo=p((sg,Yo)=>{"use strict";function zo(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(c){r(c);return}a.done?e(l):Promise.resolve(l).then(n,i)}function qf(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function o(l){zo(s,n,i,o,a,"next",l)}function a(l){zo(s,n,i,o,a,"throw",l)}o(void 0)})}}function Ko(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Bf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ko(Object(r),!0).forEach(function(n){jf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ko(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function jf(t,e,r){return e=$f(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $f(t){var e=Uf(t,"string");return typeof e=="symbol"?e:String(e)}function Uf(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Vf=pe().codes.ERR_INVALID_ARG_TYPE;function Wf(t,e,r){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new Vf("iterable",["Iterable"],e);var i=new t(Bf({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=qf(function*(){try{var l=yield n.next(),c=l.value,u=l.done;u?i.push(null):i.push(yield c)?o():s=!1}catch(f){i.destroy(f)}}),a.apply(this,arguments)}return i}Yo.exports=Wf});var Pn=p((ag,oa)=>{"use strict";oa.exports=O;var Ve;O.ReadableState=ea;var og=require("events").EventEmitter,Qo=function(e,r){return e.listeners(r).length},ft=bn(),er=require("buffer").Buffer,Hf=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Gf(t){return er.from(t)}function zf(t){return er.isBuffer(t)||t instanceof Hf}var qn=require("util"),C;qn&&qn.debuglog?C=qn.debuglog("stream"):C=function(){};var Kf=bo(),Hn=vn(),Yf=En(),Jf=Yf.getHighWaterMark,tr=pe().codes,Xf=tr.ERR_INVALID_ARG_TYPE,Zf=tr.ERR_STREAM_PUSH_AFTER_EOF,Qf=tr.ERR_METHOD_NOT_IMPLEMENTED,ed=tr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,We,Bn,jn;Se()(O,ft);var ut=Hn.errorOrDestroy,$n=["error","close","destroy","pause","resume"];function td(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function ea(t,e,r){Ve=Ve||Ce(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ve),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Jf(this,t,"readableHighWaterMark",r),this.buffer=new Kf,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(We||(We=Nn().StringDecoder),this.decoder=new We(t.encoding),this.encoding=t.encoding)}function O(t){if(Ve=Ve||Ce(),!(this instanceof O))return new O(t);var e=this instanceof Ve;this._readableState=new ea(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),ft.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});O.prototype.destroy=Hn.destroy;O.prototype._undestroy=Hn.undestroy;O.prototype._destroy=function(t,e){e(t)};O.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=er.from(t,e),e=""),n=!0),ta(this,t,e,!1,n)};O.prototype.unshift=function(t){return ta(this,t,null,!0,!1)};function ta(t,e,r,n,i){C("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,id(t,s);else{var o;if(i||(o=rd(s,e)),o)ut(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==er.prototype&&(e=Gf(e)),n)s.endEmitted?ut(t,new ed):Un(t,s,e,!0);else if(s.ended)ut(t,new Zf);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?Un(t,s,e,!1):Wn(t,s)):Un(t,s,e,!1)}else n||(s.reading=!1,Wn(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Un(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&rr(t)),Wn(t,e)}function rd(t,e){var r;return!zf(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new Xf("chunk",["string","Buffer","Uint8Array"],e)),r}O.prototype.isPaused=function(){return this._readableState.flowing===!1};O.prototype.setEncoding=function(t){We||(We=Nn().StringDecoder);var e=new We(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Xo=1073741824;function nd(t){return t>=Xo?t=Xo:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Zo(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=nd(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}O.prototype.read=function(t){C("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return C("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Vn(this):rr(this),null;if(t=Zo(t,e),t===0&&e.ended)return e.length===0&&Vn(this),null;var n=e.needReadable;C("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,C("length less than watermark",n)),e.ended||e.reading?(n=!1,C("reading or ended",n)):n&&(C("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Zo(r,e)));var i;return t>0?i=ia(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Vn(this)),i!==null&&this.emit("data",i),i};function id(t,e){if(C("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?rr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,ra(t)))}}function rr(t){var e=t._readableState;C("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(C("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(ra,t))}function ra(t){var e=t._readableState;C("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Gn(t)}function Wn(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(sd,t,e))}function sd(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(C("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}O.prototype._read=function(t){ut(this,new Qf("_read()"))};O.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,C("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?a:d;n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(y,_){C("onunpipe"),y===r&&_&&_.hasUnpiped===!1&&(_.hasUnpiped=!0,u())}function a(){C("onend"),t.end()}var l=od(r);t.on("drain",l);var c=!1;function u(){C("cleanup"),t.removeListener("close",g),t.removeListener("finish",m),t.removeListener("drain",l),t.removeListener("error",h),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",d),r.removeListener("data",f),c=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",f);function f(y){C("ondata");var _=t.write(y);C("dest.write",_),_===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&sa(n.pipes,t)!==-1)&&!c&&(C("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(y){C("onerror",y),d(),t.removeListener("error",h),Qo(t,"error")===0&&ut(t,y)}td(t,"error",h);function g(){t.removeListener("finish",m),d()}t.once("close",g);function m(){C("onfinish"),t.removeListener("close",g),d()}t.once("finish",m);function d(){C("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(C("pipe resume"),r.resume()),t};function od(t){return function(){var r=t._readableState;C("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Qo(t,"data")&&(r.flowing=!0,Gn(t))}}O.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=sa(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};O.prototype.on=function(t,e){var r=ft.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,C("on readable",n.length,n.reading),n.length?rr(this):n.reading||process.nextTick(ad,this)),r};O.prototype.addListener=O.prototype.on;O.prototype.removeListener=function(t,e){var r=ft.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(na,this),r};O.prototype.removeAllListeners=function(t){var e=ft.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(na,this),e};function na(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function ad(t){C("readable nexttick read 0"),t.read(0)}O.prototype.resume=function(){var t=this._readableState;return t.flowing||(C("resume"),t.flowing=!t.readableListening,ld(this,t)),t.paused=!1,this};function ld(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(cd,t,e))}function cd(t,e){C("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Gn(t),e.flowing&&!e.reading&&t.read(0)}O.prototype.pause=function(){return C("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(C("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Gn(t){var e=t._readableState;for(C("flow",e.flowing);e.flowing&&t.read()!==null;);}O.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(C("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(C("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=function(a){return function(){return t[a].apply(t,arguments)}}(i));for(var s=0;s<$n.length;s++)t.on($n[s],this.emit.bind(this,$n[s]));return this._read=function(o){C("wrapped _read",o),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return Bn===void 0&&(Bn=Go()),Bn(this)});Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});O._fromList=ia;Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ia(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Vn(t){var e=t._readableState;C("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(ud,e,t))}function ud(t,e){if(C("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(O.from=function(t,e){return jn===void 0&&(jn=Jo()),jn(O,t,e)});function sa(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var zn=p((lg,la)=>{"use strict";la.exports=le;var nr=pe().codes,fd=nr.ERR_METHOD_NOT_IMPLEMENTED,dd=nr.ERR_MULTIPLE_CALLBACK,hd=nr.ERR_TRANSFORM_ALREADY_TRANSFORMING,pd=nr.ERR_TRANSFORM_WITH_LENGTH_0,ir=Ce();Se()(le,ir);function gd(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new dd);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function le(t){if(!(this instanceof le))return new le(t);ir.call(this,t),this._transformState={afterTransform:gd.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",md)}function md(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){aa(t,e,r)}):aa(this,null,null)}le.prototype.push=function(t,e){return this._transformState.needTransform=!1,ir.prototype.push.call(this,t,e)};le.prototype._transform=function(t,e,r){r(new fd("_transform()"))};le.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};le.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};le.prototype._destroy=function(t,e){ir.prototype._destroy.call(this,t,function(r){e(r)})};function aa(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new pd;if(t._transformState.transforming)throw new hd;return t.push(null)}});var fa=p((cg,ua)=>{"use strict";ua.exports=dt;var ca=zn();Se()(dt,ca);function dt(t){if(!(this instanceof dt))return new dt(t);ca.call(this,t)}dt.prototype._transform=function(t,e,r){r(null,t)}});var ma=p((ug,ga)=>{"use strict";var Kn;function yd(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var pa=pe().codes,_d=pa.ERR_MISSING_ARGS,bd=pa.ERR_STREAM_DESTROYED;function da(t){if(t)throw t}function xd(t){return t.setHeader&&typeof t.abort=="function"}function wd(t,e,r,n){n=yd(n);var i=!1;t.on("close",function(){i=!0}),Kn===void 0&&(Kn=Xt()),Kn(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,xd(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(o||new bd("pipe"))}}}function ha(t){t()}function vd(t,e){return t.pipe(e)}function Ed(t){return!t.length||typeof t[t.length-1]!="function"?da:t.pop()}function Sd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Ed(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new _d("streams");var i,s=e.map(function(o,a){var l=a<e.length-1,c=a>0;return wd(o,l,c,function(u){i||(i=u),u&&s.forEach(ha),!l&&(s.forEach(ha),n(i))})});return e.reduce(vd)}ga.exports=Sd});var ya=p((Y,pt)=>{var ht=require("stream");process.env.READABLE_STREAM==="disable"&&ht?(pt.exports=ht.Readable,Object.assign(pt.exports,ht),pt.exports.Stream=ht):(Y=pt.exports=Pn(),Y.Stream=ht||Y,Y.Readable=Y,Y.Writable=Rn(),Y.Duplex=Ce(),Y.Transform=zn(),Y.PassThrough=fa(),Y.finished=Xt(),Y.pipeline=ma())});var xa=p((fg,ba)=>{"use strict";var{Buffer:Z}=require("buffer"),_a=Symbol.for("BufferList");function T(t){if(!(this instanceof T))return new T(t);T._init.call(this,t)}T._init=function(e){Object.defineProperty(this,_a,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};T.prototype._new=function(e){return new T(e)};T.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(e<i||n===this._bufs.length-1)return[n,e-r];r=i}};T.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let n=0;n<e;n++)r+=this._bufs[n].length;return r};T.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};T.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};T.prototype.copy=function(e,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return e||Z.alloc(0);let s=!!e,o=this._offset(n),a=i-n,l=a,c=s&&r||0,u=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:Z.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(e,c),c+=this._bufs[f].length;return e}if(l<=this._bufs[o[0]].length-u)return s?this._bufs[o[0]].copy(e,r,u,u+l):this._bufs[o[0]].slice(u,u+l);s||(e=Z.allocUnsafe(a));for(let f=o[0];f<this._bufs.length;f++){let h=this._bufs[f].length-u;if(l>h)this._bufs[f].copy(e,c,u),c+=h;else{this._bufs[f].copy(e,c,u,u+l),c+=h;break}l-=h,u&&(u=0)}return e.length>c?e.slice(0,c):e};T.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let n=this._offset(e),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};T.prototype.toString=function(e,r,n){return this.slice(r,n).toString(e)};T.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};T.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};T.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(Z.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(Z.from(e));return this};T.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};T.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=Z.from([t]):typeof t=="string"?t=Z.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=Z.from(t.buffer,t.byteOffset,t.byteLength):Z.isBuffer(t)||(t=Z.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let n=this._offset(e),i=n[0],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=t.length){let l=o.indexOf(t,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-t.length+1}else{let l=this._reverseOffset([i,s]);if(this._match(l,t))return l;s++}s=0}return-1};T.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?T.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:T.prototype[r]=function(n=0){return this.slice(n,n+t[r])[r](0)}})(e)})();T.prototype._isBufferList=function(e){return e instanceof T||T.isBufferList(e)};T.isBufferList=function(e){return e!=null&&e[_a]};ba.exports=T});var wa=p((dg,sr)=>{"use strict";var Yn=ya().Duplex,Cd=Se(),gt=xa();function U(t){if(!(this instanceof U))return new U(t);if(typeof t=="function"){this._callback=t;let e=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",e)}),this.on("unpipe",function(n){n.removeListener("error",e)}),t=null}gt._init.call(this,t),Yn.call(this)}Cd(U,Yn);Object.assign(U.prototype,gt.prototype);U.prototype._new=function(e){return new U(e)};U.prototype._write=function(e,r,n){this._appendBuffer(e),typeof n=="function"&&n()};U.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};U.prototype.end=function(e){Yn.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};U.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};U.prototype._isBufferList=function(e){return e instanceof U||e instanceof gt||U.isBufferList(e)};U.isBufferList=gt.isBufferList;sr.exports=U;sr.exports.BufferListStream=U;sr.exports.BufferList=gt});var ur=p((hg,Qn)=>{"use strict";var Ad=require("readline"),Od=X(),va=Vs(),or=zs(),ar=Js(),Id=eo(),Rd=co(),Td=fo(),Fd=yn(),{BufferListStream:Pd}=wa(),Jn=Symbol("text"),Xn=Symbol("prefixText"),Ld=3,Zn=class{constructor(){this.requests=0,this.mutedStream=new Pd,this.mutedStream.pipe(process.stdout);let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(Ld)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=Ad.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},lr,cr=class{constructor(e){lr||(lr=new Zn),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:Td({stream:this.stream}),this.isSilent=typeof this.options.isSilent=="boolean"?this.options.isSilent:!1,this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(!Fd())this._spinner=or.line;else if(e===void 0)this._spinner=or.dots;else if(e!=="default"&&or[e])this._spinner=or[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Jn]}set text(e){this[Jn]=e,this.updateLineCount()}get prefixText(){return this[Xn]}set prefixText(e){this[Xn]=e,this.updateLineCount()}get isSpinning(){return this.id!==void 0}getFullPrefixText(e=this[Xn],r=" "){return typeof e=="string"?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=this.stream.columns||80,r=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(let n of Id(r+"--"+this[Jn]).split(`
28
+ `))this.lineCount+=Math.max(1,Math.ceil(Rd(n)/e))}get isEnabled(){return this._isEnabled&&!this.isSilent}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this._isEnabled=e}get isSilent(){return this._isSilent}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this._isSilent=e}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=Od[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.isSilent?this:(this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this)}start(e){return e&&(this.text=e),this.isSilent?this:this.isEnabled?this.isSpinning?this:(this.hideCursor&&va.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,lr.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
29
+ `),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&va.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(lr.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:ar.success,text:e})}fail(e){return this.stopAndPersist({symbol:ar.error,text:e})}warn(e){return this.stopAndPersist({symbol:ar.warning,text:e})}info(e){return this.stopAndPersist({symbol:ar.info,text:e})}stopAndPersist(e={}){if(this.isSilent)return this;let r=e.prefixText||this.prefixText,n=e.text||this.text,i=typeof n=="string"?" "+n:"";return this.stop(),this.stream.write(`${this.getFullPrefixText(r," ")}${e.symbol||" "}${i}
30
+ `),this}},kd=function(t){return new cr(t)};Qn.exports=kd;Qn.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new cr(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var ti=p((pg,Sa)=>{"use strict";var Ea=require("fs"),ei;function Dd(){try{return Ea.statSync("/.dockerenv"),!0}catch{return!1}}function Nd(){try{return Ea.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}Sa.exports=()=>(ei===void 0&&(ei=Dd()||Nd()),ei)});var Oa=p((gg,ri)=>{"use strict";var Md=require("os"),qd=require("fs"),Ca=ti(),Aa=()=>{if(process.platform!=="linux")return!1;if(Md.release().toLowerCase().includes("microsoft"))return!Ca();try{return qd.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Ca():!1}catch{return!1}};process.env.__IS_WSL_TEST__?ri.exports=Aa:ri.exports=Aa()});var Ra=p((mg,Ia)=>{"use strict";Ia.exports=(t,e,r)=>{let n=i=>Object.defineProperty(t,e,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get(){let i=r();return n(i),i},set(i){n(i)}}),t}});var ai=p((yg,Da)=>{var Bd=require("path"),jd=require("child_process"),{promises:dr,constants:ka}=require("fs"),fr=Oa(),$d=ti(),ii=Ra(),Ta=Bd.join(__dirname,"xdg-open"),{platform:He,arch:Fa}=process,Ud=()=>{try{return dr.statSync("/run/.containerenv"),!0}catch{return!1}},ni;function Vd(){return ni===void 0&&(ni=Ud()||$d()),ni}var Wd=(()=>{let t="/mnt/",e;return async function(){if(e)return e;let r="/etc/wsl.conf",n=!1;try{await dr.access(r,ka.F_OK),n=!0}catch{}if(!n)return t;let i=await dr.readFile(r,{encoding:"utf8"}),s=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return s?(e=s.groups.mountPoint.trim(),e=e.endsWith("/")?e:`${e}/`,e):t}})(),Pa=async(t,e)=>{let r;for(let n of t)try{return await e(n)}catch(i){r=i}throw r},hr=async t=>{if(t={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...t},Array.isArray(t.app))return Pa(t.app,a=>hr({...t,app:a}));let{name:e,arguments:r=[]}=t.app||{};if(r=[...r],Array.isArray(e))return Pa(e,a=>hr({...t,app:{name:a,arguments:r}}));let n,i=[],s={};if(He==="darwin")n="open",t.wait&&i.push("--wait-apps"),t.background&&i.push("--background"),t.newInstance&&i.push("--new"),e&&i.push("-a",e);else if(He==="win32"||fr&&!Vd()&&!e){let a=await Wd();n=fr?`${a}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),fr||(s.windowsVerbatimArguments=!0);let l=["Start"];t.wait&&l.push("-Wait"),e?(l.push(`"\`"${e}\`""`,"-ArgumentList"),t.target&&r.unshift(t.target)):t.target&&l.push(`"${t.target}"`),r.length>0&&(r=r.map(c=>`"\`"${c}\`""`),l.push(r.join(","))),t.target=Buffer.from(l.join(" "),"utf16le").toString("base64")}else{if(e)n=e;else{let a=!__dirname||__dirname==="/",l=!1;try{await dr.access(Ta,ka.X_OK),l=!0}catch{}n=process.versions.electron||He==="android"||a||!l?"xdg-open":Ta}r.length>0&&i.push(...r),t.wait||(s.stdio="ignore",s.detached=!0)}t.target&&i.push(t.target),He==="darwin"&&r.length>0&&i.push("--args",...r);let o=jd.spawn(n,i,s);return t.wait?new Promise((a,l)=>{o.once("error",l),o.once("close",c=>{if(!t.allowNonzeroExitCode&&c>0){l(new Error(`Exited with code ${c}`));return}a(o)})}):(o.unref(),o)},si=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `target`");return hr({...e,target:t})},Hd=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `name`");let{arguments:r=[]}=e||{};if(r!=null&&!Array.isArray(r))throw new TypeError("Expected `appArguments` as Array type");return hr({...e,app:{name:t,arguments:r}})};function La(t){if(typeof t=="string"||Array.isArray(t))return t;let{[Fa]:e}=t;if(!e)throw new Error(`${Fa} is not supported`);return e}function oi({[He]:t},{wsl:e}){if(e&&fr)return La(e);if(!t)throw new Error(`${He} is not supported`);return La(t)}var pr={};ii(pr,"chrome",()=>oi({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));ii(pr,"firefox",()=>oi({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));ii(pr,"edge",()=>oi({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));si.apps=pr;si.openApp=Hd;Da.exports=si});var yt=p((_g,Ba)=>{"use strict";var mt=require("fs"),Ma=require("path"),Gd=require("crypto"),zd=require("os"),Kd=Ma.join(zd.homedir(),".xFramework","instances","default"),Ge=Ma.join(Kd,"license.key"),Yd=`-----BEGIN PUBLIC KEY-----
31
31
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA50dyGcO0PnH7gsE5U7jd
32
32
  gfYyPF0iC1bPtQF4Kitagv0dWNrsD+APPBzCOCTE/2gZ3e3es7YthRt/rvd5/40R
33
33
  I5l206XU8DlX3CKgKPEydNUhgPUWHZOVjl+BjYP0p77E/MRucTl3qHjyZd+1nlVj
@@ -35,13 +35,13 @@ BC8n5TsJENetqqmUORIWbyYkJ7wy0mtzXxe/yX3b9exUeZWt9PqrwIvax19WjyhR
35
35
  Hw6HyxZRvQ4TFWGRaEHh/GuLDQ+yNVBhhsphIqJAoMPZ4bSewyxlzM6qULuG35NY
36
36
  QKmi3vKOGAxG733mOS4aarZdL288bcOAV0QWjdQnRUxZNo7+t8+lS1Wo1LwZRsK2
37
37
  vwIDAQAB
38
- -----END PUBLIC KEY-----`;function Ma(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r=e+"==".slice(0,(4-e.length%4)%4);return Buffer.from(r,"base64")}function Ba(t){let e=t.trim().split(".");if(e.length!==3)throw new Error("Invalid license key format");let[r,n,i]=e,s=`${r}.${n}`,o=Ma(i),a=zd.createVerify("SHA256");if(a.update(s),!a.verify(Jd,o))throw new Error("License key signature is invalid");return JSON.parse(Ma(n).toString("utf8"))}function Xd(){if(!mt.existsSync(Ge))return{valid:!0,type:"community",company:null,email:null,expiresAt:null,daysRemaining:null,features:[],isLicensed:!1};try{let t=mt.readFileSync(Ge,"utf8").trim(),e=Ba(t),r=Math.floor(Date.now()/1e3);if(e.exp&&e.exp<r)return{valid:!1,type:"expired",company:e.company||null,email:e.sub||null,expiresAt:new Date(e.exp*1e3),daysRemaining:0,features:[],isLicensed:!1};let n=e.exp?new Date(e.exp*1e3):null,i=n?Math.ceil((n-new Date)/(1e3*60*60*24)):null;return{valid:!0,type:e.type||"professional",company:e.company||null,email:e.sub||null,expiresAt:n,daysRemaining:i,features:e.features||["*"],isLicensed:!0}}catch(t){return{valid:!1,type:"invalid",company:null,email:null,expiresAt:null,daysRemaining:null,features:[],isLicensed:!1,error:t.message}}}function Zd(t){if(!t||typeof t!="string")throw new Error("No license key provided");let e=Ba(t.trim()),r=Math.floor(Date.now()/1e3);if(e.exp&&e.exp<r)throw new Error("This license key has already expired");return mt.writeFileSync(Ge,t.trim(),"utf8"),e}function Qd(){return mt.existsSync(Ge)?(mt.unlinkSync(Ge),!0):!1}ja.exports={readLicense:Xd,saveLicense:Zd,removeLicense:Qd,LICENSE_FILE:Ge}});var Ua=p((bg,$a)=>{var ze=1e3,Ke=ze*60,Ye=Ke*60,Te=Ye*24,eh=Te*7,th=Te*365.25;$a.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return rh(t);if(r==="number"&&isFinite(t))return e.long?ih(t):nh(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function rh(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*th;case"weeks":case"week":case"w":return r*eh;case"days":case"day":case"d":return r*Te;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ye;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ke;case"seconds":case"second":case"secs":case"sec":case"s":return r*ze;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function nh(t){var e=Math.abs(t);return e>=Te?Math.round(t/Te)+"d":e>=Ye?Math.round(t/Ye)+"h":e>=Ke?Math.round(t/Ke)+"m":e>=ze?Math.round(t/ze)+"s":t+"ms"}function ih(t){var e=Math.abs(t);return e>=Te?gr(t,e,Te,"day"):e>=Ye?gr(t,e,Ye,"hour"):e>=Ke?gr(t,e,Ke,"minute"):e>=ze?gr(t,e,ze,"second"):t+" ms"}function gr(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var li=p((xg,Va)=>{function sh(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=i,r.enabled=a,r.humanize=Ua(),r.destroy=c,Object.keys(t).forEach(u=>{r[u]=t[u]}),r.names=[],r.skips=[],r.formatters={};function e(u){let f=0;for(let h=0;h<u.length;h++)f=(f<<5)-f+u.charCodeAt(h),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=e;function r(u){let f,h=null,g,m;function d(...y){if(!d.enabled)return;let b=d,v=Number(new Date),R=v-(f||v);b.diff=R,b.prev=f,b.curr=v,f=v,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let N=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(ne,T)=>{if(ne==="%%")return"%";N++;let $=r.formatters[T];if(typeof $=="function"){let Ct=y[N];ne=$.call(b,Ct),y.splice(N,1),N--}return ne}),r.formatArgs.call(b,y),(b.log||r.log).apply(b,y)}return d.namespace=u,d.useColors=r.useColors(),d.color=r.selectColor(u),d.extend=n,d.destroy=r.destroy,Object.defineProperty(d,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(g!==r.namespaces&&(g=r.namespaces,m=r.enabled(u)),m),set:y=>{h=y}}),typeof r.init=="function"&&r.init(d),d}function n(u,f){let h=r(this.namespace+(typeof f>"u"?":":f)+u);return h.log=this.log,h}function i(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let f=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let h of f)h[0]==="-"?r.skips.push(h.slice(1)):r.names.push(h)}function s(u,f){let h=0,g=0,m=-1,d=0;for(;h<u.length;)if(g<f.length&&(f[g]===u[h]||f[g]==="*"))f[g]==="*"?(m=g,d=h,g++):(h++,g++);else if(m!==-1)g=m+1,d++,h=d;else return!1;for(;g<f.length&&f[g]==="*";)g++;return g===f.length}function o(){let u=[...r.names,...r.skips.map(f=>"-"+f)].join(",");return r.enable(""),u}function a(u){for(let f of r.skips)if(s(u,f))return!1;for(let f of r.names)if(s(u,f))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Va.exports=sh});var Wa=p((H,mr)=>{H.formatArgs=ah;H.save=lh;H.load=ch;H.useColors=oh;H.storage=uh();H.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();H.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 oh(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ah(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+mr.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}H.log=console.debug||console.log||(()=>{});function lh(t){try{t?H.storage.setItem("debug",t):H.storage.removeItem("debug")}catch{}}function ch(){let t;try{t=H.storage.getItem("debug")||H.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function uh(){try{return localStorage}catch{}}mr.exports=li()(H);var{formatters:fh}=mr.exports;fh.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Ga=p((j,_r)=>{var dh=require("tty"),yr=require("util");j.init=bh;j.log=mh;j.formatArgs=ph;j.save=yh;j.load=_h;j.useColors=hh;j.destroy=yr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");j.colors=[6,2,3,4,5,1];try{let t=ln();t&&(t.stderr||t).level>=2&&(j.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{}j.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function hh(){return"colors"in j.inspectOpts?!!j.inspectOpts.colors:dh.isatty(process.stderr.fd)}function ph(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
38
+ -----END PUBLIC KEY-----`;function Na(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r=e+"==".slice(0,(4-e.length%4)%4);return Buffer.from(r,"base64")}function qa(t){let e=t.trim().split(".");if(e.length!==3)throw new Error("Invalid license key format");let[r,n,i]=e,s=`${r}.${n}`,o=Na(i),a=Gd.createVerify("SHA256");if(a.update(s),!a.verify(Yd,o))throw new Error("License key signature is invalid");return JSON.parse(Na(n).toString("utf8"))}function Jd(){if(!mt.existsSync(Ge))return{valid:!0,type:"community",company:null,email:null,expiresAt:null,daysRemaining:null,features:[],isLicensed:!1};try{let t=mt.readFileSync(Ge,"utf8").trim(),e=qa(t),r=Math.floor(Date.now()/1e3);if(e.exp&&e.exp<r)return{valid:!1,type:"expired",company:e.company||null,email:e.sub||null,expiresAt:new Date(e.exp*1e3),daysRemaining:0,features:[],isLicensed:!1};let n=e.exp?new Date(e.exp*1e3):null,i=n?Math.ceil((n-new Date)/(1e3*60*60*24)):null;return{valid:!0,type:e.type||"professional",company:e.company||null,email:e.sub||null,expiresAt:n,daysRemaining:i,features:e.features||["*"],isLicensed:!0}}catch(t){return{valid:!1,type:"invalid",company:null,email:null,expiresAt:null,daysRemaining:null,features:[],isLicensed:!1,error:t.message}}}function Xd(t){if(!t||typeof t!="string")throw new Error("No license key provided");let e=qa(t.trim()),r=Math.floor(Date.now()/1e3);if(e.exp&&e.exp<r)throw new Error("This license key has already expired");return mt.writeFileSync(Ge,t.trim(),"utf8"),e}function Zd(){return mt.existsSync(Ge)?(mt.unlinkSync(Ge),!0):!1}Ba.exports={readLicense:Jd,saveLicense:Xd,removeLicense:Zd,LICENSE_FILE:Ge}});var $a=p((bg,ja)=>{var ze=1e3,Ke=ze*60,Ye=Ke*60,Te=Ye*24,Qd=Te*7,eh=Te*365.25;ja.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return th(t);if(r==="number"&&isFinite(t))return e.long?nh(t):rh(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function th(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*eh;case"weeks":case"week":case"w":return r*Qd;case"days":case"day":case"d":return r*Te;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ye;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ke;case"seconds":case"second":case"secs":case"sec":case"s":return r*ze;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function rh(t){var e=Math.abs(t);return e>=Te?Math.round(t/Te)+"d":e>=Ye?Math.round(t/Ye)+"h":e>=Ke?Math.round(t/Ke)+"m":e>=ze?Math.round(t/ze)+"s":t+"ms"}function nh(t){var e=Math.abs(t);return e>=Te?gr(t,e,Te,"day"):e>=Ye?gr(t,e,Ye,"hour"):e>=Ke?gr(t,e,Ke,"minute"):e>=ze?gr(t,e,ze,"second"):t+" ms"}function gr(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var li=p((xg,Ua)=>{function ih(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=i,r.enabled=a,r.humanize=$a(),r.destroy=c,Object.keys(t).forEach(u=>{r[u]=t[u]}),r.names=[],r.skips=[],r.formatters={};function e(u){let f=0;for(let h=0;h<u.length;h++)f=(f<<5)-f+u.charCodeAt(h),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=e;function r(u){let f,h=null,g,m;function d(...y){if(!d.enabled)return;let _=d,v=Number(new Date),F=v-(f||v);_.diff=F,_.prev=f,_.curr=v,f=v,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let $=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(fe,R)=>{if(fe==="%%")return"%";$++;let j=r.formatters[R];if(typeof j=="function"){let Ct=y[$];fe=j.call(_,Ct),y.splice($,1),$--}return fe}),r.formatArgs.call(_,y),(_.log||r.log).apply(_,y)}return d.namespace=u,d.useColors=r.useColors(),d.color=r.selectColor(u),d.extend=n,d.destroy=r.destroy,Object.defineProperty(d,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(g!==r.namespaces&&(g=r.namespaces,m=r.enabled(u)),m),set:y=>{h=y}}),typeof r.init=="function"&&r.init(d),d}function n(u,f){let h=r(this.namespace+(typeof f>"u"?":":f)+u);return h.log=this.log,h}function i(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let f=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let h of f)h[0]==="-"?r.skips.push(h.slice(1)):r.names.push(h)}function s(u,f){let h=0,g=0,m=-1,d=0;for(;h<u.length;)if(g<f.length&&(f[g]===u[h]||f[g]==="*"))f[g]==="*"?(m=g,d=h,g++):(h++,g++);else if(m!==-1)g=m+1,d++,h=d;else return!1;for(;g<f.length&&f[g]==="*";)g++;return g===f.length}function o(){let u=[...r.names,...r.skips.map(f=>"-"+f)].join(",");return r.enable(""),u}function a(u){for(let f of r.skips)if(s(u,f))return!1;for(let f of r.names)if(s(u,f))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Ua.exports=ih});var Va=p((W,mr)=>{W.formatArgs=oh;W.save=ah;W.load=lh;W.useColors=sh;W.storage=ch();W.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();W.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 sh(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function oh(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+mr.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}W.log=console.debug||console.log||(()=>{});function ah(t){try{t?W.storage.setItem("debug",t):W.storage.removeItem("debug")}catch{}}function lh(){let t;try{t=W.storage.getItem("debug")||W.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function ch(){try{return localStorage}catch{}}mr.exports=li()(W);var{formatters:uh}=mr.exports;uh.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Ha=p((q,_r)=>{var fh=require("tty"),yr=require("util");q.init=_h;q.log=gh;q.formatArgs=hh;q.save=mh;q.load=yh;q.useColors=dh;q.destroy=yr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");q.colors=[6,2,3,4,5,1];try{let t=ln();t&&(t.stderr||t).level>=2&&(q.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{}q.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function dh(){return"colors"in q.inspectOpts?!!q.inspectOpts.colors:fh.isatty(process.stderr.fd)}function hh(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
39
39
  `).join(`
40
- `+s),t.push(i+"m+"+_r.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=gh()+e+" "+t[0]}function gh(){return j.inspectOpts.hideDate?"":new Date().toISOString()+" "}function mh(...t){return process.stderr.write(yr.formatWithOptions(j.inspectOpts,...t)+`
41
- `)}function yh(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function _h(){return process.env.DEBUG}function bh(t){t.inspectOpts={};let e=Object.keys(j.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=j.inspectOpts[e[r]]}_r.exports=li()(j);var{formatters:Ha}=_r.exports;Ha.o=function(t){return this.inspectOpts.colors=this.useColors,yr.inspect(t,this.inspectOpts).split(`
42
- `).map(e=>e.trim()).join(" ")};Ha.O=function(t){return this.inspectOpts.colors=this.useColors,yr.inspect(t,this.inspectOpts)}});var za=p((wg,ci)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ci.exports=Wa():ci.exports=Ga()});var Ja=p((vg,Ya)=>{Ya.exports=Ka;function Ka(t,e){if(t&&e)return Ka(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var fi=p((Eg,ui)=>{var Xa=Ja();ui.exports=Xa(br);ui.exports.strict=Xa(Za);br.proto=br(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return br(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Za(this)},configurable:!0})});function br(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function Za(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var tl=p((Sg,el)=>{var xh=fi(),wh=function(){},vh=global.Bare?queueMicrotask:process.nextTick.bind(process),Eh=function(t){return t.setHeader&&typeof t.abort=="function"},Sh=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},Qa=function(t,e,r){if(typeof e=="function")return Qa(t,null,e);e||(e={}),r=xh(r||wh);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,a=!1,l=function(){t.writable||c()},c=function(){o=!1,s||r.call(t)},u=function(){s=!1,o||r.call(t)},f=function(y){r.call(t,y?new Error("exited with error code: "+y):null)},h=function(y){r.call(t,y)},g=function(){vh(m)},m=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},d=function(){t.req.on("finish",c)};return Eh(t)?(t.on("complete",c),t.on("abort",g),t.req?d():t.on("request",d)):o&&!n&&(t.on("end",l),t.on("close",l)),Sh(t)&&t.on("exit",f),t.on("end",u),t.on("finish",c),e.error!==!1&&t.on("error",h),t.on("close",g),function(){a=!0,t.removeListener("complete",c),t.removeListener("abort",g),t.removeListener("request",d),t.req&&t.req.removeListener("finish",c),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("exit",f),t.removeListener("end",u),t.removeListener("error",h),t.removeListener("close",g)}};el.exports=Qa});var il=p((Cg,nl)=>{var Ch=fi(),Ah=tl(),xr;try{xr=require("fs")}catch{}var _t=function(){},Oh=typeof process>"u"?!1:/^v?\.0/.test(process.version),wr=function(t){return typeof t=="function"},Ih=function(t){return!Oh||!xr?!1:(t instanceof(xr.ReadStream||_t)||t instanceof(xr.WriteStream||_t))&&wr(t.close)},Rh=function(t){return t.setHeader&&wr(t.abort)},Th=function(t,e,r,n){n=Ch(n);var i=!1;t.on("close",function(){i=!0}),Ah(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,Ih(t))return t.close(_t);if(Rh(t))return t.abort();if(wr(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},rl=function(t){t()},Fh=function(t,e){return t.pipe(e)},Ph=function(){var t=Array.prototype.slice.call(arguments),e=wr(t[t.length-1]||_t)&&t.pop()||_t;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,a=s>0;return Th(i,o,a,function(l){r||(r=l),l&&n.forEach(rl),!o&&(n.forEach(rl),e(r))})});return t.reduce(Fh)};nl.exports=Ph});var ol=p((Ag,sl)=>{"use strict";var{PassThrough:Lh}=require("stream");sl.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new Lh({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",l=>{a.push(l),i?o=a.length:o+=l.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var al=p((Og,Je)=>{"use strict";var{constants:kh}=require("buffer"),Dh=il(),Nh=ol(),vr=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Er(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=kh.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=Dh(t,Nh(e),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new vr)})}),n.getBufferedValue()}Je.exports=Er;Je.exports.default=Er;Je.exports.buffer=(t,e)=>Er(t,{...e,encoding:"buffer"});Je.exports.array=(t,e)=>Er(t,{...e,array:!0});Je.exports.MaxBufferError=vr});var fl=p((Ig,ul)=>{ul.exports=Sr;function Sr(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}Sr.prototype.go=function(t){this.pending<this.max?cl(this,t):this.waiting.push(t)};Sr.prototype.wait=function(t){this.pending===0?t(this.error):this.listeners.push(t)};Sr.prototype.hold=function(){return ll(this)};function ll(t){t.pending+=1;var e=!1;return r;function r(i){if(e)throw new Error("callback called twice");if(e=!0,t.error=t.error||i,t.pending-=1,t.waiting.length>0&&t.pending<t.max)cl(t,t.waiting.shift());else if(t.pending===0){var s=t.listeners;t.listeners=[],s.forEach(n)}}function n(i){i(t.error)}}function cl(t,e){e(ll(t))}});var hl=p(xt=>{var bt=require("fs"),Cr=require("util"),di=require("stream"),dl=di.Readable,hi=di.Writable,Mh=di.PassThrough,qh=fl(),Ar=require("events").EventEmitter;xt.createFromBuffer=Bh;xt.createFromFd=jh;xt.BufferSlicer=fe;xt.FdSlicer=ue;Cr.inherits(ue,Ar);function ue(t,e){e=e||{},Ar.call(this),this.fd=t,this.pend=new qh,this.pend.max=1,this.refCount=0,this.autoClose=!!e.autoClose}ue.prototype.read=function(t,e,r,n,i){var s=this;s.pend.go(function(o){bt.read(s.fd,t,e,r,n,function(a,l,c){o(),i(a,l,c)})})};ue.prototype.write=function(t,e,r,n,i){var s=this;s.pend.go(function(o){bt.write(s.fd,t,e,r,n,function(a,l,c){o(),i(a,l,c)})})};ue.prototype.createReadStream=function(t){return new Or(this,t)};ue.prototype.createWriteStream=function(t){return new Ir(this,t)};ue.prototype.ref=function(){this.refCount+=1};ue.prototype.unref=function(){var t=this;if(t.refCount-=1,t.refCount>0)return;if(t.refCount<0)throw new Error("invalid unref");t.autoClose&&bt.close(t.fd,e);function e(r){r?t.emit("error",r):t.emit("close")}};Cr.inherits(Or,dl);function Or(t,e){e=e||{},dl.call(this,e),this.context=t,this.context.ref(),this.start=e.start||0,this.endOffset=e.end,this.pos=this.start,this.destroyed=!1}Or.prototype._read=function(t){var e=this;if(!e.destroyed){var r=Math.min(e._readableState.highWaterMark,t);if(e.endOffset!=null&&(r=Math.min(r,e.endOffset-e.pos)),r<=0){e.destroyed=!0,e.push(null),e.context.unref();return}e.context.pend.go(function(n){if(e.destroyed)return n();var i=new Buffer(r);bt.read(e.context.fd,i,0,r,e.pos,function(s,o){s?e.destroy(s):o===0?(e.destroyed=!0,e.push(null),e.context.unref()):(e.pos+=o,e.push(i.slice(0,o))),n()})})}};Or.prototype.destroy=function(t){this.destroyed||(t=t||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",t),this.context.unref())};Cr.inherits(Ir,hi);function Ir(t,e){e=e||{},hi.call(this,e),this.context=t,this.context.ref(),this.start=e.start||0,this.endOffset=e.end==null?1/0:+e.end,this.bytesWritten=0,this.pos=this.start,this.destroyed=!1,this.on("finish",this.destroy.bind(this))}Ir.prototype._write=function(t,e,r){var n=this;if(!n.destroyed){if(n.pos+t.length>n.endOffset){var i=new Error("maximum file length exceeded");i.code="ETOOBIG",n.destroy(),r(i);return}n.context.pend.go(function(s){if(n.destroyed)return s();bt.write(n.context.fd,t,0,t.length,n.pos,function(o,a){o?(n.destroy(),s(),r(o)):(n.bytesWritten+=a,n.pos+=a,n.emit("progress"),s(),r())})})}};Ir.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())};Cr.inherits(fe,Ar);function fe(t,e){Ar.call(this),e=e||{},this.refCount=0,this.buffer=t,this.maxChunkSize=e.maxChunkSize||Number.MAX_SAFE_INTEGER}fe.prototype.read=function(t,e,r,n,i){var s=n+r,o=s-this.buffer.length,a=o>0?o:r;this.buffer.copy(t,e,n,s),setImmediate(function(){i(null,a)})};fe.prototype.write=function(t,e,r,n,i){t.copy(this.buffer,n,e,e+r),setImmediate(function(){i(null,r,t)})};fe.prototype.createReadStream=function(t){t=t||{};var e=new Mh(t);e.destroyed=!1,e.start=t.start||0,e.endOffset=t.end,e.pos=e.endOffset||this.buffer.length;for(var r=this.buffer.slice(e.start,e.pos),n=0;;){var i=n+this.maxChunkSize;if(i>=r.length){n<r.length&&e.write(r.slice(n,r.length));break}e.write(r.slice(n,i)),n=i}return e.end(),e.destroy=function(){e.destroyed=!0},e};fe.prototype.createWriteStream=function(t){var e=this;t=t||{};var r=new hi(t);return r.start=t.start||0,r.endOffset=t.end==null?this.buffer.length:+t.end,r.bytesWritten=0,r.pos=r.start,r.destroyed=!1,r._write=function(n,i,s){if(!r.destroyed){var o=r.pos+n.length;if(o>r.endOffset){var a=new Error("maximum file length exceeded");a.code="ETOOBIG",r.destroyed=!0,s(a);return}n.copy(e.buffer,r.pos,0,n.length),r.bytesWritten+=n.length,r.pos=o,r.emit("progress"),s()}},r.destroy=function(){r.destroyed=!0},r};fe.prototype.ref=function(){this.refCount+=1};fe.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")};function Bh(t,e){return new fe(t,e)}function jh(t,e){return new ue(t,e)}});var ml=p((Tg,gl)=>{var be=require("buffer").Buffer,pi=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(pi=new Int32Array(pi));function pl(t){if(be.isBuffer(t))return t;var e=typeof be.alloc=="function"&&typeof be.from=="function";if(typeof t=="number")return e?be.alloc(t):new be(t);if(typeof t=="string")return e?be.from(t):new be(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function $h(t){var e=pl(4);return e.writeInt32BE(t,0),e}function gi(t,e){t=pl(t),be.isBuffer(e)&&(e=e.readUInt32BE(0));for(var r=~~e^-1,n=0;n<t.length;n++)r=pi[(r^t[n])&255]^r>>>8;return r^-1}function mi(){return $h(gi.apply(null,arguments))}mi.signed=function(){return gi.apply(null,arguments)};mi.unsigned=function(){return gi.apply(null,arguments)>>>0};gl.exports=mi});var El=p(ae=>{var yi=require("fs"),Uh=require("zlib"),yl=hl(),Vh=ml(),Fr=require("util"),Pr=require("events").EventEmitter,_l=require("stream").Transform,_i=require("stream").PassThrough,Wh=require("stream").Writable;ae.open=Hh;ae.fromFd=bl;ae.fromBuffer=Gh;ae.fromRandomAccessReader=bi;ae.dosDateTimeToDate=wl;ae.validateFileName=vl;ae.ZipFile=xe;ae.Entry=wt;ae.RandomAccessReader=we;function Hh(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose==null&&(e.autoClose=!0),e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1),r==null&&(r=Tr),yi.open(t,"r",function(n,i){if(n)return r(n);bl(i,e,function(s,o){s&&yi.close(i,Tr),r(s,o)})})}function bl(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose==null&&(e.autoClose=!1),e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1),r==null&&(r=Tr),yi.fstat(t,function(n,i){if(n)return r(n);var s=yl.createFromFd(t,{autoClose:!0});bi(s,i.size,e,r)})}function Gh(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose=!1,e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1);var n=yl.createFromBuffer(t,{maxChunkSize:65536});bi(n,t.length,e,r)}function bi(t,e,r,n){typeof r=="function"&&(n=r,r=null),r==null&&(r={}),r.autoClose==null&&(r.autoClose=!0),r.lazyEntries==null&&(r.lazyEntries=!1),r.decodeStrings==null&&(r.decodeStrings=!0);var i=!!r.decodeStrings;if(r.validateEntrySizes==null&&(r.validateEntrySizes=!0),r.strictFileNames==null&&(r.strictFileNames=!1),n==null&&(n=Tr),typeof e!="number")throw new Error("expected totalSize parameter to be a number");if(e>Number.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");t.ref();var s=22,o=65535,a=Math.min(s+o,e),l=oe(a),c=e-l.length;Xe(t,l,0,a,c,function(u){if(u)return n(u);for(var f=a-s;f>=0;f-=1)if(l.readUInt32LE(f)===101010256){var h=l.slice(f),g=h.readUInt16LE(4);if(g!==0)return n(new Error("multi-disk zip files are not supported: found disk number: "+g));var m=h.readUInt16LE(10),d=h.readUInt32LE(16),y=h.readUInt16LE(20),b=h.length-s;if(y!==b)return n(new Error("invalid comment length. expected: "+b+". found: "+y));var v=i?Rr(h,22,h.length,!1):h.slice(22);if(!(m===65535||d===4294967295))return n(null,new xe(t,d,e,m,v,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames));var R=oe(20),N=c+f-R.length;Xe(t,R,0,R.length,N,function(W){if(W)return n(W);if(R.readUInt32LE(0)!==117853008)return n(new Error("invalid zip64 end of central directory locator signature"));var ne=Ze(R,8),T=oe(56);Xe(t,T,0,T.length,ne,function($){return $?n($):T.readUInt32LE(0)!==101075792?n(new Error("invalid zip64 end of central directory record signature")):(m=Ze(T,32),d=Ze(T,48),n(null,new xe(t,d,e,m,v,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames)))})});return}n(new Error("end of central directory record signature not found"))})}Fr.inherits(xe,Pr);function xe(t,e,r,n,i,s,o,a,l,c){var u=this;Pr.call(u),u.reader=t,u.reader.on("error",function(f){xl(u,f)}),u.reader.once("close",function(){u.emit("close")}),u.readEntryCursor=e,u.fileSize=r,u.entryCount=n,u.comment=i,u.entriesRead=0,u.autoClose=!!s,u.lazyEntries=!!o,u.decodeStrings=!!a,u.validateEntrySizes=!!l,u.strictFileNames=!!c,u.isOpen=!0,u.emittedError=!1,u.lazyEntries||u._readEntry()}xe.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.reader.unref())};function ee(t,e){t.autoClose&&t.close(),xl(t,e)}function xl(t,e){t.emittedError||(t.emittedError=!0,t.emit("error",e))}xe.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};xe.prototype._readEntry=function(){var t=this;if(t.entryCount===t.entriesRead){setImmediate(function(){t.autoClose&&t.close(),!t.emittedError&&t.emit("end")});return}if(!t.emittedError){var e=oe(46);Xe(t.reader,e,0,e.length,t.readEntryCursor,function(r){if(r)return ee(t,r);if(!t.emittedError){var n=new wt,i=e.readUInt32LE(0);if(i!==33639248)return ee(t,new Error("invalid central directory file header signature: 0x"+i.toString(16)));if(n.versionMadeBy=e.readUInt16LE(4),n.versionNeededToExtract=e.readUInt16LE(6),n.generalPurposeBitFlag=e.readUInt16LE(8),n.compressionMethod=e.readUInt16LE(10),n.lastModFileTime=e.readUInt16LE(12),n.lastModFileDate=e.readUInt16LE(14),n.crc32=e.readUInt32LE(16),n.compressedSize=e.readUInt32LE(20),n.uncompressedSize=e.readUInt32LE(24),n.fileNameLength=e.readUInt16LE(28),n.extraFieldLength=e.readUInt16LE(30),n.fileCommentLength=e.readUInt16LE(32),n.internalFileAttributes=e.readUInt16LE(36),n.externalFileAttributes=e.readUInt32LE(38),n.relativeOffsetOfLocalHeader=e.readUInt32LE(42),n.generalPurposeBitFlag&64)return ee(t,new Error("strong encryption is not supported"));t.readEntryCursor+=46,e=oe(n.fileNameLength+n.extraFieldLength+n.fileCommentLength),Xe(t.reader,e,0,e.length,t.readEntryCursor,function(s){if(s)return ee(t,s);if(!t.emittedError){var o=(n.generalPurposeBitFlag&2048)!==0;n.fileName=t.decodeStrings?Rr(e,0,n.fileNameLength,o):e.slice(0,n.fileNameLength);var a=n.fileNameLength+n.extraFieldLength,l=e.slice(n.fileNameLength,a);n.extraFields=[];for(var c=0;c<l.length-3;){var u=l.readUInt16LE(c+0),f=l.readUInt16LE(c+2),h=c+4,g=h+f;if(g>l.length)return ee(t,new Error("extra field length exceeds extra field buffer size"));var m=oe(f);l.copy(m,0,h,g),n.extraFields.push({id:u,data:m}),c=g}if(n.fileComment=t.decodeStrings?Rr(e,a,a+n.fileCommentLength,o):e.slice(a,a+n.fileCommentLength),n.comment=n.fileComment,t.readEntryCursor+=e.length,t.entriesRead+=1,n.uncompressedSize===4294967295||n.compressedSize===4294967295||n.relativeOffsetOfLocalHeader===4294967295){for(var d=null,c=0;c<n.extraFields.length;c++){var y=n.extraFields[c];if(y.id===1){d=y.data;break}}if(d==null)return ee(t,new Error("expected zip64 extended information extra field"));var b=0;if(n.uncompressedSize===4294967295){if(b+8>d.length)return ee(t,new Error("zip64 extended information extra field does not include uncompressed size"));n.uncompressedSize=Ze(d,b),b+=8}if(n.compressedSize===4294967295){if(b+8>d.length)return ee(t,new Error("zip64 extended information extra field does not include compressed size"));n.compressedSize=Ze(d,b),b+=8}if(n.relativeOffsetOfLocalHeader===4294967295){if(b+8>d.length)return ee(t,new Error("zip64 extended information extra field does not include relative header offset"));n.relativeOffsetOfLocalHeader=Ze(d,b),b+=8}}if(t.decodeStrings)for(var c=0;c<n.extraFields.length;c++){var y=n.extraFields[c];if(y.id===28789){if(y.data.length<6||y.data.readUInt8(0)!==1)continue;var v=y.data.readUInt32LE(1);if(Vh.unsigned(e.slice(0,n.fileNameLength))!==v)continue;n.fileName=Rr(y.data,5,y.data.length,!0);break}}if(t.validateEntrySizes&&n.compressionMethod===0){var R=n.uncompressedSize;if(n.isEncrypted()&&(R+=12),n.compressedSize!==R){var N="compressed/uncompressed size mismatch for stored file: "+n.compressedSize+" != "+n.uncompressedSize;return ee(t,new Error(N))}}if(t.decodeStrings){t.strictFileNames||(n.fileName=n.fileName.replace(/\\/g,"/"));var W=vl(n.fileName,t.validateFileNameOptions);if(W!=null)return ee(t,new Error(W))}t.emit("entry",n),t.lazyEntries||t._readEntry()}})}})}};xe.prototype.openReadStream=function(t,e,r){var n=this,i=0,s=t.compressedSize;if(r==null)r=e,e={};else{if(e.decrypt!=null){if(!t.isEncrypted())throw new Error("options.decrypt can only be specified for encrypted entries");if(e.decrypt!==!1)throw new Error("invalid options.decrypt value: "+e.decrypt);if(t.isCompressed()&&e.decompress!==!1)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}if(e.decompress!=null){if(!t.isCompressed())throw new Error("options.decompress can only be specified for compressed entries");if(!(e.decompress===!1||e.decompress===!0))throw new Error("invalid options.decompress value: "+e.decompress)}if(e.start!=null||e.end!=null){if(t.isCompressed()&&e.decompress!==!1)throw new Error("start/end range not allowed for compressed entry without options.decompress === false");if(t.isEncrypted()&&e.decrypt!==!1)throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}if(e.start!=null){if(i=e.start,i<0)throw new Error("options.start < 0");if(i>t.compressedSize)throw new Error("options.start > entry.compressedSize")}if(e.end!=null){if(s=e.end,s<0)throw new Error("options.end < 0");if(s>t.compressedSize)throw new Error("options.end > entry.compressedSize");if(s<i)throw new Error("options.end < options.start")}}if(!n.isOpen)return r(new Error("closed"));if(t.isEncrypted()&&e.decrypt!==!1)return r(new Error("entry is encrypted, and options.decrypt !== false"));n.reader.ref();var o=oe(30);Xe(n.reader,o,0,o.length,t.relativeOffsetOfLocalHeader,function(a){try{if(a)return r(a);var l=o.readUInt32LE(0);if(l!==67324752)return r(new Error("invalid local file header signature: 0x"+l.toString(16)));var c=o.readUInt16LE(26),u=o.readUInt16LE(28),f=t.relativeOffsetOfLocalHeader+o.length+c+u,h;if(t.compressionMethod===0)h=!1;else if(t.compressionMethod===8)h=e.decompress!=null?e.decompress:!0;else return r(new Error("unsupported compression method: "+t.compressionMethod));var g=f,m=g+t.compressedSize;if(t.compressedSize!==0&&m>n.fileSize)return r(new Error("file data overflows file bounds: "+g+" + "+t.compressedSize+" > "+n.fileSize));var d=n.reader.createReadStream({start:g+i,end:g+s}),y=d;if(h){var b=!1,v=Uh.createInflateRaw();d.on("error",function(R){setImmediate(function(){b||v.emit("error",R)})}),d.pipe(v),n.validateEntrySizes?(y=new vt(t.uncompressedSize),v.on("error",function(R){setImmediate(function(){b||y.emit("error",R)})}),v.pipe(y)):y=v,y.destroy=function(){b=!0,v!==y&&v.unpipe(y),d.unpipe(v),d.destroy()}}r(null,y)}finally{n.reader.unref()}})};function wt(){}wt.prototype.getLastModDate=function(){return wl(this.lastModFileDate,this.lastModFileTime)};wt.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};wt.prototype.isCompressed=function(){return this.compressionMethod===8};function wl(t,e){var r=t&31,n=(t>>5&15)-1,i=(t>>9&127)+1980,s=0,o=(e&31)*2,a=e>>5&63,l=e>>11&31;return new Date(i,n,r,l,a,o,s)}function vl(t){return t.indexOf("\\")!==-1?"invalid characters in fileName: "+t:/^[a-zA-Z]:/.test(t)||/^\//.test(t)?"absolute path: "+t:t.split("/").indexOf("..")!==-1?"invalid relative path: "+t:null}function Xe(t,e,r,n,i,s){if(n===0)return setImmediate(function(){s(null,oe(0))});t.read(e,r,n,i,function(o,a){if(o)return s(o);if(a<n)return s(new Error("unexpected EOF"));s()})}Fr.inherits(vt,_l);function vt(t){_l.call(this),this.actualByteCount=0,this.expectedByteCount=t}vt.prototype._transform=function(t,e,r){if(this.actualByteCount+=t.length,this.actualByteCount>this.expectedByteCount){var n="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return r(new Error(n))}r(null,t)};vt.prototype._flush=function(t){if(this.actualByteCount<this.expectedByteCount){var e="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return t(new Error(e))}t()};Fr.inherits(we,Pr);function we(){Pr.call(this),this.refCount=0}we.prototype.ref=function(){this.refCount+=1};we.prototype.unref=function(){var t=this;if(t.refCount-=1,t.refCount>0)return;if(t.refCount<0)throw new Error("invalid unref");t.close(e);function e(r){if(r)return t.emit("error",r);t.emit("close")}};we.prototype.createReadStream=function(t){var e=t.start,r=t.end;if(e===r){var n=new _i;return setImmediate(function(){n.end()}),n}var i=this._readStreamForRange(e,r),s=!1,o=new Lr(this);i.on("error",function(l){setImmediate(function(){s||o.emit("error",l)})}),o.destroy=function(){i.unpipe(o),o.unref(),i.destroy()};var a=new vt(r-e);return o.on("error",function(l){setImmediate(function(){s||a.emit("error",l)})}),a.destroy=function(){s=!0,o.unpipe(a),o.destroy()},i.pipe(o).pipe(a)};we.prototype._readStreamForRange=function(t,e){throw new Error("not implemented")};we.prototype.read=function(t,e,r,n,i){var s=this.createReadStream({start:n,end:n+r}),o=new Wh,a=0;o._write=function(l,c,u){l.copy(t,e+a,0,l.length),a+=l.length,u()},o.on("finish",i),s.on("error",function(l){i(l)}),s.pipe(o)};we.prototype.close=function(t){setImmediate(t)};Fr.inherits(Lr,_i);function Lr(t){_i.call(this),this.context=t,this.context.ref(),this.unreffedYet=!1}Lr.prototype._flush=function(t){this.unref(),t()};Lr.prototype.unref=function(t){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var zh="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0";function Rr(t,e,r,n){if(n)return t.toString("utf8",e,r);for(var i="",s=e;s<r;s++)i+=zh[t[s]];return i}function Ze(t,e){var r=t.readUInt32LE(e),n=t.readUInt32LE(e+4);return n*4294967296+r}var oe;typeof Buffer.allocUnsafe=="function"?oe=function(t){return Buffer.allocUnsafe(t)}:oe=function(t){return new Buffer(t)};function Tr(t){if(t)throw t}});var vi=p((Pg,Sl)=>{var te=za()("extract-zip"),{createWriteStream:Kh,promises:Qe}=require("fs"),Yh=al(),Fe=require("path"),{promisify:wi}=require("util"),Jh=require("stream"),Xh=El(),Zh=wi(Xh.open),Qh=wi(Jh.pipeline),xi=class{constructor(e,r){this.zipPath=e,this.opts=r}async extract(){return te("opening",this.zipPath,"with opts",this.opts),this.zipfile=await Zh(this.zipPath,{lazyEntries:!0}),this.canceled=!1,new Promise((e,r)=>{this.zipfile.on("error",n=>{this.canceled=!0,r(n)}),this.zipfile.readEntry(),this.zipfile.on("close",()=>{this.canceled||(te("zip extraction complete"),e())}),this.zipfile.on("entry",async n=>{if(this.canceled){te("skipping entry",n.fileName,{cancelled:this.canceled});return}if(te("zipfile entry",n.fileName),n.fileName.startsWith("__MACOSX/")){this.zipfile.readEntry();return}let i=Fe.dirname(Fe.join(this.opts.dir,n.fileName));try{await Qe.mkdir(i,{recursive:!0});let s=await Qe.realpath(i);if(Fe.relative(this.opts.dir,s).split(Fe.sep).includes(".."))throw new Error(`Out of bound path "${s}" found while processing file ${n.fileName}`);await this.extractEntry(n),te("finished processing",n.fileName),this.zipfile.readEntry()}catch(s){this.canceled=!0,this.zipfile.close(),r(s)}})})}async extractEntry(e){if(this.canceled){te("skipping entry extraction",e.fileName,{cancelled:this.canceled});return}this.opts.onEntry&&this.opts.onEntry(e,this.zipfile);let r=Fe.join(this.opts.dir,e.fileName),n=e.externalFileAttributes>>16&65535,i=61440,s=16384,a=(n&i)===40960,l=(n&i)===s;!l&&e.fileName.endsWith("/")&&(l=!0);let c=e.versionMadeBy>>8;l||(l=c===0&&e.externalFileAttributes===16),te("extracting entry",{filename:e.fileName,isDir:l,isSymlink:a});let u=this.getExtractedMode(n,l)&511,f=l?r:Fe.dirname(r),h={recursive:!0};if(l&&(h.mode=u),te("mkdir",{dir:f,...h}),await Qe.mkdir(f,h),l)return;te("opening read stream",r);let g=await wi(this.zipfile.openReadStream.bind(this.zipfile))(e);if(a){let m=await Yh(g);te("creating symlink",m,r),await Qe.symlink(m,r)}else await Qh(g,Kh(r,{mode:u}))}getExtractedMode(e,r){let n=e;return n===0&&(r?(this.opts.defaultDirMode&&(n=parseInt(this.opts.defaultDirMode,10)),n||(n=493)):(this.opts.defaultFileMode&&(n=parseInt(this.opts.defaultFileMode,10)),n||(n=420))),n}};Sl.exports=async function(t,e){if(te("creating target directory",e.dir),!Fe.isAbsolute(e.dir))throw new Error("Target directory is expected to be absolute");return await Qe.mkdir(e.dir,{recursive:!0}),e.dir=await Qe.realpath(e.dir),new xi(t,e).extract()}});var Ei=p((Lg,Cl)=>{"use strict";var ep=require("path"),kr=require("fs"),tp=JSON.stringify({AppSetup:{AppInstallRequired:!0,AutoMigrate:!1},ConnectionStrings:{DefaultConnection:"Server=localhost;Database=xframework_setup_placeholder;User Id=setup;Password=placeholder;TrustServerCertificate=True;MultipleActiveResultSets=True;",ReportingConnection:"",ReadOnlyConnection:""},Logging:{LogLevel:{Default:"Information","Microsoft.AspNetCore":"Warning"}},AllowedHosts:"*",Jwt:{Key:"xframework-developer-placeholder-key-minimum-32-chars!!",Issuer:"XFrameworkApi",ExpireDays:"1",RefreshDays:"7"},LoginToken:{SecretKey:"xframework-developer-login-token-secret-minimum-32-chars!!"},Cors:{AllowedOrigins:["http://localhost:5173","http://localhost:3000"],AllowedMethods:["GET","POST","PUT","DELETE","PATCH","OPTIONS"],AllowedHeaders:["Content-Type","Authorization","X-Requested-With","Accept"],AllowCredentials:!0,PreflightMaxAge:600,ExposedHeaders:["Content-Disposition"]},AWSVideoSettings:{S3Settings:{VideoBucketName:"",ProcessedVideoBucketName:"",Region:"us-east-1",AccessKey:"",SecretKey:""},LambdaSettings:{BackendApiKey:""}},Aws:{AccessKeyId:"placeholder",SecretAccessKey:"placeholder",Bucket:"placeholder",Region:"us-east-1",IsAwsEnabled:"False",PreviewUrlExpiryMinutes:15},AzureBlobStorage:{ConnectionString:"",ContainerName:""},AzureStorage:{ConnectionString:"",MemberPhotosContainer:"",BaseUrl:""},AzureDocumentIntelligence:{Endpoint:"",Key:""},CVSettings:{AzureVisionEndpoint:"",AzureVisionKey:"",StorageLocation:"",ChunkSize:1e3,ChunkOverlap:200,VectorDimensions:1536},AISettings:{MaxRetries:3,VerificationPromptTemplate:""},Firebase:{CredentialsFile:""},Stripe:{SecretKey:"",PublishableKey:"",WebhookSecret:""},Email:{From:"noreply@localhost",SmtpServer:"localhost",Port:587,Username:"placeholder",Password:"placeholder"},Twilio:{AccountSid:"placeholder",AuthToken:"placeholder",VerifySID:"placeholder"},TwilioConfiguration:{AccountSid:"placeholder",AuthToken:"placeholder",PhoneNumber:"placeholder"},TwoFactorAuthentication:{DefaultMethod:"Email"},RateLimiting:{Enabled:!1,DefaultPolicy:"General",Policies:{General:{Name:"General",PermitLimit:100,Window:"00:01:00",QueueLimit:2}},Redis:{ConnectionString:"",InstanceName:"RateLimit_"}},IdentityOptions:{Password:{RequiredLength:6,RequireLowercase:!1,RequireUppercase:!1,RequireNonAlphanumeric:!1,RequireDigit:!1},User:{RequireUniqueEmail:!0},SignIn:{RequireConfirmedEmail:!1},Register:{RequireRegisterConfirmedEmail:!1},AWSSettings:{IsAwsEnabled:!1,AccessKeyId:"",SecretAccessKey:"",Bucket:""}},SecurityHeaders:{AddXFrameOptions:!1,HstsEnabled:!1,CspMode:"frame-ancestors-only"},BaseConfiguration:{AppName:"xFramework",BaseUrl:"http://localhost:5000"},DataRetention:{DefaultUserRetentionDays:2555,BackgroundProcessingEnabled:!1,DefaultToDryRun:!0},Features:{SupportTickets:!1},OpenAIKey:"",BrianOpenAIKey:"",EncryptKey:"xframework-default-encrypt-key",SuperAdmin:"Operation - Admin",DefaultRole:"",DefaultRoleType:"Operation",DefaultTenant:"",TempToken:{ExpireMinutes:"10"},TempTokenMinutes:10,Roles:{DefaultId:"797b6cf7-1a2f-4933-addb-33b4c51a87aa",DefaultType:"Operation",CustomerRoleId:"3DD64000-A0CF-494B-B41E-5113CB92D22A"},SiteUrl:"",ApplicationUrl:"http://localhost:5000",AvatarUploadFolder:"profileImages",AwsConfiguration:{AccessKeyId:"placeholder",SecretAccessKey:"placeholder",Bucket:"placeholder",Region:"us-east-1",IsAwsEnabled:!1}},null,2),rp=new Set(["appsettings.Local.json","appsettings.Development.json","appsettings.Production.json","appsettings.HierarchyDefaults.json","appsettings.PIIRedaction.json"]);function np(t){let e=t.toLowerCase();return e.includes("firebase")||e.includes("adminsdk")||e==="google-services.json"||e.includes("googlecredential")}function ip(t){let e=0,r=0;function n(i){let s;try{s=kr.readdirSync(i)}catch{return}for(let o of s){let a=ep.join(i,o),l;try{l=kr.statSync(a)}catch{continue}if(l.isDirectory()){n(a);continue}if(o.endsWith(".json")){if(o==="appsettings.json")try{kr.writeFileSync(a,tp,"utf8"),e++}catch{}else if(rp.has(o)||np(o))try{kr.unlinkSync(a),r++}catch{}}}}return n(t),{replaced:e,deleted:r}}Cl.exports=ip});var Ii=p((Dg,Nl)=>{"use strict";var I=require("path"),S=require("fs"),Si=require("os"),{spawn:Rl}=require("child_process"),E=Z(),sp=ur(),op=ai(),Ci=require("crypto"),Tl=require("http"),Ai=require("https"),{readLicense:ap}=yt(),lp="http://localhost:5271";function Fl(t){try{let e=JSON.parse(Buffer.from(t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),"base64").toString("utf8"));return Array.isArray(e.domains)&&e.domains.length>0?e.domains.filter(Boolean):e.domain?[e.domain]:[]}catch{return[]}}function Al(t){let r=Fl(t)[0]||null;return new Promise(n=>{try{let i=new URL("/api/licenses/verify",lp),s=JSON.stringify({token:t,domain:r}),a=(i.protocol==="https:"?Ai:Tl).request({hostname:i.hostname,port:i.port||(i.protocol==="https:"?443:80),path:i.pathname,method:"POST",headers:{"Content-Type":"application/json","Content-Length":Buffer.byteLength(s)}},l=>{let c="";l.on("data",u=>{c+=u}),l.on("end",()=>{try{n(JSON.parse(c))}catch{n(null)}})});a.setTimeout(5e3,()=>{a.destroy(),n(null)}),a.on("error",()=>n(null)),a.write(s),a.end()}catch{n(null)}})}function cp(t){return new Promise(e=>{Tl.get(`http://127.0.0.1:${t}/api/v1.0/setup/status`,r=>{let n="";r.on("data",i=>{n+=i}),r.on("end",()=>{try{e(JSON.parse(n))}catch{e({isInstalled:!0})}})}).on("error",()=>e({isInstalled:!0}))})}function up(t,e){let r=t.database||{};return r.provider==="sqlserver"?`Server=${r.host},${r.port||1433};Database=${r.database};User Id=${r.username};Password=${r.password};TrustServerCertificate=True;MultipleActiveResultSets=True;`:r.provider==="postgresql"&&!r.embedded?`Host=${r.host};Port=${r.port||5432};Database=${r.database};Username=${r.username};Password=${r.password};SSL Mode=Prefer;`:`Host=127.0.0.1;Port=${Mr};Database=${Ll};Username=${Pl};Password=${e.pgPassword};SSL Mode=Disable;Persist Security Info=true;`}var G=I.join(Si.homedir(),".xFramework","instances","default"),Pe=I.join(G,"db"),Dr=I.join(G,"logs"),Ol=I.join(G,"data"),Nr=I.join(G,"secrets"),Oi=I.join(G,".env"),Et=I.join(G,"config.json"),fp=I.join(G,".pid"),Mr=54329,Pl="contentactive",Ll="contentactive",kl=I.resolve(__dirname,S.existsSync(I.join(__dirname,"dist"))?".":".."),kg=I.join(kl,"dist","api"),Dl=I.join(kl,"dist","ui");function dp(){[G,Pe,Dr,Ol,I.join(Ol,"backups"),Nr].forEach(t=>{S.existsSync(t)||S.mkdirSync(t,{recursive:!0})})}function hp(){if(S.existsSync(I.join(Nr,"master.key"))||S.writeFileSync(I.join(Nr,"master.key"),Ci.randomBytes(32).toString("hex"),"utf8"),!S.existsSync(Oi)){let t=Ci.randomBytes(32).toString("hex");S.writeFileSync(Oi,`# xFramework environment
40
+ `+s),t.push(i+"m+"+_r.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=ph()+e+" "+t[0]}function ph(){return q.inspectOpts.hideDate?"":new Date().toISOString()+" "}function gh(...t){return process.stderr.write(yr.formatWithOptions(q.inspectOpts,...t)+`
41
+ `)}function mh(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function yh(){return process.env.DEBUG}function _h(t){t.inspectOpts={};let e=Object.keys(q.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=q.inspectOpts[e[r]]}_r.exports=li()(q);var{formatters:Wa}=_r.exports;Wa.o=function(t){return this.inspectOpts.colors=this.useColors,yr.inspect(t,this.inspectOpts).split(`
42
+ `).map(e=>e.trim()).join(" ")};Wa.O=function(t){return this.inspectOpts.colors=this.useColors,yr.inspect(t,this.inspectOpts)}});var Ga=p((wg,ci)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ci.exports=Va():ci.exports=Ha()});var Ya=p((vg,Ka)=>{Ka.exports=za;function za(t,e){if(t&&e)return za(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var fi=p((Eg,ui)=>{var Ja=Ya();ui.exports=Ja(br);ui.exports.strict=Ja(Xa);br.proto=br(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return br(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Xa(this)},configurable:!0})});function br(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function Xa(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var el=p((Sg,Qa)=>{var bh=fi(),xh=function(){},wh=global.Bare?queueMicrotask:process.nextTick.bind(process),vh=function(t){return t.setHeader&&typeof t.abort=="function"},Eh=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},Za=function(t,e,r){if(typeof e=="function")return Za(t,null,e);e||(e={}),r=bh(r||xh);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,a=!1,l=function(){t.writable||c()},c=function(){o=!1,s||r.call(t)},u=function(){s=!1,o||r.call(t)},f=function(y){r.call(t,y?new Error("exited with error code: "+y):null)},h=function(y){r.call(t,y)},g=function(){wh(m)},m=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},d=function(){t.req.on("finish",c)};return vh(t)?(t.on("complete",c),t.on("abort",g),t.req?d():t.on("request",d)):o&&!n&&(t.on("end",l),t.on("close",l)),Eh(t)&&t.on("exit",f),t.on("end",u),t.on("finish",c),e.error!==!1&&t.on("error",h),t.on("close",g),function(){a=!0,t.removeListener("complete",c),t.removeListener("abort",g),t.removeListener("request",d),t.req&&t.req.removeListener("finish",c),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("exit",f),t.removeListener("end",u),t.removeListener("error",h),t.removeListener("close",g)}};Qa.exports=Za});var nl=p((Cg,rl)=>{var Sh=fi(),Ch=el(),xr;try{xr=require("fs")}catch{}var _t=function(){},Ah=typeof process>"u"?!1:/^v?\.0/.test(process.version),wr=function(t){return typeof t=="function"},Oh=function(t){return!Ah||!xr?!1:(t instanceof(xr.ReadStream||_t)||t instanceof(xr.WriteStream||_t))&&wr(t.close)},Ih=function(t){return t.setHeader&&wr(t.abort)},Rh=function(t,e,r,n){n=Sh(n);var i=!1;t.on("close",function(){i=!0}),Ch(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,Oh(t))return t.close(_t);if(Ih(t))return t.abort();if(wr(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},tl=function(t){t()},Th=function(t,e){return t.pipe(e)},Fh=function(){var t=Array.prototype.slice.call(arguments),e=wr(t[t.length-1]||_t)&&t.pop()||_t;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,a=s>0;return Rh(i,o,a,function(l){r||(r=l),l&&n.forEach(tl),!o&&(n.forEach(tl),e(r))})});return t.reduce(Th)};rl.exports=Fh});var sl=p((Ag,il)=>{"use strict";var{PassThrough:Ph}=require("stream");il.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new Ph({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",l=>{a.push(l),i?o=a.length:o+=l.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var ol=p((Og,Je)=>{"use strict";var{constants:Lh}=require("buffer"),kh=nl(),Dh=sl(),vr=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Er(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=Lh.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=kh(t,Dh(e),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new vr)})}),n.getBufferedValue()}Je.exports=Er;Je.exports.default=Er;Je.exports.buffer=(t,e)=>Er(t,{...e,encoding:"buffer"});Je.exports.array=(t,e)=>Er(t,{...e,array:!0});Je.exports.MaxBufferError=vr});var ul=p((Ig,cl)=>{cl.exports=Sr;function Sr(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}Sr.prototype.go=function(t){this.pending<this.max?ll(this,t):this.waiting.push(t)};Sr.prototype.wait=function(t){this.pending===0?t(this.error):this.listeners.push(t)};Sr.prototype.hold=function(){return al(this)};function al(t){t.pending+=1;var e=!1;return r;function r(i){if(e)throw new Error("callback called twice");if(e=!0,t.error=t.error||i,t.pending-=1,t.waiting.length>0&&t.pending<t.max)ll(t,t.waiting.shift());else if(t.pending===0){var s=t.listeners;t.listeners=[],s.forEach(n)}}function n(i){i(t.error)}}function ll(t,e){e(al(t))}});var dl=p(xt=>{var bt=require("fs"),Cr=require("util"),di=require("stream"),fl=di.Readable,hi=di.Writable,Nh=di.PassThrough,Mh=ul(),Ar=require("events").EventEmitter;xt.createFromBuffer=qh;xt.createFromFd=Bh;xt.BufferSlicer=ue;xt.FdSlicer=ce;Cr.inherits(ce,Ar);function ce(t,e){e=e||{},Ar.call(this),this.fd=t,this.pend=new Mh,this.pend.max=1,this.refCount=0,this.autoClose=!!e.autoClose}ce.prototype.read=function(t,e,r,n,i){var s=this;s.pend.go(function(o){bt.read(s.fd,t,e,r,n,function(a,l,c){o(),i(a,l,c)})})};ce.prototype.write=function(t,e,r,n,i){var s=this;s.pend.go(function(o){bt.write(s.fd,t,e,r,n,function(a,l,c){o(),i(a,l,c)})})};ce.prototype.createReadStream=function(t){return new Or(this,t)};ce.prototype.createWriteStream=function(t){return new Ir(this,t)};ce.prototype.ref=function(){this.refCount+=1};ce.prototype.unref=function(){var t=this;if(t.refCount-=1,t.refCount>0)return;if(t.refCount<0)throw new Error("invalid unref");t.autoClose&&bt.close(t.fd,e);function e(r){r?t.emit("error",r):t.emit("close")}};Cr.inherits(Or,fl);function Or(t,e){e=e||{},fl.call(this,e),this.context=t,this.context.ref(),this.start=e.start||0,this.endOffset=e.end,this.pos=this.start,this.destroyed=!1}Or.prototype._read=function(t){var e=this;if(!e.destroyed){var r=Math.min(e._readableState.highWaterMark,t);if(e.endOffset!=null&&(r=Math.min(r,e.endOffset-e.pos)),r<=0){e.destroyed=!0,e.push(null),e.context.unref();return}e.context.pend.go(function(n){if(e.destroyed)return n();var i=new Buffer(r);bt.read(e.context.fd,i,0,r,e.pos,function(s,o){s?e.destroy(s):o===0?(e.destroyed=!0,e.push(null),e.context.unref()):(e.pos+=o,e.push(i.slice(0,o))),n()})})}};Or.prototype.destroy=function(t){this.destroyed||(t=t||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",t),this.context.unref())};Cr.inherits(Ir,hi);function Ir(t,e){e=e||{},hi.call(this,e),this.context=t,this.context.ref(),this.start=e.start||0,this.endOffset=e.end==null?1/0:+e.end,this.bytesWritten=0,this.pos=this.start,this.destroyed=!1,this.on("finish",this.destroy.bind(this))}Ir.prototype._write=function(t,e,r){var n=this;if(!n.destroyed){if(n.pos+t.length>n.endOffset){var i=new Error("maximum file length exceeded");i.code="ETOOBIG",n.destroy(),r(i);return}n.context.pend.go(function(s){if(n.destroyed)return s();bt.write(n.context.fd,t,0,t.length,n.pos,function(o,a){o?(n.destroy(),s(),r(o)):(n.bytesWritten+=a,n.pos+=a,n.emit("progress"),s(),r())})})}};Ir.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())};Cr.inherits(ue,Ar);function ue(t,e){Ar.call(this),e=e||{},this.refCount=0,this.buffer=t,this.maxChunkSize=e.maxChunkSize||Number.MAX_SAFE_INTEGER}ue.prototype.read=function(t,e,r,n,i){var s=n+r,o=s-this.buffer.length,a=o>0?o:r;this.buffer.copy(t,e,n,s),setImmediate(function(){i(null,a)})};ue.prototype.write=function(t,e,r,n,i){t.copy(this.buffer,n,e,e+r),setImmediate(function(){i(null,r,t)})};ue.prototype.createReadStream=function(t){t=t||{};var e=new Nh(t);e.destroyed=!1,e.start=t.start||0,e.endOffset=t.end,e.pos=e.endOffset||this.buffer.length;for(var r=this.buffer.slice(e.start,e.pos),n=0;;){var i=n+this.maxChunkSize;if(i>=r.length){n<r.length&&e.write(r.slice(n,r.length));break}e.write(r.slice(n,i)),n=i}return e.end(),e.destroy=function(){e.destroyed=!0},e};ue.prototype.createWriteStream=function(t){var e=this;t=t||{};var r=new hi(t);return r.start=t.start||0,r.endOffset=t.end==null?this.buffer.length:+t.end,r.bytesWritten=0,r.pos=r.start,r.destroyed=!1,r._write=function(n,i,s){if(!r.destroyed){var o=r.pos+n.length;if(o>r.endOffset){var a=new Error("maximum file length exceeded");a.code="ETOOBIG",r.destroyed=!0,s(a);return}n.copy(e.buffer,r.pos,0,n.length),r.bytesWritten+=n.length,r.pos=o,r.emit("progress"),s()}},r.destroy=function(){r.destroyed=!0},r};ue.prototype.ref=function(){this.refCount+=1};ue.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")};function qh(t,e){return new ue(t,e)}function Bh(t,e){return new ce(t,e)}});var gl=p((Tg,pl)=>{var be=require("buffer").Buffer,pi=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(pi=new Int32Array(pi));function hl(t){if(be.isBuffer(t))return t;var e=typeof be.alloc=="function"&&typeof be.from=="function";if(typeof t=="number")return e?be.alloc(t):new be(t);if(typeof t=="string")return e?be.from(t):new be(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function jh(t){var e=hl(4);return e.writeInt32BE(t,0),e}function gi(t,e){t=hl(t),be.isBuffer(e)&&(e=e.readUInt32BE(0));for(var r=~~e^-1,n=0;n<t.length;n++)r=pi[(r^t[n])&255]^r>>>8;return r^-1}function mi(){return jh(gi.apply(null,arguments))}mi.signed=function(){return gi.apply(null,arguments)};mi.unsigned=function(){return gi.apply(null,arguments)>>>0};pl.exports=mi});var vl=p(oe=>{var yi=require("fs"),$h=require("zlib"),ml=dl(),Uh=gl(),Fr=require("util"),Pr=require("events").EventEmitter,yl=require("stream").Transform,_i=require("stream").PassThrough,Vh=require("stream").Writable;oe.open=Wh;oe.fromFd=_l;oe.fromBuffer=Hh;oe.fromRandomAccessReader=bi;oe.dosDateTimeToDate=xl;oe.validateFileName=wl;oe.ZipFile=xe;oe.Entry=wt;oe.RandomAccessReader=we;function Wh(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose==null&&(e.autoClose=!0),e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1),r==null&&(r=Tr),yi.open(t,"r",function(n,i){if(n)return r(n);_l(i,e,function(s,o){s&&yi.close(i,Tr),r(s,o)})})}function _l(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose==null&&(e.autoClose=!1),e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1),r==null&&(r=Tr),yi.fstat(t,function(n,i){if(n)return r(n);var s=ml.createFromFd(t,{autoClose:!0});bi(s,i.size,e,r)})}function Hh(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose=!1,e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1);var n=ml.createFromBuffer(t,{maxChunkSize:65536});bi(n,t.length,e,r)}function bi(t,e,r,n){typeof r=="function"&&(n=r,r=null),r==null&&(r={}),r.autoClose==null&&(r.autoClose=!0),r.lazyEntries==null&&(r.lazyEntries=!1),r.decodeStrings==null&&(r.decodeStrings=!0);var i=!!r.decodeStrings;if(r.validateEntrySizes==null&&(r.validateEntrySizes=!0),r.strictFileNames==null&&(r.strictFileNames=!1),n==null&&(n=Tr),typeof e!="number")throw new Error("expected totalSize parameter to be a number");if(e>Number.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");t.ref();var s=22,o=65535,a=Math.min(s+o,e),l=se(a),c=e-l.length;Xe(t,l,0,a,c,function(u){if(u)return n(u);for(var f=a-s;f>=0;f-=1)if(l.readUInt32LE(f)===101010256){var h=l.slice(f),g=h.readUInt16LE(4);if(g!==0)return n(new Error("multi-disk zip files are not supported: found disk number: "+g));var m=h.readUInt16LE(10),d=h.readUInt32LE(16),y=h.readUInt16LE(20),_=h.length-s;if(y!==_)return n(new Error("invalid comment length. expected: "+_+". found: "+y));var v=i?Rr(h,22,h.length,!1):h.slice(22);if(!(m===65535||d===4294967295))return n(null,new xe(t,d,e,m,v,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames));var F=se(20),$=c+f-F.length;Xe(t,F,0,F.length,$,function(G){if(G)return n(G);if(F.readUInt32LE(0)!==117853008)return n(new Error("invalid zip64 end of central directory locator signature"));var fe=Ze(F,8),R=se(56);Xe(t,R,0,R.length,fe,function(j){return j?n(j):R.readUInt32LE(0)!==101075792?n(new Error("invalid zip64 end of central directory record signature")):(m=Ze(R,32),d=Ze(R,48),n(null,new xe(t,d,e,m,v,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames)))})});return}n(new Error("end of central directory record signature not found"))})}Fr.inherits(xe,Pr);function xe(t,e,r,n,i,s,o,a,l,c){var u=this;Pr.call(u),u.reader=t,u.reader.on("error",function(f){bl(u,f)}),u.reader.once("close",function(){u.emit("close")}),u.readEntryCursor=e,u.fileSize=r,u.entryCount=n,u.comment=i,u.entriesRead=0,u.autoClose=!!s,u.lazyEntries=!!o,u.decodeStrings=!!a,u.validateEntrySizes=!!l,u.strictFileNames=!!c,u.isOpen=!0,u.emittedError=!1,u.lazyEntries||u._readEntry()}xe.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.reader.unref())};function Q(t,e){t.autoClose&&t.close(),bl(t,e)}function bl(t,e){t.emittedError||(t.emittedError=!0,t.emit("error",e))}xe.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};xe.prototype._readEntry=function(){var t=this;if(t.entryCount===t.entriesRead){setImmediate(function(){t.autoClose&&t.close(),!t.emittedError&&t.emit("end")});return}if(!t.emittedError){var e=se(46);Xe(t.reader,e,0,e.length,t.readEntryCursor,function(r){if(r)return Q(t,r);if(!t.emittedError){var n=new wt,i=e.readUInt32LE(0);if(i!==33639248)return Q(t,new Error("invalid central directory file header signature: 0x"+i.toString(16)));if(n.versionMadeBy=e.readUInt16LE(4),n.versionNeededToExtract=e.readUInt16LE(6),n.generalPurposeBitFlag=e.readUInt16LE(8),n.compressionMethod=e.readUInt16LE(10),n.lastModFileTime=e.readUInt16LE(12),n.lastModFileDate=e.readUInt16LE(14),n.crc32=e.readUInt32LE(16),n.compressedSize=e.readUInt32LE(20),n.uncompressedSize=e.readUInt32LE(24),n.fileNameLength=e.readUInt16LE(28),n.extraFieldLength=e.readUInt16LE(30),n.fileCommentLength=e.readUInt16LE(32),n.internalFileAttributes=e.readUInt16LE(36),n.externalFileAttributes=e.readUInt32LE(38),n.relativeOffsetOfLocalHeader=e.readUInt32LE(42),n.generalPurposeBitFlag&64)return Q(t,new Error("strong encryption is not supported"));t.readEntryCursor+=46,e=se(n.fileNameLength+n.extraFieldLength+n.fileCommentLength),Xe(t.reader,e,0,e.length,t.readEntryCursor,function(s){if(s)return Q(t,s);if(!t.emittedError){var o=(n.generalPurposeBitFlag&2048)!==0;n.fileName=t.decodeStrings?Rr(e,0,n.fileNameLength,o):e.slice(0,n.fileNameLength);var a=n.fileNameLength+n.extraFieldLength,l=e.slice(n.fileNameLength,a);n.extraFields=[];for(var c=0;c<l.length-3;){var u=l.readUInt16LE(c+0),f=l.readUInt16LE(c+2),h=c+4,g=h+f;if(g>l.length)return Q(t,new Error("extra field length exceeds extra field buffer size"));var m=se(f);l.copy(m,0,h,g),n.extraFields.push({id:u,data:m}),c=g}if(n.fileComment=t.decodeStrings?Rr(e,a,a+n.fileCommentLength,o):e.slice(a,a+n.fileCommentLength),n.comment=n.fileComment,t.readEntryCursor+=e.length,t.entriesRead+=1,n.uncompressedSize===4294967295||n.compressedSize===4294967295||n.relativeOffsetOfLocalHeader===4294967295){for(var d=null,c=0;c<n.extraFields.length;c++){var y=n.extraFields[c];if(y.id===1){d=y.data;break}}if(d==null)return Q(t,new Error("expected zip64 extended information extra field"));var _=0;if(n.uncompressedSize===4294967295){if(_+8>d.length)return Q(t,new Error("zip64 extended information extra field does not include uncompressed size"));n.uncompressedSize=Ze(d,_),_+=8}if(n.compressedSize===4294967295){if(_+8>d.length)return Q(t,new Error("zip64 extended information extra field does not include compressed size"));n.compressedSize=Ze(d,_),_+=8}if(n.relativeOffsetOfLocalHeader===4294967295){if(_+8>d.length)return Q(t,new Error("zip64 extended information extra field does not include relative header offset"));n.relativeOffsetOfLocalHeader=Ze(d,_),_+=8}}if(t.decodeStrings)for(var c=0;c<n.extraFields.length;c++){var y=n.extraFields[c];if(y.id===28789){if(y.data.length<6||y.data.readUInt8(0)!==1)continue;var v=y.data.readUInt32LE(1);if(Uh.unsigned(e.slice(0,n.fileNameLength))!==v)continue;n.fileName=Rr(y.data,5,y.data.length,!0);break}}if(t.validateEntrySizes&&n.compressionMethod===0){var F=n.uncompressedSize;if(n.isEncrypted()&&(F+=12),n.compressedSize!==F){var $="compressed/uncompressed size mismatch for stored file: "+n.compressedSize+" != "+n.uncompressedSize;return Q(t,new Error($))}}if(t.decodeStrings){t.strictFileNames||(n.fileName=n.fileName.replace(/\\/g,"/"));var G=wl(n.fileName,t.validateFileNameOptions);if(G!=null)return Q(t,new Error(G))}t.emit("entry",n),t.lazyEntries||t._readEntry()}})}})}};xe.prototype.openReadStream=function(t,e,r){var n=this,i=0,s=t.compressedSize;if(r==null)r=e,e={};else{if(e.decrypt!=null){if(!t.isEncrypted())throw new Error("options.decrypt can only be specified for encrypted entries");if(e.decrypt!==!1)throw new Error("invalid options.decrypt value: "+e.decrypt);if(t.isCompressed()&&e.decompress!==!1)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}if(e.decompress!=null){if(!t.isCompressed())throw new Error("options.decompress can only be specified for compressed entries");if(!(e.decompress===!1||e.decompress===!0))throw new Error("invalid options.decompress value: "+e.decompress)}if(e.start!=null||e.end!=null){if(t.isCompressed()&&e.decompress!==!1)throw new Error("start/end range not allowed for compressed entry without options.decompress === false");if(t.isEncrypted()&&e.decrypt!==!1)throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}if(e.start!=null){if(i=e.start,i<0)throw new Error("options.start < 0");if(i>t.compressedSize)throw new Error("options.start > entry.compressedSize")}if(e.end!=null){if(s=e.end,s<0)throw new Error("options.end < 0");if(s>t.compressedSize)throw new Error("options.end > entry.compressedSize");if(s<i)throw new Error("options.end < options.start")}}if(!n.isOpen)return r(new Error("closed"));if(t.isEncrypted()&&e.decrypt!==!1)return r(new Error("entry is encrypted, and options.decrypt !== false"));n.reader.ref();var o=se(30);Xe(n.reader,o,0,o.length,t.relativeOffsetOfLocalHeader,function(a){try{if(a)return r(a);var l=o.readUInt32LE(0);if(l!==67324752)return r(new Error("invalid local file header signature: 0x"+l.toString(16)));var c=o.readUInt16LE(26),u=o.readUInt16LE(28),f=t.relativeOffsetOfLocalHeader+o.length+c+u,h;if(t.compressionMethod===0)h=!1;else if(t.compressionMethod===8)h=e.decompress!=null?e.decompress:!0;else return r(new Error("unsupported compression method: "+t.compressionMethod));var g=f,m=g+t.compressedSize;if(t.compressedSize!==0&&m>n.fileSize)return r(new Error("file data overflows file bounds: "+g+" + "+t.compressedSize+" > "+n.fileSize));var d=n.reader.createReadStream({start:g+i,end:g+s}),y=d;if(h){var _=!1,v=$h.createInflateRaw();d.on("error",function(F){setImmediate(function(){_||v.emit("error",F)})}),d.pipe(v),n.validateEntrySizes?(y=new vt(t.uncompressedSize),v.on("error",function(F){setImmediate(function(){_||y.emit("error",F)})}),v.pipe(y)):y=v,y.destroy=function(){_=!0,v!==y&&v.unpipe(y),d.unpipe(v),d.destroy()}}r(null,y)}finally{n.reader.unref()}})};function wt(){}wt.prototype.getLastModDate=function(){return xl(this.lastModFileDate,this.lastModFileTime)};wt.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};wt.prototype.isCompressed=function(){return this.compressionMethod===8};function xl(t,e){var r=t&31,n=(t>>5&15)-1,i=(t>>9&127)+1980,s=0,o=(e&31)*2,a=e>>5&63,l=e>>11&31;return new Date(i,n,r,l,a,o,s)}function wl(t){return t.indexOf("\\")!==-1?"invalid characters in fileName: "+t:/^[a-zA-Z]:/.test(t)||/^\//.test(t)?"absolute path: "+t:t.split("/").indexOf("..")!==-1?"invalid relative path: "+t:null}function Xe(t,e,r,n,i,s){if(n===0)return setImmediate(function(){s(null,se(0))});t.read(e,r,n,i,function(o,a){if(o)return s(o);if(a<n)return s(new Error("unexpected EOF"));s()})}Fr.inherits(vt,yl);function vt(t){yl.call(this),this.actualByteCount=0,this.expectedByteCount=t}vt.prototype._transform=function(t,e,r){if(this.actualByteCount+=t.length,this.actualByteCount>this.expectedByteCount){var n="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return r(new Error(n))}r(null,t)};vt.prototype._flush=function(t){if(this.actualByteCount<this.expectedByteCount){var e="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return t(new Error(e))}t()};Fr.inherits(we,Pr);function we(){Pr.call(this),this.refCount=0}we.prototype.ref=function(){this.refCount+=1};we.prototype.unref=function(){var t=this;if(t.refCount-=1,t.refCount>0)return;if(t.refCount<0)throw new Error("invalid unref");t.close(e);function e(r){if(r)return t.emit("error",r);t.emit("close")}};we.prototype.createReadStream=function(t){var e=t.start,r=t.end;if(e===r){var n=new _i;return setImmediate(function(){n.end()}),n}var i=this._readStreamForRange(e,r),s=!1,o=new Lr(this);i.on("error",function(l){setImmediate(function(){s||o.emit("error",l)})}),o.destroy=function(){i.unpipe(o),o.unref(),i.destroy()};var a=new vt(r-e);return o.on("error",function(l){setImmediate(function(){s||a.emit("error",l)})}),a.destroy=function(){s=!0,o.unpipe(a),o.destroy()},i.pipe(o).pipe(a)};we.prototype._readStreamForRange=function(t,e){throw new Error("not implemented")};we.prototype.read=function(t,e,r,n,i){var s=this.createReadStream({start:n,end:n+r}),o=new Vh,a=0;o._write=function(l,c,u){l.copy(t,e+a,0,l.length),a+=l.length,u()},o.on("finish",i),s.on("error",function(l){i(l)}),s.pipe(o)};we.prototype.close=function(t){setImmediate(t)};Fr.inherits(Lr,_i);function Lr(t){_i.call(this),this.context=t,this.context.ref(),this.unreffedYet=!1}Lr.prototype._flush=function(t){this.unref(),t()};Lr.prototype.unref=function(t){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var Gh="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0";function Rr(t,e,r,n){if(n)return t.toString("utf8",e,r);for(var i="",s=e;s<r;s++)i+=Gh[t[s]];return i}function Ze(t,e){var r=t.readUInt32LE(e),n=t.readUInt32LE(e+4);return n*4294967296+r}var se;typeof Buffer.allocUnsafe=="function"?se=function(t){return Buffer.allocUnsafe(t)}:se=function(t){return new Buffer(t)};function Tr(t){if(t)throw t}});var vi=p((Pg,El)=>{var ee=Ga()("extract-zip"),{createWriteStream:zh,promises:Qe}=require("fs"),Kh=ol(),Fe=require("path"),{promisify:wi}=require("util"),Yh=require("stream"),Jh=vl(),Xh=wi(Jh.open),Zh=wi(Yh.pipeline),xi=class{constructor(e,r){this.zipPath=e,this.opts=r}async extract(){return ee("opening",this.zipPath,"with opts",this.opts),this.zipfile=await Xh(this.zipPath,{lazyEntries:!0}),this.canceled=!1,new Promise((e,r)=>{this.zipfile.on("error",n=>{this.canceled=!0,r(n)}),this.zipfile.readEntry(),this.zipfile.on("close",()=>{this.canceled||(ee("zip extraction complete"),e())}),this.zipfile.on("entry",async n=>{if(this.canceled){ee("skipping entry",n.fileName,{cancelled:this.canceled});return}if(ee("zipfile entry",n.fileName),n.fileName.startsWith("__MACOSX/")){this.zipfile.readEntry();return}let i=Fe.dirname(Fe.join(this.opts.dir,n.fileName));try{await Qe.mkdir(i,{recursive:!0});let s=await Qe.realpath(i);if(Fe.relative(this.opts.dir,s).split(Fe.sep).includes(".."))throw new Error(`Out of bound path "${s}" found while processing file ${n.fileName}`);await this.extractEntry(n),ee("finished processing",n.fileName),this.zipfile.readEntry()}catch(s){this.canceled=!0,this.zipfile.close(),r(s)}})})}async extractEntry(e){if(this.canceled){ee("skipping entry extraction",e.fileName,{cancelled:this.canceled});return}this.opts.onEntry&&this.opts.onEntry(e,this.zipfile);let r=Fe.join(this.opts.dir,e.fileName),n=e.externalFileAttributes>>16&65535,i=61440,s=16384,a=(n&i)===40960,l=(n&i)===s;!l&&e.fileName.endsWith("/")&&(l=!0);let c=e.versionMadeBy>>8;l||(l=c===0&&e.externalFileAttributes===16),ee("extracting entry",{filename:e.fileName,isDir:l,isSymlink:a});let u=this.getExtractedMode(n,l)&511,f=l?r:Fe.dirname(r),h={recursive:!0};if(l&&(h.mode=u),ee("mkdir",{dir:f,...h}),await Qe.mkdir(f,h),l)return;ee("opening read stream",r);let g=await wi(this.zipfile.openReadStream.bind(this.zipfile))(e);if(a){let m=await Kh(g);ee("creating symlink",m,r),await Qe.symlink(m,r)}else await Zh(g,zh(r,{mode:u}))}getExtractedMode(e,r){let n=e;return n===0&&(r?(this.opts.defaultDirMode&&(n=parseInt(this.opts.defaultDirMode,10)),n||(n=493)):(this.opts.defaultFileMode&&(n=parseInt(this.opts.defaultFileMode,10)),n||(n=420))),n}};El.exports=async function(t,e){if(ee("creating target directory",e.dir),!Fe.isAbsolute(e.dir))throw new Error("Target directory is expected to be absolute");return await Qe.mkdir(e.dir,{recursive:!0}),e.dir=await Qe.realpath(e.dir),new xi(t,e).extract()}});var Ei=p((Lg,Sl)=>{"use strict";var Qh=require("path"),kr=require("fs"),ep=JSON.stringify({AppSetup:{AppInstallRequired:!0,AutoMigrate:!1},ConnectionStrings:{DefaultConnection:"Server=localhost;Database=xframework_setup_placeholder;User Id=setup;Password=placeholder;TrustServerCertificate=True;MultipleActiveResultSets=True;",ReportingConnection:"",ReadOnlyConnection:""},Logging:{LogLevel:{Default:"Information","Microsoft.AspNetCore":"Warning"}},AllowedHosts:"*",Jwt:{Key:"xframework-developer-placeholder-key-minimum-32-chars!!",Issuer:"XFrameworkApi",ExpireDays:"1",RefreshDays:"7"},LoginToken:{SecretKey:"xframework-developer-login-token-secret-minimum-32-chars!!"},Cors:{AllowedOrigins:["http://localhost:5173","http://localhost:3000"],AllowedMethods:["GET","POST","PUT","DELETE","PATCH","OPTIONS"],AllowedHeaders:["Content-Type","Authorization","X-Requested-With","Accept"],AllowCredentials:!0,PreflightMaxAge:600,ExposedHeaders:["Content-Disposition"]},AWSVideoSettings:{S3Settings:{VideoBucketName:"",ProcessedVideoBucketName:"",Region:"us-east-1",AccessKey:"",SecretKey:""},LambdaSettings:{BackendApiKey:""}},Aws:{AccessKeyId:"placeholder",SecretAccessKey:"placeholder",Bucket:"placeholder",Region:"us-east-1",IsAwsEnabled:"False",PreviewUrlExpiryMinutes:15},AzureBlobStorage:{ConnectionString:"",ContainerName:""},AzureStorage:{ConnectionString:"",MemberPhotosContainer:"",BaseUrl:""},AzureDocumentIntelligence:{Endpoint:"",Key:""},CVSettings:{AzureVisionEndpoint:"",AzureVisionKey:"",StorageLocation:"",ChunkSize:1e3,ChunkOverlap:200,VectorDimensions:1536},AISettings:{MaxRetries:3,VerificationPromptTemplate:""},Firebase:{CredentialsFile:""},Stripe:{SecretKey:"",PublishableKey:"",WebhookSecret:""},Email:{From:"noreply@localhost",SmtpServer:"localhost",Port:587,Username:"placeholder",Password:"placeholder"},Twilio:{AccountSid:"placeholder",AuthToken:"placeholder",VerifySID:"placeholder"},TwilioConfiguration:{AccountSid:"placeholder",AuthToken:"placeholder",PhoneNumber:"placeholder"},TwoFactorAuthentication:{DefaultMethod:"Email"},RateLimiting:{Enabled:!1,DefaultPolicy:"General",Policies:{General:{Name:"General",PermitLimit:100,Window:"00:01:00",QueueLimit:2}},Redis:{ConnectionString:"",InstanceName:"RateLimit_"}},IdentityOptions:{Password:{RequiredLength:6,RequireLowercase:!1,RequireUppercase:!1,RequireNonAlphanumeric:!1,RequireDigit:!1},User:{RequireUniqueEmail:!0},SignIn:{RequireConfirmedEmail:!1},Register:{RequireRegisterConfirmedEmail:!1},AWSSettings:{IsAwsEnabled:!1,AccessKeyId:"",SecretAccessKey:"",Bucket:""}},SecurityHeaders:{AddXFrameOptions:!1,HstsEnabled:!1,CspMode:"frame-ancestors-only"},BaseConfiguration:{AppName:"xFramework",BaseUrl:"http://localhost:5000"},DataRetention:{DefaultUserRetentionDays:2555,BackgroundProcessingEnabled:!1,DefaultToDryRun:!0},Features:{SupportTickets:!1},OpenAIKey:"",BrianOpenAIKey:"",EncryptKey:"xframework-default-encrypt-key",SuperAdmin:"Operation - Admin",DefaultRole:"",DefaultRoleType:"Operation",DefaultTenant:"",TempToken:{ExpireMinutes:"10"},TempTokenMinutes:10,Roles:{DefaultId:"797b6cf7-1a2f-4933-addb-33b4c51a87aa",DefaultType:"Operation",CustomerRoleId:"3DD64000-A0CF-494B-B41E-5113CB92D22A"},SiteUrl:"",ApplicationUrl:"http://localhost:5000",AvatarUploadFolder:"profileImages",AwsConfiguration:{AccessKeyId:"placeholder",SecretAccessKey:"placeholder",Bucket:"placeholder",Region:"us-east-1",IsAwsEnabled:!1}},null,2),tp=new Set(["appsettings.Local.json","appsettings.Development.json","appsettings.Production.json","appsettings.HierarchyDefaults.json","appsettings.PIIRedaction.json"]);function rp(t){let e=t.toLowerCase();return e.includes("firebase")||e.includes("adminsdk")||e==="google-services.json"||e.includes("googlecredential")}function np(t){let e=0,r=0;function n(i){let s;try{s=kr.readdirSync(i)}catch{return}for(let o of s){let a=Qh.join(i,o),l;try{l=kr.statSync(a)}catch{continue}if(l.isDirectory()){n(a);continue}if(o.endsWith(".json")){if(o==="appsettings.json")try{kr.writeFileSync(a,ep,"utf8"),e++}catch{}else if(tp.has(o)||rp(o))try{kr.unlinkSync(a),r++}catch{}}}}return n(t),{replaced:e,deleted:r}}Sl.exports=np});var Ii=p((Dg,Dl)=>{"use strict";var I=require("path"),S=require("fs"),Si=require("os"),{spawn:Il}=require("child_process"),E=X(),ip=ur(),sp=ai(),Ci=require("crypto"),Rl=require("http"),Ai=require("https"),{readLicense:op}=yt(),ap="http://localhost:5271";function Tl(t){try{let e=JSON.parse(Buffer.from(t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),"base64").toString("utf8"));return Array.isArray(e.domains)&&e.domains.length>0?e.domains.filter(Boolean):e.domain?[e.domain]:[]}catch{return[]}}function Cl(t){let r=Tl(t)[0]||null;return new Promise(n=>{try{let i=new URL("/api/licenses/verify",ap),s=JSON.stringify({token:t,domain:r}),a=(i.protocol==="https:"?Ai:Rl).request({hostname:i.hostname,port:i.port||(i.protocol==="https:"?443:80),path:i.pathname,method:"POST",headers:{"Content-Type":"application/json","Content-Length":Buffer.byteLength(s)}},l=>{let c="";l.on("data",u=>{c+=u}),l.on("end",()=>{try{n(JSON.parse(c))}catch{n(null)}})});a.setTimeout(5e3,()=>{a.destroy(),n(null)}),a.on("error",()=>n(null)),a.write(s),a.end()}catch{n(null)}})}function lp(t){return new Promise(e=>{Rl.get(`http://127.0.0.1:${t}/api/v1.0/setup/status`,r=>{let n="";r.on("data",i=>{n+=i}),r.on("end",()=>{try{e(JSON.parse(n))}catch{e({isInstalled:!0})}})}).on("error",()=>e({isInstalled:!0}))})}function cp(t,e){let r=t.database||{};return r.provider==="sqlserver"?`Server=${r.host},${r.port||1433};Database=${r.database};User Id=${r.username};Password=${r.password};TrustServerCertificate=True;MultipleActiveResultSets=True;`:r.provider==="postgresql"&&!r.embedded?`Host=${r.host};Port=${r.port||5432};Database=${r.database};Username=${r.username};Password=${r.password};SSL Mode=Prefer;`:`Host=127.0.0.1;Port=${Mr};Database=${Pl};Username=${Fl};Password=${e.pgPassword};SSL Mode=Disable;Persist Security Info=true;`}var H=I.join(Si.homedir(),".xFramework","instances","default"),Pe=I.join(H,"db"),Dr=I.join(H,"logs"),Al=I.join(H,"data"),Nr=I.join(H,"secrets"),Oi=I.join(H,".env"),Et=I.join(H,"config.json"),up=I.join(H,".pid"),Mr=54329,Fl="contentactive",Pl="contentactive",Ll=I.resolve(__dirname,S.existsSync(I.join(__dirname,"dist"))?".":".."),kg=I.join(Ll,"dist","api"),kl=I.join(Ll,"dist","ui");function fp(){[H,Pe,Dr,Al,I.join(Al,"backups"),Nr].forEach(t=>{S.existsSync(t)||S.mkdirSync(t,{recursive:!0})})}function dp(){if(S.existsSync(I.join(Nr,"master.key"))||S.writeFileSync(I.join(Nr,"master.key"),Ci.randomBytes(32).toString("hex"),"utf8"),!S.existsSync(Oi)){let t=Ci.randomBytes(32).toString("hex");S.writeFileSync(Oi,`# xFramework environment
43
43
  CA_JWT_SECRET=${t}
44
- `,"utf8")}}function pp(){let t=S.readFileSync(I.join(Nr,"master.key"),"utf8").trim(),r=S.readFileSync(Oi,"utf8").match(/CA_JWT_SECRET=(.+)/);return{masterKey:t,pgPassword:t.slice(0,32),jwtSecret:r?r[1].trim():Ci.randomBytes(32).toString("hex")}}function gp(t){if(!S.existsSync(Et)){let e={app:{companyName:"My Company",primaryColor:"#FF5733",timezone:"America/New_York"},server:{port:parseInt(t),host:"127.0.0.1"},database:{provider:"postgresql",embedded:!0},integrations:{googleClientId:"",microsoftClientId:"",microsoftLogin:"",googleMapsApiKey:"",auth0Domain:"",auth0ClientId:"",aiVisionBaseUrl:"",brainServiceKey:"",cmsPageId:"",cmsSiteId:""},features:{crm:!0,cms:!0,events:!0,training:!0,timesheets:!0,reports:!0,supportTickets:!0},backup:{enabled:!0,intervalMinutes:60,retentionDays:30}};S.writeFileSync(Et,JSON.stringify(e,null,2),"utf8")}return JSON.parse(S.readFileSync(Et,"utf8"))}function Il(t,e){let r=I.join(Dl,"config.js");if(!S.existsSync(r))return;let n=t||{type:"community",company:"",isLicensed:!1},i=n.expiresAt?n.expiresAt.toISOString():"",s=e?.integrations||{},o=[];if(n.isLicensed)try{let l=S.readFileSync(I.join(G,"license.key"),"utf8").trim();o=Fl(l)}catch{}let a=`window.RUNTIME_CONFIG = {
44
+ `,"utf8")}}function hp(){let t=S.readFileSync(I.join(Nr,"master.key"),"utf8").trim(),r=S.readFileSync(Oi,"utf8").match(/CA_JWT_SECRET=(.+)/);return{masterKey:t,pgPassword:t.slice(0,32),jwtSecret:r?r[1].trim():Ci.randomBytes(32).toString("hex")}}function pp(t){if(!S.existsSync(Et)){let e={app:{companyName:"My Company",primaryColor:"#FF5733",timezone:"America/New_York"},server:{port:parseInt(t),host:"127.0.0.1"},database:{provider:"postgresql",embedded:!0},integrations:{googleClientId:"",microsoftClientId:"",microsoftLogin:"",googleMapsApiKey:"",auth0Domain:"",auth0ClientId:"",aiVisionBaseUrl:"",brainServiceKey:"",cmsPageId:"",cmsSiteId:""},features:{crm:!0,cms:!0,events:!0,training:!0,timesheets:!0,reports:!0,supportTickets:!0},backup:{enabled:!0,intervalMinutes:60,retentionDays:30}};S.writeFileSync(Et,JSON.stringify(e,null,2),"utf8")}return JSON.parse(S.readFileSync(Et,"utf8"))}function Ol(t,e){let r=I.join(kl,"config.js");if(!S.existsSync(r))return;let n=t||{type:"community",company:"",isLicensed:!1},i=n.expiresAt?n.expiresAt.toISOString():"",s=e?.integrations||{},o=[];if(n.isLicensed)try{let l=S.readFileSync(I.join(H,"license.key"),"utf8").trim();o=Tl(l)}catch{}let a=`window.RUNTIME_CONFIG = {
45
45
  VITE_APP_BASE: "Embedded",
46
46
  VITE_API_BASE_URL: "",
47
47
  VITE_SETUP_MODE: "manager",
@@ -61,15 +61,13 @@ CA_JWT_SECRET=${t}
61
61
  VITE_LICENSE_DAYS_REMAINING: "${n.daysRemaining!=null?n.daysRemaining:""}",
62
62
  VITE_LICENSE_DOMAINS: ${JSON.stringify(o)},
63
63
  };
64
- `;S.writeFileSync(r,a,"utf8")}async function mp(t,e){t.text="Starting database...";let r=await import("embedded-postgres"),n=r.default||r,i=new n({databaseDir:Pe,user:Pl,password:e,port:Mr,persistent:!0});if(S.existsSync(I.join(Pe,"PG_VERSION"))||(S.existsSync(Pe)&&(S.rmSync(Pe,{recursive:!0,force:!0}),S.mkdirSync(Pe,{recursive:!0})),await i.initialise()),!await new Promise(a=>{let c=require("net").createConnection({host:"127.0.0.1",port:Mr});c.setTimeout(3e3),c.once("connect",()=>{c.destroy(),a(!0)}),c.once("error",()=>{c.destroy(),a(!1)}),c.once("timeout",()=>{c.destroy(),a(!1)})})){let a=I.join(Pe,"postmaster.pid");S.existsSync(a)&&S.unlinkSync(a),await Promise.race([i.start(),new Promise((l,c)=>setTimeout(()=>c(new Error("PostgreSQL did not start within 60 seconds")),6e4))])}try{await i.createDatabase(Ll)}catch{}return i}function yp(t,e,r){return r!=="win32"?new Promise((i,s)=>{let o=Rl("unzip",["-o",t,"-d",e],{stdio:["ignore","pipe","pipe"]});o.on("close",a=>{a===0||a===1?i():s(new Error(`unzip exited with code ${a}`))}),o.on("error",()=>{vi()(t,{dir:e}).then(i,s)})}):vi()(t,{dir:e})}async function _p(t){let e=I.join(G,"bin");S.existsSync(e)||S.mkdirSync(e,{recursive:!0});let r=Si.platform(),n=Si.arch();r==="darwin"&&(n="x64");let i="";r==="win32"?i="win":r==="darwin"?i="mac":i="linux";let s=`api-${i}-${n}.zip`,o=r==="win32"?".exe":"",a=I.join(e,`XFramework.Api${o}`);if(S.existsSync(a))return a;t.start(`Downloading xFramework Core for ${i} ${n}...`);let l="latest";try{let f=I.join(__dirname,"package.json"),h=I.join(__dirname,"..","package.json");S.existsSync(f)?l="v"+JSON.parse(S.readFileSync(f,"utf8")).version:S.existsSync(h)&&(l="v"+JSON.parse(S.readFileSync(h,"utf8")).version)}catch{}let c=`https://xframework-builds.s3.us-west-2.amazonaws.com/releases/${l}/${s}`,u=I.join(e,s);await new Promise((f,h)=>{Ai.get(c,g=>{g.statusCode>=300&&g.statusCode<400&&g.headers.location?Ai.get(g.headers.location,m).on("error",d=>{S.unlink(u,()=>{}),h(d)}):g.statusCode!==200?h(new Error(`HTTP ${g.statusCode} - ${g.statusMessage}
64
+ `;S.writeFileSync(r,a,"utf8")}async function gp(t,e){t.text="Starting database...";let r=await import("embedded-postgres"),n=r.default||r,i=new n({databaseDir:Pe,user:Fl,password:e,port:Mr,persistent:!0});if(S.existsSync(I.join(Pe,"PG_VERSION"))||(S.existsSync(Pe)&&(S.rmSync(Pe,{recursive:!0,force:!0}),S.mkdirSync(Pe,{recursive:!0})),await i.initialise()),!await new Promise(a=>{let c=require("net").createConnection({host:"127.0.0.1",port:Mr});c.setTimeout(3e3),c.once("connect",()=>{c.destroy(),a(!0)}),c.once("error",()=>{c.destroy(),a(!1)}),c.once("timeout",()=>{c.destroy(),a(!1)})})){let a=I.join(Pe,"postmaster.pid");S.existsSync(a)&&S.unlinkSync(a),await Promise.race([i.start(),new Promise((l,c)=>setTimeout(()=>c(new Error("PostgreSQL did not start within 60 seconds")),6e4))])}try{await i.createDatabase(Pl)}catch{}return i}function mp(t,e,r){return r!=="win32"?new Promise((i,s)=>{let o=Il("unzip",["-o",t,"-d",e],{stdio:["ignore","pipe","pipe"]});o.on("close",a=>{a===0||a===1?i():s(new Error(`unzip exited with code ${a}`))}),o.on("error",()=>{vi()(t,{dir:e}).then(i,s)})}):vi()(t,{dir:e})}async function yp(t){let e=I.join(H,"bin");S.existsSync(e)||S.mkdirSync(e,{recursive:!0});let r=Si.platform(),n=Si.arch();r==="darwin"&&(n="x64");let i="";r==="win32"?i="win":r==="darwin"?i="mac":i="linux";let s=`api-${i}-${n}.zip`,o=r==="win32"?".exe":"",a=I.join(e,`XFramework.Api${o}`);if(S.existsSync(a))return a;t.start(`Downloading xFramework Core for ${i} ${n}...`);let l="latest";try{let f=I.join(__dirname,"package.json"),h=I.join(__dirname,"..","package.json");S.existsSync(f)?l="v"+JSON.parse(S.readFileSync(f,"utf8")).version:S.existsSync(h)&&(l="v"+JSON.parse(S.readFileSync(h,"utf8")).version)}catch{}let c=`https://xframework-builds.s3.us-west-2.amazonaws.com/releases/${l}/${s}`,u=I.join(e,s);await new Promise((f,h)=>{Ai.get(c,g=>{g.statusCode>=300&&g.statusCode<400&&g.headers.location?Ai.get(g.headers.location,m).on("error",d=>{S.unlink(u,()=>{}),h(d)}):g.statusCode!==200?h(new Error(`HTTP ${g.statusCode} - ${g.statusMessage}
65
65
  URL: ${c}
66
- Ensure you have uploaded the build for this version.`)):m(g);function m(d){let y=S.createWriteStream(u),b=0,v=parseInt(d.headers["content-length"],10)||0;d.on("data",R=>{if(b+=R.length,v>0){let N=Math.round(b/v*100);t.text=`Downloading xFramework Core... ${N}%`}}),d.pipe(y),y.on("finish",()=>{y.close(()=>{v>0&&b<v?(S.unlink(u,()=>{}),h(new Error(`Download incomplete: received ${b} of ${v} bytes. Check your connection and try again.`))):f()})}),y.on("error",R=>{S.unlink(u,()=>{}),h(R)})}}).on("error",g=>{S.unlink(u,()=>{}),h(g)})}),t.text="Extracting core files...",await yp(u,e,r),S.unlinkSync(u);try{Ei()(e)}catch{}return r!=="win32"&&S.chmodSync(a,493),a}function bp(t,e,r,n,i){n.text="Starting portal...";let s=up(t,e),o=t.database?.provider||"postgresql",a=t.server?.port||7125,l=S.createWriteStream(I.join(Dr,"api.log"),{flags:"a"}),c=I.dirname(i),u=Rl(i,[],{env:Object.assign(Object.fromEntries(Object.entries(process.env).filter(([f])=>!f.toUpperCase().startsWith("APPSETUP__"))),{DOTNET_ROLL_FORWARD:"Major",ASPNETCORE_ENVIRONMENT:"Production",ASPNETCORE_URLS:`http://127.0.0.1:${a}`,ConnectionStrings__DefaultConnection:s,ConnectionStrings__ReportingConnection:s,ConnectionStrings__ReadOnlyConnection:s,CA_AUTO_MIGRATE:"true",AppSetup__AutoMigrate:"true",AppSetup__AppInstallRequired:"false",AppSetup__Username:"support@contentactive.com",AppSetup__Password:"Sa1234TT!",AppSetup__Role:"System Admin",CA_JWT_SECRET:e.jwtSecret,CA_COMPANY_NAME:t.app?.companyName||"xFramework",CA_PRIMARY_COLOR:t.app?.primaryColor||"#FF5733",CA_UI_PATH:Dl,CA_LICENSE_TYPE:r.type,CA_LICENSE_COMPANY:r.company||"",CA_LICENSE_EMAIL:r.email||"",CA_LICENSE_EXPIRES:r.expiresAt?r.expiresAt.toISOString():"",CA_LICENSE_VALID:r.isLicensed?"true":"false",License__Enabled:"true",CA_DB_PROVIDER:o,CA_LICENSE_TOKEN:r.isLicensed?(()=>{try{return S.readFileSync(I.join(G,"license.key"),"utf8").trim()}catch{return""}})():""}),cwd:c});return u.stdout.pipe(l),u.stderr.pipe(l),u.on("error",f=>{n.fail(E.red("Failed to start portal: "+f.message)),process.exit(1)}),S.writeFileSync(fp,String(u.pid),"utf8"),u}function xp(t,e=3e4){return new Promise((r,n)=>{let i=require("http"),s=Date.now(),o=()=>{i.get(`http://127.0.0.1:${t}/health`,a=>{a.statusCode<500?r():setTimeout(o,500)}).on("error",()=>{Date.now()-s>e?n(new Error("Portal did not start in time")):setTimeout(o,500)})};o()})}Nl.exports=async function(e){let r=e.port||"7125";console.log(""),console.log(E.bold.white(" xFramework")),console.log(E.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));let n=sp({text:"Initializing...",color:"cyan"}).start();try{dp(),hp();let i=!S.existsSync(Et),s=gp(r),o=pp();s.database||(s.database={provider:"postgresql",embedded:!0},S.writeFileSync(Et,JSON.stringify(s,null,2),"utf8"));let a=ap();if(n.succeed(E.green("Ready")+E.gray(" \u2014 data directory initialized")),a.isLicensed){n.start("Verifying license...");let d=S.readFileSync(I.join(G,"license.key"),"utf8").trim(),y=await Al(d);y===null?n.warn(E.yellow("License server unreachable \u2014 running offline")):y.valid?n.succeed(E.green("License")+E.gray(` \u2014 ${a.type} \xB7 ${a.company}`)):(n.fail(E.red(`License ${y.reason||"invalid"} \u2014 contact support@contentactive.com`)),a={valid:!1,type:y.reason==="revoked"?"revoked":y.reason==="domain_mismatch"?"domain_mismatch":"expired",company:a.company,email:a.email,expiresAt:a.expiresAt,daysRemaining:0,features:[],isLicensed:!1})}if(Il(a,s),s.database?.embedded!==!1&&s.database?.provider!=="sqlserver")n.start("Starting database..."),await mp(n,o.pgPassword),n.succeed(E.green("Database")+E.gray(` \u2014 PostgreSQL running on port ${Mr}`));else{let d=s.database?.provider==="sqlserver"?"SQL Server":"PostgreSQL";n.succeed(E.green("Database")+E.gray(` \u2014 using external ${d} at ${s.database?.host}`))}let c;try{c=await _p(n)}catch(d){n.fail(E.red("Failed to get core binaries: ")+d.message),process.exit(1)}n.start("Starting portal...");let u=bp(s,o,a,n,c);await xp(s.server?.port||7125,3e5),n.succeed(E.green("Portal")+E.gray(` \u2014 running on http://localhost:${s.server?.port||7125}`));let f=await cp(s.server?.port||7125),h=f.isInstalled?`http://localhost:${s.server?.port||7125}`:`http://localhost:${s.server?.port||7125}/setup`;console.log(""),console.log(E.bold.green(" \u2713 xFramework is running!")),console.log(""),console.log(E.white(" URL: ")+E.cyan(`http://localhost:${s.server?.port||7125}`)),f&&!f.isInstalled&&(console.log(E.white(" Setup: ")+E.cyan(`http://localhost:${s.server?.port||7125}/setup`)),console.log(E.gray(" Complete the setup wizard to create your admin account."))),console.log(E.white(" Data: ")+E.gray(G));let g=s.database?.provider==="sqlserver"?"SQL Server":s.database?.embedded!==!1?"PostgreSQL (embedded)":`PostgreSQL (${s.database?.host})`;if(console.log(E.white(" Database: ")+E.gray(g)),a.isLicensed){let d=a.expiresAt?E.gray(` \u2014 expires ${a.expiresAt.toDateString()} (${a.daysRemaining}d)`):"";console.log(E.white(" License: ")+E.green(`${a.type} \u2014 ${a.company}`)+d)}else a.type==="revoked"?console.log(E.white(" License: ")+E.red("Revoked \u2014 contact support@contentactive.com")):a.type==="domain_mismatch"?console.log(E.white(" License: ")+E.red("Domain mismatch \u2014 this key is not licensed for this domain")):a.type==="expired"?console.log(E.white(" License: ")+E.red("Expired \u2014 run: xFramework-cli license <key>")):console.log(E.white(" License: ")+E.yellow("Community Edition \u2014 run: xFramework-cli license <key>"));console.log(""),console.log(E.gray(" Press Ctrl+C to stop")),console.log(""),await op(h);let m=30*60*1e3;if(a.isLicensed){let d=setInterval(async()=>{try{let y=S.readFileSync(I.join(G,"license.key"),"utf8").trim(),b=await Al(y);if(b===null)return;if(!b.valid){clearInterval(d);let v={...a,isLicensed:!1,type:b.reason==="revoked"?"revoked":"expired"};Il(v,s),console.log(""),console.log(E.bold.red(` \u26A0 License ${b.reason||"invalid"}.`)),console.log(E.gray(" Banner updated in the portal. Contact support@contentactive.com.")),console.log("")}}catch{}},m);process.on("exit",()=>clearInterval(d))}process.on("SIGINT",async()=>{console.log(""),n.start("Stopping portal..."),u.kill(),n.succeed("Portal stopped"),process.exit(0)}),u.on("exit",d=>{d!==0&&d!==null&&console.log(E.red(`
66
+ Ensure you have uploaded the build for this version.`)):m(g);function m(d){let y=S.createWriteStream(u),_=0,v=parseInt(d.headers["content-length"],10)||0;d.on("data",F=>{if(_+=F.length,v>0){let $=Math.round(_/v*100);t.text=`Downloading xFramework Core... ${$}%`}}),d.pipe(y),y.on("finish",()=>{y.close(()=>{v>0&&_<v?(S.unlink(u,()=>{}),h(new Error(`Download incomplete: received ${_} of ${v} bytes. Check your connection and try again.`))):f()})}),y.on("error",F=>{S.unlink(u,()=>{}),h(F)})}}).on("error",g=>{S.unlink(u,()=>{}),h(g)})}),t.text="Extracting core files...",await mp(u,e,r),S.unlinkSync(u);try{Ei()(e)}catch{}return r!=="win32"&&S.chmodSync(a,493),a}function _p(t,e,r,n,i){n.text="Starting portal...";let s=cp(t,e),o=t.database?.provider||"postgresql",a=t.server?.port||7125,l=S.createWriteStream(I.join(Dr,"api.log"),{flags:"a"}),c=I.dirname(i),u=Il(i,[],{env:Object.assign(Object.fromEntries(Object.entries(process.env).filter(([f])=>!f.toUpperCase().startsWith("APPSETUP__"))),{DOTNET_ROLL_FORWARD:"Major",ASPNETCORE_ENVIRONMENT:"Production",ASPNETCORE_URLS:`http://127.0.0.1:${a}`,ConnectionStrings__DefaultConnection:s,ConnectionStrings__ReportingConnection:s,ConnectionStrings__ReadOnlyConnection:s,CA_AUTO_MIGRATE:"true",AppSetup__AutoMigrate:"true",AppSetup__AppInstallRequired:"false",AppSetup__Username:"support@contentactive.com",AppSetup__Password:"Sa1234TT!",AppSetup__Role:"System Admin",CA_JWT_SECRET:e.jwtSecret,CA_COMPANY_NAME:t.app?.companyName||"xFramework",CA_PRIMARY_COLOR:t.app?.primaryColor||"#FF5733",CA_UI_PATH:kl,CA_LICENSE_TYPE:r.type,CA_LICENSE_COMPANY:r.company||"",CA_LICENSE_EMAIL:r.email||"",CA_LICENSE_EXPIRES:r.expiresAt?r.expiresAt.toISOString():"",CA_LICENSE_VALID:r.isLicensed?"true":"false",License__Enabled:"true",CA_DB_PROVIDER:o,CA_LICENSE_TOKEN:r.isLicensed?(()=>{try{return S.readFileSync(I.join(H,"license.key"),"utf8").trim()}catch{return""}})():""}),cwd:c});return u.stdout.pipe(l),u.stderr.pipe(l),u.on("error",f=>{n.fail(E.red("Failed to start portal: "+f.message)),process.exit(1)}),S.writeFileSync(up,String(u.pid),"utf8"),u}function bp(t,e=3e4){return new Promise((r,n)=>{let i=require("http"),s=Date.now(),o=()=>{i.get(`http://127.0.0.1:${t}/health`,a=>{a.statusCode<500?r():setTimeout(o,500)}).on("error",()=>{Date.now()-s>e?n(new Error("Portal did not start in time")):setTimeout(o,500)})};o()})}Dl.exports=async function(e){let r=e.port||"7125";console.log(""),console.log(E.bold.white(" xFramework")),console.log(E.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));let n=ip({text:"Initializing...",color:"cyan"}).start();try{fp(),dp();let i=!S.existsSync(Et),s=pp(r),o=hp();s.database||(s.database={provider:"postgresql",embedded:!0},S.writeFileSync(Et,JSON.stringify(s,null,2),"utf8"));let a=op();if(n.succeed(E.green("Ready")+E.gray(" \u2014 data directory initialized")),a.isLicensed){n.start("Verifying license...");let d=S.readFileSync(I.join(H,"license.key"),"utf8").trim(),y=await Cl(d);y===null?n.warn(E.yellow("License server unreachable \u2014 running offline")):y.valid?n.succeed(E.green("License")+E.gray(` \u2014 ${a.type} \xB7 ${a.company}`)):(n.fail(E.red(`License ${y.reason||"invalid"} \u2014 contact support@contentactive.com`)),a={valid:!1,type:y.reason==="revoked"?"revoked":y.reason==="domain_mismatch"?"domain_mismatch":"expired",company:a.company,email:a.email,expiresAt:a.expiresAt,daysRemaining:0,features:[],isLicensed:!1})}if(Ol(a,s),s.database?.embedded!==!1&&s.database?.provider!=="sqlserver")n.start("Starting database..."),await gp(n,o.pgPassword),n.succeed(E.green("Database")+E.gray(` \u2014 PostgreSQL running on port ${Mr}`));else{let d=s.database?.provider==="sqlserver"?"SQL Server":"PostgreSQL";n.succeed(E.green("Database")+E.gray(` \u2014 using external ${d} at ${s.database?.host}`))}let c;try{c=await yp(n)}catch(d){n.fail(E.red("Failed to get core binaries: ")+d.message),process.exit(1)}n.start("Starting portal...");let u=_p(s,o,a,n,c);await bp(s.server?.port||7125,3e5),n.succeed(E.green("Portal")+E.gray(` \u2014 running on http://localhost:${s.server?.port||7125}`));let f=await lp(s.server?.port||7125),h=f.isInstalled?`http://localhost:${s.server?.port||7125}`:`http://localhost:${s.server?.port||7125}/setup`;console.log(""),console.log(E.bold.green(" \u2713 xFramework is running!")),console.log(""),console.log(E.white(" URL: ")+E.cyan(`http://localhost:${s.server?.port||7125}`)),f&&!f.isInstalled&&(console.log(E.white(" Setup: ")+E.cyan(`http://localhost:${s.server?.port||7125}/setup`)),console.log(E.gray(" Complete the setup wizard to create your admin account."))),console.log(E.white(" Data: ")+E.gray(H));let g=s.database?.provider==="sqlserver"?"SQL Server":s.database?.embedded!==!1?"PostgreSQL (embedded)":`PostgreSQL (${s.database?.host})`;if(console.log(E.white(" Database: ")+E.gray(g)),a.isLicensed){let d=a.expiresAt?E.gray(` \u2014 expires ${a.expiresAt.toDateString()} (${a.daysRemaining}d)`):"";console.log(E.white(" License: ")+E.green(`${a.type} \u2014 ${a.company}`)+d)}else a.type==="revoked"?console.log(E.white(" License: ")+E.red("Revoked \u2014 contact support@contentactive.com")):a.type==="domain_mismatch"?console.log(E.white(" License: ")+E.red("Domain mismatch \u2014 this key is not licensed for this domain")):a.type==="expired"?console.log(E.white(" License: ")+E.red("Expired \u2014 run: xFramework-cli license <key>")):console.log(E.white(" License: ")+E.yellow("Community Edition \u2014 run: xFramework-cli license <key>"));console.log(""),console.log(E.gray(" Press Ctrl+C to stop")),console.log(""),await sp(h);let m=30*60*1e3;if(a.isLicensed){let d=setInterval(async()=>{try{let y=S.readFileSync(I.join(H,"license.key"),"utf8").trim(),_=await Cl(y);if(_===null)return;if(!_.valid){clearInterval(d);let v={...a,isLicensed:!1,type:_.reason==="revoked"?"revoked":"expired"};Ol(v,s),console.log(""),console.log(E.bold.red(` \u26A0 License ${_.reason||"invalid"}.`)),console.log(E.gray(" Banner updated in the portal. Contact support@contentactive.com.")),console.log("")}}catch{}},m);process.on("exit",()=>clearInterval(d))}process.on("SIGINT",async()=>{console.log(""),n.start("Stopping portal..."),u.kill(),n.succeed("Portal stopped"),process.exit(0)}),u.on("exit",d=>{d!==0&&d!==null&&console.log(E.red(`
67
67
  Portal exited with code ${d}. Check logs: ${I.join(Dr,"api.log")}`)),process.exit(d||0)})}catch(i){n.fail(E.red("Startup failed: ")+(i?.message||String(i))),console.log(E.gray(`
68
- Check logs: ${I.join(Dr,"api.log")}`)),process.exit(1)}}});var Bl=p((Ng,ql)=>{"use strict";var qr=require("fs"),Ml=require("path"),wp=require("os"),Ri=Z(),vp=Ml.join(wp.homedir(),".xFramework","instances","default"),Br=Ml.join(vp,".pid");ql.exports=function(){if(!qr.existsSync(Br)){console.log(Ri.yellow(" Portal is not running."));return}let e=parseInt(qr.readFileSync(Br,"utf8").trim());try{process.kill(e,"SIGTERM"),qr.unlinkSync(Br),console.log(Ri.green(" \u2713 Portal stopped."))}catch{qr.unlinkSync(Br),console.log(Ri.yellow(" Portal was not running."))}}});var Wl=p((Mg,Vl)=>{"use strict";var jr=require("fs"),Ti=require("path"),Ep=require("os"),Sp=require("http"),et=Z(),Ul=Ti.join(Ep.homedir(),".xFramework","instances","default"),jl=Ti.join(Ul,".pid"),$l=Ti.join(Ul,"config.json");Vl.exports=function(){let e=jr.existsSync(jl),n=(jr.existsSync($l)?JSON.parse(jr.readFileSync($l,"utf8")):{}).server?.port||7125;if(!e){console.log(et.yellow(" \u25CF Portal is stopped"));return}let i=parseInt(jr.readFileSync(jl,"utf8").trim());Sp.get(`http://localhost:${n}/health`,s=>{s.statusCode<500?(console.log(et.green(" \u25CF Portal is running")),console.log(et.gray(` URL: http://localhost:${n}`)),console.log(et.gray(` PID: ${i}`))):console.log(et.yellow(" \u25CF Portal is starting..."))}).on("error",()=>{console.log(et.yellow(" \u25CF Portal process exists but not responding yet"))})}});var zl=p((qg,Gl)=>{"use strict";var Hl=require("fs"),Pi=require("path"),Cp=require("os"),{execSync:Ap}=require("child_process"),$r=Z(),Op=Pi.join(Cp.homedir(),".xFramework","instances","default"),Fi=Pi.join(Op,"data","backups"),Ip=54329,Rp="contentactive",Tp="contentactive";Gl.exports=function(){Hl.existsSync(Fi)||Hl.mkdirSync(Fi,{recursive:!0});let e=new Date().toISOString().replace(/[:.]/g,"-"),r=Pi.join(Fi,`backup-${e}.sql`);console.log($r.cyan(" Creating backup..."));try{Ap(`pg_dump -h localhost -p ${Ip} -U ${Rp} -d ${Tp} -f "${r}"`,{env:{...process.env,PGPASSWORD:"contentactive_local"}}),console.log($r.green(` \u2713 Backup saved: ${r}`))}catch(n){console.log($r.red(" Backup failed: ")+n.message),console.log($r.gray(" Make sure the portal is running first."))}}});var Jl=p((Bg,Yl)=>{"use strict";var Kl=require("fs"),ki=require("path"),Fp=require("os"),{execSync:Pp}=require("child_process"),St=Z(),Lp=ki.join(Fp.homedir(),".xFramework","instances","default"),Li=ki.join(Lp,"data","backups"),kp=54329,Dp="contentactive",Np="contentactive";Yl.exports=function(){if(!Kl.existsSync(Li)){console.log(St.yellow(" No backups found."));return}let e=Kl.readdirSync(Li).filter(n=>n.endsWith(".sql")).sort().reverse();if(e.length===0){console.log(St.yellow(" No backups found."));return}let r=ki.join(Li,e[0]);console.log(St.cyan(` Restoring from: ${e[0]}`));try{Pp(`psql -h localhost -p ${kp} -U ${Dp} -d ${Np} -f "${r}"`,{env:{...process.env,PGPASSWORD:"contentactive_local"}}),console.log(St.green(" \u2713 Restore complete."))}catch(n){console.log(St.red(" Restore failed: ")+n.message)}}});var ec=p((jg,Ql)=>{"use strict";var w=Z(),{readLicense:Mp,saveLicense:qp,removeLicense:Bp}=yt();function Zl(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}function Xl(){let t=Mp();if(console.log(""),console.log(w.bold.white(" xFramework \u2014 License Status")),console.log(w.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log(""),t.type==="community")console.log(w.white(" Status: ")+w.yellow("Community Edition (Unlicensed)")),console.log(""),console.log(w.gray(" To activate a license:")),console.log(w.gray(" xFramework-cli license <your-key>"));else if(t.type==="expired")console.log(w.white(" Status: ")+w.red("Expired")),console.log(w.white(" Company: ")+w.cyan(t.company||"\u2014")),console.log(w.white(" Email: ")+w.cyan(t.email||"\u2014")),console.log(w.white(" Expired: ")+w.red(t.expiresAt.toDateString())),console.log(""),console.log(w.gray(" Renew at contentactive.com/renew"));else if(t.type==="invalid")console.log(w.white(" Status: ")+w.red("Invalid License Key")),console.log(w.red(" Error: ")+w.white(t.error||"Unknown error")),console.log(""),console.log(w.gray(" The license file may be corrupted. Re-activate with your key:")),console.log(w.gray(" xFramework-cli license <your-key>"));else if(console.log(w.white(" Status: ")+w.green("Licensed \u2713")),console.log(w.white(" Type: ")+w.cyan(Zl(t.type))),console.log(w.white(" Company: ")+w.cyan(t.company||"\u2014")),console.log(w.white(" Email: ")+w.cyan(t.email||"\u2014")),t.expiresAt){let e=t.expiresAt.toDateString(),r=t.daysRemaining<30?w.yellow:w.cyan;console.log(w.white(" Expires: ")+r(`${e} (${t.daysRemaining} days remaining)`))}else console.log(w.white(" Expires: ")+w.cyan("Never"));console.log("")}function jp(t){console.log(""),console.log(w.bold.white(" xFramework \u2014 License Activation")),console.log(w.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log("");try{let e=qp(t),r=e.exp?new Date(e.exp*1e3):null,n=r?Math.ceil((r-new Date)/(1e3*60*60*24)):null;console.log(w.bold.green(" \u2713 License activated successfully!")),console.log(""),console.log(w.white(" Company: ")+w.cyan(e.company||"\u2014")),console.log(w.white(" Email: ")+w.cyan(e.sub||"\u2014")),console.log(w.white(" Type: ")+w.cyan(Zl(e.type||"professional"))),console.log(r?w.white(" Expires: ")+w.cyan(`${r.toDateString()} (${n} days)`):w.white(" Expires: ")+w.cyan("Never")),console.log(""),console.log(w.gray(" Restart the portal to apply: xFramework-cli start"))}catch(e){console.log(w.bold.red(" \u2717 Activation failed")),console.log(w.white(" Reason: ")+w.red(e.message)),console.log(""),console.log(w.gray(" Please check your license key and try again.")),console.log(w.gray(" Contact support@contentactive.com if the issue persists."))}console.log("")}function $p(){console.log("");let t=Bp();console.log(t?w.green(" \u2713 License removed. Running in Community Edition."):w.gray(" No active license found.")),console.log("")}Ql.exports=function(e,r){if(r&&r.status){Xl();return}if(r&&r.remove){$p();return}if(e){jp(e);return}Xl()}});var Mi=p((Ug,sc)=>{"use strict";var J=require("path"),M=require("fs"),$g=require("os"),{spawn:ic}=require("child_process"),Up=require("readline"),A=Z(),Vp=ur(),Wp=Ei(),Hp="contentactivedev",Gp="xframework-api",zp="xframework",tc=process.env.XFRAMEWORK_BB_TOKEN_API||"ATCTT3xFfGN02smBNDdN8Z2c8JRMm0ubFdojS81iBP16bNzcuVkShFVaWOSPZIbq7nSZMIg1HgDhx1R_JHHsjnei5VqhUbJ2wH5ZqMUUWpWAhfzjDXG9ozUJiprMTYkHGG4qRXab_qvvuTB_U7SPlFZ2UhPcW8aA_GiGKNwa7sr-f1gKsTREXzw=A8A98735",rc=process.env.XFRAMEWORK_BB_TOKEN_UI||"ATCTT3xFfGN0EyhqJiYrlXpqtWMKWLAE27DqqmlyyfzOE6mne2s2tMmrNfa3kz-mh69o_cuVzx6mbjR8fFv5dO0xl_ml_snlhXJTNx_icCCdZWcwCmuuSVPam6VOsMilZgVaiG4WeYhKiv_ZrcbBolB2GXeLKWMHMZ6QyzlJz7v9PmJoUkgrO6w=4A159CCB";function Kp(t,e){return new Promise(r=>t.question(e,n=>r(n.trim())))}function Di(t,e){M.mkdirSync(J.dirname(t),{recursive:!0}),M.writeFileSync(t,e,"utf8")}function Ni(t,e,r){return new Promise((n,i)=>{let s=ic(t,e,{...r,stdio:["ignore","pipe","pipe"]});s.on("close",n),s.on("error",i)})}async function nc(t,e,r,n,i,s,o=[]){let a=`https://x-token-auth:${encodeURIComponent(r)}@bitbucket.org/${Hp}/${t}.git`,l=o.length>0,c=async g=>(s.text=`Downloading ${i} (${g})...`,M.existsSync(n)&&M.rmSync(n,{recursive:!0,force:!0}),new Promise((m,d)=>{let y=["clone","--depth","1","--branch",g,"--single-branch",...l?["--no-checkout"]:[],a,n],b=ic("git",y,{stdio:["ignore","pipe","pipe"]}),v="";b.stderr.on("data",R=>{v+=R.toString()}),b.on("close",async R=>{if(R!==0)return v.includes("couldn't find remote ref")||v.includes("Remote branch")||v.includes("not found in upstream")?d(new Error(`TAG_NOT_FOUND:${g}`)):v.includes("Authentication failed")||v.includes("could not read Username")?d(new Error("AUTH_FAILED: Git authentication failed \u2014 check the Bitbucket token.")):d(new Error(`git clone failed: ${v.trim().split(`
69
- `).pop()}`));if(l)try{let N=J.join(n,".git","info");M.mkdirSync(N,{recursive:!0});let W=["**",...o.map(ne=>`!/${ne}`)].join(`
70
- `);M.writeFileSync(J.join(N,"sparse-checkout"),W+`
71
- `,"utf8"),await Ni("git",["-C",n,"config","core.sparsecheckout","true"],{}),await Ni("git",["-C",n,"read-tree","-m","-u","HEAD"],{})}catch{}m()}),b.on("error",R=>d(new Error(R.code==="ENOENT"?"git not found \u2014 install Git and try again.":R.message)))})),u=[e];e.startsWith("v")?u.push(e.slice(1)):e!=="develop"&&u.push(`v${e}`),u.push("develop");let f=!1;for(let g of u)try{await c(g),g!==e&&s.warn(A.yellow(`Tag "${e}" not found for ${i} \u2014 used "${g}" instead`)),f=!0;break}catch(m){if(!m.message.startsWith("TAG_NOT_FOUND"))throw m}if(!f)throw new Error(`Could not find a valid tag or branch for ${i}.`);let h=J.join(n,".git");M.existsSync(h)&&M.rmSync(h,{recursive:!0,force:!0})}function Yp(t){try{let e=M.readdirSync(t);if(e.some(r=>r.endsWith(".csproj")))return t;for(let r of e){let n=J.join(t,r);try{if(M.statSync(n).isDirectory()&&M.readdirSync(n).some(i=>i.endsWith(".csproj")))return n}catch{}}}catch{}return t}function Jp(){try{return tn().version}catch{return null}}function Xp(t,e){return JSON.stringify({name:t,version:"1.0.0",xframeworkVersion:e||"latest",createdAt:new Date().toISOString().split("T")[0]},null,2)}function Zp(){return JSON.stringify({AppSetup:{AppInstallRequired:!0,AutoMigrate:!1},ConnectionStrings:{DefaultConnection:""}},null,2)}sc.exports=async function(e,r){console.log(""),console.log(A.bold.white(" xFramework")+A.gray(" \u2014 Developer Setup")),console.log(A.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log("");let n=Up.createInterface({input:process.stdin,output:process.stdout});e||(e=await Kp(n,A.white(" Project name: "))),e=(e||"").replace(/[^a-zA-Z0-9._-]/g,"-").replace(/^-+|-+$/g,""),e||(n.close(),console.log(A.red(" Invalid project name.")),process.exit(1)),n.close();let i=J.resolve(process.cwd(),e);M.existsSync(i)&&(console.log(A.red(`
72
- Directory "${e}" already exists.`)),process.exit(1)),M.mkdirSync(i,{recursive:!0});let s=Jp(),o=r.version||(s?`v${s}`:"latest"),a=Vp({text:"Preparing...",color:"cyan"}).start(),l=J.join(i,"api"),c=J.join(i,"ui");(tc==="PASTE_API_REPO_TOKEN"||rc==="PASTE_UI_REPO_TOKEN")&&(a.fail(A.red("Bitbucket API tokens not configured.")),console.log(""),console.log(A.yellow(" Set tokens via environment variables:")),console.log(A.cyan(" set XFRAMEWORK_BB_TOKEN_API=<xframework-api repo token>")),console.log(A.cyan(" set XFRAMEWORK_BB_TOKEN_UI=<xframework repo token>")),console.log(A.gray(" Contact support@contentactive.com to get access.")),M.rmdirSync(i),process.exit(1));let u=["appsettings.Local.json","appsettings.Development.json","appsettings.Production.json","appsettings.HierarchyDefaults.json","appsettings.PIIRedaction.json","google-services.json"],f=[".env",".env.local",".env.development",".env.development.local",".env.production",".env.production.local",".env.stage",".env.staging",".env.test",".env.test.local"];try{await nc(Gp,o,tc,l,"API source",a,u),a.succeed(A.green("API")+A.gray(` \u2014 downloaded (${o})`))}catch(d){a.fail(A.red("Failed to download API source: ")+d.message),M.rmSync(i,{recursive:!0,force:!0}),process.exit(1)}try{a.start(`Downloading UI source (${o})...`),await nc(zp,o,rc,c,"UI source",a,f),a.succeed(A.green("UI")+A.gray(` \u2014 downloaded (${o})`))}catch(d){a.fail(A.red("Failed to download UI source: ")+d.message),M.rmSync(i,{recursive:!0,force:!0}),process.exit(1)}let h=J.join(c,".env.embedded");if(M.existsSync(h)){let d=M.readFileSync(h,"utf8").replace(/^VITE_APP_BASE=.*$/m,'VITE_APP_BASE=""');Di(J.join(c,".env"),d)}a.start("Writing API configuration template...");let{replaced:g}=Wp(l);a.succeed(A.green("Configuration")+A.gray(" \u2014 template written"));let m=Yp(l);if(Di(J.join(i,"xframework.json"),Xp(e,o)),Di(J.join(m,"appsettings.Local.json.example"),Zp()),!r.noInstall&&M.existsSync(m)){a.start("Restoring .NET packages...");try{await Ni("dotnet",["restore",m],{cwd:m})===0?a.succeed(A.green(".NET packages")+A.gray(" \u2014 restored")):a.stop()}catch{a.stop()}}console.log(""),console.log(A.bold.green(" \u2713 Project created!")),console.log(""),console.log(A.white(" Project: ")+A.cyan(e+"/")),console.log(A.white(" Version: ")+A.gray(o)),console.log(""),console.log(A.bold.white(" Next steps:")),console.log(""),console.log(A.white(" 1.")+A.gray(" Start the portal:")),console.log(A.cyan(` cd ${e}`)),console.log(A.cyan(" xFramework-cli run")),console.log(""),console.log(A.white(" 2.")+A.gray(" Complete setup at:")),console.log(A.cyan(" http://localhost:5000/setup")),console.log(A.gray(" \u2014 configure your database and create your admin account")),console.log(""),console.log(A.white(" Optional \u2014 activate a developer license:")),console.log(A.cyan(" xFramework-cli license <your-key>")),console.log("")}});var fc=p((Vg,uc)=>{"use strict";var D=require("path"),V=require("fs"),lc=require("os"),{spawn:Bi}=require("child_process"),_=Z(),Qp=ur(),e0=ai(),cc=require("http"),{readLicense:t0}=yt(),r0=5e3,qi=5173;function n0(){return new Promise(t=>{let e=Bi("dotnet",["--version"],{stdio:"pipe",shell:lc.platform()==="win32"});e.on("error",()=>t(!1)),e.on("close",r=>t(r===0))})}function oc(t,e=12e4){return new Promise((r,n)=>{let i=Date.now(),s=()=>{cc.get(`http://127.0.0.1:${t}/health`,a=>{a.statusCode<500?r():o()}).on("error",()=>{Date.now()-i>e?n(new Error(`API did not start within ${e/1e3}s`)):o()})},o=()=>setTimeout(s,500);s()})}function i0(t){return new Promise(e=>{cc.get(`http://127.0.0.1:${t}/api/v1.0/setup/status`,r=>{let n="";r.on("data",i=>{n+=i}),r.on("end",()=>{try{e(JSON.parse(n))}catch{e({isInstalled:!0})}})}).on("error",()=>e({isInstalled:!0}))})}function s0(t){let e=t;for(let r=0;r<4;r++){if(V.existsSync(D.join(e,"xframework.json")))return e;let n=D.dirname(e);if(n===e)break;e=n}return null}function o0(t){let e=D.join(t,"license.key");if(V.existsSync(e))try{let{verifyLicenseFile:n}=yt();if(typeof n=="function")return n(e)}catch{}let r=t0();return{...r,type:r.isLicensed?r.type:"developer",isLicensed:!0}}function a0(t,e,r){let n=D.join(t,"ui","public");if(!V.existsSync(n))return;let i=e.expiresAt?e.expiresAt.toISOString():"",s=`// Auto-generated by xFramework-cli run \u2014 do not edit manually
68
+ Check logs: ${I.join(Dr,"api.log")}`)),process.exit(1)}}});var ql=p((Ng,Ml)=>{"use strict";var qr=require("fs"),Nl=require("path"),xp=require("os"),Ri=X(),wp=Nl.join(xp.homedir(),".xFramework","instances","default"),Br=Nl.join(wp,".pid");Ml.exports=function(){if(!qr.existsSync(Br)){console.log(Ri.yellow(" Portal is not running."));return}let e=parseInt(qr.readFileSync(Br,"utf8").trim());try{process.kill(e,"SIGTERM"),qr.unlinkSync(Br),console.log(Ri.green(" \u2713 Portal stopped."))}catch{qr.unlinkSync(Br),console.log(Ri.yellow(" Portal was not running."))}}});var Vl=p((Mg,Ul)=>{"use strict";var jr=require("fs"),Ti=require("path"),vp=require("os"),Ep=require("http"),et=X(),$l=Ti.join(vp.homedir(),".xFramework","instances","default"),Bl=Ti.join($l,".pid"),jl=Ti.join($l,"config.json");Ul.exports=function(){let e=jr.existsSync(Bl),n=(jr.existsSync(jl)?JSON.parse(jr.readFileSync(jl,"utf8")):{}).server?.port||7125;if(!e){console.log(et.yellow(" \u25CF Portal is stopped"));return}let i=parseInt(jr.readFileSync(Bl,"utf8").trim());Ep.get(`http://localhost:${n}/health`,s=>{s.statusCode<500?(console.log(et.green(" \u25CF Portal is running")),console.log(et.gray(` URL: http://localhost:${n}`)),console.log(et.gray(` PID: ${i}`))):console.log(et.yellow(" \u25CF Portal is starting..."))}).on("error",()=>{console.log(et.yellow(" \u25CF Portal process exists but not responding yet"))})}});var Gl=p((qg,Hl)=>{"use strict";var Wl=require("fs"),Pi=require("path"),Sp=require("os"),{execSync:Cp}=require("child_process"),$r=X(),Ap=Pi.join(Sp.homedir(),".xFramework","instances","default"),Fi=Pi.join(Ap,"data","backups"),Op=54329,Ip="contentactive",Rp="contentactive";Hl.exports=function(){Wl.existsSync(Fi)||Wl.mkdirSync(Fi,{recursive:!0});let e=new Date().toISOString().replace(/[:.]/g,"-"),r=Pi.join(Fi,`backup-${e}.sql`);console.log($r.cyan(" Creating backup..."));try{Cp(`pg_dump -h localhost -p ${Op} -U ${Ip} -d ${Rp} -f "${r}"`,{env:{...process.env,PGPASSWORD:"contentactive_local"}}),console.log($r.green(` \u2713 Backup saved: ${r}`))}catch(n){console.log($r.red(" Backup failed: ")+n.message),console.log($r.gray(" Make sure the portal is running first."))}}});var Yl=p((Bg,Kl)=>{"use strict";var zl=require("fs"),ki=require("path"),Tp=require("os"),{execSync:Fp}=require("child_process"),St=X(),Pp=ki.join(Tp.homedir(),".xFramework","instances","default"),Li=ki.join(Pp,"data","backups"),Lp=54329,kp="contentactive",Dp="contentactive";Kl.exports=function(){if(!zl.existsSync(Li)){console.log(St.yellow(" No backups found."));return}let e=zl.readdirSync(Li).filter(n=>n.endsWith(".sql")).sort().reverse();if(e.length===0){console.log(St.yellow(" No backups found."));return}let r=ki.join(Li,e[0]);console.log(St.cyan(` Restoring from: ${e[0]}`));try{Fp(`psql -h localhost -p ${Lp} -U ${kp} -d ${Dp} -f "${r}"`,{env:{...process.env,PGPASSWORD:"contentactive_local"}}),console.log(St.green(" \u2713 Restore complete."))}catch(n){console.log(St.red(" Restore failed: ")+n.message)}}});var Ql=p((jg,Zl)=>{"use strict";var w=X(),{readLicense:Np,saveLicense:Mp,removeLicense:qp}=yt();function Xl(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}function Jl(){let t=Np();if(console.log(""),console.log(w.bold.white(" xFramework \u2014 License Status")),console.log(w.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log(""),t.type==="community")console.log(w.white(" Status: ")+w.yellow("Community Edition (Unlicensed)")),console.log(""),console.log(w.gray(" To activate a license:")),console.log(w.gray(" xFramework-cli license <your-key>"));else if(t.type==="expired")console.log(w.white(" Status: ")+w.red("Expired")),console.log(w.white(" Company: ")+w.cyan(t.company||"\u2014")),console.log(w.white(" Email: ")+w.cyan(t.email||"\u2014")),console.log(w.white(" Expired: ")+w.red(t.expiresAt.toDateString())),console.log(""),console.log(w.gray(" Renew at contentactive.com/renew"));else if(t.type==="invalid")console.log(w.white(" Status: ")+w.red("Invalid License Key")),console.log(w.red(" Error: ")+w.white(t.error||"Unknown error")),console.log(""),console.log(w.gray(" The license file may be corrupted. Re-activate with your key:")),console.log(w.gray(" xFramework-cli license <your-key>"));else if(console.log(w.white(" Status: ")+w.green("Licensed \u2713")),console.log(w.white(" Type: ")+w.cyan(Xl(t.type))),console.log(w.white(" Company: ")+w.cyan(t.company||"\u2014")),console.log(w.white(" Email: ")+w.cyan(t.email||"\u2014")),t.expiresAt){let e=t.expiresAt.toDateString(),r=t.daysRemaining<30?w.yellow:w.cyan;console.log(w.white(" Expires: ")+r(`${e} (${t.daysRemaining} days remaining)`))}else console.log(w.white(" Expires: ")+w.cyan("Never"));console.log("")}function Bp(t){console.log(""),console.log(w.bold.white(" xFramework \u2014 License Activation")),console.log(w.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log("");try{let e=Mp(t),r=e.exp?new Date(e.exp*1e3):null,n=r?Math.ceil((r-new Date)/(1e3*60*60*24)):null;console.log(w.bold.green(" \u2713 License activated successfully!")),console.log(""),console.log(w.white(" Company: ")+w.cyan(e.company||"\u2014")),console.log(w.white(" Email: ")+w.cyan(e.sub||"\u2014")),console.log(w.white(" Type: ")+w.cyan(Xl(e.type||"professional"))),console.log(r?w.white(" Expires: ")+w.cyan(`${r.toDateString()} (${n} days)`):w.white(" Expires: ")+w.cyan("Never")),console.log(""),console.log(w.gray(" Restart the portal to apply: xFramework-cli start"))}catch(e){console.log(w.bold.red(" \u2717 Activation failed")),console.log(w.white(" Reason: ")+w.red(e.message)),console.log(""),console.log(w.gray(" Please check your license key and try again.")),console.log(w.gray(" Contact support@contentactive.com if the issue persists."))}console.log("")}function jp(){console.log("");let t=qp();console.log(t?w.green(" \u2713 License removed. Running in Community Edition."):w.gray(" No active license found.")),console.log("")}Zl.exports=function(e,r){if(r&&r.status){Jl();return}if(r&&r.remove){jp();return}if(e){Bp(e);return}Jl()}});var Ni=p((Ug,ic)=>{"use strict";var te=require("path"),B=require("fs"),$g=require("os"),{spawn:nc}=require("child_process"),$p=require("readline"),A=X(),Up=ur(),Vp=Ei(),Wp="contentactivedev",Hp="xframework-api",Gp="xframework",ec=process.env.XFRAMEWORK_BB_TOKEN_API||"ATCTT3xFfGN02smBNDdN8Z2c8JRMm0ubFdojS81iBP16bNzcuVkShFVaWOSPZIbq7nSZMIg1HgDhx1R_JHHsjnei5VqhUbJ2wH5ZqMUUWpWAhfzjDXG9ozUJiprMTYkHGG4qRXab_qvvuTB_U7SPlFZ2UhPcW8aA_GiGKNwa7sr-f1gKsTREXzw=A8A98735",tc=process.env.XFRAMEWORK_BB_TOKEN_UI||"ATCTT3xFfGN0EyhqJiYrlXpqtWMKWLAE27DqqmlyyfzOE6mne2s2tMmrNfa3kz-mh69o_cuVzx6mbjR8fFv5dO0xl_ml_snlhXJTNx_icCCdZWcwCmuuSVPam6VOsMilZgVaiG4WeYhKiv_ZrcbBolB2GXeLKWMHMZ6QyzlJz7v9PmJoUkgrO6w=4A159CCB";function zp(t,e){return new Promise(r=>t.question(e,n=>r(n.trim())))}function Di(t,e){B.mkdirSync(te.dirname(t),{recursive:!0}),B.writeFileSync(t,e,"utf8")}function Kp(t,e,r){return new Promise((n,i)=>{let s=nc(t,e,{...r,stdio:["ignore","pipe","pipe"]});s.on("close",n),s.on("error",i)})}async function rc(t,e,r,n,i,s,o=[]){let a=`https://x-token-auth:${encodeURIComponent(r)}@bitbucket.org/${Wp}/${t}.git`,l=o.length>0,c=async g=>(s.text=`Downloading ${i} (${g})...`,B.existsSync(n)&&B.rmSync(n,{recursive:!0,force:!0}),new Promise((m,d)=>{let y=nc("git",["clone","--depth","1","--branch",g,"--single-branch",a,n],{stdio:["ignore","pipe","pipe"]}),_="";y.stderr.on("data",v=>{_+=v.toString()}),y.on("close",v=>{if(v!==0)return _.includes("couldn't find remote ref")||_.includes("Remote branch")||_.includes("not found in upstream")?d(new Error(`TAG_NOT_FOUND:${g}`)):_.includes("Authentication failed")||_.includes("could not read Username")?d(new Error("AUTH_FAILED: Git authentication failed \u2014 check the Bitbucket token.")):d(new Error(`git clone failed: ${_.trim().split(`
69
+ `).pop()}`));for(let F of o)try{B.unlinkSync(te.join(n,F))}catch{}m()}),y.on("error",v=>d(new Error(v.code==="ENOENT"?"git not found \u2014 install Git and try again.":v.message)))})),u=[e];e.startsWith("v")?u.push(e.slice(1)):e!=="develop"&&u.push(`v${e}`),u.push("develop");let f=!1;for(let g of u)try{await c(g),g!==e&&s.warn(A.yellow(`Tag "${e}" not found for ${i} \u2014 used "${g}" instead`)),f=!0;break}catch(m){if(!m.message.startsWith("TAG_NOT_FOUND"))throw m}if(!f)throw new Error(`Could not find a valid tag or branch for ${i}.`);let h=te.join(n,".git");B.existsSync(h)&&B.rmSync(h,{recursive:!0,force:!0})}function Yp(t){try{let e=B.readdirSync(t);if(e.some(r=>r.endsWith(".csproj")))return t;for(let r of e){let n=te.join(t,r);try{if(B.statSync(n).isDirectory()&&B.readdirSync(n).some(i=>i.endsWith(".csproj")))return n}catch{}}}catch{}return t}function Jp(){try{return tn().version}catch{return null}}function Xp(t,e){return JSON.stringify({name:t,version:"1.0.0",xframeworkVersion:e||"latest",createdAt:new Date().toISOString().split("T")[0]},null,2)}function Zp(){return JSON.stringify({AppSetup:{AppInstallRequired:!0,AutoMigrate:!1},ConnectionStrings:{DefaultConnection:""}},null,2)}ic.exports=async function(e,r){console.log(""),console.log(A.bold.white(" xFramework")+A.gray(" \u2014 Developer Setup")),console.log(A.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log("");let n=$p.createInterface({input:process.stdin,output:process.stdout});e||(e=await zp(n,A.white(" Project name: "))),e=(e||"").replace(/[^a-zA-Z0-9._-]/g,"-").replace(/^-+|-+$/g,""),e||(n.close(),console.log(A.red(" Invalid project name.")),process.exit(1)),n.close();let i=te.resolve(process.cwd(),e);B.existsSync(i)&&(console.log(A.red(`
70
+ Directory "${e}" already exists.`)),process.exit(1)),B.mkdirSync(i,{recursive:!0});let s=Jp(),o=r.version||(s?`v${s}`:"latest"),a=Up({text:"Preparing...",color:"cyan"}).start(),l=te.join(i,"api"),c=te.join(i,"ui");(ec==="PASTE_API_REPO_TOKEN"||tc==="PASTE_UI_REPO_TOKEN")&&(a.fail(A.red("Bitbucket API tokens not configured.")),console.log(""),console.log(A.yellow(" Set tokens via environment variables:")),console.log(A.cyan(" set XFRAMEWORK_BB_TOKEN_API=<xframework-api repo token>")),console.log(A.cyan(" set XFRAMEWORK_BB_TOKEN_UI=<xframework repo token>")),console.log(A.gray(" Contact support@contentactive.com to get access.")),B.rmdirSync(i),process.exit(1));let u=["appsettings.Local.json","appsettings.Development.json","appsettings.Production.json","google-services.json"],f=[".env",".env.local",".env.development",".env.development.local",".env.production",".env.production.local",".env.stage",".env.staging",".env.test",".env.test.local"];try{await rc(Hp,o,ec,l,"API source",a,u),a.succeed(A.green("API")+A.gray(` \u2014 downloaded (${o})`))}catch(d){a.fail(A.red("Failed to download API source: ")+d.message),B.rmSync(i,{recursive:!0,force:!0}),process.exit(1)}try{a.start(`Downloading UI source (${o})...`),await rc(Gp,o,tc,c,"UI source",a,f),a.succeed(A.green("UI")+A.gray(` \u2014 downloaded (${o})`))}catch(d){a.fail(A.red("Failed to download UI source: ")+d.message),B.rmSync(i,{recursive:!0,force:!0}),process.exit(1)}let h=te.join(c,".env.embedded");if(B.existsSync(h)){let d=B.readFileSync(h,"utf8").replace(/^VITE_APP_BASE=.*$/m,'VITE_APP_BASE=""');Di(te.join(c,".env"),d)}a.start("Writing API configuration template...");let{replaced:g}=Vp(l);a.succeed(A.green("Configuration")+A.gray(" \u2014 template written"));let m=Yp(l);if(Di(te.join(i,"xframework.json"),Xp(e,o)),Di(te.join(m,"appsettings.Local.json.example"),Zp()),!r.noInstall&&B.existsSync(m)){a.start("Restoring .NET packages...");try{await Kp("dotnet",["restore",m],{cwd:m})===0?a.succeed(A.green(".NET packages")+A.gray(" \u2014 restored")):a.stop()}catch{a.stop()}}console.log(""),console.log(A.bold.green(" \u2713 Project created!")),console.log(""),console.log(A.white(" Project: ")+A.cyan(e+"/")),console.log(A.white(" Version: ")+A.gray(o)),console.log(""),console.log(A.bold.white(" Next steps:")),console.log(""),console.log(A.white(" 1.")+A.gray(" Start the portal:")),console.log(A.cyan(` cd ${e}`)),console.log(A.cyan(" xFramework-cli run")),console.log(""),console.log(A.white(" 2.")+A.gray(" Complete setup at:")),console.log(A.cyan(" http://localhost:5000/setup")),console.log(A.gray(" \u2014 configure your database and create your admin account")),console.log(""),console.log(A.white(" Optional \u2014 activate a developer license:")),console.log(A.cyan(" xFramework-cli license <your-key>")),console.log("")}});var uc=p((Vg,cc)=>{"use strict";var D=require("path"),V=require("fs"),ac=require("os"),{spawn:qi}=require("child_process"),b=X(),Qp=ur(),e0=ai(),lc=require("http"),{readLicense:t0}=yt(),r0=5e3,Mi=5173;function n0(){return new Promise(t=>{let e=qi("dotnet",["--version"],{stdio:"pipe",shell:ac.platform()==="win32"});e.on("error",()=>t(!1)),e.on("close",r=>t(r===0))})}function sc(t,e=12e4){return new Promise((r,n)=>{let i=Date.now(),s=()=>{lc.get(`http://127.0.0.1:${t}/health`,a=>{a.statusCode<500?r():o()}).on("error",()=>{Date.now()-i>e?n(new Error(`API did not start within ${e/1e3}s`)):o()})},o=()=>setTimeout(s,500);s()})}function i0(t){return new Promise(e=>{lc.get(`http://127.0.0.1:${t}/api/v1.0/setup/status`,r=>{let n="";r.on("data",i=>{n+=i}),r.on("end",()=>{try{e(JSON.parse(n))}catch{e({isInstalled:!0})}})}).on("error",()=>e({isInstalled:!0}))})}function s0(t){let e=t;for(let r=0;r<4;r++){if(V.existsSync(D.join(e,"xframework.json")))return e;let n=D.dirname(e);if(n===e)break;e=n}return null}function o0(t){let e=D.join(t,"license.key");if(V.existsSync(e))try{let{verifyLicenseFile:n}=yt();if(typeof n=="function")return n(e)}catch{}let r=t0();return{...r,type:r.isLicensed?r.type:"developer",isLicensed:!0}}function a0(t,e,r){let n=D.join(t,"ui","public");if(!V.existsSync(n))return;let i=e.expiresAt?e.expiresAt.toISOString():"",s=`// Auto-generated by xFramework-cli run \u2014 do not edit manually
73
71
  window.RUNTIME_CONFIG = {
74
72
  VITE_APP_BASE: "Developer",
75
73
  VITE_API_BASE_URL: "http://localhost:${r}",
@@ -86,11 +84,11 @@ window.RUNTIME_CONFIG = {
86
84
  VITE_GOOGLE_MAPS_API_KEY: "",
87
85
  VITE_APP_AUTH0_CLIENT_ID: "",
88
86
  };
89
- `;V.writeFileSync(D.join(n,"config.js"),s,"utf8")}function ac(t){let e=Object.fromEntries(Object.entries(process.env).filter(([r,n])=>typeof n=="string"&&!r.includes("\0")&&!n.includes("\0")));return Object.assign(e,t)}function l0(t){try{let e=V.readdirSync(t);if(e.some(r=>r.endsWith(".csproj")))return t;for(let r of e){let n=D.join(t,r);try{if(V.statSync(n).isDirectory()&&V.readdirSync(n).some(i=>i.endsWith(".csproj")))return n}catch{}}}catch{}return t}function c0(t){try{let r=JSON.parse(V.readFileSync(D.join(t,"package.json"),"utf8")).scripts||{};for(let n of["dev","start","serve"])if(r[n])return n}catch{}return"dev"}uc.exports=async function(e){let r=parseInt(e.port||String(r0),10),n=lc.platform()==="win32";console.log(""),console.log(_.bold.white(" xFramework")+_.gray(" \u2014 Developer Mode")),console.log(_.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));let i=Qp({text:"Checking environment...",color:"cyan"}).start(),s=s0(process.cwd());s||(i.fail(_.red("Not in an xFramework project directory.")),console.log(_.gray(`
90
- Run from a directory created with:`)),console.log(_.cyan(" xFramework-cli init <project-name>")),process.exit(1));let o=D.join(s,"api"),a=D.join(s,"ui"),l=V.existsSync(D.join(a,"package.json")),c=JSON.parse(V.readFileSync(D.join(s,"xframework.json"),"utf8"));V.existsSync(o)||(i.fail(_.red("api/ directory not found.")),process.exit(1)),await n0()||(i.fail(_.red(".NET 8 SDK not found.")),console.log(""),console.log(_.yellow(" Install the .NET 8 SDK:")),console.log(_.cyan(" https://dotnet.microsoft.com/download/dotnet/8.0")),process.exit(1)),i.succeed(_.green("Environment")+_.gray(" \u2014 .NET SDK ready"));let f=o0(s);f.isLicensed&&f.type!=="developer"?i.succeed(_.green("License")+_.gray(` \u2014 ${f.type} \xB7 ${f.company||""}`)):i.succeed(_.green("License")+_.gray(" \u2014 developer (localhost)")),a0(s,f,r);let h=l0(o),g=D.join(h,"appsettings.Local.json");if(!V.existsSync(g)){let T=!1;try{T=JSON.parse(V.readFileSync(D.join(h,"appsettings.json"),"utf8"))?.AppSetup?.AppInstallRequired===!1}catch{}if(T){console.log(""),console.log(_.yellow(" \u26A0 appsettings.Local.json not found"));let $=[D.join(h,"appsettings.Local.json.example"),D.join(o,"appsettings.Local.json.example")].find(V.existsSync);$?(console.log(_.gray(" Copy it from the example and add your DB credentials:")),console.log(_.cyan(` copy "${D.relative(process.cwd(),$)}" "${D.relative(process.cwd(),g)}"`))):console.log(_.gray(` Create ${D.relative(s,g)} with your connection string.`)),console.log("")}}i.start("Starting API (dotnet run)...");let m=D.join(s,"api.log"),d=V.createWriteStream(m,{flags:"a"}),y=null,b=()=>{y=Bi("dotnet",["run","--project",h,"--no-launch-profile","--urls",`http://localhost:${r}`],{cwd:h,stdio:["ignore","pipe","pipe"],shell:n,env:ac({ASPNETCORE_ENVIRONMENT:"Development",ASPNETCORE_URLS:`http://localhost:${r}`,CA_SETUP_MODE:"developer",CA_LICENSE_TYPE:f.type||"developer",CA_LICENSE_COMPANY:f.company||"",CA_LICENSE_EMAIL:f.email||"",CA_LICENSE_EXPIRES:f.expiresAt?f.expiresAt.toISOString():"",CA_LICENSE_VALID:f.isLicensed?"true":"false"})}),y.stdout.on("data",T=>{d.write(T);let $=T.toString();$.includes("Restoring packages")||$.includes("Restored ")?i.text=_.gray("API \u2014 restoring NuGet packages..."):$.includes("Build succeeded")?i.text=_.gray("API \u2014 build succeeded, launching..."):$.includes("Now listening")&&(i.text=_.gray("API \u2014 online"))}),y.stderr.on("data",T=>{d.write(T)}),y.on("error",T=>{T.code==="ENOENT"?(i.fail(_.red(".NET runtime not found")),console.log(_.yellow(`
91
- Install the .NET 8 SDK:`)),console.log(_.cyan(" https://dotnet.microsoft.com/download/dotnet/8.0"))):i.fail(_.red("API failed to start: "+T.message)),process.exit(1)})};b();let v=null;if(l&&!e.apiOnly){i.stop(),console.log(""),console.log(_.bold.white(" Installing UI packages..."));let T=require("child_process").spawnSync("npm",["install","--include=optional"],{cwd:a,shell:!0,stdio:"inherit"});console.log(""),T.status===0?console.log(_.green(" \u2714 UI packages")+_.gray(" \u2014 ready")):console.log(_.yellow(" \u26A0 npm install failed")+_.gray(" \u2014 UI may not start")),i.start(_.gray("API building in background..."));let $=c0(a);i.text=`Starting UI dev server (npm run ${$})...`;let Ct=V.createWriteStream(D.join(s,"ui.log"),{flags:"a"});v=Bi("npm",["run",$],{cwd:a,stdio:["ignore","pipe","pipe"],shell:!0,env:ac({VITE_API_BASE_URL:`http://localhost:${r}`,VITE_LICENSE_TYPE:f.type,VITE_LICENSE_COMPANY:f.company||""})}),v.stdout.pipe(Ct),v.stderr.pipe(Ct),v.on("error",()=>{})}i.text="Waiting for API to start (first run may take ~30s for dotnet build)...";try{await oc(r,18e4)}catch{if(i.fail(_.red("API did not start.")),console.log(_.gray(`
92
- Check logs: `+m)),v)try{v.kill()}catch{}process.exit(1)}i.succeed(_.green("API")+_.gray(` \u2014 http://localhost:${r}`));let R=await i0(r),N=l&&!e.apiOnly?`http://localhost:${qi}`:`http://localhost:${r}`;if(console.log(""),console.log(_.bold.green(" \u2713 xFramework running in Developer Mode!")),console.log(""),console.log(_.white(" Project: ")+_.gray(c.name||D.basename(s))),console.log(_.white(" API: ")+_.cyan(`http://localhost:${r}`)),l&&!e.apiOnly&&console.log(_.white(" UI: ")+_.cyan(`http://localhost:${qi}`)),R.isInstalled||console.log(_.gray(" First run \u2014 complete setup at: ")+_.cyan(`http://localhost:${l&&!e.apiOnly?qi:r}`)),f.type==="developer")console.log(_.white(" License: ")+_.green("Developer")+_.gray(" (localhost \u2014 no activation needed)"));else if(f.isLicensed){let T=f.expiresAt?_.gray(` \u2014 expires ${f.expiresAt.toDateString()} (${f.daysRemaining}d)`):"";console.log(_.white(" License: ")+_.green(`${f.type} \u2014 ${f.company}`)+T)}else console.log(_.white(" License: ")+_.yellow("Community \u2014 run: xFramework-cli license <key>"));console.log(_.white(" Log: ")+_.gray(m)),console.log(""),console.log(_.gray(" Press Ctrl+C to stop")),console.log(""),await e0(N);let W=()=>{if(console.log(""),i.start("Stopping..."),v)try{v.kill()}catch{}y.kill(),i.succeed("Stopped"),process.exit(0)};process.on("SIGINT",W),process.on("SIGTERM",W);let ne=()=>{y.once("exit",async T=>{if(T===42){console.log(""),console.log(_.cyan(" Setup complete \u2014 restarting API...")),i.start(_.gray("API restarting...")),b();try{await oc(r,18e4),i.succeed(_.green("API")+_.gray(` \u2014 http://localhost:${r} (restarted)`)),ne()}catch{if(i.fail(_.red("API failed to restart after setup.")),console.log(_.gray(" Check logs: "+m)),v)try{v.kill()}catch{}process.exit(1)}return}if(T!==0&&T!==null&&console.log(_.red(`
93
- API exited (code ${T}). Check: ${m}`)),v)try{v.kill()}catch{}process.exit(T||0)})};ne()}});var{program:re}=es(),u0=tn();re.name("xFramework-cli").description("xFramework \u2014 run your portal locally with one command").version(u0.version);re.command("start").description("Start the xFramework").option("--port <port>","Port to run on","7125").action(t=>{Ii()(t)});re.command("stop").description("Stop the xFramework").action(()=>{Bl()()});re.command("status").description("Check if the portal is running").action(()=>{Wl()()});re.command("backup").description("Create a manual database backup").action(()=>{zl()()});re.command("restore").description("Restore database from a backup").action(()=>{Jl()()});re.command("license [key]").description("Activate or check your xFramework license").option("--status","Show current license status").option("--remove","Remove the current license (revert to Community Edition)").action((t,e)=>{ec()(t,e)});re.command("init [name]").description("Create a new developer project with full API + UI source code").option("--db <provider>","Database provider: sqlserver | postgresql","").option("--no-install","Skip dotnet restore and npm install after scaffolding").option("--from <zipPath>","Use a local template zip instead of downloading from S3").action((t,e)=>{Mi()(t,e)});re.command("create [name]",{hidden:!0}).option("--db <provider>","","").option("--no-install").option("--from <zipPath>").action((t,e)=>{Mi()(t,e)});re.command("run").description("Start a developer project (API + UI) \u2014 run from project directory").option("--port <port>","API port (default: 5000)",String(5e3)).option("--api-only","Start API only, skip UI dev server").action(t=>{fc()(t)});re.parse(process.argv);process.argv.slice(2).length||Ii()({port:"7125"});
87
+ `;V.writeFileSync(D.join(n,"config.js"),s,"utf8")}function oc(t){let e=Object.fromEntries(Object.entries(process.env).filter(([r,n])=>typeof n=="string"&&!r.includes("\0")&&!n.includes("\0")));return Object.assign(e,t)}function l0(t){try{let e=V.readdirSync(t);if(e.some(r=>r.endsWith(".csproj")))return t;for(let r of e){let n=D.join(t,r);try{if(V.statSync(n).isDirectory()&&V.readdirSync(n).some(i=>i.endsWith(".csproj")))return n}catch{}}}catch{}return t}function c0(t){try{let r=JSON.parse(V.readFileSync(D.join(t,"package.json"),"utf8")).scripts||{};for(let n of["dev","start","serve"])if(r[n])return n}catch{}return"dev"}cc.exports=async function(e){let r=parseInt(e.port||String(r0),10),n=ac.platform()==="win32";console.log(""),console.log(b.bold.white(" xFramework")+b.gray(" \u2014 Developer Mode")),console.log(b.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));let i=Qp({text:"Checking environment...",color:"cyan"}).start(),s=s0(process.cwd());s||(i.fail(b.red("Not in an xFramework project directory.")),console.log(b.gray(`
88
+ Run from a directory created with:`)),console.log(b.cyan(" xFramework-cli init <project-name>")),process.exit(1));let o=D.join(s,"api"),a=D.join(s,"ui"),l=V.existsSync(D.join(a,"package.json")),c=JSON.parse(V.readFileSync(D.join(s,"xframework.json"),"utf8"));V.existsSync(o)||(i.fail(b.red("api/ directory not found.")),process.exit(1)),await n0()||(i.fail(b.red(".NET 8 SDK not found.")),console.log(""),console.log(b.yellow(" Install the .NET 8 SDK:")),console.log(b.cyan(" https://dotnet.microsoft.com/download/dotnet/8.0")),process.exit(1)),i.succeed(b.green("Environment")+b.gray(" \u2014 .NET SDK ready"));let f=o0(s);f.isLicensed&&f.type!=="developer"?i.succeed(b.green("License")+b.gray(` \u2014 ${f.type} \xB7 ${f.company||""}`)):i.succeed(b.green("License")+b.gray(" \u2014 developer (localhost)")),a0(s,f,r);let h=l0(o),g=D.join(h,"appsettings.Local.json");if(!V.existsSync(g)){let R=!1;try{R=JSON.parse(V.readFileSync(D.join(h,"appsettings.json"),"utf8"))?.AppSetup?.AppInstallRequired===!1}catch{}if(R){console.log(""),console.log(b.yellow(" \u26A0 appsettings.Local.json not found"));let j=[D.join(h,"appsettings.Local.json.example"),D.join(o,"appsettings.Local.json.example")].find(V.existsSync);j?(console.log(b.gray(" Copy it from the example and add your DB credentials:")),console.log(b.cyan(` copy "${D.relative(process.cwd(),j)}" "${D.relative(process.cwd(),g)}"`))):console.log(b.gray(` Create ${D.relative(s,g)} with your connection string.`)),console.log("")}}i.start("Starting API (dotnet run)...");let m=D.join(s,"api.log"),d=V.createWriteStream(m,{flags:"a"}),y=null,_=()=>{y=qi("dotnet",["run","--project",h,"--no-launch-profile","--urls",`http://localhost:${r}`],{cwd:h,stdio:["ignore","pipe","pipe"],shell:n,env:oc({ASPNETCORE_ENVIRONMENT:"Development",ASPNETCORE_URLS:`http://localhost:${r}`,CA_SETUP_MODE:"developer",CA_LICENSE_TYPE:f.type||"developer",CA_LICENSE_COMPANY:f.company||"",CA_LICENSE_EMAIL:f.email||"",CA_LICENSE_EXPIRES:f.expiresAt?f.expiresAt.toISOString():"",CA_LICENSE_VALID:f.isLicensed?"true":"false"})}),y.stdout.on("data",R=>{d.write(R);let j=R.toString();j.includes("Restoring packages")||j.includes("Restored ")?i.text=b.gray("API \u2014 restoring NuGet packages..."):j.includes("Build succeeded")?i.text=b.gray("API \u2014 build succeeded, launching..."):j.includes("Now listening")&&(i.text=b.gray("API \u2014 online"))}),y.stderr.on("data",R=>{d.write(R)}),y.on("error",R=>{R.code==="ENOENT"?(i.fail(b.red(".NET runtime not found")),console.log(b.yellow(`
89
+ Install the .NET 8 SDK:`)),console.log(b.cyan(" https://dotnet.microsoft.com/download/dotnet/8.0"))):i.fail(b.red("API failed to start: "+R.message)),process.exit(1)})};_();let v=null;if(l&&!e.apiOnly){i.stop(),console.log(""),console.log(b.bold.white(" Installing UI packages..."));let R=require("child_process").spawnSync("npm",["install","--include=optional"],{cwd:a,shell:!0,stdio:"inherit"});console.log(""),R.status===0?console.log(b.green(" \u2714 UI packages")+b.gray(" \u2014 ready")):console.log(b.yellow(" \u26A0 npm install failed")+b.gray(" \u2014 UI may not start")),i.start(b.gray("API building in background..."));let j=c0(a);i.text=`Starting UI dev server (npm run ${j})...`;let Ct=V.createWriteStream(D.join(s,"ui.log"),{flags:"a"});v=qi("npm",["run",j],{cwd:a,stdio:["ignore","pipe","pipe"],shell:!0,env:oc({VITE_API_BASE_URL:`http://localhost:${r}`,VITE_LICENSE_TYPE:f.type,VITE_LICENSE_COMPANY:f.company||""})}),v.stdout.pipe(Ct),v.stderr.pipe(Ct),v.on("error",()=>{})}i.text="Waiting for API to start (first run may take ~30s for dotnet build)...";try{await sc(r,18e4)}catch{if(i.fail(b.red("API did not start.")),console.log(b.gray(`
90
+ Check logs: `+m)),v)try{v.kill()}catch{}process.exit(1)}i.succeed(b.green("API")+b.gray(` \u2014 http://localhost:${r}`));let F=await i0(r),$=l&&!e.apiOnly?`http://localhost:${Mi}`:`http://localhost:${r}`;if(console.log(""),console.log(b.bold.green(" \u2713 xFramework running in Developer Mode!")),console.log(""),console.log(b.white(" Project: ")+b.gray(c.name||D.basename(s))),console.log(b.white(" API: ")+b.cyan(`http://localhost:${r}`)),l&&!e.apiOnly&&console.log(b.white(" UI: ")+b.cyan(`http://localhost:${Mi}`)),F.isInstalled||console.log(b.gray(" First run \u2014 complete setup at: ")+b.cyan(`http://localhost:${l&&!e.apiOnly?Mi:r}`)),f.type==="developer")console.log(b.white(" License: ")+b.green("Developer")+b.gray(" (localhost \u2014 no activation needed)"));else if(f.isLicensed){let R=f.expiresAt?b.gray(` \u2014 expires ${f.expiresAt.toDateString()} (${f.daysRemaining}d)`):"";console.log(b.white(" License: ")+b.green(`${f.type} \u2014 ${f.company}`)+R)}else console.log(b.white(" License: ")+b.yellow("Community \u2014 run: xFramework-cli license <key>"));console.log(b.white(" Log: ")+b.gray(m)),console.log(""),console.log(b.gray(" Press Ctrl+C to stop")),console.log(""),await e0($);let G=()=>{if(console.log(""),i.start("Stopping..."),v)try{v.kill()}catch{}y.kill(),i.succeed("Stopped"),process.exit(0)};process.on("SIGINT",G),process.on("SIGTERM",G);let fe=()=>{y.once("exit",async R=>{if(R===42){console.log(""),console.log(b.cyan(" Setup complete \u2014 restarting API...")),i.start(b.gray("API restarting...")),_();try{await sc(r,18e4),i.succeed(b.green("API")+b.gray(` \u2014 http://localhost:${r} (restarted)`)),fe()}catch{if(i.fail(b.red("API failed to restart after setup.")),console.log(b.gray(" Check logs: "+m)),v)try{v.kill()}catch{}process.exit(1)}return}if(R!==0&&R!==null&&console.log(b.red(`
91
+ API exited (code ${R}). Check: ${m}`)),v)try{v.kill()}catch{}process.exit(R||0)})};fe()}});var{program:re}=Qi(),u0=tn();re.name("xFramework-cli").description("xFramework \u2014 run your portal locally with one command").version(u0.version);re.command("start").description("Start the xFramework").option("--port <port>","Port to run on","7125").action(t=>{Ii()(t)});re.command("stop").description("Stop the xFramework").action(()=>{ql()()});re.command("status").description("Check if the portal is running").action(()=>{Vl()()});re.command("backup").description("Create a manual database backup").action(()=>{Gl()()});re.command("restore").description("Restore database from a backup").action(()=>{Yl()()});re.command("license [key]").description("Activate or check your xFramework license").option("--status","Show current license status").option("--remove","Remove the current license (revert to Community Edition)").action((t,e)=>{Ql()(t,e)});re.command("init [name]").description("Create a new developer project with full API + UI source code").option("--db <provider>","Database provider: sqlserver | postgresql","").option("--no-install","Skip dotnet restore and npm install after scaffolding").option("--from <zipPath>","Use a local template zip instead of downloading from S3").action((t,e)=>{Ni()(t,e)});re.command("create [name]",{hidden:!0}).option("--db <provider>","","").option("--no-install").option("--from <zipPath>").action((t,e)=>{Ni()(t,e)});re.command("run").description("Start a developer project (API + UI) \u2014 run from project directory").option("--port <port>","API port (default: 5000)",String(5e3)).option("--api-only","Start API only, skip UI dev server").action(t=>{uc()(t)});re.parse(process.argv);process.argv.slice(2).length||Ii()({port:"7125"});
94
92
  /*! Bundled license information:
95
93
 
96
94
  safe-buffer/index.js: