@arcblock/arcli 0.0.1-beta-2023-12-25-16-31-077
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -0
- package/dist/index.js +89 -0
- package/package.json +105 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
#! /usr/bin/env node
|
|
2
|
+
var jq=Object.create;var gg=Object.defineProperty;var $q=Object.getOwnPropertyDescriptor;var Hq=Object.getOwnPropertyNames;var zq=Object.getPrototypeOf,Wq=Object.prototype.hasOwnProperty;var Lc=(t,e)=>()=>(t&&(e=t(t=0)),e);var x=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Vq=(t,e)=>{for(var r in e)gg(t,r,{get:e[r],enumerable:!0})},Kq=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Hq(e))!Wq.call(t,s)&&s!==r&&gg(t,s,{get:()=>e[s],enumerable:!(n=$q(e,s))||n.enumerable});return t};var Ye=(t,e,r)=>(r=t!=null?jq(zq(t)):{},Kq(e||!t||!t.__esModule?gg(r,"default",{value:t,enumerable:!0}):r,t));var Ic=x(yg=>{var eh=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}},bg=class extends eh{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};yg.CommanderError=eh;yg.InvalidArgumentError=bg});var th=x(wg=>{var{InvalidArgumentError:Yq}=Ic(),_g=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 Yq(`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 Jq(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}wg.Argument=_g;wg.humanReadableArgName=Jq});var vg=x(j1=>{var{humanReadableArgName:Qq}=th(),Eg=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,s]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),o=e.createCommand(n).helpOption(!1);o.description(e._helpCommandDescription),s&&o.arguments(s),r.push(o)}return this.sortSubcommands&&r.sort((n,s)=>n.name().localeCompare(s.name())),r}visibleOptions(e){let r=e.options.filter(o=>!o.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),s=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||s){let o;n?s?o=e.createOption(e._helpFlags,e._helpDescription):o=e.createOption(e._helpShortFlag,e._helpDescription):o=e.createOption(e._helpLongFlag,e._helpDescription),r.push(o)}if(this.sortOptions){let o=u=>u.short?u.short.replace(/^-/,""):u.long.replace(/^--/,"");r.sort((u,f)=>o(u).localeCompare(o(f)))}return r}visibleArguments(e){return e._argsDescription&&e._args.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e._args.find(r=>r.description)?e._args:[]}subcommandTerm(e){let r=e._args.map(n=>Qq(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,s)=>Math.max(n,r.subcommandTerm(s).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,s)=>Math.max(n,r.optionTerm(s).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,s)=>Math.max(n,r.argumentTerm(s).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let s=e.parent;s;s=s.parent)n=s.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),s=r.helpWidth||80,o=2,u=2;function f(w,R){if(R){let I=`${w.padEnd(n+u)}${R}`;return r.wrap(I,s-o,n+u)}return w}function h(w){return w.join(`
|
|
3
|
+
`).replace(/^/gm," ".repeat(o))}let g=[`Usage: ${r.commandUsage(e)}`,""],d=r.commandDescription(e);d.length>0&&(g=g.concat([d,""]));let y=r.visibleArguments(e).map(w=>f(r.argumentTerm(w),r.argumentDescription(w)));y.length>0&&(g=g.concat(["Arguments:",h(y),""]));let v=r.visibleOptions(e).map(w=>f(r.optionTerm(w),r.optionDescription(w)));v.length>0&&(g=g.concat(["Options:",h(v),""]));let b=r.visibleCommands(e).map(w=>f(r.subcommandTerm(w),r.subcommandDescription(w)));return b.length>0&&(g=g.concat(["Commands:",h(b),""])),g.join(`
|
|
4
|
+
`)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,n,s=40){if(e.match(/[\n]\s+/))return e;let o=r-n;if(o<s)return e;let u=e.slice(0,n),f=e.slice(n),h=" ".repeat(n),g=new RegExp(".{1,"+(o-1)+"}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)","g"),d=f.match(g)||[];return u+d.map((y,v)=>(y.slice(-1)===`
|
|
5
|
+
`&&(y=y.slice(0,y.length-1)),(v>0?h:"")+y.trimRight())).join(`
|
|
6
|
+
`)}};j1.Help=Eg});var kg=x(rh=>{var{InvalidArgumentError:Xq}=Ic(),Sg=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=$1(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){return this.implied=Object.assign(this.implied||{},e),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 Xq(`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 Zq(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Tg=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 s=this.negativeOptions.get(n).presetArg,o=s!==void 0?s:!1;return r.negate===(o===e)}};function Zq(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function $1(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}}rh.Option=Sg;rh.splitOptionFlags=$1;rh.DualOptions=Tg});var z1=x(H1=>{function eU(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 s=1;s<=t.length;s++){let o=1;t[s-1]===e[n-1]?o=0:o=1,r[s][n]=Math.min(r[s-1][n]+1,r[s][n-1]+1,r[s-1][n-1]+o),s>1&&n>1&&t[s-1]===e[n-2]&&t[s-2]===e[n-1]&&(r[s][n]=Math.min(r[s][n],r[s-2][n-2]+1))}return r[t.length][e.length]}function tU(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(u=>u.slice(2)));let n=[],s=3,o=.4;return e.forEach(u=>{if(u.length<=1)return;let f=eU(t,u),h=Math.max(t.length,u.length);(h-f)/h>o&&(f<s?(s=f,n=[u]):f===s&&n.push(u))}),n.sort((u,f)=>u.localeCompare(f)),r&&(n=n.map(u=>`--${u}`)),n.length>1?`
|
|
7
|
+
(Did you mean one of ${n.join(", ")}?)`:n.length===1?`
|
|
8
|
+
(Did you mean ${n[0]}?)`:""}H1.suggestSimilar=tU});var Q1=x(J1=>{var rU=require("events").EventEmitter,xg=require("child_process"),xi=require("path"),Ag=require("fs"),dt=require("process"),{Argument:nU,humanReadableArgName:sU}=th(),{CommanderError:Rg}=Ic(),{Help:iU}=vg(),{Option:W1,splitOptionFlags:oU,DualOptions:aU}=kg(),{suggestSimilar:V1}=z1(),Bc=class extends rU{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this._args=[],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=>dt.stdout.write(r),writeErr:r=>dt.stderr.write(r),getOutHelpWidth:()=>dt.stdout.isTTY?dt.stdout.columns:void 0,getErrHelpWidth:()=>dt.stderr.isTTY?dt.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}command(e,r,n){let s=r,o=n;typeof s=="object"&&s!==null&&(o=s,s=null),o=o||{};let[,u,f]=e.match(/([^ ]+) *(.*)/),h=this.createCommand(u);return s&&(h.description(s),h._executableHandler=!0),o.isDefault&&(this._defaultCommandName=h._name),h._hidden=!!(o.noHelp||o.hidden),h._executableFile=o.executableFile||null,f&&h.arguments(f),this.commands.push(h),h.parent=this,h.copyInheritedSettings(this),s?this:h}createCommand(e){return new Bc(e)}createHelp(){return Object.assign(new iU,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
|
|
9
|
+
- 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 nU(e,r)}argument(e,r,n,s){let o=this.createArgument(e,r);return typeof n=="function"?o.default(s).argParser(n):o.default(n),this.addArgument(o),this}arguments(e){return e.split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this._args.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._args.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}'.
|
|
10
|
+
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 Rg(e,r,n)),dt.exit(e)}action(e){let r=n=>{let s=this._args.length,o=n.slice(0,s);return this._storeOptionsAsProperties?o[s]=this:o[s]=this.opts(),o.push(this),e.apply(this,o)};return this._actionHandler=r,this}createOption(e,r){return new W1(e,r)}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let o=e.long.replace(/^--no-/,"--");this._findOption(o)||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 s=(o,u,f)=>{o==null&&e.presetArg!==void 0&&(o=e.presetArg);let h=this.getOptionValue(n);if(o!==null&&e.parseArg)try{o=e.parseArg(o,h)}catch(g){if(g.code==="commander.invalidArgument"){let d=`${u} ${g.message}`;this.error(d,{exitCode:g.exitCode,code:g.code})}throw g}else o!==null&&e.variadic&&(o=e._concatValue(o,h));o==null&&(e.negate?o=!1:e.isBoolean()||e.optional?o=!0:o=""),this.setOptionValueWithSource(n,o,f)};return this.on("option:"+r,o=>{let u=`error: option '${e.flags}' argument '${o}' is invalid.`;s(o,u,"cli")}),e.envVar&&this.on("optionEnv:"+r,o=>{let u=`error: option '${e.flags}' value '${o}' from env '${e.envVar}' is invalid.`;s(o,u,"env")}),this}_optionEx(e,r,n,s,o){if(typeof r=="object"&&r instanceof W1)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let u=this.createOption(r,n);if(u.makeOptionMandatory(!!e.mandatory),typeof s=="function")u.default(o).argParser(s);else if(s instanceof RegExp){let f=s;s=(h,g)=>{let d=f.exec(h);return d?d[0]:g},u.default(o).argParser(s)}else u.default(s);return this.addOption(u)}option(e,r,n,s){return this._optionEx({},e,r,n,s)}requiredOption(e,r,n,s){return this._optionEx({mandatory:!0},e,r,n,s)}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._storeOptionsAsProperties=!!e,this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return 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]}_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=dt.argv,dt.versions&&dt.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":dt.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,s=[".js",".ts",".tsx",".mjs",".cjs"];function o(d,y){let v=xi.resolve(d,y);if(Ag.existsSync(v))return v;if(s.includes(xi.extname(y)))return;let b=s.find(w=>Ag.existsSync(`${v}${w}`));if(b)return`${v}${b}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let u=e._executableFile||`${this._name}-${e._name}`,f=this._executableDir||"";if(this._scriptPath){let d;try{d=Ag.realpathSync(this._scriptPath)}catch{d=this._scriptPath}f=xi.resolve(xi.dirname(d),f)}if(f){let d=o(f,u);if(!d&&!e._executableFile&&this._scriptPath){let y=xi.basename(this._scriptPath,xi.extname(this._scriptPath));y!==this._name&&(d=o(f,`${y}-${e._name}`))}u=d||u}n=s.includes(xi.extname(u));let h;dt.platform!=="win32"?n?(r.unshift(u),r=Y1(dt.execArgv).concat(r),h=xg.spawn(dt.argv[0],r,{stdio:"inherit"})):h=xg.spawn(u,r,{stdio:"inherit"}):(r.unshift(u),r=Y1(dt.execArgv).concat(r),h=xg.spawn(dt.execPath,r,{stdio:"inherit"})),h.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(y=>{dt.on(y,()=>{h.killed===!1&&h.exitCode===null&&h.kill(y)})});let g=this._exitCallback;g?h.on("close",()=>{g(new Rg(dt.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):h.on("close",dt.exit.bind(dt)),h.on("error",d=>{if(d.code==="ENOENT"){let y=f?`searched for local subcommand relative to directory '${f}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",v=`'${u}' does not exist
|
|
11
|
+
- if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
12
|
+
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
13
|
+
- ${y}`;throw new Error(v)}else if(d.code==="EACCES")throw new Error(`'${u}' not executable`);if(!g)dt.exit(1);else{let y=new Rg(1,"commander.executeSubCommandAsync","(error)");y.nestedError=d,g(y)}}),this.runningCommand=h}_dispatchSubcommand(e,r,n){let s=this._findCommand(e);s||this.help({error:!0});let o;return o=this._chainOrCallSubCommandHook(o,s,"preSubcommand"),o=this._chainOrCall(o,()=>{if(s._executableHandler)this._executeSubCommand(s,r.concat(n));else return s._parseCommand(r,n)}),o}_checkNumberOfArguments(){this._args.forEach((e,r)=>{e.required&&this.args[r]==null&&this.missingArgument(e.name())}),!(this._args.length>0&&this._args[this._args.length-1].variadic)&&this.args.length>this._args.length&&this._excessArguments(this.args)}_processArguments(){let e=(n,s,o)=>{let u=s;if(s!==null&&n.parseArg)try{u=n.parseArg(s,o)}catch(f){if(f.code==="commander.invalidArgument"){let h=`error: command-argument value '${s}' is invalid for argument '${n.name()}'. ${f.message}`;this.error(h,{exitCode:f.exitCode,code:f.code})}throw f}return u};this._checkNumberOfArguments();let r=[];this._args.forEach((n,s)=>{let o=n.defaultValue;n.variadic?s<this.args.length?(o=this.args.slice(s),n.parseArg&&(o=o.reduce((u,f)=>e(n,f,u),n.defaultValue))):o===void 0&&(o=[]):s<this.args.length&&(o=this.args[s],n.parseArg&&(o=e(n,o,n.defaultValue))),r[s]=o}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let n=e,s=[];return nh(this).reverse().filter(o=>o._lifeCycleHooks[r]!==void 0).forEach(o=>{o._lifeCycleHooks[r].forEach(u=>{s.push({hookedCommand:o,callback:u})})}),r==="postAction"&&s.reverse(),s.forEach(o=>{n=this._chainOrCall(n,()=>o.callback(o.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,r,n){let s=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(o=>{s=this._chainOrCall(s,()=>o(this,r))}),s}_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 e.length===1&&this.help(),this._dispatchSubcommand(e[1],[],[this._helpLongFlag]);if(this._defaultCommandName)return K1(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),K1(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let s=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},o=`command:${this.name()}`;if(this._actionHandler){s(),this._processArguments();let u;return u=this._chainOrCallHooks(u,"preAction"),u=this._chainOrCall(u,()=>this._actionHandler(this.processedArgs)),this.parent&&(u=this._chainOrCall(u,()=>{this.parent.emit(o,e,r)})),u=this._chainOrCallHooks(u,"postAction"),u}if(this.parent&&this.parent.listenerCount(o))s(),this._processArguments(),this.parent.emit(o,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():(s(),this._processArguments())}else this.commands.length?(s(),this.help({error:!0})):(s(),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(){for(let e=this;e;e=e.parent)e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})}_checkForConflictingLocalOptions(){let e=this.options.filter(n=>{let s=n.attributeName();return this.getOptionValue(s)===void 0?!1:this.getOptionValueSource(s)!=="default"});e.filter(n=>n.conflictsWith.length>0).forEach(n=>{let s=e.find(o=>n.conflictsWith.includes(o.attributeName()));s&&this._conflictingOption(n,s)})}_checkForConflictingOptions(){for(let e=this;e;e=e.parent)e._checkForConflictingLocalOptions()}parseOptions(e){let r=[],n=[],s=r,o=e.slice();function u(h){return h.length>1&&h[0]==="-"}let f=null;for(;o.length;){let h=o.shift();if(h==="--"){s===n&&s.push(h),s.push(...o);break}if(f&&!u(h)){this.emit(`option:${f.name()}`,h);continue}if(f=null,u(h)){let g=this._findOption(h);if(g){if(g.required){let d=o.shift();d===void 0&&this.optionMissingArgument(g),this.emit(`option:${g.name()}`,d)}else if(g.optional){let d=null;o.length>0&&!u(o[0])&&(d=o.shift()),this.emit(`option:${g.name()}`,d)}else this.emit(`option:${g.name()}`);f=g.variadic?g:null;continue}}if(h.length>2&&h[0]==="-"&&h[1]!=="-"){let g=this._findOption(`-${h[1]}`);if(g){g.required||g.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${g.name()}`,h.slice(2)):(this.emit(`option:${g.name()}`),o.unshift(`-${h.slice(2)}`));continue}}if(/^--[^=]+=/.test(h)){let g=h.indexOf("="),d=this._findOption(h.slice(0,g));if(d&&(d.required||d.optional)){this.emit(`option:${d.name()}`,h.slice(g+1));continue}}if(u(h)&&(s=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(h)){r.push(h),o.length>0&&n.push(...o);break}else if(h===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(h),o.length>0&&r.push(...o);break}else if(this._defaultCommandName){n.push(h),o.length>0&&n.push(...o);break}}if(this._passThroughOptions){s.push(h),o.length>0&&s.push(...o);break}s.push(h)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let n=0;n<r;n++){let s=this.options[n].attributeName();e[s]=s===this._versionOptionName?this._version:this[s]}return e}return this._optionValues}optsWithGlobals(){return nh(this).reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
|
|
14
|
+
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
15
|
+
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
16
|
+
`),this.outputHelp({error:!0}));let n=r||{},s=n.exitCode||1,o=n.code||"commander.error";this._exit(s,o,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in dt.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()}`,dt.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new aU(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(s=>!r(s)).forEach(s=>{this.setOptionValueWithSource(s,n.implied[s],"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=u=>{let f=u.attributeName(),h=this.getOptionValue(f),g=this.options.find(y=>y.negate&&f===y.attributeName()),d=this.options.find(y=>!y.negate&&f===y.attributeName());return g&&(g.presetArg===void 0&&h===!1||g.presetArg!==void 0&&h===g.presetArg)?g:d||u},s=u=>{let f=n(u),h=f.attributeName();return this.getOptionValueSource(h)==="env"?`environment variable '${f.envVar}'`:`option '${f.flags}'`},o=`error: ${s(e)} cannot be used with ${s(r)}`;this.error(o,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let s=[],o=this;do{let u=o.createHelp().visibleOptions(o).filter(f=>f.long).map(f=>f.long);s=s.concat(u),o=o.parent}while(o&&!o._enablePositionalOptions);r=V1(e,s)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this._args.length,n=r===1?"":"s",o=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(o,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let s=[];this.createHelp().visibleCommands(this).forEach(o=>{s.push(o.name()),o.alias()&&s.push(o.alias())}),r=V1(e,s)}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 s=this.createOption(r,n);return this._versionOptionName=s.attributeName(),this.options.push(s),this.on("option:"+s.name(),()=>{this._outputConfiguration.writeOut(`${e}
|
|
17
|
+
`),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._args.map(n=>sU(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.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=xi.basename(e,xi.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=s=>this._outputConfiguration.writeErr(s):n=s=>this._outputConfiguration.writeOut(s),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);nh(this).reverse().forEach(o=>o.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let s=this.helpInformation(n);if(r&&(s=r(s),typeof s!="string"&&!Buffer.isBuffer(s)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(s),this.emit(this._helpLongFlag),this.emit("afterHelp",n),nh(this).forEach(o=>o.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=oU(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=dt.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.
|
|
18
|
+
Expecting one of '${n.join("', '")}'`);let s=`${e}Help`;return this.on(s,o=>{let u;typeof r=="function"?u=r({error:o.error,command:o.command}):u=r,u&&o.write(`${u}
|
|
19
|
+
`)}),this}};function K1(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Y1(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",s="9229",o;return(o=e.match(/^(--inspect(-brk)?)$/))!==null?r=o[1]:(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=o[1],/^\d+$/.test(o[3])?s=o[3]:n=o[3]):(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=o[1],n=o[3],s=o[4]),r&&s!=="0"?`${r}=${n}:${parseInt(s)+1}`:e})}function nh(t){let e=[];for(let r=t;r;r=r.parent)e.push(r);return e}J1.Command=Bc});var tv=x((us,ev)=>{var{Argument:uU}=th(),{Command:X1}=Q1(),{CommanderError:cU,InvalidArgumentError:Z1}=Ic(),{Help:lU}=vg(),{Option:fU}=kg();us=ev.exports=new X1;us.program=us;us.Argument=uU;us.Command=X1;us.CommanderError=cU;us.Help=lU;us.InvalidArgumentError=Z1;us.InvalidOptionArgumentError=Z1;us.Option=fU});var Nr=x(Cg=>{"use strict";Cg.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((r,n)=>{t.call(this,...e,(s,o)=>s!=null?n(s):r(o))})},"name",{value:t.name})};Cg.fromPromise=function(t){return Object.defineProperty(function(...e){let r=e[e.length-1];if(typeof r!="function")return t.apply(this,e);t.apply(this,e.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:t.name})}});var iv=x((Use,sv)=>{var so=require("constants"),hU=process.cwd,ih=null,pU=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return ih||(ih=hU.call(process)),ih};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Dg=process.chdir,process.chdir=function(t){ih=null,Dg.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Dg));var Dg;sv.exports=dU;function dU(t){so.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=o(t.chown),t.fchown=o(t.fchown),t.lchown=o(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=u(t.chownSync),t.fchownSync=u(t.fchownSync),t.lchownSync=u(t.lchownSync),t.chmodSync=s(t.chmodSync),t.fchmodSync=s(t.fchmodSync),t.lchmodSync=s(t.lchmodSync),t.stat=f(t.stat),t.fstat=f(t.fstat),t.lstat=f(t.lstat),t.statSync=h(t.statSync),t.fstatSync=h(t.fstatSync),t.lstatSync=h(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(d,y,v){v&&process.nextTick(v)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(d,y,v,b){b&&process.nextTick(b)},t.lchownSync=function(){}),pU==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(d){function y(v,b,w){var R=Date.now(),I=0;d(v,b,function D(P){if(P&&(P.code==="EACCES"||P.code==="EPERM")&&Date.now()-R<6e4){setTimeout(function(){t.stat(b,function(G,q){G&&G.code==="ENOENT"?d(v,b,D):w(P)})},I),I<100&&(I+=10);return}w&&w(P)})}return Object.setPrototypeOf&&Object.setPrototypeOf(y,d),y}(t.rename)),t.read=typeof t.read!="function"?t.read:function(d){function y(v,b,w,R,I,D){var P;if(D&&typeof D=="function"){var G=0;P=function(q,z,N){if(q&&q.code==="EAGAIN"&&G<10)return G++,d.call(t,v,b,w,R,I,P);D.apply(this,arguments)}}return d.call(t,v,b,w,R,I,P)}return Object.setPrototypeOf&&Object.setPrototypeOf(y,d),y}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(d){return function(y,v,b,w,R){for(var I=0;;)try{return d.call(t,y,v,b,w,R)}catch(D){if(D.code==="EAGAIN"&&I<10){I++;continue}throw D}}}(t.readSync);function e(d){d.lchmod=function(y,v,b){d.open(y,so.O_WRONLY|so.O_SYMLINK,v,function(w,R){if(w){b&&b(w);return}d.fchmod(R,v,function(I){d.close(R,function(D){b&&b(I||D)})})})},d.lchmodSync=function(y,v){var b=d.openSync(y,so.O_WRONLY|so.O_SYMLINK,v),w=!0,R;try{R=d.fchmodSync(b,v),w=!1}finally{if(w)try{d.closeSync(b)}catch{}else d.closeSync(b)}return R}}function r(d){so.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(y,v,b,w){d.open(y,so.O_SYMLINK,function(R,I){if(R){w&&w(R);return}d.futimes(I,v,b,function(D){d.close(I,function(P){w&&w(D||P)})})})},d.lutimesSync=function(y,v,b){var w=d.openSync(y,so.O_SYMLINK),R,I=!0;try{R=d.futimesSync(w,v,b),I=!1}finally{if(I)try{d.closeSync(w)}catch{}else d.closeSync(w)}return R}):d.futimes&&(d.lutimes=function(y,v,b,w){w&&process.nextTick(w)},d.lutimesSync=function(){})}function n(d){return d&&function(y,v,b){return d.call(t,y,v,function(w){g(w)&&(w=null),b&&b.apply(this,arguments)})}}function s(d){return d&&function(y,v){try{return d.call(t,y,v)}catch(b){if(!g(b))throw b}}}function o(d){return d&&function(y,v,b,w){return d.call(t,y,v,b,function(R){g(R)&&(R=null),w&&w.apply(this,arguments)})}}function u(d){return d&&function(y,v,b){try{return d.call(t,y,v,b)}catch(w){if(!g(w))throw w}}}function f(d){return d&&function(y,v,b){typeof v=="function"&&(b=v,v=null);function w(R,I){I&&(I.uid<0&&(I.uid+=4294967296),I.gid<0&&(I.gid+=4294967296)),b&&b.apply(this,arguments)}return v?d.call(t,y,v,w):d.call(t,y,w)}}function h(d){return d&&function(y,v){var b=v?d.call(t,y,v):d.call(t,y);return b&&(b.uid<0&&(b.uid+=4294967296),b.gid<0&&(b.gid+=4294967296)),b}}function g(d){if(!d||d.code==="ENOSYS")return!0;var y=!process.getuid||process.getuid()!==0;return!!(y&&(d.code==="EINVAL"||d.code==="EPERM"))}}});var uv=x((Nse,av)=>{var ov=require("stream").Stream;av.exports=mU;function mU(t){return{ReadStream:e,WriteStream:r};function e(n,s){if(!(this instanceof e))return new e(n,s);ov.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var u=Object.keys(s),f=0,h=u.length;f<h;f++){var g=u[f];this[g]=s[g]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}t.open(this.path,this.flags,this.mode,function(d,y){if(d){o.emit("error",d),o.readable=!1;return}o.fd=y,o.emit("open",y),o._read()})}function r(n,s){if(!(this instanceof r))return new r(n,s);ov.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var o=Object.keys(s),u=0,f=o.length;u<f;u++){var h=o[u];this[h]=s[h]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var lv=x((Mse,cv)=>{"use strict";cv.exports=bU;var gU=Object.getPrototypeOf||function(t){return t.__proto__};function bU(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:gU(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var xr=x((jse,Fg)=>{var yt=require("fs"),yU=iv(),_U=uv(),wU=lv(),oh=require("util"),Zt,uh;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Zt=Symbol.for("graceful-fs.queue"),uh=Symbol.for("graceful-fs.previous")):(Zt="___graceful-fs.queue",uh="___graceful-fs.previous");function EU(){}function pv(t,e){Object.defineProperty(t,Zt,{get:function(){return e}})}var ta=EU;oh.debuglog?ta=oh.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(ta=function(){var t=oh.format.apply(oh,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
20
|
+
GFS4: `),console.error(t)});yt[Zt]||(fv=global[Zt]||[],pv(yt,fv),yt.close=function(t){function e(r,n){return t.call(yt,r,function(s){s||hv(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,uh,{value:t}),e}(yt.close),yt.closeSync=function(t){function e(r){t.apply(yt,arguments),hv()}return Object.defineProperty(e,uh,{value:t}),e}(yt.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){ta(yt[Zt]),require("assert").equal(yt[Zt].length,0)}));var fv;global[Zt]||pv(global,yt[Zt]);Fg.exports=Og(wU(yt));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!yt.__patched&&(Fg.exports=Og(yt),yt.__patched=!0);function Og(t){yU(t),t.gracefulify=Og,t.createReadStream=z,t.createWriteStream=N;var e=t.readFile;t.readFile=r;function r(X,le,M){return typeof le=="function"&&(M=le,le=null),de(X,le,M);function de(ae,Re,j,$){return e(ae,Re,function(ve){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?ru([de,[ae,Re,j],ve,$||Date.now(),Date.now()]):typeof j=="function"&&j.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(X,le,M,de){return typeof M=="function"&&(de=M,M=null),ae(X,le,M,de);function ae(Re,j,$,ve,ge){return n(Re,j,$,function(ye){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?ru([ae,[Re,j,$,ve],ye,ge||Date.now(),Date.now()]):typeof ve=="function"&&ve.apply(this,arguments)})}}var o=t.appendFile;o&&(t.appendFile=u);function u(X,le,M,de){return typeof M=="function"&&(de=M,M=null),ae(X,le,M,de);function ae(Re,j,$,ve,ge){return o(Re,j,$,function(ye){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?ru([ae,[Re,j,$,ve],ye,ge||Date.now(),Date.now()]):typeof ve=="function"&&ve.apply(this,arguments)})}}var f=t.copyFile;f&&(t.copyFile=h);function h(X,le,M,de){return typeof M=="function"&&(de=M,M=0),ae(X,le,M,de);function ae(Re,j,$,ve,ge){return f(Re,j,$,function(ye){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?ru([ae,[Re,j,$,ve],ye,ge||Date.now(),Date.now()]):typeof ve=="function"&&ve.apply(this,arguments)})}}var g=t.readdir;t.readdir=y;var d=/^v[0-5]\./;function y(X,le,M){typeof le=="function"&&(M=le,le=null);var de=d.test(process.version)?function(j,$,ve,ge){return g(j,ae(j,$,ve,ge))}:function(j,$,ve,ge){return g(j,$,ae(j,$,ve,ge))};return de(X,le,M);function ae(Re,j,$,ve){return function(ge,ye){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?ru([de,[Re,j,$],ge,ve||Date.now(),Date.now()]):(ye&&ye.sort&&ye.sort(),typeof $=="function"&&$.call(this,ge,ye))}}}if(process.version.substr(0,4)==="v0.8"){var v=_U(t);D=v.ReadStream,G=v.WriteStream}var b=t.ReadStream;b&&(D.prototype=Object.create(b.prototype),D.prototype.open=P);var w=t.WriteStream;w&&(G.prototype=Object.create(w.prototype),G.prototype.open=q),Object.defineProperty(t,"ReadStream",{get:function(){return D},set:function(X){D=X},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return G},set:function(X){G=X},enumerable:!0,configurable:!0});var R=D;Object.defineProperty(t,"FileReadStream",{get:function(){return R},set:function(X){R=X},enumerable:!0,configurable:!0});var I=G;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(X){I=X},enumerable:!0,configurable:!0});function D(X,le){return this instanceof D?(b.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function P(){var X=this;W(X.path,X.flags,X.mode,function(le,M){le?(X.autoClose&&X.destroy(),X.emit("error",le)):(X.fd=M,X.emit("open",M),X.read())})}function G(X,le){return this instanceof G?(w.apply(this,arguments),this):G.apply(Object.create(G.prototype),arguments)}function q(){var X=this;W(X.path,X.flags,X.mode,function(le,M){le?(X.destroy(),X.emit("error",le)):(X.fd=M,X.emit("open",M))})}function z(X,le){return new t.ReadStream(X,le)}function N(X,le){return new t.WriteStream(X,le)}var L=t.open;t.open=W;function W(X,le,M,de){return typeof M=="function"&&(de=M,M=null),ae(X,le,M,de);function ae(Re,j,$,ve,ge){return L(Re,j,$,function(ye,_t){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?ru([ae,[Re,j,$,ve],ye,ge||Date.now(),Date.now()]):typeof ve=="function"&&ve.apply(this,arguments)})}}return t}function ru(t){ta("ENQUEUE",t[0].name,t[1]),yt[Zt].push(t),Pg()}var ah;function hv(){for(var t=Date.now(),e=0;e<yt[Zt].length;++e)yt[Zt][e].length>2&&(yt[Zt][e][3]=t,yt[Zt][e][4]=t);Pg()}function Pg(){if(clearTimeout(ah),ah=void 0,yt[Zt].length!==0){var t=yt[Zt].shift(),e=t[0],r=t[1],n=t[2],s=t[3],o=t[4];if(s===void 0)ta("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){ta("TIMEOUT",e.name,r);var u=r.pop();typeof u=="function"&&u.call(null,n)}else{var f=Date.now()-o,h=Math.max(o-s,1),g=Math.min(h*1.2,100);f>=g?(ta("RETRY",e.name,r),e.apply(null,r.concat([s]))):yt[Zt].push(t)}ah===void 0&&(ah=setTimeout(Pg,0))}}});var ra=x(io=>{"use strict";var dv=Nr().fromCallback,Mr=xr(),vU=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof Mr[t]=="function");Object.assign(io,Mr);vU.forEach(t=>{io[t]=dv(Mr[t])});io.exists=function(t,e){return typeof e=="function"?Mr.exists(t,e):new Promise(r=>Mr.exists(t,r))};io.read=function(t,e,r,n,s,o){return typeof o=="function"?Mr.read(t,e,r,n,s,o):new Promise((u,f)=>{Mr.read(t,e,r,n,s,(h,g,d)=>{if(h)return f(h);u({bytesRead:g,buffer:d})})})};io.write=function(t,e,...r){return typeof r[r.length-1]=="function"?Mr.write(t,e,...r):new Promise((n,s)=>{Mr.write(t,e,...r,(o,u,f)=>{if(o)return s(o);n({bytesWritten:u,buffer:f})})})};typeof Mr.writev=="function"&&(io.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?Mr.writev(t,e,...r):new Promise((n,s)=>{Mr.writev(t,e,...r,(o,u,f)=>{if(o)return s(o);n({bytesWritten:u,buffers:f})})})});typeof Mr.realpath.native=="function"?io.realpath.native=dv(Mr.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var gv=x((Hse,mv)=>{"use strict";var SU=require("path");mv.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(SU.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}}});var wv=x((zse,Lg)=>{"use strict";var bv=ra(),{checkPath:yv}=gv(),_v=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};Lg.exports.makeDir=async(t,e)=>(yv(t),bv.mkdir(t,{mode:_v(e),recursive:!0}));Lg.exports.makeDirSync=(t,e)=>(yv(t),bv.mkdirSync(t,{mode:_v(e),recursive:!0}))});var cs=x((Wse,Ev)=>{"use strict";var TU=Nr().fromPromise,{makeDir:kU,makeDirSync:Ig}=wv(),Bg=TU(kU);Ev.exports={mkdirs:Bg,mkdirsSync:Ig,mkdirp:Bg,mkdirpSync:Ig,ensureDir:Bg,ensureDirSync:Ig}});var oo=x((Vse,Sv)=>{"use strict";var xU=Nr().fromPromise,vv=ra();function AU(t){return vv.access(t).then(()=>!0).catch(()=>!1)}Sv.exports={pathExists:xU(AU),pathExistsSync:vv.existsSync}});var Gg=x((Kse,Tv)=>{"use strict";var nu=xr();function RU(t,e,r,n){nu.open(t,"r+",(s,o)=>{if(s)return n(s);nu.futimes(o,e,r,u=>{nu.close(o,f=>{n&&n(u||f)})})})}function CU(t,e,r){let n=nu.openSync(t,"r+");return nu.futimesSync(n,e,r),nu.closeSync(n)}Tv.exports={utimesMillis:RU,utimesMillisSync:CU}});var na=x((Yse,Av)=>{"use strict";var su=ra(),Nt=require("path"),DU=require("util");function OU(t,e,r){let n=r.dereference?s=>su.stat(s,{bigint:!0}):s=>su.lstat(s,{bigint:!0});return Promise.all([n(t),n(e).catch(s=>{if(s.code==="ENOENT")return null;throw s})]).then(([s,o])=>({srcStat:s,destStat:o}))}function PU(t,e,r){let n,s=r.dereference?u=>su.statSync(u,{bigint:!0}):u=>su.lstatSync(u,{bigint:!0}),o=s(t);try{n=s(e)}catch(u){if(u.code==="ENOENT")return{srcStat:o,destStat:null};throw u}return{srcStat:o,destStat:n}}function FU(t,e,r,n,s){DU.callbackify(OU)(t,e,n,(o,u)=>{if(o)return s(o);let{srcStat:f,destStat:h}=u;if(h){if(Gc(f,h)){let g=Nt.basename(t),d=Nt.basename(e);return r==="move"&&g!==d&&g.toLowerCase()===d.toLowerCase()?s(null,{srcStat:f,destStat:h,isChangingCase:!0}):s(new Error("Source and destination must not be the same."))}if(f.isDirectory()&&!h.isDirectory())return s(new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`));if(!f.isDirectory()&&h.isDirectory())return s(new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`))}return f.isDirectory()&&qg(t,e)?s(new Error(ch(t,e,r))):s(null,{srcStat:f,destStat:h})})}function LU(t,e,r,n){let{srcStat:s,destStat:o}=PU(t,e,n);if(o){if(Gc(s,o)){let u=Nt.basename(t),f=Nt.basename(e);if(r==="move"&&u!==f&&u.toLowerCase()===f.toLowerCase())return{srcStat:s,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!s.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(s.isDirectory()&&qg(t,e))throw new Error(ch(t,e,r));return{srcStat:s,destStat:o}}function kv(t,e,r,n,s){let o=Nt.resolve(Nt.dirname(t)),u=Nt.resolve(Nt.dirname(r));if(u===o||u===Nt.parse(u).root)return s();su.stat(u,{bigint:!0},(f,h)=>f?f.code==="ENOENT"?s():s(f):Gc(e,h)?s(new Error(ch(t,r,n))):kv(t,e,u,n,s))}function xv(t,e,r,n){let s=Nt.resolve(Nt.dirname(t)),o=Nt.resolve(Nt.dirname(r));if(o===s||o===Nt.parse(o).root)return;let u;try{u=su.statSync(o,{bigint:!0})}catch(f){if(f.code==="ENOENT")return;throw f}if(Gc(e,u))throw new Error(ch(t,r,n));return xv(t,e,o,n)}function Gc(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function qg(t,e){let r=Nt.resolve(t).split(Nt.sep).filter(s=>s),n=Nt.resolve(e).split(Nt.sep).filter(s=>s);return r.reduce((s,o,u)=>s&&n[u]===o,!0)}function ch(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}Av.exports={checkPaths:FU,checkPathsSync:LU,checkParentPaths:kv,checkParentPathsSync:xv,isSrcSubdir:qg,areIdentical:Gc}});var Iv=x((Jse,Lv)=>{"use strict";var jr=xr(),qc=require("path"),IU=cs().mkdirs,BU=oo().pathExists,GU=Gg().utimesMillis,Uc=na();function qU(t,e,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
21
|
+
|
|
22
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),Uc.checkPaths(t,e,"copy",r,(s,o)=>{if(s)return n(s);let{srcStat:u,destStat:f}=o;Uc.checkParentPaths(t,u,e,"copy",h=>h?n(h):r.filter?Dv(Rv,f,t,e,r,n):Rv(f,t,e,r,n))})}function Rv(t,e,r,n,s){let o=qc.dirname(r);BU(o,(u,f)=>{if(u)return s(u);if(f)return lh(t,e,r,n,s);IU(o,h=>h?s(h):lh(t,e,r,n,s))})}function Dv(t,e,r,n,s,o){Promise.resolve(s.filter(r,n)).then(u=>u?t(e,r,n,s,o):o(),u=>o(u))}function UU(t,e,r,n,s){return n.filter?Dv(lh,t,e,r,n,s):lh(t,e,r,n,s)}function lh(t,e,r,n,s){(n.dereference?jr.stat:jr.lstat)(e,(u,f)=>u?s(u):f.isDirectory()?WU(f,t,e,r,n,s):f.isFile()||f.isCharacterDevice()||f.isBlockDevice()?NU(f,t,e,r,n,s):f.isSymbolicLink()?YU(t,e,r,n,s):f.isSocket()?s(new Error(`Cannot copy a socket file: ${e}`)):f.isFIFO()?s(new Error(`Cannot copy a FIFO pipe: ${e}`)):s(new Error(`Unknown file: ${e}`)))}function NU(t,e,r,n,s,o){return e?MU(t,r,n,s,o):Ov(t,r,n,s,o)}function MU(t,e,r,n,s){if(n.overwrite)jr.unlink(r,o=>o?s(o):Ov(t,e,r,n,s));else return n.errorOnExist?s(new Error(`'${r}' already exists`)):s()}function Ov(t,e,r,n,s){jr.copyFile(e,r,o=>o?s(o):n.preserveTimestamps?jU(t.mode,e,r,s):fh(r,t.mode,s))}function jU(t,e,r,n){return $U(t)?HU(r,t,s=>s?n(s):Cv(t,e,r,n)):Cv(t,e,r,n)}function $U(t){return(t&128)===0}function HU(t,e,r){return fh(t,e|128,r)}function Cv(t,e,r,n){zU(e,r,s=>s?n(s):fh(r,t,n))}function fh(t,e,r){return jr.chmod(t,e,r)}function zU(t,e,r){jr.stat(t,(n,s)=>n?r(n):GU(e,s.atime,s.mtime,r))}function WU(t,e,r,n,s,o){return e?Pv(r,n,s,o):VU(t.mode,r,n,s,o)}function VU(t,e,r,n,s){jr.mkdir(r,o=>{if(o)return s(o);Pv(e,r,n,u=>u?s(u):fh(r,t,s))})}function Pv(t,e,r,n){jr.readdir(t,(s,o)=>s?n(s):Fv(o,t,e,r,n))}function Fv(t,e,r,n,s){let o=t.pop();return o?KU(t,o,e,r,n,s):s()}function KU(t,e,r,n,s,o){let u=qc.join(r,e),f=qc.join(n,e);Uc.checkPaths(u,f,"copy",s,(h,g)=>{if(h)return o(h);let{destStat:d}=g;UU(d,u,f,s,y=>y?o(y):Fv(t,r,n,s,o))})}function YU(t,e,r,n,s){jr.readlink(e,(o,u)=>{if(o)return s(o);if(n.dereference&&(u=qc.resolve(process.cwd(),u)),t)jr.readlink(r,(f,h)=>f?f.code==="EINVAL"||f.code==="UNKNOWN"?jr.symlink(u,r,s):s(f):(n.dereference&&(h=qc.resolve(process.cwd(),h)),Uc.isSrcSubdir(u,h)?s(new Error(`Cannot copy '${u}' to a subdirectory of itself, '${h}'.`)):t.isDirectory()&&Uc.isSrcSubdir(h,u)?s(new Error(`Cannot overwrite '${h}' with '${u}'.`)):JU(u,r,s)));else return jr.symlink(u,r,s)})}function JU(t,e,r){jr.unlink(e,n=>n?r(n):jr.symlink(t,e,r))}Lv.exports=qU});var Nv=x((Qse,Uv)=>{"use strict";var hr=xr(),Nc=require("path"),QU=cs().mkdirsSync,XU=Gg().utimesMillisSync,Mc=na();function ZU(t,e,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
23
|
+
|
|
24
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:s}=Mc.checkPathsSync(t,e,"copy",r);return Mc.checkParentPathsSync(t,n,e,"copy"),eN(s,t,e,r)}function eN(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let s=Nc.dirname(r);return hr.existsSync(s)||QU(s),Bv(t,e,r,n)}function tN(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return Bv(t,e,r,n)}function Bv(t,e,r,n){let o=(n.dereference?hr.statSync:hr.lstatSync)(e);if(o.isDirectory())return uN(o,t,e,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return rN(o,t,e,r,n);if(o.isSymbolicLink())return fN(t,e,r,n);throw o.isSocket()?new Error(`Cannot copy a socket file: ${e}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function rN(t,e,r,n,s){return e?nN(t,r,n,s):Gv(t,r,n,s)}function nN(t,e,r,n){if(n.overwrite)return hr.unlinkSync(r),Gv(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Gv(t,e,r,n){return hr.copyFileSync(e,r),n.preserveTimestamps&&sN(t.mode,e,r),Ug(r,t.mode)}function sN(t,e,r){return iN(t)&&oN(r,t),aN(e,r)}function iN(t){return(t&128)===0}function oN(t,e){return Ug(t,e|128)}function Ug(t,e){return hr.chmodSync(t,e)}function aN(t,e){let r=hr.statSync(t);return XU(e,r.atime,r.mtime)}function uN(t,e,r,n,s){return e?qv(r,n,s):cN(t.mode,r,n,s)}function cN(t,e,r,n){return hr.mkdirSync(r),qv(e,r,n),Ug(r,t)}function qv(t,e,r){hr.readdirSync(t).forEach(n=>lN(n,t,e,r))}function lN(t,e,r,n){let s=Nc.join(e,t),o=Nc.join(r,t),{destStat:u}=Mc.checkPathsSync(s,o,"copy",n);return tN(u,s,o,n)}function fN(t,e,r,n){let s=hr.readlinkSync(e);if(n.dereference&&(s=Nc.resolve(process.cwd(),s)),t){let o;try{o=hr.readlinkSync(r)}catch(u){if(u.code==="EINVAL"||u.code==="UNKNOWN")return hr.symlinkSync(s,r);throw u}if(n.dereference&&(o=Nc.resolve(process.cwd(),o)),Mc.isSrcSubdir(s,o))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${o}'.`);if(hr.statSync(r).isDirectory()&&Mc.isSrcSubdir(o,s))throw new Error(`Cannot overwrite '${o}' with '${s}'.`);return hN(s,r)}else return hr.symlinkSync(s,r)}function hN(t,e){return hr.unlinkSync(e),hr.symlinkSync(t,e)}Uv.exports=ZU});var hh=x((Xse,Mv)=>{"use strict";var pN=Nr().fromCallback;Mv.exports={copy:pN(Iv()),copySync:Nv()}});var Jv=x((Zse,Yv)=>{"use strict";var jv=xr(),Wv=require("path"),ut=require("assert"),jc=process.platform==="win32";function Vv(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||jv[r],r=r+"Sync",t[r]=t[r]||jv[r]}),t.maxBusyTries=t.maxBusyTries||3}function Ng(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),ut(t,"rimraf: missing path"),ut.strictEqual(typeof t,"string","rimraf: path should be a string"),ut.strictEqual(typeof r,"function","rimraf: callback function required"),ut(e,"rimraf: invalid options argument provided"),ut.strictEqual(typeof e,"object","rimraf: options should be object"),Vv(e),$v(t,e,function s(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&n<e.maxBusyTries){n++;let u=n*100;return setTimeout(()=>$v(t,e,s),u)}o.code==="ENOENT"&&(o=null)}r(o)})}function $v(t,e,r){ut(t),ut(e),ut(typeof r=="function"),e.lstat(t,(n,s)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&jc)return Hv(t,e,n,r);if(s&&s.isDirectory())return ph(t,e,n,r);e.unlink(t,o=>{if(o){if(o.code==="ENOENT")return r(null);if(o.code==="EPERM")return jc?Hv(t,e,o,r):ph(t,e,o,r);if(o.code==="EISDIR")return ph(t,e,o,r)}return r(o)})})}function Hv(t,e,r,n){ut(t),ut(e),ut(typeof n=="function"),e.chmod(t,438,s=>{s?n(s.code==="ENOENT"?null:r):e.stat(t,(o,u)=>{o?n(o.code==="ENOENT"?null:r):u.isDirectory()?ph(t,e,r,n):e.unlink(t,n)})})}function zv(t,e,r){let n;ut(t),ut(e);try{e.chmodSync(t,438)}catch(s){if(s.code==="ENOENT")return;throw r}try{n=e.statSync(t)}catch(s){if(s.code==="ENOENT")return;throw r}n.isDirectory()?dh(t,e,r):e.unlinkSync(t)}function ph(t,e,r,n){ut(t),ut(e),ut(typeof n=="function"),e.rmdir(t,s=>{s&&(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM")?dN(t,e,n):s&&s.code==="ENOTDIR"?n(r):n(s)})}function dN(t,e,r){ut(t),ut(e),ut(typeof r=="function"),e.readdir(t,(n,s)=>{if(n)return r(n);let o=s.length,u;if(o===0)return e.rmdir(t,r);s.forEach(f=>{Ng(Wv.join(t,f),e,h=>{if(!u){if(h)return r(u=h);--o===0&&e.rmdir(t,r)}})})})}function Kv(t,e){let r;e=e||{},Vv(e),ut(t,"rimraf: missing path"),ut.strictEqual(typeof t,"string","rimraf: path should be a string"),ut(e,"rimraf: missing options"),ut.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&jc&&zv(t,e,n)}try{r&&r.isDirectory()?dh(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return jc?zv(t,e,n):dh(t,e,n);if(n.code!=="EISDIR")throw n;dh(t,e,n)}}function dh(t,e,r){ut(t),ut(e);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")mN(t,e);else if(n.code!=="ENOENT")throw n}}function mN(t,e){if(ut(t),ut(e),e.readdirSync(t).forEach(r=>Kv(Wv.join(t,r),e)),jc){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}Yv.exports=Ng;Ng.sync=Kv});var $c=x((eie,Xv)=>{"use strict";var mh=xr(),gN=Nr().fromCallback,Qv=Jv();function bN(t,e){if(mh.rm)return mh.rm(t,{recursive:!0,force:!0},e);Qv(t,e)}function yN(t){if(mh.rmSync)return mh.rmSync(t,{recursive:!0,force:!0});Qv.sync(t)}Xv.exports={remove:gN(bN),removeSync:yN}});var o2=x((tie,i2)=>{"use strict";var _N=Nr().fromPromise,t2=ra(),r2=require("path"),n2=cs(),s2=$c(),Zv=_N(async function(e){let r;try{r=await t2.readdir(e)}catch{return n2.mkdirs(e)}return Promise.all(r.map(n=>s2.remove(r2.join(e,n))))});function e2(t){let e;try{e=t2.readdirSync(t)}catch{return n2.mkdirsSync(t)}e.forEach(r=>{r=r2.join(t,r),s2.removeSync(r)})}i2.exports={emptyDirSync:e2,emptydirSync:e2,emptyDir:Zv,emptydir:Zv}});var l2=x((rie,c2)=>{"use strict";var wN=Nr().fromCallback,a2=require("path"),ao=xr(),u2=cs();function EN(t,e){function r(){ao.writeFile(t,"",n=>{if(n)return e(n);e()})}ao.stat(t,(n,s)=>{if(!n&&s.isFile())return e();let o=a2.dirname(t);ao.stat(o,(u,f)=>{if(u)return u.code==="ENOENT"?u2.mkdirs(o,h=>{if(h)return e(h);r()}):e(u);f.isDirectory()?r():ao.readdir(o,h=>{if(h)return e(h)})})})}function vN(t){let e;try{e=ao.statSync(t)}catch{}if(e&&e.isFile())return;let r=a2.dirname(t);try{ao.statSync(r).isDirectory()||ao.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")u2.mkdirsSync(r);else throw n}ao.writeFileSync(t,"")}c2.exports={createFile:wN(EN),createFileSync:vN}});var m2=x((nie,d2)=>{"use strict";var SN=Nr().fromCallback,f2=require("path"),uo=xr(),h2=cs(),TN=oo().pathExists,{areIdentical:p2}=na();function kN(t,e,r){function n(s,o){uo.link(s,o,u=>{if(u)return r(u);r(null)})}uo.lstat(e,(s,o)=>{uo.lstat(t,(u,f)=>{if(u)return u.message=u.message.replace("lstat","ensureLink"),r(u);if(o&&p2(f,o))return r(null);let h=f2.dirname(e);TN(h,(g,d)=>{if(g)return r(g);if(d)return n(t,e);h2.mkdirs(h,y=>{if(y)return r(y);n(t,e)})})})})}function xN(t,e){let r;try{r=uo.lstatSync(e)}catch{}try{let o=uo.lstatSync(t);if(r&&p2(o,r))return}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=f2.dirname(e);return uo.existsSync(n)||h2.mkdirsSync(n),uo.linkSync(t,e)}d2.exports={createLink:SN(kN),createLinkSync:xN}});var b2=x((sie,g2)=>{"use strict";var co=require("path"),Hc=xr(),AN=oo().pathExists;function RN(t,e,r){if(co.isAbsolute(t))return Hc.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=co.dirname(e),s=co.join(n,t);return AN(s,(o,u)=>o?r(o):u?r(null,{toCwd:s,toDst:t}):Hc.lstat(t,f=>f?(f.message=f.message.replace("lstat","ensureSymlink"),r(f)):r(null,{toCwd:t,toDst:co.relative(n,t)})))}}function CN(t,e){let r;if(co.isAbsolute(t)){if(r=Hc.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=co.dirname(e),s=co.join(n,t);if(r=Hc.existsSync(s),r)return{toCwd:s,toDst:t};if(r=Hc.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:co.relative(n,t)}}}g2.exports={symlinkPaths:RN,symlinkPathsSync:CN}});var w2=x((iie,_2)=>{"use strict";var y2=xr();function DN(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);y2.lstat(t,(n,s)=>{if(n)return r(null,"file");e=s&&s.isDirectory()?"dir":"file",r(null,e)})}function ON(t,e){let r;if(e)return e;try{r=y2.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}_2.exports={symlinkType:DN,symlinkTypeSync:ON}});var R2=x((oie,A2)=>{"use strict";var PN=Nr().fromCallback,v2=require("path"),ls=ra(),S2=cs(),FN=S2.mkdirs,LN=S2.mkdirsSync,T2=b2(),IN=T2.symlinkPaths,BN=T2.symlinkPathsSync,k2=w2(),GN=k2.symlinkType,qN=k2.symlinkTypeSync,UN=oo().pathExists,{areIdentical:x2}=na();function NN(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,ls.lstat(e,(s,o)=>{!s&&o.isSymbolicLink()?Promise.all([ls.stat(t),ls.stat(e)]).then(([u,f])=>{if(x2(u,f))return n(null);E2(t,e,r,n)}):E2(t,e,r,n)})}function E2(t,e,r,n){IN(t,e,(s,o)=>{if(s)return n(s);t=o.toDst,GN(o.toCwd,r,(u,f)=>{if(u)return n(u);let h=v2.dirname(e);UN(h,(g,d)=>{if(g)return n(g);if(d)return ls.symlink(t,e,f,n);FN(h,y=>{if(y)return n(y);ls.symlink(t,e,f,n)})})})})}function MN(t,e,r){let n;try{n=ls.lstatSync(e)}catch{}if(n&&n.isSymbolicLink()){let f=ls.statSync(t),h=ls.statSync(e);if(x2(f,h))return}let s=BN(t,e);t=s.toDst,r=qN(s.toCwd,r);let o=v2.dirname(e);return ls.existsSync(o)||LN(o),ls.symlinkSync(t,e,r)}A2.exports={createSymlink:PN(NN),createSymlinkSync:MN}});var B2=x((aie,I2)=>{"use strict";var{createFile:C2,createFileSync:D2}=l2(),{createLink:O2,createLinkSync:P2}=m2(),{createSymlink:F2,createSymlinkSync:L2}=R2();I2.exports={createFile:C2,createFileSync:D2,ensureFile:C2,ensureFileSync:D2,createLink:O2,createLinkSync:P2,ensureLink:O2,ensureLinkSync:P2,createSymlink:F2,createSymlinkSync:L2,ensureSymlink:F2,ensureSymlinkSync:L2}});var gh=x((uie,G2)=>{function jN(t,{EOL:e=`
|
|
25
|
+
`,finalEOL:r=!0,replacer:n=null,spaces:s}={}){let o=r?e:"";return JSON.stringify(t,n,s).replace(/\n/g,e)+o}function $N(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}G2.exports={stringify:jN,stripBom:$N}});var M2=x((cie,N2)=>{var iu;try{iu=xr()}catch{iu=require("fs")}var bh=Nr(),{stringify:q2,stripBom:U2}=gh();async function HN(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||iu,n="throws"in e?e.throws:!0,s=await bh.fromCallback(r.readFile)(t,e);s=U2(s);let o;try{o=JSON.parse(s,e?e.reviver:null)}catch(u){if(n)throw u.message=`${t}: ${u.message}`,u;return null}return o}var zN=bh.fromPromise(HN);function WN(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||iu,n="throws"in e?e.throws:!0;try{let s=r.readFileSync(t,e);return s=U2(s),JSON.parse(s,e.reviver)}catch(s){if(n)throw s.message=`${t}: ${s.message}`,s;return null}}async function VN(t,e,r={}){let n=r.fs||iu,s=q2(e,r);await bh.fromCallback(n.writeFile)(t,s,r)}var KN=bh.fromPromise(VN);function YN(t,e,r={}){let n=r.fs||iu,s=q2(e,r);return n.writeFileSync(t,s,r)}var JN={readFile:zN,readFileSync:WN,writeFile:KN,writeFileSync:YN};N2.exports=JN});var $2=x((lie,j2)=>{"use strict";var yh=M2();j2.exports={readJson:yh.readFile,readJsonSync:yh.readFileSync,writeJson:yh.writeFile,writeJsonSync:yh.writeFileSync}});var _h=x((fie,W2)=>{"use strict";var QN=Nr().fromCallback,zc=xr(),H2=require("path"),z2=cs(),XN=oo().pathExists;function ZN(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let s=H2.dirname(t);XN(s,(o,u)=>{if(o)return n(o);if(u)return zc.writeFile(t,e,r,n);z2.mkdirs(s,f=>{if(f)return n(f);zc.writeFile(t,e,r,n)})})}function eM(t,...e){let r=H2.dirname(t);if(zc.existsSync(r))return zc.writeFileSync(t,...e);z2.mkdirsSync(r),zc.writeFileSync(t,...e)}W2.exports={outputFile:QN(ZN),outputFileSync:eM}});var K2=x((hie,V2)=>{"use strict";var{stringify:tM}=gh(),{outputFile:rM}=_h();async function nM(t,e,r={}){let n=tM(e,r);await rM(t,n,r)}V2.exports=nM});var J2=x((pie,Y2)=>{"use strict";var{stringify:sM}=gh(),{outputFileSync:iM}=_h();function oM(t,e,r){let n=sM(e,r);iM(t,n,r)}Y2.exports=oM});var X2=x((die,Q2)=>{"use strict";var aM=Nr().fromPromise,Ar=$2();Ar.outputJson=aM(K2());Ar.outputJsonSync=J2();Ar.outputJSON=Ar.outputJson;Ar.outputJSONSync=Ar.outputJsonSync;Ar.writeJSON=Ar.writeJson;Ar.writeJSONSync=Ar.writeJsonSync;Ar.readJSON=Ar.readJson;Ar.readJSONSync=Ar.readJsonSync;Q2.exports=Ar});var nS=x((mie,rS)=>{"use strict";var uM=xr(),jg=require("path"),cM=hh().copy,tS=$c().remove,lM=cs().mkdirp,fM=oo().pathExists,Z2=na();function hM(t,e,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};let s=r.overwrite||r.clobber||!1;Z2.checkPaths(t,e,"move",r,(o,u)=>{if(o)return n(o);let{srcStat:f,isChangingCase:h=!1}=u;Z2.checkParentPaths(t,f,e,"move",g=>{if(g)return n(g);if(pM(e))return eS(t,e,s,h,n);lM(jg.dirname(e),d=>d?n(d):eS(t,e,s,h,n))})})}function pM(t){let e=jg.dirname(t);return jg.parse(e).root===e}function eS(t,e,r,n,s){if(n)return Mg(t,e,r,s);if(r)return tS(e,o=>o?s(o):Mg(t,e,r,s));fM(e,(o,u)=>o?s(o):u?s(new Error("dest already exists.")):Mg(t,e,r,s))}function Mg(t,e,r,n){uM.rename(t,e,s=>s?s.code!=="EXDEV"?n(s):dM(t,e,r,n):n())}function dM(t,e,r,n){cM(t,e,{overwrite:r,errorOnExist:!0},o=>o?n(o):tS(t,n))}rS.exports=hM});var uS=x((gie,aS)=>{"use strict";var iS=xr(),Hg=require("path"),mM=hh().copySync,oS=$c().removeSync,gM=cs().mkdirpSync,sS=na();function bM(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:s,isChangingCase:o=!1}=sS.checkPathsSync(t,e,"move",r);return sS.checkParentPathsSync(t,s,e,"move"),yM(e)||gM(Hg.dirname(e)),_M(t,e,n,o)}function yM(t){let e=Hg.dirname(t);return Hg.parse(e).root===e}function _M(t,e,r,n){if(n)return $g(t,e,r);if(r)return oS(e),$g(t,e,r);if(iS.existsSync(e))throw new Error("dest already exists.");return $g(t,e,r)}function $g(t,e,r){try{iS.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return wM(t,e,r)}}function wM(t,e,r){return mM(t,e,{overwrite:r,errorOnExist:!0}),oS(t)}aS.exports=bM});var lS=x((bie,cS)=>{"use strict";var EM=Nr().fromCallback;cS.exports={move:EM(nS()),moveSync:uS()}});var sn=x((yie,fS)=>{"use strict";fS.exports={...ra(),...hh(),...o2(),...B2(),...X2(),...cs(),...lS(),..._h(),...oo(),...$c()}});var wS=x((Sie,_S)=>{"use strict";var Gs=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Gs.writable=t=>Gs(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Gs.readable=t=>Gs(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Gs.duplex=t=>Gs.writable(t)&&Gs.readable(t);Gs.transform=t=>Gs.duplex(t)&&typeof t._transform=="function";_S.exports=Gs});var xS=x((Tie,kS)=>{"use strict";var vS=require("fs"),GM=require("path"),SS=require("crypto"),qM=wS(),{Worker:TS}=(()=>{try{return require("worker_threads")}catch{return{}}})(),sa,UM=0,Th=new Map,NM=t=>{let e=new Error(t.message);for(let[r,n]of Object.entries(t))r!=="message"&&(e[r]=n);return e},MM=()=>{sa=new TS(GM.join(__dirname,"thread.js")),sa.on("message",t=>{let e=Th.get(t.id);Th.delete(t.id),Th.size===0&&sa.unref(),t.error===void 0?e.resolve(t.value):e.reject(NM(t.error))}),sa.on("error",t=>{throw t})},ES=(t,e,r)=>new Promise((n,s)=>{let o=UM++;Th.set(o,{resolve:n,reject:s}),sa===void 0&&MM(),sa.ref(),sa.postMessage({id:o,method:t,args:e},r)}),Cn=(t,e={})=>{let r=e.encoding||"hex";r==="buffer"&&(r=void 0);let n=SS.createHash(e.algorithm||"sha512"),s=o=>{let u=typeof o=="string"?"utf8":void 0;n.update(o,u)};return Array.isArray(t)?t.forEach(s):s(t),n.digest(r)};Cn.stream=(t={})=>{let e=t.encoding||"hex";e==="buffer"&&(e=void 0);let r=SS.createHash(t.algorithm||"sha512");return r.setEncoding(e),r};Cn.fromStream=async(t,e={})=>{if(!qM(t))throw new TypeError("Expected a stream");return new Promise((r,n)=>{t.on("error",n).pipe(Cn.stream(e)).on("error",n).on("finish",function(){r(this.read())})})};TS===void 0?(Cn.fromFile=async(t,e)=>Cn.fromStream(vS.createReadStream(t),e),Cn.async=async(t,e)=>Cn(t,e)):(Cn.fromFile=async(t,{algorithm:e="sha512",encoding:r="hex"}={})=>{let n=await ES("hashFile",[e,t]);return r==="buffer"?Buffer.from(n):Buffer.from(n).toString(r)},Cn.async=async(t,{algorithm:e="sha512",encoding:r="hex"}={})=>{r==="buffer"&&(r=void 0);let n=await ES("hash",[e,t]);return r===void 0?Buffer.from(n):Buffer.from(n).toString(r)});Cn.fromFileSync=(t,e)=>Cn(vS.readFileSync(t),e);kS.exports=Cn});var Wc=x(eb=>{"use strict";Object.defineProperty(eb,"__esModule",{value:!0});function jM(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}eb.getUserAgent=jM});var BS=x((Bie,IS)=>{IS.exports=LS;function LS(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce(function(s,o){return LS.bind(null,t,o,s,n)},r)():Promise.resolve().then(function(){return t.registry[e]?t.registry[e].reduce(function(s,o){return o.hook.bind(null,s,n)},r)():r(n)})}});var qS=x((Gie,GS)=>{GS.exports=$M;function $M(t,e,r,n){var s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=function(o,u){return Promise.resolve().then(s.bind(null,u)).then(o.bind(null,u))}),e==="after"&&(n=function(o,u){var f;return Promise.resolve().then(o.bind(null,u)).then(function(h){return f=h,s(f,u)}).then(function(){return f})}),e==="error"&&(n=function(o,u){return Promise.resolve().then(o.bind(null,u)).catch(function(f){return s(f,u)})}),t.registry[r].push({hook:n,orig:s})}});var NS=x((qie,US)=>{US.exports=HM;function HM(t,e,r){if(!!t.registry[e]){var n=t.registry[e].map(function(s){return s.orig}).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}}});var VS=x((Uie,Vc)=>{var HS=BS(),zM=qS(),WM=NS(),MS=Function.bind,jS=MS.bind(MS);function zS(t,e,r){var n=jS(WM,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(function(s){var o=r?[e,s,r]:[e,s];t[s]=t.api[s]=jS(zM,null).apply(null,o)})}function VM(){var t="h",e={registry:{}},r=HS.bind(null,e,t);return zS(r,e,t),r}function WS(){var t={registry:{}},e=HS.bind(null,t);return zS(e,t),e}var $S=!1;function uu(){return $S||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),$S=!0),WS()}uu.Singular=VM.bind();uu.Collection=WS.bind();Vc.exports=uu;Vc.exports.Hook=uu;Vc.exports.Singular=uu.Singular;Vc.exports.Collection=uu.Collection});var rT=x((Nie,tT)=>{"use strict";var nb=Object.defineProperty,KM=Object.getOwnPropertyDescriptor,YM=Object.getOwnPropertyNames,JM=Object.prototype.hasOwnProperty,QM=(t,e)=>{for(var r in e)nb(t,r,{get:e[r],enumerable:!0})},XM=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of YM(e))!JM.call(t,s)&&s!==r&&nb(t,s,{get:()=>e[s],enumerable:!(n=KM(e,s))||n.enumerable});return t},ZM=t=>XM(nb({},"__esModule",{value:!0}),t),JS={};QM(JS,{endpoint:()=>dj});tT.exports=ZM(JS);var ej=Wc(),tj="9.0.4",rj=`octokit-endpoint.js/${tj} ${(0,ej.getUserAgent)()}`,nj={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":rj},mediaType:{format:""}};function sj(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}function ij(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}function QS(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(n=>{ij(e[n])?n in t?r[n]=QS(t[n],e[n]):Object.assign(r,{[n]:e[n]}):Object.assign(r,{[n]:e[n]})}),r}function KS(t){for(let e in t)t[e]===void 0&&delete t[e];return t}function rb(t,e,r){if(typeof e=="string"){let[s,o]=e.split(" ");r=Object.assign(o?{method:s,url:o}:{url:s},r)}else r=Object.assign({},e);r.headers=sj(r.headers),KS(r),KS(r.headers);let n=QS(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(n.mediaType.previews=t.mediaType.previews.filter(s=>!n.mediaType.previews.includes(s)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(s=>s.replace(/-preview/,""))),n}function oj(t,e){let r=/\?/.test(t)?"&":"?",n=Object.keys(e);return n.length===0?t:t+r+n.map(s=>s==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${s}=${encodeURIComponent(e[s])}`).join("&")}var aj=/\{[^}]+\}/g;function uj(t){return t.replace(/^\W+|\W+$/g,"").split(/,/)}function cj(t){let e=t.match(aj);return e?e.map(uj).reduce((r,n)=>r.concat(n),[]):[]}function YS(t,e){let r={__proto__:null};for(let n of Object.keys(t))e.indexOf(n)===-1&&(r[n]=t[n]);return r}function XS(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function lu(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Kc(t,e,r){return e=t==="+"||t==="#"?XS(e):lu(e),r?lu(r)+"="+e:e}function cu(t){return t!=null}function tb(t){return t===";"||t==="&"||t==="?"}function lj(t,e,r,n){var s=t[r],o=[];if(cu(s)&&s!=="")if(typeof s=="string"||typeof s=="number"||typeof s=="boolean")s=s.toString(),n&&n!=="*"&&(s=s.substring(0,parseInt(n,10))),o.push(Kc(e,s,tb(e)?r:""));else if(n==="*")Array.isArray(s)?s.filter(cu).forEach(function(u){o.push(Kc(e,u,tb(e)?r:""))}):Object.keys(s).forEach(function(u){cu(s[u])&&o.push(Kc(e,s[u],u))});else{let u=[];Array.isArray(s)?s.filter(cu).forEach(function(f){u.push(Kc(e,f))}):Object.keys(s).forEach(function(f){cu(s[f])&&(u.push(lu(f)),u.push(Kc(e,s[f].toString())))}),tb(e)?o.push(lu(r)+"="+u.join(",")):u.length!==0&&o.push(u.join(","))}else e===";"?cu(s)&&o.push(lu(r)):s===""&&(e==="&"||e==="?")?o.push(lu(r)+"="):s===""&&o.push("");return o}function fj(t){return{expand:hj.bind(null,t)}}function hj(t,e){var r=["+","#",".","/",";","?","&"];return t=t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(n,s,o){if(s){let f="",h=[];if(r.indexOf(s.charAt(0))!==-1&&(f=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(g){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(g);h.push(lj(e,f,d[1],d[2]||d[3]))}),f&&f!=="+"){var u=",";return f==="?"?u="&":f!=="#"&&(u=f),(h.length!==0?f:"")+h.join(u)}else return h.join(",")}else return XS(o)}),t==="/"?t:t.replace(/\/$/,"")}function ZS(t){let e=t.method.toUpperCase(),r=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},t.headers),s,o=YS(t,["method","baseUrl","url","headers","request","mediaType"]),u=cj(r);r=fj(r).expand(o),/^http/.test(r)||(r=t.baseUrl+r);let f=Object.keys(t).filter(d=>u.includes(d)).concat("baseUrl"),h=YS(o,f);if(!/application\/octet-stream/i.test(n.accept)&&(t.mediaType.format&&(n.accept=n.accept.split(/,/).map(d=>d.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${t.mediaType.format}`)).join(",")),r.endsWith("/graphql")&&t.mediaType.previews?.length)){let d=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=d.concat(t.mediaType.previews).map(y=>{let v=t.mediaType.format?`.${t.mediaType.format}`:"+json";return`application/vnd.github.${y}-preview${v}`}).join(",")}return["GET","HEAD"].includes(e)?r=oj(r,h):"data"in h?s=h.data:Object.keys(h).length&&(s=h),!n["content-type"]&&typeof s<"u"&&(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof s>"u"&&(s=""),Object.assign({method:e,url:r,headers:n},typeof s<"u"?{body:s}:null,t.request?{request:t.request}:null)}function pj(t,e,r){return ZS(rb(t,e,r))}function eT(t,e){let r=rb(t,e),n=pj.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:eT.bind(null,r),merge:rb.bind(null,r),parse:ZS})}var dj=eT(null,nj)});var nT=x(ib=>{"use strict";Object.defineProperty(ib,"__esModule",{value:!0});var sb=class extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}};ib.Deprecation=sb});var oT=x((jie,iT)=>{iT.exports=sT;function sT(t,e){if(t&&e)return sT(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),s=0;s<n.length;s++)n[s]=arguments[s];var o=t.apply(this,n),u=n[n.length-1];return typeof o=="function"&&o!==u&&Object.keys(u).forEach(function(f){o[f]=u[f]}),o}}});var cT=x(($ie,ob)=>{var aT=oT();ob.exports=aT(Rh);ob.exports.strict=aT(uT);Rh.proto=Rh(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Rh(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return uT(this)},configurable:!0})});function Rh(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function uT(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 mT=x((Hie,dT)=>{"use strict";var mj=Object.create,Ch=Object.defineProperty,gj=Object.getOwnPropertyDescriptor,bj=Object.getOwnPropertyNames,yj=Object.getPrototypeOf,_j=Object.prototype.hasOwnProperty,wj=(t,e)=>{for(var r in e)Ch(t,r,{get:e[r],enumerable:!0})},fT=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of bj(e))!_j.call(t,s)&&s!==r&&Ch(t,s,{get:()=>e[s],enumerable:!(n=gj(e,s))||n.enumerable});return t},Ej=(t,e,r)=>(r=t!=null?mj(yj(t)):{},fT(e||!t||!t.__esModule?Ch(r,"default",{value:t,enumerable:!0}):r,t)),vj=t=>fT(Ch({},"__esModule",{value:!0}),t),hT={};wj(hT,{RequestError:()=>kj});dT.exports=vj(hT);var lT=nT(),pT=Ej(cT()),Sj=(0,pT.default)(t=>console.warn(t)),Tj=(0,pT.default)(t=>console.warn(t)),kj=class extends Error{constructor(t,e,r){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=e;let n;"headers"in r&&typeof r.headers<"u"&&(n=r.headers),"response"in r&&(this.response=r.response,n=r.response.headers);let s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s,Object.defineProperty(this,"code",{get(){return Sj(new lT.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),e}}),Object.defineProperty(this,"headers",{get(){return Tj(new lT.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),n||{}}})}}});var Jc=x((Wie,yT)=>{"use strict";var cb=Object.defineProperty,xj=Object.getOwnPropertyDescriptor,Aj=Object.getOwnPropertyNames,Rj=Object.prototype.hasOwnProperty,Cj=(t,e)=>{for(var r in e)cb(t,r,{get:e[r],enumerable:!0})},Dj=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Aj(e))!Rj.call(t,s)&&s!==r&&cb(t,s,{get:()=>e[s],enumerable:!(n=xj(e,s))||n.enumerable});return t},Oj=t=>Dj(cb({},"__esModule",{value:!0}),t),bT={};Cj(bT,{request:()=>qj});yT.exports=Oj(bT);var Pj=rT(),Fj=Wc(),Lj="8.1.6";function Ij(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}var Yc=mT();function Bj(t){return t.arrayBuffer()}function gT(t){var e,r,n;let s=t.request&&t.request.log?t.request.log:console,o=((e=t.request)==null?void 0:e.parseSuccessResponseBody)!==!1;(Ij(t.body)||Array.isArray(t.body))&&(t.body=JSON.stringify(t.body));let u={},f,h,{fetch:g}=globalThis;if((r=t.request)!=null&&r.fetch&&(g=t.request.fetch),!g)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");return g(t.url,{method:t.method,body:t.body,headers:t.headers,signal:(n=t.request)==null?void 0:n.signal,...t.body&&{duplex:"half"}}).then(async d=>{h=d.url,f=d.status;for(let y of d.headers)u[y[0]]=y[1];if("deprecation"in u){let y=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/),v=y&&y.pop();s.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${v?`. See ${v}`:""}`)}if(!(f===204||f===205)){if(t.method==="HEAD"){if(f<400)return;throw new Yc.RequestError(d.statusText,f,{response:{url:h,status:f,headers:u,data:void 0},request:t})}if(f===304)throw new Yc.RequestError("Not modified",f,{response:{url:h,status:f,headers:u,data:await ab(d)},request:t});if(f>=400){let y=await ab(d);throw new Yc.RequestError(Gj(y),f,{response:{url:h,status:f,headers:u,data:y},request:t})}return o?await ab(d):d.body}}).then(d=>({status:f,url:h,headers:u,data:d})).catch(d=>{if(d instanceof Yc.RequestError)throw d;if(d.name==="AbortError")throw d;let y=d.message;throw d.name==="TypeError"&&"cause"in d&&(d.cause instanceof Error?y=d.cause.message:typeof d.cause=="string"&&(y=d.cause)),new Yc.RequestError(y,500,{request:t})})}async function ab(t){let e=t.headers.get("content-type");return/application\/json/.test(e)?t.json().catch(()=>t.text()).catch(()=>""):!e||/^text\/|charset=utf-8$/.test(e)?t.text():Bj(t)}function Gj(t){return typeof t=="string"?t:"message"in t?Array.isArray(t.errors)?`${t.message}: ${t.errors.map(JSON.stringify).join(", ")}`:t.message:`Unknown error: ${JSON.stringify(t)}`}function ub(t,e){let r=t.defaults(e);return Object.assign(function(s,o){let u=r.merge(s,o);if(!u.request||!u.request.hook)return gT(r.parse(u));let f=(h,g)=>gT(r.parse(r.merge(h,g)));return Object.assign(f,{endpoint:r,defaults:ub.bind(null,r)}),u.request.hook(f,u)},{endpoint:r,defaults:ub.bind(null,r)})}var qj=ub(Pj.endpoint,{headers:{"user-agent":`octokit-request.js/${Lj} ${(0,Fj.getUserAgent)()}`}})});var ST=x((Yie,vT)=>{"use strict";var lb=Object.defineProperty,Uj=Object.getOwnPropertyDescriptor,Nj=Object.getOwnPropertyNames,Mj=Object.prototype.hasOwnProperty,jj=(t,e)=>{for(var r in e)lb(t,r,{get:e[r],enumerable:!0})},$j=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Nj(e))!Mj.call(t,s)&&s!==r&&lb(t,s,{get:()=>e[s],enumerable:!(n=Uj(e,s))||n.enumerable});return t},Hj=t=>$j(lb({},"__esModule",{value:!0}),t),wT={};jj(wT,{GraphqlResponseError:()=>ET,graphql:()=>Xj,withCustomRequest:()=>Zj});vT.exports=Hj(wT);var zj=Jc(),Wj=Wc(),Vj="7.0.2",Vie=Jc(),Kie=Jc();function Kj(t){return`Request failed due to following response errors:
|
|
26
|
+
`+t.errors.map(e=>` - ${e.message}`).join(`
|
|
27
|
+
`)}var ET=class extends Error{constructor(t,e,r){super(Kj(r)),this.request=t,this.headers=e,this.response=r,this.name="GraphqlResponseError",this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},Yj=["method","baseUrl","url","headers","request","query","mediaType"],Jj=["query","method","url"],_T=/\/api\/v3\/?$/;function Qj(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let u in r)if(!!Jj.includes(u))return Promise.reject(new Error(`[@octokit/graphql] "${u}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((u,f)=>Yj.includes(f)?(u[f]=n[f],u):(u.variables||(u.variables={}),u.variables[f]=n[f],u),{}),o=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return _T.test(o)&&(s.url=o.replace(_T,"/api/graphql")),t(s).then(u=>{if(u.data.errors){let f={};for(let h of Object.keys(u.headers))f[h]=u.headers[h];throw new ET(s,f,u.data)}return u.data.data})}function fb(t,e){let r=t.defaults(e);return Object.assign((s,o)=>Qj(r,s,o),{defaults:fb.bind(null,r),endpoint:r.endpoint})}var Xj=fb(zj.request,{headers:{"user-agent":`octokit-graphql.js/${Vj} ${(0,Wj.getUserAgent)()}`},method:"POST",url:"/graphql"});function Zj(t){return fb(t,{method:"POST",url:"/graphql"})}});var xT=x((Qie,kT)=>{"use strict";var hb=Object.defineProperty,e$=Object.getOwnPropertyDescriptor,t$=Object.getOwnPropertyNames,r$=Object.prototype.hasOwnProperty,n$=(t,e)=>{for(var r in e)hb(t,r,{get:e[r],enumerable:!0})},s$=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of t$(e))!r$.call(t,s)&&s!==r&&hb(t,s,{get:()=>e[s],enumerable:!(n=e$(e,s))||n.enumerable});return t},i$=t=>s$(hb({},"__esModule",{value:!0}),t),TT={};n$(TT,{createTokenAuth:()=>h$});kT.exports=i$(TT);var o$=/^v1\./,a$=/^ghs_/,u$=/^ghu_/;async function c$(t){let e=t.split(/\./).length===3,r=o$.test(t)||a$.test(t),n=u$.test(t);return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function l$(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function f$(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=l$(t),e(s)}var h$=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(c$.bind(null,e),{hook:f$.bind(null,e)})}});var FT=x((Xie,PT)=>{"use strict";var pb=Object.defineProperty,p$=Object.getOwnPropertyDescriptor,d$=Object.getOwnPropertyNames,m$=Object.prototype.hasOwnProperty,g$=(t,e)=>{for(var r in e)pb(t,r,{get:e[r],enumerable:!0})},b$=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of d$(e))!m$.call(t,s)&&s!==r&&pb(t,s,{get:()=>e[s],enumerable:!(n=p$(e,s))||n.enumerable});return t},y$=t=>b$(pb({},"__esModule",{value:!0}),t),DT={};g$(DT,{Octokit:()=>k$});PT.exports=y$(DT);var _$=Wc(),w$=VS(),AT=Jc(),E$=ST(),v$=xT(),OT="5.0.2",RT=()=>{},S$=console.warn.bind(console),T$=console.error.bind(console),CT=`octokit-core.js/${OT} ${(0,_$.getUserAgent)()}`,k$=class{static{this.VERSION=OT}static defaults(t){return class extends this{constructor(...r){let n=r[0]||{};if(typeof t=="function"){super(t(n));return}super(Object.assign({},t,n,n.userAgent&&t.userAgent?{userAgent:`${n.userAgent} ${t.userAgent}`}:null))}}}static{this.plugins=[]}static plugin(...t){let e=this.plugins;return class extends this{static{this.plugins=e.concat(t.filter(n=>!e.includes(n)))}}}constructor(t={}){let e=new w$.Collection,r={baseUrl:AT.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},t.request,{hook:e.bind(null,"request")}),mediaType:{previews:[],format:""}};if(r.headers["user-agent"]=t.userAgent?`${t.userAgent} ${CT}`:CT,t.baseUrl&&(r.baseUrl=t.baseUrl),t.previews&&(r.mediaType.previews=t.previews),t.timeZone&&(r.headers["time-zone"]=t.timeZone),this.request=AT.request.defaults(r),this.graphql=(0,E$.withCustomRequest)(this.request).defaults(r),this.log=Object.assign({debug:RT,info:RT,warn:S$,error:T$},t.log),this.hook=e,t.authStrategy){let{authStrategy:s,...o}=t,u=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},t.auth));e.wrap("request",u.hook),this.auth=u}else if(!t.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=(0,v$.createTokenAuth)(t.auth);e.wrap("request",s.hook),this.auth=s}let n=this.constructor;for(let s=0;s<n.plugins.length;++s)Object.assign(this,n.plugins[s](this,t))}}});var GT=x((roe,BT)=>{"use strict";var db=Object.defineProperty,x$=Object.getOwnPropertyDescriptor,A$=Object.getOwnPropertyNames,R$=Object.prototype.hasOwnProperty,C$=(t,e)=>{for(var r in e)db(t,r,{get:e[r],enumerable:!0})},D$=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of A$(e))!R$.call(t,s)&&s!==r&&db(t,s,{get:()=>e[s],enumerable:!(n=x$(e,s))||n.enumerable});return t},O$=t=>D$(db({},"__esModule",{value:!0}),t),LT={};C$(LT,{requestLog:()=>IT});BT.exports=O$(LT);var P$="4.0.0";function IT(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),o=s.url.replace(r.baseUrl,"");return e(r).then(u=>(t.log.info(`${s.method} ${o} - ${u.status} in ${Date.now()-n}ms`),u)).catch(u=>{throw t.log.info(`${s.method} ${o} - ${u.status} in ${Date.now()-n}ms`),u})})}IT.VERSION=P$});var HT=x((noe,$T)=>{"use strict";var mb=Object.defineProperty,F$=Object.getOwnPropertyDescriptor,L$=Object.getOwnPropertyNames,I$=Object.prototype.hasOwnProperty,B$=(t,e)=>{for(var r in e)mb(t,r,{get:e[r],enumerable:!0})},G$=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of L$(e))!I$.call(t,s)&&s!==r&&mb(t,s,{get:()=>e[s],enumerable:!(n=F$(e,s))||n.enumerable});return t},q$=t=>G$(mb({},"__esModule",{value:!0}),t),qT={};B$(qT,{composePaginateRest:()=>M$,isPaginatingEndpoint:()=>j$,paginateRest:()=>jT,paginatingEndpoints:()=>MT});$T.exports=q$(qT);var U$="9.1.5";function N$(t){if(!t.data)return{...t,data:[]};if(!("total_count"in t.data&&!("url"in t.data)))return t;let r=t.data.incomplete_results,n=t.data.repository_selection,s=t.data.total_count;delete t.data.incomplete_results,delete t.data.repository_selection,delete t.data.total_count;let o=Object.keys(t.data)[0],u=t.data[o];return t.data=u,typeof r<"u"&&(t.data.incomplete_results=r),typeof n<"u"&&(t.data.repository_selection=n),t.data.total_count=s,t}function gb(t,e,r){let n=typeof e=="function"?e.endpoint(r):t.request.endpoint(e,r),s=typeof e=="function"?e:t.request,o=n.method,u=n.headers,f=n.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!f)return{done:!0};try{let h=await s({method:o,url:f,headers:u}),g=N$(h);return f=((g.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:g}}catch(h){if(h.status!==409)throw h;return f="",{value:{status:200,headers:{},data:[]}}}}})}}function UT(t,e,r,n){return typeof r=="function"&&(n=r,r=void 0),NT(t,[],gb(t,e,r)[Symbol.asyncIterator](),n)}function NT(t,e,r,n){return r.next().then(s=>{if(s.done)return e;let o=!1;function u(){o=!0}return e=e.concat(n?n(s.value,u):s.value.data),o?e:NT(t,e,r,n)})}var M$=Object.assign(UT,{iterator:gb}),MT=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /repositories/{repository_id}/environments/{environment_name}/variables","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function j$(t){return typeof t=="string"?MT.includes(t):!1}function jT(t){return{paginate:Object.assign(UT.bind(null,t),{iterator:gb.bind(null,t)})}}jT.VERSION=U$});var QT=x((soe,JT)=>{"use strict";var bb=Object.defineProperty,$$=Object.getOwnPropertyDescriptor,H$=Object.getOwnPropertyNames,z$=Object.prototype.hasOwnProperty,W$=(t,e)=>{for(var r in e)bb(t,r,{get:e[r],enumerable:!0})},V$=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of H$(e))!z$.call(t,s)&&s!==r&&bb(t,s,{get:()=>e[s],enumerable:!(n=$$(e,s))||n.enumerable});return t},K$=t=>V$(bb({},"__esModule",{value:!0}),t),zT={};W$(zT,{legacyRestEndpointMethods:()=>YT,restEndpointMethods:()=>KT});JT.exports=K$(zT);var WT="10.2.0",Y$={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotForBusinessSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotForBusinessSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"}],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors",{},{deprecated:"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"}],getImportStatus:["GET /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"}],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files",{},{deprecated:"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"}],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}",{},{deprecated:"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"}],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs",{},{deprecated:"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"}],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"}]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployment"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}},J$=Y$,ia=new Map;for(let[t,e]of Object.entries(J$))for(let[r,n]of Object.entries(e)){let[s,o,u]=n,[f,h]=s.split(/ /),g=Object.assign({method:f,url:h},o);ia.has(t)||ia.set(t,new Map),ia.get(t).set(r,{scope:t,methodName:r,endpointDefaults:g,decorations:u})}var Q$={has({scope:t},e){return ia.get(t).has(e)},getOwnPropertyDescriptor(t,e){return{value:this.get(t,e),configurable:!0,writable:!0,enumerable:!0}},defineProperty(t,e,r){return Object.defineProperty(t.cache,e,r),!0},deleteProperty(t,e){return delete t.cache[e],!0},ownKeys({scope:t}){return[...ia.get(t).keys()]},set(t,e,r){return t.cache[e]=r},get({octokit:t,scope:e,cache:r},n){if(r[n])return r[n];let s=ia.get(e).get(n);if(!s)return;let{endpointDefaults:o,decorations:u}=s;return u?r[n]=X$(t,e,n,o,u):r[n]=t.request.defaults(o),r[n]}};function VT(t){let e={};for(let r of ia.keys())e[r]=new Proxy({octokit:t,scope:r,cache:{}},Q$);return e}function X$(t,e,r,n,s){let o=t.request.defaults(n);function u(...f){let h=o.endpoint.merge(...f);if(s.mapToData)return h=Object.assign({},h,{data:h[s.mapToData],[s.mapToData]:void 0}),o(h);if(s.renamed){let[g,d]=s.renamed;t.log.warn(`octokit.${e}.${r}() has been renamed to octokit.${g}.${d}()`)}if(s.deprecated&&t.log.warn(s.deprecated),s.renamedParameters){let g=o.endpoint.merge(...f);for(let[d,y]of Object.entries(s.renamedParameters))d in g&&(t.log.warn(`"${d}" parameter is deprecated for "octokit.${e}.${r}()". Use "${y}" instead`),y in g||(g[y]=g[d]),delete g[d]);return o(g)}return o(...f)}return Object.assign(u,o)}function KT(t){return{rest:VT(t)}}KT.VERSION=WT;function YT(t){let e=VT(t);return{...e,rest:e}}YT.VERSION=WT});var _b=x((ioe,ZT)=>{"use strict";var yb=Object.defineProperty,Z$=Object.getOwnPropertyDescriptor,eH=Object.getOwnPropertyNames,tH=Object.prototype.hasOwnProperty,rH=(t,e)=>{for(var r in e)yb(t,r,{get:e[r],enumerable:!0})},nH=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of eH(e))!tH.call(t,s)&&s!==r&&yb(t,s,{get:()=>e[s],enumerable:!(n=Z$(e,s))||n.enumerable});return t},sH=t=>nH(yb({},"__esModule",{value:!0}),t),XT={};rH(XT,{Octokit:()=>lH});ZT.exports=sH(XT);var iH=FT(),oH=GT(),aH=HT(),uH=QT(),cH="20.0.2",lH=iH.Octokit.plugin(oH.requestLog,uH.legacyRestEndpointMethods,aH.paginateRest).defaults({userAgent:`octokit-rest.js/${cH}`})});var rk=x((Dh,tk)=>{(function(t,e){typeof Dh=="object"&&typeof tk<"u"?e(Dh):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.WebStreamsPolyfill={}))})(Dh,function(t){"use strict";let e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:c=>`Symbol(${c})`;function r(){}function n(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}let s=n();function o(c){return typeof c=="object"&&c!==null||typeof c=="function"}let u=r,f=Promise,h=Promise.prototype.then,g=Promise.resolve.bind(f),d=Promise.reject.bind(f);function y(c){return new f(c)}function v(c){return g(c)}function b(c){return d(c)}function w(c,p,E){return h.call(c,p,E)}function R(c,p,E){w(w(c,p,E),void 0,u)}function I(c,p){R(c,p)}function D(c,p){R(c,void 0,p)}function P(c,p,E){return w(c,p,E)}function G(c){w(c,void 0,u)}let q=(()=>{let c=s&&s.queueMicrotask;if(typeof c=="function")return c;let p=v(void 0);return E=>w(p,E)})();function z(c,p,E){if(typeof c!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(c,p,E)}function N(c,p,E){try{return v(z(c,p,E))}catch(A){return b(A)}}let L=16384;class W{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(p){let E=this._back,A=E;E._elements.length===L-1&&(A={_elements:[],_next:void 0}),E._elements.push(p),A!==E&&(this._back=A,E._next=A),++this._size}shift(){let p=this._front,E=p,A=this._cursor,F=A+1,ee=p._elements,ie=ee[A];return F===L&&(E=p._next,F=0),--this._size,this._cursor=F,p!==E&&(this._front=E),ee[A]=void 0,ie}forEach(p){let E=this._cursor,A=this._front,F=A._elements;for(;(E!==F.length||A._next!==void 0)&&!(E===F.length&&(A=A._next,F=A._elements,E=0,F.length===0));)p(F[E]),++E}peek(){let p=this._front,E=this._cursor;return p._elements[E]}}function X(c,p){c._ownerReadableStream=p,p._reader=c,p._state==="readable"?ae(c):p._state==="closed"?j(c):Re(c,p._storedError)}function le(c,p){let E=c._ownerReadableStream;return Ee(E,p)}function M(c){c._ownerReadableStream._state==="readable"?$(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):ve(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),c._ownerReadableStream._reader=void 0,c._ownerReadableStream=void 0}function de(c){return new TypeError("Cannot "+c+" a stream using a released reader")}function ae(c){c._closedPromise=y((p,E)=>{c._closedPromise_resolve=p,c._closedPromise_reject=E})}function Re(c,p){ae(c),$(c,p)}function j(c){ae(c),ge(c)}function $(c,p){c._closedPromise_reject!==void 0&&(G(c._closedPromise),c._closedPromise_reject(p),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}function ve(c,p){Re(c,p)}function ge(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}let ye=e("[[AbortSteps]]"),_t=e("[[ErrorSteps]]"),ht=e("[[CancelSteps]]"),Je=e("[[PullSteps]]"),Vt=Number.isFinite||function(c){return typeof c=="number"&&isFinite(c)},Bt=Math.trunc||function(c){return c<0?Math.ceil(c):Math.floor(c)};function S(c){return typeof c=="object"||typeof c=="function"}function Y(c,p){if(c!==void 0&&!S(c))throw new TypeError(`${p} is not an object.`)}function te(c,p){if(typeof c!="function")throw new TypeError(`${p} is not a function.`)}function ce(c){return typeof c=="object"&&c!==null||typeof c=="function"}function Q(c,p){if(!ce(c))throw new TypeError(`${p} is not an object.`)}function ue(c,p,E){if(c===void 0)throw new TypeError(`Parameter ${p} is required in '${E}'.`)}function J(c,p,E){if(c===void 0)throw new TypeError(`${p} is required in '${E}'.`)}function H(c){return Number(c)}function we(c){return c===0?0:c}function V(c){return we(Bt(c))}function se(c,p){let A=Number.MAX_SAFE_INTEGER,F=Number(c);if(F=we(F),!Vt(F))throw new TypeError(`${p} is not a finite number`);if(F=V(F),F<0||F>A)throw new TypeError(`${p} is outside the accepted range of ${0} to ${A}, inclusive`);return!Vt(F)||F===0?0:F}function De(c,p){if(!K(c))throw new TypeError(`${p} is not a ReadableStream.`)}function Ke(c){return new gn(c)}function ft(c,p){c._reader._readRequests.push(p)}function pt(c,p,E){let F=c._reader._readRequests.shift();E?F._closeSteps():F._chunkSteps(p)}function _r(c){return c._reader._readRequests.length}function mn(c){let p=c._reader;return!(p===void 0||!Gt(p))}class gn{constructor(p){if(ue(p,1,"ReadableStreamDefaultReader"),De(p,"First parameter"),fe(p))throw new TypeError("This stream has already been locked for exclusive reading by another reader");X(this,p),this._readRequests=new W}get closed(){return Gt(this)?this._closedPromise:b(wr("closed"))}cancel(p=void 0){return Gt(this)?this._ownerReadableStream===void 0?b(de("cancel")):le(this,p):b(wr("cancel"))}read(){if(!Gt(this))return b(wr("read"));if(this._ownerReadableStream===void 0)return b(de("read from"));let p,E,A=y((ee,ie)=>{p=ee,E=ie});return bn(this,{_chunkSteps:ee=>p({value:ee,done:!1}),_closeSteps:()=>p({value:void 0,done:!0}),_errorSteps:ee=>E(ee)}),A}releaseLock(){if(!Gt(this))throw wr("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");M(this)}}}Object.defineProperties(gn.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(gn.prototype,e.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function Gt(c){return!o(c)||!Object.prototype.hasOwnProperty.call(c,"_readRequests")?!1:c instanceof gn}function bn(c,p){let E=c._ownerReadableStream;E._disturbed=!0,E._state==="closed"?p._closeSteps():E._state==="errored"?p._errorSteps(E._storedError):E._readableStreamController[Je](p)}function wr(c){return new TypeError(`ReadableStreamDefaultReader.prototype.${c} can only be used on a ReadableStreamDefaultReader`)}let Dr=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class jn{constructor(p,E){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=p,this._preventCancel=E}next(){let p=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?P(this._ongoingPromise,p,p):p(),this._ongoingPromise}return(p){let E=()=>this._returnSteps(p);return this._ongoingPromise?P(this._ongoingPromise,E,E):E()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let p=this._reader;if(p._ownerReadableStream===void 0)return b(de("iterate"));let E,A,F=y((ie,me)=>{E=ie,A=me});return bn(p,{_chunkSteps:ie=>{this._ongoingPromise=void 0,q(()=>E({value:ie,done:!1}))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,M(p),E({value:void 0,done:!0})},_errorSteps:ie=>{this._ongoingPromise=void 0,this._isFinished=!0,M(p),A(ie)}}),F}_returnSteps(p){if(this._isFinished)return Promise.resolve({value:p,done:!0});this._isFinished=!0;let E=this._reader;if(E._ownerReadableStream===void 0)return b(de("finish iterating"));if(!this._preventCancel){let A=le(E,p);return M(E),P(A,()=>({value:p,done:!0}))}return M(E),v({value:p,done:!0})}}let $n={next(){return Hn(this)?this._asyncIteratorImpl.next():b(zn("next"))},return(c){return Hn(this)?this._asyncIteratorImpl.return(c):b(zn("return"))}};Dr!==void 0&&Object.setPrototypeOf($n,Dr);function _s(c,p){let E=Ke(c),A=new jn(E,p),F=Object.create($n);return F._asyncIteratorImpl=A,F}function Hn(c){if(!o(c)||!Object.prototype.hasOwnProperty.call(c,"_asyncIteratorImpl"))return!1;try{return c._asyncIteratorImpl instanceof jn}catch{return!1}}function zn(c){return new TypeError(`ReadableStreamAsyncIterator.${c} can only be used on a ReadableSteamAsyncIterator`)}let Wn=Number.isNaN||function(c){return c!==c};function Or(c){return c.slice()}function Vn(c,p,E,A,F){new Uint8Array(c).set(new Uint8Array(E,A,F),p)}function Xs(c){return c}function Kn(c){return!1}function Zs(c,p,E){if(c.slice)return c.slice(p,E);let A=E-p,F=new ArrayBuffer(A);return Vn(F,0,c,p,A),F}function qi(c){return!(typeof c!="number"||Wn(c)||c<0)}function ws(c){let p=Zs(c.buffer,c.byteOffset,c.byteOffset+c.byteLength);return new Uint8Array(p)}function Yn(c){let p=c._queue.shift();return c._queueTotalSize-=p.size,c._queueTotalSize<0&&(c._queueTotalSize=0),p.value}function Es(c,p,E){if(!qi(E)||E===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");c._queue.push({value:p,size:E}),c._queueTotalSize+=E}function Ui(c){return c._queue.peek().value}function Er(c){c._queue=new W,c._queueTotalSize=0}class yn{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!vs(this))throw Fa("view");return this._view}respond(p){if(!vs(this))throw Fa("respond");if(ue(p,1,"respond"),p=se(p,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");Kn(this._view.buffer),Oa(this._associatedReadableByteStreamController,p)}respondWithNewView(p){if(!vs(this))throw Fa("respondWithNewView");if(ue(p,1,"respondWithNewView"),!ArrayBuffer.isView(p))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");Kn(p.buffer),Pa(this._associatedReadableByteStreamController,p)}}Object.defineProperties(yn.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(yn.prototype,e.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class Pr{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!Fr(this))throw Fo("byobRequest");return ks(this)}get desiredSize(){if(!Fr(this))throw Fo("desiredSize");return Po(this)}close(){if(!Fr(this))throw Fo("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");let p=this._controlledReadableByteStream._state;if(p!=="readable")throw new TypeError(`The stream (in ${p} state) is not in the readable state and cannot be closed`);_n(this)}enqueue(p){if(!Fr(this))throw Fo("enqueue");if(ue(p,1,"enqueue"),!ArrayBuffer.isView(p))throw new TypeError("chunk must be an array buffer view");if(p.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(p.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");let E=this._controlledReadableByteStream._state;if(E!=="readable")throw new TypeError(`The stream (in ${E} state) is not in the readable state and cannot be enqueued to`);ts(this,p)}error(p=void 0){if(!Fr(this))throw Fo("error");kt(this,p)}[ht](p){Jn(this),Er(this);let E=this._cancelAlgorithm(p);return es(this),E}[Je](p){let E=this._controlledReadableByteStream;if(this._queueTotalSize>0){let F=this._queue.shift();this._queueTotalSize-=F.byteLength,ri(this);let ee=new Uint8Array(F.buffer,F.byteOffset,F.byteLength);p._chunkSteps(ee);return}let A=this._autoAllocateChunkSize;if(A!==void 0){let F;try{F=new ArrayBuffer(A)}catch(ie){p._errorSteps(ie);return}let ee={buffer:F,bufferByteLength:A,byteOffset:0,byteLength:A,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(ee)}ft(E,p),Lr(this)}}Object.defineProperties(Pr.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(Pr.prototype,e.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function Fr(c){return!o(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableByteStream")?!1:c instanceof Pr}function vs(c){return!o(c)||!Object.prototype.hasOwnProperty.call(c,"_associatedReadableByteStreamController")?!1:c instanceof yn}function Lr(c){if(!ji(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let E=c._pullAlgorithm();R(E,()=>{c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,Lr(c))},A=>{kt(c,A)})}function Jn(c){Ts(c),c._pendingPullIntos=new W}function Ss(c,p){let E=!1;c._state==="closed"&&(E=!0);let A=Qn(p);p.readerType==="default"?pt(c,A,E):Zd(c,A,E)}function Qn(c){let p=c.bytesFilled,E=c.elementSize;return new c.viewConstructor(c.buffer,c.byteOffset,p/E)}function Xn(c,p,E,A){c._queue.push({buffer:p,byteOffset:E,byteLength:A}),c._queueTotalSize+=A}function ei(c,p){let E=p.elementSize,A=p.bytesFilled-p.bytesFilled%E,F=Math.min(c._queueTotalSize,p.byteLength-p.bytesFilled),ee=p.bytesFilled+F,ie=ee-ee%E,me=F,Fe=!1;ie>A&&(me=ie-p.bytesFilled,Fe=!0);let Ue=c._queue;for(;me>0;){let je=Ue.peek(),ze=Math.min(me,je.byteLength),at=p.byteOffset+p.bytesFilled;Vn(p.buffer,at,je.buffer,je.byteOffset,ze),je.byteLength===ze?Ue.shift():(je.byteOffset+=ze,je.byteLength-=ze),c._queueTotalSize-=ze,ti(c,ze,p),me-=ze}return Fe}function ti(c,p,E){E.bytesFilled+=p}function ri(c){c._queueTotalSize===0&&c._closeRequested?(es(c),$e(c._controlledReadableByteStream)):Lr(c)}function Ts(c){c._byobRequest!==null&&(c._byobRequest._associatedReadableByteStreamController=void 0,c._byobRequest._view=null,c._byobRequest=null)}function ni(c){for(;c._pendingPullIntos.length>0;){if(c._queueTotalSize===0)return;let p=c._pendingPullIntos.peek();ei(c,p)&&(Zn(c),Ss(c._controlledReadableByteStream,p))}}function Ni(c,p,E){let A=c._controlledReadableByteStream,F=1;p.constructor!==DataView&&(F=p.constructor.BYTES_PER_ELEMENT);let ee=p.constructor,ie=p.buffer,me={buffer:ie,bufferByteLength:ie.byteLength,byteOffset:p.byteOffset,byteLength:p.byteLength,bytesFilled:0,elementSize:F,viewConstructor:ee,readerType:"byob"};if(c._pendingPullIntos.length>0){c._pendingPullIntos.push(me),nf(A,E);return}if(A._state==="closed"){let Fe=new ee(me.buffer,me.byteOffset,0);E._closeSteps(Fe);return}if(c._queueTotalSize>0){if(ei(c,me)){let Fe=Qn(me);ri(c),E._chunkSteps(Fe);return}if(c._closeRequested){let Fe=new TypeError("Insufficient bytes to fill elements in the given buffer");kt(c,Fe),E._errorSteps(Fe);return}}c._pendingPullIntos.push(me),nf(A,E),Lr(c)}function Mi(c,p){let E=c._controlledReadableByteStream;if(La(E))for(;tc(E)>0;){let A=Zn(c);Ss(E,A)}}function si(c,p,E){if(ti(c,p,E),E.bytesFilled<E.elementSize)return;Zn(c);let A=E.bytesFilled%E.elementSize;if(A>0){let F=E.byteOffset+E.bytesFilled,ee=Zs(E.buffer,F-A,F);Xn(c,ee,0,ee.byteLength)}E.bytesFilled-=A,Ss(c._controlledReadableByteStream,E),ni(c)}function ii(c,p){let E=c._pendingPullIntos.peek();Ts(c),c._controlledReadableByteStream._state==="closed"?Mi(c):si(c,p,E),Lr(c)}function Zn(c){return c._pendingPullIntos.shift()}function ji(c){let p=c._controlledReadableByteStream;return p._state!=="readable"||c._closeRequested||!c._started?!1:!!(mn(p)&&_r(p)>0||La(p)&&tc(p)>0||Po(c)>0)}function es(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0}function _n(c){let p=c._controlledReadableByteStream;if(!(c._closeRequested||p._state!=="readable")){if(c._queueTotalSize>0){c._closeRequested=!0;return}if(c._pendingPullIntos.length>0&&c._pendingPullIntos.peek().bytesFilled>0){let A=new TypeError("Insufficient bytes to fill elements in the given buffer");throw kt(c,A),A}es(c),$e(p)}}function ts(c,p){let E=c._controlledReadableByteStream;if(c._closeRequested||E._state!=="readable")return;let A=p.buffer,F=p.byteOffset,ee=p.byteLength,ie=A;if(c._pendingPullIntos.length>0){let me=c._pendingPullIntos.peek();Kn(me.buffer),me.buffer=me.buffer}if(Ts(c),mn(E))if(_r(E)===0)Xn(c,ie,F,ee);else{c._pendingPullIntos.length>0&&Zn(c);let me=new Uint8Array(ie,F,ee);pt(E,me,!1)}else La(E)?(Xn(c,ie,F,ee),ni(c)):Xn(c,ie,F,ee);Lr(c)}function kt(c,p){let E=c._controlledReadableByteStream;E._state==="readable"&&(Jn(c),Er(c),es(c),wt(E,p))}function ks(c){if(c._byobRequest===null&&c._pendingPullIntos.length>0){let p=c._pendingPullIntos.peek(),E=new Uint8Array(p.buffer,p.byteOffset+p.bytesFilled,p.byteLength-p.bytesFilled),A=Object.create(yn.prototype);tf(A,c,E),c._byobRequest=A}return c._byobRequest}function Po(c){let p=c._controlledReadableByteStream._state;return p==="errored"?null:p==="closed"?0:c._strategyHWM-c._queueTotalSize}function Oa(c,p){let E=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(p!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(p===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(E.bytesFilled+p>E.byteLength)throw new RangeError("bytesWritten out of range")}E.buffer=E.buffer,ii(c,p)}function Pa(c,p){let E=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(p.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(p.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(E.byteOffset+E.bytesFilled!==p.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(E.bufferByteLength!==p.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(E.bytesFilled+p.byteLength>E.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");let F=p.byteLength;E.buffer=p.buffer,ii(c,F)}function Zl(c,p,E,A,F,ee,ie){p._controlledReadableByteStream=c,p._pullAgain=!1,p._pulling=!1,p._byobRequest=null,p._queue=p._queueTotalSize=void 0,Er(p),p._closeRequested=!1,p._started=!1,p._strategyHWM=ee,p._pullAlgorithm=A,p._cancelAlgorithm=F,p._autoAllocateChunkSize=ie,p._pendingPullIntos=new W,c._readableStreamController=p;let me=E();R(v(me),()=>{p._started=!0,Lr(p)},Fe=>{kt(p,Fe)})}function ef(c,p,E){let A=Object.create(Pr.prototype),F=()=>{},ee=()=>v(void 0),ie=()=>v(void 0);p.start!==void 0&&(F=()=>p.start(A)),p.pull!==void 0&&(ee=()=>p.pull(A)),p.cancel!==void 0&&(ie=Fe=>p.cancel(Fe));let me=p.autoAllocateChunkSize;if(me===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");Zl(c,A,F,ee,ie,E,me)}function tf(c,p,E){c._associatedReadableByteStreamController=p,c._view=E}function Fa(c){return new TypeError(`ReadableStreamBYOBRequest.prototype.${c} can only be used on a ReadableStreamBYOBRequest`)}function Fo(c){return new TypeError(`ReadableByteStreamController.prototype.${c} can only be used on a ReadableByteStreamController`)}function rf(c){return new $i(c)}function nf(c,p){c._reader._readIntoRequests.push(p)}function Zd(c,p,E){let F=c._reader._readIntoRequests.shift();E?F._closeSteps(p):F._chunkSteps(p)}function tc(c){return c._reader._readIntoRequests.length}function La(c){let p=c._reader;return!(p===void 0||!rs(p))}class $i{constructor(p){if(ue(p,1,"ReadableStreamBYOBReader"),De(p,"First parameter"),fe(p))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Fr(p._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");X(this,p),this._readIntoRequests=new W}get closed(){return rs(this)?this._closedPromise:b(Lo("closed"))}cancel(p=void 0){return rs(this)?this._ownerReadableStream===void 0?b(de("cancel")):le(this,p):b(Lo("cancel"))}read(p){if(!rs(this))return b(Lo("read"));if(!ArrayBuffer.isView(p))return b(new TypeError("view must be an array buffer view"));if(p.byteLength===0)return b(new TypeError("view must have non-zero byteLength"));if(p.buffer.byteLength===0)return b(new TypeError("view's buffer must have non-zero byteLength"));if(Kn(p.buffer),this._ownerReadableStream===void 0)return b(de("read from"));let E,A,F=y((ie,me)=>{E=ie,A=me});return sf(this,p,{_chunkSteps:ie=>E({value:ie,done:!1}),_closeSteps:ie=>E({value:ie,done:!0}),_errorSteps:ie=>A(ie)}),F}releaseLock(){if(!rs(this))throw Lo("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");M(this)}}}Object.defineProperties($i.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty($i.prototype,e.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function rs(c){return!o(c)||!Object.prototype.hasOwnProperty.call(c,"_readIntoRequests")?!1:c instanceof $i}function sf(c,p,E){let A=c._ownerReadableStream;A._disturbed=!0,A._state==="errored"?E._errorSteps(A._storedError):Ni(A._readableStreamController,p,E)}function Lo(c){return new TypeError(`ReadableStreamBYOBReader.prototype.${c} can only be used on a ReadableStreamBYOBReader`)}function xs(c,p){let{highWaterMark:E}=c;if(E===void 0)return p;if(Wn(E)||E<0)throw new RangeError("Invalid highWaterMark");return E}function Io(c){let{size:p}=c;return p||(()=>1)}function Ia(c,p){Y(c,p);let E=c?.highWaterMark,A=c?.size;return{highWaterMark:E===void 0?void 0:H(E),size:A===void 0?void 0:of(A,`${p} has member 'size' that`)}}function of(c,p){return te(c,p),E=>H(c(E))}function af(c,p){Y(c,p);let E=c?.abort,A=c?.close,F=c?.start,ee=c?.type,ie=c?.write;return{abort:E===void 0?void 0:rc(E,c,`${p} has member 'abort' that`),close:A===void 0?void 0:em(A,c,`${p} has member 'close' that`),start:F===void 0?void 0:uf(F,c,`${p} has member 'start' that`),write:ie===void 0?void 0:nc(ie,c,`${p} has member 'write' that`),type:ee}}function rc(c,p,E){return te(c,E),A=>N(c,p,[A])}function em(c,p,E){return te(c,E),()=>N(c,p,[])}function uf(c,p,E){return te(c,E),A=>z(c,p,[A])}function nc(c,p,E){return te(c,E),(A,F)=>N(c,p,[A,F])}function Ba(c,p){if(!oi(c))throw new TypeError(`${p} is not a WritableStream.`)}function Hi(c){if(typeof c!="object"||c===null)return!1;try{return typeof c.aborted=="boolean"}catch{return!1}}let cf=typeof AbortController=="function";function lf(){if(cf)return new AbortController}class Bo{constructor(p={},E={}){p===void 0?p=null:Q(p,"First parameter");let A=Ia(E,"Second parameter"),F=af(p,"First parameter");if(ic(this),F.type!==void 0)throw new RangeError("Invalid type is specified");let ie=Io(A),me=xs(A,1);bf(this,F,me,ie)}get locked(){if(!oi(this))throw Wi("locked");return zi(this)}abort(p=void 0){return oi(this)?zi(this)?b(new TypeError("Cannot abort a stream that already has a writer")):Ga(this,p):b(Wi("abort"))}close(){return oi(this)?zi(this)?b(new TypeError("Cannot close a stream that already has a writer")):wn(this)?b(new TypeError("Cannot close an already-closing stream")):hf(this):b(Wi("close"))}getWriter(){if(!oi(this))throw Wi("getWriter");return sc(this)}}Object.defineProperties(Bo.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(Bo.prototype,e.toStringTag,{value:"WritableStream",configurable:!0});function sc(c){return new Go(c)}function ff(c,p,E,A,F=1,ee=()=>1){let ie=Object.create(Bo.prototype);ic(ie);let me=Object.create(Rs.prototype);return hc(ie,me,c,p,E,A,F,ee),ie}function ic(c){c._state="writable",c._storedError=void 0,c._writer=void 0,c._writableStreamController=void 0,c._writeRequests=new W,c._inFlightWriteRequest=void 0,c._closeRequest=void 0,c._inFlightCloseRequest=void 0,c._pendingAbortRequest=void 0,c._backpressure=!1}function oi(c){return!o(c)||!Object.prototype.hasOwnProperty.call(c,"_writableStreamController")?!1:c instanceof Bo}function zi(c){return c._writer!==void 0}function Ga(c,p){var E;if(c._state==="closed"||c._state==="errored")return v(void 0);c._writableStreamController._abortReason=p,(E=c._writableStreamController._abortController)===null||E===void 0||E.abort();let A=c._state;if(A==="closed"||A==="errored")return v(void 0);if(c._pendingAbortRequest!==void 0)return c._pendingAbortRequest._promise;let F=!1;A==="erroring"&&(F=!0,p=void 0);let ee=y((ie,me)=>{c._pendingAbortRequest={_promise:void 0,_resolve:ie,_reject:me,_reason:p,_wasAlreadyErroring:F}});return c._pendingAbortRequest._promise=ee,F||ac(c,p),ee}function hf(c){let p=c._state;if(p==="closed"||p==="errored")return b(new TypeError(`The stream (in ${p} state) is not in the writable state and cannot be closed`));let E=y((F,ee)=>{let ie={_resolve:F,_reject:ee};c._closeRequest=ie}),A=c._writer;return A!==void 0&&c._backpressure&&p==="writable"&&No(A),yf(c._writableStreamController),E}function pf(c){return y((E,A)=>{let F={_resolve:E,_reject:A};c._writeRequests.push(F)})}function oc(c,p){if(c._state==="writable"){ac(c,p);return}uc(c)}function ac(c,p){let E=c._writableStreamController;c._state="erroring",c._storedError=p;let A=c._writer;A!==void 0&&gf(A,p),!sm(c)&&E._started&&uc(c)}function uc(c){c._state="errored",c._writableStreamController[_t]();let p=c._storedError;if(c._writeRequests.forEach(F=>{F._reject(p)}),c._writeRequests=new W,c._pendingAbortRequest===void 0){tt(c);return}let E=c._pendingAbortRequest;if(c._pendingAbortRequest=void 0,E._wasAlreadyErroring){E._reject(p),tt(c);return}let A=c._writableStreamController[ye](E._reason);R(A,()=>{E._resolve(),tt(c)},F=>{E._reject(F),tt(c)})}function tm(c){c._inFlightWriteRequest._resolve(void 0),c._inFlightWriteRequest=void 0}function cc(c,p){c._inFlightWriteRequest._reject(p),c._inFlightWriteRequest=void 0,oc(c,p)}function rm(c){c._inFlightCloseRequest._resolve(void 0),c._inFlightCloseRequest=void 0,c._state==="erroring"&&(c._storedError=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._resolve(),c._pendingAbortRequest=void 0)),c._state="closed";let E=c._writer;E!==void 0&&mc(E)}function nm(c,p){c._inFlightCloseRequest._reject(p),c._inFlightCloseRequest=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._reject(p),c._pendingAbortRequest=void 0),oc(c,p)}function wn(c){return!(c._closeRequest===void 0&&c._inFlightCloseRequest===void 0)}function sm(c){return!(c._inFlightWriteRequest===void 0&&c._inFlightCloseRequest===void 0)}function im(c){c._inFlightCloseRequest=c._closeRequest,c._closeRequest=void 0}function ot(c){c._inFlightWriteRequest=c._writeRequests.shift()}function tt(c){c._closeRequest!==void 0&&(c._closeRequest._reject(c._storedError),c._closeRequest=void 0);let p=c._writer;p!==void 0&&dc(p,c._storedError)}function lc(c,p){let E=c._writer;E!==void 0&&p!==c._backpressure&&(p?vf(E):No(E)),c._backpressure=p}class Go{constructor(p){if(ue(p,1,"WritableStreamDefaultWriter"),Ba(p,"First parameter"),zi(p))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=p,p._writer=this;let E=p._state;if(E==="writable")!wn(p)&&p._backpressure?ci(this):Ef(this),Na(this);else if(E==="erroring")Cs(this,p._storedError),Na(this);else if(E==="closed")Ef(this),cm(this);else{let A=p._storedError;Cs(this,A),Ma(this,A)}}get closed(){return ai(this)?this._closedPromise:b(ar("closed"))}get desiredSize(){if(!ai(this))throw ar("desiredSize");if(this._ownerWritableStream===void 0)throw ui("desiredSize");return Ft(this)}get ready(){return ai(this)?this._readyPromise:b(ar("ready"))}abort(p=void 0){return ai(this)?this._ownerWritableStream===void 0?b(ui("abort")):om(this,p):b(ar("abort"))}close(){if(!ai(this))return b(ar("close"));let p=this._ownerWritableStream;return p===void 0?b(ui("close")):wn(p)?b(new TypeError("Cannot close an already-closing stream")):df(this)}releaseLock(){if(!ai(this))throw ar("releaseLock");this._ownerWritableStream!==void 0&&qa(this)}write(p=void 0){return ai(this)?this._ownerWritableStream===void 0?b(ui("write to")):As(this,p):b(ar("write"))}}Object.defineProperties(Go.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(Go.prototype,e.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function ai(c){return!o(c)||!Object.prototype.hasOwnProperty.call(c,"_ownerWritableStream")?!1:c instanceof Go}function om(c,p){let E=c._ownerWritableStream;return Ga(E,p)}function df(c){let p=c._ownerWritableStream;return hf(p)}function am(c){let p=c._ownerWritableStream,E=p._state;return wn(p)||E==="closed"?v(void 0):E==="errored"?b(p._storedError):df(c)}function mf(c,p){c._closedPromiseState==="pending"?dc(c,p):lm(c,p)}function gf(c,p){c._readyPromiseState==="pending"?gc(c,p):bc(c,p)}function Ft(c){let p=c._ownerWritableStream,E=p._state;return E==="errored"||E==="erroring"?null:E==="closed"?0:pc(p._writableStreamController)}function qa(c){let p=c._ownerWritableStream,E=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");gf(c,E),mf(c,E),p._writer=void 0,c._ownerWritableStream=void 0}function As(c,p){let E=c._ownerWritableStream,A=E._writableStreamController,F=_f(A,p);if(E!==c._ownerWritableStream)return b(ui("write to"));let ee=E._state;if(ee==="errored")return b(E._storedError);if(wn(E)||ee==="closed")return b(new TypeError("The stream is closing or closed and cannot be written to"));if(ee==="erroring")return b(E._storedError);let ie=pf(E);return vr(A,p,F),ie}let fc={};class Rs{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!ir(this))throw st("abortReason");return this._abortReason}get signal(){if(!ir(this))throw st("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(p=void 0){if(!ir(this))throw st("error");this._controlledWritableStream._state==="writable"&&Uo(this,p)}[ye](p){let E=this._abortAlgorithm(p);return qo(this),E}[_t](){Er(this)}}Object.defineProperties(Rs.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(Rs.prototype,e.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function ir(c){return!o(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledWritableStream")?!1:c instanceof Rs}function hc(c,p,E,A,F,ee,ie,me){p._controlledWritableStream=c,c._writableStreamController=p,p._queue=void 0,p._queueTotalSize=void 0,Er(p),p._abortReason=void 0,p._abortController=lf(),p._started=!1,p._strategySizeAlgorithm=me,p._strategyHWM=ie,p._writeAlgorithm=A,p._closeAlgorithm=F,p._abortAlgorithm=ee;let Fe=En(p);lc(c,Fe);let Ue=E(),je=v(Ue);R(je,()=>{p._started=!0,Ua(p)},ze=>{p._started=!0,oc(c,ze)})}function bf(c,p,E,A){let F=Object.create(Rs.prototype),ee=()=>{},ie=()=>v(void 0),me=()=>v(void 0),Fe=()=>v(void 0);p.start!==void 0&&(ee=()=>p.start(F)),p.write!==void 0&&(ie=Ue=>p.write(Ue,F)),p.close!==void 0&&(me=()=>p.close()),p.abort!==void 0&&(Fe=Ue=>p.abort(Ue)),hc(c,F,ee,ie,me,Fe,E,A)}function qo(c){c._writeAlgorithm=void 0,c._closeAlgorithm=void 0,c._abortAlgorithm=void 0,c._strategySizeAlgorithm=void 0}function yf(c){Es(c,fc,0),Ua(c)}function _f(c,p){try{return c._strategySizeAlgorithm(p)}catch(E){return or(c,E),1}}function pc(c){return c._strategyHWM-c._queueTotalSize}function vr(c,p,E){try{Es(c,p,E)}catch(F){or(c,F);return}let A=c._controlledWritableStream;if(!wn(A)&&A._state==="writable"){let F=En(c);lc(A,F)}Ua(c)}function Ua(c){let p=c._controlledWritableStream;if(!c._started||p._inFlightWriteRequest!==void 0)return;if(p._state==="erroring"){uc(p);return}if(c._queue.length===0)return;let A=Ui(c);A===fc?um(c):wf(c,A)}function or(c,p){c._controlledWritableStream._state==="writable"&&Uo(c,p)}function um(c){let p=c._controlledWritableStream;im(p),Yn(c);let E=c._closeAlgorithm();qo(c),R(E,()=>{rm(p)},A=>{nm(p,A)})}function wf(c,p){let E=c._controlledWritableStream;ot(E);let A=c._writeAlgorithm(p);R(A,()=>{tm(E);let F=E._state;if(Yn(c),!wn(E)&&F==="writable"){let ee=En(c);lc(E,ee)}Ua(c)},F=>{E._state==="writable"&&qo(c),cc(E,F)})}function En(c){return pc(c)<=0}function Uo(c,p){let E=c._controlledWritableStream;qo(c),ac(E,p)}function Wi(c){return new TypeError(`WritableStream.prototype.${c} can only be used on a WritableStream`)}function st(c){return new TypeError(`WritableStreamDefaultController.prototype.${c} can only be used on a WritableStreamDefaultController`)}function ar(c){return new TypeError(`WritableStreamDefaultWriter.prototype.${c} can only be used on a WritableStreamDefaultWriter`)}function ui(c){return new TypeError("Cannot "+c+" a stream using a released writer")}function Na(c){c._closedPromise=y((p,E)=>{c._closedPromise_resolve=p,c._closedPromise_reject=E,c._closedPromiseState="pending"})}function Ma(c,p){Na(c),dc(c,p)}function cm(c){Na(c),mc(c)}function dc(c,p){c._closedPromise_reject!==void 0&&(G(c._closedPromise),c._closedPromise_reject(p),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="rejected")}function lm(c,p){Ma(c,p)}function mc(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="resolved")}function ci(c){c._readyPromise=y((p,E)=>{c._readyPromise_resolve=p,c._readyPromise_reject=E}),c._readyPromiseState="pending"}function Cs(c,p){ci(c),gc(c,p)}function Ef(c){ci(c),No(c)}function gc(c,p){c._readyPromise_reject!==void 0&&(G(c._readyPromise),c._readyPromise_reject(p),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="rejected")}function vf(c){ci(c)}function bc(c,p){Cs(c,p)}function No(c){c._readyPromise_resolve!==void 0&&(c._readyPromise_resolve(void 0),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="fulfilled")}let yc=typeof DOMException<"u"?DOMException:void 0;function fm(c){if(!(typeof c=="function"||typeof c=="object"))return!1;try{return new c,!0}catch{return!1}}function _c(){let c=function(E,A){this.message=E||"",this.name=A||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return c.prototype=Object.create(Error.prototype),Object.defineProperty(c.prototype,"constructor",{value:c,writable:!0,configurable:!0}),c}let wc=fm(yc)?yc:_c();function Sf(c,p,E,A,F,ee){let ie=Ke(c),me=sc(p);c._disturbed=!0;let Fe=!1,Ue=v(void 0);return y((je,ze)=>{let at;if(ee!==void 0){if(at=()=>{let Se=new wc("Aborted","AbortError"),Be=[];A||Be.push(()=>p._state==="writable"?Ga(p,Se):v(void 0)),F||Be.push(()=>c._state==="readable"?Ee(c,Se):v(void 0)),cr(()=>Promise.all(Be.map(Ze=>Ze())),!0,Se)},ee.aborted){at();return}ee.addEventListener("abort",at)}function Yt(){return y((Se,Be)=>{function Ze(lr){lr?Se():w(Sn(),Ze,Be)}Ze(!1)})}function Sn(){return Fe?v(!0):w(me._readyPromise,()=>y((Se,Be)=>{bn(ie,{_chunkSteps:Ze=>{Ue=w(As(me,Ze),void 0,r),Se(!1)},_closeSteps:()=>Se(!0),_errorSteps:Be})}))}if(ur(c,ie._closedPromise,Se=>{A?Ir(!0,Se):cr(()=>Ga(p,Se),!0,Se)}),ur(p,me._closedPromise,Se=>{F?Ir(!0,Se):cr(()=>Ee(c,Se),!0,Se)}),Jt(c,ie._closedPromise,()=>{E?Ir():cr(()=>am(me))}),wn(p)||p._state==="closed"){let Se=new TypeError("the destination writable stream closed before all data could be piped to it");F?Ir(!0,Se):cr(()=>Ee(c,Se),!0,Se)}G(Yt());function Xr(){let Se=Ue;return w(Ue,()=>Se!==Ue?Xr():void 0)}function ur(Se,Be,Ze){Se._state==="errored"?Ze(Se._storedError):D(Be,Ze)}function Jt(Se,Be,Ze){Se._state==="closed"?Ze():I(Be,Ze)}function cr(Se,Be,Ze){if(Fe)return;Fe=!0,p._state==="writable"&&!wn(p)?I(Xr(),lr):lr();function lr(){R(Se(),()=>ns(Be,Ze),T=>ns(!0,T))}}function Ir(Se,Be){Fe||(Fe=!0,p._state==="writable"&&!wn(p)?I(Xr(),()=>ns(Se,Be)):ns(Se,Be))}function ns(Se,Be){qa(me),M(ie),ee!==void 0&&ee.removeEventListener("abort",at),Se?ze(Be):je(void 0)}})}class li{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!qt(this))throw $a("desiredSize");return Ec(this)}close(){if(!qt(this))throw $a("close");if(!Yi(this))throw new TypeError("The stream is not in a state that permits close");Ki(this)}enqueue(p=void 0){if(!qt(this))throw $a("enqueue");if(!Yi(this))throw new TypeError("The stream is not in a state that permits enqueue");return ja(this,p)}error(p=void 0){if(!qt(this))throw $a("error");Ds(this,p)}[ht](p){Er(this);let E=this._cancelAlgorithm(p);return Mo(this),E}[Je](p){let E=this._controlledReadableStream;if(this._queue.length>0){let A=Yn(this);this._closeRequested&&this._queue.length===0?(Mo(this),$e(E)):fi(this),p._chunkSteps(A)}else ft(E,p),fi(this)}}Object.defineProperties(li.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(li.prototype,e.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function qt(c){return!o(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableStream")?!1:c instanceof li}function fi(c){if(!Vi(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let E=c._pullAlgorithm();R(E,()=>{c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,fi(c))},A=>{Ds(c,A)})}function Vi(c){let p=c._controlledReadableStream;return!Yi(c)||!c._started?!1:!!(fe(p)&&_r(p)>0||Ec(c)>0)}function Mo(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0,c._strategySizeAlgorithm=void 0}function Ki(c){if(!Yi(c))return;let p=c._controlledReadableStream;c._closeRequested=!0,c._queue.length===0&&(Mo(c),$e(p))}function ja(c,p){if(!Yi(c))return;let E=c._controlledReadableStream;if(fe(E)&&_r(E)>0)pt(E,p,!1);else{let A;try{A=c._strategySizeAlgorithm(p)}catch(F){throw Ds(c,F),F}try{Es(c,p,A)}catch(F){throw Ds(c,F),F}}fi(c)}function Ds(c,p){let E=c._controlledReadableStream;E._state==="readable"&&(Er(c),Mo(c),wt(E,p))}function Ec(c){let p=c._controlledReadableStream._state;return p==="errored"?null:p==="closed"?0:c._strategyHWM-c._queueTotalSize}function hm(c){return!Vi(c)}function Yi(c){let p=c._controlledReadableStream._state;return!c._closeRequested&&p==="readable"}function hi(c,p,E,A,F,ee,ie){p._controlledReadableStream=c,p._queue=void 0,p._queueTotalSize=void 0,Er(p),p._started=!1,p._closeRequested=!1,p._pullAgain=!1,p._pulling=!1,p._strategySizeAlgorithm=ie,p._strategyHWM=ee,p._pullAlgorithm=A,p._cancelAlgorithm=F,c._readableStreamController=p;let me=E();R(v(me),()=>{p._started=!0,fi(p)},Fe=>{Ds(p,Fe)})}function pm(c,p,E,A){let F=Object.create(li.prototype),ee=()=>{},ie=()=>v(void 0),me=()=>v(void 0);p.start!==void 0&&(ee=()=>p.start(F)),p.pull!==void 0&&(ie=()=>p.pull(F)),p.cancel!==void 0&&(me=Fe=>p.cancel(Fe)),hi(c,F,ee,ie,me,E,A)}function $a(c){return new TypeError(`ReadableStreamDefaultController.prototype.${c} can only be used on a ReadableStreamDefaultController`)}function vc(c,p){return Fr(c._readableStreamController)?Os(c):Tf(c)}function Tf(c,p){let E=Ke(c),A=!1,F=!1,ee=!1,ie=!1,me,Fe,Ue,je,ze,at=y(Jt=>{ze=Jt});function Yt(){return A?(F=!0,v(void 0)):(A=!0,bn(E,{_chunkSteps:cr=>{q(()=>{F=!1;let Ir=cr,ns=cr;ee||ja(Ue._readableStreamController,Ir),ie||ja(je._readableStreamController,ns),A=!1,F&&Yt()})},_closeSteps:()=>{A=!1,ee||Ki(Ue._readableStreamController),ie||Ki(je._readableStreamController),(!ee||!ie)&&ze(void 0)},_errorSteps:()=>{A=!1}}),v(void 0))}function Sn(Jt){if(ee=!0,me=Jt,ie){let cr=Or([me,Fe]),Ir=Ee(c,cr);ze(Ir)}return at}function Xr(Jt){if(ie=!0,Fe=Jt,ee){let cr=Or([me,Fe]),Ir=Ee(c,cr);ze(Ir)}return at}function ur(){}return Ue=vn(ur,Yt,Sn),je=vn(ur,Yt,Xr),D(E._closedPromise,Jt=>{Ds(Ue._readableStreamController,Jt),Ds(je._readableStreamController,Jt),(!ee||!ie)&&ze(void 0)}),[Ue,je]}function Os(c){let p=Ke(c),E=!1,A=!1,F=!1,ee=!1,ie=!1,me,Fe,Ue,je,ze,at=y(Se=>{ze=Se});function Yt(Se){D(Se._closedPromise,Be=>{Se===p&&(kt(Ue._readableStreamController,Be),kt(je._readableStreamController,Be),(!ee||!ie)&&ze(void 0))})}function Sn(){rs(p)&&(M(p),p=Ke(c),Yt(p)),bn(p,{_chunkSteps:Be=>{q(()=>{A=!1,F=!1;let Ze=Be,lr=Be;if(!ee&&!ie)try{lr=ws(Be)}catch(T){kt(Ue._readableStreamController,T),kt(je._readableStreamController,T),ze(Ee(c,T));return}ee||ts(Ue._readableStreamController,Ze),ie||ts(je._readableStreamController,lr),E=!1,A?ur():F&&Jt()})},_closeSteps:()=>{E=!1,ee||_n(Ue._readableStreamController),ie||_n(je._readableStreamController),Ue._readableStreamController._pendingPullIntos.length>0&&Oa(Ue._readableStreamController,0),je._readableStreamController._pendingPullIntos.length>0&&Oa(je._readableStreamController,0),(!ee||!ie)&&ze(void 0)},_errorSteps:()=>{E=!1}})}function Xr(Se,Be){Gt(p)&&(M(p),p=rf(c),Yt(p));let Ze=Be?je:Ue,lr=Be?Ue:je;sf(p,Se,{_chunkSteps:Zr=>{q(()=>{A=!1,F=!1;let ss=Be?ie:ee;if(Be?ee:ie)ss||Pa(Ze._readableStreamController,Zr);else{let Ne;try{Ne=ws(Zr)}catch(Tc){kt(Ze._readableStreamController,Tc),kt(lr._readableStreamController,Tc),ze(Ee(c,Tc));return}ss||Pa(Ze._readableStreamController,Zr),ts(lr._readableStreamController,Ne)}E=!1,A?ur():F&&Jt()})},_closeSteps:Zr=>{E=!1;let ss=Be?ie:ee,Qt=Be?ee:ie;ss||_n(Ze._readableStreamController),Qt||_n(lr._readableStreamController),Zr!==void 0&&(ss||Pa(Ze._readableStreamController,Zr),!Qt&&lr._readableStreamController._pendingPullIntos.length>0&&Oa(lr._readableStreamController,0)),(!ss||!Qt)&&ze(void 0)},_errorSteps:()=>{E=!1}})}function ur(){if(E)return A=!0,v(void 0);E=!0;let Se=ks(Ue._readableStreamController);return Se===null?Sn():Xr(Se._view,!1),v(void 0)}function Jt(){if(E)return F=!0,v(void 0);E=!0;let Se=ks(je._readableStreamController);return Se===null?Sn():Xr(Se._view,!0),v(void 0)}function cr(Se){if(ee=!0,me=Se,ie){let Be=Or([me,Fe]),Ze=Ee(c,Be);ze(Ze)}return at}function Ir(Se){if(ie=!0,Fe=Se,ee){let Be=Or([me,Fe]),Ze=Ee(c,Be);ze(Ze)}return at}function ns(){}return Ue=B(ns,ur,cr),je=B(ns,Jt,Ir),Yt(p),[Ue,je]}function Ha(c,p){Y(c,p);let E=c,A=E?.autoAllocateChunkSize,F=E?.cancel,ee=E?.pull,ie=E?.start,me=E?.type;return{autoAllocateChunkSize:A===void 0?void 0:se(A,`${p} has member 'autoAllocateChunkSize' that`),cancel:F===void 0?void 0:dm(F,E,`${p} has member 'cancel' that`),pull:ee===void 0?void 0:mm(ee,E,`${p} has member 'pull' that`),start:ie===void 0?void 0:gm(ie,E,`${p} has member 'start' that`),type:me===void 0?void 0:Ji(me,`${p} has member 'type' that`)}}function dm(c,p,E){return te(c,E),A=>N(c,p,[A])}function mm(c,p,E){return te(c,E),A=>N(c,p,[A])}function gm(c,p,E){return te(c,E),A=>z(c,p,[A])}function Ji(c,p){if(c=`${c}`,c!=="bytes")throw new TypeError(`${p} '${c}' is not a valid enumeration value for ReadableStreamType`);return c}function Jr(c,p){Y(c,p);let E=c?.mode;return{mode:E===void 0?void 0:kf(E,`${p} has member 'mode' that`)}}function kf(c,p){if(c=`${c}`,c!=="byob")throw new TypeError(`${p} '${c}' is not a valid enumeration value for ReadableStreamReaderMode`);return c}function bm(c,p){Y(c,p);let E=c?.preventCancel;return{preventCancel:Boolean(E)}}function xf(c,p){Y(c,p);let E=c?.preventAbort,A=c?.preventCancel,F=c?.preventClose,ee=c?.signal;return ee!==void 0&&ym(ee,`${p} has member 'signal' that`),{preventAbort:Boolean(E),preventCancel:Boolean(A),preventClose:Boolean(F),signal:ee}}function ym(c,p){if(!Hi(c))throw new TypeError(`${p} is not an AbortSignal.`)}function _m(c,p){Y(c,p);let E=c?.readable;J(E,"readable","ReadableWritablePair"),De(E,`${p} has member 'readable' that`);let A=c?.writable;return J(A,"writable","ReadableWritablePair"),Ba(A,`${p} has member 'writable' that`),{readable:E,writable:A}}class Ps{constructor(p={},E={}){p===void 0?p=null:Q(p,"First parameter");let A=Ia(E,"Second parameter"),F=Ha(p,"First parameter");if(Z(this),F.type==="bytes"){if(A.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");let ee=xs(A,0);ef(this,F,ee)}else{let ee=Io(A),ie=xs(A,1);pm(this,F,ie,ee)}}get locked(){if(!K(this))throw We("locked");return fe(this)}cancel(p=void 0){return K(this)?fe(this)?b(new TypeError("Cannot cancel a stream that already has a reader")):Ee(this,p):b(We("cancel"))}getReader(p=void 0){if(!K(this))throw We("getReader");return Jr(p,"First parameter").mode===void 0?Ke(this):rf(this)}pipeThrough(p,E={}){if(!K(this))throw We("pipeThrough");ue(p,1,"pipeThrough");let A=_m(p,"First parameter"),F=xf(E,"Second parameter");if(fe(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(zi(A.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");let ee=Sf(this,A.writable,F.preventClose,F.preventAbort,F.preventCancel,F.signal);return G(ee),A.readable}pipeTo(p,E={}){if(!K(this))return b(We("pipeTo"));if(p===void 0)return b("Parameter 1 is required in 'pipeTo'.");if(!oi(p))return b(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let A;try{A=xf(E,"Second parameter")}catch(F){return b(F)}return fe(this)?b(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):zi(p)?b(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Sf(this,p,A.preventClose,A.preventAbort,A.preventCancel,A.signal)}tee(){if(!K(this))throw We("tee");let p=vc(this);return Or(p)}values(p=void 0){if(!K(this))throw We("values");let E=bm(p,"First parameter");return _s(this,E.preventCancel)}}Object.defineProperties(Ps.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(Ps.prototype,e.toStringTag,{value:"ReadableStream",configurable:!0}),typeof e.asyncIterator=="symbol"&&Object.defineProperty(Ps.prototype,e.asyncIterator,{value:Ps.prototype.values,writable:!0,configurable:!0});function vn(c,p,E,A=1,F=()=>1){let ee=Object.create(Ps.prototype);Z(ee);let ie=Object.create(li.prototype);return hi(ee,ie,c,p,E,A,F),ee}function B(c,p,E){let A=Object.create(Ps.prototype);Z(A);let F=Object.create(Pr.prototype);return Zl(A,F,c,p,E,0,void 0),A}function Z(c){c._state="readable",c._reader=void 0,c._storedError=void 0,c._disturbed=!1}function K(c){return!o(c)||!Object.prototype.hasOwnProperty.call(c,"_readableStreamController")?!1:c instanceof Ps}function fe(c){return c._reader!==void 0}function Ee(c,p){if(c._disturbed=!0,c._state==="closed")return v(void 0);if(c._state==="errored")return b(c._storedError);$e(c);let E=c._reader;E!==void 0&&rs(E)&&(E._readIntoRequests.forEach(F=>{F._closeSteps(void 0)}),E._readIntoRequests=new W);let A=c._readableStreamController[ht](p);return P(A,r)}function $e(c){c._state="closed";let p=c._reader;p!==void 0&&(ge(p),Gt(p)&&(p._readRequests.forEach(E=>{E._closeSteps()}),p._readRequests=new W))}function wt(c,p){c._state="errored",c._storedError=p;let E=c._reader;E!==void 0&&($(E,p),Gt(E)?(E._readRequests.forEach(A=>{A._errorSteps(p)}),E._readRequests=new W):(E._readIntoRequests.forEach(A=>{A._errorSteps(p)}),E._readIntoRequests=new W))}function We(c){return new TypeError(`ReadableStream.prototype.${c} can only be used on a ReadableStream`)}function za(c,p){Y(c,p);let E=c?.highWaterMark;return J(E,"highWaterMark","QueuingStrategyInit"),{highWaterMark:H(E)}}let Af=c=>c.byteLength;try{Object.defineProperty(Af,"name",{value:"size",configurable:!0})}catch{}class Kt{constructor(p){ue(p,1,"ByteLengthQueuingStrategy"),p=za(p,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=p.highWaterMark}get highWaterMark(){if(!Rf(this))throw jo("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!Rf(this))throw jo("size");return Af}}Object.defineProperties(Kt.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(Kt.prototype,e.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function jo(c){return new TypeError(`ByteLengthQueuingStrategy.prototype.${c} can only be used on a ByteLengthQueuingStrategy`)}function Rf(c){return!o(c)||!Object.prototype.hasOwnProperty.call(c,"_byteLengthQueuingStrategyHighWaterMark")?!1:c instanceof Kt}let pi=()=>1;try{Object.defineProperty(pi,"name",{value:"size",configurable:!0})}catch{}class di{constructor(p){ue(p,1,"CountQueuingStrategy"),p=za(p,"First parameter"),this._countQueuingStrategyHighWaterMark=p.highWaterMark}get highWaterMark(){if(!Xe(this))throw $o("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!Xe(this))throw $o("size");return pi}}Object.defineProperties(di.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(di.prototype,e.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function $o(c){return new TypeError(`CountQueuingStrategy.prototype.${c} can only be used on a CountQueuingStrategy`)}function Xe(c){return!o(c)||!Object.prototype.hasOwnProperty.call(c,"_countQueuingStrategyHighWaterMark")?!1:c instanceof di}function wm(c,p){Y(c,p);let E=c?.flush,A=c?.readableType,F=c?.start,ee=c?.transform,ie=c?.writableType;return{flush:E===void 0?void 0:Cf(E,c,`${p} has member 'flush' that`),readableType:A,start:F===void 0?void 0:Wa(F,c,`${p} has member 'start' that`),transform:ee===void 0?void 0:Em(ee,c,`${p} has member 'transform' that`),writableType:ie}}function Cf(c,p,E){return te(c,E),A=>N(c,p,[A])}function Wa(c,p,E){return te(c,E),A=>z(c,p,[A])}function Em(c,p,E){return te(c,E),(A,F)=>N(c,p,[A,F])}class Va{constructor(p={},E={},A={}){p===void 0&&(p=null);let F=Ia(E,"Second parameter"),ee=Ia(A,"Third parameter"),ie=wm(p,"First parameter");if(ie.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(ie.writableType!==void 0)throw new RangeError("Invalid writableType specified");let me=xs(ee,0),Fe=Io(ee),Ue=xs(F,1),je=Io(F),ze,at=y(Yt=>{ze=Yt});vm(this,at,Ue,je,me,Fe),Ka(this,ie),ie.start!==void 0?ze(ie.start(this._transformStreamController)):ze(void 0)}get readable(){if(!Ho(this))throw Of("readable");return this._readable}get writable(){if(!Ho(this))throw Of("writable");return this._writable}}Object.defineProperties(Va.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(Va.prototype,e.toStringTag,{value:"TransformStream",configurable:!0});function vm(c,p,E,A,F,ee){function ie(){return p}function me(at){return Tm(c,at)}function Fe(at){return km(c,at)}function Ue(){return Ya(c)}c._writable=ff(ie,me,Ue,Fe,E,A);function je(){return Ja(c)}function ze(at){return mi(c,at),v(void 0)}c._readable=vn(ie,je,ze,F,ee),c._backpressure=void 0,c._backpressureChangePromise=void 0,c._backpressureChangePromise_resolve=void 0,zo(c,!0),c._transformStreamController=void 0}function Ho(c){return!o(c)||!Object.prototype.hasOwnProperty.call(c,"_transformStreamController")?!1:c instanceof Va}function Qr(c,p){Ds(c._readable._readableStreamController,p),mi(c,p)}function mi(c,p){Sc(c._transformStreamController),or(c._writable._writableStreamController,p),c._backpressure&&zo(c,!1)}function zo(c,p){c._backpressureChangePromise!==void 0&&c._backpressureChangePromise_resolve(),c._backpressureChangePromise=y(E=>{c._backpressureChangePromise_resolve=E}),c._backpressure=p}class Fs{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Wo(this))throw Xi("desiredSize");let p=this._controlledTransformStream._readable._readableStreamController;return Ec(p)}enqueue(p=void 0){if(!Wo(this))throw Xi("enqueue");Qi(this,p)}error(p=void 0){if(!Wo(this))throw Xi("error");gi(this,p)}terminate(){if(!Wo(this))throw Xi("terminate");Sm(this)}}Object.defineProperties(Fs.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(Fs.prototype,e.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function Wo(c){return!o(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledTransformStream")?!1:c instanceof Fs}function Df(c,p,E,A){p._controlledTransformStream=c,c._transformStreamController=p,p._transformAlgorithm=E,p._flushAlgorithm=A}function Ka(c,p){let E=Object.create(Fs.prototype),A=ee=>{try{return Qi(E,ee),v(void 0)}catch(ie){return b(ie)}},F=()=>v(void 0);p.transform!==void 0&&(A=ee=>p.transform(ee,E)),p.flush!==void 0&&(F=()=>p.flush(E)),Df(c,E,A,F)}function Sc(c){c._transformAlgorithm=void 0,c._flushAlgorithm=void 0}function Qi(c,p){let E=c._controlledTransformStream,A=E._readable._readableStreamController;if(!Yi(A))throw new TypeError("Readable side is not in a state that permits enqueue");try{ja(A,p)}catch(ee){throw mi(E,ee),E._readable._storedError}hm(A)!==E._backpressure&&zo(E,!0)}function gi(c,p){Qr(c._controlledTransformStream,p)}function Vo(c,p){let E=c._transformAlgorithm(p);return P(E,void 0,A=>{throw Qr(c._controlledTransformStream,A),A})}function Sm(c){let p=c._controlledTransformStream,E=p._readable._readableStreamController;Ki(E);let A=new TypeError("TransformStream terminated");mi(p,A)}function Tm(c,p){let E=c._transformStreamController;if(c._backpressure){let A=c._backpressureChangePromise;return P(A,()=>{let F=c._writable;if(F._state==="erroring")throw F._storedError;return Vo(E,p)})}return Vo(E,p)}function km(c,p){return Qr(c,p),v(void 0)}function Ya(c){let p=c._readable,E=c._transformStreamController,A=E._flushAlgorithm();return Sc(E),P(A,()=>{if(p._state==="errored")throw p._storedError;Ki(p._readableStreamController)},F=>{throw Qr(c,F),p._storedError})}function Ja(c){return zo(c,!1),c._backpressureChangePromise}function Xi(c){return new TypeError(`TransformStreamDefaultController.prototype.${c} can only be used on a TransformStreamDefaultController`)}function Of(c){return new TypeError(`TransformStream.prototype.${c} can only be used on a TransformStream`)}t.ByteLengthQueuingStrategy=Kt,t.CountQueuingStrategy=di,t.ReadableByteStreamController=Pr,t.ReadableStream=Ps,t.ReadableStreamBYOBReader=$i,t.ReadableStreamBYOBRequest=yn,t.ReadableStreamDefaultController=li,t.ReadableStreamDefaultReader=gn,t.TransformStream=Va,t.TransformStreamDefaultController=Fs,t.WritableStream=Bo,t.WritableStreamDefaultController=Rs,t.WritableStreamDefaultWriter=Go,Object.defineProperty(t,"__esModule",{value:!0})})});var nk=x(()=>{if(!globalThis.ReadableStream)try{let t=require("node:process"),{emitWarning:e}=t;try{t.emitWarning=()=>{},Object.assign(globalThis,require("node:stream/web")),t.emitWarning=e}catch(r){throw t.emitWarning=e,r}}catch{Object.assign(globalThis,rk())}try{let{Blob:t}=require("buffer");t&&!t.prototype.stream&&(t.prototype.stream=function(r){let n=0,s=this;return new ReadableStream({type:"bytes",async pull(o){let f=await s.slice(n,Math.min(s.size,n+65536)).arrayBuffer();n+=f.byteLength,o.enqueue(new Uint8Array(f)),n===s.size&&o.close()}})})}catch{}});async function*wb(t,e=!0){for(let r of t)if("stream"in r)yield*r.stream();else if(ArrayBuffer.isView(r))if(e){let n=r.byteOffset,s=r.byteOffset+r.byteLength;for(;n!==s;){let o=Math.min(s-n,sk),u=r.buffer.slice(n,n+o);n+=u.byteLength,yield new Uint8Array(u)}}else yield r;else{let n=0,s=r;for(;n!==s.size;){let u=await s.slice(n,Math.min(s.size,n+sk)).arrayBuffer();n+=u.byteLength,yield new Uint8Array(u)}}}var coe,sk,ik,hH,Ai,Qc=Lc(()=>{coe=Ye(nk(),1);sk=65536;ik=class Eb{#e=[];#t="";#r=0;#n="transparent";constructor(e=[],r={}){if(typeof e!="object"||e===null)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if(typeof e[Symbol.iterator]!="function")throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if(typeof r!="object"&&typeof r!="function")throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");r===null&&(r={});let n=new TextEncoder;for(let o of e){let u;ArrayBuffer.isView(o)?u=new Uint8Array(o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)):o instanceof ArrayBuffer?u=new Uint8Array(o.slice(0)):o instanceof Eb?u=o:u=n.encode(`${o}`),this.#r+=ArrayBuffer.isView(u)?u.byteLength:u.size,this.#e.push(u)}this.#n=`${r.endings===void 0?"transparent":r.endings}`;let s=r.type===void 0?"":String(r.type);this.#t=/^[\x20-\x7E]*$/.test(s)?s:""}get size(){return this.#r}get type(){return this.#t}async text(){let e=new TextDecoder,r="";for await(let n of wb(this.#e,!1))r+=e.decode(n,{stream:!0});return r+=e.decode(),r}async arrayBuffer(){let e=new Uint8Array(this.size),r=0;for await(let n of wb(this.#e,!1))e.set(n,r),r+=n.length;return e.buffer}stream(){let e=wb(this.#e,!0);return new globalThis.ReadableStream({type:"bytes",async pull(r){let n=await e.next();n.done?r.close():r.enqueue(n.value)},async cancel(){await e.return()}})}slice(e=0,r=this.size,n=""){let{size:s}=this,o=e<0?Math.max(s+e,0):Math.min(e,s),u=r<0?Math.max(s+r,0):Math.min(r,s),f=Math.max(u-o,0),h=this.#e,g=[],d=0;for(let v of h){if(d>=f)break;let b=ArrayBuffer.isView(v)?v.byteLength:v.size;if(o&&b<=o)o-=b,u-=b;else{let w;ArrayBuffer.isView(v)?(w=v.subarray(o,Math.min(b,u)),d+=w.byteLength):(w=v.slice(o,Math.min(b,u)),d+=w.size),u-=b,g.push(w),o=0}}let y=new Eb([],{type:String(n).toLowerCase()});return y.#r=f,y.#e=g,y}get[Symbol.toStringTag](){return"Blob"}static[Symbol.hasInstance](e){return e&&typeof e=="object"&&typeof e.constructor=="function"&&(typeof e.stream=="function"||typeof e.arrayBuffer=="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}};Object.defineProperties(ik.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});hH=ik,Ai=hH});var pH,dH,fu,vb=Lc(()=>{Qc();pH=class extends Ai{#e=0;#t="";constructor(e,r,n={}){if(arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);super(e,n),n===null&&(n={});let s=n.lastModified===void 0?Date.now():Number(n.lastModified);Number.isNaN(s)||(this.#e=s),this.#t=String(r)}get name(){return this.#t}get lastModified(){return this.#e}get[Symbol.toStringTag](){return"File"}static[Symbol.hasInstance](e){return!!e&&e instanceof Ai&&/^(File)$/.test(e[Symbol.toStringTag])}},dH=pH,fu=dH});function uk(t,e=Ai){var r=`${ok()}${ok()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),n=[],s=`--${r}\r
|
|
28
|
+
Content-Disposition: form-data; name="`;return t.forEach((o,u)=>typeof o=="string"?n.push(s+Sb(u)+`"\r
|
|
29
|
+
\r
|
|
30
|
+
${o.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
|
|
31
|
+
`)}\r
|
|
32
|
+
`):n.push(s+Sb(u)+`"; filename="${Sb(o.name,1)}"\r
|
|
33
|
+
Content-Type: ${o.type||"application/octet-stream"}\r
|
|
34
|
+
\r
|
|
35
|
+
`,o,`\r
|
|
36
|
+
`)),n.push(`--${r}--`),new e(n,{type:"multipart/form-data; boundary="+r})}var Xc,mH,gH,ok,bH,ak,Sb,oa,aa,Oh=Lc(()=>{Qc();vb();({toStringTag:Xc,iterator:mH,hasInstance:gH}=Symbol),ok=Math.random,bH="append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","),ak=(t,e,r)=>(t+="",/^(Blob|File)$/.test(e&&e[Xc])?[(r=r!==void 0?r+"":e[Xc]=="File"?e.name:"blob",t),e.name!==r||e[Xc]=="blob"?new fu([e],r,e):e]:[t,e+""]),Sb=(t,e)=>(e?t:t.replace(/\r?\n|\r/g,`\r
|
|
37
|
+
`)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),oa=(t,e,r)=>{if(e.length<r)throw new TypeError(`Failed to execute '${t}' on 'FormData': ${r} arguments required, but only ${e.length} present.`)},aa=class{#e=[];constructor(...e){if(e.length)throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.")}get[Xc](){return"FormData"}[mH](){return this.entries()}static[gH](e){return e&&typeof e=="object"&&e[Xc]==="FormData"&&!bH.some(r=>typeof e[r]!="function")}append(...e){oa("append",arguments,2),this.#e.push(ak(...e))}delete(e){oa("delete",arguments,1),e+="",this.#e=this.#e.filter(([r])=>r!==e)}get(e){oa("get",arguments,1),e+="";for(var r=this.#e,n=r.length,s=0;s<n;s++)if(r[s][0]===e)return r[s][1];return null}getAll(e,r){return oa("getAll",arguments,1),r=[],e+="",this.#e.forEach(n=>n[0]===e&&r.push(n[1])),r}has(e){return oa("has",arguments,1),e+="",this.#e.some(r=>r[0]===e)}forEach(e,r){oa("forEach",arguments,1);for(var[n,s]of this)e.call(r,s,n,this)}set(...e){oa("set",arguments,2);var r=[],n=!0;e=ak(...e),this.#e.forEach(s=>{s[0]===e[0]?n&&(n=!r.push(e)):r.push(s)}),n&&r.push(e),this.#e=r}*entries(){yield*this.#e}*keys(){for(var[e]of this)yield e}*values(){for(var[,e]of this)yield e}}});var pk=x((voe,hk)=>{if(!globalThis.DOMException)try{let{MessageChannel:t}=require("worker_threads"),e=new t().port1,r=new ArrayBuffer;e.postMessage(r,[r,r])}catch(t){t.constructor.name==="DOMException"&&(globalThis.DOMException=t.constructor)}hk.exports=globalThis.DOMException});var el,dk,yH,Fh,kb=Lc(()=>{el=require("node:fs"),dk=Ye(pk(),1);vb();Qc();({stat:yH}=el.promises),Fh=class{#e;#t;constructor(e){this.#e=e.path,this.#t=e.start,this.size=e.size,this.lastModified=e.lastModified}slice(e,r){return new Fh({path:this.#e,lastModified:this.lastModified,size:r-e,start:this.#t+e})}async*stream(){let{mtimeMs:e}=await yH(this.#e);if(e>this.lastModified)throw new dk.default("The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.","NotReadableError");yield*(0,el.createReadStream)(this.#e,{start:this.#t,end:this.#t+this.size-1})}get[Symbol.toStringTag](){return"Blob"}}});var gk={};Vq(gk,{toFormData:()=>kH});function TH(t){let e=t.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!e)return;let r=e[2]||e[3]||"",n=r.slice(r.lastIndexOf("\\")+1);return n=n.replace(/%22/g,'"'),n=n.replace(/&#(\d{4});/g,(s,o)=>String.fromCharCode(o)),n}async function kH(t,e){if(!/multipart/i.test(e))throw new TypeError("Failed to fetch");let r=e.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!r)throw new TypeError("no or bad content-type header, no multipart boundary");let n=new xb(r[1]||r[2]),s,o,u,f,h,g,d=[],y=new aa,v=D=>{u+=I.decode(D,{stream:!0})},b=D=>{d.push(D)},w=()=>{let D=new fu(d,g,{type:h});y.append(f,D)},R=()=>{y.append(f,u)},I=new TextDecoder("utf-8");I.decode(),n.onPartBegin=function(){n.onPartData=v,n.onPartEnd=R,s="",o="",u="",f="",h="",g=null,d.length=0},n.onHeaderField=function(D){s+=I.decode(D,{stream:!0})},n.onHeaderValue=function(D){o+=I.decode(D,{stream:!0})},n.onHeaderEnd=function(){if(o+=I.decode(),s=s.toLowerCase(),s==="content-disposition"){let D=o.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);D&&(f=D[2]||D[3]||""),g=TH(o),g&&(n.onPartData=b,n.onPartEnd=w)}else s==="content-type"&&(h=o);o="",s=""};for await(let D of t)n.write(D);return n.end(),y}var qs,ct,mk,ho,Lh,Ih,_H,tl,wH,EH,vH,SH,ua,xb,bk=Lc(()=>{kb();Oh();qs=0,ct={START_BOUNDARY:qs++,HEADER_FIELD_START:qs++,HEADER_FIELD:qs++,HEADER_VALUE_START:qs++,HEADER_VALUE:qs++,HEADER_VALUE_ALMOST_DONE:qs++,HEADERS_ALMOST_DONE:qs++,PART_DATA_START:qs++,PART_DATA:qs++,END:qs++},mk=1,ho={PART_BOUNDARY:mk,LAST_BOUNDARY:mk*=2},Lh=10,Ih=13,_H=32,tl=45,wH=58,EH=97,vH=122,SH=t=>t|32,ua=()=>{},xb=class{constructor(e){this.index=0,this.flags=0,this.onHeaderEnd=ua,this.onHeaderField=ua,this.onHeadersEnd=ua,this.onHeaderValue=ua,this.onPartBegin=ua,this.onPartData=ua,this.onPartEnd=ua,this.boundaryChars={},e=`\r
|
|
38
|
+
--`+e;let r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n),this.boundaryChars[r[n]]=!0;this.boundary=r,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=ct.START_BOUNDARY}write(e){let r=0,n=e.length,s=this.index,{lookbehind:o,boundary:u,boundaryChars:f,index:h,state:g,flags:d}=this,y=this.boundary.length,v=y-1,b=e.length,w,R,I=q=>{this[q+"Mark"]=r},D=q=>{delete this[q+"Mark"]},P=(q,z,N,L)=>{(z===void 0||z!==N)&&this[q](L&&L.subarray(z,N))},G=(q,z)=>{let N=q+"Mark";N in this&&(z?(P(q,this[N],r,e),delete this[N]):(P(q,this[N],e.length,e),this[N]=0))};for(r=0;r<n;r++)switch(w=e[r],g){case ct.START_BOUNDARY:if(h===u.length-2){if(w===tl)d|=ho.LAST_BOUNDARY;else if(w!==Ih)return;h++;break}else if(h-1===u.length-2){if(d&ho.LAST_BOUNDARY&&w===tl)g=ct.END,d=0;else if(!(d&ho.LAST_BOUNDARY)&&w===Lh)h=0,P("onPartBegin"),g=ct.HEADER_FIELD_START;else return;break}w!==u[h+2]&&(h=-2),w===u[h+2]&&h++;break;case ct.HEADER_FIELD_START:g=ct.HEADER_FIELD,I("onHeaderField"),h=0;case ct.HEADER_FIELD:if(w===Ih){D("onHeaderField"),g=ct.HEADERS_ALMOST_DONE;break}if(h++,w===tl)break;if(w===wH){if(h===1)return;G("onHeaderField",!0),g=ct.HEADER_VALUE_START;break}if(R=SH(w),R<EH||R>vH)return;break;case ct.HEADER_VALUE_START:if(w===_H)break;I("onHeaderValue"),g=ct.HEADER_VALUE;case ct.HEADER_VALUE:w===Ih&&(G("onHeaderValue",!0),P("onHeaderEnd"),g=ct.HEADER_VALUE_ALMOST_DONE);break;case ct.HEADER_VALUE_ALMOST_DONE:if(w!==Lh)return;g=ct.HEADER_FIELD_START;break;case ct.HEADERS_ALMOST_DONE:if(w!==Lh)return;P("onHeadersEnd"),g=ct.PART_DATA_START;break;case ct.PART_DATA_START:g=ct.PART_DATA,I("onPartData");case ct.PART_DATA:if(s=h,h===0){for(r+=v;r<b&&!(e[r]in f);)r+=y;r-=v,w=e[r]}if(h<u.length)u[h]===w?(h===0&&G("onPartData",!0),h++):h=0;else if(h===u.length)h++,w===Ih?d|=ho.PART_BOUNDARY:w===tl?d|=ho.LAST_BOUNDARY:h=0;else if(h-1===u.length)if(d&ho.PART_BOUNDARY){if(h=0,w===Lh){d&=~ho.PART_BOUNDARY,P("onPartEnd"),P("onPartBegin"),g=ct.HEADER_FIELD_START;break}}else d&ho.LAST_BOUNDARY&&w===tl?(P("onPartEnd"),g=ct.END,d=0):h=0;if(h>0)o[h-1]=w;else if(s>0){let q=new Uint8Array(o.buffer,o.byteOffset,o.byteLength);P("onPartData",0,s,q),s=0,I("onPartData"),r--}break;case ct.END:break;default:throw new Error(`Unexpected state entered: ${g}`)}G("onHeaderField"),G("onHeaderValue"),G("onPartData"),this.index=h,this.state=g,this.flags=d}end(){if(this.state===ct.HEADER_FIELD_START&&this.index===0||this.state===ct.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==ct.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}}});var Ik=x(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.splitWhen=mu.flatten=void 0;function FH(t){return t.reduce((e,r)=>[].concat(e,r),[])}mu.flatten=FH;function LH(t,e){let r=[[]],n=0;for(let s of t)e(s)?(n++,r[n]=[]):r[n].push(s);return r}mu.splitWhen=LH});var Bk=x(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});Nh.isEnoentCodeError=void 0;function IH(t){return t.code==="ENOENT"}Nh.isEnoentCodeError=IH});var Gk=x(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.createDirentFromStats=void 0;var Db=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function BH(t,e){return new Db(t,e)}Mh.createDirentFromStats=BH});var Mk=x(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.convertPosixPathToPattern=It.convertWindowsPathToPattern=It.convertPathToPattern=It.escapePosixPath=It.escapeWindowsPath=It.escape=It.removeLeadingDotSegment=It.makeAbsolute=It.unixify=void 0;var GH=require("os"),qH=require("path"),qk=GH.platform()==="win32",UH=2,NH=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,MH=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,jH=/^\\\\([.?])/,$H=/\\(?![!()+@[\]{}])/g;function HH(t){return t.replace(/\\/g,"/")}It.unixify=HH;function zH(t,e){return qH.resolve(t,e)}It.makeAbsolute=zH;function WH(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(UH)}return t}It.removeLeadingDotSegment=WH;It.escape=qk?Ob:Pb;function Ob(t){return t.replace(MH,"\\$2")}It.escapeWindowsPath=Ob;function Pb(t){return t.replace(NH,"\\$2")}It.escapePosixPath=Pb;It.convertPathToPattern=qk?Uk:Nk;function Uk(t){return Ob(t).replace(jH,"//$1").replace($H,"/")}It.convertWindowsPathToPattern=Uk;function Nk(t){return Pb(t)}It.convertPosixPathToPattern=Nk});var $k=x((wae,jk)=>{jk.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var Wk=x((Eae,zk)=>{var VH=$k(),Hk={"{":"}","(":")","[":"]"},KH=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,s=-2,o=-2,u=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(u===-1||u>n||(u=t.indexOf("\\",e),u===-1||u>n)))||s!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(s=t.indexOf("}",e),s>e&&(u=t.indexOf("\\",e),u===-1||u>s))||o!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(o=t.indexOf(")",e),o>e&&(u=t.indexOf("\\",e),u===-1||u>o))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(o=t.indexOf(")",r),o>r&&(u=t.indexOf("\\",r),u===-1||u>o))))return!0;if(t[e]==="\\"){var f=t[e+1];e+=2;var h=Hk[f];if(h){var g=t.indexOf(h,e);g!==-1&&(e=g+1)}if(t[e]==="!")return!0}else e++}return!1},YH=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=Hk[r];if(n){var s=t.indexOf(n,e);s!==-1&&(e=s+1)}if(t[e]==="!")return!0}else e++}return!1};zk.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(VH(e))return!0;var n=KH;return r&&r.strict===!1&&(n=YH),n(e)}});var Kk=x((vae,Vk)=>{"use strict";var JH=Wk(),QH=require("path").posix.dirname,XH=require("os").platform()==="win32",Fb="/",ZH=/\\/g,ez=/[\{\[].*[\}\]]$/,tz=/(^|[^\\])([\{\[]|\([^\)]+$)/,rz=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Vk.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&XH&&e.indexOf(Fb)<0&&(e=e.replace(ZH,Fb)),ez.test(e)&&(e+=Fb),e+="a";do e=QH(e);while(JH(e)||tz.test(e));return e.replace(rz,"$1")}});var jh=x(On=>{"use strict";On.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;On.find=(t,e)=>t.nodes.find(r=>r.type===e);On.exceedsLimit=(t,e,r=1,n)=>n===!1||!On.isInteger(t)||!On.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;On.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};On.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;On.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;On.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;On.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);On.flatten=(...t)=>{let e=[],r=n=>{for(let s=0;s<n.length;s++){let o=n[s];Array.isArray(o)?r(o,e):o!==void 0&&e.push(o)}return e};return r(t),e}});var $h=x((Tae,Jk)=>{"use strict";var Yk=jh();Jk.exports=(t,e={})=>{let r=(n,s={})=>{let o=e.escapeInvalid&&Yk.isInvalidBrace(s),u=n.invalid===!0&&e.escapeInvalid===!0,f="";if(n.value)return(o||u)&&Yk.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let h of n.nodes)f+=r(h);return f};return r(t)}});var Xk=x((kae,Qk)=>{"use strict";Qk.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var ax=x((xae,ox)=>{"use strict";var Zk=Xk(),fa=(t,e,r)=>{if(Zk(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Zk(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let s=String(n.relaxZeros),o=String(n.shorthand),u=String(n.capture),f=String(n.wrap),h=t+":"+e+"="+s+o+u+f;if(fa.cache.hasOwnProperty(h))return fa.cache[h].result;let g=Math.min(t,e),d=Math.max(t,e);if(Math.abs(g-d)===1){let R=t+"|"+e;return n.capture?`(${R})`:n.wrap===!1?R:`(?:${R})`}let y=ix(t)||ix(e),v={min:t,max:e,a:g,b:d},b=[],w=[];if(y&&(v.isPadded=y,v.maxLen=String(v.max).length),g<0){let R=d<0?Math.abs(d):1;w=ex(R,Math.abs(g),v,n),g=v.a=0}return d>=0&&(b=ex(g,d,v,n)),v.negatives=w,v.positives=b,v.result=nz(w,b,n),n.capture===!0?v.result=`(${v.result})`:n.wrap!==!1&&b.length+w.length>1&&(v.result=`(?:${v.result})`),fa.cache[h]=v,v.result};function nz(t,e,r){let n=Lb(t,e,"-",!1,r)||[],s=Lb(e,t,"",!1,r)||[],o=Lb(t,e,"-?",!0,r)||[];return n.concat(o).concat(s).join("|")}function sz(t,e){let r=1,n=1,s=rx(t,r),o=new Set([e]);for(;t<=s&&s<=e;)o.add(s),r+=1,s=rx(t,r);for(s=nx(e+1,n)-1;t<s&&s<=e;)o.add(s),n+=1,s=nx(e+1,n)-1;return o=[...o],o.sort(az),o}function iz(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=oz(t,e),s=n.length,o="",u=0;for(let f=0;f<s;f++){let[h,g]=n[f];h===g?o+=h:h!=="0"||g!=="9"?o+=uz(h,g,r):u++}return u&&(o+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:o,count:[u],digits:s}}function ex(t,e,r,n){let s=sz(t,e),o=[],u=t,f;for(let h=0;h<s.length;h++){let g=s[h],d=iz(String(u),String(g),n),y="";if(!r.isPadded&&f&&f.pattern===d.pattern){f.count.length>1&&f.count.pop(),f.count.push(d.count[0]),f.string=f.pattern+sx(f.count),u=g+1;continue}r.isPadded&&(y=cz(g,r,n)),d.string=y+d.pattern+sx(d.count),o.push(d),u=g+1,f=d}return o}function Lb(t,e,r,n,s){let o=[];for(let u of t){let{string:f}=u;!n&&!tx(e,"string",f)&&o.push(r+f),n&&tx(e,"string",f)&&o.push(r+f)}return o}function oz(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function az(t,e){return t>e?1:e>t?-1:0}function tx(t,e,r){return t.some(n=>n[e]===r)}function rx(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function nx(t,e){return t-t%Math.pow(10,e)}function sx(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function uz(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function ix(t){return/^-?(0+)\d/.test(t)}function cz(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),s=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${n}}`:`0{${n}}`}}fa.cache={};fa.clearCache=()=>fa.cache={};ox.exports=fa});var Gb=x((Aae,mx)=>{"use strict";var lz=require("util"),lx=ax(),ux=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),fz=t=>e=>t===!0?Number(e):String(e),Ib=t=>typeof t=="number"||typeof t=="string"&&t!=="",il=t=>Number.isInteger(+t),Bb=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},hz=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,pz=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},cx=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},dz=(t,e)=>{t.negatives.sort((u,f)=>u<f?-1:u>f?1:0),t.positives.sort((u,f)=>u<f?-1:u>f?1:0);let r=e.capture?"":"?:",n="",s="",o;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(s=`-(${r}${t.negatives.join("|")})`),n&&s?o=`${n}|${s}`:o=n||s,e.wrap?`(${r}${o})`:o},fx=(t,e,r,n)=>{if(r)return lx(t,e,{wrap:!1,...n});let s=String.fromCharCode(t);if(t===e)return s;let o=String.fromCharCode(e);return`[${s}-${o}]`},hx=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,s=r.capture?"":"?:";return n?`(${s}${t.join("|")})`:t.join("|")}return lx(t,e,r)},px=(...t)=>new RangeError("Invalid range arguments: "+lz.inspect(...t)),dx=(t,e,r)=>{if(r.strictRanges===!0)throw px([t,e]);return[]},mz=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},gz=(t,e,r=1,n={})=>{let s=Number(t),o=Number(e);if(!Number.isInteger(s)||!Number.isInteger(o)){if(n.strictRanges===!0)throw px([t,e]);return[]}s===0&&(s=0),o===0&&(o=0);let u=s>o,f=String(t),h=String(e),g=String(r);r=Math.max(Math.abs(r),1);let d=Bb(f)||Bb(h)||Bb(g),y=d?Math.max(f.length,h.length,g.length):0,v=d===!1&&hz(t,e,n)===!1,b=n.transform||fz(v);if(n.toRegex&&r===1)return fx(cx(t,y),cx(e,y),!0,n);let w={negatives:[],positives:[]},R=P=>w[P<0?"negatives":"positives"].push(Math.abs(P)),I=[],D=0;for(;u?s>=o:s<=o;)n.toRegex===!0&&r>1?R(s):I.push(pz(b(s,D),y,v)),s=u?s-r:s+r,D++;return n.toRegex===!0?r>1?dz(w,n):hx(I,null,{wrap:!1,...n}):I},bz=(t,e,r=1,n={})=>{if(!il(t)&&t.length>1||!il(e)&&e.length>1)return dx(t,e,n);let s=n.transform||(v=>String.fromCharCode(v)),o=`${t}`.charCodeAt(0),u=`${e}`.charCodeAt(0),f=o>u,h=Math.min(o,u),g=Math.max(o,u);if(n.toRegex&&r===1)return fx(h,g,!1,n);let d=[],y=0;for(;f?o>=u:o<=u;)d.push(s(o,y)),o=f?o-r:o+r,y++;return n.toRegex===!0?hx(d,null,{wrap:!1,options:n}):d},Hh=(t,e,r,n={})=>{if(e==null&&Ib(t))return[t];if(!Ib(t)||!Ib(e))return dx(t,e,n);if(typeof r=="function")return Hh(t,e,1,{transform:r});if(ux(r))return Hh(t,e,0,r);let s={...n};return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,il(r)?il(t)&&il(e)?gz(t,e,r,s):bz(t,e,Math.max(Math.abs(r),1),s):r!=null&&!ux(r)?mz(r,s):Hh(t,e,1,r)};mx.exports=Hh});var yx=x((Rae,bx)=>{"use strict";var yz=Gb(),gx=jh(),_z=(t,e={})=>{let r=(n,s={})=>{let o=gx.isInvalidBrace(s),u=n.invalid===!0&&e.escapeInvalid===!0,f=o===!0||u===!0,h=e.escapeInvalid===!0?"\\":"",g="";if(n.isOpen===!0||n.isClose===!0)return h+n.value;if(n.type==="open")return f?h+n.value:"(";if(n.type==="close")return f?h+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":f?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let d=gx.reduce(n.nodes),y=yz(...d,{...e,wrap:!1,toRegex:!0});if(y.length!==0)return d.length>1&&y.length>1?`(${y})`:y}if(n.nodes)for(let d of n.nodes)g+=r(d,n);return g};return r(t)};bx.exports=_z});var Ex=x((Cae,wx)=>{"use strict";var wz=Gb(),_x=$h(),gu=jh(),ha=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?gu.flatten(e).map(s=>`{${s}}`):e;for(let s of t)if(Array.isArray(s))for(let o of s)n.push(ha(o,e,r));else for(let o of e)r===!0&&typeof o=="string"&&(o=`{${o}}`),n.push(Array.isArray(o)?ha(s,o,r):s+o);return gu.flatten(n)},Ez=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(s,o={})=>{s.queue=[];let u=o,f=o.queue;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,f=u.queue;if(s.invalid||s.dollar){f.push(ha(f.pop(),_x(s,e)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){f.push(ha(f.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let y=gu.reduce(s.nodes);if(gu.exceedsLimit(...y,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let v=wz(...y,e);v.length===0&&(v=_x(s,e)),f.push(ha(f.pop(),v)),s.nodes=[];return}let h=gu.encloseBrace(s),g=s.queue,d=s;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,g=d.queue;for(let y=0;y<s.nodes.length;y++){let v=s.nodes[y];if(v.type==="comma"&&s.type==="brace"){y===1&&g.push(""),g.push("");continue}if(v.type==="close"){f.push(ha(f.pop(),g,h));continue}if(v.value&&v.type!=="open"){g.push(ha(g.pop(),v.value));continue}v.nodes&&n(v,s)}return g};return gu.flatten(n(t))};wx.exports=Ez});var Sx=x((Dae,vx)=>{"use strict";vx.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
39
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Rx=x((Oae,Ax)=>{"use strict";var vz=$h(),{MAX_LENGTH:Tx,CHAR_BACKSLASH:qb,CHAR_BACKTICK:Sz,CHAR_COMMA:Tz,CHAR_DOT:kz,CHAR_LEFT_PARENTHESES:xz,CHAR_RIGHT_PARENTHESES:Az,CHAR_LEFT_CURLY_BRACE:Rz,CHAR_RIGHT_CURLY_BRACE:Cz,CHAR_LEFT_SQUARE_BRACKET:kx,CHAR_RIGHT_SQUARE_BRACKET:xx,CHAR_DOUBLE_QUOTE:Dz,CHAR_SINGLE_QUOTE:Oz,CHAR_NO_BREAK_SPACE:Pz,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Fz}=Sx(),Lz=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(Tx,r.maxLength):Tx;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let s={type:"root",input:t,nodes:[]},o=[s],u=s,f=s,h=0,g=t.length,d=0,y=0,v,b={},w=()=>t[d++],R=I=>{if(I.type==="text"&&f.type==="dot"&&(f.type="text"),f&&f.type==="text"&&I.type==="text"){f.value+=I.value;return}return u.nodes.push(I),I.parent=u,I.prev=f,f=I,I};for(R({type:"bos"});d<g;)if(u=o[o.length-1],v=w(),!(v===Fz||v===Pz)){if(v===qb){R({type:"text",value:(e.keepEscaping?v:"")+w()});continue}if(v===xx){R({type:"text",value:"\\"+v});continue}if(v===kx){h++;let I=!0,D;for(;d<g&&(D=w());){if(v+=D,D===kx){h++;continue}if(D===qb){v+=w();continue}if(D===xx&&(h--,h===0))break}R({type:"text",value:v});continue}if(v===xz){u=R({type:"paren",nodes:[]}),o.push(u),R({type:"text",value:v});continue}if(v===Az){if(u.type!=="paren"){R({type:"text",value:v});continue}u=o.pop(),R({type:"text",value:v}),u=o[o.length-1];continue}if(v===Dz||v===Oz||v===Sz){let I=v,D;for(e.keepQuotes!==!0&&(v="");d<g&&(D=w());){if(D===qb){v+=D+w();continue}if(D===I){e.keepQuotes===!0&&(v+=D);break}v+=D}R({type:"text",value:v});continue}if(v===Rz){y++;let D={type:"brace",open:!0,close:!1,dollar:f.value&&f.value.slice(-1)==="$"||u.dollar===!0,depth:y,commas:0,ranges:0,nodes:[]};u=R(D),o.push(u),R({type:"open",value:v});continue}if(v===Cz){if(u.type!=="brace"){R({type:"text",value:v});continue}let I="close";u=o.pop(),u.close=!0,R({type:I,value:v}),y--,u=o[o.length-1];continue}if(v===Tz&&y>0){if(u.ranges>0){u.ranges=0;let I=u.nodes.shift();u.nodes=[I,{type:"text",value:vz(u)}]}R({type:"comma",value:v}),u.commas++;continue}if(v===kz&&y>0&&u.commas===0){let I=u.nodes;if(y===0||I.length===0){R({type:"text",value:v});continue}if(f.type==="dot"){if(u.range=[],f.value+=v,f.type="range",u.nodes.length!==3&&u.nodes.length!==5){u.invalid=!0,u.ranges=0,f.type="text";continue}u.ranges++,u.args=[];continue}if(f.type==="range"){I.pop();let D=I[I.length-1];D.value+=f.value+v,f=D,u.ranges--;continue}R({type:"dot",value:v});continue}R({type:"text",value:v})}do if(u=o.pop(),u.type!=="root"){u.nodes.forEach(P=>{P.nodes||(P.type==="open"&&(P.isOpen=!0),P.type==="close"&&(P.isClose=!0),P.nodes||(P.type="text"),P.invalid=!0)});let I=o[o.length-1],D=I.nodes.indexOf(u);I.nodes.splice(D,1,...u.nodes)}while(o.length>0);return R({type:"eos"}),s};Ax.exports=Lz});var Ox=x((Pae,Dx)=>{"use strict";var Cx=$h(),Iz=yx(),Bz=Ex(),Gz=Rx(),un=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let s=un.create(n,e);Array.isArray(s)?r.push(...s):r.push(s)}else r=[].concat(un.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};un.parse=(t,e={})=>Gz(t,e);un.stringify=(t,e={})=>Cx(typeof t=="string"?un.parse(t,e):t,e);un.compile=(t,e={})=>(typeof t=="string"&&(t=un.parse(t,e)),Iz(t,e));un.expand=(t,e={})=>{typeof t=="string"&&(t=un.parse(t,e));let r=Bz(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};un.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?un.compile(t,e):un.expand(t,e);Dx.exports=un});var ol=x((Fae,Bx)=>{"use strict";var qz=require("path"),Ns="\\\\/",Px=`[^${Ns}]`,Oi="\\.",Uz="\\+",Nz="\\?",zh="\\/",Mz="(?=.)",Fx="[^/]",Ub=`(?:${zh}|$)`,Lx=`(?:^|${zh})`,Nb=`${Oi}{1,2}${Ub}`,jz=`(?!${Oi})`,$z=`(?!${Lx}${Nb})`,Hz=`(?!${Oi}{0,1}${Ub})`,zz=`(?!${Nb})`,Wz=`[^.${zh}]`,Vz=`${Fx}*?`,Ix={DOT_LITERAL:Oi,PLUS_LITERAL:Uz,QMARK_LITERAL:Nz,SLASH_LITERAL:zh,ONE_CHAR:Mz,QMARK:Fx,END_ANCHOR:Ub,DOTS_SLASH:Nb,NO_DOT:jz,NO_DOTS:$z,NO_DOT_SLASH:Hz,NO_DOTS_SLASH:zz,QMARK_NO_DOT:Wz,STAR:Vz,START_ANCHOR:Lx},Kz={...Ix,SLASH_LITERAL:`[${Ns}]`,QMARK:Px,STAR:`${Px}*?`,DOTS_SLASH:`${Oi}{1,2}(?:[${Ns}]|$)`,NO_DOT:`(?!${Oi})`,NO_DOTS:`(?!(?:^|[${Ns}])${Oi}{1,2}(?:[${Ns}]|$))`,NO_DOT_SLASH:`(?!${Oi}{0,1}(?:[${Ns}]|$))`,NO_DOTS_SLASH:`(?!${Oi}{1,2}(?:[${Ns}]|$))`,QMARK_NO_DOT:`[^.${Ns}]`,START_ANCHOR:`(?:^|[${Ns}])`,END_ANCHOR:`(?:[${Ns}]|$)`},Yz={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Bx.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Yz,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:qz.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?Kz:Ix}}});var al=x(Wr=>{"use strict";var Jz=require("path"),Qz=process.platform==="win32",{REGEX_BACKSLASH:Xz,REGEX_REMOVE_BACKSLASH:Zz,REGEX_SPECIAL_CHARS:eW,REGEX_SPECIAL_CHARS_GLOBAL:tW}=ol();Wr.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Wr.hasRegexChars=t=>eW.test(t);Wr.isRegexChar=t=>t.length===1&&Wr.hasRegexChars(t);Wr.escapeRegex=t=>t.replace(tW,"\\$1");Wr.toPosixSlashes=t=>t.replace(Xz,"/");Wr.removeBackslashes=t=>t.replace(Zz,e=>e==="\\"?"":e);Wr.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Wr.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:Qz===!0||Jz.sep==="\\";Wr.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?Wr.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};Wr.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Wr.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",s=r.contains?"":"$",o=`${n}(?:${t})${s}`;return e.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}});var Hx=x((Iae,$x)=>{"use strict";var Gx=al(),{CHAR_ASTERISK:Mb,CHAR_AT:rW,CHAR_BACKWARD_SLASH:ul,CHAR_COMMA:nW,CHAR_DOT:jb,CHAR_EXCLAMATION_MARK:$b,CHAR_FORWARD_SLASH:jx,CHAR_LEFT_CURLY_BRACE:Hb,CHAR_LEFT_PARENTHESES:zb,CHAR_LEFT_SQUARE_BRACKET:sW,CHAR_PLUS:iW,CHAR_QUESTION_MARK:qx,CHAR_RIGHT_CURLY_BRACE:oW,CHAR_RIGHT_PARENTHESES:Ux,CHAR_RIGHT_SQUARE_BRACKET:aW}=ol(),Nx=t=>t===jx||t===ul,Mx=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},uW=(t,e)=>{let r=e||{},n=t.length-1,s=r.parts===!0||r.scanToEnd===!0,o=[],u=[],f=[],h=t,g=-1,d=0,y=0,v=!1,b=!1,w=!1,R=!1,I=!1,D=!1,P=!1,G=!1,q=!1,z=!1,N=0,L,W,X={value:"",depth:0,isGlob:!1},le=()=>g>=n,M=()=>h.charCodeAt(g+1),de=()=>(L=W,h.charCodeAt(++g));for(;g<n;){W=de();let ve;if(W===ul){P=X.backslashes=!0,W=de(),W===Hb&&(D=!0);continue}if(D===!0||W===Hb){for(N++;le()!==!0&&(W=de());){if(W===ul){P=X.backslashes=!0,de();continue}if(W===Hb){N++;continue}if(D!==!0&&W===jb&&(W=de())===jb){if(v=X.isBrace=!0,w=X.isGlob=!0,z=!0,s===!0)continue;break}if(D!==!0&&W===nW){if(v=X.isBrace=!0,w=X.isGlob=!0,z=!0,s===!0)continue;break}if(W===oW&&(N--,N===0)){D=!1,v=X.isBrace=!0,z=!0;break}}if(s===!0)continue;break}if(W===jx){if(o.push(g),u.push(X),X={value:"",depth:0,isGlob:!1},z===!0)continue;if(L===jb&&g===d+1){d+=2;continue}y=g+1;continue}if(r.noext!==!0&&(W===iW||W===rW||W===Mb||W===qx||W===$b)===!0&&M()===zb){if(w=X.isGlob=!0,R=X.isExtglob=!0,z=!0,W===$b&&g===d&&(q=!0),s===!0){for(;le()!==!0&&(W=de());){if(W===ul){P=X.backslashes=!0,W=de();continue}if(W===Ux){w=X.isGlob=!0,z=!0;break}}continue}break}if(W===Mb){if(L===Mb&&(I=X.isGlobstar=!0),w=X.isGlob=!0,z=!0,s===!0)continue;break}if(W===qx){if(w=X.isGlob=!0,z=!0,s===!0)continue;break}if(W===sW){for(;le()!==!0&&(ve=de());){if(ve===ul){P=X.backslashes=!0,de();continue}if(ve===aW){b=X.isBracket=!0,w=X.isGlob=!0,z=!0;break}}if(s===!0)continue;break}if(r.nonegate!==!0&&W===$b&&g===d){G=X.negated=!0,d++;continue}if(r.noparen!==!0&&W===zb){if(w=X.isGlob=!0,s===!0){for(;le()!==!0&&(W=de());){if(W===zb){P=X.backslashes=!0,W=de();continue}if(W===Ux){z=!0;break}}continue}break}if(w===!0){if(z=!0,s===!0)continue;break}}r.noext===!0&&(R=!1,w=!1);let ae=h,Re="",j="";d>0&&(Re=h.slice(0,d),h=h.slice(d),y-=d),ae&&w===!0&&y>0?(ae=h.slice(0,y),j=h.slice(y)):w===!0?(ae="",j=h):ae=h,ae&&ae!==""&&ae!=="/"&&ae!==h&&Nx(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),r.unescape===!0&&(j&&(j=Gx.removeBackslashes(j)),ae&&P===!0&&(ae=Gx.removeBackslashes(ae)));let $={prefix:Re,input:t,start:d,base:ae,glob:j,isBrace:v,isBracket:b,isGlob:w,isExtglob:R,isGlobstar:I,negated:G,negatedExtglob:q};if(r.tokens===!0&&($.maxDepth=0,Nx(W)||u.push(X),$.tokens=u),r.parts===!0||r.tokens===!0){let ve;for(let ge=0;ge<o.length;ge++){let ye=ve?ve+1:d,_t=o[ge],ht=t.slice(ye,_t);r.tokens&&(ge===0&&d!==0?(u[ge].isPrefix=!0,u[ge].value=Re):u[ge].value=ht,Mx(u[ge]),$.maxDepth+=u[ge].depth),(ge!==0||ht!=="")&&f.push(ht),ve=_t}if(ve&&ve+1<t.length){let ge=t.slice(ve+1);f.push(ge),r.tokens&&(u[u.length-1].value=ge,Mx(u[u.length-1]),$.maxDepth+=u[u.length-1].depth)}$.slashes=o,$.parts=f}return $};$x.exports=uW});var Vx=x((Bae,Wx)=>{"use strict";var Wh=ol(),cn=al(),{MAX_LENGTH:Vh,POSIX_REGEX_SOURCE:cW,REGEX_NON_SPECIAL_CHARS:lW,REGEX_SPECIAL_CHARS_BACKREF:fW,REPLACEMENTS:zx}=Wh,hW=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(s=>cn.escapeRegex(s)).join("..")}return r},bu=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Wb=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=zx[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(Vh,r.maxLength):Vh,s=t.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);let o={type:"bos",value:"",output:r.prepend||""},u=[o],f=r.capture?"":"?:",h=cn.isWindows(e),g=Wh.globChars(h),d=Wh.extglobChars(g),{DOT_LITERAL:y,PLUS_LITERAL:v,SLASH_LITERAL:b,ONE_CHAR:w,DOTS_SLASH:R,NO_DOT:I,NO_DOT_SLASH:D,NO_DOTS_SLASH:P,QMARK:G,QMARK_NO_DOT:q,STAR:z,START_ANCHOR:N}=g,L=Q=>`(${f}(?:(?!${N}${Q.dot?R:y}).)*?)`,W=r.dot?"":I,X=r.dot?G:q,le=r.bash===!0?L(r):z;r.capture&&(le=`(${le})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let M={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:u};t=cn.removePrefix(t,M),s=t.length;let de=[],ae=[],Re=[],j=o,$,ve=()=>M.index===s-1,ge=M.peek=(Q=1)=>t[M.index+Q],ye=M.advance=()=>t[++M.index]||"",_t=()=>t.slice(M.index+1),ht=(Q="",ue=0)=>{M.consumed+=Q,M.index+=ue},Je=Q=>{M.output+=Q.output!=null?Q.output:Q.value,ht(Q.value)},Vt=()=>{let Q=1;for(;ge()==="!"&&(ge(2)!=="("||ge(3)==="?");)ye(),M.start++,Q++;return Q%2===0?!1:(M.negated=!0,M.start++,!0)},Bt=Q=>{M[Q]++,Re.push(Q)},S=Q=>{M[Q]--,Re.pop()},Y=Q=>{if(j.type==="globstar"){let ue=M.braces>0&&(Q.type==="comma"||Q.type==="brace"),J=Q.extglob===!0||de.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!ue&&!J&&(M.output=M.output.slice(0,-j.output.length),j.type="star",j.value="*",j.output=le,M.output+=j.output)}if(de.length&&Q.type!=="paren"&&(de[de.length-1].inner+=Q.value),(Q.value||Q.output)&&Je(Q),j&&j.type==="text"&&Q.type==="text"){j.value+=Q.value,j.output=(j.output||"")+Q.value;return}Q.prev=j,u.push(Q),j=Q},te=(Q,ue)=>{let J={...d[ue],conditions:1,inner:""};J.prev=j,J.parens=M.parens,J.output=M.output;let H=(r.capture?"(":"")+J.open;Bt("parens"),Y({type:Q,value:ue,output:M.output?"":w}),Y({type:"paren",extglob:!0,value:ye(),output:H}),de.push(J)},ce=Q=>{let ue=Q.close+(r.capture?")":""),J;if(Q.type==="negate"){let H=le;if(Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(H=L(r)),(H!==le||ve()||/^\)+$/.test(_t()))&&(ue=Q.close=`)$))${H}`),Q.inner.includes("*")&&(J=_t())&&/^\.[^\\/.]+$/.test(J)){let we=Wb(J,{...e,fastpaths:!1}).output;ue=Q.close=`)${we})${H})`}Q.prev.type==="bos"&&(M.negatedExtglob=!0)}Y({type:"paren",extglob:!0,value:$,output:ue}),S("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let Q=!1,ue=t.replace(fW,(J,H,we,V,se,De)=>V==="\\"?(Q=!0,J):V==="?"?H?H+V+(se?G.repeat(se.length):""):De===0?X+(se?G.repeat(se.length):""):G.repeat(we.length):V==="."?y.repeat(we.length):V==="*"?H?H+V+(se?le:""):le:H?J:`\\${J}`);return Q===!0&&(r.unescape===!0?ue=ue.replace(/\\/g,""):ue=ue.replace(/\\+/g,J=>J.length%2===0?"\\\\":J?"\\":"")),ue===t&&r.contains===!0?(M.output=t,M):(M.output=cn.wrapOutput(ue,M,e),M)}for(;!ve();){if($=ye(),$==="\0")continue;if($==="\\"){let J=ge();if(J==="/"&&r.bash!==!0||J==="."||J===";")continue;if(!J){$+="\\",Y({type:"text",value:$});continue}let H=/^\\+/.exec(_t()),we=0;if(H&&H[0].length>2&&(we=H[0].length,M.index+=we,we%2!==0&&($+="\\")),r.unescape===!0?$=ye():$+=ye(),M.brackets===0){Y({type:"text",value:$});continue}}if(M.brackets>0&&($!=="]"||j.value==="["||j.value==="[^")){if(r.posix!==!1&&$===":"){let J=j.value.slice(1);if(J.includes("[")&&(j.posix=!0,J.includes(":"))){let H=j.value.lastIndexOf("["),we=j.value.slice(0,H),V=j.value.slice(H+2),se=cW[V];if(se){j.value=we+se,M.backtrack=!0,ye(),!o.output&&u.indexOf(j)===1&&(o.output=w);continue}}}($==="["&&ge()!==":"||$==="-"&&ge()==="]")&&($=`\\${$}`),$==="]"&&(j.value==="["||j.value==="[^")&&($=`\\${$}`),r.posix===!0&&$==="!"&&j.value==="["&&($="^"),j.value+=$,Je({value:$});continue}if(M.quotes===1&&$!=='"'){$=cn.escapeRegex($),j.value+=$,Je({value:$});continue}if($==='"'){M.quotes=M.quotes===1?0:1,r.keepQuotes===!0&&Y({type:"text",value:$});continue}if($==="("){Bt("parens"),Y({type:"paren",value:$});continue}if($===")"){if(M.parens===0&&r.strictBrackets===!0)throw new SyntaxError(bu("opening","("));let J=de[de.length-1];if(J&&M.parens===J.parens+1){ce(de.pop());continue}Y({type:"paren",value:$,output:M.parens?")":"\\)"}),S("parens");continue}if($==="["){if(r.nobracket===!0||!_t().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(bu("closing","]"));$=`\\${$}`}else Bt("brackets");Y({type:"bracket",value:$});continue}if($==="]"){if(r.nobracket===!0||j&&j.type==="bracket"&&j.value.length===1){Y({type:"text",value:$,output:`\\${$}`});continue}if(M.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(bu("opening","["));Y({type:"text",value:$,output:`\\${$}`});continue}S("brackets");let J=j.value.slice(1);if(j.posix!==!0&&J[0]==="^"&&!J.includes("/")&&($=`/${$}`),j.value+=$,Je({value:$}),r.literalBrackets===!1||cn.hasRegexChars(J))continue;let H=cn.escapeRegex(j.value);if(M.output=M.output.slice(0,-j.value.length),r.literalBrackets===!0){M.output+=H,j.value=H;continue}j.value=`(${f}${H}|${j.value})`,M.output+=j.value;continue}if($==="{"&&r.nobrace!==!0){Bt("braces");let J={type:"brace",value:$,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};ae.push(J),Y(J);continue}if($==="}"){let J=ae[ae.length-1];if(r.nobrace===!0||!J){Y({type:"text",value:$,output:$});continue}let H=")";if(J.dots===!0){let we=u.slice(),V=[];for(let se=we.length-1;se>=0&&(u.pop(),we[se].type!=="brace");se--)we[se].type!=="dots"&&V.unshift(we[se].value);H=hW(V,r),M.backtrack=!0}if(J.comma!==!0&&J.dots!==!0){let we=M.output.slice(0,J.outputIndex),V=M.tokens.slice(J.tokensIndex);J.value=J.output="\\{",$=H="\\}",M.output=we;for(let se of V)M.output+=se.output||se.value}Y({type:"brace",value:$,output:H}),S("braces"),ae.pop();continue}if($==="|"){de.length>0&&de[de.length-1].conditions++,Y({type:"text",value:$});continue}if($===","){let J=$,H=ae[ae.length-1];H&&Re[Re.length-1]==="braces"&&(H.comma=!0,J="|"),Y({type:"comma",value:$,output:J});continue}if($==="/"){if(j.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",u.pop(),j=o;continue}Y({type:"slash",value:$,output:b});continue}if($==="."){if(M.braces>0&&j.type==="dot"){j.value==="."&&(j.output=y);let J=ae[ae.length-1];j.type="dots",j.output+=$,j.value+=$,J.dots=!0;continue}if(M.braces+M.parens===0&&j.type!=="bos"&&j.type!=="slash"){Y({type:"text",value:$,output:y});continue}Y({type:"dot",value:$,output:y});continue}if($==="?"){if(!(j&&j.value==="(")&&r.noextglob!==!0&&ge()==="("&&ge(2)!=="?"){te("qmark",$);continue}if(j&&j.type==="paren"){let H=ge(),we=$;if(H==="<"&&!cn.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(j.value==="("&&!/[!=<:]/.test(H)||H==="<"&&!/<([!=]|\w+>)/.test(_t()))&&(we=`\\${$}`),Y({type:"text",value:$,output:we});continue}if(r.dot!==!0&&(j.type==="slash"||j.type==="bos")){Y({type:"qmark",value:$,output:q});continue}Y({type:"qmark",value:$,output:G});continue}if($==="!"){if(r.noextglob!==!0&&ge()==="("&&(ge(2)!=="?"||!/[!=<:]/.test(ge(3)))){te("negate",$);continue}if(r.nonegate!==!0&&M.index===0){Vt();continue}}if($==="+"){if(r.noextglob!==!0&&ge()==="("&&ge(2)!=="?"){te("plus",$);continue}if(j&&j.value==="("||r.regex===!1){Y({type:"plus",value:$,output:v});continue}if(j&&(j.type==="bracket"||j.type==="paren"||j.type==="brace")||M.parens>0){Y({type:"plus",value:$});continue}Y({type:"plus",value:v});continue}if($==="@"){if(r.noextglob!==!0&&ge()==="("&&ge(2)!=="?"){Y({type:"at",extglob:!0,value:$,output:""});continue}Y({type:"text",value:$});continue}if($!=="*"){($==="$"||$==="^")&&($=`\\${$}`);let J=lW.exec(_t());J&&($+=J[0],M.index+=J[0].length),Y({type:"text",value:$});continue}if(j&&(j.type==="globstar"||j.star===!0)){j.type="star",j.star=!0,j.value+=$,j.output=le,M.backtrack=!0,M.globstar=!0,ht($);continue}let Q=_t();if(r.noextglob!==!0&&/^\([^?]/.test(Q)){te("star",$);continue}if(j.type==="star"){if(r.noglobstar===!0){ht($);continue}let J=j.prev,H=J.prev,we=J.type==="slash"||J.type==="bos",V=H&&(H.type==="star"||H.type==="globstar");if(r.bash===!0&&(!we||Q[0]&&Q[0]!=="/")){Y({type:"star",value:$,output:""});continue}let se=M.braces>0&&(J.type==="comma"||J.type==="brace"),De=de.length&&(J.type==="pipe"||J.type==="paren");if(!we&&J.type!=="paren"&&!se&&!De){Y({type:"star",value:$,output:""});continue}for(;Q.slice(0,3)==="/**";){let Ke=t[M.index+4];if(Ke&&Ke!=="/")break;Q=Q.slice(3),ht("/**",3)}if(J.type==="bos"&&ve()){j.type="globstar",j.value+=$,j.output=L(r),M.output=j.output,M.globstar=!0,ht($);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&!V&&ve()){M.output=M.output.slice(0,-(J.output+j.output).length),J.output=`(?:${J.output}`,j.type="globstar",j.output=L(r)+(r.strictSlashes?")":"|$)"),j.value+=$,M.globstar=!0,M.output+=J.output+j.output,ht($);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&Q[0]==="/"){let Ke=Q[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(J.output+j.output).length),J.output=`(?:${J.output}`,j.type="globstar",j.output=`${L(r)}${b}|${b}${Ke})`,j.value+=$,M.output+=J.output+j.output,M.globstar=!0,ht($+ye()),Y({type:"slash",value:"/",output:""});continue}if(J.type==="bos"&&Q[0]==="/"){j.type="globstar",j.value+=$,j.output=`(?:^|${b}|${L(r)}${b})`,M.output=j.output,M.globstar=!0,ht($+ye()),Y({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-j.output.length),j.type="globstar",j.output=L(r),j.value+=$,M.output+=j.output,M.globstar=!0,ht($);continue}let ue={type:"star",value:$,output:le};if(r.bash===!0){ue.output=".*?",(j.type==="bos"||j.type==="slash")&&(ue.output=W+ue.output),Y(ue);continue}if(j&&(j.type==="bracket"||j.type==="paren")&&r.regex===!0){ue.output=$,Y(ue);continue}(M.index===M.start||j.type==="slash"||j.type==="dot")&&(j.type==="dot"?(M.output+=D,j.output+=D):r.dot===!0?(M.output+=P,j.output+=P):(M.output+=W,j.output+=W),ge()!=="*"&&(M.output+=w,j.output+=w)),Y(ue)}for(;M.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(bu("closing","]"));M.output=cn.escapeLast(M.output,"["),S("brackets")}for(;M.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(bu("closing",")"));M.output=cn.escapeLast(M.output,"("),S("parens")}for(;M.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(bu("closing","}"));M.output=cn.escapeLast(M.output,"{"),S("braces")}if(r.strictSlashes!==!0&&(j.type==="star"||j.type==="bracket")&&Y({type:"maybe_slash",value:"",output:`${b}?`}),M.backtrack===!0){M.output="";for(let Q of M.tokens)M.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(M.output+=Q.suffix)}return M};Wb.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(Vh,r.maxLength):Vh,s=t.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);t=zx[t]||t;let o=cn.isWindows(e),{DOT_LITERAL:u,SLASH_LITERAL:f,ONE_CHAR:h,DOTS_SLASH:g,NO_DOT:d,NO_DOTS:y,NO_DOTS_SLASH:v,STAR:b,START_ANCHOR:w}=Wh.globChars(o),R=r.dot?y:d,I=r.dot?v:d,D=r.capture?"":"?:",P={negated:!1,prefix:""},G=r.bash===!0?".*?":b;r.capture&&(G=`(${G})`);let q=W=>W.noglobstar===!0?G:`(${D}(?:(?!${w}${W.dot?g:u}).)*?)`,z=W=>{switch(W){case"*":return`${R}${h}${G}`;case".*":return`${u}${h}${G}`;case"*.*":return`${R}${G}${u}${h}${G}`;case"*/*":return`${R}${G}${f}${h}${I}${G}`;case"**":return R+q(r);case"**/*":return`(?:${R}${q(r)}${f})?${I}${h}${G}`;case"**/*.*":return`(?:${R}${q(r)}${f})?${I}${G}${u}${h}${G}`;case"**/.*":return`(?:${R}${q(r)}${f})?${u}${h}${G}`;default:{let X=/^(.*?)\.(\w+)$/.exec(W);if(!X)return;let le=z(X[1]);return le?le+u+X[2]:void 0}}},N=cn.removePrefix(t,P),L=z(N);return L&&r.strictSlashes!==!0&&(L+=`${f}?`),L};Wx.exports=Wb});var Yx=x((Gae,Kx)=>{"use strict";var pW=require("path"),dW=Hx(),Vb=Vx(),Kb=al(),mW=ol(),gW=t=>t&&typeof t=="object"&&!Array.isArray(t),Rt=(t,e,r=!1)=>{if(Array.isArray(t)){let d=t.map(v=>Rt(v,e,r));return v=>{for(let b of d){let w=b(v);if(w)return w}return!1}}let n=gW(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let s=e||{},o=Kb.isWindows(e),u=n?Rt.compileRe(t,e):Rt.makeRe(t,e,!1,!0),f=u.state;delete u.state;let h=()=>!1;if(s.ignore){let d={...e,ignore:null,onMatch:null,onResult:null};h=Rt(s.ignore,d,r)}let g=(d,y=!1)=>{let{isMatch:v,match:b,output:w}=Rt.test(d,u,e,{glob:t,posix:o}),R={glob:t,state:f,regex:u,posix:o,input:d,output:w,match:b,isMatch:v};return typeof s.onResult=="function"&&s.onResult(R),v===!1?(R.isMatch=!1,y?R:!1):h(d)?(typeof s.onIgnore=="function"&&s.onIgnore(R),R.isMatch=!1,y?R:!1):(typeof s.onMatch=="function"&&s.onMatch(R),y?R:!0)};return r&&(g.state=f),g};Rt.test=(t,e,r,{glob:n,posix:s}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let o=r||{},u=o.format||(s?Kb.toPosixSlashes:null),f=t===n,h=f&&u?u(t):t;return f===!1&&(h=u?u(t):t,f=h===n),(f===!1||o.capture===!0)&&(o.matchBase===!0||o.basename===!0?f=Rt.matchBase(t,e,r,s):f=e.exec(h)),{isMatch:Boolean(f),match:f,output:h}};Rt.matchBase=(t,e,r,n=Kb.isWindows(r))=>(e instanceof RegExp?e:Rt.makeRe(e,r)).test(pW.basename(t));Rt.isMatch=(t,e,r)=>Rt(e,r)(t);Rt.parse=(t,e)=>Array.isArray(t)?t.map(r=>Rt.parse(r,e)):Vb(t,{...e,fastpaths:!1});Rt.scan=(t,e)=>dW(t,e);Rt.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let s=e||{},o=s.contains?"":"^",u=s.contains?"":"$",f=`${o}(?:${t.output})${u}`;t&&t.negated===!0&&(f=`^(?!${f}).*$`);let h=Rt.toRegex(f,e);return n===!0&&(h.state=t),h};Rt.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(s.output=Vb.fastpaths(t,e)),s.output||(s=Vb(t,e)),Rt.compileRe(s,e,r,n)};Rt.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Rt.constants=mW;Kx.exports=Rt});var Qx=x((qae,Jx)=>{"use strict";Jx.exports=Yx()});var rA=x((Uae,tA)=>{"use strict";var Zx=require("util"),eA=Ox(),Ms=Qx(),Yb=al(),Xx=t=>t===""||t==="./",mt=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,s=new Set,o=new Set,u=0,f=d=>{o.add(d.output),r&&r.onResult&&r.onResult(d)};for(let d=0;d<e.length;d++){let y=Ms(String(e[d]),{...r,onResult:f},!0),v=y.state.negated||y.state.negatedExtglob;v&&u++;for(let b of t){let w=y(b,!0);!(v?!w.isMatch:w.isMatch)||(v?n.add(w.output):(n.delete(w.output),s.add(w.output)))}}let g=(u===e.length?[...o]:[...s]).filter(d=>!n.has(d));if(r&&g.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(d=>d.replace(/\\/g,"")):e}return g};mt.match=mt;mt.matcher=(t,e)=>Ms(t,e);mt.isMatch=(t,e,r)=>Ms(e,r)(t);mt.any=mt.isMatch;mt.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,s=[],o=f=>{r.onResult&&r.onResult(f),s.push(f.output)},u=new Set(mt(t,e,{...r,onResult:o}));for(let f of s)u.has(f)||n.add(f);return[...n]};mt.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Zx.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>mt.contains(t,n,r));if(typeof e=="string"){if(Xx(t)||Xx(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return mt.isMatch(t,e,{...r,contains:!0})};mt.matchKeys=(t,e,r)=>{if(!Yb.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=mt(Object.keys(t),e,r),s={};for(let o of n)s[o]=t[o];return s};mt.some=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let o=Ms(String(s),r);if(n.some(u=>o(u)))return!0}return!1};mt.every=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let o=Ms(String(s),r);if(!n.every(u=>o(u)))return!1}return!0};mt.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Zx.inspect(t)}"`);return[].concat(e).every(n=>Ms(n,r)(t))};mt.capture=(t,e,r)=>{let n=Yb.isWindows(r),o=Ms.makeRe(String(t),{...r,capture:!0}).exec(n?Yb.toPosixSlashes(e):e);if(o)return o.slice(1).map(u=>u===void 0?"":u)};mt.makeRe=(...t)=>Ms.makeRe(...t);mt.scan=(...t)=>Ms.scan(...t);mt.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let s of eA(String(n),e))r.push(Ms.parse(s,e));return r};mt.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:eA(t,e)};mt.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return mt.braces(t,{...e,expand:!0})};tA.exports=mt});var lA=x(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.removeDuplicateSlashes=Ce.matchAny=Ce.convertPatternsToRe=Ce.makeRe=Ce.getPatternParts=Ce.expandBraceExpansion=Ce.expandPatternsWithBraceExpansion=Ce.isAffectDepthOfReadingPattern=Ce.endsWithSlashGlobStar=Ce.hasGlobStar=Ce.getBaseDirectory=Ce.isPatternRelatedToParentDirectory=Ce.getPatternsOutsideCurrentDirectory=Ce.getPatternsInsideCurrentDirectory=Ce.getPositivePatterns=Ce.getNegativePatterns=Ce.isPositivePattern=Ce.isNegativePattern=Ce.convertToNegativePattern=Ce.convertToPositivePattern=Ce.isDynamicPattern=Ce.isStaticPattern=void 0;var bW=require("path"),yW=Kk(),Jb=rA(),nA="**",_W="\\",wW=/[*?]|^!/,EW=/\[[^[]*]/,vW=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,SW=/[!*+?@]\([^(]*\)/,TW=/,|\.\./,kW=/(?!^)\/{2,}/g;function sA(t,e={}){return!iA(t,e)}Ce.isStaticPattern=sA;function iA(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(_W)||wW.test(t)||EW.test(t)||vW.test(t)||e.extglob!==!1&&SW.test(t)||e.braceExpansion!==!1&&xW(t))}Ce.isDynamicPattern=iA;function xW(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return TW.test(n)}function AW(t){return Kh(t)?t.slice(1):t}Ce.convertToPositivePattern=AW;function RW(t){return"!"+t}Ce.convertToNegativePattern=RW;function Kh(t){return t.startsWith("!")&&t[1]!=="("}Ce.isNegativePattern=Kh;function oA(t){return!Kh(t)}Ce.isPositivePattern=oA;function CW(t){return t.filter(Kh)}Ce.getNegativePatterns=CW;function DW(t){return t.filter(oA)}Ce.getPositivePatterns=DW;function OW(t){return t.filter(e=>!Qb(e))}Ce.getPatternsInsideCurrentDirectory=OW;function PW(t){return t.filter(Qb)}Ce.getPatternsOutsideCurrentDirectory=PW;function Qb(t){return t.startsWith("..")||t.startsWith("./..")}Ce.isPatternRelatedToParentDirectory=Qb;function FW(t){return yW(t,{flipBackslashes:!1})}Ce.getBaseDirectory=FW;function LW(t){return t.includes(nA)}Ce.hasGlobStar=LW;function aA(t){return t.endsWith("/"+nA)}Ce.endsWithSlashGlobStar=aA;function IW(t){let e=bW.basename(t);return aA(t)||sA(e)}Ce.isAffectDepthOfReadingPattern=IW;function BW(t){return t.reduce((e,r)=>e.concat(uA(r)),[])}Ce.expandPatternsWithBraceExpansion=BW;function uA(t){let e=Jb.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((r,n)=>r.length-n.length),e.filter(r=>r!=="")}Ce.expandBraceExpansion=uA;function GW(t,e){let{parts:r}=Jb.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}Ce.getPatternParts=GW;function cA(t,e){return Jb.makeRe(t,e)}Ce.makeRe=cA;function qW(t,e){return t.map(r=>cA(r,e))}Ce.convertPatternsToRe=qW;function UW(t,e){return e.some(r=>r.test(t))}Ce.matchAny=UW;function NW(t){return t.replace(kW,"/")}Ce.removeDuplicateSlashes=NW});var dA=x((Mae,pA)=>{"use strict";var MW=require("stream"),fA=MW.PassThrough,jW=Array.prototype.slice;pA.exports=$W;function $W(){let t=[],e=jW.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let s=n.end!==!1,o=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let u=fA(n);function f(){for(let d=0,y=arguments.length;d<y;d++)t.push(hA(arguments[d],n));return h(),this}function h(){if(r)return;r=!0;let d=t.shift();if(!d){process.nextTick(g);return}Array.isArray(d)||(d=[d]);let y=d.length+1;function v(){--y>0||(r=!1,h())}function b(w){function R(){w.removeListener("merge2UnpipeEnd",R),w.removeListener("end",R),o&&w.removeListener("error",I),v()}function I(D){u.emit("error",D)}if(w._readableState.endEmitted)return v();w.on("merge2UnpipeEnd",R),w.on("end",R),o&&w.on("error",I),w.pipe(u,{end:!1}),w.resume()}for(let w=0;w<d.length;w++)b(d[w]);v()}function g(){r=!1,u.emit("queueDrain"),s&&u.end()}return u.setMaxListeners(0),u.add=f,u.on("unpipe",function(d){d.emit("merge2UnpipeEnd")}),e.length&&f.apply(null,e),u}function hA(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=hA(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(fA(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var gA=x(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});Yh.merge=void 0;var HW=dA();function zW(t){let e=HW(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>mA(t)),e.once("end",()=>mA(t)),e}Yh.merge=zW;function mA(t){t.forEach(e=>e.emit("close"))}});var bA=x(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.isEmpty=yu.isString=void 0;function WW(t){return typeof t=="string"}yu.isString=WW;function VW(t){return t===""}yu.isEmpty=VW});var Pi=x(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.string=dr.stream=dr.pattern=dr.path=dr.fs=dr.errno=dr.array=void 0;var KW=Ik();dr.array=KW;var YW=Bk();dr.errno=YW;var JW=Gk();dr.fs=JW;var QW=Mk();dr.path=QW;var XW=lA();dr.pattern=XW;var ZW=gA();dr.stream=ZW;var e7=bA();dr.string=e7});var EA=x(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.convertPatternGroupToTask=mr.convertPatternGroupsToTasks=mr.groupPatternsByBaseDirectory=mr.getNegativePatternsAsPositive=mr.getPositivePatterns=mr.convertPatternsToTasks=mr.generate=void 0;var hs=Pi();function t7(t,e){let r=yA(t,e),n=yA(e.ignore,e),s=_A(r),o=wA(r,n),u=s.filter(d=>hs.pattern.isStaticPattern(d,e)),f=s.filter(d=>hs.pattern.isDynamicPattern(d,e)),h=Xb(u,o,!1),g=Xb(f,o,!0);return h.concat(g)}mr.generate=t7;function yA(t,e){let r=t;return e.braceExpansion&&(r=hs.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>hs.pattern.removeDuplicateSlashes(n))}function Xb(t,e,r){let n=[],s=hs.pattern.getPatternsOutsideCurrentDirectory(t),o=hs.pattern.getPatternsInsideCurrentDirectory(t),u=Zb(s),f=Zb(o);return n.push(...ey(u,e,r)),"."in f?n.push(ty(".",o,e,r)):n.push(...ey(f,e,r)),n}mr.convertPatternsToTasks=Xb;function _A(t){return hs.pattern.getPositivePatterns(t)}mr.getPositivePatterns=_A;function wA(t,e){return hs.pattern.getNegativePatterns(t).concat(e).map(hs.pattern.convertToPositivePattern)}mr.getNegativePatternsAsPositive=wA;function Zb(t){let e={};return t.reduce((r,n)=>{let s=hs.pattern.getBaseDirectory(n);return s in r?r[s].push(n):r[s]=[n],r},e)}mr.groupPatternsByBaseDirectory=Zb;function ey(t,e,r){return Object.keys(t).map(n=>ty(n,t[n],e,r))}mr.convertPatternGroupsToTasks=ey;function ty(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(hs.pattern.convertToNegativePattern))}}mr.convertPatternGroupToTask=ty});var SA=x(Jh=>{"use strict";Object.defineProperty(Jh,"__esModule",{value:!0});Jh.read=void 0;function r7(t,e,r){e.fs.lstat(t,(n,s)=>{if(n!==null){vA(r,n);return}if(!s.isSymbolicLink()||!e.followSymbolicLink){ry(r,s);return}e.fs.stat(t,(o,u)=>{if(o!==null){if(e.throwErrorOnBrokenSymbolicLink){vA(r,o);return}ry(r,s);return}e.markSymbolicLink&&(u.isSymbolicLink=()=>!0),ry(r,u)})})}Jh.read=r7;function vA(t,e){t(e)}function ry(t,e){t(null,e)}});var TA=x(Qh=>{"use strict";Object.defineProperty(Qh,"__esModule",{value:!0});Qh.read=void 0;function n7(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}Qh.read=n7});var kA=x(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.createFileSystemAdapter=po.FILE_SYSTEM_ADAPTER=void 0;var Xh=require("fs");po.FILE_SYSTEM_ADAPTER={lstat:Xh.lstat,stat:Xh.stat,lstatSync:Xh.lstatSync,statSync:Xh.statSync};function s7(t){return t===void 0?po.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},po.FILE_SYSTEM_ADAPTER),t)}po.createFileSystemAdapter=s7});var xA=x(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});var i7=kA(),ny=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=i7.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};sy.default=ny});var pa=x(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.statSync=mo.stat=mo.Settings=void 0;var AA=SA(),o7=TA(),iy=xA();mo.Settings=iy.default;function a7(t,e,r){if(typeof e=="function"){AA.read(t,oy(),e);return}AA.read(t,oy(e),r)}mo.stat=a7;function u7(t,e){let r=oy(e);return o7.read(t,r)}mo.statSync=u7;function oy(t={}){return t instanceof iy.default?t:new iy.default(t)}});var DA=x((Qae,CA)=>{var RA;CA.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(RA||(RA=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var PA=x((Xae,OA)=>{OA.exports=l7;var c7=DA();function l7(t,e){let r,n,s,o=!0;Array.isArray(t)?(r=[],n=t.length):(s=Object.keys(t),r={},n=s.length);function u(h){function g(){e&&e(h,r),e=null}o?c7(g):g()}function f(h,g,d){r[h]=d,(--n===0||g)&&u(g)}n?s?s.forEach(function(h){t[h](function(g,d){f(h,g,d)})}):t.forEach(function(h,g){h(function(d,y){f(g,d,y)})}):u(null),o=!1}});var ay=x(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Zh=process.versions.node.split(".");if(Zh[0]===void 0||Zh[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var FA=Number.parseInt(Zh[0],10),f7=Number.parseInt(Zh[1],10),LA=10,h7=10,p7=FA>LA,d7=FA===LA&&f7>=h7;ep.IS_SUPPORT_READDIR_WITH_FILE_TYPES=p7||d7});var IA=x(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.createDirentFromStats=void 0;var uy=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function m7(t,e){return new uy(t,e)}tp.createDirentFromStats=m7});var cy=x(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.fs=void 0;var g7=IA();rp.fs=g7});var ly=x(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.joinPathSegments=void 0;function b7(t,e,r){return t.endsWith(r)?t+e:t+r+e}np.joinPathSegments=b7});var MA=x(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.readdir=go.readdirWithFileTypes=go.read=void 0;var y7=pa(),BA=PA(),_7=ay(),GA=cy(),qA=ly();function w7(t,e,r){if(!e.stats&&_7.IS_SUPPORT_READDIR_WITH_FILE_TYPES){UA(t,e,r);return}NA(t,e,r)}go.read=w7;function UA(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,s)=>{if(n!==null){sp(r,n);return}let o=s.map(f=>({dirent:f,name:f.name,path:qA.joinPathSegments(t,f.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){fy(r,o);return}let u=o.map(f=>E7(f,e));BA(u,(f,h)=>{if(f!==null){sp(r,f);return}fy(r,h)})})}go.readdirWithFileTypes=UA;function E7(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,s)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=GA.fs.createDirentFromStats(t.name,s),r(null,t)})}}function NA(t,e,r){e.fs.readdir(t,(n,s)=>{if(n!==null){sp(r,n);return}let o=s.map(u=>{let f=qA.joinPathSegments(t,u,e.pathSegmentSeparator);return h=>{y7.stat(f,e.fsStatSettings,(g,d)=>{if(g!==null){h(g);return}let y={name:u,path:f,dirent:GA.fs.createDirentFromStats(u,d)};e.stats&&(y.stats=d),h(null,y)})}});BA(o,(u,f)=>{if(u!==null){sp(r,u);return}fy(r,f)})})}go.readdir=NA;function sp(t,e){t(e)}function fy(t,e){t(null,e)}});var WA=x(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.readdir=bo.readdirWithFileTypes=bo.read=void 0;var v7=pa(),S7=ay(),jA=cy(),$A=ly();function T7(t,e){return!e.stats&&S7.IS_SUPPORT_READDIR_WITH_FILE_TYPES?HA(t,e):zA(t,e)}bo.read=T7;function HA(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let s={dirent:n,name:n.name,path:$A.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let o=e.fs.statSync(s.path);s.dirent=jA.fs.createDirentFromStats(s.name,o)}catch(o){if(e.throwErrorOnBrokenSymbolicLink)throw o}return s})}bo.readdirWithFileTypes=HA;function zA(t,e){return e.fs.readdirSync(t).map(n=>{let s=$A.joinPathSegments(t,n,e.pathSegmentSeparator),o=v7.statSync(s,e.fsStatSettings),u={name:n,path:s,dirent:jA.fs.createDirentFromStats(n,o)};return e.stats&&(u.stats=o),u})}bo.readdir=zA});var VA=x(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.createFileSystemAdapter=yo.FILE_SYSTEM_ADAPTER=void 0;var _u=require("fs");yo.FILE_SYSTEM_ADAPTER={lstat:_u.lstat,stat:_u.stat,lstatSync:_u.lstatSync,statSync:_u.statSync,readdir:_u.readdir,readdirSync:_u.readdirSync};function k7(t){return t===void 0?yo.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},yo.FILE_SYSTEM_ADAPTER),t)}yo.createFileSystemAdapter=k7});var KA=x(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});var x7=require("path"),A7=pa(),R7=VA(),hy=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=R7.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,x7.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new A7.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};py.default=hy});var ip=x(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.Settings=_o.scandirSync=_o.scandir=void 0;var YA=MA(),C7=WA(),dy=KA();_o.Settings=dy.default;function D7(t,e,r){if(typeof e=="function"){YA.read(t,my(),e);return}YA.read(t,my(e),r)}_o.scandir=D7;function O7(t,e){let r=my(e);return C7.read(t,r)}_o.scandirSync=O7;function my(t={}){return t instanceof dy.default?t:new dy.default(t)}});var QA=x((uue,JA)=>{"use strict";function P7(t){var e=new t,r=e;function n(){var o=e;return o.next?e=o.next:(e=new t,r=e),o.next=null,o}function s(o){r.next=o,r=o}return{get:n,release:s}}JA.exports=P7});var ZA=x((cue,gy)=>{"use strict";var F7=QA();function XA(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=F7(L7),s=null,o=null,u=0,f=null,h={push:R,drain:Pn,saturated:Pn,pause:d,paused:!1,concurrency:r,running:g,resume:b,idle:w,length:y,getQueue:v,unshift:I,empty:Pn,kill:P,killAndDrain:G,error:q};return h;function g(){return u}function d(){h.paused=!0}function y(){for(var z=s,N=0;z;)z=z.next,N++;return N}function v(){for(var z=s,N=[];z;)N.push(z.value),z=z.next;return N}function b(){if(!!h.paused){h.paused=!1;for(var z=0;z<h.concurrency;z++)u++,D()}}function w(){return u===0&&h.length()===0}function R(z,N){var L=n.get();L.context=t,L.release=D,L.value=z,L.callback=N||Pn,L.errorHandler=f,u===h.concurrency||h.paused?o?(o.next=L,o=L):(s=L,o=L,h.saturated()):(u++,e.call(t,L.value,L.worked))}function I(z,N){var L=n.get();L.context=t,L.release=D,L.value=z,L.callback=N||Pn,u===h.concurrency||h.paused?s?(L.next=s,s=L):(s=L,o=L,h.saturated()):(u++,e.call(t,L.value,L.worked))}function D(z){z&&n.release(z);var N=s;N?h.paused?u--:(o===s&&(o=null),s=N.next,N.next=null,e.call(t,N.value,N.worked),o===null&&h.empty()):--u===0&&h.drain()}function P(){s=null,o=null,h.drain=Pn}function G(){s=null,o=null,h.drain(),h.drain=Pn}function q(z){f=z}}function Pn(){}function L7(){this.value=null,this.callback=Pn,this.next=null,this.release=Pn,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var s=t.callback,o=t.errorHandler,u=t.value;t.value=null,t.callback=Pn,t.errorHandler&&o(r,u),s.call(t.context,r,n),t.release(t)}}function I7(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(d,y){e.call(this,d).then(function(v){y(null,v)},y)}var s=XA(t,n,r),o=s.push,u=s.unshift;return s.push=f,s.unshift=h,s.drained=g,s;function f(d){var y=new Promise(function(v,b){o(d,function(w,R){if(w){b(w);return}v(R)})});return y.catch(Pn),y}function h(d){var y=new Promise(function(v,b){u(d,function(w,R){if(w){b(w);return}v(R)})});return y.catch(Pn),y}function g(){var d=s.drain,y=new Promise(function(v){s.drain=function(){d(),v()}});return y}}gy.exports=XA;gy.exports.promise=I7});var op=x(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.joinPathSegments=js.replacePathSegmentSeparator=js.isAppliedFilter=js.isFatalError=void 0;function B7(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}js.isFatalError=B7;function G7(t,e){return t===null||t(e)}js.isAppliedFilter=G7;function q7(t,e){return t.split(/[/\\]/).join(e)}js.replacePathSegmentSeparator=q7;function U7(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}js.joinPathSegments=U7});var _y=x(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var N7=op(),by=class{constructor(e,r){this._root=e,this._settings=r,this._root=N7.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};yy.default=by});var vy=x(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var M7=require("events"),j7=ip(),$7=ZA(),ap=op(),H7=_y(),wy=class extends H7.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=j7.scandir,this._emitter=new M7.EventEmitter,this._queue=$7(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,s=>{s!==null&&this._handleError(s)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,s)=>{if(n!==null){r(n,void 0);return}for(let o of s)this._handleEntry(o,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!ap.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=ap.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ap.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&ap.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Ey.default=wy});var e3=x(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var z7=vy(),Sy=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new z7.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{W7(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{V7(e,this._storage)}),this._reader.read()}};Ty.default=Sy;function W7(t,e){t(e)}function V7(t,e){t(null,e)}});var t3=x(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var K7=require("stream"),Y7=vy(),ky=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Y7.default(this._root,this._settings),this._stream=new K7.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};xy.default=ky});var r3=x(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var J7=ip(),up=op(),Q7=_y(),Ay=class extends Q7.default{constructor(){super(...arguments),this._scandir=J7.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let s of n)this._handleEntry(s,r)}catch(n){this._handleError(n)}}_handleError(e){if(!!up.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=up.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),up.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&up.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Ry.default=Ay});var n3=x(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var X7=r3(),Cy=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new X7.default(this._root,this._settings)}read(){return this._reader.read()}};Dy.default=Cy});var s3=x(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var Z7=require("path"),e9=ip(),Oy=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Z7.sep),this.fsScandirSettings=new e9.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};Py.default=Oy});var lp=x($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.Settings=$s.walkStream=$s.walkSync=$s.walk=void 0;var i3=e3(),t9=t3(),r9=n3(),Fy=s3();$s.Settings=Fy.default;function n9(t,e,r){if(typeof e=="function"){new i3.default(t,cp()).read(e);return}new i3.default(t,cp(e)).read(r)}$s.walk=n9;function s9(t,e){let r=cp(e);return new r9.default(t,r).read()}$s.walkSync=s9;function i9(t,e){let r=cp(e);return new t9.default(t,r).read()}$s.walkStream=i9;function cp(t={}){return t instanceof Fy.default?t:new Fy.default(t)}});var fp=x(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var o9=require("path"),a9=pa(),o3=Pi(),Ly=class{constructor(e){this._settings=e,this._fsStatSettings=new a9.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return o9.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:o3.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!o3.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Iy.default=Ly});var qy=x(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});var u9=require("stream"),c9=pa(),l9=lp(),f9=fp(),By=class extends f9.default{constructor(){super(...arguments),this._walkStream=l9.walkStream,this._stat=c9.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),s=new u9.PassThrough({objectMode:!0});s._write=(o,u,f)=>this._getEntry(n[o],e[o],r).then(h=>{h!==null&&r.entryFilter(h)&&s.push(h),o===n.length-1&&s.end(),f()}).catch(f);for(let o=0;o<n.length;o++)s.write(o);return s}_getEntry(e,r,n){return this._getStat(e).then(s=>this._makeEntry(s,r)).catch(s=>{if(n.errorFilter(s))return null;throw s})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(s,o)=>s===null?r(o):n(s))})}};Gy.default=By});var a3=x(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var h9=lp(),p9=fp(),d9=qy(),Uy=class extends p9.default{constructor(){super(...arguments),this._walkAsync=h9.walk,this._readerStream=new d9.default(this._settings)}dynamic(e,r){return new Promise((n,s)=>{this._walkAsync(e,r,(o,u)=>{o===null?n(u):s(o)})})}async static(e,r){let n=[],s=this._readerStream.static(e,r);return new Promise((o,u)=>{s.once("error",u),s.on("data",f=>n.push(f)),s.once("end",()=>o(n))})}};Ny.default=Uy});var u3=x(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});var cl=Pi(),My=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let r=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:e,segments:r,sections:n})}}_getPatternSegments(e){return cl.pattern.getPatternParts(e,this._micromatchOptions).map(n=>cl.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:cl.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return cl.array.splitWhen(e,r=>r.dynamic&&cl.pattern.hasGlobStar(r.pattern))}};jy.default=My});var c3=x(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});var m9=u3(),$y=class extends m9.default{match(e){let r=e.split("/"),n=r.length,s=this._storage.filter(o=>!o.complete||o.segments.length>n);for(let o of s){let u=o.sections[0];if(!o.complete&&n>u.length||r.every((h,g)=>{let d=o.segments[g];return!!(d.dynamic&&d.patternRe.test(h)||!d.dynamic&&d.pattern===h)}))return!0}return!1}};Hy.default=$y});var l3=x(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var hp=Pi(),g9=c3(),zy=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let s=this._getMatcher(r),o=this._getNegativePatternsRe(n);return u=>this._filter(e,u,s,o)}_getMatcher(e){return new g9.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(hp.pattern.isAffectDepthOfReadingPattern);return hp.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,s){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let o=hp.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(o,n)?!1:this._isSkippedByNegativePatterns(o,s)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let s=e.split("/").length;return n-s}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!hp.pattern.matchAny(e,r)}};Wy.default=zy});var f3=x(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});var da=Pi(),Vy=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=da.pattern.convertPatternsToRe(e,this._micromatchOptions),s=da.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return o=>this._filter(o,n,s)}_filter(e,r,n){let s=da.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(s)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(s,n))return!1;let o=e.dirent.isDirectory(),u=this._isMatchToPatterns(s,r,o)&&!this._isMatchToPatterns(s,n,o);return this._settings.unique&&u&&this._createIndexRecord(s),u}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let n=da.path.makeAbsolute(this._settings.cwd,e);return da.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let s=da.pattern.matchAny(e,r);return!s&&n?da.pattern.matchAny(e+"/",r):s}};Ky.default=Vy});var h3=x(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0});var b9=Pi(),Yy=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return b9.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Jy.default=Yy});var d3=x(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});var p3=Pi(),Qy=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=p3.path.makeAbsolute(this._settings.cwd,r),r=p3.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Xy.default=Qy});var pp=x(e0=>{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});var y9=require("path"),_9=l3(),w9=f3(),E9=h3(),v9=d3(),Zy=class{constructor(e){this._settings=e,this.errorFilter=new E9.default(this._settings),this.entryFilter=new w9.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new _9.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new v9.default(this._settings)}_getRootDirectory(e){return y9.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e0.default=Zy});var m3=x(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});var S9=a3(),T9=pp(),t0=class extends T9.default{constructor(){super(...arguments),this._reader=new S9.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(o=>n.transform(o))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};r0.default=t0});var g3=x(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});var k9=require("stream"),x9=qy(),A9=pp(),n0=class extends A9.default{constructor(){super(...arguments),this._reader=new x9.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),s=this.api(r,e,n),o=new k9.Readable({objectMode:!0,read:()=>{}});return s.once("error",u=>o.emit("error",u)).on("data",u=>o.emit("data",n.transform(u))).once("end",()=>o.emit("end")),o.once("close",()=>s.destroy()),o}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};s0.default=n0});var b3=x(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});var R9=pa(),C9=lp(),D9=fp(),i0=class extends D9.default{constructor(){super(...arguments),this._walkSync=C9.walkSync,this._statSync=R9.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let s of e){let o=this._getFullEntryPath(s),u=this._getEntry(o,s,r);u===null||!r.entryFilter(u)||n.push(u)}return n}_getEntry(e,r,n){try{let s=this._getStat(e);return this._makeEntry(s,r)}catch(s){if(n.errorFilter(s))return null;throw s}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};o0.default=i0});var y3=x(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});var O9=b3(),P9=pp(),a0=class extends P9.default{constructor(){super(...arguments),this._reader=new O9.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};u0.default=a0});var _3=x(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var wu=require("fs"),F9=require("os"),L9=Math.max(F9.cpus().length,1);Eu.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:wu.lstat,lstatSync:wu.lstatSync,stat:wu.stat,statSync:wu.statSync,readdir:wu.readdir,readdirSync:wu.readdirSync};var c0=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,L9),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Eu.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Eu.default=c0});var p0=x((Lue,E3)=>{"use strict";var w3=EA(),I9=m3(),B9=g3(),G9=y3(),l0=_3(),Fn=Pi();async function f0(t,e){ps(t);let r=h0(t,I9.default,e),n=await Promise.all(r);return Fn.array.flatten(n)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(g,d){ps(g);let y=h0(g,G9.default,d);return Fn.array.flatten(y)}t.sync=e;function r(g,d){ps(g);let y=h0(g,B9.default,d);return Fn.stream.merge(y)}t.stream=r;function n(g,d){ps(g);let y=[].concat(g),v=new l0.default(d);return w3.generate(y,v)}t.generateTasks=n;function s(g,d){ps(g);let y=new l0.default(d);return Fn.pattern.isDynamicPattern(g,y)}t.isDynamicPattern=s;function o(g){return ps(g),Fn.path.escape(g)}t.escapePath=o;function u(g){return ps(g),Fn.path.convertPathToPattern(g)}t.convertPathToPattern=u;let f;(function(g){function d(v){return ps(v),Fn.path.escapePosixPath(v)}g.escapePath=d;function y(v){return ps(v),Fn.path.convertPosixPathToPattern(v)}g.convertPathToPattern=y})(f=t.posix||(t.posix={}));let h;(function(g){function d(v){return ps(v),Fn.path.escapeWindowsPath(v)}g.escapePath=d;function y(v){return ps(v),Fn.path.convertWindowsPathToPattern(v)}g.convertPathToPattern=y})(h=t.win32||(t.win32={}))})(f0||(f0={}));function h0(t,e,r){let n=[].concat(t),s=new l0.default(r),o=w3.generate(n,s),u=new e(s);return o.map(u.read,u)}function ps(t){if(![].concat(t).every(n=>Fn.string.isString(n)&&!Fn.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}E3.exports=f0});var S3=x((Su,fl)=>{(function(){var t,e="4.17.21",r=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",g=1,d=2,y=4,v=1,b=2,w=1,R=2,I=4,D=8,P=16,G=32,q=64,z=128,N=256,L=512,W=30,X="...",le=800,M=16,de=1,ae=2,Re=3,j=1/0,$=9007199254740991,ve=17976931348623157e292,ge=0/0,ye=4294967295,_t=ye-1,ht=ye>>>1,Je=[["ary",z],["bind",w],["bindKey",R],["curry",D],["curryRight",P],["flip",L],["partial",G],["partialRight",q],["rearg",N]],Vt="[object Arguments]",Bt="[object Array]",S="[object AsyncFunction]",Y="[object Boolean]",te="[object Date]",ce="[object DOMException]",Q="[object Error]",ue="[object Function]",J="[object GeneratorFunction]",H="[object Map]",we="[object Number]",V="[object Null]",se="[object Object]",De="[object Promise]",Ke="[object Proxy]",ft="[object RegExp]",pt="[object Set]",_r="[object String]",mn="[object Symbol]",gn="[object Undefined]",Gt="[object WeakMap]",bn="[object WeakSet]",wr="[object ArrayBuffer]",Dr="[object DataView]",jn="[object Float32Array]",$n="[object Float64Array]",_s="[object Int8Array]",Hn="[object Int16Array]",zn="[object Int32Array]",Wn="[object Uint8Array]",Or="[object Uint8ClampedArray]",Vn="[object Uint16Array]",Xs="[object Uint32Array]",Kn=/\b__p \+= '';/g,Zs=/\b(__p \+=) '' \+/g,qi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ws=/&(?:amp|lt|gt|quot|#39);/g,Yn=/[&<>"']/g,Es=RegExp(ws.source),Ui=RegExp(Yn.source),Er=/<%-([\s\S]+?)%>/g,yn=/<%([\s\S]+?)%>/g,Pr=/<%=([\s\S]+?)%>/g,Fr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vs=/^\w*$/,Lr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jn=/[\\^$.*+?()[\]{}|]/g,Ss=RegExp(Jn.source),Qn=/^\s+/,Xn=/\s/,ei=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ti=/\{\n\/\* \[wrapped with (.+)\] \*/,ri=/,? & /,Ts=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ni=/[()=,{}\[\]\/\s]/,Ni=/\\(\\)?/g,Mi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,si=/\w*$/,ii=/^[-+]0x[0-9a-f]+$/i,Zn=/^0b[01]+$/i,ji=/^\[object .+?Constructor\]$/,es=/^0o[0-7]+$/i,_n=/^(?:0|[1-9]\d*)$/,ts=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kt=/($^)/,ks=/['\n\r\u2028\u2029\\]/g,Po="\\ud800-\\udfff",Oa="\\u0300-\\u036f",Pa="\\ufe20-\\ufe2f",Zl="\\u20d0-\\u20ff",ef=Oa+Pa+Zl,tf="\\u2700-\\u27bf",Fa="a-z\\xdf-\\xf6\\xf8-\\xff",Fo="\\xac\\xb1\\xd7\\xf7",rf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nf="\\u2000-\\u206f",Zd=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tc="A-Z\\xc0-\\xd6\\xd8-\\xde",La="\\ufe0e\\ufe0f",$i=Fo+rf+nf+Zd,rs="['\u2019]",sf="["+Po+"]",Lo="["+$i+"]",xs="["+ef+"]",Io="\\d+",Ia="["+tf+"]",of="["+Fa+"]",af="[^"+Po+$i+Io+tf+Fa+tc+"]",rc="\\ud83c[\\udffb-\\udfff]",em="(?:"+xs+"|"+rc+")",uf="[^"+Po+"]",nc="(?:\\ud83c[\\udde6-\\uddff]){2}",Ba="[\\ud800-\\udbff][\\udc00-\\udfff]",Hi="["+tc+"]",cf="\\u200d",lf="(?:"+of+"|"+af+")",Bo="(?:"+Hi+"|"+af+")",sc="(?:"+rs+"(?:d|ll|m|re|s|t|ve))?",ff="(?:"+rs+"(?:D|LL|M|RE|S|T|VE))?",ic=em+"?",oi="["+La+"]?",zi="(?:"+cf+"(?:"+[uf,nc,Ba].join("|")+")"+oi+ic+")*",Ga="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pf=oi+ic+zi,oc="(?:"+[Ia,nc,Ba].join("|")+")"+pf,ac="(?:"+[uf+xs+"?",xs,nc,Ba,sf].join("|")+")",uc=RegExp(rs,"g"),tm=RegExp(xs,"g"),cc=RegExp(rc+"(?="+rc+")|"+ac+pf,"g"),rm=RegExp([Hi+"?"+of+"+"+sc+"(?="+[Lo,Hi,"$"].join("|")+")",Bo+"+"+ff+"(?="+[Lo,Hi+lf,"$"].join("|")+")",Hi+"?"+lf+"+"+sc,Hi+"+"+ff,hf,Ga,Io,oc].join("|"),"g"),nm=RegExp("["+cf+Po+ef+La+"]"),wn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,sm=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],im=-1,ot={};ot[jn]=ot[$n]=ot[_s]=ot[Hn]=ot[zn]=ot[Wn]=ot[Or]=ot[Vn]=ot[Xs]=!0,ot[Vt]=ot[Bt]=ot[wr]=ot[Y]=ot[Dr]=ot[te]=ot[Q]=ot[ue]=ot[H]=ot[we]=ot[se]=ot[ft]=ot[pt]=ot[_r]=ot[Gt]=!1;var tt={};tt[Vt]=tt[Bt]=tt[wr]=tt[Dr]=tt[Y]=tt[te]=tt[jn]=tt[$n]=tt[_s]=tt[Hn]=tt[zn]=tt[H]=tt[we]=tt[se]=tt[ft]=tt[pt]=tt[_r]=tt[mn]=tt[Wn]=tt[Or]=tt[Vn]=tt[Xs]=!0,tt[Q]=tt[ue]=tt[Gt]=!1;var lc={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Go={"&":"&","<":"<",">":">",'"':""","'":"'"},ai={"&":"&","<":"<",">":">",""":'"',"'":"'"},om={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},df=parseFloat,am=parseInt,mf=typeof global=="object"&&global&&global.Object===Object&&global,gf=typeof self=="object"&&self&&self.Object===Object&&self,Ft=mf||gf||Function("return this")(),qa=typeof Su=="object"&&Su&&!Su.nodeType&&Su,As=qa&&typeof fl=="object"&&fl&&!fl.nodeType&&fl,fc=As&&As.exports===qa,Rs=fc&&mf.process,ir=function(){try{var B=As&&As.require&&As.require("util").types;return B||Rs&&Rs.binding&&Rs.binding("util")}catch{}}(),hc=ir&&ir.isArrayBuffer,bf=ir&&ir.isDate,qo=ir&&ir.isMap,yf=ir&&ir.isRegExp,_f=ir&&ir.isSet,pc=ir&&ir.isTypedArray;function vr(B,Z,K){switch(K.length){case 0:return B.call(Z);case 1:return B.call(Z,K[0]);case 2:return B.call(Z,K[0],K[1]);case 3:return B.call(Z,K[0],K[1],K[2])}return B.apply(Z,K)}function Ua(B,Z,K,fe){for(var Ee=-1,$e=B==null?0:B.length;++Ee<$e;){var wt=B[Ee];Z(fe,wt,K(wt),B)}return fe}function or(B,Z){for(var K=-1,fe=B==null?0:B.length;++K<fe&&Z(B[K],K,B)!==!1;);return B}function um(B,Z){for(var K=B==null?0:B.length;K--&&Z(B[K],K,B)!==!1;);return B}function wf(B,Z){for(var K=-1,fe=B==null?0:B.length;++K<fe;)if(!Z(B[K],K,B))return!1;return!0}function En(B,Z){for(var K=-1,fe=B==null?0:B.length,Ee=0,$e=[];++K<fe;){var wt=B[K];Z(wt,K,B)&&($e[Ee++]=wt)}return $e}function Uo(B,Z){var K=B==null?0:B.length;return!!K&&Cs(B,Z,0)>-1}function Wi(B,Z,K){for(var fe=-1,Ee=B==null?0:B.length;++fe<Ee;)if(K(Z,B[fe]))return!0;return!1}function st(B,Z){for(var K=-1,fe=B==null?0:B.length,Ee=Array(fe);++K<fe;)Ee[K]=Z(B[K],K,B);return Ee}function ar(B,Z){for(var K=-1,fe=Z.length,Ee=B.length;++K<fe;)B[Ee+K]=Z[K];return B}function ui(B,Z,K,fe){var Ee=-1,$e=B==null?0:B.length;for(fe&&$e&&(K=B[++Ee]);++Ee<$e;)K=Z(K,B[Ee],Ee,B);return K}function Na(B,Z,K,fe){var Ee=B==null?0:B.length;for(fe&&Ee&&(K=B[--Ee]);Ee--;)K=Z(K,B[Ee],Ee,B);return K}function Ma(B,Z){for(var K=-1,fe=B==null?0:B.length;++K<fe;)if(Z(B[K],K,B))return!0;return!1}var cm=bc("length");function dc(B){return B.split("")}function lm(B){return B.match(Ts)||[]}function mc(B,Z,K){var fe;return K(B,function(Ee,$e,wt){if(Z(Ee,$e,wt))return fe=$e,!1}),fe}function ci(B,Z,K,fe){for(var Ee=B.length,$e=K+(fe?1:-1);fe?$e--:++$e<Ee;)if(Z(B[$e],$e,B))return $e;return-1}function Cs(B,Z,K){return Z===Z?mm(B,Z,K):ci(B,gc,K)}function Ef(B,Z,K,fe){for(var Ee=K-1,$e=B.length;++Ee<$e;)if(fe(B[Ee],Z))return Ee;return-1}function gc(B){return B!==B}function vf(B,Z){var K=B==null?0:B.length;return K?_c(B,Z)/K:ge}function bc(B){return function(Z){return Z==null?t:Z[B]}}function No(B){return function(Z){return B==null?t:B[Z]}}function yc(B,Z,K,fe,Ee){return Ee(B,function($e,wt,We){K=fe?(fe=!1,$e):Z(K,$e,wt,We)}),K}function fm(B,Z){var K=B.length;for(B.sort(Z);K--;)B[K]=B[K].value;return B}function _c(B,Z){for(var K,fe=-1,Ee=B.length;++fe<Ee;){var $e=Z(B[fe]);$e!==t&&(K=K===t?$e:K+$e)}return K}function wc(B,Z){for(var K=-1,fe=Array(B);++K<B;)fe[K]=Z(K);return fe}function Sf(B,Z){return st(Z,function(K){return[K,B[K]]})}function li(B){return B&&B.slice(0,kf(B)+1).replace(Qn,"")}function qt(B){return function(Z){return B(Z)}}function fi(B,Z){return st(Z,function(K){return B[K]})}function Vi(B,Z){return B.has(Z)}function Mo(B,Z){for(var K=-1,fe=B.length;++K<fe&&Cs(Z,B[K],0)>-1;);return K}function Ki(B,Z){for(var K=B.length;K--&&Cs(Z,B[K],0)>-1;);return K}function ja(B,Z){for(var K=B.length,fe=0;K--;)B[K]===Z&&++fe;return fe}var Ds=No(lc),Ec=No(Go);function hm(B){return"\\"+om[B]}function Yi(B,Z){return B==null?t:B[Z]}function hi(B){return nm.test(B)}function pm(B){return wn.test(B)}function $a(B){for(var Z,K=[];!(Z=B.next()).done;)K.push(Z.value);return K}function vc(B){var Z=-1,K=Array(B.size);return B.forEach(function(fe,Ee){K[++Z]=[Ee,fe]}),K}function Tf(B,Z){return function(K){return B(Z(K))}}function Os(B,Z){for(var K=-1,fe=B.length,Ee=0,$e=[];++K<fe;){var wt=B[K];(wt===Z||wt===h)&&(B[K]=h,$e[Ee++]=K)}return $e}function Ha(B){var Z=-1,K=Array(B.size);return B.forEach(function(fe){K[++Z]=fe}),K}function dm(B){var Z=-1,K=Array(B.size);return B.forEach(function(fe){K[++Z]=[fe,fe]}),K}function mm(B,Z,K){for(var fe=K-1,Ee=B.length;++fe<Ee;)if(B[fe]===Z)return fe;return-1}function gm(B,Z,K){for(var fe=K+1;fe--;)if(B[fe]===Z)return fe;return fe}function Ji(B){return hi(B)?xf(B):cm(B)}function Jr(B){return hi(B)?ym(B):dc(B)}function kf(B){for(var Z=B.length;Z--&&Xn.test(B.charAt(Z)););return Z}var bm=No(ai);function xf(B){for(var Z=cc.lastIndex=0;cc.test(B);)++Z;return Z}function ym(B){return B.match(cc)||[]}function _m(B){return B.match(rm)||[]}var Ps=function B(Z){Z=Z==null?Ft:vn.defaults(Ft.Object(),Z,vn.pick(Ft,sm));var K=Z.Array,fe=Z.Date,Ee=Z.Error,$e=Z.Function,wt=Z.Math,We=Z.Object,za=Z.RegExp,Af=Z.String,Kt=Z.TypeError,jo=K.prototype,Rf=$e.prototype,pi=We.prototype,di=Z["__core-js_shared__"],$o=Rf.toString,Xe=pi.hasOwnProperty,wm=0,Cf=function(){var i=/[^.]+$/.exec(di&&di.keys&&di.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),Wa=pi.toString,Em=$o.call(We),Va=Ft._,vm=za("^"+$o.call(Xe).replace(Jn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ho=fc?Z.Buffer:t,Qr=Z.Symbol,mi=Z.Uint8Array,zo=Ho?Ho.allocUnsafe:t,Fs=Tf(We.getPrototypeOf,We),Wo=We.create,Df=pi.propertyIsEnumerable,Ka=jo.splice,Sc=Qr?Qr.isConcatSpreadable:t,Qi=Qr?Qr.iterator:t,gi=Qr?Qr.toStringTag:t,Vo=function(){try{var i=Xo(We,"defineProperty");return i({},"",{}),i}catch{}}(),Sm=Z.clearTimeout!==Ft.clearTimeout&&Z.clearTimeout,Tm=fe&&fe.now!==Ft.Date.now&&fe.now,km=Z.setTimeout!==Ft.setTimeout&&Z.setTimeout,Ya=wt.ceil,Ja=wt.floor,Xi=We.getOwnPropertySymbols,Of=Ho?Ho.isBuffer:t,c=Z.isFinite,p=jo.join,E=Tf(We.keys,We),A=wt.max,F=wt.min,ee=fe.now,ie=Z.parseInt,me=wt.random,Fe=jo.reverse,Ue=Xo(Z,"DataView"),je=Xo(Z,"Map"),ze=Xo(Z,"Promise"),at=Xo(Z,"Set"),Yt=Xo(Z,"WeakMap"),Sn=Xo(We,"create"),Xr=Yt&&new Yt,ur={},Jt=Zo(Ue),cr=Zo(je),Ir=Zo(ze),ns=Zo(at),Se=Zo(Yt),Be=Qr?Qr.prototype:t,Ze=Be?Be.valueOf:t,lr=Be?Be.toString:t;function T(i){if(Et(i)&&!Pe(i)&&!(i instanceof Ne)){if(i instanceof Qt)return i;if(Xe.call(i,"__wrapped__"))return a1(i)}return new Qt(i)}var Zr=function(){function i(){}return function(a){if(!bt(a))return{};if(Wo)return Wo(a);i.prototype=a;var l=new i;return i.prototype=t,l}}();function ss(){}function Qt(i,a){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=t}T.templateSettings={escape:Er,evaluate:yn,interpolate:Pr,variable:"",imports:{_:T}},T.prototype=ss.prototype,T.prototype.constructor=T,Qt.prototype=Zr(ss.prototype),Qt.prototype.constructor=Qt;function Ne(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ye,this.__views__=[]}function Tc(){var i=new Ne(this.__wrapped__);return i.__actions__=Br(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Br(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Br(this.__views__),i}function r6(){if(this.__filtered__){var i=new Ne(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function n6(){var i=this.__wrapped__.value(),a=this.__dir__,l=Pe(i),m=a<0,_=l?i.length:0,k=mI(0,_,this.__views__),C=k.start,O=k.end,U=O-C,re=m?O:C-1,ne=this.__iteratees__,oe=ne.length,pe=0,be=F(U,this.__takeCount__);if(!l||!m&&_==U&&be==U)return DE(i,this.__actions__);var ke=[];e:for(;U--&&pe<be;){re+=a;for(var qe=-1,xe=i[re];++qe<oe;){var He=ne[qe],Ve=He.iteratee,rn=He.type,kr=Ve(xe);if(rn==ae)xe=kr;else if(!kr){if(rn==de)continue e;break e}}ke[pe++]=xe}return ke}Ne.prototype=Zr(ss.prototype),Ne.prototype.constructor=Ne;function Ko(i){var a=-1,l=i==null?0:i.length;for(this.clear();++a<l;){var m=i[a];this.set(m[0],m[1])}}function s6(){this.__data__=Sn?Sn(null):{},this.size=0}function i6(i){var a=this.has(i)&&delete this.__data__[i];return this.size-=a?1:0,a}function o6(i){var a=this.__data__;if(Sn){var l=a[i];return l===u?t:l}return Xe.call(a,i)?a[i]:t}function a6(i){var a=this.__data__;return Sn?a[i]!==t:Xe.call(a,i)}function u6(i,a){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=Sn&&a===t?u:a,this}Ko.prototype.clear=s6,Ko.prototype.delete=i6,Ko.prototype.get=o6,Ko.prototype.has=a6,Ko.prototype.set=u6;function bi(i){var a=-1,l=i==null?0:i.length;for(this.clear();++a<l;){var m=i[a];this.set(m[0],m[1])}}function c6(){this.__data__=[],this.size=0}function l6(i){var a=this.__data__,l=Pf(a,i);if(l<0)return!1;var m=a.length-1;return l==m?a.pop():Ka.call(a,l,1),--this.size,!0}function f6(i){var a=this.__data__,l=Pf(a,i);return l<0?t:a[l][1]}function h6(i){return Pf(this.__data__,i)>-1}function p6(i,a){var l=this.__data__,m=Pf(l,i);return m<0?(++this.size,l.push([i,a])):l[m][1]=a,this}bi.prototype.clear=c6,bi.prototype.delete=l6,bi.prototype.get=f6,bi.prototype.has=h6,bi.prototype.set=p6;function yi(i){var a=-1,l=i==null?0:i.length;for(this.clear();++a<l;){var m=i[a];this.set(m[0],m[1])}}function d6(){this.size=0,this.__data__={hash:new Ko,map:new(je||bi),string:new Ko}}function m6(i){var a=Hf(this,i).delete(i);return this.size-=a?1:0,a}function g6(i){return Hf(this,i).get(i)}function b6(i){return Hf(this,i).has(i)}function y6(i,a){var l=Hf(this,i),m=l.size;return l.set(i,a),this.size+=l.size==m?0:1,this}yi.prototype.clear=d6,yi.prototype.delete=m6,yi.prototype.get=g6,yi.prototype.has=b6,yi.prototype.set=y6;function Yo(i){var a=-1,l=i==null?0:i.length;for(this.__data__=new yi;++a<l;)this.add(i[a])}function _6(i){return this.__data__.set(i,u),this}function w6(i){return this.__data__.has(i)}Yo.prototype.add=Yo.prototype.push=_6,Yo.prototype.has=w6;function is(i){var a=this.__data__=new bi(i);this.size=a.size}function E6(){this.__data__=new bi,this.size=0}function v6(i){var a=this.__data__,l=a.delete(i);return this.size=a.size,l}function S6(i){return this.__data__.get(i)}function T6(i){return this.__data__.has(i)}function k6(i,a){var l=this.__data__;if(l instanceof bi){var m=l.__data__;if(!je||m.length<r-1)return m.push([i,a]),this.size=++l.size,this;l=this.__data__=new yi(m)}return l.set(i,a),this.size=l.size,this}is.prototype.clear=E6,is.prototype.delete=v6,is.prototype.get=S6,is.prototype.has=T6,is.prototype.set=k6;function aE(i,a){var l=Pe(i),m=!l&&ea(i),_=!l&&!m&&no(i),k=!l&&!m&&!_&&eu(i),C=l||m||_||k,O=C?wc(i.length,Af):[],U=O.length;for(var re in i)(a||Xe.call(i,re))&&!(C&&(re=="length"||_&&(re=="offset"||re=="parent")||k&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||vi(re,U)))&&O.push(re);return O}function uE(i){var a=i.length;return a?i[Bm(0,a-1)]:t}function x6(i,a){return zf(Br(i),Jo(a,0,i.length))}function A6(i){return zf(Br(i))}function xm(i,a,l){(l!==t&&!os(i[a],l)||l===t&&!(a in i))&&_i(i,a,l)}function kc(i,a,l){var m=i[a];(!(Xe.call(i,a)&&os(m,l))||l===t&&!(a in i))&&_i(i,a,l)}function Pf(i,a){for(var l=i.length;l--;)if(os(i[l][0],a))return l;return-1}function R6(i,a,l,m){return Zi(i,function(_,k,C){a(m,_,l(_),C)}),m}function cE(i,a){return i&&Is(a,Ut(a),i)}function C6(i,a){return i&&Is(a,qr(a),i)}function _i(i,a,l){a=="__proto__"&&Vo?Vo(i,a,{configurable:!0,enumerable:!0,value:l,writable:!0}):i[a]=l}function Am(i,a){for(var l=-1,m=a.length,_=K(m),k=i==null;++l<m;)_[l]=k?t:ag(i,a[l]);return _}function Jo(i,a,l){return i===i&&(l!==t&&(i=i<=l?i:l),a!==t&&(i=i>=a?i:a)),i}function Tn(i,a,l,m,_,k){var C,O=a&g,U=a&d,re=a&y;if(l&&(C=_?l(i,m,_,k):l(i)),C!==t)return C;if(!bt(i))return i;var ne=Pe(i);if(ne){if(C=bI(i),!O)return Br(i,C)}else{var oe=fr(i),pe=oe==ue||oe==J;if(no(i))return FE(i,O);if(oe==se||oe==Vt||pe&&!_){if(C=U||pe?{}:XE(i),!O)return U?oI(i,C6(C,i)):iI(i,cE(C,i))}else{if(!tt[oe])return _?i:{};C=yI(i,oe,O)}}k||(k=new is);var be=k.get(i);if(be)return be;k.set(i,C),A1(i)?i.forEach(function(xe){C.add(Tn(xe,a,l,xe,i,k))}):k1(i)&&i.forEach(function(xe,He){C.set(He,Tn(xe,a,l,He,i,k))});var ke=re?U?Vm:Wm:U?qr:Ut,qe=ne?t:ke(i);return or(qe||i,function(xe,He){qe&&(He=xe,xe=i[He]),kc(C,He,Tn(xe,a,l,He,i,k))}),C}function D6(i){var a=Ut(i);return function(l){return lE(l,i,a)}}function lE(i,a,l){var m=l.length;if(i==null)return!m;for(i=We(i);m--;){var _=l[m],k=a[_],C=i[_];if(C===t&&!(_ in i)||!k(C))return!1}return!0}function fE(i,a,l){if(typeof i!="function")throw new Kt(s);return Pc(function(){i.apply(t,l)},a)}function xc(i,a,l,m){var _=-1,k=Uo,C=!0,O=i.length,U=[],re=a.length;if(!O)return U;l&&(a=st(a,qt(l))),m?(k=Wi,C=!1):a.length>=r&&(k=Vi,C=!1,a=new Yo(a));e:for(;++_<O;){var ne=i[_],oe=l==null?ne:l(ne);if(ne=m||ne!==0?ne:0,C&&oe===oe){for(var pe=re;pe--;)if(a[pe]===oe)continue e;U.push(ne)}else k(a,oe,m)||U.push(ne)}return U}var Zi=qE(Ls),hE=qE(Cm,!0);function O6(i,a){var l=!0;return Zi(i,function(m,_,k){return l=!!a(m,_,k),l}),l}function Ff(i,a,l){for(var m=-1,_=i.length;++m<_;){var k=i[m],C=a(k);if(C!=null&&(O===t?C===C&&!tn(C):l(C,O)))var O=C,U=k}return U}function P6(i,a,l,m){var _=i.length;for(l=Ge(l),l<0&&(l=-l>_?0:_+l),m=m===t||m>_?_:Ge(m),m<0&&(m+=_),m=l>m?0:C1(m);l<m;)i[l++]=a;return i}function pE(i,a){var l=[];return Zi(i,function(m,_,k){a(m,_,k)&&l.push(m)}),l}function Xt(i,a,l,m,_){var k=-1,C=i.length;for(l||(l=wI),_||(_=[]);++k<C;){var O=i[k];a>0&&l(O)?a>1?Xt(O,a-1,l,m,_):ar(_,O):m||(_[_.length]=O)}return _}var Rm=UE(),dE=UE(!0);function Ls(i,a){return i&&Rm(i,a,Ut)}function Cm(i,a){return i&&dE(i,a,Ut)}function Lf(i,a){return En(a,function(l){return Si(i[l])})}function Qo(i,a){a=to(a,i);for(var l=0,m=a.length;i!=null&&l<m;)i=i[Bs(a[l++])];return l&&l==m?i:t}function mE(i,a,l){var m=a(i);return Pe(i)?m:ar(m,l(i))}function Sr(i){return i==null?i===t?gn:V:gi&&gi in We(i)?dI(i):AI(i)}function Dm(i,a){return i>a}function F6(i,a){return i!=null&&Xe.call(i,a)}function L6(i,a){return i!=null&&a in We(i)}function I6(i,a,l){return i>=F(a,l)&&i<A(a,l)}function Om(i,a,l){for(var m=l?Wi:Uo,_=i[0].length,k=i.length,C=k,O=K(k),U=1/0,re=[];C--;){var ne=i[C];C&&a&&(ne=st(ne,qt(a))),U=F(ne.length,U),O[C]=!l&&(a||_>=120&&ne.length>=120)?new Yo(C&&ne):t}ne=i[0];var oe=-1,pe=O[0];e:for(;++oe<_&&re.length<U;){var be=ne[oe],ke=a?a(be):be;if(be=l||be!==0?be:0,!(pe?Vi(pe,ke):m(re,ke,l))){for(C=k;--C;){var qe=O[C];if(!(qe?Vi(qe,ke):m(i[C],ke,l)))continue e}pe&&pe.push(ke),re.push(be)}}return re}function B6(i,a,l,m){return Ls(i,function(_,k,C){a(m,l(_),k,C)}),m}function Ac(i,a,l){a=to(a,i),i=r1(i,a);var m=i==null?i:i[Bs(xn(a))];return m==null?t:vr(m,i,l)}function gE(i){return Et(i)&&Sr(i)==Vt}function G6(i){return Et(i)&&Sr(i)==wr}function q6(i){return Et(i)&&Sr(i)==te}function Rc(i,a,l,m,_){return i===a?!0:i==null||a==null||!Et(i)&&!Et(a)?i!==i&&a!==a:U6(i,a,l,m,Rc,_)}function U6(i,a,l,m,_,k){var C=Pe(i),O=Pe(a),U=C?Bt:fr(i),re=O?Bt:fr(a);U=U==Vt?se:U,re=re==Vt?se:re;var ne=U==se,oe=re==se,pe=U==re;if(pe&&no(i)){if(!no(a))return!1;C=!0,ne=!1}if(pe&&!ne)return k||(k=new is),C||eu(i)?YE(i,a,l,m,_,k):hI(i,a,U,l,m,_,k);if(!(l&v)){var be=ne&&Xe.call(i,"__wrapped__"),ke=oe&&Xe.call(a,"__wrapped__");if(be||ke){var qe=be?i.value():i,xe=ke?a.value():a;return k||(k=new is),_(qe,xe,l,m,k)}}return pe?(k||(k=new is),pI(i,a,l,m,_,k)):!1}function N6(i){return Et(i)&&fr(i)==H}function Pm(i,a,l,m){var _=l.length,k=_,C=!m;if(i==null)return!k;for(i=We(i);_--;){var O=l[_];if(C&&O[2]?O[1]!==i[O[0]]:!(O[0]in i))return!1}for(;++_<k;){O=l[_];var U=O[0],re=i[U],ne=O[1];if(C&&O[2]){if(re===t&&!(U in i))return!1}else{var oe=new is;if(m)var pe=m(re,ne,U,i,a,oe);if(!(pe===t?Rc(ne,re,v|b,m,oe):pe))return!1}}return!0}function bE(i){if(!bt(i)||vI(i))return!1;var a=Si(i)?vm:ji;return a.test(Zo(i))}function M6(i){return Et(i)&&Sr(i)==ft}function j6(i){return Et(i)&&fr(i)==pt}function $6(i){return Et(i)&&Qf(i.length)&&!!ot[Sr(i)]}function yE(i){return typeof i=="function"?i:i==null?Ur:typeof i=="object"?Pe(i)?EE(i[0],i[1]):wE(i):N1(i)}function Fm(i){if(!Oc(i))return E(i);var a=[];for(var l in We(i))Xe.call(i,l)&&l!="constructor"&&a.push(l);return a}function H6(i){if(!bt(i))return xI(i);var a=Oc(i),l=[];for(var m in i)m=="constructor"&&(a||!Xe.call(i,m))||l.push(m);return l}function Lm(i,a){return i<a}function _E(i,a){var l=-1,m=Gr(i)?K(i.length):[];return Zi(i,function(_,k,C){m[++l]=a(_,k,C)}),m}function wE(i){var a=Ym(i);return a.length==1&&a[0][2]?e1(a[0][0],a[0][1]):function(l){return l===i||Pm(l,i,a)}}function EE(i,a){return Qm(i)&&ZE(a)?e1(Bs(i),a):function(l){var m=ag(l,i);return m===t&&m===a?ug(l,i):Rc(a,m,v|b)}}function If(i,a,l,m,_){i!==a&&Rm(a,function(k,C){if(_||(_=new is),bt(k))z6(i,a,C,l,If,m,_);else{var O=m?m(Zm(i,C),k,C+"",i,a,_):t;O===t&&(O=k),xm(i,C,O)}},qr)}function z6(i,a,l,m,_,k,C){var O=Zm(i,l),U=Zm(a,l),re=C.get(U);if(re){xm(i,l,re);return}var ne=k?k(O,U,l+"",i,a,C):t,oe=ne===t;if(oe){var pe=Pe(U),be=!pe&&no(U),ke=!pe&&!be&&eu(U);ne=U,pe||be||ke?Pe(O)?ne=O:xt(O)?ne=Br(O):be?(oe=!1,ne=FE(U,!0)):ke?(oe=!1,ne=LE(U,!0)):ne=[]:Fc(U)||ea(U)?(ne=O,ea(O)?ne=D1(O):(!bt(O)||Si(O))&&(ne=XE(U))):oe=!1}oe&&(C.set(U,ne),_(ne,U,m,k,C),C.delete(U)),xm(i,l,ne)}function vE(i,a){var l=i.length;if(!!l)return a+=a<0?l:0,vi(a,l)?i[a]:t}function SE(i,a,l){a.length?a=st(a,function(k){return Pe(k)?function(C){return Qo(C,k.length===1?k[0]:k)}:k}):a=[Ur];var m=-1;a=st(a,qt(Te()));var _=_E(i,function(k,C,O){var U=st(a,function(re){return re(k)});return{criteria:U,index:++m,value:k}});return fm(_,function(k,C){return sI(k,C,l)})}function W6(i,a){return TE(i,a,function(l,m){return ug(i,m)})}function TE(i,a,l){for(var m=-1,_=a.length,k={};++m<_;){var C=a[m],O=Qo(i,C);l(O,C)&&Cc(k,to(C,i),O)}return k}function V6(i){return function(a){return Qo(a,i)}}function Im(i,a,l,m){var _=m?Ef:Cs,k=-1,C=a.length,O=i;for(i===a&&(a=Br(a)),l&&(O=st(i,qt(l)));++k<C;)for(var U=0,re=a[k],ne=l?l(re):re;(U=_(O,ne,U,m))>-1;)O!==i&&Ka.call(O,U,1),Ka.call(i,U,1);return i}function kE(i,a){for(var l=i?a.length:0,m=l-1;l--;){var _=a[l];if(l==m||_!==k){var k=_;vi(_)?Ka.call(i,_,1):Um(i,_)}}return i}function Bm(i,a){return i+Ja(me()*(a-i+1))}function K6(i,a,l,m){for(var _=-1,k=A(Ya((a-i)/(l||1)),0),C=K(k);k--;)C[m?k:++_]=i,i+=l;return C}function Gm(i,a){var l="";if(!i||a<1||a>$)return l;do a%2&&(l+=i),a=Ja(a/2),a&&(i+=i);while(a);return l}function Me(i,a){return eg(t1(i,a,Ur),i+"")}function Y6(i){return uE(tu(i))}function J6(i,a){var l=tu(i);return zf(l,Jo(a,0,l.length))}function Cc(i,a,l,m){if(!bt(i))return i;a=to(a,i);for(var _=-1,k=a.length,C=k-1,O=i;O!=null&&++_<k;){var U=Bs(a[_]),re=l;if(U==="__proto__"||U==="constructor"||U==="prototype")return i;if(_!=C){var ne=O[U];re=m?m(ne,U,O):t,re===t&&(re=bt(ne)?ne:vi(a[_+1])?[]:{})}kc(O,U,re),O=O[U]}return i}var xE=Xr?function(i,a){return Xr.set(i,a),i}:Ur,Q6=Vo?function(i,a){return Vo(i,"toString",{configurable:!0,enumerable:!1,value:lg(a),writable:!0})}:Ur;function X6(i){return zf(tu(i))}function kn(i,a,l){var m=-1,_=i.length;a<0&&(a=-a>_?0:_+a),l=l>_?_:l,l<0&&(l+=_),_=a>l?0:l-a>>>0,a>>>=0;for(var k=K(_);++m<_;)k[m]=i[m+a];return k}function Z6(i,a){var l;return Zi(i,function(m,_,k){return l=a(m,_,k),!l}),!!l}function Bf(i,a,l){var m=0,_=i==null?m:i.length;if(typeof a=="number"&&a===a&&_<=ht){for(;m<_;){var k=m+_>>>1,C=i[k];C!==null&&!tn(C)&&(l?C<=a:C<a)?m=k+1:_=k}return _}return qm(i,a,Ur,l)}function qm(i,a,l,m){var _=0,k=i==null?0:i.length;if(k===0)return 0;a=l(a);for(var C=a!==a,O=a===null,U=tn(a),re=a===t;_<k;){var ne=Ja((_+k)/2),oe=l(i[ne]),pe=oe!==t,be=oe===null,ke=oe===oe,qe=tn(oe);if(C)var xe=m||ke;else re?xe=ke&&(m||pe):O?xe=ke&&pe&&(m||!be):U?xe=ke&&pe&&!be&&(m||!qe):be||qe?xe=!1:xe=m?oe<=a:oe<a;xe?_=ne+1:k=ne}return F(k,_t)}function AE(i,a){for(var l=-1,m=i.length,_=0,k=[];++l<m;){var C=i[l],O=a?a(C):C;if(!l||!os(O,U)){var U=O;k[_++]=C===0?0:C}}return k}function RE(i){return typeof i=="number"?i:tn(i)?ge:+i}function en(i){if(typeof i=="string")return i;if(Pe(i))return st(i,en)+"";if(tn(i))return lr?lr.call(i):"";var a=i+"";return a=="0"&&1/i==-j?"-0":a}function eo(i,a,l){var m=-1,_=Uo,k=i.length,C=!0,O=[],U=O;if(l)C=!1,_=Wi;else if(k>=r){var re=a?null:lI(i);if(re)return Ha(re);C=!1,_=Vi,U=new Yo}else U=a?[]:O;e:for(;++m<k;){var ne=i[m],oe=a?a(ne):ne;if(ne=l||ne!==0?ne:0,C&&oe===oe){for(var pe=U.length;pe--;)if(U[pe]===oe)continue e;a&&U.push(oe),O.push(ne)}else _(U,oe,l)||(U!==O&&U.push(oe),O.push(ne))}return O}function Um(i,a){return a=to(a,i),i=r1(i,a),i==null||delete i[Bs(xn(a))]}function CE(i,a,l,m){return Cc(i,a,l(Qo(i,a)),m)}function Gf(i,a,l,m){for(var _=i.length,k=m?_:-1;(m?k--:++k<_)&&a(i[k],k,i););return l?kn(i,m?0:k,m?k+1:_):kn(i,m?k+1:0,m?_:k)}function DE(i,a){var l=i;return l instanceof Ne&&(l=l.value()),ui(a,function(m,_){return _.func.apply(_.thisArg,ar([m],_.args))},l)}function Nm(i,a,l){var m=i.length;if(m<2)return m?eo(i[0]):[];for(var _=-1,k=K(m);++_<m;)for(var C=i[_],O=-1;++O<m;)O!=_&&(k[_]=xc(k[_]||C,i[O],a,l));return eo(Xt(k,1),a,l)}function OE(i,a,l){for(var m=-1,_=i.length,k=a.length,C={};++m<_;){var O=m<k?a[m]:t;l(C,i[m],O)}return C}function Mm(i){return xt(i)?i:[]}function jm(i){return typeof i=="function"?i:Ur}function to(i,a){return Pe(i)?i:Qm(i,a)?[i]:o1(nt(i))}var eI=Me;function ro(i,a,l){var m=i.length;return l=l===t?m:l,!a&&l>=m?i:kn(i,a,l)}var PE=Sm||function(i){return Ft.clearTimeout(i)};function FE(i,a){if(a)return i.slice();var l=i.length,m=zo?zo(l):new i.constructor(l);return i.copy(m),m}function $m(i){var a=new i.constructor(i.byteLength);return new mi(a).set(new mi(i)),a}function tI(i,a){var l=a?$m(i.buffer):i.buffer;return new i.constructor(l,i.byteOffset,i.byteLength)}function rI(i){var a=new i.constructor(i.source,si.exec(i));return a.lastIndex=i.lastIndex,a}function nI(i){return Ze?We(Ze.call(i)):{}}function LE(i,a){var l=a?$m(i.buffer):i.buffer;return new i.constructor(l,i.byteOffset,i.length)}function IE(i,a){if(i!==a){var l=i!==t,m=i===null,_=i===i,k=tn(i),C=a!==t,O=a===null,U=a===a,re=tn(a);if(!O&&!re&&!k&&i>a||k&&C&&U&&!O&&!re||m&&C&&U||!l&&U||!_)return 1;if(!m&&!k&&!re&&i<a||re&&l&&_&&!m&&!k||O&&l&&_||!C&&_||!U)return-1}return 0}function sI(i,a,l){for(var m=-1,_=i.criteria,k=a.criteria,C=_.length,O=l.length;++m<C;){var U=IE(_[m],k[m]);if(U){if(m>=O)return U;var re=l[m];return U*(re=="desc"?-1:1)}}return i.index-a.index}function BE(i,a,l,m){for(var _=-1,k=i.length,C=l.length,O=-1,U=a.length,re=A(k-C,0),ne=K(U+re),oe=!m;++O<U;)ne[O]=a[O];for(;++_<C;)(oe||_<k)&&(ne[l[_]]=i[_]);for(;re--;)ne[O++]=i[_++];return ne}function GE(i,a,l,m){for(var _=-1,k=i.length,C=-1,O=l.length,U=-1,re=a.length,ne=A(k-O,0),oe=K(ne+re),pe=!m;++_<ne;)oe[_]=i[_];for(var be=_;++U<re;)oe[be+U]=a[U];for(;++C<O;)(pe||_<k)&&(oe[be+l[C]]=i[_++]);return oe}function Br(i,a){var l=-1,m=i.length;for(a||(a=K(m));++l<m;)a[l]=i[l];return a}function Is(i,a,l,m){var _=!l;l||(l={});for(var k=-1,C=a.length;++k<C;){var O=a[k],U=m?m(l[O],i[O],O,l,i):t;U===t&&(U=i[O]),_?_i(l,O,U):kc(l,O,U)}return l}function iI(i,a){return Is(i,Jm(i),a)}function oI(i,a){return Is(i,JE(i),a)}function qf(i,a){return function(l,m){var _=Pe(l)?Ua:R6,k=a?a():{};return _(l,i,Te(m,2),k)}}function Qa(i){return Me(function(a,l){var m=-1,_=l.length,k=_>1?l[_-1]:t,C=_>2?l[2]:t;for(k=i.length>3&&typeof k=="function"?(_--,k):t,C&&Tr(l[0],l[1],C)&&(k=_<3?t:k,_=1),a=We(a);++m<_;){var O=l[m];O&&i(a,O,m,k)}return a})}function qE(i,a){return function(l,m){if(l==null)return l;if(!Gr(l))return i(l,m);for(var _=l.length,k=a?_:-1,C=We(l);(a?k--:++k<_)&&m(C[k],k,C)!==!1;);return l}}function UE(i){return function(a,l,m){for(var _=-1,k=We(a),C=m(a),O=C.length;O--;){var U=C[i?O:++_];if(l(k[U],U,k)===!1)break}return a}}function aI(i,a,l){var m=a&w,_=Dc(i);function k(){var C=this&&this!==Ft&&this instanceof k?_:i;return C.apply(m?l:this,arguments)}return k}function NE(i){return function(a){a=nt(a);var l=hi(a)?Jr(a):t,m=l?l[0]:a.charAt(0),_=l?ro(l,1).join(""):a.slice(1);return m[i]()+_}}function Xa(i){return function(a){return ui(q1(G1(a).replace(uc,"")),i,"")}}function Dc(i){return function(){var a=arguments;switch(a.length){case 0:return new i;case 1:return new i(a[0]);case 2:return new i(a[0],a[1]);case 3:return new i(a[0],a[1],a[2]);case 4:return new i(a[0],a[1],a[2],a[3]);case 5:return new i(a[0],a[1],a[2],a[3],a[4]);case 6:return new i(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new i(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var l=Zr(i.prototype),m=i.apply(l,a);return bt(m)?m:l}}function uI(i,a,l){var m=Dc(i);function _(){for(var k=arguments.length,C=K(k),O=k,U=Za(_);O--;)C[O]=arguments[O];var re=k<3&&C[0]!==U&&C[k-1]!==U?[]:Os(C,U);if(k-=re.length,k<l)return zE(i,a,Uf,_.placeholder,t,C,re,t,t,l-k);var ne=this&&this!==Ft&&this instanceof _?m:i;return vr(ne,this,C)}return _}function ME(i){return function(a,l,m){var _=We(a);if(!Gr(a)){var k=Te(l,3);a=Ut(a),l=function(O){return k(_[O],O,_)}}var C=i(a,l,m);return C>-1?_[k?a[C]:C]:t}}function jE(i){return Ei(function(a){var l=a.length,m=l,_=Qt.prototype.thru;for(i&&a.reverse();m--;){var k=a[m];if(typeof k!="function")throw new Kt(s);if(_&&!C&&$f(k)=="wrapper")var C=new Qt([],!0)}for(m=C?m:l;++m<l;){k=a[m];var O=$f(k),U=O=="wrapper"?Km(k):t;U&&Xm(U[0])&&U[1]==(z|D|G|N)&&!U[4].length&&U[9]==1?C=C[$f(U[0])].apply(C,U[3]):C=k.length==1&&Xm(k)?C[O]():C.thru(k)}return function(){var re=arguments,ne=re[0];if(C&&re.length==1&&Pe(ne))return C.plant(ne).value();for(var oe=0,pe=l?a[oe].apply(this,re):ne;++oe<l;)pe=a[oe].call(this,pe);return pe}})}function Uf(i,a,l,m,_,k,C,O,U,re){var ne=a&z,oe=a&w,pe=a&R,be=a&(D|P),ke=a&L,qe=pe?t:Dc(i);function xe(){for(var He=arguments.length,Ve=K(He),rn=He;rn--;)Ve[rn]=arguments[rn];if(be)var kr=Za(xe),nn=ja(Ve,kr);if(m&&(Ve=BE(Ve,m,_,be)),k&&(Ve=GE(Ve,k,C,be)),He-=nn,be&&He<re){var At=Os(Ve,kr);return zE(i,a,Uf,xe.placeholder,l,Ve,At,O,U,re-He)}var as=oe?l:this,ki=pe?as[i]:i;return He=Ve.length,O?Ve=RI(Ve,O):ke&&He>1&&Ve.reverse(),ne&&U<He&&(Ve.length=U),this&&this!==Ft&&this instanceof xe&&(ki=qe||Dc(ki)),ki.apply(as,Ve)}return xe}function $E(i,a){return function(l,m){return B6(l,i,a(m),{})}}function Nf(i,a){return function(l,m){var _;if(l===t&&m===t)return a;if(l!==t&&(_=l),m!==t){if(_===t)return m;typeof l=="string"||typeof m=="string"?(l=en(l),m=en(m)):(l=RE(l),m=RE(m)),_=i(l,m)}return _}}function Hm(i){return Ei(function(a){return a=st(a,qt(Te())),Me(function(l){var m=this;return i(a,function(_){return vr(_,m,l)})})})}function Mf(i,a){a=a===t?" ":en(a);var l=a.length;if(l<2)return l?Gm(a,i):a;var m=Gm(a,Ya(i/Ji(a)));return hi(a)?ro(Jr(m),0,i).join(""):m.slice(0,i)}function cI(i,a,l,m){var _=a&w,k=Dc(i);function C(){for(var O=-1,U=arguments.length,re=-1,ne=m.length,oe=K(ne+U),pe=this&&this!==Ft&&this instanceof C?k:i;++re<ne;)oe[re]=m[re];for(;U--;)oe[re++]=arguments[++O];return vr(pe,_?l:this,oe)}return C}function HE(i){return function(a,l,m){return m&&typeof m!="number"&&Tr(a,l,m)&&(l=m=t),a=Ti(a),l===t?(l=a,a=0):l=Ti(l),m=m===t?a<l?1:-1:Ti(m),K6(a,l,m,i)}}function jf(i){return function(a,l){return typeof a=="string"&&typeof l=="string"||(a=An(a),l=An(l)),i(a,l)}}function zE(i,a,l,m,_,k,C,O,U,re){var ne=a&D,oe=ne?C:t,pe=ne?t:C,be=ne?k:t,ke=ne?t:k;a|=ne?G:q,a&=~(ne?q:G),a&I||(a&=~(w|R));var qe=[i,a,_,be,oe,ke,pe,O,U,re],xe=l.apply(t,qe);return Xm(i)&&n1(xe,qe),xe.placeholder=m,s1(xe,i,a)}function zm(i){var a=wt[i];return function(l,m){if(l=An(l),m=m==null?0:F(Ge(m),292),m&&c(l)){var _=(nt(l)+"e").split("e"),k=a(_[0]+"e"+(+_[1]+m));return _=(nt(k)+"e").split("e"),+(_[0]+"e"+(+_[1]-m))}return a(l)}}var lI=at&&1/Ha(new at([,-0]))[1]==j?function(i){return new at(i)}:pg;function WE(i){return function(a){var l=fr(a);return l==H?vc(a):l==pt?dm(a):Sf(a,i(a))}}function wi(i,a,l,m,_,k,C,O){var U=a&R;if(!U&&typeof i!="function")throw new Kt(s);var re=m?m.length:0;if(re||(a&=~(G|q),m=_=t),C=C===t?C:A(Ge(C),0),O=O===t?O:Ge(O),re-=_?_.length:0,a&q){var ne=m,oe=_;m=_=t}var pe=U?t:Km(i),be=[i,a,l,m,_,ne,oe,k,C,O];if(pe&&kI(be,pe),i=be[0],a=be[1],l=be[2],m=be[3],_=be[4],O=be[9]=be[9]===t?U?0:i.length:A(be[9]-re,0),!O&&a&(D|P)&&(a&=~(D|P)),!a||a==w)var ke=aI(i,a,l);else a==D||a==P?ke=uI(i,a,O):(a==G||a==(w|G))&&!_.length?ke=cI(i,a,l,m):ke=Uf.apply(t,be);var qe=pe?xE:n1;return s1(qe(ke,be),i,a)}function VE(i,a,l,m){return i===t||os(i,pi[l])&&!Xe.call(m,l)?a:i}function KE(i,a,l,m,_,k){return bt(i)&&bt(a)&&(k.set(a,i),If(i,a,t,KE,k),k.delete(a)),i}function fI(i){return Fc(i)?t:i}function YE(i,a,l,m,_,k){var C=l&v,O=i.length,U=a.length;if(O!=U&&!(C&&U>O))return!1;var re=k.get(i),ne=k.get(a);if(re&&ne)return re==a&&ne==i;var oe=-1,pe=!0,be=l&b?new Yo:t;for(k.set(i,a),k.set(a,i);++oe<O;){var ke=i[oe],qe=a[oe];if(m)var xe=C?m(qe,ke,oe,a,i,k):m(ke,qe,oe,i,a,k);if(xe!==t){if(xe)continue;pe=!1;break}if(be){if(!Ma(a,function(He,Ve){if(!Vi(be,Ve)&&(ke===He||_(ke,He,l,m,k)))return be.push(Ve)})){pe=!1;break}}else if(!(ke===qe||_(ke,qe,l,m,k))){pe=!1;break}}return k.delete(i),k.delete(a),pe}function hI(i,a,l,m,_,k,C){switch(l){case Dr:if(i.byteLength!=a.byteLength||i.byteOffset!=a.byteOffset)return!1;i=i.buffer,a=a.buffer;case wr:return!(i.byteLength!=a.byteLength||!k(new mi(i),new mi(a)));case Y:case te:case we:return os(+i,+a);case Q:return i.name==a.name&&i.message==a.message;case ft:case _r:return i==a+"";case H:var O=vc;case pt:var U=m&v;if(O||(O=Ha),i.size!=a.size&&!U)return!1;var re=C.get(i);if(re)return re==a;m|=b,C.set(i,a);var ne=YE(O(i),O(a),m,_,k,C);return C.delete(i),ne;case mn:if(Ze)return Ze.call(i)==Ze.call(a)}return!1}function pI(i,a,l,m,_,k){var C=l&v,O=Wm(i),U=O.length,re=Wm(a),ne=re.length;if(U!=ne&&!C)return!1;for(var oe=U;oe--;){var pe=O[oe];if(!(C?pe in a:Xe.call(a,pe)))return!1}var be=k.get(i),ke=k.get(a);if(be&&ke)return be==a&&ke==i;var qe=!0;k.set(i,a),k.set(a,i);for(var xe=C;++oe<U;){pe=O[oe];var He=i[pe],Ve=a[pe];if(m)var rn=C?m(Ve,He,pe,a,i,k):m(He,Ve,pe,i,a,k);if(!(rn===t?He===Ve||_(He,Ve,l,m,k):rn)){qe=!1;break}xe||(xe=pe=="constructor")}if(qe&&!xe){var kr=i.constructor,nn=a.constructor;kr!=nn&&"constructor"in i&&"constructor"in a&&!(typeof kr=="function"&&kr instanceof kr&&typeof nn=="function"&&nn instanceof nn)&&(qe=!1)}return k.delete(i),k.delete(a),qe}function Ei(i){return eg(t1(i,t,l1),i+"")}function Wm(i){return mE(i,Ut,Jm)}function Vm(i){return mE(i,qr,JE)}var Km=Xr?function(i){return Xr.get(i)}:pg;function $f(i){for(var a=i.name+"",l=ur[a],m=Xe.call(ur,a)?l.length:0;m--;){var _=l[m],k=_.func;if(k==null||k==i)return _.name}return a}function Za(i){var a=Xe.call(T,"placeholder")?T:i;return a.placeholder}function Te(){var i=T.iteratee||fg;return i=i===fg?yE:i,arguments.length?i(arguments[0],arguments[1]):i}function Hf(i,a){var l=i.__data__;return EI(a)?l[typeof a=="string"?"string":"hash"]:l.map}function Ym(i){for(var a=Ut(i),l=a.length;l--;){var m=a[l],_=i[m];a[l]=[m,_,ZE(_)]}return a}function Xo(i,a){var l=Yi(i,a);return bE(l)?l:t}function dI(i){var a=Xe.call(i,gi),l=i[gi];try{i[gi]=t;var m=!0}catch{}var _=Wa.call(i);return m&&(a?i[gi]=l:delete i[gi]),_}var Jm=Xi?function(i){return i==null?[]:(i=We(i),En(Xi(i),function(a){return Df.call(i,a)}))}:dg,JE=Xi?function(i){for(var a=[];i;)ar(a,Jm(i)),i=Fs(i);return a}:dg,fr=Sr;(Ue&&fr(new Ue(new ArrayBuffer(1)))!=Dr||je&&fr(new je)!=H||ze&&fr(ze.resolve())!=De||at&&fr(new at)!=pt||Yt&&fr(new Yt)!=Gt)&&(fr=function(i){var a=Sr(i),l=a==se?i.constructor:t,m=l?Zo(l):"";if(m)switch(m){case Jt:return Dr;case cr:return H;case Ir:return De;case ns:return pt;case Se:return Gt}return a});function mI(i,a,l){for(var m=-1,_=l.length;++m<_;){var k=l[m],C=k.size;switch(k.type){case"drop":i+=C;break;case"dropRight":a-=C;break;case"take":a=F(a,i+C);break;case"takeRight":i=A(i,a-C);break}}return{start:i,end:a}}function gI(i){var a=i.match(ti);return a?a[1].split(ri):[]}function QE(i,a,l){a=to(a,i);for(var m=-1,_=a.length,k=!1;++m<_;){var C=Bs(a[m]);if(!(k=i!=null&&l(i,C)))break;i=i[C]}return k||++m!=_?k:(_=i==null?0:i.length,!!_&&Qf(_)&&vi(C,_)&&(Pe(i)||ea(i)))}function bI(i){var a=i.length,l=new i.constructor(a);return a&&typeof i[0]=="string"&&Xe.call(i,"index")&&(l.index=i.index,l.input=i.input),l}function XE(i){return typeof i.constructor=="function"&&!Oc(i)?Zr(Fs(i)):{}}function yI(i,a,l){var m=i.constructor;switch(a){case wr:return $m(i);case Y:case te:return new m(+i);case Dr:return tI(i,l);case jn:case $n:case _s:case Hn:case zn:case Wn:case Or:case Vn:case Xs:return LE(i,l);case H:return new m;case we:case _r:return new m(i);case ft:return rI(i);case pt:return new m;case mn:return nI(i)}}function _I(i,a){var l=a.length;if(!l)return i;var m=l-1;return a[m]=(l>1?"& ":"")+a[m],a=a.join(l>2?", ":" "),i.replace(ei,`{
|
|
40
|
+
/* [wrapped with `+a+`] */
|
|
41
|
+
`)}function wI(i){return Pe(i)||ea(i)||!!(Sc&&i&&i[Sc])}function vi(i,a){var l=typeof i;return a=a??$,!!a&&(l=="number"||l!="symbol"&&_n.test(i))&&i>-1&&i%1==0&&i<a}function Tr(i,a,l){if(!bt(l))return!1;var m=typeof a;return(m=="number"?Gr(l)&&vi(a,l.length):m=="string"&&a in l)?os(l[a],i):!1}function Qm(i,a){if(Pe(i))return!1;var l=typeof i;return l=="number"||l=="symbol"||l=="boolean"||i==null||tn(i)?!0:vs.test(i)||!Fr.test(i)||a!=null&&i in We(a)}function EI(i){var a=typeof i;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?i!=="__proto__":i===null}function Xm(i){var a=$f(i),l=T[a];if(typeof l!="function"||!(a in Ne.prototype))return!1;if(i===l)return!0;var m=Km(l);return!!m&&i===m[0]}function vI(i){return!!Cf&&Cf in i}var SI=di?Si:mg;function Oc(i){var a=i&&i.constructor,l=typeof a=="function"&&a.prototype||pi;return i===l}function ZE(i){return i===i&&!bt(i)}function e1(i,a){return function(l){return l==null?!1:l[i]===a&&(a!==t||i in We(l))}}function TI(i){var a=Yf(i,function(m){return l.size===f&&l.clear(),m}),l=a.cache;return a}function kI(i,a){var l=i[1],m=a[1],_=l|m,k=_<(w|R|z),C=m==z&&l==D||m==z&&l==N&&i[7].length<=a[8]||m==(z|N)&&a[7].length<=a[8]&&l==D;if(!(k||C))return i;m&w&&(i[2]=a[2],_|=l&w?0:I);var O=a[3];if(O){var U=i[3];i[3]=U?BE(U,O,a[4]):O,i[4]=U?Os(i[3],h):a[4]}return O=a[5],O&&(U=i[5],i[5]=U?GE(U,O,a[6]):O,i[6]=U?Os(i[5],h):a[6]),O=a[7],O&&(i[7]=O),m&z&&(i[8]=i[8]==null?a[8]:F(i[8],a[8])),i[9]==null&&(i[9]=a[9]),i[0]=a[0],i[1]=_,i}function xI(i){var a=[];if(i!=null)for(var l in We(i))a.push(l);return a}function AI(i){return Wa.call(i)}function t1(i,a,l){return a=A(a===t?i.length-1:a,0),function(){for(var m=arguments,_=-1,k=A(m.length-a,0),C=K(k);++_<k;)C[_]=m[a+_];_=-1;for(var O=K(a+1);++_<a;)O[_]=m[_];return O[a]=l(C),vr(i,this,O)}}function r1(i,a){return a.length<2?i:Qo(i,kn(a,0,-1))}function RI(i,a){for(var l=i.length,m=F(a.length,l),_=Br(i);m--;){var k=a[m];i[m]=vi(k,l)?_[k]:t}return i}function Zm(i,a){if(!(a==="constructor"&&typeof i[a]=="function")&&a!="__proto__")return i[a]}var n1=i1(xE),Pc=km||function(i,a){return Ft.setTimeout(i,a)},eg=i1(Q6);function s1(i,a,l){var m=a+"";return eg(i,_I(m,CI(gI(m),l)))}function i1(i){var a=0,l=0;return function(){var m=ee(),_=M-(m-l);if(l=m,_>0){if(++a>=le)return arguments[0]}else a=0;return i.apply(t,arguments)}}function zf(i,a){var l=-1,m=i.length,_=m-1;for(a=a===t?m:a;++l<a;){var k=Bm(l,_),C=i[k];i[k]=i[l],i[l]=C}return i.length=a,i}var o1=TI(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(Lr,function(l,m,_,k){a.push(_?k.replace(Ni,"$1"):m||l)}),a});function Bs(i){if(typeof i=="string"||tn(i))return i;var a=i+"";return a=="0"&&1/i==-j?"-0":a}function Zo(i){if(i!=null){try{return $o.call(i)}catch{}try{return i+""}catch{}}return""}function CI(i,a){return or(Je,function(l){var m="_."+l[0];a&l[1]&&!Uo(i,m)&&i.push(m)}),i.sort()}function a1(i){if(i instanceof Ne)return i.clone();var a=new Qt(i.__wrapped__,i.__chain__);return a.__actions__=Br(i.__actions__),a.__index__=i.__index__,a.__values__=i.__values__,a}function DI(i,a,l){(l?Tr(i,a,l):a===t)?a=1:a=A(Ge(a),0);var m=i==null?0:i.length;if(!m||a<1)return[];for(var _=0,k=0,C=K(Ya(m/a));_<m;)C[k++]=kn(i,_,_+=a);return C}function OI(i){for(var a=-1,l=i==null?0:i.length,m=0,_=[];++a<l;){var k=i[a];k&&(_[m++]=k)}return _}function PI(){var i=arguments.length;if(!i)return[];for(var a=K(i-1),l=arguments[0],m=i;m--;)a[m-1]=arguments[m];return ar(Pe(l)?Br(l):[l],Xt(a,1))}var FI=Me(function(i,a){return xt(i)?xc(i,Xt(a,1,xt,!0)):[]}),LI=Me(function(i,a){var l=xn(a);return xt(l)&&(l=t),xt(i)?xc(i,Xt(a,1,xt,!0),Te(l,2)):[]}),II=Me(function(i,a){var l=xn(a);return xt(l)&&(l=t),xt(i)?xc(i,Xt(a,1,xt,!0),t,l):[]});function BI(i,a,l){var m=i==null?0:i.length;return m?(a=l||a===t?1:Ge(a),kn(i,a<0?0:a,m)):[]}function GI(i,a,l){var m=i==null?0:i.length;return m?(a=l||a===t?1:Ge(a),a=m-a,kn(i,0,a<0?0:a)):[]}function qI(i,a){return i&&i.length?Gf(i,Te(a,3),!0,!0):[]}function UI(i,a){return i&&i.length?Gf(i,Te(a,3),!0):[]}function NI(i,a,l,m){var _=i==null?0:i.length;return _?(l&&typeof l!="number"&&Tr(i,a,l)&&(l=0,m=_),P6(i,a,l,m)):[]}function u1(i,a,l){var m=i==null?0:i.length;if(!m)return-1;var _=l==null?0:Ge(l);return _<0&&(_=A(m+_,0)),ci(i,Te(a,3),_)}function c1(i,a,l){var m=i==null?0:i.length;if(!m)return-1;var _=m-1;return l!==t&&(_=Ge(l),_=l<0?A(m+_,0):F(_,m-1)),ci(i,Te(a,3),_,!0)}function l1(i){var a=i==null?0:i.length;return a?Xt(i,1):[]}function MI(i){var a=i==null?0:i.length;return a?Xt(i,j):[]}function jI(i,a){var l=i==null?0:i.length;return l?(a=a===t?1:Ge(a),Xt(i,a)):[]}function $I(i){for(var a=-1,l=i==null?0:i.length,m={};++a<l;){var _=i[a];m[_[0]]=_[1]}return m}function f1(i){return i&&i.length?i[0]:t}function HI(i,a,l){var m=i==null?0:i.length;if(!m)return-1;var _=l==null?0:Ge(l);return _<0&&(_=A(m+_,0)),Cs(i,a,_)}function zI(i){var a=i==null?0:i.length;return a?kn(i,0,-1):[]}var WI=Me(function(i){var a=st(i,Mm);return a.length&&a[0]===i[0]?Om(a):[]}),VI=Me(function(i){var a=xn(i),l=st(i,Mm);return a===xn(l)?a=t:l.pop(),l.length&&l[0]===i[0]?Om(l,Te(a,2)):[]}),KI=Me(function(i){var a=xn(i),l=st(i,Mm);return a=typeof a=="function"?a:t,a&&l.pop(),l.length&&l[0]===i[0]?Om(l,t,a):[]});function YI(i,a){return i==null?"":p.call(i,a)}function xn(i){var a=i==null?0:i.length;return a?i[a-1]:t}function JI(i,a,l){var m=i==null?0:i.length;if(!m)return-1;var _=m;return l!==t&&(_=Ge(l),_=_<0?A(m+_,0):F(_,m-1)),a===a?gm(i,a,_):ci(i,gc,_,!0)}function QI(i,a){return i&&i.length?vE(i,Ge(a)):t}var XI=Me(h1);function h1(i,a){return i&&i.length&&a&&a.length?Im(i,a):i}function ZI(i,a,l){return i&&i.length&&a&&a.length?Im(i,a,Te(l,2)):i}function eB(i,a,l){return i&&i.length&&a&&a.length?Im(i,a,t,l):i}var tB=Ei(function(i,a){var l=i==null?0:i.length,m=Am(i,a);return kE(i,st(a,function(_){return vi(_,l)?+_:_}).sort(IE)),m});function rB(i,a){var l=[];if(!(i&&i.length))return l;var m=-1,_=[],k=i.length;for(a=Te(a,3);++m<k;){var C=i[m];a(C,m,i)&&(l.push(C),_.push(m))}return kE(i,_),l}function tg(i){return i==null?i:Fe.call(i)}function nB(i,a,l){var m=i==null?0:i.length;return m?(l&&typeof l!="number"&&Tr(i,a,l)?(a=0,l=m):(a=a==null?0:Ge(a),l=l===t?m:Ge(l)),kn(i,a,l)):[]}function sB(i,a){return Bf(i,a)}function iB(i,a,l){return qm(i,a,Te(l,2))}function oB(i,a){var l=i==null?0:i.length;if(l){var m=Bf(i,a);if(m<l&&os(i[m],a))return m}return-1}function aB(i,a){return Bf(i,a,!0)}function uB(i,a,l){return qm(i,a,Te(l,2),!0)}function cB(i,a){var l=i==null?0:i.length;if(l){var m=Bf(i,a,!0)-1;if(os(i[m],a))return m}return-1}function lB(i){return i&&i.length?AE(i):[]}function fB(i,a){return i&&i.length?AE(i,Te(a,2)):[]}function hB(i){var a=i==null?0:i.length;return a?kn(i,1,a):[]}function pB(i,a,l){return i&&i.length?(a=l||a===t?1:Ge(a),kn(i,0,a<0?0:a)):[]}function dB(i,a,l){var m=i==null?0:i.length;return m?(a=l||a===t?1:Ge(a),a=m-a,kn(i,a<0?0:a,m)):[]}function mB(i,a){return i&&i.length?Gf(i,Te(a,3),!1,!0):[]}function gB(i,a){return i&&i.length?Gf(i,Te(a,3)):[]}var bB=Me(function(i){return eo(Xt(i,1,xt,!0))}),yB=Me(function(i){var a=xn(i);return xt(a)&&(a=t),eo(Xt(i,1,xt,!0),Te(a,2))}),_B=Me(function(i){var a=xn(i);return a=typeof a=="function"?a:t,eo(Xt(i,1,xt,!0),t,a)});function wB(i){return i&&i.length?eo(i):[]}function EB(i,a){return i&&i.length?eo(i,Te(a,2)):[]}function vB(i,a){return a=typeof a=="function"?a:t,i&&i.length?eo(i,t,a):[]}function rg(i){if(!(i&&i.length))return[];var a=0;return i=En(i,function(l){if(xt(l))return a=A(l.length,a),!0}),wc(a,function(l){return st(i,bc(l))})}function p1(i,a){if(!(i&&i.length))return[];var l=rg(i);return a==null?l:st(l,function(m){return vr(a,t,m)})}var SB=Me(function(i,a){return xt(i)?xc(i,a):[]}),TB=Me(function(i){return Nm(En(i,xt))}),kB=Me(function(i){var a=xn(i);return xt(a)&&(a=t),Nm(En(i,xt),Te(a,2))}),xB=Me(function(i){var a=xn(i);return a=typeof a=="function"?a:t,Nm(En(i,xt),t,a)}),AB=Me(rg);function RB(i,a){return OE(i||[],a||[],kc)}function CB(i,a){return OE(i||[],a||[],Cc)}var DB=Me(function(i){var a=i.length,l=a>1?i[a-1]:t;return l=typeof l=="function"?(i.pop(),l):t,p1(i,l)});function d1(i){var a=T(i);return a.__chain__=!0,a}function OB(i,a){return a(i),i}function Wf(i,a){return a(i)}var PB=Ei(function(i){var a=i.length,l=a?i[0]:0,m=this.__wrapped__,_=function(k){return Am(k,i)};return a>1||this.__actions__.length||!(m instanceof Ne)||!vi(l)?this.thru(_):(m=m.slice(l,+l+(a?1:0)),m.__actions__.push({func:Wf,args:[_],thisArg:t}),new Qt(m,this.__chain__).thru(function(k){return a&&!k.length&&k.push(t),k}))});function FB(){return d1(this)}function LB(){return new Qt(this.value(),this.__chain__)}function IB(){this.__values__===t&&(this.__values__=R1(this.value()));var i=this.__index__>=this.__values__.length,a=i?t:this.__values__[this.__index__++];return{done:i,value:a}}function BB(){return this}function GB(i){for(var a,l=this;l instanceof ss;){var m=a1(l);m.__index__=0,m.__values__=t,a?_.__wrapped__=m:a=m;var _=m;l=l.__wrapped__}return _.__wrapped__=i,a}function qB(){var i=this.__wrapped__;if(i instanceof Ne){var a=i;return this.__actions__.length&&(a=new Ne(this)),a=a.reverse(),a.__actions__.push({func:Wf,args:[tg],thisArg:t}),new Qt(a,this.__chain__)}return this.thru(tg)}function UB(){return DE(this.__wrapped__,this.__actions__)}var NB=qf(function(i,a,l){Xe.call(i,l)?++i[l]:_i(i,l,1)});function MB(i,a,l){var m=Pe(i)?wf:O6;return l&&Tr(i,a,l)&&(a=t),m(i,Te(a,3))}function jB(i,a){var l=Pe(i)?En:pE;return l(i,Te(a,3))}var $B=ME(u1),HB=ME(c1);function zB(i,a){return Xt(Vf(i,a),1)}function WB(i,a){return Xt(Vf(i,a),j)}function VB(i,a,l){return l=l===t?1:Ge(l),Xt(Vf(i,a),l)}function m1(i,a){var l=Pe(i)?or:Zi;return l(i,Te(a,3))}function g1(i,a){var l=Pe(i)?um:hE;return l(i,Te(a,3))}var KB=qf(function(i,a,l){Xe.call(i,l)?i[l].push(a):_i(i,l,[a])});function YB(i,a,l,m){i=Gr(i)?i:tu(i),l=l&&!m?Ge(l):0;var _=i.length;return l<0&&(l=A(_+l,0)),Xf(i)?l<=_&&i.indexOf(a,l)>-1:!!_&&Cs(i,a,l)>-1}var JB=Me(function(i,a,l){var m=-1,_=typeof a=="function",k=Gr(i)?K(i.length):[];return Zi(i,function(C){k[++m]=_?vr(a,C,l):Ac(C,a,l)}),k}),QB=qf(function(i,a,l){_i(i,l,a)});function Vf(i,a){var l=Pe(i)?st:_E;return l(i,Te(a,3))}function XB(i,a,l,m){return i==null?[]:(Pe(a)||(a=a==null?[]:[a]),l=m?t:l,Pe(l)||(l=l==null?[]:[l]),SE(i,a,l))}var ZB=qf(function(i,a,l){i[l?0:1].push(a)},function(){return[[],[]]});function e5(i,a,l){var m=Pe(i)?ui:yc,_=arguments.length<3;return m(i,Te(a,4),l,_,Zi)}function t5(i,a,l){var m=Pe(i)?Na:yc,_=arguments.length<3;return m(i,Te(a,4),l,_,hE)}function r5(i,a){var l=Pe(i)?En:pE;return l(i,Jf(Te(a,3)))}function n5(i){var a=Pe(i)?uE:Y6;return a(i)}function s5(i,a,l){(l?Tr(i,a,l):a===t)?a=1:a=Ge(a);var m=Pe(i)?x6:J6;return m(i,a)}function i5(i){var a=Pe(i)?A6:X6;return a(i)}function o5(i){if(i==null)return 0;if(Gr(i))return Xf(i)?Ji(i):i.length;var a=fr(i);return a==H||a==pt?i.size:Fm(i).length}function a5(i,a,l){var m=Pe(i)?Ma:Z6;return l&&Tr(i,a,l)&&(a=t),m(i,Te(a,3))}var u5=Me(function(i,a){if(i==null)return[];var l=a.length;return l>1&&Tr(i,a[0],a[1])?a=[]:l>2&&Tr(a[0],a[1],a[2])&&(a=[a[0]]),SE(i,Xt(a,1),[])}),Kf=Tm||function(){return Ft.Date.now()};function c5(i,a){if(typeof a!="function")throw new Kt(s);return i=Ge(i),function(){if(--i<1)return a.apply(this,arguments)}}function b1(i,a,l){return a=l?t:a,a=i&&a==null?i.length:a,wi(i,z,t,t,t,t,a)}function y1(i,a){var l;if(typeof a!="function")throw new Kt(s);return i=Ge(i),function(){return--i>0&&(l=a.apply(this,arguments)),i<=1&&(a=t),l}}var ng=Me(function(i,a,l){var m=w;if(l.length){var _=Os(l,Za(ng));m|=G}return wi(i,m,a,l,_)}),_1=Me(function(i,a,l){var m=w|R;if(l.length){var _=Os(l,Za(_1));m|=G}return wi(a,m,i,l,_)});function w1(i,a,l){a=l?t:a;var m=wi(i,D,t,t,t,t,t,a);return m.placeholder=w1.placeholder,m}function E1(i,a,l){a=l?t:a;var m=wi(i,P,t,t,t,t,t,a);return m.placeholder=E1.placeholder,m}function v1(i,a,l){var m,_,k,C,O,U,re=0,ne=!1,oe=!1,pe=!0;if(typeof i!="function")throw new Kt(s);a=An(a)||0,bt(l)&&(ne=!!l.leading,oe="maxWait"in l,k=oe?A(An(l.maxWait)||0,a):k,pe="trailing"in l?!!l.trailing:pe);function be(At){var as=m,ki=_;return m=_=t,re=At,C=i.apply(ki,as),C}function ke(At){return re=At,O=Pc(He,a),ne?be(At):C}function qe(At){var as=At-U,ki=At-re,M1=a-as;return oe?F(M1,k-ki):M1}function xe(At){var as=At-U,ki=At-re;return U===t||as>=a||as<0||oe&&ki>=k}function He(){var At=Kf();if(xe(At))return Ve(At);O=Pc(He,qe(At))}function Ve(At){return O=t,pe&&m?be(At):(m=_=t,C)}function rn(){O!==t&&PE(O),re=0,m=U=_=O=t}function kr(){return O===t?C:Ve(Kf())}function nn(){var At=Kf(),as=xe(At);if(m=arguments,_=this,U=At,as){if(O===t)return ke(U);if(oe)return PE(O),O=Pc(He,a),be(U)}return O===t&&(O=Pc(He,a)),C}return nn.cancel=rn,nn.flush=kr,nn}var l5=Me(function(i,a){return fE(i,1,a)}),f5=Me(function(i,a,l){return fE(i,An(a)||0,l)});function h5(i){return wi(i,L)}function Yf(i,a){if(typeof i!="function"||a!=null&&typeof a!="function")throw new Kt(s);var l=function(){var m=arguments,_=a?a.apply(this,m):m[0],k=l.cache;if(k.has(_))return k.get(_);var C=i.apply(this,m);return l.cache=k.set(_,C)||k,C};return l.cache=new(Yf.Cache||yi),l}Yf.Cache=yi;function Jf(i){if(typeof i!="function")throw new Kt(s);return function(){var a=arguments;switch(a.length){case 0:return!i.call(this);case 1:return!i.call(this,a[0]);case 2:return!i.call(this,a[0],a[1]);case 3:return!i.call(this,a[0],a[1],a[2])}return!i.apply(this,a)}}function p5(i){return y1(2,i)}var d5=eI(function(i,a){a=a.length==1&&Pe(a[0])?st(a[0],qt(Te())):st(Xt(a,1),qt(Te()));var l=a.length;return Me(function(m){for(var _=-1,k=F(m.length,l);++_<k;)m[_]=a[_].call(this,m[_]);return vr(i,this,m)})}),sg=Me(function(i,a){var l=Os(a,Za(sg));return wi(i,G,t,a,l)}),S1=Me(function(i,a){var l=Os(a,Za(S1));return wi(i,q,t,a,l)}),m5=Ei(function(i,a){return wi(i,N,t,t,t,a)});function g5(i,a){if(typeof i!="function")throw new Kt(s);return a=a===t?a:Ge(a),Me(i,a)}function b5(i,a){if(typeof i!="function")throw new Kt(s);return a=a==null?0:A(Ge(a),0),Me(function(l){var m=l[a],_=ro(l,0,a);return m&&ar(_,m),vr(i,this,_)})}function y5(i,a,l){var m=!0,_=!0;if(typeof i!="function")throw new Kt(s);return bt(l)&&(m="leading"in l?!!l.leading:m,_="trailing"in l?!!l.trailing:_),v1(i,a,{leading:m,maxWait:a,trailing:_})}function _5(i){return b1(i,1)}function w5(i,a){return sg(jm(a),i)}function E5(){if(!arguments.length)return[];var i=arguments[0];return Pe(i)?i:[i]}function v5(i){return Tn(i,y)}function S5(i,a){return a=typeof a=="function"?a:t,Tn(i,y,a)}function T5(i){return Tn(i,g|y)}function k5(i,a){return a=typeof a=="function"?a:t,Tn(i,g|y,a)}function x5(i,a){return a==null||lE(i,a,Ut(a))}function os(i,a){return i===a||i!==i&&a!==a}var A5=jf(Dm),R5=jf(function(i,a){return i>=a}),ea=gE(function(){return arguments}())?gE:function(i){return Et(i)&&Xe.call(i,"callee")&&!Df.call(i,"callee")},Pe=K.isArray,C5=hc?qt(hc):G6;function Gr(i){return i!=null&&Qf(i.length)&&!Si(i)}function xt(i){return Et(i)&&Gr(i)}function D5(i){return i===!0||i===!1||Et(i)&&Sr(i)==Y}var no=Of||mg,O5=bf?qt(bf):q6;function P5(i){return Et(i)&&i.nodeType===1&&!Fc(i)}function F5(i){if(i==null)return!0;if(Gr(i)&&(Pe(i)||typeof i=="string"||typeof i.splice=="function"||no(i)||eu(i)||ea(i)))return!i.length;var a=fr(i);if(a==H||a==pt)return!i.size;if(Oc(i))return!Fm(i).length;for(var l in i)if(Xe.call(i,l))return!1;return!0}function L5(i,a){return Rc(i,a)}function I5(i,a,l){l=typeof l=="function"?l:t;var m=l?l(i,a):t;return m===t?Rc(i,a,t,l):!!m}function ig(i){if(!Et(i))return!1;var a=Sr(i);return a==Q||a==ce||typeof i.message=="string"&&typeof i.name=="string"&&!Fc(i)}function B5(i){return typeof i=="number"&&c(i)}function Si(i){if(!bt(i))return!1;var a=Sr(i);return a==ue||a==J||a==S||a==Ke}function T1(i){return typeof i=="number"&&i==Ge(i)}function Qf(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=$}function bt(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}function Et(i){return i!=null&&typeof i=="object"}var k1=qo?qt(qo):N6;function G5(i,a){return i===a||Pm(i,a,Ym(a))}function q5(i,a,l){return l=typeof l=="function"?l:t,Pm(i,a,Ym(a),l)}function U5(i){return x1(i)&&i!=+i}function N5(i){if(SI(i))throw new Ee(n);return bE(i)}function M5(i){return i===null}function j5(i){return i==null}function x1(i){return typeof i=="number"||Et(i)&&Sr(i)==we}function Fc(i){if(!Et(i)||Sr(i)!=se)return!1;var a=Fs(i);if(a===null)return!0;var l=Xe.call(a,"constructor")&&a.constructor;return typeof l=="function"&&l instanceof l&&$o.call(l)==Em}var og=yf?qt(yf):M6;function $5(i){return T1(i)&&i>=-$&&i<=$}var A1=_f?qt(_f):j6;function Xf(i){return typeof i=="string"||!Pe(i)&&Et(i)&&Sr(i)==_r}function tn(i){return typeof i=="symbol"||Et(i)&&Sr(i)==mn}var eu=pc?qt(pc):$6;function H5(i){return i===t}function z5(i){return Et(i)&&fr(i)==Gt}function W5(i){return Et(i)&&Sr(i)==bn}var V5=jf(Lm),K5=jf(function(i,a){return i<=a});function R1(i){if(!i)return[];if(Gr(i))return Xf(i)?Jr(i):Br(i);if(Qi&&i[Qi])return $a(i[Qi]());var a=fr(i),l=a==H?vc:a==pt?Ha:tu;return l(i)}function Ti(i){if(!i)return i===0?i:0;if(i=An(i),i===j||i===-j){var a=i<0?-1:1;return a*ve}return i===i?i:0}function Ge(i){var a=Ti(i),l=a%1;return a===a?l?a-l:a:0}function C1(i){return i?Jo(Ge(i),0,ye):0}function An(i){if(typeof i=="number")return i;if(tn(i))return ge;if(bt(i)){var a=typeof i.valueOf=="function"?i.valueOf():i;i=bt(a)?a+"":a}if(typeof i!="string")return i===0?i:+i;i=li(i);var l=Zn.test(i);return l||es.test(i)?am(i.slice(2),l?2:8):ii.test(i)?ge:+i}function D1(i){return Is(i,qr(i))}function Y5(i){return i?Jo(Ge(i),-$,$):i===0?i:0}function nt(i){return i==null?"":en(i)}var J5=Qa(function(i,a){if(Oc(a)||Gr(a)){Is(a,Ut(a),i);return}for(var l in a)Xe.call(a,l)&&kc(i,l,a[l])}),O1=Qa(function(i,a){Is(a,qr(a),i)}),Zf=Qa(function(i,a,l,m){Is(a,qr(a),i,m)}),Q5=Qa(function(i,a,l,m){Is(a,Ut(a),i,m)}),X5=Ei(Am);function Z5(i,a){var l=Zr(i);return a==null?l:cE(l,a)}var eG=Me(function(i,a){i=We(i);var l=-1,m=a.length,_=m>2?a[2]:t;for(_&&Tr(a[0],a[1],_)&&(m=1);++l<m;)for(var k=a[l],C=qr(k),O=-1,U=C.length;++O<U;){var re=C[O],ne=i[re];(ne===t||os(ne,pi[re])&&!Xe.call(i,re))&&(i[re]=k[re])}return i}),tG=Me(function(i){return i.push(t,KE),vr(P1,t,i)});function rG(i,a){return mc(i,Te(a,3),Ls)}function nG(i,a){return mc(i,Te(a,3),Cm)}function sG(i,a){return i==null?i:Rm(i,Te(a,3),qr)}function iG(i,a){return i==null?i:dE(i,Te(a,3),qr)}function oG(i,a){return i&&Ls(i,Te(a,3))}function aG(i,a){return i&&Cm(i,Te(a,3))}function uG(i){return i==null?[]:Lf(i,Ut(i))}function cG(i){return i==null?[]:Lf(i,qr(i))}function ag(i,a,l){var m=i==null?t:Qo(i,a);return m===t?l:m}function lG(i,a){return i!=null&&QE(i,a,F6)}function ug(i,a){return i!=null&&QE(i,a,L6)}var fG=$E(function(i,a,l){a!=null&&typeof a.toString!="function"&&(a=Wa.call(a)),i[a]=l},lg(Ur)),hG=$E(function(i,a,l){a!=null&&typeof a.toString!="function"&&(a=Wa.call(a)),Xe.call(i,a)?i[a].push(l):i[a]=[l]},Te),pG=Me(Ac);function Ut(i){return Gr(i)?aE(i):Fm(i)}function qr(i){return Gr(i)?aE(i,!0):H6(i)}function dG(i,a){var l={};return a=Te(a,3),Ls(i,function(m,_,k){_i(l,a(m,_,k),m)}),l}function mG(i,a){var l={};return a=Te(a,3),Ls(i,function(m,_,k){_i(l,_,a(m,_,k))}),l}var gG=Qa(function(i,a,l){If(i,a,l)}),P1=Qa(function(i,a,l,m){If(i,a,l,m)}),bG=Ei(function(i,a){var l={};if(i==null)return l;var m=!1;a=st(a,function(k){return k=to(k,i),m||(m=k.length>1),k}),Is(i,Vm(i),l),m&&(l=Tn(l,g|d|y,fI));for(var _=a.length;_--;)Um(l,a[_]);return l});function yG(i,a){return F1(i,Jf(Te(a)))}var _G=Ei(function(i,a){return i==null?{}:W6(i,a)});function F1(i,a){if(i==null)return{};var l=st(Vm(i),function(m){return[m]});return a=Te(a),TE(i,l,function(m,_){return a(m,_[0])})}function wG(i,a,l){a=to(a,i);var m=-1,_=a.length;for(_||(_=1,i=t);++m<_;){var k=i==null?t:i[Bs(a[m])];k===t&&(m=_,k=l),i=Si(k)?k.call(i):k}return i}function EG(i,a,l){return i==null?i:Cc(i,a,l)}function vG(i,a,l,m){return m=typeof m=="function"?m:t,i==null?i:Cc(i,a,l,m)}var L1=WE(Ut),I1=WE(qr);function SG(i,a,l){var m=Pe(i),_=m||no(i)||eu(i);if(a=Te(a,4),l==null){var k=i&&i.constructor;_?l=m?new k:[]:bt(i)?l=Si(k)?Zr(Fs(i)):{}:l={}}return(_?or:Ls)(i,function(C,O,U){return a(l,C,O,U)}),l}function TG(i,a){return i==null?!0:Um(i,a)}function kG(i,a,l){return i==null?i:CE(i,a,jm(l))}function xG(i,a,l,m){return m=typeof m=="function"?m:t,i==null?i:CE(i,a,jm(l),m)}function tu(i){return i==null?[]:fi(i,Ut(i))}function AG(i){return i==null?[]:fi(i,qr(i))}function RG(i,a,l){return l===t&&(l=a,a=t),l!==t&&(l=An(l),l=l===l?l:0),a!==t&&(a=An(a),a=a===a?a:0),Jo(An(i),a,l)}function CG(i,a,l){return a=Ti(a),l===t?(l=a,a=0):l=Ti(l),i=An(i),I6(i,a,l)}function DG(i,a,l){if(l&&typeof l!="boolean"&&Tr(i,a,l)&&(a=l=t),l===t&&(typeof a=="boolean"?(l=a,a=t):typeof i=="boolean"&&(l=i,i=t)),i===t&&a===t?(i=0,a=1):(i=Ti(i),a===t?(a=i,i=0):a=Ti(a)),i>a){var m=i;i=a,a=m}if(l||i%1||a%1){var _=me();return F(i+_*(a-i+df("1e-"+((_+"").length-1))),a)}return Bm(i,a)}var OG=Xa(function(i,a,l){return a=a.toLowerCase(),i+(l?B1(a):a)});function B1(i){return cg(nt(i).toLowerCase())}function G1(i){return i=nt(i),i&&i.replace(ts,Ds).replace(tm,"")}function PG(i,a,l){i=nt(i),a=en(a);var m=i.length;l=l===t?m:Jo(Ge(l),0,m);var _=l;return l-=a.length,l>=0&&i.slice(l,_)==a}function FG(i){return i=nt(i),i&&Ui.test(i)?i.replace(Yn,Ec):i}function LG(i){return i=nt(i),i&&Ss.test(i)?i.replace(Jn,"\\$&"):i}var IG=Xa(function(i,a,l){return i+(l?"-":"")+a.toLowerCase()}),BG=Xa(function(i,a,l){return i+(l?" ":"")+a.toLowerCase()}),GG=NE("toLowerCase");function qG(i,a,l){i=nt(i),a=Ge(a);var m=a?Ji(i):0;if(!a||m>=a)return i;var _=(a-m)/2;return Mf(Ja(_),l)+i+Mf(Ya(_),l)}function UG(i,a,l){i=nt(i),a=Ge(a);var m=a?Ji(i):0;return a&&m<a?i+Mf(a-m,l):i}function NG(i,a,l){i=nt(i),a=Ge(a);var m=a?Ji(i):0;return a&&m<a?Mf(a-m,l)+i:i}function MG(i,a,l){return l||a==null?a=0:a&&(a=+a),ie(nt(i).replace(Qn,""),a||0)}function jG(i,a,l){return(l?Tr(i,a,l):a===t)?a=1:a=Ge(a),Gm(nt(i),a)}function $G(){var i=arguments,a=nt(i[0]);return i.length<3?a:a.replace(i[1],i[2])}var HG=Xa(function(i,a,l){return i+(l?"_":"")+a.toLowerCase()});function zG(i,a,l){return l&&typeof l!="number"&&Tr(i,a,l)&&(a=l=t),l=l===t?ye:l>>>0,l?(i=nt(i),i&&(typeof a=="string"||a!=null&&!og(a))&&(a=en(a),!a&&hi(i))?ro(Jr(i),0,l):i.split(a,l)):[]}var WG=Xa(function(i,a,l){return i+(l?" ":"")+cg(a)});function VG(i,a,l){return i=nt(i),l=l==null?0:Jo(Ge(l),0,i.length),a=en(a),i.slice(l,l+a.length)==a}function KG(i,a,l){var m=T.templateSettings;l&&Tr(i,a,l)&&(a=t),i=nt(i),a=Zf({},a,m,VE);var _=Zf({},a.imports,m.imports,VE),k=Ut(_),C=fi(_,k),O,U,re=0,ne=a.interpolate||kt,oe="__p += '",pe=za((a.escape||kt).source+"|"+ne.source+"|"+(ne===Pr?Mi:kt).source+"|"+(a.evaluate||kt).source+"|$","g"),be="//# sourceURL="+(Xe.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++im+"]")+`
|
|
42
|
+
`;i.replace(pe,function(xe,He,Ve,rn,kr,nn){return Ve||(Ve=rn),oe+=i.slice(re,nn).replace(ks,hm),He&&(O=!0,oe+=`' +
|
|
43
|
+
__e(`+He+`) +
|
|
44
|
+
'`),kr&&(U=!0,oe+=`';
|
|
45
|
+
`+kr+`;
|
|
46
|
+
__p += '`),Ve&&(oe+=`' +
|
|
47
|
+
((__t = (`+Ve+`)) == null ? '' : __t) +
|
|
48
|
+
'`),re=nn+xe.length,xe}),oe+=`';
|
|
49
|
+
`;var ke=Xe.call(a,"variable")&&a.variable;if(!ke)oe=`with (obj) {
|
|
50
|
+
`+oe+`
|
|
51
|
+
}
|
|
52
|
+
`;else if(ni.test(ke))throw new Ee(o);oe=(U?oe.replace(Kn,""):oe).replace(Zs,"$1").replace(qi,"$1;"),oe="function("+(ke||"obj")+`) {
|
|
53
|
+
`+(ke?"":`obj || (obj = {});
|
|
54
|
+
`)+"var __t, __p = ''"+(O?", __e = _.escape":"")+(U?`, __j = Array.prototype.join;
|
|
55
|
+
function print() { __p += __j.call(arguments, '') }
|
|
56
|
+
`:`;
|
|
57
|
+
`)+oe+`return __p
|
|
58
|
+
}`;var qe=U1(function(){return $e(k,be+"return "+oe).apply(t,C)});if(qe.source=oe,ig(qe))throw qe;return qe}function YG(i){return nt(i).toLowerCase()}function JG(i){return nt(i).toUpperCase()}function QG(i,a,l){if(i=nt(i),i&&(l||a===t))return li(i);if(!i||!(a=en(a)))return i;var m=Jr(i),_=Jr(a),k=Mo(m,_),C=Ki(m,_)+1;return ro(m,k,C).join("")}function XG(i,a,l){if(i=nt(i),i&&(l||a===t))return i.slice(0,kf(i)+1);if(!i||!(a=en(a)))return i;var m=Jr(i),_=Ki(m,Jr(a))+1;return ro(m,0,_).join("")}function ZG(i,a,l){if(i=nt(i),i&&(l||a===t))return i.replace(Qn,"");if(!i||!(a=en(a)))return i;var m=Jr(i),_=Mo(m,Jr(a));return ro(m,_).join("")}function eq(i,a){var l=W,m=X;if(bt(a)){var _="separator"in a?a.separator:_;l="length"in a?Ge(a.length):l,m="omission"in a?en(a.omission):m}i=nt(i);var k=i.length;if(hi(i)){var C=Jr(i);k=C.length}if(l>=k)return i;var O=l-Ji(m);if(O<1)return m;var U=C?ro(C,0,O).join(""):i.slice(0,O);if(_===t)return U+m;if(C&&(O+=U.length-O),og(_)){if(i.slice(O).search(_)){var re,ne=U;for(_.global||(_=za(_.source,nt(si.exec(_))+"g")),_.lastIndex=0;re=_.exec(ne);)var oe=re.index;U=U.slice(0,oe===t?O:oe)}}else if(i.indexOf(en(_),O)!=O){var pe=U.lastIndexOf(_);pe>-1&&(U=U.slice(0,pe))}return U+m}function tq(i){return i=nt(i),i&&Es.test(i)?i.replace(ws,bm):i}var rq=Xa(function(i,a,l){return i+(l?" ":"")+a.toUpperCase()}),cg=NE("toUpperCase");function q1(i,a,l){return i=nt(i),a=l?t:a,a===t?pm(i)?_m(i):lm(i):i.match(a)||[]}var U1=Me(function(i,a){try{return vr(i,t,a)}catch(l){return ig(l)?l:new Ee(l)}}),nq=Ei(function(i,a){return or(a,function(l){l=Bs(l),_i(i,l,ng(i[l],i))}),i});function sq(i){var a=i==null?0:i.length,l=Te();return i=a?st(i,function(m){if(typeof m[1]!="function")throw new Kt(s);return[l(m[0]),m[1]]}):[],Me(function(m){for(var _=-1;++_<a;){var k=i[_];if(vr(k[0],this,m))return vr(k[1],this,m)}})}function iq(i){return D6(Tn(i,g))}function lg(i){return function(){return i}}function oq(i,a){return i==null||i!==i?a:i}var aq=jE(),uq=jE(!0);function Ur(i){return i}function fg(i){return yE(typeof i=="function"?i:Tn(i,g))}function cq(i){return wE(Tn(i,g))}function lq(i,a){return EE(i,Tn(a,g))}var fq=Me(function(i,a){return function(l){return Ac(l,i,a)}}),hq=Me(function(i,a){return function(l){return Ac(i,l,a)}});function hg(i,a,l){var m=Ut(a),_=Lf(a,m);l==null&&!(bt(a)&&(_.length||!m.length))&&(l=a,a=i,i=this,_=Lf(a,Ut(a)));var k=!(bt(l)&&"chain"in l)||!!l.chain,C=Si(i);return or(_,function(O){var U=a[O];i[O]=U,C&&(i.prototype[O]=function(){var re=this.__chain__;if(k||re){var ne=i(this.__wrapped__),oe=ne.__actions__=Br(this.__actions__);return oe.push({func:U,args:arguments,thisArg:i}),ne.__chain__=re,ne}return U.apply(i,ar([this.value()],arguments))})}),i}function pq(){return Ft._===this&&(Ft._=Va),this}function pg(){}function dq(i){return i=Ge(i),Me(function(a){return vE(a,i)})}var mq=Hm(st),gq=Hm(wf),bq=Hm(Ma);function N1(i){return Qm(i)?bc(Bs(i)):V6(i)}function yq(i){return function(a){return i==null?t:Qo(i,a)}}var _q=HE(),wq=HE(!0);function dg(){return[]}function mg(){return!1}function Eq(){return{}}function vq(){return""}function Sq(){return!0}function Tq(i,a){if(i=Ge(i),i<1||i>$)return[];var l=ye,m=F(i,ye);a=Te(a),i-=ye;for(var _=wc(m,a);++l<i;)a(l);return _}function kq(i){return Pe(i)?st(i,Bs):tn(i)?[i]:Br(o1(nt(i)))}function xq(i){var a=++wm;return nt(i)+a}var Aq=Nf(function(i,a){return i+a},0),Rq=zm("ceil"),Cq=Nf(function(i,a){return i/a},1),Dq=zm("floor");function Oq(i){return i&&i.length?Ff(i,Ur,Dm):t}function Pq(i,a){return i&&i.length?Ff(i,Te(a,2),Dm):t}function Fq(i){return vf(i,Ur)}function Lq(i,a){return vf(i,Te(a,2))}function Iq(i){return i&&i.length?Ff(i,Ur,Lm):t}function Bq(i,a){return i&&i.length?Ff(i,Te(a,2),Lm):t}var Gq=Nf(function(i,a){return i*a},1),qq=zm("round"),Uq=Nf(function(i,a){return i-a},0);function Nq(i){return i&&i.length?_c(i,Ur):0}function Mq(i,a){return i&&i.length?_c(i,Te(a,2)):0}return T.after=c5,T.ary=b1,T.assign=J5,T.assignIn=O1,T.assignInWith=Zf,T.assignWith=Q5,T.at=X5,T.before=y1,T.bind=ng,T.bindAll=nq,T.bindKey=_1,T.castArray=E5,T.chain=d1,T.chunk=DI,T.compact=OI,T.concat=PI,T.cond=sq,T.conforms=iq,T.constant=lg,T.countBy=NB,T.create=Z5,T.curry=w1,T.curryRight=E1,T.debounce=v1,T.defaults=eG,T.defaultsDeep=tG,T.defer=l5,T.delay=f5,T.difference=FI,T.differenceBy=LI,T.differenceWith=II,T.drop=BI,T.dropRight=GI,T.dropRightWhile=qI,T.dropWhile=UI,T.fill=NI,T.filter=jB,T.flatMap=zB,T.flatMapDeep=WB,T.flatMapDepth=VB,T.flatten=l1,T.flattenDeep=MI,T.flattenDepth=jI,T.flip=h5,T.flow=aq,T.flowRight=uq,T.fromPairs=$I,T.functions=uG,T.functionsIn=cG,T.groupBy=KB,T.initial=zI,T.intersection=WI,T.intersectionBy=VI,T.intersectionWith=KI,T.invert=fG,T.invertBy=hG,T.invokeMap=JB,T.iteratee=fg,T.keyBy=QB,T.keys=Ut,T.keysIn=qr,T.map=Vf,T.mapKeys=dG,T.mapValues=mG,T.matches=cq,T.matchesProperty=lq,T.memoize=Yf,T.merge=gG,T.mergeWith=P1,T.method=fq,T.methodOf=hq,T.mixin=hg,T.negate=Jf,T.nthArg=dq,T.omit=bG,T.omitBy=yG,T.once=p5,T.orderBy=XB,T.over=mq,T.overArgs=d5,T.overEvery=gq,T.overSome=bq,T.partial=sg,T.partialRight=S1,T.partition=ZB,T.pick=_G,T.pickBy=F1,T.property=N1,T.propertyOf=yq,T.pull=XI,T.pullAll=h1,T.pullAllBy=ZI,T.pullAllWith=eB,T.pullAt=tB,T.range=_q,T.rangeRight=wq,T.rearg=m5,T.reject=r5,T.remove=rB,T.rest=g5,T.reverse=tg,T.sampleSize=s5,T.set=EG,T.setWith=vG,T.shuffle=i5,T.slice=nB,T.sortBy=u5,T.sortedUniq=lB,T.sortedUniqBy=fB,T.split=zG,T.spread=b5,T.tail=hB,T.take=pB,T.takeRight=dB,T.takeRightWhile=mB,T.takeWhile=gB,T.tap=OB,T.throttle=y5,T.thru=Wf,T.toArray=R1,T.toPairs=L1,T.toPairsIn=I1,T.toPath=kq,T.toPlainObject=D1,T.transform=SG,T.unary=_5,T.union=bB,T.unionBy=yB,T.unionWith=_B,T.uniq=wB,T.uniqBy=EB,T.uniqWith=vB,T.unset=TG,T.unzip=rg,T.unzipWith=p1,T.update=kG,T.updateWith=xG,T.values=tu,T.valuesIn=AG,T.without=SB,T.words=q1,T.wrap=w5,T.xor=TB,T.xorBy=kB,T.xorWith=xB,T.zip=AB,T.zipObject=RB,T.zipObjectDeep=CB,T.zipWith=DB,T.entries=L1,T.entriesIn=I1,T.extend=O1,T.extendWith=Zf,hg(T,T),T.add=Aq,T.attempt=U1,T.camelCase=OG,T.capitalize=B1,T.ceil=Rq,T.clamp=RG,T.clone=v5,T.cloneDeep=T5,T.cloneDeepWith=k5,T.cloneWith=S5,T.conformsTo=x5,T.deburr=G1,T.defaultTo=oq,T.divide=Cq,T.endsWith=PG,T.eq=os,T.escape=FG,T.escapeRegExp=LG,T.every=MB,T.find=$B,T.findIndex=u1,T.findKey=rG,T.findLast=HB,T.findLastIndex=c1,T.findLastKey=nG,T.floor=Dq,T.forEach=m1,T.forEachRight=g1,T.forIn=sG,T.forInRight=iG,T.forOwn=oG,T.forOwnRight=aG,T.get=ag,T.gt=A5,T.gte=R5,T.has=lG,T.hasIn=ug,T.head=f1,T.identity=Ur,T.includes=YB,T.indexOf=HI,T.inRange=CG,T.invoke=pG,T.isArguments=ea,T.isArray=Pe,T.isArrayBuffer=C5,T.isArrayLike=Gr,T.isArrayLikeObject=xt,T.isBoolean=D5,T.isBuffer=no,T.isDate=O5,T.isElement=P5,T.isEmpty=F5,T.isEqual=L5,T.isEqualWith=I5,T.isError=ig,T.isFinite=B5,T.isFunction=Si,T.isInteger=T1,T.isLength=Qf,T.isMap=k1,T.isMatch=G5,T.isMatchWith=q5,T.isNaN=U5,T.isNative=N5,T.isNil=j5,T.isNull=M5,T.isNumber=x1,T.isObject=bt,T.isObjectLike=Et,T.isPlainObject=Fc,T.isRegExp=og,T.isSafeInteger=$5,T.isSet=A1,T.isString=Xf,T.isSymbol=tn,T.isTypedArray=eu,T.isUndefined=H5,T.isWeakMap=z5,T.isWeakSet=W5,T.join=YI,T.kebabCase=IG,T.last=xn,T.lastIndexOf=JI,T.lowerCase=BG,T.lowerFirst=GG,T.lt=V5,T.lte=K5,T.max=Oq,T.maxBy=Pq,T.mean=Fq,T.meanBy=Lq,T.min=Iq,T.minBy=Bq,T.stubArray=dg,T.stubFalse=mg,T.stubObject=Eq,T.stubString=vq,T.stubTrue=Sq,T.multiply=Gq,T.nth=QI,T.noConflict=pq,T.noop=pg,T.now=Kf,T.pad=qG,T.padEnd=UG,T.padStart=NG,T.parseInt=MG,T.random=DG,T.reduce=e5,T.reduceRight=t5,T.repeat=jG,T.replace=$G,T.result=wG,T.round=qq,T.runInContext=B,T.sample=n5,T.size=o5,T.snakeCase=HG,T.some=a5,T.sortedIndex=sB,T.sortedIndexBy=iB,T.sortedIndexOf=oB,T.sortedLastIndex=aB,T.sortedLastIndexBy=uB,T.sortedLastIndexOf=cB,T.startCase=WG,T.startsWith=VG,T.subtract=Uq,T.sum=Nq,T.sumBy=Mq,T.template=KG,T.times=Tq,T.toFinite=Ti,T.toInteger=Ge,T.toLength=C1,T.toLower=YG,T.toNumber=An,T.toSafeInteger=Y5,T.toString=nt,T.toUpper=JG,T.trim=QG,T.trimEnd=XG,T.trimStart=ZG,T.truncate=eq,T.unescape=tq,T.uniqueId=xq,T.upperCase=rq,T.upperFirst=cg,T.each=m1,T.eachRight=g1,T.first=f1,hg(T,function(){var i={};return Ls(T,function(a,l){Xe.call(T.prototype,l)||(i[l]=a)}),i}(),{chain:!1}),T.VERSION=e,or(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){T[i].placeholder=T}),or(["drop","take"],function(i,a){Ne.prototype[i]=function(l){l=l===t?1:A(Ge(l),0);var m=this.__filtered__&&!a?new Ne(this):this.clone();return m.__filtered__?m.__takeCount__=F(l,m.__takeCount__):m.__views__.push({size:F(l,ye),type:i+(m.__dir__<0?"Right":"")}),m},Ne.prototype[i+"Right"]=function(l){return this.reverse()[i](l).reverse()}}),or(["filter","map","takeWhile"],function(i,a){var l=a+1,m=l==de||l==Re;Ne.prototype[i]=function(_){var k=this.clone();return k.__iteratees__.push({iteratee:Te(_,3),type:l}),k.__filtered__=k.__filtered__||m,k}}),or(["head","last"],function(i,a){var l="take"+(a?"Right":"");Ne.prototype[i]=function(){return this[l](1).value()[0]}}),or(["initial","tail"],function(i,a){var l="drop"+(a?"":"Right");Ne.prototype[i]=function(){return this.__filtered__?new Ne(this):this[l](1)}}),Ne.prototype.compact=function(){return this.filter(Ur)},Ne.prototype.find=function(i){return this.filter(i).head()},Ne.prototype.findLast=function(i){return this.reverse().find(i)},Ne.prototype.invokeMap=Me(function(i,a){return typeof i=="function"?new Ne(this):this.map(function(l){return Ac(l,i,a)})}),Ne.prototype.reject=function(i){return this.filter(Jf(Te(i)))},Ne.prototype.slice=function(i,a){i=Ge(i);var l=this;return l.__filtered__&&(i>0||a<0)?new Ne(l):(i<0?l=l.takeRight(-i):i&&(l=l.drop(i)),a!==t&&(a=Ge(a),l=a<0?l.dropRight(-a):l.take(a-i)),l)},Ne.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Ne.prototype.toArray=function(){return this.take(ye)},Ls(Ne.prototype,function(i,a){var l=/^(?:filter|find|map|reject)|While$/.test(a),m=/^(?:head|last)$/.test(a),_=T[m?"take"+(a=="last"?"Right":""):a],k=m||/^find/.test(a);!_||(T.prototype[a]=function(){var C=this.__wrapped__,O=m?[1]:arguments,U=C instanceof Ne,re=O[0],ne=U||Pe(C),oe=function(He){var Ve=_.apply(T,ar([He],O));return m&&pe?Ve[0]:Ve};ne&&l&&typeof re=="function"&&re.length!=1&&(U=ne=!1);var pe=this.__chain__,be=!!this.__actions__.length,ke=k&&!pe,qe=U&&!be;if(!k&&ne){C=qe?C:new Ne(this);var xe=i.apply(C,O);return xe.__actions__.push({func:Wf,args:[oe],thisArg:t}),new Qt(xe,pe)}return ke&&qe?i.apply(this,O):(xe=this.thru(oe),ke?m?xe.value()[0]:xe.value():xe)})}),or(["pop","push","shift","sort","splice","unshift"],function(i){var a=jo[i],l=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",m=/^(?:pop|shift)$/.test(i);T.prototype[i]=function(){var _=arguments;if(m&&!this.__chain__){var k=this.value();return a.apply(Pe(k)?k:[],_)}return this[l](function(C){return a.apply(Pe(C)?C:[],_)})}}),Ls(Ne.prototype,function(i,a){var l=T[a];if(l){var m=l.name+"";Xe.call(ur,m)||(ur[m]=[]),ur[m].push({name:a,func:l})}}),ur[Uf(t,R).name]=[{name:"wrapper",func:t}],Ne.prototype.clone=Tc,Ne.prototype.reverse=r6,Ne.prototype.value=n6,T.prototype.at=PB,T.prototype.chain=FB,T.prototype.commit=LB,T.prototype.next=IB,T.prototype.plant=GB,T.prototype.reverse=qB,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=UB,T.prototype.first=T.prototype.head,Qi&&(T.prototype[Qi]=BB),T},vn=Ps();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Ft._=vn,define(function(){return vn})):As?((As.exports=vn)._=vn,qa._=vn):Ft._=vn}).call(Su)});var O3=x((Que,D3)=>{var Tu=1e3,ku=Tu*60,xu=ku*60,ga=xu*24,q9=ga*7,U9=ga*365.25;D3.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return N9(t);if(r==="number"&&isFinite(t))return e.long?j9(t):M9(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function N9(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*U9;case"weeks":case"week":case"w":return r*q9;case"days":case"day":case"d":return r*ga;case"hours":case"hour":case"hrs":case"hr":case"h":return r*xu;case"minutes":case"minute":case"mins":case"min":case"m":return r*ku;case"seconds":case"second":case"secs":case"sec":case"s":return r*Tu;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function M9(t){var e=Math.abs(t);return e>=ga?Math.round(t/ga)+"d":e>=xu?Math.round(t/xu)+"h":e>=ku?Math.round(t/ku)+"m":e>=Tu?Math.round(t/Tu)+"s":t+"ms"}function j9(t){var e=Math.abs(t);return e>=ga?bp(t,e,ga,"day"):e>=xu?bp(t,e,xu,"hour"):e>=ku?bp(t,e,ku,"minute"):e>=Tu?bp(t,e,Tu,"second"):t+" ms"}function bp(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var y0=x((Xue,P3)=>{function $9(t){r.debug=r,r.default=r,r.coerce=h,r.disable=o,r.enable=s,r.enabled=u,r.humanize=O3(),r.destroy=g,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let y=0;for(let v=0;v<d.length;v++)y=(y<<5)-y+d.charCodeAt(v),y|=0;return r.colors[Math.abs(y)%r.colors.length]}r.selectColor=e;function r(d){let y,v=null,b,w;function R(...I){if(!R.enabled)return;let D=R,P=Number(new Date),G=P-(y||P);D.diff=G,D.prev=y,D.curr=P,y=P,I[0]=r.coerce(I[0]),typeof I[0]!="string"&&I.unshift("%O");let q=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,(N,L)=>{if(N==="%%")return"%";q++;let W=r.formatters[L];if(typeof W=="function"){let X=I[q];N=W.call(D,X),I.splice(q,1),q--}return N}),r.formatArgs.call(D,I),(D.log||r.log).apply(D,I)}return R.namespace=d,R.useColors=r.useColors(),R.color=r.selectColor(d),R.extend=n,R.destroy=r.destroy,Object.defineProperty(R,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(b!==r.namespaces&&(b=r.namespaces,w=r.enabled(d)),w),set:I=>{v=I}}),typeof r.init=="function"&&r.init(R),R}function n(d,y){let v=r(this.namespace+(typeof y>"u"?":":y)+d);return v.log=this.log,v}function s(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let y,v=(typeof d=="string"?d:"").split(/[\s,]+/),b=v.length;for(y=0;y<b;y++)!v[y]||(d=v[y].replace(/\*/g,".*?"),d[0]==="-"?r.skips.push(new RegExp("^"+d.slice(1)+"$")):r.names.push(new RegExp("^"+d+"$")))}function o(){let d=[...r.names.map(f),...r.skips.map(f).map(y=>"-"+y)].join(",");return r.enable(""),d}function u(d){if(d[d.length-1]==="*")return!0;let y,v;for(y=0,v=r.skips.length;y<v;y++)if(r.skips[y].test(d))return!1;for(y=0,v=r.names.length;y<v;y++)if(r.names[y].test(d))return!0;return!1}function f(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function h(d){return d instanceof Error?d.stack||d.message:d}function g(){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}P3.exports=$9});var F3=x((ln,yp)=>{ln.formatArgs=z9;ln.save=W9;ln.load=V9;ln.useColors=H9;ln.storage=K9();ln.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`."))}})();ln.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 H9(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1: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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function z9(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+yp.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,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}ln.log=console.debug||console.log||(()=>{});function W9(t){try{t?ln.storage.setItem("debug",t):ln.storage.removeItem("debug")}catch{}}function V9(){let t;try{t=ln.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function K9(){try{return localStorage}catch{}}yp.exports=y0()(ln);var{formatters:Y9}=yp.exports;Y9.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var I3=x((Zue,L3)=>{"use strict";L3.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}});var q3=x((ece,G3)=>{"use strict";var J9=require("os"),B3=require("tty"),In=I3(),{env:jt}=process,wo;In("no-color")||In("no-colors")||In("color=false")||In("color=never")?wo=0:(In("color")||In("colors")||In("color=true")||In("color=always"))&&(wo=1);"FORCE_COLOR"in jt&&(jt.FORCE_COLOR==="true"?wo=1:jt.FORCE_COLOR==="false"?wo=0:wo=jt.FORCE_COLOR.length===0?1:Math.min(parseInt(jt.FORCE_COLOR,10),3));function _0(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function w0(t,e){if(wo===0)return 0;if(In("color=16m")||In("color=full")||In("color=truecolor"))return 3;if(In("color=256"))return 2;if(t&&!e&&wo===void 0)return 0;let r=wo||0;if(jt.TERM==="dumb")return r;if(process.platform==="win32"){let n=J9.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in jt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in jt)||jt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in jt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(jt.TEAMCITY_VERSION)?1:0;if(jt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in jt){let n=parseInt((jt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(jt.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(jt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(jt.TERM)||"COLORTERM"in jt?1:r}function Q9(t){let e=w0(t,t&&t.isTTY);return _0(e)}G3.exports={supportsColor:Q9,stdout:_0(w0(!0,B3.isatty(1))),stderr:_0(w0(!0,B3.isatty(2)))}});var N3=x((rr,wp)=>{var X9=require("tty"),_p=require("util");rr.init=iV;rr.log=rV;rr.formatArgs=eV;rr.save=nV;rr.load=sV;rr.useColors=Z9;rr.destroy=_p.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");rr.colors=[6,2,3,4,5,1];try{let t=q3();t&&(t.stderr||t).level>=2&&(rr.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{}rr.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,o)=>o.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 Z9(){return"colors"in rr.inspectOpts?Boolean(rr.inspectOpts.colors):X9.isatty(process.stderr.fd)}function eV(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,s="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${s};1m${e} \x1B[0m`;t[0]=o+t[0].split(`
|
|
59
|
+
`).join(`
|
|
60
|
+
`+o),t.push(s+"m+"+wp.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=tV()+e+" "+t[0]}function tV(){return rr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function rV(...t){return process.stderr.write(_p.format(...t)+`
|
|
61
|
+
`)}function nV(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function sV(){return process.env.DEBUG}function iV(t){t.inspectOpts={};let e=Object.keys(rr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=rr.inspectOpts[e[r]]}wp.exports=y0()(rr);var{formatters:U3}=wp.exports;U3.o=function(t){return this.inspectOpts.colors=this.useColors,_p.inspect(t,this.inspectOpts).split(`
|
|
62
|
+
`).map(e=>e.trim()).join(" ")};U3.O=function(t){return this.inspectOpts.colors=this.useColors,_p.inspect(t,this.inspectOpts)}});var v0=x((tce,E0)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?E0.exports=F3():E0.exports=N3()});var M3=x(fn=>{"use strict";var oV=fn&&fn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fn,"__esModule",{value:!0});var aV=require("fs"),uV=oV(v0()),Au=uV.default("@kwsites/file-exists");function cV(t,e,r){Au("checking %s",t);try{let n=aV.statSync(t);return n.isFile()&&e?(Au("[OK] path represents a file"),!0):n.isDirectory()&&r?(Au("[OK] path represents a directory"),!0):(Au("[FAIL] path represents something other than a file or directory"),!1)}catch(n){if(n.code==="ENOENT")return Au("[FAIL] path is not accessible: %o",n),!1;throw Au("[FATAL] %o",n),n}}function lV(t,e=fn.READABLE){return cV(t,(e&fn.FILE)>0,(e&fn.FOLDER)>0)}fn.exists=lV;fn.FILE=1;fn.FOLDER=2;fn.READABLE=fn.FILE+fn.FOLDER});var j3=x(Ep=>{"use strict";function fV(t){for(var e in t)Ep.hasOwnProperty(e)||(Ep[e]=t[e])}Object.defineProperty(Ep,"__esModule",{value:!0});fV(M3())});var T0=x(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.createDeferred=ba.deferred=void 0;function S0(){let t,e,r="pending";return{promise:new Promise((s,o)=>{t=s,e=o}),done(s){r==="pending"&&(r="resolved",t(s))},fail(s){r==="pending"&&(r="rejected",e(s))},get fulfilled(){return r!=="pending"},get status(){return r}}}ba.deferred=S0;ba.createDeferred=S0;ba.default=S0});var BD=x((sfe,yJ)=>{yJ.exports={name:"@arcblock/arcli",version:"0.0.1",publishConfig:{access:"public"},bin:{arcli:"./dist/index.js"},author:{name:"skypesky",email:"2565978507@qq.com",url:"https://github.com/skypesky"},repository:{type:"git",url:"https://github.com/skypesky/@ArcBlock/arcli"},homepage:"https://github.com/skypesky/@ArcBlock/arcli",keywords:["ipfs","md5","github","backup","restore"],files:["dist"],scripts:{reinstall:"rimraf node_modules && pnpm install",predebug:"npm run build",debug:"node ./dist/index.js",lint:"eslint src/**/*.ts","lint:fix":"npm run lint -- --fix",test:"jest --forceExit --detectOpenHandles",coverage:"npm run test -- --coverage",clean:"rimraf dist",prebuild:"npm run clean",build:"node esbuild.config.cjs","build:watch":"npm run build -- -w",deploy:"npm run build && npm uninstall -g @ArcBlock/arcli && npm install -g . -f","deploy:remote":"npm uninstall -g @ArcBlock/arcli && npm install -g @ArcBlock/arcli",verify:"npm run lint && npm run test","show:version":"npm show @ArcBlock/arcli version","bump-version":"zx --quiet scripts/bump-version.mjs"},dependencies:{"@octokit/rest":"^20.0.2","@types/hosted-git-info":"^3.0.2",chalk:"~4",commander:"^9.4.1","current-os":"^1.1.0",dayjs:"^1.11.7","fast-glob":"^3.3.2","fs-extra":"^10.1.0","get-folder-size":"^4.0.0","git-remote-origin-url":"3.1.0","git-repo-info":"^2.1.1",got:"^14.0.0",hasha:"^5.2.2","hosted-git-info":"^6.1.1","ipfs-only-hash":"^4.0.0",joi:"^17.9.1","js-yaml":"^4.1.0",lodash:"^4.17.21",lowdb:"^6.1.1",multiformats:"^12.1.3","node-fetch":"^3.3.2",open:"^8.4.0","p-all":"^5.0.0",prettier:"^3.1.1","pretty-ms":"^8.0.0",prompts:"^2.4.2","shelljs.exec":"^1.1.8","simple-git":"^3.21.0","url-join":"4.0.1",xbytes:"^1.8.0"},devDependencies:{"@types/chalk":"^2.2.0","@types/commander":"^2.12.2","@types/fs-extra":"^9.0.13","@types/jest":"^29.2.2","@types/js-yaml":"^4.0.5","@types/lodash":"^4.14.187","@types/node":"^18.11.7","@types/open":"^6.2.1","@types/prompts":"^2.4.2","@types/shelljs.exec":"^1.1.0","@types/url-join":"^4.0.1","@typescript-eslint/eslint-plugin":"^5.46.0","@typescript-eslint/parser":"^5.46.0",bumpp:"^9.2.1",esbuild:"^0.16.4",eslint:"^8.29.0",jest:"^29.3.1","jest-environment-jsdom":"^29.3.1",rimraf:"^3.0.2","ts-jest":"^29.0.3","ts-node":"^10.9.1",typescript:"^4.9.4",zx:"^7.2.3"}}});var id=x((lfe,qD)=>{"use strict";async function*wJ(t,e=1){let r=[];e<1&&(e=1);for await(let n of t)for(r.push(n);r.length>=e;)yield r.slice(0,e),r=r.slice(e);for(;r.length;)yield r.slice(0,e),r=r.slice(e)}qD.exports=wJ});var d_=x((ffe,UD)=>{"use strict";var EJ=id();async function*vJ(t,e=1){for await(let r of EJ(t,e)){let n=r.map(s=>s().then(o=>({ok:!0,value:o}),o=>({ok:!1,err:o})));for(let s=0;s<n.length;s++){let o=await n[s];if(o.ok)yield o.value;else throw o.err}}}UD.exports=vJ});var MD=x((hfe,ND)=>{"use strict";ND.exports=t=>{if(Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}});var VD=x((zD,WD)=>{"use strict";var od=MD(),{hasOwnProperty:$D}=Object.prototype,{propertyIsEnumerable:SJ}=Object,Fu=(t,e,r)=>Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0}),TJ=zD,jD={concatArrays:!1,ignoreUndefined:!1},ad=t=>{let e=[];for(let r in t)$D.call(t,r)&&e.push(r);if(Object.getOwnPropertySymbols){let r=Object.getOwnPropertySymbols(t);for(let n of r)SJ.call(t,n)&&e.push(n)}return e};function Lu(t){return Array.isArray(t)?kJ(t):od(t)?xJ(t):t}function kJ(t){let e=t.slice(0,0);return ad(t).forEach(r=>{Fu(e,r,Lu(t[r]))}),e}function xJ(t){let e=Object.getPrototypeOf(t)===null?Object.create(null):{};return ad(t).forEach(r=>{Fu(e,r,Lu(t[r]))}),e}var HD=(t,e,r,n)=>(r.forEach(s=>{typeof e[s]>"u"&&n.ignoreUndefined||(s in t&&t[s]!==Object.getPrototypeOf(t)?Fu(t,s,m_(t[s],e[s],n)):Fu(t,s,Lu(e[s])))}),t),AJ=(t,e,r)=>{let n=t.slice(0,0),s=0;return[t,e].forEach(o=>{let u=[];for(let f=0;f<o.length;f++)!$D.call(o,f)||(u.push(String(f)),o===t?Fu(n,s++,o[f]):Fu(n,s++,Lu(o[f])));n=HD(n,o,ad(o).filter(f=>!u.includes(f)),r)}),n};function m_(t,e,r){return r.concatArrays&&Array.isArray(t)&&Array.isArray(e)?AJ(t,e,r):!od(e)||!od(t)?Lu(e):HD(t,e,ad(e),r)}WD.exports=function(...t){let e=m_(Lu(jD),this!==TJ&&this||{},jD),r={_:{}};for(let n of t)if(n!==void 0){if(!od(n))throw new TypeError("`"+n+"` is not an Option Object");r=m_(r,{_:n},e)}return r._}});var va=x((pfe,YD)=>{"use strict";function KD(t,e){for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!0,configurable:!0});return t}function RJ(t,e,r){if(!t||typeof t=="string")throw new TypeError("Please pass an Error to err-code");r||(r={}),typeof e=="object"&&(r=e,e=""),e&&(r.code=e);try{return KD(t,r)}catch{r.message=t.message,r.stack=t.stack;let s=function(){};return s.prototype=Object.create(Object.getPrototypeOf(t)),KD(new s,r)}}YD.exports=RJ});var QD=x((dfe,JD)=>{"use strict";function CJ(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var n=0;n<t.length;n++){var s=t.charAt(n),o=s.charCodeAt(0);if(e[o]!==255)throw new TypeError(s+" is ambiguous");e[o]=n}var u=t.length,f=t.charAt(0),h=Math.log(u)/Math.log(256),g=Math.log(256)/Math.log(u);function d(b){if(b instanceof Uint8Array||(ArrayBuffer.isView(b)?b=new Uint8Array(b.buffer,b.byteOffset,b.byteLength):Array.isArray(b)&&(b=Uint8Array.from(b))),!(b instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(b.length===0)return"";for(var w=0,R=0,I=0,D=b.length;I!==D&&b[I]===0;)I++,w++;for(var P=(D-I)*g+1>>>0,G=new Uint8Array(P);I!==D;){for(var q=b[I],z=0,N=P-1;(q!==0||z<R)&&N!==-1;N--,z++)q+=256*G[N]>>>0,G[N]=q%u>>>0,q=q/u>>>0;if(q!==0)throw new Error("Non-zero carry");R=z,I++}for(var L=P-R;L!==P&&G[L]===0;)L++;for(var W=f.repeat(w);L<P;++L)W+=t.charAt(G[L]);return W}function y(b){if(typeof b!="string")throw new TypeError("Expected String");if(b.length===0)return new Uint8Array;var w=0;if(b[w]!==" "){for(var R=0,I=0;b[w]===f;)R++,w++;for(var D=(b.length-w)*h+1>>>0,P=new Uint8Array(D);b[w];){var G=e[b.charCodeAt(w)];if(G===255)return;for(var q=0,z=D-1;(G!==0||q<I)&&z!==-1;z--,q++)G+=u*P[z]>>>0,P[z]=G%256>>>0,G=G/256>>>0;if(G!==0)throw new Error("Non-zero carry");I=q,w++}if(b[w]!==" "){for(var N=D-I;N!==D&&P[N]===0;)N++;for(var L=new Uint8Array(R+(D-N)),W=R;N!==D;)L[W++]=P[N++];return L}}}function v(b){var w=y(b);if(w)return w;throw new Error("Non-base"+u+" character")}return{encode:d,decodeUnsafe:y,decode:v}}JD.exports=CJ});var ud=x((mfe,XD)=>{"use strict";var DJ=new TextDecoder,OJ=t=>DJ.decode(t),PJ=new TextEncoder,FJ=t=>PJ.encode(t);function LJ(t,e){let r=new Uint8Array(e),n=0;for(let s of t)r.set(s,n),n+=s.length;return r}XD.exports={decodeText:OJ,encodeText:FJ,concat:LJ}});var eO=x((gfe,ZD)=>{"use strict";var{encodeText:IJ}=ud(),g_=class{constructor(e,r,n,s){this.name=e,this.code=r,this.codeBuf=IJ(this.code),this.alphabet=s,this.codec=n(s)}encode(e){return this.codec.encode(e)}decode(e){for(let r of e)if(this.alphabet&&this.alphabet.indexOf(r)<0)throw new Error(`invalid character '${r}' in '${e}'`);return this.codec.decode(e)}};ZD.exports=g_});var rO=x((bfe,tO)=>{"use strict";var BJ=(t,e,r)=>{let n={};for(let g=0;g<e.length;++g)n[e[g]]=g;let s=t.length;for(;t[s-1]==="=";)--s;let o=new Uint8Array(s*r/8|0),u=0,f=0,h=0;for(let g=0;g<s;++g){let d=n[t[g]];if(d===void 0)throw new SyntaxError("Invalid character "+t[g]);f=f<<r|d,u+=r,u>=8&&(u-=8,o[h++]=255&f>>u)}if(u>=r||255&f<<8-u)throw new SyntaxError("Unexpected end of data");return o},GJ=(t,e,r)=>{let n=e[e.length-1]==="=",s=(1<<r)-1,o="",u=0,f=0;for(let h=0;h<t.length;++h)for(f=f<<8|t[h],u+=8;u>r;)u-=r,o+=e[s&f>>u];if(u&&(o+=e[s&f<<r-u]),n)for(;o.length*r&7;)o+="=";return o},qJ=t=>e=>({encode(r){return GJ(r,e,t)},decode(r){return BJ(r,e,t)}});tO.exports={rfc4648:qJ}});var oO=x((yfe,iO)=>{"use strict";var kl=QD(),UJ=eO(),{rfc4648:nr}=rO(),{decodeText:NJ,encodeText:MJ}=ud(),jJ=()=>({encode:NJ,decode:MJ}),nO=[["identity","\0",jJ,""],["base2","0",nr(1),"01"],["base8","7",nr(3),"01234567"],["base10","9",kl,"0123456789"],["base16","f",nr(4),"0123456789abcdef"],["base16upper","F",nr(4),"0123456789ABCDEF"],["base32hex","v",nr(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",nr(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",nr(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",nr(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",nr(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",nr(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",nr(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",nr(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",nr(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",kl,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",kl,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",kl,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",kl,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",nr(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",nr(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",nr(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",nr(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],sO=nO.reduce((t,e)=>(t[e[0]]=new UJ(e[0],e[1],e[2],e[3]),t),{}),$J=nO.reduce((t,e)=>(t[e[1]]=sO[e[0]],t),{});iO.exports={names:sO,codes:$J}});var b_=x((Li,uO)=>{"use strict";var Iu=oO(),{encodeText:HJ,decodeText:cd,concat:aO}=ud();function zJ(t,e){if(!e)throw new Error("requires an encoded Uint8Array");let{name:r,codeBuf:n}=Sa(t);return YJ(r,e),aO([n,e],n.length+e.length)}function WJ(t,e){let r=Sa(t),n=HJ(r.encode(e));return aO([r.codeBuf,n],r.codeBuf.length+n.length)}function VJ(t){t instanceof Uint8Array&&(t=cd(t));let e=t[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(e)&&(t=t.toLowerCase()),Sa(t[0]).decode(t.substring(1))}function KJ(t){if(t instanceof Uint8Array&&(t=cd(t)),Object.prototype.toString.call(t)!=="[object String]")return!1;try{return Sa(t[0]).name}catch{return!1}}function YJ(t,e){Sa(t).decode(cd(e))}function Sa(t){if(Object.prototype.hasOwnProperty.call(Iu.names,t))return Iu.names[t];if(Object.prototype.hasOwnProperty.call(Iu.codes,t))return Iu.codes[t];throw new Error(`Unsupported encoding: ${t}`)}function JJ(t){return t instanceof Uint8Array&&(t=cd(t)),Sa(t[0])}Li=uO.exports=zJ;Li.encode=WJ;Li.decode=VJ;Li.isEncoded=KJ;Li.encoding=Sa;Li.encodingFromData=JJ;var QJ=Object.freeze(Iu.names),XJ=Object.freeze(Iu.codes);Li.names=QJ;Li.codes=XJ});var hO=x((_fe,fO)=>{fO.exports=lO;var cO=128,ZJ=127,eQ=~ZJ,tQ=Math.pow(2,31);function lO(t,e,r){e=e||[],r=r||0;for(var n=r;t>=tQ;)e[r++]=t&255|cO,t/=128;for(;t&eQ;)e[r++]=t&255|cO,t>>>=7;return e[r]=t|0,lO.bytes=r-n+1,e}});var mO=x((wfe,dO)=>{dO.exports=y_;var rQ=128,pO=127;function y_(t,n){var r=0,n=n||0,s=0,o=n,u,f=t.length;do{if(o>=f)throw y_.bytes=0,new RangeError("Could not decode varint");u=t[o++],r+=s<28?(u&pO)<<s:(u&pO)*Math.pow(2,s),s+=7}while(u>=rQ);return y_.bytes=o-n,r}});var bO=x((Efe,gO)=>{var nQ=Math.pow(2,7),sQ=Math.pow(2,14),iQ=Math.pow(2,21),oQ=Math.pow(2,28),aQ=Math.pow(2,35),uQ=Math.pow(2,42),cQ=Math.pow(2,49),lQ=Math.pow(2,56),fQ=Math.pow(2,63);gO.exports=function(t){return t<nQ?1:t<sQ?2:t<iQ?3:t<oQ?4:t<aQ?5:t<uQ?6:t<cQ?7:t<lQ?8:t<fQ?9:10}});var _O=x((vfe,yO)=>{yO.exports={encode:hO(),decode:mO(),encodingLength:bO()}});var EO=x((Sfe,wO)=>{"use strict";var hQ=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});wO.exports={names:hQ}});var SO=x((Tfe,vO)=>{"use strict";function pQ(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var s=0;s<t.length;s++){var o=t.charAt(s),u=o.charCodeAt(0);if(r[u]!==255)throw new TypeError(o+" is ambiguous");r[u]=s}var f=t.length,h=t.charAt(0),g=Math.log(f)/Math.log(256),d=Math.log(256)/Math.log(f);function y(w){if(w instanceof Uint8Array||(ArrayBuffer.isView(w)?w=new Uint8Array(w.buffer,w.byteOffset,w.byteLength):Array.isArray(w)&&(w=Uint8Array.from(w))),!(w instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(w.length===0)return"";for(var R=0,I=0,D=0,P=w.length;D!==P&&w[D]===0;)D++,R++;for(var G=(P-D)*d+1>>>0,q=new Uint8Array(G);D!==P;){for(var z=w[D],N=0,L=G-1;(z!==0||N<I)&&L!==-1;L--,N++)z+=256*q[L]>>>0,q[L]=z%f>>>0,z=z/f>>>0;if(z!==0)throw new Error("Non-zero carry");I=N,D++}for(var W=G-I;W!==G&&q[W]===0;)W++;for(var X=h.repeat(R);W<G;++W)X+=t.charAt(q[W]);return X}function v(w){if(typeof w!="string")throw new TypeError("Expected String");if(w.length===0)return new Uint8Array;var R=0;if(w[R]!==" "){for(var I=0,D=0;w[R]===h;)I++,R++;for(var P=(w.length-R)*g+1>>>0,G=new Uint8Array(P);w[R];){var q=r[w.charCodeAt(R)];if(q===255)return;for(var z=0,N=P-1;(q!==0||z<D)&&N!==-1;N--,z++)q+=f*G[N]>>>0,G[N]=q%256>>>0,q=q/256>>>0;if(q!==0)throw new Error("Non-zero carry");D=z,R++}if(w[R]!==" "){for(var L=P-D;L!==P&&G[L]===0;)L++;for(var W=new Uint8Array(I+(P-L)),X=I;L!==P;)W[X++]=G[L++];return W}}}function b(w){var R=v(w);if(R)return R;throw new Error(`Non-${e} character`)}return{encode:y,decodeUnsafe:v,decode:b}}var dQ=pQ,mQ=dQ;vO.exports=mQ});var Ws=x(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});var TO=new Uint8Array(0),gQ=t=>t.reduce((e,r)=>e+r.toString(16).padStart(2,"0"),""),bQ=t=>{let e=t.match(/../g);return e?new Uint8Array(e.map(r=>parseInt(r,16))):TO},yQ=(t,e)=>{if(t===e)return!0;if(t.byteLength!==e.byteLength)return!1;for(let r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0},_Q=t=>{if(t instanceof Uint8Array&&t.constructor.name==="Uint8Array")return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")},wQ=t=>t instanceof ArrayBuffer||ArrayBuffer.isView(t),EQ=t=>new TextEncoder().encode(t),vQ=t=>new TextDecoder().decode(t);zs.coerce=_Q;zs.empty=TO;zs.equals=yQ;zs.fromHex=bQ;zs.fromString=EQ;zs.isBinary=wQ;zs.toHex=gQ;zs.toString=vQ});var ds=x(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var SQ=SO(),TQ=Ws(),__=class{constructor(e,r,n){this.name=e,this.prefix=r,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},w_=class{constructor(e,r,n){if(this.name=e,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return v_(this,e)}},E_=class{constructor(e){this.decoders=e}or(e){return v_(this,e)}decode(e){let r=e[0],n=this.decoders[r];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},v_=(t,e)=>new E_({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}}),ld=class{constructor(e,r,n,s){this.name=e,this.prefix=r,this.baseEncode=n,this.baseDecode=s,this.encoder=new __(e,r,n),this.decoder=new w_(e,r,s)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},S_=({name:t,prefix:e,encode:r,decode:n})=>new ld(t,e,r,n),kQ=({prefix:t,name:e,alphabet:r})=>{let{encode:n,decode:s}=SQ(r,e);return S_({prefix:t,name:e,encode:n,decode:o=>TQ.coerce(s(o))})},xQ=(t,e,r,n)=>{let s={};for(let d=0;d<e.length;++d)s[e[d]]=d;let o=t.length;for(;t[o-1]==="=";)--o;let u=new Uint8Array(o*r/8|0),f=0,h=0,g=0;for(let d=0;d<o;++d){let y=s[t[d]];if(y===void 0)throw new SyntaxError(`Non-${n} character`);h=h<<r|y,f+=r,f>=8&&(f-=8,u[g++]=255&h>>f)}if(f>=r||255&h<<8-f)throw new SyntaxError("Unexpected end of data");return u},AQ=(t,e,r)=>{let n=e[e.length-1]==="=",s=(1<<r)-1,o="",u=0,f=0;for(let h=0;h<t.length;++h)for(f=f<<8|t[h],u+=8;u>r;)u-=r,o+=e[s&f>>u];if(u&&(o+=e[s&f<<r-u]),n)for(;o.length*r&7;)o+="=";return o},RQ=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>S_({prefix:e,name:t,encode(s){return AQ(s,n,r)},decode(s){return xQ(s,n,r,t)}});Ta.Codec=ld;Ta.baseX=kQ;Ta.from=S_;Ta.or=v_;Ta.rfc4648=RQ});var xO=x(T_=>{"use strict";Object.defineProperty(T_,"__esModule",{value:!0});var CQ=ds(),kO=Ws(),DQ=CQ.from({prefix:"\0",name:"identity",encode:t=>kO.toString(t),decode:t=>kO.fromString(t)});T_.identity=DQ});var AO=x(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});var OQ=ds(),PQ=OQ.rfc4648({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});k_.base2=PQ});var RO=x(x_=>{"use strict";Object.defineProperty(x_,"__esModule",{value:!0});var FQ=ds(),LQ=FQ.rfc4648({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});x_.base8=LQ});var CO=x(A_=>{"use strict";Object.defineProperty(A_,"__esModule",{value:!0});var IQ=ds(),BQ=IQ.baseX({prefix:"9",name:"base10",alphabet:"0123456789"});A_.base10=BQ});var OO=x(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});var DO=ds(),GQ=DO.rfc4648({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),qQ=DO.rfc4648({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});fd.base16=GQ;fd.base16upper=qQ});var R_=x(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});var Ii=ds(),UQ=Ii.rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),NQ=Ii.rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),MQ=Ii.rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),jQ=Ii.rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),$Q=Ii.rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),HQ=Ii.rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),zQ=Ii.rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),WQ=Ii.rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),VQ=Ii.rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});ms.base32=UQ;ms.base32hex=$Q;ms.base32hexpad=zQ;ms.base32hexpadupper=WQ;ms.base32hexupper=HQ;ms.base32pad=MQ;ms.base32padupper=jQ;ms.base32upper=NQ;ms.base32z=VQ});var FO=x(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});var PO=ds(),KQ=PO.baseX({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),YQ=PO.baseX({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});hd.base36=KQ;hd.base36upper=YQ});var C_=x(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});var LO=ds(),JQ=LO.baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),QQ=LO.baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});pd.base58btc=JQ;pd.base58flickr=QQ});var IO=x(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var dd=ds(),XQ=dd.rfc4648({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),ZQ=dd.rfc4648({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),eX=dd.rfc4648({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),tX=dd.rfc4648({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});Bu.base64=XQ;Bu.base64pad=ZQ;Bu.base64url=eX;Bu.base64urlpad=tX});var GO=x(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0});var rX=ds(),BO=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),nX=BO.reduce((t,e,r)=>(t[r]=e,t),[]),sX=BO.reduce((t,e,r)=>(t[e.codePointAt(0)]=r,t),[]);function iX(t){return t.reduce((e,r)=>(e+=nX[r],e),"")}function oX(t){let e=[];for(let r of t){let n=sX[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);e.push(n)}return new Uint8Array(e)}var aX=rX.from({prefix:"\u{1F680}",name:"base256emoji",encode:iX,decode:oX});D_.base256emoji=aX});var jO=x((Gfe,MO)=>{"use strict";var uX=NO,qO=128,cX=127,lX=~cX,fX=Math.pow(2,31);function NO(t,e,r){e=e||[],r=r||0;for(var n=r;t>=fX;)e[r++]=t&255|qO,t/=128;for(;t&lX;)e[r++]=t&255|qO,t>>>=7;return e[r]=t|0,NO.bytes=r-n+1,e}var hX=O_,pX=128,UO=127;function O_(t,n){var r=0,n=n||0,s=0,o=n,u,f=t.length;do{if(o>=f)throw O_.bytes=0,new RangeError("Could not decode varint");u=t[o++],r+=s<28?(u&UO)<<s:(u&UO)*Math.pow(2,s),s+=7}while(u>=pX);return O_.bytes=o-n,r}var dX=Math.pow(2,7),mX=Math.pow(2,14),gX=Math.pow(2,21),bX=Math.pow(2,28),yX=Math.pow(2,35),_X=Math.pow(2,42),wX=Math.pow(2,49),EX=Math.pow(2,56),vX=Math.pow(2,63),SX=function(t){return t<dX?1:t<mX?2:t<gX?3:t<bX?4:t<yX?5:t<_X?6:t<wX?7:t<EX?8:t<vX?9:10},TX={encode:uX,decode:hX,encodingLength:SX},kX=TX,xX=kX;MO.exports=xX});var Al=x(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var md=jO(),AX=(t,e=0)=>[md.decode(t,e),md.decode.bytes],RX=(t,e,r=0)=>(md.encode(t,e,r),e),CX=t=>md.encodingLength(t);xl.decode=AX;xl.encodeTo=RX;xl.encodingLength=CX});var Uu=x(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var $O=Ws(),Gu=Al(),DX=(t,e)=>{let r=e.byteLength,n=Gu.encodingLength(t),s=n+Gu.encodingLength(r),o=new Uint8Array(s+r);return Gu.encodeTo(t,o,0),Gu.encodeTo(r,o,n),o.set(e,s),new Rl(t,r,e,o)},OX=t=>{let e=$O.coerce(t),[r,n]=Gu.decode(e),[s,o]=Gu.decode(e.subarray(n)),u=e.subarray(n+o);if(u.byteLength!==s)throw new Error("Incorrect length");return new Rl(r,s,u,e)},PX=(t,e)=>t===e?!0:t.code===e.code&&t.size===e.size&&$O.equals(t.bytes,e.bytes),Rl=class{constructor(e,r,n,s){this.code=e,this.size=r,this.digest=n,this.bytes=s}};qu.Digest=Rl;qu.create=DX;qu.decode=OX;qu.equals=PX});var yd=x(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});var HO=Uu(),FX=({name:t,code:e,encode:r})=>new gd(t,e,r),gd=class{constructor(e,r,n){this.name=e,this.code=r,this.encode=n}digest(e){if(e instanceof Uint8Array){let r=this.encode(e);return r instanceof Uint8Array?HO.create(this.code,r):r.then(n=>HO.create(this.code,n))}else throw Error("Unknown type, must be binary type")}};bd.Hasher=gd;bd.from=FX});var KO=x(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});var LX=require("crypto"),zO=yd(),WO=Ws();function IX(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var VO=IX(LX),BX=zO.from({name:"sha2-256",code:18,encode:t=>WO.coerce(VO.default.createHash("sha256").update(t).digest())}),GX=zO.from({name:"sha2-512",code:19,encode:t=>WO.coerce(VO.default.createHash("sha512").update(t).digest())});_d.sha256=BX;_d.sha512=GX});var QO=x(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0});var qX=Ws(),UX=Uu(),YO=0,NX="identity",JO=qX.coerce,MX=t=>UX.create(YO,JO(t)),jX={code:YO,name:NX,encode:JO,digest:MX};P_.identity=jX});var ZO=x(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});var XO=Ws(),$X="raw",HX=85,zX=t=>XO.coerce(t),WX=t=>XO.coerce(t);Nu.code=HX;Nu.decode=WX;Nu.encode=zX;Nu.name=$X});var eP=x(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var VX=new TextEncoder,KX=new TextDecoder,YX="json",JX=512,QX=t=>VX.encode(JSON.stringify(t)),XX=t=>JSON.parse(KX.decode(t));Mu.code=JX;Mu.decode=XX;Mu.encode=QX;Mu.name=YX});var L_=x(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});var Dl=Al(),wd=Uu(),To=C_(),Sd=R_(),ZX=Ws(),$t=class{constructor(e,r,n,s){this.code=r,this.version=e,this.multihash=n,this.bytes=s,this.byteOffset=s.byteOffset,this.byteLength=s.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:vd,byteLength:vd,code:Ed,version:Ed,multihash:Ed,bytes:Ed,_baseCache:vd,asCID:vd})}toV0(){switch(this.version){case 0:return this;default:{let{code:e,multihash:r}=this;if(e!==Cl)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(r.code!==nZ)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return $t.createV0(r)}}}toV1(){switch(this.version){case 0:{let{code:e,digest:r}=this.multihash,n=wd.create(e,r);return $t.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&wd.equals(this.multihash,e.multihash)}toString(e){let{bytes:r,version:n,_baseCache:s}=this;switch(n){case 0:return tZ(r,s,e||To.base58btc.encoder);default:return rZ(r,s,e||Sd.base32.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return iZ(/^0\.0/,oZ),!!(e&&(e[rP]||e.asCID===e))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof $t)return e;if(e!=null&&e.asCID===e){let{version:r,code:n,multihash:s,bytes:o}=e;return new $t(r,n,s,o||tP(r,n,s.bytes))}else if(e!=null&&e[rP]===!0){let{version:r,multihash:n,code:s}=e,o=wd.decode(n);return $t.create(r,s,o)}else return null}static create(e,r,n){if(typeof r!="number")throw new Error("String codecs are no longer supported");switch(e){case 0:{if(r!==Cl)throw new Error(`Version 0 CID must use dag-pb (code: ${Cl}) block encoding`);return new $t(e,r,n,n.bytes)}case 1:{let s=tP(e,r,n.bytes);return new $t(e,r,n,s)}default:throw new Error("Invalid version")}}static createV0(e){return $t.create(0,Cl,e)}static createV1(e,r){return $t.create(1,e,r)}static decode(e){let[r,n]=$t.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return r}static decodeFirst(e){let r=$t.inspectBytes(e),n=r.size-r.multihashSize,s=ZX.coerce(e.subarray(n,n+r.multihashSize));if(s.byteLength!==r.multihashSize)throw new Error("Incorrect length");let o=s.subarray(r.multihashSize-r.digestSize),u=new wd.Digest(r.multihashCode,r.digestSize,o,s);return[r.version===0?$t.createV0(u):$t.createV1(r.codec,u),e.subarray(r.size)]}static inspectBytes(e){let r=0,n=()=>{let[y,v]=Dl.decode(e.subarray(r));return r+=v,y},s=n(),o=Cl;if(s===18?(s=0,r=0):s===1&&(o=n()),s!==0&&s!==1)throw new RangeError(`Invalid CID version ${s}`);let u=r,f=n(),h=n(),g=r+h,d=g-u;return{version:s,codec:o,multihashCode:f,digestSize:h,multihashSize:d,size:g}}static parse(e,r){let[n,s]=eZ(e,r),o=$t.decode(s);return o._baseCache.set(n,e),o}},eZ=(t,e)=>{switch(t[0]){case"Q":{let r=e||To.base58btc;return[To.base58btc.prefix,r.decode(`${To.base58btc.prefix}${t}`)]}case To.base58btc.prefix:{let r=e||To.base58btc;return[To.base58btc.prefix,r.decode(t)]}case Sd.base32.prefix:{let r=e||Sd.base32;return[Sd.base32.prefix,r.decode(t)]}default:{if(e==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[t[0],e.decode(t)]}}},tZ=(t,e,r)=>{let{prefix:n}=r;if(n!==To.base58btc.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let s=e.get(n);if(s==null){let o=r.encode(t).slice(1);return e.set(n,o),o}else return s},rZ=(t,e,r)=>{let{prefix:n}=r,s=e.get(n);if(s==null){let o=r.encode(t);return e.set(n,o),o}else return s},Cl=112,nZ=18,tP=(t,e,r)=>{let n=Dl.encodingLength(t),s=n+Dl.encodingLength(e),o=new Uint8Array(s+r.byteLength);return Dl.encodeTo(t,o,0),Dl.encodeTo(e,o,n),o.set(r,s),o},rP=Symbol.for("@ipld/js-cid/CID"),Ed={writable:!1,configurable:!1,enumerable:!0},vd={writable:!1,enumerable:!1,configurable:!1},sZ="0.0.0-dev",iZ=(t,e)=>{if(t.test(sZ))console.warn(e);else throw new Error(e)},oZ=`CID.isCID(v) is deprecated and will be removed in the next major release.
|
|
63
|
+
Following code pattern:
|
|
64
|
+
|
|
65
|
+
if (CID.isCID(value)) {
|
|
66
|
+
doSomethingWithCID(value)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
Is replaced with:
|
|
70
|
+
|
|
71
|
+
const cid = CID.asCID(value)
|
|
72
|
+
if (cid) {
|
|
73
|
+
// Make sure to use cid instead of value
|
|
74
|
+
doSomethingWithCID(cid)
|
|
75
|
+
}
|
|
76
|
+
`;F_.CID=$t});var nP=x(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var aZ=L_(),uZ=Al(),cZ=Ws(),lZ=yd(),fZ=Uu();ka.CID=aZ.CID;ka.varint=uZ;ka.bytes=cZ;ka.hasher=lZ;ka.digest=fZ});var I_=x(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});var hZ=xO(),pZ=AO(),dZ=RO(),mZ=CO(),gZ=OO(),bZ=R_(),yZ=FO(),_Z=C_(),wZ=IO(),EZ=GO(),vZ=KO(),SZ=QO(),TZ=ZO(),kZ=eP();nP();var xZ=L_(),AZ=yd(),RZ=Uu(),CZ=Al(),DZ=Ws(),OZ={...hZ,...pZ,...dZ,...mZ,...gZ,...bZ,...yZ,..._Z,...wZ,...EZ},PZ={...vZ,...SZ},FZ={raw:TZ,json:kZ};Vs.CID=xZ.CID;Vs.hasher=AZ;Vs.digest=RZ;Vs.varint=CZ;Vs.bytes=DZ;Vs.bases=OZ;Vs.codecs=FZ;Vs.hashes=PZ});var Td=x(B_=>{"use strict";Object.defineProperty(B_,"__esModule",{value:!0});function LZ(t){return globalThis.Buffer!=null?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t}B_.asUint8Array=LZ});var G_=x(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var sP=Td();function IZ(t=0){return globalThis.Buffer!=null&&globalThis.Buffer.alloc!=null?sP.asUint8Array(globalThis.Buffer.alloc(t)):new Uint8Array(t)}function BZ(t=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?sP.asUint8Array(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}kd.alloc=IZ;kd.allocUnsafe=BZ});var U_=x((Jfe,uP)=>{"use strict";var iP=I_(),GZ=G_();function aP(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}var oP=aP("utf8","u",t=>"u"+new TextDecoder("utf8").decode(t),t=>new TextEncoder().encode(t.substring(1))),q_=aP("ascii","a",t=>{let e="a";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},t=>{t=t.substring(1);let e=GZ.allocUnsafe(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}),qZ={utf8:oP,"utf-8":oP,hex:iP.bases.base16,latin1:q_,ascii:q_,binary:q_,...iP.bases};uP.exports=qZ});var xd=x(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0});var UZ=U_();function NZ(t,e="utf8"){let r=UZ[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString("utf8"):r.encoder.encode(t).substring(1)}N_.toString=NZ});var Ol=x(M_=>{"use strict";Object.defineProperty(M_,"__esModule",{value:!0});var MZ=U_(),jZ=Td();function $Z(t,e="utf8"){let r=MZ[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?jZ.asUint8Array(globalThis.Buffer.from(t,"utf-8")):r.decoder.decode(`${r.prefix}${t}`)}M_.fromString=$Z});var Pl=x(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0});var HZ=G_(),zZ=Td();function WZ(t,e){e||(e=t.reduce((s,o)=>s+o.length,0));let r=HZ.allocUnsafe(e),n=0;for(let s of t)r.set(s,n),n+=s.length;return zZ.asUint8Array(r)}j_.concat=WZ});var Ll=x((ehe,dP)=>{"use strict";var cP=b_(),ju=_O(),{names:Fl}=EO(),{toString:Ad}=xd(),{fromString:VZ}=Ol(),{concat:KZ}=Pl(),$u={};for(let t in Fl){let e=t;$u[Fl[e]]=e}Object.freeze($u);function YZ(t){if(!(t instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return Ad(t,"base16")}function JZ(t){return VZ(t,"base16")}function QZ(t){if(!(t instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return Ad(cP.encode("base58btc",t)).slice(1)}function XZ(t){let e=t instanceof Uint8Array?Ad(t):t;return cP.decode("z"+e)}function lP(t){if(!(t instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(t.length<2)throw new Error("multihash too short. must be > 2 bytes.");let e=ju.decode(t);if(!hP(e))throw new Error(`multihash unknown function code: 0x${e.toString(16)}`);t=t.slice(ju.decode.bytes);let r=ju.decode(t);if(r<0)throw new Error(`multihash invalid length: ${r}`);if(t=t.slice(ju.decode.bytes),t.length!==r)throw new Error(`multihash length inconsistent: 0x${Ad(t,"base16")}`);return{code:e,name:$u[e],length:r,digest:t}}function ZZ(t,e,r){if(!t||e===void 0)throw new Error("multihash encode requires at least two args: digest, code");let n=fP(e);if(!(t instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(r==null&&(r=t.length),r&&t.length!==r)throw new Error("digest length should be equal to specified length.");let s=ju.encode(n),o=ju.encode(r);return KZ([s,o,t],s.length+o.length+t.length)}function fP(t){let e=t;if(typeof t=="string"){if(Fl[t]===void 0)throw new Error(`Unrecognized hash function named: ${t}`);e=Fl[t]}if(typeof e!="number")throw new Error(`Hash function code should be a number. Got: ${e}`);if($u[e]===void 0&&!$_(e))throw new Error(`Unrecognized function code: ${e}`);return e}function $_(t){return t>0&&t<16}function hP(t){return!!($_(t)||$u[t])}function pP(t){lP(t)}function eee(t){return pP(t),t.subarray(0,2)}dP.exports={names:Fl,codes:$u,toHexString:YZ,fromHexString:JZ,toB58String:QZ,fromB58String:XZ,decode:lP,encode:ZZ,coerceCode:fP,isAppCode:$_,validate:pP,prefix:eee,isValidCode:hP}});var mP=x((the,Rd)=>{(function(){"use strict";var t="input is invalid type",e="finalize already called",r=typeof window=="object",n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var s=!r&&typeof self=="object",o=!n.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?n=global:s&&(n=self);var u=!n.JS_SHA3_NO_COMMON_JS&&typeof Rd=="object"&&Rd.exports,f=typeof define=="function"&&define.amd,h=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",g="0123456789abcdef".split(""),d=[31,7936,2031616,520093696],y=[4,1024,262144,67108864],v=[1,256,65536,16777216],b=[6,1536,393216,100663296],w=[0,8,16,24],R=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],I=[224,256,384,512],D=[128,256],P=["hex","buffer","arrayBuffer","array","digest"],G={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(S){return Object.prototype.toString.call(S)==="[object Array]"}),h&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(S){return typeof S=="object"&&S.buffer&&S.buffer.constructor===ArrayBuffer});for(var q=function(S,Y,te){return function(ce){return new Je(S,Y,S).update(ce)[te]()}},z=function(S,Y,te){return function(ce,Q){return new Je(S,Y,Q).update(ce)[te]()}},N=function(S,Y,te){return function(ce,Q,ue,J){return Re["cshake"+S].update(ce,Q,ue,J)[te]()}},L=function(S,Y,te){return function(ce,Q,ue,J){return Re["kmac"+S].update(ce,Q,ue,J)[te]()}},W=function(S,Y,te,ce){for(var Q=0;Q<P.length;++Q){var ue=P[Q];S[ue]=Y(te,ce,ue)}return S},X=function(S,Y){var te=q(S,Y,"hex");return te.create=function(){return new Je(S,Y,S)},te.update=function(ce){return te.create().update(ce)},W(te,q,S,Y)},le=function(S,Y){var te=z(S,Y,"hex");return te.create=function(ce){return new Je(S,Y,ce)},te.update=function(ce,Q){return te.create(Q).update(ce)},W(te,z,S,Y)},M=function(S,Y){var te=G[S],ce=N(S,Y,"hex");return ce.create=function(Q,ue,J){return!ue&&!J?Re["shake"+S].create(Q):new Je(S,Y,Q).bytepad([ue,J],te)},ce.update=function(Q,ue,J,H){return ce.create(ue,J,H).update(Q)},W(ce,N,S,Y)},de=function(S,Y){var te=G[S],ce=L(S,Y,"hex");return ce.create=function(Q,ue,J){return new Vt(S,Y,ue).bytepad(["KMAC",J],te).bytepad([Q],te)},ce.update=function(Q,ue,J,H){return ce.create(Q,J,H).update(ue)},W(ce,L,S,Y)},ae=[{name:"keccak",padding:v,bits:I,createMethod:X},{name:"sha3",padding:b,bits:I,createMethod:X},{name:"shake",padding:d,bits:D,createMethod:le},{name:"cshake",padding:y,bits:D,createMethod:M},{name:"kmac",padding:y,bits:D,createMethod:de}],Re={},j=[],$=0;$<ae.length;++$)for(var ve=ae[$],ge=ve.bits,ye=0;ye<ge.length;++ye){var _t=ve.name+"_"+ge[ye];if(j.push(_t),Re[_t]=ve.createMethod(ge[ye],ve.padding),ve.name!=="sha3"){var ht=ve.name+ge[ye];j.push(ht),Re[ht]=Re[_t]}}function Je(S,Y,te){this.blocks=[],this.s=[],this.padding=Y,this.outputBits=te,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(S<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=te>>5,this.extraBytes=(te&31)>>3;for(var ce=0;ce<50;++ce)this.s[ce]=0}Je.prototype.update=function(S){if(this.finalized)throw new Error(e);var Y,te=typeof S;if(te!=="string"){if(te==="object"){if(S===null)throw new Error(t);if(h&&S.constructor===ArrayBuffer)S=new Uint8Array(S);else if(!Array.isArray(S)&&(!h||!ArrayBuffer.isView(S)))throw new Error(t)}else throw new Error(t);Y=!0}for(var ce=this.blocks,Q=this.byteCount,ue=S.length,J=this.blockCount,H=0,we=this.s,V,se;H<ue;){if(this.reset)for(this.reset=!1,ce[0]=this.block,V=1;V<J+1;++V)ce[V]=0;if(Y)for(V=this.start;H<ue&&V<Q;++H)ce[V>>2]|=S[H]<<w[V++&3];else for(V=this.start;H<ue&&V<Q;++H)se=S.charCodeAt(H),se<128?ce[V>>2]|=se<<w[V++&3]:se<2048?(ce[V>>2]|=(192|se>>6)<<w[V++&3],ce[V>>2]|=(128|se&63)<<w[V++&3]):se<55296||se>=57344?(ce[V>>2]|=(224|se>>12)<<w[V++&3],ce[V>>2]|=(128|se>>6&63)<<w[V++&3],ce[V>>2]|=(128|se&63)<<w[V++&3]):(se=65536+((se&1023)<<10|S.charCodeAt(++H)&1023),ce[V>>2]|=(240|se>>18)<<w[V++&3],ce[V>>2]|=(128|se>>12&63)<<w[V++&3],ce[V>>2]|=(128|se>>6&63)<<w[V++&3],ce[V>>2]|=(128|se&63)<<w[V++&3]);if(this.lastByteIndex=V,V>=Q){for(this.start=V-Q,this.block=ce[J],V=0;V<J;++V)we[V]^=ce[V];Bt(we),this.reset=!0}else this.start=V}return this},Je.prototype.encode=function(S,Y){var te=S&255,ce=1,Q=[te];for(S=S>>8,te=S&255;te>0;)Q.unshift(te),S=S>>8,te=S&255,++ce;return Y?Q.push(ce):Q.unshift(ce),this.update(Q),Q.length},Je.prototype.encodeString=function(S){var Y,te=typeof S;if(te!=="string"){if(te==="object"){if(S===null)throw new Error(t);if(h&&S.constructor===ArrayBuffer)S=new Uint8Array(S);else if(!Array.isArray(S)&&(!h||!ArrayBuffer.isView(S)))throw new Error(t)}else throw new Error(t);Y=!0}var ce=0,Q=S.length;if(Y)ce=Q;else for(var ue=0;ue<S.length;++ue){var J=S.charCodeAt(ue);J<128?ce+=1:J<2048?ce+=2:J<55296||J>=57344?ce+=3:(J=65536+((J&1023)<<10|S.charCodeAt(++ue)&1023),ce+=4)}return ce+=this.encode(ce*8),this.update(S),ce},Je.prototype.bytepad=function(S,Y){for(var te=this.encode(Y),ce=0;ce<S.length;++ce)te+=this.encodeString(S[ce]);var Q=Y-te%Y,ue=[];return ue.length=Q,this.update(ue),this},Je.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var S=this.blocks,Y=this.lastByteIndex,te=this.blockCount,ce=this.s;if(S[Y>>2]|=this.padding[Y&3],this.lastByteIndex===this.byteCount)for(S[0]=S[te],Y=1;Y<te+1;++Y)S[Y]=0;for(S[te-1]|=2147483648,Y=0;Y<te;++Y)ce[Y]^=S[Y];Bt(ce)}},Je.prototype.toString=Je.prototype.hex=function(){this.finalize();for(var S=this.blockCount,Y=this.s,te=this.outputBlocks,ce=this.extraBytes,Q=0,ue=0,J="",H;ue<te;){for(Q=0;Q<S&&ue<te;++Q,++ue)H=Y[Q],J+=g[H>>4&15]+g[H&15]+g[H>>12&15]+g[H>>8&15]+g[H>>20&15]+g[H>>16&15]+g[H>>28&15]+g[H>>24&15];ue%S===0&&(Bt(Y),Q=0)}return ce&&(H=Y[Q],J+=g[H>>4&15]+g[H&15],ce>1&&(J+=g[H>>12&15]+g[H>>8&15]),ce>2&&(J+=g[H>>20&15]+g[H>>16&15])),J},Je.prototype.arrayBuffer=function(){this.finalize();var S=this.blockCount,Y=this.s,te=this.outputBlocks,ce=this.extraBytes,Q=0,ue=0,J=this.outputBits>>3,H;ce?H=new ArrayBuffer(te+1<<2):H=new ArrayBuffer(J);for(var we=new Uint32Array(H);ue<te;){for(Q=0;Q<S&&ue<te;++Q,++ue)we[ue]=Y[Q];ue%S===0&&Bt(Y)}return ce&&(we[Q]=Y[Q],H=H.slice(0,J)),H},Je.prototype.buffer=Je.prototype.arrayBuffer,Je.prototype.digest=Je.prototype.array=function(){this.finalize();for(var S=this.blockCount,Y=this.s,te=this.outputBlocks,ce=this.extraBytes,Q=0,ue=0,J=[],H,we;ue<te;){for(Q=0;Q<S&&ue<te;++Q,++ue)H=ue<<2,we=Y[Q],J[H]=we&255,J[H+1]=we>>8&255,J[H+2]=we>>16&255,J[H+3]=we>>24&255;ue%S===0&&Bt(Y)}return ce&&(H=ue<<2,we=Y[Q],J[H]=we&255,ce>1&&(J[H+1]=we>>8&255),ce>2&&(J[H+2]=we>>16&255)),J};function Vt(S,Y,te){Je.call(this,S,Y,te)}Vt.prototype=new Je,Vt.prototype.finalize=function(){return this.encode(this.outputBits,!0),Je.prototype.finalize.call(this)};var Bt=function(S){var Y,te,ce,Q,ue,J,H,we,V,se,De,Ke,ft,pt,_r,mn,gn,Gt,bn,wr,Dr,jn,$n,_s,Hn,zn,Wn,Or,Vn,Xs,Kn,Zs,qi,ws,Yn,Es,Ui,Er,yn,Pr,Fr,vs,Lr,Jn,Ss,Qn,Xn,ei,ti,ri,Ts,ni,Ni,Mi,si,ii,Zn,ji,es,_n,ts,kt,ks;for(ce=0;ce<48;ce+=2)Q=S[0]^S[10]^S[20]^S[30]^S[40],ue=S[1]^S[11]^S[21]^S[31]^S[41],J=S[2]^S[12]^S[22]^S[32]^S[42],H=S[3]^S[13]^S[23]^S[33]^S[43],we=S[4]^S[14]^S[24]^S[34]^S[44],V=S[5]^S[15]^S[25]^S[35]^S[45],se=S[6]^S[16]^S[26]^S[36]^S[46],De=S[7]^S[17]^S[27]^S[37]^S[47],Ke=S[8]^S[18]^S[28]^S[38]^S[48],ft=S[9]^S[19]^S[29]^S[39]^S[49],Y=Ke^(J<<1|H>>>31),te=ft^(H<<1|J>>>31),S[0]^=Y,S[1]^=te,S[10]^=Y,S[11]^=te,S[20]^=Y,S[21]^=te,S[30]^=Y,S[31]^=te,S[40]^=Y,S[41]^=te,Y=Q^(we<<1|V>>>31),te=ue^(V<<1|we>>>31),S[2]^=Y,S[3]^=te,S[12]^=Y,S[13]^=te,S[22]^=Y,S[23]^=te,S[32]^=Y,S[33]^=te,S[42]^=Y,S[43]^=te,Y=J^(se<<1|De>>>31),te=H^(De<<1|se>>>31),S[4]^=Y,S[5]^=te,S[14]^=Y,S[15]^=te,S[24]^=Y,S[25]^=te,S[34]^=Y,S[35]^=te,S[44]^=Y,S[45]^=te,Y=we^(Ke<<1|ft>>>31),te=V^(ft<<1|Ke>>>31),S[6]^=Y,S[7]^=te,S[16]^=Y,S[17]^=te,S[26]^=Y,S[27]^=te,S[36]^=Y,S[37]^=te,S[46]^=Y,S[47]^=te,Y=se^(Q<<1|ue>>>31),te=De^(ue<<1|Q>>>31),S[8]^=Y,S[9]^=te,S[18]^=Y,S[19]^=te,S[28]^=Y,S[29]^=te,S[38]^=Y,S[39]^=te,S[48]^=Y,S[49]^=te,pt=S[0],_r=S[1],Qn=S[11]<<4|S[10]>>>28,Xn=S[10]<<4|S[11]>>>28,Or=S[20]<<3|S[21]>>>29,Vn=S[21]<<3|S[20]>>>29,_n=S[31]<<9|S[30]>>>23,ts=S[30]<<9|S[31]>>>23,vs=S[40]<<18|S[41]>>>14,Lr=S[41]<<18|S[40]>>>14,ws=S[2]<<1|S[3]>>>31,Yn=S[3]<<1|S[2]>>>31,mn=S[13]<<12|S[12]>>>20,gn=S[12]<<12|S[13]>>>20,ei=S[22]<<10|S[23]>>>22,ti=S[23]<<10|S[22]>>>22,Xs=S[33]<<13|S[32]>>>19,Kn=S[32]<<13|S[33]>>>19,kt=S[42]<<2|S[43]>>>30,ks=S[43]<<2|S[42]>>>30,Mi=S[5]<<30|S[4]>>>2,si=S[4]<<30|S[5]>>>2,Es=S[14]<<6|S[15]>>>26,Ui=S[15]<<6|S[14]>>>26,Gt=S[25]<<11|S[24]>>>21,bn=S[24]<<11|S[25]>>>21,ri=S[34]<<15|S[35]>>>17,Ts=S[35]<<15|S[34]>>>17,Zs=S[45]<<29|S[44]>>>3,qi=S[44]<<29|S[45]>>>3,_s=S[6]<<28|S[7]>>>4,Hn=S[7]<<28|S[6]>>>4,ii=S[17]<<23|S[16]>>>9,Zn=S[16]<<23|S[17]>>>9,Er=S[26]<<25|S[27]>>>7,yn=S[27]<<25|S[26]>>>7,wr=S[36]<<21|S[37]>>>11,Dr=S[37]<<21|S[36]>>>11,ni=S[47]<<24|S[46]>>>8,Ni=S[46]<<24|S[47]>>>8,Jn=S[8]<<27|S[9]>>>5,Ss=S[9]<<27|S[8]>>>5,zn=S[18]<<20|S[19]>>>12,Wn=S[19]<<20|S[18]>>>12,ji=S[29]<<7|S[28]>>>25,es=S[28]<<7|S[29]>>>25,Pr=S[38]<<8|S[39]>>>24,Fr=S[39]<<8|S[38]>>>24,jn=S[48]<<14|S[49]>>>18,$n=S[49]<<14|S[48]>>>18,S[0]=pt^~mn&Gt,S[1]=_r^~gn&bn,S[10]=_s^~zn&Or,S[11]=Hn^~Wn&Vn,S[20]=ws^~Es&Er,S[21]=Yn^~Ui&yn,S[30]=Jn^~Qn&ei,S[31]=Ss^~Xn&ti,S[40]=Mi^~ii&ji,S[41]=si^~Zn&es,S[2]=mn^~Gt&wr,S[3]=gn^~bn&Dr,S[12]=zn^~Or&Xs,S[13]=Wn^~Vn&Kn,S[22]=Es^~Er&Pr,S[23]=Ui^~yn&Fr,S[32]=Qn^~ei&ri,S[33]=Xn^~ti&Ts,S[42]=ii^~ji&_n,S[43]=Zn^~es&ts,S[4]=Gt^~wr&jn,S[5]=bn^~Dr&$n,S[14]=Or^~Xs&Zs,S[15]=Vn^~Kn&qi,S[24]=Er^~Pr&vs,S[25]=yn^~Fr&Lr,S[34]=ei^~ri&ni,S[35]=ti^~Ts&Ni,S[44]=ji^~_n&kt,S[45]=es^~ts&ks,S[6]=wr^~jn&pt,S[7]=Dr^~$n&_r,S[16]=Xs^~Zs&_s,S[17]=Kn^~qi&Hn,S[26]=Pr^~vs&ws,S[27]=Fr^~Lr&Yn,S[36]=ri^~ni&Jn,S[37]=Ts^~Ni&Ss,S[46]=_n^~kt&Mi,S[47]=ts^~ks&si,S[8]=jn^~pt&mn,S[9]=$n^~_r&gn,S[18]=Zs^~_s&zn,S[19]=qi^~Hn&Wn,S[28]=vs^~ws&Es,S[29]=Lr^~Yn&Ui,S[38]=ni^~Jn&Qn,S[39]=Ni^~Ss&Xn,S[48]=kt^~Mi&ii,S[49]=ks^~si&Zn,S[0]^=R[ce],S[1]^=R[ce+1]};if(u)Rd.exports=Re;else{for($=0;$<j.length;++$)n[j[$]]=Re[j[$]];f&&define(function(){return Re})}})()});var gP=x((Il,Cd)=>{(function(t,e){"use strict";var r={version:"3.0.0",x86:{},x64:{},inputValidation:!0};function n(b){if(!Array.isArray(b)&&!ArrayBuffer.isView(b))return!1;for(var w=0;w<b.length;w++)if(!Number.isInteger(b[w])||b[w]<0||b[w]>255)return!1;return!0}function s(b,w){return(b&65535)*w+(((b>>>16)*w&65535)<<16)}function o(b,w){return b<<w|b>>>32-w}function u(b){return b^=b>>>16,b=s(b,2246822507),b^=b>>>13,b=s(b,3266489909),b^=b>>>16,b}function f(b,w){b=[b[0]>>>16,b[0]&65535,b[1]>>>16,b[1]&65535],w=[w[0]>>>16,w[0]&65535,w[1]>>>16,w[1]&65535];var R=[0,0,0,0];return R[3]+=b[3]+w[3],R[2]+=R[3]>>>16,R[3]&=65535,R[2]+=b[2]+w[2],R[1]+=R[2]>>>16,R[2]&=65535,R[1]+=b[1]+w[1],R[0]+=R[1]>>>16,R[1]&=65535,R[0]+=b[0]+w[0],R[0]&=65535,[R[0]<<16|R[1],R[2]<<16|R[3]]}function h(b,w){b=[b[0]>>>16,b[0]&65535,b[1]>>>16,b[1]&65535],w=[w[0]>>>16,w[0]&65535,w[1]>>>16,w[1]&65535];var R=[0,0,0,0];return R[3]+=b[3]*w[3],R[2]+=R[3]>>>16,R[3]&=65535,R[2]+=b[2]*w[3],R[1]+=R[2]>>>16,R[2]&=65535,R[2]+=b[3]*w[2],R[1]+=R[2]>>>16,R[2]&=65535,R[1]+=b[1]*w[3],R[0]+=R[1]>>>16,R[1]&=65535,R[1]+=b[2]*w[2],R[0]+=R[1]>>>16,R[1]&=65535,R[1]+=b[3]*w[1],R[0]+=R[1]>>>16,R[1]&=65535,R[0]+=b[0]*w[3]+b[1]*w[2]+b[2]*w[1]+b[3]*w[0],R[0]&=65535,[R[0]<<16|R[1],R[2]<<16|R[3]]}function g(b,w){return w%=64,w===32?[b[1],b[0]]:w<32?[b[0]<<w|b[1]>>>32-w,b[1]<<w|b[0]>>>32-w]:(w-=32,[b[1]<<w|b[0]>>>32-w,b[0]<<w|b[1]>>>32-w])}function d(b,w){return w%=64,w===0?b:w<32?[b[0]<<w|b[1]>>>32-w,b[1]<<w]:[b[1]<<w-32,0]}function y(b,w){return[b[0]^w[0],b[1]^w[1]]}function v(b){return b=y(b,[0,b[0]>>>1]),b=h(b,[4283543511,3981806797]),b=y(b,[0,b[0]>>>1]),b=h(b,[3301882366,444984403]),b=y(b,[0,b[0]>>>1]),b}r.x86.hash32=function(b,w){if(r.inputValidation&&!n(b))return e;w=w||0;for(var R=b.length%4,I=b.length-R,D=w,P=0,G=3432918353,q=461845907,z=0;z<I;z=z+4)P=b[z]|b[z+1]<<8|b[z+2]<<16|b[z+3]<<24,P=s(P,G),P=o(P,15),P=s(P,q),D^=P,D=o(D,13),D=s(D,5)+3864292196;switch(P=0,R){case 3:P^=b[z+2]<<16;case 2:P^=b[z+1]<<8;case 1:P^=b[z],P=s(P,G),P=o(P,15),P=s(P,q),D^=P}return D^=b.length,D=u(D),D>>>0},r.x86.hash128=function(b,w){if(r.inputValidation&&!n(b))return e;w=w||0;for(var R=b.length%16,I=b.length-R,D=w,P=w,G=w,q=w,z=0,N=0,L=0,W=0,X=597399067,le=2869860233,M=951274213,de=2716044179,ae=0;ae<I;ae=ae+16)z=b[ae]|b[ae+1]<<8|b[ae+2]<<16|b[ae+3]<<24,N=b[ae+4]|b[ae+5]<<8|b[ae+6]<<16|b[ae+7]<<24,L=b[ae+8]|b[ae+9]<<8|b[ae+10]<<16|b[ae+11]<<24,W=b[ae+12]|b[ae+13]<<8|b[ae+14]<<16|b[ae+15]<<24,z=s(z,X),z=o(z,15),z=s(z,le),D^=z,D=o(D,19),D+=P,D=s(D,5)+1444728091,N=s(N,le),N=o(N,16),N=s(N,M),P^=N,P=o(P,17),P+=G,P=s(P,5)+197830471,L=s(L,M),L=o(L,17),L=s(L,de),G^=L,G=o(G,15),G+=q,G=s(G,5)+2530024501,W=s(W,de),W=o(W,18),W=s(W,X),q^=W,q=o(q,13),q+=D,q=s(q,5)+850148119;switch(z=0,N=0,L=0,W=0,R){case 15:W^=b[ae+14]<<16;case 14:W^=b[ae+13]<<8;case 13:W^=b[ae+12],W=s(W,de),W=o(W,18),W=s(W,X),q^=W;case 12:L^=b[ae+11]<<24;case 11:L^=b[ae+10]<<16;case 10:L^=b[ae+9]<<8;case 9:L^=b[ae+8],L=s(L,M),L=o(L,17),L=s(L,de),G^=L;case 8:N^=b[ae+7]<<24;case 7:N^=b[ae+6]<<16;case 6:N^=b[ae+5]<<8;case 5:N^=b[ae+4],N=s(N,le),N=o(N,16),N=s(N,M),P^=N;case 4:z^=b[ae+3]<<24;case 3:z^=b[ae+2]<<16;case 2:z^=b[ae+1]<<8;case 1:z^=b[ae],z=s(z,X),z=o(z,15),z=s(z,le),D^=z}return D^=b.length,P^=b.length,G^=b.length,q^=b.length,D+=P,D+=G,D+=q,P+=D,G+=D,q+=D,D=u(D),P=u(P),G=u(G),q=u(q),D+=P,D+=G,D+=q,P+=D,G+=D,q+=D,("00000000"+(D>>>0).toString(16)).slice(-8)+("00000000"+(P>>>0).toString(16)).slice(-8)+("00000000"+(G>>>0).toString(16)).slice(-8)+("00000000"+(q>>>0).toString(16)).slice(-8)},r.x64.hash128=function(b,w){if(r.inputValidation&&!n(b))return e;w=w||0;for(var R=b.length%16,I=b.length-R,D=[0,w],P=[0,w],G=[0,0],q=[0,0],z=[2277735313,289559509],N=[1291169091,658871167],L=0;L<I;L=L+16)G=[b[L+4]|b[L+5]<<8|b[L+6]<<16|b[L+7]<<24,b[L]|b[L+1]<<8|b[L+2]<<16|b[L+3]<<24],q=[b[L+12]|b[L+13]<<8|b[L+14]<<16|b[L+15]<<24,b[L+8]|b[L+9]<<8|b[L+10]<<16|b[L+11]<<24],G=h(G,z),G=g(G,31),G=h(G,N),D=y(D,G),D=g(D,27),D=f(D,P),D=f(h(D,[0,5]),[0,1390208809]),q=h(q,N),q=g(q,33),q=h(q,z),P=y(P,q),P=g(P,31),P=f(P,D),P=f(h(P,[0,5]),[0,944331445]);switch(G=[0,0],q=[0,0],R){case 15:q=y(q,d([0,b[L+14]],48));case 14:q=y(q,d([0,b[L+13]],40));case 13:q=y(q,d([0,b[L+12]],32));case 12:q=y(q,d([0,b[L+11]],24));case 11:q=y(q,d([0,b[L+10]],16));case 10:q=y(q,d([0,b[L+9]],8));case 9:q=y(q,[0,b[L+8]]),q=h(q,N),q=g(q,33),q=h(q,z),P=y(P,q);case 8:G=y(G,d([0,b[L+7]],56));case 7:G=y(G,d([0,b[L+6]],48));case 6:G=y(G,d([0,b[L+5]],40));case 5:G=y(G,d([0,b[L+4]],32));case 4:G=y(G,d([0,b[L+3]],24));case 3:G=y(G,d([0,b[L+2]],16));case 2:G=y(G,d([0,b[L+1]],8));case 1:G=y(G,[0,b[L]]),G=h(G,z),G=g(G,31),G=h(G,N),D=y(D,G)}return D=y(D,[0,b.length]),P=y(P,[0,b.length]),D=f(D,P),P=f(P,D),D=v(D),P=v(P),D=f(D,P),P=f(P,D),("00000000"+(D[0]>>>0).toString(16)).slice(-8)+("00000000"+(D[1]>>>0).toString(16)).slice(-8)+("00000000"+(P[0]>>>0).toString(16)).slice(-8)+("00000000"+(P[1]>>>0).toString(16)).slice(-8)},typeof Il<"u"?(typeof Cd<"u"&&Cd.exports&&(Il=Cd.exports=r),Il.murmurHash3=r):typeof define=="function"&&define.amd?define([],function(){return r}):(r._murmurHash3=t.murmurHash3,r.noConflict=function(){return t.murmurHash3=r._murmurHash3,r._murmurHash3=e,r.noConflict=e,r},t.murmurHash3=r)})(Il)});var yP=x((rhe,bP)=>{bP.exports=gP()});var wP=x((nhe,_P)=>{"use strict";var Bl=require("crypto"),tee=Ll(),H_=async(t,e)=>{switch(e){case"sha1":return Bl.createHash("sha1").update(t).digest();case"sha2-256":return Bl.createHash("sha256").update(t).digest();case"sha2-512":return Bl.createHash("sha512").update(t).digest();case"dbl-sha2-256":{let r=Bl.createHash("sha256").update(t).digest();return Bl.createHash("sha256").update(r).digest()}default:throw new Error(`${e} is not a supported algorithm`)}};_P.exports={factory:t=>async e=>H_(e,t),digest:H_,multihashing:async(t,e,r)=>{let n=await H_(t,e);return tee.encode(n,e,r)}}});var vP=x((she,EP)=>{"use strict";var ree=t=>{let e=new Uint8Array(4);for(let r=0;r<4;r++)e[r]=t&255,t=t>>8;return e};EP.exports={fromNumberTo32BitBuf:ree}});var z_=x((ihe,SP)=>{var nee="Input must be an string, Buffer or Uint8Array";function see(t){let e;if(t instanceof Uint8Array)e=t;else if(typeof t=="string")e=new TextEncoder().encode(t);else throw new Error(nee);return e}function iee(t){return Array.prototype.map.call(t,function(e){return(e<16?"0":"")+e.toString(16)}).join("")}function Dd(t){return(4294967296+t).toString(16).substring(1)}function oee(t,e,r){let n=`
|
|
77
|
+
`+t+" = ";for(let s=0;s<e.length;s+=2){if(r===32)n+=Dd(e[s]).toUpperCase(),n+=" ",n+=Dd(e[s+1]).toUpperCase();else if(r===64)n+=Dd(e[s+1]).toUpperCase(),n+=Dd(e[s]).toUpperCase();else throw new Error("Invalid size "+r);s%6===4?n+=`
|
|
78
|
+
`+new Array(t.length+4).join(" "):s<e.length-2&&(n+=" ")}console.log(n)}function aee(t,e,r){let n=new Date().getTime(),s=new Uint8Array(e);for(let u=0;u<e;u++)s[u]=u%256;let o=new Date().getTime();console.log("Generated random input in "+(o-n)+"ms"),n=o;for(let u=0;u<r;u++){let f=t(s),h=new Date().getTime(),g=h-n;n=h,console.log("Hashed in "+g+"ms: "+f.substring(0,20)+"..."),console.log(Math.round(e/(1<<20)/(g/1e3)*100)/100+" MB PER SECOND")}}SP.exports={normalizeInput:see,toHex:iee,debugPrint:oee,testSpeed:aee}});var PP=x((ohe,OP)=>{var Pd=z_();function Od(t,e,r){let n=t[e]+t[r],s=t[e+1]+t[r+1];n>=4294967296&&s++,t[e]=n,t[e+1]=s}function TP(t,e,r,n){let s=t[e]+r;r<0&&(s+=4294967296);let o=t[e+1]+n;s>=4294967296&&o++,t[e]=s,t[e+1]=o}function kP(t,e){return t[e]^t[e+1]<<8^t[e+2]<<16^t[e+3]<<24}function ko(t,e,r,n,s,o){let u=Gl[s],f=Gl[s+1],h=Gl[o],g=Gl[o+1];Od(Ie,t,e),TP(Ie,t,u,f);let d=Ie[n]^Ie[t],y=Ie[n+1]^Ie[t+1];Ie[n]=y,Ie[n+1]=d,Od(Ie,r,n),d=Ie[e]^Ie[r],y=Ie[e+1]^Ie[r+1],Ie[e]=d>>>24^y<<8,Ie[e+1]=y>>>24^d<<8,Od(Ie,t,e),TP(Ie,t,h,g),d=Ie[n]^Ie[t],y=Ie[n+1]^Ie[t+1],Ie[n]=d>>>16^y<<16,Ie[n+1]=y>>>16^d<<16,Od(Ie,r,n),d=Ie[e]^Ie[r],y=Ie[e+1]^Ie[r+1],Ie[e]=y>>>31^d<<1,Ie[e+1]=d>>>31^y<<1}var xP=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),uee=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],br=new Uint8Array(uee.map(function(t){return t*2})),Ie=new Uint32Array(32),Gl=new Uint32Array(32);function AP(t,e){let r=0;for(r=0;r<16;r++)Ie[r]=t.h[r],Ie[r+16]=xP[r];for(Ie[24]=Ie[24]^t.t,Ie[25]=Ie[25]^t.t/4294967296,e&&(Ie[28]=~Ie[28],Ie[29]=~Ie[29]),r=0;r<32;r++)Gl[r]=kP(t.b,4*r);for(r=0;r<12;r++)ko(0,8,16,24,br[r*16+0],br[r*16+1]),ko(2,10,18,26,br[r*16+2],br[r*16+3]),ko(4,12,20,28,br[r*16+4],br[r*16+5]),ko(6,14,22,30,br[r*16+6],br[r*16+7]),ko(0,10,20,30,br[r*16+8],br[r*16+9]),ko(2,12,22,24,br[r*16+10],br[r*16+11]),ko(4,14,16,26,br[r*16+12],br[r*16+13]),ko(6,8,18,28,br[r*16+14],br[r*16+15]);for(r=0;r<16;r++)t.h[r]=t.h[r]^Ie[r]^Ie[r+16]}var xo=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function RP(t,e,r,n){if(t===0||t>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(e&&e.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(r&&r.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(n&&n.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");let s={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:t};xo.fill(0),xo[0]=t,e&&(xo[1]=e.length),xo[2]=1,xo[3]=1,r&&xo.set(r,32),n&&xo.set(n,48);for(let o=0;o<16;o++)s.h[o]=xP[o]^kP(xo,o*4);return e&&(W_(s,e),s.c=128),s}function W_(t,e){for(let r=0;r<e.length;r++)t.c===128&&(t.t+=t.c,AP(t,!1),t.c=0),t.b[t.c++]=e[r]}function CP(t){for(t.t+=t.c;t.c<128;)t.b[t.c++]=0;AP(t,!0);let e=new Uint8Array(t.outlen);for(let r=0;r<t.outlen;r++)e[r]=t.h[r>>2]>>8*(r&3);return e}function DP(t,e,r,n,s){r=r||64,t=Pd.normalizeInput(t),n&&(n=Pd.normalizeInput(n)),s&&(s=Pd.normalizeInput(s));let o=RP(r,e,n,s);return W_(o,t),CP(o)}function cee(t,e,r,n,s){let o=DP(t,e,r,n,s);return Pd.toHex(o)}OP.exports={blake2b:DP,blake2bHex:cee,blake2bInit:RP,blake2bUpdate:W_,blake2bFinal:CP}});var NP=x((ahe,UP)=>{var FP=z_();function lee(t,e){return t[e]^t[e+1]<<8^t[e+2]<<16^t[e+3]<<24}function Ao(t,e,r,n,s,o){et[t]=et[t]+et[e]+s,et[n]=Fd(et[n]^et[t],16),et[r]=et[r]+et[n],et[e]=Fd(et[e]^et[r],12),et[t]=et[t]+et[e]+o,et[n]=Fd(et[n]^et[t],8),et[r]=et[r]+et[n],et[e]=Fd(et[e]^et[r],7)}function Fd(t,e){return t>>>e^t<<32-e}var LP=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),yr=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),et=new Uint32Array(16),sr=new Uint32Array(16);function IP(t,e){let r=0;for(r=0;r<8;r++)et[r]=t.h[r],et[r+8]=LP[r];for(et[12]^=t.t,et[13]^=t.t/4294967296,e&&(et[14]=~et[14]),r=0;r<16;r++)sr[r]=lee(t.b,4*r);for(r=0;r<10;r++)Ao(0,4,8,12,sr[yr[r*16+0]],sr[yr[r*16+1]]),Ao(1,5,9,13,sr[yr[r*16+2]],sr[yr[r*16+3]]),Ao(2,6,10,14,sr[yr[r*16+4]],sr[yr[r*16+5]]),Ao(3,7,11,15,sr[yr[r*16+6]],sr[yr[r*16+7]]),Ao(0,5,10,15,sr[yr[r*16+8]],sr[yr[r*16+9]]),Ao(1,6,11,12,sr[yr[r*16+10]],sr[yr[r*16+11]]),Ao(2,7,8,13,sr[yr[r*16+12]],sr[yr[r*16+13]]),Ao(3,4,9,14,sr[yr[r*16+14]],sr[yr[r*16+15]]);for(r=0;r<8;r++)t.h[r]^=et[r]^et[r+8]}function BP(t,e){if(!(t>0&&t<=32))throw new Error("Incorrect output length, should be in [1, 32]");let r=e?e.length:0;if(e&&!(r>0&&r<=32))throw new Error("Incorrect key length, should be in [1, 32]");let n={h:new Uint32Array(LP),b:new Uint8Array(64),c:0,t:0,outlen:t};return n.h[0]^=16842752^r<<8^t,r>0&&(V_(n,e),n.c=64),n}function V_(t,e){for(let r=0;r<e.length;r++)t.c===64&&(t.t+=t.c,IP(t,!1),t.c=0),t.b[t.c++]=e[r]}function GP(t){for(t.t+=t.c;t.c<64;)t.b[t.c++]=0;IP(t,!0);let e=new Uint8Array(t.outlen);for(let r=0;r<t.outlen;r++)e[r]=t.h[r>>2]>>8*(r&3)&255;return e}function qP(t,e,r){r=r||32,t=FP.normalizeInput(t);let n=BP(r,e);return V_(n,t),GP(n)}function fee(t,e,r){let n=qP(t,e,r);return FP.toHex(n)}UP.exports={blake2s:qP,blake2sHex:fee,blake2sInit:BP,blake2sUpdate:V_,blake2sFinal:GP}});var jP=x((uhe,MP)=>{var ql=PP(),Ul=NP();MP.exports={blake2b:ql.blake2b,blake2bHex:ql.blake2bHex,blake2bInit:ql.blake2bInit,blake2bUpdate:ql.blake2bUpdate,blake2bFinal:ql.blake2bFinal,blake2s:Ul.blake2s,blake2sHex:Ul.blake2sHex,blake2sInit:Ul.blake2sInit,blake2sUpdate:Ul.blake2sUpdate,blake2sFinal:Ul.blake2sFinal}});var zP=x((che,HP)=>{"use strict";var Hu=jP(),hee=45569,pee=45633,dee={init:Hu.blake2bInit,update:Hu.blake2bUpdate,digest:Hu.blake2bFinal},mee={init:Hu.blake2sInit,update:Hu.blake2sUpdate,digest:Hu.blake2sFinal},$P=(t,e)=>async r=>{let n=e.init(t,null);return e.update(n,r),e.digest(n)};HP.exports=t=>{for(let e=0;e<64;e++)t[hee+e]=$P(e+1,dee);for(let e=0;e<32;e++)t[pee+e]=$P(e+1,mee)}});var KP=x((lhe,VP)=>{"use strict";var Ks=mP(),WP=yP(),{factory:Ld}=wP(),{fromNumberTo32BitBuf:gee}=vP(),{fromString:bee}=Ol(),Gn=t=>async e=>{switch(t){case"sha3-224":return new Uint8Array(Ks.sha3_224.arrayBuffer(e));case"sha3-256":return new Uint8Array(Ks.sha3_256.arrayBuffer(e));case"sha3-384":return new Uint8Array(Ks.sha3_384.arrayBuffer(e));case"sha3-512":return new Uint8Array(Ks.sha3_512.arrayBuffer(e));case"shake-128":return new Uint8Array(Ks.shake128.create(128).update(e).arrayBuffer());case"shake-256":return new Uint8Array(Ks.shake256.create(256).update(e).arrayBuffer());case"keccak-224":return new Uint8Array(Ks.keccak224.arrayBuffer(e));case"keccak-256":return new Uint8Array(Ks.keccak256.arrayBuffer(e));case"keccak-384":return new Uint8Array(Ks.keccak384.arrayBuffer(e));case"keccak-512":return new Uint8Array(Ks.keccak512.arrayBuffer(e));case"murmur3-128":return bee(WP.x64.hash128(e),"base16");case"murmur3-32":return gee(WP.x86.hash32(e));default:throw new TypeError(`${t} is not a supported algorithm`)}},yee=t=>t;VP.exports={identity:yee,sha1:Ld("sha1"),sha2256:Ld("sha2-256"),sha2512:Ld("sha2-512"),dblSha2256:Ld("dbl-sha2-256"),sha3224:Gn("sha3-224"),sha3256:Gn("sha3-256"),sha3384:Gn("sha3-384"),sha3512:Gn("sha3-512"),shake128:Gn("shake-128"),shake256:Gn("shake-256"),keccak224:Gn("keccak-224"),keccak256:Gn("keccak-256"),keccak384:Gn("keccak-384"),keccak512:Gn("keccak-512"),murmur3128:Gn("murmur3-128"),murmur332:Gn("murmur3-32"),addBlake:zP()}});var Y_=x(K_=>{"use strict";Object.defineProperty(K_,"__esModule",{value:!0});function _ee(t,e){if(t===e)return!0;if(t.byteLength!==e.byteLength)return!1;for(let r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}K_.equals=_ee});var Nl=x((hhe,JP)=>{"use strict";var YP=va(),Id=Ll(),Ht=KP(),{equals:wee}=Y_();async function qn(t,e,r){let n=await qn.digest(t,e,r);return Id.encode(n,e,r)}qn.multihash=Id;qn.digest=async(t,e,r)=>{let s=await qn.createHash(e)(t);return r?s.slice(0,r):s};qn.createHash=function(t){if(!t)throw YP(new Error("hash algorithm must be specified"),"ERR_HASH_ALGORITHM_NOT_SPECIFIED");let e=Id.coerceCode(t);if(!qn.functions[e])throw YP(new Error(`multihash function '${t}' not yet supported`),"ERR_HASH_ALGORITHM_NOT_SUPPORTED");return qn.functions[e]};qn.functions={0:Ht.identity,17:Ht.sha1,18:Ht.sha2256,19:Ht.sha2512,20:Ht.sha3512,21:Ht.sha3384,22:Ht.sha3256,23:Ht.sha3224,24:Ht.shake128,25:Ht.shake256,26:Ht.keccak224,27:Ht.keccak256,28:Ht.keccak384,29:Ht.keccak512,34:Ht.murmur3128,35:Ht.murmur332,86:Ht.dblSha2256};Ht.addBlake(qn.functions);qn.validate=async(t,e)=>{let r=await qn(t,Id.decode(e).name);return wee(e,r)};JP.exports=qn});var XP=x((phe,QP)=>{"use strict";var Eee=VD().bind({ignoreUndefined:!0}),vee=Nl();async function See(t){let r=(await vee(t,"murmur3-128")).slice(2,10),n=r.length,s=new Uint8Array(n);for(let o=0;o<n;o++)s[n-o-1]=r[o];return s}var Tee={chunker:"fixed",strategy:"balanced",rawLeaves:!1,onlyHash:!1,reduceSingleLeafToSelf:!0,hashAlg:"sha2-256",leafType:"file",cidVersion:0,progress:()=>()=>{},shardSplitThreshold:1e3,fileImportConcurrency:50,blockWriteConcurrency:10,minChunkSize:262144,maxChunkSize:262144,avgChunkSize:262144,window:16,polynomial:0x3df305dfb2a804,maxChildrenPerNode:174,layerRepeat:4,wrapWithDirectory:!1,pin:!1,recursive:!1,hidden:!1,preload:!1,timeout:void 0,hamtHashFn:See,hamtHashCode:34,hamtBucketBits:8};QP.exports=function(t={}){return Eee(Tee,t)}});var e4=x((dhe,ZP)=>{"use strict";ZP.exports=kee;function kee(t,e){for(var r=new Array(arguments.length-1),n=0,s=2,o=!0;s<arguments.length;)r[n++]=arguments[s++];return new Promise(function(f,h){r[n]=function(d){if(o)if(o=!1,d)h(d);else{for(var y=new Array(arguments.length-1),v=0;v<y.length;)y[v++]=arguments[v];f.apply(null,y)}};try{t.apply(e||null,r)}catch(g){o&&(o=!1,h(g))}})}});var s4=x(n4=>{"use strict";var Bd=n4;Bd.length=function(e){var r=e.length;if(!r)return 0;for(var n=0;--r%4>1&&e.charAt(r)==="=";)++n;return Math.ceil(e.length*3)/4-n};var zu=new Array(64),r4=new Array(123);for(gs=0;gs<64;)r4[zu[gs]=gs<26?gs+65:gs<52?gs+71:gs<62?gs-4:gs-59|43]=gs++;var gs;Bd.encode=function(e,r,n){for(var s=null,o=[],u=0,f=0,h;r<n;){var g=e[r++];switch(f){case 0:o[u++]=zu[g>>2],h=(g&3)<<4,f=1;break;case 1:o[u++]=zu[h|g>>4],h=(g&15)<<2,f=2;break;case 2:o[u++]=zu[h|g>>6],o[u++]=zu[g&63],f=0;break}u>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,o)),u=0)}return f&&(o[u++]=zu[h],o[u++]=61,f===1&&(o[u++]=61)),s?(u&&s.push(String.fromCharCode.apply(String,o.slice(0,u))),s.join("")):String.fromCharCode.apply(String,o.slice(0,u))};var t4="invalid encoding";Bd.decode=function(e,r,n){for(var s=n,o=0,u,f=0;f<e.length;){var h=e.charCodeAt(f++);if(h===61&&o>1)break;if((h=r4[h])===void 0)throw Error(t4);switch(o){case 0:u=h,o=1;break;case 1:r[n++]=u<<2|(h&48)>>4,u=h,o=2;break;case 2:r[n++]=(u&15)<<4|(h&60)>>2,u=h,o=3;break;case 3:r[n++]=(u&3)<<6|h,o=0;break}}if(o===1)throw Error(t4);return n-s};Bd.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}});var o4=x((ghe,i4)=>{"use strict";i4.exports=Gd;function Gd(){this._listeners={}}Gd.prototype.on=function(e,r,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:r,ctx:n||this}),this};Gd.prototype.off=function(e,r){if(e===void 0)this._listeners={};else if(r===void 0)this._listeners[e]=[];else for(var n=this._listeners[e],s=0;s<n.length;)n[s].fn===r?n.splice(s,1):++s;return this};Gd.prototype.emit=function(e){var r=this._listeners[e];if(r){for(var n=[],s=1;s<arguments.length;)n.push(arguments[s++]);for(s=0;s<r.length;)r[s].fn.apply(r[s++].ctx,n)}return this}});var p4=x((bhe,h4)=>{"use strict";h4.exports=a4(a4);function a4(t){return typeof Float32Array<"u"?function(){var e=new Float32Array([-0]),r=new Uint8Array(e.buffer),n=r[3]===128;function s(h,g,d){e[0]=h,g[d]=r[0],g[d+1]=r[1],g[d+2]=r[2],g[d+3]=r[3]}function o(h,g,d){e[0]=h,g[d]=r[3],g[d+1]=r[2],g[d+2]=r[1],g[d+3]=r[0]}t.writeFloatLE=n?s:o,t.writeFloatBE=n?o:s;function u(h,g){return r[0]=h[g],r[1]=h[g+1],r[2]=h[g+2],r[3]=h[g+3],e[0]}function f(h,g){return r[3]=h[g],r[2]=h[g+1],r[1]=h[g+2],r[0]=h[g+3],e[0]}t.readFloatLE=n?u:f,t.readFloatBE=n?f:u}():function(){function e(n,s,o,u){var f=s<0?1:0;if(f&&(s=-s),s===0)n(1/s>0?0:2147483648,o,u);else if(isNaN(s))n(2143289344,o,u);else if(s>34028234663852886e22)n((f<<31|2139095040)>>>0,o,u);else if(s<11754943508222875e-54)n((f<<31|Math.round(s/1401298464324817e-60))>>>0,o,u);else{var h=Math.floor(Math.log(s)/Math.LN2),g=Math.round(s*Math.pow(2,-h)*8388608)&8388607;n((f<<31|h+127<<23|g)>>>0,o,u)}}t.writeFloatLE=e.bind(null,u4),t.writeFloatBE=e.bind(null,c4);function r(n,s,o){var u=n(s,o),f=(u>>31)*2+1,h=u>>>23&255,g=u&8388607;return h===255?g?NaN:f*(1/0):h===0?f*1401298464324817e-60*g:f*Math.pow(2,h-150)*(g+8388608)}t.readFloatLE=r.bind(null,l4),t.readFloatBE=r.bind(null,f4)}(),typeof Float64Array<"u"?function(){var e=new Float64Array([-0]),r=new Uint8Array(e.buffer),n=r[7]===128;function s(h,g,d){e[0]=h,g[d]=r[0],g[d+1]=r[1],g[d+2]=r[2],g[d+3]=r[3],g[d+4]=r[4],g[d+5]=r[5],g[d+6]=r[6],g[d+7]=r[7]}function o(h,g,d){e[0]=h,g[d]=r[7],g[d+1]=r[6],g[d+2]=r[5],g[d+3]=r[4],g[d+4]=r[3],g[d+5]=r[2],g[d+6]=r[1],g[d+7]=r[0]}t.writeDoubleLE=n?s:o,t.writeDoubleBE=n?o:s;function u(h,g){return r[0]=h[g],r[1]=h[g+1],r[2]=h[g+2],r[3]=h[g+3],r[4]=h[g+4],r[5]=h[g+5],r[6]=h[g+6],r[7]=h[g+7],e[0]}function f(h,g){return r[7]=h[g],r[6]=h[g+1],r[5]=h[g+2],r[4]=h[g+3],r[3]=h[g+4],r[2]=h[g+5],r[1]=h[g+6],r[0]=h[g+7],e[0]}t.readDoubleLE=n?u:f,t.readDoubleBE=n?f:u}():function(){function e(n,s,o,u,f,h){var g=u<0?1:0;if(g&&(u=-u),u===0)n(0,f,h+s),n(1/u>0?0:2147483648,f,h+o);else if(isNaN(u))n(0,f,h+s),n(2146959360,f,h+o);else if(u>17976931348623157e292)n(0,f,h+s),n((g<<31|2146435072)>>>0,f,h+o);else{var d;if(u<22250738585072014e-324)d=u/5e-324,n(d>>>0,f,h+s),n((g<<31|d/4294967296)>>>0,f,h+o);else{var y=Math.floor(Math.log(u)/Math.LN2);y===1024&&(y=1023),d=u*Math.pow(2,-y),n(d*4503599627370496>>>0,f,h+s),n((g<<31|y+1023<<20|d*1048576&1048575)>>>0,f,h+o)}}}t.writeDoubleLE=e.bind(null,u4,0,4),t.writeDoubleBE=e.bind(null,c4,4,0);function r(n,s,o,u,f){var h=n(u,f+s),g=n(u,f+o),d=(g>>31)*2+1,y=g>>>20&2047,v=4294967296*(g&1048575)+h;return y===2047?v?NaN:d*(1/0):y===0?d*5e-324*v:d*Math.pow(2,y-1075)*(v+4503599627370496)}t.readDoubleLE=r.bind(null,l4,0,4),t.readDoubleBE=r.bind(null,f4,4,0)}(),t}function u4(t,e,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}function c4(t,e,r){e[r]=t>>>24,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=t&255}function l4(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function f4(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}});var d4=x((exports,module)=>{"use strict";module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}});var g4=x(m4=>{"use strict";var J_=m4;J_.length=function(e){for(var r=0,n=0,s=0;s<e.length;++s)n=e.charCodeAt(s),n<128?r+=1:n<2048?r+=2:(n&64512)===55296&&(e.charCodeAt(s+1)&64512)===56320?(++s,r+=4):r+=3;return r};J_.read=function(e,r,n){var s=n-r;if(s<1)return"";for(var o=null,u=[],f=0,h;r<n;)h=e[r++],h<128?u[f++]=h:h>191&&h<224?u[f++]=(h&31)<<6|e[r++]&63:h>239&&h<365?(h=((h&7)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,u[f++]=55296+(h>>10),u[f++]=56320+(h&1023)):u[f++]=(h&15)<<12|(e[r++]&63)<<6|e[r++]&63,f>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,u)),f=0);return o?(f&&o.push(String.fromCharCode.apply(String,u.slice(0,f))),o.join("")):String.fromCharCode.apply(String,u.slice(0,f))};J_.write=function(e,r,n){for(var s=n,o,u,f=0;f<e.length;++f)o=e.charCodeAt(f),o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=o&63|128):(o&64512)===55296&&((u=e.charCodeAt(f+1))&64512)===56320?(o=65536+((o&1023)<<10)+(u&1023),++f,r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=o&63|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=o&63|128);return n-s}});var y4=x((_he,b4)=>{"use strict";b4.exports=xee;function xee(t,e,r){var n=r||8192,s=n>>>1,o=null,u=n;return function(h){if(h<1||h>s)return t(h);u+h>n&&(o=t(n),u=0);var g=e.call(o,u,u+=h);return u&7&&(u=(u|7)+1),g}}});var w4=x((whe,_4)=>{"use strict";_4.exports=zt;var Ml=Co();function zt(t,e){this.lo=t>>>0,this.hi=e>>>0}var xa=zt.zero=new zt(0,0);xa.toNumber=function(){return 0};xa.zzEncode=xa.zzDecode=function(){return this};xa.length=function(){return 1};var Aee=zt.zeroHash="\0\0\0\0\0\0\0\0";zt.fromNumber=function(e){if(e===0)return xa;var r=e<0;r&&(e=-e);var n=e>>>0,s=(e-n)/4294967296>>>0;return r&&(s=~s>>>0,n=~n>>>0,++n>4294967295&&(n=0,++s>4294967295&&(s=0))),new zt(n,s)};zt.from=function(e){if(typeof e=="number")return zt.fromNumber(e);if(Ml.isString(e))if(Ml.Long)e=Ml.Long.fromString(e);else return zt.fromNumber(parseInt(e,10));return e.low||e.high?new zt(e.low>>>0,e.high>>>0):xa};zt.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var r=~this.lo+1>>>0,n=~this.hi>>>0;return r||(n=n+1>>>0),-(r+n*4294967296)}return this.lo+this.hi*4294967296};zt.prototype.toLong=function(e){return Ml.Long?new Ml.Long(this.lo|0,this.hi|0,Boolean(e)):{low:this.lo|0,high:this.hi|0,unsigned:Boolean(e)}};var Ro=String.prototype.charCodeAt;zt.fromHash=function(e){return e===Aee?xa:new zt((Ro.call(e,0)|Ro.call(e,1)<<8|Ro.call(e,2)<<16|Ro.call(e,3)<<24)>>>0,(Ro.call(e,4)|Ro.call(e,5)<<8|Ro.call(e,6)<<16|Ro.call(e,7)<<24)>>>0)};zt.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};zt.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this};zt.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this};zt.prototype.length=function(){var e=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?r===0?e<16384?e<128?1:2:e<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:n<128?9:10}});var Co=x(Q_=>{"use strict";var _e=Q_;_e.asPromise=e4();_e.base64=s4();_e.EventEmitter=o4();_e.float=p4();_e.inquire=d4();_e.utf8=g4();_e.pool=y4();_e.LongBits=w4();_e.isNode=Boolean(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);_e.global=_e.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||Q_;_e.emptyArray=Object.freeze?Object.freeze([]):[];_e.emptyObject=Object.freeze?Object.freeze({}):{};_e.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};_e.isString=function(e){return typeof e=="string"||e instanceof String};_e.isObject=function(e){return e&&typeof e=="object"};_e.isset=_e.isSet=function(e,r){var n=e[r];return n!=null&&e.hasOwnProperty(r)?typeof n!="object"||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1};_e.Buffer=function(){try{var t=_e.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch{return null}}();_e._Buffer_from=null;_e._Buffer_allocUnsafe=null;_e.newBuffer=function(e){return typeof e=="number"?_e.Buffer?_e._Buffer_allocUnsafe(e):new _e.Array(e):_e.Buffer?_e._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)};_e.Array=typeof Uint8Array<"u"?Uint8Array:Array;_e.Long=_e.global.dcodeIO&&_e.global.dcodeIO.Long||_e.global.Long||_e.inquire("long");_e.key2Re=/^true|false|0|1$/;_e.key32Re=/^-?(?:0|[1-9][0-9]*)$/;_e.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;_e.longToHash=function(e){return e?_e.LongBits.from(e).toHash():_e.LongBits.zeroHash};_e.longFromHash=function(e,r){var n=_e.LongBits.fromHash(e);return _e.Long?_e.Long.fromBits(n.lo,n.hi,r):n.toNumber(Boolean(r))};function E4(t,e,r){for(var n=Object.keys(e),s=0;s<n.length;++s)(t[n[s]]===void 0||!r)&&(t[n[s]]=e[n[s]]);return t}_e.merge=E4;_e.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)};function v4(t){function e(r,n){if(!(this instanceof e))return new e(r,n);Object.defineProperty(this,"message",{get:function(){return r}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:new Error().stack||""}),n&&E4(this,n)}return(e.prototype=Object.create(Error.prototype)).constructor=e,Object.defineProperty(e.prototype,"name",{get:function(){return t}}),e.prototype.toString=function(){return this.name+": "+this.message},e}_e.newError=v4;_e.ProtocolError=v4("ProtocolError");_e.oneOfGetter=function(e){for(var r={},n=0;n<e.length;++n)r[e[n]]=1;return function(){for(var s=Object.keys(this),o=s.length-1;o>-1;--o)if(r[s[o]]===1&&this[s[o]]!==void 0&&this[s[o]]!==null)return s[o]}};_e.oneOfSetter=function(e){return function(r){for(var n=0;n<e.length;++n)e[n]!==r&&delete this[e[n]]}};_e.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};_e._configure=function(){var t=_e.Buffer;if(!t){_e._Buffer_from=_e._Buffer_allocUnsafe=null;return}_e._Buffer_from=t.from!==Uint8Array.from&&t.from||function(r,n){return new t(r,n)},_e._Buffer_allocUnsafe=t.allocUnsafe||function(r){return new t(r)}}});var sw=x((vhe,x4)=>{"use strict";x4.exports=Qe;var Un=Co(),X_,qd=Un.LongBits,S4=Un.base64,T4=Un.utf8;function jl(t,e,r){this.fn=t,this.len=e,this.next=void 0,this.val=r}function ew(){}function Ree(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function Qe(){this.len=0,this.head=new jl(ew,0,0),this.tail=this.head,this.states=null}var k4=function(){return Un.Buffer?function(){return(Qe.create=function(){return new X_})()}:function(){return new Qe}};Qe.create=k4();Qe.alloc=function(e){return new Un.Array(e)};Un.Array!==Array&&(Qe.alloc=Un.pool(Qe.alloc,Un.Array.prototype.subarray));Qe.prototype._push=function(e,r,n){return this.tail=this.tail.next=new jl(e,r,n),this.len+=r,this};function tw(t,e,r){e[r]=t&255}function Cee(t,e,r){for(;t>127;)e[r++]=t&127|128,t>>>=7;e[r]=t}function rw(t,e){this.len=t,this.next=void 0,this.val=e}rw.prototype=Object.create(jl.prototype);rw.prototype.fn=Cee;Qe.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new rw((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};Qe.prototype.int32=function(e){return e<0?this._push(nw,10,qd.fromNumber(e)):this.uint32(e)};Qe.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function nw(t,e,r){for(;t.hi;)e[r++]=t.lo&127|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[r++]=t.lo&127|128,t.lo=t.lo>>>7;e[r++]=t.lo}Qe.prototype.uint64=function(e){var r=qd.from(e);return this._push(nw,r.length(),r)};Qe.prototype.int64=Qe.prototype.uint64;Qe.prototype.sint64=function(e){var r=qd.from(e).zzEncode();return this._push(nw,r.length(),r)};Qe.prototype.bool=function(e){return this._push(tw,1,e?1:0)};function Z_(t,e,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}Qe.prototype.fixed32=function(e){return this._push(Z_,4,e>>>0)};Qe.prototype.sfixed32=Qe.prototype.fixed32;Qe.prototype.fixed64=function(e){var r=qd.from(e);return this._push(Z_,4,r.lo)._push(Z_,4,r.hi)};Qe.prototype.sfixed64=Qe.prototype.fixed64;Qe.prototype.float=function(e){return this._push(Un.float.writeFloatLE,4,e)};Qe.prototype.double=function(e){return this._push(Un.float.writeDoubleLE,8,e)};var Dee=Un.Array.prototype.set?function(e,r,n){r.set(e,n)}:function(e,r,n){for(var s=0;s<e.length;++s)r[n+s]=e[s]};Qe.prototype.bytes=function(e){var r=e.length>>>0;if(!r)return this._push(tw,1,0);if(Un.isString(e)){var n=Qe.alloc(r=S4.length(e));S4.decode(e,n,0),e=n}return this.uint32(r)._push(Dee,r,e)};Qe.prototype.string=function(e){var r=T4.length(e);return r?this.uint32(r)._push(T4.write,r,e):this._push(tw,1,0)};Qe.prototype.fork=function(){return this.states=new Ree(this),this.head=this.tail=new jl(ew,0,0),this.len=0,this};Qe.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new jl(ew,0,0),this.len=0),this};Qe.prototype.ldelim=function(){var e=this.head,r=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=r,this.len+=n),this};Qe.prototype.finish=function(){for(var e=this.head.next,r=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,r,n),n+=e.len,e=e.next;return r};Qe._configure=function(t){X_=t,Qe.create=k4(),X_._configure()}});var C4=x((She,R4)=>{"use strict";R4.exports=Ys;var A4=sw();(Ys.prototype=Object.create(A4.prototype)).constructor=Ys;var Do=Co();function Ys(){A4.call(this)}Ys._configure=function(){Ys.alloc=Do._Buffer_allocUnsafe,Ys.writeBytesBuffer=Do.Buffer&&Do.Buffer.prototype instanceof Uint8Array&&Do.Buffer.prototype.set.name==="set"?function(e,r,n){r.set(e,n)}:function(e,r,n){if(e.copy)e.copy(r,n,0,e.length);else for(var s=0;s<e.length;)r[n++]=e[s++]}};Ys.prototype.bytes=function(e){Do.isString(e)&&(e=Do._Buffer_from(e,"base64"));var r=e.length>>>0;return this.uint32(r),r&&this._push(Ys.writeBytesBuffer,r,e),this};function Oee(t,e,r){t.length<40?Do.utf8.write(t,e,r):e.utf8Write?e.utf8Write(t,r):e.write(t,r)}Ys.prototype.string=function(e){var r=Do.Buffer.byteLength(e);return this.uint32(r),r&&this._push(Oee,r,e),this};Ys._configure()});var aw=x((The,L4)=>{"use strict";L4.exports=Ot;var Js=Co(),ow,P4=Js.LongBits,Pee=Js.utf8;function bs(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function Ot(t){this.buf=t,this.pos=0,this.len=t.length}var D4=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Ot(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Ot(e);throw Error("illegal buffer")},F4=function(){return Js.Buffer?function(r){return(Ot.create=function(s){return Js.Buffer.isBuffer(s)?new ow(s):D4(s)})(r)}:D4};Ot.create=F4();Ot.prototype._slice=Js.Array.prototype.subarray||Js.Array.prototype.slice;Ot.prototype.uint32=function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,bs(this,10);return e}}();Ot.prototype.int32=function(){return this.uint32()|0};Ot.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function iw(){var t=new P4(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(t.lo=(t.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(this.buf[this.pos]&127)<<28)>>>0,t.hi=(t.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return t;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw bs(this);if(t.lo=(t.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(this.buf[this.pos++]&127)<<e*7)>>>0,t}if(this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw bs(this);if(t.hi=(t.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}Ot.prototype.bool=function(){return this.uint32()!==0};function Ud(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}Ot.prototype.fixed32=function(){if(this.pos+4>this.len)throw bs(this,4);return Ud(this.buf,this.pos+=4)};Ot.prototype.sfixed32=function(){if(this.pos+4>this.len)throw bs(this,4);return Ud(this.buf,this.pos+=4)|0};function O4(){if(this.pos+8>this.len)throw bs(this,8);return new P4(Ud(this.buf,this.pos+=4),Ud(this.buf,this.pos+=4))}Ot.prototype.float=function(){if(this.pos+4>this.len)throw bs(this,4);var e=Js.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};Ot.prototype.double=function(){if(this.pos+8>this.len)throw bs(this,4);var e=Js.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};Ot.prototype.bytes=function(){var e=this.uint32(),r=this.pos,n=this.pos+e;if(n>this.len)throw bs(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(r,n):r===n?new this.buf.constructor(0):this._slice.call(this.buf,r,n)};Ot.prototype.string=function(){var e=this.bytes();return Pee.read(e,0,e.length)};Ot.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw bs(this,e);this.pos+=e}else do if(this.pos>=this.len)throw bs(this);while(this.buf[this.pos++]&128);return this};Ot.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(t=this.uint32()&7)!==4;)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this};Ot._configure=function(t){ow=t,Ot.create=F4(),ow._configure();var e=Js.Long?"toLong":"toNumber";Js.merge(Ot.prototype,{int64:function(){return iw.call(this)[e](!1)},uint64:function(){return iw.call(this)[e](!0)},sint64:function(){return iw.call(this).zzDecode()[e](!1)},fixed64:function(){return O4.call(this)[e](!0)},sfixed64:function(){return O4.call(this)[e](!1)}})}});var q4=x((khe,G4)=>{"use strict";G4.exports=Aa;var B4=aw();(Aa.prototype=Object.create(B4.prototype)).constructor=Aa;var I4=Co();function Aa(t){B4.call(this,t)}Aa._configure=function(){I4.Buffer&&(Aa.prototype._slice=I4.Buffer.prototype.slice)};Aa.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};Aa._configure()});var N4=x((xhe,U4)=>{"use strict";U4.exports=$l;var uw=Co();($l.prototype=Object.create(uw.EventEmitter.prototype)).constructor=$l;function $l(t,e,r){if(typeof t!="function")throw TypeError("rpcImpl must be a function");uw.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=Boolean(e),this.responseDelimited=Boolean(r)}$l.prototype.rpcCall=function t(e,r,n,s,o){if(!s)throw TypeError("request must be specified");var u=this;if(!o)return uw.asPromise(t,u,e,r,n,s);if(!u.rpcImpl){setTimeout(function(){o(Error("already ended"))},0);return}try{return u.rpcImpl(e,r[u.requestDelimited?"encodeDelimited":"encode"](s).finish(),function(h,g){if(h)return u.emit("error",h,e),o(h);if(g===null){u.end(!0);return}if(!(g instanceof n))try{g=n[u.responseDelimited?"decodeDelimited":"decode"](g)}catch(d){return u.emit("error",d,e),o(d)}return u.emit("data",g,e),o(null,g)})}catch(f){u.emit("error",f,e),setTimeout(function(){o(f)},0);return}};$l.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var j4=x(M4=>{"use strict";var Fee=M4;Fee.Service=N4()});var H4=x((Rhe,$4)=>{"use strict";$4.exports={}});var V4=x(W4=>{"use strict";var Yr=W4;Yr.build="minimal";Yr.Writer=sw();Yr.BufferWriter=C4();Yr.Reader=aw();Yr.BufferReader=q4();Yr.util=Co();Yr.rpc=j4();Yr.roots=H4();Yr.configure=z4;function z4(){Yr.util._configure(),Yr.Writer._configure(Yr.BufferWriter),Yr.Reader._configure(Yr.BufferReader)}z4()});var Nd=x((Dhe,K4)=>{"use strict";K4.exports=V4()});var J4=x((Ohe,Y4)=>{"use strict";var Oo=Nd(),Wu=Oo.Reader,cw=Oo.Writer,Ae=Oo.util,Wt=Oo.roots["ipfs-unixfs"]||(Oo.roots["ipfs-unixfs"]={});Wt.Data=function(){function t(e){if(this.blocksizes=[],e)for(var r=Object.keys(e),n=0;n<r.length;++n)e[r[n]]!=null&&(this[r[n]]=e[r[n]])}return t.prototype.Type=0,t.prototype.Data=Ae.newBuffer([]),t.prototype.filesize=Ae.Long?Ae.Long.fromBits(0,0,!0):0,t.prototype.blocksizes=Ae.emptyArray,t.prototype.hashType=Ae.Long?Ae.Long.fromBits(0,0,!0):0,t.prototype.fanout=Ae.Long?Ae.Long.fromBits(0,0,!0):0,t.prototype.mode=0,t.prototype.mtime=null,t.encode=function(r,n){if(n||(n=cw.create()),n.uint32(8).int32(r.Type),r.Data!=null&&Object.hasOwnProperty.call(r,"Data")&&n.uint32(18).bytes(r.Data),r.filesize!=null&&Object.hasOwnProperty.call(r,"filesize")&&n.uint32(24).uint64(r.filesize),r.blocksizes!=null&&r.blocksizes.length)for(var s=0;s<r.blocksizes.length;++s)n.uint32(32).uint64(r.blocksizes[s]);return r.hashType!=null&&Object.hasOwnProperty.call(r,"hashType")&&n.uint32(40).uint64(r.hashType),r.fanout!=null&&Object.hasOwnProperty.call(r,"fanout")&&n.uint32(48).uint64(r.fanout),r.mode!=null&&Object.hasOwnProperty.call(r,"mode")&&n.uint32(56).uint32(r.mode),r.mtime!=null&&Object.hasOwnProperty.call(r,"mtime")&&Wt.UnixTime.encode(r.mtime,n.uint32(66).fork()).ldelim(),n},t.decode=function(r,n){r instanceof Wu||(r=Wu.create(r));for(var s=n===void 0?r.len:r.pos+n,o=new Wt.Data;r.pos<s;){var u=r.uint32();switch(u>>>3){case 1:o.Type=r.int32();break;case 2:o.Data=r.bytes();break;case 3:o.filesize=r.uint64();break;case 4:if(o.blocksizes&&o.blocksizes.length||(o.blocksizes=[]),(u&7)===2)for(var f=r.uint32()+r.pos;r.pos<f;)o.blocksizes.push(r.uint64());else o.blocksizes.push(r.uint64());break;case 5:o.hashType=r.uint64();break;case 6:o.fanout=r.uint64();break;case 7:o.mode=r.uint32();break;case 8:o.mtime=Wt.UnixTime.decode(r,r.uint32());break;default:r.skipType(u&7);break}}if(!o.hasOwnProperty("Type"))throw Ae.ProtocolError("missing required 'Type'",{instance:o});return o},t.fromObject=function(r){if(r instanceof Wt.Data)return r;var n=new Wt.Data;switch(r.Type){case"Raw":case 0:n.Type=0;break;case"Directory":case 1:n.Type=1;break;case"File":case 2:n.Type=2;break;case"Metadata":case 3:n.Type=3;break;case"Symlink":case 4:n.Type=4;break;case"HAMTShard":case 5:n.Type=5;break}if(r.Data!=null&&(typeof r.Data=="string"?Ae.base64.decode(r.Data,n.Data=Ae.newBuffer(Ae.base64.length(r.Data)),0):r.Data.length&&(n.Data=r.Data)),r.filesize!=null&&(Ae.Long?(n.filesize=Ae.Long.fromValue(r.filesize)).unsigned=!0:typeof r.filesize=="string"?n.filesize=parseInt(r.filesize,10):typeof r.filesize=="number"?n.filesize=r.filesize:typeof r.filesize=="object"&&(n.filesize=new Ae.LongBits(r.filesize.low>>>0,r.filesize.high>>>0).toNumber(!0))),r.blocksizes){if(!Array.isArray(r.blocksizes))throw TypeError(".Data.blocksizes: array expected");n.blocksizes=[];for(var s=0;s<r.blocksizes.length;++s)Ae.Long?(n.blocksizes[s]=Ae.Long.fromValue(r.blocksizes[s])).unsigned=!0:typeof r.blocksizes[s]=="string"?n.blocksizes[s]=parseInt(r.blocksizes[s],10):typeof r.blocksizes[s]=="number"?n.blocksizes[s]=r.blocksizes[s]:typeof r.blocksizes[s]=="object"&&(n.blocksizes[s]=new Ae.LongBits(r.blocksizes[s].low>>>0,r.blocksizes[s].high>>>0).toNumber(!0))}if(r.hashType!=null&&(Ae.Long?(n.hashType=Ae.Long.fromValue(r.hashType)).unsigned=!0:typeof r.hashType=="string"?n.hashType=parseInt(r.hashType,10):typeof r.hashType=="number"?n.hashType=r.hashType:typeof r.hashType=="object"&&(n.hashType=new Ae.LongBits(r.hashType.low>>>0,r.hashType.high>>>0).toNumber(!0))),r.fanout!=null&&(Ae.Long?(n.fanout=Ae.Long.fromValue(r.fanout)).unsigned=!0:typeof r.fanout=="string"?n.fanout=parseInt(r.fanout,10):typeof r.fanout=="number"?n.fanout=r.fanout:typeof r.fanout=="object"&&(n.fanout=new Ae.LongBits(r.fanout.low>>>0,r.fanout.high>>>0).toNumber(!0))),r.mode!=null&&(n.mode=r.mode>>>0),r.mtime!=null){if(typeof r.mtime!="object")throw TypeError(".Data.mtime: object expected");n.mtime=Wt.UnixTime.fromObject(r.mtime)}return n},t.toObject=function(r,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.blocksizes=[]),n.defaults){if(s.Type=n.enums===String?"Raw":0,n.bytes===String?s.Data="":(s.Data=[],n.bytes!==Array&&(s.Data=Ae.newBuffer(s.Data))),Ae.Long){var o=new Ae.Long(0,0,!0);s.filesize=n.longs===String?o.toString():n.longs===Number?o.toNumber():o}else s.filesize=n.longs===String?"0":0;if(Ae.Long){var o=new Ae.Long(0,0,!0);s.hashType=n.longs===String?o.toString():n.longs===Number?o.toNumber():o}else s.hashType=n.longs===String?"0":0;if(Ae.Long){var o=new Ae.Long(0,0,!0);s.fanout=n.longs===String?o.toString():n.longs===Number?o.toNumber():o}else s.fanout=n.longs===String?"0":0;s.mode=0,s.mtime=null}if(r.Type!=null&&r.hasOwnProperty("Type")&&(s.Type=n.enums===String?Wt.Data.DataType[r.Type]:r.Type),r.Data!=null&&r.hasOwnProperty("Data")&&(s.Data=n.bytes===String?Ae.base64.encode(r.Data,0,r.Data.length):n.bytes===Array?Array.prototype.slice.call(r.Data):r.Data),r.filesize!=null&&r.hasOwnProperty("filesize")&&(typeof r.filesize=="number"?s.filesize=n.longs===String?String(r.filesize):r.filesize:s.filesize=n.longs===String?Ae.Long.prototype.toString.call(r.filesize):n.longs===Number?new Ae.LongBits(r.filesize.low>>>0,r.filesize.high>>>0).toNumber(!0):r.filesize),r.blocksizes&&r.blocksizes.length){s.blocksizes=[];for(var u=0;u<r.blocksizes.length;++u)typeof r.blocksizes[u]=="number"?s.blocksizes[u]=n.longs===String?String(r.blocksizes[u]):r.blocksizes[u]:s.blocksizes[u]=n.longs===String?Ae.Long.prototype.toString.call(r.blocksizes[u]):n.longs===Number?new Ae.LongBits(r.blocksizes[u].low>>>0,r.blocksizes[u].high>>>0).toNumber(!0):r.blocksizes[u]}return r.hashType!=null&&r.hasOwnProperty("hashType")&&(typeof r.hashType=="number"?s.hashType=n.longs===String?String(r.hashType):r.hashType:s.hashType=n.longs===String?Ae.Long.prototype.toString.call(r.hashType):n.longs===Number?new Ae.LongBits(r.hashType.low>>>0,r.hashType.high>>>0).toNumber(!0):r.hashType),r.fanout!=null&&r.hasOwnProperty("fanout")&&(typeof r.fanout=="number"?s.fanout=n.longs===String?String(r.fanout):r.fanout:s.fanout=n.longs===String?Ae.Long.prototype.toString.call(r.fanout):n.longs===Number?new Ae.LongBits(r.fanout.low>>>0,r.fanout.high>>>0).toNumber(!0):r.fanout),r.mode!=null&&r.hasOwnProperty("mode")&&(s.mode=r.mode),r.mtime!=null&&r.hasOwnProperty("mtime")&&(s.mtime=Wt.UnixTime.toObject(r.mtime,n)),s},t.prototype.toJSON=function(){return this.constructor.toObject(this,Oo.util.toJSONOptions)},t.DataType=function(){var e={},r=Object.create(e);return r[e[0]="Raw"]=0,r[e[1]="Directory"]=1,r[e[2]="File"]=2,r[e[3]="Metadata"]=3,r[e[4]="Symlink"]=4,r[e[5]="HAMTShard"]=5,r}(),t}();Wt.UnixTime=function(){function t(e){if(e)for(var r=Object.keys(e),n=0;n<r.length;++n)e[r[n]]!=null&&(this[r[n]]=e[r[n]])}return t.prototype.Seconds=Ae.Long?Ae.Long.fromBits(0,0,!1):0,t.prototype.FractionalNanoseconds=0,t.encode=function(r,n){return n||(n=cw.create()),n.uint32(8).int64(r.Seconds),r.FractionalNanoseconds!=null&&Object.hasOwnProperty.call(r,"FractionalNanoseconds")&&n.uint32(21).fixed32(r.FractionalNanoseconds),n},t.decode=function(r,n){r instanceof Wu||(r=Wu.create(r));for(var s=n===void 0?r.len:r.pos+n,o=new Wt.UnixTime;r.pos<s;){var u=r.uint32();switch(u>>>3){case 1:o.Seconds=r.int64();break;case 2:o.FractionalNanoseconds=r.fixed32();break;default:r.skipType(u&7);break}}if(!o.hasOwnProperty("Seconds"))throw Ae.ProtocolError("missing required 'Seconds'",{instance:o});return o},t.fromObject=function(r){if(r instanceof Wt.UnixTime)return r;var n=new Wt.UnixTime;return r.Seconds!=null&&(Ae.Long?(n.Seconds=Ae.Long.fromValue(r.Seconds)).unsigned=!1:typeof r.Seconds=="string"?n.Seconds=parseInt(r.Seconds,10):typeof r.Seconds=="number"?n.Seconds=r.Seconds:typeof r.Seconds=="object"&&(n.Seconds=new Ae.LongBits(r.Seconds.low>>>0,r.Seconds.high>>>0).toNumber())),r.FractionalNanoseconds!=null&&(n.FractionalNanoseconds=r.FractionalNanoseconds>>>0),n},t.toObject=function(r,n){n||(n={});var s={};if(n.defaults){if(Ae.Long){var o=new Ae.Long(0,0,!1);s.Seconds=n.longs===String?o.toString():n.longs===Number?o.toNumber():o}else s.Seconds=n.longs===String?"0":0;s.FractionalNanoseconds=0}return r.Seconds!=null&&r.hasOwnProperty("Seconds")&&(typeof r.Seconds=="number"?s.Seconds=n.longs===String?String(r.Seconds):r.Seconds:s.Seconds=n.longs===String?Ae.Long.prototype.toString.call(r.Seconds):n.longs===Number?new Ae.LongBits(r.Seconds.low>>>0,r.Seconds.high>>>0).toNumber():r.Seconds),r.FractionalNanoseconds!=null&&r.hasOwnProperty("FractionalNanoseconds")&&(s.FractionalNanoseconds=r.FractionalNanoseconds),s},t.prototype.toJSON=function(){return this.constructor.toObject(this,Oo.util.toJSONOptions)},t}();Wt.Metadata=function(){function t(e){if(e)for(var r=Object.keys(e),n=0;n<r.length;++n)e[r[n]]!=null&&(this[r[n]]=e[r[n]])}return t.prototype.MimeType="",t.encode=function(r,n){return n||(n=cw.create()),r.MimeType!=null&&Object.hasOwnProperty.call(r,"MimeType")&&n.uint32(10).string(r.MimeType),n},t.decode=function(r,n){r instanceof Wu||(r=Wu.create(r));for(var s=n===void 0?r.len:r.pos+n,o=new Wt.Metadata;r.pos<s;){var u=r.uint32();switch(u>>>3){case 1:o.MimeType=r.string();break;default:r.skipType(u&7);break}}return o},t.fromObject=function(r){if(r instanceof Wt.Metadata)return r;var n=new Wt.Metadata;return r.MimeType!=null&&(n.MimeType=String(r.MimeType)),n},t.toObject=function(r,n){n||(n={});var s={};return n.defaults&&(s.MimeType=""),r.MimeType!=null&&r.hasOwnProperty("MimeType")&&(s.MimeType=r.MimeType),s},t.prototype.toJSON=function(){return this.constructor.toObject(this,Oo.util.toJSONOptions)},t}();Y4.exports=Wt});var Vu=x((Phe,eF)=>{"use strict";var{Data:Bi}=J4(),lw=va(),Q4=["raw","directory","file","metadata","symlink","hamt-sharded-directory"],Lee=["directory","hamt-sharded-directory"],X4=parseInt("0644",8),Z4=parseInt("0755",8);function Md(t){if(t!=null)return typeof t=="number"?t&4095:(t=t.toString(),t.substring(0,1)==="0"?parseInt(t,8)&4095:parseInt(t,10)&4095)}function fw(t){if(t==null)return;let e;if(t.secs!=null&&(e={secs:t.secs,nsecs:t.nsecs}),t.Seconds!=null&&(e={secs:t.Seconds,nsecs:t.FractionalNanoseconds}),Array.isArray(t)&&(e={secs:t[0],nsecs:t[1]}),t instanceof Date){let r=t.getTime(),n=Math.floor(r/1e3);e={secs:n,nsecs:(r-n*1e3)*1e3}}if(!!Object.prototype.hasOwnProperty.call(e,"secs")){if(e!=null&&e.nsecs!=null&&(e.nsecs<0||e.nsecs>999999999))throw lw(new Error("mtime-nsecs must be within the range [0,999999999]"),"ERR_INVALID_MTIME_NSECS");return e}}var Hl=class{static unmarshal(e){let r=Bi.decode(e),n=Bi.toObject(r,{defaults:!1,arrays:!0,longs:Number,objects:!1}),s=new Hl({type:Q4[n.Type],data:n.Data,blockSizes:n.blocksizes,mode:n.mode,mtime:n.mtime?{secs:n.mtime.Seconds,nsecs:n.mtime.FractionalNanoseconds}:void 0});return s._originalMode=n.mode||0,s}constructor(e={type:"file"}){let{type:r,data:n,blockSizes:s,hashType:o,fanout:u,mtime:f,mode:h}=e;if(r&&!Q4.includes(r))throw lw(new Error("Type: "+r+" is not valid"),"ERR_INVALID_TYPE");this.type=r||"file",this.data=n,this.hashType=o,this.fanout=u,this.blockSizes=s||[],this._originalMode=0,this.mode=Md(h),f&&(this.mtime=fw(f),this.mtime&&!this.mtime.nsecs&&(this.mtime.nsecs=0))}set mode(e){this._mode=this.isDirectory()?Z4:X4;let r=Md(e);r!==void 0&&(this._mode=r)}get mode(){return this._mode}isDirectory(){return Boolean(this.type&&Lee.includes(this.type))}addBlockSize(e){this.blockSizes.push(e)}removeBlockSize(e){this.blockSizes.splice(e,1)}fileSize(){if(this.isDirectory())return 0;let e=0;return this.blockSizes.forEach(r=>{e+=r}),this.data&&(e+=this.data.length),e}marshal(){let e;switch(this.type){case"raw":e=Bi.DataType.Raw;break;case"directory":e=Bi.DataType.Directory;break;case"file":e=Bi.DataType.File;break;case"metadata":e=Bi.DataType.Metadata;break;case"symlink":e=Bi.DataType.Symlink;break;case"hamt-sharded-directory":e=Bi.DataType.HAMTShard;break;default:throw lw(new Error("Type: "+e+" is not valid"),"ERR_INVALID_TYPE")}let r=this.data;(!this.data||!this.data.length)&&(r=void 0);let n;this.mode!=null&&(n=this._originalMode&4294963200|(Md(this.mode)||0),n===X4&&!this.isDirectory()&&(n=void 0),n===Z4&&this.isDirectory()&&(n=void 0));let s;if(this.mtime!=null){let u=fw(this.mtime);u&&(s={Seconds:u.secs,FractionalNanoseconds:u.nsecs},s.FractionalNanoseconds===0&&delete s.FractionalNanoseconds)}let o={Type:e,Data:r,filesize:this.isDirectory()?void 0:this.fileSize(),blocksizes:this.blockSizes,hashType:this.hashType,fanout:this.fanout,mode:n,mtime:s};return Bi.encode(o).finish()}};eF.exports={UnixFS:Hl,parseMode:Md,parseMtime:fw}});var nF=x((Fhe,rF)=>{rF.exports=hw;var tF=128,Iee=127,Bee=~Iee,Gee=Math.pow(2,31);function hw(t,e,r){if(Number.MAX_SAFE_INTEGER&&t>Number.MAX_SAFE_INTEGER)throw hw.bytes=0,new RangeError("Could not encode varint");e=e||[],r=r||0;for(var n=r;t>=Gee;)e[r++]=t&255|tF,t/=128;for(;t&Bee;)e[r++]=t&255|tF,t>>>=7;return e[r]=t|0,hw.bytes=r-n+1,e}});var oF=x((Lhe,iF)=>{iF.exports=pw;var qee=128,sF=127;function pw(t,n){var r=0,n=n||0,s=0,o=n,u,f=t.length;do{if(o>=f||s>49)throw pw.bytes=0,new RangeError("Could not decode varint");u=t[o++],r+=s<28?(u&sF)<<s:(u&sF)*Math.pow(2,s),s+=7}while(u>=qee);return pw.bytes=o-n,r}});var uF=x((Ihe,aF)=>{var Uee=Math.pow(2,7),Nee=Math.pow(2,14),Mee=Math.pow(2,21),jee=Math.pow(2,28),$ee=Math.pow(2,35),Hee=Math.pow(2,42),zee=Math.pow(2,49),Wee=Math.pow(2,56),Vee=Math.pow(2,63);aF.exports=function(t){return t<Uee?1:t<Nee?2:t<Mee?3:t<jee?4:t<$ee?5:t<Hee?6:t<zee?7:t<Wee?8:t<Vee?9:10}});var dw=x((Bhe,cF)=>{cF.exports={encode:nF(),decode:oF(),encodingLength:uF()}});var mw=x((Ghe,hF)=>{"use strict";var lF=dw(),{toString:Kee}=xd(),{fromString:Yee}=Ol();hF.exports={numberToUint8Array:Jee,uint8ArrayToNumber:fF,varintUint8ArrayEncode:Qee,varintEncode:Xee};function fF(t){return parseInt(Kee(t,"base16"),16)}function Jee(t){let e=t.toString(16);return e.length%2===1&&(e="0"+e),Yee(e,"base16")}function Qee(t){return Uint8Array.from(lF.encode(fF(t)))}function Xee(t){return Uint8Array.from(lF.encode(t))}});var dF=x((qhe,pF)=>{"use strict";var Zee=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});pF.exports={baseTable:Zee}});var gF=x((Uhe,mF)=>{"use strict";var{baseTable:gw}=dF(),ete=mw().varintEncode,bw={},yw={},jd={};for(let t in gw){let e=t,r=gw[e];bw[e]=ete(r);let n=e.toUpperCase().replace(/-/g,"_");yw[n]=r,jd[r]||(jd[r]=e)}Object.freeze(bw);Object.freeze(yw);Object.freeze(jd);var tte=Object.freeze(gw);mF.exports={nameToVarint:bw,constantToCode:yw,nameToCode:tte,codeToName:jd}});var ww=x((Nhe,kF)=>{"use strict";var $d=dw(),{concat:rte}=Pl(),bF=mw(),{nameToVarint:Hd,constantToCode:nte,nameToCode:yF,codeToName:_w}=gF();function ste(t,e){let r;if(t instanceof Uint8Array)r=bF.varintUint8ArrayEncode(t);else if(Hd[t])r=Hd[t];else throw new Error("multicodec not recognized");return rte([r,e],r.length+e.length)}function ite(t){return $d.decode(t),t.slice($d.decode.bytes)}function _F(t){let e=$d.decode(t),r=_w[e];if(r===void 0)throw new Error(`Code "${e}" not found`);return r}function wF(t){return _w[t]}function EF(t){let e=yF[t];if(e===void 0)throw new Error(`Codec "${t}" not found`);return e}function vF(t){return $d.decode(t)}function SF(t){let e=Hd[t];if(e===void 0)throw new Error(`Codec "${t}" not found`);return e}function TF(t){return bF.varintEncode(t)}function ote(t){return _F(t)}function ate(t){return wF(t)}function ute(t){return EF(t)}function cte(t){return vF(t)}function lte(t){return SF(t)}function fte(t){return Array.from(TF(t))}kF.exports={addPrefix:ste,rmPrefix:ite,getNameFromData:_F,getNameFromCode:wF,getCodeFromName:EF,getCodeFromData:vF,getVarintFromName:SF,getVarintFromCode:TF,getCodec:ote,getName:ate,getNumber:ute,getCode:cte,getCodeVarint:lte,getVarint:fte,...nte,nameToVarint:Hd,nameToCode:yF,codeToName:_w}});var AF=x((Mhe,xF)=>{"use strict";var hte=Ll(),pte={checkCIDComponents:function(t){if(t==null)return"null values are not valid CIDs";if(!(t.version===0||t.version===1))return"Invalid version, must be a number equal to 1 or 0";if(typeof t.codec!="string")return"codec must be string";if(t.version===0){if(t.codec!=="dag-pb")return"codec must be 'dag-pb' for CIDv0";if(t.multibaseName!=="base58btc")return"multibaseName must be 'base58btc' for CIDv0"}if(!(t.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{hte.validate(t.multihash)}catch(e){let r=e.message;return r||(r="Multihash validation failed"),r}}};xF.exports=pte});var Ku=x((jhe,DF)=>{"use strict";var zd=Ll(),Ew=b_(),Ra=ww(),dte=AF(),{concat:RF}=Pl(),{toString:mte}=xd(),{equals:gte}=Y_(),Wd=Ra.nameToCode,bte=Object.keys(Wd).reduce((t,e)=>(t[Wd[e]]=e,t),{}),CF=Symbol.for("@ipld/js-cid/CID"),Nn=class{constructor(e,r,n,s){if(this.version,this.codec,this.multihash,Object.defineProperty(this,CF,{value:!0}),Nn.isCID(e)){let o=e;this.version=o.version,this.codec=o.codec,this.multihash=o.multihash,this.multibaseName=o.multibaseName||(o.version===0?"base58btc":"base32");return}if(typeof e=="string"){let o=Ew.isEncoded(e);if(o){let u=Ew.decode(e);this.version=parseInt(u[0].toString(),16),this.codec=Ra.getCodec(u.slice(1)),this.multihash=Ra.rmPrefix(u.slice(1)),this.multibaseName=o}else this.version=0,this.codec="dag-pb",this.multihash=zd.fromB58String(e),this.multibaseName="base58btc";Nn.validateCID(this),Object.defineProperty(this,"string",{value:e});return}if(e instanceof Uint8Array){let o=parseInt(e[0].toString(),16);if(o===1){let u=e;this.version=o,this.codec=Ra.getCodec(u.slice(1)),this.multihash=Ra.rmPrefix(u.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";Nn.validateCID(this);return}this.version=e,typeof r=="number"&&(r=bte[r]),this.codec=r,this.multihash=n,this.multibaseName=s||(e===0?"base58btc":"base32"),Nn.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(this.version===0)e=this.multihash;else if(this.version===1){let r=Ra.getCodeVarint(this.codec);e=RF([[1],r,this.multihash],1+r.byteLength+this.multihash.byteLength)}else throw new Error("unsupported version");Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){let e=Ra.getCodeVarint(this.codec),r=zd.prefix(this.multihash);return RF([[this.version],e,r],1+e.byteLength+r.byteLength)}get code(){return Wd[this.codec]}toV0(){if(this.codec!=="dag-pb")throw new Error("Cannot convert a non dag-pb CID to CIDv0");let{name:e,length:r}=zd.decode(this.multihash);if(e!=="sha2-256")throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(r!==32)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new Nn(0,this.codec,this.multihash)}toV1(){return new Nn(1,this.codec,this.multihash,this.multibaseName)}toBaseEncodedString(e=this.multibaseName){if(this.string&&this.string.length!==0&&e===this.multibaseName)return this.string;let r;if(this.version===0){if(e!=="base58btc")throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");r=zd.toB58String(this.multihash)}else if(this.version===1)r=mte(Ew.encode(e,this.bytes));else throw new Error("unsupported version");return e===this.multibaseName&&Object.defineProperty(this,"string",{value:r}),r}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&>e(this.multihash,e.multihash)}static validateCID(e){let r=dte.checkCIDComponents(e);if(r)throw new Error(r)}static isCID(e){return e instanceof Nn||Boolean(e&&e[CF])}};Nn.codecs=Wd;DF.exports=Nn});var Yu=x(($he,OF)=>{"use strict";var yte=Nl(),_te=Ku(),wte=async(t,e,r)=>{r.codec||(r.codec="dag-pb"),r.cidVersion||(r.cidVersion=0),r.hashAlg||(r.hashAlg="sha2-256"),r.hashAlg!=="sha2-256"&&(r.cidVersion=1);let n=await yte(t,r.hashAlg),s=new _te(r.cidVersion,r.codec,n);return r.onlyHash||await e.put(t,{pin:r.pin,preload:r.preload,timeout:r.timeout,cid:s}),s};OF.exports=wte});var vw=x((Hhe,FF)=>{"use strict";var Ca=Nd(),Vd=Ca.Reader,PF=Ca.Writer,Tt=Ca.util,dn=Ca.roots.default||(Ca.roots.default={});dn.PBLink=function(){function t(e){if(e)for(var r=Object.keys(e),n=0;n<r.length;++n)e[r[n]]!=null&&(this[r[n]]=e[r[n]])}return t.prototype.Hash=Tt.newBuffer([]),t.prototype.Name="",t.prototype.Tsize=Tt.Long?Tt.Long.fromBits(0,0,!0):0,t.encode=function(r,n){return n||(n=PF.create()),r.Hash!=null&&Object.hasOwnProperty.call(r,"Hash")&&n.uint32(10).bytes(r.Hash),r.Name!=null&&Object.hasOwnProperty.call(r,"Name")&&n.uint32(18).string(r.Name),r.Tsize!=null&&Object.hasOwnProperty.call(r,"Tsize")&&n.uint32(24).uint64(r.Tsize),n},t.decode=function(r,n){r instanceof Vd||(r=Vd.create(r));for(var s=n===void 0?r.len:r.pos+n,o=new dn.PBLink;r.pos<s;){var u=r.uint32();switch(u>>>3){case 1:o.Hash=r.bytes();break;case 2:o.Name=r.string();break;case 3:o.Tsize=r.uint64();break;default:r.skipType(u&7);break}}return o},t.fromObject=function(r){if(r instanceof dn.PBLink)return r;var n=new dn.PBLink;return r.Hash!=null&&(typeof r.Hash=="string"?Tt.base64.decode(r.Hash,n.Hash=Tt.newBuffer(Tt.base64.length(r.Hash)),0):r.Hash.length&&(n.Hash=r.Hash)),r.Name!=null&&(n.Name=String(r.Name)),r.Tsize!=null&&(Tt.Long?(n.Tsize=Tt.Long.fromValue(r.Tsize)).unsigned=!0:typeof r.Tsize=="string"?n.Tsize=parseInt(r.Tsize,10):typeof r.Tsize=="number"?n.Tsize=r.Tsize:typeof r.Tsize=="object"&&(n.Tsize=new Tt.LongBits(r.Tsize.low>>>0,r.Tsize.high>>>0).toNumber(!0))),n},t.toObject=function(r,n){n||(n={});var s={};if(n.defaults)if(n.bytes===String?s.Hash="":(s.Hash=[],n.bytes!==Array&&(s.Hash=Tt.newBuffer(s.Hash))),s.Name="",Tt.Long){var o=new Tt.Long(0,0,!0);s.Tsize=n.longs===String?o.toString():n.longs===Number?o.toNumber():o}else s.Tsize=n.longs===String?"0":0;return r.Hash!=null&&r.hasOwnProperty("Hash")&&(s.Hash=n.bytes===String?Tt.base64.encode(r.Hash,0,r.Hash.length):n.bytes===Array?Array.prototype.slice.call(r.Hash):r.Hash),r.Name!=null&&r.hasOwnProperty("Name")&&(s.Name=r.Name),r.Tsize!=null&&r.hasOwnProperty("Tsize")&&(typeof r.Tsize=="number"?s.Tsize=n.longs===String?String(r.Tsize):r.Tsize:s.Tsize=n.longs===String?Tt.Long.prototype.toString.call(r.Tsize):n.longs===Number?new Tt.LongBits(r.Tsize.low>>>0,r.Tsize.high>>>0).toNumber(!0):r.Tsize),s},t.prototype.toJSON=function(){return this.constructor.toObject(this,Ca.util.toJSONOptions)},t}();dn.PBNode=function(){function t(e){if(this.Links=[],e)for(var r=Object.keys(e),n=0;n<r.length;++n)e[r[n]]!=null&&(this[r[n]]=e[r[n]])}return t.prototype.Links=Tt.emptyArray,t.prototype.Data=Tt.newBuffer([]),t.encode=function(r,n){if(n||(n=PF.create()),r.Data!=null&&Object.hasOwnProperty.call(r,"Data")&&n.uint32(10).bytes(r.Data),r.Links!=null&&r.Links.length)for(var s=0;s<r.Links.length;++s)dn.PBLink.encode(r.Links[s],n.uint32(18).fork()).ldelim();return n},t.decode=function(r,n){r instanceof Vd||(r=Vd.create(r));for(var s=n===void 0?r.len:r.pos+n,o=new dn.PBNode;r.pos<s;){var u=r.uint32();switch(u>>>3){case 2:o.Links&&o.Links.length||(o.Links=[]),o.Links.push(dn.PBLink.decode(r,r.uint32()));break;case 1:o.Data=r.bytes();break;default:r.skipType(u&7);break}}return o},t.fromObject=function(r){if(r instanceof dn.PBNode)return r;var n=new dn.PBNode;if(r.Links){if(!Array.isArray(r.Links))throw TypeError(".PBNode.Links: array expected");n.Links=[];for(var s=0;s<r.Links.length;++s){if(typeof r.Links[s]!="object")throw TypeError(".PBNode.Links: object expected");n.Links[s]=dn.PBLink.fromObject(r.Links[s])}}return r.Data!=null&&(typeof r.Data=="string"?Tt.base64.decode(r.Data,n.Data=Tt.newBuffer(Tt.base64.length(r.Data)),0):r.Data.length&&(n.Data=r.Data)),n},t.toObject=function(r,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.Links=[]),n.defaults&&(n.bytes===String?s.Data="":(s.Data=[],n.bytes!==Array&&(s.Data=Tt.newBuffer(s.Data)))),r.Data!=null&&r.hasOwnProperty("Data")&&(s.Data=n.bytes===String?Tt.base64.encode(r.Data,0,r.Data.length):n.bytes===Array?Array.prototype.slice.call(r.Data):r.Data),r.Links&&r.Links.length){s.Links=[];for(var o=0;o<r.Links.length;++o)s.Links[o]=dn.PBLink.toObject(r.Links[o],n)}return s},t.prototype.toJSON=function(){return this.constructor.toObject(this,Ca.util.toJSONOptions)},t}();FF.exports=dn});var Tw=x((zhe,GF)=>{"use strict";var{bases:LF}=I_();function BF(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}var IF=BF("utf8","u",t=>"u"+new TextDecoder("utf8").decode(t),t=>new TextEncoder().encode(t.substring(1))),Sw=BF("ascii","a",t=>{let e="a";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},t=>{t=t.substring(1);let e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}),Ete={utf8:IF,"utf-8":IF,hex:LF.base16,latin1:Sw,ascii:Sw,binary:Sw,...LF};GF.exports=Ete});var Kd=x((Whe,qF)=>{"use strict";var vte=Tw();function Ste(t,e="utf8"){let r=vte[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return r.decoder.decode(`${r.prefix}${t}`)}qF.exports=Ste});var Da=x((Vhe,UF)=>{"use strict";var Tte=Ku(),kte=Kd(),kw=class{constructor(e,r,n){if(!n)throw new Error("A link requires a cid to point to");this.Name=e||"",this.Tsize=r,this.Hash=new Tte(n),Object.defineProperties(this,{_nameBuf:{value:null,writable:!0,enumerable:!1}})}toString(){return`DAGLink <${this.Hash.toBaseEncodedString()} - name: "${this.Name}", size: ${this.Tsize}>`}toJSON(){return this._json||(this._json=Object.freeze({name:this.Name,size:this.Tsize,cid:this.Hash.toBaseEncodedString()})),Object.assign({},this._json)}get nameAsBuffer(){return this._nameBuf!=null?this._nameBuf:(this._nameBuf=kte(this.Name),this._nameBuf)}};UF.exports=kw});var NF=x((xw,Aw)=>{(function(t,e){typeof xw=="object"&&typeof Aw<"u"?Aw.exports=e():typeof define=="function"&&define.amd?define(e):t.stable=e()})(xw,function(){"use strict";var t=function(n,s){return e(n.slice(),s)};t.inplace=function(n,s){var o=e(n,s);return o!==n&&r(o,null,n.length,n),n};function e(n,s){typeof s!="function"&&(s=function(g,d){return String(g).localeCompare(d)});var o=n.length;if(o<=1)return n;for(var u=new Array(o),f=1;f<o;f*=2){r(n,s,f,u);var h=n;n=u,u=h}return n}var r=function(n,s,o,u){var f=n.length,h=0,g=o*2,d,y,v,b,w;for(d=0;d<f;d+=g)for(y=d+o,v=y+o,y>f&&(y=f),v>f&&(v=f),b=d,w=y;;)if(b<y&&w<v)s(n[b],n[w])<=0?u[h++]=n[b++]:u[h++]=n[w++];else if(b<y)u[h++]=n[b++];else if(w<v)u[h++]=n[w++];else break};return t})});var jF=x((Khe,MF)=>{"use strict";function xte(t,e){for(let r=0;r<t.byteLength;r++){if(t[r]<e[r])return-1;if(t[r]>e[r])return 1}return t.byteLength>e.byteLength?1:t.byteLength<e.byteLength?-1:0}MF.exports=xte});var Rw=x((Yhe,$F)=>{"use strict";var Ate=NF(),Rte=jF(),Cte=(t,e)=>{let r=t.nameAsBuffer,n=e.nameAsBuffer;return Rte(r,n)},Dte=t=>{Ate.inplace(t,Cte)};$F.exports=Dte});var Cw=x((Jhe,HF)=>{"use strict";var Ote=Da();function Pte(t){return new Ote(t.Name||t.name||"",t.Tsize||t.Size||t.size||0,t.Hash||t.hash||t.multihash||t.cid)}HF.exports={createDagLinkFromB58EncodedHash:Pte}});var Dw=x((Qhe,VF)=>{"use strict";var Fte=Nd(),{PBLink:Lte}=vw(),{createDagLinkFromB58EncodedHash:Ite}=Cw(),zF=t=>{let e={};return t.Data&&t.Data.byteLength>0?e.Data=t.Data:e.Data=null,t.Links&&t.Links.length>0?e.Links=t.Links.map(r=>({Hash:r.Hash.bytes,Name:r.Name,Tsize:r.Tsize})):e.Links=null,e},Bte=t=>WF(zF(t)),Gte=(t,e=[])=>{let r={Data:t,Links:e.map(n=>Ite(n))};return WF(zF(r))};VF.exports={serializeDAGNode:Bte,serializeDAGNodeLike:Gte};function WF(t){let e=Fte.Writer.create();if(t.Links!=null)for(let r=0;r<t.Links.length;r++)Lte.encode(t.Links[r],e.uint32(18).fork()).ldelim();return t.Data!=null&&e.uint32(10).bytes(t.Data),e.finish()}});var Ow=x((Xhe,ZF)=>{"use strict";var qte=Ku(),KF=ww(),YF=Nl(),{multihash:JF}=YF,QF=KF.DAG_PB,XF=JF.names["sha2-256"],Ute=async(t,e={})=>{let r={cidVersion:e.cidVersion==null?1:e.cidVersion,hashAlg:e.hashAlg==null?XF:e.hashAlg},n=JF.codes[r.hashAlg],s=await YF(t,n),o=KF.getNameFromCode(QF);return new qte(r.cidVersion,o,s)};ZF.exports={codec:QF,defaultHashAlg:XF,cid:Ute}});var t8=x((Zhe,e8)=>{"use strict";var Nte=Da(),Mte=Ow(),jte=async(t,e={})=>{let r=t.serialize(),n=await Mte.cid(r,e);return new Nte(e.name||"",t.size,n)};e8.exports=jte});var s8=x((epe,n8)=>{"use strict";var $te=Rw(),r8=Da(),Hte=t=>{if(t instanceof r8)return t;if(!("cid"in t||"hash"in t||"Hash"in t||"multihash"in t))throw new Error("Link must be a DAGLink or DAGLink-like. Convert the DAGNode into a DAGLink via `node.toDAGLink()`.");return new r8(t.Name||t.name,t.Tsize||t.size,t.Hash||t.multihash||t.hash||t.cid)},zte=(t,e)=>{let r=Hte(e);t.Links.push(r),$te(t.Links)};n8.exports=zte});var o8=x((tpe,i8)=>{"use strict";function Wte(t,e){if(t===e)return!0;if(t.byteLength!==e.byteLength)return!1;for(let r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}i8.exports=Wte});var c8=x((rpe,u8)=>{"use strict";var Vte=Ku(),a8=o8(),Kte=(t,e)=>{let r=null;if(typeof e=="string"?r=n=>n.Name===e:e instanceof Uint8Array?r=n=>a8(n.Hash.bytes,e):Vte.isCID(e)&&(r=n=>a8(n.Hash.bytes,e.bytes)),r){let n=t.Links,s=0;for(;s<n.length;){let o=n[s];r(o)?n.splice(s,1):s++}}else throw new Error("second arg needs to be a name or CID")};u8.exports=Kte});var f8=x((npe,l8)=>{"use strict";var Yte=Tw();function Jte(t,e="utf8"){let r=Yte[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return r.encoder.encode(t).substring(1)}l8.exports=Jte});var Fw=x((spe,h8)=>{"use strict";var Qte=Rw(),Xte=Da(),{createDagLinkFromB58EncodedHash:Zte}=Cw(),{serializeDAGNode:ere}=Dw(),tre=t8(),rre=s8(),nre=c8(),sre=Kd(),ire=f8(),Pw=class{constructor(e,r=[],n=null){if(e||(e=new Uint8Array(0)),typeof e=="string"&&(e=sre(e)),!(e instanceof Uint8Array))throw new Error("Passed 'data' is not a Uint8Array or a String!");if(n!==null&&typeof n!="number")throw new Error("Passed 'serializedSize' must be a number!");let s=r.map(o=>o instanceof Xte?o:Zte(o));Qte(s),this.Data=e,this.Links=s,Object.defineProperties(this,{_serializedSize:{value:n,writable:!0,enumerable:!1},_size:{value:null,writable:!0,enumerable:!1}})}toJSON(){return this._json||(this._json=Object.freeze({data:this.Data,links:this.Links.map(e=>e.toJSON()),size:this.size})),Object.assign({},this._json)}toString(){return`DAGNode <data: "${ire(this.Data,"base64urlpad")}", links: ${this.Links.length}, size: ${this.size}>`}_invalidateCached(){this._serializedSize=null,this._size=null}addLink(e){return this._invalidateCached(),rre(this,e)}rmLink(e){return this._invalidateCached(),nre(this,e)}toDAGLink(e){return tre(this,e)}serialize(){let e=ere(this);return this._serializedSize=e.length,e}get size(){if(this._size==null){let e;e==null&&(this._serializedSize=this.serialize().length,e=this._serializedSize),this._size=this.Links.reduce((r,n)=>r+n.Tsize,e)}return this._size}set size(e){throw new Error("Can't set property: 'size' is immutable")}};h8.exports=Pw});var Iw=x((ipe,m8)=>{"use strict";var{PBNode:p8}=vw(),ore=Da(),d8=Fw(),{serializeDAGNode:are,serializeDAGNodeLike:ure}=Dw(),Lw=Ow(),cre=(t,e)=>Lw.cid(t,e),lre=t=>t instanceof d8?are(t):ure(t.Data,t.Links),fre=t=>{let e=p8.decode(t),r=p8.toObject(e,{defaults:!1,arrays:!0,longs:Number,objects:!1}),n=r.Links.map(o=>new ore(o.Name,o.Tsize,o.Hash)),s=r.Data==null?new Uint8Array(0):r.Data;return new d8(s,n,t.byteLength)};m8.exports={codec:Lw.codec,defaultHashAlg:Lw.defaultHashAlg,serialize:lre,deserialize:fre,cid:cre}});var b8=x(Bw=>{"use strict";var hre=Ku(),g8=Iw();Bw.resolve=(t,e="/")=>{let r=g8.deserialize(t),n=e.split("/").filter(Boolean);for(;n.length;){let s=n.shift();if(r[s]===void 0){for(let o of r.Links)if(o.Name===s)return{value:o.Hash,remainderPath:n.join("/")};throw new Error(`Object has no property '${s}'`)}if(r=r[s],hre.isCID(r))return{value:r,remainderPath:n.join("/")}}return{value:r,remainderPath:""}};Bw.tree=function*(t){let e=g8.deserialize(t);yield"Data",yield"Links";for(let r=0;r<e.Links.length;r++)yield`Links/${r}`,yield`Links/${r}/Name`,yield`Links/${r}/Tsize`,yield`Links/${r}/Hash`}});var Ju=x((ape,y8)=>{"use strict";var pre=b8(),Gw=Iw(),dre=Fw(),mre=Da(),gre={DAGNode:dre,DAGLink:mre,resolver:pre,util:Gw,codec:Gw.codec,defaultHashAlg:Gw.defaultHashAlg};y8.exports=gre});var w8=x((upe,_8)=>{"use strict";var{UnixFS:bre}=Vu(),yre=Yu(),{DAGNode:_re}=Ju(),wre=async(t,e,r)=>{let n=new bre({type:"directory",mtime:t.mtime,mode:t.mode}),s=new _re(n.marshal()).serialize(),o=await yre(s,e,r),u=t.path;return{cid:o,path:u,unixfs:n,size:s.length}};_8.exports=wre});var v8=x((cpe,E8)=>{"use strict";var Ere=async t=>{let e=[];for await(let r of t)e.push(r);return e};E8.exports=Ere});var T8=x((lpe,S8)=>{"use strict";var vre=v8();S8.exports=async function(t,e){return e(await vre(t))}});var A8=x((fpe,x8)=>{"use strict";var Sre=id();function Tre(t,e,r){return k8(t,e,r)}async function k8(t,e,r){let n=[];for await(let s of Sre(t,r.maxChildrenPerNode))n.push(await e(s));return n.length>1?k8(n,e,r):n[0]}x8.exports=Tre});var C8=x((hpe,R8)=>{"use strict";var kre=id();R8.exports=async function(e,r,n){let s=new qw(n.layerRepeat),o=0,u=1,f=s;for await(let h of kre(e,n.maxChildrenPerNode))f.isFull()&&(f!==s&&s.addChild(await f.reduce(r)),o&&o%n.layerRepeat===0&&u++,f=new Yd(u,n.layerRepeat,o),o++),f.append(h);return f&&f!==s&&s.addChild(await f.reduce(r)),s.reduce(r)};var Yd=class{constructor(e,r,n=0){this.maxDepth=e,this.layerRepeat=r,this.currentDepth=1,this.iteration=n,this.root=this.node=this.parent={children:[],depth:this.currentDepth,maxDepth:e,maxChildren:(this.maxDepth-this.currentDepth)*this.layerRepeat}}isFull(){if(!this.root.data)return!1;if(this.currentDepth<this.maxDepth&&this.node.maxChildren)return this._addNextNodeToParent(this.node),!1;let e=this._findParent(this.node,this.currentDepth);return e?(this._addNextNodeToParent(e),!1):!0}_addNextNodeToParent(e){this.parent=e;let r={children:[],depth:e.depth+1,parent:e,maxDepth:this.maxDepth,maxChildren:Math.floor(e.children.length/this.layerRepeat)*this.layerRepeat};e.children.push(r),this.currentDepth=r.depth,this.node=r}append(e){this.node.data=e}reduce(e){return this._reduce(this.root,e)}async _reduce(e,r){let n=[];return e.children.length&&(n=await Promise.all(e.children.filter(s=>s.data).map(s=>this._reduce(s,r)))),r((e.data||[]).concat(n))}_findParent(e,r){let n=e.parent;if(!(!n||n.depth===0))return n.children.length===n.maxChildren||!n.maxChildren?this._findParent(n,r):n}},qw=class extends Yd{constructor(e){super(0,e),this.root.depth=0,this.currentDepth=1}addChild(e){this.root.children.push(e)}reduce(e){return e((this.root.data||[]).concat(this.root.children))}}});var O8=x((ppe,D8)=>{"use strict";var{UnixFS:xre}=Vu(),Are=Yu(),{DAGNode:Rre}=Ju();async function*Cre(t,e,r){for await(let n of t.content)yield async()=>{r.progress(n.length,t.path);let s,o={codec:"dag-pb",cidVersion:r.cidVersion,hashAlg:r.hashAlg,onlyHash:r.onlyHash};return r.rawLeaves?(o.codec="raw",o.cidVersion=1):(s=new xre({type:r.leafType,data:n,mtime:t.mtime,mode:t.mode}),n=new Rre(s.marshal()).serialize()),{cid:await Are(n,e,o),unixfs:s,size:n.length}}}D8.exports=Cre});var G8=x((dpe,B8)=>{"use strict";var Dre=va(),{UnixFS:P8}=Vu(),F8=Yu(),{DAGNode:L8,DAGLink:I8}=Ju(),Ore=d_(),Pre=Nl().multihash,Fre={flat:T8(),balanced:A8(),trickle:C8()};async function*Lre(t,e,r){let n=-1,s,o;typeof r.bufferImporter=="function"?o=r.bufferImporter:o=O8();for await(let u of Ore(o(t,e,r),r.blockWriteConcurrency)){if(n++,n===0){s=u;continue}else n===1&&s&&(yield s,s=null);yield u}s&&(s.single=!0,yield s)}var Ire=(t,e,r)=>{async function n(s){if(s.length===1&&s[0].single&&r.reduceSingleLeafToSelf){let d=s[0];if(d.cid.codec==="raw"&&(t.mtime!==void 0||t.mode!==void 0)){let{data:y}=await e.get(d.cid,r);d.unixfs=new P8({type:"file",mtime:t.mtime,mode:t.mode,data:y});let v=Pre.decode(d.cid.multihash);y=new L8(d.unixfs.marshal()).serialize(),d.cid=await F8(y,e,{...r,codec:"dag-pb",hashAlg:v.name,cidVersion:r.cidVersion}),d.size=y.length}return{cid:d.cid,path:t.path,unixfs:d.unixfs,size:d.size}}let o=new P8({type:"file",mtime:t.mtime,mode:t.mode}),u=s.filter(d=>d.cid.codec==="raw"&&d.size||d.unixfs&&!d.unixfs.data&&d.unixfs.fileSize()?!0:Boolean(d.unixfs&&d.unixfs.data&&d.unixfs.data.length)).map(d=>d.cid.codec==="raw"?(o.addBlockSize(d.size),new I8("",d.size,d.cid)):(!d.unixfs||!d.unixfs.data?o.addBlockSize(d.unixfs&&d.unixfs.fileSize()||0):o.addBlockSize(d.unixfs.data.length),new I8("",d.size,d.cid))),f=new L8(o.marshal(),u),h=f.serialize();return{cid:await F8(h,e,r),path:t.path,unixfs:o,size:h.length+f.Links.reduce((d,y)=>d+y.Tsize,0)}}return n};function Bre(t,e,r){let n=Fre[r.strategy];if(!n)throw Dre(new Error(`Unknown importer build strategy name: ${r.strategy}`),"ERR_BAD_STRATEGY");return n(Lre(t,e,r),Ire(t,e,r),r)}B8.exports=Bre});var Uw=x((mpe,U8)=>{"use strict";var{Buffer:ys}=require("buffer"),q8=Symbol.for("BufferList");function lt(t){if(!(this instanceof lt))return new lt(t);lt._init.call(this,t)}lt._init=function(e){Object.defineProperty(this,q8,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};lt.prototype._new=function(e){return new lt(e)};lt.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let s=r+this._bufs[n].length;if(e<s||n===this._bufs.length-1)return[n,e-r];r=s}};lt.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};lt.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};lt.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)};lt.prototype.copy=function(e,r,n,s){if((typeof n!="number"||n<0)&&(n=0),(typeof s!="number"||s>this.length)&&(s=this.length),n>=this.length||s<=0)return e||ys.alloc(0);let o=!!e,u=this._offset(n),f=s-n,h=f,g=o&&r||0,d=u[1];if(n===0&&s===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:ys.concat(this._bufs,this.length);for(let y=0;y<this._bufs.length;y++)this._bufs[y].copy(e,g),g+=this._bufs[y].length;return e}if(h<=this._bufs[u[0]].length-d)return o?this._bufs[u[0]].copy(e,r,d,d+h):this._bufs[u[0]].slice(d,d+h);o||(e=ys.allocUnsafe(f));for(let y=u[0];y<this._bufs.length;y++){let v=this._bufs[y].length-d;if(h>v)this._bufs[y].copy(e,g,d),g+=v;else{this._bufs[y].copy(e,g,d,d+h),g+=v;break}h-=v,d&&(d=0)}return e.length>g?e.slice(0,g):e};lt.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),s=this._offset(r),o=this._bufs.slice(n[0],s[0]+1);return s[1]===0?o.pop():o[o.length-1]=o[o.length-1].slice(0,s[1]),n[1]!==0&&(o[0]=o[0].slice(n[1])),this._new(o)};lt.prototype.toString=function(e,r,n){return this.slice(r,n).toString(e)};lt.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};lt.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};lt.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(ys.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(ys.from(e));return this};lt.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};lt.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=ys.from([t]):typeof t=="string"?t=ys.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=ys.from(t.buffer,t.byteOffset,t.byteLength):ys.isBuffer(t)||(t=ys.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),s=n[0],o=n[1];for(;s<this._bufs.length;s++){let u=this._bufs[s];for(;o<u.length;)if(u.length-o>=t.length){let h=u.indexOf(t,o);if(h!==-1)return this._reverseOffset([s,h]);o=u.length-t.length+1}else{let h=this._reverseOffset([s,o]);if(this._match(h,t))return h;o++}o=0}return-1};lt.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?lt.prototype[r]=function(n,s){return this.slice(n,n+s)[r](0,s)}:lt.prototype[r]=function(n=0){return this.slice(n,n+t[r])[r](0)}})(e)})();lt.prototype._isBufferList=function(e){return e instanceof lt||lt.isBufferList(e)};lt.isBufferList=function(e){return e!=null&&e[q8]};U8.exports=lt});var M8=x((gpe,N8)=>{var Nw=class{constructor(e,r=12,n=8*1024,s=32*1024,o=64,u){this.bits=r,this.min=n,this.max=s,this.asModule=e,this.rabin=new e.Rabin(r,n,s,o,u),this.polynomial=u}fingerprint(e){let{__retain:r,__release:n,__allocArray:s,__getInt32Array:o,Int32Array_ID:u,Uint8Array_ID:f}=this.asModule,h=new Int32Array(Math.ceil(e.length/this.min)),g=r(s(u,h)),d=r(s(f,e)),y=this.rabin.fingerprint(d,g),v=o(y);n(d),n(g);let b=v.indexOf(0);return b>=0?v.subarray(0,b):v}};N8.exports=Nw});var V8=x(Vl=>{"use strict";var Gre=typeof BigUint64Array<"u",zl=Symbol(),Wl=1024;function j8(t,e){let r=new Uint32Array(t),n=new Uint16Array(t);var s=r[e+-4>>>2]>>>1,o=e>>>1;if(s<=Wl)return String.fromCharCode.apply(String,n.subarray(o,o+s));let u=[];do{let f=n[o+Wl-1],h=f>=55296&&f<56320?Wl-1:Wl;u.push(String.fromCharCode.apply(String,n.subarray(o,o+=h))),s-=h}while(s>Wl);return u.join("")+String.fromCharCode.apply(String,n.subarray(o,o+s))}function Mw(t){let e={};function r(s,o){return s?j8(s.buffer,o):"<yet unknown>"}let n=t.env=t.env||{};return n.abort=n.abort||function(o,u,f,h){let g=e.memory||n.memory;throw Error("abort: "+r(g,o)+" at "+r(g,u)+":"+f+":"+h)},n.trace=n.trace||function(o,u){let f=e.memory||n.memory;console.log("trace: "+r(f,o)+(u?" ":"")+Array.prototype.slice.call(arguments,2,2+u).join(", "))},t.Math=t.Math||Math,t.Date=t.Date||Date,e}function jw(t,e){let r=e.exports,n=r.memory,s=r.table,o=r.__alloc,u=r.__retain,f=r.__rtti_base||-1;function h(N){let L=new Uint32Array(n.buffer),W=L[f>>>2];if((N>>>=0)>=W)throw Error("invalid id: "+N);return L[(f+4>>>2)+N*2]}function g(N){let L=new Uint32Array(n.buffer),W=L[f>>>2];if((N>>>=0)>=W)throw Error("invalid id: "+N);return L[(f+4>>>2)+N*2+1]}function d(N){return 31-Math.clz32(N>>>5&31)}function y(N){return 31-Math.clz32(N>>>14&31)}function v(N){let L=N.length,W=o(L<<1,1),X=new Uint16Array(n.buffer);for(var le=0,M=W>>>1;le<L;++le)X[M+le]=N.charCodeAt(le);return W}t.__allocString=v;function b(N){let L=n.buffer;if(new Uint32Array(L)[N+-8>>>2]!==1)throw Error("not a string: "+N);return j8(L,N)}t.__getString=b;function w(N,L,W){let X=n.buffer;if(W)switch(N){case 2:return new Float32Array(X);case 3:return new Float64Array(X)}else switch(N){case 0:return new(L?Int8Array:Uint8Array)(X);case 1:return new(L?Int16Array:Uint16Array)(X);case 2:return new(L?Int32Array:Uint32Array)(X);case 3:return new(L?BigInt64Array:BigUint64Array)(X)}throw Error("unsupported align: "+N)}function R(N,L){let W=h(N);if(!(W&3))throw Error("not an array: "+N+" @ "+W);let X=d(W),le=L.length,M=o(le<<X,0),de=o(W&2?16:12,N),ae=new Uint32Array(n.buffer);ae[de+0>>>2]=u(M),ae[de+4>>>2]=M,ae[de+8>>>2]=le<<X,W&2&&(ae[de+12>>>2]=le);let Re=w(X,W&1024,W&2048);if(W&8192)for(let j=0;j<le;++j)Re[(M>>>X)+j]=u(L[j]);else Re.set(L,M>>>X);return de}t.__allocArray=R;function I(N){let L=new Uint32Array(n.buffer),W=L[N+-8>>>2],X=h(W);if(!(X&1))throw Error("not an array: "+W);let le=d(X);var M=L[N+4>>>2];let de=X&2?L[N+12>>>2]:L[M+-4>>>2]>>>le;return w(le,X&1024,X&2048).subarray(M>>>=le,M+de)}t.__getArrayView=I;function D(N){let L=I(N),W=L.length,X=new Array(W);for(let le=0;le<W;le++)X[le]=L[le];return X}t.__getArray=D;function P(N){let L=n.buffer,W=new Uint32Array(L)[N+-4>>>2];return L.slice(N,N+W)}t.__getArrayBuffer=P;function G(N,L,W){return new N(q(N,L,W))}function q(N,L,W){let X=n.buffer,le=new Uint32Array(X),M=le[W+4>>>2];return new N(X,M,le[M+-4>>>2]>>>L)}t.__getInt8Array=G.bind(null,Int8Array,0),t.__getInt8ArrayView=q.bind(null,Int8Array,0),t.__getUint8Array=G.bind(null,Uint8Array,0),t.__getUint8ArrayView=q.bind(null,Uint8Array,0),t.__getUint8ClampedArray=G.bind(null,Uint8ClampedArray,0),t.__getUint8ClampedArrayView=q.bind(null,Uint8ClampedArray,0),t.__getInt16Array=G.bind(null,Int16Array,1),t.__getInt16ArrayView=q.bind(null,Int16Array,1),t.__getUint16Array=G.bind(null,Uint16Array,1),t.__getUint16ArrayView=q.bind(null,Uint16Array,1),t.__getInt32Array=G.bind(null,Int32Array,2),t.__getInt32ArrayView=q.bind(null,Int32Array,2),t.__getUint32Array=G.bind(null,Uint32Array,2),t.__getUint32ArrayView=q.bind(null,Uint32Array,2),Gre&&(t.__getInt64Array=G.bind(null,BigInt64Array,3),t.__getInt64ArrayView=q.bind(null,BigInt64Array,3),t.__getUint64Array=G.bind(null,BigUint64Array,3),t.__getUint64ArrayView=q.bind(null,BigUint64Array,3)),t.__getFloat32Array=G.bind(null,Float32Array,2),t.__getFloat32ArrayView=q.bind(null,Float32Array,2),t.__getFloat64Array=G.bind(null,Float64Array,3),t.__getFloat64ArrayView=q.bind(null,Float64Array,3);function z(N,L){let W=new Uint32Array(n.buffer);var X=W[N+-8>>>2];if(X<=W[f>>>2])do if(X==L)return!0;while(X=g(X));return!1}return t.__instanceof=z,t.memory=t.memory||n,t.table=t.table||s,W8(r,t)}function $8(t){return typeof Response<"u"&&t instanceof Response}async function H8(t,e){return $8(t=await t)?z8(t,e):jw(Mw(e||(e={})),await WebAssembly.instantiate(t instanceof WebAssembly.Module?t:await WebAssembly.compile(t),e))}Vl.instantiate=H8;function qre(t,e){return jw(Mw(e||(e={})),new WebAssembly.Instance(t instanceof WebAssembly.Module?t:new WebAssembly.Module(t),e))}Vl.instantiateSync=qre;async function z8(t,e){return WebAssembly.instantiateStreaming?jw(Mw(e||(e={})),(await WebAssembly.instantiateStreaming(t,e)).instance):H8($8(t=await t)?t.arrayBuffer():t,e)}Vl.instantiateStreaming=z8;function W8(t,e){var r=e?Object.create(e):{},n=t.__argumentsLength?function(s){t.__argumentsLength.value=s}:t.__setArgumentsLength||t.__setargc||function(){};for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let o=t[s],u=s.split("."),f=r;for(;u.length>1;){let d=u.shift();Object.prototype.hasOwnProperty.call(f,d)||(f[d]={}),f=f[d]}let h=u[0],g=h.indexOf("#");if(g>=0){let d=h.substring(0,g),y=f[d];if(typeof y>"u"||!y.prototype){let v=function(...b){return v.wrap(v.prototype.constructor(0,...b))};v.prototype={valueOf:function(){return this[zl]}},v.wrap=function(b){return Object.create(v.prototype,{[zl]:{value:b,writable:!1}})},y&&Object.getOwnPropertyNames(y).forEach(b=>Object.defineProperty(v,b,Object.getOwnPropertyDescriptor(y,b))),f[d]=v}if(h=h.substring(g+1),f=f[d].prototype,/^(get|set):/.test(h)){if(!Object.prototype.hasOwnProperty.call(f,h=h.substring(4))){let v=t[s.replace("set:","get:")],b=t[s.replace("get:","set:")];Object.defineProperty(f,h,{get:function(){return v(this[zl])},set:function(w){b(this[zl],w)},enumerable:!0})}}else h==="constructor"?(f[h]=(...v)=>(n(v.length),o(...v))).original=o:(f[h]=function(...v){return n(v.length),o(this[zl],...v)}).original=o}else/^(get|set):/.test(h)?Object.prototype.hasOwnProperty.call(f,h=h.substring(4))||Object.defineProperty(f,h,{get:t[s.replace("set:","get:")],set:t[s.replace("get:","set:")],enumerable:!0}):typeof o=="function"&&o!==n?(f[h]=(...d)=>(n(d.length),o(...d))).original=o:f[h]=o}return r}Vl.demangle=W8});var Y8=x((ype,K8)=>{var{instantiateSync:Ure}=V8(),Nre=require("fs");$w.supported=typeof WebAssembly<"u";async function $w(t={}){return $w.supported?Ure(Nre.readFileSync(__dirname+"/../dist/rabin.wasm"),t):null}K8.exports=$w});var X8=x((_pe,Q8)=>{var J8=M8(),Mre=Y8(),jre=async(t,e,r,n,s)=>{let o=await Mre();return new J8(o,t,e,r,n,s)};Q8.exports={Rabin:J8,create:jre}});var tL=x((wpe,eL)=>{"use strict";var $re=Uw(),{create:Hre}=X8(),Z8=va();eL.exports=async function*(e,r){let n,s,o;if(r.minChunkSize&&r.maxChunkSize&&r.avgChunkSize)o=r.avgChunkSize,n=r.minChunkSize,s=r.maxChunkSize;else if(r.avgChunkSize)o=r.avgChunkSize,n=o/3,s=o+o/2;else throw Z8(new Error("please specify an average chunk size"),"ERR_INVALID_AVG_CHUNK_SIZE");if(n<16)throw Z8(new Error("rabin min must be greater than 16"),"ERR_INVALID_MIN_CHUNK_SIZE");s<n&&(s=n),o<n&&(o=n);let u=Math.floor(Math.log2(o));for await(let f of zre(e,{min:n,max:s,bits:u,window:r.window,polynomial:r.polynomial}))yield f};async function*zre(t,e){let r=await Hre(e.bits,e.min,e.max,e.window),n=new $re;for await(let s of t){n.append(s);let o=r.fingerprint(s);for(let u=0;u<o.length;u++){let f=o[u],h=n.slice(0,f);n.consume(f),yield h}}n.length&&(yield n.slice(0))}});var nL=x((Epe,rL)=>{"use strict";var Hw=Uw();rL.exports=async function*(e,r){let n=new Hw,s=0,o=!1,u=r.maxChunkSize;for await(let f of e)for(n.append(f),s+=f.length;s>=u;)if(yield n.slice(0,u),o=!0,u===n.length)n=new Hw,s=0;else{let h=new Hw;h.append(n.shallowSlice(u)),n=h,s-=u}(!o||s)&&(yield n.slice(0,s))}});var oL=x((vpe,iL)=>{"use strict";var sL=va(),Wre=Kd();async function*Vre(t){for await(let e of t){if(e.length===void 0)throw sL(new Error("Content was invalid"),"ERR_INVALID_CONTENT");if(typeof e=="string"||e instanceof String)yield Wre(e.toString());else if(Array.isArray(e))yield Uint8Array.from(e);else if(e instanceof Uint8Array)yield e;else throw sL(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}}iL.exports=Vre});var cL=x((Spe,uL)=>{"use strict";var Kre=w8(),Yre=G8(),aL=va();function Jre(t){return Symbol.iterator in t}function Qre(t){return Symbol.asyncIterator in t}function Xre(t){try{if(t instanceof Uint8Array)return async function*(){yield t}();if(Jre(t))return async function*(){yield*t}();if(Qre(t))return t}catch{throw aL(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}throw aL(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}async function*Zre(t,e,r){for await(let n of t)if(n.path&&(n.path.substring(0,2)==="./"&&(r.wrapWithDirectory=!0),n.path=n.path.split("/").filter(s=>s&&s!==".").join("/")),n.content){let s;typeof r.chunker=="function"?s=r.chunker:r.chunker==="rabin"?s=tL():s=nL();let o;typeof r.chunkValidator=="function"?o=r.chunkValidator:o=oL();let u={path:n.path,mtime:n.mtime,mode:n.mode,content:s(o(Xre(n.content),r),r)};yield()=>Yre(u,e,r)}else if(n.path){let s={path:n.path,mtime:n.mtime,mode:n.mode};yield()=>Kre(s,e,r)}else throw new Error("Import candidate must have content or path or both")}uL.exports=Zre});var Jd=x((Tpe,lL)=>{"use strict";var zw=class{constructor(e,r){this.options=r||{},this.root=e.root,this.dir=e.dir,this.path=e.path,this.dirty=e.dirty,this.flat=e.flat,this.parent=e.parent,this.parentKey=e.parentKey,this.unixfs=e.unixfs,this.mode=e.mode,this.mtime=e.mtime,this.cid=void 0,this.size=void 0}async put(e,r){}get(e){return Promise.resolve(this)}async*eachChildSeries(){}async*flush(e){}};lL.exports=zw});var Vw=x((kpe,hL)=>{"use strict";var{DAGLink:ene,DAGNode:tne}=Ju(),{UnixFS:rne}=Vu(),fL=Jd(),nne=Yu(),Ww=class extends fL{constructor(e,r){super(e,r),this._children={}}async put(e,r){this.cid=void 0,this.size=void 0,this._children[e]=r}get(e){return Promise.resolve(this._children[e])}childCount(){return Object.keys(this._children).length}directChildrenCount(){return this.childCount()}onlyChild(){return this._children[Object.keys(this._children)[0]]}async*eachChildSeries(){let e=Object.keys(this._children);for(let r=0;r<e.length;r++){let n=e[r];yield{key:n,child:this._children[n]}}}async*flush(e){let r=Object.keys(this._children),n=[];for(let g=0;g<r.length;g++){let d=this._children[r[g]];if(d instanceof fL)for await(let y of d.flush(e))d=y,yield d;d.size!=null&&d.cid&&n.push(new ene(r[g],d.size,d.cid))}let s=new rne({type:"directory",mtime:this.mtime,mode:this.mode}),o=new tne(s.marshal(),n),u=o.serialize(),f=await nne(u,e,this.options),h=u.length+o.Links.reduce((g,d)=>g+d.Tsize,0);this.cid=f,this.size=h,yield{cid:f,unixfs:s,path:this.path,size:h}}};hL.exports=Ww});var mL=x((Ape,dL)=>{"use strict";dL.exports=class{constructor(){this._bitArrays=[],this._data=[],this._length=0,this._changedLength=!1,this._changedData=!1}set(e,r){let n=this._internalPositionFor(e,!1);if(r===void 0)n!==-1&&(this._unsetInternalPos(n),this._unsetBit(e),this._changedLength=!0,this._changedData=!0);else{let s=!1;n===-1?(n=this._data.length,this._setBit(e),this._changedData=!0):s=!0,this._setInternalPos(n,e,r,s),this._changedLength=!0}}unset(e){this.set(e,void 0)}get(e){this._sortData();let r=this._internalPositionFor(e,!0);if(r!==-1)return this._data[r][1]}push(e){return this.set(this.length,e),this.length}get length(){if(this._sortData(),this._changedLength){let e=this._data[this._data.length-1];this._length=e?e[0]+1:0,this._changedLength=!1}return this._length}forEach(e){let r=0;for(;r<this.length;)e(this.get(r),r,this),r++}map(e){let r=0,n=new Array(this.length);for(;r<this.length;)n[r]=e(this.get(r),r,this),r++;return n}reduce(e,r){let n=0,s=r;for(;n<this.length;){let o=this.get(n);s=e(s,o,n),n++}return s}find(e){let r=0,n,s;for(;r<this.length&&!n;)s=this.get(r),n=e(s),r++;return n?s:void 0}_internalPositionFor(e,r){let n=this._bytePosFor(e,r);if(n>=this._bitArrays.length)return-1;let s=this._bitArrays[n],o=e-n*7;if(!((s&1<<o)>0))return-1;let f=this._bitArrays.slice(0,n).reduce(sne,0),h=~(4294967295<<o+1),g=pL(s&h);return f+g-1}_bytePosFor(e,r){let n=Math.floor(e/7),s=n+1;for(;!r&&this._bitArrays.length<s;)this._bitArrays.push(0);return n}_setBit(e){let r=this._bytePosFor(e,!1);this._bitArrays[r]|=1<<e-r*7}_unsetBit(e){let r=this._bytePosFor(e,!1);this._bitArrays[r]&=~(1<<e-r*7)}_setInternalPos(e,r,n,s){let o=this._data,u=[r,n];if(s)this._sortData(),o[e]=u;else{if(o.length)if(o[o.length-1][0]>=r)o.push(u);else if(o[0][0]<=r)o.unshift(u);else{let f=Math.round(o.length/2);this._data=o.slice(0,f).concat(u).concat(o.slice(f))}else this._data.push(u);this._changedData=!0,this._changedLength=!0}}_unsetInternalPos(e){this._data.splice(e,1)}_sortData(){this._changedData&&this._data.sort(ine),this._changedData=!1}bitField(){let e=[],r=8,n=0,s=0,o,u=this._bitArrays.slice();for(;u.length||n;){n===0&&(o=u.shift(),n=7);let h=Math.min(n,r),g=~(255<<h),d=o&g;s|=d<<8-r,o=o>>>h,n-=h,r-=h,(!r||!n&&!u.length)&&(e.push(s),s=0,r=8)}for(var f=e.length-1;f>0&&e[f]===0;f--)e.pop();return e}compactArray(){return this._sortData(),this._data.map(one)}};function sne(t,e){return t+pL(e)}function pL(t){let e=t;return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}function ine(t,e){return t[0]-e[0]}function one(t){return t[1]}});var yL=x((Rpe,bL)=>{"use strict";var ane=mL(),{fromString:une}=Ol(),Mn=class{constructor(e,r,n=0){this._options=e,this._popCount=0,this._parent=r,this._posAtParent=n,this._children=new ane,this.key=null}async put(e,r){let n=await this._findNewBucketAndPos(e);await n.bucket._putAt(n,e,r)}async get(e){let r=await this._findChild(e);if(r)return r.value}async del(e){let r=await this._findPlace(e),n=r.bucket._at(r.pos);n&&n.key===e&&r.bucket._delAt(r.pos)}leafCount(){return this._children.compactArray().reduce((r,n)=>n instanceof Mn?r+n.leafCount():r+1,0)}childrenCount(){return this._children.length}onlyChild(){return this._children.get(0)}*eachLeafSeries(){let e=this._children.compactArray();for(let r of e)r instanceof Mn?yield*r.eachLeafSeries():yield r;return[]}serialize(e,r){let n=[];return r(this._children.reduce((s,o,u)=>(o&&(o instanceof Mn?s.push(o.serialize(e,r)):s.push(e(o,u))),s),n))}asyncTransform(e,r){return gL(this,e,r)}toJSON(){return this.serialize(lne,fne)}prettyPrint(){return JSON.stringify(this.toJSON(),null," ")}tableSize(){return Math.pow(2,this._options.bits)}async _findChild(e){let r=await this._findPlace(e),n=r.bucket._at(r.pos);if(!(n instanceof Mn)&&n&&n.key===e)return n}async _findPlace(e){let r=this._options.hash(typeof e=="string"?une(e):e),n=await r.take(this._options.bits),s=this._children.get(n);return s instanceof Mn?s._findPlace(r):{bucket:this,pos:n,hash:r,existingChild:s}}async _findNewBucketAndPos(e){let r=await this._findPlace(e);if(r.existingChild&&r.existingChild.key!==e){let n=new Mn(this._options,r.bucket,r.pos);r.bucket._putObjectAt(r.pos,n);let s=await n._findPlace(r.existingChild.hash);return s.bucket._putAt(s,r.existingChild.key,r.existingChild.value),n._findNewBucketAndPos(r.hash)}return r}_putAt(e,r,n){this._putObjectAt(e.pos,{key:r,value:n,hash:e.hash})}_putObjectAt(e,r){this._children.get(e)||this._popCount++,this._children.set(e,r)}_delAt(e){if(e===-1)throw new Error("Invalid position");this._children.get(e)&&this._popCount--,this._children.unset(e),this._level()}_level(){if(this._parent&&this._popCount<=1)if(this._popCount===1){let e=this._children.find(cne);if(e&&!(e instanceof Mn)){let r=e.hash;r.untake(this._options.bits);let n={pos:this._posAtParent,hash:r,bucket:this._parent};this._parent._putAt(n,e.key,e.value)}}else this._parent._delAt(this._posAtParent)}_at(e){return this._children.get(e)}};function cne(t){return Boolean(t)}function lne(t,e){return t.key}function fne(t){return t}async function gL(t,e,r){let n=[];for(let s of t._children.compactArray())if(s instanceof Mn)await gL(s,e,r);else{let o=await e(s);n.push({bitField:t._children.bitField(),children:o})}return r(n)}bL.exports=Mn});var wL=x((Dpe,_L)=>{"use strict";var hne=[255,254,252,248,240,224,192,128],pne=[1,3,7,15,31,63,127,255];_L.exports=class{constructor(e){this._value=e,this._currentBytePos=e.length-1,this._currentBitPos=7}availableBits(){return this._currentBitPos+1+this._currentBytePos*8}totalBits(){return this._value.length*8}take(e){let r=e,n=0;for(;r&&this._haveBits();){let s=this._value[this._currentBytePos],o=this._currentBitPos+1,u=Math.min(o,r),f=dne(s,o-u,u);n=(n<<u)+f,r-=u,this._currentBitPos-=u,this._currentBitPos<0&&(this._currentBitPos=7,this._currentBytePos--)}return n}untake(e){for(this._currentBitPos+=e;this._currentBitPos>7;)this._currentBitPos-=8,this._currentBytePos+=1}_haveBits(){return this._currentBytePos>=0}};function dne(t,e,r){let n=mne(e,r);return(t&n)>>>e}function mne(t,e){return hne[t]&pne[Math.min(e+t-1,7)]}});var EL=x((Ope,Kw)=>{"use strict";var gne=wL(),{concat:bne}=Pl();function yne(t){function e(r){return r instanceof Kl?r:new Kl(r,t)}return e}var Kl=class{constructor(e,r){if(!(e instanceof Uint8Array))throw new Error("can only hash Uint8Arrays");this._value=e,this._hashFn=r,this._depth=-1,this._availableBits=0,this._currentBufferIndex=0,this._buffers=[]}async take(e){let r=e;for(;this._availableBits<r;)await this._produceMoreBits();let n=0;for(;r>0;){let s=this._buffers[this._currentBufferIndex],o=Math.min(s.availableBits(),r),u=s.take(o);n=(n<<o)+u,r-=o,this._availableBits-=o,s.availableBits()===0&&this._currentBufferIndex++}return n}untake(e){let r=e;for(;r>0;){let n=this._buffers[this._currentBufferIndex],s=Math.min(n.totalBits()-n.availableBits(),r);n.untake(s),r-=s,this._availableBits+=s,this._currentBufferIndex>0&&n.totalBits()===n.availableBits()&&(this._depth--,this._currentBufferIndex--)}}async _produceMoreBits(){this._depth++;let e=this._depth?bne([this._value,Uint8Array.from([this._depth])]):this._value,r=await this._hashFn(e),n=new gne(r);this._buffers.push(n),this._availableBits+=n.availableBits()}};Kw.exports=yne;Kw.exports.InfiniteHash=Kl});var TL=x((Ppe,SL)=>{"use strict";var vL=yL(),_ne=EL();function wne(t){if(!t||!t.hashFn)throw new Error("please define an options.hashFn");let e={bits:t.bits||8,hash:_ne(t.hashFn)};return new vL(e)}SL.exports={createHAMT:wne,Bucket:vL}});var AL=x((Fpe,xL)=>{"use strict";var{DAGLink:Yw,DAGNode:Ene}=Ju(),{UnixFS:vne}=Vu(),Sne=Jd(),Tne=Yu(),{createHAMT:kne,Bucket:xne}=TL(),Jw=class extends Sne{constructor(e,r){super(e,r),this._bucket=kne({hashFn:r.hamtHashFn,bits:r.hamtBucketBits})}async put(e,r){await this._bucket.put(e,r)}get(e){return this._bucket.get(e)}childCount(){return this._bucket.leafCount()}directChildrenCount(){return this._bucket.childrenCount()}onlyChild(){return this._bucket.onlyChild()}async*eachChildSeries(){for await(let{key:e,value:r}of this._bucket.eachLeafSeries())yield{key:e,child:r}}async*flush(e){for await(let r of kL(this._bucket,e,this,this.options))yield{...r,path:this.path}}};xL.exports=Jw;async function*kL(t,e,r,n){let s=t._children,o=[],u=0;for(let b=0;b<s.length;b++){let w=s.get(b);if(!w)continue;let R=b.toString(16).toUpperCase().padStart(2,"0");if(w instanceof xne){let I;for await(let D of await kL(w,e,null,n))I=D;if(!I)throw new Error("Could not flush sharded directory, no subshard found");o.push(new Yw(R,I.size,I.cid)),u+=I.size}else if(typeof w.value.flush=="function"){let I=w.value,D;for await(let G of I.flush(e))D=G,yield D;let P=R+w.key;o.push(new Yw(P,D.size,D.cid)),u+=D.size}else{let I=w.value;if(!I.cid)continue;let D=R+w.key,P=I.size;o.push(new Yw(D,P,I.cid)),u+=P}}let f=Uint8Array.from(s.bitField().reverse()),h=new vne({type:"hamt-sharded-directory",data:f,fanout:t.tableSize(),hashType:n.hamtHashCode,mtime:r&&r.mtime,mode:r&&r.mode}),d=new Ene(h.marshal(),o).serialize(),y=await Tne(d,e,n),v=d.length+u;yield{cid:y,unixfs:h,size:v}}});var CL=x((Lpe,RL)=>{"use strict";var Ane=AL(),Rne=Vw();RL.exports=async function t(e,r,n,s){let o=r;r instanceof Rne&&r.directChildrenCount()>=n&&(o=await Cne(r,s));let u=o.parent;if(u){if(o!==r){if(e&&(e.parent=o),!o.parentKey)throw new Error("No parent key found");await u.put(o.parentKey,o)}return t(o,u,n,s)}return o};async function Cne(t,e){let r=new Ane({root:t.root,dir:!0,parent:t.parent,parentKey:t.parentKey,path:t.path,dirty:t.dirty,flat:!1,mtime:t.mtime,mode:t.mode},e);for await(let{key:n,child:s}of t.eachChildSeries())await r.put(n,s);return r}});var OL=x((Ipe,DL)=>{"use strict";var Dne=(t="")=>(t.trim().match(/([^\\^/]|\\\/)+/g)||[]).filter(Boolean);DL.exports=Dne});var BL=x((Bpe,IL)=>{"use strict";var FL=Vw(),One=CL(),LL=Jd(),Pne=OL();async function Fne(t,e,r){let n=Pne(t.path||""),s=n.length-1,o=e,u="";for(let f=0;f<n.length;f++){let h=n[f];u+=`${u?"/":""}${h}`;let g=f===s;if(o.dirty=!0,o.cid=void 0,o.size=void 0,g)await o.put(h,t),e=await One(null,o,r.shardSplitThreshold,r);else{let d=await o.get(h);(!d||!(d instanceof LL))&&(d=new FL({root:!1,dir:!0,parent:o,parentKey:h,path:u,dirty:!0,flat:!0,mtime:d&&d.unixfs&&d.unixfs.mtime,mode:d&&d.unixfs&&d.unixfs.mode},r)),await o.put(h,d),o=d}}return e}async function*PL(t,e){if(!(t instanceof LL)){t&&t.unixfs&&t.unixfs.isDirectory()&&(yield t);return}yield*t.flush(e)}async function*Lne(t,e,r){let n=new FL({root:!0,dir:!0,path:"",dirty:!0,flat:!0},r);for await(let s of t)!s||(n=await Fne(s,n,r),(!s.unixfs||!s.unixfs.isDirectory())&&(yield s));if(r.wrapWithDirectory)yield*PL(n,e);else for await(let s of n.eachChildSeries())!s||(yield*PL(s.child,e))}IL.exports=Lne});var qL=x((Gpe,GL)=>{"use strict";var Ine=d_(),Bne=XP();async function*Gne(t,e,r={}){let n=Bne(r),s;typeof r.dagBuilder=="function"?s=r.dagBuilder:s=cL();let o;typeof r.treeBuilder=="function"?o=r.treeBuilder:o=BL();let u;Symbol.asyncIterator in t||Symbol.iterator in t?u=t:u=[t];for await(let f of o(Ine(s(u,e,n),n.fileImportConcurrency),e,n))yield{cid:f.cid,path:f.path,unixfs:f.unixfs,size:f.size}}GL.exports={importer:Gne}});var NL=x(UL=>{var{importer:qne}=qL(),Une={get:async t=>{throw new Error(`unexpected block API get for ${t}`)},put:async()=>{throw new Error("unexpected block API put")}};UL.of=async(t,e)=>{e=e||{},e.onlyHash=!0,typeof t=="string"&&(t=new TextEncoder().encode(t));let r;for await(let{cid:n}of qne([{content:t}],Une,e))r=n;return`${r}`}});var rv=Ye(tv(),1),{program:Sse,createCommand:Tse,createArgument:kse,createOption:xse,CommanderError:Ase,InvalidArgumentError:Rse,InvalidOptionArgumentError:Cse,Command:Rn,Argument:Dse,Option:Ose,Help:Pse}=rv.default;function nv(){let t=new Rn;return t.name("ipfs").description("Get ipfs info").argument("[path]","Get ipfs info(size, cid etc) for a specified path").action(async e=>{if(!e)return t.help();let r=await sh.getInfo(e);console.log(r)}),t}var AS=require("fs"),xh=require("path"),RS=require("process"),Ah=Ye(sn());function vM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hS(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,n.key,n)}}function SM(t,e,r){return e&&hS(t.prototype,e),r&&hS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Eh(t){return Eh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eh(t)}function pS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function er(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pS(Object(r),!0).forEach(function(n){TM(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function TM(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mS(t,e){return RM(t)||AM(t,e)||xM(t,e)||kM()}function kM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
79
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xM(t,e){if(!!t){if(typeof t=="string")return dS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dS(t,e)}}function dS(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function AM(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],s=!0,o=!1,u,f;try{for(r=r.call(t);!(s=(u=r.next()).done)&&(n.push(u.value),!(e&&n.length===e));s=!0);}catch(h){o=!0,f=h}finally{try{!s&&r.return!=null&&r.return()}finally{if(o)throw f}}return n}}function RM(t){if(Array.isArray(t))return t}function it(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;if(Number.isNaN(t=+t)||typeof t!="number")return null;var r=e||{},n=r.iec,s=n===void 0?!1:n,o=r.bits,u=o===void 0?!1:o,f=r.short,h=f===void 0?!0:f,g=r.space,d=g===void 0?!0:g,y=r.fixed,v=y===void 0?2:y,b=r.prefixIndex,w=r.sticky,R=w===void 0?!1:w;t*=u?8:1;var I=["-","Kilo","Mega","Giga","Tera","Peta","Exa","Zetta","Yotta"],D=typeof b=="number"?b:function(q){return R&&Number.isInteger(q)?q-1:Math.floor(q)}(Math.log(Math.abs(t))/Math.log(s?1024:1e3))||0;t/=~D&&D in I?Math.pow(s?1024:1e3,D):1;var P=I[D]||I[0],G=h?P[0].replace(/(-?|[^\w])$/,"".concat(s&&D in I&&D>0?"i":"").concat(u?"b":"B")):P.replace(/(\w{2})(\w+)/,"$1".concat(s?"bi":"$2","-")).replace(/-/,u?"Bits":"Bytes");return[t.toFixed(v),G].join(d?" ":"")}var zg=/^(?:([kmgtpezy])(i?))?(b)$/i,Wg=new RegExp("([+-]?\\d+(?:\\.\\d+)?(?:e[+-]\\d+)?)\\s*((?:([kmgtpezy])(i?))?(b))\\b"),gS=new RegExp(Wg.source,"gi"),Vg=new RegExp("^".concat(Wg.source),"i");function Kg(t){var e;if(typeof t=="string"&&(e=t.match(zg))){var r=e,n=mS(r,4),s=n[0],o=n[1],u=n[2],f=n[3],h=o?o.toUpperCase():"";e={unitInput:s,prefix:h,iec:!!u,type:f,unit:h.concat(f),bits:f==="b",byte:f==="B",prefixIndex:"BKMGTPEZY".indexOf(h.toUpperCase())}}return e}function Yg(t){var e;if(typeof t=="string"&&(e=t.match(Vg))){var r=e,n=mS(r,3),s=n[0],o=n[1],u=n[2];e=er(er({},Kg(u)),{},{input:s,value:parseFloat(o)})}return e}function ou(t){return Vg.test(t)}function bS(t){return zg.test(t)}function CM(t){return(t.match(gS)||[]).filter(ou)}function vh(t,e){var r,n=e||{},s=n.bits,o=s===void 0?!0:s,u=n.iec,f=u===void 0?!0:u;if(ou(t)&&(r=Yg(t)||0)){var h=r.prefixIndex;r=r.value*(f&&!r.iec?Math.pow(10,h*3):Math.pow(2,10*h))/(o&&r.type==="b"?8:1)}return r}function lo(t){return ou(t)||Number.isFinite(t)&&Math.abs(t)<=12379400392853803e11||parseFloat(t).toString()===t}function Jg(t){if(!lo(t))throw Error("<input> argument [".concat(t,"] of type '").concat(Eh(t),`' must either be a finite number or a ByteString e.g "10 MB"`));return(ou(t)?vh(t):+t)||0}function Sh(t,e){var r;if(!lo(t))throw Error("<input> argument [".concat(t,"] of type '").concat(Eh(t),`' must either be a finite number or a ByteString e.g "10 MB"`));var n=Jg(t);if(ou(t)){var s=[vh(t),t];n=s[0],r=s[1]}else{var o=[+t||0,it(+t||0)];n=o[0],r=o[1]}return er(er({},r=Yg(r)),{},{input:t,bytes:n,size:it(n,er(er({},r),e))})}function DM(t,e){var r=t.bytes,n=it(r,er(er({},e),{},{iec:!1,bits:!0})),s=it(r,er(er({},e),{},{iec:!1,bits:!1})),o=it(r,er(er({},e),{},{iec:!0,bits:!0})),u=it(r,er(er({},e),{},{iec:!0,bits:!1}));return{bytes:s,iecBytes:u,bits:n,iecBits:o}}function pr(t,e){var r=Sh(t),n=DM(r,e);return er({parsed:r,size:r.size,raw:t},n)}pr.bits=function(t,e){return pr(t,e).bits};pr.bytes=function(t,e){return pr(t,e).bytes};pr.iecBits=function(t,e){return pr(t,e).iecBits};pr.iecBytes=function(t,e){return pr(t,e).iecBytes};pr.size=function(t,e,r){var n=Sh(t),s=[],o=s[0],u=s[1];return(o=Kg(e))&&(u={iec:o.iec,bits:o.bits,prefixIndex:o.prefixIndex}),it(n.bytes,er(er({},r),u))};function OM(t){return function(r){return it(r,t)}}function PM(t){return function(r){return vh(r,t)}}function FM(t,e){return function(n){return pr.size(n,t,e)}}function wh(t){return(Array.isArray(t)?t:[t]).map(Jg)}var yS=function(){function t(e){if(vM(this,t),!lo(e))throw Error("<bytes> argument must be a finite value");this.bytes=Jg(e),this.checkInternalByteVal()}return SM(t,[{key:"checkInternalByteVal",value:function(){if(!Number.isFinite(this.bytes))throw Error("Internal container for bytes value invalid, probably corrupted from external source")}},{key:"add",value:function(r){if(!lo(r))throw Error("<bytes> argument must be a finite value");return this.checkInternalByteVal(),new t(this.bytes+wh(r).reduce(function(n,s){return n+s},0))}},{key:"subtract",value:function(r){if(!lo(r))throw Error("<bytes> argument must be a finite value");return this.checkInternalByteVal(),new t(this.bytes-wh(r).reduce(function(n,s){return n+s},0))}},{key:"multiply",value:function(r){if(!lo(r))throw Error("<bytes> argument must be a finite value");return this.checkInternalByteVal(),new t(this.bytes*wh(r).reduce(function(n,s){return n*s},1))}},{key:"divide",value:function(r){if(!lo(r))throw Error("<bytes> argument must be a finite value");return this.checkInternalByteVal(),new t(this.bytes/wh(r).reduce(function(n,s){return n*s},1))}},{key:"toBits",value:function(r){return pr.bits(this.bytes,r)}},{key:"toBytes",value:function(r){return pr.bytes(this.bytes,r)}},{key:"toIECBits",value:function(r){return pr.iecBits(this.bytes,r)}},{key:"toIECBytes",value:function(r){return pr.iecBytes(this.bytes,r)}},{key:"convertTo",value:function(r,n){if(!bS(r))throw Error("<unit> argument must be a valid UnitString. See https://github.com/miraclx/xbytes/blob/master/README.md#unitstring");return pr.size(this.bytes,r,n)}},{key:"objectify",value:function(r){return Sh(this.bytes,r)}}]),t}();function LM(t){return new yS(t)}it.byteFilter=Vg;it.unitMatcher=zg;it.genericMatcher=Wg;it.globalByteFilter=gS;it.isUnit=bS;it.isBytes=ou;it.relative=pr;it.isParsable=lo;it.extractBytes=CM;it.parseSize=vh;it.parseUnit=Kg;it.parseBytes=Sh;it.parseString=Yg;it.parse=LM;it.ByteUnitObject=yS;it.createByteParser=OM;it.createSizeParser=PM;it.createRelativeSizer=FM;typeof module<"u"&&(module.exports=it);var au=it;function Qg(t){if(typeof t!="number")throw new TypeError("Expected a number");let e=t>0?Math.floor:Math.ceil;return{days:e(t/864e5),hours:e(t/36e5)%24,minutes:e(t/6e4)%60,seconds:e(t/1e3)%60,milliseconds:e(t)%1e3,microseconds:e(t*1e3)%1e3,nanoseconds:e(t*1e6)%1e3}}var IM=(t,e)=>e===1?t:`${t}s`,BM=1e-7;function fo(t,e={}){if(!Number.isFinite(t))throw new TypeError("Expected a finite number");e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let r=[],n=(u,f)=>{let h=Math.floor(u*10**f+BM);return(Math.round(h)/10**f).toFixed(f)},s=(u,f,h,g)=>{if((r.length===0||!e.colonNotation)&&u===0&&!(e.colonNotation&&h==="m"))return;g=(g||u||"0").toString();let d,y;if(e.colonNotation){d=r.length>0?":":"",y="";let v=g.includes(".")?g.split(".")[0].length:g.length,b=r.length>0?2:1;g="0".repeat(Math.max(0,b-v))+g}else d="",y=e.verbose?" "+IM(f,u):h;r.push(d+g+y)},o=Qg(t);if(s(Math.trunc(o.days/365),"year","y"),s(o.days%365,"day","d"),s(o.hours,"hour","h"),s(o.minutes,"minute","m"),e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3)if(s(o.seconds,"second","s"),e.formatSubMilliseconds)s(o.milliseconds,"millisecond","ms"),s(o.microseconds,"microsecond","\xB5s"),s(o.nanoseconds,"nanosecond","ns");else{let u=o.milliseconds+o.microseconds/1e3+o.nanoseconds/1e6,f=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,h=u>=1?Math.round(u):Math.ceil(u),g=f?u.toFixed(f):h;s(Number.parseFloat(g),"millisecond","ms",g)}else{let u=t/1e3%60,f=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,h=n(u,f),g=e.keepDecimalsOnWholeSeconds?h:h.replace(/\.0+$/,"");s(Number.parseFloat(g),"second","s",g)}if(r.length===0)return"0"+(e.verbose?" milliseconds":"ms");if(e.compact)return r[0];if(typeof e.unitCount=="number"){let u=e.colonNotation?"":" ";return r.slice(0,Math.max(e.unitCount,1)).join(u)}return e.colonNotation?r.join(""):r.join(" ")}var CS=Ye(xS()),kh=class{static async getInfo(e){let r=(0,xh.isAbsolute)(e)?e:(0,xh.join)((0,RS.cwd)(),e);if(!(0,AS.existsSync)(r))throw new Error(`Could not find file ${r}`);let n=Date.now(),s=(0,Ah.statSync)(r).size,o=await CS.default.fromStream((0,Ah.createReadStream)(r),{algorithm:"md5"}),u=fo(Date.now()-n);return{absolutePath:r,md5:o,size:`${s} bytes(${au(s)})`,duration:u}}};function DS(){let t=new Rn;return t.name("md5").description("Get md5 info").argument("[path]","Get md5 info(size, hash etc) for a specified path").action(async e=>{if(!e)return t.help();let r=await kh.getInfo(e);console.log(r)}),t}var ma=Ye(sn()),m0=require("os");var Xg=class extends Error{constructor(e){super(),this.name="AbortError",this.message=e}},OS=t=>globalThis.DOMException===void 0?new Xg(t):new DOMException(t),PS=t=>{let e=t.reason===void 0?OS("This operation was aborted."):t.reason;return e instanceof Error?e:OS(e)};async function Zg(t,e,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:s}={}){return new Promise((o,u)=>{if(t[Symbol.iterator]===void 0&&t[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof t})`);if(typeof e!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);let f=[],h=[],g=new Map,d=!1,y=!1,v=!1,b=0,w=0,R=t[Symbol.iterator]===void 0?t[Symbol.asyncIterator]():t[Symbol.iterator](),I=P=>{d=!0,y=!0,u(P)};s&&(s.aborted&&I(PS(s)),s.addEventListener("abort",()=>{I(PS(s))}));let D=async()=>{if(y)return;let P=await R.next(),G=w;if(w++,P.done){if(v=!0,b===0&&!y){if(!n&&h.length>0){I(new AggregateError(h));return}if(y=!0,g.size===0){o(f);return}let q=[];for(let[z,N]of f.entries())g.get(z)!==FS&&q.push(N);o(q)}return}b++,(async()=>{try{let q=await P.value;if(y)return;let z=await e(q,G);z===FS&&g.set(G,z),f[G]=z,b--,await D()}catch(q){if(n)I(q);else{h.push(q),b--;try{await D()}catch(z){I(z)}}}})()};(async()=>{for(let P=0;P<r;P++){try{await D()}catch(G){I(G);break}if(v||d)break}})()})}var FS=Symbol("skip");async function Lt(t,e){return Zg(t,r=>r(),e)}var T3=require("path");var Lk=Ye(_b()),la=require("path");var Pk=Ye(require("node:http"),1),Fk=Ye(require("node:https"),1),ca=Ye(require("node:zlib"),1),an=Ye(require("node:stream"),1),sl=require("node:buffer");function fH(t){if(!/^data:/i.test(t))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');t=t.replace(/\r?\n/g,"");let e=t.indexOf(",");if(e===-1||e<=4)throw new TypeError("malformed data: URI");let r=t.substring(5,e).split(";"),n="",s=!1,o=r[0]||"text/plain",u=o;for(let d=1;d<r.length;d++)r[d]==="base64"?s=!0:r[d]&&(u+=`;${r[d]}`,r[d].indexOf("charset=")===0&&(n=r[d].substring(8)));!r[0]&&!n.length&&(u+=";charset=US-ASCII",n="US-ASCII");let f=s?"base64":"ascii",h=unescape(t.substring(e+1)),g=Buffer.from(h,f);return g.type=o,g.typeFull=u,g.charset=n,g}var ek=fH;var Dn=Ye(require("node:stream"),1),Ci=require("node:util"),on=require("node:buffer");Qc();Oh();var Ri=class extends Error{constructor(e,r){super(e),Error.captureStackTrace(this,this.constructor),this.type=r}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}};var $r=class extends Ri{constructor(e,r,n){super(e,r),n&&(this.code=this.errno=n.code,this.erroredSysCall=n.syscall)}};var Ph=Symbol.toStringTag,Tb=t=>typeof t=="object"&&typeof t.append=="function"&&typeof t.delete=="function"&&typeof t.get=="function"&&typeof t.getAll=="function"&&typeof t.has=="function"&&typeof t.set=="function"&&typeof t.sort=="function"&&t[Ph]==="URLSearchParams",Zc=t=>t&&typeof t=="object"&&typeof t.arrayBuffer=="function"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.constructor=="function"&&/^(Blob|File)$/.test(t[Ph]),ck=t=>typeof t=="object"&&(t[Ph]==="AbortSignal"||t[Ph]==="EventTarget"),lk=(t,e)=>{let r=new URL(e).hostname,n=new URL(t).hostname;return r===n||r.endsWith(`.${n}`)},fk=(t,e)=>{let r=new URL(e).protocol,n=new URL(t).protocol;return r===n};var xH=(0,Ci.promisify)(Dn.default.pipeline),Hr=Symbol("Body internals"),Us=class{constructor(e,{size:r=0}={}){let n=null;e===null?e=null:Tb(e)?e=on.Buffer.from(e.toString()):Zc(e)||on.Buffer.isBuffer(e)||(Ci.types.isAnyArrayBuffer(e)?e=on.Buffer.from(e):ArrayBuffer.isView(e)?e=on.Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof Dn.default||(e instanceof aa?(e=uk(e),n=e.type.split("=")[1]):e=on.Buffer.from(String(e))));let s=e;on.Buffer.isBuffer(e)?s=Dn.default.Readable.from(e):Zc(e)&&(s=Dn.default.Readable.from(e.stream())),this[Hr]={body:e,stream:s,boundary:n,disturbed:!1,error:null},this.size=r,e instanceof Dn.default&&e.on("error",o=>{let u=o instanceof Ri?o:new $r(`Invalid response body while trying to fetch ${this.url}: ${o.message}`,"system",o);this[Hr].error=u})}get body(){return this[Hr].stream}get bodyUsed(){return this[Hr].disturbed}async arrayBuffer(){let{buffer:e,byteOffset:r,byteLength:n}=await Ab(this);return e.slice(r,r+n)}async formData(){let e=this.headers.get("content-type");if(e.startsWith("application/x-www-form-urlencoded")){let n=new aa,s=new URLSearchParams(await this.text());for(let[o,u]of s)n.append(o,u);return n}let{toFormData:r}=await Promise.resolve().then(()=>(bk(),gk));return r(this.body,e)}async blob(){let e=this.headers&&this.headers.get("content-type")||this[Hr].body&&this[Hr].body.type||"",r=await this.arrayBuffer();return new Ai([r],{type:e})}async json(){let e=await this.text();return JSON.parse(e)}async text(){let e=await Ab(this);return new TextDecoder().decode(e)}buffer(){return Ab(this)}};Us.prototype.buffer=(0,Ci.deprecate)(Us.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(Us.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:(0,Ci.deprecate)(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});async function Ab(t){if(t[Hr].disturbed)throw new TypeError(`body used already for: ${t.url}`);if(t[Hr].disturbed=!0,t[Hr].error)throw t[Hr].error;let{body:e}=t;if(e===null)return on.Buffer.alloc(0);if(!(e instanceof Dn.default))return on.Buffer.alloc(0);let r=[],n=0;try{for await(let s of e){if(t.size>0&&n+s.length>t.size){let o=new $r(`content size at ${t.url} over limit: ${t.size}`,"max-size");throw e.destroy(o),o}n+=s.length,r.push(s)}}catch(s){throw s instanceof Ri?s:new $r(`Invalid response body while trying to fetch ${t.url}: ${s.message}`,"system",s)}if(e.readableEnded===!0||e._readableState.ended===!0)try{return r.every(s=>typeof s=="string")?on.Buffer.from(r.join("")):on.Buffer.concat(r,n)}catch(s){throw new $r(`Could not create Buffer from response body for ${t.url}: ${s.message}`,"system",s)}else throw new $r(`Premature close of server response while trying to fetch ${t.url}`)}var hu=(t,e)=>{let r,n,{body:s}=t[Hr];if(t.bodyUsed)throw new Error("cannot clone body after it is used");return s instanceof Dn.default&&typeof s.getBoundary!="function"&&(r=new Dn.PassThrough({highWaterMark:e}),n=new Dn.PassThrough({highWaterMark:e}),s.pipe(r),s.pipe(n),t[Hr].stream=r,s=n),s},AH=(0,Ci.deprecate)(t=>t.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),Bh=(t,e)=>t===null?null:typeof t=="string"?"text/plain;charset=UTF-8":Tb(t)?"application/x-www-form-urlencoded;charset=UTF-8":Zc(t)?t.type||null:on.Buffer.isBuffer(t)||Ci.types.isAnyArrayBuffer(t)||ArrayBuffer.isView(t)?null:t instanceof aa?`multipart/form-data; boundary=${e[Hr].boundary}`:t&&typeof t.getBoundary=="function"?`multipart/form-data;boundary=${AH(t)}`:t instanceof Dn.default?null:"text/plain;charset=UTF-8",yk=t=>{let{body:e}=t[Hr];return e===null?0:Zc(e)?e.size:on.Buffer.isBuffer(e)?e.length:e&&typeof e.getLengthSync=="function"&&e.hasKnownLength&&e.hasKnownLength()?e.getLengthSync():null},_k=async(t,{body:e})=>{e===null?t.end():await xH(e,t)};var Rb=require("node:util"),rl=Ye(require("node:http"),1),Gh=typeof rl.default.validateHeaderName=="function"?rl.default.validateHeaderName:t=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(t)){let e=new TypeError(`Header name must be a valid HTTP token [${t}]`);throw Object.defineProperty(e,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),e}},Cb=typeof rl.default.validateHeaderValue=="function"?rl.default.validateHeaderValue:(t,e)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(e)){let r=new TypeError(`Invalid character in header content ["${t}"]`);throw Object.defineProperty(r,"code",{value:"ERR_INVALID_CHAR"}),r}},Rr=class extends URLSearchParams{constructor(e){let r=[];if(e instanceof Rr){let n=e.raw();for(let[s,o]of Object.entries(n))r.push(...o.map(u=>[s,u]))}else if(e!=null)if(typeof e=="object"&&!Rb.types.isBoxedPrimitive(e)){let n=e[Symbol.iterator];if(n==null)r.push(...Object.entries(e));else{if(typeof n!="function")throw new TypeError("Header pairs must be iterable");r=[...e].map(s=>{if(typeof s!="object"||Rb.types.isBoxedPrimitive(s))throw new TypeError("Each header pair must be an iterable object");return[...s]}).map(s=>{if(s.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...s]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");return r=r.length>0?r.map(([n,s])=>(Gh(n),Cb(n,String(s)),[String(n).toLowerCase(),String(s)])):void 0,super(r),new Proxy(this,{get(n,s,o){switch(s){case"append":case"set":return(u,f)=>(Gh(u),Cb(u,String(f)),URLSearchParams.prototype[s].call(n,String(u).toLowerCase(),String(f)));case"delete":case"has":case"getAll":return u=>(Gh(u),URLSearchParams.prototype[s].call(n,String(u).toLowerCase()));case"keys":return()=>(n.sort(),new Set(URLSearchParams.prototype.keys.call(n)).keys());default:return Reflect.get(n,s,o)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(e){let r=this.getAll(e);if(r.length===0)return null;let n=r.join(", ");return/^content-encoding$/i.test(e)&&(n=n.toLowerCase()),n}forEach(e,r=void 0){for(let n of this.keys())Reflect.apply(e,r,[this.get(n),n,this])}*values(){for(let e of this.keys())yield this.get(e)}*entries(){for(let e of this.keys())yield[e,this.get(e)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((e,r)=>(e[r]=this.getAll(r),e),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((e,r)=>{let n=this.getAll(r);return r==="host"?e[r]=n[0]:e[r]=n.length>1?n:n[0],e},{})}};Object.defineProperties(Rr.prototype,["get","entries","forEach","values"].reduce((t,e)=>(t[e]={enumerable:!0},t),{}));function wk(t=[]){return new Rr(t.reduce((e,r,n,s)=>(n%2===0&&e.push(s.slice(n,n+2)),e),[]).filter(([e,r])=>{try{return Gh(e),Cb(e,String(r)),!0}catch{return!1}}))}var RH=new Set([301,302,303,307,308]),qh=t=>RH.has(t);var fs=Symbol("Response internals"),tr=class extends Us{constructor(e=null,r={}){super(e,r);let n=r.status!=null?r.status:200,s=new Rr(r.headers);if(e!==null&&!s.has("Content-Type")){let o=Bh(e,this);o&&s.append("Content-Type",o)}this[fs]={type:"default",url:r.url,status:n,statusText:r.statusText||"",headers:s,counter:r.counter,highWaterMark:r.highWaterMark}}get type(){return this[fs].type}get url(){return this[fs].url||""}get status(){return this[fs].status}get ok(){return this[fs].status>=200&&this[fs].status<300}get redirected(){return this[fs].counter>0}get statusText(){return this[fs].statusText}get headers(){return this[fs].headers}get highWaterMark(){return this[fs].highWaterMark}clone(){return new tr(hu(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(e,r=302){if(!qh(r))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new tr(null,{headers:{location:new URL(e).toString()},status:r})}static error(){let e=new tr(null,{status:0,statusText:""});return e[fs].type="error",e}static json(e=void 0,r={}){let n=JSON.stringify(e);if(n===void 0)throw new TypeError("data is not JSON serializable");let s=new Rr(r&&r.headers);return s.has("content-type")||s.set("content-type","application/json"),new tr(n,{...r,headers:s})}get[Symbol.toStringTag](){return"Response"}};Object.defineProperties(tr.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}});var Ck=require("node:url"),Dk=require("node:util");var Ek=t=>{if(t.search)return t.search;let e=t.href.length-1,r=t.hash||(t.href[e]==="#"?"#":"");return t.href[e-r.length]==="?"?"?":""};var Sk=require("node:net");function vk(t,e=!1){return t==null||(t=new URL(t),/^(about|blob|data):$/.test(t.protocol))?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}var Tk=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),kk="strict-origin-when-cross-origin";function xk(t){if(!Tk.has(t))throw new TypeError(`Invalid referrerPolicy: ${t}`);return t}function CH(t){if(/^(http|ws)s:$/.test(t.protocol))return!0;let e=t.host.replace(/(^\[)|(]$)/g,""),r=(0,Sk.isIP)(e);return r===4&&/^127\./.test(e)||r===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(e)?!0:t.host==="localhost"||t.host.endsWith(".localhost")?!1:t.protocol==="file:"}function pu(t){return/^about:(blank|srcdoc)$/.test(t)||t.protocol==="data:"||/^(blob|filesystem):$/.test(t.protocol)?!0:CH(t)}function Ak(t,{referrerURLCallback:e,referrerOriginCallback:r}={}){if(t.referrer==="no-referrer"||t.referrerPolicy==="")return null;let n=t.referrerPolicy;if(t.referrer==="about:client")return"no-referrer";let s=t.referrer,o=vk(s),u=vk(s,!0);o.toString().length>4096&&(o=u),e&&(o=e(o)),r&&(u=r(u));let f=new URL(t.url);switch(n){case"no-referrer":return"no-referrer";case"origin":return u;case"unsafe-url":return o;case"strict-origin":return pu(o)&&!pu(f)?"no-referrer":u.toString();case"strict-origin-when-cross-origin":return o.origin===f.origin?o:pu(o)&&!pu(f)?"no-referrer":u;case"same-origin":return o.origin===f.origin?o:"no-referrer";case"origin-when-cross-origin":return o.origin===f.origin?o:u;case"no-referrer-when-downgrade":return pu(o)&&!pu(f)?"no-referrer":o;default:throw new TypeError(`Invalid referrerPolicy: ${n}`)}}function Rk(t){let e=(t.get("referrer-policy")||"").split(/[,\s]+/),r="";for(let n of e)n&&Tk.has(n)&&(r=n);return r}var Mt=Symbol("Request internals"),nl=t=>typeof t=="object"&&typeof t[Mt]=="object",DH=(0,Dk.deprecate)(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),Di=class extends Us{constructor(e,r={}){let n;if(nl(e)?n=new URL(e.url):(n=new URL(e),e={}),n.username!==""||n.password!=="")throw new TypeError(`${n} is an url with embedded credentials.`);let s=r.method||e.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(s)&&(s=s.toUpperCase()),!nl(r)&&"data"in r&&DH(),(r.body!=null||nl(e)&&e.body!==null)&&(s==="GET"||s==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let o=r.body?r.body:nl(e)&&e.body!==null?hu(e):null;super(o,{size:r.size||e.size||0});let u=new Rr(r.headers||e.headers||{});if(o!==null&&!u.has("Content-Type")){let g=Bh(o,this);g&&u.set("Content-Type",g)}let f=nl(e)?e.signal:null;if("signal"in r&&(f=r.signal),f!=null&&!ck(f))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let h=r.referrer==null?e.referrer:r.referrer;if(h==="")h="no-referrer";else if(h){let g=new URL(h);h=/^about:(\/\/)?client$/.test(g)?"client":g}else h=void 0;this[Mt]={method:s,redirect:r.redirect||e.redirect||"follow",headers:u,parsedURL:n,signal:f,referrer:h},this.follow=r.follow===void 0?e.follow===void 0?20:e.follow:r.follow,this.compress=r.compress===void 0?e.compress===void 0?!0:e.compress:r.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent,this.highWaterMark=r.highWaterMark||e.highWaterMark||16384,this.insecureHTTPParser=r.insecureHTTPParser||e.insecureHTTPParser||!1,this.referrerPolicy=r.referrerPolicy||e.referrerPolicy||""}get method(){return this[Mt].method}get url(){return(0,Ck.format)(this[Mt].parsedURL)}get headers(){return this[Mt].headers}get redirect(){return this[Mt].redirect}get signal(){return this[Mt].signal}get referrer(){if(this[Mt].referrer==="no-referrer")return"";if(this[Mt].referrer==="client")return"about:client";if(this[Mt].referrer)return this[Mt].referrer.toString()}get referrerPolicy(){return this[Mt].referrerPolicy}set referrerPolicy(e){this[Mt].referrerPolicy=xk(e)}clone(){return new Di(this)}get[Symbol.toStringTag](){return"Request"}};Object.defineProperties(Di.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});var Ok=t=>{let{parsedURL:e}=t[Mt],r=new Rr(t[Mt].headers);r.has("Accept")||r.set("Accept","*/*");let n=null;if(t.body===null&&/^(post|put)$/i.test(t.method)&&(n="0"),t.body!==null){let f=yk(t);typeof f=="number"&&!Number.isNaN(f)&&(n=String(f))}n&&r.set("Content-Length",n),t.referrerPolicy===""&&(t.referrerPolicy=kk),t.referrer&&t.referrer!=="no-referrer"?t[Mt].referrer=Ak(t):t[Mt].referrer="no-referrer",t[Mt].referrer instanceof URL&&r.set("Referer",t.referrer),r.has("User-Agent")||r.set("User-Agent","node-fetch"),t.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip, deflate, br");let{agent:s}=t;typeof s=="function"&&(s=s(e));let o=Ek(e),u={path:e.pathname+o,method:t.method,headers:r[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:t.insecureHTTPParser,agent:s};return{parsedURL:e,options:u}};var Uh=class extends Ri{constructor(e,r="aborted"){super(e,r)}};Oh();kb();var OH=new Set(["data:","http:","https:"]);async function du(t,e){return new Promise((r,n)=>{let s=new Di(t,e),{parsedURL:o,options:u}=Ok(s);if(!OH.has(o.protocol))throw new TypeError(`node-fetch cannot load ${t}. URL scheme "${o.protocol.replace(/:$/,"")}" is not supported.`);if(o.protocol==="data:"){let w=ek(s.url),R=new tr(w,{headers:{"Content-Type":w.typeFull}});r(R);return}let f=(o.protocol==="https:"?Fk.default:Pk.default).request,{signal:h}=s,g=null,d=()=>{let w=new Uh("The operation was aborted.");n(w),s.body&&s.body instanceof an.default.Readable&&s.body.destroy(w),!(!g||!g.body)&&g.body.emit("error",w)};if(h&&h.aborted){d();return}let y=()=>{d(),b()},v=f(o.toString(),u);h&&h.addEventListener("abort",y);let b=()=>{v.abort(),h&&h.removeEventListener("abort",y)};v.on("error",w=>{n(new $r(`request to ${s.url} failed, reason: ${w.message}`,"system",w)),b()}),PH(v,w=>{g&&g.body&&g.body.destroy(w)}),process.version<"v14"&&v.on("socket",w=>{let R;w.prependListener("end",()=>{R=w._eventsCount}),w.prependListener("close",I=>{if(g&&R<w._eventsCount&&!I){let D=new Error("Premature close");D.code="ERR_STREAM_PREMATURE_CLOSE",g.body.emit("error",D)}})}),v.on("response",w=>{v.setTimeout(0);let R=wk(w.rawHeaders);if(qh(w.statusCode)){let q=R.get("Location"),z=null;try{z=q===null?null:new URL(q,s.url)}catch{if(s.redirect!=="manual"){n(new $r(`uri requested responds with an invalid redirect URL: ${q}`,"invalid-redirect")),b();return}}switch(s.redirect){case"error":n(new $r(`uri requested responds with a redirect, redirect mode is set to error: ${s.url}`,"no-redirect")),b();return;case"manual":break;case"follow":{if(z===null)break;if(s.counter>=s.follow){n(new $r(`maximum redirect reached at: ${s.url}`,"max-redirect")),b();return}let N={headers:new Rr(s.headers),follow:s.follow,counter:s.counter+1,agent:s.agent,compress:s.compress,method:s.method,body:hu(s),signal:s.signal,size:s.size,referrer:s.referrer,referrerPolicy:s.referrerPolicy};if(!lk(s.url,z)||!fk(s.url,z))for(let W of["authorization","www-authenticate","cookie","cookie2"])N.headers.delete(W);if(w.statusCode!==303&&s.body&&e.body instanceof an.default.Readable){n(new $r("Cannot follow redirect with body being a readable stream","unsupported-redirect")),b();return}(w.statusCode===303||(w.statusCode===301||w.statusCode===302)&&s.method==="POST")&&(N.method="GET",N.body=void 0,N.headers.delete("content-length"));let L=Rk(R);L&&(N.referrerPolicy=L),r(du(new Di(z,N))),b();return}default:return n(new TypeError(`Redirect option '${s.redirect}' is not a valid value of RequestRedirect`))}}h&&w.once("end",()=>{h.removeEventListener("abort",y)});let I=(0,an.pipeline)(w,new an.PassThrough,q=>{q&&n(q)});process.version<"v12.10"&&w.on("aborted",y);let D={url:s.url,status:w.statusCode,statusText:w.statusMessage,headers:R,size:s.size,counter:s.counter,highWaterMark:s.highWaterMark},P=R.get("Content-Encoding");if(!s.compress||s.method==="HEAD"||P===null||w.statusCode===204||w.statusCode===304){g=new tr(I,D),r(g);return}let G={flush:ca.default.Z_SYNC_FLUSH,finishFlush:ca.default.Z_SYNC_FLUSH};if(P==="gzip"||P==="x-gzip"){I=(0,an.pipeline)(I,ca.default.createGunzip(G),q=>{q&&n(q)}),g=new tr(I,D),r(g);return}if(P==="deflate"||P==="x-deflate"){let q=(0,an.pipeline)(w,new an.PassThrough,z=>{z&&n(z)});q.once("data",z=>{(z[0]&15)===8?I=(0,an.pipeline)(I,ca.default.createInflate(),N=>{N&&n(N)}):I=(0,an.pipeline)(I,ca.default.createInflateRaw(),N=>{N&&n(N)}),g=new tr(I,D),r(g)}),q.once("end",()=>{g||(g=new tr(I,D),r(g))});return}if(P==="br"){I=(0,an.pipeline)(I,ca.default.createBrotliDecompress(),q=>{q&&n(q)}),g=new tr(I,D),r(g);return}g=new tr(I,D),r(g)}),_k(v,s).catch(n)})}function PH(t,e){let r=sl.Buffer.from(`0\r
|
|
80
|
+
\r
|
|
81
|
+
`),n=!1,s=!1,o;t.on("response",u=>{let{headers:f}=u;n=f["transfer-encoding"]==="chunked"&&!f["content-length"]}),t.on("socket",u=>{let f=()=>{if(n&&!s){let g=new Error("Premature close");g.code="ERR_STREAM_PREMATURE_CLOSE",e(g)}},h=g=>{s=sl.Buffer.compare(g.slice(-5),r)===0,!s&&o&&(s=sl.Buffer.compare(o.slice(-3),r.slice(0,3))===0&&sl.Buffer.compare(g.slice(-2),r.slice(3))===0),o=g};u.prependListener("close",f),u.on("data",h),t.on("close",()=>{u.removeListener("close",f),u.removeListener("data",h)})})}var zr=class{constructor(e){this.repos=[];this.options={...e,dir:e.dir||process.cwd()},this.octokit=new Lk.Octokit({auth:this.options.token,request:{fetch:du}})}async listForOrg(){if(this.repos.length)return this.repos;let e=await this.octokit.paginate(this.octokit.repos.listForOrg,{org:this.options.org,per_page:100,type:"all"});return this.repos=e.filter(r=>this.options.repos.length?this.options.repos.includes(r.name):!0),this.repos}getRepoPath(e){return(0,la.join)(this.options.dir,this.options.org,e)}getIssuePath(e,r){return(0,la.join)(this.getRepoPath(e),`issue/${r}.json`)}getCodePath(e){return(0,la.join)(this.getRepoPath(e),"source/")}getLabelPath(e){return(0,la.join)(this.getRepoPath(e),"label.json")}getMilestonePath(e){return(0,la.join)(this.getRepoPath(e),"milestone.json")}getSettingsPath(e){return(0,la.join)(this.getRepoPath(e),"settings.json")}};var v3=Ye(_b()),vu=require("path");var d0=Ye(p0()),ll=Ye(sn()),Ln=class{constructor(e){this.repoCache=new Map;this.options={...e,dir:e.dir||process.cwd()},this.octokit=new v3.Octokit({auth:this.options.token,request:{fetch:du}})}getRepoPath(e){return(0,vu.join)(this.options.dir,this.options.org,e)}async findRepoMeta(){return(await d0.default.async(`${this.options.org}/*`,{cwd:this.options.dir,onlyDirectories:!0,deep:1,absolute:!0,objectMode:!0})).filter(r=>this.options.repos.length?this.options.repos.includes(r.name):!0).map(r=>({...r,repoName:r.name}))}async findIssueMeta(e){return(await d0.default.async(`${this.getRepoPath(e)}/issue/**`,{deep:1,absolute:!0,objectMode:!0,onlyFiles:!0})).map(n=>({...n,id:+n.name.split(".").shift(),repoName:e}))}async getCodeMeta(e){let r=(0,vu.join)(this.options.dir,this.options.org,e,"source/");return await(0,ll.pathExists)(r)?{path:r,repoName:e}:(console.warn("Can not find code path: "+r),null)}async getLabelMeta(e){let r=(0,vu.join)(this.options.dir,this.options.org,e,"label.json");return await(0,ll.pathExists)(r)?{path:r,repoName:e}:(console.warn("Can not find label path: "+r),null)}async getMilestoneMeta(e){let r=(0,vu.join)(this.options.dir,this.options.org,e,"milestone.json");return await(0,ll.pathExists)(r)?{path:r,repoName:e}:(console.warn("Can not find milestone path: "+r),null)}async getSettingsMeta(e){let r=(0,vu.join)(this.options.dir,this.options.org,e,"settings.json");return await(0,ll.pathExists)(r)?{path:r,repoName:e}:(console.warn("Can not find settings path: "+r),null)}async getCurrentUser(){let{data:e}=await this.octokit.users.getAuthenticated();return e}};var k3=Ye(S3()),dp=class extends zr{async backup(){let e=await this.listForOrg();await Lt(e.map(r=>async()=>{await this.backupRepository(r.name)}),{concurrency:(0,m0.cpus)().length})}async listAllIssueForRepo(e){return(await this.octokit.paginate(this.octokit.issues.listForRepo,{owner:this.options.org,repo:e,per_page:100,state:"open"})).filter(n=>!n.pull_request)}async backupRepository(e){let r=await this.listAllIssueForRepo(e);await Lt(r.filter(n=>!n.pull_request).map(n=>async()=>{let s=this.options.org,o=await this.octokit.paginate(this.octokit.issues.listComments,{owner:s,repo:e,issue_number:n.number,per_page:100}),u={...n,extra:{comments:o}},f=this.getIssuePath(e,n.number);if(await ma.default.ensureDir((0,T3.dirname)(f)),await(0,ma.pathExists)(f)){let h=await(0,ma.readJSON)(f);if((0,k3.isEqual)(h,u))return}await ma.default.writeJson(f,u)}),{concurrency:(0,m0.cpus)().length})}};var g0=Ye(sn()),x3=require("os");var A3=require("path");var mp=class extends zr{async backup(){let e=await this.listForOrg();await Lt(e.map(r=>async()=>{await this.backupRepository(r.name)}),{concurrency:(0,x3.cpus)().length})}async backupRepository(e){let r=await this.octokit.issues.listLabelsForRepo({owner:this.options.org,repo:e}),n=this.getLabelPath(e);await g0.default.ensureDir((0,A3.dirname)(n)),await g0.default.writeJson(n,r.data)}};var b0=Ye(sn()),R3=require("os");var C3=require("path");var gp=class extends zr{async backup(){let e=await this.listForOrg();await Lt(e.map(r=>async()=>{await this.backupRepository(r.name)}),{concurrency:(0,R3.cpus)().length})}async backupRepository(e){let r=await this.octokit.repos.get({owner:this.options.org,repo:e}),n=this.getSettingsPath(r.data.name);await b0.default.ensureDir((0,C3.dirname)(n)),await b0.default.writeJson(n,r.data)}};var $p=Ye(sn()),bD=require("os");var Lp=Ye(j3(),1),Dp=Ye(v0(),1),cC=require("child_process"),zC=Ye(T0(),1),Cu=Ye(T0(),1),Pp=Object.defineProperty,hV=Object.defineProperties,pV=Object.getOwnPropertyDescriptor,dV=Object.getOwnPropertyDescriptors,j0=Object.getOwnPropertyNames,$3=Object.getOwnPropertySymbols,wR=Object.prototype.hasOwnProperty,mV=Object.prototype.propertyIsEnumerable,H3=(t,e,r)=>e in t?Pp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Bn=(t,e)=>{for(var r in e||(e={}))wR.call(e,r)&&H3(t,r,e[r]);if($3)for(var r of $3(e))mV.call(e,r)&&H3(t,r,e[r]);return t},dl=(t,e)=>hV(t,dV(e)),gV=t=>Pp(t,"__esModule",{value:!0}),he=(t,e)=>function(){return t&&(e=(0,t[j0(t)[0]])(t=0)),e},bV=(t,e)=>function(){return e||(0,t[j0(t)[0]])((e={exports:{}}).exports,e),e.exports},Dt=(t,e)=>{for(var r in e)Pp(t,r,{get:e[r],enumerable:!0})},yV=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of j0(e))!wR.call(t,s)&&(r||s!=="default")&&Pp(t,s,{get:()=>e[s],enumerable:!(n=pV(e,s))||n.enumerable});return t},vt=(t=>(e,r)=>t&&t.get(e)||(r=yV(gV({}),e,1),t&&t.set(e,r),r))(typeof WeakMap<"u"?new WeakMap:0),pl=(t,e,r)=>new Promise((n,s)=>{var o=h=>{try{f(r.next(h))}catch(g){s(g)}},u=h=>{try{f(r.throw(h))}catch(g){s(g)}},f=h=>h.done?n(h.value):Promise.resolve(h.value).then(o,u);f((r=r.apply(t,e)).next())});function _V(...t){let e=new String(t);return Fp.set(e,t),e}function Rp(t){return t instanceof String&&Fp.has(t)}function z3(t){return Fp.get(t)||[]}var Fp,yl=he({"src/lib/args/pathspec.ts"(){Fp=new WeakMap}}),Fi,So=he({"src/lib/errors/git-error.ts"(){Fi=class extends Error{constructor(t,e){super(e),this.task=t,Object.setPrototypeOf(this,new.target.prototype)}}}}),_l,Ou=he({"src/lib/errors/git-response-error.ts"(){So(),_l=class extends Fi{constructor(t,e){super(void 0,e||String(t)),this.git=t}}}}),ER,vR=he({"src/lib/errors/task-configuration-error.ts"(){So(),ER=class extends Fi{constructor(t){super(void 0,t)}}}});function SR(t){return typeof t=="function"?t:wa}function TR(t){return typeof t=="function"&&t!==wa}function kR(t,e){let r=t.indexOf(e);return r<=0?[t,""]:[t.substr(0,r),t.substr(r+1)]}function xR(t,e=0){return AR(t)&&t.length>e?t[e]:void 0}function _a(t,e=0){if(AR(t)&&t.length>e)return t[t.length-1-e]}function AR(t){return!!(t&&typeof t.length=="number")}function wl(t="",e=!0,r=`
|
|
82
|
+
`){return t.split(r).reduce((n,s)=>{let o=e?s.trim():s;return o&&n.push(o),n},[])}function $0(t,e){return wl(t,!0).map(r=>e(r))}function H0(t){return(0,Lp.exists)(t,Lp.FOLDER)}function rt(t,e){return Array.isArray(t)?t.includes(e)||t.push(e):t.add(e),e}function RR(t,e){return Array.isArray(t)&&!t.includes(e)&&t.push(e),t}function Ip(t,e){if(Array.isArray(t)){let r=t.indexOf(e);r>=0&&t.splice(r,1)}else t.delete(e);return e}function vo(t){return Array.isArray(t)?t:[t]}function CR(t){return vo(t).map(String)}function gt(t,e=0){if(t==null)return e;let r=parseInt(t,10);return isNaN(r)?e:r}function ml(t,e){let r=[];for(let n=0,s=t.length;n<s;n++)r.push(e,t[n]);return r}function gl(t){return(Array.isArray(t)?Buffer.concat(t):t).toString("utf-8")}function DR(t,e){return Object.assign({},...e.map(r=>r in t?{[r]:t[r]}:{}))}function D0(t=0){return new Promise(e=>setTimeout(e,t))}var Du,wa,El,Bp=he({"src/lib/utils/util.ts"(){Du="\0",wa=()=>{},El=Object.prototype.toString.call.bind(Object.prototype.toString)}});function Hs(t,e,r){return e(t)?t:arguments.length>2?r:void 0}function z0(t,e){let r=Rp(t)?"string":typeof t;return/number|string|boolean/.test(r)&&(!e||!e.includes(r))}function W0(t){return!!t&&El(t)==="[object Object]"}function OR(t){return typeof t=="function"}var vl,gr,PR,Cp,V0,FR=he({"src/lib/utils/argument-filters.ts"(){Bp(),yl(),vl=t=>Array.isArray(t),gr=t=>typeof t=="string",PR=t=>Array.isArray(t)&&t.every(gr),Cp=t=>gr(t)||Array.isArray(t)&&t.every(gr),V0=t=>t==null||"number|boolean|function".includes(typeof t)?!1:Array.isArray(t)||typeof t=="string"||typeof t.length=="number"}}),O0,wV=he({"src/lib/utils/exit-codes.ts"(){O0=(t=>(t[t.SUCCESS=0]="SUCCESS",t[t.ERROR=1]="ERROR",t[t.NOT_FOUND=-2]="NOT_FOUND",t[t.UNCLEAN=128]="UNCLEAN",t))(O0||{})}}),bl,EV=he({"src/lib/utils/git-output-streams.ts"(){bl=class{constructor(t,e){this.stdOut=t,this.stdErr=e}asStrings(){return new bl(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}}}),Le,Eo,vV=he({"src/lib/utils/line-parser.ts"(){Le=class{constructor(t,e){this.matches=[],this.parse=(r,n)=>(this.resetMatches(),this._regExp.every((s,o)=>this.addMatch(s,o,r(o)))?this.useMatches(n,this.prepareMatches())!==!1:!1),this._regExp=Array.isArray(t)?t:[t],e&&(this.useMatches=e)}useMatches(t,e){throw new Error("LineParser:useMatches not implemented")}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(t,e,r){let n=r&&t.exec(r);return n&&this.pushMatch(e,n),!!n}pushMatch(t,e){this.matches.push(...e.slice(1))}},Eo=class extends Le{addMatch(t,e,r){return/^remote:\s/.test(String(r))&&super.addMatch(t,e,r)}pushMatch(t,e){(t>0||e.length>1)&&super.pushMatch(t,e)}}}});function LR(...t){let e=process.cwd(),r=Object.assign(Bn({baseDir:e},IR),...t.filter(n=>typeof n=="object"&&n));return r.baseDir=r.baseDir||e,r.trimmed=r.trimmed===!0,r}var IR,SV=he({"src/lib/utils/simple-git-options.ts"(){IR={binary:"git",maxConcurrentProcesses:5,config:[],trimmed:!1}}});function K0(t,e=[]){return W0(t)?Object.keys(t).reduce((r,n)=>{let s=t[n];return Rp(s)?r.push(s):z0(s,["boolean"])?r.push(n+"="+s):r.push(n),r},e):e}function Vr(t,e=0,r=!1){let n=[];for(let s=0,o=e<0?t.length:e;s<o;s++)"string|number".includes(typeof t[s])&&n.push(String(t[s]));return K0(Y0(t),n),r||n.push(...TV(t)),n}function TV(t){let e=typeof _a(t)=="function";return Hs(_a(t,e?1:0),vl,[])}function Y0(t){let e=OR(_a(t));return Hs(_a(t,e?1:0),W0)}function St(t,e=!0){let r=SR(_a(t));return e||TR(r)?r:void 0}var kV=he({"src/lib/utils/task-options.ts"(){FR(),Bp(),yl()}});function P0(t,e){return t(e.stdOut,e.stdErr)}function pn(t,e,r,n=!0){return vo(r).forEach(s=>{for(let o=wl(s,n),u=0,f=o.length;u<f;u++){let h=(g=0)=>{if(!(u+g>=f))return o[u+g]};e.some(({parse:g})=>g(h,t))}}),t}var xV=he({"src/lib/utils/task-parser.ts"(){Bp()}}),BR={};Dt(BR,{ExitCodes:()=>O0,GitOutputStreams:()=>bl,LineParser:()=>Le,NOOP:()=>wa,NULL:()=>Du,RemoteLineParser:()=>Eo,append:()=>rt,appendTaskOptions:()=>K0,asArray:()=>vo,asFunction:()=>SR,asNumber:()=>gt,asStringArray:()=>CR,bufferToString:()=>gl,callTaskParser:()=>P0,createInstanceConfig:()=>LR,delay:()=>D0,filterArray:()=>vl,filterFunction:()=>OR,filterHasLength:()=>V0,filterPlainObject:()=>W0,filterPrimitives:()=>z0,filterString:()=>gr,filterStringArray:()=>PR,filterStringOrStringArray:()=>Cp,filterType:()=>Hs,first:()=>xR,folderExists:()=>H0,forEachLineWithContent:()=>$0,getTrailingOptions:()=>Vr,including:()=>RR,isUserFunction:()=>TR,last:()=>_a,objectToString:()=>El,parseStringResponse:()=>pn,pick:()=>DR,prefixedArray:()=>ml,remove:()=>Ip,splitOn:()=>kR,toLinesWithContent:()=>wl,trailingFunctionArgument:()=>St,trailingOptionsArgument:()=>Y0});var Oe=he({"src/lib/utils/index.ts"(){FR(),wV(),EV(),vV(),SV(),kV(),xV(),Bp()}}),GR={};Dt(GR,{CheckRepoActions:()=>F0,checkIsBareRepoTask:()=>UR,checkIsRepoRootTask:()=>qR,checkIsRepoTask:()=>AV});function AV(t){switch(t){case"bare":return UR();case"root":return qR()}return{commands:["rev-parse","--is-inside-work-tree"],format:"utf-8",onError:Gp,parser:J0}}function qR(){return{commands:["rev-parse","--git-dir"],format:"utf-8",onError:Gp,parser(e){return/^\.(git)?$/.test(e.trim())}}}function UR(){return{commands:["rev-parse","--is-bare-repository"],format:"utf-8",onError:Gp,parser:J0}}function RV(t){return/(Not a git repository|Kein Git-Repository)/i.test(String(t))}var F0,Gp,J0,NR=he({"src/lib/tasks/check-is-repo.ts"(){Oe(),F0=(t=>(t.BARE="bare",t.IN_TREE="tree",t.IS_REPO_ROOT="root",t))(F0||{}),Gp=({exitCode:t},e,r,n)=>{if(t===128&&RV(e))return r(Buffer.from("false"));n(e)},J0=t=>t.trim()==="true"}});function CV(t,e){let r=new MR(t),n=t?$R:jR;return wl(e).forEach(s=>{let o=s.replace(n,"");r.paths.push(o),(HR.test(o)?r.folders:r.files).push(o)}),r}var MR,jR,$R,HR,DV=he({"src/lib/responses/CleanSummary.ts"(){Oe(),MR=class{constructor(t){this.dryRun=t,this.paths=[],this.files=[],this.folders=[]}},jR=/^[a-z]+\s*/i,$R=/^[a-z]+\s+[a-z]+\s*/i,HR=/\/$/}}),L0={};Dt(L0,{EMPTY_COMMANDS:()=>qp,adhocExecTask:()=>zR,configurationErrorTask:()=>Kr,isBufferTask:()=>VR,isEmptyTask:()=>KR,straightThroughBufferTask:()=>WR,straightThroughStringTask:()=>Cr});function zR(t){return{commands:qp,format:"empty",parser:t}}function Kr(t){return{commands:qp,format:"empty",parser(){throw typeof t=="string"?new ER(t):t}}}function Cr(t,e=!1){return{commands:t,format:"utf-8",parser(r){return e?String(r).trim():r}}}function WR(t){return{commands:t,format:"buffer",parser(e){return e}}}function VR(t){return t.format==="buffer"}function KR(t){return t.format==="empty"||!t.commands.length}var qp,Ct=he({"src/lib/tasks/task.ts"(){vR(),qp=[]}}),YR={};Dt(YR,{CONFIG_ERROR_INTERACTIVE_MODE:()=>Q0,CONFIG_ERROR_MODE_REQUIRED:()=>X0,CONFIG_ERROR_UNKNOWN_OPTION:()=>Z0,CleanOptions:()=>Tp,cleanTask:()=>JR,cleanWithOptionsTask:()=>OV,isCleanOptionsArray:()=>PV});function OV(t,e){let{cleanMode:r,options:n,valid:s}=FV(t);return r?s.options?(n.push(...e),n.some(BV)?Kr(Q0):JR(r,n)):Kr(Z0+JSON.stringify(t)):Kr(X0)}function JR(t,e){return{commands:["clean",`-${t}`,...e],format:"utf-8",parser(n){return CV(t==="n",n)}}}function PV(t){return Array.isArray(t)&&t.every(e=>e_.has(e))}function FV(t){let e,r=[],n={cleanMode:!1,options:!0};return t.replace(/[^a-z]i/g,"").split("").forEach(s=>{LV(s)?(e=s,n.cleanMode=!0):n.options=n.options&&IV(r[r.length]=`-${s}`)}),{cleanMode:e,options:r,valid:n}}function LV(t){return t==="f"||t==="n"}function IV(t){return/^-[a-z]$/i.test(t)&&e_.has(t.charAt(1))}function BV(t){return/^-[^\-]/.test(t)?t.indexOf("i")>0:t==="--interactive"}var Q0,X0,Z0,Tp,e_,QR=he({"src/lib/tasks/clean.ts"(){DV(),Oe(),Ct(),Q0="Git clean interactive mode is not supported",X0='Git clean mode parameter ("n" or "f") is required',Z0="Git clean unknown option found in: ",Tp=(t=>(t.DRY_RUN="n",t.FORCE="f",t.IGNORED_INCLUDED="x",t.IGNORED_ONLY="X",t.EXCLUDING="e",t.QUIET="q",t.RECURSIVE="d",t))(Tp||{}),e_=new Set(["i",...CR(Object.values(Tp))])}});function GV(t){let e=new ZR;for(let r of XR(t))e.addValue(r.file,String(r.key),r.value);return e}function qV(t,e){let r=null,n=[],s=new Map;for(let o of XR(t,e))o.key===e&&(n.push(r=o.value),s.has(o.file)||s.set(o.file,[]),s.get(o.file).push(r));return{key:e,paths:Array.from(s.keys()),scopes:s,value:r,values:n}}function UV(t){return t.replace(/^(file):/,"")}function*XR(t,e=null){let r=t.split("\0");for(let n=0,s=r.length-1;n<s;){let o=UV(r[n++]),u=r[n++],f=e;if(u.includes(`
|
|
83
|
+
`)){let h=kR(u,`
|
|
84
|
+
`);f=h[0],u=h[1]}yield{file:o,key:f,value:u}}}var ZR,NV=he({"src/lib/responses/ConfigList.ts"(){Oe(),ZR=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||(this._all=this.files.reduce((t,e)=>Object.assign(t,this.values[e]),{})),this._all}addFile(t){if(!(t in this.values)){let e=_a(this.files);this.values[t]=e?Object.create(this.values[e]):{},this.files.push(t)}return this.values[t]}addValue(t,e,r){let n=this.addFile(t);n.hasOwnProperty(e)?Array.isArray(n[e])?n[e].push(r):n[e]=[n[e],r]:n[e]=r,this._all=void 0}}}});function k0(t,e){return typeof t=="string"&&I0.hasOwnProperty(t)?t:e}function MV(t,e,r,n){let s=["config",`--${n}`];return r&&s.push("--add"),s.push(t,e),{commands:s,format:"utf-8",parser(o){return o}}}function jV(t,e){let r=["config","--null","--show-origin","--get-all",t];return e&&r.splice(1,0,`--${e}`),{commands:r,format:"utf-8",parser(n){return qV(n,t)}}}function $V(t){let e=["config","--list","--show-origin","--null"];return t&&e.push(`--${t}`),{commands:e,format:"utf-8",parser(r){return GV(r)}}}function HV(){return{addConfig(t,e,...r){return this._runTask(MV(t,e,r[0]===!0,k0(r[1],"local")),St(arguments))},getConfig(t,e){return this._runTask(jV(t,k0(e,void 0)),St(arguments))},listConfig(...t){return this._runTask($V(k0(t[0],void 0)),St(arguments))}}}var I0,eC=he({"src/lib/tasks/config.ts"(){NV(),Oe(),I0=(t=>(t.system="system",t.global="global",t.local="local",t.worktree="worktree",t))(I0||{})}});function zV(...t){return new rC().param(...t)}function WV(t){let e=new Set,r={};return $0(t,n=>{let[s,o,u]=n.split(Du);e.add(s),(r[s]=r[s]||[]).push({line:gt(o),path:s,preview:u})}),{paths:e,results:r}}function VV(){return{grep(t){let e=St(arguments),r=Vr(arguments);for(let s of tC)if(r.includes(s))return this._runTask(Kr(`git.grep: use of "${s}" is not supported.`),e);typeof t=="string"&&(t=zV().param(t));let n=["grep","--null","-n","--full-name",...r,...t];return this._runTask({commands:n,format:"utf-8",parser(s){return WV(s)}},e)}}}var tC,hl,W3,rC,nC=he({"src/lib/tasks/grep.ts"(){Oe(),Ct(),tC=["-h"],hl=Symbol("grepQuery"),rC=class{constructor(){this[W3]=[]}*[(W3=hl,Symbol.iterator)](){for(let t of this[hl])yield t}and(...t){return t.length&&this[hl].push("--and","(",...ml(t,"-e"),")"),this}param(...t){return this[hl].push(...ml(t,"-e")),this}}}}),sC={};Dt(sC,{ResetMode:()=>kp,getResetMode:()=>YV,resetTask:()=>KV});function KV(t,e){let r=["reset"];return iC(t)&&r.push(`--${t}`),r.push(...e),Cr(r)}function YV(t){if(iC(t))return t;switch(typeof t){case"string":case"undefined":return"soft"}}function iC(t){return oC.includes(t)}var kp,oC,aC=he({"src/lib/tasks/reset.ts"(){Ct(),kp=(t=>(t.MIXED="mixed",t.SOFT="soft",t.HARD="hard",t.MERGE="merge",t.KEEP="keep",t))(kp||{}),oC=Array.from(Object.values(kp))}});function JV(){return(0,Dp.default)("simple-git")}function V3(t,e,r){return!e||!String(e).replace(/\s*/,"")?r?(n,...s)=>{t(n,...s),r(n,...s)}:t:(n,...s)=>{t(`%s ${n}`,e,...s),r&&r(n,...s)}}function QV(t,e,{namespace:r}){if(typeof t=="string")return t;let n=e&&e.namespace||"";return n.startsWith(r)?n.substr(r.length+1):n||r}function t_(t,e,r,n=JV()){let s=t&&`[${t}]`||"",o=[],u=typeof e=="string"?n.extend(e):e,f=QV(Hs(e,gr),u,n);return g(r);function h(d,y){return rt(o,t_(t,f.replace(/^[^:]+/,d),y,n))}function g(d){let y=d&&`[${d}]`||"",v=u&&V3(u,y)||wa,b=V3(n,`${s} ${y}`,v);return Object.assign(u?v:b,{label:t,sibling:h,info:b,step:g})}}var uC=he({"src/lib/git-logger.ts"(){Oe(),Dp.default.formatters.L=t=>String(V0(t)?t.length:"-"),Dp.default.formatters.B=t=>Buffer.isBuffer(t)?t.toString("utf8"):El(t)}}),vp,B0,XV=he({"src/lib/runners/tasks-pending-queue.ts"(){So(),uC(),vp=class{constructor(t="GitExecutor"){this.logLabel=t,this._queue=new Map}withProgress(t){return this._queue.get(t)}createProgress(t){let e=vp.getName(t.commands[0]),r=t_(this.logLabel,e);return{task:t,logger:r,name:e}}push(t){let e=this.createProgress(t);return e.logger("Adding task to the queue, commands = %o",t.commands),this._queue.set(t,e),e}fatal(t){for(let[e,{logger:r}]of Array.from(this._queue.entries()))e===t.task?(r.info("Failed %o",t),r("Fatal exception, any as-yet un-started tasks run through this executor will not be attempted")):r.info("A fatal exception occurred in a previous task, the queue has been purged: %o",t.message),this.complete(e);if(this._queue.size!==0)throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(t){this.withProgress(t)&&this._queue.delete(t)}attempt(t){let e=this.withProgress(t);if(!e)throw new Fi(void 0,"TasksPendingQueue: attempt called for an unknown task");return e.logger("Starting task"),e}static getName(t="empty"){return`task:${t}:${++vp.counter}`}},B0=vp,B0.counter=0}});function Ru(t,e){return{method:xR(t.commands)||"",commands:e}}function ZV(t,e){return r=>{e("[ERROR] child process exception %o",r),t.push(Buffer.from(String(r.stack),"ascii"))}}function K3(t,e,r,n){return s=>{r("%s received %L bytes",e,s),n("%B",s),t.push(s)}}var G0,eK=he({"src/lib/runners/git-executor-chain.ts"(){So(),Ct(),Oe(),XV(),G0=class{constructor(t,e,r){this._executor=t,this._scheduler=e,this._plugins=r,this._chain=Promise.resolve(),this._queue=new B0}get binary(){return this._executor.binary}get cwd(){return this._cwd||this._executor.cwd}set cwd(t){this._cwd=t}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(t){return this._queue.push(t),this._chain=this._chain.then(()=>this.attemptTask(t))}attemptTask(t){return pl(this,null,function*(){let e=yield this._scheduler.next(),r=()=>this._queue.complete(t);try{let{logger:n}=this._queue.attempt(t);return yield KR(t)?this.attemptEmptyTask(t,n):this.attemptRemoteTask(t,n)}catch(n){throw this.onFatalException(t,n)}finally{r(),e()}})}onFatalException(t,e){let r=e instanceof Fi?Object.assign(e,{task:t}):new Fi(t,e&&String(e));return this._chain=Promise.resolve(),this._queue.fatal(r),r}attemptRemoteTask(t,e){return pl(this,null,function*(){let r=this._plugins.exec("spawn.args",[...t.commands],Ru(t,t.commands)),n=yield this.gitResponse(t,this.binary,r,this.outputHandler,e.step("SPAWN")),s=yield this.handleTaskData(t,r,n,e.step("HANDLE"));return e("passing response to task's parser as a %s",t.format),VR(t)?P0(t.parser,s):P0(t.parser,s.asStrings())})}attemptEmptyTask(t,e){return pl(this,null,function*(){return e("empty task bypassing child process to call to task's parser"),t.parser(this)})}handleTaskData(t,e,r,n){let{exitCode:s,rejection:o,stdOut:u,stdErr:f}=r;return new Promise((h,g)=>{n("Preparing to handle process response exitCode=%d stdOut=",s);let{error:d}=this._plugins.exec("task.error",{error:o},Bn(Bn({},Ru(t,e)),r));if(d&&t.onError)return n.info("exitCode=%s handling with custom error handler"),t.onError(r,d,y=>{n.info("custom error handler treated as success"),n("custom error returned a %s",El(y)),h(new bl(Array.isArray(y)?Buffer.concat(y):y,Buffer.concat(f)))},g);if(d)return n.info("handling as error: exitCode=%s stdErr=%s rejection=%o",s,f.length,o),g(d);n.info("retrieving task output complete"),h(new bl(Buffer.concat(u),Buffer.concat(f)))})}gitResponse(t,e,r,n,s){return pl(this,null,function*(){let o=s.sibling("output"),u=this._plugins.exec("spawn.options",{cwd:this.cwd,env:this.env,windowsHide:!0},Ru(t,t.commands));return new Promise(f=>{let h=[],g=[];s.info("%s %o",e,r),s("%O",u);let d=this._beforeSpawn(t,r);if(d)return f({stdOut:h,stdErr:g,exitCode:9901,rejection:d});this._plugins.exec("spawn.before",void 0,dl(Bn({},Ru(t,r)),{kill(v){d=v||d}}));let y=(0,cC.spawn)(e,r,u);y.stdout.on("data",K3(h,"stdOut",s,o.step("stdOut"))),y.stderr.on("data",K3(g,"stdErr",s,o.step("stdErr"))),y.on("error",ZV(g,s)),n&&(s("Passing child process stdOut/stdErr to custom outputHandler"),n(e,y.stdout,y.stderr,[...r])),this._plugins.exec("spawn.after",void 0,dl(Bn({},Ru(t,r)),{spawned:y,close(v,b){f({stdOut:h,stdErr:g,exitCode:v,rejection:d||b})},kill(v){y.killed||(d=v,y.kill("SIGINT"))}}))})})}_beforeSpawn(t,e){let r;return this._plugins.exec("spawn.before",void 0,dl(Bn({},Ru(t,e)),{kill(n){r=n||r}})),r}}}}),lC={};Dt(lC,{GitExecutor:()=>fC});var fC,tK=he({"src/lib/runners/git-executor.ts"(){eK(),fC=class{constructor(t="git",e,r,n){this.binary=t,this.cwd=e,this._scheduler=r,this._plugins=n,this._chain=new G0(this,this._scheduler,this._plugins)}chain(){return new G0(this,this._scheduler,this._plugins)}push(t){return this._chain.push(t)}}}});function rK(t,e,r=wa){let n=o=>{r(null,o)},s=o=>{o?.task===t&&r(o instanceof _l?nK(o):o,void 0)};e.then(n,s)}function nK(t){let e=n=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${n} should be GitResponseError.git.${n}, this will no longer be available in version 3`),e=wa};return Object.create(t,Object.getOwnPropertyNames(t.git).reduce(r,{}));function r(n,s){return s in t||(n[s]={enumerable:!1,configurable:!1,get(){return e(s),t.git[s]}}),n}}var sK=he({"src/lib/task-callback.ts"(){Ou(),Oe()}});function Y3(t,e){return zR(r=>{if(!H0(t))throw new Error(`Git.cwd: cannot change to non-directory "${t}"`);return(e||r).cwd=t})}var iK=he({"src/lib/tasks/change-working-directory.ts"(){Oe(),Ct()}});function x0(t){let e=["checkout",...t];return e[1]==="-b"&&e.includes("-B")&&(e[1]=Ip(e,"-B")),Cr(e)}function oK(){return{checkout(){return this._runTask(x0(Vr(arguments,1)),St(arguments))},checkoutBranch(t,e){return this._runTask(x0(["-b",t,e,...Vr(arguments)]),St(arguments))},checkoutLocalBranch(t){return this._runTask(x0(["-b",t,...Vr(arguments)]),St(arguments))}}}var aK=he({"src/lib/tasks/checkout.ts"(){Oe(),Ct()}});function uK(t){return pn({author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}},hC,t)}var hC,cK=he({"src/lib/parsers/parse-commit.ts"(){Oe(),hC=[new Le(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(t,[e,r,n])=>{t.branch=e,t.commit=n,t.root=!!r}),new Le(/\s*Author:\s(.+)/i,(t,[e])=>{let r=e.split("<"),n=r.pop();!n||!n.includes("@")||(t.author={email:n.substr(0,n.length-1),name:r.join("<").trim()})}),new Le(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(t,[e,r,n])=>{t.summary.changes=parseInt(e,10)||0,t.summary.insertions=parseInt(r,10)||0,t.summary.deletions=parseInt(n,10)||0}),new Le(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(t,[e,r,n])=>{t.summary.changes=parseInt(e,10)||0;let s=parseInt(r,10)||0;n==="-"?t.summary.deletions=s:n==="+"&&(t.summary.insertions=s)})]}});function lK(t,e,r){return{commands:["-c","core.abbrev=40","commit",...ml(t,"-m"),...e,...r],format:"utf-8",parser:uK}}function fK(){return{commit(e,...r){let n=St(arguments),s=t(e)||lK(vo(e),vo(Hs(r[0],Cp,[])),[...Hs(r[1],vl,[]),...Vr(arguments,0,!0)]);return this._runTask(s,n)}};function t(e){return!Cp(e)&&Kr("git.commit: requires the commit message to be supplied as a string/string[]")}}var hK=he({"src/lib/tasks/commit.ts"(){cK(),Oe(),Ct()}});function pK(){return{firstCommit(){return this._runTask(Cr(["rev-list","--max-parents=0","HEAD"],!0),St(arguments))}}}var dK=he({"src/lib/tasks/first-commit.ts"(){Oe(),Ct()}});function mK(t,e){let r=["hash-object",t];return e&&r.push("-w"),Cr(r,!0)}var gK=he({"src/lib/tasks/hash-object.ts"(){Ct()}});function bK(t,e,r){let n=String(r).trim(),s;if(s=pC.exec(n))return new xp(t,e,!1,s[1]);if(s=dC.exec(n))return new xp(t,e,!0,s[1]);let o="",u=n.split(" ");for(;u.length;)if(u.shift()==="in"){o=u.join(" ");break}return new xp(t,e,/^re/i.test(n),o)}var xp,pC,dC,yK=he({"src/lib/responses/InitSummary.ts"(){xp=class{constructor(t,e,r,n){this.bare=t,this.path=e,this.existing=r,this.gitDir=n}},pC=/^Init.+ repository in (.+)$/,dC=/^Rein.+ in (.+)$/}});function _K(t){return t.includes(r_)}function wK(t=!1,e,r){let n=["init",...r];return t&&!_K(n)&&n.splice(1,0,r_),{commands:n,format:"utf-8",parser(s){return bK(n.includes("--bare"),e,s)}}}var r_,EK=he({"src/lib/tasks/init.ts"(){yK(),r_="--bare"}});function n_(t){for(let e=0;e<t.length;e++){let r=s_.exec(t[e]);if(r)return`--${r[1]}`}return""}function vK(t){return s_.test(t)}var s_,Sl=he({"src/lib/args/log-format.ts"(){s_=/^--(stat|numstat|name-only|name-status)(=|$)/}}),mC,SK=he({"src/lib/responses/DiffSummary.ts"(){mC=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}});function gC(t=""){let e=bC[t];return r=>pn(new mC,e,r,!1)}var A0,J3,Q3,X3,bC,yC=he({"src/lib/parsers/parse-diff-summary.ts"(){Sl(),SK(),Oe(),A0=[new Le(/(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,(t,[e,r,n=""])=>{t.files.push({file:e.trim(),changes:gt(r),insertions:n.replace(/[^+]/g,"").length,deletions:n.replace(/[^-]/g,"").length,binary:!1})}),new Le(/(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,(t,[e,r,n])=>{t.files.push({file:e.trim(),before:gt(r),after:gt(n),binary:!0})}),new Le(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,(t,[e,r])=>{let n=/(\d+) i/.exec(r),s=/(\d+) d/.exec(r);t.changed=gt(e),t.insertions=gt(n?.[1]),t.deletions=gt(s?.[1])})],J3=[new Le(/(\d+)\t(\d+)\t(.+)$/,(t,[e,r,n])=>{let s=gt(e),o=gt(r);t.changed++,t.insertions+=s,t.deletions+=o,t.files.push({file:n,changes:s+o,insertions:s,deletions:o,binary:!1})}),new Le(/-\t-\t(.+)$/,(t,[e])=>{t.changed++,t.files.push({file:e,after:0,before:0,binary:!0})})],Q3=[new Le(/(.+)$/,(t,[e])=>{t.changed++,t.files.push({file:e,changes:0,insertions:0,deletions:0,binary:!1})})],X3=[new Le(/([ACDMRTUXB])\s*(.+)$/,(t,[e,r])=>{t.changed++,t.files.push({file:r,changes:0,insertions:0,deletions:0,binary:!1})})],bC={[""]:A0,["--stat"]:A0,["--numstat"]:J3,["--name-status"]:X3,["--name-only"]:Q3}}});function TK(t,e){return e.reduce((r,n,s)=>(r[n]=t[s]||"",r),Object.create({diff:null}))}function _C(t=a_,e=wC,r=""){let n=gC(r);return function(s){let o=wl(s,!0,i_).map(function(u){let f=u.trim().split(o_),h=TK(f[0].trim().split(t),e);return f.length>1&&!!f[1].trim()&&(h.diff=n(f[1])),h});return{all:o,latest:o.length&&o[0]||null,total:o.length}}}var i_,o_,a_,wC,EC=he({"src/lib/parsers/parse-list-log-summary.ts"(){Oe(),yC(),Sl(),i_="\xF2\xF2\xF2\xF2\xF2\xF2 ",o_=" \xF2\xF2",a_=" \xF2 ",wC=["hash","date","message","refs","author_name","author_email"]}}),vC={};Dt(vC,{diffSummaryTask:()=>kK,validateLogFormatConfig:()=>Up});function kK(t){let e=n_(t),r=["diff"];return e===""&&(e="--stat",r.push("--stat=4096")),r.push(...t),Up(r)||{commands:r,format:"utf-8",parser:gC(e)}}function Up(t){let e=t.filter(vK);if(e.length>1)return Kr(`Summary flags are mutually exclusive - pick one of ${e.join(",")}`);if(e.length&&t.includes("-z"))return Kr(`Summary flag ${e} parsing is not compatible with null termination option '-z'`)}var u_=he({"src/lib/tasks/diff.ts"(){Sl(),yC(),Ct()}});function xK(t,e){let r=[],n=[];return Object.keys(t).forEach(s=>{r.push(s),n.push(String(t[s]))}),[r,n.join(e)]}function AK(t){return Object.keys(t).reduce((e,r)=>(r in q0||(e[r]=t[r]),e),{})}function SC(t={},e=[]){let r=Hs(t.splitter,gr,a_),n=!z0(t.format)&&t.format?t.format:{hash:"%H",date:t.strictDate===!1?"%ai":"%aI",message:"%s",refs:"%D",body:t.multiLine?"%B":"%b",author_name:t.mailMap!==!1?"%aN":"%an",author_email:t.mailMap!==!1?"%aE":"%ae"},[s,o]=xK(n,r),u=[],f=[`--pretty=format:${i_}${o}${o_}`,...e],h=t.n||t["max-count"]||t.maxCount;if(h&&f.push(`--max-count=${h}`),t.from||t.to){let g=t.symmetric!==!1?"...":"..";u.push(`${t.from||""}${g}${t.to||""}`)}return gr(t.file)&&f.push("--follow",_V(t.file)),K0(AK(t),f),{fields:s,splitter:r,commands:[...f,...u]}}function RK(t,e,r){let n=_C(t,e,n_(r));return{commands:["log",...r],format:"utf-8",parser:n}}function CK(){return{log(...r){let n=St(arguments),s=SC(Y0(arguments),Hs(arguments[0],vl)),o=e(...r)||Up(s.commands)||t(s);return this._runTask(o,n)}};function t(r){return RK(r.splitter,r.fields,r.commands)}function e(r,n){return gr(r)&&gr(n)&&Kr("git.log(string, string) should be replaced with git.log({ from: string, to: string })")}}var q0,TC=he({"src/lib/tasks/log.ts"(){Sl(),yl(),EC(),Oe(),Ct(),u_(),q0=(t=>(t[t["--pretty"]=0]="--pretty",t[t["max-count"]=1]="max-count",t[t.maxCount=2]="maxCount",t[t.n=3]="n",t[t.file=4]="file",t[t.format=5]="format",t[t.from=6]="from",t[t.to=7]="to",t[t.splitter=8]="splitter",t[t.symmetric=9]="symmetric",t[t.mailMap=10]="mailMap",t[t.multiLine=11]="multiLine",t[t.strictDate=12]="strictDate",t))(q0||{})}}),Ap,kC,DK=he({"src/lib/responses/MergeSummary.ts"(){Ap=class{constructor(t,e=null,r){this.reason=t,this.file=e,this.meta=r}toString(){return`${this.file}:${this.reason}`}},kC=class{constructor(){this.conflicts=[],this.merges=[],this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(", ")}`:"OK"}}}}),U0,xC,OK=he({"src/lib/responses/PullSummary.ts"(){U0=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},xC=class{constructor(){this.remote="",this.hash={local:"",remote:""},this.branch={local:"",remote:""},this.message=""}toString(){return this.message}}}});function R0(t){return t.objects=t.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function Z3(t){let e=/^\s*(\d+)/.exec(t),r=/delta (\d+)/i.exec(t);return{count:gt(e&&e[1]||"0"),delta:gt(r&&r[1]||"0")}}var AC,PK=he({"src/lib/parsers/parse-remote-objects.ts"(){Oe(),AC=[new Eo(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(t,[e,r])=>{let n=e.toLowerCase(),s=R0(t.remoteMessages);Object.assign(s,{[n]:gt(r)})}),new Eo(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(t,[e,r])=>{let n=e.toLowerCase(),s=R0(t.remoteMessages);Object.assign(s,{[n]:gt(r)})}),new Eo(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(t,[e,r,n])=>{let s=R0(t.remoteMessages);s.total=Z3(e),s.reused=Z3(r),s.packReused=gt(n)})]}});function RC(t,e){return pn({remoteMessages:new DC},CC,e)}var CC,DC,OC=he({"src/lib/parsers/parse-remote-messages.ts"(){Oe(),PK(),CC=[new Eo(/^remote:\s*(.+)$/,(t,[e])=>(t.remoteMessages.all.push(e.trim()),!1)),...AC,new Eo([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(t,[e])=>{t.remoteMessages.pullRequestUrl=e}),new Eo([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(t,[e,r,n])=>{t.remoteMessages.vulnerabilities={count:gt(e),summary:r,url:n}})],DC=class{constructor(){this.all=[]}}}});function FK(t,e){let r=pn(new xC,PC,[t,e]);return r.message&&r}var eR,tR,rR,nR,PC,sR,c_,FC=he({"src/lib/parsers/parse-pull.ts"(){OK(),Oe(),OC(),eR=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,tR=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,rR=/^(create|delete) mode \d+ (.+)/,nR=[new Le(eR,(t,[e,r,n])=>{t.files.push(e),r&&(t.insertions[e]=r.length),n&&(t.deletions[e]=n.length)}),new Le(tR,(t,[e,,r,,n])=>r!==void 0||n!==void 0?(t.summary.changes=+e||0,t.summary.insertions=+r||0,t.summary.deletions=+n||0,!0):!1),new Le(rR,(t,[e,r])=>{rt(t.files,r),rt(e==="create"?t.created:t.deleted,r)})],PC=[new Le(/^from\s(.+)$/i,(t,[e])=>void(t.remote=e)),new Le(/^fatal:\s(.+)$/,(t,[e])=>void(t.message=e)),new Le(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,(t,[e,r,n,s])=>{t.branch.local=n,t.hash.local=e,t.branch.remote=s,t.hash.remote=r})],sR=(t,e)=>pn(new U0,nR,[t,e]),c_=(t,e)=>Object.assign(new U0,sR(t,e),RC(t,e))}}),iR,LC,oR,LK=he({"src/lib/parsers/parse-merge.ts"(){DK(),Oe(),FC(),iR=[new Le(/^Auto-merging\s+(.+)$/,(t,[e])=>{t.merges.push(e)}),new Le(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(t,[e,r])=>{t.conflicts.push(new Ap(e,r))}),new Le(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(t,[e,r,n])=>{t.conflicts.push(new Ap(e,r,{deleteRef:n}))}),new Le(/^CONFLICT\s+\((.+)\):/,(t,[e])=>{t.conflicts.push(new Ap(e,null))}),new Le(/^Automatic merge failed;\s+(.+)$/,(t,[e])=>{t.result=e})],LC=(t,e)=>Object.assign(oR(t,e),c_(t,e)),oR=t=>pn(new kC,iR,t)}});function aR(t){return t.length?{commands:["merge",...t],format:"utf-8",parser(e,r){let n=LC(e,r);if(n.failed)throw new _l(n);return n}}:Kr("Git.merge requires at least one option")}var IK=he({"src/lib/tasks/merge.ts"(){Ou(),LK(),Ct()}});function BK(t,e,r){let n=r.includes("deleted"),s=r.includes("tag")||/^refs\/tags/.test(t),o=!r.includes("new");return{deleted:n,tag:s,branch:!s,new:!o,alreadyUpdated:o,local:t,remote:e}}var uR,IC,cR,GK=he({"src/lib/parsers/parse-push.ts"(){Oe(),OC(),uR=[new Le(/^Pushing to (.+)$/,(t,[e])=>{t.repo=e}),new Le(/^updating local tracking ref '(.+)'/,(t,[e])=>{t.ref=dl(Bn({},t.ref||{}),{local:e})}),new Le(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,(t,[e,r,n])=>{t.pushed.push(BK(e,r,n))}),new Le(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(t,[e,r,n])=>{t.branch=dl(Bn({},t.branch||{}),{local:e,remote:r,remoteName:n})}),new Le(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(t,[e,r,n,s])=>{t.update={head:{local:e,remote:r},hash:{from:n,to:s}}})],IC=(t,e)=>{let r=cR(t,e),n=RC(t,e);return Bn(Bn({},r),n)},cR=(t,e)=>pn({pushed:[]},uR,[t,e])}}),BC={};Dt(BC,{pushTagsTask:()=>qK,pushTask:()=>l_});function qK(t={},e){return rt(e,"--tags"),l_(t,e)}function l_(t={},e){let r=["push",...e];return t.branch&&r.splice(1,0,t.branch),t.remote&&r.splice(1,0,t.remote),Ip(r,"-v"),rt(r,"--verbose"),rt(r,"--porcelain"),{commands:r,format:"utf-8",parser:IC}}var GC=he({"src/lib/tasks/push.ts"(){GK(),Oe()}});function UK(){return{showBuffer(){let t=["show",...Vr(arguments,1)];return t.includes("--binary")||t.splice(1,0,"--binary"),this._runTask(WR(t),St(arguments))},show(){let t=["show",...Vr(arguments,1)];return this._runTask(Cr(t),St(arguments))}}}var NK=he({"src/lib/tasks/show.ts"(){Oe(),Ct()}}),lR,qC,MK=he({"src/lib/responses/FileStatusSummary.ts"(){lR=/^(.+) -> (.+)$/,qC=class{constructor(t,e,r){if(this.path=t,this.index=e,this.working_dir=r,e+r==="R"){let n=lR.exec(t)||[null,t,t];this.from=n[1]||"",this.path=n[2]||""}}}}});function fR(t){let[e,r]=t.split(Du);return{from:r||e,to:e}}function hn(t,e,r){return[`${t}${e}`,r]}function C0(t,...e){return e.map(r=>hn(t,r,(n,s)=>rt(n.conflicted,s)))}function jK(t,e){let r=e.trim();switch(" "){case r.charAt(2):return n(r.charAt(0),r.charAt(1),r.substr(3));case r.charAt(1):return n(" ",r.charAt(0),r.substr(2));default:return}function n(s,o,u){let f=`${s}${o}`,h=UC.get(f);h&&h(t,u),f!=="##"&&f!=="!!"&&t.files.push(new qC(u.replace(/\0.+$/,""),s,o))}}var hR,UC,NC,$K=he({"src/lib/responses/StatusSummary.ts"(){Oe(),MK(),hR=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.ignored=void 0,this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null,this.detached=!1,this.isClean=()=>!this.files.length}},UC=new Map([hn(" ","A",(t,e)=>rt(t.created,e)),hn(" ","D",(t,e)=>rt(t.deleted,e)),hn(" ","M",(t,e)=>rt(t.modified,e)),hn("A"," ",(t,e)=>rt(t.created,e)&&rt(t.staged,e)),hn("A","M",(t,e)=>rt(t.created,e)&&rt(t.staged,e)&&rt(t.modified,e)),hn("D"," ",(t,e)=>rt(t.deleted,e)&&rt(t.staged,e)),hn("M"," ",(t,e)=>rt(t.modified,e)&&rt(t.staged,e)),hn("M","M",(t,e)=>rt(t.modified,e)&&rt(t.staged,e)),hn("R"," ",(t,e)=>{rt(t.renamed,fR(e))}),hn("R","M",(t,e)=>{let r=fR(e);rt(t.renamed,r),rt(t.modified,r.to)}),hn("!","!",(t,e)=>{rt(t.ignored=t.ignored||[],e)}),hn("?","?",(t,e)=>rt(t.not_added,e)),...C0("A","A","U"),...C0("D","D","U"),...C0("U","A","D","U"),["##",(t,e)=>{let r=/ahead (\d+)/,n=/behind (\d+)/,s=/^(.+?(?=(?:\.{3}|\s|$)))/,o=/\.{3}(\S*)/,u=/\son\s([\S]+)$/,f;f=r.exec(e),t.ahead=f&&+f[1]||0,f=n.exec(e),t.behind=f&&+f[1]||0,f=s.exec(e),t.current=f&&f[1],f=o.exec(e),t.tracking=f&&f[1],f=u.exec(e),t.current=f&&f[1]||t.current,t.detached=/\(no branch\)/.test(e)}]]),NC=function(t){let e=t.split(Du),r=new hR;for(let n=0,s=e.length;n<s;){let o=e[n++].trim();!o||(o.charAt(0)==="R"&&(o+=Du+(e[n++]||"")),jK(r,o))}return r}}});function HK(t){return{format:"utf-8",commands:["status","--porcelain","-b","-u","--null",...t.filter(r=>!MC.includes(r))],parser(r){return NC(r)}}}var MC,zK=he({"src/lib/tasks/status.ts"(){$K(),MC=["--null","-z"]}});function Op(t=0,e=0,r=0,n="",s=!0){return Object.defineProperty({major:t,minor:e,patch:r,agent:n,installed:s},"toString",{value(){return`${this.major}.${this.minor}.${this.patch}`},configurable:!1,enumerable:!1})}function WK(){return Op(0,0,0,"",!1)}function VK(){return{version(){return this._runTask({commands:["--version"],format:"utf-8",parser:KK,onError(t,e,r,n){if(t.exitCode===-2)return r(Buffer.from(f_));n(e)}})}}}function KK(t){return t===f_?WK():pn(Op(0,0,0,t),jC,t)}var f_,jC,YK=he({"src/lib/tasks/version.ts"(){Oe(),f_="installed=false",jC=[new Le(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,(t,[e,r,n,s=""])=>{Object.assign(t,Op(gt(e),gt(r),gt(n),s))}),new Le(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,(t,[e,r,n,s=""])=>{Object.assign(t,Op(gt(e),gt(r),n,s))})]}}),$C={};Dt($C,{SimpleGitApi:()=>N0});var N0,JK=he({"src/lib/simple-git-api.ts"(){sK(),iK(),aK(),hK(),eC(),dK(),nC(),gK(),EK(),TC(),IK(),GC(),NK(),zK(),Ct(),YK(),Oe(),N0=class{constructor(t){this._executor=t}_runTask(t,e){let r=this._executor.chain(),n=r.push(t);return e&&rK(t,n,e),Object.create(this,{then:{value:n.then.bind(n)},catch:{value:n.catch.bind(n)},_executor:{value:r}})}add(t){return this._runTask(Cr(["add",...vo(t)]),St(arguments))}cwd(t){let e=St(arguments);return typeof t=="string"?this._runTask(Y3(t,this._executor),e):typeof t?.path=="string"?this._runTask(Y3(t.path,t.root&&this._executor||void 0),e):this._runTask(Kr("Git.cwd: workingDirectory must be supplied as a string"),e)}hashObject(t,e){return this._runTask(mK(t,e===!0),St(arguments))}init(t){return this._runTask(wK(t===!0,this._executor.cwd,Vr(arguments)),St(arguments))}merge(){return this._runTask(aR(Vr(arguments)),St(arguments))}mergeFromTo(t,e){return gr(t)&&gr(e)?this._runTask(aR([t,e,...Vr(arguments)]),St(arguments,!1)):this._runTask(Kr("Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings"))}outputHandler(t){return this._executor.outputHandler=t,this}push(){let t=l_({remote:Hs(arguments[0],gr),branch:Hs(arguments[1],gr)},Vr(arguments));return this._runTask(t,St(arguments))}stash(){return this._runTask(Cr(["stash",...Vr(arguments)]),St(arguments))}status(){return this._runTask(HK(Vr(arguments)),St(arguments))}},Object.assign(N0.prototype,oK(),fK(),HV(),pK(),VV(),CK(),UK(),VK())}}),HC={};Dt(HC,{Scheduler:()=>WC});var pR,WC,QK=he({"src/lib/runners/scheduler.ts"(){Oe(),uC(),pR=(()=>{let t=0;return()=>{t++;let{promise:e,done:r}=(0,zC.createDeferred)();return{promise:e,done:r,id:t}}})(),WC=class{constructor(t=2){this.concurrency=t,this.logger=t_("","scheduler"),this.pending=[],this.running=[],this.logger("Constructed, concurrency=%s",t)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){this.logger("Schedule attempt ignored, pending=%s running=%s concurrency=%s",this.pending.length,this.running.length,this.concurrency);return}let t=rt(this.running,this.pending.shift());this.logger("Attempting id=%s",t.id),t.done(()=>{this.logger("Completing id=",t.id),Ip(this.running,t),this.schedule()})}next(){let{promise:t,id:e}=rt(this.pending,pR());return this.logger("Scheduling id=%s",e),this.schedule(),t}}}}),VC={};Dt(VC,{applyPatchTask:()=>XK});function XK(t,e){return Cr(["apply",...e,...t])}var ZK=he({"src/lib/tasks/apply-patch.ts"(){Ct()}});function eY(t,e){return{branch:t,hash:e,success:!0}}function tY(t){return{branch:t,hash:null,success:!1}}var KC,rY=he({"src/lib/responses/BranchDeleteSummary.ts"(){KC=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function YC(t,e){return e===1&&M0.test(t)}var dR,M0,mR,Np,nY=he({"src/lib/parsers/parse-branch-delete.ts"(){rY(),Oe(),dR=/(\S+)\s+\(\S+\s([^)]+)\)/,M0=/^error[^']+'([^']+)'/m,mR=[new Le(dR,(t,[e,r])=>{let n=eY(e,r);t.all.push(n),t.branches[e]=n}),new Le(M0,(t,[e])=>{let r=tY(e);t.errors.push(r),t.all.push(r),t.branches[e]=r})],Np=(t,e)=>pn(new KC,mR,[t,e])}}),JC,sY=he({"src/lib/responses/BranchSummary.ts"(){JC=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(t,e,r,n,s){t==="*"&&(this.detached=e,this.current=r),this.all.push(r),this.branches[r]={current:t==="*",linkedWorkTree:t==="+",name:r,commit:n,label:s}}}}});function gR(t){return t?t.charAt(0):""}function QC(t){return pn(new JC,XC,t)}var XC,iY=he({"src/lib/parsers/parse-branch.ts"(){sY(),Oe(),XC=[new Le(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(t,[e,r,n,s])=>{t.push(gR(e),!0,r,n,s)}),new Le(/^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s,(t,[e,r,n,s])=>{t.push(gR(e),!1,r,n,s)})]}}),ZC={};Dt(ZC,{branchLocalTask:()=>aY,branchTask:()=>oY,containsDeleteBranchCommand:()=>eD,deleteBranchTask:()=>cY,deleteBranchesTask:()=>uY});function eD(t){let e=["-d","-D","--delete"];return t.some(r=>e.includes(r))}function oY(t){let e=eD(t),r=["branch",...t];return r.length===1&&r.push("-a"),r.includes("-v")||r.splice(1,0,"-v"),{format:"utf-8",commands:r,parser(n,s){return e?Np(n,s).all[0]:QC(n)}}}function aY(){return{format:"utf-8",commands:["branch","-v"],parser:QC}}function uY(t,e=!1){return{format:"utf-8",commands:["branch","-v",e?"-D":"-d",...t],parser(r,n){return Np(r,n)},onError({exitCode:r,stdOut:n},s,o,u){if(!YC(String(s),r))return u(s);o(n)}}}function cY(t,e=!1){let r={format:"utf-8",commands:["branch","-v",e?"-D":"-d",t],parser(n,s){return Np(n,s).branches[t]},onError({exitCode:n,stdErr:s,stdOut:o},u,f,h){if(!YC(String(u),n))return h(u);throw new _l(r.parser(gl(o),gl(s)),String(u))}};return r}var lY=he({"src/lib/tasks/branch.ts"(){Ou(),nY(),iY(),Oe()}}),tD,fY=he({"src/lib/responses/CheckIgnore.ts"(){tD=t=>t.split(/\n/g).map(e=>e.trim()).filter(e=>!!e)}}),rD={};Dt(rD,{checkIgnoreTask:()=>hY});function hY(t){return{commands:["check-ignore",...t],format:"utf-8",parser:tD}}var pY=he({"src/lib/tasks/check-ignore.ts"(){fY()}}),nD={};Dt(nD,{cloneMirrorTask:()=>mY,cloneTask:()=>sD});function dY(t){return/^--upload-pack(=|$)/.test(t)}function sD(t,e,r){let n=["clone",...r];return gr(t)&&n.push(t),gr(e)&&n.push(e),n.find(dY)?Kr("git.fetch: potential exploit argument blocked."):Cr(n)}function mY(t,e,r){return rt(r,"--mirror"),sD(t,e,r)}var gY=he({"src/lib/tasks/clone.ts"(){Ct(),Oe()}});function bY(t,e){return pn({raw:t,remote:null,branches:[],tags:[],updated:[],deleted:[]},iD,[t,e])}var iD,yY=he({"src/lib/parsers/parse-fetch.ts"(){Oe(),iD=[new Le(/From (.+)$/,(t,[e])=>{t.remote=e}),new Le(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(t,[e,r])=>{t.branches.push({name:e,tracking:r})}),new Le(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(t,[e,r])=>{t.tags.push({name:e,tracking:r})}),new Le(/- \[deleted]\s+\S+\s*-> (.+)$/,(t,[e])=>{t.deleted.push({tracking:e})}),new Le(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,(t,[e,r,n,s])=>{t.updated.push({name:n,tracking:s,to:r,from:e})})]}}),oD={};Dt(oD,{fetchTask:()=>wY});function _Y(t){return/^--upload-pack(=|$)/.test(t)}function wY(t,e,r){let n=["fetch",...r];return t&&e&&n.push(t,e),n.find(_Y)?Kr("git.fetch: potential exploit argument blocked."):{commands:n,format:"utf-8",parser:bY}}var EY=he({"src/lib/tasks/fetch.ts"(){yY(),Ct()}});function vY(t){return pn({moves:[]},aD,t)}var aD,SY=he({"src/lib/parsers/parse-move.ts"(){Oe(),aD=[new Le(/^Renaming (.+) to (.+)$/,(t,[e,r])=>{t.moves.push({from:e,to:r})})]}}),uD={};Dt(uD,{moveTask:()=>TY});function TY(t,e){return{commands:["mv","-v",...vo(t),e],format:"utf-8",parser:vY}}var kY=he({"src/lib/tasks/move.ts"(){SY(),Oe()}}),cD={};Dt(cD,{pullTask:()=>xY});function xY(t,e,r){let n=["pull",...r];return t&&e&&n.splice(1,0,t,e),{commands:n,format:"utf-8",parser(s,o){return c_(s,o)},onError(s,o,u,f){let h=FK(gl(s.stdOut),gl(s.stdErr));if(h)return f(new _l(h));f(o)}}}var AY=he({"src/lib/tasks/pull.ts"(){Ou(),FC(),Oe()}});function RY(t){let e={};return lD(t,([r])=>e[r]={name:r}),Object.values(e)}function CY(t){let e={};return lD(t,([r,n,s])=>{e.hasOwnProperty(r)||(e[r]={name:r,refs:{fetch:"",push:""}}),s&&n&&(e[r].refs[s.replace(/[^a-z]/g,"")]=n)}),Object.values(e)}function lD(t,e){$0(t,r=>e(r.split(/\s+/)))}var DY=he({"src/lib/responses/GetRemoteSummary.ts"(){Oe()}}),fD={};Dt(fD,{addRemoteTask:()=>OY,getRemotesTask:()=>PY,listRemotesTask:()=>FY,remoteTask:()=>LY,removeRemoteTask:()=>IY});function OY(t,e,r=[]){return Cr(["remote","add",...r,t,e])}function PY(t){let e=["remote"];return t&&e.push("-v"),{commands:e,format:"utf-8",parser:t?CY:RY}}function FY(t=[]){let e=[...t];return e[0]!=="ls-remote"&&e.unshift("ls-remote"),Cr(e)}function LY(t=[]){let e=[...t];return e[0]!=="remote"&&e.unshift("remote"),Cr(e)}function IY(t){return Cr(["remote","remove",t])}var BY=he({"src/lib/tasks/remote.ts"(){DY(),Ct()}}),hD={};Dt(hD,{stashListTask:()=>GY});function GY(t={},e){let r=SC(t),n=["stash","list",...r.commands,...e],s=_C(r.splitter,r.fields,n_(n));return Up(n)||{commands:n,format:"utf-8",parser:s}}var qY=he({"src/lib/tasks/stash-list.ts"(){Sl(),EC(),u_(),TC()}}),pD={};Dt(pD,{addSubModuleTask:()=>UY,initSubModuleTask:()=>NY,subModuleTask:()=>Mp,updateSubModuleTask:()=>MY});function UY(t,e){return Mp(["add",t,e])}function NY(t){return Mp(["init",...t])}function Mp(t){let e=[...t];return e[0]!=="submodule"&&e.unshift("submodule"),Cr(e)}function MY(t){return Mp(["update",...t])}var jY=he({"src/lib/tasks/sub-module.ts"(){Ct()}});function $Y(t,e){let r=isNaN(t),n=isNaN(e);return r!==n?r?1:-1:r?dD(t,e):0}function dD(t,e){return t===e?0:t>e?1:-1}function HY(t){return t.trim()}function Sp(t){return typeof t=="string"&&parseInt(t.replace(/^\D+/g,""),10)||0}var bR,mD,zY=he({"src/lib/responses/TagList.ts"(){bR=class{constructor(t,e){this.all=t,this.latest=e}},mD=function(t,e=!1){let r=t.split(`
|
|
85
|
+
`).map(HY).filter(Boolean);e||r.sort(function(s,o){let u=s.split("."),f=o.split(".");if(u.length===1||f.length===1)return $Y(Sp(u[0]),Sp(f[0]));for(let h=0,g=Math.max(u.length,f.length);h<g;h++){let d=dD(Sp(u[h]),Sp(f[h]));if(d)return d}return 0});let n=e?r[0]:[...r].reverse().find(s=>s.indexOf(".")>=0);return new bR(r,n)}}}),gD={};Dt(gD,{addAnnotatedTagTask:()=>KY,addTagTask:()=>VY,tagListTask:()=>WY});function WY(t=[]){let e=t.some(r=>/^--sort=/.test(r));return{format:"utf-8",commands:["tag","-l",...t],parser(r){return mD(r,e)}}}function VY(t){return{format:"utf-8",commands:["tag",t],parser(){return{name:t}}}}function KY(t,e){return{format:"utf-8",commands:["tag","-a","-m",e,t],parser(){return{name:t}}}}var YY=he({"src/lib/tasks/tag.ts"(){zY()}}),JY=bV({"src/git.js"(t,e){var{GitExecutor:r}=(tK(),vt(lC)),{SimpleGitApi:n}=(JK(),vt($C)),{Scheduler:s}=(QK(),vt(HC)),{configurationErrorTask:o}=(Ct(),vt(L0)),{asArray:u,filterArray:f,filterPrimitives:h,filterString:g,filterStringOrStringArray:d,filterType:y,getTrailingOptions:v,trailingFunctionArgument:b,trailingOptionsArgument:w}=(Oe(),vt(BR)),{applyPatchTask:R}=(ZK(),vt(VC)),{branchTask:I,branchLocalTask:D,deleteBranchesTask:P,deleteBranchTask:G}=(lY(),vt(ZC)),{checkIgnoreTask:q}=(pY(),vt(rD)),{checkIsRepoTask:z}=(NR(),vt(GR)),{cloneTask:N,cloneMirrorTask:L}=(gY(),vt(nD)),{cleanWithOptionsTask:W,isCleanOptionsArray:X}=(QR(),vt(YR)),{diffSummaryTask:le}=(u_(),vt(vC)),{fetchTask:M}=(EY(),vt(oD)),{moveTask:de}=(kY(),vt(uD)),{pullTask:ae}=(AY(),vt(cD)),{pushTagsTask:Re}=(GC(),vt(BC)),{addRemoteTask:j,getRemotesTask:$,listRemotesTask:ve,remoteTask:ge,removeRemoteTask:ye}=(BY(),vt(fD)),{getResetMode:_t,resetTask:ht}=(aC(),vt(sC)),{stashListTask:Je}=(qY(),vt(hD)),{addSubModuleTask:Vt,initSubModuleTask:Bt,subModuleTask:S,updateSubModuleTask:Y}=(jY(),vt(pD)),{addAnnotatedTagTask:te,addTagTask:ce,tagListTask:Q}=(YY(),vt(gD)),{straightThroughBufferTask:ue,straightThroughStringTask:J}=(Ct(),vt(L0));function H(V,se){this._executor=new r(V.binary,V.baseDir,new s(V.maxConcurrentProcesses),se),this._trimmed=V.trimmed}(H.prototype=Object.create(n.prototype)).constructor=H,H.prototype.customBinary=function(V){return this._executor.binary=V,this},H.prototype.env=function(V,se){return arguments.length===1&&typeof V=="object"?this._executor.env=V:(this._executor.env=this._executor.env||{})[V]=se,this},H.prototype.stashList=function(V){return this._runTask(Je(w(arguments)||{},f(V)&&V||[]),b(arguments))};function we(V,se,De,Ke){return typeof De!="string"?o(`git.${V}() requires a string 'repoPath'`):se(De,y(Ke,g),v(arguments))}H.prototype.clone=function(){return this._runTask(we("clone",N,...arguments),b(arguments))},H.prototype.mirror=function(){return this._runTask(we("mirror",L,...arguments),b(arguments))},H.prototype.mv=function(V,se){return this._runTask(de(V,se),b(arguments))},H.prototype.checkoutLatestTag=function(V){var se=this;return this.pull(function(){se.tags(function(De,Ke){se.checkout(Ke.latest,V)})})},H.prototype.pull=function(V,se,De,Ke){return this._runTask(ae(y(V,g),y(se,g),v(arguments)),b(arguments))},H.prototype.fetch=function(V,se){return this._runTask(M(y(V,g),y(se,g),v(arguments)),b(arguments))},H.prototype.silent=function(V){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this},H.prototype.tags=function(V,se){return this._runTask(Q(v(arguments)),b(arguments))},H.prototype.rebase=function(){return this._runTask(J(["rebase",...v(arguments)]),b(arguments))},H.prototype.reset=function(V){return this._runTask(ht(_t(V),v(arguments)),b(arguments))},H.prototype.revert=function(V){let se=b(arguments);return typeof V!="string"?this._runTask(o("Commit must be a string"),se):this._runTask(J(["revert",...v(arguments,0,!0),V]),se)},H.prototype.addTag=function(V){let se=typeof V=="string"?ce(V):o("Git.addTag requires a tag name");return this._runTask(se,b(arguments))},H.prototype.addAnnotatedTag=function(V,se){return this._runTask(te(V,se),b(arguments))},H.prototype.deleteLocalBranch=function(V,se,De){return this._runTask(G(V,typeof se=="boolean"?se:!1),b(arguments))},H.prototype.deleteLocalBranches=function(V,se,De){return this._runTask(P(V,typeof se=="boolean"?se:!1),b(arguments))},H.prototype.branch=function(V,se){return this._runTask(I(v(arguments)),b(arguments))},H.prototype.branchLocal=function(V){return this._runTask(D(),b(arguments))},H.prototype.raw=function(V){let se=!Array.isArray(V),De=[].slice.call(se?arguments:V,0);for(let ft=0;ft<De.length&&se;ft++)if(!h(De[ft])){De.splice(ft,De.length-ft);break}De.push(...v(arguments,0,!0));var Ke=b(arguments);return De.length?this._runTask(J(De,this._trimmed),Ke):this._runTask(o("Raw: must supply one or more command to execute"),Ke)},H.prototype.submoduleAdd=function(V,se,De){return this._runTask(Vt(V,se),b(arguments))},H.prototype.submoduleUpdate=function(V,se){return this._runTask(Y(v(arguments,!0)),b(arguments))},H.prototype.submoduleInit=function(V,se){return this._runTask(Bt(v(arguments,!0)),b(arguments))},H.prototype.subModule=function(V,se){return this._runTask(S(v(arguments)),b(arguments))},H.prototype.listRemote=function(){return this._runTask(ve(v(arguments)),b(arguments))},H.prototype.addRemote=function(V,se,De){return this._runTask(j(V,se,v(arguments)),b(arguments))},H.prototype.removeRemote=function(V,se){return this._runTask(ye(V),b(arguments))},H.prototype.getRemotes=function(V,se){return this._runTask($(V===!0),b(arguments))},H.prototype.remote=function(V,se){return this._runTask(ge(v(arguments)),b(arguments))},H.prototype.tag=function(V,se){let De=v(arguments);return De[0]!=="tag"&&De.unshift("tag"),this._runTask(J(De),b(arguments))},H.prototype.updateServerInfo=function(V){return this._runTask(J(["update-server-info"]),b(arguments))},H.prototype.pushTags=function(V,se){let De=Re({remote:y(V,g)},v(arguments));return this._runTask(De,b(arguments))},H.prototype.rm=function(V){return this._runTask(J(["rm","-f",...u(V)]),b(arguments))},H.prototype.rmKeepLocal=function(V){return this._runTask(J(["rm","--cached",...u(V)]),b(arguments))},H.prototype.catFile=function(V,se){return this._catFile("utf-8",arguments)},H.prototype.binaryCatFile=function(){return this._catFile("buffer",arguments)},H.prototype._catFile=function(V,se){var De=b(se),Ke=["cat-file"],ft=se[0];if(typeof ft=="string")return this._runTask(o("Git.catFile: options must be supplied as an array of strings"),De);Array.isArray(ft)&&Ke.push.apply(Ke,ft);let pt=V==="buffer"?ue(Ke):J(Ke);return this._runTask(pt,De)},H.prototype.diff=function(V,se){let De=g(V)?o("git.diff: supplying options as a single string is no longer supported, switch to an array of strings"):J(["diff",...v(arguments)]);return this._runTask(De,b(arguments))},H.prototype.diffSummary=function(){return this._runTask(le(v(arguments,1)),b(arguments))},H.prototype.applyPatch=function(V){let se=d(V)?R(u(V),v([].slice.call(arguments,1))):o("git.applyPatch requires one or more string patches as the first argument");return this._runTask(se,b(arguments))},H.prototype.revparse=function(){let V=["rev-parse",...v(arguments,!0)];return this._runTask(J(V,!0),b(arguments))},H.prototype.clean=function(V,se,De){let Ke=X(V),ft=Ke&&V.join("")||y(V,g)||"",pt=v([].slice.call(arguments,Ke?1:0));return this._runTask(W(ft,pt),b(arguments))},H.prototype.exec=function(V){let se={commands:[],format:"utf-8",parser(){typeof V=="function"&&V()}};return this._runTask(se)},H.prototype.clearQueue=function(){return this},H.prototype.checkIgnore=function(V,se){return this._runTask(q(u(y(V,d,[]))),b(arguments))},H.prototype.checkIsRepo=function(V,se){return this._runTask(z(y(V,g)),b(arguments))},e.exports=H}});yl();So();var QY=class extends Fi{constructor(t,e){super(void 0,e),this.config=t}};So();So();var ya=class extends Fi{constructor(t,e,r){super(t,r),this.task=t,this.plugin=e,Object.setPrototypeOf(this,new.target.prototype)}};Ou();vR();NR();QR();eC();nC();aC();function XY(t){return t?[{type:"spawn.before",action(n,s){t.aborted&&s.kill(new ya(void 0,"abort","Abort already signaled"))}},{type:"spawn.after",action(n,s){function o(){s.kill(new ya(void 0,"abort","Abort signal received"))}t.addEventListener("abort",o),s.spawned.on("close",()=>t.removeEventListener("abort",o))}}]:void 0}function ZY(t){return typeof t=="string"&&t.trim().toLowerCase()==="-c"}function eJ(t,e){if(!!ZY(t)&&!!/^\s*protocol(.[a-z]+)?.allow/.test(e))throw new ya(void 0,"unsafe","Configuring protocol.allow is not permitted without enabling allowUnsafeExtProtocol")}function tJ(t,e){if(/^\s*--(upload|receive)-pack/.test(t))throw new ya(void 0,"unsafe","Use of --upload-pack or --receive-pack is not permitted without enabling allowUnsafePack");if(e==="clone"&&/^\s*-u\b/.test(t))throw new ya(void 0,"unsafe","Use of clone with option -u is not permitted without enabling allowUnsafePack");if(e==="push"&&/^\s*--exec\b/.test(t))throw new ya(void 0,"unsafe","Use of push with option --exec is not permitted without enabling allowUnsafePack")}function rJ({allowUnsafeProtocolOverride:t=!1,allowUnsafePack:e=!1}={}){return{type:"spawn.args",action(r,n){return r.forEach((s,o)=>{let u=o<r.length?r[o+1]:"";t||eJ(s,u),e||tJ(s,n.method)}),r}}}Oe();function nJ(t){let e=ml(t,"-c");return{type:"spawn.args",action(r){return[...e,...r]}}}Oe();var yR=(0,Cu.deferred)().promise;function sJ({onClose:t=!0,onExit:e=50}={}){function r(){let s=-1,o={close:(0,Cu.deferred)(),closeTimeout:(0,Cu.deferred)(),exit:(0,Cu.deferred)(),exitTimeout:(0,Cu.deferred)()},u=Promise.race([t===!1?yR:o.closeTimeout.promise,e===!1?yR:o.exitTimeout.promise]);return n(t,o.close,o.closeTimeout),n(e,o.exit,o.exitTimeout),{close(f){s=f,o.close.done()},exit(f){s=f,o.exit.done()},get exitCode(){return s},result:u}}function n(s,o,u){s!==!1&&(s===!0?o.promise:o.promise.then(()=>D0(s))).then(u.done)}return{type:"spawn.after",action(s,o){return pl(this,arguments,function*(u,{spawned:f,close:h}){var g,d;let y=r(),v=!0,b=()=>void(v=!1);(g=f.stdout)==null||g.on("data",b),(d=f.stderr)==null||d.on("data",b),f.on("error",b),f.on("close",w=>y.close(w)),f.on("exit",w=>y.exit(w));try{yield y.result,v&&(yield D0(50)),h(y.exitCode)}catch(w){h(y.exitCode,w)}})}}}So();function iJ(t){return!!(t.exitCode&&t.stdErr.length)}function oJ(t){return Buffer.concat([...t.stdOut,...t.stdErr])}function aJ(t=!1,e=iJ,r=oJ){return(n,s)=>!t&&n||!e(s)?n:r(s)}function _R(t){return{type:"task.error",action(e,r){let n=t(e.error,{stdErr:r.stdErr,stdOut:r.stdOut,exitCode:r.exitCode});return Buffer.isBuffer(n)?{error:new Fi(void 0,n.toString("utf-8"))}:{error:n}}}}Oe();var uJ=class{constructor(){this.plugins=new Set}add(t){let e=[];return vo(t).forEach(r=>r&&this.plugins.add(rt(e,r))),()=>{e.forEach(r=>this.plugins.delete(r))}}exec(t,e,r){let n=e,s=Object.freeze(Object.create(r));for(let o of this.plugins)o.type===t&&(n=o.action(n,s));return n}};Oe();function cJ(t){let e="--progress",r=["checkout","clone","fetch","pull","push"];return[{type:"spawn.args",action(o,u){return r.includes(u.method)?RR(o,e):o}},{type:"spawn.after",action(o,u){var f;!u.commands.includes(e)||(f=u.spawned.stderr)==null||f.on("data",h=>{let g=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(h.toString("utf8"));!g||t({method:u.method,stage:lJ(g[1]),progress:gt(g[2]),processed:gt(g[3]),total:gt(g[4])})})}}]}function lJ(t){return String(t.toLowerCase().split(" ",1))||"unknown"}Oe();function fJ(t){let e=DR(t,["uid","gid"]);return{type:"spawn.options",action(r){return Bn(Bn({},e),r)}}}function hJ({block:t,stdErr:e=!0,stdOut:r=!0}){if(t>0)return{type:"spawn.after",action(n,s){var o,u;let f;function h(){f&&clearTimeout(f),f=setTimeout(d,t)}function g(){var y,v;(y=s.spawned.stdout)==null||y.off("data",h),(v=s.spawned.stderr)==null||v.off("data",h),s.spawned.off("exit",g),s.spawned.off("close",g),f&&clearTimeout(f)}function d(){g(),s.kill(new ya(void 0,"timeout","block timeout reached"))}r&&((o=s.spawned.stdout)==null||o.on("data",h)),e&&((u=s.spawned.stderr)==null||u.on("data",h)),s.spawned.on("exit",g),s.spawned.on("close",g),h()}}}yl();function pJ(){return{type:"spawn.args",action(t){let e=[],r;function n(s){(r=r||[]).push(...s)}for(let s=0;s<t.length;s++){let o=t[s];if(Rp(o)){n(z3(o));continue}if(o==="--"){n(t.slice(s+1).flatMap(u=>Rp(u)&&z3(u)||u));break}e.push(o)}return r?[...e,"--",...r.map(String)]:e}}}Oe();var dJ=JY();function mJ(t,e){let r=new uJ,n=LR(t&&(typeof t=="string"?{baseDir:t}:t)||{},e);if(!H0(n.baseDir))throw new QY(n,"Cannot use simple-git on a directory that does not exist");return Array.isArray(n.config)&&r.add(nJ(n.config)),r.add(rJ(n.unsafe)),r.add(pJ()),r.add(sJ(n.completion)),n.abort&&r.add(XY(n.abort)),n.progress&&r.add(cJ(n.progress)),n.timeout&&r.add(hJ(n.timeout)),n.spawnOptions&&r.add(fJ(n.spawnOptions)),r.add(_R(aJ(!0))),n.errors&&r.add(_R(n.errors)),new dJ(n,r)}Ou();var Ea=mJ;var jp=class extends zr{async backup(){let e=await this.listForOrg();await Lt(e.map(r=>async()=>{await this.backupRepository(r.name)}),{concurrency:(0,bD.cpus)().length})}async backupRepository(e){let r=`https://${this.options.token}@github.com/${this.options.org}/${e}.git`,n=this.getCodePath(e);try{(0,$p.existsSync)(n)&&await(0,$p.remove)(n),await Ea().clone(r,n,["--mirror"])}catch(s){throw console.error("GithubCodeBackup.backupRepository throw an error:",s.message),s}}};var h_=Ye(sn()),yD=require("os");var _D=require("path");var Hp=class extends zr{async backup(){let e=await this.listForOrg();await Lt(e.map(r=>async()=>{await this.backupRepository(r.name)}),{concurrency:(0,yD.cpus)().length})}async backupRepository(e){let r=await this.octokit.issues.listMilestones({owner:this.options.org,repo:e}),n=this.getMilestonePath(e);await h_.default.ensureDir((0,_D.dirname)(n)),await h_.default.writeJson(n,r.data)}};var TD=Ye(p0()),kD=Ye(sn());var ED=Ye(require("node:fs/promises"),1);var Wp=require("node:fs/promises"),Pu=require("node:path"),wD=require("node:url");function gJ(t){let e=t instanceof URL?(0,wD.fileURLToPath)(t):t.toString();return(0,Pu.join)((0,Pu.dirname)(e),`.${(0,Pu.basename)(e)}.tmp`)}var zp=class{#e;#t;#r=!1;#n=null;#i=null;#o=null;#s=null;#a(e){return this.#s=e,this.#o||=new Promise((r,n)=>{this.#i=[r,n]}),new Promise((r,n)=>{this.#o?.then(r).catch(n)})}async#u(e){this.#r=!0;try{await(0,Wp.writeFile)(this.#t,e,"utf-8"),await(0,Wp.rename)(this.#t,this.#e),this.#n?.[0]()}catch(r){throw r instanceof Error&&this.#n?.[1](r),r}finally{if(this.#r=!1,this.#n=this.#i,this.#i=this.#o=null,this.#s!==null){let r=this.#s;this.#s=null,await this.write(r)}}}constructor(e){this.#e=e,this.#t=gJ(e)}async write(e){return this.#r?this.#a(e):this.#u(e)}};var Vp=class{#e;#t;constructor(e){this.#e=e,this.#t=new zp(e)}async read(){let e;try{e=await ED.readFile(this.#e,"utf-8")}catch(r){if(r.code==="ENOENT")return null;throw r}return e}write(e){return this.#t.write(e)}};var Kp=class{#e;constructor(e){this.#e=new Vp(e)}async read(){let e=await this.#e.read();return e===null?null:JSON.parse(e)}write(e){return this.#e.write(JSON.stringify(e,null,2))}};var Yp=class{#e=null;read(){return Promise.resolve(this.#e)}write(e){return this.#e=e,Promise.resolve()}};function bJ(t,e){if(t===void 0)throw new Error("lowdb: missing adapter");if(e===void 0)throw new Error("lowdb: missing default data")}var Jp=class{adapter;data;constructor(e,r){bJ(e,r),this.adapter=e,this.data=r}async read(){let e=await this.adapter.read();e&&(this.data=e)}async write(){this.data&&await this.adapter.write(this.data)}};async function vD(t,e){let r=process.env.NODE_ENV==="test"?new Yp:new Kp(t),n=new Jp(r,e);return await n.read(),n}var Qp=require("path");var SD=require("path");async function Tl(t,e){return await p_(t,e,{errors:!0})}Tl.loose=async(t,e)=>await p_(t,e);Tl.strict=async(t,e)=>await p_(t,e,{strict:!0});async function p_(t,e={},r={}){let n=e.fs||await import("fs/promises"),s=new Map,o=[];await u(t);async function u(h){if(e.ignore?.test(h))return;let g=r.strict?await n.lstat(h,{bigint:!0}):await n.lstat(h,{bigint:!0}).catch(d=>o.push(d));if(typeof g=="object"&&(s.set(g.ino,g.size),g.isDirectory())){let d=r.strict?await n.readdir(h):await n.readdir(h).catch(y=>o.push(y));if(typeof d!="object")return;await Promise.all(d.map(y=>u((0,SD.join)(h,y))))}}let f=Array.from(s.values()).reduce((h,g)=>h+g,0n);if(!e.bigint){if(f>BigInt(Number.MAX_SAFE_INTEGER)){let h=new RangeError("The folder size is too large to return as a Number. You can instruct this package to return a BigInt instead.");if(r.strict)throw h;o.push(h)}f=Number(f)}return r.errors?{size:f,errors:o.length>0?o:null}:f}var Xp=class{constructor(e){this.options=e,this.filename=(0,Qp.join)(this.options.dir,`.${this.options.org}.json`)}async init(e){this.db=await vD(this.filename,this.getDefaultData()),this.db.data.repos.length||(this.db.data=this.getDefaultData(),this.db.data.repos.push(...e),this.db.data.count=e.length,this.db.data.summary.repoCount=e.length),await this.db.write()}getDefaultData(){return{createdAt:new Date().toISOString(),repos:[],count:0,summary:{repoCount:0,issueCount:0,durationText:"",storageUsageText:""}}}async add(e){await this.db.read(),this.db.data.repos.findIndex(n=>n.name===e)===-1&&this.db.data.repos.push({name:e}),await this.db.write()}async delete(e){await this.db.read(),this.db.data.repos=this.db.data.repos.filter(r=>r.name!==e),await this.db.write()}async findRemaining(){return await this.db.read(),this.db.data.repos}async isEmpty(){return await this.db.read(),this.db.data.repos.length===0}async done(){let e=await TD.default.async((0,Qp.join)(`${this.options.org}`,"**/issue/*.json"),{cwd:this.options.dir,absolute:!0,objectMode:!0});this.db.data.summary={repoCount:this.db.data.count,issueCount:e.length,durationText:fo(Date.now()-new Date(this.db.data.createdAt).getTime()),storageUsageText:au(await this.getStorageUsage())};let r=this.getDefaultData();this.db.data.createdAt=r.createdAt,this.db.data.count=r.count,await this.db.write()}async getStorageUsage(){let e=(0,Qp.join)(this.options.dir,this.options.org);return(0,kD.pathExists)(e)?(await Tl(e)).size:(console.warn("Can not find org folder: "+e),0)}async printProgress(e={}){await this.db.read(),console.log({...e,progress:`${this.db.data.summary.repoCount-this.db.data.repos.length} / ${this.db.data.summary.repoCount}`,duration:fo(Date.now()-new Date(this.db.data.createdAt).getTime()),summary:this.db.data.summary,done:await this.isEmpty()})}};var Zp=class extends zr{async backup(){let e=await this.listForOrg(),r=new Xp(this.options);await r.init(e.map(s=>({name:s.name})));let n=await r.findRemaining();for(let s of n)try{await this.backupRepository(s.name),await r.delete(s.name)}catch(o){console.error("GithubBackup.backup throw an error:",o.message),console.error(o);break}finally{await r.isEmpty()&&await r.done(),await r.printProgress({repoName:s.name})}}async backupRepository(e){let r=[new jp(this.options),new Hp(this.options),new mp(this.options),new dp(this.options),new gp(this.options)];await Promise.all(r.map(n=>n.backupRepository(e)))}};function xD(){let t=new Rn;return t.name("backup").requiredOption("-o, --org <org>","Github organization name").requiredOption("-t, --token <token>","Github personal token").option("-r, --repos <repos>","Specific repository, multiple repositories, please use ',' split","").option("-d, --dir <dir>","Path to the backup folder",void 0).description("Backup github repos").action(async e=>{let r=e.org,n=e.token,s=e.repos.split(",").map(u=>u.trim()).filter(Boolean),o=e.dir;return r&&n?new Zp({org:r,token:n,repos:s,dir:o}).backup():t.help()}),t}var AD=require("os"),ed=class extends Ln{async restore(){let e=await this.findRepoMeta();await Lt(e.map(r=>async()=>this.restoreRepository(r.repoName)),{concurrency:(0,AD.cpus)().length})}async restoreRepository(e){let r=await this.getCodeMeta(e);if(!r)return;let n=`https://${this.options.token}@github.com/${this.options.org}/${e}.git`,s=r.path,o="github";try{await this.removeRemote(s,o),await Ea(s).addRemote(o,n),await Ea(s).push(["-u",o,"--all"])}catch(u){console.error(u),console.error("Restore code throw an error",{org:this.options.org,repoName:e})}finally{await this.removeRemote(s,o)}}async removeRemote(e,r){await this.remoteExists(e,r)&&await Ea(e).removeRemote(r)}async remoteExists(e,r){return(await Ea(e).getRemotes()).some(o=>o.name===r)}};var RD=require("os"),CD=Ye(sn()),td=class extends Ln{async restore(){return null}async restoreRepository(e){let r=await this.findIssueMeta(e);!r.length||await Lt(r.map(n=>async()=>this.restoreIssue(n)),{concurrency:(0,RD.cpus)().length})}async restoreIssue(e){let r=await CD.default.readJSON(e.path);if(!await this.issueExists(e.repoName,r.title)){let h=r.assignees.length?`\r
|
|
86
|
+
\r
|
|
87
|
+
assignees: ${r.assignees.map(g=>`@${g.login}`).join(",")}`:"";await this.octokit.issues.create({owner:this.options.org,repo:e.repoName,title:r.title,body:r.body+h,labels:r.labels})}let s=await this.getIssue(e.repoName,r.title);if(!s){console.warn(`Issue not found: '${r.title}' in repository '${e.repoName}'.`);return}let{data:o}=await this.octokit.issues.listComments({owner:this.options.org,repo:e.repoName,issue_number:s.number}),u=r.extra.comments.sort((h,g)=>new Date(h.created_at).getTime()-new Date(g.created_at).getTime()),f=await this.getCurrentUser();for(let h of u)if(!o.find(d=>d.body===h.body)){let d=f.login===h.user.login?"":`\r
|
|
88
|
+
\r
|
|
89
|
+
comment by @${h.user.login}`;await this.octokit.issues.createComment({owner:this.options.org,repo:e.repoName,issue_number:s.number,body:`${h.body}${d}`})}}async getIssue(e,r){return(await this.octokit.paginate(this.octokit.issues.listForRepo,{owner:this.options.org,repo:e})).find(s=>s.title===r)}async issueExists(e,r){try{return!!await this.getIssue(e,r)}catch(n){return console.error(n),!1}}};var DD=Ye(sn()),OD=require("os"),rd=class extends Ln{async restore(){return null}async restoreRepository(e){let r=await this.getLabelMeta(e);if(!r)return;let n=await(0,DD.readJson)(r.path);await Lt(n.map(s=>async()=>{await this.labelExists(r.repoName,s.name)||await this.octokit.issues.createLabel({owner:this.options.org,repo:r.repoName,name:s.name,color:s.color,description:s.description})}),{concurrency:(0,OD.cpus)().length})}async labelExists(e,r){try{return(await this.octokit.paginate(this.octokit.issues.listLabelsForRepo,{owner:this.options.org,repo:e,per_page:100})).some(o=>o.name===r)}catch(n){return console.error(n),!1}}};var PD=Ye(sn()),FD=require("os"),nd=class extends Ln{async restore(){let e=await this.findRepoMeta();return await Lt(e.map(r=>async()=>this.restoreRepository(r.repoName)),{concurrency:(0,FD.cpus)().length}),null}async restoreRepository(e){let r=await this.getSettingsMeta(e),n=await(0,PD.readJson)(r.path);try{if(await this.octokit.repos.get({owner:this.options.org,repo:r.repoName}))return}catch(s){s.status===404?(await this.octokit.repos.createInOrg({owner:this.options.org,repo:r.repoName,visibility:"private",...n}),console.log("Repository settings created successfully.",{org:this.options.org,repo:r.repoName})):console.error("Repository settings restore throw error:",s)}}};var sd=class extends Ln{constructor(r){super(r);this.restoreInstances=[new ed(this.options),new rd(this.options),new td(this.options),new nd(this.options)]}async restore(){let r=await this.findRepoMeta();for(let n of r)try{await this.restoreRepository(n.repoName)}catch(s){console.error(s)}}async restoreRepository(r){await this.ensureRepositoryCreated(r);for(let n of this.restoreInstances)await n.restoreRepository(r)}async ensureRepositoryCreated(r){try{let{data:n}=await this.octokit.repos.get({owner:this.options.org,repo:r});n||await this.octokit.repos.createInOrg({org:this.options.org,name:r,visibility:"private"})}catch(n){if(n.status===404)await this.octokit.repos.createInOrg({org:this.options.org,name:r,visibility:"private"});else{console.error("Error checking or creating repository:",n.message);return}}}};function LD(){let t=new Rn;return t.name("restore").requiredOption("-o, --org <org>","Github organization name").requiredOption("-t, --token <token>","Github personal token").option("-r, --repos <repos>","Specific repository, multiple repositories, please use ',' split","").option("-d, --dir <dir>","Path to the backup folder",void 0).description("Restore github repos").action(async e=>{let r=e.org,n=e.token,s=e.repos.split(",").map(u=>u.trim()).filter(Boolean),o=e.dir;return r&&n?new sd({org:r,token:n,repos:s,dir:o}).restore():t.help()}),t}function ID(){let t=new Rn;return t.name("github").description("Github backup and restore").addCommand(xD()).addCommand(LD()),t}var{version:_J}=BD();function GD(){let t=new Rn;return t.name("mt").version(_J).action(async()=>{t.help()}),t.addCommand(nv()),t.addCommand(DS()),t.addCommand(ID()),t}var ZL=require("fs"),Qd=require("path"),e6=require("process"),t6=Ye(NL());var Upe=new Uint8Array(0);var ML=(t,e)=>{if(t===e)return!0;if(t.byteLength!==e.byteLength)return!1;for(let r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0},Qu=t=>{if(t instanceof Uint8Array&&t.constructor.name==="Uint8Array")return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")};function Mne(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var s=0;s<t.length;s++){var o=t.charAt(s),u=o.charCodeAt(0);if(r[u]!==255)throw new TypeError(o+" is ambiguous");r[u]=s}var f=t.length,h=t.charAt(0),g=Math.log(f)/Math.log(256),d=Math.log(256)/Math.log(f);function y(w){if(w instanceof Uint8Array||(ArrayBuffer.isView(w)?w=new Uint8Array(w.buffer,w.byteOffset,w.byteLength):Array.isArray(w)&&(w=Uint8Array.from(w))),!(w instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(w.length===0)return"";for(var R=0,I=0,D=0,P=w.length;D!==P&&w[D]===0;)D++,R++;for(var G=(P-D)*d+1>>>0,q=new Uint8Array(G);D!==P;){for(var z=w[D],N=0,L=G-1;(z!==0||N<I)&&L!==-1;L--,N++)z+=256*q[L]>>>0,q[L]=z%f>>>0,z=z/f>>>0;if(z!==0)throw new Error("Non-zero carry");I=N,D++}for(var W=G-I;W!==G&&q[W]===0;)W++;for(var X=h.repeat(R);W<G;++W)X+=t.charAt(q[W]);return X}function v(w){if(typeof w!="string")throw new TypeError("Expected String");if(w.length===0)return new Uint8Array;var R=0;if(w[R]!==" "){for(var I=0,D=0;w[R]===h;)I++,R++;for(var P=(w.length-R)*g+1>>>0,G=new Uint8Array(P);w[R];){var q=r[w.charCodeAt(R)];if(q===255)return;for(var z=0,N=P-1;(q!==0||z<D)&&N!==-1;N--,z++)q+=f*G[N]>>>0,G[N]=q%256>>>0,q=q/256>>>0;if(q!==0)throw new Error("Non-zero carry");D=z,R++}if(w[R]!==" "){for(var L=P-D;L!==P&&G[L]===0;)L++;for(var W=new Uint8Array(I+(P-L)),X=I;L!==P;)W[X++]=G[L++];return W}}}function b(w){var R=v(w);if(R)return R;throw new Error(`Non-${e} character`)}return{encode:y,decodeUnsafe:v,decode:b}}var jne=Mne,$ne=jne,jL=$ne;var Qw=class{constructor(e,r,n){this.name=e,this.prefix=r,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},Xw=class{constructor(e,r,n){if(this.name=e,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return $L(this,e)}},Zw=class{constructor(e){this.decoders=e}or(e){return $L(this,e)}decode(e){let r=e[0],n=this.decoders[r];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},$L=(t,e)=>new Zw({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}}),eE=class{constructor(e,r,n,s){this.name=e,this.prefix=r,this.baseEncode=n,this.baseDecode=s,this.encoder=new Qw(e,r,n),this.decoder=new Xw(e,r,s)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},HL=({name:t,prefix:e,encode:r,decode:n})=>new eE(t,e,r,n),tE=({prefix:t,name:e,alphabet:r})=>{let{encode:n,decode:s}=jL(r,e);return HL({prefix:t,name:e,encode:n,decode:o=>Qu(s(o))})},Hne=(t,e,r,n)=>{let s={};for(let d=0;d<e.length;++d)s[e[d]]=d;let o=t.length;for(;t[o-1]==="=";)--o;let u=new Uint8Array(o*r/8|0),f=0,h=0,g=0;for(let d=0;d<o;++d){let y=s[t[d]];if(y===void 0)throw new SyntaxError(`Non-${n} character`);h=h<<r|y,f+=r,f>=8&&(f-=8,u[g++]=255&h>>f)}if(f>=r||255&h<<8-f)throw new SyntaxError("Unexpected end of data");return u},zne=(t,e,r)=>{let n=e[e.length-1]==="=",s=(1<<r)-1,o="",u=0,f=0;for(let h=0;h<t.length;++h)for(f=f<<8|t[h],u+=8;u>r;)u-=r,o+=e[s&f>>u];if(u&&(o+=e[s&f<<r-u]),n)for(;o.length*r&7;)o+="=";return o},Qs=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>HL({prefix:e,name:t,encode(s){return zne(s,n,r)},decode(s){return Hne(s,n,r,t)}});var Yl=Qs({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),zpe=Qs({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Wpe=Qs({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Vpe=Qs({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Kpe=Qs({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Ype=Qs({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Jpe=Qs({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Qpe=Qs({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Xpe=Qs({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Gi=tE({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),tde=tE({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Wne=VL,zL=128,Vne=127,Kne=~Vne,Yne=Math.pow(2,31);function VL(t,e,r){e=e||[],r=r||0;for(var n=r;t>=Yne;)e[r++]=t&255|zL,t/=128;for(;t&Kne;)e[r++]=t&255|zL,t>>>=7;return e[r]=t|0,VL.bytes=r-n+1,e}var Jne=rE,Qne=128,WL=127;function rE(t,n){var r=0,n=n||0,s=0,o=n,u,f=t.length;do{if(o>=f)throw rE.bytes=0,new RangeError("Could not decode varint");u=t[o++],r+=s<28?(u&WL)<<s:(u&WL)*Math.pow(2,s),s+=7}while(u>=Qne);return rE.bytes=o-n,r}var Xne=Math.pow(2,7),Zne=Math.pow(2,14),ese=Math.pow(2,21),tse=Math.pow(2,28),rse=Math.pow(2,35),nse=Math.pow(2,42),sse=Math.pow(2,49),ise=Math.pow(2,56),ose=Math.pow(2,63),ase=function(t){return t<Xne?1:t<Zne?2:t<ese?3:t<tse?4:t<rse?5:t<nse?6:t<sse?7:t<ise?8:t<ose?9:10},use={encode:Wne,decode:Jne,encodingLength:ase},cse=use,Jl=cse;var Ql=(t,e=0)=>[Jl.decode(t,e),Jl.decode.bytes],Xu=(t,e,r=0)=>(Jl.encode(t,e,r),e),Zu=t=>Jl.encodingLength(t);var sE=(t,e)=>{let r=e.byteLength,n=Zu(t),s=n+Zu(r),o=new Uint8Array(s+r);return Xu(t,o,0),Xu(r,o,n),o.set(e,s),new ec(t,r,e,o)},KL=t=>{let e=Qu(t),[r,n]=Ql(e),[s,o]=Ql(e.subarray(n)),u=e.subarray(n+o);if(u.byteLength!==s)throw new Error("Incorrect length");return new ec(r,s,u,e)},YL=(t,e)=>{if(t===e)return!0;{let r=e;return t.code===r.code&&t.size===r.size&&r.bytes instanceof Uint8Array&&ML(t.bytes,r.bytes)}},ec=class{constructor(e,r,n,s){this.code=e,this.size=r,this.digest=n,this.bytes=s}};var JL=(t,e)=>{let{bytes:r,version:n}=t;switch(n){case 0:return fse(r,oE(t),e||Gi.encoder);default:return hse(r,oE(t),e||Yl.encoder)}};var QL=new WeakMap,oE=t=>{let e=QL.get(t);if(e==null){let r=new Map;return QL.set(t,r),r}return e},Pt=class{constructor(e,r,n,s){this.code=r,this.version=e,this.multihash=n,this.bytes=s,this["/"]=s}get asCID(){return this}get byteOffset(){return this.bytes.byteOffset}get byteLength(){return this.bytes.byteLength}toV0(){switch(this.version){case 0:return this;case 1:{let{code:e,multihash:r}=this;if(e!==Xl)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(r.code!==pse)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return Pt.createV0(r)}default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}toV1(){switch(this.version){case 0:{let{code:e,digest:r}=this.multihash,n=sE(e,r);return Pt.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 1. This is a bug please report`)}}equals(e){return Pt.equals(this,e)}static equals(e,r){let n=r;return n&&e.code===n.code&&e.version===n.version&&YL(e.multihash,n.multihash)}toString(e){return JL(this,e)}toJSON(){return{"/":JL(this)}}link(){return this}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return`CID(${this.toString()})`}static asCID(e){if(e==null)return null;let r=e;if(r instanceof Pt)return r;if(r["/"]!=null&&r["/"]===r.bytes||r.asCID===r){let{version:n,code:s,multihash:o,bytes:u}=r;return new Pt(n,s,o,u||XL(n,s,o.bytes))}else if(r[dse]===!0){let{version:n,multihash:s,code:o}=r,u=KL(s);return Pt.create(n,o,u)}else return null}static create(e,r,n){if(typeof r!="number")throw new Error("String codecs are no longer supported");if(!(n.bytes instanceof Uint8Array))throw new Error("Invalid digest");switch(e){case 0:{if(r!==Xl)throw new Error(`Version 0 CID must use dag-pb (code: ${Xl}) block encoding`);return new Pt(e,r,n,n.bytes)}case 1:{let s=XL(e,r,n.bytes);return new Pt(e,r,n,s)}default:throw new Error("Invalid version")}}static createV0(e){return Pt.create(0,Xl,e)}static createV1(e,r){return Pt.create(1,e,r)}static decode(e){let[r,n]=Pt.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return r}static decodeFirst(e){let r=Pt.inspectBytes(e),n=r.size-r.multihashSize,s=Qu(e.subarray(n,n+r.multihashSize));if(s.byteLength!==r.multihashSize)throw new Error("Incorrect length");let o=s.subarray(r.multihashSize-r.digestSize),u=new ec(r.multihashCode,r.digestSize,o,s);return[r.version===0?Pt.createV0(u):Pt.createV1(r.codec,u),e.subarray(r.size)]}static inspectBytes(e){let r=0,n=()=>{let[y,v]=Ql(e.subarray(r));return r+=v,y},s=n(),o=Xl;if(s===18?(s=0,r=0):o=n(),s!==0&&s!==1)throw new RangeError(`Invalid CID version ${s}`);let u=r,f=n(),h=n(),g=r+h,d=g-u;return{version:s,codec:o,multihashCode:f,digestSize:h,multihashSize:d,size:g}}static parse(e,r){let[n,s]=lse(e,r),o=Pt.decode(s);if(o.version===0&&e[0]!=="Q")throw Error("Version 0 CID string must not include multibase prefix");return oE(o).set(n,e),o}},lse=(t,e)=>{switch(t[0]){case"Q":{let r=e||Gi;return[Gi.prefix,r.decode(`${Gi.prefix}${t}`)]}case Gi.prefix:{let r=e||Gi;return[Gi.prefix,r.decode(t)]}case Yl.prefix:{let r=e||Yl;return[Yl.prefix,r.decode(t)]}default:{if(e==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[t[0],e.decode(t)]}}},fse=(t,e,r)=>{let{prefix:n}=r;if(n!==Gi.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let s=e.get(n);if(s==null){let o=r.encode(t).slice(1);return e.set(n,o),o}else return s},hse=(t,e,r)=>{let{prefix:n}=r,s=e.get(n);if(s==null){let o=r.encode(t);return e.set(n,o),o}else return s},Xl=112,pse=18,XL=(t,e,r)=>{let n=Zu(t),s=n+Zu(e),o=new Uint8Array(s+r.byteLength);return Xu(t,o,0),Xu(e,o,n),o.set(r,s),o},dse=Symbol.for("@ipld/js-cid/CID");var Xd=Ye(sn());var sh=class{static async getInfo(e){let r=(0,Qd.isAbsolute)(e)?e:(0,Qd.join)((0,e6.cwd)(),e);if(!await(0,Xd.pathExists)(r))throw new Error(`Could not find file ${r}`);let n=Date.now(),s=(0,ZL.createReadStream)(r),o=(0,Xd.statSync)(r).size,u=await t6.default.of(s),f=Pt.parse(u).toV1().toString(),h=fo(Date.now()-n);return{absolutePath:r,cidV0:u,cidV1:f,size:`${o} bytes(${au(o)})`,duration:h}}};(async()=>await GD().parseAsync())();
|