@wix/cli-app 1.0.89 → 1.1.1
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/build/CreateVersionCommand-M57PLQFO.js +4 -0
- package/build/CreateVersionCommand-M57PLQFO.js.map +1 -0
- package/build/DevCommand-HBIIRNKJ.js +4 -0
- package/build/DevCommand-HBIIRNKJ.js.map +1 -0
- package/build/PreviewCommand-ISSV3BOT.js +4 -0
- package/build/PreviewCommand-ISSV3BOT.js.map +1 -0
- package/build/ServeCommand-PBWWH7JV.js +4 -0
- package/build/ServeCommand-PBWWH7JV.js.map +1 -0
- package/build/SiteIdProvider-OORASSSR.js +4 -0
- package/build/SiteIdProvider-OORASSSR.js.map +1 -0
- package/build/build-2RGFEOAH.js +4 -0
- package/build/build-2RGFEOAH.js.map +1 -0
- package/build/chunk-52CFCSNQ.js +65 -0
- package/build/chunk-52CFCSNQ.js.map +1 -0
- package/build/chunk-5CJ7KYIU.js +4 -0
- package/build/chunk-5CJ7KYIU.js.map +1 -0
- package/build/chunk-6G7R73WW.js +4 -0
- package/build/chunk-6G7R73WW.js.map +1 -0
- package/build/chunk-AWOTQVII.js +4 -0
- package/build/chunk-AWOTQVII.js.map +1 -0
- package/build/chunk-BNCDZAQC.js +4 -0
- package/build/chunk-BNCDZAQC.js.map +1 -0
- package/build/chunk-BOTVIAFU.js +4 -0
- package/build/chunk-BOTVIAFU.js.map +1 -0
- package/build/chunk-DUZ55BRL.js +126 -0
- package/build/chunk-DUZ55BRL.js.map +1 -0
- package/build/chunk-FGP4AKBM.js +4 -0
- package/build/chunk-FGP4AKBM.js.map +1 -0
- package/build/chunk-FJCAYHQL.js +23 -0
- package/build/chunk-FJCAYHQL.js.map +1 -0
- package/build/{chunk-QL6NVRGD.js → chunk-HFDLXX7R.js} +3 -5
- package/build/{chunk-QL6NVRGD.js.map → chunk-HFDLXX7R.js.map} +1 -1
- package/build/chunk-IJ6QC2OQ.js +4 -0
- package/build/chunk-IJ6QC2OQ.js.map +1 -0
- package/build/chunk-JDGDMH7E.js +4 -0
- package/build/chunk-JDGDMH7E.js.map +1 -0
- package/build/chunk-JI4J5GCL.js +4 -0
- package/build/chunk-JI4J5GCL.js.map +1 -0
- package/build/chunk-JZEMYLWD.js +11 -0
- package/build/chunk-JZEMYLWD.js.map +1 -0
- package/build/chunk-L4IT3FJC.js +4 -0
- package/build/chunk-L4IT3FJC.js.map +1 -0
- package/build/chunk-LHKDRLTT.js +4 -0
- package/build/chunk-LHKDRLTT.js.map +1 -0
- package/build/chunk-RGPGMVHK.js +7 -0
- package/build/chunk-RGPGMVHK.js.map +1 -0
- package/build/chunk-S7NF452E.js +4 -0
- package/build/chunk-S7NF452E.js.map +1 -0
- package/build/chunk-U6YFRFIX.js +106 -0
- package/build/chunk-U6YFRFIX.js.map +1 -0
- package/build/chunk-XVSH4K7G.js +4 -0
- package/build/chunk-XVSH4K7G.js.map +1 -0
- package/build/chunk-ZVAVQTPJ.js +24 -0
- package/build/chunk-ZVAVQTPJ.js.map +1 -0
- package/build/{devtools-BEX4ITW5.js → devtools-D522YHXH.js} +4 -6
- package/build/{devtools-BEX4ITW5.js.map → devtools-D522YHXH.js.map} +1 -1
- package/build/index.js +3 -335
- package/build/index.js.map +1 -1
- package/build/preview-3532IXSY.js +4 -0
- package/build/preview-3532IXSY.js.map +1 -0
- package/build/render-command-3GYMO4L2.js +4 -0
- package/build/render-command-3GYMO4L2.js.map +1 -0
- package/build/types.impl-HD4UTKFC.js +4 -0
- package/build/types.impl-HD4UTKFC.js.map +1 -0
- package/package.json +7 -6
package/build/index.js
CHANGED
|
@@ -1,336 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import{a as J,b as Si,c as w,d as M1,e as Ce,f as kf,g as x,h as d}from"./chunk-QL6NVRGD.js";var Qm=w(j1=>{"use strict";d();var qy=class extends Error{constructor(t,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},q1=class extends qy{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};j1.CommanderError=qy;j1.InvalidArgumentError=q1});var jy=w(H1=>{"use strict";d();var{InvalidArgumentError:jue}=Qm(),V1=class{constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:r.concat(t)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new jue(`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 Vue(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}H1.Argument=V1;H1.humanReadableArgName=Vue});var W1=w(Wk=>{"use strict";d();var{humanReadableArgName:Hue}=jy(),G1=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(t){let r=t.commands.filter(n=>!n._hidden);if(t._hasImplicitHelpCommand()){let[,n,i]=t._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=t.createCommand(n).helpOption(!1);s.description(t._helpCommandDescription),i&&s.arguments(i),r.push(s)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(t,r){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(t).localeCompare(n(r))}visibleOptions(t){let r=t.options.filter(s=>!s.hidden),n=t._hasHelpOption&&t._helpShortFlag&&!t._findOption(t._helpShortFlag),i=t._hasHelpOption&&!t._findOption(t._helpLongFlag);if(n||i){let s;n?i?s=t.createOption(t._helpFlags,t._helpDescription):s=t.createOption(t._helpShortFlag,t._helpDescription):s=t.createOption(t._helpLongFlag,t._helpDescription),r.push(s)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let n=t.parent;n;n=n.parent){let i=n.options.filter(s=>!s.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(n=>Hue(n)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let n="";for(let i=t.parent;i;i=i.parent)n=i.name()+" "+n;return n+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];return t.argChoices&&r.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0?`${t.description} (${r.join(", ")})`:t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return t.description?`${t.description} ${n}`:n}return t.description}formatHelp(t,r){let n=r.padWidth(t,r),i=r.helpWidth||80,s=2,a=2;function o(_,C){if(C){let b=`${_.padEnd(n+a)}${C}`;return r.wrap(b,i-s,n+a)}return _}function u(_){return _.join(`
|
|
6
|
-
`).replace(/^/gm," ".repeat(s))}let l=[`Usage: ${r.commandUsage(t)}`,""],f=r.commandDescription(t);f.length>0&&(l=l.concat([r.wrap(f,i,0),""]));let h=r.visibleArguments(t).map(_=>o(r.argumentTerm(_),r.argumentDescription(_)));h.length>0&&(l=l.concat(["Arguments:",u(h),""]));let m=r.visibleOptions(t).map(_=>o(r.optionTerm(_),r.optionDescription(_)));if(m.length>0&&(l=l.concat(["Options:",u(m),""])),this.showGlobalOptions){let _=r.visibleGlobalOptions(t).map(C=>o(r.optionTerm(C),r.optionDescription(C)));_.length>0&&(l=l.concat(["Global Options:",u(_),""]))}let y=r.visibleCommands(t).map(_=>o(r.subcommandTerm(_),r.subcommandDescription(_)));return y.length>0&&(l=l.concat(["Commands:",u(y),""])),l.join(`
|
|
7
|
-
`)}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,r),r.longestArgumentTermLength(t,r))}wrap(t,r,n,i=40){let s=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",a=new RegExp(`[\\n][${s}]+`);if(t.match(a))return t;let o=r-n;if(o<i)return t;let u=t.slice(0,n),l=t.slice(n).replace(`\r
|
|
8
|
-
`,`
|
|
9
|
-
`),f=" ".repeat(n),m="\\s\u200B",y=new RegExp(`
|
|
10
|
-
|.{1,${o-1}}([${m}]|$)|[^${m}]+?([${m}]|$)`,"g"),_=l.match(y)||[];return u+_.map((C,b)=>C===`
|
|
11
|
-
`?"":(b>0?f:"")+C.trimEnd()).join(`
|
|
12
|
-
`)}};Wk.Help=G1});var K1=w(Vy=>{"use strict";d();var{InvalidArgumentError:Gue}=Qm(),Q1=class{constructor(t,r){this.flags=t,this.description=r||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;let n=Qk(t);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(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let r=t;return typeof t=="string"&&(r={[t]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_concatValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:r.concat(t)}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new Gue(`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 Wue(this.name().replace(/^no-/,""))}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},z1=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.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(t,r){let n=r.attributeName();if(!this.dualOptions.has(n))return!0;let i=this.negativeOptions.get(n).presetArg,s=i!==void 0?i:!1;return r.negate===(s===t)}};function Wue(e){return e.split("-").reduce((t,r)=>t+r[0].toUpperCase()+r.slice(1))}function Qk(e){let t,r,n=e.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(t=n.shift()),r=n.shift(),!t&&/^-[^-]$/.test(r)&&(t=r,r=void 0),{shortFlag:t,longFlag:r}}Vy.Option=Q1;Vy.splitOptionFlags=Qk;Vy.DualOptions=z1});var Kk=w(zk=>{"use strict";d();function Que(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let r=[];for(let n=0;n<=e.length;n++)r[n]=[n];for(let n=0;n<=t.length;n++)r[0][n]=n;for(let n=1;n<=t.length;n++)for(let i=1;i<=e.length;i++){let s=1;e[i-1]===t[n-1]?s=0:s=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+s),i>1&&n>1&&e[i-1]===t[n-2]&&e[i-2]===t[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[e.length][t.length]}function zue(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));let r=e.startsWith("--");r&&(e=e.slice(2),t=t.map(a=>a.slice(2)));let n=[],i=3,s=.4;return t.forEach(a=>{if(a.length<=1)return;let o=Que(e,a),u=Math.max(e.length,a.length);(u-o)/u>s&&(o<i?(i=o,n=[a]):o===i&&n.push(a))}),n.sort((a,o)=>a.localeCompare(o)),r&&(n=n.map(a=>`--${a}`)),n.length>1?`
|
|
13
|
-
(Did you mean one of ${n.join(", ")}?)`:n.length===1?`
|
|
14
|
-
(Did you mean ${n[0]}?)`:""}zk.suggestSimilar=zue});var e3=w(Zk=>{"use strict";d();var Kue=J("events").EventEmitter,$1=J("child_process"),eu=J("path"),Y1=J("fs"),qr=J("process"),{Argument:$ue,humanReadableArgName:Yue}=jy(),{CommanderError:X1}=Qm(),{Help:Xue}=W1(),{Option:$k,splitOptionFlags:Jue,DualOptions:Zue}=K1(),{suggestSimilar:Yk}=Kk(),J1=class e extends Kue{constructor(t){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=t||"",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=>qr.stdout.write(r),writeErr:r=>qr.stderr.write(r),getOutHelpWidth:()=>qr.stdout.isTTY?qr.stdout.columns:void 0,getErrHelpWidth:()=>qr.stderr.isTTY?qr.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(t){return this._outputConfiguration=t._outputConfiguration,this._hasHelpOption=t._hasHelpOption,this._helpFlags=t._helpFlags,this._helpDescription=t._helpDescription,this._helpShortFlag=t._helpShortFlag,this._helpLongFlag=t._helpLongFlag,this._helpCommandName=t._helpCommandName,this._helpCommandnameAndArgs=t._helpCommandnameAndArgs,this._helpCommandDescription=t._helpCommandDescription,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){let t=[];for(let r=this;r;r=r.parent)t.push(r);return t}command(t,r,n){let i=r,s=n;typeof i=="object"&&i!==null&&(s=i,i=null),s=s||{};let[,a,o]=t.match(/([^ ]+) *(.*)/),u=this.createCommand(a);return i&&(u.description(i),u._executableHandler=!0),s.isDefault&&(this._defaultCommandName=u._name),u._hidden=!!(s.noHelp||s.hidden),u._executableFile=s.executableFile||null,o&&u.arguments(o),this.commands.push(u),u.parent=this,u.copyInheritedSettings(this),i?this:u}createCommand(t){return new e(t)}createHelp(){return Object.assign(new Xue,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,t),this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,r){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
|
|
15
|
-
- specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=t._name),(r.noHelp||r.hidden)&&(t._hidden=!0),this.commands.push(t),t.parent=this,this}createArgument(t,r){return new $ue(t,r)}argument(t,r,n,i){let s=this.createArgument(t,r);return typeof n=="function"?s.default(i).argParser(n):s.default(n),this.addArgument(s),this}arguments(t){return t.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(t){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(t.required&&t.defaultValue!==void 0&&t.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}addHelpCommand(t,r){return t===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof t=="string"&&(this._helpCommandName=t.split(" ")[0],this._helpCommandnameAndArgs=t),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(t,r){let n=["preSubcommand","preAction","postAction"];if(!n.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
|
|
16
|
-
Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(r):this._lifeCycleHooks[t]=[r],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(t,r,n){this._exitCallback&&this._exitCallback(new X1(t,r,n)),qr.exit(t)}action(t){let r=n=>{let i=this.registeredArguments.length,s=n.slice(0,i);return this._storeOptionsAsProperties?s[i]=this:s[i]=this.opts(),s.push(this),t.apply(this,s)};return this._actionHandler=r,this}createOption(t,r){return new $k(t,r)}_callParseArg(t,r,n,i){try{return t.parseArg(r,n)}catch(s){if(s.code==="commander.invalidArgument"){let a=`${i} ${s.message}`;this.error(a,{exitCode:s.exitCode,code:s.code})}throw s}}addOption(t){let r=t.name(),n=t.attributeName();if(t.negate){let s=t.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(n,t.defaultValue===void 0?!0:t.defaultValue,"default")}else t.defaultValue!==void 0&&this.setOptionValueWithSource(n,t.defaultValue,"default");this.options.push(t);let i=(s,a,o)=>{s==null&&t.presetArg!==void 0&&(s=t.presetArg);let u=this.getOptionValue(n);s!==null&&t.parseArg?s=this._callParseArg(t,s,u,a):s!==null&&t.variadic&&(s=t._concatValue(s,u)),s==null&&(t.negate?s=!1:t.isBoolean()||t.optional?s=!0:s=""),this.setOptionValueWithSource(n,s,o)};return this.on("option:"+r,s=>{let a=`error: option '${t.flags}' argument '${s}' is invalid.`;i(s,a,"cli")}),t.envVar&&this.on("optionEnv:"+r,s=>{let a=`error: option '${t.flags}' value '${s}' from env '${t.envVar}' is invalid.`;i(s,a,"env")}),this}_optionEx(t,r,n,i,s){if(typeof r=="object"&&r instanceof $k)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let a=this.createOption(r,n);if(a.makeOptionMandatory(!!t.mandatory),typeof i=="function")a.default(s).argParser(i);else if(i instanceof RegExp){let o=i;i=(u,l)=>{let f=o.exec(u);return f?f[0]:l},a.default(s).argParser(i)}else a.default(i);return this.addOption(a)}option(t,r,n,i){return this._optionEx({},t,r,n,i)}requiredOption(t,r,n,i){return this._optionEx({mandatory:!0},t,r,n,i)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){if(this._passThroughOptions=!!t,this.parent&&t&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(t=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this._storeOptionsAsProperties=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,r){return this.setOptionValueWithSource(t,r,void 0)}setOptionValueWithSource(t,r,n){return this._storeOptionsAsProperties?this[t]=r:this._optionValues[t]=r,this._optionValueSources[t]=n,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let r;return this._getCommandAndAncestors().forEach(n=>{n.getOptionValueSource(t)!==void 0&&(r=n.getOptionValueSource(t))}),r}_prepareUserArgs(t,r){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");r=r||{},t===void 0&&(t=qr.argv,qr.versions&&qr.versions.electron&&(r.from="electron")),this.rawArgs=t.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=t[1],n=t.slice(2);break;case"electron":qr.defaultApp?(this._scriptPath=t[1],n=t.slice(2)):n=t.slice(1);break;case"user":n=t.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(t,r){let n=this._prepareUserArgs(t,r);return this._parseCommand([],n),this}async parseAsync(t,r){let n=this._prepareUserArgs(t,r);return await this._parseCommand([],n),this}_executeSubCommand(t,r){r=r.slice();let n=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function s(f,h){let m=eu.resolve(f,h);if(Y1.existsSync(m))return m;if(i.includes(eu.extname(h)))return;let y=i.find(_=>Y1.existsSync(`${m}${_}`));if(y)return`${m}${y}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=t._executableFile||`${this._name}-${t._name}`,o=this._executableDir||"";if(this._scriptPath){let f;try{f=Y1.realpathSync(this._scriptPath)}catch{f=this._scriptPath}o=eu.resolve(eu.dirname(f),o)}if(o){let f=s(o,a);if(!f&&!t._executableFile&&this._scriptPath){let h=eu.basename(this._scriptPath,eu.extname(this._scriptPath));h!==this._name&&(f=s(o,`${h}-${t._name}`))}a=f||a}n=i.includes(eu.extname(a));let u;qr.platform!=="win32"?n?(r.unshift(a),r=Jk(qr.execArgv).concat(r),u=$1.spawn(qr.argv[0],r,{stdio:"inherit"})):u=$1.spawn(a,r,{stdio:"inherit"}):(r.unshift(a),r=Jk(qr.execArgv).concat(r),u=$1.spawn(qr.execPath,r,{stdio:"inherit"})),u.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(h=>{qr.on(h,()=>{u.killed===!1&&u.exitCode===null&&u.kill(h)})});let l=this._exitCallback;l?u.on("close",()=>{l(new X1(qr.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):u.on("close",qr.exit.bind(qr)),u.on("error",f=>{if(f.code==="ENOENT"){let h=o?`searched for local subcommand relative to directory '${o}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",m=`'${a}' does not exist
|
|
17
|
-
- if '${t._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
18
|
-
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
19
|
-
- ${h}`;throw new Error(m)}else if(f.code==="EACCES")throw new Error(`'${a}' not executable`);if(!l)qr.exit(1);else{let h=new X1(1,"commander.executeSubCommandAsync","(error)");h.nestedError=f,l(h)}}),this.runningCommand=u}_dispatchSubcommand(t,r,n){let i=this._findCommand(t);i||this.help({error:!0});let s;return s=this._chainOrCallSubCommandHook(s,i,"preSubcommand"),s=this._chainOrCall(s,()=>{if(i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}),s}_dispatchHelpCommand(t){t||this.help();let r=this._findCommand(t);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(t,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,r)=>{t.required&&this.args[r]==null&&this.missingArgument(t.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let t=(n,i,s)=>{let a=i;if(i!==null&&n.parseArg){let o=`error: command-argument value '${i}' is invalid for argument '${n.name()}'.`;a=this._callParseArg(n,i,s,o)}return a};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((n,i)=>{let s=n.defaultValue;n.variadic?i<this.args.length?(s=this.args.slice(i),n.parseArg&&(s=s.reduce((a,o)=>t(n,o,a),n.defaultValue))):s===void 0&&(s=[]):i<this.args.length&&(s=this.args[i],n.parseArg&&(s=t(n,s,n.defaultValue))),r[i]=s}),this.processedArgs=r}_chainOrCall(t,r){return t&&t.then&&typeof t.then=="function"?t.then(()=>r()):r()}_chainOrCallHooks(t,r){let n=t,i=[];return this._getCommandAndAncestors().reverse().filter(s=>s._lifeCycleHooks[r]!==void 0).forEach(s=>{s._lifeCycleHooks[r].forEach(a=>{i.push({hookedCommand:s,callback:a})})}),r==="postAction"&&i.reverse(),i.forEach(s=>{n=this._chainOrCall(n,()=>s.callback(s.hookedCommand,this))}),n}_chainOrCallSubCommandHook(t,r,n){let i=t;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(s=>{i=this._chainOrCall(i,()=>s(this,r))}),i}_parseCommand(t,r){let n=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(n.operands),r=n.unknown,this.args=t.concat(r),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),r);if(this._hasImplicitHelpCommand()&&t[0]===this._helpCommandName)return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return Xk(this,r),this._dispatchSubcommand(this._defaultCommandName,t,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),Xk(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let a;return a=this._chainOrCallHooks(a,"preAction"),a=this._chainOrCall(a,()=>this._actionHandler(this.processedArgs)),this.parent&&(a=this._chainOrCall(a,()=>{this.parent.emit(s,t,r)})),a=this._chainOrCallHooks(a,"postAction"),a}if(this.parent&&this.parent.listenerCount(s))i(),this._processArguments(),this.parent.emit(s,t,r);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,r);this.listenerCount("command:*")?this.emit("command:*",t,r):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(r=>r._name===t||r._aliases.includes(t))}_findOption(t){return this.options.find(r=>r.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(r=>{r.mandatory&&t.getOptionValue(r.attributeName())===void 0&&t.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let t=this.options.filter(n=>{let i=n.attributeName();return this.getOptionValue(i)===void 0?!1:this.getOptionValueSource(i)!=="default"});t.filter(n=>n.conflictsWith.length>0).forEach(n=>{let i=t.find(s=>n.conflictsWith.includes(s.attributeName()));i&&this._conflictingOption(n,i)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){let r=[],n=[],i=r,s=t.slice();function a(u){return u.length>1&&u[0]==="-"}let o=null;for(;s.length;){let u=s.shift();if(u==="--"){i===n&&i.push(u),i.push(...s);break}if(o&&!a(u)){this.emit(`option:${o.name()}`,u);continue}if(o=null,a(u)){let l=this._findOption(u);if(l){if(l.required){let f=s.shift();f===void 0&&this.optionMissingArgument(l),this.emit(`option:${l.name()}`,f)}else if(l.optional){let f=null;s.length>0&&!a(s[0])&&(f=s.shift()),this.emit(`option:${l.name()}`,f)}else this.emit(`option:${l.name()}`);o=l.variadic?l:null;continue}}if(u.length>2&&u[0]==="-"&&u[1]!=="-"){let l=this._findOption(`-${u[1]}`);if(l){l.required||l.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${l.name()}`,u.slice(2)):(this.emit(`option:${l.name()}`),s.unshift(`-${u.slice(2)}`));continue}}if(/^--[^=]+=/.test(u)){let l=u.indexOf("="),f=this._findOption(u.slice(0,l));if(f&&(f.required||f.optional)){this.emit(`option:${f.name()}`,u.slice(l+1));continue}}if(a(u)&&(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(u)){r.push(u),s.length>0&&n.push(...s);break}else if(u===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(u),s.length>0&&r.push(...s);break}else if(this._defaultCommandName){n.push(u),s.length>0&&n.push(...s);break}}if(this._passThroughOptions){i.push(u),s.length>0&&i.push(...s);break}i.push(u)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let t={},r=this.options.length;for(let n=0;n<r;n++){let i=this.options[n].attributeName();t[i]=i===this._versionOptionName?this._version:this[i]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,r)=>Object.assign(t,r.opts()),{})}error(t,r){this._outputConfiguration.outputError(`${t}
|
|
20
|
-
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
21
|
-
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
22
|
-
`),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,s=n.code||"commander.error";this._exit(i,s,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in qr.env){let r=t.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,qr.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new Zue(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())&&t.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(i=>!r(i)).forEach(i=>{this.setOptionValueWithSource(i,n.implied[i],"implied")})})}missingArgument(t){let r=`error: missing required argument '${t}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(t){let r=`error: option '${t.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){let r=`error: required option '${t.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,r){let n=a=>{let o=a.attributeName(),u=this.getOptionValue(o),l=this.options.find(h=>h.negate&&o===h.attributeName()),f=this.options.find(h=>!h.negate&&o===h.attributeName());return l&&(l.presetArg===void 0&&u===!1||l.presetArg!==void 0&&u===l.presetArg)?l:f||a},i=a=>{let o=n(a),u=o.attributeName();return this.getOptionValueSource(u)==="env"?`environment variable '${o.envVar}'`:`option '${o.flags}'`},s=`error: ${i(t)} cannot be used with ${i(r)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let r="";if(t.startsWith("--")&&this._showSuggestionAfterError){let i=[],s=this;do{let a=s.createHelp().visibleOptions(s).filter(o=>o.long).map(o=>o.long);i=i.concat(a),s=s.parent}while(s&&!s._enablePositionalOptions);r=Yk(t,i)}let n=`error: unknown option '${t}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,n=r===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${t.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let t=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(s=>{i.push(s.name()),s.alias()&&i.push(s.alias())}),r=Yk(t,i)}let n=`error: unknown command '${t}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(t,r,n){if(t===void 0)return this._version;this._version=t,r=r||"-V, --version",n=n||"output the version number";let i=this.createOption(r,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${t}
|
|
23
|
-
`),this._exit(0,"commander.version",t)}),this}description(t,r){return t===void 0&&r===void 0?this._description:(this._description=t,r&&(this._argsDescription=r),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===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]),t===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(r=>this.alias(r)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(n=>Yue(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}nameFromFilename(t){return this._name=eu.basename(t,eu.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=t&&t.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(t){t=t||{};let r={error:!!t.error},n;return r.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),r.write=t.write||n,r.command=this,r}outputHelp(t){let r;typeof t=="function"&&(r=t,t=void 0);let n=this._getHelpContext(t);this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this._helpLongFlag&&this.emit(this._helpLongFlag),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",n))}helpOption(t,r){if(typeof t=="boolean")return this._hasHelpOption=t,this;this._helpFlags=t||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=Jue(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(t){this.outputHelp(t);let r=qr.exitCode||0;r===0&&t&&typeof t!="function"&&t.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(t,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(t))throw new Error(`Unexpected value for position to addHelpText.
|
|
24
|
-
Expecting one of '${n.join("', '")}'`);let i=`${t}Help`;return this.on(i,s=>{let a;typeof r=="function"?a=r({error:s.error,command:s.command}):a=r,a&&s.write(`${a}
|
|
25
|
-
`)}),this}};function Xk(e,t){e._hasHelpOption&&t.find(n=>n===e._helpLongFlag||n===e._helpShortFlag)&&(e.outputHelp(),e._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Jk(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,n="127.0.0.1",i="9229",s;return(s=t.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?i=s[3]:n=s[3]):(s=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],n=s[3],i=s[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:t})}Zk.Command=J1});var i3=w((Aa,n3)=>{"use strict";d();var{Argument:ece}=jy(),{Command:t3}=e3(),{CommanderError:tce,InvalidArgumentError:r3}=Qm(),{Help:rce}=W1(),{Option:nce}=K1();Aa=n3.exports=new t3;Aa.program=Aa;Aa.Command=t3;Aa.Option=nce;Aa.Argument=ece;Aa.Help=rce;Aa.CommanderError=tce;Aa.InvalidArgumentError=r3;Aa.InvalidOptionArgumentError=r3});var a3=w((cs,s3)=>{"use strict";d();var Ca=i3();cs=s3.exports={};cs.program=new Ca.Command;cs.Argument=Ca.Argument;cs.Command=Ca.Command;cs.CommanderError=Ca.CommanderError;cs.Help=Ca.Help;cs.InvalidArgumentError=Ca.InvalidArgumentError;cs.InvalidOptionArgumentError=Ca.InvalidArgumentError;cs.Option=Ca.Option;cs.createCommand=e=>new Ca.Command(e);cs.createOption=(e,t)=>new Ca.Option(e,t);cs.createArgument=(e,t)=>new Ca.Argument(e,t)});var p3=w((qMe,l3)=>{"use strict";d();var Gy=J("assert"),sce=J("stream").Stream,ace=J("util"),oce=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function Z1(e){return e.charAt(0).toUpperCase()+e.slice(1)}function oc(e,t,r,n,i){throw new Gy.AssertionError({message:ace.format("%s (%s) is required",e,t),actual:i===void 0?typeof n:i(n),expected:t,operator:r||"===",stackStartFunction:oc.caller})}function eD(e){return Object.prototype.toString.call(e).slice(8,-1)}function Uf(){}var Km={bool:{check:function(e){return typeof e=="boolean"}},func:{check:function(e){return typeof e=="function"}},string:{check:function(e){return typeof e=="string"}},object:{check:function(e){return typeof e=="object"&&e!==null}},number:{check:function(e){return typeof e=="number"&&!isNaN(e)}},finite:{check:function(e){return typeof e=="number"&&!isNaN(e)&&isFinite(e)}},buffer:{check:function(e){return Buffer.isBuffer(e)},operator:"Buffer.isBuffer"},array:{check:function(e){return Array.isArray(e)},operator:"Array.isArray"},stream:{check:function(e){return e instanceof sce},operator:"instanceof",actual:eD},date:{check:function(e){return e instanceof Date},operator:"instanceof",actual:eD},regexp:{check:function(e){return e instanceof RegExp},operator:"instanceof",actual:eD},uuid:{check:function(e){return typeof e=="string"&&oce.test(e)},operator:"isUUID"}};function c3(e){var t=Object.keys(Km),r;return process.env.NODE_NDEBUG?r=Uf:r=function(n,i){n||oc(i,"true",n)},t.forEach(function(n){if(e){r[n]=Uf;return}var i=Km[n];r[n]=function(s,a){i.check(s)||oc(a,n,i.operator,s,i.actual)}}),t.forEach(function(n){var i="optional"+Z1(n);if(e){r[i]=Uf;return}var s=Km[n];r[i]=function(a,o){a!=null&&(s.check(a)||oc(o,n,s.operator,a,s.actual))}}),t.forEach(function(n){var i="arrayOf"+Z1(n);if(e){r[i]=Uf;return}var s=Km[n],a="["+n+"]";r[i]=function(o,u){Array.isArray(o)||oc(u,a,s.operator,o,s.actual);var l;for(l=0;l<o.length;l++)s.check(o[l])||oc(u,a,s.operator,o,s.actual)}}),t.forEach(function(n){var i="optionalArrayOf"+Z1(n);if(e){r[i]=Uf;return}var s=Km[n],a="["+n+"]";r[i]=function(o,u){if(o!=null){Array.isArray(o)||oc(u,a,s.operator,o,s.actual);var l;for(l=0;l<o.length;l++)s.check(o[l])||oc(u,a,s.operator,o,s.actual)}}}),Object.keys(Gy).forEach(function(n){if(n==="AssertionError"){r[n]=Gy[n];return}if(e){r[n]=Uf;return}r[n]=Gy[n]}),r._setExports=c3,r}l3.exports=c3(process.env.NODE_NDEBUG)});var h3=w(Wy=>{"use strict";d();var Ym=J("assert"),uce=J("util");Wy.sprintf=rD;Wy.printf=cce;Wy.fprintf=f3;function rD(e){var t=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join(""),r=new RegExp(t),n=Array.prototype.slice.call(arguments,1),i=e,s,a,o,u,l,f,h,m,y,_="",C=1,b=0,D,L;for(Ym.equal("string",typeof i,"first argument must be a format string");(y=r.exec(i))!==null;){if(_+=y[1],i=i.substring(y[0].length),L=y[0].substring(y[1].length),D=b+y[1].length+1,b+=y[0].length,s=y[2]||"",a=y[3]||0,o=y[4]||"",u=y[6],l=!1,h=!1,f=" ",u=="%"){_+="%";continue}if(n.length===0)throw $m(e,D,L,"has no matching argument (too few arguments passed)");if(m=n.shift(),C++,s.match(/[\' #]/))throw $m(e,D,L,"uses unsupported flags");if(o.length>0)throw $m(e,D,L,"uses non-zero precision (not supported)");switch(s.match(/-/)&&(l=!0),s.match(/0/)&&(f="0"),s.match(/\+/)&&(h=!0),u){case"s":if(m==null)throw $m(e,D,L,"attempted to print undefined or null as a string (argument "+C+" to sprintf)");_+=tD(f,a,l,m.toString());break;case"d":m=Math.floor(m);case"f":h=h&&m>0?"+":"",_+=h+tD(f,a,l,m.toString());break;case"x":_+=tD(f,a,l,m.toString(16));break;case"j":a===0&&(a=10),_+=uce.inspect(m,!1,a);break;case"r":_+=d3(m);break;default:throw $m(e,D,L,"is not supported")}}return _+=i,_}function $m(e,t,r,n){return Ym.equal(typeof e,"string"),Ym.equal(typeof r,"string"),Ym.equal(typeof t,"number"),Ym.equal(typeof n,"string"),new Error('format string "'+e+'": conversion specifier "'+r+'" at character '+t+" "+n)}function cce(){var e=Array.prototype.slice.call(arguments);e.unshift(process.stdout),f3.apply(null,e)}function f3(e){var t=Array.prototype.slice.call(arguments,1);return e.write(rD.apply(this,t))}function tD(e,t,r,n){for(var i=n;i.length<t;)r?i+=e:i=e+i;return i}function d3(e){var t;if(!(e instanceof Error))throw new Error(rD("invalid type for %%r: %j",e));if(t="EXCEPTION: "+e.constructor.name+": "+e.stack,e.cause&&typeof e.cause=="function"){var r=e.cause();r&&(t+=`
|
|
26
|
-
Caused by: `+d3(r))}return t}});var m3=w(oi=>{"use strict";d();function lce(e){return Array.isArray?Array.isArray(e):Qy(e)==="[object Array]"}oi.isArray=lce;function pce(e){return typeof e=="boolean"}oi.isBoolean=pce;function fce(e){return e===null}oi.isNull=fce;function dce(e){return e==null}oi.isNullOrUndefined=dce;function hce(e){return typeof e=="number"}oi.isNumber=hce;function mce(e){return typeof e=="string"}oi.isString=mce;function gce(e){return typeof e=="symbol"}oi.isSymbol=gce;function vce(e){return e===void 0}oi.isUndefined=vce;function yce(e){return Qy(e)==="[object RegExp]"}oi.isRegExp=yce;function xce(e){return typeof e=="object"&&e!==null}oi.isObject=xce;function Ece(e){return Qy(e)==="[object Date]"}oi.isDate=Ece;function _ce(e){return Qy(e)==="[object Error]"||e instanceof Error}oi.isError=_ce;function Ace(e){return typeof e=="function"}oi.isFunction=Ace;function Cce(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}oi.isPrimitive=Cce;oi.isBuffer=Buffer.isBuffer;function Qy(e){return Object.prototype.toString.call(e)}});var qf=w((QMe,g3)=>{"use strict";d();var mn=p3(),zy=J("util"),Sce=h3(),Sa=m3().isError,bce=Sce.sprintf;g3.exports=tr;tr.VError=tr;tr.SError=Xm;tr.WError=uc;tr.MultiError=Mf;function nD(e){var t,r,n,i,s;if(mn.object(e,"args"),mn.bool(e.strict,"args.strict"),mn.array(e.argv,"args.argv"),t=e.argv,t.length===0)r={},n=[];else if(Sa(t[0]))r={cause:t[0]},n=t.slice(1);else if(typeof t[0]=="object"){r={};for(s in t[0])r[s]=t[0][s];n=t.slice(1)}else mn.string(t[0],"first argument to VError, SError, or WError constructor must be a string, object, or Error"),r={},n=t;return mn.object(r),!r.strict&&!e.strict&&(n=n.map(function(a){return a===null?"null":a===void 0?"undefined":a})),n.length===0?i="":i=bce.apply(null,n),{options:r,shortmessage:i}}function tr(){var e,t,r,n,i,s,a;if(e=Array.prototype.slice.call(arguments,0),!(this instanceof tr))return t=Object.create(tr.prototype),tr.apply(t,arguments),t;if(r=nD({argv:e,strict:!1}),r.options.name&&(mn.string(r.options.name,`error's "name" must be a string`),this.name=r.options.name),this.jse_shortmsg=r.shortmessage,s=r.shortmessage,n=r.options.cause,n&&(mn.ok(Sa(n),"cause is not an Error"),this.jse_cause=n,r.options.skipCauseMessage||(s+=": "+n.message)),this.jse_info={},r.options.info)for(a in r.options.info)this.jse_info[a]=r.options.info[a];return this.message=s,Error.call(this,s),Error.captureStackTrace&&(i=r.options.constructorOpt||this.constructor,Error.captureStackTrace(this,i)),this}zy.inherits(tr,Error);tr.prototype.name="VError";tr.prototype.toString=function(){var t=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t+=": "+this.message),t};tr.prototype.cause=function(){var t=tr.cause(this);return t===null?void 0:t};tr.cause=function(e){return mn.ok(Sa(e),"err must be an Error"),Sa(e.jse_cause)?e.jse_cause:null};tr.info=function(e){var t,r,n;if(mn.ok(Sa(e),"err must be an Error"),r=tr.cause(e),r!==null?t=tr.info(r):t={},typeof e.jse_info=="object"&&e.jse_info!==null)for(n in e.jse_info)t[n]=e.jse_info[n];return t};tr.findCauseByName=function(e,t){var r;for(mn.ok(Sa(e),"err must be an Error"),mn.string(t,"name"),mn.ok(t.length>0,"name cannot be empty"),r=e;r!==null;r=tr.cause(r))if(mn.ok(Sa(r)),r.name==t)return r;return null};tr.hasCauseWithName=function(e,t){return tr.findCauseByName(e,t)!==null};tr.fullStack=function(e){mn.ok(Sa(e),"err must be an Error");var t=tr.cause(e);return t?e.stack+`
|
|
27
|
-
caused by: `+tr.fullStack(t):e.stack};tr.errorFromList=function(e){return mn.arrayOfObject(e,"errors"),e.length===0?null:(e.forEach(function(t){mn.ok(Sa(t))}),e.length==1?e[0]:new Mf(e))};tr.errorForEach=function(e,t){mn.ok(Sa(e),"err must be an Error"),mn.func(t,"func"),e instanceof Mf?e.errors().forEach(function(n){t(n)}):t(e)};function Xm(){var e,t,r,n;return e=Array.prototype.slice.call(arguments,0),this instanceof Xm?(r=nD({argv:e,strict:!0}),n=r.options,tr.call(this,n,"%s",r.shortmessage),this):(t=Object.create(Xm.prototype),Xm.apply(t,arguments),t)}zy.inherits(Xm,tr);function Mf(e){mn.array(e,"list of errors"),mn.ok(e.length>0,"must be at least one error"),this.ase_errors=e,tr.call(this,{cause:e[0]},"first of %d error%s",e.length,e.length==1?"":"s")}zy.inherits(Mf,tr);Mf.prototype.name="MultiError";Mf.prototype.errors=function(){return this.ase_errors.slice(0)};function uc(){var e,t,r,n;return e=Array.prototype.slice.call(arguments,0),this instanceof uc?(r=nD({argv:e,strict:!1}),n=r.options,n.skipCauseMessage=!0,tr.call(this,n,"%s",r.shortmessage),this):(t=Object.create(uc.prototype),uc.apply(t,e),t)}zy.inherits(uc,tr);uc.prototype.name="WError";uc.prototype.toString=function(){var t=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(t+="; caused by "+this.jse_cause.toString()),t};uc.prototype.cause=function(t){return Sa(t)&&(this.jse_cause=t),this.jse_cause}});var iD=w(Ky=>{"use strict";d();Object.defineProperty(Ky,"__esModule",{value:!0});Ky.isTypeImpl=void 0;function wce(e){function t(r,n){if(r!=null)if(typeof r=="function"||typeof r=="string"){let i=r,s=typeof i=="string"?i:i.output.type;return a=>t(a,s)}else{let i=r,s=typeof n=="string"?n:n.output.type;return i!=null&&i[e??"type"]===s}else return!1}return{isType:t}}Ky.isTypeImpl=wce});var sD=w(cc=>{"use strict";d();Object.defineProperty(cc,"__esModule",{value:!0});cc.HOI=cc.isPromise=cc.identityFunc=void 0;var Tce=(e={})=>e;cc.identityFunc=Tce;function Ice(e){return e!=null&&typeof e=="object"&&"then"in e&&typeof e.then=="function"}cc.isPromise=Ice;var Rce=()=>e=>e;cc.HOI=Rce});var lc=w(tu=>{"use strict";d();Object.defineProperty(tu,"__esModule",{value:!0});tu.variantImpl=tu.isVariantCreator=tu.scopeType=void 0;var $y=sD(),Nce=(e,t)=>`${e}/${t}`;tu.scopeType=Nce;function Oce(e){var t;return(t=e.split("/")[1])!==null&&t!==void 0?t:e}var aD=Symbol("Variant Creator");function y3(e){return aD in e}tu.isVariantCreator=y3;function Pce(e){function t(o,u){return Object.keys(u).reduce((l,f)=>Object.assign(Object.assign({},l),{[f]:n(tu.scopeType(o,f),typeof u[f]=="function"?u[f]:$y.identityFunc)}),{})}function r(o){return Object.assign(Object.assign({},o),{[e]:Oce(o[e])})}function n(o,u){let l=(...h)=>{let m=(u??$y.identityFunc)(...h);return $y.isPromise(m)?m.then(y=>e in(y??{})?y:Object.assign(y??{},{[e]:o})):e in(m??{})?m:Object.assign(m??{},{[e]:o})};return Object.defineProperty(l,"name",{value:o,writable:!1}),Object.assign(l,{output:{key:e,type:o}},{[aD]:aD,toString:function(){return this.output.type}})}function i(o){return Object.entries(o).reduce((u,[l,f])=>{let h=typeof f=="function"?y3(f)?f:n(l,f):n(l,$y.identityFunc);return Object.assign(Object.assign({},u),{[l]:h})},{})}function s(o){return o.map(u=>typeof u=="string"?n(u):u).reduce((u,l)=>{let f=typeof l=="string"?n(l):l;return Object.assign(Object.assign({},u),{[f.output.type]:f})},{})}function a(o){return Array.isArray(o)?s(o):i(o)}return{descope:r,scoped:t,variant:a,variantList:s,variantModule:i,variation:n}}tu.variantImpl=Pce});var x3=w(Yy=>{"use strict";d();Object.defineProperty(Yy,"__esModule",{value:!0});Yy.DEFAULT_KEY=void 0;Yy.DEFAULT_KEY="default"});var oD=w(Xy=>{"use strict";d();Object.defineProperty(Xy,"__esModule",{value:!0});Xy.matchImpl=void 0;var Bce=lc(),E3=x3();function Lce(e){let t=l=>f=>h=>r(h,f);function r(...l){var f,h;if(l.length===1){let[m]=l;return y=>r(y,m)}else if(l.length===2){let[m,y]=l,_=typeof m=="string"?s(m):m,C=typeof y=="function"?y(_):y,b=_==null?void 0:Bce.isVariantCreator(_)?_.output.type:_[e];if(_!=null&&b!==void 0&&b in C)return(f=C[b])===null||f===void 0?void 0:f.call(C,_);if(E3.DEFAULT_KEY in C)return(h=C[E3.DEFAULT_KEY])===null||h===void 0?void 0:h.call(C,_)}}let n=l=>()=>l,i=s;function s(l){return{[e]:l}}function a(l){let f=Object.keys(l).reduce((h,m)=>Object.assign(Object.assign({},h),{[m]:()=>l[m]}),{});return h=>f}function o(l,f){return h=>Object.assign(Object.assign({},l),{default:f})}function u(l,f){return h=>Object.assign(Object.assign({},l),{default:f})}return{match:r,ofLiteral:s,onLiteral:i,otherwise:o,partial:n,prematch:t,lookup:a,withFallback:u}}Xy.matchImpl=Lce});var _3=w(Jy=>{"use strict";d();Object.defineProperty(Jy,"__esModule",{value:!0});Jy.typesImpl=void 0;var Fce=lc();function kce(e){function t(n){return Array.isArray(n)?n.length&&Fce.isVariantCreator(n[0])?n.map(i=>i.output.type):n.map(i=>i[e]):Object.values(n).map(i=>i.output.type)}function r(n){return new Proxy({},{get:(i,s)=>s})}return{types:t,inferTypes:r}}Jy.typesImpl=kce});var uD=w(Zy=>{"use strict";d();Object.defineProperty(Zy,"__esModule",{value:!0});Zy.flagsImpl=void 0;function Uce(e){function t(r){return r.reduce((n,i)=>Object.assign(Object.assign({},n),{[i[e]]:i}),Object.create(null))}return{flags:t}}Zy.flagsImpl=Uce});var A3=w(ex=>{"use strict";d();Object.defineProperty(ex,"__esModule",{value:!0});ex.isOfVariantImpl=void 0;function Mce(e){function t(...r){if(r.length===1){let[n]=r;return i=>i!=null&&Object.values(n).some(s=>s.output.type===i[e])}else if(r.length===2){let[n,i]=r;return n!=null&&Object.values(i).some(s=>s.output.type===n[e])}return!1}return{isOfVariant:t}}ex.isOfVariantImpl=Mce});var C3=w(Bl=>{"use strict";d();Object.defineProperty(Bl,"__esModule",{value:!0});Bl.remoteImpl=Bl.CompareResult=void 0;var qce=iD(),jce=oD(),Vce=lc(),Hce;(function(e){e[e.Lesser=-1]="Lesser",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater"})(Hce=Bl.CompareResult||(Bl.CompareResult={}));function Gce(e){let{isType:t}=qce.isTypeImpl(e),{match:r}=jce.matchImpl(e),{variantList:n}=Vce.variantImpl(e);function i(f){return Object.keys(f).reduce((m,y)=>Object.assign(Object.assign({},m),{[y]:t(y)}),{})}function s(f){return{key:e,is:i(f),new:f,match:r}}function a(f){return typeof f=="string"?f:typeof f=="function"?f.output.type:f[e]}function o(f,h){let y=s(f),_=h.map(a);return Object.assign(Object.assign({},y),{length:h.length,compare:(C,b)=>{let D=_.findIndex(q=>q===a(C)),L=_.findIndex(q=>q===a(b)),F=D-L;return F===0?F:F/Math.abs(F)},get(C){let b=this.types[C];return this.new[b]},index:C=>_.findIndex(b=>b===a(C)),types:_})}function u(f){let h=n(f);return o(h,f)}function l(f,h){return Array.isArray(f)?u(f):o(f,h)}return{remote:s,sequence:l}}Bl.remoteImpl=Gce});var cD=w(Ll=>{"use strict";d();Object.defineProperty(Ll,"__esModule",{value:!0});Ll.typedImpl=Ll.pass=void 0;var Wce=e=>e;Ll.pass=Wce;function Qce(e){function t(r){return typeof r=="function"?r(Ll.pass):r}return{typed:t}}Ll.typedImpl=Qce});var lD=w(pc=>{"use strict";d();Object.defineProperty(pc,"__esModule",{value:!0});pc.unpack=pc.just=pc.constant=void 0;function S3(e){return()=>e}pc.constant=S3;pc.just=S3;var zce=e=>e.payload;pc.unpack=zce});var b3=w(fc=>{"use strict";d();Object.defineProperty(fc,"__esModule",{value:!0});fc.matcherImpl=fc.Matcher=fc.tableToHandler=void 0;var Kce=lD(),$ce=lc();function pD(e){return Object.keys(e).reduce((t,r)=>{let n=r;return Object.assign(Object.assign({},t),{[n]:Kce.just(e[n])})},{})}fc.tableToHandler=pD;var tx=class e{constructor(t,r,n){this.target=t,this.key=r,this.handler=n,this.complete=i=>{var s,a;if(this.target!=null&&this.target[this.key]in this.handler)return(a=(s=this.handler)[this.target[this.key]])===null||a===void 0?void 0:a.call(s,this.target);if(i?.withFallback!=null)return i.withFallback(this.target)}}execute(){let t=this.handler[this.target[this.key]];return t?.(this.target)}exhaust(t){var r;let n=Object.assign(Object.assign({},this.handler),t);return(r=n[this.target[this.key]])===null||r===void 0?void 0:r.call(n,this.target)}remaining(t){return new e(this.target,this.key,Object.assign(Object.assign({},this.handler),t))}else(t){var r,n;return this.target[this.key]in this.handler?(n=(r=this.handler)[this.target[this.key]])===null||n===void 0?void 0:n.call(r,this.target):t(this.target)}register(t){let r=Object.assign(Object.assign({},this.handler),pD(t));return new e(this.target,this.key,r)}lookup(t){var r;let n=Object.assign(Object.assign({},this.handler),pD(t));return(r=n[this.target[this.key]])===null||r===void 0?void 0:r.call(n,this.target)}with(t){return new e(this.target,this.key,Object.assign(Object.assign({},this.handler),t))}when(t,r){if(r!=null){let i=(Array.isArray(t)?t:[t]).reduce((s,a)=>{let o=typeof a=="string"?a:$ce.isVariantCreator(a)?a.output.type:void 0;return o!=null?Object.assign(Object.assign({},s),{[o]:r}):s},{});return new e(this.target,this.key,Object.assign(Object.assign({},this.handler),i))}else return new e(this.target,this.key,Object.assign(Object.assign({},this.handler),t))}};fc.Matcher=tx;function Yce(e){function t(r){let n=typeof r=="string"?{[e]:r}:r;return new tx(n,e,{})}return{matcher:t}}fc.matcherImpl=Yce});var fD=w(rx=>{"use strict";d();Object.defineProperty(rx,"__esModule",{value:!0});rx.variantCosmos=void 0;var Xce=iD(),Jce=oD(),Zce=lc(),ele=_3(),tle=uD(),rle=A3(),nle=C3(),ile=cD(),sle=b3();function ale({key:e}){let{isType:t}=Xce.isTypeImpl(e),{flags:r}=tle.flagsImpl(e);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({key:e,isType:t,flags:r},rle.isOfVariantImpl(e)),Jce.matchImpl(e)),sle.matcherImpl(e)),nle.remoteImpl(e)),ile.typedImpl(e)),ele.typesImpl(e)),Zce.variantImpl(e))}rx.variantCosmos=ale});var dD=w(ft=>{"use strict";d();var jr;Object.defineProperty(ft,"__esModule",{value:!0});ft.withFallback=ft.variation=ft.variantModule=ft.variantList=ft.variant=ft.types=ft.typed=ft.lookup=ft.sequence=ft.scoped=ft.remote=ft.prematch=ft.partial=ft.otherwise=ft.onLiteral=ft.ofLiteral=ft.matcher=ft.match=ft.isType=ft.isOfVariant=ft.inferTypes=ft.flags=ft.descope=void 0;var ole=fD();jr=ole.variantCosmos({key:"type"}),ft.descope=jr.descope,ft.flags=jr.flags,ft.inferTypes=jr.inferTypes,ft.isOfVariant=jr.isOfVariant,ft.isType=jr.isType,ft.match=jr.match,ft.matcher=jr.matcher,ft.ofLiteral=jr.ofLiteral,ft.onLiteral=jr.onLiteral,ft.otherwise=jr.otherwise,ft.partial=jr.partial,ft.prematch=jr.prematch,ft.remote=jr.remote,ft.scoped=jr.scoped,ft.sequence=jr.sequence,ft.lookup=jr.lookup,ft.typed=jr.typed,ft.types=jr.types,ft.variant=jr.variant,ft.variantList=jr.variantList,ft.variantModule=jr.variantModule,ft.variation=jr.variation,ft.withFallback=jr.withFallback});var D3=w(nx=>{"use strict";d();Object.defineProperty(nx,"__esModule",{value:!0});nx.augment=void 0;var ule=dD(),cle=lc();function lle(e,t){return Object.keys(e).reduce((r,n)=>{let i=e[n],s=cle.isVariantCreator(i)?ule.variation(i.output.type,(...a)=>{let o=i(...a);return Object.assign(Object.assign({},t(o)),o)}):(...a)=>{let o=e[n],u=typeof o=="function"?o(...a):{};return Object.assign(Object.assign({},t(u)),u)};return Object.assign(Object.assign({},r),{[n]:s})},{})}nx.augment=lle});var w3=w(ix=>{"use strict";d();Object.defineProperty(ix,"__esModule",{value:!0});ix.constrained=void 0;function ple(e,t){return t}ix.constrained=ple});var T3=w(sx=>{"use strict";d();Object.defineProperty(sx,"__esModule",{value:!0});sx.construct=void 0;function fle(e){return(...t)=>new e(t)}sx.construct=fle});var R3=w(Fl=>{"use strict";d();Object.defineProperty(Fl,"__esModule",{value:!0});Fl.Alpha=Fl.onTerms=void 0;var dle=uD(),hle=lc(),mle=Symbol("VARIANT GENERIC TEMPLATE");function gle(e){return Object.assign(Object.assign({},e(Fl.Alpha)),{[mle]:void 0})}Fl.onTerms=gle;var I3="__term",vle=hle.variantImpl(I3).variant,yle=dle.flagsImpl(I3).flags,xle=vle(["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]);Fl.Alpha=yle(Object.values(xle).map(e=>e()))});var N3=w(jf=>{"use strict";d();Object.defineProperty(jf,"__esModule",{value:!0});jf.typeMap=jf.typeCatalog=void 0;function Ele(e){return Object.values(e).reduce((t,r)=>Object.assign(Object.assign({},t),{[r.output.type]:r.output.type}),{})}jf.typeCatalog=Ele;function _le(e){return Object.keys(e).reduce((t,r)=>Object.assign(Object.assign({},t),{[r]:e[r].output.type}),{})}jf.typeMap=_le});var P3=w(Vf=>{"use strict";d();Object.defineProperty(Vf,"__esModule",{value:!0});Vf.literalist=Vf.catalog=void 0;function O3(e,t){return Array.isArray(e)?e.reduce((r,n,i)=>Object.assign(Object.assign({},r),{[n]:t!=null?t(n,i):n}),{}):e}Vf.catalog=O3;Vf.literalist=O3});var B3=w(ax=>{"use strict";d();Object.defineProperty(ax,"__esModule",{value:!0});ax.patterned=void 0;function Ale(e,t){return t}ax.patterned=Ale});var L3=w(dc=>{"use strict";d();Object.defineProperty(dc,"__esModule",{value:!0});dc.nil=dc.payload=dc.fields=void 0;function Cle(e={}){return(...t)=>{let[r]=t;return Object.assign(Object.assign({},e),r)}}dc.fields=Cle;function Sle(e){return t=>({payload:t})}dc.payload=Sle;var ble=()=>({});dc.nil=ble});var U3=w(Ut=>{"use strict";d();Object.defineProperty(Ut,"__esModule",{value:!0});Ut.payload=Ut.nil=Ut.fields=Ut.HOI=Ut.pass=Ut.patterned=Ut.unpack=Ut.just=Ut.constant=Ut.literalist=Ut.catalog=Ut.typeCatalog=Ut.typeMap=Ut.onTerms=Ut.variantCosmos=Ut.construct=Ut.constrained=Ut.augment=void 0;var Dle=D3();Object.defineProperty(Ut,"augment",{enumerable:!0,get:function(){return Dle.augment}});var wle=w3();Object.defineProperty(Ut,"constrained",{enumerable:!0,get:function(){return wle.constrained}});var Tle=T3();Object.defineProperty(Ut,"construct",{enumerable:!0,get:function(){return Tle.construct}});var Ile=fD();Object.defineProperty(Ut,"variantCosmos",{enumerable:!0,get:function(){return Ile.variantCosmos}});var Rle=R3();Object.defineProperty(Ut,"onTerms",{enumerable:!0,get:function(){return Rle.onTerms}});var F3=N3();Object.defineProperty(Ut,"typeMap",{enumerable:!0,get:function(){return F3.typeMap}});Object.defineProperty(Ut,"typeCatalog",{enumerable:!0,get:function(){return F3.typeCatalog}});var k3=P3();Object.defineProperty(Ut,"catalog",{enumerable:!0,get:function(){return k3.catalog}});Object.defineProperty(Ut,"literalist",{enumerable:!0,get:function(){return k3.literalist}});var hD=lD();Object.defineProperty(Ut,"constant",{enumerable:!0,get:function(){return hD.constant}});Object.defineProperty(Ut,"just",{enumerable:!0,get:function(){return hD.just}});Object.defineProperty(Ut,"unpack",{enumerable:!0,get:function(){return hD.unpack}});var Nle=B3();Object.defineProperty(Ut,"patterned",{enumerable:!0,get:function(){return Nle.patterned}});var Ole=cD();Object.defineProperty(Ut,"pass",{enumerable:!0,get:function(){return Ole.pass}});var Ple=sD();Object.defineProperty(Ut,"HOI",{enumerable:!0,get:function(){return Ple.HOI}});var mD=L3();Object.defineProperty(Ut,"fields",{enumerable:!0,get:function(){return mD.fields}});Object.defineProperty(Ut,"nil",{enumerable:!0,get:function(){return mD.nil}});Object.defineProperty(Ut,"payload",{enumerable:!0,get:function(){return mD.payload}})});var St=w(hc=>{"use strict";d();var Ble=hc&&hc.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),M3=hc&&hc.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Ble(t,e,r)};Object.defineProperty(hc,"__esModule",{value:!0});M3(U3(),hc);M3(dD(),hc)});var ux=w((aqe,H3)=>{"use strict";d();function Lle(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}H3.exports=Lle});var W3=w((uqe,G3)=>{"use strict";d();var Fle=typeof global=="object"&&global&&global.Object===Object&&global;G3.exports=Fle});var xD=w((lqe,Q3)=>{"use strict";d();var kle=W3(),Ule=typeof self=="object"&&self&&self.Object===Object&&self,Mle=kle||Ule||Function("return this")();Q3.exports=Mle});var K3=w((fqe,z3)=>{"use strict";d();var qle=xD(),jle=function(){return qle.Date.now()};z3.exports=jle});var Y3=w((hqe,$3)=>{"use strict";d();var Vle=/\s/;function Hle(e){for(var t=e.length;t--&&Vle.test(e.charAt(t)););return t}$3.exports=Hle});var J3=w((gqe,X3)=>{"use strict";d();var Gle=Y3(),Wle=/^\s+/;function Qle(e){return e&&e.slice(0,Gle(e)+1).replace(Wle,"")}X3.exports=Qle});var ED=w((yqe,Z3)=>{"use strict";d();var zle=xD(),Kle=zle.Symbol;Z3.exports=Kle});var n8=w((Eqe,r8)=>{"use strict";d();var e8=ED(),t8=Object.prototype,$le=t8.hasOwnProperty,Yle=t8.toString,Jm=e8?e8.toStringTag:void 0;function Xle(e){var t=$le.call(e,Jm),r=e[Jm];try{e[Jm]=void 0;var n=!0}catch{}var i=Yle.call(e);return n&&(t?e[Jm]=r:delete e[Jm]),i}r8.exports=Xle});var s8=w((Aqe,i8)=>{"use strict";d();var Jle=Object.prototype,Zle=Jle.toString;function epe(e){return Zle.call(e)}i8.exports=epe});var c8=w((Sqe,u8)=>{"use strict";d();var a8=ED(),tpe=n8(),rpe=s8(),npe="[object Null]",ipe="[object Undefined]",o8=a8?a8.toStringTag:void 0;function spe(e){return e==null?e===void 0?ipe:npe:o8&&o8 in Object(e)?tpe(e):rpe(e)}u8.exports=spe});var p8=w((Dqe,l8)=>{"use strict";d();function ape(e){return e!=null&&typeof e=="object"}l8.exports=ape});var d8=w((Tqe,f8)=>{"use strict";d();var ope=c8(),upe=p8(),cpe="[object Symbol]";function lpe(e){return typeof e=="symbol"||upe(e)&&ope(e)==cpe}f8.exports=lpe});var v8=w((Rqe,g8)=>{"use strict";d();var ppe=J3(),h8=ux(),fpe=d8(),m8=NaN,dpe=/^[-+]0x[0-9a-f]+$/i,hpe=/^0b[01]+$/i,mpe=/^0o[0-7]+$/i,gpe=parseInt;function vpe(e){if(typeof e=="number")return e;if(fpe(e))return m8;if(h8(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=h8(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ppe(e);var r=hpe.test(e);return r||mpe.test(e)?gpe(e.slice(2),r?2:8):dpe.test(e)?m8:+e}g8.exports=vpe});var AD=w((Oqe,x8)=>{"use strict";d();var ype=ux(),_D=K3(),y8=v8(),xpe="Expected a function",Epe=Math.max,_pe=Math.min;function Ape(e,t,r){var n,i,s,a,o,u,l=0,f=!1,h=!1,m=!0;if(typeof e!="function")throw new TypeError(xpe);t=y8(t)||0,ype(r)&&(f=!!r.leading,h="maxWait"in r,s=h?Epe(y8(r.maxWait)||0,t):s,m="trailing"in r?!!r.trailing:m);function y(k){var te=n,ce=i;return n=i=void 0,l=k,a=e.apply(ce,te),a}function _(k){return l=k,o=setTimeout(D,t),f?y(k):a}function C(k){var te=k-u,ce=k-l,ne=t-te;return h?_pe(ne,s-ce):ne}function b(k){var te=k-u,ce=k-l;return u===void 0||te>=t||te<0||h&&ce>=s}function D(){var k=_D();if(b(k))return L(k);o=setTimeout(D,C(k))}function L(k){return o=void 0,m&&n?y(k):(n=i=void 0,a)}function F(){o!==void 0&&clearTimeout(o),l=0,n=u=i=o=void 0}function q(){return o===void 0?a:L(_D())}function M(){var k=_D(),te=b(k);if(n=arguments,i=this,u=k,te){if(o===void 0)return _(u);if(h)return clearTimeout(o),o=setTimeout(D,t),y(u)}return o===void 0&&(o=setTimeout(D,t)),a}return M.cancel=F,M.flush=q,M}x8.exports=Ape});var _8=w((Bqe,E8)=>{"use strict";d();var Cpe=AD(),Spe=ux(),bpe="Expected a function";function Dpe(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(bpe);return Spe(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Cpe(e,t,{leading:n,maxWait:t,trailing:i})}E8.exports=Dpe});var C8=w((Mqe,wpe)=>{wpe.exports=[{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",pr:"SYSTEM_PULLREQUEST_PULLREQUESTID"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]}},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var D8=w(ls=>{"use strict";d();var b8=C8(),Cn=process.env;Object.defineProperty(ls,"_vendors",{value:b8.map(function(e){return e.constant})});ls.name=null;ls.isPR=null;b8.forEach(function(e){let r=(Array.isArray(e.env)?e.env:[e.env]).every(function(n){return S8(n)});if(ls[e.constant]=r,!!r)switch(ls.name=e.name,typeof e.pr){case"string":ls.isPR=!!Cn[e.pr];break;case"object":"env"in e.pr?ls.isPR=e.pr.env in Cn&&Cn[e.pr.env]!==e.pr.ne:"any"in e.pr?ls.isPR=e.pr.any.some(function(n){return!!Cn[n]}):ls.isPR=S8(e.pr);break;default:ls.isPR=null}});ls.isCI=!!(Cn.CI!=="false"&&(Cn.BUILD_ID||Cn.BUILD_NUMBER||Cn.CI||Cn.CI_APP_ID||Cn.CI_BUILD_ID||Cn.CI_BUILD_NUMBER||Cn.CI_NAME||Cn.CONTINUOUS_INTEGRATION||Cn.RUN_ID||ls.name));function S8(e){return typeof e=="string"?!!Cn[e]:"env"in e?Cn[e.env]&&Cn[e.env].includes(e.includes):"any"in e?e.any.some(function(t){return!!Cn[t]}):Object.keys(e).every(function(t){return Cn[t]===e[t]})}});var SD=w((Vqe,w8)=>{"use strict";d();w8.exports=D8().isCI});var T8=w((Qqe,cx)=>{"use strict";d();cx.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&cx.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&cx.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var TD=w((Kqe,zf)=>{"use strict";d();var Vr=global.process,Ul=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};Ul(Vr)?(I8=J("assert"),Wf=T8(),R8=/^win/i.test(Vr.platform),rg=J("events"),typeof rg!="function"&&(rg=rg.EventEmitter),Vr.__signal_exit_emitter__?Nn=Vr.__signal_exit_emitter__:(Nn=Vr.__signal_exit_emitter__=new rg,Nn.count=0,Nn.emitted={}),Nn.infinite||(Nn.setMaxListeners(1/0),Nn.infinite=!0),zf.exports=function(e,t){if(!Ul(global.process))return function(){};I8.equal(typeof e,"function","a callback must be provided for exit handler"),Qf===!1&&DD();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){Nn.removeListener(r,e),Nn.listeners("exit").length===0&&Nn.listeners("afterexit").length===0&&lx()};return Nn.on(r,e),n},lx=function(){!Qf||!Ul(global.process)||(Qf=!1,Wf.forEach(function(t){try{Vr.removeListener(t,px[t])}catch{}}),Vr.emit=fx,Vr.reallyExit=wD,Nn.count-=1)},zf.exports.unload=lx,Ml=function(t,r,n){Nn.emitted[t]||(Nn.emitted[t]=!0,Nn.emit(t,r,n))},px={},Wf.forEach(function(e){px[e]=function(){if(Ul(global.process)){var r=Vr.listeners(e);r.length===Nn.count&&(lx(),Ml("exit",null,e),Ml("afterexit",null,e),R8&&e==="SIGHUP"&&(e="SIGINT"),Vr.kill(Vr.pid,e))}}}),zf.exports.signals=function(){return Wf},Qf=!1,DD=function(){Qf||!Ul(global.process)||(Qf=!0,Nn.count+=1,Wf=Wf.filter(function(t){try{return Vr.on(t,px[t]),!0}catch{return!1}}),Vr.emit=O8,Vr.reallyExit=N8)},zf.exports.load=DD,wD=Vr.reallyExit,N8=function(t){Ul(global.process)&&(Vr.exitCode=t||0,Ml("exit",Vr.exitCode,null),Ml("afterexit",Vr.exitCode,null),wD.call(Vr,Vr.exitCode))},fx=Vr.emit,O8=function(t,r){if(t==="exit"&&Ul(global.process)){r!==void 0&&(Vr.exitCode=r);var n=fx.apply(this,arguments);return Ml("exit",Vr.exitCode,null),Ml("afterexit",Vr.exitCode,null),n}else return fx.apply(this,arguments)}):zf.exports=function(){return function(){}};var I8,Wf,R8,rg,Nn,lx,Ml,px,Qf,DD,wD,N8,fx,O8});var aU=w(br=>{"use strict";d();function PD(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(0<dx(i,t))e[n]=t,e[r]=i,r=n;else break e}}function ba(e){return e.length===0?null:e[0]}function mx(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,s=i>>>1;n<s;){var a=2*(n+1)-1,o=e[a],u=a+1,l=e[u];if(0>dx(o,r))u<i&&0>dx(l,o)?(e[n]=l,e[u]=r,n=u):(e[n]=o,e[a]=r,n=a);else if(u<i&&0>dx(l,r))e[n]=l,e[u]=r,n=u;else break e}}return t}function dx(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(X4=performance,br.unstable_now=function(){return X4.now()}):(RD=Date,J4=RD.now(),br.unstable_now=function(){return RD.now()-J4});var X4,RD,J4,po=[],mc=[],Ppe=1,Bs=null,ui=3,gx=!1,ql=!1,ig=!1,tU=typeof setTimeout=="function"?setTimeout:null,rU=typeof clearTimeout=="function"?clearTimeout:null,Z4=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function BD(e){for(var t=ba(mc);t!==null;){if(t.callback===null)mx(mc);else if(t.startTime<=e)mx(mc),t.sortIndex=t.expirationTime,PD(po,t);else break;t=ba(mc)}}function LD(e){if(ig=!1,BD(e),!ql)if(ba(po)!==null)ql=!0,kD(FD);else{var t=ba(mc);t!==null&&UD(LD,t.startTime-e)}}function FD(e,t){ql=!1,ig&&(ig=!1,rU(sg),sg=-1),gx=!0;var r=ui;try{for(BD(t),Bs=ba(po);Bs!==null&&(!(Bs.expirationTime>t)||e&&!sU());){var n=Bs.callback;if(typeof n=="function"){Bs.callback=null,ui=Bs.priorityLevel;var i=n(Bs.expirationTime<=t);t=br.unstable_now(),typeof i=="function"?Bs.callback=i:Bs===ba(po)&&mx(po),BD(t)}else mx(po);Bs=ba(po)}if(Bs!==null)var s=!0;else{var a=ba(mc);a!==null&&UD(LD,a.startTime-t),s=!1}return s}finally{Bs=null,ui=r,gx=!1}}var vx=!1,hx=null,sg=-1,nU=5,iU=-1;function sU(){return!(br.unstable_now()-iU<nU)}function ND(){if(hx!==null){var e=br.unstable_now();iU=e;var t=!0;try{t=hx(!0,e)}finally{t?ng():(vx=!1,hx=null)}}else vx=!1}var ng;typeof Z4=="function"?ng=function(){Z4(ND)}:typeof MessageChannel<"u"?(OD=new MessageChannel,eU=OD.port2,OD.port1.onmessage=ND,ng=function(){eU.postMessage(null)}):ng=function(){tU(ND,0)};var OD,eU;function kD(e){hx=e,vx||(vx=!0,ng())}function UD(e,t){sg=tU(function(){e(br.unstable_now())},t)}br.unstable_IdlePriority=5;br.unstable_ImmediatePriority=1;br.unstable_LowPriority=4;br.unstable_NormalPriority=3;br.unstable_Profiling=null;br.unstable_UserBlockingPriority=2;br.unstable_cancelCallback=function(e){e.callback=null};br.unstable_continueExecution=function(){ql||gx||(ql=!0,kD(FD))};br.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):nU=0<e?Math.floor(1e3/e):5};br.unstable_getCurrentPriorityLevel=function(){return ui};br.unstable_getFirstCallbackNode=function(){return ba(po)};br.unstable_next=function(e){switch(ui){case 1:case 2:case 3:var t=3;break;default:t=ui}var r=ui;ui=t;try{return e()}finally{ui=r}};br.unstable_pauseExecution=function(){};br.unstable_requestPaint=function(){};br.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=ui;ui=e;try{return t()}finally{ui=r}};br.unstable_scheduleCallback=function(e,t,r){var n=br.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=r+i,e={id:Ppe++,callback:t,priorityLevel:e,startTime:r,expirationTime:i,sortIndex:-1},r>n?(e.sortIndex=r,PD(mc,e),ba(po)===null&&e===ba(mc)&&(ig?(rU(sg),sg=-1):ig=!0,UD(LD,r-n))):(e.sortIndex=i,PD(po,e),ql||gx||(ql=!0,kD(FD))),e};br.unstable_shouldYield=sU;br.unstable_wrapCallback=function(e){var t=ui;return function(){var r=ui;ui=t;try{return e.apply(this,arguments)}finally{ui=r}}}});var uU=w((dje,oU)=>{"use strict";d();oU.exports=aU()});var lU=w((mje,cU)=>{"use strict";d();cU.exports=function(t){var r={},n=J("react"),i=uU(),s=Object.assign;function a(c){for(var p="https://reactjs.org/docs/error-decoder.html?invariant="+c,g=1;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g]);return"Minified React error #"+c+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u=Symbol.for("react.element"),l=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),_=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),F=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var q=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function k(c){return c===null||typeof c!="object"?null:(c=M&&c[M]||c["@@iterator"],typeof c=="function"?c:null)}function te(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case f:return"Fragment";case l:return"Portal";case m:return"Profiler";case h:return"StrictMode";case b:return"Suspense";case D:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case _:return(c.displayName||"Context")+".Consumer";case y:return(c._context.displayName||"Context")+".Provider";case C:var p=c.render;return c=c.displayName,c||(c=p.displayName||p.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case L:return p=c.displayName||null,p!==null?p:te(c.type)||"Memo";case F:p=c._payload,c=c._init;try{return te(c(p))}catch{}}return null}function ce(c){var p=c.type;switch(c.tag){case 24:return"Cache";case 9:return(p.displayName||"Context")+".Consumer";case 10:return(p._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=p.render,c=c.displayName||c.name||"",p.displayName||(c!==""?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return te(p);case 8:return p===h?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p}return null}function ne(c){var p=c,g=c;if(c.alternate)for(;p.return;)p=p.return;else{c=p;do p=c,p.flags&4098&&(g=p.return),c=p.return;while(c)}return p.tag===3?g:null}function pe(c){if(ne(c)!==c)throw Error(a(188))}function Q(c){var p=c.alternate;if(!p){if(p=ne(c),p===null)throw Error(a(188));return p!==c?null:c}for(var g=c,v=p;;){var A=g.return;if(A===null)break;var S=A.alternate;if(S===null){if(v=A.return,v!==null){g=v;continue}break}if(A.child===S.child){for(S=A.child;S;){if(S===g)return pe(A),c;if(S===v)return pe(A),p;S=S.sibling}throw Error(a(188))}if(g.return!==v.return)g=A,v=S;else{for(var O=!1,W=A.child;W;){if(W===g){O=!0,g=A,v=S;break}if(W===v){O=!0,v=A,g=S;break}W=W.sibling}if(!O){for(W=S.child;W;){if(W===g){O=!0,g=S,v=A;break}if(W===v){O=!0,v=S,g=A;break}W=W.sibling}if(!O)throw Error(a(189))}}if(g.alternate!==v)throw Error(a(190))}if(g.tag!==3)throw Error(a(188));return g.stateNode.current===g?c:p}function be(c){return c=Q(c),c!==null?Ie(c):null}function Ie(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){var p=Ie(c);if(p!==null)return p;c=c.sibling}return null}function et(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){if(c.tag!==4){var p=et(c);if(p!==null)return p}c=c.sibling}return null}var j=Array.isArray,z=t.getPublicInstance,oe=t.getRootHostContext,ve=t.getChildHostContext,Ve=t.prepareForCommit,dt=t.resetAfterCommit,ht=t.createInstance,Lt=t.appendInitialChild,Je=t.finalizeInitialChildren,er=t.prepareUpdate,vt=t.shouldSetTextContent,Ze=t.createTextInstance,Er=t.scheduleTimeout,Ft=t.cancelTimeout,Ee=t.noTimeout,ut=t.isPrimaryRenderer,le=t.supportsMutation,Ue=t.supportsPersistence,tt=t.supportsHydration,Ct=t.getInstanceFromNode,wt=t.preparePortalMount,$u=t.getCurrentEventPriority,fa=t.detachDeletedInstance,ym=t.supportsMicrotasks,Vv=t.scheduleMicrotask,Yu=t.supportsTestSelectors,Hv=t.findFiberRoot,df=t.getBoundingRect,hf=t.getTextContent,Ss=t.isHiddenSubtree,mf=t.matchAccessibilityRole,xm=t.setFocusIfFocusable,Al=t.setupIntersectionObserver,Xu=t.appendChild,gf=t.appendChildToContainer,to=t.commitTextUpdate,Em=t.commitMount,da=t.commitUpdate,_m=t.insertBefore,ro=t.insertInContainerBefore,Am=t.removeChild,_b=t.removeChildFromContainer,vf=t.resetTextContent,Ab=t.hideInstance,Cb=t.hideTextInstance,Sb=t.unhideInstance,ha=t.unhideTextInstance,yf=t.clearContainer,Gv=t.cloneInstance,Mi=t.createContainerChildSet,Cm=t.appendChildToContainerChildSet,xf=t.finalizeContainerChildren,Cl=t.replaceContainerChildren,Ef=t.cloneHiddenInstance,_f=t.cloneHiddenTextInstance,Sm=t.canHydrateInstance,bb=t.canHydrateTextInstance,Db=t.canHydrateSuspenseInstance,Wv=t.isSuspenseInstancePending,bm=t.isSuspenseInstanceFallback,wb=t.getSuspenseInstanceFallbackErrorDetails,Tb=t.registerSuspenseInstanceRetry,Af=t.getNextHydratableSibling,Qv=t.getFirstHydratableChild,Cf=t.getFirstHydratableChildWithinContainer,zv=t.getFirstHydratableChildWithinSuspenseInstance,Ib=t.hydrateInstance,Kv=t.hydrateTextInstance,Sf=t.hydrateSuspenseInstance,Rb=t.getNextHydratableInstanceAfterSuspenseInstance,$v=t.commitHydratedContainer,Dm=t.commitHydratedSuspenseInstance,ma=t.clearSuspenseBoundary,Yv=t.clearSuspenseBoundaryFromContainer,B=t.shouldDeleteUnhydratedTailInstances,P=t.didNotMatchHydratedContainerTextInstance,$=t.didNotMatchHydratedTextInstance,Z;function Y(c){if(Z===void 0)try{throw Error()}catch(g){var p=g.stack.trim().match(/\n( *(at )?)/);Z=p&&p[1]||""}return`
|
|
28
|
-
`+Z+c}var ie=!1;function xe(c,p){if(!c||ie)return"";ie=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(p)if(p=function(){throw Error()},Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(Ae){var v=Ae}Reflect.construct(c,[],p)}else{try{p.call()}catch(Ae){v=Ae}c.call(p.prototype)}else{try{throw Error()}catch(Ae){v=Ae}c()}}catch(Ae){if(Ae&&v&&typeof Ae.stack=="string"){for(var A=Ae.stack.split(`
|
|
29
|
-
`),S=v.stack.split(`
|
|
30
|
-
`),O=A.length-1,W=S.length-1;1<=O&&0<=W&&A[O]!==S[W];)W--;for(;1<=O&&0<=W;O--,W--)if(A[O]!==S[W]){if(O!==1||W!==1)do if(O--,W--,0>W||A[O]!==S[W]){var re=`
|
|
31
|
-
`+A[O].replace(" at new "," at ");return c.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",c.displayName)),re}while(1<=O&&0<=W);break}}}finally{ie=!1,Error.prepareStackTrace=g}return(c=c?c.displayName||c.name:"")?Y(c):""}var fe=Object.prototype.hasOwnProperty,_e=[],he=-1;function De(c){return{current:c}}function Ye(c){0>he||(c.current=_e[he],_e[he]=null,he--)}function Xe(c,p){he++,_e[he]=c.current,c.current=p}var Bt={},pt=De(Bt),Yt=De(!1),qi=Bt;function ji(c,p){var g=c.type.contextTypes;if(!g)return Bt;var v=c.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===p)return v.__reactInternalMemoizedMaskedChildContext;var A={},S;for(S in g)A[S]=p[S];return v&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=p,c.__reactInternalMemoizedMaskedChildContext=A),A}function dn(c){return c=c.childContextTypes,c!=null}function Ju(){Ye(Yt),Ye(pt)}function Qo(c,p,g){if(pt.current!==Bt)throw Error(a(168));Xe(pt,p),Xe(Yt,g)}function wm(c,p,g){var v=c.stateNode;if(p=p.childContextTypes,typeof v.getChildContext!="function")return g;v=v.getChildContext();for(var A in v)if(!(A in p))throw Error(a(108,ce(c)||"Unknown",A));return s({},g,v)}function Sl(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||Bt,qi=pt.current,Xe(pt,c),Xe(Yt,Yt.current),!0}function pF(c,p,g){var v=c.stateNode;if(!v)throw Error(a(169));g?(c=wm(c,p,qi),v.__reactInternalMemoizedMergedChildContext=c,Ye(Yt),Ye(pt),Xe(pt,c)):Ye(Yt),Xe(Yt,g)}var ga=Math.clz32?Math.clz32:Joe,Yoe=Math.log,Xoe=Math.LN2;function Joe(c){return c>>>=0,c===0?32:31-(Yoe(c)/Xoe|0)|0}var Xv=64,Jv=4194304;function Tm(c){switch(c&-c){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return c&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function Zv(c,p){var g=c.pendingLanes;if(g===0)return 0;var v=0,A=c.suspendedLanes,S=c.pingedLanes,O=g&268435455;if(O!==0){var W=O&~A;W!==0?v=Tm(W):(S&=O,S!==0&&(v=Tm(S)))}else O=g&~A,O!==0?v=Tm(O):S!==0&&(v=Tm(S));if(v===0)return 0;if(p!==0&&p!==v&&!(p&A)&&(A=v&-v,S=p&-p,A>=S||A===16&&(S&4194240)!==0))return p;if(v&4&&(v|=g&16),p=c.entangledLanes,p!==0)for(c=c.entanglements,p&=v;0<p;)g=31-ga(p),A=1<<g,v|=c[g],p&=~A;return v}function Zoe(c,p){switch(c){case 1:case 2:case 4:return p+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return p+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function eue(c,p){for(var g=c.suspendedLanes,v=c.pingedLanes,A=c.expirationTimes,S=c.pendingLanes;0<S;){var O=31-ga(S),W=1<<O,re=A[O];re===-1?(!(W&g)||W&v)&&(A[O]=Zoe(W,p)):re<=p&&(c.expiredLanes|=W),S&=~W}}function Nb(c){return c=c.pendingLanes&-1073741825,c!==0?c:c&1073741824?1073741824:0}function fF(){var c=Xv;return Xv<<=1,!(Xv&4194240)&&(Xv=64),c}function Ob(c){for(var p=[],g=0;31>g;g++)p.push(c);return p}function Im(c,p,g){c.pendingLanes|=p,p!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,p=31-ga(p),c[p]=g}function tue(c,p){var g=c.pendingLanes&~p;c.pendingLanes=p,c.suspendedLanes=0,c.pingedLanes=0,c.expiredLanes&=p,c.mutableReadLanes&=p,c.entangledLanes&=p,p=c.entanglements;var v=c.eventTimes;for(c=c.expirationTimes;0<g;){var A=31-ga(g),S=1<<A;p[A]=0,v[A]=-1,c[A]=-1,g&=~S}}function Pb(c,p){var g=c.entangledLanes|=p;for(c=c.entanglements;g;){var v=31-ga(g),A=1<<v;A&p|c[v]&p&&(c[v]|=p),g&=~A}}var ar=0;function dF(c){return c&=-c,1<c?4<c?c&268435455?16:536870912:4:1}var Bb=i.unstable_scheduleCallback,hF=i.unstable_cancelCallback,rue=i.unstable_shouldYield,nue=i.unstable_requestPaint,wn=i.unstable_now,Lb=i.unstable_ImmediatePriority,iue=i.unstable_UserBlockingPriority,Fb=i.unstable_NormalPriority,sue=i.unstable_IdlePriority,ey=null,no=null;function aue(c){if(no&&typeof no.onCommitFiberRoot=="function")try{no.onCommitFiberRoot(ey,c,void 0,(c.current.flags&128)===128)}catch{}}function oue(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var va=typeof Object.is=="function"?Object.is:oue,zo=null,ty=!1,kb=!1;function mF(c){zo===null?zo=[c]:zo.push(c)}function uue(c){ty=!0,mF(c)}function io(){if(!kb&&zo!==null){kb=!0;var c=0,p=ar;try{var g=zo;for(ar=1;c<g.length;c++){var v=g[c];do v=v(!0);while(v!==null)}zo=null,ty=!1}catch(A){throw zo!==null&&(zo=zo.slice(c+1)),Bb(Lb,io),A}finally{ar=p,kb=!1}}return null}var bf=[],Df=0,ry=null,ny=0,bs=[],Ds=0,bl=null,Ko=1,$o="";function Dl(c,p){bf[Df++]=ny,bf[Df++]=ry,ry=c,ny=p}function gF(c,p,g){bs[Ds++]=Ko,bs[Ds++]=$o,bs[Ds++]=bl,bl=c;var v=Ko;c=$o;var A=32-ga(v)-1;v&=~(1<<A),g+=1;var S=32-ga(p)+A;if(30<S){var O=A-A%5;S=(v&(1<<O)-1).toString(32),v>>=O,A-=O,Ko=1<<32-ga(p)+A|g<<A|v,$o=S+c}else Ko=1<<S|g<<A|v,$o=c}function Ub(c){c.return!==null&&(Dl(c,1),gF(c,1,0))}function Mb(c){for(;c===ry;)ry=bf[--Df],bf[Df]=null,ny=bf[--Df],bf[Df]=null;for(;c===bl;)bl=bs[--Ds],bs[Ds]=null,$o=bs[--Ds],bs[Ds]=null,Ko=bs[--Ds],bs[Ds]=null}var os=null,ws=null,Ur=!1,Rm=!1,ya=null;function vF(c,p){var g=Os(5,null,null,0);g.elementType="DELETED",g.stateNode=p,g.return=c,p=c.deletions,p===null?(c.deletions=[g],c.flags|=16):p.push(g)}function yF(c,p){switch(c.tag){case 5:return p=Sm(p,c.type,c.pendingProps),p!==null?(c.stateNode=p,os=c,ws=Qv(p),!0):!1;case 6:return p=bb(p,c.pendingProps),p!==null?(c.stateNode=p,os=c,ws=null,!0):!1;case 13:if(p=Db(p),p!==null){var g=bl!==null?{id:Ko,overflow:$o}:null;return c.memoizedState={dehydrated:p,treeContext:g,retryLane:1073741824},g=Os(18,null,null,0),g.stateNode=p,g.return=c,c.child=g,os=c,ws=null,!0}return!1;default:return!1}}function qb(c){return(c.mode&1)!==0&&(c.flags&128)===0}function jb(c){if(Ur){var p=ws;if(p){var g=p;if(!yF(c,p)){if(qb(c))throw Error(a(418));p=Af(g);var v=os;p&&yF(c,p)?vF(v,g):(c.flags=c.flags&-4097|2,Ur=!1,os=c)}}else{if(qb(c))throw Error(a(418));c.flags=c.flags&-4097|2,Ur=!1,os=c}}}function xF(c){for(c=c.return;c!==null&&c.tag!==5&&c.tag!==3&&c.tag!==13;)c=c.return;os=c}function iy(c){if(!tt||c!==os)return!1;if(!Ur)return xF(c),Ur=!0,!1;if(c.tag!==3&&(c.tag!==5||B(c.type)&&!vt(c.type,c.memoizedProps))){var p=ws;if(p){if(qb(c))throw EF(),Error(a(418));for(;p;)vF(c,p),p=Af(p)}}if(xF(c),c.tag===13){if(!tt)throw Error(a(316));if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(a(317));ws=Rb(c)}else ws=os?Af(c.stateNode):null;return!0}function EF(){for(var c=ws;c;)c=Af(c)}function wf(){tt&&(ws=os=null,Rm=Ur=!1)}function Vb(c){ya===null?ya=[c]:ya.push(c)}var cue=o.ReactCurrentBatchConfig;function sy(c,p){if(va(c,p))return!0;if(typeof c!="object"||c===null||typeof p!="object"||p===null)return!1;var g=Object.keys(c),v=Object.keys(p);if(g.length!==v.length)return!1;for(v=0;v<g.length;v++){var A=g[v];if(!fe.call(p,A)||!va(c[A],p[A]))return!1}return!0}function lue(c){switch(c.tag){case 5:return Y(c.type);case 16:return Y("Lazy");case 13:return Y("Suspense");case 19:return Y("SuspenseList");case 0:case 2:case 15:return c=xe(c.type,!1),c;case 11:return c=xe(c.type.render,!1),c;case 1:return c=xe(c.type,!0),c;default:return""}}function xa(c,p){if(c&&c.defaultProps){p=s({},p),c=c.defaultProps;for(var g in c)p[g]===void 0&&(p[g]=c[g]);return p}return p}var ay=De(null),oy=null,Tf=null,Hb=null;function Gb(){Hb=Tf=oy=null}function _F(c,p,g){ut?(Xe(ay,p._currentValue),p._currentValue=g):(Xe(ay,p._currentValue2),p._currentValue2=g)}function Wb(c){var p=ay.current;Ye(ay),ut?c._currentValue=p:c._currentValue2=p}function Qb(c,p,g){for(;c!==null;){var v=c.alternate;if((c.childLanes&p)!==p?(c.childLanes|=p,v!==null&&(v.childLanes|=p)):v!==null&&(v.childLanes&p)!==p&&(v.childLanes|=p),c===g)break;c=c.return}}function If(c,p){oy=c,Hb=Tf=null,c=c.dependencies,c!==null&&c.firstContext!==null&&(c.lanes&p&&(Vi=!0),c.firstContext=null)}function Ts(c){var p=ut?c._currentValue:c._currentValue2;if(Hb!==c)if(c={context:c,memoizedValue:p,next:null},Tf===null){if(oy===null)throw Error(a(308));Tf=c,oy.dependencies={lanes:0,firstContext:c}}else Tf=Tf.next=c;return p}var wl=null;function zb(c){wl===null?wl=[c]:wl.push(c)}function AF(c,p,g,v){var A=p.interleaved;return A===null?(g.next=g,zb(p)):(g.next=A.next,A.next=g),p.interleaved=g,so(c,v)}function so(c,p){c.lanes|=p;var g=c.alternate;for(g!==null&&(g.lanes|=p),g=c,c=c.return;c!==null;)c.childLanes|=p,g=c.alternate,g!==null&&(g.childLanes|=p),g=c,c=c.return;return g.tag===3?g.stateNode:null}var Zu=!1;function Kb(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function CF(c,p){c=c.updateQueue,p.updateQueue===c&&(p.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects})}function Yo(c,p){return{eventTime:c,lane:p,tag:0,payload:null,callback:null,next:null}}function ec(c,p,g){var v=c.updateQueue;if(v===null)return null;if(v=v.shared,kt&2){var A=v.pending;return A===null?p.next=p:(p.next=A.next,A.next=p),v.pending=p,so(c,g)}return A=v.interleaved,A===null?(p.next=p,zb(v)):(p.next=A.next,A.next=p),v.interleaved=p,so(c,g)}function uy(c,p,g){if(p=p.updateQueue,p!==null&&(p=p.shared,(g&4194240)!==0)){var v=p.lanes;v&=c.pendingLanes,g|=v,p.lanes=g,Pb(c,g)}}function SF(c,p){var g=c.updateQueue,v=c.alternate;if(v!==null&&(v=v.updateQueue,g===v)){var A=null,S=null;if(g=g.firstBaseUpdate,g!==null){do{var O={eventTime:g.eventTime,lane:g.lane,tag:g.tag,payload:g.payload,callback:g.callback,next:null};S===null?A=S=O:S=S.next=O,g=g.next}while(g!==null);S===null?A=S=p:S=S.next=p}else A=S=p;g={baseState:v.baseState,firstBaseUpdate:A,lastBaseUpdate:S,shared:v.shared,effects:v.effects},c.updateQueue=g;return}c=g.lastBaseUpdate,c===null?g.firstBaseUpdate=p:c.next=p,g.lastBaseUpdate=p}function cy(c,p,g,v){var A=c.updateQueue;Zu=!1;var S=A.firstBaseUpdate,O=A.lastBaseUpdate,W=A.shared.pending;if(W!==null){A.shared.pending=null;var re=W,Ae=re.next;re.next=null,O===null?S=Ae:O.next=Ae,O=re;var We=c.alternate;We!==null&&(We=We.updateQueue,W=We.lastBaseUpdate,W!==O&&(W===null?We.firstBaseUpdate=Ae:W.next=Ae,We.lastBaseUpdate=re))}if(S!==null){var Et=A.baseState;O=0,We=Ae=re=null,W=S;do{var Fe=W.lane,Nr=W.eventTime;if((v&Fe)===Fe){We!==null&&(We=We.next={eventTime:Nr,lane:0,tag:W.tag,payload:W.payload,callback:W.callback,next:null});e:{var _r=c,Wi=W;switch(Fe=p,Nr=g,Wi.tag){case 1:if(_r=Wi.payload,typeof _r=="function"){Et=_r.call(Nr,Et,Fe);break e}Et=_r;break e;case 3:_r.flags=_r.flags&-65537|128;case 0:if(_r=Wi.payload,Fe=typeof _r=="function"?_r.call(Nr,Et,Fe):_r,Fe==null)break e;Et=s({},Et,Fe);break e;case 2:Zu=!0}}W.callback!==null&&W.lane!==0&&(c.flags|=64,Fe=A.effects,Fe===null?A.effects=[W]:Fe.push(W))}else Nr={eventTime:Nr,lane:Fe,tag:W.tag,payload:W.payload,callback:W.callback,next:null},We===null?(Ae=We=Nr,re=Et):We=We.next=Nr,O|=Fe;if(W=W.next,W===null){if(W=A.shared.pending,W===null)break;Fe=W,W=Fe.next,Fe.next=null,A.lastBaseUpdate=Fe,A.shared.pending=null}}while(!0);if(We===null&&(re=Et),A.baseState=re,A.firstBaseUpdate=Ae,A.lastBaseUpdate=We,p=A.shared.interleaved,p!==null){A=p;do O|=A.lane,A=A.next;while(A!==p)}else S===null&&(A.shared.lanes=0);Il|=O,c.lanes=O,c.memoizedState=Et}}function bF(c,p,g){if(c=p.effects,p.effects=null,c!==null)for(p=0;p<c.length;p++){var v=c[p],A=v.callback;if(A!==null){if(v.callback=null,v=g,typeof A!="function")throw Error(a(191,A));A.call(v)}}}var DF=new n.Component().refs;function $b(c,p,g,v){p=c.memoizedState,g=g(v,p),g=g==null?p:s({},p,g),c.memoizedState=g,c.lanes===0&&(c.updateQueue.baseState=g)}var ly={isMounted:function(c){return(c=c._reactInternals)?ne(c)===c:!1},enqueueSetState:function(c,p,g){c=c._reactInternals;var v=ai(),A=nc(c),S=Yo(v,A);S.payload=p,g!=null&&(S.callback=g),p=ec(c,S,A),p!==null&&(Ns(p,c,A,v),uy(p,c,A))},enqueueReplaceState:function(c,p,g){c=c._reactInternals;var v=ai(),A=nc(c),S=Yo(v,A);S.tag=1,S.payload=p,g!=null&&(S.callback=g),p=ec(c,S,A),p!==null&&(Ns(p,c,A,v),uy(p,c,A))},enqueueForceUpdate:function(c,p){c=c._reactInternals;var g=ai(),v=nc(c),A=Yo(g,v);A.tag=2,p!=null&&(A.callback=p),p=ec(c,A,v),p!==null&&(Ns(p,c,v,g),uy(p,c,v))}};function wF(c,p,g,v,A,S,O){return c=c.stateNode,typeof c.shouldComponentUpdate=="function"?c.shouldComponentUpdate(v,S,O):p.prototype&&p.prototype.isPureReactComponent?!sy(g,v)||!sy(A,S):!0}function TF(c,p,g){var v=!1,A=Bt,S=p.contextType;return typeof S=="object"&&S!==null?S=Ts(S):(A=dn(p)?qi:pt.current,v=p.contextTypes,S=(v=v!=null)?ji(c,A):Bt),p=new p(g,S),c.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=ly,c.stateNode=p,p._reactInternals=c,v&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=A,c.__reactInternalMemoizedMaskedChildContext=S),p}function IF(c,p,g,v){c=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(g,v),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(g,v),p.state!==c&&ly.enqueueReplaceState(p,p.state,null)}function Yb(c,p,g,v){var A=c.stateNode;A.props=g,A.state=c.memoizedState,A.refs=DF,Kb(c);var S=p.contextType;typeof S=="object"&&S!==null?A.context=Ts(S):(S=dn(p)?qi:pt.current,A.context=ji(c,S)),A.state=c.memoizedState,S=p.getDerivedStateFromProps,typeof S=="function"&&($b(c,p,S,g),A.state=c.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(p=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),p!==A.state&&ly.enqueueReplaceState(A,A.state,null),cy(c,g,A,v),A.state=c.memoizedState),typeof A.componentDidMount=="function"&&(c.flags|=4194308)}function Nm(c,p,g){if(c=g.ref,c!==null&&typeof c!="function"&&typeof c!="object"){if(g._owner){if(g=g._owner,g){if(g.tag!==1)throw Error(a(309));var v=g.stateNode}if(!v)throw Error(a(147,c));var A=v,S=""+c;return p!==null&&p.ref!==null&&typeof p.ref=="function"&&p.ref._stringRef===S?p.ref:(p=function(O){var W=A.refs;W===DF&&(W=A.refs={}),O===null?delete W[S]:W[S]=O},p._stringRef=S,p)}if(typeof c!="string")throw Error(a(284));if(!g._owner)throw Error(a(290,c))}return c}function py(c,p){throw c=Object.prototype.toString.call(p),Error(a(31,c==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":c))}function RF(c){var p=c._init;return p(c._payload)}function NF(c){function p(ee,K){if(c){var se=ee.deletions;se===null?(ee.deletions=[K],ee.flags|=16):se.push(K)}}function g(ee,K){if(!c)return null;for(;K!==null;)p(ee,K),K=K.sibling;return null}function v(ee,K){for(ee=new Map;K!==null;)K.key!==null?ee.set(K.key,K):ee.set(K.index,K),K=K.sibling;return ee}function A(ee,K){return ee=sc(ee,K),ee.index=0,ee.sibling=null,ee}function S(ee,K,se){return ee.index=se,c?(se=ee.alternate,se!==null?(se=se.index,se<K?(ee.flags|=2,K):se):(ee.flags|=2,K)):(ee.flags|=1048576,K)}function O(ee){return c&&ee.alternate===null&&(ee.flags|=2),ee}function W(ee,K,se,Me){return K===null||K.tag!==6?(K=k1(se,ee.mode,Me),K.return=ee,K):(K=A(K,se),K.return=ee,K)}function re(ee,K,se,Me){var ot=se.type;return ot===f?We(ee,K,se.props.children,Me,se.key):K!==null&&(K.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===F&&RF(ot)===K.type)?(Me=A(K,se.props),Me.ref=Nm(ee,K,se),Me.return=ee,Me):(Me=ky(se.type,se.key,se.props,null,ee.mode,Me),Me.ref=Nm(ee,K,se),Me.return=ee,Me)}function Ae(ee,K,se,Me){return K===null||K.tag!==4||K.stateNode.containerInfo!==se.containerInfo||K.stateNode.implementation!==se.implementation?(K=U1(se,ee.mode,Me),K.return=ee,K):(K=A(K,se.children||[]),K.return=ee,K)}function We(ee,K,se,Me,ot){return K===null||K.tag!==7?(K=Pl(se,ee.mode,Me,ot),K.return=ee,K):(K=A(K,se),K.return=ee,K)}function Et(ee,K,se){if(typeof K=="string"&&K!==""||typeof K=="number")return K=k1(""+K,ee.mode,se),K.return=ee,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case u:return se=ky(K.type,K.key,K.props,null,ee.mode,se),se.ref=Nm(ee,null,K),se.return=ee,se;case l:return K=U1(K,ee.mode,se),K.return=ee,K;case F:var Me=K._init;return Et(ee,Me(K._payload),se)}if(j(K)||k(K))return K=Pl(K,ee.mode,se,null),K.return=ee,K;py(ee,K)}return null}function Fe(ee,K,se,Me){var ot=K!==null?K.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return ot!==null?null:W(ee,K,""+se,Me);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case u:return se.key===ot?re(ee,K,se,Me):null;case l:return se.key===ot?Ae(ee,K,se,Me):null;case F:return ot=se._init,Fe(ee,K,ot(se._payload),Me)}if(j(se)||k(se))return ot!==null?null:We(ee,K,se,Me,null);py(ee,se)}return null}function Nr(ee,K,se,Me,ot){if(typeof Me=="string"&&Me!==""||typeof Me=="number")return ee=ee.get(se)||null,W(K,ee,""+Me,ot);if(typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case u:return ee=ee.get(Me.key===null?se:Me.key)||null,re(K,ee,Me,ot);case l:return ee=ee.get(Me.key===null?se:Me.key)||null,Ae(K,ee,Me,ot);case F:var Nt=Me._init;return Nr(ee,K,se,Nt(Me._payload),ot)}if(j(Me)||k(Me))return ee=ee.get(se)||null,We(K,ee,Me,ot,null);py(K,Me)}return null}function _r(ee,K,se,Me){for(var ot=null,Nt=null,_t=K,or=K=0,Rn=null;_t!==null&&or<se.length;or++){_t.index>or?(Rn=_t,_t=null):Rn=_t.sibling;var ur=Fe(ee,_t,se[or],Me);if(ur===null){_t===null&&(_t=Rn);break}c&&_t&&ur.alternate===null&&p(ee,_t),K=S(ur,K,or),Nt===null?ot=ur:Nt.sibling=ur,Nt=ur,_t=Rn}if(or===se.length)return g(ee,_t),Ur&&Dl(ee,or),ot;if(_t===null){for(;or<se.length;or++)_t=Et(ee,se[or],Me),_t!==null&&(K=S(_t,K,or),Nt===null?ot=_t:Nt.sibling=_t,Nt=_t);return Ur&&Dl(ee,or),ot}for(_t=v(ee,_t);or<se.length;or++)Rn=Nr(_t,ee,or,se[or],Me),Rn!==null&&(c&&Rn.alternate!==null&&_t.delete(Rn.key===null?or:Rn.key),K=S(Rn,K,or),Nt===null?ot=Rn:Nt.sibling=Rn,Nt=Rn);return c&&_t.forEach(function(ac){return p(ee,ac)}),Ur&&Dl(ee,or),ot}function Wi(ee,K,se,Me){var ot=k(se);if(typeof ot!="function")throw Error(a(150));if(se=ot.call(se),se==null)throw Error(a(151));for(var Nt=ot=null,_t=K,or=K=0,Rn=null,ur=se.next();_t!==null&&!ur.done;or++,ur=se.next()){_t.index>or?(Rn=_t,_t=null):Rn=_t.sibling;var ac=Fe(ee,_t,ur.value,Me);if(ac===null){_t===null&&(_t=Rn);break}c&&_t&&ac.alternate===null&&p(ee,_t),K=S(ac,K,or),Nt===null?ot=ac:Nt.sibling=ac,Nt=ac,_t=Rn}if(ur.done)return g(ee,_t),Ur&&Dl(ee,or),ot;if(_t===null){for(;!ur.done;or++,ur=se.next())ur=Et(ee,ur.value,Me),ur!==null&&(K=S(ur,K,or),Nt===null?ot=ur:Nt.sibling=ur,Nt=ur);return Ur&&Dl(ee,or),ot}for(_t=v(ee,_t);!ur.done;or++,ur=se.next())ur=Nr(_t,ee,or,ur.value,Me),ur!==null&&(c&&ur.alternate!==null&&_t.delete(ur.key===null?or:ur.key),K=S(ur,K,or),Nt===null?ot=ur:Nt.sibling=ur,Nt=ur);return c&&_t.forEach(function(que){return p(ee,que)}),Ur&&Dl(ee,or),ot}function Zo(ee,K,se,Me){if(typeof se=="object"&&se!==null&&se.type===f&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case u:e:{for(var ot=se.key,Nt=K;Nt!==null;){if(Nt.key===ot){if(ot=se.type,ot===f){if(Nt.tag===7){g(ee,Nt.sibling),K=A(Nt,se.props.children),K.return=ee,ee=K;break e}}else if(Nt.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===F&&RF(ot)===Nt.type){g(ee,Nt.sibling),K=A(Nt,se.props),K.ref=Nm(ee,Nt,se),K.return=ee,ee=K;break e}g(ee,Nt);break}else p(ee,Nt);Nt=Nt.sibling}se.type===f?(K=Pl(se.props.children,ee.mode,Me,se.key),K.return=ee,ee=K):(Me=ky(se.type,se.key,se.props,null,ee.mode,Me),Me.ref=Nm(ee,K,se),Me.return=ee,ee=Me)}return O(ee);case l:e:{for(Nt=se.key;K!==null;){if(K.key===Nt)if(K.tag===4&&K.stateNode.containerInfo===se.containerInfo&&K.stateNode.implementation===se.implementation){g(ee,K.sibling),K=A(K,se.children||[]),K.return=ee,ee=K;break e}else{g(ee,K);break}else p(ee,K);K=K.sibling}K=U1(se,ee.mode,Me),K.return=ee,ee=K}return O(ee);case F:return Nt=se._init,Zo(ee,K,Nt(se._payload),Me)}if(j(se))return _r(ee,K,se,Me);if(k(se))return Wi(ee,K,se,Me);py(ee,se)}return typeof se=="string"&&se!==""||typeof se=="number"?(se=""+se,K!==null&&K.tag===6?(g(ee,K.sibling),K=A(K,se),K.return=ee,ee=K):(g(ee,K),K=k1(se,ee.mode,Me),K.return=ee,ee=K),O(ee)):g(ee,K)}return Zo}var Rf=NF(!0),OF=NF(!1),Om={},Is=De(Om),Pm=De(Om),Nf=De(Om);function ao(c){if(c===Om)throw Error(a(174));return c}function Xb(c,p){Xe(Nf,p),Xe(Pm,c),Xe(Is,Om),c=oe(p),Ye(Is),Xe(Is,c)}function Of(){Ye(Is),Ye(Pm),Ye(Nf)}function PF(c){var p=ao(Nf.current),g=ao(Is.current);p=ve(g,c.type,p),g!==p&&(Xe(Pm,c),Xe(Is,p))}function Jb(c){Pm.current===c&&(Ye(Is),Ye(Pm))}var Yr=De(0);function fy(c){for(var p=c;p!==null;){if(p.tag===13){var g=p.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||Wv(g)||bm(g)))return p}else if(p.tag===19&&p.memoizedProps.revealOrder!==void 0){if(p.flags&128)return p}else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===c)break;for(;p.sibling===null;){if(p.return===null||p.return===c)return null;p=p.return}p.sibling.return=p.return,p=p.sibling}return null}var Zb=[];function e1(){for(var c=0;c<Zb.length;c++){var p=Zb[c];ut?p._workInProgressVersionPrimary=null:p._workInProgressVersionSecondary=null}Zb.length=0}var dy=o.ReactCurrentDispatcher,t1=o.ReactCurrentBatchConfig,Tl=0,Xr=null,_n=null,Tn=null,hy=!1,Bm=!1,Lm=0,pue=0;function ni(){throw Error(a(321))}function r1(c,p){if(p===null)return!1;for(var g=0;g<p.length&&g<c.length;g++)if(!va(c[g],p[g]))return!1;return!0}function n1(c,p,g,v,A,S){if(Tl=S,Xr=p,p.memoizedState=null,p.updateQueue=null,p.lanes=0,dy.current=c===null||c.memoizedState===null?mue:gue,c=g(v,A),Bm){S=0;do{if(Bm=!1,Lm=0,25<=S)throw Error(a(301));S+=1,Tn=_n=null,p.updateQueue=null,dy.current=vue,c=g(v,A)}while(Bm)}if(dy.current=vy,p=_n!==null&&_n.next!==null,Tl=0,Tn=_n=Xr=null,hy=!1,p)throw Error(a(300));return c}function i1(){var c=Lm!==0;return Lm=0,c}function oo(){var c={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tn===null?Xr.memoizedState=Tn=c:Tn=Tn.next=c,Tn}function Rs(){if(_n===null){var c=Xr.alternate;c=c!==null?c.memoizedState:null}else c=_n.next;var p=Tn===null?Xr.memoizedState:Tn.next;if(p!==null)Tn=p,_n=c;else{if(c===null)throw Error(a(310));_n=c,c={memoizedState:_n.memoizedState,baseState:_n.baseState,baseQueue:_n.baseQueue,queue:_n.queue,next:null},Tn===null?Xr.memoizedState=Tn=c:Tn=Tn.next=c}return Tn}function Fm(c,p){return typeof p=="function"?p(c):p}function s1(c){var p=Rs(),g=p.queue;if(g===null)throw Error(a(311));g.lastRenderedReducer=c;var v=_n,A=v.baseQueue,S=g.pending;if(S!==null){if(A!==null){var O=A.next;A.next=S.next,S.next=O}v.baseQueue=A=S,g.pending=null}if(A!==null){S=A.next,v=v.baseState;var W=O=null,re=null,Ae=S;do{var We=Ae.lane;if((Tl&We)===We)re!==null&&(re=re.next={lane:0,action:Ae.action,hasEagerState:Ae.hasEagerState,eagerState:Ae.eagerState,next:null}),v=Ae.hasEagerState?Ae.eagerState:c(v,Ae.action);else{var Et={lane:We,action:Ae.action,hasEagerState:Ae.hasEagerState,eagerState:Ae.eagerState,next:null};re===null?(W=re=Et,O=v):re=re.next=Et,Xr.lanes|=We,Il|=We}Ae=Ae.next}while(Ae!==null&&Ae!==S);re===null?O=v:re.next=W,va(v,p.memoizedState)||(Vi=!0),p.memoizedState=v,p.baseState=O,p.baseQueue=re,g.lastRenderedState=v}if(c=g.interleaved,c!==null){A=c;do S=A.lane,Xr.lanes|=S,Il|=S,A=A.next;while(A!==c)}else A===null&&(g.lanes=0);return[p.memoizedState,g.dispatch]}function a1(c){var p=Rs(),g=p.queue;if(g===null)throw Error(a(311));g.lastRenderedReducer=c;var v=g.dispatch,A=g.pending,S=p.memoizedState;if(A!==null){g.pending=null;var O=A=A.next;do S=c(S,O.action),O=O.next;while(O!==A);va(S,p.memoizedState)||(Vi=!0),p.memoizedState=S,p.baseQueue===null&&(p.baseState=S),g.lastRenderedState=S}return[S,v]}function BF(){}function LF(c,p){var g=Xr,v=Rs(),A=p(),S=!va(v.memoizedState,A);if(S&&(v.memoizedState=A,Vi=!0),v=v.queue,o1(UF.bind(null,g,v,c),[c]),v.getSnapshot!==p||S||Tn!==null&&Tn.memoizedState.tag&1){if(g.flags|=2048,km(9,kF.bind(null,g,v,A,p),void 0,null),In===null)throw Error(a(349));Tl&30||FF(g,p,A)}return A}function FF(c,p,g){c.flags|=16384,c={getSnapshot:p,value:g},p=Xr.updateQueue,p===null?(p={lastEffect:null,stores:null},Xr.updateQueue=p,p.stores=[c]):(g=p.stores,g===null?p.stores=[c]:g.push(c))}function kF(c,p,g,v){p.value=g,p.getSnapshot=v,MF(p)&&qF(c)}function UF(c,p,g){return g(function(){MF(p)&&qF(c)})}function MF(c){var p=c.getSnapshot;c=c.value;try{var g=p();return!va(c,g)}catch{return!0}}function qF(c){var p=so(c,1);p!==null&&Ns(p,c,1,-1)}function jF(c){var p=oo();return typeof c=="function"&&(c=c()),p.memoizedState=p.baseState=c,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fm,lastRenderedState:c},p.queue=c,c=c.dispatch=hue.bind(null,Xr,c),[p.memoizedState,c]}function km(c,p,g,v){return c={tag:c,create:p,destroy:g,deps:v,next:null},p=Xr.updateQueue,p===null?(p={lastEffect:null,stores:null},Xr.updateQueue=p,p.lastEffect=c.next=c):(g=p.lastEffect,g===null?p.lastEffect=c.next=c:(v=g.next,g.next=c,c.next=v,p.lastEffect=c)),c}function VF(){return Rs().memoizedState}function my(c,p,g,v){var A=oo();Xr.flags|=c,A.memoizedState=km(1|p,g,void 0,v===void 0?null:v)}function gy(c,p,g,v){var A=Rs();v=v===void 0?null:v;var S=void 0;if(_n!==null){var O=_n.memoizedState;if(S=O.destroy,v!==null&&r1(v,O.deps)){A.memoizedState=km(p,g,S,v);return}}Xr.flags|=c,A.memoizedState=km(1|p,g,S,v)}function HF(c,p){return my(8390656,8,c,p)}function o1(c,p){return gy(2048,8,c,p)}function GF(c,p){return gy(4,2,c,p)}function WF(c,p){return gy(4,4,c,p)}function QF(c,p){if(typeof p=="function")return c=c(),p(c),function(){p(null)};if(p!=null)return c=c(),p.current=c,function(){p.current=null}}function zF(c,p,g){return g=g!=null?g.concat([c]):null,gy(4,4,QF.bind(null,p,c),g)}function u1(){}function KF(c,p){var g=Rs();p=p===void 0?null:p;var v=g.memoizedState;return v!==null&&p!==null&&r1(p,v[1])?v[0]:(g.memoizedState=[c,p],c)}function $F(c,p){var g=Rs();p=p===void 0?null:p;var v=g.memoizedState;return v!==null&&p!==null&&r1(p,v[1])?v[0]:(c=c(),g.memoizedState=[c,p],c)}function YF(c,p,g){return Tl&21?(va(g,p)||(g=fF(),Xr.lanes|=g,Il|=g,c.baseState=!0),p):(c.baseState&&(c.baseState=!1,Vi=!0),c.memoizedState=g)}function fue(c,p){var g=ar;ar=g!==0&&4>g?g:4,c(!0);var v=t1.transition;t1.transition={};try{c(!1),p()}finally{ar=g,t1.transition=v}}function XF(){return Rs().memoizedState}function due(c,p,g){var v=nc(c);if(g={lane:v,action:g,hasEagerState:!1,eagerState:null,next:null},JF(c))ZF(p,g);else if(g=AF(c,p,g,v),g!==null){var A=ai();Ns(g,c,v,A),ek(g,p,v)}}function hue(c,p,g){var v=nc(c),A={lane:v,action:g,hasEagerState:!1,eagerState:null,next:null};if(JF(c))ZF(p,A);else{var S=c.alternate;if(c.lanes===0&&(S===null||S.lanes===0)&&(S=p.lastRenderedReducer,S!==null))try{var O=p.lastRenderedState,W=S(O,g);if(A.hasEagerState=!0,A.eagerState=W,va(W,O)){var re=p.interleaved;re===null?(A.next=A,zb(p)):(A.next=re.next,re.next=A),p.interleaved=A;return}}catch{}finally{}g=AF(c,p,A,v),g!==null&&(A=ai(),Ns(g,c,v,A),ek(g,p,v))}}function JF(c){var p=c.alternate;return c===Xr||p!==null&&p===Xr}function ZF(c,p){Bm=hy=!0;var g=c.pending;g===null?p.next=p:(p.next=g.next,g.next=p),c.pending=p}function ek(c,p,g){if(g&4194240){var v=p.lanes;v&=c.pendingLanes,g|=v,p.lanes=g,Pb(c,g)}}var vy={readContext:Ts,useCallback:ni,useContext:ni,useEffect:ni,useImperativeHandle:ni,useInsertionEffect:ni,useLayoutEffect:ni,useMemo:ni,useReducer:ni,useRef:ni,useState:ni,useDebugValue:ni,useDeferredValue:ni,useTransition:ni,useMutableSource:ni,useSyncExternalStore:ni,useId:ni,unstable_isNewReconciler:!1},mue={readContext:Ts,useCallback:function(c,p){return oo().memoizedState=[c,p===void 0?null:p],c},useContext:Ts,useEffect:HF,useImperativeHandle:function(c,p,g){return g=g!=null?g.concat([c]):null,my(4194308,4,QF.bind(null,p,c),g)},useLayoutEffect:function(c,p){return my(4194308,4,c,p)},useInsertionEffect:function(c,p){return my(4,2,c,p)},useMemo:function(c,p){var g=oo();return p=p===void 0?null:p,c=c(),g.memoizedState=[c,p],c},useReducer:function(c,p,g){var v=oo();return p=g!==void 0?g(p):p,v.memoizedState=v.baseState=p,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:p},v.queue=c,c=c.dispatch=due.bind(null,Xr,c),[v.memoizedState,c]},useRef:function(c){var p=oo();return c={current:c},p.memoizedState=c},useState:jF,useDebugValue:u1,useDeferredValue:function(c){return oo().memoizedState=c},useTransition:function(){var c=jF(!1),p=c[0];return c=fue.bind(null,c[1]),oo().memoizedState=c,[p,c]},useMutableSource:function(){},useSyncExternalStore:function(c,p,g){var v=Xr,A=oo();if(Ur){if(g===void 0)throw Error(a(407));g=g()}else{if(g=p(),In===null)throw Error(a(349));Tl&30||FF(v,p,g)}A.memoizedState=g;var S={value:g,getSnapshot:p};return A.queue=S,HF(UF.bind(null,v,S,c),[c]),v.flags|=2048,km(9,kF.bind(null,v,S,g,p),void 0,null),g},useId:function(){var c=oo(),p=In.identifierPrefix;if(Ur){var g=$o,v=Ko;g=(v&~(1<<32-ga(v)-1)).toString(32)+g,p=":"+p+"R"+g,g=Lm++,0<g&&(p+="H"+g.toString(32)),p+=":"}else g=pue++,p=":"+p+"r"+g.toString(32)+":";return c.memoizedState=p},unstable_isNewReconciler:!1},gue={readContext:Ts,useCallback:KF,useContext:Ts,useEffect:o1,useImperativeHandle:zF,useInsertionEffect:GF,useLayoutEffect:WF,useMemo:$F,useReducer:s1,useRef:VF,useState:function(){return s1(Fm)},useDebugValue:u1,useDeferredValue:function(c){var p=Rs();return YF(p,_n.memoizedState,c)},useTransition:function(){var c=s1(Fm)[0],p=Rs().memoizedState;return[c,p]},useMutableSource:BF,useSyncExternalStore:LF,useId:XF,unstable_isNewReconciler:!1},vue={readContext:Ts,useCallback:KF,useContext:Ts,useEffect:o1,useImperativeHandle:zF,useInsertionEffect:GF,useLayoutEffect:WF,useMemo:$F,useReducer:a1,useRef:VF,useState:function(){return a1(Fm)},useDebugValue:u1,useDeferredValue:function(c){var p=Rs();return _n===null?p.memoizedState=c:YF(p,_n.memoizedState,c)},useTransition:function(){var c=a1(Fm)[0],p=Rs().memoizedState;return[c,p]},useMutableSource:BF,useSyncExternalStore:LF,useId:XF,unstable_isNewReconciler:!1};function Pf(c,p){try{var g="",v=p;do g+=lue(v),v=v.return;while(v);var A=g}catch(S){A=`
|
|
32
|
-
Error generating stack: `+S.message+`
|
|
33
|
-
`+S.stack}return{value:c,source:p,stack:A,digest:null}}function c1(c,p,g){return{value:c,source:null,stack:g??null,digest:p??null}}function l1(c,p){try{console.error(p.value)}catch(g){setTimeout(function(){throw g})}}var yue=typeof WeakMap=="function"?WeakMap:Map;function tk(c,p,g){g=Yo(-1,g),g.tag=3,g.payload={element:null};var v=p.value;return g.callback=function(){Ny||(Ny=!0,R1=v),l1(c,p)},g}function rk(c,p,g){g=Yo(-1,g),g.tag=3;var v=c.type.getDerivedStateFromError;if(typeof v=="function"){var A=p.value;g.payload=function(){return v(A)},g.callback=function(){l1(c,p)}}var S=c.stateNode;return S!==null&&typeof S.componentDidCatch=="function"&&(g.callback=function(){l1(c,p),typeof v!="function"&&(tc===null?tc=new Set([this]):tc.add(this));var O=p.stack;this.componentDidCatch(p.value,{componentStack:O!==null?O:""})}),g}function nk(c,p,g){var v=c.pingCache;if(v===null){v=c.pingCache=new yue;var A=new Set;v.set(p,A)}else A=v.get(p),A===void 0&&(A=new Set,v.set(p,A));A.has(g)||(A.add(g),c=Oue.bind(null,c,p,g),p.then(c,c))}function ik(c){do{var p;if((p=c.tag===13)&&(p=c.memoizedState,p=p!==null?p.dehydrated!==null:!0),p)return c;c=c.return}while(c!==null);return null}function sk(c,p,g,v,A){return c.mode&1?(c.flags|=65536,c.lanes=A,c):(c===p?c.flags|=65536:(c.flags|=128,g.flags|=131072,g.flags&=-52805,g.tag===1&&(g.alternate===null?g.tag=17:(p=Yo(-1,1),p.tag=2,ec(g,p,1))),g.lanes|=1),c)}var xue=o.ReactCurrentOwner,Vi=!1;function Ci(c,p,g,v){p.child=c===null?OF(p,null,g,v):Rf(p,c.child,g,v)}function ak(c,p,g,v,A){g=g.render;var S=p.ref;return If(p,A),v=n1(c,p,g,v,S,A),g=i1(),c!==null&&!Vi?(p.updateQueue=c.updateQueue,p.flags&=-2053,c.lanes&=~A,Xo(c,p,A)):(Ur&&g&&Ub(p),p.flags|=1,Ci(c,p,v,A),p.child)}function ok(c,p,g,v,A){if(c===null){var S=g.type;return typeof S=="function"&&!F1(S)&&S.defaultProps===void 0&&g.compare===null&&g.defaultProps===void 0?(p.tag=15,p.type=S,uk(c,p,S,v,A)):(c=ky(g.type,null,v,p,p.mode,A),c.ref=p.ref,c.return=p,p.child=c)}if(S=c.child,!(c.lanes&A)){var O=S.memoizedProps;if(g=g.compare,g=g!==null?g:sy,g(O,v)&&c.ref===p.ref)return Xo(c,p,A)}return p.flags|=1,c=sc(S,v),c.ref=p.ref,c.return=p,p.child=c}function uk(c,p,g,v,A){if(c!==null){var S=c.memoizedProps;if(sy(S,v)&&c.ref===p.ref)if(Vi=!1,p.pendingProps=v=S,(c.lanes&A)!==0)c.flags&131072&&(Vi=!0);else return p.lanes=c.lanes,Xo(c,p,A)}return p1(c,p,g,v,A)}function ck(c,p,g){var v=p.pendingProps,A=v.children,S=c!==null?c.memoizedState:null;if(v.mode==="hidden")if(!(p.mode&1))p.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xe(Lf,us),us|=g;else{if(!(g&1073741824))return c=S!==null?S.baseLanes|g:g,p.lanes=p.childLanes=1073741824,p.memoizedState={baseLanes:c,cachePool:null,transitions:null},p.updateQueue=null,Xe(Lf,us),us|=c,null;p.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=S!==null?S.baseLanes:g,Xe(Lf,us),us|=v}else S!==null?(v=S.baseLanes|g,p.memoizedState=null):v=g,Xe(Lf,us),us|=v;return Ci(c,p,A,g),p.child}function lk(c,p){var g=p.ref;(c===null&&g!==null||c!==null&&c.ref!==g)&&(p.flags|=512,p.flags|=2097152)}function p1(c,p,g,v,A){var S=dn(g)?qi:pt.current;return S=ji(p,S),If(p,A),g=n1(c,p,g,v,S,A),v=i1(),c!==null&&!Vi?(p.updateQueue=c.updateQueue,p.flags&=-2053,c.lanes&=~A,Xo(c,p,A)):(Ur&&v&&Ub(p),p.flags|=1,Ci(c,p,g,A),p.child)}function pk(c,p,g,v,A){if(dn(g)){var S=!0;Sl(p)}else S=!1;if(If(p,A),p.stateNode===null)xy(c,p),TF(p,g,v),Yb(p,g,v,A),v=!0;else if(c===null){var O=p.stateNode,W=p.memoizedProps;O.props=W;var re=O.context,Ae=g.contextType;typeof Ae=="object"&&Ae!==null?Ae=Ts(Ae):(Ae=dn(g)?qi:pt.current,Ae=ji(p,Ae));var We=g.getDerivedStateFromProps,Et=typeof We=="function"||typeof O.getSnapshotBeforeUpdate=="function";Et||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(W!==v||re!==Ae)&&IF(p,O,v,Ae),Zu=!1;var Fe=p.memoizedState;O.state=Fe,cy(p,v,O,A),re=p.memoizedState,W!==v||Fe!==re||Yt.current||Zu?(typeof We=="function"&&($b(p,g,We,v),re=p.memoizedState),(W=Zu||wF(p,g,W,v,Fe,re,Ae))?(Et||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount()),typeof O.componentDidMount=="function"&&(p.flags|=4194308)):(typeof O.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=v,p.memoizedState=re),O.props=v,O.state=re,O.context=Ae,v=W):(typeof O.componentDidMount=="function"&&(p.flags|=4194308),v=!1)}else{O=p.stateNode,CF(c,p),W=p.memoizedProps,Ae=p.type===p.elementType?W:xa(p.type,W),O.props=Ae,Et=p.pendingProps,Fe=O.context,re=g.contextType,typeof re=="object"&&re!==null?re=Ts(re):(re=dn(g)?qi:pt.current,re=ji(p,re));var Nr=g.getDerivedStateFromProps;(We=typeof Nr=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(W!==Et||Fe!==re)&&IF(p,O,v,re),Zu=!1,Fe=p.memoizedState,O.state=Fe,cy(p,v,O,A);var _r=p.memoizedState;W!==Et||Fe!==_r||Yt.current||Zu?(typeof Nr=="function"&&($b(p,g,Nr,v),_r=p.memoizedState),(Ae=Zu||wF(p,g,Ae,v,Fe,_r,re)||!1)?(We||typeof O.UNSAFE_componentWillUpdate!="function"&&typeof O.componentWillUpdate!="function"||(typeof O.componentWillUpdate=="function"&&O.componentWillUpdate(v,_r,re),typeof O.UNSAFE_componentWillUpdate=="function"&&O.UNSAFE_componentWillUpdate(v,_r,re)),typeof O.componentDidUpdate=="function"&&(p.flags|=4),typeof O.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof O.componentDidUpdate!="function"||W===c.memoizedProps&&Fe===c.memoizedState||(p.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||W===c.memoizedProps&&Fe===c.memoizedState||(p.flags|=1024),p.memoizedProps=v,p.memoizedState=_r),O.props=v,O.state=_r,O.context=re,v=Ae):(typeof O.componentDidUpdate!="function"||W===c.memoizedProps&&Fe===c.memoizedState||(p.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||W===c.memoizedProps&&Fe===c.memoizedState||(p.flags|=1024),v=!1)}return f1(c,p,g,v,S,A)}function f1(c,p,g,v,A,S){lk(c,p);var O=(p.flags&128)!==0;if(!v&&!O)return A&&pF(p,g,!1),Xo(c,p,S);v=p.stateNode,xue.current=p;var W=O&&typeof g.getDerivedStateFromError!="function"?null:v.render();return p.flags|=1,c!==null&&O?(p.child=Rf(p,c.child,null,S),p.child=Rf(p,null,W,S)):Ci(c,p,W,S),p.memoizedState=v.state,A&&pF(p,g,!0),p.child}function fk(c){var p=c.stateNode;p.pendingContext?Qo(c,p.pendingContext,p.pendingContext!==p.context):p.context&&Qo(c,p.context,!1),Xb(c,p.containerInfo)}function dk(c,p,g,v,A){return wf(),Vb(A),p.flags|=256,Ci(c,p,g,v),p.child}var d1={dehydrated:null,treeContext:null,retryLane:0};function h1(c){return{baseLanes:c,cachePool:null,transitions:null}}function hk(c,p,g){var v=p.pendingProps,A=Yr.current,S=!1,O=(p.flags&128)!==0,W;if((W=O)||(W=c!==null&&c.memoizedState===null?!1:(A&2)!==0),W?(S=!0,p.flags&=-129):(c===null||c.memoizedState!==null)&&(A|=1),Xe(Yr,A&1),c===null)return jb(p),c=p.memoizedState,c!==null&&(c=c.dehydrated,c!==null)?(p.mode&1?bm(c)?p.lanes=8:p.lanes=1073741824:p.lanes=1,null):(O=v.children,c=v.fallback,S?(v=p.mode,S=p.child,O={mode:"hidden",children:O},!(v&1)&&S!==null?(S.childLanes=0,S.pendingProps=O):S=Uy(O,v,0,null),c=Pl(c,v,g,null),S.return=p,c.return=p,S.sibling=c,p.child=S,p.child.memoizedState=h1(g),p.memoizedState=d1,c):m1(p,O));if(A=c.memoizedState,A!==null&&(W=A.dehydrated,W!==null))return Eue(c,p,O,v,W,A,g);if(S){S=v.fallback,O=p.mode,A=c.child,W=A.sibling;var re={mode:"hidden",children:v.children};return!(O&1)&&p.child!==A?(v=p.child,v.childLanes=0,v.pendingProps=re,p.deletions=null):(v=sc(A,re),v.subtreeFlags=A.subtreeFlags&14680064),W!==null?S=sc(W,S):(S=Pl(S,O,g,null),S.flags|=2),S.return=p,v.return=p,v.sibling=S,p.child=v,v=S,S=p.child,O=c.child.memoizedState,O=O===null?h1(g):{baseLanes:O.baseLanes|g,cachePool:null,transitions:O.transitions},S.memoizedState=O,S.childLanes=c.childLanes&~g,p.memoizedState=d1,v}return S=c.child,c=S.sibling,v=sc(S,{mode:"visible",children:v.children}),!(p.mode&1)&&(v.lanes=g),v.return=p,v.sibling=null,c!==null&&(g=p.deletions,g===null?(p.deletions=[c],p.flags|=16):g.push(c)),p.child=v,p.memoizedState=null,v}function m1(c,p){return p=Uy({mode:"visible",children:p},c.mode,0,null),p.return=c,c.child=p}function yy(c,p,g,v){return v!==null&&Vb(v),Rf(p,c.child,null,g),c=m1(p,p.pendingProps.children),c.flags|=2,p.memoizedState=null,c}function Eue(c,p,g,v,A,S,O){if(g)return p.flags&256?(p.flags&=-257,v=c1(Error(a(422))),yy(c,p,O,v)):p.memoizedState!==null?(p.child=c.child,p.flags|=128,null):(S=v.fallback,A=p.mode,v=Uy({mode:"visible",children:v.children},A,0,null),S=Pl(S,A,O,null),S.flags|=2,v.return=p,S.return=p,v.sibling=S,p.child=v,p.mode&1&&Rf(p,c.child,null,O),p.child.memoizedState=h1(O),p.memoizedState=d1,S);if(!(p.mode&1))return yy(c,p,O,null);if(bm(A))return v=wb(A).digest,S=Error(a(419)),v=c1(S,v,void 0),yy(c,p,O,v);if(g=(O&c.childLanes)!==0,Vi||g){if(v=In,v!==null){switch(O&-O){case 4:A=2;break;case 16:A=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:A=32;break;case 536870912:A=268435456;break;default:A=0}A=A&(v.suspendedLanes|O)?0:A,A!==0&&A!==S.retryLane&&(S.retryLane=A,so(c,A),Ns(v,c,A,-1))}return L1(),v=c1(Error(a(421))),yy(c,p,O,v)}return Wv(A)?(p.flags|=128,p.child=c.child,p=Pue.bind(null,c),Tb(A,p),null):(c=S.treeContext,tt&&(ws=zv(A),os=p,Ur=!0,ya=null,Rm=!1,c!==null&&(bs[Ds++]=Ko,bs[Ds++]=$o,bs[Ds++]=bl,Ko=c.id,$o=c.overflow,bl=p)),p=m1(p,v.children),p.flags|=4096,p)}function mk(c,p,g){c.lanes|=p;var v=c.alternate;v!==null&&(v.lanes|=p),Qb(c.return,p,g)}function g1(c,p,g,v,A){var S=c.memoizedState;S===null?c.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:v,tail:g,tailMode:A}:(S.isBackwards=p,S.rendering=null,S.renderingStartTime=0,S.last=v,S.tail=g,S.tailMode=A)}function gk(c,p,g){var v=p.pendingProps,A=v.revealOrder,S=v.tail;if(Ci(c,p,v.children,g),v=Yr.current,v&2)v=v&1|2,p.flags|=128;else{if(c!==null&&c.flags&128)e:for(c=p.child;c!==null;){if(c.tag===13)c.memoizedState!==null&&mk(c,g,p);else if(c.tag===19)mk(c,g,p);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===p)break e;for(;c.sibling===null;){if(c.return===null||c.return===p)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}v&=1}if(Xe(Yr,v),!(p.mode&1))p.memoizedState=null;else switch(A){case"forwards":for(g=p.child,A=null;g!==null;)c=g.alternate,c!==null&&fy(c)===null&&(A=g),g=g.sibling;g=A,g===null?(A=p.child,p.child=null):(A=g.sibling,g.sibling=null),g1(p,!1,A,g,S);break;case"backwards":for(g=null,A=p.child,p.child=null;A!==null;){if(c=A.alternate,c!==null&&fy(c)===null){p.child=A;break}c=A.sibling,A.sibling=g,g=A,A=c}g1(p,!0,g,null,S);break;case"together":g1(p,!1,null,null,void 0);break;default:p.memoizedState=null}return p.child}function xy(c,p){!(p.mode&1)&&c!==null&&(c.alternate=null,p.alternate=null,p.flags|=2)}function Xo(c,p,g){if(c!==null&&(p.dependencies=c.dependencies),Il|=p.lanes,!(g&p.childLanes))return null;if(c!==null&&p.child!==c.child)throw Error(a(153));if(p.child!==null){for(c=p.child,g=sc(c,c.pendingProps),p.child=g,g.return=p;c.sibling!==null;)c=c.sibling,g=g.sibling=sc(c,c.pendingProps),g.return=p;g.sibling=null}return p.child}function _ue(c,p,g){switch(p.tag){case 3:fk(p),wf();break;case 5:PF(p);break;case 1:dn(p.type)&&Sl(p);break;case 4:Xb(p,p.stateNode.containerInfo);break;case 10:_F(p,p.type._context,p.memoizedProps.value);break;case 13:var v=p.memoizedState;if(v!==null)return v.dehydrated!==null?(Xe(Yr,Yr.current&1),p.flags|=128,null):g&p.child.childLanes?hk(c,p,g):(Xe(Yr,Yr.current&1),c=Xo(c,p,g),c!==null?c.sibling:null);Xe(Yr,Yr.current&1);break;case 19:if(v=(g&p.childLanes)!==0,c.flags&128){if(v)return gk(c,p,g);p.flags|=128}var A=p.memoizedState;if(A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),Xe(Yr,Yr.current),v)break;return null;case 22:case 23:return p.lanes=0,ck(c,p,g)}return Xo(c,p,g)}function uo(c){c.flags|=4}function vk(c,p){if(c!==null&&c.child===p.child)return!0;if(p.flags&16)return!1;for(c=p.child;c!==null;){if(c.flags&12854||c.subtreeFlags&12854)return!1;c=c.sibling}return!0}var Um,Mm,Ey,_y;if(le)Um=function(c,p){for(var g=p.child;g!==null;){if(g.tag===5||g.tag===6)Lt(c,g.stateNode);else if(g.tag!==4&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===p)break;for(;g.sibling===null;){if(g.return===null||g.return===p)return;g=g.return}g.sibling.return=g.return,g=g.sibling}},Mm=function(){},Ey=function(c,p,g,v,A){if(c=c.memoizedProps,c!==v){var S=p.stateNode,O=ao(Is.current);g=er(S,g,c,v,A,O),(p.updateQueue=g)&&uo(p)}},_y=function(c,p,g,v){g!==v&&uo(p)};else if(Ue){Um=function(c,p,g,v){for(var A=p.child;A!==null;){if(A.tag===5){var S=A.stateNode;g&&v&&(S=Ef(S,A.type,A.memoizedProps,A)),Lt(c,S)}else if(A.tag===6)S=A.stateNode,g&&v&&(S=_f(S,A.memoizedProps,A)),Lt(c,S);else if(A.tag!==4){if(A.tag===22&&A.memoizedState!==null)S=A.child,S!==null&&(S.return=A),Um(c,A,!0,!0);else if(A.child!==null){A.child.return=A,A=A.child;continue}}if(A===p)break;for(;A.sibling===null;){if(A.return===null||A.return===p)return;A=A.return}A.sibling.return=A.return,A=A.sibling}};var yk=function(c,p,g,v){for(var A=p.child;A!==null;){if(A.tag===5){var S=A.stateNode;g&&v&&(S=Ef(S,A.type,A.memoizedProps,A)),Cm(c,S)}else if(A.tag===6)S=A.stateNode,g&&v&&(S=_f(S,A.memoizedProps,A)),Cm(c,S);else if(A.tag!==4){if(A.tag===22&&A.memoizedState!==null)S=A.child,S!==null&&(S.return=A),yk(c,A,!0,!0);else if(A.child!==null){A.child.return=A,A=A.child;continue}}if(A===p)break;for(;A.sibling===null;){if(A.return===null||A.return===p)return;A=A.return}A.sibling.return=A.return,A=A.sibling}};Mm=function(c,p){var g=p.stateNode;if(!vk(c,p)){c=g.containerInfo;var v=Mi(c);yk(v,p,!1,!1),g.pendingChildren=v,uo(p),xf(c,v)}},Ey=function(c,p,g,v,A){var S=c.stateNode,O=c.memoizedProps;if((c=vk(c,p))&&O===v)p.stateNode=S;else{var W=p.stateNode,re=ao(Is.current),Ae=null;O!==v&&(Ae=er(W,g,O,v,A,re)),c&&Ae===null?p.stateNode=S:(S=Gv(S,Ae,g,O,v,p,c,W),Je(S,g,v,A,re)&&uo(p),p.stateNode=S,c?uo(p):Um(S,p,!1,!1))}},_y=function(c,p,g,v){g!==v?(c=ao(Nf.current),g=ao(Is.current),p.stateNode=Ze(v,c,g,p),uo(p)):p.stateNode=c.stateNode}}else Mm=function(){},Ey=function(){},_y=function(){};function qm(c,p){if(!Ur)switch(c.tailMode){case"hidden":p=c.tail;for(var g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?c.tail=null:g.sibling=null;break;case"collapsed":g=c.tail;for(var v=null;g!==null;)g.alternate!==null&&(v=g),g=g.sibling;v===null?p||c.tail===null?c.tail=null:c.tail.sibling=null:v.sibling=null}}function ii(c){var p=c.alternate!==null&&c.alternate.child===c.child,g=0,v=0;if(p)for(var A=c.child;A!==null;)g|=A.lanes|A.childLanes,v|=A.subtreeFlags&14680064,v|=A.flags&14680064,A.return=c,A=A.sibling;else for(A=c.child;A!==null;)g|=A.lanes|A.childLanes,v|=A.subtreeFlags,v|=A.flags,A.return=c,A=A.sibling;return c.subtreeFlags|=v,c.childLanes=g,p}function Aue(c,p,g){var v=p.pendingProps;switch(Mb(p),p.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ii(p),null;case 1:return dn(p.type)&&Ju(),ii(p),null;case 3:return g=p.stateNode,Of(),Ye(Yt),Ye(pt),e1(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(c===null||c.child===null)&&(iy(p)?uo(p):c===null||c.memoizedState.isDehydrated&&!(p.flags&256)||(p.flags|=1024,ya!==null&&(P1(ya),ya=null))),Mm(c,p),ii(p),null;case 5:Jb(p),g=ao(Nf.current);var A=p.type;if(c!==null&&p.stateNode!=null)Ey(c,p,A,v,g),c.ref!==p.ref&&(p.flags|=512,p.flags|=2097152);else{if(!v){if(p.stateNode===null)throw Error(a(166));return ii(p),null}if(c=ao(Is.current),iy(p)){if(!tt)throw Error(a(175));c=Ib(p.stateNode,p.type,p.memoizedProps,g,c,p,!Rm),p.updateQueue=c,c!==null&&uo(p)}else{var S=ht(A,v,g,c,p);Um(S,p,!1,!1),p.stateNode=S,Je(S,A,v,g,c)&&uo(p)}p.ref!==null&&(p.flags|=512,p.flags|=2097152)}return ii(p),null;case 6:if(c&&p.stateNode!=null)_y(c,p,c.memoizedProps,v);else{if(typeof v!="string"&&p.stateNode===null)throw Error(a(166));if(c=ao(Nf.current),g=ao(Is.current),iy(p)){if(!tt)throw Error(a(176));if(c=p.stateNode,g=p.memoizedProps,(v=Kv(c,g,p,!Rm))&&(A=os,A!==null))switch(A.tag){case 3:P(A.stateNode.containerInfo,c,g,(A.mode&1)!==0);break;case 5:$(A.type,A.memoizedProps,A.stateNode,c,g,(A.mode&1)!==0)}v&&uo(p)}else p.stateNode=Ze(v,c,g,p)}return ii(p),null;case 13:if(Ye(Yr),v=p.memoizedState,c===null||c.memoizedState!==null&&c.memoizedState.dehydrated!==null){if(Ur&&ws!==null&&p.mode&1&&!(p.flags&128))EF(),wf(),p.flags|=98560,A=!1;else if(A=iy(p),v!==null&&v.dehydrated!==null){if(c===null){if(!A)throw Error(a(318));if(!tt)throw Error(a(344));if(A=p.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(a(317));Sf(A,p)}else wf(),!(p.flags&128)&&(p.memoizedState=null),p.flags|=4;ii(p),A=!1}else ya!==null&&(P1(ya),ya=null),A=!0;if(!A)return p.flags&65536?p:null}return p.flags&128?(p.lanes=g,p):(g=v!==null,g!==(c!==null&&c.memoizedState!==null)&&g&&(p.child.flags|=8192,p.mode&1&&(c===null||Yr.current&1?An===0&&(An=3):L1())),p.updateQueue!==null&&(p.flags|=4),ii(p),null);case 4:return Of(),Mm(c,p),c===null&&wt(p.stateNode.containerInfo),ii(p),null;case 10:return Wb(p.type._context),ii(p),null;case 17:return dn(p.type)&&Ju(),ii(p),null;case 19:if(Ye(Yr),A=p.memoizedState,A===null)return ii(p),null;if(v=(p.flags&128)!==0,S=A.rendering,S===null)if(v)qm(A,!1);else{if(An!==0||c!==null&&c.flags&128)for(c=p.child;c!==null;){if(S=fy(c),S!==null){for(p.flags|=128,qm(A,!1),c=S.updateQueue,c!==null&&(p.updateQueue=c,p.flags|=4),p.subtreeFlags=0,c=g,g=p.child;g!==null;)v=g,A=c,v.flags&=14680066,S=v.alternate,S===null?(v.childLanes=0,v.lanes=A,v.child=null,v.subtreeFlags=0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null):(v.childLanes=S.childLanes,v.lanes=S.lanes,v.child=S.child,v.subtreeFlags=0,v.deletions=null,v.memoizedProps=S.memoizedProps,v.memoizedState=S.memoizedState,v.updateQueue=S.updateQueue,v.type=S.type,A=S.dependencies,v.dependencies=A===null?null:{lanes:A.lanes,firstContext:A.firstContext}),g=g.sibling;return Xe(Yr,Yr.current&1|2),p.child}c=c.sibling}A.tail!==null&&wn()>I1&&(p.flags|=128,v=!0,qm(A,!1),p.lanes=4194304)}else{if(!v)if(c=fy(S),c!==null){if(p.flags|=128,v=!0,c=c.updateQueue,c!==null&&(p.updateQueue=c,p.flags|=4),qm(A,!0),A.tail===null&&A.tailMode==="hidden"&&!S.alternate&&!Ur)return ii(p),null}else 2*wn()-A.renderingStartTime>I1&&g!==1073741824&&(p.flags|=128,v=!0,qm(A,!1),p.lanes=4194304);A.isBackwards?(S.sibling=p.child,p.child=S):(c=A.last,c!==null?c.sibling=S:p.child=S,A.last=S)}return A.tail!==null?(p=A.tail,A.rendering=p,A.tail=p.sibling,A.renderingStartTime=wn(),p.sibling=null,c=Yr.current,Xe(Yr,v?c&1|2:c&1),p):(ii(p),null);case 22:case 23:return B1(),g=p.memoizedState!==null,c!==null&&c.memoizedState!==null!==g&&(p.flags|=8192),g&&p.mode&1?us&1073741824&&(ii(p),le&&p.subtreeFlags&6&&(p.flags|=8192)):ii(p),null;case 24:return null;case 25:return null}throw Error(a(156,p.tag))}function Cue(c,p){switch(Mb(p),p.tag){case 1:return dn(p.type)&&Ju(),c=p.flags,c&65536?(p.flags=c&-65537|128,p):null;case 3:return Of(),Ye(Yt),Ye(pt),e1(),c=p.flags,c&65536&&!(c&128)?(p.flags=c&-65537|128,p):null;case 5:return Jb(p),null;case 13:if(Ye(Yr),c=p.memoizedState,c!==null&&c.dehydrated!==null){if(p.alternate===null)throw Error(a(340));wf()}return c=p.flags,c&65536?(p.flags=c&-65537|128,p):null;case 19:return Ye(Yr),null;case 4:return Of(),null;case 10:return Wb(p.type._context),null;case 22:case 23:return B1(),null;case 24:return null;default:return null}}var Ay=!1,si=!1,Sue=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function Bf(c,p){var g=c.ref;if(g!==null)if(typeof g=="function")try{g(null)}catch(v){Mr(c,p,v)}else g.current=null}function v1(c,p,g){try{g()}catch(v){Mr(c,p,v)}}var xk=!1;function bue(c,p){for(Ve(c.containerInfo),Ge=p;Ge!==null;)if(c=Ge,p=c.child,(c.subtreeFlags&1028)!==0&&p!==null)p.return=c,Ge=p;else for(;Ge!==null;){c=Ge;try{var g=c.alternate;if(c.flags&1024)switch(c.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,A=g.memoizedState,S=c.stateNode,O=S.getSnapshotBeforeUpdate(c.elementType===c.type?v:xa(c.type,v),A);S.__reactInternalSnapshotBeforeUpdate=O}break;case 3:le&&yf(c.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(W){Mr(c,c.return,W)}if(p=c.sibling,p!==null){p.return=c.return,Ge=p;break}Ge=c.return}return g=xk,xk=!1,g}function jm(c,p,g){var v=p.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var A=v=v.next;do{if((A.tag&c)===c){var S=A.destroy;A.destroy=void 0,S!==void 0&&v1(p,g,S)}A=A.next}while(A!==v)}}function Cy(c,p){if(p=p.updateQueue,p=p!==null?p.lastEffect:null,p!==null){var g=p=p.next;do{if((g.tag&c)===c){var v=g.create;g.destroy=v()}g=g.next}while(g!==p)}}function y1(c){var p=c.ref;if(p!==null){var g=c.stateNode;switch(c.tag){case 5:c=z(g);break;default:c=g}typeof p=="function"?p(c):p.current=c}}function Ek(c){var p=c.alternate;p!==null&&(c.alternate=null,Ek(p)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(p=c.stateNode,p!==null&&fa(p)),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}function _k(c){return c.tag===5||c.tag===3||c.tag===4}function Ak(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||_k(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.flags&2||c.child===null||c.tag===4)continue e;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function x1(c,p,g){var v=c.tag;if(v===5||v===6)c=c.stateNode,p?ro(g,c,p):gf(g,c);else if(v!==4&&(c=c.child,c!==null))for(x1(c,p,g),c=c.sibling;c!==null;)x1(c,p,g),c=c.sibling}function E1(c,p,g){var v=c.tag;if(v===5||v===6)c=c.stateNode,p?_m(g,c,p):Xu(g,c);else if(v!==4&&(c=c.child,c!==null))for(E1(c,p,g),c=c.sibling;c!==null;)E1(c,p,g),c=c.sibling}var Wn=null,Ea=!1;function co(c,p,g){for(g=g.child;g!==null;)_1(c,p,g),g=g.sibling}function _1(c,p,g){if(no&&typeof no.onCommitFiberUnmount=="function")try{no.onCommitFiberUnmount(ey,g)}catch{}switch(g.tag){case 5:si||Bf(g,p);case 6:if(le){var v=Wn,A=Ea;Wn=null,co(c,p,g),Wn=v,Ea=A,Wn!==null&&(Ea?_b(Wn,g.stateNode):Am(Wn,g.stateNode))}else co(c,p,g);break;case 18:le&&Wn!==null&&(Ea?Yv(Wn,g.stateNode):ma(Wn,g.stateNode));break;case 4:le?(v=Wn,A=Ea,Wn=g.stateNode.containerInfo,Ea=!0,co(c,p,g),Wn=v,Ea=A):(Ue&&(v=g.stateNode.containerInfo,A=Mi(v),Cl(v,A)),co(c,p,g));break;case 0:case 11:case 14:case 15:if(!si&&(v=g.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){A=v=v.next;do{var S=A,O=S.destroy;S=S.tag,O!==void 0&&(S&2||S&4)&&v1(g,p,O),A=A.next}while(A!==v)}co(c,p,g);break;case 1:if(!si&&(Bf(g,p),v=g.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=g.memoizedProps,v.state=g.memoizedState,v.componentWillUnmount()}catch(W){Mr(g,p,W)}co(c,p,g);break;case 21:co(c,p,g);break;case 22:g.mode&1?(si=(v=si)||g.memoizedState!==null,co(c,p,g),si=v):co(c,p,g);break;default:co(c,p,g)}}function Ck(c){var p=c.updateQueue;if(p!==null){c.updateQueue=null;var g=c.stateNode;g===null&&(g=c.stateNode=new Sue),p.forEach(function(v){var A=Bue.bind(null,c,v);g.has(v)||(g.add(v),v.then(A,A))})}}function _a(c,p){var g=p.deletions;if(g!==null)for(var v=0;v<g.length;v++){var A=g[v];try{var S=c,O=p;if(le){var W=O;e:for(;W!==null;){switch(W.tag){case 5:Wn=W.stateNode,Ea=!1;break e;case 3:Wn=W.stateNode.containerInfo,Ea=!0;break e;case 4:Wn=W.stateNode.containerInfo,Ea=!0;break e}W=W.return}if(Wn===null)throw Error(a(160));_1(S,O,A),Wn=null,Ea=!1}else _1(S,O,A);var re=A.alternate;re!==null&&(re.return=null),A.return=null}catch(Ae){Mr(A,p,Ae)}}if(p.subtreeFlags&12854)for(p=p.child;p!==null;)Sk(p,c),p=p.sibling}function Sk(c,p){var g=c.alternate,v=c.flags;switch(c.tag){case 0:case 11:case 14:case 15:if(_a(p,c),lo(c),v&4){try{jm(3,c,c.return),Cy(3,c)}catch(Fe){Mr(c,c.return,Fe)}try{jm(5,c,c.return)}catch(Fe){Mr(c,c.return,Fe)}}break;case 1:_a(p,c),lo(c),v&512&&g!==null&&Bf(g,g.return);break;case 5:if(_a(p,c),lo(c),v&512&&g!==null&&Bf(g,g.return),le){if(c.flags&32){var A=c.stateNode;try{vf(A)}catch(Fe){Mr(c,c.return,Fe)}}if(v&4&&(A=c.stateNode,A!=null)){var S=c.memoizedProps;if(g=g!==null?g.memoizedProps:S,v=c.type,p=c.updateQueue,c.updateQueue=null,p!==null)try{da(A,p,v,g,S,c)}catch(Fe){Mr(c,c.return,Fe)}}}break;case 6:if(_a(p,c),lo(c),v&4&&le){if(c.stateNode===null)throw Error(a(162));A=c.stateNode,S=c.memoizedProps,g=g!==null?g.memoizedProps:S;try{to(A,g,S)}catch(Fe){Mr(c,c.return,Fe)}}break;case 3:if(_a(p,c),lo(c),v&4){if(le&&tt&&g!==null&&g.memoizedState.isDehydrated)try{$v(p.containerInfo)}catch(Fe){Mr(c,c.return,Fe)}if(Ue){A=p.containerInfo,S=p.pendingChildren;try{Cl(A,S)}catch(Fe){Mr(c,c.return,Fe)}}}break;case 4:if(_a(p,c),lo(c),v&4&&Ue){S=c.stateNode,A=S.containerInfo,S=S.pendingChildren;try{Cl(A,S)}catch(Fe){Mr(c,c.return,Fe)}}break;case 13:_a(p,c),lo(c),A=c.child,A.flags&8192&&(S=A.memoizedState!==null,A.stateNode.isHidden=S,!S||A.alternate!==null&&A.alternate.memoizedState!==null||(T1=wn())),v&4&&Ck(c);break;case 22:var O=g!==null&&g.memoizedState!==null;if(c.mode&1?(si=(g=si)||O,_a(p,c),si=g):_a(p,c),lo(c),v&8192){if(g=c.memoizedState!==null,(c.stateNode.isHidden=g)&&!O&&c.mode&1)for(Ge=c,v=c.child;v!==null;){for(p=Ge=v;Ge!==null;){O=Ge;var W=O.child;switch(O.tag){case 0:case 11:case 14:case 15:jm(4,O,O.return);break;case 1:Bf(O,O.return);var re=O.stateNode;if(typeof re.componentWillUnmount=="function"){var Ae=O,We=O.return;try{var Et=Ae;re.props=Et.memoizedProps,re.state=Et.memoizedState,re.componentWillUnmount()}catch(Fe){Mr(Ae,We,Fe)}}break;case 5:Bf(O,O.return);break;case 22:if(O.memoizedState!==null){wk(p);continue}}W!==null?(W.return=O,Ge=W):wk(p)}v=v.sibling}if(le){e:if(v=null,le)for(p=c;;){if(p.tag===5){if(v===null){v=p;try{A=p.stateNode,g?Ab(A):Sb(p.stateNode,p.memoizedProps)}catch(Fe){Mr(c,c.return,Fe)}}}else if(p.tag===6){if(v===null)try{S=p.stateNode,g?Cb(S):ha(S,p.memoizedProps)}catch(Fe){Mr(c,c.return,Fe)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===c)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===c)break e;for(;p.sibling===null;){if(p.return===null||p.return===c)break e;v===p&&(v=null),p=p.return}v===p&&(v=null),p.sibling.return=p.return,p=p.sibling}}}break;case 19:_a(p,c),lo(c),v&4&&Ck(c);break;case 21:break;default:_a(p,c),lo(c)}}function lo(c){var p=c.flags;if(p&2){try{if(le){e:{for(var g=c.return;g!==null;){if(_k(g)){var v=g;break e}g=g.return}throw Error(a(160))}switch(v.tag){case 5:var A=v.stateNode;v.flags&32&&(vf(A),v.flags&=-33);var S=Ak(c);E1(c,S,A);break;case 3:case 4:var O=v.stateNode.containerInfo,W=Ak(c);x1(c,W,O);break;default:throw Error(a(161))}}}catch(re){Mr(c,c.return,re)}c.flags&=-3}p&4096&&(c.flags&=-4097)}function Due(c,p,g){Ge=c,bk(c,p,g)}function bk(c,p,g){for(var v=(c.mode&1)!==0;Ge!==null;){var A=Ge,S=A.child;if(A.tag===22&&v){var O=A.memoizedState!==null||Ay;if(!O){var W=A.alternate,re=W!==null&&W.memoizedState!==null||si;W=Ay;var Ae=si;if(Ay=O,(si=re)&&!Ae)for(Ge=A;Ge!==null;)O=Ge,re=O.child,O.tag===22&&O.memoizedState!==null?Tk(A):re!==null?(re.return=O,Ge=re):Tk(A);for(;S!==null;)Ge=S,bk(S,p,g),S=S.sibling;Ge=A,Ay=W,si=Ae}Dk(c,p,g)}else A.subtreeFlags&8772&&S!==null?(S.return=A,Ge=S):Dk(c,p,g)}}function Dk(c){for(;Ge!==null;){var p=Ge;if(p.flags&8772){var g=p.alternate;try{if(p.flags&8772)switch(p.tag){case 0:case 11:case 15:si||Cy(5,p);break;case 1:var v=p.stateNode;if(p.flags&4&&!si)if(g===null)v.componentDidMount();else{var A=p.elementType===p.type?g.memoizedProps:xa(p.type,g.memoizedProps);v.componentDidUpdate(A,g.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var S=p.updateQueue;S!==null&&bF(p,S,v);break;case 3:var O=p.updateQueue;if(O!==null){if(g=null,p.child!==null)switch(p.child.tag){case 5:g=z(p.child.stateNode);break;case 1:g=p.child.stateNode}bF(p,O,g)}break;case 5:var W=p.stateNode;g===null&&p.flags&4&&Em(W,p.type,p.memoizedProps,p);break;case 6:break;case 4:break;case 12:break;case 13:if(tt&&p.memoizedState===null){var re=p.alternate;if(re!==null){var Ae=re.memoizedState;if(Ae!==null){var We=Ae.dehydrated;We!==null&&Dm(We)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}si||p.flags&512&&y1(p)}catch(Et){Mr(p,p.return,Et)}}if(p===c){Ge=null;break}if(g=p.sibling,g!==null){g.return=p.return,Ge=g;break}Ge=p.return}}function wk(c){for(;Ge!==null;){var p=Ge;if(p===c){Ge=null;break}var g=p.sibling;if(g!==null){g.return=p.return,Ge=g;break}Ge=p.return}}function Tk(c){for(;Ge!==null;){var p=Ge;try{switch(p.tag){case 0:case 11:case 15:var g=p.return;try{Cy(4,p)}catch(re){Mr(p,g,re)}break;case 1:var v=p.stateNode;if(typeof v.componentDidMount=="function"){var A=p.return;try{v.componentDidMount()}catch(re){Mr(p,A,re)}}var S=p.return;try{y1(p)}catch(re){Mr(p,S,re)}break;case 5:var O=p.return;try{y1(p)}catch(re){Mr(p,O,re)}}}catch(re){Mr(p,p.return,re)}if(p===c){Ge=null;break}var W=p.sibling;if(W!==null){W.return=p.return,Ge=W;break}Ge=p.return}}var Sy=0,by=1,Dy=2,wy=3,Ty=4;if(typeof Symbol=="function"&&Symbol.for){var Vm=Symbol.for;Sy=Vm("selector.component"),by=Vm("selector.has_pseudo_class"),Dy=Vm("selector.role"),wy=Vm("selector.test_id"),Ty=Vm("selector.text")}function A1(c){var p=Ct(c);if(p!=null){if(typeof p.memoizedProps["data-testname"]!="string")throw Error(a(364));return p}if(c=Hv(c),c===null)throw Error(a(362));return c.stateNode.current}function C1(c,p){switch(p.$$typeof){case Sy:if(c.type===p.value)return!0;break;case by:e:{p=p.value,c=[c,0];for(var g=0;g<c.length;){var v=c[g++],A=c[g++],S=p[A];if(v.tag!==5||!Ss(v)){for(;S!=null&&C1(v,S);)A++,S=p[A];if(A===p.length){p=!0;break e}else for(v=v.child;v!==null;)c.push(v,A),v=v.sibling}}p=!1}return p;case Dy:if(c.tag===5&&mf(c.stateNode,p.value))return!0;break;case Ty:if((c.tag===5||c.tag===6)&&(c=hf(c),c!==null&&0<=c.indexOf(p.value)))return!0;break;case wy:if(c.tag===5&&(c=c.memoizedProps["data-testname"],typeof c=="string"&&c.toLowerCase()===p.value.toLowerCase()))return!0;break;default:throw Error(a(365))}return!1}function S1(c){switch(c.$$typeof){case Sy:return"<"+(te(c.value)||"Unknown")+">";case by:return":has("+(S1(c)||"")+")";case Dy:return'[role="'+c.value+'"]';case Ty:return'"'+c.value+'"';case wy:return'[data-testname="'+c.value+'"]';default:throw Error(a(365))}}function Ik(c,p){var g=[];c=[c,0];for(var v=0;v<c.length;){var A=c[v++],S=c[v++],O=p[S];if(A.tag!==5||!Ss(A)){for(;O!=null&&C1(A,O);)S++,O=p[S];if(S===p.length)g.push(A);else for(A=A.child;A!==null;)c.push(A,S),A=A.sibling}}return g}function b1(c,p){if(!Yu)throw Error(a(363));c=A1(c),c=Ik(c,p),p=[],c=Array.from(c);for(var g=0;g<c.length;){var v=c[g++];if(v.tag===5)Ss(v)||p.push(v.stateNode);else for(v=v.child;v!==null;)c.push(v),v=v.sibling}return p}var wue=Math.ceil,Iy=o.ReactCurrentDispatcher,D1=o.ReactCurrentOwner,on=o.ReactCurrentBatchConfig,kt=0,In=null,hn=null,Qn=0,us=0,Lf=De(0),An=0,Hm=null,Il=0,Ry=0,w1=0,Gm=null,Hi=null,T1=0,I1=1/0,Jo=null;function Ff(){I1=wn()+500}var Ny=!1,R1=null,tc=null,Oy=!1,rc=null,Py=0,Wm=0,N1=null,By=-1,Ly=0;function ai(){return kt&6?wn():By!==-1?By:By=wn()}function nc(c){return c.mode&1?kt&2&&Qn!==0?Qn&-Qn:cue.transition!==null?(Ly===0&&(Ly=fF()),Ly):(c=ar,c!==0?c:$u()):1}function Ns(c,p,g,v){if(50<Wm)throw Wm=0,N1=null,Error(a(185));Im(c,g,v),(!(kt&2)||c!==In)&&(c===In&&(!(kt&2)&&(Ry|=g),An===4&&ic(c,Qn)),Gi(c,v),g===1&&kt===0&&!(p.mode&1)&&(Ff(),ty&&io()))}function Gi(c,p){var g=c.callbackNode;eue(c,p);var v=Zv(c,c===In?Qn:0);if(v===0)g!==null&&hF(g),c.callbackNode=null,c.callbackPriority=0;else if(p=v&-v,c.callbackPriority!==p){if(g!=null&&hF(g),p===1)c.tag===0?uue(Nk.bind(null,c)):mF(Nk.bind(null,c)),ym?Vv(function(){!(kt&6)&&io()}):Bb(Lb,io),g=null;else{switch(dF(v)){case 1:g=Lb;break;case 4:g=iue;break;case 16:g=Fb;break;case 536870912:g=sue;break;default:g=Fb}g=qk(g,Rk.bind(null,c))}c.callbackPriority=p,c.callbackNode=g}}function Rk(c,p){if(By=-1,Ly=0,kt&6)throw Error(a(327));var g=c.callbackNode;if(Ol()&&c.callbackNode!==g)return null;var v=Zv(c,c===In?Qn:0);if(v===0)return null;if(v&30||v&c.expiredLanes||p)p=Fy(c,v);else{p=v;var A=kt;kt|=2;var S=Bk();(In!==c||Qn!==p)&&(Jo=null,Ff(),Rl(c,p));do try{Rue();break}catch(W){Pk(c,W)}while(!0);Gb(),Iy.current=S,kt=A,hn!==null?p=0:(In=null,Qn=0,p=An)}if(p!==0){if(p===2&&(A=Nb(c),A!==0&&(v=A,p=O1(c,A))),p===1)throw g=Hm,Rl(c,0),ic(c,v),Gi(c,wn()),g;if(p===6)ic(c,v);else{if(A=c.current.alternate,!(v&30)&&!Tue(A)&&(p=Fy(c,v),p===2&&(S=Nb(c),S!==0&&(v=S,p=O1(c,S))),p===1))throw g=Hm,Rl(c,0),ic(c,v),Gi(c,wn()),g;switch(c.finishedWork=A,c.finishedLanes=v,p){case 0:case 1:throw Error(a(345));case 2:Nl(c,Hi,Jo);break;case 3:if(ic(c,v),(v&130023424)===v&&(p=T1+500-wn(),10<p)){if(Zv(c,0)!==0)break;if(A=c.suspendedLanes,(A&v)!==v){ai(),c.pingedLanes|=c.suspendedLanes&A;break}c.timeoutHandle=Er(Nl.bind(null,c,Hi,Jo),p);break}Nl(c,Hi,Jo);break;case 4:if(ic(c,v),(v&4194240)===v)break;for(p=c.eventTimes,A=-1;0<v;){var O=31-ga(v);S=1<<O,O=p[O],O>A&&(A=O),v&=~S}if(v=A,v=wn()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*wue(v/1960))-v,10<v){c.timeoutHandle=Er(Nl.bind(null,c,Hi,Jo),v);break}Nl(c,Hi,Jo);break;case 5:Nl(c,Hi,Jo);break;default:throw Error(a(329))}}}return Gi(c,wn()),c.callbackNode===g?Rk.bind(null,c):null}function O1(c,p){var g=Gm;return c.current.memoizedState.isDehydrated&&(Rl(c,p).flags|=256),c=Fy(c,p),c!==2&&(p=Hi,Hi=g,p!==null&&P1(p)),c}function P1(c){Hi===null?Hi=c:Hi.push.apply(Hi,c)}function Tue(c){for(var p=c;;){if(p.flags&16384){var g=p.updateQueue;if(g!==null&&(g=g.stores,g!==null))for(var v=0;v<g.length;v++){var A=g[v],S=A.getSnapshot;A=A.value;try{if(!va(S(),A))return!1}catch{return!1}}}if(g=p.child,p.subtreeFlags&16384&&g!==null)g.return=p,p=g;else{if(p===c)break;for(;p.sibling===null;){if(p.return===null||p.return===c)return!0;p=p.return}p.sibling.return=p.return,p=p.sibling}}return!0}function ic(c,p){for(p&=~w1,p&=~Ry,c.suspendedLanes|=p,c.pingedLanes&=~p,c=c.expirationTimes;0<p;){var g=31-ga(p),v=1<<g;c[g]=-1,p&=~v}}function Nk(c){if(kt&6)throw Error(a(327));Ol();var p=Zv(c,0);if(!(p&1))return Gi(c,wn()),null;var g=Fy(c,p);if(c.tag!==0&&g===2){var v=Nb(c);v!==0&&(p=v,g=O1(c,v))}if(g===1)throw g=Hm,Rl(c,0),ic(c,p),Gi(c,wn()),g;if(g===6)throw Error(a(345));return c.finishedWork=c.current.alternate,c.finishedLanes=p,Nl(c,Hi,Jo),Gi(c,wn()),null}function Ok(c){rc!==null&&rc.tag===0&&!(kt&6)&&Ol();var p=kt;kt|=1;var g=on.transition,v=ar;try{if(on.transition=null,ar=1,c)return c()}finally{ar=v,on.transition=g,kt=p,!(kt&6)&&io()}}function B1(){us=Lf.current,Ye(Lf)}function Rl(c,p){c.finishedWork=null,c.finishedLanes=0;var g=c.timeoutHandle;if(g!==Ee&&(c.timeoutHandle=Ee,Ft(g)),hn!==null)for(g=hn.return;g!==null;){var v=g;switch(Mb(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&Ju();break;case 3:Of(),Ye(Yt),Ye(pt),e1();break;case 5:Jb(v);break;case 4:Of();break;case 13:Ye(Yr);break;case 19:Ye(Yr);break;case 10:Wb(v.type._context);break;case 22:case 23:B1()}g=g.return}if(In=c,hn=c=sc(c.current,null),Qn=us=p,An=0,Hm=null,w1=Ry=Il=0,Hi=Gm=null,wl!==null){for(p=0;p<wl.length;p++)if(g=wl[p],v=g.interleaved,v!==null){g.interleaved=null;var A=v.next,S=g.pending;if(S!==null){var O=S.next;S.next=A,v.next=O}g.pending=v}wl=null}return c}function Pk(c,p){do{var g=hn;try{if(Gb(),dy.current=vy,hy){for(var v=Xr.memoizedState;v!==null;){var A=v.queue;A!==null&&(A.pending=null),v=v.next}hy=!1}if(Tl=0,Tn=_n=Xr=null,Bm=!1,Lm=0,D1.current=null,g===null||g.return===null){An=1,Hm=p,hn=null;break}e:{var S=c,O=g.return,W=g,re=p;if(p=Qn,W.flags|=32768,re!==null&&typeof re=="object"&&typeof re.then=="function"){var Ae=re,We=W,Et=We.tag;if(!(We.mode&1)&&(Et===0||Et===11||Et===15)){var Fe=We.alternate;Fe?(We.updateQueue=Fe.updateQueue,We.memoizedState=Fe.memoizedState,We.lanes=Fe.lanes):(We.updateQueue=null,We.memoizedState=null)}var Nr=ik(O);if(Nr!==null){Nr.flags&=-257,sk(Nr,O,W,S,p),Nr.mode&1&&nk(S,Ae,p),p=Nr,re=Ae;var _r=p.updateQueue;if(_r===null){var Wi=new Set;Wi.add(re),p.updateQueue=Wi}else _r.add(re);break e}else{if(!(p&1)){nk(S,Ae,p),L1();break e}re=Error(a(426))}}else if(Ur&&W.mode&1){var Zo=ik(O);if(Zo!==null){!(Zo.flags&65536)&&(Zo.flags|=256),sk(Zo,O,W,S,p),Vb(Pf(re,W));break e}}S=re=Pf(re,W),An!==4&&(An=2),Gm===null?Gm=[S]:Gm.push(S),S=O;do{switch(S.tag){case 3:S.flags|=65536,p&=-p,S.lanes|=p;var ee=tk(S,re,p);SF(S,ee);break e;case 1:W=re;var K=S.type,se=S.stateNode;if(!(S.flags&128)&&(typeof K.getDerivedStateFromError=="function"||se!==null&&typeof se.componentDidCatch=="function"&&(tc===null||!tc.has(se)))){S.flags|=65536,p&=-p,S.lanes|=p;var Me=rk(S,W,p);SF(S,Me);break e}}S=S.return}while(S!==null)}Fk(g)}catch(ot){p=ot,hn===g&&g!==null&&(hn=g=g.return);continue}break}while(!0)}function Bk(){var c=Iy.current;return Iy.current=vy,c===null?vy:c}function L1(){(An===0||An===3||An===2)&&(An=4),In===null||!(Il&268435455)&&!(Ry&268435455)||ic(In,Qn)}function Fy(c,p){var g=kt;kt|=2;var v=Bk();(In!==c||Qn!==p)&&(Jo=null,Rl(c,p));do try{Iue();break}catch(A){Pk(c,A)}while(!0);if(Gb(),kt=g,Iy.current=v,hn!==null)throw Error(a(261));return In=null,Qn=0,An}function Iue(){for(;hn!==null;)Lk(hn)}function Rue(){for(;hn!==null&&!rue();)Lk(hn)}function Lk(c){var p=Mk(c.alternate,c,us);c.memoizedProps=c.pendingProps,p===null?Fk(c):hn=p,D1.current=null}function Fk(c){var p=c;do{var g=p.alternate;if(c=p.return,p.flags&32768){if(g=Cue(g,p),g!==null){g.flags&=32767,hn=g;return}if(c!==null)c.flags|=32768,c.subtreeFlags=0,c.deletions=null;else{An=6,hn=null;return}}else if(g=Aue(g,p,us),g!==null){hn=g;return}if(p=p.sibling,p!==null){hn=p;return}hn=p=c}while(p!==null);An===0&&(An=5)}function Nl(c,p,g){var v=ar,A=on.transition;try{on.transition=null,ar=1,Nue(c,p,g,v)}finally{on.transition=A,ar=v}return null}function Nue(c,p,g,v){do Ol();while(rc!==null);if(kt&6)throw Error(a(327));g=c.finishedWork;var A=c.finishedLanes;if(g===null)return null;if(c.finishedWork=null,c.finishedLanes=0,g===c.current)throw Error(a(177));c.callbackNode=null,c.callbackPriority=0;var S=g.lanes|g.childLanes;if(tue(c,S),c===In&&(hn=In=null,Qn=0),!(g.subtreeFlags&2064)&&!(g.flags&2064)||Oy||(Oy=!0,qk(Fb,function(){return Ol(),null})),S=(g.flags&15990)!==0,g.subtreeFlags&15990||S){S=on.transition,on.transition=null;var O=ar;ar=1;var W=kt;kt|=4,D1.current=null,bue(c,g),Sk(g,c),dt(c.containerInfo),c.current=g,Due(g,c,A),nue(),kt=W,ar=O,on.transition=S}else c.current=g;if(Oy&&(Oy=!1,rc=c,Py=A),S=c.pendingLanes,S===0&&(tc=null),aue(g.stateNode,v),Gi(c,wn()),p!==null)for(v=c.onRecoverableError,g=0;g<p.length;g++)A=p[g],v(A.value,{componentStack:A.stack,digest:A.digest});if(Ny)throw Ny=!1,c=R1,R1=null,c;return Py&1&&c.tag!==0&&Ol(),S=c.pendingLanes,S&1?c===N1?Wm++:(Wm=0,N1=c):Wm=0,io(),null}function Ol(){if(rc!==null){var c=dF(Py),p=on.transition,g=ar;try{if(on.transition=null,ar=16>c?16:c,rc===null)var v=!1;else{if(c=rc,rc=null,Py=0,kt&6)throw Error(a(331));var A=kt;for(kt|=4,Ge=c.current;Ge!==null;){var S=Ge,O=S.child;if(Ge.flags&16){var W=S.deletions;if(W!==null){for(var re=0;re<W.length;re++){var Ae=W[re];for(Ge=Ae;Ge!==null;){var We=Ge;switch(We.tag){case 0:case 11:case 15:jm(8,We,S)}var Et=We.child;if(Et!==null)Et.return=We,Ge=Et;else for(;Ge!==null;){We=Ge;var Fe=We.sibling,Nr=We.return;if(Ek(We),We===Ae){Ge=null;break}if(Fe!==null){Fe.return=Nr,Ge=Fe;break}Ge=Nr}}}var _r=S.alternate;if(_r!==null){var Wi=_r.child;if(Wi!==null){_r.child=null;do{var Zo=Wi.sibling;Wi.sibling=null,Wi=Zo}while(Wi!==null)}}Ge=S}}if(S.subtreeFlags&2064&&O!==null)O.return=S,Ge=O;else e:for(;Ge!==null;){if(S=Ge,S.flags&2048)switch(S.tag){case 0:case 11:case 15:jm(9,S,S.return)}var ee=S.sibling;if(ee!==null){ee.return=S.return,Ge=ee;break e}Ge=S.return}}var K=c.current;for(Ge=K;Ge!==null;){O=Ge;var se=O.child;if(O.subtreeFlags&2064&&se!==null)se.return=O,Ge=se;else e:for(O=K;Ge!==null;){if(W=Ge,W.flags&2048)try{switch(W.tag){case 0:case 11:case 15:Cy(9,W)}}catch(ot){Mr(W,W.return,ot)}if(W===O){Ge=null;break e}var Me=W.sibling;if(Me!==null){Me.return=W.return,Ge=Me;break e}Ge=W.return}}if(kt=A,io(),no&&typeof no.onPostCommitFiberRoot=="function")try{no.onPostCommitFiberRoot(ey,c)}catch{}v=!0}return v}finally{ar=g,on.transition=p}}return!1}function kk(c,p,g){p=Pf(g,p),p=tk(c,p,1),c=ec(c,p,1),p=ai(),c!==null&&(Im(c,1,p),Gi(c,p))}function Mr(c,p,g){if(c.tag===3)kk(c,c,g);else for(;p!==null;){if(p.tag===3){kk(p,c,g);break}else if(p.tag===1){var v=p.stateNode;if(typeof p.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(tc===null||!tc.has(v))){c=Pf(g,c),c=rk(p,c,1),p=ec(p,c,1),c=ai(),p!==null&&(Im(p,1,c),Gi(p,c));break}}p=p.return}}function Oue(c,p,g){var v=c.pingCache;v!==null&&v.delete(p),p=ai(),c.pingedLanes|=c.suspendedLanes&g,In===c&&(Qn&g)===g&&(An===4||An===3&&(Qn&130023424)===Qn&&500>wn()-T1?Rl(c,0):w1|=g),Gi(c,p)}function Uk(c,p){p===0&&(c.mode&1?(p=Jv,Jv<<=1,!(Jv&130023424)&&(Jv=4194304)):p=1);var g=ai();c=so(c,p),c!==null&&(Im(c,p,g),Gi(c,g))}function Pue(c){var p=c.memoizedState,g=0;p!==null&&(g=p.retryLane),Uk(c,g)}function Bue(c,p){var g=0;switch(c.tag){case 13:var v=c.stateNode,A=c.memoizedState;A!==null&&(g=A.retryLane);break;case 19:v=c.stateNode;break;default:throw Error(a(314))}v!==null&&v.delete(p),Uk(c,g)}var Mk;Mk=function(c,p,g){if(c!==null)if(c.memoizedProps!==p.pendingProps||Yt.current)Vi=!0;else{if(!(c.lanes&g)&&!(p.flags&128))return Vi=!1,_ue(c,p,g);Vi=!!(c.flags&131072)}else Vi=!1,Ur&&p.flags&1048576&&gF(p,ny,p.index);switch(p.lanes=0,p.tag){case 2:var v=p.type;xy(c,p),c=p.pendingProps;var A=ji(p,pt.current);If(p,g),A=n1(null,p,v,c,A,g);var S=i1();return p.flags|=1,typeof A=="object"&&A!==null&&typeof A.render=="function"&&A.$$typeof===void 0?(p.tag=1,p.memoizedState=null,p.updateQueue=null,dn(v)?(S=!0,Sl(p)):S=!1,p.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,Kb(p),A.updater=ly,p.stateNode=A,A._reactInternals=p,Yb(p,v,c,g),p=f1(null,p,v,!0,S,g)):(p.tag=0,Ur&&S&&Ub(p),Ci(null,p,A,g),p=p.child),p;case 16:v=p.elementType;e:{switch(xy(c,p),c=p.pendingProps,A=v._init,v=A(v._payload),p.type=v,A=p.tag=Fue(v),c=xa(v,c),A){case 0:p=p1(null,p,v,c,g);break e;case 1:p=pk(null,p,v,c,g);break e;case 11:p=ak(null,p,v,c,g);break e;case 14:p=ok(null,p,v,xa(v.type,c),g);break e}throw Error(a(306,v,""))}return p;case 0:return v=p.type,A=p.pendingProps,A=p.elementType===v?A:xa(v,A),p1(c,p,v,A,g);case 1:return v=p.type,A=p.pendingProps,A=p.elementType===v?A:xa(v,A),pk(c,p,v,A,g);case 3:e:{if(fk(p),c===null)throw Error(a(387));v=p.pendingProps,S=p.memoizedState,A=S.element,CF(c,p),cy(p,v,null,g);var O=p.memoizedState;if(v=O.element,tt&&S.isDehydrated)if(S={element:v,isDehydrated:!1,cache:O.cache,pendingSuspenseBoundaries:O.pendingSuspenseBoundaries,transitions:O.transitions},p.updateQueue.baseState=S,p.memoizedState=S,p.flags&256){A=Pf(Error(a(423)),p),p=dk(c,p,v,g,A);break e}else if(v!==A){A=Pf(Error(a(424)),p),p=dk(c,p,v,g,A);break e}else for(tt&&(ws=Cf(p.stateNode.containerInfo),os=p,Ur=!0,ya=null,Rm=!1),g=OF(p,null,v,g),p.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling;else{if(wf(),v===A){p=Xo(c,p,g);break e}Ci(c,p,v,g)}p=p.child}return p;case 5:return PF(p),c===null&&jb(p),v=p.type,A=p.pendingProps,S=c!==null?c.memoizedProps:null,O=A.children,vt(v,A)?O=null:S!==null&&vt(v,S)&&(p.flags|=32),lk(c,p),Ci(c,p,O,g),p.child;case 6:return c===null&&jb(p),null;case 13:return hk(c,p,g);case 4:return Xb(p,p.stateNode.containerInfo),v=p.pendingProps,c===null?p.child=Rf(p,null,v,g):Ci(c,p,v,g),p.child;case 11:return v=p.type,A=p.pendingProps,A=p.elementType===v?A:xa(v,A),ak(c,p,v,A,g);case 7:return Ci(c,p,p.pendingProps,g),p.child;case 8:return Ci(c,p,p.pendingProps.children,g),p.child;case 12:return Ci(c,p,p.pendingProps.children,g),p.child;case 10:e:{if(v=p.type._context,A=p.pendingProps,S=p.memoizedProps,O=A.value,_F(p,v,O),S!==null)if(va(S.value,O)){if(S.children===A.children&&!Yt.current){p=Xo(c,p,g);break e}}else for(S=p.child,S!==null&&(S.return=p);S!==null;){var W=S.dependencies;if(W!==null){O=S.child;for(var re=W.firstContext;re!==null;){if(re.context===v){if(S.tag===1){re=Yo(-1,g&-g),re.tag=2;var Ae=S.updateQueue;if(Ae!==null){Ae=Ae.shared;var We=Ae.pending;We===null?re.next=re:(re.next=We.next,We.next=re),Ae.pending=re}}S.lanes|=g,re=S.alternate,re!==null&&(re.lanes|=g),Qb(S.return,g,p),W.lanes|=g;break}re=re.next}}else if(S.tag===10)O=S.type===p.type?null:S.child;else if(S.tag===18){if(O=S.return,O===null)throw Error(a(341));O.lanes|=g,W=O.alternate,W!==null&&(W.lanes|=g),Qb(O,g,p),O=S.sibling}else O=S.child;if(O!==null)O.return=S;else for(O=S;O!==null;){if(O===p){O=null;break}if(S=O.sibling,S!==null){S.return=O.return,O=S;break}O=O.return}S=O}Ci(c,p,A.children,g),p=p.child}return p;case 9:return A=p.type,v=p.pendingProps.children,If(p,g),A=Ts(A),v=v(A),p.flags|=1,Ci(c,p,v,g),p.child;case 14:return v=p.type,A=xa(v,p.pendingProps),A=xa(v.type,A),ok(c,p,v,A,g);case 15:return uk(c,p,p.type,p.pendingProps,g);case 17:return v=p.type,A=p.pendingProps,A=p.elementType===v?A:xa(v,A),xy(c,p),p.tag=1,dn(v)?(c=!0,Sl(p)):c=!1,If(p,g),TF(p,v,A),Yb(p,v,A,g),f1(null,p,v,!0,c,g);case 19:return gk(c,p,g);case 22:return ck(c,p,g)}throw Error(a(156,p.tag))};function qk(c,p){return Bb(c,p)}function Lue(c,p,g,v){this.tag=c,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Os(c,p,g,v){return new Lue(c,p,g,v)}function F1(c){return c=c.prototype,!(!c||!c.isReactComponent)}function Fue(c){if(typeof c=="function")return F1(c)?1:0;if(c!=null){if(c=c.$$typeof,c===C)return 11;if(c===L)return 14}return 2}function sc(c,p){var g=c.alternate;return g===null?(g=Os(c.tag,p,c.key,c.mode),g.elementType=c.elementType,g.type=c.type,g.stateNode=c.stateNode,g.alternate=c,c.alternate=g):(g.pendingProps=p,g.type=c.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=c.flags&14680064,g.childLanes=c.childLanes,g.lanes=c.lanes,g.child=c.child,g.memoizedProps=c.memoizedProps,g.memoizedState=c.memoizedState,g.updateQueue=c.updateQueue,p=c.dependencies,g.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},g.sibling=c.sibling,g.index=c.index,g.ref=c.ref,g}function ky(c,p,g,v,A,S){var O=2;if(v=c,typeof c=="function")F1(c)&&(O=1);else if(typeof c=="string")O=5;else e:switch(c){case f:return Pl(g.children,A,S,p);case h:O=8,A|=8;break;case m:return c=Os(12,g,p,A|2),c.elementType=m,c.lanes=S,c;case b:return c=Os(13,g,p,A),c.elementType=b,c.lanes=S,c;case D:return c=Os(19,g,p,A),c.elementType=D,c.lanes=S,c;case q:return Uy(g,A,S,p);default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case y:O=10;break e;case _:O=9;break e;case C:O=11;break e;case L:O=14;break e;case F:O=16,v=null;break e}throw Error(a(130,c==null?c:typeof c,""))}return p=Os(O,g,p,A),p.elementType=c,p.type=v,p.lanes=S,p}function Pl(c,p,g,v){return c=Os(7,c,v,p),c.lanes=g,c}function Uy(c,p,g,v){return c=Os(22,c,v,p),c.elementType=q,c.lanes=g,c.stateNode={isHidden:!1},c}function k1(c,p,g){return c=Os(6,c,null,p),c.lanes=g,c}function U1(c,p,g){return p=Os(4,c.children!==null?c.children:[],c.key,p),p.lanes=g,p.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},p}function kue(c,p,g,v,A){this.tag=p,this.containerInfo=c,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ee,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ob(0),this.expirationTimes=Ob(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ob(0),this.identifierPrefix=v,this.onRecoverableError=A,tt&&(this.mutableSourceEagerHydrationData=null)}function jk(c,p,g,v,A,S,O,W,re){return c=new kue(c,p,g,W,re),p===1?(p=1,S===!0&&(p|=8)):p=0,S=Os(3,null,null,p),c.current=S,S.stateNode=c,S.memoizedState={element:v,isDehydrated:g,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kb(S),c}function Vk(c){if(!c)return Bt;c=c._reactInternals;e:{if(ne(c)!==c||c.tag!==1)throw Error(a(170));var p=c;do{switch(p.tag){case 3:p=p.stateNode.context;break e;case 1:if(dn(p.type)){p=p.stateNode.__reactInternalMemoizedMergedChildContext;break e}}p=p.return}while(p!==null);throw Error(a(171))}if(c.tag===1){var g=c.type;if(dn(g))return wm(c,g,p)}return p}function Hk(c){var p=c._reactInternals;if(p===void 0)throw typeof c.render=="function"?Error(a(188)):(c=Object.keys(c).join(","),Error(a(268,c)));return c=be(p),c===null?null:c.stateNode}function Gk(c,p){if(c=c.memoizedState,c!==null&&c.dehydrated!==null){var g=c.retryLane;c.retryLane=g!==0&&g<p?g:p}}function My(c,p){Gk(c,p),(c=c.alternate)&&Gk(c,p)}function Uue(c){return c=be(c),c===null?null:c.stateNode}function Mue(){return null}return r.attemptContinuousHydration=function(c){if(c.tag===13){var p=so(c,134217728);if(p!==null){var g=ai();Ns(p,c,134217728,g)}My(c,134217728)}},r.attemptDiscreteHydration=function(c){if(c.tag===13){var p=so(c,1);if(p!==null){var g=ai();Ns(p,c,1,g)}My(c,1)}},r.attemptHydrationAtCurrentPriority=function(c){if(c.tag===13){var p=nc(c),g=so(c,p);if(g!==null){var v=ai();Ns(g,c,p,v)}My(c,p)}},r.attemptSynchronousHydration=function(c){switch(c.tag){case 3:var p=c.stateNode;if(p.current.memoizedState.isDehydrated){var g=Tm(p.pendingLanes);g!==0&&(Pb(p,g|1),Gi(p,wn()),!(kt&6)&&(Ff(),io()))}break;case 13:Ok(function(){var v=so(c,1);if(v!==null){var A=ai();Ns(v,c,1,A)}}),My(c,1)}},r.batchedUpdates=function(c,p){var g=kt;kt|=1;try{return c(p)}finally{kt=g,kt===0&&(Ff(),ty&&io())}},r.createComponentSelector=function(c){return{$$typeof:Sy,value:c}},r.createContainer=function(c,p,g,v,A,S,O){return jk(c,p,!1,null,g,v,A,S,O)},r.createHasPseudoClassSelector=function(c){return{$$typeof:by,value:c}},r.createHydrationContainer=function(c,p,g,v,A,S,O,W,re){return c=jk(g,v,!0,c,A,S,O,W,re),c.context=Vk(null),g=c.current,v=ai(),A=nc(g),S=Yo(v,A),S.callback=p??null,ec(g,S,A),c.current.lanes=A,Im(c,A,v),Gi(c,v),c},r.createPortal=function(c,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:v==null?null:""+v,children:c,containerInfo:p,implementation:g}},r.createRoleSelector=function(c){return{$$typeof:Dy,value:c}},r.createTestNameSelector=function(c){return{$$typeof:wy,value:c}},r.createTextSelector=function(c){return{$$typeof:Ty,value:c}},r.deferredUpdates=function(c){var p=ar,g=on.transition;try{return on.transition=null,ar=16,c()}finally{ar=p,on.transition=g}},r.discreteUpdates=function(c,p,g,v,A){var S=ar,O=on.transition;try{return on.transition=null,ar=1,c(p,g,v,A)}finally{ar=S,on.transition=O,kt===0&&Ff()}},r.findAllNodes=b1,r.findBoundingRects=function(c,p){if(!Yu)throw Error(a(363));p=b1(c,p),c=[];for(var g=0;g<p.length;g++)c.push(df(p[g]));for(p=c.length-1;0<p;p--){g=c[p];for(var v=g.x,A=v+g.width,S=g.y,O=S+g.height,W=p-1;0<=W;W--)if(p!==W){var re=c[W],Ae=re.x,We=Ae+re.width,Et=re.y,Fe=Et+re.height;if(v>=Ae&&S>=Et&&A<=We&&O<=Fe){c.splice(p,1);break}else if(v!==Ae||g.width!==re.width||Fe<S||Et>O){if(!(S!==Et||g.height!==re.height||We<v||Ae>A)){Ae>v&&(re.width+=Ae-v,re.x=v),We<A&&(re.width=A-Ae),c.splice(p,1);break}}else{Et>S&&(re.height+=Et-S,re.y=S),Fe<O&&(re.height=O-Et),c.splice(p,1);break}}}return c},r.findHostInstance=Hk,r.findHostInstanceWithNoPortals=function(c){return c=Q(c),c=c!==null?et(c):null,c===null?null:c.stateNode},r.findHostInstanceWithWarning=function(c){return Hk(c)},r.flushControlled=function(c){var p=kt;kt|=1;var g=on.transition,v=ar;try{on.transition=null,ar=1,c()}finally{ar=v,on.transition=g,kt=p,kt===0&&(Ff(),io())}},r.flushPassiveEffects=Ol,r.flushSync=Ok,r.focusWithin=function(c,p){if(!Yu)throw Error(a(363));for(c=A1(c),p=Ik(c,p),p=Array.from(p),c=0;c<p.length;){var g=p[c++];if(!Ss(g)){if(g.tag===5&&xm(g.stateNode))return!0;for(g=g.child;g!==null;)p.push(g),g=g.sibling}}return!1},r.getCurrentUpdatePriority=function(){return ar},r.getFindAllNodesFailureDescription=function(c,p){if(!Yu)throw Error(a(363));var g=0,v=[];c=[A1(c),0];for(var A=0;A<c.length;){var S=c[A++],O=c[A++],W=p[O];if((S.tag!==5||!Ss(S))&&(C1(S,W)&&(v.push(S1(W)),O++,O>g&&(g=O)),O<p.length))for(S=S.child;S!==null;)c.push(S,O),S=S.sibling}if(g<p.length){for(c=[];g<p.length;g++)c.push(S1(p[g]));return`findAllNodes was able to match part of the selector:
|
|
34
|
-
`+(v.join(" > ")+`
|
|
35
|
-
|
|
36
|
-
No matching component was found for:
|
|
37
|
-
`)+c.join(" > ")}return null},r.getPublicRootInstance=function(c){if(c=c.current,!c.child)return null;switch(c.child.tag){case 5:return z(c.child.stateNode);default:return c.child.stateNode}},r.injectIntoDevTools=function(c){if(c={bundleType:c.bundleType,version:c.version,rendererPackageName:c.rendererPackageName,rendererConfig:c.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:o.ReactCurrentDispatcher,findHostInstanceByFiber:Uue,findFiberByHostInstance:c.findFiberByHostInstance||Mue,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")c=!1;else{var p=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(p.isDisabled||!p.supportsFiber)c=!0;else{try{ey=p.inject(c),no=p}catch{}c=!!p.checkDCE}}return c},r.isAlreadyRendering=function(){return!1},r.observeVisibleRects=function(c,p,g,v){if(!Yu)throw Error(a(363));c=b1(c,p);var A=Al(c,g,v).disconnect;return{disconnect:function(){A()}}},r.registerMutableSourceForHydration=function(c,p){var g=p._getVersion;g=g(p._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[p,g]:c.mutableSourceEagerHydrationData.push(p,g)},r.runWithPriority=function(c,p){var g=ar;try{return ar=c,p()}finally{ar=g}},r.shouldError=function(){return null},r.shouldSuspend=function(){return!1},r.updateContainer=function(c,p,g,v){var A=p.current,S=ai(),O=nc(A);return g=Vk(g),p.context===null?p.context=g:p.pendingContext=g,p=Yo(S,O),p.payload={element:c},v=v===void 0?null:v,v!==null&&(p.callback=v),c=ec(A,p,O),c!==null&&(Ns(c,A,O,S),uy(c,A,O)),O},r}});var fU=w((vje,pU)=>{"use strict";d();pU.exports=lU()});var dU=w(jl=>{"use strict";d();jl.ConcurrentRoot=1;jl.ContinuousEventPriority=4;jl.DefaultEventPriority=16;jl.DiscreteEventPriority=1;jl.IdleEventPriority=536870912;jl.LegacyRoot=0});var mU=w((_je,hU)=>{"use strict";d();hU.exports=dU()});var yx=w((Tje,qD)=>{"use strict";d();var gc={};typeof qD>"u"?window.eastasianwidth=gc:qD.exports=gc;gc.eastAsianWidth=function(e){var t=e.charCodeAt(0),r=e.length==2?e.charCodeAt(1):0,n=t;return 55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t&=1023,r&=1023,n=t<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n==8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n==172||n==175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n==161||n==164||167<=n&&n<=168||n==170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n==198||n==208||215<=n&&n<=216||222<=n&&n<=225||n==230||232<=n&&n<=234||236<=n&&n<=237||n==240||242<=n&&n<=243||247<=n&&n<=250||n==252||n==254||n==257||n==273||n==275||n==283||294<=n&&n<=295||n==299||305<=n&&n<=307||n==312||319<=n&&n<=322||n==324||328<=n&&n<=331||n==333||338<=n&&n<=339||358<=n&&n<=359||n==363||n==462||n==464||n==466||n==468||n==470||n==472||n==474||n==476||n==593||n==609||n==708||n==711||713<=n&&n<=715||n==717||n==720||728<=n&&n<=731||n==733||n==735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n==1025||1040<=n&&n<=1103||n==1105||n==8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n==8240||8242<=n&&n<=8243||n==8245||n==8251||n==8254||n==8308||n==8319||8321<=n&&n<=8324||n==8364||n==8451||n==8453||n==8457||n==8467||n==8470||8481<=n&&n<=8482||n==8486||n==8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n==8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n==8658||n==8660||n==8679||n==8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n==8715||n==8719||n==8721||n==8725||n==8730||8733<=n&&n<=8736||n==8739||n==8741||8743<=n&&n<=8748||n==8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n==8776||n==8780||n==8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n==8853||n==8857||n==8869||n==8895||n==8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n==9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n==9711||9733<=n&&n<=9734||n==9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n==9756||n==9758||n==9792||n==9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n==9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n==9955||9960<=n&&n<=9983||n==10045||n==10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n==65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"};gc.characterLength=function(e){var t=this.eastAsianWidth(e);return t=="F"||t=="W"||t=="A"?2:1};function gU(e){return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}gc.length=function(e){for(var t=gU(e),r=0,n=0;n<t.length;n++)r=r+this.characterLength(t[n]);return r};gc.slice=function(e,t,r){textLen=gc.length(e),t=t||0,r=r||1,t<0&&(t=textLen+t),r<0&&(r=textLen+r);for(var n="",i=0,s=gU(e),a=0;a<s.length;a++){var o=s[a],u=gc.length(o);if(i>=t-(u==2?1:0))if(i+u<=r)n+=o;else break;i+=u}return n}});var xx=w((Rje,vU)=>{"use strict";d();vU.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var QU=w((jVe,lfe)=>{lfe.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var KU=w((VVe,tw)=>{"use strict";d();var zU=QU();tw.exports=zU;tw.exports.default=zU});var f6=w((kHe,lw)=>{"use strict";d();var p6=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};lw.exports=p6;lw.exports.default=p6});var h6=w((MHe,Nx)=>{"use strict";d();var jfe=f6(),Rx=new WeakMap,d6=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...a){if(Rx.set(s,++n),n===1)r=e.apply(this,a),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return jfe(s,e),Rx.set(s,n),s};Nx.exports=d6;Nx.exports.default=d6;Nx.exports.callCount=e=>{if(!Rx.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Rx.get(e)}});var D6=w((y9e,b6)=>{"use strict";d();var tde=/[|\\{}()[\]^$+*?.-]/g;b6.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(tde,"\\$&")}});var R6=w((E9e,I6)=>{"use strict";d();var rde=D6(),nde=typeof process=="object"&&process&&typeof process.cwd=="function"?process.cwd():".",T6=[].concat(J("module").builtinModules,"bootstrap_node","node").map(e=>new RegExp(`(?:\\((?:node:)?${e}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${e}(?:\\.js)?:\\d+:\\d+$)`));T6.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);var dw=class e{constructor(t){t={ignoredPackages:[],...t},"internals"in t||(t.internals=e.nodeInternals()),"cwd"in t||(t.cwd=nde),this._cwd=t.cwd.replace(/\\/g,"/"),this._internals=[].concat(t.internals,ide(t.ignoredPackages)),this._wrapCallSite=t.wrapCallSite||!1}static nodeInternals(){return[...T6]}clean(t,r=0){r=" ".repeat(r),Array.isArray(t)||(t=t.split(`
|
|
38
|
-
`)),!/^\s*at /.test(t[0])&&/^\s*at /.test(t[1])&&(t=t.slice(1));let n=!1,i=null,s=[];return t.forEach(a=>{if(a=a.replace(/\\/g,"/"),this._internals.some(u=>u.test(a)))return;let o=/^\s*at /.test(a);n?a=a.trimEnd().replace(/^(\s+)at /,"$1"):(a=a.trim(),o&&(a=a.slice(3))),a=a.replace(`${this._cwd}/`,""),a&&(o?(i&&(s.push(i),i=null),s.push(a)):(n=!0,i=a))}),s.map(a=>`${r}${a}
|
|
39
|
-
`).join("")}captureString(t,r=this.captureString){typeof t=="function"&&(r=t,t=1/0);let{stackTraceLimit:n}=Error;t&&(Error.stackTraceLimit=t);let i={};Error.captureStackTrace(i,r);let{stack:s}=i;return Error.stackTraceLimit=n,this.clean(s)}capture(t,r=this.capture){typeof t=="function"&&(r=t,t=1/0);let{prepareStackTrace:n,stackTraceLimit:i}=Error;Error.prepareStackTrace=(o,u)=>this._wrapCallSite?u.map(this._wrapCallSite):u,t&&(Error.stackTraceLimit=t);let s={};Error.captureStackTrace(s,r);let{stack:a}=s;return Object.assign(Error,{prepareStackTrace:n,stackTraceLimit:i}),a}at(t=this.at){let[r]=this.capture(1,t);if(!r)return{};let n={line:r.getLineNumber(),column:r.getColumnNumber()};w6(n,r.getFileName(),this._cwd),r.isConstructor()&&Object.defineProperty(n,"constructor",{value:!0,configurable:!0}),r.isEval()&&(n.evalOrigin=r.getEvalOrigin()),r.isNative()&&(n.native=!0);let i;try{i=r.getTypeName()}catch{}i&&i!=="Object"&&i!=="[object Object]"&&(n.type=i);let s=r.getFunctionName();s&&(n.function=s);let a=r.getMethodName();return a&&s!==a&&(n.method=a),n}parseLine(t){let r=t&&t.match(sde);if(!r)return null;let n=r[1]==="new",i=r[2],s=r[3],a=r[4],o=Number(r[5]),u=Number(r[6]),l=r[7],f=r[8],h=r[9],m=r[10]==="native",y=r[11]===")",_,C={};if(f&&(C.line=Number(f)),h&&(C.column=Number(h)),y&&l){let b=0;for(let D=l.length-1;D>0;D--)if(l.charAt(D)===")")b++;else if(l.charAt(D)==="("&&l.charAt(D-1)===" "&&(b--,b===-1&&l.charAt(D-1)===" ")){let L=l.slice(0,D-1);l=l.slice(D+1),i+=` (${L}`;break}}if(i){let b=i.match(ade);b&&(i=b[1],_=b[2])}return w6(C,l,this._cwd),n&&Object.defineProperty(C,"constructor",{value:!0,configurable:!0}),s&&(C.evalOrigin=s,C.evalLine=o,C.evalColumn=u,C.evalFile=a&&a.replace(/\\/g,"/")),m&&(C.native=!0),i&&(C.function=i),_&&i!==_&&(C.method=_),C}};function w6(e,t,r){t&&(t=t.replace(/\\/g,"/"),t.startsWith(`${r}/`)&&(t=t.slice(r.length+1)),e.file=t)}function ide(e){if(e.length===0)return[];let t=e.map(r=>rde(r));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${t.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}var sde=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),ade=/^(.*?) \[as (.*?)\]$/;I6.exports=dw});var kM=w((yg,sd)=>{"use strict";d();var che=200,Uw="__lodash_hash_undefined__",Yx=1,hM=2,mM=9007199254740991,Hx="[object Arguments]",Nw="[object Array]",lhe="[object AsyncFunction]",gM="[object Boolean]",vM="[object Date]",yM="[object Error]",xM="[object Function]",phe="[object GeneratorFunction]",Gx="[object Map]",EM="[object Number]",fhe="[object Null]",id="[object Object]",nM="[object Promise]",dhe="[object Proxy]",_M="[object RegExp]",Wx="[object Set]",AM="[object String]",hhe="[object Symbol]",mhe="[object Undefined]",Ow="[object WeakMap]",CM="[object ArrayBuffer]",Qx="[object DataView]",ghe="[object Float32Array]",vhe="[object Float64Array]",yhe="[object Int8Array]",xhe="[object Int16Array]",Ehe="[object Int32Array]",_he="[object Uint8Array]",Ahe="[object Uint8ClampedArray]",Che="[object Uint16Array]",She="[object Uint32Array]",bhe=/[\\^$.*+?()[\]{}|]/g,Dhe=/^\[object .+?Constructor\]$/,whe=/^(?:0|[1-9]\d*)$/,Pr={};Pr[ghe]=Pr[vhe]=Pr[yhe]=Pr[xhe]=Pr[Ehe]=Pr[_he]=Pr[Ahe]=Pr[Che]=Pr[She]=!0;Pr[Hx]=Pr[Nw]=Pr[CM]=Pr[gM]=Pr[Qx]=Pr[vM]=Pr[yM]=Pr[xM]=Pr[Gx]=Pr[EM]=Pr[id]=Pr[_M]=Pr[Wx]=Pr[AM]=Pr[Ow]=!1;var SM=typeof global=="object"&&global&&global.Object===Object&&global,The=typeof self=="object"&&self&&self.Object===Object&&self,iu=SM||The||Function("return this")(),bM=typeof yg=="object"&&yg&&!yg.nodeType&&yg,iM=bM&&typeof sd=="object"&&sd&&!sd.nodeType&&sd,DM=iM&&iM.exports===bM,Tw=DM&&SM.process,sM=function(){try{return Tw&&Tw.binding&&Tw.binding("util")}catch{}}(),aM=sM&&sM.isTypedArray;function Ihe(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[i++]=a)}return s}function Rhe(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function Nhe(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Ohe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Phe(e){return function(t){return e(t)}}function Bhe(e,t){return e.has(t)}function Lhe(e,t){return e?.[t]}function Fhe(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function khe(e,t){return function(r){return e(t(r))}}function Uhe(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Mhe=Array.prototype,qhe=Function.prototype,Xx=Object.prototype,Iw=iu["__core-js_shared__"],wM=qhe.toString,go=Xx.hasOwnProperty,oM=function(){var e=/[^.]+$/.exec(Iw&&Iw.keys&&Iw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),TM=Xx.toString,jhe=RegExp("^"+wM.call(go).replace(bhe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),uM=DM?iu.Buffer:void 0,zx=iu.Symbol,cM=iu.Uint8Array,IM=Xx.propertyIsEnumerable,Vhe=Mhe.splice,Hl=zx?zx.toStringTag:void 0,lM=Object.getOwnPropertySymbols,Hhe=uM?uM.isBuffer:void 0,Ghe=khe(Object.keys,Object),Pw=ad(iu,"DataView"),xg=ad(iu,"Map"),Bw=ad(iu,"Promise"),Lw=ad(iu,"Set"),Fw=ad(iu,"WeakMap"),Eg=ad(Object,"create"),Whe=Ql(Pw),Qhe=Ql(xg),zhe=Ql(Bw),Khe=Ql(Lw),$he=Ql(Fw),pM=zx?zx.prototype:void 0,Rw=pM?pM.valueOf:void 0;function Gl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Yhe(){this.__data__=Eg?Eg(null):{},this.size=0}function Xhe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Jhe(e){var t=this.__data__;if(Eg){var r=t[e];return r===Uw?void 0:r}return go.call(t,e)?t[e]:void 0}function Zhe(e){var t=this.__data__;return Eg?t[e]!==void 0:go.call(t,e)}function eme(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Eg&&t===void 0?Uw:t,this}Gl.prototype.clear=Yhe;Gl.prototype.delete=Xhe;Gl.prototype.get=Jhe;Gl.prototype.has=Zhe;Gl.prototype.set=eme;function su(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function tme(){this.__data__=[],this.size=0}function rme(e){var t=this.__data__,r=Jx(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Vhe.call(t,r,1),--this.size,!0}function nme(e){var t=this.__data__,r=Jx(t,e);return r<0?void 0:t[r][1]}function ime(e){return Jx(this.__data__,e)>-1}function sme(e,t){var r=this.__data__,n=Jx(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}su.prototype.clear=tme;su.prototype.delete=rme;su.prototype.get=nme;su.prototype.has=ime;su.prototype.set=sme;function Wl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ame(){this.size=0,this.__data__={hash:new Gl,map:new(xg||su),string:new Gl}}function ome(e){var t=Zx(this,e).delete(e);return this.size-=t?1:0,t}function ume(e){return Zx(this,e).get(e)}function cme(e){return Zx(this,e).has(e)}function lme(e,t){var r=Zx(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}Wl.prototype.clear=ame;Wl.prototype.delete=ome;Wl.prototype.get=ume;Wl.prototype.has=cme;Wl.prototype.set=lme;function Kx(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Wl;++t<r;)this.add(e[t])}function pme(e){return this.__data__.set(e,Uw),this}function fme(e){return this.__data__.has(e)}Kx.prototype.add=Kx.prototype.push=pme;Kx.prototype.has=fme;function xc(e){var t=this.__data__=new su(e);this.size=t.size}function dme(){this.__data__=new su,this.size=0}function hme(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function mme(e){return this.__data__.get(e)}function gme(e){return this.__data__.has(e)}function vme(e,t){var r=this.__data__;if(r instanceof su){var n=r.__data__;if(!xg||n.length<che-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Wl(n)}return r.set(e,t),this.size=r.size,this}xc.prototype.clear=dme;xc.prototype.delete=hme;xc.prototype.get=mme;xc.prototype.has=gme;xc.prototype.set=vme;function yme(e,t){var r=$x(e),n=!r&&Pme(e),i=!r&&!n&&kw(e),s=!r&&!n&&!i&&FM(e),a=r||n||i||s,o=a?Ohe(e.length,String):[],u=o.length;for(var l in e)(t||go.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||s&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Tme(l,u)))&&o.push(l);return o}function Jx(e,t){for(var r=e.length;r--;)if(OM(e[r][0],t))return r;return-1}function xme(e,t,r){var n=t(e);return $x(e)?n:Rhe(n,r(e))}function Ag(e){return e==null?e===void 0?mhe:fhe:Hl&&Hl in Object(e)?Dme(e):Ome(e)}function fM(e){return _g(e)&&Ag(e)==Hx}function RM(e,t,r,n,i){return e===t?!0:e==null||t==null||!_g(e)&&!_g(t)?e!==e&&t!==t:Eme(e,t,r,n,RM,i)}function Eme(e,t,r,n,i,s){var a=$x(e),o=$x(t),u=a?Nw:yc(e),l=o?Nw:yc(t);u=u==Hx?id:u,l=l==Hx?id:l;var f=u==id,h=l==id,m=u==l;if(m&&kw(e)){if(!kw(t))return!1;a=!0,f=!1}if(m&&!f)return s||(s=new xc),a||FM(e)?NM(e,t,r,n,i,s):Sme(e,t,u,r,n,i,s);if(!(r&Yx)){var y=f&&go.call(e,"__wrapped__"),_=h&&go.call(t,"__wrapped__");if(y||_){var C=y?e.value():e,b=_?t.value():t;return s||(s=new xc),i(C,b,r,n,s)}}return m?(s||(s=new xc),bme(e,t,r,n,i,s)):!1}function _me(e){if(!LM(e)||Rme(e))return!1;var t=PM(e)?jhe:Dhe;return t.test(Ql(e))}function Ame(e){return _g(e)&&BM(e.length)&&!!Pr[Ag(e)]}function Cme(e){if(!Nme(e))return Ghe(e);var t=[];for(var r in Object(e))go.call(e,r)&&r!="constructor"&&t.push(r);return t}function NM(e,t,r,n,i,s){var a=r&Yx,o=e.length,u=t.length;if(o!=u&&!(a&&u>o))return!1;var l=s.get(e);if(l&&s.get(t))return l==t;var f=-1,h=!0,m=r&hM?new Kx:void 0;for(s.set(e,t),s.set(t,e);++f<o;){var y=e[f],_=t[f];if(n)var C=a?n(_,y,f,t,e,s):n(y,_,f,e,t,s);if(C!==void 0){if(C)continue;h=!1;break}if(m){if(!Nhe(t,function(b,D){if(!Bhe(m,D)&&(y===b||i(y,b,r,n,s)))return m.push(D)})){h=!1;break}}else if(!(y===_||i(y,_,r,n,s))){h=!1;break}}return s.delete(e),s.delete(t),h}function Sme(e,t,r,n,i,s,a){switch(r){case Qx:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case CM:return!(e.byteLength!=t.byteLength||!s(new cM(e),new cM(t)));case gM:case vM:case EM:return OM(+e,+t);case yM:return e.name==t.name&&e.message==t.message;case _M:case AM:return e==t+"";case Gx:var o=Fhe;case Wx:var u=n&Yx;if(o||(o=Uhe),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;n|=hM,a.set(e,t);var f=NM(o(e),o(t),n,i,s,a);return a.delete(e),f;case hhe:if(Rw)return Rw.call(e)==Rw.call(t)}return!1}function bme(e,t,r,n,i,s){var a=r&Yx,o=dM(e),u=o.length,l=dM(t),f=l.length;if(u!=f&&!a)return!1;for(var h=u;h--;){var m=o[h];if(!(a?m in t:go.call(t,m)))return!1}var y=s.get(e);if(y&&s.get(t))return y==t;var _=!0;s.set(e,t),s.set(t,e);for(var C=a;++h<u;){m=o[h];var b=e[m],D=t[m];if(n)var L=a?n(D,b,m,t,e,s):n(b,D,m,e,t,s);if(!(L===void 0?b===D||i(b,D,r,n,s):L)){_=!1;break}C||(C=m=="constructor")}if(_&&!C){var F=e.constructor,q=t.constructor;F!=q&&"constructor"in e&&"constructor"in t&&!(typeof F=="function"&&F instanceof F&&typeof q=="function"&&q instanceof q)&&(_=!1)}return s.delete(e),s.delete(t),_}function dM(e){return xme(e,Fme,wme)}function Zx(e,t){var r=e.__data__;return Ime(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ad(e,t){var r=Lhe(e,t);return _me(r)?r:void 0}function Dme(e){var t=go.call(e,Hl),r=e[Hl];try{e[Hl]=void 0;var n=!0}catch{}var i=TM.call(e);return n&&(t?e[Hl]=r:delete e[Hl]),i}var wme=lM?function(e){return e==null?[]:(e=Object(e),Ihe(lM(e),function(t){return IM.call(e,t)}))}:kme,yc=Ag;(Pw&&yc(new Pw(new ArrayBuffer(1)))!=Qx||xg&&yc(new xg)!=Gx||Bw&&yc(Bw.resolve())!=nM||Lw&&yc(new Lw)!=Wx||Fw&&yc(new Fw)!=Ow)&&(yc=function(e){var t=Ag(e),r=t==id?e.constructor:void 0,n=r?Ql(r):"";if(n)switch(n){case Whe:return Qx;case Qhe:return Gx;case zhe:return nM;case Khe:return Wx;case $he:return Ow}return t});function Tme(e,t){return t=t??mM,!!t&&(typeof e=="number"||whe.test(e))&&e>-1&&e%1==0&&e<t}function Ime(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Rme(e){return!!oM&&oM in e}function Nme(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Xx;return e===r}function Ome(e){return TM.call(e)}function Ql(e){if(e!=null){try{return wM.call(e)}catch{}try{return e+""}catch{}}return""}function OM(e,t){return e===t||e!==e&&t!==t}var Pme=fM(function(){return arguments}())?fM:function(e){return _g(e)&&go.call(e,"callee")&&!IM.call(e,"callee")},$x=Array.isArray;function Bme(e){return e!=null&&BM(e.length)&&!PM(e)}var kw=Hhe||Ume;function Lme(e,t){return RM(e,t)}function PM(e){if(!LM(e))return!1;var t=Ag(e);return t==xM||t==phe||t==lhe||t==dhe}function BM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=mM}function LM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function _g(e){return e!=null&&typeof e=="object"}var FM=aM?Phe(aM):Ame;function Fme(e){return Bme(e)?yme(e):Cme(e)}function kme(){return[]}function Ume(){return!1}sd.exports=Lme});var MM=w((nze,UM)=>{"use strict";d();UM.exports=(e,t)=>{if(!Array.isArray(e))throw new TypeError(`Expected an array, got ${typeof e}`);let r=e.slice(),n=typeof t=="number"?t:0;return r.splice(-n%r.length).concat(r)}});var jw=w((iKe,$M)=>{"use strict";d();$M.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var JM=w((aKe,XM)=>{"use strict";d();var Kme=J("os"),YM=J("tty"),Fs=jw(),{env:On}=process,_c;Fs("no-color")||Fs("no-colors")||Fs("color=false")||Fs("color=never")?_c=0:(Fs("color")||Fs("colors")||Fs("color=true")||Fs("color=always"))&&(_c=1);"FORCE_COLOR"in On&&(On.FORCE_COLOR==="true"?_c=1:On.FORCE_COLOR==="false"?_c=0:_c=On.FORCE_COLOR.length===0?1:Math.min(parseInt(On.FORCE_COLOR,10),3));function Vw(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Hw(e,t){if(_c===0)return 0;if(Fs("color=16m")||Fs("color=full")||Fs("color=truecolor"))return 3;if(Fs("color=256"))return 2;if(e&&!t&&_c===void 0)return 0;let r=_c||0;if(On.TERM==="dumb")return r;if(process.platform==="win32"){let n=Kme.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in On)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in On)||On.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in On)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(On.TEAMCITY_VERSION)?1:0;if(On.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in On){let n=parseInt((On.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(On.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(On.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(On.TERM)||"COLORTERM"in On?1:r}function $me(e){let t=Hw(e,e&&e.isTTY);return Vw(t)}XM.exports={supportsColor:$me,stdout:Vw(Hw(!0,YM.isatty(1))),stderr:Vw(Hw(!0,YM.isatty(2)))}});var t5=w((uKe,e5)=>{"use strict";d();var Yme=JM(),ld=jw();function ZM(e){if(/^\d{3,4}$/.test(e)){let r=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let t=(e||"").split(".").map(r=>parseInt(r,10));return{major:t[0],minor:t[1],patch:t[2]}}function Gw(e){let{env:t}=process;if("FORCE_HYPERLINK"in t)return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0);if(ld("no-hyperlink")||ld("no-hyperlinks")||ld("hyperlink=false")||ld("hyperlink=never"))return!1;if(ld("hyperlink=true")||ld("hyperlink=always")||"NETLIFY"in t)return!0;if(!Yme.supportsColor(e)||e&&!e.isTTY||process.platform==="win32"||"CI"in t||"TEAMCITY_VERSION"in t)return!1;if("TERM_PROGRAM"in t){let r=ZM(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":return r.major===3?r.minor>=1:r.major>3;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0")return!1;let r=ZM(t.VTE_VERSION);return r.major>0||r.minor>=50}return!1}e5.exports={supportsHyperlink:Gw,stdout:Gw(process.stdout),stderr:Gw(process.stderr)}});var r5=w((xKe,Xme)=>{Xme.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var s5=w((EKe,i5)=>{"use strict";d();var iE=Object.assign({},r5()),n5=Object.keys(iE);Object.defineProperty(iE,"random",{get(){let e=Math.floor(Math.random()*n5.length),t=n5[e];return iE[t]}});i5.exports=iE});var Rg={};M1(Rg,{__addDisposableResource:()=>V5,__assign:()=>Mt,__asyncDelegator:()=>B5,__asyncGenerator:()=>P5,__asyncValues:()=>L5,__await:()=>_d,__awaiter:()=>T5,__classPrivateFieldGet:()=>M5,__classPrivateFieldIn:()=>j5,__classPrivateFieldSet:()=>q5,__createBinding:()=>gE,__decorate:()=>b5,__disposeResources:()=>H5,__esDecorate:()=>E0e,__exportStar:()=>R5,__extends:()=>lp,__generator:()=>I5,__importDefault:()=>U5,__importStar:()=>k5,__makeTemplateObject:()=>F5,__metadata:()=>w5,__param:()=>D5,__propKey:()=>A0e,__read:()=>iT,__rest:()=>mE,__runInitializers:()=>_0e,__setFunctionName:()=>C0e,__spread:()=>N5,__spreadArray:()=>Ad,__spreadArrays:()=>O5,__values:()=>hE,default:()=>D0e});function lp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nT(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function mE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function b5(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(s=(i<3?a(s):i>3?a(t,r,s):a(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function D5(e,t){return function(r,n){t(r,n,e)}}function E0e(e,t,r,n,i,s){function a(D){if(D!==void 0&&typeof D!="function")throw new TypeError("Function expected");return D}for(var o=n.kind,u=o==="getter"?"get":o==="setter"?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),h,m=!1,y=r.length-1;y>=0;y--){var _={};for(var C in n)_[C]=C==="access"?{}:n[C];for(var C in n.access)_.access[C]=n.access[C];_.addInitializer=function(D){if(m)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(D||null))};var b=(0,r[y])(o==="accessor"?{get:f.get,set:f.set}:f[u],_);if(o==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(h=a(b.get))&&(f.get=h),(h=a(b.set))&&(f.set=h),(h=a(b.init))&&i.unshift(h)}else(h=a(b))&&(o==="field"?i.unshift(h):f[u]=h)}l&&Object.defineProperty(l,n.name,f),m=!0}function _0e(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function A0e(e){return typeof e=="symbol"?e:"".concat(e)}function C0e(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function w5(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function T5(e,t,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return new(r||(r=Promise))(function(s,a){function o(f){try{l(n.next(f))}catch(h){a(h)}}function u(f){try{l(n.throw(f))}catch(h){a(h)}}function l(f){f.done?s(f.value):i(f.value).then(o,u)}l((n=n.apply(e,t||[])).next())})}function I5(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(f){return u([l,f])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(s=l[0]&2?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){r.label=l[1];break}if(l[0]===6&&r.label<s[1]){r.label=s[1],s=l;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(l);break}s[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(f){l=[6,f],i=0}finally{n=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function R5(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&gE(t,e,r)}function hE(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function iT(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return s}function N5(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(iT(arguments[t]));return e}function O5(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var s=arguments[t],a=0,o=s.length;a<o;a++,i++)n[i]=s[a];return n}function Ad(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function _d(e){return this instanceof _d?(this.v=e,this):new _d(e)}function P5(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,s=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(m){n[m]&&(i[m]=function(y){return new Promise(function(_,C){s.push([m,y,_,C])>1||o(m,y)})})}function o(m,y){try{u(n[m](y))}catch(_){h(s[0][3],_)}}function u(m){m.value instanceof _d?Promise.resolve(m.value.v).then(l,f):h(s[0][2],m)}function l(m){o("next",m)}function f(m){o("throw",m)}function h(m,y){m(y),s.shift(),s.length&&o(s[0][0],s[0][1])}}function B5(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,s){t[i]=e[i]?function(a){return(r=!r)?{value:_d(e[i](a)),done:!1}:s?s(a):a}:s}}function L5(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof hE=="function"?hE(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=e[s]&&function(a){return new Promise(function(o,u){a=e[s](a),i(o,u,a.done,a.value)})}}function i(s,a,o,u){Promise.resolve(u).then(function(l){s({value:l,done:o})},a)}}function F5(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function k5(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&gE(t,e,r);return S0e(t,e),t}function U5(e){return e&&e.__esModule?e:{default:e}}function M5(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function q5(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function j5(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function V5(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if(typeof n!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}function H5(e){function t(n){e.error=e.hasError?new b0e(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}function r(){for(;e.stack.length;){var n=e.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,function(s){return t(s),r()})}catch(s){t(s)}}if(e.hasError)throw e.error}return r()}var nT,Mt,gE,S0e,b0e,D0e,yo=Si(()=>{"use strict";d();nT=function(e,t){return nT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},nT(e,t)};Mt=function(){return Mt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Mt.apply(this,arguments)};gE=Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};S0e=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};b0e=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};D0e={__extends:lp,__assign:Mt,__rest:mE,__decorate:b5,__param:D5,__metadata:w5,__awaiter:T5,__generator:I5,__createBinding:gE,__exportStar:R5,__values:hE,__read:iT,__spread:N5,__spreadArrays:O5,__spreadArray:Ad,__await:_d,__asyncGenerator:P5,__asyncDelegator:B5,__asyncValues:L5,__makeTemplateObject:F5,__importStar:k5,__importDefault:U5,__classPrivateFieldGet:M5,__classPrivateFieldSet:q5,__classPrivateFieldIn:j5,__addDisposableResource:V5,__disposeResources:H5}});var Ng=w(zi=>{"use strict";d();Object.defineProperty(zi,"__esModule",{value:!0});zi.ORIGINAL_PROTOCOL_HEADER=zi.ORIGINAL_HOST_HEADER=zi.ORIGINAL_URL_HEADER=zi.SSR_PROTOCOL=zi.SSR_HOST=zi.NO_SCENARIO_FOUND=void 0;zi.NO_SCENARIO_FOUND="NO_SCENARIO_FOUND";zi.SSR_HOST="www.wix.com";zi.SSR_PROTOCOL="http";zi.ORIGINAL_URL_HEADER="x-wix-metro-original-url";zi.ORIGINAL_HOST_HEADER="x-wix-metro-original-host";zi.ORIGINAL_PROTOCOL_HEADER="x-wix-metro-original-protocol"});function G5(){if(typeof document=="object")return document}function pp(){return typeof self=="object"?self:global}var Og=Si(()=>{"use strict";d()});function W5(e){let t=T0e(e);return t?t.split("=")[1]:""}function w0e(){let e=G5();return e&&e.cookie?decodeURIComponent(e.cookie).split(";"):[]}function T0e(e){return w0e().filter(t=>e===t.split("=")[0].trim())[0]}var Q5=Si(()=>{"use strict";d();Og()});function z5(){let e=W5(I0e);return{[R0e]:e}}var I0e,R0e,K5=Si(()=>{"use strict";d();Q5();I0e="XSRF-TOKEN",R0e="x-xsrf-token"});function $5(){let e=O0e();return{[N0e]:e}}function O0e(){let e=pp();return e&&e.commonConfig&&typeof e.commonConfig.brand=="string"?e.commonConfig.brand:""}var N0e,Y5=Si(()=>{"use strict";d();Og();N0e="x-wix-brand"});function X5(){return B0e()||P0e()||L0e()}function P0e(){let e=pp();if(e&&e.Wix&&e.Wix.Utils&&typeof e.Wix.Utils._getConsentPolicyHeader=="function")return e.Wix.Utils._getConsentPolicyHeader()}function B0e(){let e=pp();if(e&&e.consentPolicyManager&&typeof e.consentPolicyManager._getConsentPolicyHeader=="function")return e.consentPolicyManager._getConsentPolicyHeader()}function L0e(){return{}}var J5=Si(()=>{"use strict";d();Og()});function Z5(e){return{authorization:e}}var eq=Si(()=>{"use strict";d()});function tq(){return F0e()?!!process.env.TEAMCITY_VERSION||!!process.env.BUILDKITE:!1}function F0e(){var e;return typeof process<"u"&&((e=process.versions)===null||e===void 0?void 0:e.node)!=null}var rq=Si(()=>{"use strict";d()});function nq(e){var t,r;let n=(r=(t=process.env.ARTIFACT_ID)!==null&&t!==void 0?t:process.env.APP_NAME)!==null&&r!==void 0?r:"";return{"X-Wix-Client-Artifact-Id":e??(tq()?"":n)}}var iq=Si(()=>{"use strict";d();rq()});function q0e(){let e=pp(),t=e?.commonConfig;if(!t)return null;let r={},n=!1;return Object.keys(t).forEach(i=>{let s=M0e[i];s?(r[s]=t[i],n=!0):k0e.indexOf(i)<0&&typeof t[i]!="function"&&(r[i]=t[i],n=!0)}),n?r:null}var k0e,U0e,M0e,sq,aq=Si(()=>{"use strict";d();Og();k0e=["consentPolicy","consentPolicyHeader"],U0e="commonConfig",M0e={bsi:"BSI"};sq=()=>{let e=q0e(),t=e?JSON.stringify(e):"";return{[U0e]:encodeURIComponent(t)}}});var oq=w((vE,Pg)=>{"use strict";d();(function(e){var t=typeof vE=="object"&&vE,r=typeof Pg=="object"&&Pg&&Pg.exports==t&&Pg,n=typeof global=="object"&&global;(n.global===n||n.window===n)&&(e=n);var i=function(m){this.message=m};i.prototype=new Error,i.prototype.name="InvalidCharacterError";var s=function(m){throw new i(m)},a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=/[\t\n\f\r ]/g,u=function(m){m=String(m).replace(o,"");var y=m.length;y%4==0&&(m=m.replace(/==?$/,""),y=m.length),(y%4==1||/[^+a-zA-Z0-9/]/.test(m))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var _=0,C,b,D="",L=-1;++L<y;)b=a.indexOf(m.charAt(L)),C=_%4?C*64+b:b,_++%4&&(D+=String.fromCharCode(255&C>>(-2*_&6)));return D},l=function(m){m=String(m),/[^\0-\xFF]/.test(m)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var y=m.length%3,_="",C=-1,b,D,L,F,q=m.length-y;++C<q;)b=m.charCodeAt(C)<<16,D=m.charCodeAt(++C)<<8,L=m.charCodeAt(++C),F=b+D+L,_+=a.charAt(F>>18&63)+a.charAt(F>>12&63)+a.charAt(F>>6&63)+a.charAt(F&63);return y==2?(b=m.charCodeAt(C)<<8,D=m.charCodeAt(++C),F=b+D,_+=a.charAt(F>>10)+a.charAt(F>>4&63)+a.charAt(F<<2&63)+"="):y==1&&(F=m.charCodeAt(C),_+=a.charAt(F>>2)+a.charAt(F<<4&63)+"=="),_},f={encode:l,decode:u,version:"1.0.0"};if(typeof define=="function"&&typeof define.amd=="object"&&define.amd)define(function(){return f});else if(t&&!t.nodeType)if(r)r.exports=f;else for(var h in f)f.hasOwnProperty(h)&&(t[h]=f[h]);else e.base64=f})(vE)});function cq({lang:e,locale:t,isPrimaryLanguage:r,signedInstance:n}){if(V0e({lang:e,locale:t,isPrimaryLanguage:r})){let i=H0e(n);if(i!==void 0)return{[j0e]:[e,t,r?.toString(),i].join("|")}}return{}}function V0e({lang:e,locale:t,isPrimaryLanguage:r}){return e&&t&&/^(true|false)$/.test(r?.toString()||"")}function H0e(e){try{let t=e?.startsWith("wixcode")?e?.split(".")[2]:e?.split(".")[1];if(t)return JSON.parse(uq.default.decode(t)).instanceId}catch{}}var uq,j0e,lq=Si(()=>{"use strict";d();uq=Ce(oq()),j0e="x-wix-linguist"});var Bg,pq=Si(()=>{"use strict";d();Bg=class extends Error{constructor(t,r,n){super(`WixHeadersValidationError: expected ${r} to be ${t} but got ${JSON.stringify(n)}`)}}});function fq(e,t){if(typeof t!="boolean")throw new Bg("boolean",e,t)}function dq(e,t){if(typeof t!="string")throw new Bg("string",e,t)}var hq=Si(()=>{"use strict";d();pq()});var mq={};M1(mq,{createHeaders:()=>G0e});function G0e(e={}){e=Object.assign({csrf:!0,signedInstance:""},e),W0e(e);let t=[$5(),X5(),Z5(e.signedInstance),nq(e.artifactId),sq(),cq(Object.assign({signedInstance:e.signedInstance},e.multilingualOptions))];return e.csrf&&t.push(z5()),t.filter(r=>Object.values(r).every(n=>n)).reduce((r,n)=>Object.assign(Object.assign({},r),n),{})}function W0e(e){fq("opts.csrf",e.csrf),dq("opts.signedInstance",e.signedInstance)}var gq=Si(()=>{"use strict";d();K5();Y5();J5();eq();iq();aq();lq();hq()});var sT=w(Dc=>{"use strict";d();Object.defineProperty(Dc,"__esModule",{value:!0});Dc.isNode=Dc.isWebWorker=Dc.isBrowser=void 0;function Q0e(){return typeof window<"u"}Dc.isBrowser=Q0e;function z0e(){var e;return typeof self=="object"&&((e=self?.constructor)===null||e===void 0?void 0:e.name)==="DedicatedWorkerGlobalScope"}Dc.isWebWorker=z0e;function K0e(){var e;return typeof process<"u"&&((e=process==null?void 0:process.versions)===null||e===void 0?void 0:e.node)!=null}Dc.isNode=K0e});var yE=w(Dr=>{"use strict";d();Object.defineProperty(Dr,"__esModule",{value:!0});Dr.toSearchQueryParams=Dr.shouldAllowUnmocked=Dr.isHttpMockServerEnabled=Dr.getGlobalConfig=Dr.changeHost=Dr.extractHost=Dr.extractProtocol=Dr.resolveProtocol=Dr.resolveHost=Dr.extractProp=Dr.silent=Dr.isAbsoluteUrl=void 0;var vq=Ng(),aT=sT();function $0e(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return/(^https?:)|(^\/\/)/.test(e)}Dr.isAbsoluteUrl=$0e;async function Y0e(e){try{await e()}catch{}}Dr.silent=Y0e;function X0e(e,t){return t.split(".").filter(r=>r).reduce((r,n)=>r[n],e)}Dr.extractProp=X0e;function J0e(e){return e.baseURL?xq(e.baseURL):e.isSSR?vq.SSR_HOST:typeof self<"u"&&self.location?self.location.host:""}Dr.resolveHost=J0e;function Z0e(e){return e.baseURL?yq(e.baseURL):e.isSSR?vq.SSR_PROTOCOL:typeof self<"u"&&self.location?self.location.protocol:""}Dr.resolveProtocol=Z0e;function yq(e){try{return new URL(e).protocol}catch{return Eq(e).protocol}}Dr.extractProtocol=yq;function xq(e){let t;try{t=new URL(e)}catch{t=new URL(`http:${e}`)}try{return t.host}catch{return Eq(e).host}}Dr.extractHost=xq;function Eq(e){let t=new RegExp("^(.*:)//([A-Za-z0-9-.]+)(:[0-9]+)?(.*)$");try{let r=t.exec(e);return{protocol:r[1],host:r[2]}}catch{return{protocol:"http:",host:""}}}function eve(e,t){let r;try{r=new URL(e),r.host=t,r.protocol="http"}catch{r=new URL(`http://${t}`),r.pathname=e}return r.toString()}Dr.changeHost=eve;function oT(){let e={httpMockServer:{enabled:!1}},t;if((0,aT.isNode)()&&process.env.HTTP_CLIENT_GLOBAL_CONFIG)try{t=JSON.parse(process.env.HTTP_CLIENT_GLOBAL_CONFIG)}catch{}return t||((0,aT.isBrowser)()?t=window._httpClientGlobalConfig:(0,aT.isWebWorker)()),t||e}Dr.getGlobalConfig=oT;function tve(){return oT().httpMockServer.enabled}Dr.isHttpMockServerEnabled=tve;function rve(){return oT().httpMockServer.allowUnmocked}Dr.shouldAllowUnmocked=rve;function nve(e){return Object.entries(e).map(([t,r])=>`${t}=${encodeURIComponent(r)}`).flat().join("&")}Dr.toSearchQueryParams=nve});var _q=w((xYe,ive)=>{ive.exports=["wix.com","editorx.com","wix-code.com","wixapps.net","wixprod.net"]});var xE=w(wc=>{"use strict";d();Object.defineProperty(wc,"__esModule",{value:!0});wc.isWixDomain=wc.composeHeaders=wc.requestIdOrEmptyString=void 0;var sve=(yo(),kf(Rg)),ave=(gq(),kf(mq)),Aq=yE(),ove=sve.__importDefault(_q());function uve(e){var t;return((t=e?.headers)===null||t===void 0?void 0:t["x-wix-request-id"])||""}wc.requestIdOrEmptyString=uve;var cve=({url:e,disableWixHeaders:t,wixHeadersOpts:r})=>!t&&Cq(e)?(0,ave.createHeaders)(r):{};wc.composeHeaders=cve;function Cq(e){if(!(0,Aq.isAbsoluteUrl)(e))return!0;let r=`.${(0,Aq.extractHost)(e)}`;return!!ove.default.find(i=>r.endsWith(`.${i}`))}wc.isWixDomain=Cq});var uT=w(pu=>{"use strict";d();Object.defineProperty(pu,"__esModule",{value:!0});pu.createHttpError=pu.HttpError=pu.axiosErrorFields=void 0;var lve=xE();pu.axiosErrorFields=["code","config","request","response","toJSON","__CANCEL__"];var EE=class e extends Error{constructor(t){super(t.message),this.isWixHttpError=!0,Object.setPrototypeOf(this,e.prototype),pu.axiosErrorFields.forEach(r=>{this[r]=t[r]})}get requestId(){return(0,lve.requestIdOrEmptyString)(this.response)}};pu.HttpError=EE;function pve(...e){return new EE(...e)}pu.createHttpError=pve});var cT=w((SYe,Sq)=>{"use strict";d();Sq.exports=function(t,r){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return t.apply(r,i)}}});var wi=w((DYe,wq)=>{"use strict";d();var fve=cT(),fp=Object.prototype.toString;function fT(e){return fp.call(e)==="[object Array]"}function lT(e){return typeof e>"u"}function dve(e){return e!==null&&!lT(e)&&e.constructor!==null&&!lT(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function hve(e){return fp.call(e)==="[object ArrayBuffer]"}function mve(e){return typeof FormData<"u"&&e instanceof FormData}function gve(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function vve(e){return typeof e=="string"}function yve(e){return typeof e=="number"}function bq(e){return e!==null&&typeof e=="object"}function _E(e){if(fp.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function xve(e){return fp.call(e)==="[object Date]"}function Eve(e){return fp.call(e)==="[object File]"}function _ve(e){return fp.call(e)==="[object Blob]"}function Dq(e){return fp.call(e)==="[object Function]"}function Ave(e){return bq(e)&&Dq(e.pipe)}function Cve(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function Sve(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function bve(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function dT(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),fT(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function pT(){var e={};function t(i,s){_E(e[s])&&_E(i)?e[s]=pT(e[s],i):_E(i)?e[s]=pT({},i):fT(i)?e[s]=i.slice():e[s]=i}for(var r=0,n=arguments.length;r<n;r++)dT(arguments[r],t);return e}function Dve(e,t,r){return dT(t,function(i,s){r&&typeof i=="function"?e[s]=fve(i,r):e[s]=i}),e}function wve(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}wq.exports={isArray:fT,isArrayBuffer:hve,isBuffer:dve,isFormData:mve,isArrayBufferView:gve,isString:vve,isNumber:yve,isObject:bq,isPlainObject:_E,isUndefined:lT,isDate:xve,isFile:Eve,isBlob:_ve,isFunction:Dq,isStream:Ave,isURLSearchParams:Cve,isStandardBrowserEnv:bve,forEach:dT,merge:pT,extend:Dve,trim:Sve,stripBOM:wve}});var AE=w((TYe,Tq)=>{"use strict";d();Tq.exports=function(t,r,n,i,s){return t.config=r,n&&(t.code=n),t.request=i,t.response=s,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}});var CE=w((RYe,Iq)=>{"use strict";d();var Tve=AE();Iq.exports=function(t,r,n,i,s){var a=new Error(t);return Tve(a,r,n,i,s)}});var hT=w((OYe,Rq)=>{"use strict";d();var Ive=CE();Rq.exports=function(t,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):r(Ive("Request failed with status code "+n.status,n.config,null,n.request,n))}});var Oq=w((BYe,Nq)=>{"use strict";d();Nq.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}});var Bq=w((FYe,Pq)=>{"use strict";d();Pq.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var mT=w((UYe,Lq)=>{"use strict";d();var Rve=Oq(),Nve=Bq();Lq.exports=function(t,r){return t&&!Rve(r)?Nve(t,r):r}});var SE=w((qYe,kq)=>{"use strict";d();var Cd=wi();function Fq(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}kq.exports=function(t,r,n){if(!r)return t;var i;if(n)i=n(r);else if(Cd.isURLSearchParams(r))i=r.toString();else{var s=[];Cd.forEach(r,function(u,l){u===null||typeof u>"u"||(Cd.isArray(u)?l=l+"[]":u=[u],Cd.forEach(u,function(h){Cd.isDate(h)?h=h.toISOString():Cd.isObject(h)&&(h=JSON.stringify(h)),s.push(Fq(l)+"="+Fq(h))}))}),i=s.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}});var Mq=w((VYe,Uq)=>{"use strict";d();var Sd=1e3,bd=Sd*60,Dd=bd*60,dp=Dd*24,Ove=dp*7,Pve=dp*365.25;Uq.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Bve(e);if(r==="number"&&isFinite(e))return t.long?Fve(e):Lve(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Bve(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Pve;case"weeks":case"week":case"w":return r*Ove;case"days":case"day":case"d":return r*dp;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Dd;case"minutes":case"minute":case"mins":case"min":case"m":return r*bd;case"seconds":case"second":case"secs":case"sec":case"s":return r*Sd;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Lve(e){var t=Math.abs(e);return t>=dp?Math.round(e/dp)+"d":t>=Dd?Math.round(e/Dd)+"h":t>=bd?Math.round(e/bd)+"m":t>=Sd?Math.round(e/Sd)+"s":e+"ms"}function Fve(e){var t=Math.abs(e);return t>=dp?bE(e,t,dp,"day"):t>=Dd?bE(e,t,Dd,"hour"):t>=bd?bE(e,t,bd,"minute"):t>=Sd?bE(e,t,Sd,"second"):e+" ms"}function bE(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var gT=w((GYe,qq)=>{"use strict";d();function kve(e){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=i,r.enabled=a,r.humanize=Mq(),r.destroy=l,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let h=0;for(let m=0;m<f.length;m++)h=(h<<5)-h+f.charCodeAt(m),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=t;function r(f){let h,m=null,y,_;function C(...b){if(!C.enabled)return;let D=C,L=Number(new Date),F=L-(h||L);D.diff=F,D.prev=h,D.curr=L,h=L,b[0]=r.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let q=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(k,te)=>{if(k==="%%")return"%";q++;let ce=r.formatters[te];if(typeof ce=="function"){let ne=b[q];k=ce.call(D,ne),b.splice(q,1),q--}return k}),r.formatArgs.call(D,b),(D.log||r.log).apply(D,b)}return C.namespace=f,C.useColors=r.useColors(),C.color=r.selectColor(f),C.extend=n,C.destroy=r.destroy,Object.defineProperty(C,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(y!==r.namespaces&&(y=r.namespaces,_=r.enabled(f)),_),set:b=>{m=b}}),typeof r.init=="function"&&r.init(C),C}function n(f,h){let m=r(this.namespace+(typeof h>"u"?":":h)+f);return m.log=this.log,m}function i(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let h,m=(typeof f=="string"?f:"").split(/[\s,]+/),y=m.length;for(h=0;h<y;h++)m[h]&&(f=m[h].replace(/\*/g,".*?"),f[0]==="-"?r.skips.push(new RegExp("^"+f.slice(1)+"$")):r.names.push(new RegExp("^"+f+"$")))}function s(){let f=[...r.names.map(o),...r.skips.map(o).map(h=>"-"+h)].join(",");return r.enable(""),f}function a(f){if(f[f.length-1]==="*")return!0;let h,m;for(h=0,m=r.skips.length;h<m;h++)if(r.skips[h].test(f))return!1;for(h=0,m=r.names.length;h<m;h++)if(r.names[h].test(f))return!0;return!1}function o(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function u(f){return f instanceof Error?f.stack||f.message:f}function l(){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}qq.exports=kve});var jq=w((ds,DE)=>{"use strict";d();ds.formatArgs=Mve;ds.save=qve;ds.load=jve;ds.useColors=Uve;ds.storage=Vve();ds.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})();ds.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 Uve(){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 Mve(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+DE.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}ds.log=console.debug||console.log||(()=>{});function qve(e){try{e?ds.storage.setItem("debug",e):ds.storage.removeItem("debug")}catch{}}function jve(){let e;try{e=ds.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Vve(){try{return localStorage}catch{}}DE.exports=gT()(ds);var{formatters:Hve}=DE.exports;Hve.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Hq={};M1(Hq,{createSupportsColor:()=>vT,default:()=>$ve});import yT from"node:process";import Gve from"node:os";import Vq from"node:tty";function qs(e,t=yT.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}function Wve(){if("FORCE_COLOR"in gn)return gn.FORCE_COLOR==="true"?1:gn.FORCE_COLOR==="false"?0:gn.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(gn.FORCE_COLOR,10),3)}function Qve(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function zve(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=Wve();n!==void 0&&(wE=n);let i=r?wE:n;if(i===0)return 0;if(r){if(qs("color=16m")||qs("color=full")||qs("color=truecolor"))return 3;if(qs("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(gn.TERM==="dumb")return s;if(yT.platform==="win32"){let a=Gve.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in gn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(a=>a in gn)||gn.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in gn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(gn.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in gn&&"AGENT_NAME"in gn)return 1;if(gn.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in gn){let a=Number.parseInt((gn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(gn.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(gn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(gn.TERM)||"COLORTERM"in gn?1:s}function vT(e,t={}){let r=zve(e,{streamIsTTY:e&&e.isTTY,...t});return Qve(r)}var gn,wE,Kve,$ve,Gq=Si(()=>{"use strict";d();({env:gn}=yT);qs("no-color")||qs("no-colors")||qs("color=false")||qs("color=never")?wE=0:(qs("color")||qs("colors")||qs("color=true")||qs("color=always"))&&(wE=1);Kve={stdout:vT({isTTY:Vq.isatty(1)}),stderr:vT({isTTY:Vq.isatty(2)})},$ve=Kve});var Qq=w((zn,IE)=>{"use strict";d();var Yve=J("tty"),TE=J("util");zn.init=nye;zn.log=eye;zn.formatArgs=Jve;zn.save=tye;zn.load=rye;zn.useColors=Xve;zn.destroy=TE.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");zn.colors=[6,2,3,4,5,1];try{let e=(Gq(),kf(Hq));e&&(e.stderr||e).level>=2&&(zn.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{}zn.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[t];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),e[r]=n,e},{});function Xve(){return"colors"in zn.inspectOpts?!!zn.inspectOpts.colors:Yve.isatty(process.stderr.fd)}function Jve(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${t} \x1B[0m`;e[0]=s+e[0].split(`
|
|
40
|
-
`).join(`
|
|
41
|
-
`+s),e.push(i+"m+"+IE.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=Zve()+t+" "+e[0]}function Zve(){return zn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function eye(...e){return process.stderr.write(TE.format(...e)+`
|
|
42
|
-
`)}function tye(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function rye(){return process.env.DEBUG}function nye(e){e.inspectOpts={};let t=Object.keys(zn.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=zn.inspectOpts[t[r]]}IE.exports=gT()(zn);var{formatters:Wq}=IE.exports;Wq.o=function(e){return this.inspectOpts.colors=this.useColors,TE.inspect(e,this.inspectOpts).split(`
|
|
43
|
-
`).map(t=>t.trim()).join(" ")};Wq.O=function(e){return this.inspectOpts.colors=this.useColors,TE.inspect(e,this.inspectOpts)}});var zq=w((JYe,xT)=>{"use strict";d();typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?xT.exports=jq():xT.exports=Qq()});var $q=w((eXe,Kq)=>{"use strict";d();var Lg;Kq.exports=function(){if(!Lg){try{Lg=zq()("follow-redirects")}catch{}typeof Lg!="function"&&(Lg=function(){})}Lg.apply(null,arguments)}});var bT=w((rXe,ST)=>{"use strict";d();var hp=J("url"),ET=hp.URL,iye=J("http"),sye=J("https"),Jq=J("stream").Writable,Zq=J("assert"),ej=$q(),AT=["abort","aborted","connect","error","socket","timeout"],CT=Object.create(null);AT.forEach(function(e){CT[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var aye=kg("ERR_INVALID_URL","Invalid URL",TypeError),Yq=kg("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),oye=kg("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),uye=kg("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),cye=kg("ERR_STREAM_WRITE_AFTER_END","write after end");function hs(e,t){Jq.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}hs.prototype=Object.create(Jq.prototype);hs.prototype.abort=function(){rj(this._currentRequest),this.emit("abort")};hs.prototype.write=function(e,t,r){if(this._ending)throw new cye;if(!mp(e)&&!fye(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Fg(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new uye),this.abort())};hs.prototype.end=function(e,t,r){if(Fg(e)?(r=e,e=t=null):Fg(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(e,t,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};hs.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};hs.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};hs.prototype.setTimeout=function(e,t){var r=this;function n(a){a.setTimeout(e),a.removeListener("timeout",a.destroy),a.addListener("timeout",a.destroy)}function i(a){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),n(a)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){hs.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(hs.prototype,e,{get:function(){return this._currentRequest[e]}})});hs.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};hs.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of AT)n.on(i,CT[i]);if(this._currentUrl=/^\//.test(this._options.path)?hp.format(this._options):this._options.path,this._isRedirect){var s=0,a=this,o=this._requestBodyBuffers;(function u(l){if(n===a._currentRequest)if(l)a.emit("error",l);else if(s<o.length){var f=o[s++];n.finished||n.write(f.data,f.encoding,u)}else a._ended&&n.end()})()}};hs.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(rj(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new oye);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],_T(/^content-/i,this._options.headers));var a=_T(/^host$/i,this._options.headers),o=hp.parse(this._currentUrl),u=a||o.host,l=/^\w+:/.test(r)?this._currentUrl:hp.format(Object.assign(o,{host:u})),f;try{f=hp.resolve(l,r)}catch(_){this.emit("error",new Yq({cause:_}));return}ej("redirecting to",f),this._isRedirect=!0;var h=hp.parse(f);if(Object.assign(this._options,h),(h.protocol!==o.protocol&&h.protocol!=="https:"||h.host!==u&&!pye(h.host,u))&&_T(/^(?:authorization|cookie)$/i,this._options.headers),Fg(i)){var m={headers:e.headers,statusCode:t},y={url:l,method:s,headers:n};try{i(this._options,m,y)}catch(_){this.emit("error",_);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(_){this.emit("error",new Yq({cause:_}))}};function tj(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",s=r[i]=e[n],a=t[n]=Object.create(s);function o(l,f,h){if(mp(l)){var m;try{m=Xq(new ET(l))}catch{m=hp.parse(l)}if(!mp(m.protocol))throw new aye({input:l});l=m}else ET&&l instanceof ET?l=Xq(l):(h=f,f=l,l={protocol:i});return Fg(f)&&(h=f,f=null),f=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},l,f),f.nativeProtocols=r,!mp(f.host)&&!mp(f.hostname)&&(f.hostname="::1"),Zq.equal(f.protocol,i,"protocol mismatch"),ej("options",f),new hs(f,h)}function u(l,f,h){var m=a.request(l,f,h);return m.end(),m}Object.defineProperties(a,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),t}function lye(){}function Xq(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function _T(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function kg(e,t,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function rj(e){for(var t of AT)e.removeListener(t,CT[t]);e.on("error",lye),e.abort()}function pye(e,t){Zq(mp(e)&&mp(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function mp(e){return typeof e=="string"||e instanceof String}function Fg(e){return typeof e=="function"}function fye(e){return typeof e=="object"&&"length"in e}ST.exports=tj({http:iye,https:sye});ST.exports.wrap=tj});var DT=w((iXe,dye)=>{dye.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}});var NE=w((sXe,oj)=>{"use strict";d();var Ug=wi(),nj=hT(),hye=mT(),mye=SE(),gye=J("http"),vye=J("https"),yye=bT().http,xye=bT().https,ij=J("url"),Eye=J("zlib"),_ye=DT(),RE=CE(),wT=AE(),sj=/https:?/;function aj(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(s){s.headers.host=s.host,aj(s,t,s.href)}}oj.exports=function(t){return new Promise(function(n,i){var s=function(ve){n(ve)},a=function(ve){i(ve)},o=t.data,u=t.headers;if("User-Agent"in u||"user-agent"in u?!u["User-Agent"]&&!u["user-agent"]&&(delete u["User-Agent"],delete u["user-agent"]):u["User-Agent"]="axios/"+_ye.version,o&&!Ug.isStream(o)){if(!Buffer.isBuffer(o))if(Ug.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else if(Ug.isString(o))o=Buffer.from(o,"utf-8");else return a(RE("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));u["Content-Length"]=o.length}var l=void 0;if(t.auth){var f=t.auth.username||"",h=t.auth.password||"";l=f+":"+h}var m=hye(t.baseURL,t.url),y=ij.parse(m),_=y.protocol||"http:";if(!l&&y.auth){var C=y.auth.split(":"),b=C[0]||"",D=C[1]||"";l=b+":"+D}l&&delete u.Authorization;var L=sj.test(_),F=L?t.httpsAgent:t.httpAgent,q={path:mye(y.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:u,agent:F,agents:{http:t.httpAgent,https:t.httpsAgent},auth:l};t.socketPath?q.socketPath=t.socketPath:(q.hostname=y.hostname,q.port=y.port);var M=t.proxy;if(!M&&M!==!1){var k=_.slice(0,-1)+"_proxy",te=process.env[k]||process.env[k.toUpperCase()];if(te){var ce=ij.parse(te),ne=process.env.no_proxy||process.env.NO_PROXY,pe=!0;if(ne){var Q=ne.split(",").map(function(ve){return ve.trim()});pe=!Q.some(function(ve){return ve?ve==="*"||ve[0]==="."&&y.hostname.substr(y.hostname.length-ve.length)===ve?!0:y.hostname===ve:!1})}if(pe&&(M={host:ce.hostname,port:ce.port,protocol:ce.protocol},ce.auth)){var be=ce.auth.split(":");M.auth={username:be[0],password:be[1]}}}}M&&(q.headers.host=y.hostname+(y.port?":"+y.port:""),aj(q,M,_+"//"+y.hostname+(y.port?":"+y.port:"")+q.path));var Ie,et=L&&(M?sj.test(M.protocol):!0);t.transport?Ie=t.transport:t.maxRedirects===0?Ie=et?vye:gye:(t.maxRedirects&&(q.maxRedirects=t.maxRedirects),Ie=et?xye:yye),t.maxBodyLength>-1&&(q.maxBodyLength=t.maxBodyLength);var j=Ie.request(q,function(ve){if(!j.aborted){var Ve=ve,dt=ve.req||j;if(ve.statusCode!==204&&dt.method!=="HEAD"&&t.decompress!==!1)switch(ve.headers["content-encoding"]){case"gzip":case"compress":case"deflate":Ve=Ve.pipe(Eye.createUnzip()),delete ve.headers["content-encoding"];break}var ht={status:ve.statusCode,statusText:ve.statusMessage,headers:ve.headers,config:t,request:dt};if(t.responseType==="stream")ht.data=Ve,nj(s,a,ht);else{var Lt=[],Je=0;Ve.on("data",function(vt){Lt.push(vt),Je+=vt.length,t.maxContentLength>-1&&Je>t.maxContentLength&&(Ve.destroy(),a(RE("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,dt)))}),Ve.on("error",function(vt){j.aborted||a(wT(vt,t,null,dt))}),Ve.on("end",function(){var vt=Buffer.concat(Lt);t.responseType!=="arraybuffer"&&(vt=vt.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(vt=Ug.stripBOM(vt))),ht.data=vt,nj(s,a,ht)})}}});if(j.on("error",function(ve){j.aborted&&ve.code!=="ERR_FR_TOO_MANY_REDIRECTS"||a(wT(ve,t,null,j))}),t.timeout){var z=parseInt(t.timeout,10);if(isNaN(z)){a(RE("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",j));return}j.setTimeout(z,function(){j.abort(),a(RE("timeout of "+z+"ms exceeded",t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",j))})}t.cancelToken&&t.cancelToken.promise.then(function(ve){j.aborted||(j.abort(),a(ve))}),Ug.isStream(o)?o.on("error",function(ve){a(wT(ve,t,null,j))}).pipe(j):j.end(o)})}});var cj=w((oXe,uj)=>{"use strict";d();var Aye=wi();function OE(){this.handlers=[]}OE.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};OE.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};OE.prototype.forEach=function(t){Aye.forEach(this.handlers,function(n){n!==null&&t(n)})};uj.exports=OE});var pj=w((cXe,lj)=>{"use strict";d();var Cye=wi();lj.exports=function(t,r){Cye.forEach(t,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[s])})}});var dj=w((pXe,fj)=>{"use strict";d();var PE=wi();fj.exports=PE.isStandardBrowserEnv()?function(){return{write:function(r,n,i,s,a,o){var u=[];u.push(r+"="+encodeURIComponent(n)),PE.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),PE.isString(s)&&u.push("path="+s),PE.isString(a)&&u.push("domain="+a),o===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var mj=w((dXe,hj)=>{"use strict";d();var TT=wi(),Sye=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];hj.exports=function(t){var r={},n,i,s;return t&&TT.forEach(t.split(`
|
|
44
|
-
`),function(o){if(s=o.indexOf(":"),n=TT.trim(o.substr(0,s)).toLowerCase(),i=TT.trim(o.substr(s+1)),n){if(r[n]&&Sye.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([i]):r[n]=r[n]?r[n]+", "+i:i}}),r}});var yj=w((mXe,vj)=>{"use strict";d();var gj=wi();vj.exports=gj.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(s){var a=s;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(a){var o=gj.isString(a)?i(a):a;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}()});var RT=w((vXe,xj)=>{"use strict";d();var BE=wi(),bye=hT(),Dye=dj(),wye=SE(),Tye=mT(),Iye=mj(),Rye=yj(),IT=CE();xj.exports=function(t){return new Promise(function(n,i){var s=t.data,a=t.headers,o=t.responseType;BE.isFormData(s)&&delete a["Content-Type"];var u=new XMLHttpRequest;if(t.auth){var l=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.Authorization="Basic "+btoa(l+":"+f)}var h=Tye(t.baseURL,t.url);u.open(t.method.toUpperCase(),wye(h,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function m(){if(u){var _="getAllResponseHeaders"in u?Iye(u.getAllResponseHeaders()):null,C=!o||o==="text"||o==="json"?u.responseText:u.response,b={data:C,status:u.status,statusText:u.statusText,headers:_,config:t,request:u};bye(n,i,b),u=null}}if("onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(m)},u.onabort=function(){u&&(i(IT("Request aborted",t,"ECONNABORTED",u)),u=null)},u.onerror=function(){i(IT("Network Error",t,null,u)),u=null},u.ontimeout=function(){var C="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(C=t.timeoutErrorMessage),i(IT(C,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",u)),u=null},BE.isStandardBrowserEnv()){var y=(t.withCredentials||Rye(h))&&t.xsrfCookieName?Dye.read(t.xsrfCookieName):void 0;y&&(a[t.xsrfHeaderName]=y)}"setRequestHeader"in u&&BE.forEach(a,function(C,b){typeof s>"u"&&b.toLowerCase()==="content-type"?delete a[b]:u.setRequestHeader(b,C)}),BE.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&o!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(C){u&&(u.abort(),i(C),u=null)}),s||(s=null),u.send(s)})}});var FE=w((xXe,Aj)=>{"use strict";d();var Kn=wi(),Ej=pj(),Nye=AE(),Oye={"Content-Type":"application/x-www-form-urlencoded"};function _j(e,t){!Kn.isUndefined(e)&&Kn.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function Pye(){var e;return typeof XMLHttpRequest<"u"?e=RT():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=NE()),e}function Bye(e,t,r){if(Kn.isString(e))try{return(t||JSON.parse)(e),Kn.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var LE={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Pye(),transformRequest:[function(t,r){return Ej(r,"Accept"),Ej(r,"Content-Type"),Kn.isFormData(t)||Kn.isArrayBuffer(t)||Kn.isBuffer(t)||Kn.isStream(t)||Kn.isFile(t)||Kn.isBlob(t)?t:Kn.isArrayBufferView(t)?t.buffer:Kn.isURLSearchParams(t)?(_j(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Kn.isObject(t)||r&&r["Content-Type"]==="application/json"?(_j(r,"application/json"),Bye(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&Kn.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Nye(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};LE.headers={common:{Accept:"application/json, text/plain, */*"}};Kn.forEach(["delete","get","head"],function(t){LE.headers[t]={}});Kn.forEach(["post","put","patch"],function(t){LE.headers[t]=Kn.merge(Oye)});Aj.exports=LE});var Sj=w((_Xe,Cj)=>{"use strict";d();var Lye=wi(),Fye=FE();Cj.exports=function(t,r,n){var i=this||Fye;return Lye.forEach(n,function(a){t=a.call(i,t,r)}),t}});var NT=w((CXe,bj)=>{"use strict";d();bj.exports=function(t){return!!(t&&t.__CANCEL__)}});var Tj=w((bXe,wj)=>{"use strict";d();var Dj=wi(),OT=Sj(),kye=NT(),Uye=FE();function PT(e){e.cancelToken&&e.cancelToken.throwIfRequested()}wj.exports=function(t){PT(t),t.headers=t.headers||{},t.data=OT.call(t,t.data,t.headers,t.transformRequest),t.headers=Dj.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Dj.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||Uye.adapter;return r(t).then(function(i){return PT(t),i.data=OT.call(t,i.data,i.headers,t.transformResponse),i},function(i){return kye(i)||(PT(t),i&&i.response&&(i.response.data=OT.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var BT=w((wXe,Ij)=>{"use strict";d();var pi=wi();Ij.exports=function(t,r){r=r||{};var n={},i=["url","method","data"],s=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function u(m,y){return pi.isPlainObject(m)&&pi.isPlainObject(y)?pi.merge(m,y):pi.isPlainObject(y)?pi.merge({},y):pi.isArray(y)?y.slice():y}function l(m){pi.isUndefined(r[m])?pi.isUndefined(t[m])||(n[m]=u(void 0,t[m])):n[m]=u(t[m],r[m])}pi.forEach(i,function(y){pi.isUndefined(r[y])||(n[y]=u(void 0,r[y]))}),pi.forEach(s,l),pi.forEach(a,function(y){pi.isUndefined(r[y])?pi.isUndefined(t[y])||(n[y]=u(void 0,t[y])):n[y]=u(void 0,r[y])}),pi.forEach(o,function(y){y in r?n[y]=u(t[y],r[y]):y in t&&(n[y]=u(void 0,t[y]))});var f=i.concat(s).concat(a).concat(o),h=Object.keys(t).concat(Object.keys(r)).filter(function(y){return f.indexOf(y)===-1});return pi.forEach(h,l),n}});var Bj=w((IXe,Pj)=>{"use strict";d();var Nj=DT(),LT={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){LT[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Rj={},Mye=Nj.version.split(".");function Oj(e,t){for(var r=t?t.split("."):Mye,n=e.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}LT.transitional=function(t,r,n){var i=r&&Oj(r);function s(a,o){return"[Axios v"+Nj.version+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return function(a,o,u){if(t===!1)throw new Error(s(o," has been removed in "+r));return i&&!Rj[o]&&(Rj[o]=!0,console.warn(s(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,u):!0}};function qye(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var s=n[i],a=t[s];if(a){var o=e[s],u=o===void 0||a(o,s,e);if(u!==!0)throw new TypeError("option "+s+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+s)}}Pj.exports={isOlderVersion:Oj,assertOptions:qye,validators:LT}});var qj=w((NXe,Mj)=>{"use strict";d();var kj=wi(),jye=SE(),Lj=cj(),Fj=Tj(),kE=BT(),Uj=Bj(),wd=Uj.validators;function Mg(e){this.defaults=e,this.interceptors={request:new Lj,response:new Lj}}Mg.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=kE(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&Uj.assertOptions(r,{silentJSONParsing:wd.transitional(wd.boolean,"1.0.0"),forcedJSONParsing:wd.transitional(wd.boolean,"1.0.0"),clarifyTimeoutError:wd.transitional(wd.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(t)===!1||(i=i&&m.synchronous,n.unshift(m.fulfilled,m.rejected))});var s=[];this.interceptors.response.forEach(function(m){s.push(m.fulfilled,m.rejected)});var a;if(!i){var o=[Fj,void 0];for(Array.prototype.unshift.apply(o,n),o=o.concat(s),a=Promise.resolve(t);o.length;)a=a.then(o.shift(),o.shift());return a}for(var u=t;n.length;){var l=n.shift(),f=n.shift();try{u=l(u)}catch(h){f(h);break}}try{a=Fj(u)}catch(h){return Promise.reject(h)}for(;s.length;)a=a.then(s.shift(),s.shift());return a};Mg.prototype.getUri=function(t){return t=kE(this.defaults,t),jye(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};kj.forEach(["delete","get","head","options"],function(t){Mg.prototype[t]=function(r,n){return this.request(kE(n||{},{method:t,url:r,data:(n||{}).data}))}});kj.forEach(["post","put","patch"],function(t){Mg.prototype[t]=function(r,n,i){return this.request(kE(i||{},{method:t,url:r,data:n}))}});Mj.exports=Mg});var kT=w((PXe,jj)=>{"use strict";d();function FT(e){this.message=e}FT.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};FT.prototype.__CANCEL__=!0;jj.exports=FT});var Hj=w((LXe,Vj)=>{"use strict";d();var Vye=kT();function UE(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var r=this;e(function(i){r.reason||(r.reason=new Vye(i),t(r.reason))})}UE.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};UE.source=function(){var t,r=new UE(function(i){t=i});return{token:r,cancel:t}};Vj.exports=UE});var Wj=w((kXe,Gj)=>{"use strict";d();Gj.exports=function(t){return function(n){return t.apply(null,n)}}});var zj=w((MXe,Qj)=>{"use strict";d();Qj.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var Yj=w((jXe,UT)=>{"use strict";d();var Kj=wi(),Hye=cT(),ME=qj(),Gye=BT(),Wye=FE();function $j(e){var t=new ME(e),r=Hye(ME.prototype.request,t);return Kj.extend(r,ME.prototype,t),Kj.extend(r,t),r}var La=$j(Wye);La.Axios=ME;La.create=function(t){return $j(Gye(La.defaults,t))};La.Cancel=kT();La.CancelToken=Hj();La.isCancel=NT();La.all=function(t){return Promise.all(t)};La.spread=Wj();La.isAxiosError=zj();UT.exports=La;UT.exports.default=La});var Jj=w((HXe,Xj)=>{"use strict";d();Xj.exports=Yj()});var Zj=w(fu=>{"use strict";d();Object.defineProperty(fu,"__esModule",{value:!0});fu.getUrlHeaders=fu.buildAllHeaders=fu.buildOptions=void 0;var MT=Ng(),Qye=xE(),Td=yE(),zye=({requestOptions:e,urlObject:t,headers:r,globalConfig:n={httpMockServer:{enabled:!1}}})=>{let{url:i,params:s}=e;if(s&&typeof s!="object")throw new Error("Search params must be an object");let a=Yye(i,n);return Object.assign(Object.assign(Object.assign({},e),a),{headers:r})};fu.buildOptions=zye;var Kye=(e,t,r={httpMockServer:{enabled:!1}},n)=>{let{url:i,disableWixHeaders:s,headers:a}=e,o=(0,Qye.composeHeaders)({url:i,disableWixHeaders:s,wixHeadersOpts:t}),u=(0,fu.getUrlHeaders)(r,e,n);return Object.assign(Object.assign(Object.assign({},o),Jye(a)),u)};fu.buildAllHeaders=Kye;var $ye=(e,t,r)=>{let{url:n,params:i}=t,{host:s,protocol:a}=r;return e.httpMockServer.enabled?{[MT.ORIGINAL_URL_HEADER]:Xye(n,i),[MT.ORIGINAL_HOST_HEADER]:(0,Td.isAbsoluteUrl)(n)?(0,Td.extractHost)(n):s,[MT.ORIGINAL_PROTOCOL_HEADER]:(0,Td.isAbsoluteUrl)(n)?(0,Td.extractProtocol)(n):a}:{}};fu.getUrlHeaders=$ye;function Yye(e,t){if(t.httpMockServer.enabled){let r=new URL(t.httpMockServer.mockServerUrl);return{url:(0,Td.changeHost)(e,r.host)}}return{}}function Xye(e,t){let{pathname:r,searchParams:n}=new URL(e,"http://unused.com");if(t=t||n,t){let i=(0,Td.toSearchQueryParams)(t)||t.toString(),s=i?`?${i}`:"";return`${r}${s}`}return r}function Jye(e){return e=e||{},Object.keys(e).reduce((r,n)=>Object.assign(Object.assign({},r),{[n.toLowerCase()]:e[n]}),{})}});var nV=w(Rd=>{"use strict";d();Object.defineProperty(Rd,"__esModule",{value:!0});Rd.createHttpClient=Rd.HttpClient=void 0;var tV=(yo(),kf(Rg)),qg=tV.__importDefault(Jj()),Zye=tV.__importDefault(RT()),qT=Ng(),rV=sT(),exe=uT(),eV=xE(),qE=Zj(),xo=yE(),Id=class{constructor(t={}){this.opts=t,this.opts=txe(this.opts),this.client=qg.default.create(this.opts),this.flags={sanitizerPocEnabled:sxe()}}static isHttpError(t){return!!t?.isWixHttpError}async request(t,r){var n,i;let s=(0,xo.resolveHost)(this.opts),o={protocol:(0,xo.resolveProtocol)(this.opts),host:s},u=typeof t=="function"?t({isSSR:this.opts.isSSR,host:s}):t,l=r?.signedInstance||((i=(n=this.opts).getAppToken)===null||i===void 0?void 0:i.call(n))||"",f=this.getHeaders(u,l,o),h=(0,qE.buildOptions)({requestOptions:u,urlObject:o,headers:f,globalConfig:(0,xo.getGlobalConfig)()});this.opts.isSSR&&(h.baseURL=this.opts.baseURL?this.opts.baseURL:`${qT.SSR_PROTOCOL}://${qT.SSR_HOST}`);try{let m=await this.client.request(h).catch(y=>this.maybeFallbackRequest(y,u,o,l));return this.transformResponse(m,u)}catch(m){this.handleRequestError(m,h)}}async get(t,r){let n=Object.assign(Object.assign({},r),{url:t,method:"GET"});return this.request(n)}async delete(t,r){let n=Object.assign(Object.assign({},r),{url:t,method:"DELETE"});return this.request(n)}async head(t,r){let n=Object.assign(Object.assign({},r),{url:t,method:"HEAD"});return this.request(n)}async options(t,r){let n=Object.assign(Object.assign({},r),{url:t,method:"OPTIONS"});return this.request(n)}async post(t,r,n){let i=Object.assign(Object.assign({},n),{url:t,data:r,method:"POST"});return this.request(i)}async put(t,r,n){let i=Object.assign(Object.assign({},n),{url:t,data:r,method:"PUT"});return this.request(i)}async patch(t,r,n){let i=Object.assign(Object.assign({},n),{url:t,data:r,method:"PATCH"});return this.request(i)}get CancelToken(){return qg.default.CancelToken}get isCancel(){return qg.default.isCancel}getHeaders(t,r,n){if(typeof this.opts.createHeaders=="function")return this.getCustomHeaders(t,r,n);let i={signedInstance:r,artifactId:this.opts.artifactId,csrf:!1,multilingualOptions:this.opts.multilingualOptions};return(0,qE.buildAllHeaders)(t,i,(0,xo.getGlobalConfig)(),n)}getCustomHeaders(t,r,n){let{url:i}=t,s=r&&(0,eV.isWixDomain)(i)?{authorization:r}:{},a=this.opts.createHeaders(),o=(0,qE.getUrlHeaders)((0,xo.getGlobalConfig)(),t,n);return Object.assign(Object.assign(Object.assign({},o),a),s)}handleRequestError(t,r){let n=(0,exe.createHttpError)(t);throw(0,xo.silent)(()=>{var i;return(i=r.onError)===null||i===void 0?void 0:i.call(r,n)}),n}maybeFallbackRequest(t,r,n,i){var s,a,o;if((0,xo.isHttpMockServerEnabled)()&&(0,xo.shouldAllowUnmocked)()&&((s=t.response)===null||s===void 0?void 0:s.status)===404&&((o=(a=t.response)===null||a===void 0?void 0:a.data)===null||o===void 0?void 0:o.msg)===qT.NO_SCENARIO_FOUND){let l=this.getHeaders(r,i,n),f=(0,qE.buildOptions)({requestOptions:r,urlObject:n,headers:l});return this.client.request(f)}throw t}transformResponse(t,r){let n=(0,eV.requestIdOrEmptyString)(t),i=nxe(t,r,this.flags);return Object.assign(Object.assign({},t),{data:i,requestId:n})}};Rd.HttpClient=Id;Id.CancelToken=qg.default.CancelToken;Id.isCancel=qg.default.isCancel;function txe(e){let t=e.adapter;return t||(t=Zye.default,(0,rV.isNode)()&&(t=rxe())),Object.assign({adapter:t,isSSR:!1},e)}function rxe(){return typeof __webpack_require__=="function"?__non_webpack_require__("axios/lib/adapters/http"):NE()}function nxe(e,t,r){let n=ixe(e,r);if(t._pickResponseBody&&(n=(0,xo.extractProp)(e.data,t._pickResponseBody)),t._logs){let i=(0,xo.extractProp)(e.data,t._logs);i?.length&&i.map(s=>console.log(...s))}return n}function ixe(e,t){try{if(t.sanitizerPocEnabled){let r=performance.now(),n=new Sanitizer;if(e.headers["content-type"].includes("application/json")){console.log("[+] JSON Response detected, sanitizing data");let i=function(a){try{return Object.keys(a).forEach(o=>{typeof a[o]=="string"?a[o]=n.sanitizeFor("span",a[o]).innerHTML:typeof a[o]=="object"&&(a[o]=i(a[o]))}),a}catch(o){console.log(o)}},s=performance.now();return console.log(`Time taken: ${s-r} milliseconds.`),i(e.data)}}}catch(r){console.log("[+] Sanitizer API not supported: %o",r)}return e.data}function sxe(){var e;try{return(0,rV.isBrowser)()&&new URLSearchParams(((e=window?.location)===null||e===void 0?void 0:e.hash)||"").get("sanitizerPOC")==="true"}catch{return!1}}function axe(...e){return new Id(...e)}Rd.createHttpClient=axe});var iV=w(Nd=>{"use strict";d();Object.defineProperty(Nd,"__esModule",{value:!0});Nd.HttpClient=Nd.createHttpClient=void 0;var oxe=(yo(),kf(Rg)),uxe=oxe.__importDefault(NE()),cxe=nV(),jE=class extends cxe.HttpClient{constructor(t={}){super(Object.assign({adapter:uxe.default},t))}};Nd.HttpClient=jE;function lxe(...e){return new jE(...e)}Nd.createHttpClient=lxe});var aV=w(sV=>{"use strict";d();Object.defineProperty(sV,"__esModule",{value:!0})});var jg=w($n=>{"use strict";d();Object.defineProperty($n,"__esModule",{value:!0});$n.HttpClient=$n.createHttpClient=$n.HttpError=$n.createHttpError=$n.ORIGINAL_URL_HEADER=$n.ORIGINAL_PROTOCOL_HEADER=$n.ORIGINAL_HOST_HEADER=void 0;var pxe=(yo(),kf(Rg)),jT=Ng();Object.defineProperty($n,"ORIGINAL_HOST_HEADER",{enumerable:!0,get:function(){return jT.ORIGINAL_HOST_HEADER}});Object.defineProperty($n,"ORIGINAL_PROTOCOL_HEADER",{enumerable:!0,get:function(){return jT.ORIGINAL_PROTOCOL_HEADER}});Object.defineProperty($n,"ORIGINAL_URL_HEADER",{enumerable:!0,get:function(){return jT.ORIGINAL_URL_HEADER}});var oV=uT();Object.defineProperty($n,"createHttpError",{enumerable:!0,get:function(){return oV.createHttpError}});Object.defineProperty($n,"HttpError",{enumerable:!0,get:function(){return oV.HttpError}});var uV=iV();Object.defineProperty($n,"createHttpClient",{enumerable:!0,get:function(){return uV.createHttpClient}});Object.defineProperty($n,"HttpClient",{enumerable:!0,get:function(){return uV.HttpClient}});pxe.__exportStar(aV(),$n)});var Pd=w((JJe,PV)=>{"use strict";d();var OV=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);PV.exports=e=>e?Object.keys(e).map(t=>[OV.has(t)?OV.get(t):t,e[t]]).reduce((t,r)=>(t[r[0]]=r[1],t),Object.create(null)):{}});var YE=w(HV=>{"use strict";d();var BV=typeof process=="object"&&process?process:{stdout:null,stderr:null},Vxe=J("events"),LV=J("stream"),Hxe=J("string_decoder"),FV=Hxe.StringDecoder,du=Symbol("EOF"),hu=Symbol("maybeEmitEnd"),Tc=Symbol("emittedEnd"),GE=Symbol("emittingEnd"),Wg=Symbol("emittedError"),WE=Symbol("closed"),kV=Symbol("read"),QE=Symbol("flush"),UV=Symbol("flushChunk"),Ki=Symbol("encoding"),mu=Symbol("decoder"),zE=Symbol("flowing"),Qg=Symbol("paused"),Bd=Symbol("resume"),cn=Symbol("buffer"),Ao=Symbol("pipes"),Bn=Symbol("bufferLength"),YT=Symbol("bufferPush"),XT=Symbol("bufferShift"),Yn=Symbol("objectMode"),ln=Symbol("destroyed"),JT=Symbol("error"),ZT=Symbol("emitData"),MV=Symbol("emitEnd"),eI=Symbol("emitEnd2"),gu=Symbol("async"),tI=Symbol("abort"),KE=Symbol("aborted"),Ap=Symbol("signal"),zg=e=>Promise.resolve().then(e),VV=global._MP_NO_ITERATOR_SYMBOLS_!=="1",qV=VV&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),jV=VV&&Symbol.iterator||Symbol("iterator not implemented"),Gxe=e=>e==="end"||e==="finish"||e==="prefinish",Wxe=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,Qxe=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),$E=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[Bd](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},rI=class extends $E{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}},nI=class e extends LV{constructor(t){super(),this[zE]=!1,this[Qg]=!1,this[Ao]=[],this[cn]=[],this[Yn]=t&&t.objectMode||!1,this[Yn]?this[Ki]=null:this[Ki]=t&&t.encoding||null,this[Ki]==="buffer"&&(this[Ki]=null),this[gu]=t&&!!t.async||!1,this[mu]=this[Ki]?new FV(this[Ki]):null,this[du]=!1,this[Tc]=!1,this[GE]=!1,this[WE]=!1,this[Wg]=null,this.writable=!0,this.readable=!0,this[Bn]=0,this[ln]=!1,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[cn]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ao]}),this[Ap]=t&&t.signal,this[KE]=!1,this[Ap]&&(this[Ap].addEventListener("abort",()=>this[tI]()),this[Ap].aborted&&this[tI]())}get bufferLength(){return this[Bn]}get encoding(){return this[Ki]}set encoding(t){if(this[Yn])throw new Error("cannot set encoding in objectMode");if(this[Ki]&&t!==this[Ki]&&(this[mu]&&this[mu].lastNeed||this[Bn]))throw new Error("cannot change encoding");this[Ki]!==t&&(this[mu]=t?new FV(t):null,this[cn].length&&(this[cn]=this[cn].map(r=>this[mu].write(r)))),this[Ki]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[Yn]}set objectMode(t){this[Yn]=this[Yn]||!!t}get async(){return this[gu]}set async(t){this[gu]=this[gu]||!!t}[tI](){this[KE]=!0,this.emit("abort",this[Ap].reason),this.destroy(this[Ap].reason)}get aborted(){return this[KE]}set aborted(t){}write(t,r,n){if(this[KE])return!1;if(this[du])throw new Error("write after end");if(this[ln])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[gu]?zg:s=>s();return!this[Yn]&&!Buffer.isBuffer(t)&&(Qxe(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):Wxe(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[Yn]?(this.flowing&&this[Bn]!==0&&this[QE](!0),this.flowing?this.emit("data",t):this[YT](t),this[Bn]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[Ki]&&!this[mu].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[Ki]&&(t=this[mu].write(t)),this.flowing&&this[Bn]!==0&&this[QE](!0),this.flowing?this.emit("data",t):this[YT](t),this[Bn]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Bn]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[ln])return null;if(this[Bn]===0||t===0||t>this[Bn])return this[hu](),null;this[Yn]&&(t=null),this[cn].length>1&&!this[Yn]&&(this.encoding?this[cn]=[this[cn].join("")]:this[cn]=[Buffer.concat(this[cn],this[Bn])]);let r=this[kV](t||null,this[cn][0]);return this[hu](),r}[kV](t,r){return t===r.length||t===null?this[XT]():(this[cn][0]=r.slice(t),r=r.slice(0,t),this[Bn]-=t),this.emit("data",r),!this[cn].length&&!this[du]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[du]=!0,this.writable=!1,(this.flowing||!this[Qg])&&this[hu](),this}[Bd](){this[ln]||(this[Qg]=!1,this[zE]=!0,this.emit("resume"),this[cn].length?this[QE]():this[du]?this[hu]():this.emit("drain"))}resume(){return this[Bd]()}pause(){this[zE]=!1,this[Qg]=!0}get destroyed(){return this[ln]}get flowing(){return this[zE]}get paused(){return this[Qg]}[YT](t){this[Yn]?this[Bn]+=1:this[Bn]+=t.length,this[cn].push(t)}[XT](){return this[Yn]?this[Bn]-=1:this[Bn]-=this[cn][0].length,this[cn].shift()}[QE](t){do;while(this[UV](this[XT]())&&this[cn].length);!t&&!this[cn].length&&!this[du]&&this.emit("drain")}[UV](t){return this.emit("data",t),this.flowing}pipe(t,r){if(this[ln])return;let n=this[Tc];return r=r||{},t===BV.stdout||t===BV.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[Ao].push(r.proxyErrors?new rI(this,t,r):new $E(this,t,r)),this[gu]?zg(()=>this[Bd]()):this[Bd]()),t}unpipe(t){let r=this[Ao].find(n=>n.dest===t);r&&(this[Ao].splice(this[Ao].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this[Ao].length&&!this.flowing?this[Bd]():t==="readable"&&this[Bn]!==0?super.emit("readable"):Gxe(t)&&this[Tc]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[Wg]&&(this[gu]?zg(()=>r.call(this,this[Wg])):r.call(this,this[Wg])),n}get emittedEnd(){return this[Tc]}[hu](){!this[GE]&&!this[Tc]&&!this[ln]&&this[cn].length===0&&this[du]&&(this[GE]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[WE]&&this.emit("close"),this[GE]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==ln&&this[ln])return;if(t==="data")return!this[Yn]&&!r?!1:this[gu]?zg(()=>this[ZT](r)):this[ZT](r);if(t==="end")return this[MV]();if(t==="close"){if(this[WE]=!0,!this[Tc]&&!this[ln])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[Wg]=r,super.emit(JT,r);let s=!this[Ap]||this.listeners("error").length?super.emit("error",r):!1;return this[hu](),s}else if(t==="resume"){let s=super.emit("resume");return this[hu](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[hu](),i}[ZT](t){for(let n of this[Ao])n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[hu](),r}[MV](){this[Tc]||(this[Tc]=!0,this.readable=!1,this[gu]?zg(()=>this[eI]()):this[eI]())}[eI](){if(this[mu]){let r=this[mu].end();if(r){for(let n of this[Ao])n.dest.write(r);super.emit("data",r)}}for(let r of this[Ao])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[Yn]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[Yn]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[Yn]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[Yn]?Promise.reject(new Error("cannot concat in objectMode")):this[Ki]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(ln,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[qV](){let t=!1,r=()=>(this.pause(),t=!0,Promise.resolve({done:!0}));return{next:()=>{if(t)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[du])return r();let s=null,a=null,o=h=>{this.removeListener("data",u),this.removeListener("end",l),this.removeListener(ln,f),r(),a(h)},u=h=>{this.removeListener("error",o),this.removeListener("end",l),this.removeListener(ln,f),this.pause(),s({value:h,done:!!this[du]})},l=()=>{this.removeListener("error",o),this.removeListener("data",u),this.removeListener(ln,f),r(),s({done:!0})},f=()=>o(new Error("stream destroyed"));return new Promise((h,m)=>{a=m,s=h,this.once(ln,f),this.once("error",o),this.once("end",l),this.once("data",u)})},throw:r,return:r,[qV](){return this}}}[jV](){let t=!1,r=()=>(this.pause(),this.removeListener(JT,r),this.removeListener(ln,r),this.removeListener("end",r),t=!0,{done:!0}),n=()=>{if(t)return r();let i=this.read();return i===null?r():{value:i}};return this.once("end",r),this.once(JT,r),this.once(ln,r),{next:n,throw:r,return:r,[jV](){return this}}}destroy(t){return this[ln]?(t?this.emit("error",t):this.emit(ln),this):(this[ln]=!0,this[cn].length=0,this[Bn]=0,typeof this.close=="function"&&!this[WE]&&this.close(),t?this.emit("error",t):this.emit(ln),this)}static isStream(t){return!!t&&(t instanceof e||t instanceof LV||t instanceof Vxe&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}};HV.Minipass=nI});var WV=w((rZe,GV)=>{"use strict";d();var zxe=J("zlib").constants||{ZLIB_VERNUM:4736};GV.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},zxe))});var cI=w((iZe,eH)=>{"use strict";d();var QV=typeof process=="object"&&process?process:{stdout:null,stderr:null},Kxe=J("events"),zV=J("stream"),KV=J("string_decoder").StringDecoder,vu=Symbol("EOF"),yu=Symbol("maybeEmitEnd"),Ic=Symbol("emittedEnd"),XE=Symbol("emittingEnd"),Kg=Symbol("emittedError"),JE=Symbol("closed"),$V=Symbol("read"),ZE=Symbol("flush"),YV=Symbol("flushChunk"),$i=Symbol("encoding"),xu=Symbol("decoder"),e_=Symbol("flowing"),$g=Symbol("paused"),Ld=Symbol("resume"),Ln=Symbol("bufferLength"),iI=Symbol("bufferPush"),sI=Symbol("bufferShift"),di=Symbol("objectMode"),hi=Symbol("destroyed"),aI=Symbol("emitData"),XV=Symbol("emitEnd"),oI=Symbol("emitEnd2"),Eu=Symbol("async"),Yg=e=>Promise.resolve().then(e),JV=global._MP_NO_ITERATOR_SYMBOLS_!=="1",$xe=JV&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Yxe=JV&&Symbol.iterator||Symbol("iterator not implemented"),Xxe=e=>e==="end"||e==="finish"||e==="prefinish",Jxe=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,Zxe=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),t_=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[Ld](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},uI=class extends t_{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}};eH.exports=class ZV extends zV{constructor(t){super(),this[e_]=!1,this[$g]=!1,this.pipes=[],this.buffer=[],this[di]=t&&t.objectMode||!1,this[di]?this[$i]=null:this[$i]=t&&t.encoding||null,this[$i]==="buffer"&&(this[$i]=null),this[Eu]=t&&!!t.async||!1,this[xu]=this[$i]?new KV(this[$i]):null,this[vu]=!1,this[Ic]=!1,this[XE]=!1,this[JE]=!1,this[Kg]=null,this.writable=!0,this.readable=!0,this[Ln]=0,this[hi]=!1}get bufferLength(){return this[Ln]}get encoding(){return this[$i]}set encoding(t){if(this[di])throw new Error("cannot set encoding in objectMode");if(this[$i]&&t!==this[$i]&&(this[xu]&&this[xu].lastNeed||this[Ln]))throw new Error("cannot change encoding");this[$i]!==t&&(this[xu]=t?new KV(t):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[xu].write(r)))),this[$i]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[di]}set objectMode(t){this[di]=this[di]||!!t}get async(){return this[Eu]}set async(t){this[Eu]=this[Eu]||!!t}write(t,r,n){if(this[vu])throw new Error("write after end");if(this[hi])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Eu]?Yg:s=>s();return!this[di]&&!Buffer.isBuffer(t)&&(Zxe(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):Jxe(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[di]?(this.flowing&&this[Ln]!==0&&this[ZE](!0),this.flowing?this.emit("data",t):this[iI](t),this[Ln]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[$i]&&!this[xu].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[$i]&&(t=this[xu].write(t)),this.flowing&&this[Ln]!==0&&this[ZE](!0),this.flowing?this.emit("data",t):this[iI](t),this[Ln]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Ln]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[hi])return null;if(this[Ln]===0||t===0||t>this[Ln])return this[yu](),null;this[di]&&(t=null),this.buffer.length>1&&!this[di]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Ln])]);let r=this[$V](t||null,this.buffer[0]);return this[yu](),r}[$V](t,r){return t===r.length||t===null?this[sI]():(this.buffer[0]=r.slice(t),r=r.slice(0,t),this[Ln]-=t),this.emit("data",r),!this.buffer.length&&!this[vu]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[vu]=!0,this.writable=!1,(this.flowing||!this[$g])&&this[yu](),this}[Ld](){this[hi]||(this[$g]=!1,this[e_]=!0,this.emit("resume"),this.buffer.length?this[ZE]():this[vu]?this[yu]():this.emit("drain"))}resume(){return this[Ld]()}pause(){this[e_]=!1,this[$g]=!0}get destroyed(){return this[hi]}get flowing(){return this[e_]}get paused(){return this[$g]}[iI](t){this[di]?this[Ln]+=1:this[Ln]+=t.length,this.buffer.push(t)}[sI](){return this.buffer.length&&(this[di]?this[Ln]-=1:this[Ln]-=this.buffer[0].length),this.buffer.shift()}[ZE](t){do;while(this[YV](this[sI]()));!t&&!this.buffer.length&&!this[vu]&&this.emit("drain")}[YV](t){return t?(this.emit("data",t),this.flowing):!1}pipe(t,r){if(this[hi])return;let n=this[Ic];return r=r||{},t===QV.stdout||t===QV.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this.pipes.push(r.proxyErrors?new uI(this,t,r):new t_(this,t,r)),this[Eu]?Yg(()=>this[Ld]()):this[Ld]()),t}unpipe(t){let r=this.pipes.find(n=>n.dest===t);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this.pipes.length&&!this.flowing?this[Ld]():t==="readable"&&this[Ln]!==0?super.emit("readable"):Xxe(t)&&this[Ic]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[Kg]&&(this[Eu]?Yg(()=>r.call(this,this[Kg])):r.call(this,this[Kg])),n}get emittedEnd(){return this[Ic]}[yu](){!this[XE]&&!this[Ic]&&!this[hi]&&this.buffer.length===0&&this[vu]&&(this[XE]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[JE]&&this.emit("close"),this[XE]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==hi&&this[hi])return;if(t==="data")return r?this[Eu]?Yg(()=>this[aI](r)):this[aI](r):!1;if(t==="end")return this[XV]();if(t==="close"){if(this[JE]=!0,!this[Ic]&&!this[hi])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[Kg]=r;let s=super.emit("error",r);return this[yu](),s}else if(t==="resume"){let s=super.emit("resume");return this[yu](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[yu](),i}[aI](t){for(let n of this.pipes)n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[yu](),r}[XV](){this[Ic]||(this[Ic]=!0,this.readable=!1,this[Eu]?Yg(()=>this[oI]()):this[oI]())}[oI](){if(this[xu]){let r=this[xu].end();if(r){for(let n of this.pipes)n.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[di]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[di]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[di]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[di]?Promise.reject(new Error("cannot concat in objectMode")):this[$i]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(hi,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[$xe](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[vu])return Promise.resolve({done:!0});let n=null,i=null,s=l=>{this.removeListener("data",a),this.removeListener("end",o),i(l)},a=l=>{this.removeListener("error",s),this.removeListener("end",o),this.pause(),n({value:l,done:!!this[vu]})},o=()=>{this.removeListener("error",s),this.removeListener("data",a),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((l,f)=>{i=f,n=l,this.once(hi,u),this.once("error",s),this.once("end",o),this.once("data",a)})}}}[Yxe](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(t){return this[hi]?(t?this.emit("error",t):this.emit(hi),this):(this[hi]=!0,this.buffer.length=0,this[Ln]=0,typeof this.close=="function"&&!this[JE]&&this.close(),t?this.emit("error",t):this.emit(hi),this)}static isStream(t){return!!t&&(t instanceof ZV||t instanceof zV||t instanceof Kxe&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}}});var bI=w(gs=>{"use strict";d();var hI=J("assert"),Rc=J("buffer").Buffer,nH=J("zlib"),Cp=gs.constants=WV(),eEe=cI(),tH=Rc.concat,Sp=Symbol("_superWrite"),kd=class extends Error{constructor(t){super("zlib: "+t.message),this.code=t.code,this.errno=t.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+t.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},tEe=Symbol("opts"),Xg=Symbol("flushFlag"),rH=Symbol("finishFlushFlag"),SI=Symbol("fullFlushFlag"),wr=Symbol("handle"),r_=Symbol("onError"),Fd=Symbol("sawError"),lI=Symbol("level"),pI=Symbol("strategy"),fI=Symbol("ended"),aZe=Symbol("_defaultFullFlush"),n_=class extends eEe{constructor(t,r){if(!t||typeof t!="object")throw new TypeError("invalid options for ZlibBase constructor");super(t),this[Fd]=!1,this[fI]=!1,this[tEe]=t,this[Xg]=t.flush,this[rH]=t.finishFlush;try{this[wr]=new nH[r](t)}catch(n){throw new kd(n)}this[r_]=n=>{this[Fd]||(this[Fd]=!0,this.close(),this.emit("error",n))},this[wr].on("error",n=>this[r_](new kd(n))),this.once("end",()=>this.close)}close(){this[wr]&&(this[wr].close(),this[wr]=null,this.emit("close"))}reset(){if(!this[Fd])return hI(this[wr],"zlib binding closed"),this[wr].reset()}flush(t){this.ended||(typeof t!="number"&&(t=this[SI]),this.write(Object.assign(Rc.alloc(0),{[Xg]:t})))}end(t,r,n){return t&&this.write(t,r),this.flush(this[rH]),this[fI]=!0,super.end(null,null,n)}get ended(){return this[fI]}write(t,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof t=="string"&&(t=Rc.from(t,r)),this[Fd])return;hI(this[wr],"zlib binding closed");let i=this[wr]._handle,s=i.close;i.close=()=>{};let a=this[wr].close;this[wr].close=()=>{},Rc.concat=l=>l;let o;try{let l=typeof t[Xg]=="number"?t[Xg]:this[Xg];o=this[wr]._processChunk(t,l),Rc.concat=tH}catch(l){Rc.concat=tH,this[r_](new kd(l))}finally{this[wr]&&(this[wr]._handle=i,i.close=s,this[wr].close=a,this[wr].removeAllListeners("error"))}this[wr]&&this[wr].on("error",l=>this[r_](new kd(l)));let u;if(o)if(Array.isArray(o)&&o.length>0){u=this[Sp](Rc.from(o[0]));for(let l=1;l<o.length;l++)u=this[Sp](o[l])}else u=this[Sp](Rc.from(o));return n&&n(),u}[Sp](t){return super.write(t)}},_u=class extends n_{constructor(t,r){t=t||{},t.flush=t.flush||Cp.Z_NO_FLUSH,t.finishFlush=t.finishFlush||Cp.Z_FINISH,super(t,r),this[SI]=Cp.Z_FULL_FLUSH,this[lI]=t.level,this[pI]=t.strategy}params(t,r){if(!this[Fd]){if(!this[wr])throw new Error("cannot switch params when binding is closed");if(!this[wr].params)throw new Error("not supported in this implementation");if(this[lI]!==t||this[pI]!==r){this.flush(Cp.Z_SYNC_FLUSH),hI(this[wr],"zlib binding closed");let n=this[wr].flush;this[wr].flush=(i,s)=>{this.flush(i),s()};try{this[wr].params(t,r)}finally{this[wr].flush=n}this[wr]&&(this[lI]=t,this[pI]=r)}}}},mI=class extends _u{constructor(t){super(t,"Deflate")}},gI=class extends _u{constructor(t){super(t,"Inflate")}},dI=Symbol("_portable"),vI=class extends _u{constructor(t){super(t,"Gzip"),this[dI]=t&&!!t.portable}[Sp](t){return this[dI]?(this[dI]=!1,t[9]=255,super[Sp](t)):super[Sp](t)}},yI=class extends _u{constructor(t){super(t,"Gunzip")}},xI=class extends _u{constructor(t){super(t,"DeflateRaw")}},EI=class extends _u{constructor(t){super(t,"InflateRaw")}},_I=class extends _u{constructor(t){super(t,"Unzip")}},i_=class extends n_{constructor(t,r){t=t||{},t.flush=t.flush||Cp.BROTLI_OPERATION_PROCESS,t.finishFlush=t.finishFlush||Cp.BROTLI_OPERATION_FINISH,super(t,r),this[SI]=Cp.BROTLI_OPERATION_FLUSH}},AI=class extends i_{constructor(t){super(t,"BrotliCompress")}},CI=class extends i_{constructor(t){super(t,"BrotliDecompress")}};gs.Deflate=mI;gs.Inflate=gI;gs.Gzip=vI;gs.Gunzip=yI;gs.DeflateRaw=xI;gs.InflateRaw=EI;gs.Unzip=_I;typeof nH.BrotliCompress=="function"?(gs.BrotliCompress=AI,gs.BrotliDecompress=CI):gs.BrotliCompress=gs.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Ud=w((lZe,iH)=>{"use strict";d();var rEe=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;iH.exports=rEe!=="win32"?e=>e:e=>e&&e.replace(/\\/g,"/")});var s_=w((dZe,sH)=>{"use strict";d();var{Minipass:nEe}=YE(),DI=Ud(),wI=Symbol("slurp");sH.exports=class extends nEe{constructor(t,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=t,this.startBlockSize=512*Math.ceil(t.size/512),this.blockRemain=this.startBlockSize,this.remain=t.size,this.type=t.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=DI(t.path),this.mode=t.mode,this.mode&&(this.mode=this.mode&4095),this.uid=t.uid,this.gid=t.gid,this.uname=t.uname,this.gname=t.gname,this.size=t.size,this.mtime=t.mtime,this.atime=t.atime,this.ctime=t.ctime,this.linkpath=DI(t.linkpath),this.uname=t.uname,this.gname=t.gname,r&&this[wI](r),n&&this[wI](n,!0)}write(t){let r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(t):super.write(t.slice(0,n))}[wI](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?DI(t[n]):t[n])}}});var TI=w(a_=>{"use strict";d();a_.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);a_.code=new Map(Array.from(a_.name).map(e=>[e[1],e[0]]))});var cH=w((vZe,uH)=>{"use strict";d();var iEe=(e,t)=>{if(Number.isSafeInteger(e))e<0?aEe(e,t):sEe(e,t);else throw Error("cannot encode number outside of javascript safe integer range");return t},sEe=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--)t[r-1]=e&255,e=Math.floor(e/256)},aEe=(e,t)=>{t[0]=255;var r=!1;e=e*-1;for(var n=t.length;n>1;n--){var i=e&255;e=Math.floor(e/256),r?t[n-1]=aH(i):i===0?t[n-1]=0:(r=!0,t[n-1]=oH(i))}},oEe=e=>{let t=e[0],r=t===128?cEe(e.slice(1,e.length)):t===255?uEe(e):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},uEe=e=>{for(var t=e.length,r=0,n=!1,i=t-1;i>-1;i--){var s=e[i],a;n?a=aH(s):s===0?a=s:(n=!0,a=oH(s)),a!==0&&(r-=a*Math.pow(256,t-i-1))}return r},cEe=e=>{for(var t=e.length,r=0,n=t-1;n>-1;n--){var i=e[n];i!==0&&(r+=i*Math.pow(256,t-n-1))}return r},aH=e=>(255^e)&255,oH=e=>(255^e)+1&255;uH.exports={encode:iEe,parse:oEe}});var qd=w((xZe,pH)=>{"use strict";d();var II=TI(),Md=J("path").posix,lH=cH(),RI=Symbol("slurp"),vs=Symbol("type"),PI=class{constructor(t,r,n,i){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[vs]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(t)?this.decode(t,r||0,n,i):t&&this.set(t)}decode(t,r,n,i){if(r||(r=0),!t||!(t.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=bp(t,r,100),this.mode=Nc(t,r+100,8),this.uid=Nc(t,r+108,8),this.gid=Nc(t,r+116,8),this.size=Nc(t,r+124,12),this.mtime=NI(t,r+136,12),this.cksum=Nc(t,r+148,12),this[RI](n),this[RI](i,!0),this[vs]=bp(t,r+156,1),this[vs]===""&&(this[vs]="0"),this[vs]==="0"&&this.path.slice(-1)==="/"&&(this[vs]="5"),this[vs]==="5"&&(this.size=0),this.linkpath=bp(t,r+157,100),t.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=bp(t,r+265,32),this.gname=bp(t,r+297,32),this.devmaj=Nc(t,r+329,8),this.devmin=Nc(t,r+337,8),t[r+475]!==0){let a=bp(t,r+345,155);this.path=a+"/"+this.path}else{let a=bp(t,r+345,130);a&&(this.path=a+"/"+this.path),this.atime=NI(t,r+476,12),this.ctime=NI(t,r+488,12)}let s=8*32;for(let a=r;a<r+148;a++)s+=t[a];for(let a=r+156;a<r+512;a++)s+=t[a];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[RI](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=t[n])}encode(t,r){if(t||(t=this.block=Buffer.alloc(512),r=0),r||(r=0),!(t.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=lEe(this.path||"",n),s=i[0],a=i[1];this.needPax=i[2],this.needPax=Dp(t,r,100,s)||this.needPax,this.needPax=Oc(t,r+100,8,this.mode)||this.needPax,this.needPax=Oc(t,r+108,8,this.uid)||this.needPax,this.needPax=Oc(t,r+116,8,this.gid)||this.needPax,this.needPax=Oc(t,r+124,12,this.size)||this.needPax,this.needPax=OI(t,r+136,12,this.mtime)||this.needPax,t[r+156]=this[vs].charCodeAt(0),this.needPax=Dp(t,r+157,100,this.linkpath)||this.needPax,t.write("ustar\x0000",r+257,8),this.needPax=Dp(t,r+265,32,this.uname)||this.needPax,this.needPax=Dp(t,r+297,32,this.gname)||this.needPax,this.needPax=Oc(t,r+329,8,this.devmaj)||this.needPax,this.needPax=Oc(t,r+337,8,this.devmin)||this.needPax,this.needPax=Dp(t,r+345,n,a)||this.needPax,t[r+475]!==0?this.needPax=Dp(t,r+345,155,a)||this.needPax:(this.needPax=Dp(t,r+345,130,a)||this.needPax,this.needPax=OI(t,r+476,12,this.atime)||this.needPax,this.needPax=OI(t,r+488,12,this.ctime)||this.needPax);let o=8*32;for(let u=r;u<r+148;u++)o+=t[u];for(let u=r+156;u<r+512;u++)o+=t[u];return this.cksum=o,Oc(t,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(t){for(let r in t)t[r]!==null&&t[r]!==void 0&&(this[r]=t[r])}get type(){return II.name.get(this[vs])||this[vs]}get typeKey(){return this[vs]}set type(t){II.code.has(t)?this[vs]=II.code.get(t):this[vs]=t}},lEe=(e,t)=>{let n=e,i="",s,a=Md.parse(e).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=Md.dirname(n),n=Md.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=t?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=t?s=[n.slice(0,99),i,!0]:(n=Md.join(Md.basename(i),n),i=Md.dirname(i));while(i!==a&&!s);s||(s=[e.slice(0,99),"",!0])}return s},bp=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,""),NI=(e,t,r)=>pEe(Nc(e,t,r)),pEe=e=>e===null?null:new Date(e*1e3),Nc=(e,t,r)=>e[t]&128?lH.parse(e.slice(t,t+r)):dEe(e,t,r),fEe=e=>isNaN(e)?null:e,dEe=(e,t,r)=>fEe(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),hEe={12:8589934591,8:2097151},Oc=(e,t,r,n)=>n===null?!1:n>hEe[r]||n<0?(lH.encode(n,e.slice(t,t+r)),!0):(mEe(e,t,r,n),!1),mEe=(e,t,r,n)=>e.write(gEe(n,r),t,r,"ascii"),gEe=(e,t)=>vEe(Math.floor(e).toString(8),t),vEe=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0",OI=(e,t,r,n)=>n===null?!1:Oc(e,t,r,n.getTime()/1e3),yEe=new Array(156).join("\0"),Dp=(e,t,r,n)=>n===null?!1:(e.write(n+yEe,t,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);pH.exports=PI});var o_=w((_Ze,fH)=>{"use strict";d();var xEe=qd(),EEe=J("path"),Jg=class{constructor(t,r){this.atime=t.atime||null,this.charset=t.charset||null,this.comment=t.comment||null,this.ctime=t.ctime||null,this.gid=t.gid||null,this.gname=t.gname||null,this.linkpath=t.linkpath||null,this.mtime=t.mtime||null,this.path=t.path||null,this.size=t.size||null,this.uid=t.uid||null,this.uname=t.uname||null,this.dev=t.dev||null,this.ino=t.ino||null,this.nlink=t.nlink||null,this.global=r||!1}encode(){let t=this.encodeBody();if(t==="")return null;let r=Buffer.byteLength(t),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new xEe({path:("PaxHeader/"+EEe.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(i),i.write(t,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(t){if(this[t]===null||this[t]===void 0)return"";let r=this[t]instanceof Date?this[t].getTime()/1e3:this[t],n=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+r+`
|
|
45
|
-
`,i=Buffer.byteLength(n),s=Math.floor(Math.log(i)/Math.log(10))+1;return i+s>=Math.pow(10,s)&&(s+=1),s+i+n}};Jg.parse=(e,t,r)=>new Jg(_Ee(AEe(e),t),r);var _Ee=(e,t)=>t?Object.keys(e).reduce((r,n)=>(r[n]=e[n],r),t):e,AEe=e=>e.replace(/\n$/,"").split(`
|
|
46
|
-
`).reduce(CEe,Object.create(null)),CEe=(e,t)=>{let r=parseInt(t,10);if(r!==Buffer.byteLength(t)+1)return e;t=t.slice((r+" ").length);let n=t.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return e;let s=n.join("=");return e[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,e};fH.exports=Jg});var jd=w((CZe,dH)=>{"use strict";d();dH.exports=e=>{let t=e.length-1,r=-1;for(;t>-1&&e.charAt(t)==="/";)r=t,t--;return r===-1?e:e.slice(0,r)}});var u_=w((bZe,hH)=>{"use strict";d();hH.exports=e=>class extends e{warn(t,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||t,n.tarCode=t,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${t}: ${r}`),n))}}});var LI=w((TZe,mH)=>{"use strict";d();var c_=["|","<",">","?",":"],BI=c_.map(e=>String.fromCharCode(61440+e.charCodeAt(0))),SEe=new Map(c_.map((e,t)=>[e,BI[t]])),bEe=new Map(BI.map((e,t)=>[e,c_[t]]));mH.exports={encode:e=>c_.reduce((t,r)=>t.split(r).join(SEe.get(r)),e),decode:e=>BI.reduce((t,r)=>t.split(r).join(bEe.get(r)),e)}});var FI=w((RZe,vH)=>{"use strict";d();var{isAbsolute:DEe,parse:gH}=J("path").win32;vH.exports=e=>{let t="",r=gH(e);for(;DEe(e)||r.root;){let n=e.charAt(0)==="/"&&e.slice(0,4)!=="//?/"?"/":r.root;e=e.slice(n.length),t+=n,r=gH(e)}return[t,e]}});var xH=w((OZe,yH)=>{"use strict";d();yH.exports=(e,t,r)=>(e&=4095,r&&(e=(e|384)&-19),t&&(e&256&&(e|=64),e&32&&(e|=8),e&4&&(e|=1)),e)});var QI=w((FZe,PH)=>{"use strict";d();var{Minipass:DH}=YE(),wH=o_(),TH=qd(),So=J("fs"),EH=J("path"),Co=Ud(),wEe=jd(),IH=(e,t)=>t?(e=Co(e).replace(/^\.(\/|$)/,""),wEe(t)+"/"+e):Co(e),TEe=16*1024*1024,_H=Symbol("process"),AH=Symbol("file"),CH=Symbol("directory"),UI=Symbol("symlink"),SH=Symbol("hardlink"),Zg=Symbol("header"),l_=Symbol("read"),MI=Symbol("lstat"),p_=Symbol("onlstat"),qI=Symbol("onread"),jI=Symbol("onreadlink"),VI=Symbol("openfile"),HI=Symbol("onopenfile"),Pc=Symbol("close"),f_=Symbol("mode"),GI=Symbol("awaitDrain"),kI=Symbol("ondrain"),bo=Symbol("prefix"),bH=Symbol("hadError"),RH=u_(),IEe=LI(),NH=FI(),OH=xH(),d_=RH(class extends DH{constructor(t,r){if(r=r||{},super(r),typeof t!="string")throw new TypeError("path is required");this.path=Co(t),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||TEe,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Co(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Co(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=NH(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=IEe.decode(this.path.replace(/\\/g,"/")),t=t.replace(/\\/g,"/")),this.absolute=Co(r.absolute||EH.resolve(this.cwd,t)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[p_](this.statCache.get(this.absolute)):this[MI]()}emit(t,...r){return t==="error"&&(this[bH]=!0),super.emit(t,...r)}[MI](){So.lstat(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[p_](r)})}[p_](t){this.statCache.set(this.absolute,t),this.stat=t,t.isFile()||(t.size=0),this.type=NEe(t),this.emit("stat",t),this[_H]()}[_H](){switch(this.type){case"File":return this[AH]();case"Directory":return this[CH]();case"SymbolicLink":return this[UI]();default:return this.end()}}[f_](t){return OH(t,this.type==="Directory",this.portable)}[bo](t){return IH(t,this.prefix)}[Zg](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new TH({path:this[bo](this.path),linkpath:this.type==="Link"?this[bo](this.linkpath):this.linkpath,mode:this[f_](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new wH({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[bo](this.path),linkpath:this.type==="Link"?this[bo](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[CH](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Zg](),this.end()}[UI](){So.readlink(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[jI](r)})}[jI](t){this.linkpath=Co(t),this[Zg](),this.end()}[SH](t){this.type="Link",this.linkpath=Co(EH.relative(this.cwd,t)),this.stat.size=0,this[Zg](),this.end()}[AH](){if(this.stat.nlink>1){let t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){let r=this.linkCache.get(t);if(r.indexOf(this.cwd)===0)return this[SH](r)}this.linkCache.set(t,this.absolute)}if(this[Zg](),this.stat.size===0)return this.end();this[VI]()}[VI](){So.open(this.absolute,"r",(t,r)=>{if(t)return this.emit("error",t);this[HI](r)})}[HI](t){if(this.fd=t,this[bH])return this[Pc]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[l_]()}[l_](){let{fd:t,buf:r,offset:n,length:i,pos:s}=this;So.read(t,r,n,i,s,(a,o)=>{if(a)return this[Pc](()=>this.emit("error",a));this[qI](o)})}[Pc](t){So.close(this.fd,t)}[qI](t){if(t<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Pc](()=>this.emit("error",i))}if(t>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Pc](()=>this.emit("error",i))}if(t===this.remain)for(let i=t;i<this.length&&t<this.blockRemain;i++)this.buf[i+this.offset]=0,t++,this.remain++;let r=this.offset===0&&t===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+t);this.write(r)?this[kI]():this[GI](()=>this[kI]())}[GI](t){this.once("drain",t)}write(t){if(this.blockRemain<t.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=t.length,this.blockRemain-=t.length,this.pos+=t.length,this.offset+=t.length,super.write(t)}[kI](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Pc](t=>t?this.emit("error",t):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[l_]()}}),WI=class extends d_{[MI](){this[p_](So.lstatSync(this.absolute))}[UI](){this[jI](So.readlinkSync(this.absolute))}[VI](){this[HI](So.openSync(this.absolute,"r"))}[l_](){let t=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:a}=this,o=So.readSync(r,n,i,s,a);this[qI](o),t=!1}finally{if(t)try{this[Pc](()=>{})}catch{}}}[GI](t){t()}[Pc](t){So.closeSync(this.fd),t()}},REe=RH(class extends DH{constructor(t,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=t,this.type=t.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Co(t.path),this.mode=this[f_](t.mode),this.uid=this.portable?null:t.uid,this.gid=this.portable?null:t.gid,this.uname=this.portable?null:t.uname,this.gname=this.portable?null:t.gname,this.size=t.size,this.mtime=this.noMtime?null:r.mtime||t.mtime,this.atime=this.portable?null:t.atime,this.ctime=this.portable?null:t.ctime,this.linkpath=Co(t.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=NH(this.path);i&&(this.path=s,n=i)}this.remain=t.size,this.blockRemain=t.startBlockSize,this.header=new TH({path:this[bo](this.path),linkpath:this.type==="Link"?this[bo](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new wH({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[bo](this.path),linkpath:this.type==="Link"?this[bo](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),t.pipe(this)}[bo](t){return IH(t,this.prefix)}[f_](t){return OH(t,this.type==="Directory",this.portable)}write(t){let r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(t)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});d_.Sync=WI;d_.Tar=REe;var NEe=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";PH.exports=d_});var LH=w((UZe,BH)=>{"use strict";d();BH.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var h_=w((qZe,FH)=>{"use strict";d();FH.exports=lr;lr.Node=wp;lr.create=lr;function lr(e){var t=this;if(t instanceof lr||(t=new lr),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}lr.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};lr.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};lr.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};lr.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)PEe(this,arguments[e]);return this.length};lr.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)BEe(this,arguments[e]);return this.length};lr.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};lr.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};lr.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};lr.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};lr.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};lr.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};lr.prototype.map=function(e,t){t=t||this;for(var r=new lr,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};lr.prototype.mapReverse=function(e,t){t=t||this;for(var r=new lr,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};lr.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};lr.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};lr.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};lr.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};lr.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new lr;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};lr.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new lr;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};lr.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=OEe(this,i,r[n]);return s};lr.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function OEe(e,t,r){var n=t===e.head?new wp(r,null,t,e):new wp(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function PEe(e,t){e.tail=new wp(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function BEe(e,t){e.head=new wp(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function wp(e,t,r,n){if(!(this instanceof wp))return new wp(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{LH()(lr)}catch{}});var C_=w((HZe,GH)=>{"use strict";d();var __=class{constructor(t,r){this.path=t||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},{Minipass:LEe}=YE(),kH=bI(),FEe=s_(),t2=QI(),kEe=t2.Sync,UEe=t2.Tar,MEe=h_(),UH=Buffer.alloc(1024),v_=Symbol("onStat"),m_=Symbol("ended"),Do=Symbol("queue"),Vd=Symbol("current"),Tp=Symbol("process"),g_=Symbol("processing"),MH=Symbol("processJob"),wo=Symbol("jobs"),zI=Symbol("jobDone"),y_=Symbol("addFSEntry"),qH=Symbol("addTarEntry"),XI=Symbol("stat"),JI=Symbol("readdir"),x_=Symbol("onreaddir"),E_=Symbol("pipe"),jH=Symbol("entry"),KI=Symbol("entryOpt"),ZI=Symbol("writeEntryClass"),HH=Symbol("write"),$I=Symbol("ondrain"),A_=J("fs"),VH=J("path"),qEe=u_(),YI=Ud(),r2=qEe(class extends LEe{constructor(t){if(super(t),t=t||Object.create(null),this.opt=t,this.file=t.file||"",this.cwd=t.cwd||process.cwd(),this.maxReadSize=t.maxReadSize,this.preservePaths=!!t.preservePaths,this.strict=!!t.strict,this.noPax=!!t.noPax,this.prefix=YI(t.prefix||""),this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.readdirCache=t.readdirCache||new Map,this[ZI]=t2,typeof t.onwarn=="function"&&this.on("warn",t.onwarn),this.portable=!!t.portable,this.zip=null,t.gzip||t.brotli){if(t.gzip&&t.brotli)throw new TypeError("gzip and brotli are mutually exclusive");t.gzip&&(typeof t.gzip!="object"&&(t.gzip={}),this.portable&&(t.gzip.portable=!0),this.zip=new kH.Gzip(t.gzip)),t.brotli&&(typeof t.brotli!="object"&&(t.brotli={}),this.zip=new kH.BrotliCompress(t.brotli)),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[$I]()),this.on("resume",r=>this.zip.resume())}else this.on("drain",this[$I]);this.noDirRecurse=!!t.noDirRecurse,this.follow=!!t.follow,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,this.filter=typeof t.filter=="function"?t.filter:r=>!0,this[Do]=new MEe,this[wo]=0,this.jobs=+t.jobs||4,this[g_]=!1,this[m_]=!1}[HH](t){return super.write(t)}add(t){return this.write(t),this}end(t){return t&&this.write(t),this[m_]=!0,this[Tp](),this}write(t){if(this[m_])throw new Error("write after end");return t instanceof FEe?this[qH](t):this[y_](t),this.flowing}[qH](t){let r=YI(VH.resolve(this.cwd,t.path));if(!this.filter(t.path,t))t.resume();else{let n=new __(t.path,r,!1);n.entry=new UEe(t,this[KI](n)),n.entry.on("end",i=>this[zI](n)),this[wo]+=1,this[Do].push(n)}this[Tp]()}[y_](t){let r=YI(VH.resolve(this.cwd,t));this[Do].push(new __(t,r)),this[Tp]()}[XI](t){t.pending=!0,this[wo]+=1;let r=this.follow?"stat":"lstat";A_[r](t.absolute,(n,i)=>{t.pending=!1,this[wo]-=1,n?this.emit("error",n):this[v_](t,i)})}[v_](t,r){this.statCache.set(t.absolute,r),t.stat=r,this.filter(t.path,r)||(t.ignore=!0),this[Tp]()}[JI](t){t.pending=!0,this[wo]+=1,A_.readdir(t.absolute,(r,n)=>{if(t.pending=!1,this[wo]-=1,r)return this.emit("error",r);this[x_](t,n)})}[x_](t,r){this.readdirCache.set(t.absolute,r),t.readdir=r,this[Tp]()}[Tp](){if(!this[g_]){this[g_]=!0;for(let t=this[Do].head;t!==null&&this[wo]<this.jobs;t=t.next)if(this[MH](t.value),t.value.ignore){let r=t.next;this[Do].removeNode(t),t.next=r}this[g_]=!1,this[m_]&&!this[Do].length&&this[wo]===0&&(this.zip?this.zip.end(UH):(super.write(UH),super.end()))}}get[Vd](){return this[Do]&&this[Do].head&&this[Do].head.value}[zI](t){this[Do].shift(),this[wo]-=1,this[Tp]()}[MH](t){if(!t.pending){if(t.entry){t===this[Vd]&&!t.piped&&this[E_](t);return}if(t.stat||(this.statCache.has(t.absolute)?this[v_](t,this.statCache.get(t.absolute)):this[XI](t)),!!t.stat&&!t.ignore&&!(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir&&(this.readdirCache.has(t.absolute)?this[x_](t,this.readdirCache.get(t.absolute)):this[JI](t),!t.readdir))){if(t.entry=this[jH](t),!t.entry){t.ignore=!0;return}t===this[Vd]&&!t.piped&&this[E_](t)}}}[KI](t){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:t.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[jH](t){this[wo]+=1;try{return new this[ZI](t.path,this[KI](t)).on("end",()=>this[zI](t)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[$I](){this[Vd]&&this[Vd].entry&&this[Vd].entry.resume()}[E_](t){t.piped=!0,t.readdir&&t.readdir.forEach(i=>{let s=t.path,a=s==="./"?"":s.replace(/\/*$/,"/");this[y_](a+i)});let r=t.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),e2=class extends r2{constructor(t){super(t),this[ZI]=kEe}pause(){}resume(){}[XI](t){let r=this.follow?"statSync":"lstatSync";this[v_](t,A_[r](t.absolute))}[JI](t,r){this[x_](t,A_.readdirSync(t.absolute))}[E_](t){let r=t.entry,n=this.zip;t.readdir&&t.readdir.forEach(i=>{let s=t.path,a=s==="./"?"":s.replace(/\/*$/,"/");this[y_](a+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[HH](i)})}};r2.Sync=e2;GH.exports=r2});var Yd=w(t0=>{"use strict";d();var jEe=cI(),VEe=J("events").EventEmitter,Yi=J("fs"),s2=Yi.writev;if(!s2){let e=process.binding("fs"),t=e.FSReqWrap||e.FSReqCallback;s2=(r,n,i,s)=>{let a=(u,l)=>s(u,l,n),o=new t;o.oncomplete=a,e.writeBuffers(r,n,i,o)}}var Kd=Symbol("_autoClose"),ka=Symbol("_close"),e0=Symbol("_ended"),yr=Symbol("_fd"),WH=Symbol("_finished"),Lc=Symbol("_flags"),n2=Symbol("_flush"),a2=Symbol("_handleChunk"),o2=Symbol("_makeBuf"),T_=Symbol("_mode"),S_=Symbol("_needDrain"),Qd=Symbol("_onerror"),$d=Symbol("_onopen"),i2=Symbol("_onread"),Gd=Symbol("_onwrite"),Fc=Symbol("_open"),Au=Symbol("_path"),Ip=Symbol("_pos"),To=Symbol("_queue"),Wd=Symbol("_read"),QH=Symbol("_readSize"),Bc=Symbol("_reading"),b_=Symbol("_remain"),zH=Symbol("_size"),D_=Symbol("_write"),Hd=Symbol("_writing"),w_=Symbol("_defaultFlag"),zd=Symbol("_errored"),I_=class extends jEe{constructor(t,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof t!="string")throw new TypeError("path must be a string");this[zd]=!1,this[yr]=typeof r.fd=="number"?r.fd:null,this[Au]=t,this[QH]=r.readSize||16*1024*1024,this[Bc]=!1,this[zH]=typeof r.size=="number"?r.size:1/0,this[b_]=this[zH],this[Kd]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[yr]=="number"?this[Wd]():this[Fc]()}get fd(){return this[yr]}get path(){return this[Au]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Fc](){Yi.open(this[Au],"r",(t,r)=>this[$d](t,r))}[$d](t,r){t?this[Qd](t):(this[yr]=r,this.emit("open",r),this[Wd]())}[o2](){return Buffer.allocUnsafe(Math.min(this[QH],this[b_]))}[Wd](){if(!this[Bc]){this[Bc]=!0;let t=this[o2]();if(t.length===0)return process.nextTick(()=>this[i2](null,0,t));Yi.read(this[yr],t,0,t.length,null,(r,n,i)=>this[i2](r,n,i))}}[i2](t,r,n){this[Bc]=!1,t?this[Qd](t):this[a2](r,n)&&this[Wd]()}[ka](){if(this[Kd]&&typeof this[yr]=="number"){let t=this[yr];this[yr]=null,Yi.close(t,r=>r?this.emit("error",r):this.emit("close"))}}[Qd](t){this[Bc]=!0,this[ka](),this.emit("error",t)}[a2](t,r){let n=!1;return this[b_]-=t,t>0&&(n=super.write(t<r.length?r.slice(0,t):r)),(t===0||this[b_]<=0)&&(n=!1,this[ka](),super.end()),n}emit(t,r){switch(t){case"prefinish":case"finish":break;case"drain":typeof this[yr]=="number"&&this[Wd]();break;case"error":return this[zd]?void 0:(this[zd]=!0,super.emit(t,r));default:return super.emit(t,r)}}},u2=class extends I_{[Fc](){let t=!0;try{this[$d](null,Yi.openSync(this[Au],"r")),t=!1}finally{t&&this[ka]()}}[Wd](){let t=!0;try{if(!this[Bc]){this[Bc]=!0;do{let r=this[o2](),n=r.length===0?0:Yi.readSync(this[yr],r,0,r.length,null);if(!this[a2](n,r))break}while(!0);this[Bc]=!1}t=!1}finally{t&&this[ka]()}}[ka](){if(this[Kd]&&typeof this[yr]=="number"){let t=this[yr];this[yr]=null,Yi.closeSync(t),this.emit("close")}}},R_=class extends VEe{constructor(t,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[zd]=!1,this[Hd]=!1,this[e0]=!1,this[S_]=!1,this[To]=[],this[Au]=t,this[yr]=typeof r.fd=="number"?r.fd:null,this[T_]=r.mode===void 0?438:r.mode,this[Ip]=typeof r.start=="number"?r.start:null,this[Kd]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[Ip]!==null?"r+":"w";this[w_]=r.flags===void 0,this[Lc]=this[w_]?n:r.flags,this[yr]===null&&this[Fc]()}emit(t,r){if(t==="error"){if(this[zd])return;this[zd]=!0}return super.emit(t,r)}get fd(){return this[yr]}get path(){return this[Au]}[Qd](t){this[ka](),this[Hd]=!0,this.emit("error",t)}[Fc](){Yi.open(this[Au],this[Lc],this[T_],(t,r)=>this[$d](t,r))}[$d](t,r){this[w_]&&this[Lc]==="r+"&&t&&t.code==="ENOENT"?(this[Lc]="w",this[Fc]()):t?this[Qd](t):(this[yr]=r,this.emit("open",r),this[n2]())}end(t,r){return t&&this.write(t,r),this[e0]=!0,!this[Hd]&&!this[To].length&&typeof this[yr]=="number"&&this[Gd](null,0),this}write(t,r){return typeof t=="string"&&(t=Buffer.from(t,r)),this[e0]?(this.emit("error",new Error("write() after end()")),!1):this[yr]===null||this[Hd]||this[To].length?(this[To].push(t),this[S_]=!0,!1):(this[Hd]=!0,this[D_](t),!0)}[D_](t){Yi.write(this[yr],t,0,t.length,this[Ip],(r,n)=>this[Gd](r,n))}[Gd](t,r){t?this[Qd](t):(this[Ip]!==null&&(this[Ip]+=r),this[To].length?this[n2]():(this[Hd]=!1,this[e0]&&!this[WH]?(this[WH]=!0,this[ka](),this.emit("finish")):this[S_]&&(this[S_]=!1,this.emit("drain"))))}[n2](){if(this[To].length===0)this[e0]&&this[Gd](null,0);else if(this[To].length===1)this[D_](this[To].pop());else{let t=this[To];this[To]=[],s2(this[yr],t,this[Ip],(r,n)=>this[Gd](r,n))}}[ka](){if(this[Kd]&&typeof this[yr]=="number"){let t=this[yr];this[yr]=null,Yi.close(t,r=>r?this.emit("error",r):this.emit("close"))}}},c2=class extends R_{[Fc](){let t;if(this[w_]&&this[Lc]==="r+")try{t=Yi.openSync(this[Au],this[Lc],this[T_])}catch(r){if(r.code==="ENOENT")return this[Lc]="w",this[Fc]();throw r}else t=Yi.openSync(this[Au],this[Lc],this[T_]);this[$d](null,t)}[ka](){if(this[Kd]&&typeof this[yr]=="number"){let t=this[yr];this[yr]=null,Yi.closeSync(t),this.emit("close")}}[D_](t){let r=!0;try{this[Gd](null,Yi.writeSync(this[yr],t,0,t.length,this[Ip])),r=!1}finally{if(r)try{this[ka]()}catch{}}}};t0.ReadStream=I_;t0.ReadStreamSync=u2;t0.WriteStream=R_;t0.WriteStreamSync=c2});var k_=w((KZe,n9)=>{"use strict";d();var HEe=u_(),KH=qd(),GEe=J("events"),WEe=h_(),QEe=1024*1024,zEe=s_(),$H=o_(),YH=bI(),{nextTick:KEe}=J("process"),l2=Buffer.from([31,139]),js=Symbol("state"),Rp=Symbol("writeEntry"),Cu=Symbol("readEntry"),p2=Symbol("nextEntry"),XH=Symbol("processEntry"),Vs=Symbol("extendedHeader"),r0=Symbol("globalExtendedHeader"),kc=Symbol("meta"),JH=Symbol("emitMeta"),Tr=Symbol("buffer"),Su=Symbol("queue"),Uc=Symbol("ended"),ZH=Symbol("emittedEnd"),Np=Symbol("emit"),Fn=Symbol("unzip"),N_=Symbol("consumeChunk"),O_=Symbol("consumeChunkSub"),f2=Symbol("consumeBody"),e9=Symbol("consumeMeta"),t9=Symbol("consumeHeader"),P_=Symbol("consuming"),d2=Symbol("bufferConcat"),h2=Symbol("maybeEnd"),n0=Symbol("writing"),Mc=Symbol("aborted"),B_=Symbol("onDone"),Op=Symbol("sawValidEntry"),L_=Symbol("sawNullBlock"),F_=Symbol("sawEOF"),r9=Symbol("closeStream"),$Ee=e=>!0;n9.exports=HEe(class extends GEe{constructor(t){t=t||{},super(t),this.file=t.file||"",this[Op]=null,this.on(B_,n=>{(this[js]==="begin"||this[Op]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),t.ondone?this.on(B_,t.ondone):this.on(B_,n=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!t.strict,this.maxMetaEntrySize=t.maxMetaEntrySize||QEe,this.filter=typeof t.filter=="function"?t.filter:$Ee;let r=t.file&&(t.file.endsWith(".tar.br")||t.file.endsWith(".tbr"));this.brotli=!t.gzip&&t.brotli!==void 0?t.brotli:r?void 0:!1,this.writable=!0,this.readable=!1,this[Su]=new WEe,this[Tr]=null,this[Cu]=null,this[Rp]=null,this[js]="begin",this[kc]="",this[Vs]=null,this[r0]=null,this[Uc]=!1,this[Fn]=null,this[Mc]=!1,this[L_]=!1,this[F_]=!1,this.on("end",()=>this[r9]()),typeof t.onwarn=="function"&&this.on("warn",t.onwarn),typeof t.onentry=="function"&&this.on("entry",t.onentry)}[t9](t,r){this[Op]===null&&(this[Op]=!1);let n;try{n=new KH(t,r,this[Vs],this[r0])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[L_]?(this[F_]=!0,this[js]==="begin"&&(this[js]="header"),this[Np]("eof")):(this[L_]=!0,this[Np]("nullBlock"));else if(this[L_]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[Rp]=new zEe(n,this[Vs],this[r0]);if(!this[Op])if(s.remain){let a=()=>{s.invalid||(this[Op]=!0)};s.on("end",a)}else this[Op]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Np]("ignoredEntry",s),this[js]="ignore",s.resume()):s.size>0&&(this[kc]="",s.on("data",a=>this[kc]+=a),this[js]="meta"):(this[Vs]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Np]("ignoredEntry",s),this[js]=s.remain?"ignore":"header",s.resume()):(s.remain?this[js]="body":(this[js]="header",s.end()),this[Cu]?this[Su].push(s):(this[Su].push(s),this[p2]())))}}}[r9](){KEe(()=>this.emit("close"))}[XH](t){let r=!0;return t?Array.isArray(t)?this.emit.apply(this,t):(this[Cu]=t,this.emit("entry",t),t.emittedEnd||(t.on("end",n=>this[p2]()),r=!1)):(this[Cu]=null,r=!1),r}[p2](){do;while(this[XH](this[Su].shift()));if(!this[Su].length){let t=this[Cu];!t||t.flowing||t.size===t.remain?this[n0]||this.emit("drain"):t.once("drain",n=>this.emit("drain"))}}[f2](t,r){let n=this[Rp],i=n.blockRemain,s=i>=t.length&&r===0?t:t.slice(r,r+i);return n.write(s),n.blockRemain||(this[js]="header",this[Rp]=null,n.end()),s.length}[e9](t,r){let n=this[Rp],i=this[f2](t,r);return this[Rp]||this[JH](n),i}[Np](t,r,n){!this[Su].length&&!this[Cu]?this.emit(t,r,n):this[Su].push([t,r,n])}[JH](t){switch(this[Np]("meta",this[kc]),t.type){case"ExtendedHeader":case"OldExtendedHeader":this[Vs]=$H.parse(this[kc],this[Vs],!1);break;case"GlobalExtendedHeader":this[r0]=$H.parse(this[kc],this[r0],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Vs]=this[Vs]||Object.create(null),this[Vs].path=this[kc].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Vs]=this[Vs]||Object.create(null),this[Vs].linkpath=this[kc].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[Mc]=!0,this.emit("abort",t),this.warn("TAR_ABORT",t,{recoverable:!1})}write(t){if(this[Mc])return;if((this[Fn]===null||this.brotli===void 0&&this[Fn]===!1)&&t){if(this[Tr]&&(t=Buffer.concat([this[Tr],t]),this[Tr]=null),t.length<l2.length)return this[Tr]=t,!0;for(let s=0;this[Fn]===null&&s<l2.length;s++)t[s]!==l2[s]&&(this[Fn]=!1);let i=this.brotli===void 0;if(this[Fn]===!1&&i)if(t.length<512)if(this[Uc])this.brotli=!0;else return this[Tr]=t,!0;else try{new KH(t.slice(0,512)),this.brotli=!1}catch{this.brotli=!0}if(this[Fn]===null||this[Fn]===!1&&this.brotli){let s=this[Uc];this[Uc]=!1,this[Fn]=this[Fn]===null?new YH.Unzip:new YH.BrotliDecompress,this[Fn].on("data",o=>this[N_](o)),this[Fn].on("error",o=>this.abort(o)),this[Fn].on("end",o=>{this[Uc]=!0,this[N_]()}),this[n0]=!0;let a=this[Fn][s?"end":"write"](t);return this[n0]=!1,a}}this[n0]=!0,this[Fn]?this[Fn].write(t):this[N_](t),this[n0]=!1;let n=this[Su].length?!1:this[Cu]?this[Cu].flowing:!0;return!n&&!this[Su].length&&this[Cu].once("drain",i=>this.emit("drain")),n}[d2](t){t&&!this[Mc]&&(this[Tr]=this[Tr]?Buffer.concat([this[Tr],t]):t)}[h2](){if(this[Uc]&&!this[ZH]&&!this[Mc]&&!this[P_]){this[ZH]=!0;let t=this[Rp];if(t&&t.blockRemain){let r=this[Tr]?this[Tr].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${r} available)`,{entry:t}),this[Tr]&&t.write(this[Tr]),t.end()}this[Np](B_)}}[N_](t){if(this[P_])this[d2](t);else if(!t&&!this[Tr])this[h2]();else{if(this[P_]=!0,this[Tr]){this[d2](t);let r=this[Tr];this[Tr]=null,this[O_](r)}else this[O_](t);for(;this[Tr]&&this[Tr].length>=512&&!this[Mc]&&!this[F_];){let r=this[Tr];this[Tr]=null,this[O_](r)}this[P_]=!1}(!this[Tr]||this[Uc])&&this[h2]()}[O_](t){let r=0,n=t.length;for(;r+512<=n&&!this[Mc]&&!this[F_];)switch(this[js]){case"begin":case"header":this[t9](t,r),r+=512;break;case"ignore":case"body":r+=this[f2](t,r);break;case"meta":r+=this[e9](t,r);break;default:throw new Error("invalid state: "+this[js])}r<n&&(this[Tr]?this[Tr]=Buffer.concat([t.slice(r),this[Tr]]):this[Tr]=t.slice(r))}end(t){this[Mc]||(this[Fn]?this[Fn].end(t):(this[Uc]=!0,this.brotli===void 0&&(t=t||Buffer.alloc(0)),this.write(t)))}})});var U_=w((YZe,o9)=>{"use strict";d();var YEe=Pd(),s9=k_(),Xd=J("fs"),XEe=Yd(),i9=J("path"),m2=jd();o9.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=YEe(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return t.length&&ZEe(n,t),n.noResume||JEe(n),n.file&&n.sync?e_e(n):n.file?t_e(n,r):a9(n)};var JEe=e=>{let t=e.onentry;e.onentry=t?r=>{t(r),r.resume()}:r=>r.resume()},ZEe=(e,t)=>{let r=new Map(t.map(s=>[m2(s),!0])),n=e.filter,i=(s,a)=>{let o=a||i9.parse(s).root||".",u=s===o?!1:r.has(s)?r.get(s):i(i9.dirname(s),o);return r.set(s,u),u};e.filter=n?(s,a)=>n(s,a)&&i(m2(s)):s=>i(m2(s))},e_e=e=>{let t=a9(e),r=e.file,n=!0,i;try{let s=Xd.statSync(r),a=e.maxReadSize||16*1024*1024;if(s.size<a)t.end(Xd.readFileSync(r));else{let o=0,u=Buffer.allocUnsafe(a);for(i=Xd.openSync(r,"r");o<s.size;){let l=Xd.readSync(i,u,0,a,o);o+=l,t.write(u.slice(0,l))}t.end()}n=!1}finally{if(n&&i)try{Xd.closeSync(i)}catch{}}},t_e=(e,t)=>{let r=new s9(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((a,o)=>{r.on("error",o),r.on("end",a),Xd.stat(i,(u,l)=>{if(u)o(u);else{let f=new XEe.ReadStream(i,{readSize:n,size:l.size});f.on("error",o),f.pipe(r)}})});return t?s.then(t,t):s},a9=e=>new s9(e)});var d9=w((JZe,f9)=>{"use strict";d();var r_e=Pd(),M_=C_(),u9=Yd(),c9=U_(),l9=J("path");f9.exports=(e,t,r)=>{if(typeof t=="function"&&(r=t),Array.isArray(e)&&(t=e,e={}),!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);let n=r_e(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?n_e(n,t):n.file?i_e(n,t,r):n.sync?s_e(n,t):a_e(n,t)};var n_e=(e,t)=>{let r=new M_.Sync(e),n=new u9.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n),p9(r,t)},i_e=(e,t,r)=>{let n=new M_(e),i=new u9.WriteStream(e.file,{mode:e.mode||438});n.pipe(i);let s=new Promise((a,o)=>{i.on("error",o),i.on("close",a),n.on("error",o)});return g2(n,t),r?s.then(r,r):s},p9=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?c9({file:l9.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},g2=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return c9({file:l9.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>g2(e,t));e.add(r)}e.end()},s_e=(e,t)=>{let r=new M_.Sync(e);return p9(r,t),r},a_e=(e,t)=>{let r=new M_(e);return g2(r,t),r}});var v2=w((eet,E9)=>{"use strict";d();var o_e=Pd(),h9=C_(),ys=J("fs"),m9=Yd(),g9=U_(),v9=J("path"),y9=qd();E9.exports=(e,t,r)=>{let n=o_e(e);if(!n.file)throw new TypeError("file is required");if(n.gzip||n.brotli||n.file.endsWith(".br")||n.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),n.sync?u_e(n,t):l_e(n,t,r)};var u_e=(e,t)=>{let r=new h9.Sync(e),n=!0,i,s;try{try{i=ys.openSync(e.file,"r+")}catch(u){if(u.code==="ENOENT")i=ys.openSync(e.file,"w+");else throw u}let a=ys.fstatSync(i),o=Buffer.alloc(512);e:for(s=0;s<a.size;s+=512){for(let f=0,h=0;f<512;f+=h){if(h=ys.readSync(i,o,f,o.length-f,s+f),s===0&&o[0]===31&&o[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let u=new y9(o);if(!u.cksumValid)break;let l=512*Math.ceil(u.size/512);if(s+l+512>a.size)break;s+=l,e.mtimeCache&&e.mtimeCache.set(u.path,u.mtime)}n=!1,c_e(e,r,s,i,t)}finally{if(n)try{ys.closeSync(i)}catch{}}},c_e=(e,t,r,n,i)=>{let s=new m9.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(s),p_e(t,i)},l_e=(e,t,r)=>{t=Array.from(t);let n=new h9(e),i=(a,o,u)=>{let l=(_,C)=>{_?ys.close(a,b=>u(_)):u(null,C)},f=0;if(o===0)return l(null,0);let h=0,m=Buffer.alloc(512),y=(_,C)=>{if(_)return l(_);if(h+=C,h<512&&C)return ys.read(a,m,h,m.length-h,f+h,y);if(f===0&&m[0]===31&&m[1]===139)return l(new Error("cannot append to compressed archives"));if(h<512)return l(null,f);let b=new y9(m);if(!b.cksumValid)return l(null,f);let D=512*Math.ceil(b.size/512);if(f+D+512>o||(f+=D+512,f>=o))return l(null,f);e.mtimeCache&&e.mtimeCache.set(b.path,b.mtime),h=0,ys.read(a,m,0,512,f,y)};ys.read(a,m,0,512,f,y)},s=new Promise((a,o)=>{n.on("error",o);let u="r+",l=(f,h)=>{if(f&&f.code==="ENOENT"&&u==="r+")return u="w+",ys.open(e.file,u,l);if(f)return o(f);ys.fstat(h,(m,y)=>{if(m)return ys.close(h,()=>o(m));i(h,y.size,(_,C)=>{if(_)return o(_);let b=new m9.WriteStream(e.file,{fd:h,start:C});n.pipe(b),b.on("error",o),b.on("close",a),x9(n,t)})})};ys.open(e.file,u,l)});return r?s.then(r,r):s},p_e=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?g9({file:v9.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},x9=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return g9({file:v9.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>x9(e,t));e.add(r)}e.end()}});var A9=w((ret,_9)=>{"use strict";d();var f_e=Pd(),d_e=v2();_9.exports=(e,t,r)=>{let n=f_e(e);if(!n.file)throw new TypeError("file is required");if(n.gzip||n.brotli||n.file.endsWith(".br")||n.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),h_e(n),d_e(n,t,r)};var h_e=e=>{let t=e.filter;e.mtimeCache||(e.mtimeCache=new Map),e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(r,n)=>!(e.mtimeCache.get(r)>n.mtime)}});var b9=w((iet,S9)=>{"use strict";d();var{promisify:C9}=J("util"),qc=J("fs"),m_e=e=>{if(!e)e={mode:511,fs:qc};else if(typeof e=="object")e={mode:511,fs:qc,...e};else if(typeof e=="number")e={mode:e,fs:qc};else if(typeof e=="string")e={mode:parseInt(e,8),fs:qc};else throw new TypeError("invalid options argument");return e.mkdir=e.mkdir||e.fs.mkdir||qc.mkdir,e.mkdirAsync=C9(e.mkdir),e.stat=e.stat||e.fs.stat||qc.stat,e.statAsync=C9(e.stat),e.statSync=e.statSync||e.fs.statSync||qc.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||qc.mkdirSync,e};S9.exports=m_e});var w9=w((aet,D9)=>{"use strict";d();var g_e=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:v_e,parse:y_e}=J("path"),x_e=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=v_e(e),g_e==="win32"){let t=/[*|"<>?:]/,{root:r}=y_e(e);if(t.test(e.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e};D9.exports=x_e});var O9=w((uet,N9)=>{"use strict";d();var{dirname:T9}=J("path"),I9=(e,t,r=void 0)=>r===t?Promise.resolve():e.statAsync(t).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?I9(e,T9(t),t):void 0),R9=(e,t,r=void 0)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?R9(e,T9(t),t):void 0}};N9.exports={findMade:I9,findMadeSync:R9}});var E2=w((pet,B9)=>{"use strict";d();var{dirname:P9}=J("path"),y2=(e,t,r)=>{t.recursive=!1;let n=P9(e);return n===e?t.mkdirAsync(e,t).catch(i=>{if(i.code!=="EISDIR")throw i}):t.mkdirAsync(e,t).then(()=>r||e,i=>{if(i.code==="ENOENT")return y2(n,t).then(s=>y2(e,t,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return t.statAsync(e).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},x2=(e,t,r)=>{let n=P9(e);if(t.recursive=!1,n===e)try{return t.mkdirSync(e,t)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return t.mkdirSync(e,t),r||e}catch(i){if(i.code==="ENOENT")return x2(e,t,x2(n,t,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!t.statSync(e).isDirectory())throw i}catch{throw i}}};B9.exports={mkdirpManual:y2,mkdirpManualSync:x2}});var k9=w((det,F9)=>{"use strict";d();var{dirname:L9}=J("path"),{findMade:E_e,findMadeSync:__e}=O9(),{mkdirpManual:A_e,mkdirpManualSync:C_e}=E2(),S_e=(e,t)=>(t.recursive=!0,L9(e)===e?t.mkdirAsync(e,t):E_e(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(i=>{if(i.code==="ENOENT")return A_e(e,t);throw i}))),b_e=(e,t)=>{if(t.recursive=!0,L9(e)===e)return t.mkdirSync(e,t);let n=__e(t,e);try{return t.mkdirSync(e,t),n}catch(i){if(i.code==="ENOENT")return C_e(e,t);throw i}};F9.exports={mkdirpNative:S_e,mkdirpNativeSync:b_e}});var j9=w((met,q9)=>{"use strict";d();var U9=J("fs"),D_e=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,_2=D_e.replace(/^v/,"").split("."),M9=+_2[0]>10||+_2[0]==10&&+_2[1]>=12,w_e=M9?e=>e.mkdir===U9.mkdir:()=>!1,T_e=M9?e=>e.mkdirSync===U9.mkdirSync:()=>!1;q9.exports={useNative:w_e,useNativeSync:T_e}});var z9=w((vet,Q9)=>{"use strict";d();var Jd=b9(),Zd=w9(),{mkdirpNative:V9,mkdirpNativeSync:H9}=k9(),{mkdirpManual:G9,mkdirpManualSync:W9}=E2(),{useNative:I_e,useNativeSync:R_e}=j9(),eh=(e,t)=>(e=Zd(e),t=Jd(t),I_e(t)?V9(e,t):G9(e,t)),N_e=(e,t)=>(e=Zd(e),t=Jd(t),R_e(t)?H9(e,t):W9(e,t));eh.sync=N_e;eh.native=(e,t)=>V9(Zd(e),Jd(t));eh.manual=(e,t)=>G9(Zd(e),Jd(t));eh.nativeSync=(e,t)=>H9(Zd(e),Jd(t));eh.manualSync=(e,t)=>W9(Zd(e),Jd(t));Q9.exports=eh});var eG=w((xet,Z9)=>{"use strict";d();var Hs=J("fs"),Pp=J("path"),O_e=Hs.lchown?"lchown":"chown",P_e=Hs.lchownSync?"lchownSync":"chownSync",$9=Hs.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),K9=(e,t,r)=>{try{return Hs[P_e](e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},B_e=(e,t,r)=>{try{return Hs.chownSync(e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},L_e=$9?(e,t,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):Hs.chown(e,t,r,n)}:(e,t,r,n)=>n,A2=$9?(e,t,r)=>{try{return K9(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;B_e(e,t,r)}}:(e,t,r)=>K9(e,t,r),F_e=process.version,Y9=(e,t,r)=>Hs.readdir(e,t,r),k_e=(e,t)=>Hs.readdirSync(e,t);/^v4\./.test(F_e)&&(Y9=(e,t,r)=>Hs.readdir(e,r));var q_=(e,t,r,n)=>{Hs[O_e](e,t,r,L_e(e,t,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},X9=(e,t,r,n,i)=>{if(typeof t=="string")return Hs.lstat(Pp.resolve(e,t),(s,a)=>{if(s)return i(s.code!=="ENOENT"?s:null);a.name=t,X9(e,a,r,n,i)});if(t.isDirectory())C2(Pp.resolve(e,t.name),r,n,s=>{if(s)return i(s);let a=Pp.resolve(e,t.name);q_(a,r,n,i)});else{let s=Pp.resolve(e,t.name);q_(s,r,n,i)}},C2=(e,t,r,n)=>{Y9(e,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return q_(e,t,r,n);let a=s.length,o=null,u=l=>{if(!o){if(l)return n(o=l);if(--a===0)return q_(e,t,r,n)}};s.forEach(l=>X9(e,l,t,r,u))})},U_e=(e,t,r,n)=>{if(typeof t=="string")try{let i=Hs.lstatSync(Pp.resolve(e,t));i.name=t,t=i}catch(i){if(i.code==="ENOENT")return;throw i}t.isDirectory()&&J9(Pp.resolve(e,t.name),r,n),A2(Pp.resolve(e,t.name),r,n)},J9=(e,t,r)=>{let n;try{n=k_e(e,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return A2(e,t,r);throw i}return n&&n.length&&n.forEach(i=>U_e(e,i,t,r)),A2(e,t,r)};Z9.exports=C2;C2.sync=J9});var iG=w((_et,S2)=>{"use strict";d();var tG=z9(),Gs=J("fs"),j_=J("path"),rG=eG(),Ua=Ud(),V_=class extends Error{constructor(t,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=t}get name(){return"SylinkError"}},H_=class extends Error{constructor(t,r){super(r+": Cannot cd into '"+t+"'"),this.path=t,this.code=r}get name(){return"CwdError"}},G_=(e,t)=>e.get(Ua(t)),i0=(e,t,r)=>e.set(Ua(t),r),M_e=(e,t)=>{Gs.stat(e,(r,n)=>{(r||!n.isDirectory())&&(r=new H_(e,r&&r.code||"ENOTDIR")),t(r)})};S2.exports=(e,t,r)=>{e=Ua(e);let n=t.umask,i=t.mode|448,s=(i&n)!==0,a=t.uid,o=t.gid,u=typeof a=="number"&&typeof o=="number"&&(a!==t.processUid||o!==t.processGid),l=t.preserve,f=t.unlink,h=t.cache,m=Ua(t.cwd),y=(b,D)=>{b?r(b):(i0(h,e,!0),D&&u?rG(D,a,o,L=>y(L)):s?Gs.chmod(e,i,r):r())};if(h&&G_(h,e)===!0)return y();if(e===m)return M_e(e,y);if(l)return tG(e,{mode:i}).then(b=>y(null,b),y);let C=Ua(j_.relative(m,e)).split("/");W_(m,C,i,h,f,m,null,y)};var W_=(e,t,r,n,i,s,a,o)=>{if(!t.length)return o(null,a);let u=t.shift(),l=Ua(j_.resolve(e+"/"+u));if(G_(n,l))return W_(l,t,r,n,i,s,a,o);Gs.mkdir(l,r,nG(l,t,r,n,i,s,a,o))},nG=(e,t,r,n,i,s,a,o)=>u=>{u?Gs.lstat(e,(l,f)=>{if(l)l.path=l.path&&Ua(l.path),o(l);else if(f.isDirectory())W_(e,t,r,n,i,s,a,o);else if(i)Gs.unlink(e,h=>{if(h)return o(h);Gs.mkdir(e,r,nG(e,t,r,n,i,s,a,o))});else{if(f.isSymbolicLink())return o(new V_(e,e+"/"+t.join("/")));o(u)}}):(a=a||e,W_(e,t,r,n,i,s,a,o))},q_e=e=>{let t=!1,r="ENOTDIR";try{t=Gs.statSync(e).isDirectory()}catch(n){r=n.code}finally{if(!t)throw new H_(e,r)}};S2.exports.sync=(e,t)=>{e=Ua(e);let r=t.umask,n=t.mode|448,i=(n&r)!==0,s=t.uid,a=t.gid,o=typeof s=="number"&&typeof a=="number"&&(s!==t.processUid||a!==t.processGid),u=t.preserve,l=t.unlink,f=t.cache,h=Ua(t.cwd),m=b=>{i0(f,e,!0),b&&o&&rG.sync(b,s,a),i&&Gs.chmodSync(e,n)};if(f&&G_(f,e)===!0)return m();if(e===h)return q_e(h),m();if(u)return m(tG.sync(e,n));let _=Ua(j_.relative(h,e)).split("/"),C=null;for(let b=_.shift(),D=h;b&&(D+="/"+b);b=_.shift())if(D=Ua(j_.resolve(D)),!G_(f,D))try{Gs.mkdirSync(D,n),C=C||D,i0(f,D,!0)}catch{let F=Gs.lstatSync(D);if(F.isDirectory()){i0(f,D,!0);continue}else if(l){Gs.unlinkSync(D),Gs.mkdirSync(D,n),C=C||D,i0(f,D,!0);continue}else if(F.isSymbolicLink())return new V_(D,D+"/"+_.join("/"))}return m(C)}});var D2=w((Cet,sG)=>{"use strict";d();var b2=Object.create(null),{hasOwnProperty:j_e}=Object.prototype;sG.exports=e=>(j_e.call(b2,e)||(b2[e]=e.normalize("NFD")),b2[e])});var cG=w((Det,uG)=>{"use strict";d();var aG=J("assert"),V_e=D2(),H_e=jd(),{join:oG}=J("path"),G_e=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,W_e=G_e==="win32";uG.exports=()=>{let e=new Map,t=new Map,r=l=>l.split("/").slice(0,-1).reduce((h,m)=>(h.length&&(m=oG(h[h.length-1],m)),h.push(m||"/"),h),[]),n=new Set,i=l=>{let f=t.get(l);if(!f)throw new Error("function does not have any path reservations");return{paths:f.paths.map(h=>e.get(h)),dirs:[...f.dirs].map(h=>e.get(h))}},s=l=>{let{paths:f,dirs:h}=i(l);return f.every(m=>m[0]===l)&&h.every(m=>m[0]instanceof Set&&m[0].has(l))},a=l=>n.has(l)||!s(l)?!1:(n.add(l),l(()=>o(l)),!0),o=l=>{if(!n.has(l))return!1;let{paths:f,dirs:h}=t.get(l),m=new Set;return f.forEach(y=>{let _=e.get(y);aG.equal(_[0],l),_.length===1?e.delete(y):(_.shift(),typeof _[0]=="function"?m.add(_[0]):_[0].forEach(C=>m.add(C)))}),h.forEach(y=>{let _=e.get(y);aG(_[0]instanceof Set),_[0].size===1&&_.length===1?e.delete(y):_[0].size===1?(_.shift(),m.add(_[0])):_[0].delete(l)}),n.delete(l),m.forEach(y=>a(y)),!0};return{check:s,reserve:(l,f)=>{l=W_e?["win32 parallelization disabled"]:l.map(m=>H_e(oG(V_e(m))).toLowerCase());let h=new Set(l.map(m=>r(m)).reduce((m,y)=>m.concat(y)));return t.set(f,{dirs:h,paths:l}),l.forEach(m=>{let y=e.get(m);y?y.push(f):e.set(m,[f])}),h.forEach(m=>{let y=e.get(m);y?y[y.length-1]instanceof Set?y[y.length-1].add(f):y.push(new Set([f])):e.set(m,[new Set([f])])}),a(f)}}}});var fG=w((Tet,pG)=>{"use strict";d();var Q_e=process.env.__FAKE_PLATFORM__||process.platform,z_e=Q_e==="win32",K_e=global.__FAKE_TESTING_FS__||J("fs"),{O_CREAT:$_e,O_TRUNC:Y_e,O_WRONLY:X_e,UV_FS_O_FILEMAP:lG=0}=K_e.constants,J_e=z_e&&!!lG,Z_e=512*1024,eAe=lG|Y_e|$_e|X_e;pG.exports=J_e?e=>e<Z_e?eAe:"w":()=>"w"});var L2=w((Ret,DG)=>{"use strict";d();var tAe=J("assert"),rAe=k_(),pr=J("fs"),nAe=Yd(),bu=J("path"),CG=iG(),dG=LI(),iAe=cG(),sAe=FI(),xs=Ud(),aAe=jd(),oAe=D2(),hG=Symbol("onEntry"),I2=Symbol("checkFs"),mG=Symbol("checkFs2"),K_=Symbol("pruneCache"),R2=Symbol("isReusable"),Ws=Symbol("makeFs"),N2=Symbol("file"),O2=Symbol("directory"),$_=Symbol("link"),gG=Symbol("symlink"),vG=Symbol("hardlink"),yG=Symbol("unsupported"),xG=Symbol("checkPath"),jc=Symbol("mkdir"),mi=Symbol("onError"),Q_=Symbol("pending"),EG=Symbol("pend"),th=Symbol("unpend"),w2=Symbol("ended"),T2=Symbol("maybeClose"),P2=Symbol("skip"),s0=Symbol("doChown"),a0=Symbol("uid"),o0=Symbol("gid"),u0=Symbol("checkedCwd"),SG=J("crypto"),bG=fG(),uAe=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,c0=uAe==="win32",cAe=(e,t)=>{if(!c0)return pr.unlink(e,t);let r=e+".DELETE."+SG.randomBytes(16).toString("hex");pr.rename(e,r,n=>{if(n)return t(n);pr.unlink(r,t)})},lAe=e=>{if(!c0)return pr.unlinkSync(e);let t=e+".DELETE."+SG.randomBytes(16).toString("hex");pr.renameSync(e,t),pr.unlinkSync(t)},_G=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r,AG=e=>aAe(xs(oAe(e))).toLowerCase(),pAe=(e,t)=>{t=AG(t);for(let r of e.keys()){let n=AG(r);(n===t||n.indexOf(t+"/")===0)&&e.delete(r)}},fAe=e=>{for(let t of e.keys())e.delete(t)},l0=class extends rAe{constructor(t){if(t||(t={}),t.ondone=r=>{this[w2]=!0,this[T2]()},super(t),this[u0]=!1,this.reservations=iAe(),this.transform=typeof t.transform=="function"?t.transform:null,this.writable=!0,this.readable=!1,this[Q_]=0,this[w2]=!1,this.dirCache=t.dirCache||new Map,typeof t.uid=="number"||typeof t.gid=="number"){if(typeof t.uid!="number"||typeof t.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid,this.gid=t.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;t.preserveOwner===void 0&&typeof t.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!t.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=t.forceChown===!0,this.win32=!!t.win32||c0,this.newer=!!t.newer,this.keep=!!t.keep,this.noMtime=!!t.noMtime,this.preservePaths=!!t.preservePaths,this.unlink=!!t.unlink,this.cwd=xs(bu.resolve(t.cwd||process.cwd())),this.strip=+t.strip||0,this.processUmask=t.noChmod?0:process.umask(),this.umask=typeof t.umask=="number"?t.umask:this.processUmask,this.dmode=t.dmode||511&~this.umask,this.fmode=t.fmode||438&~this.umask,this.on("entry",r=>this[hG](r))}warn(t,r,n={}){return(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT")&&(n.recoverable=!1),super.warn(t,r,n)}[T2](){this[w2]&&this[Q_]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[xG](t){if(this.strip){let r=xs(t.path).split("/");if(r.length<this.strip)return!1;if(t.path=r.slice(this.strip).join("/"),t.type==="Link"){let n=xs(t.linkpath).split("/");if(n.length>=this.strip)t.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=xs(t.path),n=r.split("/");if(n.includes("..")||c0&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:t,path:r}),!1;let[i,s]=sAe(r);i&&(t.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:t,path:r}))}if(bu.isAbsolute(t.path)?t.absolute=xs(bu.resolve(t.path)):t.absolute=xs(bu.resolve(this.cwd,t.path)),!this.preservePaths&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:xs(t.path),resolvedPath:t.absolute,cwd:this.cwd}),!1;if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=bu.win32.parse(t.absolute);t.absolute=r+dG.encode(t.absolute.slice(r.length));let{root:n}=bu.win32.parse(t.path);t.path=n+dG.encode(t.path.slice(n.length))}return!0}[hG](t){if(!this[xG](t))return t.resume();switch(tAe.equal(typeof t.absolute,"string"),t.type){case"Directory":case"GNUDumpDir":t.mode&&(t.mode=t.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[I2](t);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[yG](t)}}[mi](t,r){t.name==="CwdError"?this.emit("error",t):(this.warn("TAR_ENTRY_ERROR",t,{entry:r}),this[th](),r.resume())}[jc](t,r,n){CG(xs(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},n)}[s0](t){return this.forceChown||this.preserveOwner&&(typeof t.uid=="number"&&t.uid!==this.processUid||typeof t.gid=="number"&&t.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[a0](t){return _G(this.uid,t.uid,this.processUid)}[o0](t){return _G(this.gid,t.gid,this.processGid)}[N2](t,r){let n=t.mode&4095||this.fmode,i=new nAe.WriteStream(t.absolute,{flags:bG(t.size),mode:n,autoClose:!1});i.on("error",u=>{i.fd&&pr.close(i.fd,()=>{}),i.write=()=>!0,this[mi](u,t),r()});let s=1,a=u=>{if(u){i.fd&&pr.close(i.fd,()=>{}),this[mi](u,t),r();return}--s===0&&pr.close(i.fd,l=>{l?this[mi](l,t):this[th](),r()})};i.on("finish",u=>{let l=t.absolute,f=i.fd;if(t.mtime&&!this.noMtime){s++;let h=t.atime||new Date,m=t.mtime;pr.futimes(f,h,m,y=>y?pr.utimes(l,h,m,_=>a(_&&y)):a())}if(this[s0](t)){s++;let h=this[a0](t),m=this[o0](t);pr.fchown(f,h,m,y=>y?pr.chown(l,h,m,_=>a(_&&y)):a())}a()});let o=this.transform&&this.transform(t)||t;o!==t&&(o.on("error",u=>{this[mi](u,t),r()}),t.pipe(o)),o.pipe(i)}[O2](t,r){let n=t.mode&4095||this.dmode;this[jc](t.absolute,n,i=>{if(i){this[mi](i,t),r();return}let s=1,a=o=>{--s===0&&(r(),this[th](),t.resume())};t.mtime&&!this.noMtime&&(s++,pr.utimes(t.absolute,t.atime||new Date,t.mtime,a)),this[s0](t)&&(s++,pr.chown(t.absolute,this[a0](t),this[o0](t),a)),a()})}[yG](t){t.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t}),t.resume()}[gG](t,r){this[$_](t,t.linkpath,"symlink",r)}[vG](t,r){let n=xs(bu.resolve(this.cwd,t.linkpath));this[$_](t,n,"link",r)}[EG](){this[Q_]++}[th](){this[Q_]--,this[T2]()}[P2](t){this[th](),t.resume()}[R2](t,r){return t.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!c0}[I2](t){this[EG]();let r=[t.path];t.linkpath&&r.push(t.linkpath),this.reservations.reserve(r,n=>this[mG](t,n))}[K_](t){t.type==="SymbolicLink"?fAe(this.dirCache):t.type!=="Directory"&&pAe(this.dirCache,t.absolute)}[mG](t,r){this[K_](t);let n=o=>{this[K_](t),r(o)},i=()=>{this[jc](this.cwd,this.dmode,o=>{if(o){this[mi](o,t),n();return}this[u0]=!0,s()})},s=()=>{if(t.absolute!==this.cwd){let o=xs(bu.dirname(t.absolute));if(o!==this.cwd)return this[jc](o,this.dmode,u=>{if(u){this[mi](u,t),n();return}a()})}a()},a=()=>{pr.lstat(t.absolute,(o,u)=>{if(u&&(this.keep||this.newer&&u.mtime>t.mtime)){this[P2](t),n();return}if(o||this[R2](t,u))return this[Ws](null,t,n);if(u.isDirectory()){if(t.type==="Directory"){let l=!this.noChmod&&t.mode&&(u.mode&4095)!==t.mode,f=h=>this[Ws](h,t,n);return l?pr.chmod(t.absolute,t.mode,f):f()}if(t.absolute!==this.cwd)return pr.rmdir(t.absolute,l=>this[Ws](l,t,n))}if(t.absolute===this.cwd)return this[Ws](null,t,n);cAe(t.absolute,l=>this[Ws](l,t,n))})};this[u0]?s():i()}[Ws](t,r,n){if(t){this[mi](t,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[N2](r,n);case"Link":return this[vG](r,n);case"SymbolicLink":return this[gG](r,n);case"Directory":case"GNUDumpDir":return this[O2](r,n)}}[$_](t,r,n,i){pr[n](r,t.absolute,s=>{s?this[mi](s,t):(this[th](),t.resume()),i()})}},z_=e=>{try{return[null,e()]}catch(t){return[t,null]}},B2=class extends l0{[Ws](t,r){return super[Ws](t,r,()=>{})}[I2](t){if(this[K_](t),!this[u0]){let s=this[jc](this.cwd,this.dmode);if(s)return this[mi](s,t);this[u0]=!0}if(t.absolute!==this.cwd){let s=xs(bu.dirname(t.absolute));if(s!==this.cwd){let a=this[jc](s,this.dmode);if(a)return this[mi](a,t)}}let[r,n]=z_(()=>pr.lstatSync(t.absolute));if(n&&(this.keep||this.newer&&n.mtime>t.mtime))return this[P2](t);if(r||this[R2](t,n))return this[Ws](null,t);if(n.isDirectory()){if(t.type==="Directory"){let a=!this.noChmod&&t.mode&&(n.mode&4095)!==t.mode,[o]=a?z_(()=>{pr.chmodSync(t.absolute,t.mode)}):[];return this[Ws](o,t)}let[s]=z_(()=>pr.rmdirSync(t.absolute));this[Ws](s,t)}let[i]=t.absolute===this.cwd?[]:z_(()=>lAe(t.absolute));this[Ws](i,t)}[N2](t,r){let n=t.mode&4095||this.fmode,i=o=>{let u;try{pr.closeSync(s)}catch(l){u=l}(o||u)&&this[mi](o||u,t),r()},s;try{s=pr.openSync(t.absolute,bG(t.size),n)}catch(o){return i(o)}let a=this.transform&&this.transform(t)||t;a!==t&&(a.on("error",o=>this[mi](o,t)),t.pipe(a)),a.on("data",o=>{try{pr.writeSync(s,o,0,o.length)}catch(u){i(u)}}),a.on("end",o=>{let u=null;if(t.mtime&&!this.noMtime){let l=t.atime||new Date,f=t.mtime;try{pr.futimesSync(s,l,f)}catch(h){try{pr.utimesSync(t.absolute,l,f)}catch{u=h}}}if(this[s0](t)){let l=this[a0](t),f=this[o0](t);try{pr.fchownSync(s,l,f)}catch(h){try{pr.chownSync(t.absolute,l,f)}catch{u=u||h}}}i(u)})}[O2](t,r){let n=t.mode&4095||this.dmode,i=this[jc](t.absolute,n);if(i){this[mi](i,t),r();return}if(t.mtime&&!this.noMtime)try{pr.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch{}if(this[s0](t))try{pr.chownSync(t.absolute,this[a0](t),this[o0](t))}catch{}r(),t.resume()}[jc](t,r){try{return CG.sync(xs(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(n){return n}}[$_](t,r,n,i){try{pr[n+"Sync"](r,t.absolute),i(),t.resume()}catch(s){return this[mi](s,t)}}};l0.Sync=B2;DG.exports=l0});var NG=w((Oet,RG)=>{"use strict";d();var dAe=Pd(),Y_=L2(),TG=J("fs"),IG=Yd(),wG=J("path"),F2=jd();RG.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=dAe(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return t.length&&hAe(n,t),n.file&&n.sync?mAe(n):n.file?gAe(n,r):n.sync?vAe(n):yAe(n)};var hAe=(e,t)=>{let r=new Map(t.map(s=>[F2(s),!0])),n=e.filter,i=(s,a)=>{let o=a||wG.parse(s).root||".",u=s===o?!1:r.has(s)?r.get(s):i(wG.dirname(s),o);return r.set(s,u),u};e.filter=n?(s,a)=>n(s,a)&&i(F2(s)):s=>i(F2(s))},mAe=e=>{let t=new Y_.Sync(e),r=e.file,n=TG.statSync(r),i=e.maxReadSize||16*1024*1024;new IG.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(t)},gAe=(e,t)=>{let r=new Y_(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((a,o)=>{r.on("error",o),r.on("close",a),TG.stat(i,(u,l)=>{if(u)o(u);else{let f=new IG.ReadStream(i,{readSize:n,size:l.size});f.on("error",o),f.pipe(r)}})});return t?s.then(t,t):s},vAe=e=>new Y_.Sync(e),yAe=e=>new Y_(e)});var OG=w(Dn=>{"use strict";d();Dn.c=Dn.create=d9();Dn.r=Dn.replace=v2();Dn.t=Dn.list=U_();Dn.u=Dn.update=A9();Dn.x=Dn.extract=NG();Dn.Pack=C_();Dn.Unpack=L2();Dn.Parse=k_();Dn.ReadEntry=s_();Dn.WriteEntry=QI();Dn.Header=qd();Dn.Pax=o_();Dn.types=TI()});var k2=w(($et,MG)=>{"use strict";d();var TAe=J("stream"),kG=TAe.PassThrough,IAe=Array.prototype.slice;MG.exports=RAe;function RAe(){let e=[],t=IAe.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let a=kG(n);function o(){for(let f=0,h=arguments.length;f<h;f++)e.push(UG(arguments[f],n));return u(),this}function u(){if(r)return;r=!0;let f=e.shift();if(!f){process.nextTick(l);return}Array.isArray(f)||(f=[f]);let h=f.length+1;function m(){--h>0||(r=!1,u())}function y(_){function C(){_.removeListener("merge2UnpipeEnd",C),_.removeListener("end",C),s&&_.removeListener("error",b),m()}function b(D){a.emit("error",D)}if(_._readableState.endEmitted)return m();_.on("merge2UnpipeEnd",C),_.on("end",C),s&&_.on("error",b),_.pipe(a,{end:!1}),_.resume()}for(let _=0;_<f.length;_++)y(f[_]);m()}function l(){r=!1,a.emit("queueDrain"),i&&a.end()}return a.setMaxListeners(0),a.add=o,a.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),t.length&&o.apply(null,t),a}function UG(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=UG(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(kG(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var qG=w(nh=>{"use strict";d();Object.defineProperty(nh,"__esModule",{value:!0});nh.splitWhen=nh.flatten=void 0;function NAe(e){return e.reduce((t,r)=>[].concat(t,r),[])}nh.flatten=NAe;function OAe(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}nh.splitWhen=OAe});var jG=w(X_=>{"use strict";d();Object.defineProperty(X_,"__esModule",{value:!0});X_.isEnoentCodeError=void 0;function PAe(e){return e.code==="ENOENT"}X_.isEnoentCodeError=PAe});var VG=w(J_=>{"use strict";d();Object.defineProperty(J_,"__esModule",{value:!0});J_.createDirentFromStats=void 0;var U2=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function BAe(e,t){return new U2(e,t)}J_.createDirentFromStats=BAe});var QG=w(vn=>{"use strict";d();Object.defineProperty(vn,"__esModule",{value:!0});vn.convertPosixPathToPattern=vn.convertWindowsPathToPattern=vn.convertPathToPattern=vn.escapePosixPath=vn.escapeWindowsPath=vn.escape=vn.removeLeadingDotSegment=vn.makeAbsolute=vn.unixify=void 0;var LAe=J("os"),FAe=J("path"),HG=LAe.platform()==="win32",kAe=2,UAe=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,MAe=/(\\?)([(){}]|^!|[!+@](?=\())/g,qAe=/^\\\\([.?])/,jAe=/\\(?![!()+@{}])/g;function VAe(e){return e.replace(/\\/g,"/")}vn.unixify=VAe;function HAe(e,t){return FAe.resolve(e,t)}vn.makeAbsolute=HAe;function GAe(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(kAe)}return e}vn.removeLeadingDotSegment=GAe;vn.escape=HG?M2:q2;function M2(e){return e.replace(MAe,"\\$2")}vn.escapeWindowsPath=M2;function q2(e){return e.replace(UAe,"\\$2")}vn.escapePosixPath=q2;vn.convertPathToPattern=HG?GG:WG;function GG(e){return M2(e).replace(qAe,"//$1").replace(jAe,"/")}vn.convertWindowsPathToPattern=GG;function WG(e){return q2(e)}vn.convertPosixPathToPattern=WG});var KG=w((stt,zG)=>{"use strict";d();zG.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var j2=w((ott,YG)=>{"use strict";d();var WAe=KG(),$G={"{":"}","(":")","[":"]"},QAe=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,a=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(a===-1||a>n||(a=e.indexOf("\\",t),a===-1||a>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(a=e.indexOf("\\",t),a===-1||a>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(a=e.indexOf("\\",t),a===-1||a>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(a=e.indexOf("\\",r),a===-1||a>s))))return!0;if(e[t]==="\\"){var o=e[t+1];t+=2;var u=$G[o];if(u){var l=e.indexOf(u,t);l!==-1&&(t=l+1)}if(e[t]==="!")return!0}else t++}return!1},zAe=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=$G[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};YG.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(WAe(t))return!0;var n=QAe;return r&&r.strict===!1&&(n=zAe),n(t)}});var H2=w((ctt,XG)=>{"use strict";d();var KAe=j2(),$Ae=J("path").posix.dirname,YAe=J("os").platform()==="win32",V2="/",XAe=/\\/g,JAe=/[\{\[].*[\}\]]$/,ZAe=/(^|[^\\])([\{\[]|\([^\)]+$)/,eCe=/\\([\!\*\?\|\[\]\(\)\{\}])/g;XG.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&YAe&&t.indexOf(V2)<0&&(t=t.replace(XAe,V2)),JAe.test(t)&&(t+=V2),t+="a";do t=$Ae(t);while(KAe(t)||ZAe.test(t));return t.replace(eCe,"$1")}});var Z_=w(zs=>{"use strict";d();zs.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;zs.find=(e,t)=>e.nodes.find(r=>r.type===t);zs.exceedsLimit=(e,t,r=1,n)=>n===!1||!zs.isInteger(e)||!zs.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;zs.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};zs.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);zs.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;zs.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;zs.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);zs.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var eA=w((dtt,ZG)=>{"use strict";d();var JG=Z_();ZG.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&JG.isInvalidBrace(i),a=n.invalid===!0&&t.escapeInvalid===!0,o="";if(n.value)return(s||a)&&JG.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)o+=r(u);return o};return r(e)}});var t7=w((mtt,e7)=>{"use strict";d();e7.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var l7=w((vtt,c7)=>{"use strict";d();var r7=t7(),Bp=(e,t,r)=>{if(r7(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(r7(t)===!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 i=String(n.relaxZeros),s=String(n.shorthand),a=String(n.capture),o=String(n.wrap),u=e+":"+t+"="+i+s+a+o;if(Bp.cache.hasOwnProperty(u))return Bp.cache[u].result;let l=Math.min(e,t),f=Math.max(e,t);if(Math.abs(l-f)===1){let C=e+"|"+t;return n.capture?`(${C})`:n.wrap===!1?C:`(?:${C})`}let h=u7(e)||u7(t),m={min:e,max:t,a:l,b:f},y=[],_=[];if(h&&(m.isPadded=h,m.maxLen=String(m.max).length),l<0){let C=f<0?Math.abs(f):1;_=n7(C,Math.abs(l),m,n),l=m.a=0}return f>=0&&(y=n7(l,f,m,n)),m.negatives=_,m.positives=y,m.result=tCe(_,y,n),n.capture===!0?m.result=`(${m.result})`:n.wrap!==!1&&y.length+_.length>1&&(m.result=`(?:${m.result})`),Bp.cache[u]=m,m.result};function tCe(e,t,r){let n=G2(e,t,"-",!1,r)||[],i=G2(t,e,"",!1,r)||[],s=G2(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function rCe(e,t){let r=1,n=1,i=s7(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=s7(e,r);for(i=a7(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=a7(t+1,n)-1;return s=[...s],s.sort(sCe),s}function nCe(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=iCe(e,t),i=n.length,s="",a=0;for(let o=0;o<i;o++){let[u,l]=n[o];u===l?s+=u:u!=="0"||l!=="9"?s+=aCe(u,l,r):a++}return a&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[a],digits:i}}function n7(e,t,r,n){let i=rCe(e,t),s=[],a=e,o;for(let u=0;u<i.length;u++){let l=i[u],f=nCe(String(a),String(l),n),h="";if(!r.isPadded&&o&&o.pattern===f.pattern){o.count.length>1&&o.count.pop(),o.count.push(f.count[0]),o.string=o.pattern+o7(o.count),a=l+1;continue}r.isPadded&&(h=oCe(l,r,n)),f.string=h+f.pattern+o7(f.count),s.push(f),a=l+1,o=f}return s}function G2(e,t,r,n,i){let s=[];for(let a of e){let{string:o}=a;!n&&!i7(t,"string",o)&&s.push(r+o),n&&i7(t,"string",o)&&s.push(r+o)}return s}function iCe(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function sCe(e,t){return e>t?1:t>e?-1:0}function i7(e,t,r){return e.some(n=>n[t]===r)}function s7(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function a7(e,t){return e-e%Math.pow(10,t)}function o7(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function aCe(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function u7(e){return/^-?(0+)\d/.test(e)}function oCe(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Bp.cache={};Bp.clearCache=()=>Bp.cache={};c7.exports=Bp});var z2=w((xtt,y7)=>{"use strict";d();var uCe=J("util"),d7=l7(),p7=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),cCe=e=>t=>e===!0?Number(t):String(t),W2=e=>typeof e=="number"||typeof e=="string"&&e!=="",p0=e=>Number.isInteger(+e),Q2=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},lCe=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,pCe=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},f7=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},fCe=(e,t)=>{e.negatives.sort((a,o)=>a<o?-1:a>o?1:0),e.positives.sort((a,o)=>a<o?-1:a>o?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},h7=(e,t,r,n)=>{if(r)return d7(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},m7=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return d7(e,t,r)},g7=(...e)=>new RangeError("Invalid range arguments: "+uCe.inspect(...e)),v7=(e,t,r)=>{if(r.strictRanges===!0)throw g7([e,t]);return[]},dCe=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},hCe=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw g7([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let a=i>s,o=String(e),u=String(t),l=String(r);r=Math.max(Math.abs(r),1);let f=Q2(o)||Q2(u)||Q2(l),h=f?Math.max(o.length,u.length,l.length):0,m=f===!1&&lCe(e,t,n)===!1,y=n.transform||cCe(m);if(n.toRegex&&r===1)return h7(f7(e,h),f7(t,h),!0,n);let _={negatives:[],positives:[]},C=L=>_[L<0?"negatives":"positives"].push(Math.abs(L)),b=[],D=0;for(;a?i>=s:i<=s;)n.toRegex===!0&&r>1?C(i):b.push(pCe(y(i,D),h,m)),i=a?i-r:i+r,D++;return n.toRegex===!0?r>1?fCe(_,n):m7(b,null,{wrap:!1,...n}):b},mCe=(e,t,r=1,n={})=>{if(!p0(e)&&e.length>1||!p0(t)&&t.length>1)return v7(e,t,n);let i=n.transform||(m=>String.fromCharCode(m)),s=`${e}`.charCodeAt(0),a=`${t}`.charCodeAt(0),o=s>a,u=Math.min(s,a),l=Math.max(s,a);if(n.toRegex&&r===1)return h7(u,l,!1,n);let f=[],h=0;for(;o?s>=a:s<=a;)f.push(i(s,h)),s=o?s-r:s+r,h++;return n.toRegex===!0?m7(f,null,{wrap:!1,options:n}):f},tA=(e,t,r,n={})=>{if(t==null&&W2(e))return[e];if(!W2(e)||!W2(t))return v7(e,t,n);if(typeof r=="function")return tA(e,t,1,{transform:r});if(p7(r))return tA(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,p0(r)?p0(e)&&p0(t)?hCe(e,t,r,i):mCe(e,t,Math.max(Math.abs(r),1),i):r!=null&&!p7(r)?dCe(r,i):tA(e,t,1,r)};y7.exports=tA});var _7=w((_tt,E7)=>{"use strict";d();var gCe=z2(),x7=Z_(),vCe=(e,t={})=>{let r=(n,i={})=>{let s=x7.isInvalidBrace(i),a=n.invalid===!0&&t.escapeInvalid===!0,o=s===!0||a===!0,u=t.escapeInvalid===!0?"\\":"",l="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return o?u+n.value:"(";if(n.type==="close")return o?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":o?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=x7.reduce(n.nodes),h=gCe(...f,{...t,wrap:!1,toRegex:!0});if(h.length!==0)return f.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let f of n.nodes)l+=r(f,n);return l};return r(e)};E7.exports=vCe});var S7=w((Ctt,C7)=>{"use strict";d();var yCe=z2(),A7=eA(),ih=Z_(),Lp=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?ih.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Lp(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Lp(i,s,r):i+s);return ih.flatten(n)},xCe=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let a=s,o=s.queue;for(;a.type!=="brace"&&a.type!=="root"&&a.parent;)a=a.parent,o=a.queue;if(i.invalid||i.dollar){o.push(Lp(o.pop(),A7(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){o.push(Lp(o.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=ih.reduce(i.nodes);if(ih.exceedsLimit(...h,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let m=yCe(...h,t);m.length===0&&(m=A7(i,t)),o.push(Lp(o.pop(),m)),i.nodes=[];return}let u=ih.encloseBrace(i),l=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,l=f.queue;for(let h=0;h<i.nodes.length;h++){let m=i.nodes[h];if(m.type==="comma"&&i.type==="brace"){h===1&&l.push(""),l.push("");continue}if(m.type==="close"){o.push(Lp(o.pop(),l,u));continue}if(m.value&&m.type!=="open"){l.push(Lp(l.pop(),m.value));continue}m.nodes&&n(m,i)}return l};return ih.flatten(n(e))};C7.exports=xCe});var D7=w((btt,b7)=>{"use strict";d();b7.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:`
|
|
47
|
-
`,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 N7=w((wtt,R7)=>{"use strict";d();var ECe=eA(),{MAX_LENGTH:w7,CHAR_BACKSLASH:K2,CHAR_BACKTICK:_Ce,CHAR_COMMA:ACe,CHAR_DOT:CCe,CHAR_LEFT_PARENTHESES:SCe,CHAR_RIGHT_PARENTHESES:bCe,CHAR_LEFT_CURLY_BRACE:DCe,CHAR_RIGHT_CURLY_BRACE:wCe,CHAR_LEFT_SQUARE_BRACKET:T7,CHAR_RIGHT_SQUARE_BRACKET:I7,CHAR_DOUBLE_QUOTE:TCe,CHAR_SINGLE_QUOTE:ICe,CHAR_NO_BREAK_SPACE:RCe,CHAR_ZERO_WIDTH_NOBREAK_SPACE:NCe}=D7(),OCe=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(w7,r.maxLength):w7;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],a=i,o=i,u=0,l=e.length,f=0,h=0,m,y={},_=()=>e[f++],C=b=>{if(b.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&b.type==="text"){o.value+=b.value;return}return a.nodes.push(b),b.parent=a,b.prev=o,o=b,b};for(C({type:"bos"});f<l;)if(a=s[s.length-1],m=_(),!(m===NCe||m===RCe)){if(m===K2){C({type:"text",value:(t.keepEscaping?m:"")+_()});continue}if(m===I7){C({type:"text",value:"\\"+m});continue}if(m===T7){u++;let b=!0,D;for(;f<l&&(D=_());){if(m+=D,D===T7){u++;continue}if(D===K2){m+=_();continue}if(D===I7&&(u--,u===0))break}C({type:"text",value:m});continue}if(m===SCe){a=C({type:"paren",nodes:[]}),s.push(a),C({type:"text",value:m});continue}if(m===bCe){if(a.type!=="paren"){C({type:"text",value:m});continue}a=s.pop(),C({type:"text",value:m}),a=s[s.length-1];continue}if(m===TCe||m===ICe||m===_Ce){let b=m,D;for(t.keepQuotes!==!0&&(m="");f<l&&(D=_());){if(D===K2){m+=D+_();continue}if(D===b){t.keepQuotes===!0&&(m+=D);break}m+=D}C({type:"text",value:m});continue}if(m===DCe){h++;let D={type:"brace",open:!0,close:!1,dollar:o.value&&o.value.slice(-1)==="$"||a.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};a=C(D),s.push(a),C({type:"open",value:m});continue}if(m===wCe){if(a.type!=="brace"){C({type:"text",value:m});continue}let b="close";a=s.pop(),a.close=!0,C({type:b,value:m}),h--,a=s[s.length-1];continue}if(m===ACe&&h>0){if(a.ranges>0){a.ranges=0;let b=a.nodes.shift();a.nodes=[b,{type:"text",value:ECe(a)}]}C({type:"comma",value:m}),a.commas++;continue}if(m===CCe&&h>0&&a.commas===0){let b=a.nodes;if(h===0||b.length===0){C({type:"text",value:m});continue}if(o.type==="dot"){if(a.range=[],o.value+=m,o.type="range",a.nodes.length!==3&&a.nodes.length!==5){a.invalid=!0,a.ranges=0,o.type="text";continue}a.ranges++,a.args=[];continue}if(o.type==="range"){b.pop();let D=b[b.length-1];D.value+=o.value+m,o=D,a.ranges--;continue}C({type:"dot",value:m});continue}C({type:"text",value:m})}do if(a=s.pop(),a.type!=="root"){a.nodes.forEach(L=>{L.nodes||(L.type==="open"&&(L.isOpen=!0),L.type==="close"&&(L.isClose=!0),L.nodes||(L.type="text"),L.invalid=!0)});let b=s[s.length-1],D=b.nodes.indexOf(a);b.nodes.splice(D,1,...a.nodes)}while(s.length>0);return C({type:"eos"}),i};R7.exports=OCe});var $2=w((Itt,P7)=>{"use strict";d();var O7=eA(),PCe=_7(),BCe=S7(),LCe=N7(),Es=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=Es.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Es.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Es.parse=(e,t={})=>LCe(e,t);Es.stringify=(e,t={})=>O7(typeof e=="string"?Es.parse(e,t):e,t);Es.compile=(e,t={})=>(typeof e=="string"&&(e=Es.parse(e,t)),PCe(e,t));Es.expand=(e,t={})=>{typeof e=="string"&&(e=Es.parse(e,t));let r=BCe(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Es.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Es.compile(e,t):Es.expand(e,t);P7.exports=Es});var f0=w((Ntt,U7)=>{"use strict";d();var FCe=J("path"),Io="\\\\/",B7=`[^${Io}]`,wu="\\.",kCe="\\+",UCe="\\?",rA="\\/",MCe="(?=.)",L7="[^/]",Y2=`(?:${rA}|$)`,F7=`(?:^|${rA})`,X2=`${wu}{1,2}${Y2}`,qCe=`(?!${wu})`,jCe=`(?!${F7}${X2})`,VCe=`(?!${wu}{0,1}${Y2})`,HCe=`(?!${X2})`,GCe=`[^.${rA}]`,WCe=`${L7}*?`,k7={DOT_LITERAL:wu,PLUS_LITERAL:kCe,QMARK_LITERAL:UCe,SLASH_LITERAL:rA,ONE_CHAR:MCe,QMARK:L7,END_ANCHOR:Y2,DOTS_SLASH:X2,NO_DOT:qCe,NO_DOTS:jCe,NO_DOT_SLASH:VCe,NO_DOTS_SLASH:HCe,QMARK_NO_DOT:GCe,STAR:WCe,START_ANCHOR:F7},QCe={...k7,SLASH_LITERAL:`[${Io}]`,QMARK:B7,STAR:`${B7}*?`,DOTS_SLASH:`${wu}{1,2}(?:[${Io}]|$)`,NO_DOT:`(?!${wu})`,NO_DOTS:`(?!(?:^|[${Io}])${wu}{1,2}(?:[${Io}]|$))`,NO_DOT_SLASH:`(?!${wu}{0,1}(?:[${Io}]|$))`,NO_DOTS_SLASH:`(?!${wu}{1,2}(?:[${Io}]|$))`,QMARK_NO_DOT:`[^.${Io}]`,START_ANCHOR:`(?:^|[${Io}])`,END_ANCHOR:`(?:[${Io}]|$)`},zCe={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"};U7.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:zCe,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:FCe.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?QCe:k7}}});var d0=w(Xi=>{"use strict";d();var KCe=J("path"),$Ce=process.platform==="win32",{REGEX_BACKSLASH:YCe,REGEX_REMOVE_BACKSLASH:XCe,REGEX_SPECIAL_CHARS:JCe,REGEX_SPECIAL_CHARS_GLOBAL:ZCe}=f0();Xi.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Xi.hasRegexChars=e=>JCe.test(e);Xi.isRegexChar=e=>e.length===1&&Xi.hasRegexChars(e);Xi.escapeRegex=e=>e.replace(ZCe,"\\$1");Xi.toPosixSlashes=e=>e.replace(YCe,"/");Xi.removeBackslashes=e=>e.replace(XCe,t=>t==="\\"?"":t);Xi.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};Xi.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:$Ce===!0||KCe.sep==="\\";Xi.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?Xi.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};Xi.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Xi.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Q7=w((Ltt,W7)=>{"use strict";d();var M7=d0(),{CHAR_ASTERISK:J2,CHAR_AT:eSe,CHAR_BACKWARD_SLASH:h0,CHAR_COMMA:tSe,CHAR_DOT:Z2,CHAR_EXCLAMATION_MARK:eR,CHAR_FORWARD_SLASH:G7,CHAR_LEFT_CURLY_BRACE:tR,CHAR_LEFT_PARENTHESES:rR,CHAR_LEFT_SQUARE_BRACKET:rSe,CHAR_PLUS:nSe,CHAR_QUESTION_MARK:q7,CHAR_RIGHT_CURLY_BRACE:iSe,CHAR_RIGHT_PARENTHESES:j7,CHAR_RIGHT_SQUARE_BRACKET:sSe}=f0(),V7=e=>e===G7||e===h0,H7=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},aSe=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],a=[],o=[],u=e,l=-1,f=0,h=0,m=!1,y=!1,_=!1,C=!1,b=!1,D=!1,L=!1,F=!1,q=!1,M=!1,k=0,te,ce,ne={value:"",depth:0,isGlob:!1},pe=()=>l>=n,Q=()=>u.charCodeAt(l+1),be=()=>(te=ce,u.charCodeAt(++l));for(;l<n;){ce=be();let oe;if(ce===h0){L=ne.backslashes=!0,ce=be(),ce===tR&&(D=!0);continue}if(D===!0||ce===tR){for(k++;pe()!==!0&&(ce=be());){if(ce===h0){L=ne.backslashes=!0,be();continue}if(ce===tR){k++;continue}if(D!==!0&&ce===Z2&&(ce=be())===Z2){if(m=ne.isBrace=!0,_=ne.isGlob=!0,M=!0,i===!0)continue;break}if(D!==!0&&ce===tSe){if(m=ne.isBrace=!0,_=ne.isGlob=!0,M=!0,i===!0)continue;break}if(ce===iSe&&(k--,k===0)){D=!1,m=ne.isBrace=!0,M=!0;break}}if(i===!0)continue;break}if(ce===G7){if(s.push(l),a.push(ne),ne={value:"",depth:0,isGlob:!1},M===!0)continue;if(te===Z2&&l===f+1){f+=2;continue}h=l+1;continue}if(r.noext!==!0&&(ce===nSe||ce===eSe||ce===J2||ce===q7||ce===eR)===!0&&Q()===rR){if(_=ne.isGlob=!0,C=ne.isExtglob=!0,M=!0,ce===eR&&l===f&&(q=!0),i===!0){for(;pe()!==!0&&(ce=be());){if(ce===h0){L=ne.backslashes=!0,ce=be();continue}if(ce===j7){_=ne.isGlob=!0,M=!0;break}}continue}break}if(ce===J2){if(te===J2&&(b=ne.isGlobstar=!0),_=ne.isGlob=!0,M=!0,i===!0)continue;break}if(ce===q7){if(_=ne.isGlob=!0,M=!0,i===!0)continue;break}if(ce===rSe){for(;pe()!==!0&&(oe=be());){if(oe===h0){L=ne.backslashes=!0,be();continue}if(oe===sSe){y=ne.isBracket=!0,_=ne.isGlob=!0,M=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&ce===eR&&l===f){F=ne.negated=!0,f++;continue}if(r.noparen!==!0&&ce===rR){if(_=ne.isGlob=!0,i===!0){for(;pe()!==!0&&(ce=be());){if(ce===rR){L=ne.backslashes=!0,ce=be();continue}if(ce===j7){M=!0;break}}continue}break}if(_===!0){if(M=!0,i===!0)continue;break}}r.noext===!0&&(C=!1,_=!1);let Ie=u,et="",j="";f>0&&(et=u.slice(0,f),u=u.slice(f),h-=f),Ie&&_===!0&&h>0?(Ie=u.slice(0,h),j=u.slice(h)):_===!0?(Ie="",j=u):Ie=u,Ie&&Ie!==""&&Ie!=="/"&&Ie!==u&&V7(Ie.charCodeAt(Ie.length-1))&&(Ie=Ie.slice(0,-1)),r.unescape===!0&&(j&&(j=M7.removeBackslashes(j)),Ie&&L===!0&&(Ie=M7.removeBackslashes(Ie)));let z={prefix:et,input:e,start:f,base:Ie,glob:j,isBrace:m,isBracket:y,isGlob:_,isExtglob:C,isGlobstar:b,negated:F,negatedExtglob:q};if(r.tokens===!0&&(z.maxDepth=0,V7(ce)||a.push(ne),z.tokens=a),r.parts===!0||r.tokens===!0){let oe;for(let ve=0;ve<s.length;ve++){let Ve=oe?oe+1:f,dt=s[ve],ht=e.slice(Ve,dt);r.tokens&&(ve===0&&f!==0?(a[ve].isPrefix=!0,a[ve].value=et):a[ve].value=ht,H7(a[ve]),z.maxDepth+=a[ve].depth),(ve!==0||ht!=="")&&o.push(ht),oe=dt}if(oe&&oe+1<e.length){let ve=e.slice(oe+1);o.push(ve),r.tokens&&(a[a.length-1].value=ve,H7(a[a.length-1]),z.maxDepth+=a[a.length-1].depth)}z.slashes=s,z.parts=o}return z};W7.exports=aSe});var $7=w((ktt,K7)=>{"use strict";d();var nA=f0(),_s=d0(),{MAX_LENGTH:iA,POSIX_REGEX_SOURCE:oSe,REGEX_NON_SPECIAL_CHARS:uSe,REGEX_SPECIAL_CHARS_BACKREF:cSe,REPLACEMENTS:z7}=nA,lSe=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>_s.escapeRegex(i)).join("..")}return r},sh=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,nR=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=z7[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(iA,r.maxLength):iA,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},a=[s],o=r.capture?"":"?:",u=_s.isWindows(t),l=nA.globChars(u),f=nA.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:m,SLASH_LITERAL:y,ONE_CHAR:_,DOTS_SLASH:C,NO_DOT:b,NO_DOT_SLASH:D,NO_DOTS_SLASH:L,QMARK:F,QMARK_NO_DOT:q,STAR:M,START_ANCHOR:k}=l,te=Ee=>`(${o}(?:(?!${k}${Ee.dot?C:h}).)*?)`,ce=r.dot?"":b,ne=r.dot?F:q,pe=r.bash===!0?te(r):M;r.capture&&(pe=`(${pe})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let Q={input:e,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:a};e=_s.removePrefix(e,Q),i=e.length;let be=[],Ie=[],et=[],j=s,z,oe=()=>Q.index===i-1,ve=Q.peek=(Ee=1)=>e[Q.index+Ee],Ve=Q.advance=()=>e[++Q.index]||"",dt=()=>e.slice(Q.index+1),ht=(Ee="",ut=0)=>{Q.consumed+=Ee,Q.index+=ut},Lt=Ee=>{Q.output+=Ee.output!=null?Ee.output:Ee.value,ht(Ee.value)},Je=()=>{let Ee=1;for(;ve()==="!"&&(ve(2)!=="("||ve(3)==="?");)Ve(),Q.start++,Ee++;return Ee%2===0?!1:(Q.negated=!0,Q.start++,!0)},er=Ee=>{Q[Ee]++,et.push(Ee)},vt=Ee=>{Q[Ee]--,et.pop()},Ze=Ee=>{if(j.type==="globstar"){let ut=Q.braces>0&&(Ee.type==="comma"||Ee.type==="brace"),le=Ee.extglob===!0||be.length&&(Ee.type==="pipe"||Ee.type==="paren");Ee.type!=="slash"&&Ee.type!=="paren"&&!ut&&!le&&(Q.output=Q.output.slice(0,-j.output.length),j.type="star",j.value="*",j.output=pe,Q.output+=j.output)}if(be.length&&Ee.type!=="paren"&&(be[be.length-1].inner+=Ee.value),(Ee.value||Ee.output)&&Lt(Ee),j&&j.type==="text"&&Ee.type==="text"){j.value+=Ee.value,j.output=(j.output||"")+Ee.value;return}Ee.prev=j,a.push(Ee),j=Ee},Er=(Ee,ut)=>{let le={...f[ut],conditions:1,inner:""};le.prev=j,le.parens=Q.parens,le.output=Q.output;let Ue=(r.capture?"(":"")+le.open;er("parens"),Ze({type:Ee,value:ut,output:Q.output?"":_}),Ze({type:"paren",extglob:!0,value:Ve(),output:Ue}),be.push(le)},Ft=Ee=>{let ut=Ee.close+(r.capture?")":""),le;if(Ee.type==="negate"){let Ue=pe;if(Ee.inner&&Ee.inner.length>1&&Ee.inner.includes("/")&&(Ue=te(r)),(Ue!==pe||oe()||/^\)+$/.test(dt()))&&(ut=Ee.close=`)$))${Ue}`),Ee.inner.includes("*")&&(le=dt())&&/^\.[^\\/.]+$/.test(le)){let tt=nR(le,{...t,fastpaths:!1}).output;ut=Ee.close=`)${tt})${Ue})`}Ee.prev.type==="bos"&&(Q.negatedExtglob=!0)}Ze({type:"paren",extglob:!0,value:z,output:ut}),vt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let Ee=!1,ut=e.replace(cSe,(le,Ue,tt,Ct,wt,$u)=>Ct==="\\"?(Ee=!0,le):Ct==="?"?Ue?Ue+Ct+(wt?F.repeat(wt.length):""):$u===0?ne+(wt?F.repeat(wt.length):""):F.repeat(tt.length):Ct==="."?h.repeat(tt.length):Ct==="*"?Ue?Ue+Ct+(wt?pe:""):pe:Ue?le:`\\${le}`);return Ee===!0&&(r.unescape===!0?ut=ut.replace(/\\/g,""):ut=ut.replace(/\\+/g,le=>le.length%2===0?"\\\\":le?"\\":"")),ut===e&&r.contains===!0?(Q.output=e,Q):(Q.output=_s.wrapOutput(ut,Q,t),Q)}for(;!oe();){if(z=Ve(),z==="\0")continue;if(z==="\\"){let le=ve();if(le==="/"&&r.bash!==!0||le==="."||le===";")continue;if(!le){z+="\\",Ze({type:"text",value:z});continue}let Ue=/^\\+/.exec(dt()),tt=0;if(Ue&&Ue[0].length>2&&(tt=Ue[0].length,Q.index+=tt,tt%2!==0&&(z+="\\")),r.unescape===!0?z=Ve():z+=Ve(),Q.brackets===0){Ze({type:"text",value:z});continue}}if(Q.brackets>0&&(z!=="]"||j.value==="["||j.value==="[^")){if(r.posix!==!1&&z===":"){let le=j.value.slice(1);if(le.includes("[")&&(j.posix=!0,le.includes(":"))){let Ue=j.value.lastIndexOf("["),tt=j.value.slice(0,Ue),Ct=j.value.slice(Ue+2),wt=oSe[Ct];if(wt){j.value=tt+wt,Q.backtrack=!0,Ve(),!s.output&&a.indexOf(j)===1&&(s.output=_);continue}}}(z==="["&&ve()!==":"||z==="-"&&ve()==="]")&&(z=`\\${z}`),z==="]"&&(j.value==="["||j.value==="[^")&&(z=`\\${z}`),r.posix===!0&&z==="!"&&j.value==="["&&(z="^"),j.value+=z,Lt({value:z});continue}if(Q.quotes===1&&z!=='"'){z=_s.escapeRegex(z),j.value+=z,Lt({value:z});continue}if(z==='"'){Q.quotes=Q.quotes===1?0:1,r.keepQuotes===!0&&Ze({type:"text",value:z});continue}if(z==="("){er("parens"),Ze({type:"paren",value:z});continue}if(z===")"){if(Q.parens===0&&r.strictBrackets===!0)throw new SyntaxError(sh("opening","("));let le=be[be.length-1];if(le&&Q.parens===le.parens+1){Ft(be.pop());continue}Ze({type:"paren",value:z,output:Q.parens?")":"\\)"}),vt("parens");continue}if(z==="["){if(r.nobracket===!0||!dt().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(sh("closing","]"));z=`\\${z}`}else er("brackets");Ze({type:"bracket",value:z});continue}if(z==="]"){if(r.nobracket===!0||j&&j.type==="bracket"&&j.value.length===1){Ze({type:"text",value:z,output:`\\${z}`});continue}if(Q.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(sh("opening","["));Ze({type:"text",value:z,output:`\\${z}`});continue}vt("brackets");let le=j.value.slice(1);if(j.posix!==!0&&le[0]==="^"&&!le.includes("/")&&(z=`/${z}`),j.value+=z,Lt({value:z}),r.literalBrackets===!1||_s.hasRegexChars(le))continue;let Ue=_s.escapeRegex(j.value);if(Q.output=Q.output.slice(0,-j.value.length),r.literalBrackets===!0){Q.output+=Ue,j.value=Ue;continue}j.value=`(${o}${Ue}|${j.value})`,Q.output+=j.value;continue}if(z==="{"&&r.nobrace!==!0){er("braces");let le={type:"brace",value:z,output:"(",outputIndex:Q.output.length,tokensIndex:Q.tokens.length};Ie.push(le),Ze(le);continue}if(z==="}"){let le=Ie[Ie.length-1];if(r.nobrace===!0||!le){Ze({type:"text",value:z,output:z});continue}let Ue=")";if(le.dots===!0){let tt=a.slice(),Ct=[];for(let wt=tt.length-1;wt>=0&&(a.pop(),tt[wt].type!=="brace");wt--)tt[wt].type!=="dots"&&Ct.unshift(tt[wt].value);Ue=lSe(Ct,r),Q.backtrack=!0}if(le.comma!==!0&&le.dots!==!0){let tt=Q.output.slice(0,le.outputIndex),Ct=Q.tokens.slice(le.tokensIndex);le.value=le.output="\\{",z=Ue="\\}",Q.output=tt;for(let wt of Ct)Q.output+=wt.output||wt.value}Ze({type:"brace",value:z,output:Ue}),vt("braces"),Ie.pop();continue}if(z==="|"){be.length>0&&be[be.length-1].conditions++,Ze({type:"text",value:z});continue}if(z===","){let le=z,Ue=Ie[Ie.length-1];Ue&&et[et.length-1]==="braces"&&(Ue.comma=!0,le="|"),Ze({type:"comma",value:z,output:le});continue}if(z==="/"){if(j.type==="dot"&&Q.index===Q.start+1){Q.start=Q.index+1,Q.consumed="",Q.output="",a.pop(),j=s;continue}Ze({type:"slash",value:z,output:y});continue}if(z==="."){if(Q.braces>0&&j.type==="dot"){j.value==="."&&(j.output=h);let le=Ie[Ie.length-1];j.type="dots",j.output+=z,j.value+=z,le.dots=!0;continue}if(Q.braces+Q.parens===0&&j.type!=="bos"&&j.type!=="slash"){Ze({type:"text",value:z,output:h});continue}Ze({type:"dot",value:z,output:h});continue}if(z==="?"){if(!(j&&j.value==="(")&&r.noextglob!==!0&&ve()==="("&&ve(2)!=="?"){Er("qmark",z);continue}if(j&&j.type==="paren"){let Ue=ve(),tt=z;if(Ue==="<"&&!_s.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(j.value==="("&&!/[!=<:]/.test(Ue)||Ue==="<"&&!/<([!=]|\w+>)/.test(dt()))&&(tt=`\\${z}`),Ze({type:"text",value:z,output:tt});continue}if(r.dot!==!0&&(j.type==="slash"||j.type==="bos")){Ze({type:"qmark",value:z,output:q});continue}Ze({type:"qmark",value:z,output:F});continue}if(z==="!"){if(r.noextglob!==!0&&ve()==="("&&(ve(2)!=="?"||!/[!=<:]/.test(ve(3)))){Er("negate",z);continue}if(r.nonegate!==!0&&Q.index===0){Je();continue}}if(z==="+"){if(r.noextglob!==!0&&ve()==="("&&ve(2)!=="?"){Er("plus",z);continue}if(j&&j.value==="("||r.regex===!1){Ze({type:"plus",value:z,output:m});continue}if(j&&(j.type==="bracket"||j.type==="paren"||j.type==="brace")||Q.parens>0){Ze({type:"plus",value:z});continue}Ze({type:"plus",value:m});continue}if(z==="@"){if(r.noextglob!==!0&&ve()==="("&&ve(2)!=="?"){Ze({type:"at",extglob:!0,value:z,output:""});continue}Ze({type:"text",value:z});continue}if(z!=="*"){(z==="$"||z==="^")&&(z=`\\${z}`);let le=uSe.exec(dt());le&&(z+=le[0],Q.index+=le[0].length),Ze({type:"text",value:z});continue}if(j&&(j.type==="globstar"||j.star===!0)){j.type="star",j.star=!0,j.value+=z,j.output=pe,Q.backtrack=!0,Q.globstar=!0,ht(z);continue}let Ee=dt();if(r.noextglob!==!0&&/^\([^?]/.test(Ee)){Er("star",z);continue}if(j.type==="star"){if(r.noglobstar===!0){ht(z);continue}let le=j.prev,Ue=le.prev,tt=le.type==="slash"||le.type==="bos",Ct=Ue&&(Ue.type==="star"||Ue.type==="globstar");if(r.bash===!0&&(!tt||Ee[0]&&Ee[0]!=="/")){Ze({type:"star",value:z,output:""});continue}let wt=Q.braces>0&&(le.type==="comma"||le.type==="brace"),$u=be.length&&(le.type==="pipe"||le.type==="paren");if(!tt&&le.type!=="paren"&&!wt&&!$u){Ze({type:"star",value:z,output:""});continue}for(;Ee.slice(0,3)==="/**";){let fa=e[Q.index+4];if(fa&&fa!=="/")break;Ee=Ee.slice(3),ht("/**",3)}if(le.type==="bos"&&oe()){j.type="globstar",j.value+=z,j.output=te(r),Q.output=j.output,Q.globstar=!0,ht(z);continue}if(le.type==="slash"&&le.prev.type!=="bos"&&!Ct&&oe()){Q.output=Q.output.slice(0,-(le.output+j.output).length),le.output=`(?:${le.output}`,j.type="globstar",j.output=te(r)+(r.strictSlashes?")":"|$)"),j.value+=z,Q.globstar=!0,Q.output+=le.output+j.output,ht(z);continue}if(le.type==="slash"&&le.prev.type!=="bos"&&Ee[0]==="/"){let fa=Ee[1]!==void 0?"|$":"";Q.output=Q.output.slice(0,-(le.output+j.output).length),le.output=`(?:${le.output}`,j.type="globstar",j.output=`${te(r)}${y}|${y}${fa})`,j.value+=z,Q.output+=le.output+j.output,Q.globstar=!0,ht(z+Ve()),Ze({type:"slash",value:"/",output:""});continue}if(le.type==="bos"&&Ee[0]==="/"){j.type="globstar",j.value+=z,j.output=`(?:^|${y}|${te(r)}${y})`,Q.output=j.output,Q.globstar=!0,ht(z+Ve()),Ze({type:"slash",value:"/",output:""});continue}Q.output=Q.output.slice(0,-j.output.length),j.type="globstar",j.output=te(r),j.value+=z,Q.output+=j.output,Q.globstar=!0,ht(z);continue}let ut={type:"star",value:z,output:pe};if(r.bash===!0){ut.output=".*?",(j.type==="bos"||j.type==="slash")&&(ut.output=ce+ut.output),Ze(ut);continue}if(j&&(j.type==="bracket"||j.type==="paren")&&r.regex===!0){ut.output=z,Ze(ut);continue}(Q.index===Q.start||j.type==="slash"||j.type==="dot")&&(j.type==="dot"?(Q.output+=D,j.output+=D):r.dot===!0?(Q.output+=L,j.output+=L):(Q.output+=ce,j.output+=ce),ve()!=="*"&&(Q.output+=_,j.output+=_)),Ze(ut)}for(;Q.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(sh("closing","]"));Q.output=_s.escapeLast(Q.output,"["),vt("brackets")}for(;Q.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(sh("closing",")"));Q.output=_s.escapeLast(Q.output,"("),vt("parens")}for(;Q.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(sh("closing","}"));Q.output=_s.escapeLast(Q.output,"{"),vt("braces")}if(r.strictSlashes!==!0&&(j.type==="star"||j.type==="bracket")&&Ze({type:"maybe_slash",value:"",output:`${y}?`}),Q.backtrack===!0){Q.output="";for(let Ee of Q.tokens)Q.output+=Ee.output!=null?Ee.output:Ee.value,Ee.suffix&&(Q.output+=Ee.suffix)}return Q};nR.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(iA,r.maxLength):iA,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=z7[e]||e;let s=_s.isWindows(t),{DOT_LITERAL:a,SLASH_LITERAL:o,ONE_CHAR:u,DOTS_SLASH:l,NO_DOT:f,NO_DOTS:h,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:_}=nA.globChars(s),C=r.dot?h:f,b=r.dot?m:f,D=r.capture?"":"?:",L={negated:!1,prefix:""},F=r.bash===!0?".*?":y;r.capture&&(F=`(${F})`);let q=ce=>ce.noglobstar===!0?F:`(${D}(?:(?!${_}${ce.dot?l:a}).)*?)`,M=ce=>{switch(ce){case"*":return`${C}${u}${F}`;case".*":return`${a}${u}${F}`;case"*.*":return`${C}${F}${a}${u}${F}`;case"*/*":return`${C}${F}${o}${u}${b}${F}`;case"**":return C+q(r);case"**/*":return`(?:${C}${q(r)}${o})?${b}${u}${F}`;case"**/*.*":return`(?:${C}${q(r)}${o})?${b}${F}${a}${u}${F}`;case"**/.*":return`(?:${C}${q(r)}${o})?${a}${u}${F}`;default:{let ne=/^(.*?)\.(\w+)$/.exec(ce);if(!ne)return;let pe=M(ne[1]);return pe?pe+a+ne[2]:void 0}}},k=_s.removePrefix(e,L),te=M(k);return te&&r.strictSlashes!==!0&&(te+=`${o}?`),te};K7.exports=nR});var X7=w((Mtt,Y7)=>{"use strict";d();var pSe=J("path"),fSe=Q7(),iR=$7(),sR=d0(),dSe=f0(),hSe=e=>e&&typeof e=="object"&&!Array.isArray(e),pn=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(m=>pn(m,t,r));return m=>{for(let y of f){let _=y(m);if(_)return _}return!1}}let n=hSe(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=sR.isWindows(t),a=n?pn.compileRe(e,t):pn.makeRe(e,t,!1,!0),o=a.state;delete a.state;let u=()=>!1;if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};u=pn(i.ignore,f,r)}let l=(f,h=!1)=>{let{isMatch:m,match:y,output:_}=pn.test(f,a,t,{glob:e,posix:s}),C={glob:e,state:o,regex:a,posix:s,input:f,output:_,match:y,isMatch:m};return typeof i.onResult=="function"&&i.onResult(C),m===!1?(C.isMatch=!1,h?C:!1):u(f)?(typeof i.onIgnore=="function"&&i.onIgnore(C),C.isMatch=!1,h?C:!1):(typeof i.onMatch=="function"&&i.onMatch(C),h?C:!0)};return r&&(l.state=o),l};pn.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},a=s.format||(i?sR.toPosixSlashes:null),o=e===n,u=o&&a?a(e):e;return o===!1&&(u=a?a(e):e,o=u===n),(o===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?o=pn.matchBase(e,t,r,i):o=t.exec(u)),{isMatch:!!o,match:o,output:u}};pn.matchBase=(e,t,r,n=sR.isWindows(r))=>(t instanceof RegExp?t:pn.makeRe(t,r)).test(pSe.basename(e));pn.isMatch=(e,t,r)=>pn(t,r)(e);pn.parse=(e,t)=>Array.isArray(e)?e.map(r=>pn.parse(r,t)):iR(e,{...t,fastpaths:!1});pn.scan=(e,t)=>fSe(e,t);pn.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",a=i.contains?"":"$",o=`${s}(?:${e.output})${a}`;e&&e.negated===!0&&(o=`^(?!${o}).*$`);let u=pn.toRegex(o,t);return n===!0&&(u.state=e),u};pn.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=iR.fastpaths(e,t)),i.output||(i=iR(e,t)),pn.compileRe(i,t,r,n)};pn.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};pn.constants=dSe;Y7.exports=pn});var sA=w((jtt,J7)=>{"use strict";d();J7.exports=X7()});var nW=w((Htt,rW)=>{"use strict";d();var eW=J("util"),tW=$2(),Ro=sA(),aR=d0(),Z7=e=>e===""||e==="./",Qr=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,a=0,o=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let h=Ro(String(t[f]),{...r,onResult:o},!0),m=h.state.negated||h.state.negatedExtglob;m&&a++;for(let y of e){let _=h(y,!0);(m?!_.isMatch:_.isMatch)&&(m?n.add(_.output):(n.delete(_.output),i.add(_.output)))}}let l=(a===t.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&l.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(f=>f.replace(/\\/g,"")):t}return l};Qr.match=Qr;Qr.matcher=(e,t)=>Ro(e,t);Qr.isMatch=(e,t,r)=>Ro(t,r)(e);Qr.any=Qr.isMatch;Qr.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=o=>{r.onResult&&r.onResult(o),i.push(o.output)},a=new Set(Qr(e,t,{...r,onResult:s}));for(let o of i)a.has(o)||n.add(o);return[...n]};Qr.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${eW.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>Qr.contains(e,n,r));if(typeof t=="string"){if(Z7(e)||Z7(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return Qr.isMatch(e,t,{...r,contains:!0})};Qr.matchKeys=(e,t,r)=>{if(!aR.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=Qr(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};Qr.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Ro(String(i),r);if(n.some(a=>s(a)))return!0}return!1};Qr.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Ro(String(i),r);if(!n.every(a=>s(a)))return!1}return!0};Qr.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${eW.inspect(e)}"`);return[].concat(t).every(n=>Ro(n,r)(e))};Qr.capture=(e,t,r)=>{let n=aR.isWindows(r),s=Ro.makeRe(String(e),{...r,capture:!0}).exec(n?aR.toPosixSlashes(t):t);if(s)return s.slice(1).map(a=>a===void 0?"":a)};Qr.makeRe=(...e)=>Ro.makeRe(...e);Qr.scan=(...e)=>Ro.scan(...e);Qr.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of tW(String(n),t))r.push(Ro.parse(i,t));return r};Qr.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:tW(e,t)};Qr.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return Qr.braces(e,{...t,expand:!0})};rW.exports=Qr});var pW=w(mt=>{"use strict";d();Object.defineProperty(mt,"__esModule",{value:!0});mt.removeDuplicateSlashes=mt.matchAny=mt.convertPatternsToRe=mt.makeRe=mt.getPatternParts=mt.expandBraceExpansion=mt.expandPatternsWithBraceExpansion=mt.isAffectDepthOfReadingPattern=mt.endsWithSlashGlobStar=mt.hasGlobStar=mt.getBaseDirectory=mt.isPatternRelatedToParentDirectory=mt.getPatternsOutsideCurrentDirectory=mt.getPatternsInsideCurrentDirectory=mt.getPositivePatterns=mt.getNegativePatterns=mt.isPositivePattern=mt.isNegativePattern=mt.convertToNegativePattern=mt.convertToPositivePattern=mt.isDynamicPattern=mt.isStaticPattern=void 0;var mSe=J("path"),gSe=H2(),oR=nW(),iW="**",vSe="\\",ySe=/[*?]|^!/,xSe=/\[[^[]*]/,ESe=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,_Se=/[!*+?@]\([^(]*\)/,ASe=/,|\.\./,CSe=/(?!^)\/{2,}/g;function sW(e,t={}){return!aW(e,t)}mt.isStaticPattern=sW;function aW(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(vSe)||ySe.test(e)||xSe.test(e)||ESe.test(e)||t.extglob!==!1&&_Se.test(e)||t.braceExpansion!==!1&&SSe(e))}mt.isDynamicPattern=aW;function SSe(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return ASe.test(n)}function bSe(e){return aA(e)?e.slice(1):e}mt.convertToPositivePattern=bSe;function DSe(e){return"!"+e}mt.convertToNegativePattern=DSe;function aA(e){return e.startsWith("!")&&e[1]!=="("}mt.isNegativePattern=aA;function oW(e){return!aA(e)}mt.isPositivePattern=oW;function wSe(e){return e.filter(aA)}mt.getNegativePatterns=wSe;function TSe(e){return e.filter(oW)}mt.getPositivePatterns=TSe;function ISe(e){return e.filter(t=>!uR(t))}mt.getPatternsInsideCurrentDirectory=ISe;function RSe(e){return e.filter(uR)}mt.getPatternsOutsideCurrentDirectory=RSe;function uR(e){return e.startsWith("..")||e.startsWith("./..")}mt.isPatternRelatedToParentDirectory=uR;function NSe(e){return gSe(e,{flipBackslashes:!1})}mt.getBaseDirectory=NSe;function OSe(e){return e.includes(iW)}mt.hasGlobStar=OSe;function uW(e){return e.endsWith("/"+iW)}mt.endsWithSlashGlobStar=uW;function PSe(e){let t=mSe.basename(e);return uW(e)||sW(t)}mt.isAffectDepthOfReadingPattern=PSe;function BSe(e){return e.reduce((t,r)=>t.concat(cW(r)),[])}mt.expandPatternsWithBraceExpansion=BSe;function cW(e){let t=oR.braces(e,{expand:!0,nodupes:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}mt.expandBraceExpansion=cW;function LSe(e,t){let{parts:r}=oR.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}mt.getPatternParts=LSe;function lW(e,t){return oR.makeRe(e,t)}mt.makeRe=lW;function FSe(e,t){return e.map(r=>lW(r,t))}mt.convertPatternsToRe=FSe;function kSe(e,t){return t.some(r=>r.test(e))}mt.matchAny=kSe;function USe(e){return e.replace(CSe,"/")}mt.removeDuplicateSlashes=USe});var dW=w(oA=>{"use strict";d();Object.defineProperty(oA,"__esModule",{value:!0});oA.merge=void 0;var MSe=k2();function qSe(e){let t=MSe(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>fW(e)),t.once("end",()=>fW(e)),t}oA.merge=qSe;function fW(e){e.forEach(t=>t.emit("close"))}});var hW=w(ah=>{"use strict";d();Object.defineProperty(ah,"__esModule",{value:!0});ah.isEmpty=ah.isString=void 0;function jSe(e){return typeof e=="string"}ah.isString=jSe;function VSe(e){return e===""}ah.isEmpty=VSe});var Tu=w(gi=>{"use strict";d();Object.defineProperty(gi,"__esModule",{value:!0});gi.string=gi.stream=gi.pattern=gi.path=gi.fs=gi.errno=gi.array=void 0;var HSe=qG();gi.array=HSe;var GSe=jG();gi.errno=GSe;var WSe=VG();gi.fs=WSe;var QSe=QG();gi.path=QSe;var zSe=pW();gi.pattern=zSe;var KSe=dW();gi.stream=KSe;var $Se=hW();gi.string=$Se});var yW=w(vi=>{"use strict";d();Object.defineProperty(vi,"__esModule",{value:!0});vi.convertPatternGroupToTask=vi.convertPatternGroupsToTasks=vi.groupPatternsByBaseDirectory=vi.getNegativePatternsAsPositive=vi.getPositivePatterns=vi.convertPatternsToTasks=vi.generate=void 0;var Ma=Tu();function YSe(e,t){let r=mW(e,t),n=mW(t.ignore,t),i=gW(r),s=vW(r,n),a=i.filter(f=>Ma.pattern.isStaticPattern(f,t)),o=i.filter(f=>Ma.pattern.isDynamicPattern(f,t)),u=cR(a,s,!1),l=cR(o,s,!0);return u.concat(l)}vi.generate=YSe;function mW(e,t){let r=e;return t.braceExpansion&&(r=Ma.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>Ma.pattern.removeDuplicateSlashes(n))}function cR(e,t,r){let n=[],i=Ma.pattern.getPatternsOutsideCurrentDirectory(e),s=Ma.pattern.getPatternsInsideCurrentDirectory(e),a=lR(i),o=lR(s);return n.push(...pR(a,t,r)),"."in o?n.push(fR(".",s,t,r)):n.push(...pR(o,t,r)),n}vi.convertPatternsToTasks=cR;function gW(e){return Ma.pattern.getPositivePatterns(e)}vi.getPositivePatterns=gW;function vW(e,t){return Ma.pattern.getNegativePatterns(e).concat(t).map(Ma.pattern.convertToPositivePattern)}vi.getNegativePatternsAsPositive=vW;function lR(e){let t={};return e.reduce((r,n)=>{let i=Ma.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}vi.groupPatternsByBaseDirectory=lR;function pR(e,t,r){return Object.keys(e).map(n=>fR(n,e[n],t,r))}vi.convertPatternGroupsToTasks=pR;function fR(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Ma.pattern.convertToNegativePattern))}}vi.convertPatternGroupToTask=fR});var EW=w(uA=>{"use strict";d();Object.defineProperty(uA,"__esModule",{value:!0});uA.read=void 0;function XSe(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){xW(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){dR(r,i);return}t.fs.stat(e,(s,a)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){xW(r,s);return}dR(r,i);return}t.markSymbolicLink&&(a.isSymbolicLink=()=>!0),dR(r,a)})})}uA.read=XSe;function xW(e,t){e(t)}function dR(e,t){e(null,t)}});var _W=w(cA=>{"use strict";d();Object.defineProperty(cA,"__esModule",{value:!0});cA.read=void 0;function JSe(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}cA.read=JSe});var AW=w(Vc=>{"use strict";d();Object.defineProperty(Vc,"__esModule",{value:!0});Vc.createFileSystemAdapter=Vc.FILE_SYSTEM_ADAPTER=void 0;var lA=J("fs");Vc.FILE_SYSTEM_ADAPTER={lstat:lA.lstat,stat:lA.stat,lstatSync:lA.lstatSync,statSync:lA.statSync};function ZSe(e){return e===void 0?Vc.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Vc.FILE_SYSTEM_ADAPTER),e)}Vc.createFileSystemAdapter=ZSe});var CW=w(mR=>{"use strict";d();Object.defineProperty(mR,"__esModule",{value:!0});var ebe=AW(),hR=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=ebe.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};mR.default=hR});var Fp=w(Hc=>{"use strict";d();Object.defineProperty(Hc,"__esModule",{value:!0});Hc.statSync=Hc.stat=Hc.Settings=void 0;var SW=EW(),tbe=_W(),gR=CW();Hc.Settings=gR.default;function rbe(e,t,r){if(typeof t=="function"){SW.read(e,vR(),t);return}SW.read(e,vR(t),r)}Hc.stat=rbe;function nbe(e,t){let r=vR(t);return tbe.read(e,r)}Hc.statSync=nbe;function vR(e={}){return e instanceof gR.default?e:new gR.default(e)}});var wW=w((prt,DW)=>{"use strict";d();var bW;DW.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(bW||(bW=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var IW=w((drt,TW)=>{"use strict";d();TW.exports=sbe;var ibe=wW();function sbe(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function a(u){function l(){t&&t(u,r),t=null}s?ibe(l):l()}function o(u,l,f){r[u]=f,(--n===0||l)&&a(l)}n?i?i.forEach(function(u){e[u](function(l,f){o(u,l,f)})}):e.forEach(function(u,l){u(function(f,h){o(l,f,h)})}):a(null),s=!1}});var yR=w(fA=>{"use strict";d();Object.defineProperty(fA,"__esModule",{value:!0});fA.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var pA=process.versions.node.split(".");if(pA[0]===void 0||pA[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var RW=Number.parseInt(pA[0],10),abe=Number.parseInt(pA[1],10),NW=10,obe=10,ube=RW>NW,cbe=RW===NW&&abe>=obe;fA.IS_SUPPORT_READDIR_WITH_FILE_TYPES=ube||cbe});var OW=w(dA=>{"use strict";d();Object.defineProperty(dA,"__esModule",{value:!0});dA.createDirentFromStats=void 0;var xR=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function lbe(e,t){return new xR(e,t)}dA.createDirentFromStats=lbe});var ER=w(hA=>{"use strict";d();Object.defineProperty(hA,"__esModule",{value:!0});hA.fs=void 0;var pbe=OW();hA.fs=pbe});var _R=w(mA=>{"use strict";d();Object.defineProperty(mA,"__esModule",{value:!0});mA.joinPathSegments=void 0;function fbe(e,t,r){return e.endsWith(r)?e+t:e+r+t}mA.joinPathSegments=fbe});var UW=w(Gc=>{"use strict";d();Object.defineProperty(Gc,"__esModule",{value:!0});Gc.readdir=Gc.readdirWithFileTypes=Gc.read=void 0;var dbe=Fp(),PW=IW(),hbe=yR(),BW=ER(),LW=_R();function mbe(e,t,r){if(!t.stats&&hbe.IS_SUPPORT_READDIR_WITH_FILE_TYPES){FW(e,t,r);return}kW(e,t,r)}Gc.read=mbe;function FW(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){gA(r,n);return}let s=i.map(o=>({dirent:o,name:o.name,path:LW.joinPathSegments(e,o.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){AR(r,s);return}let a=s.map(o=>gbe(o,t));PW(a,(o,u)=>{if(o!==null){gA(r,o);return}AR(r,u)})})}Gc.readdirWithFileTypes=FW;function gbe(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=BW.fs.createDirentFromStats(e.name,i),r(null,e)})}}function kW(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){gA(r,n);return}let s=i.map(a=>{let o=LW.joinPathSegments(e,a,t.pathSegmentSeparator);return u=>{dbe.stat(o,t.fsStatSettings,(l,f)=>{if(l!==null){u(l);return}let h={name:a,path:o,dirent:BW.fs.createDirentFromStats(a,f)};t.stats&&(h.stats=f),u(null,h)})}});PW(s,(a,o)=>{if(a!==null){gA(r,a);return}AR(r,o)})})}Gc.readdir=kW;function gA(e,t){e(t)}function AR(e,t){e(null,t)}});var HW=w(Wc=>{"use strict";d();Object.defineProperty(Wc,"__esModule",{value:!0});Wc.readdir=Wc.readdirWithFileTypes=Wc.read=void 0;var vbe=Fp(),ybe=yR(),MW=ER(),qW=_R();function xbe(e,t){return!t.stats&&ybe.IS_SUPPORT_READDIR_WITH_FILE_TYPES?jW(e,t):VW(e,t)}Wc.read=xbe;function jW(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:qW.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=MW.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Wc.readdirWithFileTypes=jW;function VW(e,t){return t.fs.readdirSync(e).map(n=>{let i=qW.joinPathSegments(e,n,t.pathSegmentSeparator),s=vbe.statSync(i,t.fsStatSettings),a={name:n,path:i,dirent:MW.fs.createDirentFromStats(n,s)};return t.stats&&(a.stats=s),a})}Wc.readdir=VW});var GW=w(Qc=>{"use strict";d();Object.defineProperty(Qc,"__esModule",{value:!0});Qc.createFileSystemAdapter=Qc.FILE_SYSTEM_ADAPTER=void 0;var oh=J("fs");Qc.FILE_SYSTEM_ADAPTER={lstat:oh.lstat,stat:oh.stat,lstatSync:oh.lstatSync,statSync:oh.statSync,readdir:oh.readdir,readdirSync:oh.readdirSync};function Ebe(e){return e===void 0?Qc.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Qc.FILE_SYSTEM_ADAPTER),e)}Qc.createFileSystemAdapter=Ebe});var WW=w(SR=>{"use strict";d();Object.defineProperty(SR,"__esModule",{value:!0});var _be=J("path"),Abe=Fp(),Cbe=GW(),CR=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Cbe.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,_be.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Abe.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};SR.default=CR});var vA=w(zc=>{"use strict";d();Object.defineProperty(zc,"__esModule",{value:!0});zc.Settings=zc.scandirSync=zc.scandir=void 0;var QW=UW(),Sbe=HW(),bR=WW();zc.Settings=bR.default;function bbe(e,t,r){if(typeof t=="function"){QW.read(e,DR(),t);return}QW.read(e,DR(t),r)}zc.scandir=bbe;function Dbe(e,t){let r=DR(t);return Sbe.read(e,r)}zc.scandirSync=Dbe;function DR(e={}){return e instanceof bR.default?e:new bR.default(e)}});var KW=w((Prt,zW)=>{"use strict";d();function wbe(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}zW.exports=wbe});var YW=w((Lrt,wR)=>{"use strict";d();var Tbe=KW();function $W(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=Tbe(Ibe),i=null,s=null,a=0,o=null,u={push:C,drain:Ks,saturated:Ks,pause:f,paused:!1,concurrency:r,running:l,resume:y,idle:_,length:h,getQueue:m,unshift:b,empty:Ks,kill:L,killAndDrain:F,error:q};return u;function l(){return a}function f(){u.paused=!0}function h(){for(var M=i,k=0;M;)M=M.next,k++;return k}function m(){for(var M=i,k=[];M;)k.push(M.value),M=M.next;return k}function y(){if(u.paused){u.paused=!1;for(var M=0;M<u.concurrency;M++)a++,D()}}function _(){return a===0&&u.length()===0}function C(M,k){var te=n.get();te.context=e,te.release=D,te.value=M,te.callback=k||Ks,te.errorHandler=o,a===u.concurrency||u.paused?s?(s.next=te,s=te):(i=te,s=te,u.saturated()):(a++,t.call(e,te.value,te.worked))}function b(M,k){var te=n.get();te.context=e,te.release=D,te.value=M,te.callback=k||Ks,a===u.concurrency||u.paused?i?(te.next=i,i=te):(i=te,s=te,u.saturated()):(a++,t.call(e,te.value,te.worked))}function D(M){M&&n.release(M);var k=i;k?u.paused?a--:(s===i&&(s=null),i=k.next,k.next=null,t.call(e,k.value,k.worked),s===null&&u.empty()):--a===0&&u.drain()}function L(){i=null,s=null,u.drain=Ks}function F(){i=null,s=null,u.drain(),u.drain=Ks}function q(M){o=M}}function Ks(){}function Ibe(){this.value=null,this.callback=Ks,this.next=null,this.release=Ks,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,a=e.value;e.value=null,e.callback=Ks,e.errorHandler&&s(r,a),i.call(e.context,r,n),e.release(e)}}function Rbe(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(f,h){t.call(this,f).then(function(m){h(null,m)},h)}var i=$W(e,n,r),s=i.push,a=i.unshift;return i.push=o,i.unshift=u,i.drained=l,i;function o(f){var h=new Promise(function(m,y){s(f,function(_,C){if(_){y(_);return}m(C)})});return h.catch(Ks),h}function u(f){var h=new Promise(function(m,y){a(f,function(_,C){if(_){y(_);return}m(C)})});return h.catch(Ks),h}function l(){var f=i.drain,h=new Promise(function(m){i.drain=function(){f(),m()}});return h}}wR.exports=$W;wR.exports.promise=Rbe});var yA=w(No=>{"use strict";d();Object.defineProperty(No,"__esModule",{value:!0});No.joinPathSegments=No.replacePathSegmentSeparator=No.isAppliedFilter=No.isFatalError=void 0;function Nbe(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}No.isFatalError=Nbe;function Obe(e,t){return e===null||e(t)}No.isAppliedFilter=Obe;function Pbe(e,t){return e.split(/[/\\]/).join(t)}No.replacePathSegmentSeparator=Pbe;function Bbe(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}No.joinPathSegments=Bbe});var RR=w(IR=>{"use strict";d();Object.defineProperty(IR,"__esModule",{value:!0});var Lbe=yA(),TR=class{constructor(t,r){this._root=t,this._settings=r,this._root=Lbe.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};IR.default=TR});var PR=w(OR=>{"use strict";d();Object.defineProperty(OR,"__esModule",{value:!0});var Fbe=J("events"),kbe=vA(),Ube=YW(),xA=yA(),Mbe=RR(),NR=class extends Mbe.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=kbe.scandir,this._emitter=new Fbe.EventEmitter,this._queue=Ube(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(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!xA.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=xA.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),xA.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&xA.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};OR.default=NR});var XW=w(LR=>{"use strict";d();Object.defineProperty(LR,"__esModule",{value:!0});var qbe=PR(),BR=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new qbe.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{jbe(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Vbe(t,this._storage)}),this._reader.read()}};LR.default=BR;function jbe(e,t){e(t)}function Vbe(e,t){e(null,t)}});var JW=w(kR=>{"use strict";d();Object.defineProperty(kR,"__esModule",{value:!0});var Hbe=J("stream"),Gbe=PR(),FR=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Gbe.default(this._root,this._settings),this._stream=new Hbe.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};kR.default=FR});var ZW=w(MR=>{"use strict";d();Object.defineProperty(MR,"__esModule",{value:!0});var Wbe=vA(),EA=yA(),Qbe=RR(),UR=class extends Qbe.default{constructor(){super(...arguments),this._scandir=Wbe.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(EA.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=EA.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),EA.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&EA.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};MR.default=UR});var eQ=w(jR=>{"use strict";d();Object.defineProperty(jR,"__esModule",{value:!0});var zbe=ZW(),qR=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new zbe.default(this._root,this._settings)}read(){return this._reader.read()}};jR.default=qR});var tQ=w(HR=>{"use strict";d();Object.defineProperty(HR,"__esModule",{value:!0});var Kbe=J("path"),$be=vA(),VR=class{constructor(t={}){this._options=t,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,Kbe.sep),this.fsScandirSettings=new $be.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};HR.default=VR});var AA=w(Oo=>{"use strict";d();Object.defineProperty(Oo,"__esModule",{value:!0});Oo.Settings=Oo.walkStream=Oo.walkSync=Oo.walk=void 0;var rQ=XW(),Ybe=JW(),Xbe=eQ(),GR=tQ();Oo.Settings=GR.default;function Jbe(e,t,r){if(typeof t=="function"){new rQ.default(e,_A()).read(t);return}new rQ.default(e,_A(t)).read(r)}Oo.walk=Jbe;function Zbe(e,t){let r=_A(t);return new Xbe.default(e,r).read()}Oo.walkSync=Zbe;function e1e(e,t){let r=_A(t);return new Ybe.default(e,r).read()}Oo.walkStream=e1e;function _A(e={}){return e instanceof GR.default?e:new GR.default(e)}});var CA=w(QR=>{"use strict";d();Object.defineProperty(QR,"__esModule",{value:!0});var t1e=J("path"),r1e=Fp(),nQ=Tu(),WR=class{constructor(t){this._settings=t,this._fsStatSettings=new r1e.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return t1e.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:nQ.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!nQ.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};QR.default=WR});var $R=w(KR=>{"use strict";d();Object.defineProperty(KR,"__esModule",{value:!0});var n1e=J("stream"),i1e=Fp(),s1e=AA(),a1e=CA(),zR=class extends a1e.default{constructor(){super(...arguments),this._walkStream=s1e.walkStream,this._stat=i1e.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new n1e.PassThrough({objectMode:!0});i._write=(s,a,o)=>this._getEntry(n[s],t[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),s===n.length-1&&i.end(),o()}).catch(o);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};KR.default=zR});var iQ=w(XR=>{"use strict";d();Object.defineProperty(XR,"__esModule",{value:!0});var o1e=AA(),u1e=CA(),c1e=$R(),YR=class extends u1e.default{constructor(){super(...arguments),this._walkAsync=o1e.walk,this._readerStream=new c1e.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,a)=>{s===null?n(a):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,a)=>{i.once("error",a),i.on("data",o=>n.push(o)),i.once("end",()=>s(n))})}};XR.default=YR});var sQ=w(ZR=>{"use strict";d();Object.defineProperty(ZR,"__esModule",{value:!0});var m0=Tu(),JR=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let r=this._getPatternSegments(t),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:t,segments:r,sections:n})}}_getPatternSegments(t){return m0.pattern.getPatternParts(t,this._micromatchOptions).map(n=>m0.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:m0.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return m0.array.splitWhen(t,r=>r.dynamic&&m0.pattern.hasGlobStar(r.pattern))}};ZR.default=JR});var aQ=w(tN=>{"use strict";d();Object.defineProperty(tN,"__esModule",{value:!0});var l1e=sQ(),eN=class extends l1e.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let a=s.sections[0];if(!s.complete&&n>a.length||r.every((u,l)=>{let f=s.segments[l];return!!(f.dynamic&&f.patternRe.test(u)||!f.dynamic&&f.pattern===u)}))return!0}return!1}};tN.default=eN});var oQ=w(nN=>{"use strict";d();Object.defineProperty(nN,"__esModule",{value:!0});var SA=Tu(),p1e=aQ(),rN=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return a=>this._filter(t,a,i,s)}_getMatcher(t){return new p1e.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(SA.pattern.isAffectDepthOfReadingPattern);return SA.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=SA.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!SA.pattern.matchAny(t,r)}};nN.default=rN});var uQ=w(sN=>{"use strict";d();Object.defineProperty(sN,"__esModule",{value:!0});var kp=Tu(),iN=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=kp.pattern.convertPatternsToRe(t,this._micromatchOptions),i=kp.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return s=>this._filter(s,n,i)}_filter(t,r,n){let i=kp.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(i,n))return!1;let s=t.dirent.isDirectory(),a=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(i,n,s);return this._settings.unique&&a&&this._createIndexRecord(i),a}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=kp.path.makeAbsolute(this._settings.cwd,t);return kp.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=kp.pattern.matchAny(t,r);return!i&&n?kp.pattern.matchAny(t+"/",r):i}};sN.default=iN});var cQ=w(oN=>{"use strict";d();Object.defineProperty(oN,"__esModule",{value:!0});var f1e=Tu(),aN=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return f1e.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};oN.default=aN});var pQ=w(cN=>{"use strict";d();Object.defineProperty(cN,"__esModule",{value:!0});var lQ=Tu(),uN=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=lQ.path.makeAbsolute(this._settings.cwd,r),r=lQ.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};cN.default=uN});var bA=w(pN=>{"use strict";d();Object.defineProperty(pN,"__esModule",{value:!0});var d1e=J("path"),h1e=oQ(),m1e=uQ(),g1e=cQ(),v1e=pQ(),lN=class{constructor(t){this._settings=t,this.errorFilter=new g1e.default(this._settings),this.entryFilter=new m1e.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new h1e.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new v1e.default(this._settings)}_getRootDirectory(t){return d1e.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};pN.default=lN});var fQ=w(dN=>{"use strict";d();Object.defineProperty(dN,"__esModule",{value:!0});var y1e=iQ(),x1e=bA(),fN=class extends x1e.default{constructor(){super(...arguments),this._reader=new y1e.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};dN.default=fN});var dQ=w(mN=>{"use strict";d();Object.defineProperty(mN,"__esModule",{value:!0});var E1e=J("stream"),_1e=$R(),A1e=bA(),hN=class extends A1e.default{constructor(){super(...arguments),this._reader=new _1e.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new E1e.Readable({objectMode:!0,read:()=>{}});return i.once("error",a=>s.emit("error",a)).on("data",a=>s.emit("data",n.transform(a))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};mN.default=hN});var hQ=w(vN=>{"use strict";d();Object.defineProperty(vN,"__esModule",{value:!0});var C1e=Fp(),S1e=AA(),b1e=CA(),gN=class extends b1e.default{constructor(){super(...arguments),this._walkSync=S1e.walkSync,this._statSync=C1e.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),a=this._getEntry(s,i,r);a===null||!r.entryFilter(a)||n.push(a)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};vN.default=gN});var mQ=w(xN=>{"use strict";d();Object.defineProperty(xN,"__esModule",{value:!0});var D1e=hQ(),w1e=bA(),yN=class extends w1e.default{constructor(){super(...arguments),this._reader=new D1e.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};xN.default=yN});var gQ=w(ch=>{"use strict";d();Object.defineProperty(ch,"__esModule",{value:!0});ch.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var uh=J("fs"),T1e=J("os"),I1e=Math.max(T1e.cpus().length,1);ch.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:uh.lstat,lstatSync:uh.lstatSync,stat:uh.stat,statSync:uh.statSync,readdir:uh.readdir,readdirSync:uh.readdirSync};var EN=class{constructor(t={}){this._options=t,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,I1e),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(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},ch.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};ch.default=EN});var SN=w((Nnt,yQ)=>{"use strict";d();var vQ=yW(),R1e=fQ(),N1e=dQ(),O1e=mQ(),_N=gQ(),$s=Tu();async function AN(e,t){qa(e);let r=CN(e,R1e.default,t),n=await Promise.all(r);return $s.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(l,f){qa(l);let h=CN(l,O1e.default,f);return $s.array.flatten(h)}e.sync=t;function r(l,f){qa(l);let h=CN(l,N1e.default,f);return $s.stream.merge(h)}e.stream=r;function n(l,f){qa(l);let h=[].concat(l),m=new _N.default(f);return vQ.generate(h,m)}e.generateTasks=n;function i(l,f){qa(l);let h=new _N.default(f);return $s.pattern.isDynamicPattern(l,h)}e.isDynamicPattern=i;function s(l){return qa(l),$s.path.escape(l)}e.escapePath=s;function a(l){return qa(l),$s.path.convertPathToPattern(l)}e.convertPathToPattern=a;let o;(function(l){function f(m){return qa(m),$s.path.escapePosixPath(m)}l.escapePath=f;function h(m){return qa(m),$s.path.convertPosixPathToPattern(m)}l.convertPathToPattern=h})(o=e.posix||(e.posix={}));let u;(function(l){function f(m){return qa(m),$s.path.escapeWindowsPath(m)}l.escapePath=f;function h(m){return qa(m),$s.path.convertWindowsPathToPattern(m)}l.convertPathToPattern=h})(u=e.win32||(e.win32={}))})(AN||(AN={}));function CN(e,t,r){let n=[].concat(e),i=new _N.default(r),s=vQ.generate(n,i),a=new t(i);return s.map(a.read,a)}function qa(e){if(![].concat(e).every(n=>$s.string.isString(n)&&!$s.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}yQ.exports=AN});var EQ=w(Up=>{"use strict";d();var{promisify:P1e}=J("util"),xQ=J("fs");async function bN(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return(await P1e(xQ[e])(r))[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}function DN(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return xQ[e](r)[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}Up.isFile=bN.bind(null,"stat","isFile");Up.isDirectory=bN.bind(null,"stat","isDirectory");Up.isSymlink=bN.bind(null,"lstat","isSymbolicLink");Up.isFileSync=DN.bind(null,"statSync","isFile");Up.isDirectorySync=DN.bind(null,"statSync","isDirectory");Up.isSymlinkSync=DN.bind(null,"lstatSync","isSymbolicLink")});var bQ=w((Lnt,wN)=>{"use strict";d();var Mp=J("path"),_Q=EQ(),AQ=e=>e.length>1?`{${e.join(",")}}`:e[0],CQ=(e,t)=>{let r=e[0]==="!"?e.slice(1):e;return Mp.isAbsolute(r)?r:Mp.join(t,r)},B1e=(e,t)=>Mp.extname(e)?`**/${e}`:`**/${e}.${AQ(t)}`,SQ=(e,t)=>{if(t.files&&!Array.isArray(t.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``);if(t.extensions&&!Array.isArray(t.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``);return t.files&&t.extensions?t.files.map(r=>Mp.posix.join(e,B1e(r,t.extensions))):t.files?t.files.map(r=>Mp.posix.join(e,`**/${r}`)):t.extensions?[Mp.posix.join(e,`**/*.${AQ(t.extensions)}`)]:[Mp.posix.join(e,"**")]};wN.exports=async(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=await Promise.all([].concat(e).map(async n=>await _Q.isDirectory(CQ(n,t.cwd))?SQ(n,t):n));return[].concat.apply([],r)};wN.exports.sync=(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=[].concat(e).map(n=>_Q.isDirectorySync(CQ(n,t.cwd))?SQ(n,t):n);return[].concat.apply([],r)}});var LQ=w((knt,BQ)=>{"use strict";d();function DQ(e){return Array.isArray(e)?e:[e]}var RQ="",wQ=" ",TN="\\",L1e=/^\s+$/,F1e=/(?:[^\\]|^)\\$/,k1e=/^\\!/,U1e=/^\\#/,M1e=/\r?\n/g,q1e=/^\.*\/|^\.+$/,IN="/",NQ="node-ignore";typeof Symbol<"u"&&(NQ=Symbol.for("node-ignore"));var TQ=NQ,j1e=(e,t,r)=>Object.defineProperty(e,t,{value:r}),V1e=/([0-z])-([0-z])/g,OQ=()=>!1,H1e=e=>e.replace(V1e,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:RQ),G1e=e=>{let{length:t}=e;return e.slice(0,t-t%2)},W1e=[[/\\?\s+$/,e=>e.indexOf("\\")===0?wQ:RQ],[/\\\s/g,()=>wQ],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>TN],[/\\\\/g,()=>TN],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,i)=>t===TN?`\\[${r}${G1e(n)}${i}`:i==="]"&&n.length%2===0?`[${H1e(r)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],IQ=Object.create(null),Q1e=(e,t)=>{let r=IQ[e];return r||(r=W1e.reduce((n,i)=>n.replace(i[0],i[1].bind(e)),e),IQ[e]=r),t?new RegExp(r,"i"):new RegExp(r)},ON=e=>typeof e=="string",z1e=e=>e&&ON(e)&&!L1e.test(e)&&!F1e.test(e)&&e.indexOf("#")!==0,K1e=e=>e.split(M1e),RN=class{constructor(t,r,n,i){this.origin=t,this.pattern=r,this.negative=n,this.regex=i}},$1e=(e,t)=>{let r=e,n=!1;e.indexOf("!")===0&&(n=!0,e=e.substr(1)),e=e.replace(k1e,"!").replace(U1e,"#");let i=Q1e(e,t);return new RN(r,e,n,i)},Y1e=(e,t)=>{throw new t(e)},Iu=(e,t,r)=>ON(e)?e?Iu.isNotRelative(e)?r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),PQ=e=>q1e.test(e);Iu.isNotRelative=PQ;Iu.convert=e=>e;var NN=class{constructor({ignorecase:t=!0,ignoreCase:r=t,allowRelativePaths:n=!1}={}){j1e(this,TQ,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[TQ]){this._rules=this._rules.concat(t._rules),this._added=!0;return}if(z1e(t)){let r=$1e(t,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(t){return this._added=!1,DQ(ON(t)?K1e(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,r){let n=!1,i=!1;return this._rules.forEach(s=>{let{negative:a}=s;if(i===a&&n!==i||a&&!n&&!i&&!r)return;s.regex.test(t)&&(n=!a,i=a)}),{ignored:n,unignored:i}}_test(t,r,n,i){let s=t&&Iu.convert(t);return Iu(s,t,this._allowRelativePaths?OQ:Y1e),this._t(s,r,n,i)}_t(t,r,n,i){if(t in r)return r[t];if(i||(i=t.split(IN)),i.pop(),!i.length)return r[t]=this._testOne(t,n);let s=this._t(i.join(IN)+IN,r,n,i);return r[t]=s.ignored?s:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return DQ(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},DA=e=>new NN(e),X1e=e=>Iu(e&&Iu.convert(e),e,OQ);DA.isPathValid=X1e;DA.default=DA;BQ.exports=DA;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");Iu.convert=e;let t=/^[a-z]:\//i;Iu.isNotRelative=r=>t.test(r)||PQ(r)}});var hz=w((Mit,dz)=>{"use strict";d();var C0=J("fs"),{Readable:vDe}=J("stream"),A0=J("path"),{promisify:PA}=J("util"),VN=sA(),yDe=PA(C0.readdir),xDe=PA(C0.stat),oz=PA(C0.lstat),EDe=PA(C0.realpath),_De="!",pz="READDIRP_RECURSIVE_ERROR",ADe=new Set(["ENOENT","EPERM","EACCES","ELOOP",pz]),HN="files",fz="directories",NA="files_directories",RA="all",uz=[HN,fz,NA,RA],CDe=e=>ADe.has(e.code),[cz,SDe]=process.versions.node.split(".").slice(0,2).map(e=>Number.parseInt(e,10)),bDe=process.platform==="win32"&&(cz>10||cz===10&&SDe>=5),lz=e=>{if(e!==void 0){if(typeof e=="function")return e;if(typeof e=="string"){let t=VN(e.trim());return r=>t(r.basename)}if(Array.isArray(e)){let t=[],r=[];for(let n of e){let i=n.trim();i.charAt(0)===_De?r.push(VN(i.slice(1))):t.push(VN(i))}return r.length>0?t.length>0?n=>t.some(i=>i(n.basename))&&!r.some(i=>i(n.basename)):n=>!r.some(i=>i(n.basename)):n=>t.some(i=>i(n.basename))}}},OA=class e extends vDe{static get defaultOptions(){return{root:".",fileFilter:t=>!0,directoryFilter:t=>!0,type:HN,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(t={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:t.highWaterMark||4096});let r={...e.defaultOptions,...t},{root:n,type:i}=r;this._fileFilter=lz(r.fileFilter),this._directoryFilter=lz(r.directoryFilter);let s=r.lstat?oz:xDe;bDe?this._stat=a=>s(a,{bigint:!0}):this._stat=s,this._maxDepth=r.depth,this._wantsDir=[fz,NA,RA].includes(i),this._wantsFile=[HN,NA,RA].includes(i),this._wantsEverything=i===RA,this._root=A0.resolve(n),this._isDirent="Dirent"in C0&&!r.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(n,1)],this.reading=!1,this.parent=void 0}async _read(t){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&t>0;){let{path:r,depth:n,files:i=[]}=this.parent||{};if(i.length>0){let s=i.splice(0,t).map(a=>this._formatEntry(a,r));for(let a of await Promise.all(s)){if(this.destroyed)return;let o=await this._getEntryType(a);o==="directory"&&this._directoryFilter(a)?(n<=this._maxDepth&&this.parents.push(this._exploreDir(a.fullPath,n+1)),this._wantsDir&&(this.push(a),t--)):(o==="file"||this._includeAsFile(a))&&this._fileFilter(a)&&this._wantsFile&&(this.push(a),t--)}}else{let s=this.parents.pop();if(!s){this.push(null);break}if(this.parent=await s,this.destroyed)return}}}catch(r){this.destroy(r)}finally{this.reading=!1}}}async _exploreDir(t,r){let n;try{n=await yDe(t,this._rdOptions)}catch(i){this._onError(i)}return{files:n,depth:r,path:t}}async _formatEntry(t,r){let n;try{let i=this._isDirent?t.name:t,s=A0.resolve(A0.join(r,i));n={path:A0.relative(this._root,s),fullPath:s,basename:i},n[this._statsProp]=this._isDirent?t:await this._stat(s)}catch(i){this._onError(i)}return n}_onError(t){CDe(t)&&!this.destroyed?this.emit("warn",t):this.destroy(t)}async _getEntryType(t){let r=t&&t[this._statsProp];if(r){if(r.isFile())return"file";if(r.isDirectory())return"directory";if(r&&r.isSymbolicLink()){let n=t.fullPath;try{let i=await EDe(n),s=await oz(i);if(s.isFile())return"file";if(s.isDirectory()){let a=i.length;if(n.startsWith(i)&&n.substr(a,1)===A0.sep){let o=new Error(`Circular symlink detected: "${n}" points to "${i}"`);return o.code=pz,this._onError(o)}return"directory"}}catch(i){this._onError(i)}}}}_includeAsFile(t){let r=t&&t[this._statsProp];return r&&this._wantsEverything&&!r.isDirectory()}},mh=(e,t={})=>{let r=t.entryType||t.type;if(r==="both"&&(r=NA),r&&(t.type=r),e){if(typeof e!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(r&&!uz.includes(r))throw new Error(`readdirp: Invalid type passed. Use one of ${uz.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return t.root=e,new OA(t)},DDe=(e,t={})=>new Promise((r,n)=>{let i=[];mh(e,t).on("data",s=>i.push(s)).on("end",()=>r(i)).on("error",s=>n(s))});mh.promise=DDe;mh.ReaddirpStream=OA;mh.default=mh;dz.exports=mh});var GN=w((jit,mz)=>{"use strict";d();mz.exports=function(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&e[3]==="\\"){var i=e[2];(i==="?"||i===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),n="//")}var s=e.split(/[/\\]+/);return t!==!1&&s[s.length-1]===""&&s.pop(),n+s.join("/")}});var _z=w((xz,Ez)=>{"use strict";d();Object.defineProperty(xz,"__esModule",{value:!0});var yz=sA(),wDe=GN(),gz="!",TDe={returnIndex:!1},IDe=e=>Array.isArray(e)?e:[e],RDe=(e,t)=>{if(typeof e=="function")return e;if(typeof e=="string"){let r=yz(e,t);return n=>e===n||r(n)}return e instanceof RegExp?r=>e.test(r):r=>!1},vz=(e,t,r,n)=>{let i=Array.isArray(r),s=i?r[0]:r;if(!i&&typeof s!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(s));let a=wDe(s);for(let u=0;u<t.length;u++){let l=t[u];if(l(a))return n?-1:!1}let o=i&&[a].concat(r.slice(1));for(let u=0;u<e.length;u++){let l=e[u];if(i?l(...o):l(a))return n?u:!0}return n?-1:!1},WN=(e,t,r=TDe)=>{if(e==null)throw new TypeError("anymatch: specify first argument");let n=typeof r=="boolean"?{returnIndex:r}:r,i=n.returnIndex||!1,s=IDe(e),a=s.filter(u=>typeof u=="string"&&u.charAt(0)===gz).map(u=>u.slice(1)).map(u=>yz(u,n)),o=s.filter(u=>typeof u!="string"||typeof u=="string"&&u.charAt(0)!==gz).map(u=>RDe(u,n));return t==null?(u,l=!1)=>vz(o,a,u,typeof l=="boolean"?l:!1):vz(o,a,t,i)};WN.default=WN;Ez.exports=WN});var Az=w((Git,NDe)=>{NDe.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var Sz=w((Wit,Cz)=>{"use strict";d();Cz.exports=Az()});var Dz=w((zit,bz)=>{"use strict";d();var ODe=J("path"),PDe=Sz(),BDe=new Set(PDe);bz.exports=e=>BDe.has(ODe.extname(e).slice(1).toLowerCase())});var BA=w(nt=>{"use strict";d();var{sep:LDe}=J("path"),{platform:QN}=process,FDe=J("os");nt.EV_ALL="all";nt.EV_READY="ready";nt.EV_ADD="add";nt.EV_CHANGE="change";nt.EV_ADD_DIR="addDir";nt.EV_UNLINK="unlink";nt.EV_UNLINK_DIR="unlinkDir";nt.EV_RAW="raw";nt.EV_ERROR="error";nt.STR_DATA="data";nt.STR_END="end";nt.STR_CLOSE="close";nt.FSEVENT_CREATED="created";nt.FSEVENT_MODIFIED="modified";nt.FSEVENT_DELETED="deleted";nt.FSEVENT_MOVED="moved";nt.FSEVENT_CLONED="cloned";nt.FSEVENT_UNKNOWN="unknown";nt.FSEVENT_TYPE_FILE="file";nt.FSEVENT_TYPE_DIRECTORY="directory";nt.FSEVENT_TYPE_SYMLINK="symlink";nt.KEY_LISTENERS="listeners";nt.KEY_ERR="errHandlers";nt.KEY_RAW="rawEmitters";nt.HANDLER_KEYS=[nt.KEY_LISTENERS,nt.KEY_ERR,nt.KEY_RAW];nt.DOT_SLASH=`.${LDe}`;nt.BACK_SLASH_RE=/\\/g;nt.DOUBLE_SLASH_RE=/\/\//;nt.SLASH_OR_BACK_SLASH_RE=/[/\\]/;nt.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;nt.REPLACER_RE=/^\.[/\\]/;nt.SLASH="/";nt.SLASH_SLASH="//";nt.BRACE_START="{";nt.BANG="!";nt.ONE_DOT=".";nt.TWO_DOTS="..";nt.STAR="*";nt.GLOBSTAR="**";nt.ROOT_GLOBSTAR="/**/*";nt.SLASH_GLOBSTAR="/**";nt.DIR_SUFFIX="Dir";nt.ANYMATCH_OPTS={dot:!0};nt.STRING_TYPE="string";nt.FUNCTION_TYPE="function";nt.EMPTY_STR="";nt.EMPTY_FN=()=>{};nt.IDENTITY_FN=e=>e;nt.isWindows=QN==="win32";nt.isMacos=QN==="darwin";nt.isLinux=QN==="linux";nt.isIBMi=FDe.type()==="OS400"});var Oz=w((Xit,Nz)=>{"use strict";d();var Ru=J("fs"),kn=J("path"),{promisify:w0}=J("util"),kDe=Dz(),{isWindows:UDe,isLinux:MDe,EMPTY_FN:qDe,EMPTY_STR:jDe,KEY_LISTENERS:gh,KEY_ERR:zN,KEY_RAW:S0,HANDLER_KEYS:VDe,EV_CHANGE:FA,EV_ADD:LA,EV_ADD_DIR:HDe,EV_ERROR:Tz,STR_DATA:GDe,STR_END:WDe,BRACE_START:QDe,STAR:zDe}=BA(),KDe="watch",$De=w0(Ru.open),Iz=w0(Ru.stat),YDe=w0(Ru.lstat),XDe=w0(Ru.close),KN=w0(Ru.realpath),JDe={lstat:YDe,stat:Iz},YN=(e,t)=>{e instanceof Set?e.forEach(t):t(e)},b0=(e,t,r)=>{let n=e[t];n instanceof Set||(e[t]=n=new Set([n])),n.add(r)},ZDe=e=>t=>{let r=e[t];r instanceof Set?r.clear():delete e[t]},D0=(e,t,r)=>{let n=e[t];n instanceof Set?n.delete(r):n===r&&delete e[t]},Rz=e=>e instanceof Set?e.size===0:!e,kA=new Map;function wz(e,t,r,n,i){let s=(a,o)=>{r(e),i(a,o,{watchedPath:e}),o&&e!==o&&UA(kn.resolve(e,o),gh,kn.join(e,o))};try{return Ru.watch(e,t,s)}catch(a){n(a)}}var UA=(e,t,r,n,i)=>{let s=kA.get(e);s&&YN(s[t],a=>{a(r,n,i)})},ewe=(e,t,r,n)=>{let{listener:i,errHandler:s,rawEmitter:a}=n,o=kA.get(t),u;if(!r.persistent)return u=wz(e,r,i,s,a),u.close.bind(u);if(o)b0(o,gh,i),b0(o,zN,s),b0(o,S0,a);else{if(u=wz(e,r,UA.bind(null,t,gh),s,UA.bind(null,t,S0)),!u)return;u.on(Tz,async l=>{let f=UA.bind(null,t,zN);if(o.watcherUnusable=!0,UDe&&l.code==="EPERM")try{let h=await $De(e,"r");await XDe(h),f(l)}catch{}else f(l)}),o={listeners:i,errHandlers:s,rawEmitters:a,watcher:u},kA.set(t,o)}return()=>{D0(o,gh,i),D0(o,zN,s),D0(o,S0,a),Rz(o.listeners)&&(o.watcher.close(),kA.delete(t),VDe.forEach(ZDe(o)),o.watcher=void 0,Object.freeze(o))}},$N=new Map,twe=(e,t,r,n)=>{let{listener:i,rawEmitter:s}=n,a=$N.get(t),o=new Set,u=new Set,l=a&&a.options;return l&&(l.persistent<r.persistent||l.interval>r.interval)&&(o=a.listeners,u=a.rawEmitters,Ru.unwatchFile(t),a=void 0),a?(b0(a,gh,i),b0(a,S0,s)):(a={listeners:i,rawEmitters:s,options:r,watcher:Ru.watchFile(t,r,(f,h)=>{YN(a.rawEmitters,y=>{y(FA,t,{curr:f,prev:h})});let m=f.mtimeMs;(f.size!==h.size||m>h.mtimeMs||m===0)&&YN(a.listeners,y=>y(e,f))})},$N.set(t,a)),()=>{D0(a,gh,i),D0(a,S0,s),Rz(a.listeners)&&($N.delete(t),Ru.unwatchFile(t),a.options=a.watcher=void 0,Object.freeze(a))}},XN=class{constructor(t){this.fsw=t,this._boundHandleError=r=>t._handleError(r)}_watchWithNodeFs(t,r){let n=this.fsw.options,i=kn.dirname(t),s=kn.basename(t);this.fsw._getWatchedDir(i).add(s);let o=kn.resolve(t),u={persistent:n.persistent};r||(r=qDe);let l;return n.usePolling?(u.interval=n.enableBinaryInterval&&kDe(s)?n.binaryInterval:n.interval,l=twe(t,o,u,{listener:r,rawEmitter:this.fsw._emitRaw})):l=ewe(t,o,u,{listener:r,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),l}_handleFile(t,r,n){if(this.fsw.closed)return;let i=kn.dirname(t),s=kn.basename(t),a=this.fsw._getWatchedDir(i),o=r;if(a.has(s))return;let u=async(f,h)=>{if(this.fsw._throttle(KDe,t,5)){if(!h||h.mtimeMs===0)try{let m=await Iz(t);if(this.fsw.closed)return;let y=m.atimeMs,_=m.mtimeMs;(!y||y<=_||_!==o.mtimeMs)&&this.fsw._emit(FA,t,m),MDe&&o.ino!==m.ino?(this.fsw._closeFile(f),o=m,this.fsw._addPathCloser(f,this._watchWithNodeFs(t,u))):o=m}catch{this.fsw._remove(i,s)}else if(a.has(s)){let m=h.atimeMs,y=h.mtimeMs;(!m||m<=y||y!==o.mtimeMs)&&this.fsw._emit(FA,t,h),o=h}}},l=this._watchWithNodeFs(t,u);if(!(n&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(t)){if(!this.fsw._throttle(LA,t,0))return;this.fsw._emit(LA,t,r)}return l}async _handleSymlink(t,r,n,i){if(this.fsw.closed)return;let s=t.fullPath,a=this.fsw._getWatchedDir(r);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let o;try{o=await KN(n)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(a.has(i)?this.fsw._symlinkPaths.get(s)!==o&&(this.fsw._symlinkPaths.set(s,o),this.fsw._emit(FA,n,t.stats)):(a.add(i),this.fsw._symlinkPaths.set(s,o),this.fsw._emit(LA,n,t.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(s))return!0;this.fsw._symlinkPaths.set(s,!0)}_handleRead(t,r,n,i,s,a,o){if(t=kn.join(t,jDe),!n.hasGlob&&(o=this.fsw._throttle("readdir",t,1e3),!o))return;let u=this.fsw._getWatchedDir(n.path),l=new Set,f=this.fsw._readdirp(t,{fileFilter:h=>n.filterPath(h),directoryFilter:h=>n.filterDir(h),depth:0}).on(GDe,async h=>{if(this.fsw.closed){f=void 0;return}let m=h.path,y=kn.join(t,m);if(l.add(m),!(h.stats.isSymbolicLink()&&await this._handleSymlink(h,t,y,m))){if(this.fsw.closed){f=void 0;return}(m===i||!i&&!u.has(m))&&(this.fsw._incrReadyCount(),y=kn.join(s,kn.relative(s,y)),this._addToNodeFs(y,r,n,a+1))}}).on(Tz,this._boundHandleError);return new Promise(h=>f.once(WDe,()=>{if(this.fsw.closed){f=void 0;return}let m=o?o.clear():!1;h(),u.getChildren().filter(y=>y!==t&&!l.has(y)&&(!n.hasGlob||n.filterPath({fullPath:kn.resolve(t,y)}))).forEach(y=>{this.fsw._remove(t,y)}),f=void 0,m&&this._handleRead(t,!1,n,i,s,a,o)}))}async _handleDir(t,r,n,i,s,a,o){let u=this.fsw._getWatchedDir(kn.dirname(t)),l=u.has(kn.basename(t));!(n&&this.fsw.options.ignoreInitial)&&!s&&!l&&(!a.hasGlob||a.globFilter(t))&&this.fsw._emit(HDe,t,r),u.add(kn.basename(t)),this.fsw._getWatchedDir(t);let f,h,m=this.fsw.options.depth;if((m==null||i<=m)&&!this.fsw._symlinkPaths.has(o)){if(!s&&(await this._handleRead(t,n,a,s,t,i,f),this.fsw.closed))return;h=this._watchWithNodeFs(t,(y,_)=>{_&&_.mtimeMs===0||this._handleRead(y,!1,a,s,t,i,f)})}return h}async _addToNodeFs(t,r,n,i,s){let a=this.fsw._emitReady;if(this.fsw._isIgnored(t)||this.fsw.closed)return a(),!1;let o=this.fsw._getWatchHelpers(t,i);!o.hasGlob&&n&&(o.hasGlob=n.hasGlob,o.globFilter=n.globFilter,o.filterPath=u=>n.filterPath(u),o.filterDir=u=>n.filterDir(u));try{let u=await JDe[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,u))return a(),!1;let l=this.fsw.options.followSymlinks&&!t.includes(zDe)&&!t.includes(QDe),f;if(u.isDirectory()){let h=kn.resolve(t),m=l?await KN(t):t;if(this.fsw.closed||(f=await this._handleDir(o.watchPath,u,r,i,s,o,m),this.fsw.closed))return;h!==m&&m!==void 0&&this.fsw._symlinkPaths.set(h,m)}else if(u.isSymbolicLink()){let h=l?await KN(t):t;if(this.fsw.closed)return;let m=kn.dirname(o.watchPath);if(this.fsw._getWatchedDir(m).add(o.watchPath),this.fsw._emit(LA,o.watchPath,u),f=await this._handleDir(m,u,r,i,t,o,h),this.fsw.closed)return;h!==void 0&&this.fsw._symlinkPaths.set(kn.resolve(t),h)}else f=this._handleFile(o.watchPath,u,r);return a(),this.fsw._addPathCloser(t,f),!1}catch(u){if(this.fsw._handleError(u))return a(),t}}};Nz.exports=XN});var Mz=w((Zit,sO)=>{"use strict";d();var nO=J("fs"),Un=J("path"),{promisify:iO}=J("util"),vh;try{vh=J("fsevents")}catch(e){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(e)}if(vh){let e=process.version.match(/v(\d+)\.(\d+)/);if(e&&e[1]&&e[2]){let t=Number.parseInt(e[1],10),r=Number.parseInt(e[2],10);t===8&&r<16&&(vh=void 0)}}var{EV_ADD:JN,EV_CHANGE:rwe,EV_ADD_DIR:Pz,EV_UNLINK:MA,EV_ERROR:nwe,STR_DATA:iwe,STR_END:swe,FSEVENT_CREATED:awe,FSEVENT_MODIFIED:owe,FSEVENT_DELETED:uwe,FSEVENT_MOVED:cwe,FSEVENT_UNKNOWN:lwe,FSEVENT_TYPE_FILE:pwe,FSEVENT_TYPE_DIRECTORY:T0,FSEVENT_TYPE_SYMLINK:Uz,ROOT_GLOBSTAR:Bz,DIR_SUFFIX:fwe,DOT_SLASH:Lz,FUNCTION_TYPE:ZN,EMPTY_FN:dwe,IDENTITY_FN:hwe}=BA(),mwe=e=>isNaN(e)?{}:{depth:e},tO=iO(nO.stat),gwe=iO(nO.lstat),Fz=iO(nO.realpath),vwe={stat:tO,lstat:gwe},qp=new Map,ywe=10,xwe=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Ewe=(e,t)=>({stop:vh.watch(e,t)});function _we(e,t,r,n){let i=Un.extname(t)?Un.dirname(t):t,s=Un.dirname(i),a=qp.get(i);Awe(s)&&(i=s);let o=Un.resolve(e),u=o!==t,l=(h,m,y)=>{u&&(h=h.replace(t,o)),(h===o||!h.indexOf(o+Un.sep))&&r(h,m,y)},f=!1;for(let h of qp.keys())if(t.indexOf(Un.resolve(h)+Un.sep)===0){i=h,a=qp.get(i),f=!0;break}return a||f?a.listeners.add(l):(a={listeners:new Set([l]),rawEmitter:n,watcher:Ewe(i,(h,m)=>{if(!a.listeners.size)return;let y=vh.getInfo(h,m);a.listeners.forEach(_=>{_(h,m,y)}),a.rawEmitter(y.event,h,y)})},qp.set(i,a)),()=>{let h=a.listeners;if(h.delete(l),!h.size&&(qp.delete(i),a.watcher))return a.watcher.stop().then(()=>{a.rawEmitter=a.watcher=void 0,Object.freeze(a)})}}var Awe=e=>{let t=0;for(let r of qp.keys())if(r.indexOf(e)===0&&(t++,t>=ywe))return!0;return!1},Cwe=()=>vh&&qp.size<128,eO=(e,t)=>{let r=0;for(;!e.indexOf(t)&&(e=Un.dirname(e))!==t;)r++;return r},kz=(e,t)=>e.type===T0&&t.isDirectory()||e.type===Uz&&t.isSymbolicLink()||e.type===pwe&&t.isFile(),rO=class{constructor(t){this.fsw=t}checkIgnored(t,r){let n=this.fsw._ignoredPaths;if(this.fsw._isIgnored(t,r))return n.add(t),r&&r.isDirectory()&&n.add(t+Bz),!0;n.delete(t),n.delete(t+Bz)}addOrChange(t,r,n,i,s,a,o,u){let l=s.has(a)?rwe:JN;this.handleEvent(l,t,r,n,i,s,a,o,u)}async checkExists(t,r,n,i,s,a,o,u){try{let l=await tO(t);if(this.fsw.closed)return;kz(o,l)?this.addOrChange(t,r,n,i,s,a,o,u):this.handleEvent(MA,t,r,n,i,s,a,o,u)}catch(l){l.code==="EACCES"?this.addOrChange(t,r,n,i,s,a,o,u):this.handleEvent(MA,t,r,n,i,s,a,o,u)}}handleEvent(t,r,n,i,s,a,o,u,l){if(!(this.fsw.closed||this.checkIgnored(r)))if(t===MA){let f=u.type===T0;(f||a.has(o))&&this.fsw._remove(s,o,f)}else{if(t===JN){if(u.type===T0&&this.fsw._getWatchedDir(r),u.type===Uz&&l.followSymlinks){let h=l.depth===void 0?void 0:eO(n,i)+1;return this._addToFsEvents(r,!1,!0,h)}this.fsw._getWatchedDir(s).add(o)}let f=u.type===T0?t+fwe:t;this.fsw._emit(f,r),f===Pz&&this._addToFsEvents(r,!1,!0)}}_watchWithFsEvents(t,r,n,i){if(this.fsw.closed||this.fsw._isIgnored(t))return;let s=this.fsw.options,o=_we(t,r,async(u,l,f)=>{if(this.fsw.closed||s.depth!==void 0&&eO(u,r)>s.depth)return;let h=n(Un.join(t,Un.relative(t,u)));if(i&&!i(h))return;let m=Un.dirname(h),y=Un.basename(h),_=this.fsw._getWatchedDir(f.type===T0?h:m);if(xwe.has(l)||f.event===lwe)if(typeof s.ignored===ZN){let C;try{C=await tO(h)}catch{}if(this.fsw.closed||this.checkIgnored(h,C))return;kz(f,C)?this.addOrChange(h,u,r,m,_,y,f,s):this.handleEvent(MA,h,u,r,m,_,y,f,s)}else this.checkExists(h,u,r,m,_,y,f,s);else switch(f.event){case awe:case owe:return this.addOrChange(h,u,r,m,_,y,f,s);case uwe:case cwe:return this.checkExists(h,u,r,m,_,y,f,s)}},this.fsw._emitRaw);return this.fsw._emitReady(),o}async _handleFsEventsSymlink(t,r,n,i){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(r))){this.fsw._symlinkPaths.set(r,!0),this.fsw._incrReadyCount();try{let s=await Fz(t);if(this.fsw.closed)return;if(this.fsw._isIgnored(s))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(s||t,a=>{let o=t;return s&&s!==Lz?o=a.replace(s,t):a!==Lz&&(o=Un.join(t,a)),n(o)},!1,i)}catch(s){if(this.fsw._handleError(s))return this.fsw._emitReady()}}}emitAdd(t,r,n,i,s){let a=n(t),o=r.isDirectory(),u=this.fsw._getWatchedDir(Un.dirname(a)),l=Un.basename(a);o&&this.fsw._getWatchedDir(a),!u.has(l)&&(u.add(l),(!i.ignoreInitial||s===!0)&&this.fsw._emit(o?Pz:JN,a,r))}initWatch(t,r,n,i){if(this.fsw.closed)return;let s=this._watchWithFsEvents(n.watchPath,Un.resolve(t||n.watchPath),i,n.globFilter);this.fsw._addPathCloser(r,s)}async _addToFsEvents(t,r,n,i){if(this.fsw.closed)return;let s=this.fsw.options,a=typeof r===ZN?r:hwe,o=this.fsw._getWatchHelpers(t);try{let u=await vwe[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,u))throw null;if(u.isDirectory()){if(o.globFilter||this.emitAdd(a(t),u,a,s,n),i&&i>s.depth)return;this.fsw._readdirp(o.watchPath,{fileFilter:l=>o.filterPath(l),directoryFilter:l=>o.filterDir(l),...mwe(s.depth-(i||0))}).on(iwe,l=>{if(this.fsw.closed||l.stats.isDirectory()&&!o.filterPath(l))return;let f=Un.join(o.watchPath,l.path),{fullPath:h}=l;if(o.followSymlinks&&l.stats.isSymbolicLink()){let m=s.depth===void 0?void 0:eO(f,Un.resolve(o.watchPath))+1;this._handleFsEventsSymlink(f,h,a,m)}else this.emitAdd(f,l.stats,a,s,n)}).on(nwe,dwe).on(swe,()=>{this.fsw._emitReady()})}else this.emitAdd(o.watchPath,u,a,s,n),this.fsw._emitReady()}catch(u){(!u||this.fsw._handleError(u))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(s.persistent&&n!==!0)if(typeof r===ZN)this.initWatch(void 0,t,o,a);else{let u;try{u=await Fz(o.watchPath)}catch{}this.initWatch(u,t,o,a)}}};sO.exports=rO;sO.exports.canUse=Cwe});var Yz=w(EO=>{"use strict";d();var{EventEmitter:Swe}=J("events"),yO=J("fs"),gr=J("path"),{promisify:Qz}=J("util"),bwe=hz(),pO=_z().default,Dwe=H2(),aO=j2(),wwe=$2(),Twe=GN(),Iwe=Oz(),qz=Mz(),{EV_ALL:oO,EV_READY:Rwe,EV_ADD:qA,EV_CHANGE:I0,EV_UNLINK:jz,EV_ADD_DIR:Nwe,EV_UNLINK_DIR:Owe,EV_RAW:Pwe,EV_ERROR:uO,STR_CLOSE:Bwe,STR_END:Lwe,BACK_SLASH_RE:Fwe,DOUBLE_SLASH_RE:Vz,SLASH_OR_BACK_SLASH_RE:kwe,DOT_RE:Uwe,REPLACER_RE:Mwe,SLASH:cO,SLASH_SLASH:qwe,BRACE_START:jwe,BANG:fO,ONE_DOT:zz,TWO_DOTS:Vwe,GLOBSTAR:Hwe,SLASH_GLOBSTAR:lO,ANYMATCH_OPTS:dO,STRING_TYPE:xO,FUNCTION_TYPE:Gwe,EMPTY_STR:hO,EMPTY_FN:Wwe,isWindows:Qwe,isMacos:zwe,isIBMi:Kwe}=BA(),$we=Qz(yO.stat),Ywe=Qz(yO.readdir),mO=(e=[])=>Array.isArray(e)?e:[e],Kz=(e,t=[])=>(e.forEach(r=>{Array.isArray(r)?Kz(r,t):t.push(r)}),t),Hz=e=>{let t=Kz(mO(e));if(!t.every(r=>typeof r===xO))throw new TypeError(`Non-string provided as watch path: ${t}`);return t.map($z)},Gz=e=>{let t=e.replace(Fwe,cO),r=!1;for(t.startsWith(qwe)&&(r=!0);t.match(Vz);)t=t.replace(Vz,cO);return r&&(t=cO+t),t},$z=e=>Gz(gr.normalize(Gz(e))),Wz=(e=hO)=>t=>typeof t!==xO?t:$z(gr.isAbsolute(t)?t:gr.join(e,t)),Xwe=(e,t)=>gr.isAbsolute(e)?e:e.startsWith(fO)?fO+gr.join(t,e.slice(1)):gr.join(t,e),ja=(e,t)=>e[t]===void 0,gO=class{constructor(t,r){this.path=t,this._removeWatcher=r,this.items=new Set}add(t){let{items:r}=this;r&&t!==zz&&t!==Vwe&&r.add(t)}async remove(t){let{items:r}=this;if(!r||(r.delete(t),r.size>0))return;let n=this.path;try{await Ywe(n)}catch{this._removeWatcher&&this._removeWatcher(gr.dirname(n),gr.basename(n))}}has(t){let{items:r}=this;if(r)return r.has(t)}getChildren(){let{items:t}=this;if(t)return[...t.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},Jwe="stat",Zwe="lstat",vO=class{constructor(t,r,n,i){this.fsw=i,this.path=t=t.replace(Mwe,hO),this.watchPath=r,this.fullWatchPath=gr.resolve(r),this.hasGlob=r!==t,t===hO&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&n?void 0:!1,this.globFilter=this.hasGlob?pO(t,void 0,dO):!1,this.dirParts=this.getDirParts(t),this.dirParts.forEach(s=>{s.length>1&&s.pop()}),this.followSymlinks=n,this.statMethod=n?Jwe:Zwe}checkGlobSymlink(t){return this.globSymlink===void 0&&(this.globSymlink=t.fullParentDir===this.fullWatchPath?!1:{realPath:t.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?t.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):t.fullPath}entryPath(t){return gr.join(this.watchPath,gr.relative(this.watchPath,this.checkGlobSymlink(t)))}filterPath(t){let{stats:r}=t;if(r&&r.isSymbolicLink())return this.filterDir(t);let n=this.entryPath(t);return(this.hasGlob&&typeof this.globFilter===Gwe?this.globFilter(n):!0)&&this.fsw._isntIgnored(n,r)&&this.fsw._hasReadPermissions(r)}getDirParts(t){if(!this.hasGlob)return[];let r=[];return(t.includes(jwe)?wwe.expand(t):[t]).forEach(i=>{r.push(gr.relative(this.watchPath,i).split(kwe))}),r}filterDir(t){if(this.hasGlob){let r=this.getDirParts(this.checkGlobSymlink(t)),n=!1;this.unmatchedGlob=!this.dirParts.some(i=>i.every((s,a)=>(s===Hwe&&(n=!0),n||!r[0][a]||pO(s,r[0][a],dO))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(t),t.stats)}},jA=class extends Swe{constructor(t){super();let r={};t&&Object.assign(r,t),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,ja(r,"persistent")&&(r.persistent=!0),ja(r,"ignoreInitial")&&(r.ignoreInitial=!1),ja(r,"ignorePermissionErrors")&&(r.ignorePermissionErrors=!1),ja(r,"interval")&&(r.interval=100),ja(r,"binaryInterval")&&(r.binaryInterval=300),ja(r,"disableGlobbing")&&(r.disableGlobbing=!1),r.enableBinaryInterval=r.binaryInterval!==r.interval,ja(r,"useFsEvents")&&(r.useFsEvents=!r.usePolling),qz.canUse()||(r.useFsEvents=!1),ja(r,"usePolling")&&!r.useFsEvents&&(r.usePolling=zwe),Kwe&&(r.usePolling=!0);let i=process.env.CHOKIDAR_USEPOLLING;if(i!==void 0){let u=i.toLowerCase();u==="false"||u==="0"?r.usePolling=!1:u==="true"||u==="1"?r.usePolling=!0:r.usePolling=!!u}let s=process.env.CHOKIDAR_INTERVAL;s&&(r.interval=Number.parseInt(s,10)),ja(r,"atomic")&&(r.atomic=!r.usePolling&&!r.useFsEvents),r.atomic&&(this._pendingUnlinks=new Map),ja(r,"followSymlinks")&&(r.followSymlinks=!0),ja(r,"awaitWriteFinish")&&(r.awaitWriteFinish=!1),r.awaitWriteFinish===!0&&(r.awaitWriteFinish={});let a=r.awaitWriteFinish;a&&(a.stabilityThreshold||(a.stabilityThreshold=2e3),a.pollInterval||(a.pollInterval=100),this._pendingWrites=new Map),r.ignored&&(r.ignored=mO(r.ignored));let o=0;this._emitReady=()=>{o++,o>=this._readyCount&&(this._emitReady=Wwe,this._readyEmitted=!0,process.nextTick(()=>this.emit(Rwe)))},this._emitRaw=(...u)=>this.emit(Pwe,...u),this._readyEmitted=!1,this.options=r,r.useFsEvents?this._fsEventsHandler=new qz(this):this._nodeFsHandler=new Iwe(this),Object.freeze(r)}add(t,r,n){let{cwd:i,disableGlobbing:s}=this.options;this.closed=!1;let a=Hz(t);return i&&(a=a.map(o=>{let u=Xwe(o,i);return s||!aO(o)?u:Twe(u)})),a=a.filter(o=>o.startsWith(fO)?(this._ignoredPaths.add(o.slice(1)),!1):(this._ignoredPaths.delete(o),this._ignoredPaths.delete(o+lO),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=a.length),this.options.persistent&&(this._readyCount*=2),a.forEach(o=>this._fsEventsHandler._addToFsEvents(o))):(this._readyCount||(this._readyCount=0),this._readyCount+=a.length,Promise.all(a.map(async o=>{let u=await this._nodeFsHandler._addToNodeFs(o,!n,0,0,r);return u&&this._emitReady(),u})).then(o=>{this.closed||o.filter(u=>u).forEach(u=>{this.add(gr.dirname(u),gr.basename(r||u))})})),this}unwatch(t){if(this.closed)return this;let r=Hz(t),{cwd:n}=this.options;return r.forEach(i=>{!gr.isAbsolute(i)&&!this._closers.has(i)&&(n&&(i=gr.join(n,i)),i=gr.resolve(i)),this._closePath(i),this._ignoredPaths.add(i),this._watched.has(i)&&this._ignoredPaths.add(i+lO),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let t=[];return this._closers.forEach(r=>r.forEach(n=>{let i=n();i instanceof Promise&&t.push(i)})),this._streams.forEach(r=>r.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(r=>r.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(r=>{this[`_${r}`].clear()}),this._closePromise=t.length?Promise.all(t).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let t={};return this._watched.forEach((r,n)=>{let i=this.options.cwd?gr.relative(this.options.cwd,n):n;t[i||zz]=r.getChildren().sort()}),t}emitWithAll(t,r){this.emit(...r),t!==uO&&this.emit(oO,...r)}async _emit(t,r,n,i,s){if(this.closed)return;let a=this.options;Qwe&&(r=gr.normalize(r)),a.cwd&&(r=gr.relative(a.cwd,r));let o=[t,r];s!==void 0?o.push(n,i,s):i!==void 0?o.push(n,i):n!==void 0&&o.push(n);let u=a.awaitWriteFinish,l;if(u&&(l=this._pendingWrites.get(r)))return l.lastChange=new Date,this;if(a.atomic){if(t===jz)return this._pendingUnlinks.set(r,o),setTimeout(()=>{this._pendingUnlinks.forEach((f,h)=>{this.emit(...f),this.emit(oO,...f),this._pendingUnlinks.delete(h)})},typeof a.atomic=="number"?a.atomic:100),this;t===qA&&this._pendingUnlinks.has(r)&&(t=o[0]=I0,this._pendingUnlinks.delete(r))}if(u&&(t===qA||t===I0)&&this._readyEmitted){let f=(h,m)=>{h?(t=o[0]=uO,o[1]=h,this.emitWithAll(t,o)):m&&(o.length>2?o[2]=m:o.push(m),this.emitWithAll(t,o))};return this._awaitWriteFinish(r,u.stabilityThreshold,t,f),this}if(t===I0&&!this._throttle(I0,r,50))return this;if(a.alwaysStat&&n===void 0&&(t===qA||t===Nwe||t===I0)){let f=a.cwd?gr.join(a.cwd,r):r,h;try{h=await $we(f)}catch{}if(!h||this.closed)return;o.push(h)}return this.emitWithAll(t,o),this}_handleError(t){let r=t&&t.code;return t&&r!=="ENOENT"&&r!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||r!=="EPERM"&&r!=="EACCES")&&this.emit(uO,t),t||this.closed}_throttle(t,r,n){this._throttled.has(t)||this._throttled.set(t,new Map);let i=this._throttled.get(t),s=i.get(r);if(s)return s.count++,!1;let a,o=()=>{let l=i.get(r),f=l?l.count:0;return i.delete(r),clearTimeout(a),l&&clearTimeout(l.timeoutObject),f};a=setTimeout(o,n);let u={timeoutObject:a,clear:o,count:0};return i.set(r,u),u}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(t,r,n,i){let s,a=t;this.options.cwd&&!gr.isAbsolute(t)&&(a=gr.join(this.options.cwd,t));let o=new Date,u=l=>{yO.stat(a,(f,h)=>{if(f||!this._pendingWrites.has(t)){f&&f.code!=="ENOENT"&&i(f);return}let m=Number(new Date);l&&h.size!==l.size&&(this._pendingWrites.get(t).lastChange=m);let y=this._pendingWrites.get(t);m-y.lastChange>=r?(this._pendingWrites.delete(t),i(void 0,h)):s=setTimeout(u,this.options.awaitWriteFinish.pollInterval,h)})};this._pendingWrites.has(t)||(this._pendingWrites.set(t,{lastChange:o,cancelWait:()=>(this._pendingWrites.delete(t),clearTimeout(s),n)}),s=setTimeout(u,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(t,r){if(this.options.atomic&&Uwe.test(t))return!0;if(!this._userIgnored){let{cwd:n}=this.options,i=this.options.ignored,s=i&&i.map(Wz(n)),a=mO(s).filter(u=>typeof u===xO&&!aO(u)).map(u=>u+lO),o=this._getGlobIgnored().map(Wz(n)).concat(s,a);this._userIgnored=pO(o,void 0,dO)}return this._userIgnored([t,r])}_isntIgnored(t,r){return!this._isIgnored(t,r)}_getWatchHelpers(t,r){let n=r||this.options.disableGlobbing||!aO(t)?t:Dwe(t),i=this.options.followSymlinks;return new vO(t,n,i,this)}_getWatchedDir(t){this._boundRemove||(this._boundRemove=this._remove.bind(this));let r=gr.resolve(t);return this._watched.has(r)||this._watched.set(r,new gO(r,this._boundRemove)),this._watched.get(r)}_hasReadPermissions(t){if(this.options.ignorePermissionErrors)return!0;let n=(t&&Number.parseInt(t.mode,10))&511;return!!(4&Number.parseInt(n.toString(8)[0],10))}_remove(t,r,n){let i=gr.join(t,r),s=gr.resolve(i);if(n=n??(this._watched.has(i)||this._watched.has(s)),!this._throttle("remove",i,100))return;!n&&!this.options.useFsEvents&&this._watched.size===1&&this.add(t,r,!0),this._getWatchedDir(i).getChildren().forEach(m=>this._remove(i,m));let u=this._getWatchedDir(t),l=u.has(r);u.remove(r),this._symlinkPaths.has(s)&&this._symlinkPaths.delete(s);let f=i;if(this.options.cwd&&(f=gr.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(f)&&this._pendingWrites.get(f).cancelWait()===qA)return;this._watched.delete(i),this._watched.delete(s);let h=n?Owe:jz;l&&!this._isIgnored(i)&&this._emit(h,i),this.options.useFsEvents||this._closePath(i)}_closePath(t){this._closeFile(t);let r=gr.dirname(t);this._getWatchedDir(r).remove(gr.basename(t))}_closeFile(t){let r=this._closers.get(t);r&&(r.forEach(n=>n()),this._closers.delete(t))}_addPathCloser(t,r){if(!r)return;let n=this._closers.get(t);n||(n=[],this._closers.set(t,n)),n.push(r)}_readdirp(t,r){if(this.closed)return;let n={type:oO,alwaysStat:!0,lstat:!0,...r},i=bwe(t,n);return this._streams.add(i),i.once(Bwe,()=>{i=void 0}),i.once(Lwe,()=>{i&&(this._streams.delete(i),i=void 0)}),i}};EO.FSWatcher=jA;var eTe=(e,t)=>{let r=new jA(t);return r.add(e),r};EO.watch=eTe});var Ji=w(TO=>{"use strict";d();TO.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,s)=>i!=null?n(i):r(s))})},"name",{value:e.name})};TO.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var EK=w((kst,xK)=>{"use strict";d();var $c=J("constants"),UTe=process.cwd,QA=null,MTe=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return QA||(QA=UTe.call(process)),QA};try{process.cwd()}catch{}typeof process.chdir=="function"&&(IO=process.chdir,process.chdir=function(e){QA=null,IO.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,IO));var IO;xK.exports=qTe;function qTe(e){$c.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,h,m){m&&process.nextTick(m)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,h,m,y){y&&process.nextTick(y)},e.lchownSync=function(){}),MTe==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function h(m,y,_){var C=Date.now(),b=0;f(m,y,function D(L){if(L&&(L.code==="EACCES"||L.code==="EPERM"||L.code==="EBUSY")&&Date.now()-C<6e4){setTimeout(function(){e.stat(y,function(F,q){F&&F.code==="ENOENT"?f(m,y,D):_(L)})},b),b<100&&(b+=10);return}_&&_(L)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function h(m,y,_,C,b,D){var L;if(D&&typeof D=="function"){var F=0;L=function(q,M,k){if(q&&q.code==="EAGAIN"&&F<10)return F++,f.call(e,m,y,_,C,b,L);D.apply(this,arguments)}}return f.call(e,m,y,_,C,b,L)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(h,m,y,_,C){for(var b=0;;)try{return f.call(e,h,m,y,_,C)}catch(D){if(D.code==="EAGAIN"&&b<10){b++;continue}throw D}}}(e.readSync);function t(f){f.lchmod=function(h,m,y){f.open(h,$c.O_WRONLY|$c.O_SYMLINK,m,function(_,C){if(_){y&&y(_);return}f.fchmod(C,m,function(b){f.close(C,function(D){y&&y(b||D)})})})},f.lchmodSync=function(h,m){var y=f.openSync(h,$c.O_WRONLY|$c.O_SYMLINK,m),_=!0,C;try{C=f.fchmodSync(y,m),_=!1}finally{if(_)try{f.closeSync(y)}catch{}else f.closeSync(y)}return C}}function r(f){$c.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,m,y,_){f.open(h,$c.O_SYMLINK,function(C,b){if(C){_&&_(C);return}f.futimes(b,m,y,function(D){f.close(b,function(L){_&&_(D||L)})})})},f.lutimesSync=function(h,m,y){var _=f.openSync(h,$c.O_SYMLINK),C,b=!0;try{C=f.futimesSync(_,m,y),b=!1}finally{if(b)try{f.closeSync(_)}catch{}else f.closeSync(_)}return C}):f.futimes&&(f.lutimes=function(h,m,y,_){_&&process.nextTick(_)},f.lutimesSync=function(){})}function n(f){return f&&function(h,m,y){return f.call(e,h,m,function(_){l(_)&&(_=null),y&&y.apply(this,arguments)})}}function i(f){return f&&function(h,m){try{return f.call(e,h,m)}catch(y){if(!l(y))throw y}}}function s(f){return f&&function(h,m,y,_){return f.call(e,h,m,y,function(C){l(C)&&(C=null),_&&_.apply(this,arguments)})}}function a(f){return f&&function(h,m,y){try{return f.call(e,h,m,y)}catch(_){if(!l(_))throw _}}}function o(f){return f&&function(h,m,y){typeof m=="function"&&(y=m,m=null);function _(C,b){b&&(b.uid<0&&(b.uid+=4294967296),b.gid<0&&(b.gid+=4294967296)),y&&y.apply(this,arguments)}return m?f.call(e,h,m,_):f.call(e,h,_)}}function u(f){return f&&function(h,m){var y=m?f.call(e,h,m):f.call(e,h);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function l(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var CK=w((Mst,AK)=>{"use strict";d();var _K=J("stream").Stream;AK.exports=jTe;function jTe(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);_K.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var a=Object.keys(i),o=0,u=a.length;o<u;o++){var l=a[o];this[l]=i[l]}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(){s._read()});return}e.open(this.path,this.flags,this.mode,function(f,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);_K.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),a=0,o=s.length;a<o;a++){var u=s[a];this[u]=i[u]}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=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var bK=w((jst,SK)=>{"use strict";d();SK.exports=HTe;var VTe=Object.getPrototypeOf||function(e){return e.__proto__};function HTe(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:VTe(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var Ti=w((Hst,OO)=>{"use strict";d();var rn=J("fs"),GTe=EK(),WTe=CK(),QTe=bK(),zA=J("util"),Jn,$A;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Jn=Symbol.for("graceful-fs.queue"),$A=Symbol.for("graceful-fs.previous")):(Jn="___graceful-fs.queue",$A="___graceful-fs.previous");function zTe(){}function TK(e,t){Object.defineProperty(e,Jn,{get:function(){return t}})}var jp=zTe;zA.debuglog?jp=zA.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(jp=function(){var e=zA.format.apply(zA,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
48
|
-
GFS4: `),console.error(e)});rn[Jn]||(DK=global[Jn]||[],TK(rn,DK),rn.close=function(e){function t(r,n){return e.call(rn,r,function(i){i||wK(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,$A,{value:e}),t}(rn.close),rn.closeSync=function(e){function t(r){e.apply(rn,arguments),wK()}return Object.defineProperty(t,$A,{value:e}),t}(rn.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){jp(rn[Jn]),J("assert").equal(rn[Jn].length,0)}));var DK;global[Jn]||TK(global,rn[Jn]);OO.exports=RO(QTe(rn));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!rn.__patched&&(OO.exports=RO(rn),rn.__patched=!0);function RO(e){GTe(e),e.gracefulify=RO,e.createReadStream=M,e.createWriteStream=k;var t=e.readFile;e.readFile=r;function r(ne,pe,Q){return typeof pe=="function"&&(Q=pe,pe=null),be(ne,pe,Q);function be(Ie,et,j,z){return t(Ie,et,function(oe){oe&&(oe.code==="EMFILE"||oe.code==="ENFILE")?Eh([be,[Ie,et,j],oe,z||Date.now(),Date.now()]):typeof j=="function"&&j.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(ne,pe,Q,be){return typeof Q=="function"&&(be=Q,Q=null),Ie(ne,pe,Q,be);function Ie(et,j,z,oe,ve){return n(et,j,z,function(Ve){Ve&&(Ve.code==="EMFILE"||Ve.code==="ENFILE")?Eh([Ie,[et,j,z,oe],Ve,ve||Date.now(),Date.now()]):typeof oe=="function"&&oe.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=a);function a(ne,pe,Q,be){return typeof Q=="function"&&(be=Q,Q=null),Ie(ne,pe,Q,be);function Ie(et,j,z,oe,ve){return s(et,j,z,function(Ve){Ve&&(Ve.code==="EMFILE"||Ve.code==="ENFILE")?Eh([Ie,[et,j,z,oe],Ve,ve||Date.now(),Date.now()]):typeof oe=="function"&&oe.apply(this,arguments)})}}var o=e.copyFile;o&&(e.copyFile=u);function u(ne,pe,Q,be){return typeof Q=="function"&&(be=Q,Q=0),Ie(ne,pe,Q,be);function Ie(et,j,z,oe,ve){return o(et,j,z,function(Ve){Ve&&(Ve.code==="EMFILE"||Ve.code==="ENFILE")?Eh([Ie,[et,j,z,oe],Ve,ve||Date.now(),Date.now()]):typeof oe=="function"&&oe.apply(this,arguments)})}}var l=e.readdir;e.readdir=h;var f=/^v[0-5]\./;function h(ne,pe,Q){typeof pe=="function"&&(Q=pe,pe=null);var be=f.test(process.version)?function(j,z,oe,ve){return l(j,Ie(j,z,oe,ve))}:function(j,z,oe,ve){return l(j,z,Ie(j,z,oe,ve))};return be(ne,pe,Q);function Ie(et,j,z,oe){return function(ve,Ve){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?Eh([be,[et,j,z],ve,oe||Date.now(),Date.now()]):(Ve&&Ve.sort&&Ve.sort(),typeof z=="function"&&z.call(this,ve,Ve))}}}if(process.version.substr(0,4)==="v0.8"){var m=WTe(e);D=m.ReadStream,F=m.WriteStream}var y=e.ReadStream;y&&(D.prototype=Object.create(y.prototype),D.prototype.open=L);var _=e.WriteStream;_&&(F.prototype=Object.create(_.prototype),F.prototype.open=q),Object.defineProperty(e,"ReadStream",{get:function(){return D},set:function(ne){D=ne},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return F},set:function(ne){F=ne},enumerable:!0,configurable:!0});var C=D;Object.defineProperty(e,"FileReadStream",{get:function(){return C},set:function(ne){C=ne},enumerable:!0,configurable:!0});var b=F;Object.defineProperty(e,"FileWriteStream",{get:function(){return b},set:function(ne){b=ne},enumerable:!0,configurable:!0});function D(ne,pe){return this instanceof D?(y.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function L(){var ne=this;ce(ne.path,ne.flags,ne.mode,function(pe,Q){pe?(ne.autoClose&&ne.destroy(),ne.emit("error",pe)):(ne.fd=Q,ne.emit("open",Q),ne.read())})}function F(ne,pe){return this instanceof F?(_.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function q(){var ne=this;ce(ne.path,ne.flags,ne.mode,function(pe,Q){pe?(ne.destroy(),ne.emit("error",pe)):(ne.fd=Q,ne.emit("open",Q))})}function M(ne,pe){return new e.ReadStream(ne,pe)}function k(ne,pe){return new e.WriteStream(ne,pe)}var te=e.open;e.open=ce;function ce(ne,pe,Q,be){return typeof Q=="function"&&(be=Q,Q=null),Ie(ne,pe,Q,be);function Ie(et,j,z,oe,ve){return te(et,j,z,function(Ve,dt){Ve&&(Ve.code==="EMFILE"||Ve.code==="ENFILE")?Eh([Ie,[et,j,z,oe],Ve,ve||Date.now(),Date.now()]):typeof oe=="function"&&oe.apply(this,arguments)})}}return e}function Eh(e){jp("ENQUEUE",e[0].name,e[1]),rn[Jn].push(e),NO()}var KA;function wK(){for(var e=Date.now(),t=0;t<rn[Jn].length;++t)rn[Jn][t].length>2&&(rn[Jn][t][3]=e,rn[Jn][t][4]=e);NO()}function NO(){if(clearTimeout(KA),KA=void 0,rn[Jn].length!==0){var e=rn[Jn].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)jp("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){jp("TIMEOUT",t.name,r);var a=r.pop();typeof a=="function"&&a.call(null,n)}else{var o=Date.now()-s,u=Math.max(s-i,1),l=Math.min(u*1.2,100);o>=l?(jp("RETRY",t.name,r),t.apply(null,r.concat([i]))):rn[Jn].push(e)}KA===void 0&&(KA=setTimeout(NO,0))}}});var Vp=w(Yc=>{"use strict";d();var IK=Ji().fromCallback,Zi=Ti(),KTe=["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(e=>typeof Zi[e]=="function");Object.assign(Yc,Zi);KTe.forEach(e=>{Yc[e]=IK(Zi[e])});Yc.exists=function(e,t){return typeof t=="function"?Zi.exists(e,t):new Promise(r=>Zi.exists(e,r))};Yc.read=function(e,t,r,n,i,s){return typeof s=="function"?Zi.read(e,t,r,n,i,s):new Promise((a,o)=>{Zi.read(e,t,r,n,i,(u,l,f)=>{if(u)return o(u);a({bytesRead:l,buffer:f})})})};Yc.write=function(e,t,...r){return typeof r[r.length-1]=="function"?Zi.write(e,t,...r):new Promise((n,i)=>{Zi.write(e,t,...r,(s,a,o)=>{if(s)return i(s);n({bytesWritten:a,buffer:o})})})};typeof Zi.writev=="function"&&(Yc.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?Zi.writev(e,t,...r):new Promise((n,i)=>{Zi.writev(e,t,...r,(s,a,o)=>{if(s)return i(s);n({bytesWritten:a,buffers:o})})})});typeof Zi.realpath.native=="function"?Yc.realpath.native=IK(Zi.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var NK=w((zst,RK)=>{"use strict";d();var $Te=J("path");RK.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace($Te.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}}});var LK=w(($st,PO)=>{"use strict";d();var OK=Vp(),{checkPath:PK}=NK(),BK=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};PO.exports.makeDir=async(e,t)=>(PK(e),OK.mkdir(e,{mode:BK(t),recursive:!0}));PO.exports.makeDirSync=(e,t)=>(PK(e),OK.mkdirSync(e,{mode:BK(t),recursive:!0}))});var Va=w((Xst,FK)=>{"use strict";d();var YTe=Ji().fromPromise,{makeDir:XTe,makeDirSync:BO}=LK(),LO=YTe(XTe);FK.exports={mkdirs:LO,mkdirsSync:BO,mkdirp:LO,mkdirpSync:BO,ensureDir:LO,ensureDirSync:BO}});var Xc=w((Zst,UK)=>{"use strict";d();var JTe=Ji().fromPromise,kK=Vp();function ZTe(e){return kK.access(e).then(()=>!0).catch(()=>!1)}UK.exports={pathExists:JTe(ZTe),pathExistsSync:kK.existsSync}});var FO=w((tat,MK)=>{"use strict";d();var _h=Ti();function eIe(e,t,r,n){_h.open(e,"r+",(i,s)=>{if(i)return n(i);_h.futimes(s,t,r,a=>{_h.close(s,o=>{n&&n(a||o)})})})}function tIe(e,t,r){let n=_h.openSync(e,"r+");return _h.futimesSync(n,t,r),_h.closeSync(n)}MK.exports={utimesMillis:eIe,utimesMillisSync:tIe}});var Hp=w((nat,VK)=>{"use strict";d();var Ah=Vp(),Mn=J("path"),rIe=J("util");function nIe(e,t,r){let n=r.dereference?i=>Ah.stat(i,{bigint:!0}):i=>Ah.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,s])=>({srcStat:i,destStat:s}))}function iIe(e,t,r){let n,i=r.dereference?a=>Ah.statSync(a,{bigint:!0}):a=>Ah.lstatSync(a,{bigint:!0}),s=i(e);try{n=i(t)}catch(a){if(a.code==="ENOENT")return{srcStat:s,destStat:null};throw a}return{srcStat:s,destStat:n}}function sIe(e,t,r,n,i){rIe.callbackify(nIe)(e,t,n,(s,a)=>{if(s)return i(s);let{srcStat:o,destStat:u}=a;if(u){if(L0(o,u)){let l=Mn.basename(e),f=Mn.basename(t);return r==="move"&&l!==f&&l.toLowerCase()===f.toLowerCase()?i(null,{srcStat:o,destStat:u,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(o.isDirectory()&&!u.isDirectory())return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!o.isDirectory()&&u.isDirectory())return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return o.isDirectory()&&kO(e,t)?i(new Error(YA(e,t,r))):i(null,{srcStat:o,destStat:u})})}function aIe(e,t,r,n){let{srcStat:i,destStat:s}=iIe(e,t,n);if(s){if(L0(i,s)){let a=Mn.basename(e),o=Mn.basename(t);if(r==="move"&&a!==o&&a.toLowerCase()===o.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&kO(e,t))throw new Error(YA(e,t,r));return{srcStat:i,destStat:s}}function qK(e,t,r,n,i){let s=Mn.resolve(Mn.dirname(e)),a=Mn.resolve(Mn.dirname(r));if(a===s||a===Mn.parse(a).root)return i();Ah.stat(a,{bigint:!0},(o,u)=>o?o.code==="ENOENT"?i():i(o):L0(t,u)?i(new Error(YA(e,r,n))):qK(e,t,a,n,i))}function jK(e,t,r,n){let i=Mn.resolve(Mn.dirname(e)),s=Mn.resolve(Mn.dirname(r));if(s===i||s===Mn.parse(s).root)return;let a;try{a=Ah.statSync(s,{bigint:!0})}catch(o){if(o.code==="ENOENT")return;throw o}if(L0(t,a))throw new Error(YA(e,r,n));return jK(e,t,s,n)}function L0(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function kO(e,t){let r=Mn.resolve(e).split(Mn.sep).filter(i=>i),n=Mn.resolve(t).split(Mn.sep).filter(i=>i);return r.reduce((i,s,a)=>i&&n[a]===s,!0)}function YA(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}VK.exports={checkPaths:sIe,checkPathsSync:aIe,checkParentPaths:qK,checkParentPathsSync:jK,isSrcSubdir:kO,areIdentical:L0}});var YK=w((sat,$K)=>{"use strict";d();var es=Ti(),F0=J("path"),oIe=Va().mkdirs,uIe=Xc().pathExists,cIe=FO().utimesMillis,k0=Hp();function lIe(e,t,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;
|
|
49
|
-
|
|
50
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),k0.checkPaths(e,t,"copy",r,(i,s)=>{if(i)return n(i);let{srcStat:a,destStat:o}=s;k0.checkParentPaths(e,a,t,"copy",u=>u?n(u):r.filter?WK(HK,o,e,t,r,n):HK(o,e,t,r,n))})}function HK(e,t,r,n,i){let s=F0.dirname(r);uIe(s,(a,o)=>{if(a)return i(a);if(o)return XA(e,t,r,n,i);oIe(s,u=>u?i(u):XA(e,t,r,n,i))})}function WK(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(a=>a?e(t,r,n,i,s):s(),a=>s(a))}function pIe(e,t,r,n,i){return n.filter?WK(XA,e,t,r,n,i):XA(e,t,r,n,i)}function XA(e,t,r,n,i){(n.dereference?es.stat:es.lstat)(t,(a,o)=>a?i(a):o.isDirectory()?yIe(o,e,t,r,n,i):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?fIe(o,e,t,r,n,i):o.isSymbolicLink()?_Ie(e,t,r,n,i):o.isSocket()?i(new Error(`Cannot copy a socket file: ${t}`)):o.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${t}`)):i(new Error(`Unknown file: ${t}`)))}function fIe(e,t,r,n,i,s){return t?dIe(e,r,n,i,s):QK(e,r,n,i,s)}function dIe(e,t,r,n,i){if(n.overwrite)es.unlink(r,s=>s?i(s):QK(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function QK(e,t,r,n,i){es.copyFile(t,r,s=>s?i(s):n.preserveTimestamps?hIe(e.mode,t,r,i):JA(r,e.mode,i))}function hIe(e,t,r,n){return mIe(e)?gIe(r,e,i=>i?n(i):GK(e,t,r,n)):GK(e,t,r,n)}function mIe(e){return(e&128)===0}function gIe(e,t,r){return JA(e,t|128,r)}function GK(e,t,r,n){vIe(t,r,i=>i?n(i):JA(r,e,n))}function JA(e,t,r){return es.chmod(e,t,r)}function vIe(e,t,r){es.stat(e,(n,i)=>n?r(n):cIe(t,i.atime,i.mtime,r))}function yIe(e,t,r,n,i,s){return t?zK(r,n,i,s):xIe(e.mode,r,n,i,s)}function xIe(e,t,r,n,i){es.mkdir(r,s=>{if(s)return i(s);zK(t,r,n,a=>a?i(a):JA(r,e,i))})}function zK(e,t,r,n){es.readdir(e,(i,s)=>i?n(i):KK(s,e,t,r,n))}function KK(e,t,r,n,i){let s=e.pop();return s?EIe(e,s,t,r,n,i):i()}function EIe(e,t,r,n,i,s){let a=F0.join(r,t),o=F0.join(n,t);k0.checkPaths(a,o,"copy",i,(u,l)=>{if(u)return s(u);let{destStat:f}=l;pIe(f,a,o,i,h=>h?s(h):KK(e,r,n,i,s))})}function _Ie(e,t,r,n,i){es.readlink(t,(s,a)=>{if(s)return i(s);if(n.dereference&&(a=F0.resolve(process.cwd(),a)),e)es.readlink(r,(o,u)=>o?o.code==="EINVAL"||o.code==="UNKNOWN"?es.symlink(a,r,i):i(o):(n.dereference&&(u=F0.resolve(process.cwd(),u)),k0.isSrcSubdir(a,u)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&k0.isSrcSubdir(u,a)?i(new Error(`Cannot overwrite '${u}' with '${a}'.`)):AIe(a,r,i)));else return es.symlink(a,r,i)})}function AIe(e,t,r){es.unlink(t,n=>n?r(n):es.symlink(e,t,r))}$K.exports=lIe});var t$=w((oat,e$)=>{"use strict";d();var Ei=Ti(),U0=J("path"),CIe=Va().mkdirsSync,SIe=FO().utimesMillisSync,M0=Hp();function bIe(e,t,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;
|
|
51
|
-
|
|
52
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:i}=M0.checkPathsSync(e,t,"copy",r);return M0.checkParentPathsSync(e,n,t,"copy"),DIe(i,e,t,r)}function DIe(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=U0.dirname(r);return Ei.existsSync(i)||CIe(i),XK(e,t,r,n)}function wIe(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return XK(e,t,r,n)}function XK(e,t,r,n){let s=(n.dereference?Ei.statSync:Ei.lstatSync)(t);if(s.isDirectory())return BIe(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return TIe(s,e,t,r,n);if(s.isSymbolicLink())return kIe(e,t,r,n);throw s.isSocket()?new Error(`Cannot copy a socket file: ${t}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function TIe(e,t,r,n,i){return t?IIe(e,r,n,i):JK(e,r,n,i)}function IIe(e,t,r,n){if(n.overwrite)return Ei.unlinkSync(r),JK(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function JK(e,t,r,n){return Ei.copyFileSync(t,r),n.preserveTimestamps&&RIe(e.mode,t,r),UO(r,e.mode)}function RIe(e,t,r){return NIe(e)&&OIe(r,e),PIe(t,r)}function NIe(e){return(e&128)===0}function OIe(e,t){return UO(e,t|128)}function UO(e,t){return Ei.chmodSync(e,t)}function PIe(e,t){let r=Ei.statSync(e);return SIe(t,r.atime,r.mtime)}function BIe(e,t,r,n,i){return t?ZK(r,n,i):LIe(e.mode,r,n,i)}function LIe(e,t,r,n){return Ei.mkdirSync(r),ZK(t,r,n),UO(r,e)}function ZK(e,t,r){Ei.readdirSync(e).forEach(n=>FIe(n,e,t,r))}function FIe(e,t,r,n){let i=U0.join(t,e),s=U0.join(r,e),{destStat:a}=M0.checkPathsSync(i,s,"copy",n);return wIe(a,i,s,n)}function kIe(e,t,r,n){let i=Ei.readlinkSync(t);if(n.dereference&&(i=U0.resolve(process.cwd(),i)),e){let s;try{s=Ei.readlinkSync(r)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return Ei.symlinkSync(i,r);throw a}if(n.dereference&&(s=U0.resolve(process.cwd(),s)),M0.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(Ei.statSync(r).isDirectory()&&M0.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return UIe(i,r)}else return Ei.symlinkSync(i,r)}function UIe(e,t){return Ei.unlinkSync(t),Ei.symlinkSync(e,t)}e$.exports=bIe});var ZA=w((cat,r$)=>{"use strict";d();var MIe=Ji().fromCallback;r$.exports={copy:MIe(YK()),copySync:t$()}});var p$=w((pat,l$)=>{"use strict";d();var n$=Ti(),o$=J("path"),Ar=J("assert"),q0=process.platform==="win32";function u$(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||n$[r],r=r+"Sync",e[r]=e[r]||n$[r]}),e.maxBusyTries=e.maxBusyTries||3}function MO(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),Ar(e,"rimraf: missing path"),Ar.strictEqual(typeof e,"string","rimraf: path should be a string"),Ar.strictEqual(typeof r,"function","rimraf: callback function required"),Ar(t,"rimraf: invalid options argument provided"),Ar.strictEqual(typeof t,"object","rimraf: options should be object"),u$(t),i$(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;let a=n*100;return setTimeout(()=>i$(e,t,i),a)}s.code==="ENOENT"&&(s=null)}r(s)})}function i$(e,t,r){Ar(e),Ar(t),Ar(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&q0)return s$(e,t,n,r);if(i&&i.isDirectory())return eC(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return q0?s$(e,t,s,r):eC(e,t,s,r);if(s.code==="EISDIR")return eC(e,t,s,r)}return r(s)})})}function s$(e,t,r,n){Ar(e),Ar(t),Ar(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(s,a)=>{s?n(s.code==="ENOENT"?null:r):a.isDirectory()?eC(e,t,r,n):t.unlink(e,n)})})}function a$(e,t,r){let n;Ar(e),Ar(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?tC(e,t,r):t.unlinkSync(e)}function eC(e,t,r,n){Ar(e),Ar(t),Ar(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?qIe(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function qIe(e,t,r){Ar(e),Ar(t),Ar(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length,a;if(s===0)return t.rmdir(e,r);i.forEach(o=>{MO(o$.join(e,o),t,u=>{if(!a){if(u)return r(a=u);--s===0&&t.rmdir(e,r)}})})})}function c$(e,t){let r;t=t||{},u$(t),Ar(e,"rimraf: missing path"),Ar.strictEqual(typeof e,"string","rimraf: path should be a string"),Ar(t,"rimraf: missing options"),Ar.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&q0&&a$(e,t,n)}try{r&&r.isDirectory()?tC(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return q0?a$(e,t,n):tC(e,t,n);if(n.code!=="EISDIR")throw n;tC(e,t,n)}}function tC(e,t,r){Ar(e),Ar(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")jIe(e,t);else if(n.code!=="ENOENT")throw n}}function jIe(e,t){if(Ar(e),Ar(t),t.readdirSync(e).forEach(r=>c$(o$.join(e,r),t)),q0){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}l$.exports=MO;MO.sync=c$});var j0=w((dat,d$)=>{"use strict";d();var rC=Ti(),VIe=Ji().fromCallback,f$=p$();function HIe(e,t){if(rC.rm)return rC.rm(e,{recursive:!0,force:!0},t);f$(e,t)}function GIe(e){if(rC.rmSync)return rC.rmSync(e,{recursive:!0,force:!0});f$.sync(e)}d$.exports={remove:VIe(HIe),removeSync:GIe}});var _$=w((mat,E$)=>{"use strict";d();var WIe=Ji().fromPromise,g$=Vp(),v$=J("path"),y$=Va(),x$=j0(),h$=WIe(async function(t){let r;try{r=await g$.readdir(t)}catch{return y$.mkdirs(t)}return Promise.all(r.map(n=>x$.remove(v$.join(t,n))))});function m$(e){let t;try{t=g$.readdirSync(e)}catch{return y$.mkdirsSync(e)}t.forEach(r=>{r=v$.join(e,r),x$.removeSync(r)})}E$.exports={emptyDirSync:m$,emptydirSync:m$,emptyDir:h$,emptydir:h$}});var b$=w((vat,S$)=>{"use strict";d();var QIe=Ji().fromCallback,A$=J("path"),Jc=Ti(),C$=Va();function zIe(e,t){function r(){Jc.writeFile(e,"",n=>{if(n)return t(n);t()})}Jc.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let s=A$.dirname(e);Jc.stat(s,(a,o)=>{if(a)return a.code==="ENOENT"?C$.mkdirs(s,u=>{if(u)return t(u);r()}):t(a);o.isDirectory()?r():Jc.readdir(s,u=>{if(u)return t(u)})})})}function KIe(e){let t;try{t=Jc.statSync(e)}catch{}if(t&&t.isFile())return;let r=A$.dirname(e);try{Jc.statSync(r).isDirectory()||Jc.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")C$.mkdirsSync(r);else throw n}Jc.writeFileSync(e,"")}S$.exports={createFile:QIe(zIe),createFileSync:KIe}});var R$=w((xat,I$)=>{"use strict";d();var $Ie=Ji().fromCallback,D$=J("path"),Zc=Ti(),w$=Va(),YIe=Xc().pathExists,{areIdentical:T$}=Hp();function XIe(e,t,r){function n(i,s){Zc.link(i,s,a=>{if(a)return r(a);r(null)})}Zc.lstat(t,(i,s)=>{Zc.lstat(e,(a,o)=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),r(a);if(s&&T$(o,s))return r(null);let u=D$.dirname(t);YIe(u,(l,f)=>{if(l)return r(l);if(f)return n(e,t);w$.mkdirs(u,h=>{if(h)return r(h);n(e,t)})})})})}function JIe(e,t){let r;try{r=Zc.lstatSync(t)}catch{}try{let s=Zc.lstatSync(e);if(r&&T$(s,r))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=D$.dirname(t);return Zc.existsSync(n)||w$.mkdirsSync(n),Zc.linkSync(e,t)}I$.exports={createLink:$Ie(XIe),createLinkSync:JIe}});var O$=w((_at,N$)=>{"use strict";d();var el=J("path"),V0=Ti(),ZIe=Xc().pathExists;function e2e(e,t,r){if(el.isAbsolute(e))return V0.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=el.dirname(t),i=el.join(n,e);return ZIe(i,(s,a)=>s?r(s):a?r(null,{toCwd:i,toDst:e}):V0.lstat(e,o=>o?(o.message=o.message.replace("lstat","ensureSymlink"),r(o)):r(null,{toCwd:e,toDst:el.relative(n,e)})))}}function t2e(e,t){let r;if(el.isAbsolute(e)){if(r=V0.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=el.dirname(t),i=el.join(n,e);if(r=V0.existsSync(i),r)return{toCwd:i,toDst:e};if(r=V0.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:el.relative(n,e)}}}N$.exports={symlinkPaths:e2e,symlinkPathsSync:t2e}});var L$=w((Cat,B$)=>{"use strict";d();var P$=Ti();function r2e(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);P$.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function n2e(e,t){let r;if(t)return t;try{r=P$.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}B$.exports={symlinkType:r2e,symlinkTypeSync:n2e}});var H$=w((bat,V$)=>{"use strict";d();var i2e=Ji().fromCallback,k$=J("path"),Ha=Vp(),U$=Va(),s2e=U$.mkdirs,a2e=U$.mkdirsSync,M$=O$(),o2e=M$.symlinkPaths,u2e=M$.symlinkPathsSync,q$=L$(),c2e=q$.symlinkType,l2e=q$.symlinkTypeSync,p2e=Xc().pathExists,{areIdentical:j$}=Hp();function f2e(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Ha.lstat(t,(i,s)=>{!i&&s.isSymbolicLink()?Promise.all([Ha.stat(e),Ha.stat(t)]).then(([a,o])=>{if(j$(a,o))return n(null);F$(e,t,r,n)}):F$(e,t,r,n)})}function F$(e,t,r,n){o2e(e,t,(i,s)=>{if(i)return n(i);e=s.toDst,c2e(s.toCwd,r,(a,o)=>{if(a)return n(a);let u=k$.dirname(t);p2e(u,(l,f)=>{if(l)return n(l);if(f)return Ha.symlink(e,t,o,n);s2e(u,h=>{if(h)return n(h);Ha.symlink(e,t,o,n)})})})})}function d2e(e,t,r){let n;try{n=Ha.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){let o=Ha.statSync(e),u=Ha.statSync(t);if(j$(o,u))return}let i=u2e(e,t);e=i.toDst,r=l2e(i.toCwd,r);let s=k$.dirname(t);return Ha.existsSync(s)||a2e(s),Ha.symlinkSync(e,t,r)}V$.exports={createSymlink:i2e(f2e),createSymlinkSync:d2e}});var X$=w((wat,Y$)=>{"use strict";d();var{createFile:G$,createFileSync:W$}=b$(),{createLink:Q$,createLinkSync:z$}=R$(),{createSymlink:K$,createSymlinkSync:$$}=H$();Y$.exports={createFile:G$,createFileSync:W$,ensureFile:G$,ensureFileSync:W$,createLink:Q$,createLinkSync:z$,ensureLink:Q$,ensureLinkSync:z$,createSymlink:K$,createSymlinkSync:$$,ensureSymlink:K$,ensureSymlinkSync:$$}});var nC=w((Iat,J$)=>{"use strict";d();function h2e(e,{EOL:t=`
|
|
53
|
-
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function m2e(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}J$.exports={stringify:h2e,stripBom:m2e}});var rY=w((Nat,tY)=>{"use strict";d();var Ch;try{Ch=Ti()}catch{Ch=J("fs")}var iC=Ji(),{stringify:Z$,stripBom:eY}=nC();async function g2e(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Ch,n="throws"in t?t.throws:!0,i=await iC.fromCallback(r.readFile)(e,t);i=eY(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(a){if(n)throw a.message=`${e}: ${a.message}`,a;return null}return s}var v2e=iC.fromPromise(g2e);function y2e(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Ch,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=eY(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function x2e(e,t,r={}){let n=r.fs||Ch,i=Z$(t,r);await iC.fromCallback(n.writeFile)(e,i,r)}var E2e=iC.fromPromise(x2e);function _2e(e,t,r={}){let n=r.fs||Ch,i=Z$(t,r);return n.writeFileSync(e,i,r)}var A2e={readFile:v2e,readFileSync:y2e,writeFile:E2e,writeFileSync:_2e};tY.exports=A2e});var iY=w((Pat,nY)=>{"use strict";d();var sC=rY();nY.exports={readJson:sC.readFile,readJsonSync:sC.readFileSync,writeJson:sC.writeFile,writeJsonSync:sC.writeFileSync}});var aC=w((Lat,oY)=>{"use strict";d();var C2e=Ji().fromCallback,H0=Ti(),sY=J("path"),aY=Va(),S2e=Xc().pathExists;function b2e(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=sY.dirname(e);S2e(i,(s,a)=>{if(s)return n(s);if(a)return H0.writeFile(e,t,r,n);aY.mkdirs(i,o=>{if(o)return n(o);H0.writeFile(e,t,r,n)})})}function D2e(e,...t){let r=sY.dirname(e);if(H0.existsSync(r))return H0.writeFileSync(e,...t);aY.mkdirsSync(r),H0.writeFileSync(e,...t)}oY.exports={outputFile:C2e(b2e),outputFileSync:D2e}});var cY=w((kat,uY)=>{"use strict";d();var{stringify:w2e}=nC(),{outputFile:T2e}=aC();async function I2e(e,t,r={}){let n=w2e(t,r);await T2e(e,n,r)}uY.exports=I2e});var pY=w((Mat,lY)=>{"use strict";d();var{stringify:R2e}=nC(),{outputFileSync:N2e}=aC();function O2e(e,t,r){let n=R2e(t,r);N2e(e,n,r)}lY.exports=O2e});var dY=w((jat,fY)=>{"use strict";d();var P2e=Ji().fromPromise,Ii=iY();Ii.outputJson=P2e(cY());Ii.outputJsonSync=pY();Ii.outputJSON=Ii.outputJson;Ii.outputJSONSync=Ii.outputJsonSync;Ii.writeJSON=Ii.writeJson;Ii.writeJSONSync=Ii.writeJsonSync;Ii.readJSON=Ii.readJson;Ii.readJSONSync=Ii.readJsonSync;fY.exports=Ii});var yY=w((Hat,vY)=>{"use strict";d();var B2e=Ti(),jO=J("path"),L2e=ZA().copy,gY=j0().remove,F2e=Va().mkdirp,k2e=Xc().pathExists,hY=Hp();function U2e(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};let i=r.overwrite||r.clobber||!1;hY.checkPaths(e,t,"move",r,(s,a)=>{if(s)return n(s);let{srcStat:o,isChangingCase:u=!1}=a;hY.checkParentPaths(e,o,t,"move",l=>{if(l)return n(l);if(M2e(t))return mY(e,t,i,u,n);F2e(jO.dirname(t),f=>f?n(f):mY(e,t,i,u,n))})})}function M2e(e){let t=jO.dirname(e);return jO.parse(t).root===t}function mY(e,t,r,n,i){if(n)return qO(e,t,r,i);if(r)return gY(t,s=>s?i(s):qO(e,t,r,i));k2e(t,(s,a)=>s?i(s):a?i(new Error("dest already exists.")):qO(e,t,r,i))}function qO(e,t,r,n){B2e.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):q2e(e,t,r,n):n())}function q2e(e,t,r,n){L2e(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):gY(e,n))}vY.exports=U2e});var CY=w((Wat,AY)=>{"use strict";d();var EY=Ti(),HO=J("path"),j2e=ZA().copySync,_Y=j0().removeSync,V2e=Va().mkdirpSync,xY=Hp();function H2e(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=xY.checkPathsSync(e,t,"move",r);return xY.checkParentPathsSync(e,i,t,"move"),G2e(t)||V2e(HO.dirname(t)),W2e(e,t,n,s)}function G2e(e){let t=HO.dirname(e);return HO.parse(t).root===t}function W2e(e,t,r,n){if(n)return VO(e,t,r);if(r)return _Y(t),VO(e,t,r);if(EY.existsSync(t))throw new Error("dest already exists.");return VO(e,t,r)}function VO(e,t,r){try{EY.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Q2e(e,t,r)}}function Q2e(e,t,r){return j2e(e,t,{overwrite:r,errorOnExist:!0}),_Y(e)}AY.exports=H2e});var bY=w((zat,SY)=>{"use strict";d();var z2e=Ji().fromCallback;SY.exports={move:z2e(yY()),moveSync:CY()}});var wY=w(($at,DY)=>{"use strict";d();DY.exports={...Vp(),...ZA(),..._$(),...X$(),...dY(),...Va(),...bY(),...aC(),...Xc(),...j0()}});var Ot=w((Not,TX)=>{"use strict";d();TX.exports={options:{usePureJavaScript:!1}}});var NX=w((Pot,RX)=>{"use strict";d();var iP={};RX.exports=iP;var IX={};iP.encode=function(e,t,r){if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');if(r!==void 0&&typeof r!="number")throw new TypeError('"maxline" must be a number.');var n="";if(!(e instanceof Uint8Array))n=LRe(e,t);else{var i=0,s=t.length,a=t.charAt(0),o=[0];for(i=0;i<e.length;++i){for(var u=0,l=e[i];u<o.length;++u)l+=o[u]<<8,o[u]=l%s,l=l/s|0;for(;l>0;)o.push(l%s),l=l/s|0}for(i=0;e[i]===0&&i<e.length-1;++i)n+=a;for(i=o.length-1;i>=0;--i)n+=t[o[i]]}if(r){var f=new RegExp(".{1,"+r+"}","g");n=n.match(f).join(`\r
|
|
54
|
-
`)}return n};iP.decode=function(e,t){if(typeof e!="string")throw new TypeError('"input" must be a string.');if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');var r=IX[t];if(!r){r=IX[t]=[];for(var n=0;n<t.length;++n)r[t.charCodeAt(n)]=n}e=e.replace(/\s/g,"");for(var i=t.length,s=t.charAt(0),a=[0],n=0;n<e.length;n++){var o=r[e.charCodeAt(n)];if(o===void 0)return;for(var u=0,l=o;u<a.length;++u)l+=a[u]*i,a[u]=l&255,l>>=8;for(;l>0;)a.push(l&255),l>>=8}for(var f=0;e[f]===s&&f<e.length-1;++f)a.push(0);return typeof Buffer<"u"?Buffer.from(a.reverse()):new Uint8Array(a.reverse())};function LRe(e,t){var r=0,n=t.length,i=t.charAt(0),s=[0];for(r=0;r<e.length();++r){for(var a=0,o=e.at(r);a<s.length;++a)o+=s[a]<<8,s[a]=o%n,o=o/n|0;for(;o>0;)s.push(o%n),o=o/n|0}var u="";for(r=0;e.at(r)===0&&r<e.length()-1;++r)u+=i;for(r=s.length-1;r>=0;--r)u+=t[s[r]];return u}});var nr=w((Lot,LX)=>{"use strict";d();var OX=Ot(),PX=NX(),H=LX.exports=OX.util=OX.util||{};(function(){if(typeof process<"u"&&process.nextTick&&!process.browser){H.nextTick=process.nextTick,typeof setImmediate=="function"?H.setImmediate=setImmediate:H.setImmediate=H.nextTick;return}if(typeof setImmediate=="function"){H.setImmediate=function(){return setImmediate.apply(void 0,arguments)},H.nextTick=function(o){return setImmediate(o)};return}if(H.setImmediate=function(o){setTimeout(o,0)},typeof window<"u"&&typeof window.postMessage=="function"){let o=function(u){if(u.source===window&&u.data===e){u.stopPropagation();var l=t.slice();t.length=0,l.forEach(function(f){f()})}};var a=o,e="forge.setImmediate",t=[];H.setImmediate=function(u){t.push(u),t.length===1&&window.postMessage(e,"*")},window.addEventListener("message",o,!0)}if(typeof MutationObserver<"u"){var r=Date.now(),n=!0,i=document.createElement("div"),t=[];new MutationObserver(function(){var u=t.slice();t.length=0,u.forEach(function(l){l()})}).observe(i,{attributes:!0});var s=H.setImmediate;H.setImmediate=function(u){Date.now()-r>15?(r=Date.now(),s(u)):(t.push(u),t.length===1&&i.setAttribute("a",n=!n))}}H.nextTick=H.setImmediate})();H.isNodejs=typeof process<"u"&&process.versions&&process.versions.node;H.globalScope=function(){return H.isNodejs?global:typeof self>"u"?window:self}();H.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};H.isArrayBuffer=function(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer};H.isArrayBufferView=function(e){return e&&H.isArrayBuffer(e.buffer)&&e.byteLength!==void 0};function X0(e){if(!(e===8||e===16||e===24||e===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}H.ByteBuffer=sP;function sP(e){if(this.data="",this.read=0,typeof e=="string")this.data=e;else if(H.isArrayBuffer(e)||H.isArrayBufferView(e))if(typeof Buffer<"u"&&e instanceof Buffer)this.data=e.toString("binary");else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch{for(var r=0;r<t.length;++r)this.putByte(t[r])}}else(e instanceof sP||typeof e=="object"&&typeof e.data=="string"&&typeof e.read=="number")&&(this.data=e.data,this.read=e.read);this._constructedStringLength=0}H.ByteStringBuffer=sP;var FRe=4096;H.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>FRe&&(this.data.substr(0,1),this._constructedStringLength=0)};H.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read};H.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0};H.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))};H.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var r=this.data;t>0;)t&1&&(r+=e),t>>>=1,t>0&&(e+=e);return this.data=r,this._optimizeConstructedString(t),this};H.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this};H.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(H.encodeUtf8(e))};H.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))};H.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))};H.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))};H.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255))};H.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))};H.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))};H.ByteStringBuffer.prototype.putInt=function(e,t){X0(t);var r="";do t-=8,r+=String.fromCharCode(e>>t&255);while(t>0);return this.putBytes(r)};H.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<<t-1),this.putInt(e,t)};H.ByteStringBuffer.prototype.putBuffer=function(e){return this.putBytes(e.getBytes())};H.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)};H.ByteStringBuffer.prototype.getInt16=function(){var e=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,e};H.ByteStringBuffer.prototype.getInt24=function(){var e=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,e};H.ByteStringBuffer.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,e};H.ByteStringBuffer.prototype.getInt16Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,e};H.ByteStringBuffer.prototype.getInt24Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,e};H.ByteStringBuffer.prototype.getInt32Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,e};H.ByteStringBuffer.prototype.getInt=function(e){X0(e);var t=0;do t=(t<<8)+this.data.charCodeAt(this.read++),e-=8;while(e>0);return t};H.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t};H.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t};H.ByteStringBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)};H.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)};H.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this};H.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)};H.ByteStringBuffer.prototype.copy=function(){var e=H.createBuffer(this.data);return e.read=this.read,e};H.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this};H.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this};H.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this};H.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.length;++t){var r=this.data.charCodeAt(t);r<16&&(e+="0"),e+=r.toString(16)}return e};H.ByteStringBuffer.prototype.toString=function(){return H.decodeUtf8(this.bytes())};function kRe(e,t){t=t||{},this.read=t.readOffset||0,this.growSize=t.growSize||1024;var r=H.isArrayBuffer(e),n=H.isArrayBufferView(e);if(r||n){r?this.data=new DataView(e):this.data=new DataView(e.buffer,e.byteOffset,e.byteLength),this.write="writeOffset"in t?t.writeOffset:this.data.byteLength;return}this.data=new DataView(new ArrayBuffer(0)),this.write=0,e!=null&&this.putBytes(e),"writeOffset"in t&&(this.write=t.writeOffset)}H.DataBuffer=kRe;H.DataBuffer.prototype.length=function(){return this.write-this.read};H.DataBuffer.prototype.isEmpty=function(){return this.length()<=0};H.DataBuffer.prototype.accommodate=function(e,t){if(this.length()>=e)return this;t=Math.max(t||this.growSize,e);var r=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),n=new Uint8Array(this.length()+t);return n.set(r),this.data=new DataView(n.buffer),this};H.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this};H.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var r=0;r<t;++r)this.data.setUint8(e);return this};H.DataBuffer.prototype.putBytes=function(e,t){if(H.isArrayBufferView(e)){var r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),n=r.byteLength-r.byteOffset;this.accommodate(n);var i=new Uint8Array(this.data.buffer,this.write);return i.set(r),this.write+=n,this}if(H.isArrayBuffer(e)){var r=new Uint8Array(e);this.accommodate(r.byteLength);var i=new Uint8Array(this.data.buffer);return i.set(r,this.write),this.write+=r.byteLength,this}if(e instanceof H.DataBuffer||typeof e=="object"&&typeof e.read=="number"&&typeof e.write=="number"&&H.isArrayBufferView(e.data)){var r=new Uint8Array(e.data.byteLength,e.read,e.length());this.accommodate(r.byteLength);var i=new Uint8Array(e.data.byteLength,this.write);return i.set(r),this.write+=r.byteLength,this}if(e instanceof H.ByteStringBuffer&&(e=e.data,t="binary"),t=t||"binary",typeof e=="string"){var s;if(t==="hex")return this.accommodate(Math.ceil(e.length/2)),s=new Uint8Array(this.data.buffer,this.write),this.write+=H.binary.hex.decode(e,s,this.write),this;if(t==="base64")return this.accommodate(Math.ceil(e.length/4)*3),s=new Uint8Array(this.data.buffer,this.write),this.write+=H.binary.base64.decode(e,s,this.write),this;if(t==="utf8"&&(e=H.encodeUtf8(e),t="binary"),t==="binary"||t==="raw")return this.accommodate(e.length),s=new Uint8Array(this.data.buffer,this.write),this.write+=H.binary.raw.decode(s),this;if(t==="utf16")return this.accommodate(e.length*2),s=new Uint16Array(this.data.buffer,this.write),this.write+=H.text.utf16.encode(s),this;throw new Error("Invalid encoding: "+t)}throw Error("Invalid parameter: "+e)};H.DataBuffer.prototype.putBuffer=function(e){return this.putBytes(e),e.clear(),this};H.DataBuffer.prototype.putString=function(e){return this.putBytes(e,"utf16")};H.DataBuffer.prototype.putInt16=function(e){return this.accommodate(2),this.data.setInt16(this.write,e),this.write+=2,this};H.DataBuffer.prototype.putInt24=function(e){return this.accommodate(3),this.data.setInt16(this.write,e>>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this};H.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this};H.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this};H.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this};H.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this};H.DataBuffer.prototype.putInt=function(e,t){X0(t),this.accommodate(t/8);do t-=8,this.data.setInt8(this.write++,e>>t&255);while(t>0);return this};H.DataBuffer.prototype.putSignedInt=function(e,t){return X0(t),this.accommodate(t/8),e<0&&(e+=2<<t-1),this.putInt(e,t)};H.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)};H.DataBuffer.prototype.getInt16=function(){var e=this.data.getInt16(this.read);return this.read+=2,e};H.DataBuffer.prototype.getInt24=function(){var e=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,e};H.DataBuffer.prototype.getInt32=function(){var e=this.data.getInt32(this.read);return this.read+=4,e};H.DataBuffer.prototype.getInt16Le=function(){var e=this.data.getInt16(this.read,!0);return this.read+=2,e};H.DataBuffer.prototype.getInt24Le=function(){var e=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,e};H.DataBuffer.prototype.getInt32Le=function(){var e=this.data.getInt32(this.read,!0);return this.read+=4,e};H.DataBuffer.prototype.getInt=function(e){X0(e);var t=0;do t=(t<<8)+this.data.getInt8(this.read++),e-=8;while(e>0);return t};H.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t};H.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t};H.DataBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)};H.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)};H.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this};H.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)};H.DataBuffer.prototype.copy=function(){return new H.DataBuffer(this)};H.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this};H.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this};H.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this};H.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.byteLength;++t){var r=this.data.getUint8(t);r<16&&(e+="0"),e+=r.toString(16)}return e};H.DataBuffer.prototype.toString=function(e){var t=new Uint8Array(this.data,this.read,this.length());if(e=e||"utf8",e==="binary"||e==="raw")return H.binary.raw.encode(t);if(e==="hex")return H.binary.hex.encode(t);if(e==="base64")return H.binary.base64.encode(t);if(e==="utf8")return H.text.utf8.decode(t);if(e==="utf16")return H.text.utf16.decode(t);throw new Error("Invalid encoding: "+e)};H.createBuffer=function(e,t){return t=t||"raw",e!==void 0&&t==="utf8"&&(e=H.encodeUtf8(e)),new H.ByteBuffer(e)};H.fillString=function(e,t){for(var r="";t>0;)t&1&&(r+=e),t>>>=1,t>0&&(e+=e);return r};H.xorBytes=function(e,t,r){for(var n="",i="",s="",a=0,o=0;r>0;--r,++a)i=e.charCodeAt(a)^t.charCodeAt(a),o>=10&&(n+=s,s="",o=0),s+=String.fromCharCode(i),++o;return n+=s,n};H.hexToBytes=function(e){var t="",r=0;for(e.length&!0&&(r=1,t+=String.fromCharCode(parseInt(e[0],16)));r<e.length;r+=2)t+=String.fromCharCode(parseInt(e.substr(r,2),16));return t};H.bytesToHex=function(e){return H.createBuffer(e).toHex()};H.int32ToBytes=function(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255)};var al="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ol=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],BX="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";H.encode64=function(e,t){for(var r="",n="",i,s,a,o=0;o<e.length;)i=e.charCodeAt(o++),s=e.charCodeAt(o++),a=e.charCodeAt(o++),r+=al.charAt(i>>2),r+=al.charAt((i&3)<<4|s>>4),isNaN(s)?r+="==":(r+=al.charAt((s&15)<<2|a>>6),r+=isNaN(a)?"=":al.charAt(a&63)),t&&r.length>t&&(n+=r.substr(0,t)+`\r
|
|
55
|
-
`,r=r.substr(t));return n+=r,n};H.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var t="",r,n,i,s,a=0;a<e.length;)r=ol[e.charCodeAt(a++)-43],n=ol[e.charCodeAt(a++)-43],i=ol[e.charCodeAt(a++)-43],s=ol[e.charCodeAt(a++)-43],t+=String.fromCharCode(r<<2|n>>4),i!==64&&(t+=String.fromCharCode((n&15)<<4|i>>2),s!==64&&(t+=String.fromCharCode((i&3)<<6|s)));return t};H.encodeUtf8=function(e){return unescape(encodeURIComponent(e))};H.decodeUtf8=function(e){return decodeURIComponent(escape(e))};H.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:PX.encode,decode:PX.decode}};H.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)};H.binary.raw.decode=function(e,t,r){var n=t;n||(n=new Uint8Array(e.length)),r=r||0;for(var i=r,s=0;s<e.length;++s)n[i++]=e.charCodeAt(s);return t?i-r:n};H.binary.hex.encode=H.bytesToHex;H.binary.hex.decode=function(e,t,r){var n=t;n||(n=new Uint8Array(Math.ceil(e.length/2))),r=r||0;var i=0,s=r;for(e.length&1&&(i=1,n[s++]=parseInt(e[0],16));i<e.length;i+=2)n[s++]=parseInt(e.substr(i,2),16);return t?s-r:n};H.binary.base64.encode=function(e,t){for(var r="",n="",i,s,a,o=0;o<e.byteLength;)i=e[o++],s=e[o++],a=e[o++],r+=al.charAt(i>>2),r+=al.charAt((i&3)<<4|s>>4),isNaN(s)?r+="==":(r+=al.charAt((s&15)<<2|a>>6),r+=isNaN(a)?"=":al.charAt(a&63)),t&&r.length>t&&(n+=r.substr(0,t)+`\r
|
|
56
|
-
`,r=r.substr(t));return n+=r,n};H.binary.base64.decode=function(e,t,r){var n=t;n||(n=new Uint8Array(Math.ceil(e.length/4)*3)),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),r=r||0;for(var i,s,a,o,u=0,l=r;u<e.length;)i=ol[e.charCodeAt(u++)-43],s=ol[e.charCodeAt(u++)-43],a=ol[e.charCodeAt(u++)-43],o=ol[e.charCodeAt(u++)-43],n[l++]=i<<2|s>>4,a!==64&&(n[l++]=(s&15)<<4|a>>2,o!==64&&(n[l++]=(a&3)<<6|o));return t?l-r:n.subarray(0,l)};H.binary.base58.encode=function(e,t){return H.binary.baseN.encode(e,BX,t)};H.binary.base58.decode=function(e,t){return H.binary.baseN.decode(e,BX,t)};H.text={utf8:{},utf16:{}};H.text.utf8.encode=function(e,t,r){e=H.encodeUtf8(e);var n=t;n||(n=new Uint8Array(e.length)),r=r||0;for(var i=r,s=0;s<e.length;++s)n[i++]=e.charCodeAt(s);return t?i-r:n};H.text.utf8.decode=function(e){return H.decodeUtf8(String.fromCharCode.apply(null,e))};H.text.utf16.encode=function(e,t,r){var n=t;n||(n=new Uint8Array(e.length*2));var i=new Uint16Array(n.buffer);r=r||0;for(var s=r,a=r,o=0;o<e.length;++o)i[a++]=e.charCodeAt(o),s+=2;return t?s-r:n};H.text.utf16.decode=function(e){return String.fromCharCode.apply(null,new Uint16Array(e.buffer))};H.deflate=function(e,t,r){if(t=H.decode64(e.deflate(H.encode64(t)).rval),r){var n=2,i=t.charCodeAt(1);i&32&&(n=6),t=t.substring(n,t.length-4)}return t};H.inflate=function(e,t,r){var n=e.inflate(H.encode64(t)).rval;return n===null?null:H.decode64(n)};var aP=function(e,t,r){if(!e)throw new Error("WebStorage not available.");var n;if(r===null?n=e.removeItem(t):(r=H.encode64(JSON.stringify(r)),n=e.setItem(t,r)),typeof n<"u"&&n.rval!==!0){var i=new Error(n.error.message);throw i.id=n.error.id,i.name=n.error.name,i}},oP=function(e,t){if(!e)throw new Error("WebStorage not available.");var r=e.getItem(t);if(e.init)if(r.rval===null){if(r.error){var n=new Error(r.error.message);throw n.id=r.error.id,n.name=r.error.name,n}r=null}else r=r.rval;return r!==null&&(r=JSON.parse(H.decode64(r))),r},URe=function(e,t,r,n){var i=oP(e,t);i===null&&(i={}),i[r]=n,aP(e,t,i)},MRe=function(e,t,r){var n=oP(e,t);return n!==null&&(n=r in n?n[r]:null),n},qRe=function(e,t,r){var n=oP(e,t);if(n!==null&&r in n){delete n[r];var i=!0;for(var s in n){i=!1;break}i&&(n=null),aP(e,t,n)}},jRe=function(e,t){aP(e,t,null)},mC=function(e,t,r){var n=null;typeof r>"u"&&(r=["web","flash"]);var i,s=!1,a=null;for(var o in r){i=r[o];try{if(i==="flash"||i==="both"){if(t[0]===null)throw new Error("Flash local storage not available.");n=e.apply(this,t),s=i==="flash"}(i==="web"||i==="both")&&(t[0]=localStorage,n=e.apply(this,t),s=!0)}catch(u){a=u}if(s)break}if(!s)throw a;return n};H.setItem=function(e,t,r,n,i){mC(URe,arguments,i)};H.getItem=function(e,t,r,n){return mC(MRe,arguments,n)};H.removeItem=function(e,t,r,n){mC(qRe,arguments,n)};H.clearItems=function(e,t,r){mC(jRe,arguments,r)};H.isEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0};H.format=function(e){for(var t=/%./g,r,n,i=0,s=[],a=0;r=t.exec(e);){n=e.substring(a,t.lastIndex-2),n.length>0&&s.push(n),a=t.lastIndex;var o=r[0][1];switch(o){case"s":case"o":i<arguments.length?s.push(arguments[i+++1]):s.push("<?>");break;case"%":s.push("%");break;default:s.push("<%"+o+"?>")}}return s.push(e.substring(a)),s.join("")};H.formatNumber=function(e,t,r,n){var i=e,s=isNaN(t=Math.abs(t))?2:t,a=r===void 0?",":r,o=n===void 0?".":n,u=i<0?"-":"",l=parseInt(i=Math.abs(+i||0).toFixed(s),10)+"",f=l.length>3?l.length%3:0;return u+(f?l.substr(0,f)+o:"")+l.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+o)+(s?a+Math.abs(i-l).toFixed(s).slice(2):"")};H.formatSize=function(e){return e>=1073741824?e=H.formatNumber(e/1073741824,2,".","")+" GiB":e>=1048576?e=H.formatNumber(e/1048576,2,".","")+" MiB":e>=1024?e=H.formatNumber(e/1024,0)+" KiB":e=H.formatNumber(e,0)+" bytes",e};H.bytesFromIP=function(e){return e.indexOf(".")!==-1?H.bytesFromIPv4(e):e.indexOf(":")!==-1?H.bytesFromIPv6(e):null};H.bytesFromIPv4=function(e){if(e=e.split("."),e.length!==4)return null;for(var t=H.createBuffer(),r=0;r<e.length;++r){var n=parseInt(e[r],10);if(isNaN(n))return null;t.putByte(n)}return t.getBytes()};H.bytesFromIPv6=function(e){var t=0;e=e.split(":").filter(function(a){return a.length===0&&++t,!0});for(var r=(8-e.length+t)*2,n=H.createBuffer(),i=0;i<8;++i){if(!e[i]||e[i].length===0){n.fillWithByte(0,r),r=0;continue}var s=H.hexToBytes(e[i]);s.length<2&&n.putByte(0),n.putBytes(s)}return n.getBytes()};H.bytesToIP=function(e){return e.length===4?H.bytesToIPv4(e):e.length===16?H.bytesToIPv6(e):null};H.bytesToIPv4=function(e){if(e.length!==4)return null;for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t.join(".")};H.bytesToIPv6=function(e){if(e.length!==16)return null;for(var t=[],r=[],n=0,i=0;i<e.length;i+=2){for(var s=H.bytesToHex(e[i]+e[i+1]);s[0]==="0"&&s!=="0";)s=s.substr(1);if(s==="0"){var a=r[r.length-1],o=t.length;!a||o!==a.end+1?r.push({start:o,end:o}):(a.end=o,a.end-a.start>r[n].end-r[n].start&&(n=r.length-1))}t.push(s)}if(r.length>0){var u=r[n];u.end-u.start>0&&(t.splice(u.start,u.end-u.start+1,""),u.start===0&&t.unshift(""),u.end===7&&t.push(""))}return t.join(":")};H.estimateCores=function(e,t){if(typeof e=="function"&&(t=e,e={}),e=e||{},"cores"in H&&!e.update)return t(null,H.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return H.cores=navigator.hardwareConcurrency,t(null,H.cores);if(typeof Worker>"u")return H.cores=1,t(null,H.cores);if(typeof Blob>"u")return H.cores=2,t(null,H.cores);var r=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(a){for(var o=Date.now(),u=o+4;Date.now()<u;);self.postMessage({st:o,et:u})})}.toString(),")()"],{type:"application/javascript"}));n([],5,16);function n(a,o,u){if(o===0){var l=Math.floor(a.reduce(function(f,h){return f+h},0)/a.length);return H.cores=Math.max(1,l),URL.revokeObjectURL(r),t(null,H.cores)}i(u,function(f,h){a.push(s(u,h)),n(a,o-1,u)})}function i(a,o){for(var u=[],l=[],f=0;f<a;++f){var h=new Worker(r);h.addEventListener("message",function(m){if(l.push(m.data),l.length===a){for(var y=0;y<a;++y)u[y].terminate();o(null,l)}}),u.push(h)}for(var f=0;f<a;++f)u[f].postMessage(f)}function s(a,o){for(var u=[],l=0;l<a;++l)for(var f=o[l],h=u[l]=[],m=0;m<a;++m)if(l!==m){var y=o[m];(f.st>y.st&&f.st<y.et||y.st>f.st&&y.st<f.et)&&h.push(m)}return u.reduce(function(_,C){return Math.max(_,C.length)},0)}}});var gC=w((kot,FX)=>{"use strict";d();var qn=Ot();nr();FX.exports=qn.cipher=qn.cipher||{};qn.cipher.algorithms=qn.cipher.algorithms||{};qn.cipher.createCipher=function(e,t){var r=e;if(typeof r=="string"&&(r=qn.cipher.getAlgorithm(r),r&&(r=r())),!r)throw new Error("Unsupported algorithm: "+e);return new qn.cipher.BlockCipher({algorithm:r,key:t,decrypt:!1})};qn.cipher.createDecipher=function(e,t){var r=e;if(typeof r=="string"&&(r=qn.cipher.getAlgorithm(r),r&&(r=r())),!r)throw new Error("Unsupported algorithm: "+e);return new qn.cipher.BlockCipher({algorithm:r,key:t,decrypt:!0})};qn.cipher.registerAlgorithm=function(e,t){e=e.toUpperCase(),qn.cipher.algorithms[e]=t};qn.cipher.getAlgorithm=function(e){return e=e.toUpperCase(),e in qn.cipher.algorithms?qn.cipher.algorithms[e]:null};var uP=qn.cipher.BlockCipher=function(e){this.algorithm=e.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=e.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=e.decrypt,this.algorithm.initialize(e)};uP.prototype.start=function(e){e=e||{};var t={};for(var r in e)t[r]=e[r];t.decrypt=this._decrypt,this._finish=!1,this._input=qn.util.createBuffer(),this.output=e.output||qn.util.createBuffer(),this.mode.start(t)};uP.prototype.update=function(e){for(e&&this._input.putBuffer(e);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()};uP.prototype.finish=function(e){e&&(this.mode.name==="ECB"||this.mode.name==="CBC")&&(this.mode.pad=function(r){return e(this.blockSize,r,!1)},this.mode.unpad=function(r){return e(this.blockSize,r,!0)});var t={};return t.decrypt=this._decrypt,t.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,t)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,t))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,t))}});var lP=w((Mot,kX)=>{"use strict";d();var jn=Ot();nr();jn.cipher=jn.cipher||{};var jt=kX.exports=jn.cipher.modes=jn.cipher.modes||{};jt.ecb=function(e){e=e||{},this.name="ECB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};jt.ecb.prototype.start=function(e){};jt.ecb.prototype.encrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)t.putInt32(this._outBlock[n])};jt.ecb.prototype.decrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)t.putInt32(this._outBlock[n])};jt.ecb.prototype.pad=function(e,t){var r=e.length()===this.blockSize?this.blockSize:this.blockSize-e.length();return e.fillWithByte(r,r),!0};jt.ecb.prototype.unpad=function(e,t){if(t.overflow>0)return!1;var r=e.length(),n=e.at(r-1);return n>this.blockSize<<2?!1:(e.truncate(n),!0)};jt.cbc=function(e){e=e||{},this.name="CBC",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};jt.cbc.prototype.start=function(e){if(e.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if("iv"in e)this._iv=vC(e.iv,this.blockSize),this._prev=this._iv.slice(0);else throw new Error("Invalid IV parameter.")};jt.cbc.prototype.encrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=this._prev[n]^e.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)t.putInt32(this._outBlock[n]);this._prev=this._outBlock};jt.cbc.prototype.decrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)t.putInt32(this._prev[n]^this._outBlock[n]);this._prev=this._inBlock.slice(0)};jt.cbc.prototype.pad=function(e,t){var r=e.length()===this.blockSize?this.blockSize:this.blockSize-e.length();return e.fillWithByte(r,r),!0};jt.cbc.prototype.unpad=function(e,t){if(t.overflow>0)return!1;var r=e.length(),n=e.at(r-1);return n>this.blockSize<<2?!1:(e.truncate(n),!0)};jt.cfb=function(e){e=e||{},this.name="CFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=jn.util.createBuffer(),this._partialBytes=0};jt.cfb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=vC(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};jt.cfb.prototype.encrypt=function(e,t,r){var n=e.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)this._inBlock[i]=e.getInt32()^this._outBlock[i],t.putInt32(this._inBlock[i]);return}var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialBlock[i]=e.getInt32()^this._outBlock[i],this._partialOutput.putInt32(this._partialBlock[i]);if(s>0)e.read-=this.blockSize;else for(var i=0;i<this._ints;++i)this._inBlock[i]=this._partialBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0};jt.cfb.prototype.decrypt=function(e,t,r){var n=e.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)this._inBlock[i]=e.getInt32(),t.putInt32(this._inBlock[i]^this._outBlock[i]);return}var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialBlock[i]=e.getInt32(),this._partialOutput.putInt32(this._partialBlock[i]^this._outBlock[i]);if(s>0)e.read-=this.blockSize;else for(var i=0;i<this._ints;++i)this._inBlock[i]=this._partialBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0};jt.ofb=function(e){e=e||{},this.name="OFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=jn.util.createBuffer(),this._partialBytes=0};jt.ofb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=vC(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};jt.ofb.prototype.encrypt=function(e,t,r){var n=e.length();if(e.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)t.putInt32(e.getInt32()^this._outBlock[i]),this._inBlock[i]=this._outBlock[i];return}var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialOutput.putInt32(e.getInt32()^this._outBlock[i]);if(s>0)e.read-=this.blockSize;else for(var i=0;i<this._ints;++i)this._inBlock[i]=this._outBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0};jt.ofb.prototype.decrypt=jt.ofb.prototype.encrypt;jt.ctr=function(e){e=e||{},this.name="CTR",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=jn.util.createBuffer(),this._partialBytes=0};jt.ctr.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=vC(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};jt.ctr.prototype.encrypt=function(e,t,r){var n=e.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize)for(var i=0;i<this._ints;++i)t.putInt32(e.getInt32()^this._outBlock[i]);else{var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialOutput.putInt32(e.getInt32()^this._outBlock[i]);if(s>0&&(e.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}yC(this._inBlock)};jt.ctr.prototype.decrypt=jt.ctr.prototype.encrypt;jt.gcm=function(e){e=e||{},this.name="GCM",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=jn.util.createBuffer(),this._partialBytes=0,this._R=3774873600};jt.gcm.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");var t=jn.util.createBuffer(e.iv);this._cipherLength=0;var r;if("additionalData"in e?r=jn.util.createBuffer(e.additionalData):r=jn.util.createBuffer(),"tagLength"in e?this._tagLength=e.tagLength:this._tagLength=128,this._tag=null,e.decrypt&&(this._tag=jn.util.createBuffer(e.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var n=t.length();if(n===12)this._j0=[t.getInt32(),t.getInt32(),t.getInt32(),1];else{for(this._j0=[0,0,0,0];t.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(cP(n*8)))}this._inBlock=this._j0.slice(0),yC(this._inBlock),this._partialBytes=0,r=jn.util.createBuffer(r),this._aDataLength=cP(r.length()*8);var i=r.length()%this.blockSize;for(i&&r.fillWithByte(0,this.blockSize-i),this._s=[0,0,0,0];r.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[r.getInt32(),r.getInt32(),r.getInt32(),r.getInt32()])};jt.gcm.prototype.encrypt=function(e,t,r){var n=e.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)t.putInt32(this._outBlock[i]^=e.getInt32());this._cipherLength+=this.blockSize}else{var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialOutput.putInt32(e.getInt32()^this._outBlock[i]);if(s<=0||r){if(r){var a=n%this.blockSize;this._cipherLength+=a,this._partialOutput.truncate(this.blockSize-a)}else this._cipherLength+=this.blockSize;for(var i=0;i<this._ints;++i)this._outBlock[i]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return e.read-=this.blockSize,t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),yC(this._inBlock)};jt.gcm.prototype.decrypt=function(e,t,r){var n=e.length();if(n<this.blockSize&&!(r&&n>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),yC(this._inBlock),this._hashBlock[0]=e.getInt32(),this._hashBlock[1]=e.getInt32(),this._hashBlock[2]=e.getInt32(),this._hashBlock[3]=e.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var i=0;i<this._ints;++i)t.putInt32(this._outBlock[i]^this._hashBlock[i]);n<this.blockSize?this._cipherLength+=n%this.blockSize:this._cipherLength+=this.blockSize};jt.gcm.prototype.afterFinish=function(e,t){var r=!0;t.decrypt&&t.overflow&&e.truncate(this.blockSize-t.overflow),this.tag=jn.util.createBuffer();var n=this._aDataLength.concat(cP(this._cipherLength*8));this._s=this.ghash(this._hashSubkey,this._s,n);var i=[];this.cipher.encrypt(this._j0,i);for(var s=0;s<this._ints;++s)this.tag.putInt32(this._s[s]^i[s]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),t.decrypt&&this.tag.bytes()!==this._tag&&(r=!1),r};jt.gcm.prototype.multiply=function(e,t){for(var r=[0,0,0,0],n=t.slice(0),i=0;i<128;++i){var s=e[i/32|0]&1<<31-i%32;s&&(r[0]^=n[0],r[1]^=n[1],r[2]^=n[2],r[3]^=n[3]),this.pow(n,n)}return r};jt.gcm.prototype.pow=function(e,t){for(var r=e[3]&1,n=3;n>0;--n)t[n]=e[n]>>>1|(e[n-1]&1)<<31;t[0]=e[0]>>>1,r&&(t[0]^=this._R)};jt.gcm.prototype.tableMultiply=function(e){for(var t=[0,0,0,0],r=0;r<32;++r){var n=r/8|0,i=e[n]>>>(7-r%8)*4&15,s=this._m[r][i];t[0]^=s[0],t[1]^=s[1],t[2]^=s[2],t[3]^=s[3]}return t};jt.gcm.prototype.ghash=function(e,t,r){return t[0]^=r[0],t[1]^=r[1],t[2]^=r[2],t[3]^=r[3],this.tableMultiply(t)};jt.gcm.prototype.generateHashTable=function(e,t){for(var r=8/t,n=4*r,i=16*r,s=new Array(i),a=0;a<i;++a){var o=[0,0,0,0],u=a/n|0,l=(n-1-a%n)*t;o[u]=1<<t-1<<l,s[a]=this.generateSubHashTable(this.multiply(o,e),t)}return s};jt.gcm.prototype.generateSubHashTable=function(e,t){var r=1<<t,n=r>>>1,i=new Array(r);i[n]=e.slice(0);for(var s=n>>>1;s>0;)this.pow(i[2*s],i[s]=[]),s>>=1;for(s=2;s<n;){for(var a=1;a<s;++a){var o=i[s],u=i[a];i[s+a]=[o[0]^u[0],o[1]^u[1],o[2]^u[2],o[3]^u[3]]}s*=2}for(i[0]=[0,0,0,0],s=n+1;s<r;++s){var l=i[s^n];i[s]=[e[0]^l[0],e[1]^l[1],e[2]^l[2],e[3]^l[3]]}return i};function vC(e,t){if(typeof e=="string"&&(e=jn.util.createBuffer(e)),jn.util.isArray(e)&&e.length>4){var r=e;e=jn.util.createBuffer();for(var n=0;n<r.length;++n)e.putByte(r[n])}if(e.length()<t)throw new Error("Invalid IV length; got "+e.length()+" bytes and expected "+t+" bytes.");if(!jn.util.isArray(e)){for(var i=[],s=t/4,n=0;n<s;++n)i.push(e.getInt32());e=i}return e}function yC(e){e[e.length-1]=e[e.length-1]+1&4294967295}function cP(e){return[e/4294967296|0,e&4294967295]}});var ul=w((jot,jX)=>{"use strict";d();var Ir=Ot();gC();lP();nr();jX.exports=Ir.aes=Ir.aes||{};Ir.aes.startEncrypting=function(e,t,r,n){var i=xC({key:e,output:r,decrypt:!1,mode:n});return i.start(t),i};Ir.aes.createEncryptionCipher=function(e,t){return xC({key:e,output:null,decrypt:!1,mode:t})};Ir.aes.startDecrypting=function(e,t,r,n){var i=xC({key:e,output:r,decrypt:!0,mode:n});return i.start(t),i};Ir.aes.createDecryptionCipher=function(e,t){return xC({key:e,output:null,decrypt:!0,mode:t})};Ir.aes.Algorithm=function(e,t){dP||MX();var r=this;r.name=e,r.mode=new t({blockSize:16,cipher:{encrypt:function(n,i){return fP(r._w,n,i,!1)},decrypt:function(n,i){return fP(r._w,n,i,!0)}}}),r._init=!1};Ir.aes.Algorithm.prototype.initialize=function(e){if(!this._init){var t=e.key,r;if(typeof t=="string"&&(t.length===16||t.length===24||t.length===32))t=Ir.util.createBuffer(t);else if(Ir.util.isArray(t)&&(t.length===16||t.length===24||t.length===32)){r=t,t=Ir.util.createBuffer();for(var n=0;n<r.length;++n)t.putByte(r[n])}if(!Ir.util.isArray(t)){r=t,t=[];var i=r.length();if(i===16||i===24||i===32){i=i>>>2;for(var n=0;n<i;++n)t.push(r.getInt32())}}if(!Ir.util.isArray(t)||!(t.length===4||t.length===6||t.length===8))throw new Error("Invalid key parameter.");var s=this.mode.name,a=["CFB","OFB","CTR","GCM"].indexOf(s)!==-1;this._w=qX(t,e.decrypt&&!a),this._init=!0}};Ir.aes._expandKey=function(e,t){return dP||MX(),qX(e,t)};Ir.aes._updateBlock=fP;Ih("AES-ECB",Ir.cipher.modes.ecb);Ih("AES-CBC",Ir.cipher.modes.cbc);Ih("AES-CFB",Ir.cipher.modes.cfb);Ih("AES-OFB",Ir.cipher.modes.ofb);Ih("AES-CTR",Ir.cipher.modes.ctr);Ih("AES-GCM",Ir.cipher.modes.gcm);function Ih(e,t){var r=function(){return new Ir.aes.Algorithm(e,t)};Ir.cipher.registerAlgorithm(e,r)}var dP=!1,Th=4,Ni,pP,UX,Gp,Wa;function MX(){dP=!0,UX=[0,1,2,4,8,16,32,64,128,27,54];for(var e=new Array(256),t=0;t<128;++t)e[t]=t<<1,e[t+128]=t+128<<1^283;Ni=new Array(256),pP=new Array(256),Gp=new Array(4),Wa=new Array(4);for(var t=0;t<4;++t)Gp[t]=new Array(256),Wa[t]=new Array(256);for(var r=0,n=0,i,s,a,o,u,l,f,t=0;t<256;++t){o=n^n<<1^n<<2^n<<3^n<<4,o=o>>8^o&255^99,Ni[r]=o,pP[o]=r,u=e[o],i=e[r],s=e[i],a=e[s],l=u<<24^o<<16^o<<8^(o^u),f=(i^s^a)<<24^(r^a)<<16^(r^s^a)<<8^(r^i^a);for(var h=0;h<4;++h)Gp[h][r]=l,Wa[h][o]=f,l=l<<24|l>>>8,f=f<<24|f>>>8;r===0?r=n=1:(r=i^e[e[e[i^a]]],n^=e[e[n]])}}function qX(e,t){for(var r=e.slice(0),n,i=1,s=r.length,a=s+6+1,o=Th*a,u=s;u<o;++u)n=r[u-1],u%s===0?(n=Ni[n>>>16&255]<<24^Ni[n>>>8&255]<<16^Ni[n&255]<<8^Ni[n>>>24]^UX[i]<<24,i++):s>6&&u%s===4&&(n=Ni[n>>>24]<<24^Ni[n>>>16&255]<<16^Ni[n>>>8&255]<<8^Ni[n&255]),r[u]=r[u-s]^n;if(t){var l,f=Wa[0],h=Wa[1],m=Wa[2],y=Wa[3],_=r.slice(0);o=r.length;for(var u=0,C=o-Th;u<o;u+=Th,C-=Th)if(u===0||u===o-Th)_[u]=r[C],_[u+1]=r[C+3],_[u+2]=r[C+2],_[u+3]=r[C+1];else for(var b=0;b<Th;++b)l=r[C+b],_[u+(3&-b)]=f[Ni[l>>>24]]^h[Ni[l>>>16&255]]^m[Ni[l>>>8&255]]^y[Ni[l&255]];r=_}return r}function fP(e,t,r,n){var i=e.length/4-1,s,a,o,u,l;n?(s=Wa[0],a=Wa[1],o=Wa[2],u=Wa[3],l=pP):(s=Gp[0],a=Gp[1],o=Gp[2],u=Gp[3],l=Ni);var f,h,m,y,_,C,b;f=t[0]^e[0],h=t[n?3:1]^e[1],m=t[2]^e[2],y=t[n?1:3]^e[3];for(var D=3,L=1;L<i;++L)_=s[f>>>24]^a[h>>>16&255]^o[m>>>8&255]^u[y&255]^e[++D],C=s[h>>>24]^a[m>>>16&255]^o[y>>>8&255]^u[f&255]^e[++D],b=s[m>>>24]^a[y>>>16&255]^o[f>>>8&255]^u[h&255]^e[++D],y=s[y>>>24]^a[f>>>16&255]^o[h>>>8&255]^u[m&255]^e[++D],f=_,h=C,m=b;r[0]=l[f>>>24]<<24^l[h>>>16&255]<<16^l[m>>>8&255]<<8^l[y&255]^e[++D],r[n?3:1]=l[h>>>24]<<24^l[m>>>16&255]<<16^l[y>>>8&255]<<8^l[f&255]^e[++D],r[2]=l[m>>>24]<<24^l[y>>>16&255]<<16^l[f>>>8&255]<<8^l[h&255]^e[++D],r[n?1:3]=l[y>>>24]<<24^l[f>>>16&255]<<16^l[h>>>8&255]<<8^l[m&255]^e[++D]}function xC(e){e=e||{};var t=(e.mode||"CBC").toUpperCase(),r="AES-"+t,n;e.decrypt?n=Ir.cipher.createDecipher(r,e.key):n=Ir.cipher.createCipher(r,e.key);var i=n.start;return n.start=function(s,a){var o=null;a instanceof Ir.util.ByteBuffer&&(o=a,a={}),a=a||{},a.output=o,a.iv=s,i.call(n,a)},n}});var cl=w((Hot,VX)=>{"use strict";d();var J0=Ot();J0.pki=J0.pki||{};var hP=VX.exports=J0.pki.oids=J0.oids=J0.oids||{};function ye(e,t){hP[e]=t,hP[t]=e}function dr(e,t){hP[e]=t}ye("1.2.840.113549.1.1.1","rsaEncryption");ye("1.2.840.113549.1.1.4","md5WithRSAEncryption");ye("1.2.840.113549.1.1.5","sha1WithRSAEncryption");ye("1.2.840.113549.1.1.7","RSAES-OAEP");ye("1.2.840.113549.1.1.8","mgf1");ye("1.2.840.113549.1.1.9","pSpecified");ye("1.2.840.113549.1.1.10","RSASSA-PSS");ye("1.2.840.113549.1.1.11","sha256WithRSAEncryption");ye("1.2.840.113549.1.1.12","sha384WithRSAEncryption");ye("1.2.840.113549.1.1.13","sha512WithRSAEncryption");ye("1.3.101.112","EdDSA25519");ye("1.2.840.10040.4.3","dsa-with-sha1");ye("1.3.14.3.2.7","desCBC");ye("1.3.14.3.2.26","sha1");ye("1.3.14.3.2.29","sha1WithRSASignature");ye("2.16.840.1.101.3.4.2.1","sha256");ye("2.16.840.1.101.3.4.2.2","sha384");ye("2.16.840.1.101.3.4.2.3","sha512");ye("2.16.840.1.101.3.4.2.4","sha224");ye("2.16.840.1.101.3.4.2.5","sha512-224");ye("2.16.840.1.101.3.4.2.6","sha512-256");ye("1.2.840.113549.2.2","md2");ye("1.2.840.113549.2.5","md5");ye("1.2.840.113549.1.7.1","data");ye("1.2.840.113549.1.7.2","signedData");ye("1.2.840.113549.1.7.3","envelopedData");ye("1.2.840.113549.1.7.4","signedAndEnvelopedData");ye("1.2.840.113549.1.7.5","digestedData");ye("1.2.840.113549.1.7.6","encryptedData");ye("1.2.840.113549.1.9.1","emailAddress");ye("1.2.840.113549.1.9.2","unstructuredName");ye("1.2.840.113549.1.9.3","contentType");ye("1.2.840.113549.1.9.4","messageDigest");ye("1.2.840.113549.1.9.5","signingTime");ye("1.2.840.113549.1.9.6","counterSignature");ye("1.2.840.113549.1.9.7","challengePassword");ye("1.2.840.113549.1.9.8","unstructuredAddress");ye("1.2.840.113549.1.9.14","extensionRequest");ye("1.2.840.113549.1.9.20","friendlyName");ye("1.2.840.113549.1.9.21","localKeyId");ye("1.2.840.113549.1.9.22.1","x509Certificate");ye("1.2.840.113549.1.12.10.1.1","keyBag");ye("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag");ye("1.2.840.113549.1.12.10.1.3","certBag");ye("1.2.840.113549.1.12.10.1.4","crlBag");ye("1.2.840.113549.1.12.10.1.5","secretBag");ye("1.2.840.113549.1.12.10.1.6","safeContentsBag");ye("1.2.840.113549.1.5.13","pkcs5PBES2");ye("1.2.840.113549.1.5.12","pkcs5PBKDF2");ye("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4");ye("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4");ye("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC");ye("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC");ye("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC");ye("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC");ye("1.2.840.113549.2.7","hmacWithSHA1");ye("1.2.840.113549.2.8","hmacWithSHA224");ye("1.2.840.113549.2.9","hmacWithSHA256");ye("1.2.840.113549.2.10","hmacWithSHA384");ye("1.2.840.113549.2.11","hmacWithSHA512");ye("1.2.840.113549.3.7","des-EDE3-CBC");ye("2.16.840.1.101.3.4.1.2","aes128-CBC");ye("2.16.840.1.101.3.4.1.22","aes192-CBC");ye("2.16.840.1.101.3.4.1.42","aes256-CBC");ye("2.5.4.3","commonName");ye("2.5.4.4","surname");ye("2.5.4.5","serialNumber");ye("2.5.4.6","countryName");ye("2.5.4.7","localityName");ye("2.5.4.8","stateOrProvinceName");ye("2.5.4.9","streetAddress");ye("2.5.4.10","organizationName");ye("2.5.4.11","organizationalUnitName");ye("2.5.4.12","title");ye("2.5.4.13","description");ye("2.5.4.15","businessCategory");ye("2.5.4.17","postalCode");ye("2.5.4.42","givenName");ye("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName");ye("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName");ye("2.16.840.1.113730.1.1","nsCertType");ye("2.16.840.1.113730.1.13","nsComment");dr("2.5.29.1","authorityKeyIdentifier");dr("2.5.29.2","keyAttributes");dr("2.5.29.3","certificatePolicies");dr("2.5.29.4","keyUsageRestriction");dr("2.5.29.5","policyMapping");dr("2.5.29.6","subtreesConstraint");dr("2.5.29.7","subjectAltName");dr("2.5.29.8","issuerAltName");dr("2.5.29.9","subjectDirectoryAttributes");dr("2.5.29.10","basicConstraints");dr("2.5.29.11","nameConstraints");dr("2.5.29.12","policyConstraints");dr("2.5.29.13","basicConstraints");ye("2.5.29.14","subjectKeyIdentifier");ye("2.5.29.15","keyUsage");dr("2.5.29.16","privateKeyUsagePeriod");ye("2.5.29.17","subjectAltName");ye("2.5.29.18","issuerAltName");ye("2.5.29.19","basicConstraints");dr("2.5.29.20","cRLNumber");dr("2.5.29.21","cRLReason");dr("2.5.29.22","expirationDate");dr("2.5.29.23","instructionCode");dr("2.5.29.24","invalidityDate");dr("2.5.29.25","cRLDistributionPoints");dr("2.5.29.26","issuingDistributionPoint");dr("2.5.29.27","deltaCRLIndicator");dr("2.5.29.28","issuingDistributionPoint");dr("2.5.29.29","certificateIssuer");dr("2.5.29.30","nameConstraints");ye("2.5.29.31","cRLDistributionPoints");ye("2.5.29.32","certificatePolicies");dr("2.5.29.33","policyMappings");dr("2.5.29.34","policyConstraints");ye("2.5.29.35","authorityKeyIdentifier");dr("2.5.29.36","policyConstraints");ye("2.5.29.37","extKeyUsage");dr("2.5.29.46","freshestCRL");dr("2.5.29.54","inhibitAnyPolicy");ye("1.3.6.1.4.1.11129.2.4.2","timestampList");ye("1.3.6.1.5.5.7.1.1","authorityInfoAccess");ye("1.3.6.1.5.5.7.3.1","serverAuth");ye("1.3.6.1.5.5.7.3.2","clientAuth");ye("1.3.6.1.5.5.7.3.3","codeSigning");ye("1.3.6.1.5.5.7.3.4","emailProtection");ye("1.3.6.1.5.5.7.3.8","timeStamping")});var Qa=w((Wot,GX)=>{"use strict";d();var Br=Ot();nr();cl();var Be=GX.exports=Br.asn1=Br.asn1||{};Be.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192};Be.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30};Be.create=function(e,t,r,n,i){if(Br.util.isArray(n)){for(var s=[],a=0;a<n.length;++a)n[a]!==void 0&&s.push(n[a]);n=s}var o={tagClass:e,type:t,constructed:r,composed:r||Br.util.isArray(n),value:n};return i&&"bitStringContents"in i&&(o.bitStringContents=i.bitStringContents,o.original=Be.copy(o)),o};Be.copy=function(e,t){var r;if(Br.util.isArray(e)){r=[];for(var n=0;n<e.length;++n)r.push(Be.copy(e[n],t));return r}return typeof e=="string"?e:(r={tagClass:e.tagClass,type:e.type,constructed:e.constructed,composed:e.composed,value:Be.copy(e.value,t)},t&&!t.excludeBitStringContents&&(r.bitStringContents=e.bitStringContents),r)};Be.equals=function(e,t,r){if(Br.util.isArray(e)){if(!Br.util.isArray(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!Be.equals(e[n],t[n]))return!1;return!0}if(typeof e!=typeof t)return!1;if(typeof e=="string")return e===t;var i=e.tagClass===t.tagClass&&e.type===t.type&&e.constructed===t.constructed&&e.composed===t.composed&&Be.equals(e.value,t.value);return r&&r.includeBitStringContents&&(i=i&&e.bitStringContents===t.bitStringContents),i};Be.getBerValueLength=function(e){var t=e.getByte();if(t!==128){var r,n=t&128;return n?r=e.getInt((t&127)<<3):r=t,r}};function Z0(e,t,r){if(r>t){var n=new Error("Too few bytes to parse DER.");throw n.available=e.length(),n.remaining=t,n.requested=r,n}}var VRe=function(e,t){var r=e.getByte();if(t--,r!==128){var n,i=r&128;if(!i)n=r;else{var s=r&127;Z0(e,t,s),n=e.getInt(s<<3)}if(n<0)throw new Error("Negative length: "+n);return n}};Be.fromDer=function(e,t){t===void 0&&(t={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),typeof t=="boolean"&&(t={strict:t,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in t||(t.strict=!0),"parseAllBytes"in t||(t.parseAllBytes=!0),"decodeBitStrings"in t||(t.decodeBitStrings=!0),typeof e=="string"&&(e=Br.util.createBuffer(e));var r=e.length(),n=EC(e,e.length(),0,t);if(t.parseAllBytes&&e.length()!==0){var i=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw i.byteCount=r,i.remaining=e.length(),i}return n};function EC(e,t,r,n){var i;Z0(e,t,2);var s=e.getByte();t--;var a=s&192,o=s&31;i=e.length();var u=VRe(e,t);if(t-=i-e.length(),u!==void 0&&u>t){if(n.strict){var l=new Error("Too few bytes to read ASN.1 value.");throw l.available=e.length(),l.remaining=t,l.requested=u,l}u=t}var f,h,m=(s&32)===32;if(m)if(f=[],u===void 0)for(;;){if(Z0(e,t,2),e.bytes(2)==="\0\0"){e.getBytes(2),t-=2;break}i=e.length(),f.push(EC(e,t,r+1,n)),t-=i-e.length()}else for(;u>0;)i=e.length(),f.push(EC(e,u,r+1,n)),t-=i-e.length(),u-=i-e.length();if(f===void 0&&a===Be.Class.UNIVERSAL&&o===Be.Type.BITSTRING&&(h=e.bytes(u)),f===void 0&&n.decodeBitStrings&&a===Be.Class.UNIVERSAL&&o===Be.Type.BITSTRING&&u>1){var y=e.read,_=t,C=0;if(o===Be.Type.BITSTRING&&(Z0(e,t,1),C=e.getByte(),t--),C===0)try{i=e.length();var b={strict:!0,decodeBitStrings:!0},D=EC(e,t,r+1,b),L=i-e.length();t-=L,o==Be.Type.BITSTRING&&L++;var F=D.tagClass;L===u&&(F===Be.Class.UNIVERSAL||F===Be.Class.CONTEXT_SPECIFIC)&&(f=[D])}catch{}f===void 0&&(e.read=y,t=_)}if(f===void 0){if(u===void 0){if(n.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");u=t}if(o===Be.Type.BMPSTRING)for(f="";u>0;u-=2)Z0(e,t,2),f+=String.fromCharCode(e.getInt16()),t-=2;else f=e.getBytes(u),t-=u}var q=h===void 0?null:{bitStringContents:h};return Be.create(a,o,m,f,q)}Be.toDer=function(e){var t=Br.util.createBuffer(),r=e.tagClass|e.type,n=Br.util.createBuffer(),i=!1;if("bitStringContents"in e&&(i=!0,e.original&&(i=Be.equals(e,e.original))),i)n.putBytes(e.bitStringContents);else if(e.composed){e.constructed?r|=32:n.putByte(0);for(var s=0;s<e.value.length;++s)e.value[s]!==void 0&&n.putBuffer(Be.toDer(e.value[s]))}else if(e.type===Be.Type.BMPSTRING)for(var s=0;s<e.value.length;++s)n.putInt16(e.value.charCodeAt(s));else e.type===Be.Type.INTEGER&&e.value.length>1&&(e.value.charCodeAt(0)===0&&!(e.value.charCodeAt(1)&128)||e.value.charCodeAt(0)===255&&(e.value.charCodeAt(1)&128)===128)?n.putBytes(e.value.substr(1)):n.putBytes(e.value);if(t.putByte(r),n.length()<=127)t.putByte(n.length()&127);else{var a=n.length(),o="";do o+=String.fromCharCode(a&255),a=a>>>8;while(a>0);t.putByte(o.length|128);for(var s=o.length-1;s>=0;--s)t.putByte(o.charCodeAt(s))}return t.putBuffer(n),t};Be.oidToDer=function(e){var t=e.split("."),r=Br.util.createBuffer();r.putByte(40*parseInt(t[0],10)+parseInt(t[1],10));for(var n,i,s,a,o=2;o<t.length;++o){n=!0,i=[],s=parseInt(t[o],10);do a=s&127,s=s>>>7,n||(a|=128),i.push(a),n=!1;while(s>0);for(var u=i.length-1;u>=0;--u)r.putByte(i[u])}return r};Be.derToOid=function(e){var t;typeof e=="string"&&(e=Br.util.createBuffer(e));var r=e.getByte();t=Math.floor(r/40)+"."+r%40;for(var n=0;e.length()>0;)r=e.getByte(),n=n<<7,r&128?n+=r&127:(t+="."+(n+r),n=0);return t};Be.utcTimeToDate=function(e){var t=new Date,r=parseInt(e.substr(0,2),10);r=r>=50?1900+r:2e3+r;var n=parseInt(e.substr(2,2),10)-1,i=parseInt(e.substr(4,2),10),s=parseInt(e.substr(6,2),10),a=parseInt(e.substr(8,2),10),o=0;if(e.length>11){var u=e.charAt(10),l=10;u!=="+"&&u!=="-"&&(o=parseInt(e.substr(10,2),10),l+=2)}if(t.setUTCFullYear(r,n,i),t.setUTCHours(s,a,o,0),l&&(u=e.charAt(l),u==="+"||u==="-")){var f=parseInt(e.substr(l+1,2),10),h=parseInt(e.substr(l+4,2),10),m=f*60+h;m*=6e4,u==="+"?t.setTime(+t-m):t.setTime(+t+m)}return t};Be.generalizedTimeToDate=function(e){var t=new Date,r=parseInt(e.substr(0,4),10),n=parseInt(e.substr(4,2),10)-1,i=parseInt(e.substr(6,2),10),s=parseInt(e.substr(8,2),10),a=parseInt(e.substr(10,2),10),o=parseInt(e.substr(12,2),10),u=0,l=0,f=!1;e.charAt(e.length-1)==="Z"&&(f=!0);var h=e.length-5,m=e.charAt(h);if(m==="+"||m==="-"){var y=parseInt(e.substr(h+1,2),10),_=parseInt(e.substr(h+4,2),10);l=y*60+_,l*=6e4,m==="+"&&(l*=-1),f=!0}return e.charAt(14)==="."&&(u=parseFloat(e.substr(14),10)*1e3),f?(t.setUTCFullYear(r,n,i),t.setUTCHours(s,a,o,u),t.setTime(+t+l)):(t.setFullYear(r,n,i),t.setHours(s,a,o,u)),t};Be.dateToUtcTime=function(e){if(typeof e=="string")return e;var t="",r=[];r.push((""+e.getUTCFullYear()).substr(2)),r.push(""+(e.getUTCMonth()+1)),r.push(""+e.getUTCDate()),r.push(""+e.getUTCHours()),r.push(""+e.getUTCMinutes()),r.push(""+e.getUTCSeconds());for(var n=0;n<r.length;++n)r[n].length<2&&(t+="0"),t+=r[n];return t+="Z",t};Be.dateToGeneralizedTime=function(e){if(typeof e=="string")return e;var t="",r=[];r.push(""+e.getUTCFullYear()),r.push(""+(e.getUTCMonth()+1)),r.push(""+e.getUTCDate()),r.push(""+e.getUTCHours()),r.push(""+e.getUTCMinutes()),r.push(""+e.getUTCSeconds());for(var n=0;n<r.length;++n)r[n].length<2&&(t+="0"),t+=r[n];return t+="Z",t};Be.integerToDer=function(e){var t=Br.util.createBuffer();if(e>=-128&&e<128)return t.putSignedInt(e,8);if(e>=-32768&&e<32768)return t.putSignedInt(e,16);if(e>=-8388608&&e<8388608)return t.putSignedInt(e,24);if(e>=-2147483648&&e<2147483648)return t.putSignedInt(e,32);var r=new Error("Integer too large; max is 32-bits.");throw r.integer=e,r};Be.derToInteger=function(e){typeof e=="string"&&(e=Br.util.createBuffer(e));var t=e.length()*8;if(t>32)throw new Error("Integer too large; max is 32-bits.");return e.getSignedInt(t)};Be.validate=function(e,t,r,n){var i=!1;if((e.tagClass===t.tagClass||typeof t.tagClass>"u")&&(e.type===t.type||typeof t.type>"u"))if(e.constructed===t.constructed||typeof t.constructed>"u"){if(i=!0,t.value&&Br.util.isArray(t.value))for(var s=0,a=0;i&&a<t.value.length;++a)i=t.value[a].optional||!1,e.value[s]&&(i=Be.validate(e.value[s],t.value[a],r,n),i?++s:t.value[a].optional&&(i=!0)),!i&&n&&n.push("["+t.name+'] Tag class "'+t.tagClass+'", type "'+t.type+'" expected value length "'+t.value.length+'", got "'+e.value.length+'"');if(i&&r&&(t.capture&&(r[t.capture]=e.value),t.captureAsn1&&(r[t.captureAsn1]=e),t.captureBitStringContents&&"bitStringContents"in e&&(r[t.captureBitStringContents]=e.bitStringContents),t.captureBitStringValue&&"bitStringContents"in e)){var o;if(e.bitStringContents.length<2)r[t.captureBitStringValue]="";else{var u=e.bitStringContents.charCodeAt(0);if(u!==0)throw new Error("captureBitStringValue only supported for zero unused bits");r[t.captureBitStringValue]=e.bitStringContents.slice(1)}}}else n&&n.push("["+t.name+'] Expected constructed "'+t.constructed+'", got "'+e.constructed+'"');else n&&(e.tagClass!==t.tagClass&&n.push("["+t.name+'] Expected tag class "'+t.tagClass+'", got "'+e.tagClass+'"'),e.type!==t.type&&n.push("["+t.name+'] Expected type "'+t.type+'", got "'+e.type+'"'));return i};var HX=/[^\\u0000-\\u00ff]/;Be.prettyPrint=function(e,t,r){var n="";t=t||0,r=r||2,t>0&&(n+=`
|
|
57
|
-
`);for(var i="",s=0;s<t*r;++s)i+=" ";switch(n+=i+"Tag: ",e.tagClass){case Be.Class.UNIVERSAL:n+="Universal:";break;case Be.Class.APPLICATION:n+="Application:";break;case Be.Class.CONTEXT_SPECIFIC:n+="Context-Specific:";break;case Be.Class.PRIVATE:n+="Private:";break}if(e.tagClass===Be.Class.UNIVERSAL)switch(n+=e.type,e.type){case Be.Type.NONE:n+=" (None)";break;case Be.Type.BOOLEAN:n+=" (Boolean)";break;case Be.Type.INTEGER:n+=" (Integer)";break;case Be.Type.BITSTRING:n+=" (Bit string)";break;case Be.Type.OCTETSTRING:n+=" (Octet string)";break;case Be.Type.NULL:n+=" (Null)";break;case Be.Type.OID:n+=" (Object Identifier)";break;case Be.Type.ODESC:n+=" (Object Descriptor)";break;case Be.Type.EXTERNAL:n+=" (External or Instance of)";break;case Be.Type.REAL:n+=" (Real)";break;case Be.Type.ENUMERATED:n+=" (Enumerated)";break;case Be.Type.EMBEDDED:n+=" (Embedded PDV)";break;case Be.Type.UTF8:n+=" (UTF8)";break;case Be.Type.ROID:n+=" (Relative Object Identifier)";break;case Be.Type.SEQUENCE:n+=" (Sequence)";break;case Be.Type.SET:n+=" (Set)";break;case Be.Type.PRINTABLESTRING:n+=" (Printable String)";break;case Be.Type.IA5String:n+=" (IA5String (ASCII))";break;case Be.Type.UTCTIME:n+=" (UTC time)";break;case Be.Type.GENERALIZEDTIME:n+=" (Generalized time)";break;case Be.Type.BMPSTRING:n+=" (BMP String)";break}else n+=e.type;if(n+=`
|
|
58
|
-
`,n+=i+"Constructed: "+e.constructed+`
|
|
59
|
-
`,e.composed){for(var a=0,o="",s=0;s<e.value.length;++s)e.value[s]!==void 0&&(a+=1,o+=Be.prettyPrint(e.value[s],t+1,r),s+1<e.value.length&&(o+=","));n+=i+"Sub values: "+a+o}else{if(n+=i+"Value: ",e.type===Be.Type.OID){var u=Be.derToOid(e.value);n+=u,Br.pki&&Br.pki.oids&&u in Br.pki.oids&&(n+=" ("+Br.pki.oids[u]+") ")}if(e.type===Be.Type.INTEGER)try{n+=Be.derToInteger(e.value)}catch{n+="0x"+Br.util.bytesToHex(e.value)}else if(e.type===Be.Type.BITSTRING){if(e.value.length>1?n+="0x"+Br.util.bytesToHex(e.value.slice(1)):n+="(none)",e.value.length>0){var l=e.value.charCodeAt(0);l==1?n+=" (1 unused bit shown)":l>1&&(n+=" ("+l+" unused bits shown)")}}else if(e.type===Be.Type.OCTETSTRING)HX.test(e.value)||(n+="("+e.value+") "),n+="0x"+Br.util.bytesToHex(e.value);else if(e.type===Be.Type.UTF8)try{n+=Br.util.decodeUtf8(e.value)}catch(f){if(f.message==="URI malformed")n+="0x"+Br.util.bytesToHex(e.value)+" (malformed UTF8)";else throw f}else e.type===Be.Type.PRINTABLESTRING||e.type===Be.Type.IA5String?n+=e.value:HX.test(e.value)?n+="0x"+Br.util.bytesToHex(e.value):e.value.length===0?n+="[null]":n+=e.value}return n}});var Lo=w((zot,WX)=>{"use strict";d();var _C=Ot();WX.exports=_C.md=_C.md||{};_C.md.algorithms=_C.md.algorithms||{}});var Rh=w(($ot,QX)=>{"use strict";d();var Lu=Ot();Lo();nr();var HRe=QX.exports=Lu.hmac=Lu.hmac||{};HRe.create=function(){var e=null,t=null,r=null,n=null,i={};return i.start=function(s,a){if(s!==null)if(typeof s=="string")if(s=s.toLowerCase(),s in Lu.md.algorithms)t=Lu.md.algorithms[s].create();else throw new Error('Unknown hash algorithm "'+s+'"');else t=s;if(a===null)a=e;else{if(typeof a=="string")a=Lu.util.createBuffer(a);else if(Lu.util.isArray(a)){var o=a;a=Lu.util.createBuffer();for(var u=0;u<o.length;++u)a.putByte(o[u])}var l=a.length();l>t.blockLength&&(t.start(),t.update(a.bytes()),a=t.digest()),r=Lu.util.createBuffer(),n=Lu.util.createBuffer(),l=a.length();for(var u=0;u<l;++u){var o=a.at(u);r.putByte(54^o),n.putByte(92^o)}if(l<t.blockLength)for(var o=t.blockLength-l,u=0;u<o;++u)r.putByte(54),n.putByte(92);e=a,r=r.bytes(),n=n.bytes()}t.start(),t.update(r)},i.update=function(s){t.update(s)},i.getMac=function(){var s=t.digest().bytes();return t.start(),t.update(n),t.update(s),t.digest()},i.digest=i.getMac,i}});var CC=w((Xot,YX)=>{"use strict";d();var Fo=Ot();Lo();nr();var KX=YX.exports=Fo.md5=Fo.md5||{};Fo.md.md5=Fo.md.algorithms.md5=KX;KX.create=function(){$X||GRe();var e=null,t=Fo.util.createBuffer(),r=new Array(16),n={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8};return n.start=function(){n.messageLength=0,n.fullMessageLength=n.messageLength64=[];for(var i=n.messageLengthSize/4,s=0;s<i;++s)n.fullMessageLength.push(0);return t=Fo.util.createBuffer(),e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},n},n.start(),n.update=function(i,s){s==="utf8"&&(i=Fo.util.encodeUtf8(i));var a=i.length;n.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var o=n.fullMessageLength.length-1;o>=0;--o)n.fullMessageLength[o]+=a[1],a[1]=a[0]+(n.fullMessageLength[o]/4294967296>>>0),n.fullMessageLength[o]=n.fullMessageLength[o]>>>0,a[0]=a[1]/4294967296>>>0;return t.putBytes(i),zX(e,r,t),(t.read>2048||t.length()===0)&&t.compact(),n},n.digest=function(){var i=Fo.util.createBuffer();i.putBytes(t.bytes());var s=n.fullMessageLength[n.fullMessageLength.length-1]+n.messageLengthSize,a=s&n.blockLength-1;i.putBytes(mP.substr(0,n.blockLength-a));for(var o,u=0,l=n.fullMessageLength.length-1;l>=0;--l)o=n.fullMessageLength[l]*8+u,u=o/4294967296>>>0,i.putInt32Le(o>>>0);var f={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3};zX(f,r,i);var h=Fo.util.createBuffer();return h.putInt32Le(f.h0),h.putInt32Le(f.h1),h.putInt32Le(f.h2),h.putInt32Le(f.h3),h},n};var mP=null,AC=null,ev=null,Nh=null,$X=!1;function GRe(){mP="\x80",mP+=Fo.util.fillString("\0",64),AC=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],ev=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],Nh=new Array(64);for(var e=0;e<64;++e)Nh[e]=Math.floor(Math.abs(Math.sin(e+1))*4294967296);$X=!0}function zX(e,t,r){for(var n,i,s,a,o,u,l,f,h=r.length();h>=64;){for(i=e.h0,s=e.h1,a=e.h2,o=e.h3,f=0;f<16;++f)t[f]=r.getInt32Le(),u=o^s&(a^o),n=i+u+Nh[f]+t[f],l=ev[f],i=o,o=a,a=s,s+=n<<l|n>>>32-l;for(;f<32;++f)u=a^o&(s^a),n=i+u+Nh[f]+t[AC[f]],l=ev[f],i=o,o=a,a=s,s+=n<<l|n>>>32-l;for(;f<48;++f)u=s^a^o,n=i+u+Nh[f]+t[AC[f]],l=ev[f],i=o,o=a,a=s,s+=n<<l|n>>>32-l;for(;f<64;++f)u=a^(s|~o),n=i+u+Nh[f]+t[AC[f]],l=ev[f],i=o,o=a,a=s,s+=n<<l|n>>>32-l;e.h0=e.h0+i|0,e.h1=e.h1+s|0,e.h2=e.h2+a|0,e.h3=e.h3+o|0,h-=64}}});var Wp=w((Zot,JX)=>{"use strict";d();var bC=Ot();nr();var XX=JX.exports=bC.pem=bC.pem||{};XX.encode=function(e,t){t=t||{};var r="-----BEGIN "+e.type+`-----\r
|
|
60
|
-
`,n;if(e.procType&&(n={name:"Proc-Type",values:[String(e.procType.version),e.procType.type]},r+=SC(n)),e.contentDomain&&(n={name:"Content-Domain",values:[e.contentDomain]},r+=SC(n)),e.dekInfo&&(n={name:"DEK-Info",values:[e.dekInfo.algorithm]},e.dekInfo.parameters&&n.values.push(e.dekInfo.parameters),r+=SC(n)),e.headers)for(var i=0;i<e.headers.length;++i)r+=SC(e.headers[i]);return e.procType&&(r+=`\r
|
|
61
|
-
`),r+=bC.util.encode64(e.body,t.maxline||64)+`\r
|
|
62
|
-
`,r+="-----END "+e.type+`-----\r
|
|
63
|
-
`,r};XX.decode=function(e){for(var t=[],r=/\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g,n=/([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/,i=/\r?\n/,s;s=r.exec(e),!!s;){var a=s[1];a==="NEW CERTIFICATE REQUEST"&&(a="CERTIFICATE REQUEST");var o={type:a,procType:null,contentDomain:null,dekInfo:null,headers:[],body:bC.util.decode64(s[3])};if(t.push(o),!!s[2]){for(var u=s[2].split(i),l=0;s&&l<u.length;){for(var f=u[l].replace(/\s+$/,""),h=l+1;h<u.length;++h){var m=u[h];if(!/\s/.test(m[0]))break;f+=m,l=h}if(s=f.match(n),s){for(var y={name:s[1],values:[]},_=s[2].split(","),C=0;C<_.length;++C)y.values.push(WRe(_[C]));if(o.procType)if(!o.contentDomain&&y.name==="Content-Domain")o.contentDomain=_[0]||"";else if(!o.dekInfo&&y.name==="DEK-Info"){if(y.values.length===0)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must have at least one subfield.');o.dekInfo={algorithm:_[0],parameters:_[1]||null}}else o.headers.push(y);else{if(y.name!=="Proc-Type")throw new Error('Invalid PEM formatted message. The first encapsulated header must be "Proc-Type".');if(y.values.length!==2)throw new Error('Invalid PEM formatted message. The "Proc-Type" header must have two subfields.');o.procType={version:_[0],type:_[1]}}}++l}if(o.procType==="ENCRYPTED"&&!o.dekInfo)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must be present if "Proc-Type" is "ENCRYPTED".')}}if(t.length===0)throw new Error("Invalid PEM formatted message.");return t};function SC(e){for(var t=e.name+": ",r=[],n=function(u,l){return" "+l},i=0;i<e.values.length;++i)r.push(e.values[i].replace(/^(\S+\r\n)/,n));t+=r.join(",")+`\r
|
|
64
|
-
`;for(var s=0,a=-1,i=0;i<t.length;++i,++s)if(s>65&&a!==-1){var o=t[a];o===","?(++a,t=t.substr(0,a)+`\r
|
|
65
|
-
`+t.substr(a)):t=t.substr(0,a)+`\r
|
|
66
|
-
`+o+t.substr(a+1),s=i-a-1,a=-1,++i}else(t[i]===" "||t[i]===" "||t[i]===",")&&(a=i);return t}function WRe(e){return e.replace(/^\s+/,"")}});var tv=w((tut,eJ)=>{"use strict";d();var $r=Ot();gC();lP();nr();eJ.exports=$r.des=$r.des||{};$r.des.startEncrypting=function(e,t,r,n){var i=DC({key:e,output:r,decrypt:!1,mode:n||(t===null?"ECB":"CBC")});return i.start(t),i};$r.des.createEncryptionCipher=function(e,t){return DC({key:e,output:null,decrypt:!1,mode:t})};$r.des.startDecrypting=function(e,t,r,n){var i=DC({key:e,output:r,decrypt:!0,mode:n||(t===null?"ECB":"CBC")});return i.start(t),i};$r.des.createDecryptionCipher=function(e,t){return DC({key:e,output:null,decrypt:!0,mode:t})};$r.des.Algorithm=function(e,t){var r=this;r.name=e,r.mode=new t({blockSize:8,cipher:{encrypt:function(n,i){return ZX(r._keys,n,i,!1)},decrypt:function(n,i){return ZX(r._keys,n,i,!0)}}}),r._init=!1};$r.des.Algorithm.prototype.initialize=function(e){if(!this._init){var t=$r.util.createBuffer(e.key);if(this.name.indexOf("3DES")===0&&t.length()!==24)throw new Error("Invalid Triple-DES key size: "+t.length()*8);this._keys=eNe(t),this._init=!0}};ko("DES-ECB",$r.cipher.modes.ecb);ko("DES-CBC",$r.cipher.modes.cbc);ko("DES-CFB",$r.cipher.modes.cfb);ko("DES-OFB",$r.cipher.modes.ofb);ko("DES-CTR",$r.cipher.modes.ctr);ko("3DES-ECB",$r.cipher.modes.ecb);ko("3DES-CBC",$r.cipher.modes.cbc);ko("3DES-CFB",$r.cipher.modes.cfb);ko("3DES-OFB",$r.cipher.modes.ofb);ko("3DES-CTR",$r.cipher.modes.ctr);function ko(e,t){var r=function(){return new $r.des.Algorithm(e,t)};$r.cipher.registerAlgorithm(e,r)}var QRe=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],zRe=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],KRe=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],$Re=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],YRe=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],XRe=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],JRe=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],ZRe=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function eNe(e){for(var t=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],r=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],n=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],i=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],s=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],a=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],o=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],u=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],l=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],f=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],h=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],m=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],y=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],_=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],C=e.length()>8?3:1,b=[],D=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],L=0,F,q=0;q<C;q++){var M=e.getInt32(),k=e.getInt32();F=(M>>>4^k)&252645135,k^=F,M^=F<<4,F=(k>>>-16^M)&65535,M^=F,k^=F<<-16,F=(M>>>2^k)&858993459,k^=F,M^=F<<2,F=(k>>>-16^M)&65535,M^=F,k^=F<<-16,F=(M>>>1^k)&1431655765,k^=F,M^=F<<1,F=(k>>>8^M)&16711935,M^=F,k^=F<<8,F=(M>>>1^k)&1431655765,k^=F,M^=F<<1,F=M<<8|k>>>20&240,M=k<<24|k<<8&16711680|k>>>8&65280|k>>>24&240,k=F;for(var te=0;te<D.length;++te){D[te]?(M=M<<2|M>>>26,k=k<<2|k>>>26):(M=M<<1|M>>>27,k=k<<1|k>>>27),M&=-15,k&=-15;var ce=t[M>>>28]|r[M>>>24&15]|n[M>>>20&15]|i[M>>>16&15]|s[M>>>12&15]|a[M>>>8&15]|o[M>>>4&15],ne=u[k>>>28]|l[k>>>24&15]|f[k>>>20&15]|h[k>>>16&15]|m[k>>>12&15]|y[k>>>8&15]|_[k>>>4&15];F=(ne>>>16^ce)&65535,b[L++]=ce^F,b[L++]=ne^F<<16}}return b}function ZX(e,t,r,n){var i=e.length===32?3:9,s;i===3?s=n?[30,-2,-2]:[0,32,2]:s=n?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var a,o=t[0],u=t[1];a=(o>>>4^u)&252645135,u^=a,o^=a<<4,a=(o>>>16^u)&65535,u^=a,o^=a<<16,a=(u>>>2^o)&858993459,o^=a,u^=a<<2,a=(u>>>8^o)&16711935,o^=a,u^=a<<8,a=(o>>>1^u)&1431655765,u^=a,o^=a<<1,o=o<<1|o>>>31,u=u<<1|u>>>31;for(var l=0;l<i;l+=3){for(var f=s[l+1],h=s[l+2],m=s[l];m!=f;m+=h){var y=u^e[m],_=(u>>>4|u<<28)^e[m+1];a=o,o=u,u=a^(zRe[y>>>24&63]|$Re[y>>>16&63]|XRe[y>>>8&63]|ZRe[y&63]|QRe[_>>>24&63]|KRe[_>>>16&63]|YRe[_>>>8&63]|JRe[_&63])}a=o,o=u,u=a}o=o>>>1|o<<31,u=u>>>1|u<<31,a=(o>>>1^u)&1431655765,u^=a,o^=a<<1,a=(u>>>8^o)&16711935,o^=a,u^=a<<8,a=(u>>>2^o)&858993459,o^=a,u^=a<<2,a=(o>>>16^u)&65535,u^=a,o^=a<<16,a=(o>>>4^u)&252645135,u^=a,o^=a<<4,r[0]=o,r[1]=u}function DC(e){e=e||{};var t=(e.mode||"CBC").toUpperCase(),r="DES-"+t,n;e.decrypt?n=$r.cipher.createDecipher(r,e.key):n=$r.cipher.createCipher(r,e.key);var i=n.start;return n.start=function(s,a){var o=null;a instanceof $r.util.ByteBuffer&&(o=a,a={}),a=a||{},a.output=o,a.iv=s,i.call(n,a)},n}});var wC=w((nut,tJ)=>{"use strict";d();var Oi=Ot();Rh();Lo();nr();var tNe=Oi.pkcs5=Oi.pkcs5||{},Fu;Oi.util.isNodejs&&!Oi.options.usePureJavaScript&&(Fu=J("crypto"));tJ.exports=Oi.pbkdf2=tNe.pbkdf2=function(e,t,r,n,i,s){if(typeof i=="function"&&(s=i,i=null),Oi.util.isNodejs&&!Oi.options.usePureJavaScript&&Fu.pbkdf2&&(i===null||typeof i!="object")&&(Fu.pbkdf2Sync.length>4||!i||i==="sha1"))return typeof i!="string"&&(i="sha1"),e=Buffer.from(e,"binary"),t=Buffer.from(t,"binary"),s?Fu.pbkdf2Sync.length===4?Fu.pbkdf2(e,t,r,n,function(F,q){if(F)return s(F);s(null,q.toString("binary"))}):Fu.pbkdf2(e,t,r,n,i,function(F,q){if(F)return s(F);s(null,q.toString("binary"))}):Fu.pbkdf2Sync.length===4?Fu.pbkdf2Sync(e,t,r,n).toString("binary"):Fu.pbkdf2Sync(e,t,r,n,i).toString("binary");if((typeof i>"u"||i===null)&&(i="sha1"),typeof i=="string"){if(!(i in Oi.md.algorithms))throw new Error("Unknown hash algorithm: "+i);i=Oi.md[i].create()}var a=i.digestLength;if(n>4294967295*a){var o=new Error("Derived key is too long.");if(s)return s(o);throw o}var u=Math.ceil(n/a),l=n-(u-1)*a,f=Oi.hmac.create();f.start(i,e);var h="",m,y,_;if(!s){for(var C=1;C<=u;++C){f.start(null,null),f.update(t),f.update(Oi.util.int32ToBytes(C)),m=_=f.digest().getBytes();for(var b=2;b<=r;++b)f.start(null,null),f.update(_),y=f.digest().getBytes(),m=Oi.util.xorBytes(m,y,a),_=y;h+=C<u?m:m.substr(0,l)}return h}var C=1,b;function D(){if(C>u)return s(null,h);f.start(null,null),f.update(t),f.update(Oi.util.int32ToBytes(C)),m=_=f.digest().getBytes(),b=2,L()}function L(){if(b<=r)return f.start(null,null),f.update(_),y=f.digest().getBytes(),m=Oi.util.xorBytes(m,y,a),_=y,++b,Oi.util.setImmediate(L);h+=C<u?m:m.substr(0,l),++C,D()}D()}});var vP=w((sut,aJ)=>{"use strict";d();var Uo=Ot();Lo();nr();var nJ=aJ.exports=Uo.sha256=Uo.sha256||{};Uo.md.sha256=Uo.md.algorithms.sha256=nJ;nJ.create=function(){iJ||rNe();var e=null,t=Uo.util.createBuffer(),r=new Array(64),n={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};return n.start=function(){n.messageLength=0,n.fullMessageLength=n.messageLength64=[];for(var i=n.messageLengthSize/4,s=0;s<i;++s)n.fullMessageLength.push(0);return t=Uo.util.createBuffer(),e={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},n},n.start(),n.update=function(i,s){s==="utf8"&&(i=Uo.util.encodeUtf8(i));var a=i.length;n.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var o=n.fullMessageLength.length-1;o>=0;--o)n.fullMessageLength[o]+=a[1],a[1]=a[0]+(n.fullMessageLength[o]/4294967296>>>0),n.fullMessageLength[o]=n.fullMessageLength[o]>>>0,a[0]=a[1]/4294967296>>>0;return t.putBytes(i),rJ(e,r,t),(t.read>2048||t.length()===0)&&t.compact(),n},n.digest=function(){var i=Uo.util.createBuffer();i.putBytes(t.bytes());var s=n.fullMessageLength[n.fullMessageLength.length-1]+n.messageLengthSize,a=s&n.blockLength-1;i.putBytes(gP.substr(0,n.blockLength-a));for(var o,u,l=n.fullMessageLength[0]*8,f=0;f<n.fullMessageLength.length-1;++f)o=n.fullMessageLength[f+1]*8,u=o/4294967296>>>0,l+=u,i.putInt32(l>>>0),l=o>>>0;i.putInt32(l);var h={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};rJ(h,r,i);var m=Uo.util.createBuffer();return m.putInt32(h.h0),m.putInt32(h.h1),m.putInt32(h.h2),m.putInt32(h.h3),m.putInt32(h.h4),m.putInt32(h.h5),m.putInt32(h.h6),m.putInt32(h.h7),m},n};var gP=null,iJ=!1,sJ=null;function rNe(){gP="\x80",gP+=Uo.util.fillString("\0",64),sJ=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],iJ=!0}function rJ(e,t,r){for(var n,i,s,a,o,u,l,f,h,m,y,_,C,b,D,L=r.length();L>=64;){for(l=0;l<16;++l)t[l]=r.getInt32();for(;l<64;++l)n=t[l-2],n=(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,i=t[l-15],i=(i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,t[l]=n+t[l-7]+i+t[l-16]|0;for(f=e.h0,h=e.h1,m=e.h2,y=e.h3,_=e.h4,C=e.h5,b=e.h6,D=e.h7,l=0;l<64;++l)a=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),o=b^_&(C^b),s=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),u=f&h|m&(f^h),n=D+a+o+sJ[l]+t[l],i=s+u,D=b,b=C,C=_,_=y+n>>>0,y=m,m=h,h=f,f=n+i>>>0;e.h0=e.h0+f|0,e.h1=e.h1+h|0,e.h2=e.h2+m|0,e.h3=e.h3+y|0,e.h4=e.h4+_|0,e.h5=e.h5+C|0,e.h6=e.h6+b|0,e.h7=e.h7+D|0,L-=64}}});var yP=w((out,oJ)=>{"use strict";d();var Mo=Ot();nr();var TC=null;Mo.util.isNodejs&&!Mo.options.usePureJavaScript&&!process.versions["node-webkit"]&&(TC=J("crypto"));var nNe=oJ.exports=Mo.prng=Mo.prng||{};nNe.create=function(e){for(var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},r=e.md,n=new Array(32),i=0;i<32;++i)n[i]=r.create();t.pools=n,t.pool=0,t.generate=function(l,f){if(!f)return t.generateSync(l);var h=t.plugin.cipher,m=t.plugin.increment,y=t.plugin.formatKey,_=t.plugin.formatSeed,C=Mo.util.createBuffer();t.key=null,b();function b(D){if(D)return f(D);if(C.length()>=l)return f(null,C.getBytes(l));if(t.generated>1048575&&(t.key=null),t.key===null)return Mo.util.nextTick(function(){s(b)});var L=h(t.key,t.seed);t.generated+=L.length,C.putBytes(L),t.key=y(h(t.key,m(t.seed))),t.seed=_(h(t.key,t.seed)),Mo.util.setImmediate(b)}},t.generateSync=function(l){var f=t.plugin.cipher,h=t.plugin.increment,m=t.plugin.formatKey,y=t.plugin.formatSeed;t.key=null;for(var _=Mo.util.createBuffer();_.length()<l;){t.generated>1048575&&(t.key=null),t.key===null&&a();var C=f(t.key,t.seed);t.generated+=C.length,_.putBytes(C),t.key=m(f(t.key,h(t.seed))),t.seed=y(f(t.key,t.seed))}return _.getBytes(l)};function s(l){if(t.pools[0].messageLength>=32)return o(),l();var f=32-t.pools[0].messageLength<<5;t.seedFile(f,function(h,m){if(h)return l(h);t.collect(m),o(),l()})}function a(){if(t.pools[0].messageLength>=32)return o();var l=32-t.pools[0].messageLength<<5;t.collect(t.seedFileSync(l)),o()}function o(){t.reseeds=t.reseeds===4294967295?0:t.reseeds+1;var l=t.plugin.md.create();l.update(t.keyBytes);for(var f=1,h=0;h<32;++h)t.reseeds%f===0&&(l.update(t.pools[h].digest().getBytes()),t.pools[h].start()),f=f<<1;t.keyBytes=l.digest().getBytes(),l.start(),l.update(t.keyBytes);var m=l.digest().getBytes();t.key=t.plugin.formatKey(t.keyBytes),t.seed=t.plugin.formatSeed(m),t.generated=0}function u(l){var f=null,h=Mo.util.globalScope,m=h.crypto||h.msCrypto;m&&m.getRandomValues&&(f=function(M){return m.getRandomValues(M)});var y=Mo.util.createBuffer();if(f)for(;y.length()<l;){var _=Math.max(1,Math.min(l-y.length(),65536)/4),C=new Uint32Array(Math.floor(_));try{f(C);for(var b=0;b<C.length;++b)y.putInt32(C[b])}catch(M){if(!(typeof QuotaExceededError<"u"&&M instanceof QuotaExceededError))throw M}}if(y.length()<l)for(var D,L,F,q=Math.floor(Math.random()*65536);y.length()<l;){L=16807*(q&65535),D=16807*(q>>16),L+=(D&32767)<<16,L+=D>>15,L=(L&2147483647)+(L>>31),q=L&4294967295;for(var b=0;b<3;++b)F=q>>>(b<<3),F^=Math.floor(Math.random()*256),y.putByte(F&255)}return y.getBytes(l)}return TC?(t.seedFile=function(l,f){TC.randomBytes(l,function(h,m){if(h)return f(h);f(null,m.toString())})},t.seedFileSync=function(l){return TC.randomBytes(l).toString()}):(t.seedFile=function(l,f){try{f(null,u(l))}catch(h){f(h)}},t.seedFileSync=u),t.collect=function(l){for(var f=l.length,h=0;h<f;++h)t.pools[t.pool].update(l.substr(h,1)),t.pool=t.pool===31?0:t.pool+1},t.collectInt=function(l,f){for(var h="",m=0;m<f;m+=8)h+=String.fromCharCode(l>>m&255);t.collect(h)},t.registerWorker=function(l){if(l===self)t.seedFile=function(h,m){function y(_){var C=_.data;C.forge&&C.forge.prng&&(self.removeEventListener("message",y),m(C.forge.prng.err,C.forge.prng.bytes))}self.addEventListener("message",y),self.postMessage({forge:{prng:{needed:h}}})};else{var f=function(h){var m=h.data;m.forge&&m.forge.prng&&t.seedFile(m.forge.prng.needed,function(y,_){l.postMessage({forge:{prng:{err:y,bytes:_}}})})};l.addEventListener("message",f)}},t}});var ra=w((cut,xP)=>{"use strict";d();var Vn=Ot();ul();vP();yP();nr();(function(){if(Vn.random&&Vn.random.getBytes){xP.exports=Vn.random;return}(function(e){var t={},r=new Array(4),n=Vn.util.createBuffer();t.formatKey=function(h){var m=Vn.util.createBuffer(h);return h=new Array(4),h[0]=m.getInt32(),h[1]=m.getInt32(),h[2]=m.getInt32(),h[3]=m.getInt32(),Vn.aes._expandKey(h,!1)},t.formatSeed=function(h){var m=Vn.util.createBuffer(h);return h=new Array(4),h[0]=m.getInt32(),h[1]=m.getInt32(),h[2]=m.getInt32(),h[3]=m.getInt32(),h},t.cipher=function(h,m){return Vn.aes._updateBlock(h,m,r,!1),n.putInt32(r[0]),n.putInt32(r[1]),n.putInt32(r[2]),n.putInt32(r[3]),n.getBytes()},t.increment=function(h){return++h[3],h},t.md=Vn.md.sha256;function i(){var h=Vn.prng.create(t);return h.getBytes=function(m,y){return h.generate(m,y)},h.getBytesSync=function(m){return h.generate(m)},h}var s=i(),a=null,o=Vn.util.globalScope,u=o.crypto||o.msCrypto;if(u&&u.getRandomValues&&(a=function(h){return u.getRandomValues(h)}),Vn.options.usePureJavaScript||!Vn.util.isNodejs&&!a){if(typeof window>"u"||window.document,s.collectInt(+new Date,32),typeof navigator<"u"){var l="";for(var f in navigator)try{typeof navigator[f]=="string"&&(l+=navigator[f])}catch{}s.collect(l),l=null}e&&(e().mousemove(function(h){s.collectInt(h.clientX,16),s.collectInt(h.clientY,16)}),e().keypress(function(h){s.collectInt(h.charCode,8)}))}if(!Vn.random)Vn.random=s;else for(var f in s)Vn.random[f]=s[f];Vn.random.createInstance=i,xP.exports=Vn.random})(typeof jQuery<"u"?jQuery:null)})()});var _P=w((put,lJ)=>{"use strict";d();var rs=Ot();nr();var EP=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],uJ=[1,2,3,5],iNe=function(e,t){return e<<t&65535|(e&65535)>>16-t},sNe=function(e,t){return(e&65535)>>t|e<<16-t&65535};lJ.exports=rs.rc2=rs.rc2||{};rs.rc2.expandKey=function(e,t){typeof e=="string"&&(e=rs.util.createBuffer(e)),t=t||128;var r=e,n=e.length(),i=t,s=Math.ceil(i/8),a=255>>(i&7),o;for(o=n;o<128;o++)r.putByte(EP[r.at(o-1)+r.at(o-n)&255]);for(r.setAt(128-s,EP[r.at(128-s)&a]),o=127-s;o>=0;o--)r.setAt(o,EP[r.at(o+1)^r.at(o+s)]);return r};var cJ=function(e,t,r){var n=!1,i=null,s=null,a=null,o,u,l,f,h=[];for(e=rs.rc2.expandKey(e,t),l=0;l<64;l++)h.push(e.getInt16Le());r?(o=function(_){for(l=0;l<4;l++)_[l]+=h[f]+(_[(l+3)%4]&_[(l+2)%4])+(~_[(l+3)%4]&_[(l+1)%4]),_[l]=iNe(_[l],uJ[l]),f++},u=function(_){for(l=0;l<4;l++)_[l]+=h[_[(l+3)%4]&63]}):(o=function(_){for(l=3;l>=0;l--)_[l]=sNe(_[l],uJ[l]),_[l]-=h[f]+(_[(l+3)%4]&_[(l+2)%4])+(~_[(l+3)%4]&_[(l+1)%4]),f--},u=function(_){for(l=3;l>=0;l--)_[l]-=h[_[(l+3)%4]&63]});var m=function(_){var C=[];for(l=0;l<4;l++){var b=i.getInt16Le();a!==null&&(r?b^=a.getInt16Le():a.putInt16Le(b)),C.push(b&65535)}f=r?0:63;for(var D=0;D<_.length;D++)for(var L=0;L<_[D][0];L++)_[D][1](C);for(l=0;l<4;l++)a!==null&&(r?a.putInt16Le(C[l]):C[l]^=a.getInt16Le()),s.putInt16Le(C[l])},y=null;return y={start:function(_,C){_&&typeof _=="string"&&(_=rs.util.createBuffer(_)),n=!1,i=rs.util.createBuffer(),s=C||new rs.util.createBuffer,a=_,y.output=s},update:function(_){for(n||i.putBuffer(_);i.length()>=8;)m([[5,o],[1,u],[6,o],[1,u],[5,o]])},finish:function(_){var C=!0;if(r)if(_)C=_(8,i,!r);else{var b=i.length()===8?8:8-i.length();i.fillWithByte(b,b)}if(C&&(n=!0,y.update()),!r&&(C=i.length()===0,C))if(_)C=_(8,s,!r);else{var D=s.length(),L=s.at(D-1);L>D?C=!1:s.truncate(L)}return C}},y};rs.rc2.startEncrypting=function(e,t,r){var n=rs.rc2.createEncryptionCipher(e,128);return n.start(t,r),n};rs.rc2.createEncryptionCipher=function(e,t){return cJ(e,t,!0)};rs.rc2.startDecrypting=function(e,t,r){var n=rs.rc2.createDecryptionCipher(e,128);return n.start(t,r),n};rs.rc2.createDecryptionCipher=function(e,t){return cJ(e,t,!1)}});var nv=w((dut,yJ)=>{"use strict";d();var AP=Ot();yJ.exports=AP.jsbn=AP.jsbn||{};var ku,aNe=0xdeadbeefcafe,pJ=(aNe&16777215)==15715070;function me(e,t,r){this.data=[],e!=null&&(typeof e=="number"?this.fromNumber(e,t,r):t==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,t))}AP.jsbn.BigInteger=me;function ir(){return new me(null)}function oNe(e,t,r,n,i,s){for(;--s>=0;){var a=t*this.data[e++]+r.data[n]+i;i=Math.floor(a/67108864),r.data[n++]=a&67108863}return i}function uNe(e,t,r,n,i,s){for(var a=t&32767,o=t>>15;--s>=0;){var u=this.data[e]&32767,l=this.data[e++]>>15,f=o*u+l*a;u=a*u+((f&32767)<<15)+r.data[n]+(i&1073741823),i=(u>>>30)+(f>>>15)+o*l+(i>>>30),r.data[n++]=u&1073741823}return i}function fJ(e,t,r,n,i,s){for(var a=t&16383,o=t>>14;--s>=0;){var u=this.data[e]&16383,l=this.data[e++]>>14,f=o*u+l*a;u=a*u+((f&16383)<<14)+r.data[n]+i,i=(u>>28)+(f>>14)+o*l,r.data[n++]=u&268435455}return i}typeof navigator>"u"?(me.prototype.am=fJ,ku=28):pJ&&navigator.appName=="Microsoft Internet Explorer"?(me.prototype.am=uNe,ku=30):pJ&&navigator.appName!="Netscape"?(me.prototype.am=oNe,ku=26):(me.prototype.am=fJ,ku=28);me.prototype.DB=ku;me.prototype.DM=(1<<ku)-1;me.prototype.DV=1<<ku;var CP=52;me.prototype.FV=Math.pow(2,CP);me.prototype.F1=CP-ku;me.prototype.F2=2*ku-CP;var cNe="0123456789abcdefghijklmnopqrstuvwxyz",IC=new Array,Oh,na;Oh=48;for(na=0;na<=9;++na)IC[Oh++]=na;Oh=97;for(na=10;na<36;++na)IC[Oh++]=na;Oh=65;for(na=10;na<36;++na)IC[Oh++]=na;function dJ(e){return cNe.charAt(e)}function hJ(e,t){var r=IC[e.charCodeAt(t)];return r??-1}function lNe(e){for(var t=this.t-1;t>=0;--t)e.data[t]=this.data[t];e.t=this.t,e.s=this.s}function pNe(e){this.t=1,this.s=e<0?-1:0,e>0?this.data[0]=e:e<-1?this.data[0]=e+this.DV:this.t=0}function ll(e){var t=ir();return t.fromInt(e),t}function fNe(e,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==256)r=8;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var n=e.length,i=!1,s=0;--n>=0;){var a=r==8?e[n]&255:hJ(e,n);if(a<0){e.charAt(n)=="-"&&(i=!0);continue}i=!1,s==0?this.data[this.t++]=a:s+r>this.DB?(this.data[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this.data[this.t++]=a>>this.DB-s):this.data[this.t-1]|=a<<s,s+=r,s>=this.DB&&(s-=this.DB)}r==8&&e[0]&128&&(this.s=-1,s>0&&(this.data[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&me.ZERO.subTo(this,this)}function dNe(){for(var e=this.s&this.DM;this.t>0&&this.data[this.t-1]==e;)--this.t}function hNe(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var r=(1<<t)-1,n,i=!1,s="",a=this.t,o=this.DB-a*this.DB%t;if(a-- >0)for(o<this.DB&&(n=this.data[a]>>o)>0&&(i=!0,s=dJ(n));a>=0;)o<t?(n=(this.data[a]&(1<<o)-1)<<t-o,n|=this.data[--a]>>(o+=this.DB-t)):(n=this.data[a]>>(o-=t)&r,o<=0&&(o+=this.DB,--a)),n>0&&(i=!0),i&&(s+=dJ(n));return i?s:"0"}function mNe(){var e=ir();return me.ZERO.subTo(this,e),e}function gNe(){return this.s<0?this.negate():this}function vNe(e){var t=this.s-e.s;if(t!=0)return t;var r=this.t;if(t=r-e.t,t!=0)return this.s<0?-t:t;for(;--r>=0;)if((t=this.data[r]-e.data[r])!=0)return t;return 0}function RC(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}function yNe(){return this.t<=0?0:this.DB*(this.t-1)+RC(this.data[this.t-1]^this.s&this.DM)}function xNe(e,t){var r;for(r=this.t-1;r>=0;--r)t.data[r+e]=this.data[r];for(r=e-1;r>=0;--r)t.data[r]=0;t.t=this.t+e,t.s=this.s}function ENe(e,t){for(var r=e;r<this.t;++r)t.data[r-e]=this.data[r];t.t=Math.max(this.t-e,0),t.s=this.s}function _Ne(e,t){var r=e%this.DB,n=this.DB-r,i=(1<<n)-1,s=Math.floor(e/this.DB),a=this.s<<r&this.DM,o;for(o=this.t-1;o>=0;--o)t.data[o+s+1]=this.data[o]>>n|a,a=(this.data[o]&i)<<r;for(o=s-1;o>=0;--o)t.data[o]=0;t.data[s]=a,t.t=this.t+s+1,t.s=this.s,t.clamp()}function ANe(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}var n=e%this.DB,i=this.DB-n,s=(1<<n)-1;t.data[0]=this.data[r]>>n;for(var a=r+1;a<this.t;++a)t.data[a-r-1]|=(this.data[a]&s)<<i,t.data[a-r]=this.data[a]>>n;n>0&&(t.data[this.t-r-1]|=(this.s&s)<<i),t.t=this.t-r,t.clamp()}function CNe(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this.data[r]-e.data[r],t.data[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n-=e.s;r<this.t;)n+=this.data[r],t.data[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n-=e.data[r],t.data[r++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t.data[r++]=this.DV+n:n>0&&(t.data[r++]=n),t.t=r,t.clamp()}function SNe(e,t){var r=this.abs(),n=e.abs(),i=r.t;for(t.t=i+n.t;--i>=0;)t.data[i]=0;for(i=0;i<n.t;++i)t.data[i+r.t]=r.am(0,n.data[i],t,i,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&me.ZERO.subTo(t,t)}function bNe(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e.data[r]=0;for(r=0;r<t.t-1;++r){var n=t.am(r,t.data[r],e,2*r,0,1);(e.data[r+t.t]+=t.am(r+1,2*t.data[r],e,2*r+1,n,t.t-r-1))>=t.DV&&(e.data[r+t.t]-=t.DV,e.data[r+t.t+1]=1)}e.t>0&&(e.data[e.t-1]+=t.am(r,t.data[r],e,2*r,0,1)),e.s=0,e.clamp()}function DNe(e,t,r){var n=e.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t){t?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=ir());var s=ir(),a=this.s,o=e.s,u=this.DB-RC(n.data[n.t-1]);u>0?(n.lShiftTo(u,s),i.lShiftTo(u,r)):(n.copyTo(s),i.copyTo(r));var l=s.t,f=s.data[l-1];if(f!=0){var h=f*(1<<this.F1)+(l>1?s.data[l-2]>>this.F2:0),m=this.FV/h,y=(1<<this.F1)/h,_=1<<this.F2,C=r.t,b=C-l,D=t??ir();for(s.dlShiftTo(b,D),r.compareTo(D)>=0&&(r.data[r.t++]=1,r.subTo(D,r)),me.ONE.dlShiftTo(l,D),D.subTo(s,s);s.t<l;)s.data[s.t++]=0;for(;--b>=0;){var L=r.data[--C]==f?this.DM:Math.floor(r.data[C]*m+(r.data[C-1]+_)*y);if((r.data[C]+=s.am(0,L,r,b,0,l))<L)for(s.dlShiftTo(b,D),r.subTo(D,r);r.data[C]<--L;)r.subTo(D,r)}t!=null&&(r.drShiftTo(l,t),a!=o&&me.ZERO.subTo(t,t)),r.t=l,r.clamp(),u>0&&r.rShiftTo(u,r),a<0&&me.ZERO.subTo(r,r)}}}function wNe(e){var t=ir();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(me.ZERO)>0&&e.subTo(t,t),t}function Qp(e){this.m=e}function TNe(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function INe(e){return e}function RNe(e){e.divRemTo(this.m,null,e)}function NNe(e,t,r){e.multiplyTo(t,r),this.reduce(r)}function ONe(e,t){e.squareTo(t),this.reduce(t)}Qp.prototype.convert=TNe;Qp.prototype.revert=INe;Qp.prototype.reduce=RNe;Qp.prototype.mulTo=NNe;Qp.prototype.sqrTo=ONe;function PNe(){if(this.t<1)return 0;var e=this.data[0];if(!(e&1))return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function zp(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function BNe(e){var t=ir();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(me.ZERO)>0&&this.m.subTo(t,t),t}function LNe(e){var t=ir();return e.copyTo(t),this.reduce(t),t}function FNe(e){for(;e.t<=this.mt2;)e.data[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=e.data[t]&32767,n=r*this.mpl+((r*this.mph+(e.data[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e.data[r]+=this.m.am(0,n,e,t,0,this.m.t);e.data[r]>=e.DV;)e.data[r]-=e.DV,e.data[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function kNe(e,t){e.squareTo(t),this.reduce(t)}function UNe(e,t,r){e.multiplyTo(t,r),this.reduce(r)}zp.prototype.convert=BNe;zp.prototype.revert=LNe;zp.prototype.reduce=FNe;zp.prototype.mulTo=UNe;zp.prototype.sqrTo=kNe;function MNe(){return(this.t>0?this.data[0]&1:this.s)==0}function qNe(e,t){if(e>4294967295||e<1)return me.ONE;var r=ir(),n=ir(),i=t.convert(this),s=RC(e)-1;for(i.copyTo(r);--s>=0;)if(t.sqrTo(r,n),(e&1<<s)>0)t.mulTo(n,i,r);else{var a=r;r=n,n=a}return t.revert(r)}function jNe(e,t){var r;return e<256||t.isEven()?r=new Qp(t):r=new zp(t),this.exp(e,r)}me.prototype.copyTo=lNe;me.prototype.fromInt=pNe;me.prototype.fromString=fNe;me.prototype.clamp=dNe;me.prototype.dlShiftTo=xNe;me.prototype.drShiftTo=ENe;me.prototype.lShiftTo=_Ne;me.prototype.rShiftTo=ANe;me.prototype.subTo=CNe;me.prototype.multiplyTo=SNe;me.prototype.squareTo=bNe;me.prototype.divRemTo=DNe;me.prototype.invDigit=PNe;me.prototype.isEven=MNe;me.prototype.exp=qNe;me.prototype.toString=hNe;me.prototype.negate=mNe;me.prototype.abs=gNe;me.prototype.compareTo=vNe;me.prototype.bitLength=yNe;me.prototype.mod=wNe;me.prototype.modPowInt=jNe;me.ZERO=ll(0);me.ONE=ll(1);function VNe(){var e=ir();return this.copyTo(e),e}function HNe(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this.data[0];if(this.t==0)return 0}return(this.data[1]&(1<<32-this.DB)-1)<<this.DB|this.data[0]}function GNe(){return this.t==0?this.s:this.data[0]<<24>>24}function WNe(){return this.t==0?this.s:this.data[0]<<16>>16}function QNe(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function zNe(){return this.s<0?-1:this.t<=0||this.t==1&&this.data[0]<=0?0:1}function KNe(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),n=ll(r),i=ir(),s=ir(),a="";for(this.divRemTo(n,i,s);i.signum()>0;)a=(r+s.intValue()).toString(e).substr(1)+a,i.divRemTo(n,i,s);return s.intValue().toString(e)+a}function $Ne(e,t){this.fromInt(0),t==null&&(t=10);for(var r=this.chunkSize(t),n=Math.pow(t,r),i=!1,s=0,a=0,o=0;o<e.length;++o){var u=hJ(e,o);if(u<0){e.charAt(o)=="-"&&this.signum()==0&&(i=!0);continue}a=t*a+u,++s>=r&&(this.dMultiply(n),this.dAddOffset(a,0),s=0,a=0)}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(a,0)),i&&me.ZERO.subTo(this,this)}function YNe(e,t,r){if(typeof t=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(me.ONE.shiftLeft(e-1),SP,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(me.ONE.shiftLeft(e-1),this);else{var n=new Array,i=e&7;n.length=(e>>3)+1,t.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}}function XNe(){var e=this.t,t=new Array;t[0]=this.s;var r=this.DB-e*this.DB%8,n,i=0;if(e-- >0)for(r<this.DB&&(n=this.data[e]>>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<<this.DB-r);e>=0;)r<8?(n=(this.data[e]&(1<<r)-1)<<8-r,n|=this.data[--e]>>(r+=this.DB-8)):(n=this.data[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),n&128&&(n|=-256),i==0&&(this.s&128)!=(n&128)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t}function JNe(e){return this.compareTo(e)==0}function ZNe(e){return this.compareTo(e)<0?this:e}function eOe(e){return this.compareTo(e)>0?this:e}function tOe(e,t,r){var n,i,s=Math.min(e.t,this.t);for(n=0;n<s;++n)r.data[n]=t(this.data[n],e.data[n]);if(e.t<this.t){for(i=e.s&this.DM,n=s;n<this.t;++n)r.data[n]=t(this.data[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=s;n<e.t;++n)r.data[n]=t(i,e.data[n]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()}function rOe(e,t){return e&t}function nOe(e){var t=ir();return this.bitwiseTo(e,rOe,t),t}function SP(e,t){return e|t}function iOe(e){var t=ir();return this.bitwiseTo(e,SP,t),t}function mJ(e,t){return e^t}function sOe(e){var t=ir();return this.bitwiseTo(e,mJ,t),t}function gJ(e,t){return e&~t}function aOe(e){var t=ir();return this.bitwiseTo(e,gJ,t),t}function oOe(){for(var e=ir(),t=0;t<this.t;++t)e.data[t]=this.DM&~this.data[t];return e.t=this.t,e.s=~this.s,e}function uOe(e){var t=ir();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}function cOe(e){var t=ir();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t}function lOe(e){if(e==0)return-1;var t=0;return e&65535||(e>>=16,t+=16),e&255||(e>>=8,t+=8),e&15||(e>>=4,t+=4),e&3||(e>>=2,t+=2),e&1||++t,t}function pOe(){for(var e=0;e<this.t;++e)if(this.data[e]!=0)return e*this.DB+lOe(this.data[e]);return this.s<0?this.t*this.DB:-1}function fOe(e){for(var t=0;e!=0;)e&=e-1,++t;return t}function dOe(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=fOe(this.data[r]^t);return e}function hOe(e){var t=Math.floor(e/this.DB);return t>=this.t?this.s!=0:(this.data[t]&1<<e%this.DB)!=0}function mOe(e,t){var r=me.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r}function gOe(e){return this.changeBit(e,SP)}function vOe(e){return this.changeBit(e,gJ)}function yOe(e){return this.changeBit(e,mJ)}function xOe(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this.data[r]+e.data[r],t.data[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n+=e.s;r<this.t;)n+=this.data[r],t.data[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n+=e.data[r],t.data[r++]=n&this.DM,n>>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t.data[r++]=n:n<-1&&(t.data[r++]=this.DV+n),t.t=r,t.clamp()}function EOe(e){var t=ir();return this.addTo(e,t),t}function _Oe(e){var t=ir();return this.subTo(e,t),t}function AOe(e){var t=ir();return this.multiplyTo(e,t),t}function COe(e){var t=ir();return this.divRemTo(e,t,null),t}function SOe(e){var t=ir();return this.divRemTo(e,null,t),t}function bOe(e){var t=ir(),r=ir();return this.divRemTo(e,t,r),new Array(t,r)}function DOe(e){this.data[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function wOe(e,t){if(e!=0){for(;this.t<=t;)this.data[this.t++]=0;for(this.data[t]+=e;this.data[t]>=this.DV;)this.data[t]-=this.DV,++t>=this.t&&(this.data[this.t++]=0),++this.data[t]}}function rv(){}function vJ(e){return e}function TOe(e,t,r){e.multiplyTo(t,r)}function IOe(e,t){e.squareTo(t)}rv.prototype.convert=vJ;rv.prototype.revert=vJ;rv.prototype.mulTo=TOe;rv.prototype.sqrTo=IOe;function ROe(e){return this.exp(e,new rv)}function NOe(e,t,r){var n=Math.min(this.t+e.t,t);for(r.s=0,r.t=n;n>0;)r.data[--n]=0;var i;for(i=r.t-this.t;n<i;++n)r.data[n+this.t]=this.am(0,e.data[n],r,n,0,this.t);for(i=Math.min(e.t,t);n<i;++n)this.am(0,e.data[n],r,n,0,t-n);r.clamp()}function OOe(e,t,r){--t;var n=r.t=this.t+e.t-t;for(r.s=0;--n>=0;)r.data[n]=0;for(n=Math.max(t-this.t,0);n<e.t;++n)r.data[this.t+n-t]=this.am(t-n,e.data[n],r,0,0,this.t+n-t);r.clamp(),r.drShiftTo(1,r)}function Ph(e){this.r2=ir(),this.q3=ir(),me.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}function POe(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=ir();return e.copyTo(t),this.reduce(t),t}function BOe(e){return e}function LOe(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)}function FOe(e,t){e.squareTo(t),this.reduce(t)}function kOe(e,t,r){e.multiplyTo(t,r),this.reduce(r)}Ph.prototype.convert=POe;Ph.prototype.revert=BOe;Ph.prototype.reduce=LOe;Ph.prototype.mulTo=kOe;Ph.prototype.sqrTo=FOe;function UOe(e,t){var r=e.bitLength(),n,i=ll(1),s;if(r<=0)return i;r<18?n=1:r<48?n=3:r<144?n=4:r<768?n=5:n=6,r<8?s=new Qp(t):t.isEven()?s=new Ph(t):s=new zp(t);var a=new Array,o=3,u=n-1,l=(1<<n)-1;if(a[1]=s.convert(this),n>1){var f=ir();for(s.sqrTo(a[1],f);o<=l;)a[o]=ir(),s.mulTo(f,a[o-2],a[o]),o+=2}var h=e.t-1,m,y=!0,_=ir(),C;for(r=RC(e.data[h])-1;h>=0;){for(r>=u?m=e.data[h]>>r-u&l:(m=(e.data[h]&(1<<r+1)-1)<<u-r,h>0&&(m|=e.data[h-1]>>this.DB+r-u)),o=n;!(m&1);)m>>=1,--o;if((r-=o)<0&&(r+=this.DB,--h),y)a[m].copyTo(i),y=!1;else{for(;o>1;)s.sqrTo(i,_),s.sqrTo(_,i),o-=2;o>0?s.sqrTo(i,_):(C=i,i=_,_=C),s.mulTo(_,a[m],i)}for(;h>=0&&!(e.data[h]&1<<r);)s.sqrTo(i,_),C=i,i=_,_=C,--r<0&&(r=this.DB-1,--h)}return s.revert(i)}function MOe(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var n=t;t=r,r=n}var i=t.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)return t;for(i<s&&(s=i),s>0&&(t.rShiftTo(s,t),r.rShiftTo(s,r));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return s>0&&r.lShiftTo(s,r),r}function qOe(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(t==0)r=this.data[0]%e;else for(var n=this.t-1;n>=0;--n)r=(t*r+this.data[n])%e;return r}function jOe(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return me.ZERO;for(var r=e.clone(),n=this.clone(),i=ll(1),s=ll(0),a=ll(0),o=ll(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),t?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(e,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;n.isEven();)n.rShiftTo(1,n),t?((!a.isEven()||!o.isEven())&&(a.addTo(this,a),o.subTo(e,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);r.compareTo(n)>=0?(r.subTo(n,r),t&&i.subTo(a,i),s.subTo(o,s)):(n.subTo(r,n),t&&a.subTo(i,a),o.subTo(s,o))}if(n.compareTo(me.ONE)!=0)return me.ZERO;if(o.compareTo(e)>=0)return o.subtract(e);if(o.signum()<0)o.addTo(e,o);else return o;return o.signum()<0?o.add(e):o}var za=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],VOe=(1<<26)/za[za.length-1];function HOe(e){var t,r=this.abs();if(r.t==1&&r.data[0]<=za[za.length-1]){for(t=0;t<za.length;++t)if(r.data[0]==za[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<za.length;){for(var n=za[t],i=t+1;i<za.length&&n<VOe;)n*=za[i++];for(n=r.modInt(n);t<i;)if(n%za[t++]==0)return!1}return r.millerRabin(e)}function GOe(e){var t=this.subtract(me.ONE),r=t.getLowestSetBit();if(r<=0)return!1;for(var n=t.shiftRight(r),i=WOe(),s,a=0;a<e;++a){do s=new me(this.bitLength(),i);while(s.compareTo(me.ONE)<=0||s.compareTo(t)>=0);var o=s.modPow(n,this);if(o.compareTo(me.ONE)!=0&&o.compareTo(t)!=0){for(var u=1;u++<r&&o.compareTo(t)!=0;)if(o=o.modPowInt(2,this),o.compareTo(me.ONE)==0)return!1;if(o.compareTo(t)!=0)return!1}}return!0}function WOe(){return{nextBytes:function(e){for(var t=0;t<e.length;++t)e[t]=Math.floor(Math.random()*256)}}}me.prototype.chunkSize=QNe;me.prototype.toRadix=KNe;me.prototype.fromRadix=$Ne;me.prototype.fromNumber=YNe;me.prototype.bitwiseTo=tOe;me.prototype.changeBit=mOe;me.prototype.addTo=xOe;me.prototype.dMultiply=DOe;me.prototype.dAddOffset=wOe;me.prototype.multiplyLowerTo=NOe;me.prototype.multiplyUpperTo=OOe;me.prototype.modInt=qOe;me.prototype.millerRabin=GOe;me.prototype.clone=VNe;me.prototype.intValue=HNe;me.prototype.byteValue=GNe;me.prototype.shortValue=WNe;me.prototype.signum=zNe;me.prototype.toByteArray=XNe;me.prototype.equals=JNe;me.prototype.min=ZNe;me.prototype.max=eOe;me.prototype.and=nOe;me.prototype.or=iOe;me.prototype.xor=sOe;me.prototype.andNot=aOe;me.prototype.not=oOe;me.prototype.shiftLeft=uOe;me.prototype.shiftRight=cOe;me.prototype.getLowestSetBit=pOe;me.prototype.bitCount=dOe;me.prototype.testBit=hOe;me.prototype.setBit=gOe;me.prototype.clearBit=vOe;me.prototype.flipBit=yOe;me.prototype.add=EOe;me.prototype.subtract=_Oe;me.prototype.multiply=AOe;me.prototype.divide=COe;me.prototype.remainder=SOe;me.prototype.divideAndRemainder=bOe;me.prototype.modPow=UOe;me.prototype.modInverse=jOe;me.prototype.pow=ROe;me.prototype.gcd=MOe;me.prototype.isProbablePrime=HOe});var Bh=w((mut,AJ)=>{"use strict";d();var qo=Ot();Lo();nr();var EJ=AJ.exports=qo.sha1=qo.sha1||{};qo.md.sha1=qo.md.algorithms.sha1=EJ;EJ.create=function(){_J||QOe();var e=null,t=qo.util.createBuffer(),r=new Array(80),n={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};return n.start=function(){n.messageLength=0,n.fullMessageLength=n.messageLength64=[];for(var i=n.messageLengthSize/4,s=0;s<i;++s)n.fullMessageLength.push(0);return t=qo.util.createBuffer(),e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520},n},n.start(),n.update=function(i,s){s==="utf8"&&(i=qo.util.encodeUtf8(i));var a=i.length;n.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var o=n.fullMessageLength.length-1;o>=0;--o)n.fullMessageLength[o]+=a[1],a[1]=a[0]+(n.fullMessageLength[o]/4294967296>>>0),n.fullMessageLength[o]=n.fullMessageLength[o]>>>0,a[0]=a[1]/4294967296>>>0;return t.putBytes(i),xJ(e,r,t),(t.read>2048||t.length()===0)&&t.compact(),n},n.digest=function(){var i=qo.util.createBuffer();i.putBytes(t.bytes());var s=n.fullMessageLength[n.fullMessageLength.length-1]+n.messageLengthSize,a=s&n.blockLength-1;i.putBytes(bP.substr(0,n.blockLength-a));for(var o,u,l=n.fullMessageLength[0]*8,f=0;f<n.fullMessageLength.length-1;++f)o=n.fullMessageLength[f+1]*8,u=o/4294967296>>>0,l+=u,i.putInt32(l>>>0),l=o>>>0;i.putInt32(l);var h={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4};xJ(h,r,i);var m=qo.util.createBuffer();return m.putInt32(h.h0),m.putInt32(h.h1),m.putInt32(h.h2),m.putInt32(h.h3),m.putInt32(h.h4),m},n};var bP=null,_J=!1;function QOe(){bP="\x80",bP+=qo.util.fillString("\0",64),_J=!0}function xJ(e,t,r){for(var n,i,s,a,o,u,l,f,h=r.length();h>=64;){for(i=e.h0,s=e.h1,a=e.h2,o=e.h3,u=e.h4,f=0;f<16;++f)n=r.getInt32(),t[f]=n,l=o^s&(a^o),n=(i<<5|i>>>27)+l+u+1518500249+n,u=o,o=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;f<20;++f)n=t[f-3]^t[f-8]^t[f-14]^t[f-16],n=n<<1|n>>>31,t[f]=n,l=o^s&(a^o),n=(i<<5|i>>>27)+l+u+1518500249+n,u=o,o=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;f<32;++f)n=t[f-3]^t[f-8]^t[f-14]^t[f-16],n=n<<1|n>>>31,t[f]=n,l=s^a^o,n=(i<<5|i>>>27)+l+u+1859775393+n,u=o,o=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;f<40;++f)n=t[f-6]^t[f-16]^t[f-28]^t[f-32],n=n<<2|n>>>30,t[f]=n,l=s^a^o,n=(i<<5|i>>>27)+l+u+1859775393+n,u=o,o=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;f<60;++f)n=t[f-6]^t[f-16]^t[f-28]^t[f-32],n=n<<2|n>>>30,t[f]=n,l=s&a|o&(s^a),n=(i<<5|i>>>27)+l+u+2400959708+n,u=o,o=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;f<80;++f)n=t[f-6]^t[f-16]^t[f-28]^t[f-32],n=n<<2|n>>>30,t[f]=n,l=s^a^o,n=(i<<5|i>>>27)+l+u+3395469782+n,u=o,o=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;e.h0=e.h0+i|0,e.h1=e.h1+s|0,e.h2=e.h2+a|0,e.h3=e.h3+o|0,e.h4=e.h4+u|0,h-=64}}});var DP=w((vut,SJ)=>{"use strict";d();var jo=Ot();nr();ra();Bh();var CJ=SJ.exports=jo.pkcs1=jo.pkcs1||{};CJ.encode_rsa_oaep=function(e,t,r){var n,i,s,a;typeof r=="string"?(n=r,i=arguments[3]||void 0,s=arguments[4]||void 0):r&&(n=r.label||void 0,i=r.seed||void 0,s=r.md||void 0,r.mgf1&&r.mgf1.md&&(a=r.mgf1.md)),s?s.start():s=jo.md.sha1.create(),a||(a=s);var o=Math.ceil(e.n.bitLength()/8),u=o-2*s.digestLength-2;if(t.length>u){var l=new Error("RSAES-OAEP input message length is too long.");throw l.length=t.length,l.maxLength=u,l}n||(n=""),s.update(n,"raw");for(var f=s.digest(),h="",m=u-t.length,y=0;y<m;y++)h+="\0";var _=f.getBytes()+h+""+t;if(!i)i=jo.random.getBytes(s.digestLength);else if(i.length!==s.digestLength){var l=new Error("Invalid RSAES-OAEP seed. The seed length must match the digest length.");throw l.seedLength=i.length,l.digestLength=s.digestLength,l}var C=NC(i,o-s.digestLength-1,a),b=jo.util.xorBytes(_,C,_.length),D=NC(b,s.digestLength,a),L=jo.util.xorBytes(i,D,i.length);return"\0"+L+b};CJ.decode_rsa_oaep=function(e,t,r){var n,i,s;typeof r=="string"?(n=r,i=arguments[3]||void 0):r&&(n=r.label||void 0,i=r.md||void 0,r.mgf1&&r.mgf1.md&&(s=r.mgf1.md));var a=Math.ceil(e.n.bitLength()/8);if(t.length!==a){var b=new Error("RSAES-OAEP encoded message length is invalid.");throw b.length=t.length,b.expectedLength=a,b}if(i===void 0?i=jo.md.sha1.create():i.start(),s||(s=i),a<2*i.digestLength+2)throw new Error("RSAES-OAEP key is too short for the hash function.");n||(n=""),i.update(n,"raw");for(var o=i.digest().getBytes(),u=t.charAt(0),l=t.substring(1,i.digestLength+1),f=t.substring(1+i.digestLength),h=NC(f,i.digestLength,s),m=jo.util.xorBytes(l,h,l.length),y=NC(m,a-i.digestLength-1,s),_=jo.util.xorBytes(f,y,f.length),C=_.substring(0,i.digestLength),b=u!=="\0",D=0;D<i.digestLength;++D)b|=o.charAt(D)!==C.charAt(D);for(var L=1,F=i.digestLength,q=i.digestLength;q<_.length;q++){var M=_.charCodeAt(q),k=M&1^1,te=L?65534:0;b|=M&te,L=L&k,F+=L}if(b||_.charCodeAt(F)!==1)throw new Error("Invalid RSAES-OAEP padding.");return _.substring(F+1)};function NC(e,t,r){r||(r=jo.md.sha1.create());for(var n="",i=Math.ceil(t/r.digestLength),s=0;s<i;++s){var a=String.fromCharCode(s>>24&255,s>>16&255,s>>8&255,s&255);r.start(),r.update(e+a),n+=r.digest().getBytes()}return n.substring(0,t)}});var TP=w((xut,wP)=>{"use strict";d();var pl=Ot();nr();nv();ra();(function(){if(pl.prime){wP.exports=pl.prime;return}var e=wP.exports=pl.prime=pl.prime||{},t=pl.jsbn.BigInteger,r=[6,4,2,4,2,4,6,2],n=new t(null);n.fromInt(30);var i=function(h,m){return h|m};e.generateProbablePrime=function(h,m,y){typeof m=="function"&&(y=m,m={}),m=m||{};var _=m.algorithm||"PRIMEINC";typeof _=="string"&&(_={name:_}),_.options=_.options||{};var C=m.prng||pl.random,b={nextBytes:function(D){for(var L=C.getBytesSync(D.length),F=0;F<D.length;++F)D[F]=L.charCodeAt(F)}};if(_.name==="PRIMEINC")return s(h,b,_.options,y);throw new Error("Invalid prime generation algorithm: "+_.name)};function s(h,m,y,_){return"workers"in y?u(h,m,y,_):a(h,m,y,_)}function a(h,m,y,_){var C=l(h,m),b=0,D=f(C.bitLength());"millerRabinTests"in y&&(D=y.millerRabinTests);var L=10;"maxBlockTime"in y&&(L=y.maxBlockTime),o(C,h,m,b,D,L,_)}function o(h,m,y,_,C,b,D){var L=+new Date;do{if(h.bitLength()>m&&(h=l(m,y)),h.isProbablePrime(C))return D(null,h);h.dAddOffset(r[_++%8],0)}while(b<0||+new Date-L<b);pl.util.setImmediate(function(){o(h,m,y,_,C,b,D)})}function u(h,m,y,_){if(typeof Worker>"u")return a(h,m,y,_);var C=l(h,m),b=y.workers,D=y.workLoad||100,L=D*30/8,F=y.workerScript||"forge/prime.worker.js";if(b===-1)return pl.util.estimateCores(function(M,k){M&&(k=2),b=k-1,q()});q();function q(){b=Math.max(1,b);for(var M=[],k=0;k<b;++k)M[k]=new Worker(F);for(var te=b,k=0;k<b;++k)M[k].addEventListener("message",ne);var ce=!1;function ne(pe){if(!ce){--te;var Q=pe.data;if(Q.found){for(var be=0;be<M.length;++be)M[be].terminate();return ce=!0,_(null,new t(Q.prime,16))}C.bitLength()>h&&(C=l(h,m));var Ie=C.toString(16);pe.target.postMessage({hex:Ie,workLoad:D}),C.dAddOffset(L,0)}}}}function l(h,m){var y=new t(h,m),_=h-1;return y.testBit(_)||y.bitwiseTo(t.ONE.shiftLeft(_),i,y),y.dAddOffset(31-y.mod(n).byteValue(),0),y}function f(h){return h<=100?27:h<=150?18:h<=200?15:h<=250?12:h<=300?9:h<=350?8:h<=400?7:h<=500?6:h<=600?5:h<=800?4:h<=1250?3:2}})()});var iv=w((_ut,NJ)=>{"use strict";d();var it=Ot();Qa();nv();cl();DP();TP();ra();nr();typeof Xt>"u"&&(Xt=it.jsbn.BigInteger);var Xt,IP=it.util.isNodejs?J("crypto"):null,X=it.asn1,ia=it.util;it.pki=it.pki||{};NJ.exports=it.pki.rsa=it.rsa=it.rsa||{};var At=it.pki,zOe=[6,4,2,4,2,4,6,2],KOe={name:"PrivateKeyInfo",tagClass:X.Class.UNIVERSAL,type:X.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:X.Class.UNIVERSAL,type:X.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:X.Class.UNIVERSAL,type:X.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:X.Class.UNIVERSAL,type:X.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:X.Class.UNIVERSAL,type:X.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},$Oe={name:"RSAPrivateKey",tagClass:X.Class.UNIVERSAL,type:X.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:X.Class.UNIVERSAL,type:X.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:X.Class.UNIVERSAL,type:X.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:X.Class.UNIVERSAL,type:X.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:X.Class.UNIVERSAL,type:X.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:X.Class.UNIVERSAL,type:X.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:X.Class.UNIVERSAL,type:X.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:X.Class.UNIVERSAL,type:X.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:X.Class.UNIVERSAL,type:X.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:X.Class.UNIVERSAL,type:X.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},YOe={name:"RSAPublicKey",tagClass:X.Class.UNIVERSAL,type:X.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:X.Class.UNIVERSAL,type:X.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:X.Class.UNIVERSAL,type:X.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},XOe=it.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:X.Class.UNIVERSAL,type:X.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:X.Class.UNIVERSAL,type:X.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:X.Class.UNIVERSAL,type:X.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:X.Class.UNIVERSAL,type:X.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:X.Class.UNIVERSAL,type:X.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},JOe={name:"DigestInfo",tagClass:X.Class.UNIVERSAL,type:X.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:X.Class.UNIVERSAL,type:X.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:X.Class.UNIVERSAL,type:X.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:X.Class.UNIVERSAL,type:X.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:X.Class.UNIVERSAL,type:X.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},ZOe=function(e){var t;if(e.algorithm in At.oids)t=At.oids[e.algorithm];else{var r=new Error("Unknown message digest algorithm.");throw r.algorithm=e.algorithm,r}var n=X.oidToDer(t).getBytes(),i=X.create(X.Class.UNIVERSAL,X.Type.SEQUENCE,!0,[]),s=X.create(X.Class.UNIVERSAL,X.Type.SEQUENCE,!0,[]);s.value.push(X.create(X.Class.UNIVERSAL,X.Type.OID,!1,n)),s.value.push(X.create(X.Class.UNIVERSAL,X.Type.NULL,!1,""));var a=X.create(X.Class.UNIVERSAL,X.Type.OCTETSTRING,!1,e.digest().getBytes());return i.value.push(s),i.value.push(a),X.toDer(i).getBytes()},IJ=function(e,t,r){if(r)return e.modPow(t.e,t.n);if(!t.p||!t.q)return e.modPow(t.d,t.n);t.dP||(t.dP=t.d.mod(t.p.subtract(Xt.ONE))),t.dQ||(t.dQ=t.d.mod(t.q.subtract(Xt.ONE))),t.qInv||(t.qInv=t.q.modInverse(t.p));var n;do n=new Xt(it.util.bytesToHex(it.random.getBytes(t.n.bitLength()/8)),16);while(n.compareTo(t.n)>=0||!n.gcd(t.n).equals(Xt.ONE));e=e.multiply(n.modPow(t.e,t.n)).mod(t.n);for(var i=e.mod(t.p).modPow(t.dP,t.p),s=e.mod(t.q).modPow(t.dQ,t.q);i.compareTo(s)<0;)i=i.add(t.p);var a=i.subtract(s).multiply(t.qInv).mod(t.p).multiply(t.q).add(s);return a=a.multiply(n.modInverse(t.n)).mod(t.n),a};At.rsa.encrypt=function(e,t,r){var n=r,i,s=Math.ceil(t.n.bitLength()/8);r!==!1&&r!==!0?(n=r===2,i=RJ(e,t,r)):(i=it.util.createBuffer(),i.putBytes(e));for(var a=new Xt(i.toHex(),16),o=IJ(a,t,n),u=o.toString(16),l=it.util.createBuffer(),f=s-Math.ceil(u.length/2);f>0;)l.putByte(0),--f;return l.putBytes(it.util.hexToBytes(u)),l.getBytes()};At.rsa.decrypt=function(e,t,r,n){var i=Math.ceil(t.n.bitLength()/8);if(e.length!==i){var s=new Error("Encrypted message length is invalid.");throw s.length=e.length,s.expected=i,s}var a=new Xt(it.util.createBuffer(e).toHex(),16);if(a.compareTo(t.n)>=0)throw new Error("Encrypted message is invalid.");for(var o=IJ(a,t,r),u=o.toString(16),l=it.util.createBuffer(),f=i-Math.ceil(u.length/2);f>0;)l.putByte(0),--f;return l.putBytes(it.util.hexToBytes(u)),n!==!1?OC(l.getBytes(),t,r):l.getBytes()};At.rsa.createKeyPairGenerationState=function(e,t,r){typeof e=="string"&&(e=parseInt(e,10)),e=e||2048,r=r||{};var n=r.prng||it.random,i={nextBytes:function(o){for(var u=n.getBytesSync(o.length),l=0;l<o.length;++l)o[l]=u.charCodeAt(l)}},s=r.algorithm||"PRIMEINC",a;if(s==="PRIMEINC")a={algorithm:s,state:0,bits:e,rng:i,eInt:t||65537,e:new Xt(null),p:null,q:null,qBits:e>>1,pBits:e-(e>>1),pqState:0,num:null,keys:null},a.e.fromInt(a.eInt);else throw new Error("Invalid key generation algorithm: "+s);return a};At.rsa.stepKeyPairGenerationState=function(e,t){"algorithm"in e||(e.algorithm="PRIMEINC");var r=new Xt(null);r.fromInt(30);for(var n=0,i=function(h,m){return h|m},s=+new Date,a,o=0;e.keys===null&&(t<=0||o<t);){if(e.state===0){var u=e.p===null?e.pBits:e.qBits,l=u-1;e.pqState===0?(e.num=new Xt(u,e.rng),e.num.testBit(l)||e.num.bitwiseTo(Xt.ONE.shiftLeft(l),i,e.num),e.num.dAddOffset(31-e.num.mod(r).byteValue(),0),n=0,++e.pqState):e.pqState===1?e.num.bitLength()>u?e.pqState=0:e.num.isProbablePrime(tPe(e.num.bitLength()))?++e.pqState:e.num.dAddOffset(zOe[n++%8],0):e.pqState===2?e.pqState=e.num.subtract(Xt.ONE).gcd(e.e).compareTo(Xt.ONE)===0?3:0:e.pqState===3&&(e.pqState=0,e.p===null?e.p=e.num:e.q=e.num,e.p!==null&&e.q!==null&&++e.state,e.num=null)}else if(e.state===1)e.p.compareTo(e.q)<0&&(e.num=e.p,e.p=e.q,e.q=e.num),++e.state;else if(e.state===2)e.p1=e.p.subtract(Xt.ONE),e.q1=e.q.subtract(Xt.ONE),e.phi=e.p1.multiply(e.q1),++e.state;else if(e.state===3)e.phi.gcd(e.e).compareTo(Xt.ONE)===0?++e.state:(e.p=null,e.q=null,e.state=0);else if(e.state===4)e.n=e.p.multiply(e.q),e.n.bitLength()===e.bits?++e.state:(e.q=null,e.state=0);else if(e.state===5){var f=e.e.modInverse(e.phi);e.keys={privateKey:At.rsa.setPrivateKey(e.n,e.e,f,e.p,e.q,f.mod(e.p1),f.mod(e.q1),e.q.modInverse(e.p)),publicKey:At.rsa.setPublicKey(e.n,e.e)}}a=+new Date,o+=a-s,s=a}return e.keys!==null};At.rsa.generateKeyPair=function(e,t,r,n){if(arguments.length===1?typeof e=="object"?(r=e,e=void 0):typeof e=="function"&&(n=e,e=void 0):arguments.length===2?typeof e=="number"?typeof t=="function"?(n=t,t=void 0):typeof t!="number"&&(r=t,t=void 0):(r=e,n=t,e=void 0,t=void 0):arguments.length===3&&(typeof t=="number"?typeof r=="function"&&(n=r,r=void 0):(n=r,r=t,t=void 0)),r=r||{},e===void 0&&(e=r.bits||2048),t===void 0&&(t=r.e||65537),!it.options.usePureJavaScript&&!r.prng&&e>=256&&e<=16384&&(t===65537||t===3)){if(n){if(bJ("generateKeyPair"))return IP.generateKeyPair("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(o,u,l){if(o)return n(o);n(null,{privateKey:At.privateKeyFromPem(l),publicKey:At.publicKeyFromPem(u)})});if(DJ("generateKey")&&DJ("exportKey"))return ia.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:TJ(t),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(o){return ia.globalScope.crypto.subtle.exportKey("pkcs8",o.privateKey)}).then(void 0,function(o){n(o)}).then(function(o){if(o){var u=At.privateKeyFromAsn1(X.fromDer(it.util.createBuffer(o)));n(null,{privateKey:u,publicKey:At.setRsaPublicKey(u.n,u.e)})}});if(wJ("generateKey")&&wJ("exportKey")){var i=ia.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:TJ(t),hash:{name:"SHA-256"}},!0,["sign","verify"]);i.oncomplete=function(o){var u=o.target.result,l=ia.globalScope.msCrypto.subtle.exportKey("pkcs8",u.privateKey);l.oncomplete=function(f){var h=f.target.result,m=At.privateKeyFromAsn1(X.fromDer(it.util.createBuffer(h)));n(null,{privateKey:m,publicKey:At.setRsaPublicKey(m.n,m.e)})},l.onerror=function(f){n(f)}},i.onerror=function(o){n(o)};return}}else if(bJ("generateKeyPairSync")){var s=IP.generateKeyPairSync("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:At.privateKeyFromPem(s.privateKey),publicKey:At.publicKeyFromPem(s.publicKey)}}}var a=At.rsa.createKeyPairGenerationState(e,t,r);if(!n)return At.rsa.stepKeyPairGenerationState(a,0),a.keys;ePe(a,r,n)};At.setRsaPublicKey=At.rsa.setPublicKey=function(e,t){var r={n:e,e:t};return r.encrypt=function(n,i,s){if(typeof i=="string"?i=i.toUpperCase():i===void 0&&(i="RSAES-PKCS1-V1_5"),i==="RSAES-PKCS1-V1_5")i={encode:function(o,u,l){return RJ(o,u,2).getBytes()}};else if(i==="RSA-OAEP"||i==="RSAES-OAEP")i={encode:function(o,u){return it.pkcs1.encode_rsa_oaep(u,o,s)}};else if(["RAW","NONE","NULL",null].indexOf(i)!==-1)i={encode:function(o){return o}};else if(typeof i=="string")throw new Error('Unsupported encryption scheme: "'+i+'".');var a=i.encode(n,r,!0);return At.rsa.encrypt(a,r,!0)},r.verify=function(n,i,s,a){typeof s=="string"?s=s.toUpperCase():s===void 0&&(s="RSASSA-PKCS1-V1_5"),a===void 0&&(a={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in a||(a._parseAllDigestBytes=!0),s==="RSASSA-PKCS1-V1_5"?s={verify:function(u,l){l=OC(l,r,!0);var f=X.fromDer(l,{parseAllBytes:a._parseAllDigestBytes}),h={},m=[];if(!X.validate(f,JOe,h,m)){var y=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw y.errors=m,y}var _=X.derToOid(h.algorithmIdentifier);if(!(_===it.oids.md2||_===it.oids.md5||_===it.oids.sha1||_===it.oids.sha224||_===it.oids.sha256||_===it.oids.sha384||_===it.oids.sha512||_===it.oids["sha512-224"]||_===it.oids["sha512-256"])){var y=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw y.oid=_,y}if((_===it.oids.md2||_===it.oids.md5)&&!("parameters"in h))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifer NULL parameters.");return u===h.digest}}:(s==="NONE"||s==="NULL"||s===null)&&(s={verify:function(u,l){return l=OC(l,r,!0),u===l}});var o=At.rsa.decrypt(i,r,!0,!1);return s.verify(n,o,r.n.bitLength())},r};At.setRsaPrivateKey=At.rsa.setPrivateKey=function(e,t,r,n,i,s,a,o){var u={n:e,e:t,d:r,p:n,q:i,dP:s,dQ:a,qInv:o};return u.decrypt=function(l,f,h){typeof f=="string"?f=f.toUpperCase():f===void 0&&(f="RSAES-PKCS1-V1_5");var m=At.rsa.decrypt(l,u,!1,!1);if(f==="RSAES-PKCS1-V1_5")f={decode:OC};else if(f==="RSA-OAEP"||f==="RSAES-OAEP")f={decode:function(y,_){return it.pkcs1.decode_rsa_oaep(_,y,h)}};else if(["RAW","NONE","NULL",null].indexOf(f)!==-1)f={decode:function(y){return y}};else throw new Error('Unsupported encryption scheme: "'+f+'".');return f.decode(m,u,!1)},u.sign=function(l,f){var h=!1;typeof f=="string"&&(f=f.toUpperCase()),f===void 0||f==="RSASSA-PKCS1-V1_5"?(f={encode:ZOe},h=1):(f==="NONE"||f==="NULL"||f===null)&&(f={encode:function(){return l}},h=1);var m=f.encode(l,u.n.bitLength());return At.rsa.encrypt(m,u,h)},u};At.wrapRsaPrivateKey=function(e){return X.create(X.Class.UNIVERSAL,X.Type.SEQUENCE,!0,[X.create(X.Class.UNIVERSAL,X.Type.INTEGER,!1,X.integerToDer(0).getBytes()),X.create(X.Class.UNIVERSAL,X.Type.SEQUENCE,!0,[X.create(X.Class.UNIVERSAL,X.Type.OID,!1,X.oidToDer(At.oids.rsaEncryption).getBytes()),X.create(X.Class.UNIVERSAL,X.Type.NULL,!1,"")]),X.create(X.Class.UNIVERSAL,X.Type.OCTETSTRING,!1,X.toDer(e).getBytes())])};At.privateKeyFromAsn1=function(e){var t={},r=[];if(X.validate(e,KOe,t,r)&&(e=X.fromDer(it.util.createBuffer(t.privateKey))),t={},r=[],!X.validate(e,$Oe,t,r)){var n=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw n.errors=r,n}var i,s,a,o,u,l,f,h;return i=it.util.createBuffer(t.privateKeyModulus).toHex(),s=it.util.createBuffer(t.privateKeyPublicExponent).toHex(),a=it.util.createBuffer(t.privateKeyPrivateExponent).toHex(),o=it.util.createBuffer(t.privateKeyPrime1).toHex(),u=it.util.createBuffer(t.privateKeyPrime2).toHex(),l=it.util.createBuffer(t.privateKeyExponent1).toHex(),f=it.util.createBuffer(t.privateKeyExponent2).toHex(),h=it.util.createBuffer(t.privateKeyCoefficient).toHex(),At.setRsaPrivateKey(new Xt(i,16),new Xt(s,16),new Xt(a,16),new Xt(o,16),new Xt(u,16),new Xt(l,16),new Xt(f,16),new Xt(h,16))};At.privateKeyToAsn1=At.privateKeyToRSAPrivateKey=function(e){return X.create(X.Class.UNIVERSAL,X.Type.SEQUENCE,!0,[X.create(X.Class.UNIVERSAL,X.Type.INTEGER,!1,X.integerToDer(0).getBytes()),X.create(X.Class.UNIVERSAL,X.Type.INTEGER,!1,Vo(e.n)),X.create(X.Class.UNIVERSAL,X.Type.INTEGER,!1,Vo(e.e)),X.create(X.Class.UNIVERSAL,X.Type.INTEGER,!1,Vo(e.d)),X.create(X.Class.UNIVERSAL,X.Type.INTEGER,!1,Vo(e.p)),X.create(X.Class.UNIVERSAL,X.Type.INTEGER,!1,Vo(e.q)),X.create(X.Class.UNIVERSAL,X.Type.INTEGER,!1,Vo(e.dP)),X.create(X.Class.UNIVERSAL,X.Type.INTEGER,!1,Vo(e.dQ)),X.create(X.Class.UNIVERSAL,X.Type.INTEGER,!1,Vo(e.qInv))])};At.publicKeyFromAsn1=function(e){var t={},r=[];if(X.validate(e,XOe,t,r)){var n=X.derToOid(t.publicKeyOid);if(n!==At.oids.rsaEncryption){var i=new Error("Cannot read public key. Unknown OID.");throw i.oid=n,i}e=t.rsaPublicKey}if(r=[],!X.validate(e,YOe,t,r)){var i=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw i.errors=r,i}var s=it.util.createBuffer(t.publicKeyModulus).toHex(),a=it.util.createBuffer(t.publicKeyExponent).toHex();return At.setRsaPublicKey(new Xt(s,16),new Xt(a,16))};At.publicKeyToAsn1=At.publicKeyToSubjectPublicKeyInfo=function(e){return X.create(X.Class.UNIVERSAL,X.Type.SEQUENCE,!0,[X.create(X.Class.UNIVERSAL,X.Type.SEQUENCE,!0,[X.create(X.Class.UNIVERSAL,X.Type.OID,!1,X.oidToDer(At.oids.rsaEncryption).getBytes()),X.create(X.Class.UNIVERSAL,X.Type.NULL,!1,"")]),X.create(X.Class.UNIVERSAL,X.Type.BITSTRING,!1,[At.publicKeyToRSAPublicKey(e)])])};At.publicKeyToRSAPublicKey=function(e){return X.create(X.Class.UNIVERSAL,X.Type.SEQUENCE,!0,[X.create(X.Class.UNIVERSAL,X.Type.INTEGER,!1,Vo(e.n)),X.create(X.Class.UNIVERSAL,X.Type.INTEGER,!1,Vo(e.e))])};function RJ(e,t,r){var n=it.util.createBuffer(),i=Math.ceil(t.n.bitLength()/8);if(e.length>i-11){var s=new Error("Message is too long for PKCS#1 v1.5 padding.");throw s.length=e.length,s.max=i-11,s}n.putByte(0),n.putByte(r);var a=i-3-e.length,o;if(r===0||r===1){o=r===0?0:255;for(var u=0;u<a;++u)n.putByte(o)}else for(;a>0;){for(var l=0,f=it.random.getBytes(a),u=0;u<a;++u)o=f.charCodeAt(u),o===0?++l:n.putByte(o);a=l}return n.putByte(0),n.putBytes(e),n}function OC(e,t,r,n){var i=Math.ceil(t.n.bitLength()/8),s=it.util.createBuffer(e),a=s.getByte(),o=s.getByte();if(a!==0||r&&o!==0&&o!==1||!r&&o!=2||r&&o===0&&typeof n>"u")throw new Error("Encryption block is invalid.");var u=0;if(o===0){u=i-3-n;for(var l=0;l<u;++l)if(s.getByte()!==0)throw new Error("Encryption block is invalid.")}else if(o===1)for(u=0;s.length()>1;){if(s.getByte()!==255){--s.read;break}++u}else if(o===2)for(u=0;s.length()>1;){if(s.getByte()===0){--s.read;break}++u}var f=s.getByte();if(f!==0||u!==i-3-s.length())throw new Error("Encryption block is invalid.");return s.getBytes()}function ePe(e,t,r){typeof t=="function"&&(r=t,t={}),t=t||{};var n={algorithm:{name:t.algorithm||"PRIMEINC",options:{workers:t.workers||2,workLoad:t.workLoad||100,workerScript:t.workerScript}}};"prng"in t&&(n.prng=t.prng),i();function i(){s(e.pBits,function(o,u){if(o)return r(o);if(e.p=u,e.q!==null)return a(o,e.q);s(e.qBits,a)})}function s(o,u){it.prime.generateProbablePrime(o,n,u)}function a(o,u){if(o)return r(o);if(e.q=u,e.p.compareTo(e.q)<0){var l=e.p;e.p=e.q,e.q=l}if(e.p.subtract(Xt.ONE).gcd(e.e).compareTo(Xt.ONE)!==0){e.p=null,i();return}if(e.q.subtract(Xt.ONE).gcd(e.e).compareTo(Xt.ONE)!==0){e.q=null,s(e.qBits,a);return}if(e.p1=e.p.subtract(Xt.ONE),e.q1=e.q.subtract(Xt.ONE),e.phi=e.p1.multiply(e.q1),e.phi.gcd(e.e).compareTo(Xt.ONE)!==0){e.p=e.q=null,i();return}if(e.n=e.p.multiply(e.q),e.n.bitLength()!==e.bits){e.q=null,s(e.qBits,a);return}var f=e.e.modInverse(e.phi);e.keys={privateKey:At.rsa.setPrivateKey(e.n,e.e,f,e.p,e.q,f.mod(e.p1),f.mod(e.q1),e.q.modInverse(e.p)),publicKey:At.rsa.setPublicKey(e.n,e.e)},r(null,e.keys)}}function Vo(e){var t=e.toString(16);t[0]>="8"&&(t="00"+t);var r=it.util.hexToBytes(t);return r.length>1&&(r.charCodeAt(0)===0&&!(r.charCodeAt(1)&128)||r.charCodeAt(0)===255&&(r.charCodeAt(1)&128)===128)?r.substr(1):r}function tPe(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}function bJ(e){return it.util.isNodejs&&typeof IP[e]=="function"}function DJ(e){return typeof ia.globalScope<"u"&&typeof ia.globalScope.crypto=="object"&&typeof ia.globalScope.crypto.subtle=="object"&&typeof ia.globalScope.crypto.subtle[e]=="function"}function wJ(e){return typeof ia.globalScope<"u"&&typeof ia.globalScope.msCrypto=="object"&&typeof ia.globalScope.msCrypto.subtle=="object"&&typeof ia.globalScope.msCrypto.subtle[e]=="function"}function TJ(e){for(var t=it.util.hexToBytes(e.toString(16)),r=new Uint8Array(t.length),n=0;n<t.length;++n)r[n]=t.charCodeAt(n);return r}});var RP=w((Cut,FJ)=>{"use strict";d();var qe=Ot();ul();Qa();tv();Lo();cl();wC();Wp();ra();_P();iv();nr();typeof OJ>"u"&&(OJ=qe.jsbn.BigInteger);var OJ,ue=qe.asn1,It=qe.pki=qe.pki||{};FJ.exports=It.pbe=qe.pbe=qe.pbe||{};var Kp=It.oids,rPe={name:"EncryptedPrivateKeyInfo",tagClass:ue.Class.UNIVERSAL,type:ue.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:ue.Class.UNIVERSAL,type:ue.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:ue.Class.UNIVERSAL,type:ue.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:ue.Class.UNIVERSAL,type:ue.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:ue.Class.UNIVERSAL,type:ue.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},nPe={name:"PBES2Algorithms",tagClass:ue.Class.UNIVERSAL,type:ue.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:ue.Class.UNIVERSAL,type:ue.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:ue.Class.UNIVERSAL,type:ue.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:ue.Class.UNIVERSAL,type:ue.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:ue.Class.UNIVERSAL,type:ue.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:ue.Class.UNIVERSAL,type:ue.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:ue.Class.UNIVERSAL,type:ue.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:ue.Class.UNIVERSAL,type:ue.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:ue.Class.UNIVERSAL,type:ue.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:ue.Class.UNIVERSAL,type:ue.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:ue.Class.UNIVERSAL,type:ue.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:ue.Class.UNIVERSAL,type:ue.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},iPe={name:"pkcs-12PbeParams",tagClass:ue.Class.UNIVERSAL,type:ue.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:ue.Class.UNIVERSAL,type:ue.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:ue.Class.UNIVERSAL,type:ue.Type.INTEGER,constructed:!1,capture:"iterations"}]};It.encryptPrivateKeyInfo=function(e,t,r){r=r||{},r.saltSize=r.saltSize||8,r.count=r.count||2048,r.algorithm=r.algorithm||"aes128",r.prfAlgorithm=r.prfAlgorithm||"sha1";var n=qe.random.getBytesSync(r.saltSize),i=r.count,s=ue.integerToDer(i),a,o,u;if(r.algorithm.indexOf("aes")===0||r.algorithm==="des"){var l,f,h;switch(r.algorithm){case"aes128":a=16,l=16,f=Kp["aes128-CBC"],h=qe.aes.createEncryptionCipher;break;case"aes192":a=24,l=16,f=Kp["aes192-CBC"],h=qe.aes.createEncryptionCipher;break;case"aes256":a=32,l=16,f=Kp["aes256-CBC"],h=qe.aes.createEncryptionCipher;break;case"des":a=8,l=8,f=Kp.desCBC,h=qe.des.createEncryptionCipher;break;default:var m=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw m.algorithm=r.algorithm,m}var y="hmacWith"+r.prfAlgorithm.toUpperCase(),_=LJ(y),C=qe.pkcs5.pbkdf2(t,n,i,a,_),b=qe.random.getBytesSync(l),D=h(C);D.start(b),D.update(ue.toDer(e)),D.finish(),u=D.output.getBytes();var L=sPe(n,s,a,y);o=ue.create(ue.Class.UNIVERSAL,ue.Type.SEQUENCE,!0,[ue.create(ue.Class.UNIVERSAL,ue.Type.OID,!1,ue.oidToDer(Kp.pkcs5PBES2).getBytes()),ue.create(ue.Class.UNIVERSAL,ue.Type.SEQUENCE,!0,[ue.create(ue.Class.UNIVERSAL,ue.Type.SEQUENCE,!0,[ue.create(ue.Class.UNIVERSAL,ue.Type.OID,!1,ue.oidToDer(Kp.pkcs5PBKDF2).getBytes()),L]),ue.create(ue.Class.UNIVERSAL,ue.Type.SEQUENCE,!0,[ue.create(ue.Class.UNIVERSAL,ue.Type.OID,!1,ue.oidToDer(f).getBytes()),ue.create(ue.Class.UNIVERSAL,ue.Type.OCTETSTRING,!1,b)])])])}else if(r.algorithm==="3des"){a=24;var F=new qe.util.ByteBuffer(n),C=It.pbe.generatePkcs12Key(t,F,1,i,a),b=It.pbe.generatePkcs12Key(t,F,2,i,a),D=qe.des.createEncryptionCipher(C);D.start(b),D.update(ue.toDer(e)),D.finish(),u=D.output.getBytes(),o=ue.create(ue.Class.UNIVERSAL,ue.Type.SEQUENCE,!0,[ue.create(ue.Class.UNIVERSAL,ue.Type.OID,!1,ue.oidToDer(Kp["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),ue.create(ue.Class.UNIVERSAL,ue.Type.SEQUENCE,!0,[ue.create(ue.Class.UNIVERSAL,ue.Type.OCTETSTRING,!1,n),ue.create(ue.Class.UNIVERSAL,ue.Type.INTEGER,!1,s.getBytes())])])}else{var m=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw m.algorithm=r.algorithm,m}var q=ue.create(ue.Class.UNIVERSAL,ue.Type.SEQUENCE,!0,[o,ue.create(ue.Class.UNIVERSAL,ue.Type.OCTETSTRING,!1,u)]);return q};It.decryptPrivateKeyInfo=function(e,t){var r=null,n={},i=[];if(!ue.validate(e,rPe,n,i)){var s=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=i,s}var a=ue.derToOid(n.encryptionOid),o=It.pbe.getCipher(a,n.encryptionParams,t),u=qe.util.createBuffer(n.encryptedData);return o.update(u),o.finish()&&(r=ue.fromDer(o.output)),r};It.encryptedPrivateKeyToPem=function(e,t){var r={type:"ENCRYPTED PRIVATE KEY",body:ue.toDer(e).getBytes()};return qe.pem.encode(r,{maxline:t})};It.encryptedPrivateKeyFromPem=function(e){var t=qe.pem.decode(e)[0];if(t.type!=="ENCRYPTED PRIVATE KEY"){var r=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return ue.fromDer(t.body)};It.encryptRsaPrivateKey=function(e,t,r){if(r=r||{},!r.legacy){var n=It.wrapRsaPrivateKey(It.privateKeyToAsn1(e));return n=It.encryptPrivateKeyInfo(n,t,r),It.encryptedPrivateKeyToPem(n)}var i,s,a,o;switch(r.algorithm){case"aes128":i="AES-128-CBC",a=16,s=qe.random.getBytesSync(16),o=qe.aes.createEncryptionCipher;break;case"aes192":i="AES-192-CBC",a=24,s=qe.random.getBytesSync(16),o=qe.aes.createEncryptionCipher;break;case"aes256":i="AES-256-CBC",a=32,s=qe.random.getBytesSync(16),o=qe.aes.createEncryptionCipher;break;case"3des":i="DES-EDE3-CBC",a=24,s=qe.random.getBytesSync(8),o=qe.des.createEncryptionCipher;break;case"des":i="DES-CBC",a=8,s=qe.random.getBytesSync(8),o=qe.des.createEncryptionCipher;break;default:var u=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+r.algorithm+'".');throw u.algorithm=r.algorithm,u}var l=qe.pbe.opensslDeriveBytes(t,s.substr(0,8),a),f=o(l);f.start(s),f.update(ue.toDer(It.privateKeyToAsn1(e))),f.finish();var h={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:i,parameters:qe.util.bytesToHex(s).toUpperCase()},body:f.output.getBytes()};return qe.pem.encode(h)};It.decryptRsaPrivateKey=function(e,t){var r=null,n=qe.pem.decode(e)[0];if(n.type!=="ENCRYPTED PRIVATE KEY"&&n.type!=="PRIVATE KEY"&&n.type!=="RSA PRIVATE KEY"){var i=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');throw i.headerType=i,i}if(n.procType&&n.procType.type==="ENCRYPTED"){var s,a;switch(n.dekInfo.algorithm){case"DES-CBC":s=8,a=qe.des.createDecryptionCipher;break;case"DES-EDE3-CBC":s=24,a=qe.des.createDecryptionCipher;break;case"AES-128-CBC":s=16,a=qe.aes.createDecryptionCipher;break;case"AES-192-CBC":s=24,a=qe.aes.createDecryptionCipher;break;case"AES-256-CBC":s=32,a=qe.aes.createDecryptionCipher;break;case"RC2-40-CBC":s=5,a=function(h){return qe.rc2.createDecryptionCipher(h,40)};break;case"RC2-64-CBC":s=8,a=function(h){return qe.rc2.createDecryptionCipher(h,64)};break;case"RC2-128-CBC":s=16,a=function(h){return qe.rc2.createDecryptionCipher(h,128)};break;default:var i=new Error('Could not decrypt private key; unsupported encryption algorithm "'+n.dekInfo.algorithm+'".');throw i.algorithm=n.dekInfo.algorithm,i}var o=qe.util.hexToBytes(n.dekInfo.parameters),u=qe.pbe.opensslDeriveBytes(t,o.substr(0,8),s),l=a(u);if(l.start(o),l.update(qe.util.createBuffer(n.body)),l.finish())r=l.output.getBytes();else return r}else r=n.body;return n.type==="ENCRYPTED PRIVATE KEY"?r=It.decryptPrivateKeyInfo(ue.fromDer(r),t):r=ue.fromDer(r),r!==null&&(r=It.privateKeyFromAsn1(r)),r};It.pbe.generatePkcs12Key=function(e,t,r,n,i,s){var a,o;if(typeof s>"u"||s===null){if(!("sha1"in qe.md))throw new Error('"sha1" hash algorithm unavailable.');s=qe.md.sha1.create()}var u=s.digestLength,l=s.blockLength,f=new qe.util.ByteBuffer,h=new qe.util.ByteBuffer;if(e!=null){for(o=0;o<e.length;o++)h.putInt16(e.charCodeAt(o));h.putInt16(0)}var m=h.length(),y=t.length(),_=new qe.util.ByteBuffer;_.fillWithByte(r,l);var C=l*Math.ceil(y/l),b=new qe.util.ByteBuffer;for(o=0;o<C;o++)b.putByte(t.at(o%y));var D=l*Math.ceil(m/l),L=new qe.util.ByteBuffer;for(o=0;o<D;o++)L.putByte(h.at(o%m));var F=b;F.putBuffer(L);for(var q=Math.ceil(i/u),M=1;M<=q;M++){var k=new qe.util.ByteBuffer;k.putBytes(_.bytes()),k.putBytes(F.bytes());for(var te=0;te<n;te++)s.start(),s.update(k.getBytes()),k=s.digest();var ce=new qe.util.ByteBuffer;for(o=0;o<l;o++)ce.putByte(k.at(o%u));var ne=Math.ceil(y/l)+Math.ceil(m/l),pe=new qe.util.ByteBuffer;for(a=0;a<ne;a++){var Q=new qe.util.ByteBuffer(F.getBytes(l)),be=511;for(o=ce.length()-1;o>=0;o--)be=be>>8,be+=ce.at(o)+Q.at(o),Q.setAt(o,be&255);pe.putBuffer(Q)}F=pe,f.putBuffer(k)}return f.truncate(f.length()-i),f};It.pbe.getCipher=function(e,t,r){switch(e){case It.oids.pkcs5PBES2:return It.pbe.getCipherForPBES2(e,t,r);case It.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case It.oids["pbewithSHAAnd40BitRC2-CBC"]:return It.pbe.getCipherForPKCS12PBE(e,t,r);default:var n=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw n.oid=e,n.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],n}};It.pbe.getCipherForPBES2=function(e,t,r){var n={},i=[];if(!ue.validate(t,nPe,n,i)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=i,s}if(e=ue.derToOid(n.kdfOid),e!==It.oids.pkcs5PBKDF2){var s=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw s.oid=e,s.supportedOids=["pkcs5PBKDF2"],s}if(e=ue.derToOid(n.encOid),e!==It.oids["aes128-CBC"]&&e!==It.oids["aes192-CBC"]&&e!==It.oids["aes256-CBC"]&&e!==It.oids["des-EDE3-CBC"]&&e!==It.oids.desCBC){var s=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw s.oid=e,s.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],s}var a=n.kdfSalt,o=qe.util.createBuffer(n.kdfIterationCount);o=o.getInt(o.length()<<3);var u,l;switch(It.oids[e]){case"aes128-CBC":u=16,l=qe.aes.createDecryptionCipher;break;case"aes192-CBC":u=24,l=qe.aes.createDecryptionCipher;break;case"aes256-CBC":u=32,l=qe.aes.createDecryptionCipher;break;case"des-EDE3-CBC":u=24,l=qe.des.createDecryptionCipher;break;case"desCBC":u=8,l=qe.des.createDecryptionCipher;break}var f=BJ(n.prfOid),h=qe.pkcs5.pbkdf2(r,a,o,u,f),m=n.encIv,y=l(h);return y.start(m),y};It.pbe.getCipherForPKCS12PBE=function(e,t,r){var n={},i=[];if(!ue.validate(t,iPe,n,i)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=i,s}var a=qe.util.createBuffer(n.salt),o=qe.util.createBuffer(n.iterations);o=o.getInt(o.length()<<3);var u,l,f;switch(e){case It.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:u=24,l=8,f=qe.des.startDecrypting;break;case It.oids["pbewithSHAAnd40BitRC2-CBC"]:u=5,l=8,f=function(C,b){var D=qe.rc2.createDecryptionCipher(C,40);return D.start(b,null),D};break;default:var s=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw s.oid=e,s}var h=BJ(n.prfOid),m=It.pbe.generatePkcs12Key(r,a,1,o,u,h);h.start();var y=It.pbe.generatePkcs12Key(r,a,2,o,l,h);return f(m,y)};It.pbe.opensslDeriveBytes=function(e,t,r,n){if(typeof n>"u"||n===null){if(!("md5"in qe.md))throw new Error('"md5" hash algorithm unavailable.');n=qe.md.md5.create()}t===null&&(t="");for(var i=[PJ(n,e+t)],s=16,a=1;s<r;++a,s+=16)i.push(PJ(n,i[a-1]+e+t));return i.join("").substr(0,r)};function PJ(e,t){return e.start().update(t).digest().getBytes()}function BJ(e){var t;if(!e)t="hmacWithSHA1";else if(t=It.oids[ue.derToOid(e)],!t){var r=new Error("Unsupported PRF OID.");throw r.oid=e,r.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],r}return LJ(t)}function LJ(e){var t=qe.md;switch(e){case"hmacWithSHA224":t=qe.md.sha512;case"hmacWithSHA1":case"hmacWithSHA256":case"hmacWithSHA384":case"hmacWithSHA512":e=e.substr(8).toLowerCase();break;default:var r=new Error("Unsupported PRF algorithm.");throw r.algorithm=e,r.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],r}if(!t||!(e in t))throw new Error("Unknown hash algorithm: "+e);return t[e].create()}function sPe(e,t,r,n){var i=ue.create(ue.Class.UNIVERSAL,ue.Type.SEQUENCE,!0,[ue.create(ue.Class.UNIVERSAL,ue.Type.OCTETSTRING,!1,e),ue.create(ue.Class.UNIVERSAL,ue.Type.INTEGER,!1,t.getBytes())]);return n!=="hmacWithSHA1"&&i.value.push(ue.create(ue.Class.UNIVERSAL,ue.Type.INTEGER,!1,qe.util.hexToBytes(r.toString(16))),ue.create(ue.Class.UNIVERSAL,ue.Type.SEQUENCE,!0,[ue.create(ue.Class.UNIVERSAL,ue.Type.OID,!1,ue.oidToDer(It.oids[n]).getBytes()),ue.create(ue.Class.UNIVERSAL,ue.Type.NULL,!1,"")])),i}});var NP=w((but,MJ)=>{"use strict";d();var Lh=Ot();Qa();nr();var Le=Lh.asn1,Fh=MJ.exports=Lh.pkcs7asn1=Lh.pkcs7asn1||{};Lh.pkcs7=Lh.pkcs7||{};Lh.pkcs7.asn1=Fh;var kJ={name:"ContentInfo",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:Le.Class.UNIVERSAL,type:Le.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:Le.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};Fh.contentInfoValidator=kJ;var UJ={name:"EncryptedContentInfo",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:Le.Class.UNIVERSAL,type:Le.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:Le.Class.UNIVERSAL,type:Le.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:Le.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:Le.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};Fh.envelopedDataValidator={name:"EnvelopedData",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:Le.Class.UNIVERSAL,type:Le.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(UJ)};Fh.encryptedDataValidator={name:"EncryptedData",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:Le.Class.UNIVERSAL,type:Le.Type.INTEGER,constructed:!1,capture:"version"}].concat(UJ)};var aPe={name:"SignerInfo",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:Le.Class.UNIVERSAL,type:Le.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:Le.Class.UNIVERSAL,type:Le.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:Le.Class.UNIVERSAL,type:Le.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:Le.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:Le.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:Le.Class.UNIVERSAL,type:Le.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:Le.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]};Fh.signedDataValidator={name:"SignedData",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:Le.Class.UNIVERSAL,type:Le.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},kJ,{name:"SignedData.Certificates",tagClass:Le.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:Le.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SET,capture:"signerInfos",optional:!0,value:[aPe]}]};Fh.recipientInfoValidator={name:"RecipientInfo",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:Le.Class.UNIVERSAL,type:Le.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:Le.Class.UNIVERSAL,type:Le.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:Le.Class.UNIVERSAL,type:Le.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:Le.Class.UNIVERSAL,type:Le.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:Le.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:Le.Class.UNIVERSAL,type:Le.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]}});var OP=w((wut,qJ)=>{"use strict";d();var $p=Ot();nr();$p.mgf=$p.mgf||{};var oPe=qJ.exports=$p.mgf.mgf1=$p.mgf1=$p.mgf1||{};oPe.create=function(e){var t={generate:function(r,n){for(var i=new $p.util.ByteBuffer,s=Math.ceil(n/e.digestLength),a=0;a<s;a++){var o=new $p.util.ByteBuffer;o.putInt32(a),e.start(),e.update(r+o.getBytes()),i.putBuffer(e.digest())}return i.truncate(i.length()-n),i.getBytes()}};return t}});var VJ=w((Iut,jJ)=>{"use strict";d();var PC=Ot();OP();jJ.exports=PC.mgf=PC.mgf||{};PC.mgf.mgf1=PC.mgf1});var BC=w((Nut,HJ)=>{"use strict";d();var Yp=Ot();ra();nr();var uPe=HJ.exports=Yp.pss=Yp.pss||{};uPe.create=function(e){arguments.length===3&&(e={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var t=e.md,r=e.mgf,n=t.digestLength,i=e.salt||null;typeof i=="string"&&(i=Yp.util.createBuffer(i));var s;if("saltLength"in e)s=e.saltLength;else if(i!==null)s=i.length();else throw new Error("Salt length not specified or specific salt not given.");if(i!==null&&i.length()!==s)throw new Error("Given salt length does not match length of given salt.");var a=e.prng||Yp.random,o={};return o.encode=function(u,l){var f,h=l-1,m=Math.ceil(h/8),y=u.digest().getBytes();if(m<n+s+2)throw new Error("Message is too long to encrypt.");var _;i===null?_=a.getBytesSync(s):_=i.bytes();var C=new Yp.util.ByteBuffer;C.fillWithByte(0,8),C.putBytes(y),C.putBytes(_),t.start(),t.update(C.getBytes());var b=t.digest().getBytes(),D=new Yp.util.ByteBuffer;D.fillWithByte(0,m-s-n-2),D.putByte(1),D.putBytes(_);var L=D.getBytes(),F=m-n-1,q=r.generate(b,F),M="";for(f=0;f<F;f++)M+=String.fromCharCode(L.charCodeAt(f)^q.charCodeAt(f));var k=65280>>8*m-h&255;return M=String.fromCharCode(M.charCodeAt(0)&~k)+M.substr(1),M+b+"\xBC"},o.verify=function(u,l,f){var h,m=f-1,y=Math.ceil(m/8);if(l=l.substr(-y),y<n+s+2)throw new Error("Inconsistent parameters to PSS signature verification.");if(l.charCodeAt(y-1)!==188)throw new Error("Encoded message does not end in 0xBC.");var _=y-n-1,C=l.substr(0,_),b=l.substr(_,n),D=65280>>8*y-m&255;if(C.charCodeAt(0)&D)throw new Error("Bits beyond keysize not zero as expected.");var L=r.generate(b,_),F="";for(h=0;h<_;h++)F+=String.fromCharCode(C.charCodeAt(h)^L.charCodeAt(h));F=String.fromCharCode(F.charCodeAt(0)&~D)+F.substr(1);var q=y-n-s-2;for(h=0;h<q;h++)if(F.charCodeAt(h)!==0)throw new Error("Leftmost octets not zero as expected");if(F.charCodeAt(q)!==1)throw new Error("Inconsistent PSS signature, 0x01 marker not found");var M=F.substr(-s),k=new Yp.util.ByteBuffer;k.fillWithByte(0,8),k.putBytes(u),k.putBytes(M),t.start(),t.update(k.getBytes());var te=t.digest().getBytes();return b===te},o}});var kC=w((Put,KJ)=>{"use strict";d();var st=Ot();ul();Qa();tv();Lo();VJ();cl();Wp();BC();iv();nr();var T=st.asn1,Te=KJ.exports=st.pki=st.pki||{},Jt=Te.oids,nn={};nn.CN=Jt.commonName;nn.commonName="CN";nn.C=Jt.countryName;nn.countryName="C";nn.L=Jt.localityName;nn.localityName="L";nn.ST=Jt.stateOrProvinceName;nn.stateOrProvinceName="ST";nn.O=Jt.organizationName;nn.organizationName="O";nn.OU=Jt.organizationalUnitName;nn.organizationalUnitName="OU";nn.E=Jt.emailAddress;nn.emailAddress="E";var WJ=st.pki.rsa.publicKeyValidator,cPe={name:"Certificate",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:T.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:T.Class.UNIVERSAL,type:T.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:T.Class.UNIVERSAL,type:T.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:T.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:T.Class.UNIVERSAL,type:T.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:T.Class.UNIVERSAL,type:T.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:T.Class.UNIVERSAL,type:T.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:T.Class.UNIVERSAL,type:T.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},WJ,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:T.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:T.Class.UNIVERSAL,type:T.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:T.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:T.Class.UNIVERSAL,type:T.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:T.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:T.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:T.Class.UNIVERSAL,type:T.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},lPe={name:"rsapss",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:T.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:T.Class.UNIVERSAL,type:T.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:T.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:T.Class.UNIVERSAL,type:T.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:T.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:T.Class.UNIVERSAL,type:T.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:T.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:T.Class.UNIVERSAL,type:T.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},pPe={name:"CertificationRequestInfo",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:T.Class.UNIVERSAL,type:T.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},WJ,{name:"CertificationRequestInfo.attributes",tagClass:T.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:T.Class.UNIVERSAL,type:T.Type.SET,constructed:!0}]}]}]},fPe={name:"CertificationRequest",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[pPe,{name:"CertificationRequest.signatureAlgorithm",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:T.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:T.Class.UNIVERSAL,type:T.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};Te.RDNAttributesAsArray=function(e,t){for(var r=[],n,i,s,a=0;a<e.value.length;++a){n=e.value[a];for(var o=0;o<n.value.length;++o)s={},i=n.value[o],s.type=T.derToOid(i.value[0].value),s.value=i.value[1].value,s.valueTagClass=i.value[1].type,s.type in Jt&&(s.name=Jt[s.type],s.name in nn&&(s.shortName=nn[s.name])),t&&(t.update(s.type),t.update(s.value)),r.push(s)}return r};Te.CRIAttributesAsArray=function(e){for(var t=[],r=0;r<e.length;++r)for(var n=e[r],i=T.derToOid(n.value[0].value),s=n.value[1].value,a=0;a<s.length;++a){var o={};if(o.type=i,o.value=s[a].value,o.valueTagClass=s[a].type,o.type in Jt&&(o.name=Jt[o.type],o.name in nn&&(o.shortName=nn[o.name])),o.type===Jt.extensionRequest){o.extensions=[];for(var u=0;u<o.value.length;++u)o.extensions.push(Te.certificateExtensionFromAsn1(o.value[u]))}t.push(o)}return t};function fl(e,t){typeof t=="string"&&(t={shortName:t});for(var r=null,n,i=0;r===null&&i<e.attributes.length;++i)n=e.attributes[i],(t.type&&t.type===n.type||t.name&&t.name===n.name||t.shortName&&t.shortName===n.shortName)&&(r=n);return r}var LC=function(e,t,r){var n={};if(e!==Jt["RSASSA-PSS"])return n;r&&(n={hash:{algorithmOid:Jt.sha1},mgf:{algorithmOid:Jt.mgf1,hash:{algorithmOid:Jt.sha1}},saltLength:20});var i={},s=[];if(!T.validate(t,lPe,i,s)){var a=new Error("Cannot read RSASSA-PSS parameter block.");throw a.errors=s,a}return i.hashOid!==void 0&&(n.hash=n.hash||{},n.hash.algorithmOid=T.derToOid(i.hashOid)),i.maskGenOid!==void 0&&(n.mgf=n.mgf||{},n.mgf.algorithmOid=T.derToOid(i.maskGenOid),n.mgf.hash=n.mgf.hash||{},n.mgf.hash.algorithmOid=T.derToOid(i.maskGenHashOid)),i.saltLength!==void 0&&(n.saltLength=i.saltLength.charCodeAt(0)),n},FC=function(e){switch(Jt[e.signatureOid]){case"sha1WithRSAEncryption":case"sha1WithRSASignature":return st.md.sha1.create();case"md5WithRSAEncryption":return st.md.md5.create();case"sha256WithRSAEncryption":return st.md.sha256.create();case"sha384WithRSAEncryption":return st.md.sha384.create();case"sha512WithRSAEncryption":return st.md.sha512.create();case"RSASSA-PSS":return st.md.sha256.create();default:var t=new Error("Could not compute "+e.type+" digest. Unknown signature OID.");throw t.signatureOid=e.signatureOid,t}},QJ=function(e){var t=e.certificate,r;switch(t.signatureOid){case Jt.sha1WithRSAEncryption:case Jt.sha1WithRSASignature:break;case Jt["RSASSA-PSS"]:var n,i;if(n=Jt[t.signatureParameters.mgf.hash.algorithmOid],n===void 0||st.md[n]===void 0){var s=new Error("Unsupported MGF hash function.");throw s.oid=t.signatureParameters.mgf.hash.algorithmOid,s.name=n,s}if(i=Jt[t.signatureParameters.mgf.algorithmOid],i===void 0||st.mgf[i]===void 0){var s=new Error("Unsupported MGF function.");throw s.oid=t.signatureParameters.mgf.algorithmOid,s.name=i,s}if(i=st.mgf[i].create(st.md[n].create()),n=Jt[t.signatureParameters.hash.algorithmOid],n===void 0||st.md[n]===void 0){var s=new Error("Unsupported RSASSA-PSS hash function.");throw s.oid=t.signatureParameters.hash.algorithmOid,s.name=n,s}r=st.pss.create(st.md[n].create(),i,t.signatureParameters.saltLength);break}return t.publicKey.verify(e.md.digest().getBytes(),e.signature,r)};Te.certificateFromPem=function(e,t,r){var n=st.pem.decode(e)[0];if(n.type!=="CERTIFICATE"&&n.type!=="X509 CERTIFICATE"&&n.type!=="TRUSTED CERTIFICATE"){var i=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw i.headerType=n.type,i}if(n.procType&&n.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var s=T.fromDer(n.body,r);return Te.certificateFromAsn1(s,t)};Te.certificateToPem=function(e,t){var r={type:"CERTIFICATE",body:T.toDer(Te.certificateToAsn1(e)).getBytes()};return st.pem.encode(r,{maxline:t})};Te.publicKeyFromPem=function(e){var t=st.pem.decode(e)[0];if(t.type!=="PUBLIC KEY"&&t.type!=="RSA PUBLIC KEY"){var r=new Error('Could not convert public key from PEM; PEM header type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert public key from PEM; PEM is encrypted.");var n=T.fromDer(t.body);return Te.publicKeyFromAsn1(n)};Te.publicKeyToPem=function(e,t){var r={type:"PUBLIC KEY",body:T.toDer(Te.publicKeyToAsn1(e)).getBytes()};return st.pem.encode(r,{maxline:t})};Te.publicKeyToRSAPublicKeyPem=function(e,t){var r={type:"RSA PUBLIC KEY",body:T.toDer(Te.publicKeyToRSAPublicKey(e)).getBytes()};return st.pem.encode(r,{maxline:t})};Te.getPublicKeyFingerprint=function(e,t){t=t||{};var r=t.md||st.md.sha1.create(),n=t.type||"RSAPublicKey",i;switch(n){case"RSAPublicKey":i=T.toDer(Te.publicKeyToRSAPublicKey(e)).getBytes();break;case"SubjectPublicKeyInfo":i=T.toDer(Te.publicKeyToAsn1(e)).getBytes();break;default:throw new Error('Unknown fingerprint type "'+t.type+'".')}r.start(),r.update(i);var s=r.digest();if(t.encoding==="hex"){var a=s.toHex();return t.delimiter?a.match(/.{2}/g).join(t.delimiter):a}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s};Te.certificationRequestFromPem=function(e,t,r){var n=st.pem.decode(e)[0];if(n.type!=="CERTIFICATE REQUEST"){var i=new Error('Could not convert certification request from PEM; PEM header type is not "CERTIFICATE REQUEST".');throw i.headerType=n.type,i}if(n.procType&&n.procType.type==="ENCRYPTED")throw new Error("Could not convert certification request from PEM; PEM is encrypted.");var s=T.fromDer(n.body,r);return Te.certificationRequestFromAsn1(s,t)};Te.certificationRequestToPem=function(e,t){var r={type:"CERTIFICATE REQUEST",body:T.toDer(Te.certificationRequestToAsn1(e)).getBytes()};return st.pem.encode(r,{maxline:t})};Te.createCertificate=function(){var e={};return e.version=2,e.serialNumber="00",e.signatureOid=null,e.signature=null,e.siginfo={},e.siginfo.algorithmOid=null,e.validity={},e.validity.notBefore=new Date,e.validity.notAfter=new Date,e.issuer={},e.issuer.getField=function(t){return fl(e.issuer,t)},e.issuer.addField=function(t){sa([t]),e.issuer.attributes.push(t)},e.issuer.attributes=[],e.issuer.hash=null,e.subject={},e.subject.getField=function(t){return fl(e.subject,t)},e.subject.addField=function(t){sa([t]),e.subject.attributes.push(t)},e.subject.attributes=[],e.subject.hash=null,e.extensions=[],e.publicKey=null,e.md=null,e.setSubject=function(t,r){sa(t),e.subject.attributes=t,delete e.subject.uniqueId,r&&(e.subject.uniqueId=r),e.subject.hash=null},e.setIssuer=function(t,r){sa(t),e.issuer.attributes=t,delete e.issuer.uniqueId,r&&(e.issuer.uniqueId=r),e.issuer.hash=null},e.setExtensions=function(t){for(var r=0;r<t.length;++r)zJ(t[r],{cert:e});e.extensions=t},e.getExtension=function(t){typeof t=="string"&&(t={name:t});for(var r=null,n,i=0;r===null&&i<e.extensions.length;++i)n=e.extensions[i],(t.id&&n.id===t.id||t.name&&n.name===t.name)&&(r=n);return r},e.sign=function(t,r){e.md=r||st.md.sha1.create();var n=Jt[e.md.algorithm+"WithRSAEncryption"];if(!n){var i=new Error("Could not compute certificate digest. Unknown message digest algorithm OID.");throw i.algorithm=e.md.algorithm,i}e.signatureOid=e.siginfo.algorithmOid=n,e.tbsCertificate=Te.getTBSCertificate(e);var s=T.toDer(e.tbsCertificate);e.md.update(s.getBytes()),e.signature=t.sign(e.md)},e.verify=function(t){var r=!1;if(!e.issued(t)){var n=t.issuer,i=e.subject,s=new Error("The parent certificate did not issue the given child certificate; the child certificate's issuer does not match the parent's subject.");throw s.expectedIssuer=i.attributes,s.actualIssuer=n.attributes,s}var a=t.md;if(a===null){a=FC({signatureOid:t.signatureOid,type:"certificate"});var o=t.tbsCertificate||Te.getTBSCertificate(t),u=T.toDer(o);a.update(u.getBytes())}return a!==null&&(r=QJ({certificate:e,md:a,signature:t.signature})),r},e.isIssuer=function(t){var r=!1,n=e.issuer,i=t.subject;if(n.hash&&i.hash)r=n.hash===i.hash;else if(n.attributes.length===i.attributes.length){r=!0;for(var s,a,o=0;r&&o<n.attributes.length;++o)s=n.attributes[o],a=i.attributes[o],(s.type!==a.type||s.value!==a.value)&&(r=!1)}return r},e.issued=function(t){return t.isIssuer(e)},e.generateSubjectKeyIdentifier=function(){return Te.getPublicKeyFingerprint(e.publicKey,{type:"RSAPublicKey"})},e.verifySubjectKeyIdentifier=function(){for(var t=Jt.subjectKeyIdentifier,r=0;r<e.extensions.length;++r){var n=e.extensions[r];if(n.id===t){var i=e.generateSubjectKeyIdentifier().getBytes();return st.util.hexToBytes(n.subjectKeyIdentifier)===i}}return!1},e};Te.certificateFromAsn1=function(e,t){var r={},n=[];if(!T.validate(e,cPe,r,n)){var i=new Error("Cannot read X.509 certificate. ASN.1 object is not an X509v3 Certificate.");throw i.errors=n,i}var s=T.derToOid(r.publicKeyOid);if(s!==Te.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var a=Te.createCertificate();a.version=r.certVersion?r.certVersion.charCodeAt(0):0;var o=st.util.createBuffer(r.certSerialNumber);a.serialNumber=o.toHex(),a.signatureOid=st.asn1.derToOid(r.certSignatureOid),a.signatureParameters=LC(a.signatureOid,r.certSignatureParams,!0),a.siginfo.algorithmOid=st.asn1.derToOid(r.certinfoSignatureOid),a.siginfo.parameters=LC(a.siginfo.algorithmOid,r.certinfoSignatureParams,!1),a.signature=r.certSignature;var u=[];if(r.certValidity1UTCTime!==void 0&&u.push(T.utcTimeToDate(r.certValidity1UTCTime)),r.certValidity2GeneralizedTime!==void 0&&u.push(T.generalizedTimeToDate(r.certValidity2GeneralizedTime)),r.certValidity3UTCTime!==void 0&&u.push(T.utcTimeToDate(r.certValidity3UTCTime)),r.certValidity4GeneralizedTime!==void 0&&u.push(T.generalizedTimeToDate(r.certValidity4GeneralizedTime)),u.length>2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(u.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(a.validity.notBefore=u[0],a.validity.notAfter=u[1],a.tbsCertificate=r.tbsCertificate,t){a.md=FC({signatureOid:a.signatureOid,type:"certificate"});var l=T.toDer(a.tbsCertificate);a.md.update(l.getBytes())}var f=st.md.sha1.create(),h=T.toDer(r.certIssuer);f.update(h.getBytes()),a.issuer.getField=function(_){return fl(a.issuer,_)},a.issuer.addField=function(_){sa([_]),a.issuer.attributes.push(_)},a.issuer.attributes=Te.RDNAttributesAsArray(r.certIssuer),r.certIssuerUniqueId&&(a.issuer.uniqueId=r.certIssuerUniqueId),a.issuer.hash=f.digest().toHex();var m=st.md.sha1.create(),y=T.toDer(r.certSubject);return m.update(y.getBytes()),a.subject.getField=function(_){return fl(a.subject,_)},a.subject.addField=function(_){sa([_]),a.subject.attributes.push(_)},a.subject.attributes=Te.RDNAttributesAsArray(r.certSubject),r.certSubjectUniqueId&&(a.subject.uniqueId=r.certSubjectUniqueId),a.subject.hash=m.digest().toHex(),r.certExtensions?a.extensions=Te.certificateExtensionsFromAsn1(r.certExtensions):a.extensions=[],a.publicKey=Te.publicKeyFromAsn1(r.subjectPublicKeyInfo),a};Te.certificateExtensionsFromAsn1=function(e){for(var t=[],r=0;r<e.value.length;++r)for(var n=e.value[r],i=0;i<n.value.length;++i)t.push(Te.certificateExtensionFromAsn1(n.value[i]));return t};Te.certificateExtensionFromAsn1=function(e){var t={};if(t.id=T.derToOid(e.value[0].value),t.critical=!1,e.value[1].type===T.Type.BOOLEAN?(t.critical=e.value[1].value.charCodeAt(0)!==0,t.value=e.value[2].value):t.value=e.value[1].value,t.id in Jt){if(t.name=Jt[t.id],t.name==="keyUsage"){var r=T.fromDer(t.value),n=0,i=0;r.value.length>1&&(n=r.value.charCodeAt(1),i=r.value.length>2?r.value.charCodeAt(2):0),t.digitalSignature=(n&128)===128,t.nonRepudiation=(n&64)===64,t.keyEncipherment=(n&32)===32,t.dataEncipherment=(n&16)===16,t.keyAgreement=(n&8)===8,t.keyCertSign=(n&4)===4,t.cRLSign=(n&2)===2,t.encipherOnly=(n&1)===1,t.decipherOnly=(i&128)===128}else if(t.name==="basicConstraints"){var r=T.fromDer(t.value);r.value.length>0&&r.value[0].type===T.Type.BOOLEAN?t.cA=r.value[0].value.charCodeAt(0)!==0:t.cA=!1;var s=null;r.value.length>0&&r.value[0].type===T.Type.INTEGER?s=r.value[0].value:r.value.length>1&&(s=r.value[1].value),s!==null&&(t.pathLenConstraint=T.derToInteger(s))}else if(t.name==="extKeyUsage")for(var r=T.fromDer(t.value),a=0;a<r.value.length;++a){var o=T.derToOid(r.value[a].value);o in Jt?t[Jt[o]]=!0:t[o]=!0}else if(t.name==="nsCertType"){var r=T.fromDer(t.value),n=0;r.value.length>1&&(n=r.value.charCodeAt(1)),t.client=(n&128)===128,t.server=(n&64)===64,t.email=(n&32)===32,t.objsign=(n&16)===16,t.reserved=(n&8)===8,t.sslCA=(n&4)===4,t.emailCA=(n&2)===2,t.objCA=(n&1)===1}else if(t.name==="subjectAltName"||t.name==="issuerAltName"){t.altNames=[];for(var u,r=T.fromDer(t.value),l=0;l<r.value.length;++l){u=r.value[l];var f={type:u.type,value:u.value};switch(t.altNames.push(f),u.type){case 1:case 2:case 6:break;case 7:f.ip=st.util.bytesToIP(u.value);break;case 8:f.oid=T.derToOid(u.value);break;default:}}}else if(t.name==="subjectKeyIdentifier"){var r=T.fromDer(t.value);t.subjectKeyIdentifier=st.util.bytesToHex(r.value)}}return t};Te.certificationRequestFromAsn1=function(e,t){var r={},n=[];if(!T.validate(e,fPe,r,n)){var i=new Error("Cannot read PKCS#10 certificate request. ASN.1 object is not a PKCS#10 CertificationRequest.");throw i.errors=n,i}var s=T.derToOid(r.publicKeyOid);if(s!==Te.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var a=Te.createCertificationRequest();if(a.version=r.csrVersion?r.csrVersion.charCodeAt(0):0,a.signatureOid=st.asn1.derToOid(r.csrSignatureOid),a.signatureParameters=LC(a.signatureOid,r.csrSignatureParams,!0),a.siginfo.algorithmOid=st.asn1.derToOid(r.csrSignatureOid),a.siginfo.parameters=LC(a.siginfo.algorithmOid,r.csrSignatureParams,!1),a.signature=r.csrSignature,a.certificationRequestInfo=r.certificationRequestInfo,t){a.md=FC({signatureOid:a.signatureOid,type:"certification request"});var o=T.toDer(a.certificationRequestInfo);a.md.update(o.getBytes())}var u=st.md.sha1.create();return a.subject.getField=function(l){return fl(a.subject,l)},a.subject.addField=function(l){sa([l]),a.subject.attributes.push(l)},a.subject.attributes=Te.RDNAttributesAsArray(r.certificationRequestInfoSubject,u),a.subject.hash=u.digest().toHex(),a.publicKey=Te.publicKeyFromAsn1(r.subjectPublicKeyInfo),a.getAttribute=function(l){return fl(a,l)},a.addAttribute=function(l){sa([l]),a.attributes.push(l)},a.attributes=Te.CRIAttributesAsArray(r.certificationRequestInfoAttributes||[]),a};Te.createCertificationRequest=function(){var e={};return e.version=0,e.signatureOid=null,e.signature=null,e.siginfo={},e.siginfo.algorithmOid=null,e.subject={},e.subject.getField=function(t){return fl(e.subject,t)},e.subject.addField=function(t){sa([t]),e.subject.attributes.push(t)},e.subject.attributes=[],e.subject.hash=null,e.publicKey=null,e.attributes=[],e.getAttribute=function(t){return fl(e,t)},e.addAttribute=function(t){sa([t]),e.attributes.push(t)},e.md=null,e.setSubject=function(t){sa(t),e.subject.attributes=t,e.subject.hash=null},e.setAttributes=function(t){sa(t),e.attributes=t},e.sign=function(t,r){e.md=r||st.md.sha1.create();var n=Jt[e.md.algorithm+"WithRSAEncryption"];if(!n){var i=new Error("Could not compute certification request digest. Unknown message digest algorithm OID.");throw i.algorithm=e.md.algorithm,i}e.signatureOid=e.siginfo.algorithmOid=n,e.certificationRequestInfo=Te.getCertificationRequestInfo(e);var s=T.toDer(e.certificationRequestInfo);e.md.update(s.getBytes()),e.signature=t.sign(e.md)},e.verify=function(){var t=!1,r=e.md;if(r===null){r=FC({signatureOid:e.signatureOid,type:"certification request"});var n=e.certificationRequestInfo||Te.getCertificationRequestInfo(e),i=T.toDer(n);r.update(i.getBytes())}return r!==null&&(t=QJ({certificate:e,md:r,signature:e.signature})),t},e};function kh(e){for(var t=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[]),r,n,i=e.attributes,s=0;s<i.length;++s){r=i[s];var a=r.value,o=T.Type.PRINTABLESTRING;"valueTagClass"in r&&(o=r.valueTagClass,o===T.Type.UTF8&&(a=st.util.encodeUtf8(a))),n=T.create(T.Class.UNIVERSAL,T.Type.SET,!0,[T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(r.type).getBytes()),T.create(T.Class.UNIVERSAL,o,!1,a)])]),t.value.push(n)}return t}function sa(e){for(var t,r=0;r<e.length;++r){if(t=e[r],typeof t.name>"u"&&(t.type&&t.type in Te.oids?t.name=Te.oids[t.type]:t.shortName&&t.shortName in nn&&(t.name=Te.oids[nn[t.shortName]])),typeof t.type>"u")if(t.name&&t.name in Te.oids)t.type=Te.oids[t.name];else{var n=new Error("Attribute type not specified.");throw n.attribute=t,n}if(typeof t.shortName>"u"&&t.name&&t.name in nn&&(t.shortName=nn[t.name]),t.type===Jt.extensionRequest&&(t.valueConstructed=!0,t.valueTagClass=T.Type.SEQUENCE,!t.value&&t.extensions)){t.value=[];for(var i=0;i<t.extensions.length;++i)t.value.push(Te.certificateExtensionToAsn1(zJ(t.extensions[i])))}if(typeof t.value>"u"){var n=new Error("Attribute value not specified.");throw n.attribute=t,n}}}function zJ(e,t){if(t=t||{},typeof e.name>"u"&&e.id&&e.id in Te.oids&&(e.name=Te.oids[e.id]),typeof e.id>"u")if(e.name&&e.name in Te.oids)e.id=Te.oids[e.name];else{var r=new Error("Extension ID not specified.");throw r.extension=e,r}if(typeof e.value<"u")return e;if(e.name==="keyUsage"){var n=0,i=0,s=0;e.digitalSignature&&(i|=128,n=7),e.nonRepudiation&&(i|=64,n=6),e.keyEncipherment&&(i|=32,n=5),e.dataEncipherment&&(i|=16,n=4),e.keyAgreement&&(i|=8,n=3),e.keyCertSign&&(i|=4,n=2),e.cRLSign&&(i|=2,n=1),e.encipherOnly&&(i|=1,n=0),e.decipherOnly&&(s|=128,n=7);var a=String.fromCharCode(n);s!==0?a+=String.fromCharCode(i)+String.fromCharCode(s):i!==0&&(a+=String.fromCharCode(i)),e.value=T.create(T.Class.UNIVERSAL,T.Type.BITSTRING,!1,a)}else if(e.name==="basicConstraints")e.value=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[]),e.cA&&e.value.value.push(T.create(T.Class.UNIVERSAL,T.Type.BOOLEAN,!1,"\xFF")),"pathLenConstraint"in e&&e.value.value.push(T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.pathLenConstraint).getBytes()));else if(e.name==="extKeyUsage"){e.value=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[]);var o=e.value.value;for(var u in e)e[u]===!0&&(u in Jt?o.push(T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(Jt[u]).getBytes())):u.indexOf(".")!==-1&&o.push(T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(u).getBytes())))}else if(e.name==="nsCertType"){var n=0,i=0;e.client&&(i|=128,n=7),e.server&&(i|=64,n=6),e.email&&(i|=32,n=5),e.objsign&&(i|=16,n=4),e.reserved&&(i|=8,n=3),e.sslCA&&(i|=4,n=2),e.emailCA&&(i|=2,n=1),e.objCA&&(i|=1,n=0);var a=String.fromCharCode(n);i!==0&&(a+=String.fromCharCode(i)),e.value=T.create(T.Class.UNIVERSAL,T.Type.BITSTRING,!1,a)}else if(e.name==="subjectAltName"||e.name==="issuerAltName"){e.value=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[]);for(var l,f=0;f<e.altNames.length;++f){l=e.altNames[f];var a=l.value;if(l.type===7&&l.ip){if(a=st.util.bytesFromIP(l.ip),a===null){var r=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw r.extension=e,r}}else l.type===8&&(l.oid?a=T.oidToDer(T.oidToDer(l.oid)):a=T.oidToDer(a));e.value.value.push(T.create(T.Class.CONTEXT_SPECIFIC,l.type,!1,a))}}else if(e.name==="nsComment"&&t.cert){if(!/^[\x00-\x7F]*$/.test(e.comment)||e.comment.length<1||e.comment.length>128)throw new Error('Invalid "nsComment" content.');e.value=T.create(T.Class.UNIVERSAL,T.Type.IA5STRING,!1,e.comment)}else if(e.name==="subjectKeyIdentifier"&&t.cert){var h=t.cert.generateSubjectKeyIdentifier();e.subjectKeyIdentifier=h.toHex(),e.value=T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,h.getBytes())}else if(e.name==="authorityKeyIdentifier"&&t.cert){e.value=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[]);var o=e.value.value;if(e.keyIdentifier){var m=e.keyIdentifier===!0?t.cert.generateSubjectKeyIdentifier().getBytes():e.keyIdentifier;o.push(T.create(T.Class.CONTEXT_SPECIFIC,0,!1,m))}if(e.authorityCertIssuer){var y=[T.create(T.Class.CONTEXT_SPECIFIC,4,!0,[kh(e.authorityCertIssuer===!0?t.cert.issuer:e.authorityCertIssuer)])];o.push(T.create(T.Class.CONTEXT_SPECIFIC,1,!0,y))}if(e.serialNumber){var _=st.util.hexToBytes(e.serialNumber===!0?t.cert.serialNumber:e.serialNumber);o.push(T.create(T.Class.CONTEXT_SPECIFIC,2,!1,_))}}else if(e.name==="cRLDistributionPoints"){e.value=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[]);for(var o=e.value.value,C=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[]),b=T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[]),l,f=0;f<e.altNames.length;++f){l=e.altNames[f];var a=l.value;if(l.type===7&&l.ip){if(a=st.util.bytesFromIP(l.ip),a===null){var r=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw r.extension=e,r}}else l.type===8&&(l.oid?a=T.oidToDer(T.oidToDer(l.oid)):a=T.oidToDer(a));b.value.push(T.create(T.Class.CONTEXT_SPECIFIC,l.type,!1,a))}C.value.push(T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[b])),o.push(C)}if(typeof e.value>"u"){var r=new Error("Extension value not specified.");throw r.extension=e,r}return e}function PP(e,t){switch(e){case Jt["RSASSA-PSS"]:var r=[];return t.hash.algorithmOid!==void 0&&r.push(T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(t.hash.algorithmOid).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")])])),t.mgf.algorithmOid!==void 0&&r.push(T.create(T.Class.CONTEXT_SPECIFIC,1,!0,[T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(t.mgf.algorithmOid).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(t.mgf.hash.algorithmOid).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")])])])),t.saltLength!==void 0&&r.push(T.create(T.Class.CONTEXT_SPECIFIC,2,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(t.saltLength).getBytes())])),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,r);default:return T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")}}function dPe(e){var t=T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[]);if(e.attributes.length===0)return t;for(var r=e.attributes,n=0;n<r.length;++n){var i=r[n],s=i.value,a=T.Type.UTF8;"valueTagClass"in i&&(a=i.valueTagClass),a===T.Type.UTF8&&(s=st.util.encodeUtf8(s));var o=!1;"valueConstructed"in i&&(o=i.valueConstructed);var u=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(i.type).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SET,!0,[T.create(T.Class.UNIVERSAL,a,o,s)])]);t.value.push(u)}return t}var hPe=new Date("1950-01-01T00:00:00Z"),mPe=new Date("2050-01-01T00:00:00Z");function GJ(e){return e>=hPe&&e<mPe?T.create(T.Class.UNIVERSAL,T.Type.UTCTIME,!1,T.dateToUtcTime(e)):T.create(T.Class.UNIVERSAL,T.Type.GENERALIZEDTIME,!1,T.dateToGeneralizedTime(e))}Te.getTBSCertificate=function(e){var t=GJ(e.validity.notBefore),r=GJ(e.validity.notAfter),n=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes())]),T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,st.util.hexToBytes(e.serialNumber)),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.siginfo.algorithmOid).getBytes()),PP(e.siginfo.algorithmOid,e.siginfo.parameters)]),kh(e.issuer),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[t,r]),kh(e.subject),Te.publicKeyToAsn1(e.publicKey)]);return e.issuer.uniqueId&&n.value.push(T.create(T.Class.CONTEXT_SPECIFIC,1,!0,[T.create(T.Class.UNIVERSAL,T.Type.BITSTRING,!1,"\0"+e.issuer.uniqueId)])),e.subject.uniqueId&&n.value.push(T.create(T.Class.CONTEXT_SPECIFIC,2,!0,[T.create(T.Class.UNIVERSAL,T.Type.BITSTRING,!1,"\0"+e.subject.uniqueId)])),e.extensions.length>0&&n.value.push(Te.certificateExtensionsToAsn1(e.extensions)),n};Te.getCertificationRequestInfo=function(e){var t=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),kh(e.subject),Te.publicKeyToAsn1(e.publicKey),dPe(e)]);return t};Te.distinguishedNameToAsn1=function(e){return kh(e)};Te.certificateToAsn1=function(e){var t=e.tbsCertificate||Te.getTBSCertificate(e);return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[t,T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.signatureOid).getBytes()),PP(e.signatureOid,e.signatureParameters)]),T.create(T.Class.UNIVERSAL,T.Type.BITSTRING,!1,"\0"+e.signature)])};Te.certificateExtensionsToAsn1=function(e){var t=T.create(T.Class.CONTEXT_SPECIFIC,3,!0,[]),r=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[]);t.value.push(r);for(var n=0;n<e.length;++n)r.value.push(Te.certificateExtensionToAsn1(e[n]));return t};Te.certificateExtensionToAsn1=function(e){var t=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[]);t.value.push(T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.id).getBytes())),e.critical&&t.value.push(T.create(T.Class.UNIVERSAL,T.Type.BOOLEAN,!1,"\xFF"));var r=e.value;return typeof e.value!="string"&&(r=T.toDer(r).getBytes()),t.value.push(T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,r)),t};Te.certificationRequestToAsn1=function(e){var t=e.certificationRequestInfo||Te.getCertificationRequestInfo(e);return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[t,T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.signatureOid).getBytes()),PP(e.signatureOid,e.signatureParameters)]),T.create(T.Class.UNIVERSAL,T.Type.BITSTRING,!1,"\0"+e.signature)])};Te.createCaStore=function(e){var t={certs:{}};t.getIssuer=function(a){var o=r(a.issuer);return o},t.addCertificate=function(a){if(typeof a=="string"&&(a=st.pki.certificateFromPem(a)),n(a.subject),!t.hasCertificate(a))if(a.subject.hash in t.certs){var o=t.certs[a.subject.hash];st.util.isArray(o)||(o=[o]),o.push(a),t.certs[a.subject.hash]=o}else t.certs[a.subject.hash]=a},t.hasCertificate=function(a){typeof a=="string"&&(a=st.pki.certificateFromPem(a));var o=r(a.subject);if(!o)return!1;st.util.isArray(o)||(o=[o]);for(var u=T.toDer(Te.certificateToAsn1(a)).getBytes(),l=0;l<o.length;++l){var f=T.toDer(Te.certificateToAsn1(o[l])).getBytes();if(u===f)return!0}return!1},t.listAllCertificates=function(){var a=[];for(var o in t.certs)if(t.certs.hasOwnProperty(o)){var u=t.certs[o];if(!st.util.isArray(u))a.push(u);else for(var l=0;l<u.length;++l)a.push(u[l])}return a},t.removeCertificate=function(a){var o;if(typeof a=="string"&&(a=st.pki.certificateFromPem(a)),n(a.subject),!t.hasCertificate(a))return null;var u=r(a.subject);if(!st.util.isArray(u))return o=t.certs[a.subject.hash],delete t.certs[a.subject.hash],o;for(var l=T.toDer(Te.certificateToAsn1(a)).getBytes(),f=0;f<u.length;++f){var h=T.toDer(Te.certificateToAsn1(u[f])).getBytes();l===h&&(o=u[f],u.splice(f,1))}return u.length===0&&delete t.certs[a.subject.hash],o};function r(a){return n(a),t.certs[a.hash]||null}function n(a){if(!a.hash){var o=st.md.sha1.create();a.attributes=Te.RDNAttributesAsArray(kh(a),o),a.hash=o.digest().toHex()}}if(e)for(var i=0;i<e.length;++i){var s=e[i];t.addCertificate(s)}return t};Te.certificateError={bad_certificate:"forge.pki.BadCertificate",unsupported_certificate:"forge.pki.UnsupportedCertificate",certificate_revoked:"forge.pki.CertificateRevoked",certificate_expired:"forge.pki.CertificateExpired",certificate_unknown:"forge.pki.CertificateUnknown",unknown_ca:"forge.pki.UnknownCertificateAuthority"};Te.verifyCertificateChain=function(e,t,r){typeof r=="function"&&(r={verify:r}),r=r||{},t=t.slice(0);var n=t.slice(0),i=r.validityCheckDate;typeof i>"u"&&(i=new Date);var s=!0,a=null,o=0;do{var u=t.shift(),l=null,f=!1;if(i&&(i<u.validity.notBefore||i>u.validity.notAfter)&&(a={message:"Certificate is not valid yet or has expired.",error:Te.certificateError.certificate_expired,notBefore:u.validity.notBefore,notAfter:u.validity.notAfter,now:i}),a===null){if(l=t[0]||e.getIssuer(u),l===null&&u.isIssuer(u)&&(f=!0,l=u),l){var h=l;st.util.isArray(h)||(h=[h]);for(var m=!1;!m&&h.length>0;){l=h.shift();try{m=l.verify(u)}catch{}}m||(a={message:"Certificate signature is invalid.",error:Te.certificateError.bad_certificate})}a===null&&(!l||f)&&!e.hasCertificate(u)&&(a={message:"Certificate is not trusted.",error:Te.certificateError.unknown_ca})}if(a===null&&l&&!u.isIssuer(l)&&(a={message:"Certificate issuer is invalid.",error:Te.certificateError.bad_certificate}),a===null)for(var y={keyUsage:!0,basicConstraints:!0},_=0;a===null&&_<u.extensions.length;++_){var C=u.extensions[_];C.critical&&!(C.name in y)&&(a={message:"Certificate has an unsupported critical extension.",error:Te.certificateError.unsupported_certificate})}if(a===null&&(!s||t.length===0&&(!l||f))){var b=u.getExtension("basicConstraints"),D=u.getExtension("keyUsage");if(D!==null&&(!D.keyCertSign||b===null)&&(a={message:"Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",error:Te.certificateError.bad_certificate}),a===null&&b!==null&&!b.cA&&(a={message:"Certificate basicConstraints indicates the certificate is not a CA.",error:Te.certificateError.bad_certificate}),a===null&&D!==null&&"pathLenConstraint"in b){var L=o-1;L>b.pathLenConstraint&&(a={message:"Certificate basicConstraints pathLenConstraint violated.",error:Te.certificateError.bad_certificate})}}var F=a===null?!0:a.error,q=r.verify?r.verify(F,o,n):F;if(q===!0)a=null;else throw F===!0&&(a={message:"The application rejected the certificate.",error:Te.certificateError.bad_certificate}),(q||q===0)&&(typeof q=="object"&&!st.util.isArray(q)?(q.message&&(a.message=q.message),q.error&&(a.error=q.error)):typeof q=="string"&&(a.error=q)),a;s=!1,++o}while(t.length>0);return!0}});var LP=w((Lut,YJ)=>{"use strict";d();var Rr=Ot();Qa();Rh();cl();NP();RP();ra();iv();Bh();nr();kC();var U=Rr.asn1,Vt=Rr.pki,av=YJ.exports=Rr.pkcs12=Rr.pkcs12||{},$J={name:"ContentInfo",tagClass:U.Class.UNIVERSAL,type:U.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:U.Class.UNIVERSAL,type:U.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:U.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},gPe={name:"PFX",tagClass:U.Class.UNIVERSAL,type:U.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:U.Class.UNIVERSAL,type:U.Type.INTEGER,constructed:!1,capture:"version"},$J,{name:"PFX.macData",tagClass:U.Class.UNIVERSAL,type:U.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:U.Class.UNIVERSAL,type:U.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:U.Class.UNIVERSAL,type:U.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:U.Class.UNIVERSAL,type:U.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:U.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:U.Class.UNIVERSAL,type:U.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:U.Class.UNIVERSAL,type:U.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:U.Class.UNIVERSAL,type:U.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},vPe={name:"SafeBag",tagClass:U.Class.UNIVERSAL,type:U.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:U.Class.UNIVERSAL,type:U.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:U.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:U.Class.UNIVERSAL,type:U.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},yPe={name:"Attribute",tagClass:U.Class.UNIVERSAL,type:U.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:U.Class.UNIVERSAL,type:U.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:U.Class.UNIVERSAL,type:U.Type.SET,constructed:!0,capture:"values"}]},xPe={name:"CertBag",tagClass:U.Class.UNIVERSAL,type:U.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:U.Class.UNIVERSAL,type:U.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:U.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:U.Class.UNIVERSAL,type:U.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function sv(e,t,r,n){for(var i=[],s=0;s<e.length;s++)for(var a=0;a<e[s].safeBags.length;a++){var o=e[s].safeBags[a];if(!(n!==void 0&&o.type!==n)){if(t===null){i.push(o);continue}o.attributes[t]!==void 0&&o.attributes[t].indexOf(r)>=0&&i.push(o)}}return i}av.pkcs12FromAsn1=function(e,t,r){typeof t=="string"?(r=t,t=!0):t===void 0&&(t=!0);var n={},i=[];if(!U.validate(e,gPe,n,i)){var s=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw s.errors=s,s}var a={version:n.version.charCodeAt(0),safeContents:[],getBags:function(b){var D={},L;return"localKeyId"in b?L=b.localKeyId:"localKeyIdHex"in b&&(L=Rr.util.hexToBytes(b.localKeyIdHex)),L===void 0&&!("friendlyName"in b)&&"bagType"in b&&(D[b.bagType]=sv(a.safeContents,null,null,b.bagType)),L!==void 0&&(D.localKeyId=sv(a.safeContents,"localKeyId",L,b.bagType)),"friendlyName"in b&&(D.friendlyName=sv(a.safeContents,"friendlyName",b.friendlyName,b.bagType)),D},getBagsByFriendlyName:function(b,D){return sv(a.safeContents,"friendlyName",b,D)},getBagsByLocalKeyId:function(b,D){return sv(a.safeContents,"localKeyId",b,D)}};if(n.version.charCodeAt(0)!==3){var s=new Error("PKCS#12 PFX of version other than 3 not supported.");throw s.version=n.version.charCodeAt(0),s}if(U.derToOid(n.contentType)!==Vt.oids.data){var s=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw s.oid=U.derToOid(n.contentType),s}var o=n.content.value[0];if(o.tagClass!==U.Class.UNIVERSAL||o.type!==U.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(o=BP(o),n.mac){var u=null,l=0,f=U.derToOid(n.macAlgorithm);switch(f){case Vt.oids.sha1:u=Rr.md.sha1.create(),l=20;break;case Vt.oids.sha256:u=Rr.md.sha256.create(),l=32;break;case Vt.oids.sha384:u=Rr.md.sha384.create(),l=48;break;case Vt.oids.sha512:u=Rr.md.sha512.create(),l=64;break;case Vt.oids.md5:u=Rr.md.md5.create(),l=16;break}if(u===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+f);var h=new Rr.util.ByteBuffer(n.macSalt),m="macIterations"in n?parseInt(Rr.util.bytesToHex(n.macIterations),16):1,y=av.generateKey(r,h,3,m,l,u),_=Rr.hmac.create();_.start(u,y),_.update(o.value);var C=_.getMac();if(C.getBytes()!==n.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}return EPe(a,o.value,t,r),a};function BP(e){if(e.composed||e.constructed){for(var t=Rr.util.createBuffer(),r=0;r<e.value.length;++r)t.putBytes(e.value[r].value);e.composed=e.constructed=!1,e.value=t.getBytes()}return e}function EPe(e,t,r,n){if(t=U.fromDer(t,r),t.tagClass!==U.Class.UNIVERSAL||t.type!==U.Type.SEQUENCE||t.constructed!==!0)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var i=0;i<t.value.length;i++){var s=t.value[i],a={},o=[];if(!U.validate(s,$J,a,o)){var u=new Error("Cannot read ContentInfo.");throw u.errors=o,u}var l={encrypted:!1},f=null,h=a.content.value[0];switch(U.derToOid(a.contentType)){case Vt.oids.data:if(h.tagClass!==U.Class.UNIVERSAL||h.type!==U.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");f=BP(h).value;break;case Vt.oids.encryptedData:f=_Pe(h,n),l.encrypted=!0;break;default:var u=new Error("Unsupported PKCS#12 contentType.");throw u.contentType=U.derToOid(a.contentType),u}l.safeBags=APe(f,r,n),e.safeContents.push(l)}}function _Pe(e,t){var r={},n=[];if(!U.validate(e,Rr.pkcs7.asn1.encryptedDataValidator,r,n)){var i=new Error("Cannot read EncryptedContentInfo.");throw i.errors=n,i}var s=U.derToOid(r.contentType);if(s!==Vt.oids.data){var i=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.");throw i.oid=s,i}s=U.derToOid(r.encAlgorithm);var a=Vt.pbe.getCipher(s,r.encParameter,t),o=BP(r.encryptedContentAsn1),u=Rr.util.createBuffer(o.value);if(a.update(u),!a.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return a.output.getBytes()}function APe(e,t,r){if(!t&&e.length===0)return[];if(e=U.fromDer(e,t),e.tagClass!==U.Class.UNIVERSAL||e.type!==U.Type.SEQUENCE||e.constructed!==!0)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var n=[],i=0;i<e.value.length;i++){var s=e.value[i],a={},o=[];if(!U.validate(s,vPe,a,o)){var u=new Error("Cannot read SafeBag.");throw u.errors=o,u}var l={type:U.derToOid(a.bagId),attributes:CPe(a.bagAttributes)};n.push(l);var f,h,m=a.bagValue.value[0];switch(l.type){case Vt.oids.pkcs8ShroudedKeyBag:if(m=Vt.decryptPrivateKeyInfo(m,r),m===null)throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case Vt.oids.keyBag:try{l.key=Vt.privateKeyFromAsn1(m)}catch{l.key=null,l.asn1=m}continue;case Vt.oids.certBag:f=xPe,h=function(){if(U.derToOid(a.certId)!==Vt.oids.x509Certificate){var _=new Error("Unsupported certificate type, only X.509 supported.");throw _.oid=U.derToOid(a.certId),_}var C=U.fromDer(a.cert,t);try{l.cert=Vt.certificateFromAsn1(C,!0)}catch{l.cert=null,l.asn1=C}};break;default:var u=new Error("Unsupported PKCS#12 SafeBag type.");throw u.oid=l.type,u}if(f!==void 0&&!U.validate(m,f,a,o)){var u=new Error("Cannot read PKCS#12 "+f.name);throw u.errors=o,u}h()}return n}function CPe(e){var t={};if(e!==void 0)for(var r=0;r<e.length;++r){var n={},i=[];if(!U.validate(e[r],yPe,n,i)){var s=new Error("Cannot read PKCS#12 BagAttribute.");throw s.errors=i,s}var a=U.derToOid(n.oid);if(Vt.oids[a]!==void 0){t[Vt.oids[a]]=[];for(var o=0;o<n.values.length;++o)t[Vt.oids[a]].push(n.values[o].value)}}return t}av.toPkcs12Asn1=function(e,t,r,n){n=n||{},n.saltSize=n.saltSize||8,n.count=n.count||2048,n.algorithm=n.algorithm||n.encAlgorithm||"aes128","useMac"in n||(n.useMac=!0),"localKeyId"in n||(n.localKeyId=null),"generateLocalKeyId"in n||(n.generateLocalKeyId=!0);var i=n.localKeyId,s;if(i!==null)i=Rr.util.hexToBytes(i);else if(n.generateLocalKeyId)if(t){var a=Rr.util.isArray(t)?t[0]:t;typeof a=="string"&&(a=Vt.certificateFromPem(a));var o=Rr.md.sha1.create();o.update(U.toDer(Vt.certificateToAsn1(a)).getBytes()),i=o.digest().getBytes()}else i=Rr.random.getBytes(20);var u=[];i!==null&&u.push(U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,[U.create(U.Class.UNIVERSAL,U.Type.OID,!1,U.oidToDer(Vt.oids.localKeyId).getBytes()),U.create(U.Class.UNIVERSAL,U.Type.SET,!0,[U.create(U.Class.UNIVERSAL,U.Type.OCTETSTRING,!1,i)])])),"friendlyName"in n&&u.push(U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,[U.create(U.Class.UNIVERSAL,U.Type.OID,!1,U.oidToDer(Vt.oids.friendlyName).getBytes()),U.create(U.Class.UNIVERSAL,U.Type.SET,!0,[U.create(U.Class.UNIVERSAL,U.Type.BMPSTRING,!1,n.friendlyName)])])),u.length>0&&(s=U.create(U.Class.UNIVERSAL,U.Type.SET,!0,u));var l=[],f=[];t!==null&&(Rr.util.isArray(t)?f=t:f=[t]);for(var h=[],m=0;m<f.length;++m){t=f[m],typeof t=="string"&&(t=Vt.certificateFromPem(t));var y=m===0?s:void 0,_=Vt.certificateToAsn1(t),C=U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,[U.create(U.Class.UNIVERSAL,U.Type.OID,!1,U.oidToDer(Vt.oids.certBag).getBytes()),U.create(U.Class.CONTEXT_SPECIFIC,0,!0,[U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,[U.create(U.Class.UNIVERSAL,U.Type.OID,!1,U.oidToDer(Vt.oids.x509Certificate).getBytes()),U.create(U.Class.CONTEXT_SPECIFIC,0,!0,[U.create(U.Class.UNIVERSAL,U.Type.OCTETSTRING,!1,U.toDer(_).getBytes())])])]),y]);h.push(C)}if(h.length>0){var b=U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,h),D=U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,[U.create(U.Class.UNIVERSAL,U.Type.OID,!1,U.oidToDer(Vt.oids.data).getBytes()),U.create(U.Class.CONTEXT_SPECIFIC,0,!0,[U.create(U.Class.UNIVERSAL,U.Type.OCTETSTRING,!1,U.toDer(b).getBytes())])]);l.push(D)}var L=null;if(e!==null){var F=Vt.wrapRsaPrivateKey(Vt.privateKeyToAsn1(e));r===null?L=U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,[U.create(U.Class.UNIVERSAL,U.Type.OID,!1,U.oidToDer(Vt.oids.keyBag).getBytes()),U.create(U.Class.CONTEXT_SPECIFIC,0,!0,[F]),s]):L=U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,[U.create(U.Class.UNIVERSAL,U.Type.OID,!1,U.oidToDer(Vt.oids.pkcs8ShroudedKeyBag).getBytes()),U.create(U.Class.CONTEXT_SPECIFIC,0,!0,[Vt.encryptPrivateKeyInfo(F,r,n)]),s]);var q=U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,[L]),M=U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,[U.create(U.Class.UNIVERSAL,U.Type.OID,!1,U.oidToDer(Vt.oids.data).getBytes()),U.create(U.Class.CONTEXT_SPECIFIC,0,!0,[U.create(U.Class.UNIVERSAL,U.Type.OCTETSTRING,!1,U.toDer(q).getBytes())])]);l.push(M)}var k=U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,l),te;if(n.useMac){var o=Rr.md.sha1.create(),ce=new Rr.util.ByteBuffer(Rr.random.getBytes(n.saltSize)),ne=n.count,e=av.generateKey(r,ce,3,ne,20),pe=Rr.hmac.create();pe.start(o,e),pe.update(U.toDer(k).getBytes());var Q=pe.getMac();te=U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,[U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,[U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,[U.create(U.Class.UNIVERSAL,U.Type.OID,!1,U.oidToDer(Vt.oids.sha1).getBytes()),U.create(U.Class.UNIVERSAL,U.Type.NULL,!1,"")]),U.create(U.Class.UNIVERSAL,U.Type.OCTETSTRING,!1,Q.getBytes())]),U.create(U.Class.UNIVERSAL,U.Type.OCTETSTRING,!1,ce.getBytes()),U.create(U.Class.UNIVERSAL,U.Type.INTEGER,!1,U.integerToDer(ne).getBytes())])}return U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,[U.create(U.Class.UNIVERSAL,U.Type.INTEGER,!1,U.integerToDer(3).getBytes()),U.create(U.Class.UNIVERSAL,U.Type.SEQUENCE,!0,[U.create(U.Class.UNIVERSAL,U.Type.OID,!1,U.oidToDer(Vt.oids.data).getBytes()),U.create(U.Class.CONTEXT_SPECIFIC,0,!0,[U.create(U.Class.UNIVERSAL,U.Type.OCTETSTRING,!1,U.toDer(k).getBytes())])]),te])};av.generateKey=Rr.pbe.generatePkcs12Key});var kP=w((kut,XJ)=>{"use strict";d();var dl=Ot();Qa();cl();RP();Wp();wC();LP();BC();iv();nr();kC();var FP=dl.asn1,Uh=XJ.exports=dl.pki=dl.pki||{};Uh.pemToDer=function(e){var t=dl.pem.decode(e)[0];if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return dl.util.createBuffer(t.body)};Uh.privateKeyFromPem=function(e){var t=dl.pem.decode(e)[0];if(t.type!=="PRIVATE KEY"&&t.type!=="RSA PRIVATE KEY"){var r=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var n=FP.fromDer(t.body);return Uh.privateKeyFromAsn1(n)};Uh.privateKeyToPem=function(e,t){var r={type:"RSA PRIVATE KEY",body:FP.toDer(Uh.privateKeyToAsn1(e)).getBytes()};return dl.pem.encode(r,{maxline:t})};Uh.privateKeyInfoToPem=function(e,t){var r={type:"PRIVATE KEY",body:FP.toDer(e).getBytes()};return dl.pem.encode(r,{maxline:t})}});var HP=w((Mut,sZ)=>{"use strict";d();var ge=Ot();Qa();Rh();CC();Wp();kP();ra();Bh();nr();var jC=function(e,t,r,n){var i=ge.util.createBuffer(),s=e.length>>1,a=s+(e.length&1),o=e.substr(0,a),u=e.substr(s,a),l=ge.util.createBuffer(),f=ge.hmac.create();r=t+r;var h=Math.ceil(n/16),m=Math.ceil(n/20);f.start("MD5",o);var y=ge.util.createBuffer();l.putBytes(r);for(var _=0;_<h;++_)f.start(null,null),f.update(l.getBytes()),l.putBuffer(f.digest()),f.start(null,null),f.update(l.bytes()+r),y.putBuffer(f.digest());f.start("SHA1",u);var C=ge.util.createBuffer();l.clear(),l.putBytes(r);for(var _=0;_<m;++_)f.start(null,null),f.update(l.getBytes()),l.putBuffer(f.digest()),f.start(null,null),f.update(l.bytes()+r),C.putBuffer(f.digest());return i.putBytes(ge.util.xorBytes(y.getBytes(),C.getBytes(),n)),i},SPe=function(e,t,r){var n=ge.hmac.create();n.start("SHA1",e);var i=ge.util.createBuffer();return i.putInt32(t[0]),i.putInt32(t[1]),i.putByte(r.type),i.putByte(r.version.major),i.putByte(r.version.minor),i.putInt16(r.length),i.putBytes(r.fragment.bytes()),n.update(i.getBytes()),n.digest().getBytes()},bPe=function(e,t,r){var n=!1;try{var i=e.deflate(t.fragment.getBytes());t.fragment=ge.util.createBuffer(i),t.length=i.length,n=!0}catch{}return n},DPe=function(e,t,r){var n=!1;try{var i=e.inflate(t.fragment.getBytes());t.fragment=ge.util.createBuffer(i),t.length=i.length,n=!0}catch{}return n},As=function(e,t){var r=0;switch(t){case 1:r=e.getByte();break;case 2:r=e.getInt16();break;case 3:r=e.getInt24();break;case 4:r=e.getInt32();break}return ge.util.createBuffer(e.getBytes(r))},aa=function(e,t,r){e.putInt(r.length(),t<<3),e.putBuffer(r)},R={};R.Versions={TLS_1_0:{major:3,minor:1},TLS_1_1:{major:3,minor:2},TLS_1_2:{major:3,minor:3}};R.SupportedVersions=[R.Versions.TLS_1_1,R.Versions.TLS_1_0];R.Version=R.SupportedVersions[0];R.MaxFragment=15360;R.ConnectionEnd={server:0,client:1};R.PRFAlgorithm={tls_prf_sha256:0};R.BulkCipherAlgorithm={none:null,rc4:0,des3:1,aes:2};R.CipherType={stream:0,block:1,aead:2};R.MACAlgorithm={none:null,hmac_md5:0,hmac_sha1:1,hmac_sha256:2,hmac_sha384:3,hmac_sha512:4};R.CompressionMethod={none:0,deflate:1};R.ContentType={change_cipher_spec:20,alert:21,handshake:22,application_data:23,heartbeat:24};R.HandshakeType={hello_request:0,client_hello:1,server_hello:2,certificate:11,server_key_exchange:12,certificate_request:13,server_hello_done:14,certificate_verify:15,client_key_exchange:16,finished:20};R.Alert={};R.Alert.Level={warning:1,fatal:2};R.Alert.Description={close_notify:0,unexpected_message:10,bad_record_mac:20,decryption_failed:21,record_overflow:22,decompression_failure:30,handshake_failure:40,bad_certificate:42,unsupported_certificate:43,certificate_revoked:44,certificate_expired:45,certificate_unknown:46,illegal_parameter:47,unknown_ca:48,access_denied:49,decode_error:50,decrypt_error:51,export_restriction:60,protocol_version:70,insufficient_security:71,internal_error:80,user_canceled:90,no_renegotiation:100};R.HeartbeatMessageType={heartbeat_request:1,heartbeat_response:2};R.CipherSuites={};R.getCipherSuite=function(e){var t=null;for(var r in R.CipherSuites){var n=R.CipherSuites[r];if(n.id[0]===e.charCodeAt(0)&&n.id[1]===e.charCodeAt(1)){t=n;break}}return t};R.handleUnexpected=function(e,t){var r=!e.open&&e.entity===R.ConnectionEnd.client;r||e.error(e,{message:"Unexpected message. Received TLS record out of order.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.unexpected_message}})};R.handleHelloRequest=function(e,t,r){!e.handshaking&&e.handshakes>0&&(R.queue(e,R.createAlert(e,{level:R.Alert.Level.warning,description:R.Alert.Description.no_renegotiation})),R.flush(e)),e.process()};R.parseHelloMessage=function(e,t,r){var n=null,i=e.entity===R.ConnectionEnd.client;if(r<38)e.error(e,{message:i?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.illegal_parameter}});else{var s=t.fragment,a=s.length();if(n={version:{major:s.getByte(),minor:s.getByte()},random:ge.util.createBuffer(s.getBytes(32)),session_id:As(s,1),extensions:[]},i?(n.cipher_suite=s.getBytes(2),n.compression_method=s.getByte()):(n.cipher_suites=As(s,2),n.compression_methods=As(s,1)),a=r-(a-s.length()),a>0){for(var o=As(s,2);o.length()>0;)n.extensions.push({type:[o.getByte(),o.getByte()],data:As(o,2)});if(!i)for(var u=0;u<n.extensions.length;++u){var l=n.extensions[u];if(l.type[0]===0&&l.type[1]===0)for(var f=As(l.data,2);f.length()>0;){var h=f.getByte();if(h!==0)break;e.session.extensions.server_name.serverNameList.push(As(f,2).getBytes())}}}if(e.session.version&&(n.version.major!==e.session.version.major||n.version.minor!==e.session.version.minor))return e.error(e,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.protocol_version}});if(i)e.session.cipherSuite=R.getCipherSuite(n.cipher_suite);else for(var m=ge.util.createBuffer(n.cipher_suites.bytes());m.length()>0&&(e.session.cipherSuite=R.getCipherSuite(m.getBytes(2)),e.session.cipherSuite===null););if(e.session.cipherSuite===null)return e.error(e,{message:"No cipher suites in common.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.handshake_failure},cipherSuite:ge.util.bytesToHex(n.cipher_suite)});i?e.session.compressionMethod=n.compression_method:e.session.compressionMethod=R.CompressionMethod.none}return n};R.createSecurityParameters=function(e,t){var r=e.entity===R.ConnectionEnd.client,n=t.random.bytes(),i=r?e.session.sp.client_random:n,s=r?n:R.createRandom().getBytes();e.session.sp={entity:e.entity,prf_algorithm:R.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:e.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:i,server_random:s}};R.handleServerHello=function(e,t,r){var n=R.parseHelloMessage(e,t,r);if(!e.fail){if(n.version.minor<=e.version.minor)e.version.minor=n.version.minor;else return e.error(e,{message:"Incompatible TLS version.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.protocol_version}});e.session.version=e.version;var i=n.session_id.bytes();i.length>0&&i===e.session.id?(e.expect=eZ,e.session.resuming=!0,e.session.sp.server_random=n.random.bytes()):(e.expect=TPe,e.session.resuming=!1,R.createSecurityParameters(e,n)),e.session.id=i,e.process()}};R.handleClientHello=function(e,t,r){var n=R.parseHelloMessage(e,t,r);if(!e.fail){var i=n.session_id.bytes(),s=null;if(e.sessionCache&&(s=e.sessionCache.getSession(i),s===null?i="":(s.version.major!==n.version.major||s.version.minor>n.version.minor)&&(s=null,i="")),i.length===0&&(i=ge.random.getBytes(32)),e.session.id=i,e.session.clientHelloVersion=n.version,e.session.sp={},s)e.version=e.session.version=s.version,e.session.sp=s.sp;else{for(var a,o=1;o<R.SupportedVersions.length&&(a=R.SupportedVersions[o],!(a.minor<=n.version.minor));++o);e.version={major:a.major,minor:a.minor},e.session.version=e.version}s!==null?(e.expect=jP,e.session.resuming=!0,e.session.sp.client_random=n.random.bytes()):(e.expect=e.verifyClient!==!1?LPe:qP,e.session.resuming=!1,R.createSecurityParameters(e,n)),e.open=!0,R.queue(e,R.createRecord(e,{type:R.ContentType.handshake,data:R.createServerHello(e)})),e.session.resuming?(R.queue(e,R.createRecord(e,{type:R.ContentType.change_cipher_spec,data:R.createChangeCipherSpec()})),e.state.pending=R.createConnectionState(e),e.state.current.write=e.state.pending.write,R.queue(e,R.createRecord(e,{type:R.ContentType.handshake,data:R.createFinished(e)}))):(R.queue(e,R.createRecord(e,{type:R.ContentType.handshake,data:R.createCertificate(e)})),e.fail||(R.queue(e,R.createRecord(e,{type:R.ContentType.handshake,data:R.createServerKeyExchange(e)})),e.verifyClient!==!1&&R.queue(e,R.createRecord(e,{type:R.ContentType.handshake,data:R.createCertificateRequest(e)})),R.queue(e,R.createRecord(e,{type:R.ContentType.handshake,data:R.createServerHelloDone(e)})))),R.flush(e),e.process()}};R.handleCertificate=function(e,t,r){if(r<3)return e.error(e,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.illegal_parameter}});var n=t.fragment,i={certificate_list:As(n,3)},s,a,o=[];try{for(;i.certificate_list.length()>0;)s=As(i.certificate_list,3),a=ge.asn1.fromDer(s),s=ge.pki.certificateFromAsn1(a,!0),o.push(s)}catch(l){return e.error(e,{message:"Could not parse certificate list.",cause:l,send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.bad_certificate}})}var u=e.entity===R.ConnectionEnd.client;(u||e.verifyClient===!0)&&o.length===0?e.error(e,{message:u?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.illegal_parameter}}):o.length===0?e.expect=u?JJ:qP:(u?e.session.serverCertificate=o[0]:e.session.clientCertificate=o[0],R.verifyCertificateChain(e,o)&&(e.expect=u?JJ:qP)),e.process()};R.handleServerKeyExchange=function(e,t,r){if(r>0)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.unsupported_certificate}});e.expect=IPe,e.process()};R.handleClientKeyExchange=function(e,t,r){if(r<48)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.unsupported_certificate}});var n=t.fragment,i={enc_pre_master_secret:As(n,2).getBytes()},s=null;if(e.getPrivateKey)try{s=e.getPrivateKey(e,e.session.serverCertificate),s=ge.pki.privateKeyFromPem(s)}catch(u){e.error(e,{message:"Could not get private key.",cause:u,send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.internal_error}})}if(s===null)return e.error(e,{message:"No private key set.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.internal_error}});try{var a=e.session.sp;a.pre_master_secret=s.decrypt(i.enc_pre_master_secret);var o=e.session.clientHelloVersion;if(o.major!==a.pre_master_secret.charCodeAt(0)||o.minor!==a.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{a.pre_master_secret=ge.random.getBytes(48)}e.expect=jP,e.session.clientCertificate!==null&&(e.expect=FPe),e.process()};R.handleCertificateRequest=function(e,t,r){if(r<3)return e.error(e,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.illegal_parameter}});var n=t.fragment,i={certificate_types:As(n,1),certificate_authorities:As(n,2)};e.session.certificateRequest=i,e.expect=RPe,e.process()};R.handleCertificateVerify=function(e,t,r){if(r<2)return e.error(e,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.illegal_parameter}});var n=t.fragment;n.read-=4;var i=n.bytes();n.read+=4;var s={signature:As(n,2).getBytes()},a=ge.util.createBuffer();a.putBuffer(e.session.md5.digest()),a.putBuffer(e.session.sha1.digest()),a=a.getBytes();try{var o=e.session.clientCertificate;if(!o.publicKey.verify(a,s.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");e.session.md5.update(i),e.session.sha1.update(i)}catch{return e.error(e,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.handshake_failure}})}e.expect=jP,e.process()};R.handleServerHelloDone=function(e,t,r){if(r>0)return e.error(e,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.record_overflow}});if(e.serverCertificate===null){var n={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.insufficient_security}},i=0,s=e.verify(e,n.alert.description,i,[]);if(s!==!0)return(s||s===0)&&(typeof s=="object"&&!ge.util.isArray(s)?(s.message&&(n.message=s.message),s.alert&&(n.alert.description=s.alert)):typeof s=="number"&&(n.alert.description=s)),e.error(e,n)}e.session.certificateRequest!==null&&(t=R.createRecord(e,{type:R.ContentType.handshake,data:R.createCertificate(e)}),R.queue(e,t)),t=R.createRecord(e,{type:R.ContentType.handshake,data:R.createClientKeyExchange(e)}),R.queue(e,t),e.expect=PPe;var a=function(o,u){o.session.certificateRequest!==null&&o.session.clientCertificate!==null&&R.queue(o,R.createRecord(o,{type:R.ContentType.handshake,data:R.createCertificateVerify(o,u)})),R.queue(o,R.createRecord(o,{type:R.ContentType.change_cipher_spec,data:R.createChangeCipherSpec()})),o.state.pending=R.createConnectionState(o),o.state.current.write=o.state.pending.write,R.queue(o,R.createRecord(o,{type:R.ContentType.handshake,data:R.createFinished(o)})),o.expect=eZ,R.flush(o),o.process()};if(e.session.certificateRequest===null||e.session.clientCertificate===null)return a(e,null);R.getClientSignature(e,a)};R.handleChangeCipherSpec=function(e,t){if(t.fragment.getByte()!==1)return e.error(e,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.illegal_parameter}});var r=e.entity===R.ConnectionEnd.client;(e.session.resuming&&r||!e.session.resuming&&!r)&&(e.state.pending=R.createConnectionState(e)),e.state.current.read=e.state.pending.read,(!e.session.resuming&&r||e.session.resuming&&!r)&&(e.state.pending=null),e.expect=r?NPe:kPe,e.process()};R.handleFinished=function(e,t,r){var n=t.fragment;n.read-=4;var i=n.bytes();n.read+=4;var s=t.fragment.getBytes();n=ge.util.createBuffer(),n.putBuffer(e.session.md5.digest()),n.putBuffer(e.session.sha1.digest());var a=e.entity===R.ConnectionEnd.client,o=a?"server finished":"client finished",u=e.session.sp,l=12,f=jC;if(n=f(u.master_secret,o,n.getBytes(),l),n.getBytes()!==s)return e.error(e,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.decrypt_error}});e.session.md5.update(i),e.session.sha1.update(i),(e.session.resuming&&a||!e.session.resuming&&!a)&&(R.queue(e,R.createRecord(e,{type:R.ContentType.change_cipher_spec,data:R.createChangeCipherSpec()})),e.state.current.write=e.state.pending.write,e.state.pending=null,R.queue(e,R.createRecord(e,{type:R.ContentType.handshake,data:R.createFinished(e)}))),e.expect=a?OPe:UPe,e.handshaking=!1,++e.handshakes,e.peerCertificate=a?e.session.serverCertificate:e.session.clientCertificate,R.flush(e),e.isConnected=!0,e.connected(e),e.process()};R.handleAlert=function(e,t){var r=t.fragment,n={level:r.getByte(),description:r.getByte()},i;switch(n.description){case R.Alert.Description.close_notify:i="Connection closed.";break;case R.Alert.Description.unexpected_message:i="Unexpected message.";break;case R.Alert.Description.bad_record_mac:i="Bad record MAC.";break;case R.Alert.Description.decryption_failed:i="Decryption failed.";break;case R.Alert.Description.record_overflow:i="Record overflow.";break;case R.Alert.Description.decompression_failure:i="Decompression failed.";break;case R.Alert.Description.handshake_failure:i="Handshake failure.";break;case R.Alert.Description.bad_certificate:i="Bad certificate.";break;case R.Alert.Description.unsupported_certificate:i="Unsupported certificate.";break;case R.Alert.Description.certificate_revoked:i="Certificate revoked.";break;case R.Alert.Description.certificate_expired:i="Certificate expired.";break;case R.Alert.Description.certificate_unknown:i="Certificate unknown.";break;case R.Alert.Description.illegal_parameter:i="Illegal parameter.";break;case R.Alert.Description.unknown_ca:i="Unknown certificate authority.";break;case R.Alert.Description.access_denied:i="Access denied.";break;case R.Alert.Description.decode_error:i="Decode error.";break;case R.Alert.Description.decrypt_error:i="Decrypt error.";break;case R.Alert.Description.export_restriction:i="Export restriction.";break;case R.Alert.Description.protocol_version:i="Unsupported protocol version.";break;case R.Alert.Description.insufficient_security:i="Insufficient security.";break;case R.Alert.Description.internal_error:i="Internal error.";break;case R.Alert.Description.user_canceled:i="User canceled.";break;case R.Alert.Description.no_renegotiation:i="Renegotiation not supported.";break;default:i="Unknown error.";break}if(n.description===R.Alert.Description.close_notify)return e.close();e.error(e,{message:i,send:!1,origin:e.entity===R.ConnectionEnd.client?"server":"client",alert:n}),e.process()};R.handleHandshake=function(e,t){var r=t.fragment,n=r.getByte(),i=r.getInt24();if(i>r.length())return e.fragmented=t,t.fragment=ge.util.createBuffer(),r.read-=4,e.process();e.fragmented=null,r.read-=4;var s=r.bytes(i+4);r.read+=4,n in qC[e.entity][e.expect]?(e.entity===R.ConnectionEnd.server&&!e.open&&!e.fail&&(e.handshaking=!0,e.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:ge.md.md5.create(),sha1:ge.md.sha1.create()}),n!==R.HandshakeType.hello_request&&n!==R.HandshakeType.certificate_verify&&n!==R.HandshakeType.finished&&(e.session.md5.update(s),e.session.sha1.update(s)),qC[e.entity][e.expect][n](e,t,i)):R.handleUnexpected(e,t)};R.handleApplicationData=function(e,t){e.data.putBuffer(t.fragment),e.dataReady(e),e.process()};R.handleHeartbeat=function(e,t){var r=t.fragment,n=r.getByte(),i=r.getInt16(),s=r.getBytes(i);if(n===R.HeartbeatMessageType.heartbeat_request){if(e.handshaking||i>s.length)return e.process();R.queue(e,R.createRecord(e,{type:R.ContentType.heartbeat,data:R.createHeartbeat(R.HeartbeatMessageType.heartbeat_response,s)})),R.flush(e)}else if(n===R.HeartbeatMessageType.heartbeat_response){if(s!==e.expectedHeartbeatPayload)return e.process();e.heartbeatReceived&&e.heartbeatReceived(e,ge.util.createBuffer(s))}e.process()};var wPe=0,TPe=1,JJ=2,IPe=3,RPe=4,eZ=5,NPe=6,OPe=7,PPe=8,BPe=0,LPe=1,qP=2,FPe=3,jP=4,kPe=5,UPe=6,I=R.handleUnexpected,tZ=R.handleChangeCipherSpec,Zn=R.handleAlert,Pi=R.handleHandshake,rZ=R.handleApplicationData,ei=R.handleHeartbeat,VP=[];VP[R.ConnectionEnd.client]=[[I,Zn,Pi,I,ei],[I,Zn,Pi,I,ei],[I,Zn,Pi,I,ei],[I,Zn,Pi,I,ei],[I,Zn,Pi,I,ei],[tZ,Zn,I,I,ei],[I,Zn,Pi,I,ei],[I,Zn,Pi,rZ,ei],[I,Zn,Pi,I,ei]];VP[R.ConnectionEnd.server]=[[I,Zn,Pi,I,ei],[I,Zn,Pi,I,ei],[I,Zn,Pi,I,ei],[I,Zn,Pi,I,ei],[tZ,Zn,I,I,ei],[I,Zn,Pi,I,ei],[I,Zn,Pi,rZ,ei],[I,Zn,Pi,I,ei]];var hl=R.handleHelloRequest,MPe=R.handleServerHello,nZ=R.handleCertificate,ZJ=R.handleServerKeyExchange,UP=R.handleCertificateRequest,UC=R.handleServerHelloDone,iZ=R.handleFinished,qC=[];qC[R.ConnectionEnd.client]=[[I,I,MPe,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I],[hl,I,I,I,I,I,I,I,I,I,I,nZ,ZJ,UP,UC,I,I,I,I,I,I],[hl,I,I,I,I,I,I,I,I,I,I,I,ZJ,UP,UC,I,I,I,I,I,I],[hl,I,I,I,I,I,I,I,I,I,I,I,I,UP,UC,I,I,I,I,I,I],[hl,I,I,I,I,I,I,I,I,I,I,I,I,I,UC,I,I,I,I,I,I],[hl,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I],[hl,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,iZ],[hl,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I],[hl,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I]];var qPe=R.handleClientHello,jPe=R.handleClientKeyExchange,VPe=R.handleCertificateVerify;qC[R.ConnectionEnd.server]=[[I,qPe,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I],[I,I,I,I,I,I,I,I,I,I,I,nZ,I,I,I,I,I,I,I,I,I],[I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,jPe,I,I,I,I],[I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,VPe,I,I,I,I,I],[I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I],[I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,iZ],[I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I],[I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I]];R.generateKeys=function(e,t){var r=jC,n=t.client_random+t.server_random;e.session.resuming||(t.master_secret=r(t.pre_master_secret,"master secret",n,48).bytes(),t.pre_master_secret=null),n=t.server_random+t.client_random;var i=2*t.mac_key_length+2*t.enc_key_length,s=e.version.major===R.Versions.TLS_1_0.major&&e.version.minor===R.Versions.TLS_1_0.minor;s&&(i+=2*t.fixed_iv_length);var a=r(t.master_secret,"key expansion",n,i),o={client_write_MAC_key:a.getBytes(t.mac_key_length),server_write_MAC_key:a.getBytes(t.mac_key_length),client_write_key:a.getBytes(t.enc_key_length),server_write_key:a.getBytes(t.enc_key_length)};return s&&(o.client_write_IV=a.getBytes(t.fixed_iv_length),o.server_write_IV=a.getBytes(t.fixed_iv_length)),o};R.createConnectionState=function(e){var t=e.entity===R.ConnectionEnd.client,r=function(){var s={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(a){return!0},compressionState:null,compressFunction:function(a){return!0},updateSequenceNumber:function(){s.sequenceNumber[1]===4294967295?(s.sequenceNumber[1]=0,++s.sequenceNumber[0]):++s.sequenceNumber[1]}};return s},n={read:r(),write:r()};if(n.read.update=function(s,a){return n.read.cipherFunction(a,n.read)?n.read.compressFunction(s,a,n.read)||s.error(s,{message:"Could not decompress record.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.decompression_failure}}):s.error(s,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.bad_record_mac}}),!s.fail},n.write.update=function(s,a){return n.write.compressFunction(s,a,n.write)?n.write.cipherFunction(a,n.write)||s.error(s,{message:"Could not encrypt record.",send:!1,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.internal_error}}):s.error(s,{message:"Could not compress record.",send:!1,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.internal_error}}),!s.fail},e.session){var i=e.session.sp;switch(e.session.cipherSuite.initSecurityParameters(i),i.keys=R.generateKeys(e,i),n.read.macKey=t?i.keys.server_write_MAC_key:i.keys.client_write_MAC_key,n.write.macKey=t?i.keys.client_write_MAC_key:i.keys.server_write_MAC_key,e.session.cipherSuite.initConnectionState(n,e,i),i.compression_algorithm){case R.CompressionMethod.none:break;case R.CompressionMethod.deflate:n.read.compressFunction=DPe,n.write.compressFunction=bPe;break;default:throw new Error("Unsupported compression algorithm.")}}return n};R.createRandom=function(){var e=new Date,t=+e+e.getTimezoneOffset()*6e4,r=ge.util.createBuffer();return r.putInt32(t),r.putBytes(ge.random.getBytes(28)),r};R.createRecord=function(e,t){if(!t.data)return null;var r={type:t.type,version:{major:e.version.major,minor:e.version.minor},length:t.data.length(),fragment:t.data};return r};R.createAlert=function(e,t){var r=ge.util.createBuffer();return r.putByte(t.level),r.putByte(t.description),R.createRecord(e,{type:R.ContentType.alert,data:r})};R.createClientHello=function(e){e.session.clientHelloVersion={major:e.version.major,minor:e.version.minor};for(var t=ge.util.createBuffer(),r=0;r<e.cipherSuites.length;++r){var n=e.cipherSuites[r];t.putByte(n.id[0]),t.putByte(n.id[1])}var i=t.length(),s=ge.util.createBuffer();s.putByte(R.CompressionMethod.none);var a=s.length(),o=ge.util.createBuffer();if(e.virtualHost){var u=ge.util.createBuffer();u.putByte(0),u.putByte(0);var l=ge.util.createBuffer();l.putByte(0),aa(l,2,ge.util.createBuffer(e.virtualHost));var f=ge.util.createBuffer();aa(f,2,l),aa(u,2,f),o.putBuffer(u)}var h=o.length();h>0&&(h+=2);var m=e.session.id,y=m.length+1+2+4+28+2+i+1+a+h,_=ge.util.createBuffer();return _.putByte(R.HandshakeType.client_hello),_.putInt24(y),_.putByte(e.version.major),_.putByte(e.version.minor),_.putBytes(e.session.sp.client_random),aa(_,1,ge.util.createBuffer(m)),aa(_,2,t),aa(_,1,s),h>0&&aa(_,2,o),_};R.createServerHello=function(e){var t=e.session.id,r=t.length+1+2+4+28+2+1,n=ge.util.createBuffer();return n.putByte(R.HandshakeType.server_hello),n.putInt24(r),n.putByte(e.version.major),n.putByte(e.version.minor),n.putBytes(e.session.sp.server_random),aa(n,1,ge.util.createBuffer(t)),n.putByte(e.session.cipherSuite.id[0]),n.putByte(e.session.cipherSuite.id[1]),n.putByte(e.session.compressionMethod),n};R.createCertificate=function(e){var t=e.entity===R.ConnectionEnd.client,r=null;if(e.getCertificate){var n;t?n=e.session.certificateRequest:n=e.session.extensions.server_name.serverNameList,r=e.getCertificate(e,n)}var i=ge.util.createBuffer();if(r!==null)try{ge.util.isArray(r)||(r=[r]);for(var s=null,a=0;a<r.length;++a){var o=ge.pem.decode(r[a])[0];if(o.type!=="CERTIFICATE"&&o.type!=="X509 CERTIFICATE"&&o.type!=="TRUSTED CERTIFICATE"){var u=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw u.headerType=o.type,u}if(o.procType&&o.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var l=ge.util.createBuffer(o.body);s===null&&(s=ge.asn1.fromDer(l.bytes(),!1));var f=ge.util.createBuffer();aa(f,3,l),i.putBuffer(f)}r=ge.pki.certificateFromAsn1(s),t?e.session.clientCertificate=r:e.session.serverCertificate=r}catch(y){return e.error(e,{message:"Could not send certificate list.",cause:y,send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.bad_certificate}})}var h=3+i.length(),m=ge.util.createBuffer();return m.putByte(R.HandshakeType.certificate),m.putInt24(h),aa(m,3,i),m};R.createClientKeyExchange=function(e){var t=ge.util.createBuffer();t.putByte(e.session.clientHelloVersion.major),t.putByte(e.session.clientHelloVersion.minor),t.putBytes(ge.random.getBytes(46));var r=e.session.sp;r.pre_master_secret=t.getBytes();var n=e.session.serverCertificate.publicKey;t=n.encrypt(r.pre_master_secret);var i=t.length+2,s=ge.util.createBuffer();return s.putByte(R.HandshakeType.client_key_exchange),s.putInt24(i),s.putInt16(t.length),s.putBytes(t),s};R.createServerKeyExchange=function(e){var t=0,r=ge.util.createBuffer();return t>0&&(r.putByte(R.HandshakeType.server_key_exchange),r.putInt24(t)),r};R.getClientSignature=function(e,t){var r=ge.util.createBuffer();r.putBuffer(e.session.md5.digest()),r.putBuffer(e.session.sha1.digest()),r=r.getBytes(),e.getSignature=e.getSignature||function(n,i,s){var a=null;if(n.getPrivateKey)try{a=n.getPrivateKey(n,n.session.clientCertificate),a=ge.pki.privateKeyFromPem(a)}catch(o){n.error(n,{message:"Could not get private key.",cause:o,send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.internal_error}})}a===null?n.error(n,{message:"No private key set.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.internal_error}}):i=a.sign(i,null),s(n,i)},e.getSignature(e,r,t)};R.createCertificateVerify=function(e,t){var r=t.length+2,n=ge.util.createBuffer();return n.putByte(R.HandshakeType.certificate_verify),n.putInt24(r),n.putInt16(t.length),n.putBytes(t),n};R.createCertificateRequest=function(e){var t=ge.util.createBuffer();t.putByte(1);var r=ge.util.createBuffer();for(var n in e.caStore.certs){var i=e.caStore.certs[n],s=ge.pki.distinguishedNameToAsn1(i.subject),a=ge.asn1.toDer(s);r.putInt16(a.length()),r.putBuffer(a)}var o=1+t.length()+2+r.length(),u=ge.util.createBuffer();return u.putByte(R.HandshakeType.certificate_request),u.putInt24(o),aa(u,1,t),aa(u,2,r),u};R.createServerHelloDone=function(e){var t=ge.util.createBuffer();return t.putByte(R.HandshakeType.server_hello_done),t.putInt24(0),t};R.createChangeCipherSpec=function(){var e=ge.util.createBuffer();return e.putByte(1),e};R.createFinished=function(e){var t=ge.util.createBuffer();t.putBuffer(e.session.md5.digest()),t.putBuffer(e.session.sha1.digest());var r=e.entity===R.ConnectionEnd.client,n=e.session.sp,i=12,s=jC,a=r?"client finished":"server finished";t=s(n.master_secret,a,t.getBytes(),i);var o=ge.util.createBuffer();return o.putByte(R.HandshakeType.finished),o.putInt24(t.length()),o.putBuffer(t),o};R.createHeartbeat=function(e,t,r){typeof r>"u"&&(r=t.length);var n=ge.util.createBuffer();n.putByte(e),n.putInt16(r),n.putBytes(t);var i=n.length(),s=Math.max(16,i-r-3);return n.putBytes(ge.random.getBytes(s)),n};R.queue=function(e,t){if(t&&!(t.fragment.length()===0&&(t.type===R.ContentType.handshake||t.type===R.ContentType.alert||t.type===R.ContentType.change_cipher_spec))){if(t.type===R.ContentType.handshake){var r=t.fragment.bytes();e.session.md5.update(r),e.session.sha1.update(r),r=null}var n;if(t.fragment.length()<=R.MaxFragment)n=[t];else{n=[];for(var i=t.fragment.bytes();i.length>R.MaxFragment;)n.push(R.createRecord(e,{type:t.type,data:ge.util.createBuffer(i.slice(0,R.MaxFragment))})),i=i.slice(R.MaxFragment);i.length>0&&n.push(R.createRecord(e,{type:t.type,data:ge.util.createBuffer(i)}))}for(var s=0;s<n.length&&!e.fail;++s){var a=n[s],o=e.state.current.write;o.update(e,a)&&e.records.push(a)}}};R.flush=function(e){for(var t=0;t<e.records.length;++t){var r=e.records[t];e.tlsData.putByte(r.type),e.tlsData.putByte(r.version.major),e.tlsData.putByte(r.version.minor),e.tlsData.putInt16(r.fragment.length()),e.tlsData.putBuffer(e.records[t].fragment)}return e.records=[],e.tlsDataReady(e)};var MP=function(e){switch(e){case!0:return!0;case ge.pki.certificateError.bad_certificate:return R.Alert.Description.bad_certificate;case ge.pki.certificateError.unsupported_certificate:return R.Alert.Description.unsupported_certificate;case ge.pki.certificateError.certificate_revoked:return R.Alert.Description.certificate_revoked;case ge.pki.certificateError.certificate_expired:return R.Alert.Description.certificate_expired;case ge.pki.certificateError.certificate_unknown:return R.Alert.Description.certificate_unknown;case ge.pki.certificateError.unknown_ca:return R.Alert.Description.unknown_ca;default:return R.Alert.Description.bad_certificate}},HPe=function(e){switch(e){case!0:return!0;case R.Alert.Description.bad_certificate:return ge.pki.certificateError.bad_certificate;case R.Alert.Description.unsupported_certificate:return ge.pki.certificateError.unsupported_certificate;case R.Alert.Description.certificate_revoked:return ge.pki.certificateError.certificate_revoked;case R.Alert.Description.certificate_expired:return ge.pki.certificateError.certificate_expired;case R.Alert.Description.certificate_unknown:return ge.pki.certificateError.certificate_unknown;case R.Alert.Description.unknown_ca:return ge.pki.certificateError.unknown_ca;default:return ge.pki.certificateError.bad_certificate}};R.verifyCertificateChain=function(e,t){try{var r={};for(var n in e.verifyOptions)r[n]=e.verifyOptions[n];r.verify=function(s,a,o){var u=MP(s),l=e.verify(e,s,a,o);if(l!==!0){if(typeof l=="object"&&!ge.util.isArray(l)){var f=new Error("The application rejected the certificate.");throw f.send=!0,f.alert={level:R.Alert.Level.fatal,description:R.Alert.Description.bad_certificate},l.message&&(f.message=l.message),l.alert&&(f.alert.description=l.alert),f}l!==s&&(l=HPe(l))}return l},ge.pki.verifyCertificateChain(e.caStore,t,r)}catch(s){var i=s;(typeof i!="object"||ge.util.isArray(i))&&(i={send:!0,alert:{level:R.Alert.Level.fatal,description:MP(s)}}),"send"in i||(i.send=!0),"alert"in i||(i.alert={level:R.Alert.Level.fatal,description:MP(i.error)}),e.error(e,i)}return!e.fail};R.createSessionCache=function(e,t){var r=null;if(e&&e.getSession&&e.setSession&&e.order)r=e;else{r={},r.cache=e||{},r.capacity=Math.max(t||100,1),r.order=[];for(var n in e)r.order.length<=t?r.order.push(n):delete e[n];r.getSession=function(i){var s=null,a=null;if(i?a=ge.util.bytesToHex(i):r.order.length>0&&(a=r.order[0]),a!==null&&a in r.cache){s=r.cache[a],delete r.cache[a];for(var o in r.order)if(r.order[o]===a){r.order.splice(o,1);break}}return s},r.setSession=function(i,s){if(r.order.length===r.capacity){var a=r.order.shift();delete r.cache[a]}var a=ge.util.bytesToHex(i);r.order.push(a),r.cache[a]=s}}return r};R.createConnection=function(e){var t=null;e.caStore?ge.util.isArray(e.caStore)?t=ge.pki.createCaStore(e.caStore):t=e.caStore:t=ge.pki.createCaStore();var r=e.cipherSuites||null;if(r===null){r=[];for(var n in R.CipherSuites)r.push(R.CipherSuites[n])}var i=e.server?R.ConnectionEnd.server:R.ConnectionEnd.client,s=e.sessionCache?R.createSessionCache(e.sessionCache):null,a={version:{major:R.Version.major,minor:R.Version.minor},entity:i,sessionId:e.sessionId,caStore:t,sessionCache:s,cipherSuites:r,connected:e.connected,virtualHost:e.virtualHost||null,verifyClient:e.verifyClient||!1,verify:e.verify||function(f,h,m,y){return h},verifyOptions:e.verifyOptions||{},getCertificate:e.getCertificate||null,getPrivateKey:e.getPrivateKey||null,getSignature:e.getSignature||null,input:ge.util.createBuffer(),tlsData:ge.util.createBuffer(),data:ge.util.createBuffer(),tlsDataReady:e.tlsDataReady,dataReady:e.dataReady,heartbeatReceived:e.heartbeatReceived,closed:e.closed,error:function(f,h){h.origin=h.origin||(f.entity===R.ConnectionEnd.client?"client":"server"),h.send&&(R.queue(f,R.createAlert(f,h.alert)),R.flush(f));var m=h.fatal!==!1;m&&(f.fail=!0),e.error(f,h),m&&f.close(!1)},deflate:e.deflate||null,inflate:e.inflate||null};a.reset=function(f){a.version={major:R.Version.major,minor:R.Version.minor},a.record=null,a.session=null,a.peerCertificate=null,a.state={pending:null,current:null},a.expect=a.entity===R.ConnectionEnd.client?wPe:BPe,a.fragmented=null,a.records=[],a.open=!1,a.handshakes=0,a.handshaking=!1,a.isConnected=!1,a.fail=!(f||typeof f>"u"),a.input.clear(),a.tlsData.clear(),a.data.clear(),a.state.current=R.createConnectionState(a)},a.reset();var o=function(f,h){var m=h.type-R.ContentType.change_cipher_spec,y=VP[f.entity][f.expect];m in y?y[m](f,h):R.handleUnexpected(f,h)},u=function(f){var h=0,m=f.input,y=m.length();if(y<5)h=5-y;else{f.record={type:m.getByte(),version:{major:m.getByte(),minor:m.getByte()},length:m.getInt16(),fragment:ge.util.createBuffer(),ready:!1};var _=f.record.version.major===f.version.major;_&&f.session&&f.session.version&&(_=f.record.version.minor===f.version.minor),_||f.error(f,{message:"Incompatible TLS version.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.protocol_version}})}return h},l=function(f){var h=0,m=f.input,y=m.length();if(y<f.record.length)h=f.record.length-y;else{f.record.fragment.putBytes(m.getBytes(f.record.length)),m.compact();var _=f.state.current.read;_.update(f,f.record)&&(f.fragmented!==null&&(f.fragmented.type===f.record.type?(f.fragmented.fragment.putBuffer(f.record.fragment),f.record=f.fragmented):f.error(f,{message:"Invalid fragmented record.",send:!0,alert:{level:R.Alert.Level.fatal,description:R.Alert.Description.unexpected_message}})),f.record.ready=!0)}return h};return a.handshake=function(f){if(a.entity!==R.ConnectionEnd.client)a.error(a,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(a.handshaking)a.error(a,{message:"Handshake already in progress.",fatal:!1});else{a.fail&&!a.open&&a.handshakes===0&&(a.fail=!1),a.handshaking=!0,f=f||"";var h=null;f.length>0&&(a.sessionCache&&(h=a.sessionCache.getSession(f)),h===null&&(f="")),f.length===0&&a.sessionCache&&(h=a.sessionCache.getSession(),h!==null&&(f=h.id)),a.session={id:f,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:ge.md.md5.create(),sha1:ge.md.sha1.create()},h&&(a.version=h.version,a.session.sp=h.sp),a.session.sp.client_random=R.createRandom().getBytes(),a.open=!0,R.queue(a,R.createRecord(a,{type:R.ContentType.handshake,data:R.createClientHello(a)})),R.flush(a)}},a.process=function(f){var h=0;return f&&a.input.putBytes(f),a.fail||(a.record!==null&&a.record.ready&&a.record.fragment.isEmpty()&&(a.record=null),a.record===null&&(h=u(a)),!a.fail&&a.record!==null&&!a.record.ready&&(h=l(a)),!a.fail&&a.record!==null&&a.record.ready&&o(a,a.record)),h},a.prepare=function(f){return R.queue(a,R.createRecord(a,{type:R.ContentType.application_data,data:ge.util.createBuffer(f)})),R.flush(a)},a.prepareHeartbeatRequest=function(f,h){return f instanceof ge.util.ByteBuffer&&(f=f.bytes()),typeof h>"u"&&(h=f.length),a.expectedHeartbeatPayload=f,R.queue(a,R.createRecord(a,{type:R.ContentType.heartbeat,data:R.createHeartbeat(R.HeartbeatMessageType.heartbeat_request,f,h)})),R.flush(a)},a.close=function(f){if(!a.fail&&a.sessionCache&&a.session){var h={id:a.session.id,version:a.session.version,sp:a.session.sp};h.sp.keys=null,a.sessionCache.setSession(h.id,h)}a.open&&(a.open=!1,a.input.clear(),(a.isConnected||a.handshaking)&&(a.isConnected=a.handshaking=!1,R.queue(a,R.createAlert(a,{level:R.Alert.Level.warning,description:R.Alert.Description.close_notify})),R.flush(a)),a.closed(a)),a.reset(f)},a};sZ.exports=ge.tls=ge.tls||{};for(MC in R)typeof R[MC]!="function"&&(ge.tls[MC]=R[MC]);var MC;ge.tls.prf_tls1=jC;ge.tls.hmac_sha1=SPe;ge.tls.createSessionCache=R.createSessionCache;ge.tls.createConnection=R.createConnection});var uZ=w((jut,oZ)=>{"use strict";d();var ml=Ot();ul();HP();var oa=oZ.exports=ml.tls;oa.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=oa.BulkCipherAlgorithm.aes,e.cipher_type=oa.CipherType.block,e.enc_key_length=16,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=oa.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:aZ};oa.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=oa.BulkCipherAlgorithm.aes,e.cipher_type=oa.CipherType.block,e.enc_key_length=32,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=oa.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:aZ};function aZ(e,t,r){var n=t.entity===ml.tls.ConnectionEnd.client;e.read.cipherState={init:!1,cipher:ml.cipher.createDecipher("AES-CBC",n?r.keys.server_write_key:r.keys.client_write_key),iv:n?r.keys.server_write_IV:r.keys.client_write_IV},e.write.cipherState={init:!1,cipher:ml.cipher.createCipher("AES-CBC",n?r.keys.client_write_key:r.keys.server_write_key),iv:n?r.keys.client_write_IV:r.keys.server_write_IV},e.read.cipherFunction=zPe,e.write.cipherFunction=GPe,e.read.macLength=e.write.macLength=r.mac_length,e.read.macFunction=e.write.macFunction=oa.hmac_sha1}function GPe(e,t){var r=!1,n=t.macFunction(t.macKey,t.sequenceNumber,e);e.fragment.putBytes(n),t.updateSequenceNumber();var i;e.version.minor===oa.Versions.TLS_1_0.minor?i=t.cipherState.init?null:t.cipherState.iv:i=ml.random.getBytesSync(16),t.cipherState.init=!0;var s=t.cipherState.cipher;return s.start({iv:i}),e.version.minor>=oa.Versions.TLS_1_1.minor&&s.output.putBytes(i),s.update(e.fragment),s.finish(WPe)&&(e.fragment=s.output,e.length=e.fragment.length(),r=!0),r}function WPe(e,t,r){if(!r){var n=e-t.length()%e;t.fillWithByte(n-1,n)}return!0}function QPe(e,t,r){var n=!0;if(r){for(var i=t.length(),s=t.last(),a=i-1-s;a<i-1;++a)n=n&&t.at(a)==s;n&&t.truncate(s+1)}return n}function zPe(e,t){var r=!1,n;e.version.minor===oa.Versions.TLS_1_0.minor?n=t.cipherState.init?null:t.cipherState.iv:n=e.fragment.getBytes(16),t.cipherState.init=!0;var i=t.cipherState.cipher;i.start({iv:n}),i.update(e.fragment),r=i.finish(QPe);var s=t.macLength,a=ml.random.getBytesSync(s),o=i.output.length();o>=s?(e.fragment=i.output.getBytes(o-s),a=i.output.getBytes(s)):e.fragment=i.output.getBytes(),e.fragment=ml.util.createBuffer(e.fragment),e.length=e.fragment.length();var u=t.macFunction(t.macKey,t.sequenceNumber,e);return t.updateSequenceNumber(),r=KPe(t.macKey,a,u)&&r,r}function KPe(e,t,r){var n=ml.hmac.create();return n.start("SHA1",e),n.update(t),t=n.digest().getBytes(),n.start(null,null),n.update(r),r=n.digest().getBytes(),t===r}});var QP=w((Hut,fZ)=>{"use strict";d();var Lr=Ot();Lo();nr();var ov=fZ.exports=Lr.sha512=Lr.sha512||{};Lr.md.sha512=Lr.md.algorithms.sha512=ov;var lZ=Lr.sha384=Lr.sha512.sha384=Lr.sha512.sha384||{};lZ.create=function(){return ov.create("SHA-384")};Lr.md.sha384=Lr.md.algorithms.sha384=lZ;Lr.sha512.sha256=Lr.sha512.sha256||{create:function(){return ov.create("SHA-512/256")}};Lr.md["sha512/256"]=Lr.md.algorithms["sha512/256"]=Lr.sha512.sha256;Lr.sha512.sha224=Lr.sha512.sha224||{create:function(){return ov.create("SHA-512/224")}};Lr.md["sha512/224"]=Lr.md.algorithms["sha512/224"]=Lr.sha512.sha224;ov.create=function(e){if(pZ||$Pe(),typeof e>"u"&&(e="SHA-512"),!(e in Xp))throw new Error("Invalid SHA-512 algorithm: "+e);for(var t=Xp[e],r=null,n=Lr.util.createBuffer(),i=new Array(80),s=0;s<80;++s)i[s]=new Array(2);var a=64;switch(e){case"SHA-384":a=48;break;case"SHA-512/256":a=32;break;case"SHA-512/224":a=28;break}var o={algorithm:e.replace("-","").toLowerCase(),blockLength:128,digestLength:a,messageLength:0,fullMessageLength:null,messageLengthSize:16};return o.start=function(){o.messageLength=0,o.fullMessageLength=o.messageLength128=[];for(var u=o.messageLengthSize/4,l=0;l<u;++l)o.fullMessageLength.push(0);n=Lr.util.createBuffer(),r=new Array(t.length);for(var l=0;l<t.length;++l)r[l]=t[l].slice(0);return o},o.start(),o.update=function(u,l){l==="utf8"&&(u=Lr.util.encodeUtf8(u));var f=u.length;o.messageLength+=f,f=[f/4294967296>>>0,f>>>0];for(var h=o.fullMessageLength.length-1;h>=0;--h)o.fullMessageLength[h]+=f[1],f[1]=f[0]+(o.fullMessageLength[h]/4294967296>>>0),o.fullMessageLength[h]=o.fullMessageLength[h]>>>0,f[0]=f[1]/4294967296>>>0;return n.putBytes(u),cZ(r,i,n),(n.read>2048||n.length()===0)&&n.compact(),o},o.digest=function(){var u=Lr.util.createBuffer();u.putBytes(n.bytes());var l=o.fullMessageLength[o.fullMessageLength.length-1]+o.messageLengthSize,f=l&o.blockLength-1;u.putBytes(GP.substr(0,o.blockLength-f));for(var h,m,y=o.fullMessageLength[0]*8,_=0;_<o.fullMessageLength.length-1;++_)h=o.fullMessageLength[_+1]*8,m=h/4294967296>>>0,y+=m,u.putInt32(y>>>0),y=h>>>0;u.putInt32(y);for(var C=new Array(r.length),_=0;_<r.length;++_)C[_]=r[_].slice(0);cZ(C,i,u);var b=Lr.util.createBuffer(),D;e==="SHA-512"?D=C.length:e==="SHA-384"?D=C.length-2:D=C.length-4;for(var _=0;_<D;++_)b.putInt32(C[_][0]),(_!==D-1||e!=="SHA-512/224")&&b.putInt32(C[_][1]);return b},o};var GP=null,pZ=!1,WP=null,Xp=null;function $Pe(){GP="\x80",GP+=Lr.util.fillString("\0",128),WP=[[1116352408,3609767458],[1899447441,602891725],[3049323471,3964484399],[3921009573,2173295548],[961987163,4081628472],[1508970993,3053834265],[2453635748,2937671579],[2870763221,3664609560],[3624381080,2734883394],[310598401,1164996542],[607225278,1323610764],[1426881987,3590304994],[1925078388,4068182383],[2162078206,991336113],[2614888103,633803317],[3248222580,3479774868],[3835390401,2666613458],[4022224774,944711139],[264347078,2341262773],[604807628,2007800933],[770255983,1495990901],[1249150122,1856431235],[1555081692,3175218132],[1996064986,2198950837],[2554220882,3999719339],[2821834349,766784016],[2952996808,2566594879],[3210313671,3203337956],[3336571891,1034457026],[3584528711,2466948901],[113926993,3758326383],[338241895,168717936],[666307205,1188179964],[773529912,1546045734],[1294757372,1522805485],[1396182291,2643833823],[1695183700,2343527390],[1986661051,1014477480],[2177026350,1206759142],[2456956037,344077627],[2730485921,1290863460],[2820302411,3158454273],[3259730800,3505952657],[3345764771,106217008],[3516065817,3606008344],[3600352804,1432725776],[4094571909,1467031594],[275423344,851169720],[430227734,3100823752],[506948616,1363258195],[659060556,3750685593],[883997877,3785050280],[958139571,3318307427],[1322822218,3812723403],[1537002063,2003034995],[1747873779,3602036899],[1955562222,1575990012],[2024104815,1125592928],[2227730452,2716904306],[2361852424,442776044],[2428436474,593698344],[2756734187,3733110249],[3204031479,2999351573],[3329325298,3815920427],[3391569614,3928383900],[3515267271,566280711],[3940187606,3454069534],[4118630271,4000239992],[116418474,1914138554],[174292421,2731055270],[289380356,3203993006],[460393269,320620315],[685471733,587496836],[852142971,1086792851],[1017036298,365543100],[1126000580,2618297676],[1288033470,3409855158],[1501505948,4234509866],[1607167915,987167468],[1816402316,1246189591]],Xp={},Xp["SHA-512"]=[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],Xp["SHA-384"]=[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],Xp["SHA-512/256"]=[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],Xp["SHA-512/224"]=[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]],pZ=!0}function cZ(e,t,r){for(var n,i,s,a,o,u,l,f,h,m,y,_,C,b,D,L,F,q,M,k,te,ce,ne,pe,Q,be,Ie,et,j,z,oe,ve,Ve,dt,ht,Lt=r.length();Lt>=128;){for(j=0;j<16;++j)t[j][0]=r.getInt32()>>>0,t[j][1]=r.getInt32()>>>0;for(;j<80;++j)ve=t[j-2],z=ve[0],oe=ve[1],n=((z>>>19|oe<<13)^(oe>>>29|z<<3)^z>>>6)>>>0,i=((z<<13|oe>>>19)^(oe<<3|z>>>29)^(z<<26|oe>>>6))>>>0,dt=t[j-15],z=dt[0],oe=dt[1],s=((z>>>1|oe<<31)^(z>>>8|oe<<24)^z>>>7)>>>0,a=((z<<31|oe>>>1)^(z<<24|oe>>>8)^(z<<25|oe>>>7))>>>0,Ve=t[j-7],ht=t[j-16],oe=i+Ve[1]+a+ht[1],t[j][0]=n+Ve[0]+s+ht[0]+(oe/4294967296>>>0)>>>0,t[j][1]=oe>>>0;for(C=e[0][0],b=e[0][1],D=e[1][0],L=e[1][1],F=e[2][0],q=e[2][1],M=e[3][0],k=e[3][1],te=e[4][0],ce=e[4][1],ne=e[5][0],pe=e[5][1],Q=e[6][0],be=e[6][1],Ie=e[7][0],et=e[7][1],j=0;j<80;++j)l=((te>>>14|ce<<18)^(te>>>18|ce<<14)^(ce>>>9|te<<23))>>>0,f=((te<<18|ce>>>14)^(te<<14|ce>>>18)^(ce<<23|te>>>9))>>>0,h=(Q^te&(ne^Q))>>>0,m=(be^ce&(pe^be))>>>0,o=((C>>>28|b<<4)^(b>>>2|C<<30)^(b>>>7|C<<25))>>>0,u=((C<<4|b>>>28)^(b<<30|C>>>2)^(b<<25|C>>>7))>>>0,y=(C&D|F&(C^D))>>>0,_=(b&L|q&(b^L))>>>0,oe=et+f+m+WP[j][1]+t[j][1],n=Ie+l+h+WP[j][0]+t[j][0]+(oe/4294967296>>>0)>>>0,i=oe>>>0,oe=u+_,s=o+y+(oe/4294967296>>>0)>>>0,a=oe>>>0,Ie=Q,et=be,Q=ne,be=pe,ne=te,pe=ce,oe=k+i,te=M+n+(oe/4294967296>>>0)>>>0,ce=oe>>>0,M=F,k=q,F=D,q=L,D=C,L=b,oe=i+a,C=n+s+(oe/4294967296>>>0)>>>0,b=oe>>>0;oe=e[0][1]+b,e[0][0]=e[0][0]+C+(oe/4294967296>>>0)>>>0,e[0][1]=oe>>>0,oe=e[1][1]+L,e[1][0]=e[1][0]+D+(oe/4294967296>>>0)>>>0,e[1][1]=oe>>>0,oe=e[2][1]+q,e[2][0]=e[2][0]+F+(oe/4294967296>>>0)>>>0,e[2][1]=oe>>>0,oe=e[3][1]+k,e[3][0]=e[3][0]+M+(oe/4294967296>>>0)>>>0,e[3][1]=oe>>>0,oe=e[4][1]+ce,e[4][0]=e[4][0]+te+(oe/4294967296>>>0)>>>0,e[4][1]=oe>>>0,oe=e[5][1]+pe,e[5][0]=e[5][0]+ne+(oe/4294967296>>>0)>>>0,e[5][1]=oe>>>0,oe=e[6][1]+be,e[6][0]=e[6][0]+Q+(oe/4294967296>>>0)>>>0,e[6][1]=oe>>>0,oe=e[7][1]+et,e[7][0]=e[7][0]+Ie+(oe/4294967296>>>0)>>>0,e[7][1]=oe>>>0,Lt-=128}}});var dZ=w(zP=>{"use strict";d();var YPe=Ot();Qa();var Hn=YPe.asn1;zP.privateKeyValidator={name:"PrivateKeyInfo",tagClass:Hn.Class.UNIVERSAL,type:Hn.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:Hn.Class.UNIVERSAL,type:Hn.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:Hn.Class.UNIVERSAL,type:Hn.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Hn.Class.UNIVERSAL,type:Hn.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:Hn.Class.UNIVERSAL,type:Hn.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]};zP.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:Hn.Class.UNIVERSAL,type:Hn.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:Hn.Class.UNIVERSAL,type:Hn.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Hn.Class.UNIVERSAL,type:Hn.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:Hn.Class.UNIVERSAL,type:Hn.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]}});var DZ=w((zut,bZ)=>{"use strict";d();var ti=Ot();nv();ra();QP();nr();var xZ=dZ(),XPe=xZ.publicKeyValidator,JPe=xZ.privateKeyValidator;typeof hZ>"u"&&(hZ=ti.jsbn.BigInteger);var hZ,YP=ti.util.ByteBuffer,ns=typeof Buffer>"u"?Uint8Array:Buffer;ti.pki=ti.pki||{};bZ.exports=ti.pki.ed25519=ti.ed25519=ti.ed25519||{};var Ht=ti.ed25519;Ht.constants={};Ht.constants.PUBLIC_KEY_BYTE_LENGTH=32;Ht.constants.PRIVATE_KEY_BYTE_LENGTH=64;Ht.constants.SEED_BYTE_LENGTH=32;Ht.constants.SIGN_BYTE_LENGTH=64;Ht.constants.HASH_BYTE_LENGTH=64;Ht.generateKeyPair=function(e){e=e||{};var t=e.seed;if(t===void 0)t=ti.random.getBytesSync(Ht.constants.SEED_BYTE_LENGTH);else if(typeof t=="string"){if(t.length!==Ht.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+Ht.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(t instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');t=Uu({message:t,encoding:"binary"});for(var r=new ns(Ht.constants.PUBLIC_KEY_BYTE_LENGTH),n=new ns(Ht.constants.PRIVATE_KEY_BYTE_LENGTH),i=0;i<32;++i)n[i]=t[i];return rBe(r,n),{publicKey:r,privateKey:n}};Ht.privateKeyFromAsn1=function(e){var t={},r=[],n=ti.asn1.validate(e,JPe,t,r);if(!n){var i=new Error("Invalid Key.");throw i.errors=r,i}var s=ti.asn1.derToOid(t.privateKeyOid),a=ti.oids.EdDSA25519;if(s!==a)throw new Error('Invalid OID "'+s+'"; OID must be "'+a+'".');var o=t.privateKey,u=Uu({message:ti.asn1.fromDer(o).value,encoding:"binary"});return{privateKeyBytes:u}};Ht.publicKeyFromAsn1=function(e){var t={},r=[],n=ti.asn1.validate(e,XPe,t,r);if(!n){var i=new Error("Invalid Key.");throw i.errors=r,i}var s=ti.asn1.derToOid(t.publicKeyOid),a=ti.oids.EdDSA25519;if(s!==a)throw new Error('Invalid OID "'+s+'"; OID must be "'+a+'".');var o=t.ed25519PublicKey;if(o.length!==Ht.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return Uu({message:o,encoding:"binary"})};Ht.publicKeyFromPrivateKey=function(e){e=e||{};var t=Uu({message:e.privateKey,encoding:"binary"});if(t.length!==Ht.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+Ht.constants.PRIVATE_KEY_BYTE_LENGTH);for(var r=new ns(Ht.constants.PUBLIC_KEY_BYTE_LENGTH),n=0;n<r.length;++n)r[n]=t[32+n];return r};Ht.sign=function(e){e=e||{};var t=Uu(e),r=Uu({message:e.privateKey,encoding:"binary"});if(r.length===Ht.constants.SEED_BYTE_LENGTH){var n=Ht.generateKeyPair({seed:r});r=n.privateKey}else if(r.length!==Ht.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+Ht.constants.SEED_BYTE_LENGTH+" or "+Ht.constants.PRIVATE_KEY_BYTE_LENGTH);var i=new ns(Ht.constants.SIGN_BYTE_LENGTH+t.length);nBe(i,t,t.length,r);for(var s=new ns(Ht.constants.SIGN_BYTE_LENGTH),a=0;a<s.length;++a)s[a]=i[a];return s};Ht.verify=function(e){e=e||{};var t=Uu(e);if(e.signature===void 0)throw new TypeError('"options.signature" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a binary string.');var r=Uu({message:e.signature,encoding:"binary"});if(r.length!==Ht.constants.SIGN_BYTE_LENGTH)throw new TypeError('"options.signature" must have a byte length of '+Ht.constants.SIGN_BYTE_LENGTH);var n=Uu({message:e.publicKey,encoding:"binary"});if(n.length!==Ht.constants.PUBLIC_KEY_BYTE_LENGTH)throw new TypeError('"options.publicKey" must have a byte length of '+Ht.constants.PUBLIC_KEY_BYTE_LENGTH);var i=new ns(Ht.constants.SIGN_BYTE_LENGTH+t.length),s=new ns(Ht.constants.SIGN_BYTE_LENGTH+t.length),a;for(a=0;a<Ht.constants.SIGN_BYTE_LENGTH;++a)i[a]=r[a];for(a=0;a<t.length;++a)i[a+Ht.constants.SIGN_BYTE_LENGTH]=t[a];return iBe(s,i,i.length,n)>=0};function Uu(e){var t=e.message;if(t instanceof Uint8Array||t instanceof ns)return t;var r=e.encoding;if(t===void 0)if(e.md)t=e.md.digest().getBytes(),r="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof t=="string"&&!r)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof t=="string"){if(typeof Buffer<"u")return Buffer.from(t,r);t=new YP(t,r)}else if(!(t instanceof YP))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var n=new ns(t.length()),i=0;i<n.length;++i)n[i]=t.at(i);return n}var XP=ct(),VC=ct([1]),ZPe=ct([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),eBe=ct([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),mZ=ct([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),gZ=ct([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),KP=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),tBe=ct([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function uv(e,t){var r=ti.md.sha512.create(),n=new YP(e);r.update(n.getBytes(t),"binary");var i=r.digest().getBytes();if(typeof Buffer<"u")return Buffer.from(i,"binary");for(var s=new ns(Ht.constants.HASH_BYTE_LENGTH),a=0;a<64;++a)s[a]=i.charCodeAt(a);return s}function rBe(e,t){var r=[ct(),ct(),ct(),ct()],n,i=uv(t,32);for(i[0]&=248,i[31]&=127,i[31]|=64,tB(r,i),eB(e,r),n=0;n<32;++n)t[n+32]=e[n];return 0}function nBe(e,t,r,n){var i,s,a=new Float64Array(64),o=[ct(),ct(),ct(),ct()],u=uv(n,32);u[0]&=248,u[31]&=127,u[31]|=64;var l=r+64;for(i=0;i<r;++i)e[64+i]=t[i];for(i=0;i<32;++i)e[32+i]=u[32+i];var f=uv(e.subarray(32),r+32);for(JP(f),tB(o,f),eB(e,o),i=32;i<64;++i)e[i]=n[i];var h=uv(e,r+64);for(JP(h),i=32;i<64;++i)a[i]=0;for(i=0;i<32;++i)a[i]=f[i];for(i=0;i<32;++i)for(s=0;s<32;s++)a[i+s]+=h[i]*u[s];return EZ(e.subarray(32),a),l}function iBe(e,t,r,n){var i,s,a=new ns(32),o=[ct(),ct(),ct(),ct()],u=[ct(),ct(),ct(),ct()];if(s=-1,r<64||sBe(u,n))return-1;for(i=0;i<r;++i)e[i]=t[i];for(i=0;i<32;++i)e[i+32]=n[i];var l=uv(e,r);if(JP(l),CZ(o,u,l),tB(u,t.subarray(32)),ZP(o,u),eB(a,o),r-=64,_Z(t,0,a,0)){for(i=0;i<r;++i)e[i]=0;return-1}for(i=0;i<r;++i)e[i]=t[i+64];return s=r,s}function EZ(e,t){var r,n,i,s;for(n=63;n>=32;--n){for(r=0,i=n-32,s=n-12;i<s;++i)t[i]+=r-16*t[n]*KP[i-(n-32)],r=t[i]+128>>8,t[i]-=r*256;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;++i)t[i]+=r-(t[31]>>4)*KP[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;++i)t[i]-=r*KP[i];for(n=0;n<32;++n)t[n+1]+=t[n]>>8,e[n]=t[n]&255}function JP(e){for(var t=new Float64Array(64),r=0;r<64;++r)t[r]=e[r],e[r]=0;EZ(e,t)}function ZP(e,t){var r=ct(),n=ct(),i=ct(),s=ct(),a=ct(),o=ct(),u=ct(),l=ct(),f=ct();qh(r,e[1],e[0]),qh(f,t[1],t[0]),Cr(r,r,f),Mh(n,e[0],e[1]),Mh(f,t[0],t[1]),Cr(n,n,f),Cr(i,e[3],t[3]),Cr(i,i,eBe),Cr(s,e[2],t[2]),Mh(s,s,s),qh(a,n,r),qh(o,s,i),Mh(u,s,i),Mh(l,n,r),Cr(e[0],a,o),Cr(e[1],l,u),Cr(e[2],u,o),Cr(e[3],a,l)}function vZ(e,t,r){for(var n=0;n<4;++n)SZ(e[n],t[n],r)}function eB(e,t){var r=ct(),n=ct(),i=ct();cBe(i,t[2]),Cr(r,t[0],i),Cr(n,t[1],i),HC(e,n),e[31]^=AZ(r)<<7}function HC(e,t){var r,n,i,s=ct(),a=ct();for(r=0;r<16;++r)a[r]=t[r];for($P(a),$P(a),$P(a),n=0;n<2;++n){for(s[0]=a[0]-65517,r=1;r<15;++r)s[r]=a[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),i=s[15]>>16&1,s[14]&=65535,SZ(a,s,1-i)}for(r=0;r<16;r++)e[2*r]=a[r]&255,e[2*r+1]=a[r]>>8}function sBe(e,t){var r=ct(),n=ct(),i=ct(),s=ct(),a=ct(),o=ct(),u=ct();return gl(e[2],VC),aBe(e[1],t),Jp(i,e[1]),Cr(s,i,ZPe),qh(i,i,e[2]),Mh(s,e[2],s),Jp(a,s),Jp(o,a),Cr(u,o,a),Cr(r,u,i),Cr(r,r,s),oBe(r,r),Cr(r,r,i),Cr(r,r,s),Cr(r,r,s),Cr(e[0],r,s),Jp(n,e[0]),Cr(n,n,s),yZ(n,i)&&Cr(e[0],e[0],tBe),Jp(n,e[0]),Cr(n,n,s),yZ(n,i)?-1:(AZ(e[0])===t[31]>>7&&qh(e[0],XP,e[0]),Cr(e[3],e[0],e[1]),0)}function aBe(e,t){var r;for(r=0;r<16;++r)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function oBe(e,t){var r=ct(),n;for(n=0;n<16;++n)r[n]=t[n];for(n=250;n>=0;--n)Jp(r,r),n!==1&&Cr(r,r,t);for(n=0;n<16;++n)e[n]=r[n]}function yZ(e,t){var r=new ns(32),n=new ns(32);return HC(r,e),HC(n,t),_Z(r,0,n,0)}function _Z(e,t,r,n){return uBe(e,t,r,n,32)}function uBe(e,t,r,n,i){var s,a=0;for(s=0;s<i;++s)a|=e[t+s]^r[n+s];return(1&a-1>>>8)-1}function AZ(e){var t=new ns(32);return HC(t,e),t[0]&1}function CZ(e,t,r){var n,i;for(gl(e[0],XP),gl(e[1],VC),gl(e[2],VC),gl(e[3],XP),i=255;i>=0;--i)n=r[i/8|0]>>(i&7)&1,vZ(e,t,n),ZP(t,e),ZP(e,e),vZ(e,t,n)}function tB(e,t){var r=[ct(),ct(),ct(),ct()];gl(r[0],mZ),gl(r[1],gZ),gl(r[2],VC),Cr(r[3],mZ,gZ),CZ(e,r,t)}function gl(e,t){var r;for(r=0;r<16;r++)e[r]=t[r]|0}function cBe(e,t){var r=ct(),n;for(n=0;n<16;++n)r[n]=t[n];for(n=253;n>=0;--n)Jp(r,r),n!==2&&n!==4&&Cr(r,r,t);for(n=0;n<16;++n)e[n]=r[n]}function $P(e){var t,r,n=1;for(t=0;t<16;++t)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-n*65536;e[0]+=n-1+37*(n-1)}function SZ(e,t,r){for(var n,i=~(r-1),s=0;s<16;++s)n=i&(e[s]^t[s]),e[s]^=n,t[s]^=n}function ct(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;++t)r[t]=e[t];return r}function Mh(e,t,r){for(var n=0;n<16;++n)e[n]=t[n]+r[n]}function qh(e,t,r){for(var n=0;n<16;++n)e[n]=t[n]-r[n]}function Jp(e,t){Cr(e,t,t)}function Cr(e,t,r){var n,i,s=0,a=0,o=0,u=0,l=0,f=0,h=0,m=0,y=0,_=0,C=0,b=0,D=0,L=0,F=0,q=0,M=0,k=0,te=0,ce=0,ne=0,pe=0,Q=0,be=0,Ie=0,et=0,j=0,z=0,oe=0,ve=0,Ve=0,dt=r[0],ht=r[1],Lt=r[2],Je=r[3],er=r[4],vt=r[5],Ze=r[6],Er=r[7],Ft=r[8],Ee=r[9],ut=r[10],le=r[11],Ue=r[12],tt=r[13],Ct=r[14],wt=r[15];n=t[0],s+=n*dt,a+=n*ht,o+=n*Lt,u+=n*Je,l+=n*er,f+=n*vt,h+=n*Ze,m+=n*Er,y+=n*Ft,_+=n*Ee,C+=n*ut,b+=n*le,D+=n*Ue,L+=n*tt,F+=n*Ct,q+=n*wt,n=t[1],a+=n*dt,o+=n*ht,u+=n*Lt,l+=n*Je,f+=n*er,h+=n*vt,m+=n*Ze,y+=n*Er,_+=n*Ft,C+=n*Ee,b+=n*ut,D+=n*le,L+=n*Ue,F+=n*tt,q+=n*Ct,M+=n*wt,n=t[2],o+=n*dt,u+=n*ht,l+=n*Lt,f+=n*Je,h+=n*er,m+=n*vt,y+=n*Ze,_+=n*Er,C+=n*Ft,b+=n*Ee,D+=n*ut,L+=n*le,F+=n*Ue,q+=n*tt,M+=n*Ct,k+=n*wt,n=t[3],u+=n*dt,l+=n*ht,f+=n*Lt,h+=n*Je,m+=n*er,y+=n*vt,_+=n*Ze,C+=n*Er,b+=n*Ft,D+=n*Ee,L+=n*ut,F+=n*le,q+=n*Ue,M+=n*tt,k+=n*Ct,te+=n*wt,n=t[4],l+=n*dt,f+=n*ht,h+=n*Lt,m+=n*Je,y+=n*er,_+=n*vt,C+=n*Ze,b+=n*Er,D+=n*Ft,L+=n*Ee,F+=n*ut,q+=n*le,M+=n*Ue,k+=n*tt,te+=n*Ct,ce+=n*wt,n=t[5],f+=n*dt,h+=n*ht,m+=n*Lt,y+=n*Je,_+=n*er,C+=n*vt,b+=n*Ze,D+=n*Er,L+=n*Ft,F+=n*Ee,q+=n*ut,M+=n*le,k+=n*Ue,te+=n*tt,ce+=n*Ct,ne+=n*wt,n=t[6],h+=n*dt,m+=n*ht,y+=n*Lt,_+=n*Je,C+=n*er,b+=n*vt,D+=n*Ze,L+=n*Er,F+=n*Ft,q+=n*Ee,M+=n*ut,k+=n*le,te+=n*Ue,ce+=n*tt,ne+=n*Ct,pe+=n*wt,n=t[7],m+=n*dt,y+=n*ht,_+=n*Lt,C+=n*Je,b+=n*er,D+=n*vt,L+=n*Ze,F+=n*Er,q+=n*Ft,M+=n*Ee,k+=n*ut,te+=n*le,ce+=n*Ue,ne+=n*tt,pe+=n*Ct,Q+=n*wt,n=t[8],y+=n*dt,_+=n*ht,C+=n*Lt,b+=n*Je,D+=n*er,L+=n*vt,F+=n*Ze,q+=n*Er,M+=n*Ft,k+=n*Ee,te+=n*ut,ce+=n*le,ne+=n*Ue,pe+=n*tt,Q+=n*Ct,be+=n*wt,n=t[9],_+=n*dt,C+=n*ht,b+=n*Lt,D+=n*Je,L+=n*er,F+=n*vt,q+=n*Ze,M+=n*Er,k+=n*Ft,te+=n*Ee,ce+=n*ut,ne+=n*le,pe+=n*Ue,Q+=n*tt,be+=n*Ct,Ie+=n*wt,n=t[10],C+=n*dt,b+=n*ht,D+=n*Lt,L+=n*Je,F+=n*er,q+=n*vt,M+=n*Ze,k+=n*Er,te+=n*Ft,ce+=n*Ee,ne+=n*ut,pe+=n*le,Q+=n*Ue,be+=n*tt,Ie+=n*Ct,et+=n*wt,n=t[11],b+=n*dt,D+=n*ht,L+=n*Lt,F+=n*Je,q+=n*er,M+=n*vt,k+=n*Ze,te+=n*Er,ce+=n*Ft,ne+=n*Ee,pe+=n*ut,Q+=n*le,be+=n*Ue,Ie+=n*tt,et+=n*Ct,j+=n*wt,n=t[12],D+=n*dt,L+=n*ht,F+=n*Lt,q+=n*Je,M+=n*er,k+=n*vt,te+=n*Ze,ce+=n*Er,ne+=n*Ft,pe+=n*Ee,Q+=n*ut,be+=n*le,Ie+=n*Ue,et+=n*tt,j+=n*Ct,z+=n*wt,n=t[13],L+=n*dt,F+=n*ht,q+=n*Lt,M+=n*Je,k+=n*er,te+=n*vt,ce+=n*Ze,ne+=n*Er,pe+=n*Ft,Q+=n*Ee,be+=n*ut,Ie+=n*le,et+=n*Ue,j+=n*tt,z+=n*Ct,oe+=n*wt,n=t[14],F+=n*dt,q+=n*ht,M+=n*Lt,k+=n*Je,te+=n*er,ce+=n*vt,ne+=n*Ze,pe+=n*Er,Q+=n*Ft,be+=n*Ee,Ie+=n*ut,et+=n*le,j+=n*Ue,z+=n*tt,oe+=n*Ct,ve+=n*wt,n=t[15],q+=n*dt,M+=n*ht,k+=n*Lt,te+=n*Je,ce+=n*er,ne+=n*vt,pe+=n*Ze,Q+=n*Er,be+=n*Ft,Ie+=n*Ee,et+=n*ut,j+=n*le,z+=n*Ue,oe+=n*tt,ve+=n*Ct,Ve+=n*wt,s+=38*M,a+=38*k,o+=38*te,u+=38*ce,l+=38*ne,f+=38*pe,h+=38*Q,m+=38*be,y+=38*Ie,_+=38*et,C+=38*j,b+=38*z,D+=38*oe,L+=38*ve,F+=38*Ve,i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=f+i+65535,i=Math.floor(n/65536),f=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=m+i+65535,i=Math.floor(n/65536),m=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=b+i+65535,i=Math.floor(n/65536),b=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=L+i+65535,i=Math.floor(n/65536),L=n-i*65536,n=F+i+65535,i=Math.floor(n/65536),F=n-i*65536,n=q+i+65535,i=Math.floor(n/65536),q=n-i*65536,s+=i-1+37*(i-1),i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=f+i+65535,i=Math.floor(n/65536),f=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=m+i+65535,i=Math.floor(n/65536),m=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=b+i+65535,i=Math.floor(n/65536),b=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=L+i+65535,i=Math.floor(n/65536),L=n-i*65536,n=F+i+65535,i=Math.floor(n/65536),F=n-i*65536,n=q+i+65535,i=Math.floor(n/65536),q=n-i*65536,s+=i-1+37*(i-1),e[0]=s,e[1]=a,e[2]=o,e[3]=u,e[4]=l,e[5]=f,e[6]=h,e[7]=m,e[8]=y,e[9]=_,e[10]=C,e[11]=b,e[12]=D,e[13]=L,e[14]=F,e[15]=q}});var RZ=w(($ut,IZ)=>{"use strict";d();var Cs=Ot();nr();ra();nv();IZ.exports=Cs.kem=Cs.kem||{};var wZ=Cs.jsbn.BigInteger;Cs.kem.rsa={};Cs.kem.rsa.create=function(e,t){t=t||{};var r=t.prng||Cs.random,n={};return n.encrypt=function(i,s){var a=Math.ceil(i.n.bitLength()/8),o;do o=new wZ(Cs.util.bytesToHex(r.getBytesSync(a)),16).mod(i.n);while(o.compareTo(wZ.ONE)<=0);o=Cs.util.hexToBytes(o.toString(16));var u=a-o.length;u>0&&(o=Cs.util.fillString("\0",u)+o);var l=i.encrypt(o,"NONE"),f=e.generate(o,s);return{encapsulation:l,key:f}},n.decrypt=function(i,s,a){var o=i.decrypt(s,"NONE");return e.generate(o,a)},n};Cs.kem.kdf1=function(e,t){TZ(this,e,0,t||e.digestLength)};Cs.kem.kdf2=function(e,t){TZ(this,e,1,t||e.digestLength)};function TZ(e,t,r,n){e.generate=function(i,s){for(var a=new Cs.util.ByteBuffer,o=Math.ceil(s/n)+r,u=new Cs.util.ByteBuffer,l=r;l<o;++l){u.putInt32(l),t.start(),t.update(i+u.getBytes());var f=t.digest();a.putBytes(f.getBytes(n))}return a.truncate(a.length()-s),a.getBytes()}}});var BZ=w((Xut,PZ)=>{"use strict";d();var Qt=Ot();nr();PZ.exports=Qt.log=Qt.log||{};Qt.log.levels=["none","error","warning","info","debug","verbose","max"];var GC={},iB=[],lv=null;Qt.log.LEVEL_LOCKED=2;Qt.log.NO_LEVEL_CHECK=4;Qt.log.INTERPOLATE=8;for(Ho=0;Ho<Qt.log.levels.length;++Ho)rB=Qt.log.levels[Ho],GC[rB]={index:Ho,name:rB.toUpperCase()};var rB,Ho;Qt.log.logMessage=function(e){for(var t=GC[e.level].index,r=0;r<iB.length;++r){var n=iB[r];if(n.flags&Qt.log.NO_LEVEL_CHECK)n.f(e);else{var i=GC[n.level].index;t<=i&&n.f(n,e)}}};Qt.log.prepareStandard=function(e){"standard"in e||(e.standard=GC[e.level].name+" ["+e.category+"] "+e.message)};Qt.log.prepareFull=function(e){if(!("full"in e)){var t=[e.message];t=t.concat([]),e.full=Qt.util.format.apply(this,t)}};Qt.log.prepareStandardFull=function(e){"standardFull"in e||(Qt.log.prepareStandard(e),e.standardFull=e.standard)};for(nB=["error","warning","info","debug","verbose"],Ho=0;Ho<nB.length;++Ho)(function(t){Qt.log[t]=function(r,n){var i=Array.prototype.slice.call(arguments).slice(2),s={timestamp:new Date,level:t,category:r,message:n,arguments:i};Qt.log.logMessage(s)}})(nB[Ho]);var nB,Ho;Qt.log.makeLogger=function(e){var t={flags:0,f:e};return Qt.log.setLevel(t,"none"),t};Qt.log.setLevel=function(e,t){var r=!1;if(e&&!(e.flags&Qt.log.LEVEL_LOCKED))for(var n=0;n<Qt.log.levels.length;++n){var i=Qt.log.levels[n];if(t==i){e.level=t,r=!0;break}}return r};Qt.log.lock=function(e,t){typeof t>"u"||t?e.flags|=Qt.log.LEVEL_LOCKED:e.flags&=~Qt.log.LEVEL_LOCKED};Qt.log.addLogger=function(e){iB.push(e)};typeof console<"u"&&"log"in console?(console.error&&console.warn&&console.info&&console.debug?(NZ={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},pv=function(e,t){Qt.log.prepareStandard(t);var r=NZ[t.level],n=[t.standard];n=n.concat(t.arguments.slice()),r.apply(console,n)},jh=Qt.log.makeLogger(pv)):(pv=function(t,r){Qt.log.prepareStandardFull(r),console.log(r.standardFull)},jh=Qt.log.makeLogger(pv)),Qt.log.setLevel(jh,"debug"),Qt.log.addLogger(jh),lv=jh):console={log:function(){}};var jh,NZ,pv;lv!==null&&typeof window<"u"&&window.location&&(cv=new URL(window.location.href).searchParams,cv.has("console.level")&&Qt.log.setLevel(lv,cv.get("console.level").slice(-1)[0]),cv.has("console.lock")&&(OZ=cv.get("console.lock").slice(-1)[0],OZ=="true"&&Qt.log.lock(lv)));var cv,OZ;Qt.log.consoleLogger=lv});var FZ=w((Zut,LZ)=>{"use strict";d();LZ.exports=Lo();CC();Bh();vP();QP()});var MZ=w((tct,UZ)=>{"use strict";d();var Ne=Ot();ul();Qa();tv();cl();Wp();NP();ra();nr();kC();var V=Ne.asn1,Bi=UZ.exports=Ne.pkcs7=Ne.pkcs7||{};Bi.messageFromPem=function(e){var t=Ne.pem.decode(e)[0];if(t.type!=="PKCS7"){var r=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var n=V.fromDer(t.body);return Bi.messageFromAsn1(n)};Bi.messageToPem=function(e,t){var r={type:"PKCS7",body:V.toDer(e.toAsn1()).getBytes()};return Ne.pem.encode(r,{maxline:t})};Bi.messageFromAsn1=function(e){var t={},r=[];if(!V.validate(e,Bi.asn1.contentInfoValidator,t,r)){var n=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw n.errors=r,n}var i=V.derToOid(t.contentType),s;switch(i){case Ne.pki.oids.envelopedData:s=Bi.createEnvelopedData();break;case Ne.pki.oids.encryptedData:s=Bi.createEncryptedData();break;case Ne.pki.oids.signedData:s=Bi.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+i+" is not (yet) supported.")}return s.fromAsn1(t.content.value[0]),s};Bi.createSignedData=function(){var e=null;return e={type:Ne.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(n){if(aB(e,n,Bi.asn1.signedDataValidator),e.certificates=[],e.crls=[],e.digestAlgorithmIdentifiers=[],e.contentInfo=null,e.signerInfos=[],e.rawCapture.certificates)for(var i=e.rawCapture.certificates.value,s=0;s<i.length;++s)e.certificates.push(Ne.pki.certificateFromAsn1(i[s]))},toAsn1:function(){e.contentInfo||e.sign();for(var n=[],i=0;i<e.certificates.length;++i)n.push(Ne.pki.certificateToAsn1(e.certificates[i]));var s=[],a=V.create(V.Class.CONTEXT_SPECIFIC,0,!0,[V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,V.integerToDer(e.version).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.SET,!0,e.digestAlgorithmIdentifiers),e.contentInfo])]);return n.length>0&&a.value[0].value.push(V.create(V.Class.CONTEXT_SPECIFIC,0,!0,n)),s.length>0&&a.value[0].value.push(V.create(V.Class.CONTEXT_SPECIFIC,1,!0,s)),a.value[0].value.push(V.create(V.Class.UNIVERSAL,V.Type.SET,!0,e.signerInfos)),V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(e.type).getBytes()),a])},addSigner:function(n){var i=n.issuer,s=n.serialNumber;if(n.certificate){var a=n.certificate;typeof a=="string"&&(a=Ne.pki.certificateFromPem(a)),i=a.issuer.attributes,s=a.serialNumber}var o=n.key;if(!o)throw new Error("Could not add PKCS#7 signer; no private key specified.");typeof o=="string"&&(o=Ne.pki.privateKeyFromPem(o));var u=n.digestAlgorithm||Ne.pki.oids.sha1;switch(u){case Ne.pki.oids.sha1:case Ne.pki.oids.sha256:case Ne.pki.oids.sha384:case Ne.pki.oids.sha512:case Ne.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+u)}var l=n.authenticatedAttributes||[];if(l.length>0){for(var f=!1,h=!1,m=0;m<l.length;++m){var y=l[m];if(!f&&y.type===Ne.pki.oids.contentType){if(f=!0,h)break;continue}if(!h&&y.type===Ne.pki.oids.messageDigest){if(h=!0,f)break;continue}}if(!f||!h)throw new Error("Invalid signer.authenticatedAttributes. If signer.authenticatedAttributes is specified, then it must contain at least two attributes, PKCS #9 content-type and PKCS #9 message-digest.")}e.signers.push({key:o,version:1,issuer:i,serialNumber:s,digestAlgorithm:u,signatureAlgorithm:Ne.pki.oids.rsaEncryption,signature:null,authenticatedAttributes:l,unauthenticatedAttributes:[]})},sign:function(n){if(n=n||{},(typeof e.content!="object"||e.contentInfo===null)&&(e.contentInfo=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(Ne.pki.oids.data).getBytes())]),"content"in e)){var i;e.content instanceof Ne.util.ByteBuffer?i=e.content.bytes():typeof e.content=="string"&&(i=Ne.util.encodeUtf8(e.content)),n.detached?e.detachedContent=V.create(V.Class.UNIVERSAL,V.Type.OCTETSTRING,!1,i):e.contentInfo.value.push(V.create(V.Class.CONTEXT_SPECIFIC,0,!0,[V.create(V.Class.UNIVERSAL,V.Type.OCTETSTRING,!1,i)]))}if(e.signers.length!==0){var s=t();r(s)}},verify:function(){throw new Error("PKCS#7 signature verification not yet implemented.")},addCertificate:function(n){typeof n=="string"&&(n=Ne.pki.certificateFromPem(n)),e.certificates.push(n)},addCertificateRevokationList:function(n){throw new Error("PKCS#7 CRL support not yet implemented.")}},e;function t(){for(var n={},i=0;i<e.signers.length;++i){var s=e.signers[i],a=s.digestAlgorithm;a in n||(n[a]=Ne.md[Ne.pki.oids[a]].create()),s.authenticatedAttributes.length===0?s.md=n[a]:s.md=Ne.md[Ne.pki.oids[a]].create()}e.digestAlgorithmIdentifiers=[];for(var a in n)e.digestAlgorithmIdentifiers.push(V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(a).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.NULL,!1,"")]));return n}function r(n){var i;if(e.detachedContent?i=e.detachedContent:(i=e.contentInfo.value[1],i=i.value[0]),!i)throw new Error("Could not sign PKCS#7 message; there is no content to sign.");var s=V.derToOid(e.contentInfo.value[0].value),a=V.toDer(i);a.getByte(),V.getBerValueLength(a),a=a.getBytes();for(var o in n)n[o].start().update(a);for(var u=new Date,l=0;l<e.signers.length;++l){var f=e.signers[l];if(f.authenticatedAttributes.length===0){if(s!==Ne.pki.oids.data)throw new Error("Invalid signer; authenticatedAttributes must be present when the ContentInfo content type is not PKCS#7 Data.")}else{f.authenticatedAttributesAsn1=V.create(V.Class.CONTEXT_SPECIFIC,0,!0,[]);for(var h=V.create(V.Class.UNIVERSAL,V.Type.SET,!0,[]),m=0;m<f.authenticatedAttributes.length;++m){var y=f.authenticatedAttributes[m];y.type===Ne.pki.oids.messageDigest?y.value=n[f.digestAlgorithm].digest():y.type===Ne.pki.oids.signingTime&&(y.value||(y.value=u)),h.value.push(sB(y)),f.authenticatedAttributesAsn1.value.push(sB(y))}a=V.toDer(h).getBytes(),f.md.start().update(a)}f.signature=f.key.sign(f.md,"RSASSA-PKCS1-V1_5")}e.signerInfos=mBe(e.signers)}};Bi.createEncryptedData=function(){var e=null;return e={type:Ne.pki.oids.encryptedData,version:0,encryptedContent:{algorithm:Ne.pki.oids["aes256-CBC"]},fromAsn1:function(t){aB(e,t,Bi.asn1.encryptedDataValidator)},decrypt:function(t){t!==void 0&&(e.encryptedContent.key=t),kZ(e)}},e};Bi.createEnvelopedData=function(){var e=null;return e={type:Ne.pki.oids.envelopedData,version:0,recipients:[],encryptedContent:{algorithm:Ne.pki.oids["aes256-CBC"]},fromAsn1:function(t){var r=aB(e,t,Bi.asn1.envelopedDataValidator);e.recipients=fBe(r.recipientInfos.value)},toAsn1:function(){return V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(e.type).getBytes()),V.create(V.Class.CONTEXT_SPECIFIC,0,!0,[V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,V.integerToDer(e.version).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.SET,!0,dBe(e.recipients)),V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,gBe(e.encryptedContent))])])])},findRecipient:function(t){for(var r=t.issuer.attributes,n=0;n<e.recipients.length;++n){var i=e.recipients[n],s=i.issuer;if(i.serialNumber===t.serialNumber&&s.length===r.length){for(var a=!0,o=0;o<r.length;++o)if(s[o].type!==r[o].type||s[o].value!==r[o].value){a=!1;break}if(a)return i}}return null},decrypt:function(t,r){if(e.encryptedContent.key===void 0&&t!==void 0&&r!==void 0)switch(t.encryptedContent.algorithm){case Ne.pki.oids.rsaEncryption:case Ne.pki.oids.desCBC:var n=r.decrypt(t.encryptedContent.content);e.encryptedContent.key=Ne.util.createBuffer(n);break;default:throw new Error("Unsupported asymmetric cipher, OID "+t.encryptedContent.algorithm)}kZ(e)},addRecipient:function(t){e.recipients.push({version:0,issuer:t.issuer.attributes,serialNumber:t.serialNumber,encryptedContent:{algorithm:Ne.pki.oids.rsaEncryption,key:t.publicKey}})},encrypt:function(t,r){if(e.encryptedContent.content===void 0){r=r||e.encryptedContent.algorithm,t=t||e.encryptedContent.key;var n,i,s;switch(r){case Ne.pki.oids["aes128-CBC"]:n=16,i=16,s=Ne.aes.createEncryptionCipher;break;case Ne.pki.oids["aes192-CBC"]:n=24,i=16,s=Ne.aes.createEncryptionCipher;break;case Ne.pki.oids["aes256-CBC"]:n=32,i=16,s=Ne.aes.createEncryptionCipher;break;case Ne.pki.oids["des-EDE3-CBC"]:n=24,i=8,s=Ne.des.createEncryptionCipher;break;default:throw new Error("Unsupported symmetric cipher, OID "+r)}if(t===void 0)t=Ne.util.createBuffer(Ne.random.getBytes(n));else if(t.length()!=n)throw new Error("Symmetric key has wrong length; got "+t.length()+" bytes, expected "+n+".");e.encryptedContent.algorithm=r,e.encryptedContent.key=t,e.encryptedContent.parameter=Ne.util.createBuffer(Ne.random.getBytes(i));var a=s(t);if(a.start(e.encryptedContent.parameter.copy()),a.update(e.content),!a.finish())throw new Error("Symmetric encryption failed.");e.encryptedContent.content=a.output}for(var o=0;o<e.recipients.length;++o){var u=e.recipients[o];if(u.encryptedContent.content===void 0)switch(u.encryptedContent.algorithm){case Ne.pki.oids.rsaEncryption:u.encryptedContent.content=u.encryptedContent.key.encrypt(e.encryptedContent.key.data);break;default:throw new Error("Unsupported asymmetric cipher, OID "+u.encryptedContent.algorithm)}}}},e};function lBe(e){var t={},r=[];if(!V.validate(e,Bi.asn1.recipientInfoValidator,t,r)){var n=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw n.errors=r,n}return{version:t.version.charCodeAt(0),issuer:Ne.pki.RDNAttributesAsArray(t.issuer),serialNumber:Ne.util.createBuffer(t.serial).toHex(),encryptedContent:{algorithm:V.derToOid(t.encAlgorithm),parameter:t.encParameter?t.encParameter.value:void 0,content:t.encKey}}}function pBe(e){return V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,V.integerToDer(e.version).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[Ne.pki.distinguishedNameToAsn1({attributes:e.issuer}),V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,Ne.util.hexToBytes(e.serialNumber))]),V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(e.encryptedContent.algorithm).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.NULL,!1,"")]),V.create(V.Class.UNIVERSAL,V.Type.OCTETSTRING,!1,e.encryptedContent.content)])}function fBe(e){for(var t=[],r=0;r<e.length;++r)t.push(lBe(e[r]));return t}function dBe(e){for(var t=[],r=0;r<e.length;++r)t.push(pBe(e[r]));return t}function hBe(e){var t=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,V.integerToDer(e.version).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[Ne.pki.distinguishedNameToAsn1({attributes:e.issuer}),V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,Ne.util.hexToBytes(e.serialNumber))]),V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(e.digestAlgorithm).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.NULL,!1,"")])]);if(e.authenticatedAttributesAsn1&&t.value.push(e.authenticatedAttributesAsn1),t.value.push(V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(e.signatureAlgorithm).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.NULL,!1,"")])),t.value.push(V.create(V.Class.UNIVERSAL,V.Type.OCTETSTRING,!1,e.signature)),e.unauthenticatedAttributes.length>0){for(var r=V.create(V.Class.CONTEXT_SPECIFIC,1,!0,[]),n=0;n<e.unauthenticatedAttributes.length;++n){var i=e.unauthenticatedAttributes[n];r.values.push(sB(i))}t.value.push(r)}return t}function mBe(e){for(var t=[],r=0;r<e.length;++r)t.push(hBe(e[r]));return t}function sB(e){var t;if(e.type===Ne.pki.oids.contentType)t=V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(e.value).getBytes());else if(e.type===Ne.pki.oids.messageDigest)t=V.create(V.Class.UNIVERSAL,V.Type.OCTETSTRING,!1,e.value.bytes());else if(e.type===Ne.pki.oids.signingTime){var r=new Date("1950-01-01T00:00:00Z"),n=new Date("2050-01-01T00:00:00Z"),i=e.value;if(typeof i=="string"){var s=Date.parse(i);isNaN(s)?i.length===13?i=V.utcTimeToDate(i):i=V.generalizedTimeToDate(i):i=new Date(s)}i>=r&&i<n?t=V.create(V.Class.UNIVERSAL,V.Type.UTCTIME,!1,V.dateToUtcTime(i)):t=V.create(V.Class.UNIVERSAL,V.Type.GENERALIZEDTIME,!1,V.dateToGeneralizedTime(i))}return V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(e.type).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.SET,!0,[t])])}function gBe(e){return[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(Ne.pki.oids.data).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(e.algorithm).getBytes()),e.parameter?V.create(V.Class.UNIVERSAL,V.Type.OCTETSTRING,!1,e.parameter.getBytes()):void 0]),V.create(V.Class.CONTEXT_SPECIFIC,0,!0,[V.create(V.Class.UNIVERSAL,V.Type.OCTETSTRING,!1,e.content.getBytes())])]}function aB(e,t,r){var n={},i=[];if(!V.validate(t,r,n,i)){var s=new Error("Cannot read PKCS#7 message. ASN.1 object is not a supported PKCS#7 message.");throw s.errors=s,s}var a=V.derToOid(n.contentType);if(a!==Ne.pki.oids.data)throw new Error("Unsupported PKCS#7 message. Only wrapped ContentType Data supported.");if(n.encryptedContent){var o="";if(Ne.util.isArray(n.encryptedContent))for(var u=0;u<n.encryptedContent.length;++u){if(n.encryptedContent[u].type!==V.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting encrypted content constructed of only OCTET STRING objects.");o+=n.encryptedContent[u].value}else o=n.encryptedContent;e.encryptedContent={algorithm:V.derToOid(n.encAlgorithm),parameter:Ne.util.createBuffer(n.encParameter.value),content:Ne.util.createBuffer(o)}}if(n.content){var o="";if(Ne.util.isArray(n.content))for(var u=0;u<n.content.length;++u){if(n.content[u].type!==V.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting content constructed of only OCTET STRING objects.");o+=n.content[u].value}else o=n.content;e.content=Ne.util.createBuffer(o)}return e.version=n.version.charCodeAt(0),e.rawCapture=n,n}function kZ(e){if(e.encryptedContent.key===void 0)throw new Error("Symmetric key not available.");if(e.content===void 0){var t;switch(e.encryptedContent.algorithm){case Ne.pki.oids["aes128-CBC"]:case Ne.pki.oids["aes192-CBC"]:case Ne.pki.oids["aes256-CBC"]:t=Ne.aes.createDecryptionCipher(e.encryptedContent.key);break;case Ne.pki.oids.desCBC:case Ne.pki.oids["des-EDE3-CBC"]:t=Ne.des.createDecryptionCipher(e.encryptedContent.key);break;default:throw new Error("Unsupported symmetric cipher, OID "+e.encryptedContent.algorithm)}if(t.start(e.encryptedContent.parameter),t.update(e.encryptedContent.content),!t.finish())throw new Error("Symmetric decryption failed.");e.content=t.output}}});var jZ=w((nct,qZ)=>{"use strict";d();var xn=Ot();ul();Rh();CC();Bh();nr();var QC=qZ.exports=xn.ssh=xn.ssh||{};QC.privateKeyToPutty=function(e,t,r){r=r||"",t=t||"";var n="ssh-rsa",i=t===""?"none":"aes256-cbc",s="PuTTY-User-Key-File-2: "+n+`\r
|
|
67
|
-
`;s+="Encryption: "+i+`\r
|
|
68
|
-
`,s+="Comment: "+r+`\r
|
|
69
|
-
`;var a=xn.util.createBuffer();Vh(a,n),Go(a,e.e),Go(a,e.n);var o=xn.util.encode64(a.bytes(),64),u=Math.floor(o.length/66)+1;s+="Public-Lines: "+u+`\r
|
|
70
|
-
`,s+=o;var l=xn.util.createBuffer();Go(l,e.d),Go(l,e.p),Go(l,e.q),Go(l,e.qInv);var f;if(!t)f=xn.util.encode64(l.bytes(),64);else{var h=l.length()+16-1;h-=h%16;var m=WC(l.bytes());m.truncate(m.length()-h+l.length()),l.putBuffer(m);var y=xn.util.createBuffer();y.putBuffer(WC("\0\0\0\0",t)),y.putBuffer(WC("\0\0\0",t));var _=xn.aes.createEncryptionCipher(y.truncate(8),"CBC");_.start(xn.util.createBuffer().fillWithByte(0,16)),_.update(l.copy()),_.finish();var C=_.output;C.truncate(16),f=xn.util.encode64(C.bytes(),64)}u=Math.floor(f.length/66)+1,s+=`\r
|
|
71
|
-
Private-Lines: `+u+`\r
|
|
72
|
-
`,s+=f;var b=WC("putty-private-key-file-mac-key",t),D=xn.util.createBuffer();Vh(D,n),Vh(D,i),Vh(D,r),D.putInt32(a.length()),D.putBuffer(a),D.putInt32(l.length()),D.putBuffer(l);var L=xn.hmac.create();return L.start("sha1",b),L.update(D.bytes()),s+=`\r
|
|
73
|
-
Private-MAC: `+L.digest().toHex()+`\r
|
|
74
|
-
`,s};QC.publicKeyToOpenSSH=function(e,t){var r="ssh-rsa";t=t||"";var n=xn.util.createBuffer();return Vh(n,r),Go(n,e.e),Go(n,e.n),r+" "+xn.util.encode64(n.bytes())+" "+t};QC.privateKeyToOpenSSH=function(e,t){return t?xn.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):xn.pki.privateKeyToPem(e)};QC.getPublicKeyFingerprint=function(e,t){t=t||{};var r=t.md||xn.md.md5.create(),n="ssh-rsa",i=xn.util.createBuffer();Vh(i,n),Go(i,e.e),Go(i,e.n),r.start(),r.update(i.getBytes());var s=r.digest();if(t.encoding==="hex"){var a=s.toHex();return t.delimiter?a.match(/.{2}/g).join(t.delimiter):a}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s};function Go(e,t){var r=t.toString(16);r[0]>="8"&&(r="00"+r);var n=xn.util.hexToBytes(r);e.putInt32(n.length),e.putBytes(n)}function Vh(e,t){e.putInt32(t.length),e.putString(t)}function WC(){for(var e=xn.md.sha1.create(),t=arguments.length,r=0;r<t;++r)e.update(arguments[r]);return e.digest()}});var HZ=w((sct,VZ)=>{"use strict";d();VZ.exports=Ot();ul();uZ();Qa();gC();tv();DZ();Rh();RZ();BZ();FZ();OP();wC();Wp();DP();LP();MZ();kP();TP();yP();BC();ra();_P();jZ();HP();nr()});var QZ=w(WZ=>{"use strict";d();var xr=HZ();function GZ(e){var t=parseInt(e[0],16);return t<8?e:(t-=8,t.toString()+e.substring(1))}function vBe(e){switch(e){case"sha256":return xr.md.sha256.create();default:return xr.md.sha1.create()}}WZ.generate=function(t,r,n){typeof t=="function"?(n=t,t=void 0):typeof r=="function"&&(n=r,r={}),r=r||{};var i=function(o){var u=xr.pki.createCertificate();u.serialNumber=GZ(xr.util.bytesToHex(xr.random.getBytesSync(9))),u.validity.notBefore=r.notBeforeDate||new Date;var l=new Date;u.validity.notAfter=l,u.validity.notAfter.setDate(l.getDate()+(r.days||365)),t=t||[{name:"commonName",value:"example.org"},{name:"countryName",value:"US"},{shortName:"ST",value:"Virginia"},{name:"localityName",value:"Blacksburg"},{name:"organizationName",value:"Test"},{shortName:"OU",value:"Test"}],u.setSubject(t),u.setIssuer(t),u.publicKey=o.publicKey,u.setExtensions(r.extensions||[{name:"basicConstraints",cA:!0},{name:"keyUsage",keyCertSign:!0,digitalSignature:!0,nonRepudiation:!0,keyEncipherment:!0,dataEncipherment:!0},{name:"subjectAltName",altNames:[{type:6,value:"http://example.org/webid#me"}]}]),u.sign(o.privateKey,vBe(r&&r.algorithm));let f=xr.md.sha1.create().update(xr.asn1.toDer(xr.pki.certificateToAsn1(u)).getBytes()).digest().toHex().match(/.{2}/g).join(":");var h={private:xr.pki.privateKeyToPem(o.privateKey),public:xr.pki.publicKeyToPem(o.publicKey),cert:xr.pki.certificateToPem(u),fingerprint:f};if(r&&r.pkcs7){var m=xr.pkcs7.createSignedData();m.addCertificate(u),h.pkcs7=xr.pkcs7.messageToPem(m)}if(r&&r.clientCertificate){var y=xr.pki.rsa.generateKeyPair(r.clientCertificateKeySize||1024),_=xr.pki.createCertificate();_.serialNumber=GZ(xr.util.bytesToHex(xr.random.getBytesSync(9))),_.validity.notBefore=new Date,_.validity.notAfter=new Date,_.validity.notAfter.setFullYear(_.validity.notBefore.getFullYear()+1);for(var C=JSON.parse(JSON.stringify(t)),b=0;b<C.length;b++)C[b].name==="commonName"&&(r.clientCertificateCN?C[b]={name:"commonName",value:r.clientCertificateCN}:C[b]={name:"commonName",value:"John Doe jdoe123"});if(_.setSubject(C),_.setIssuer(t),_.publicKey=y.publicKey,_.sign(o.privateKey),h.clientprivate=xr.pki.privateKeyToPem(y.privateKey),h.clientpublic=xr.pki.publicKeyToPem(y.publicKey),h.clientcert=xr.pki.certificateToPem(_),r.pkcs7){var D=xr.pkcs7.createSignedData();D.addCertificate(_),h.clientpkcs7=xr.pkcs7.messageToPem(D)}}var L=xr.pki.createCaStore();L.addCertificate(u);try{xr.pki.verifyCertificateChain(L,[u],function(F,q,M){if(F!==!0)throw new Error("Certificate could not be verified.");return!0})}catch(F){throw new Error(F)}return h},s=r.keySize||1024;if(n)return xr.pki.rsa.generateKeyPair({bits:s},function(o,u){if(o)return n(o);try{return n(null,i(u))}catch(l){return n(l)}});var a=r.keyPair?{privateKey:xr.pki.privateKeyFromPem(r.keyPair.privateKey),publicKey:xr.pki.publicKeyFromPem(r.keyPair.publicKey)}:xr.pki.rsa.generateKeyPair(s);return i(a)}});var Cte=w((Slt,Ate)=>{"use strict";d();function ua(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}Ate.exports=ua;ua.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};ua.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};ua.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};ua.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};ua.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};ua.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};ua.prototype.start=ua.prototype.try;ua.prototype.errors=function(){return this._errors};ua.prototype.attempts=function(){return this._attempts};ua.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,a=(e[s]||0)+1;e[s]=a,a>=r&&(t=i,r=a)}return t}});var Ste=w(Zp=>{"use strict";d();var VBe=Cte();Zp.operation=function(e){var t=Zp.timeouts(e);return new VBe(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};Zp.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,a){return s-a}),n};Zp.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};Zp.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],a=e[s];e[s]=function(u){var l=Zp.operation(t),f=Array.prototype.slice.call(arguments,1),h=f.pop();f.push(function(m){l.retry(m)||(m&&(arguments[0]=l.mainError()),h.apply(this,arguments))}),l.attempt(function(){u.apply(e,f)})}.bind(e,a),e[s].options=t}}});var Dte=w((Tlt,bte)=>{"use strict";d();bte.exports=Ste()});var Hre=w((jdt,ju)=>{"use strict";d();function VB(){return ju.exports=VB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ju.exports.__esModule=!0,ju.exports.default=ju.exports,VB.apply(this,arguments)}ju.exports=VB,ju.exports.__esModule=!0,ju.exports.default=ju.exports});var Wre=w((Hdt,Gre)=>{"use strict";d();Gre.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}});var nL=w((Gmt,lne)=>{"use strict";d();var cne=J("fs"),rL;function mke(){try{return cne.statSync("/.dockerenv"),!0}catch{return!1}}function gke(){try{return cne.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}lne.exports=()=>(rL===void 0&&(rL=mke()||gke()),rL)});var dne=w((Qmt,iL)=>{"use strict";d();var vke=J("os"),yke=J("fs"),pne=nL(),fne=()=>{if(process.platform!=="linux")return!1;if(vke.release().toLowerCase().includes("microsoft"))return!pne();try{return yke.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!pne():!1}catch{return!1}};process.env.__IS_WSL_TEST__?iL.exports=fne:iL.exports=fne()});var mne=w((Kmt,hne)=>{"use strict";d();hne.exports=(e,t,r)=>{let n=i=>Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get(){let i=r();return n(i),i},set(i){n(i)}}),e}});var Ane=w((Ymt,_ne)=>{"use strict";d();var xke=J("path"),Eke=J("child_process"),{promises:BS,constants:Ene}=J("fs"),PS=dne(),_ke=nL(),aL=mne(),gne=xke.join(x,"xdg-open"),{platform:nm,arch:vne}=process,Ake=()=>{try{return BS.statSync("/run/.containerenv"),!0}catch{return!1}},sL;function Cke(){return sL===void 0&&(sL=Ake()||_ke()),sL}var Ske=(()=>{let e="/mnt/",t;return async function(){if(t)return t;let r="/etc/wsl.conf",n=!1;try{await BS.access(r,Ene.F_OK),n=!0}catch{}if(!n)return e;let i=await BS.readFile(r,{encoding:"utf8"}),s=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return s?(t=s.groups.mountPoint.trim(),t=t.endsWith("/")?t:`${t}/`,t):e}})(),yne=async(e,t)=>{let r;for(let n of e)try{return await t(n)}catch(i){r=i}throw r},LS=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return yne(e.app,o=>LS({...e,app:o}));let{name:t,arguments:r=[]}=e.app||{};if(r=[...r],Array.isArray(t))return yne(t,o=>LS({...e,app:{name:o,arguments:r}}));let n,i=[],s={};if(nm==="darwin")n="open",e.wait&&i.push("--wait-apps"),e.background&&i.push("--background"),e.newInstance&&i.push("--new"),t&&i.push("-a",t);else if(nm==="win32"||PS&&!Cke()&&!t){let o=await Ske();n=PS?`${o}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),PS||(s.windowsVerbatimArguments=!0);let u=["Start"];e.wait&&u.push("-Wait"),t?(u.push(`"\`"${t}\`""`,"-ArgumentList"),e.target&&r.unshift(e.target)):e.target&&u.push(`"${e.target}"`),r.length>0&&(r=r.map(l=>`"\`"${l}\`""`),u.push(r.join(","))),e.target=Buffer.from(u.join(" "),"utf16le").toString("base64")}else{if(t)n=t;else{let o=!x||x==="/",u=!1;try{await BS.access(gne,Ene.X_OK),u=!0}catch{}n=process.versions.electron||nm==="android"||o||!u?"xdg-open":gne}r.length>0&&i.push(...r),e.wait||(s.stdio="ignore",s.detached=!0)}e.target&&i.push(e.target),nm==="darwin"&&r.length>0&&i.push("--args",...r);let a=Eke.spawn(n,i,s);return e.wait?new Promise((o,u)=>{a.once("error",u),a.once("close",l=>{if(!e.allowNonzeroExitCode&&l>0){u(new Error(`Exited with code ${l}`));return}o(a)})}):(a.unref(),a)},oL=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a `target`");return LS({...t,target:e})},bke=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a `name`");let{arguments:r=[]}=t||{};if(r!=null&&!Array.isArray(r))throw new TypeError("Expected `appArguments` as Array type");return LS({...t,app:{name:e,arguments:r}})};function xne(e){if(typeof e=="string"||Array.isArray(e))return e;let{[vne]:t}=e;if(!t)throw new Error(`${vne} is not supported`);return t}function uL({[nm]:e},{wsl:t}){if(t&&PS)return xne(t);if(!e)throw new Error(`${nm} is not supported`);return xne(e)}var FS={};aL(FS,"chrome",()=>uL({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));aL(FS,"firefox",()=>uL({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));aL(FS,"edge",()=>uL({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));oL.apps=FS;oL.openApp=bke;_ne.exports=oL});var pse=w((CCt,lse)=>{"use strict";d();var cse=J("stream").Stream,g8e=J("util");lse.exports=Xa;function Xa(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}g8e.inherits(Xa,cse);Xa.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var i=e.emit;return e.emit=function(){return r._handleEmit(arguments),i.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(Xa.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});Xa.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Xa.prototype.resume=function(){this._released||this.release(),this.source.resume()};Xa.prototype.pause=function(){this.source.pause()};Xa.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};Xa.prototype.pipe=function(){var e=cse.prototype.pipe.apply(this,arguments);return this.resume(),e};Xa.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};Xa.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var mse=w((bCt,hse)=>{"use strict";d();var v8e=J("util"),dse=J("stream").Stream,fse=pse();hse.exports=an;function an(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}v8e.inherits(an,dse);an.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};an.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};an.prototype.append=function(e){var t=an.isStreamLike(e);if(t){if(!(e instanceof fse)){var r=fse.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};an.prototype.pipe=function(e,t){return dse.prototype.pipe.call(this,e,t),this.resume(),e};an.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};an.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var n=an.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};an.prototype._pipeNext=function(e){this._currentStream=e;var t=an.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};an.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};an.prototype.write=function(e){this.emit("data",e)};an.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};an.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};an.prototype.end=function(){this._reset(),this.emit("end")};an.prototype.destroy=function(){this._reset(),this.emit("close")};an.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};an.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};an.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};an.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var gse=w((wCt,y8e)=>{y8e.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var yse=w((TCt,vse)=>{"use strict";d();vse.exports=gse()});var _se=w(ss=>{"use strict";d();var nb=yse(),x8e=J("path").extname,xse=/^\s*([^;\s]*)(?:;|\s|$)/,E8e=/^text\//i;ss.charset=Ese;ss.charsets={lookup:Ese};ss.contentType=_8e;ss.extension=A8e;ss.extensions=Object.create(null);ss.lookup=C8e;ss.types=Object.create(null);S8e(ss.extensions,ss.types);function Ese(e){if(!e||typeof e!="string")return!1;var t=xse.exec(e),r=t&&nb[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&E8e.test(t[1])?"UTF-8":!1}function _8e(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?ss.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=ss.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}function A8e(e){if(!e||typeof e!="string")return!1;var t=xse.exec(e),r=t&&ss.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}function C8e(e){if(!e||typeof e!="string")return!1;var t=x8e("x."+e).toLowerCase().substr(1);return t&&ss.types[t]||!1}function S8e(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(nb).forEach(function(i){var s=nb[i],a=s.extensions;if(!(!a||!a.length)){e[i]=a;for(var o=0;o<a.length;o++){var u=a[o];if(t[u]){var l=r.indexOf(nb[t[u]].source),f=r.indexOf(s.source);if(t[u]!=="application/octet-stream"&&(l>f||l===f&&t[u].substr(0,12)==="application/"))continue}t[u]=i}}})}});var Cse=w((OCt,Ase)=>{"use strict";d();Ase.exports=b8e;function b8e(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}});var IL=w((BCt,bse)=>{"use strict";d();var Sse=Cse();bse.exports=D8e;function D8e(e){var t=!1;return Sse(function(){t=!0}),function(n,i){t?e(n,i):Sse(function(){e(n,i)})}}});var RL=w((FCt,Dse)=>{"use strict";d();Dse.exports=w8e;function w8e(e){Object.keys(e.jobs).forEach(T8e.bind(e)),e.jobs={}}function T8e(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}});var NL=w((UCt,Tse)=>{"use strict";d();var wse=IL(),I8e=RL();Tse.exports=R8e;function R8e(e,t,r,n){var i=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[i]=N8e(t,i,e[i],function(s,a){i in r.jobs&&(delete r.jobs[i],s?I8e(r):r.results[i]=a,n(s,r.results))})}function N8e(e,t,r,n){var i;return e.length==2?i=e(r,wse(n)):i=e(r,t,wse(n)),i}});var OL=w((qCt,Ise)=>{"use strict";d();Ise.exports=O8e;function O8e(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&n.keyedList.sort(r?t:function(i,s){return t(e[i],e[s])}),n}});var PL=w((VCt,Rse)=>{"use strict";d();var P8e=RL(),B8e=IL();Rse.exports=L8e;function L8e(e){Object.keys(this.jobs).length&&(this.index=this.size,P8e(this),B8e(e)(null,this.results))}});var Ose=w((GCt,Nse)=>{"use strict";d();var F8e=NL(),k8e=OL(),U8e=PL();Nse.exports=M8e;function M8e(e,t,r){for(var n=k8e(e);n.index<(n.keyedList||e).length;)F8e(e,t,n,function(i,s){if(i){r(i,s);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return U8e.bind(n,r)}});var BL=w((QCt,ib)=>{"use strict";d();var Pse=NL(),q8e=OL(),j8e=PL();ib.exports=V8e;ib.exports.ascending=Bse;ib.exports.descending=H8e;function V8e(e,t,r,n){var i=q8e(e,r);return Pse(e,t,i,function s(a,o){if(a){n(a,o);return}if(i.index++,i.index<(i.keyedList||e).length){Pse(e,t,i,s);return}n(null,i.results)}),j8e.bind(i,n)}function Bse(e,t){return e<t?-1:e>t?1:0}function H8e(e,t){return-1*Bse(e,t)}});var Fse=w((KCt,Lse)=>{"use strict";d();var G8e=BL();Lse.exports=W8e;function W8e(e,t,r){return G8e(e,t,null,r)}});var Use=w((YCt,kse)=>{"use strict";d();kse.exports={parallel:Ose(),serial:Fse(),serialOrdered:BL()}});var qse=w((JCt,Mse)=>{"use strict";d();Mse.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var Hse=w((eSt,Vse)=>{"use strict";d();var UL=mse(),jse=J("util"),LL=J("path"),Q8e=J("http"),z8e=J("https"),K8e=J("url").parse,$8e=J("fs"),Y8e=J("stream").Stream,FL=_se(),X8e=Use(),kL=qse();Vse.exports=sr;jse.inherits(sr,UL);function sr(e){if(!(this instanceof sr))return new sr(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],UL.call(this),e=e||{};for(var t in e)this[t]=e[t]}sr.LINE_BREAK=`\r
|
|
75
|
-
`;sr.DEFAULT_CONTENT_TYPE="application/octet-stream";sr.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=UL.prototype.append.bind(this);if(typeof t=="number"&&(t=""+t),jse.isArray(t)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(e,t,r),s=this._multiPartFooter();n(i),n(t),n(s),this._trackLength(i,t,r)};sr.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=+r.knownLength:Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+sr.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&t.hasOwnProperty("httpVersion"))&&!(t instanceof Y8e))&&(r.knownLength||this._valuesToMeasure.push(t))};sr.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):$8e.stat(e.path,function(r,n){var i;if(r){t(r);return}i=n.size-(e.start?e.start:0),t(null,i)}):e.hasOwnProperty("httpVersion")?t(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",function(r){e.pause(),t(null,+r.headers["content-length"])}),e.resume()):t("Unknown stream")};sr.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),i=this._getContentType(t,r),s="",a={"Content-Disposition":["form-data",'name="'+e+'"'].concat(n||[]),"Content-Type":[].concat(i||[])};typeof r.header=="object"&&kL(a,r.header);var o;for(var u in a)a.hasOwnProperty(u)&&(o=a[u],o!=null&&(Array.isArray(o)||(o=[o]),o.length&&(s+=u+": "+o.join("; ")+sr.LINE_BREAK)));return"--"+this.getBoundary()+sr.LINE_BREAK+s+sr.LINE_BREAK};sr.prototype._getContentDisposition=function(e,t){var r,n;return typeof t.filepath=="string"?r=LL.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?r=LL.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(r=LL.basename(e.client._httpMessage.path||"")),r&&(n='filename="'+r+'"'),n};sr.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e.name&&(r=FL.lookup(e.name)),!r&&e.path&&(r=FL.lookup(e.path)),!r&&e.readable&&e.hasOwnProperty("httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=FL.lookup(t.filepath||t.filename)),!r&&typeof e=="object"&&(r=sr.DEFAULT_CONTENT_TYPE),r};sr.prototype._multiPartFooter=function(){return function(e){var t=sr.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};sr.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+sr.LINE_BREAK};sr.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)e.hasOwnProperty(t)&&(r[t.toLowerCase()]=e[t]);return r};sr.prototype.setBoundary=function(e){this._boundary=e};sr.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};sr.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(sr.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};sr.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(Math.random()*10).toString(16);this._boundary=e};sr.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};sr.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};sr.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}X8e.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(i){t+=i}),e(null,t)})};sr.prototype.submit=function(e,t){var r,n,i={method:"post"};return typeof e=="string"?(e=K8e(e),n=kL({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(n=kL(e,i),n.port||(n.port=n.protocol=="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol=="https:"?r=z8e.request(n):r=Q8e.request(n),this.getLength(function(s,a){if(s&&s!=="Unknown stream"){this._error(s);return}if(a&&r.setHeader("Content-Length",a),this.pipe(r),t){var o,u=function(l,f){return r.removeListener("error",u),r.removeListener("response",o),t.call(this,l,f)};o=u.bind(this,null),r.on("error",u),r.on("response",o)}}.bind(this)),r};sr.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};sr.prototype.toString=function(){return"[object FormData]"}});var Pv=w((xbt,eae)=>{"use strict";d();var c4e="2.0.0",l4e=Number.MAX_SAFE_INTEGER||9007199254740991,p4e=16,f4e=250,d4e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];eae.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:p4e,MAX_SAFE_BUILD_LENGTH:f4e,MAX_SAFE_INTEGER:l4e,RELEASE_TYPES:d4e,SEMVER_SPEC_VERSION:c4e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Bv=w((_bt,tae)=>{"use strict";d();var h4e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};tae.exports=h4e});var hm=w((Qu,rae)=>{"use strict";d();var{MAX_SAFE_COMPONENT_LENGTH:jL,MAX_SAFE_BUILD_LENGTH:m4e,MAX_LENGTH:g4e}=Pv(),v4e=Bv();Qu=rae.exports={};var y4e=Qu.re=[],x4e=Qu.safeRe=[],Ke=Qu.src=[],$e=Qu.t={},E4e=0,VL="[a-zA-Z0-9-]",_4e=[["\\s",1],["\\d",g4e],[VL,m4e]],A4e=e=>{for(let[t,r]of _4e)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},Pt=(e,t,r)=>{let n=A4e(t),i=E4e++;v4e(e,i,t),$e[e]=i,Ke[i]=t,y4e[i]=new RegExp(t,r?"g":void 0),x4e[i]=new RegExp(n,r?"g":void 0)};Pt("NUMERICIDENTIFIER","0|[1-9]\\d*");Pt("NUMERICIDENTIFIERLOOSE","\\d+");Pt("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${VL}*`);Pt("MAINVERSION",`(${Ke[$e.NUMERICIDENTIFIER]})\\.(${Ke[$e.NUMERICIDENTIFIER]})\\.(${Ke[$e.NUMERICIDENTIFIER]})`);Pt("MAINVERSIONLOOSE",`(${Ke[$e.NUMERICIDENTIFIERLOOSE]})\\.(${Ke[$e.NUMERICIDENTIFIERLOOSE]})\\.(${Ke[$e.NUMERICIDENTIFIERLOOSE]})`);Pt("PRERELEASEIDENTIFIER",`(?:${Ke[$e.NUMERICIDENTIFIER]}|${Ke[$e.NONNUMERICIDENTIFIER]})`);Pt("PRERELEASEIDENTIFIERLOOSE",`(?:${Ke[$e.NUMERICIDENTIFIERLOOSE]}|${Ke[$e.NONNUMERICIDENTIFIER]})`);Pt("PRERELEASE",`(?:-(${Ke[$e.PRERELEASEIDENTIFIER]}(?:\\.${Ke[$e.PRERELEASEIDENTIFIER]})*))`);Pt("PRERELEASELOOSE",`(?:-?(${Ke[$e.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Ke[$e.PRERELEASEIDENTIFIERLOOSE]})*))`);Pt("BUILDIDENTIFIER",`${VL}+`);Pt("BUILD",`(?:\\+(${Ke[$e.BUILDIDENTIFIER]}(?:\\.${Ke[$e.BUILDIDENTIFIER]})*))`);Pt("FULLPLAIN",`v?${Ke[$e.MAINVERSION]}${Ke[$e.PRERELEASE]}?${Ke[$e.BUILD]}?`);Pt("FULL",`^${Ke[$e.FULLPLAIN]}$`);Pt("LOOSEPLAIN",`[v=\\s]*${Ke[$e.MAINVERSIONLOOSE]}${Ke[$e.PRERELEASELOOSE]}?${Ke[$e.BUILD]}?`);Pt("LOOSE",`^${Ke[$e.LOOSEPLAIN]}$`);Pt("GTLT","((?:<|>)?=?)");Pt("XRANGEIDENTIFIERLOOSE",`${Ke[$e.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Pt("XRANGEIDENTIFIER",`${Ke[$e.NUMERICIDENTIFIER]}|x|X|\\*`);Pt("XRANGEPLAIN",`[v=\\s]*(${Ke[$e.XRANGEIDENTIFIER]})(?:\\.(${Ke[$e.XRANGEIDENTIFIER]})(?:\\.(${Ke[$e.XRANGEIDENTIFIER]})(?:${Ke[$e.PRERELEASE]})?${Ke[$e.BUILD]}?)?)?`);Pt("XRANGEPLAINLOOSE",`[v=\\s]*(${Ke[$e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ke[$e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ke[$e.XRANGEIDENTIFIERLOOSE]})(?:${Ke[$e.PRERELEASELOOSE]})?${Ke[$e.BUILD]}?)?)?`);Pt("XRANGE",`^${Ke[$e.GTLT]}\\s*${Ke[$e.XRANGEPLAIN]}$`);Pt("XRANGELOOSE",`^${Ke[$e.GTLT]}\\s*${Ke[$e.XRANGEPLAINLOOSE]}$`);Pt("COERCE",`(^|[^\\d])(\\d{1,${jL}})(?:\\.(\\d{1,${jL}}))?(?:\\.(\\d{1,${jL}}))?(?:$|[^\\d])`);Pt("COERCERTL",Ke[$e.COERCE],!0);Pt("LONETILDE","(?:~>?)");Pt("TILDETRIM",`(\\s*)${Ke[$e.LONETILDE]}\\s+`,!0);Qu.tildeTrimReplace="$1~";Pt("TILDE",`^${Ke[$e.LONETILDE]}${Ke[$e.XRANGEPLAIN]}$`);Pt("TILDELOOSE",`^${Ke[$e.LONETILDE]}${Ke[$e.XRANGEPLAINLOOSE]}$`);Pt("LONECARET","(?:\\^)");Pt("CARETTRIM",`(\\s*)${Ke[$e.LONECARET]}\\s+`,!0);Qu.caretTrimReplace="$1^";Pt("CARET",`^${Ke[$e.LONECARET]}${Ke[$e.XRANGEPLAIN]}$`);Pt("CARETLOOSE",`^${Ke[$e.LONECARET]}${Ke[$e.XRANGEPLAINLOOSE]}$`);Pt("COMPARATORLOOSE",`^${Ke[$e.GTLT]}\\s*(${Ke[$e.LOOSEPLAIN]})$|^$`);Pt("COMPARATOR",`^${Ke[$e.GTLT]}\\s*(${Ke[$e.FULLPLAIN]})$|^$`);Pt("COMPARATORTRIM",`(\\s*)${Ke[$e.GTLT]}\\s*(${Ke[$e.LOOSEPLAIN]}|${Ke[$e.XRANGEPLAIN]})`,!0);Qu.comparatorTrimReplace="$1$2$3";Pt("HYPHENRANGE",`^\\s*(${Ke[$e.XRANGEPLAIN]})\\s+-\\s+(${Ke[$e.XRANGEPLAIN]})\\s*$`);Pt("HYPHENRANGELOOSE",`^\\s*(${Ke[$e.XRANGEPLAINLOOSE]})\\s+-\\s+(${Ke[$e.XRANGEPLAINLOOSE]})\\s*$`);Pt("STAR","(<|>)?=?\\s*\\*");Pt("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Pt("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var cb=w((Sbt,nae)=>{"use strict";d();var C4e=Object.freeze({loose:!0}),S4e=Object.freeze({}),b4e=e=>e?typeof e!="object"?C4e:e:S4e;nae.exports=b4e});var HL=w((Dbt,aae)=>{"use strict";d();var iae=/^[0-9]+$/,sae=(e,t)=>{let r=iae.test(e),n=iae.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},D4e=(e,t)=>sae(t,e);aae.exports={compareIdentifiers:sae,rcompareIdentifiers:D4e}});var Ai=w((Tbt,lae)=>{"use strict";d();var lb=Bv(),{MAX_LENGTH:oae,MAX_SAFE_INTEGER:pb}=Pv(),{safeRe:uae,t:cae}=hm(),w4e=cb(),{compareIdentifiers:mm}=HL(),GL=class e{constructor(t,r){if(r=w4e(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>oae)throw new TypeError(`version is longer than ${oae} characters`);lb("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?uae[cae.LOOSE]:uae[cae.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>pb||this.major<0)throw new TypeError("Invalid major version");if(this.minor>pb||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>pb||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<pb)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(lb("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),mm(this.major,t.major)||mm(this.minor,t.minor)||mm(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(lb("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return mm(n,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(lb("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return mm(n,i)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),mm(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};lae.exports=GL});var cf=w((Rbt,fae)=>{"use strict";d();var pae=Ai(),T4e=(e,t,r=!1)=>{if(e instanceof pae)return e;try{return new pae(e,t)}catch(n){if(!r)return null;throw n}};fae.exports=T4e});var hae=w((Obt,dae)=>{"use strict";d();var I4e=cf(),R4e=(e,t)=>{let r=I4e(e,t);return r?r.version:null};dae.exports=R4e});var gae=w((Bbt,mae)=>{"use strict";d();var N4e=cf(),O4e=(e,t)=>{let r=N4e(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};mae.exports=O4e});var xae=w((Fbt,yae)=>{"use strict";d();var vae=Ai(),P4e=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new vae(e instanceof vae?e.version:e,r).inc(t,n,i).version}catch{return null}};yae.exports=P4e});var Aae=w((Ubt,_ae)=>{"use strict";d();var Eae=cf(),B4e=(e,t)=>{let r=Eae(e,null,!0),n=Eae(t,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,a=s?r:n,o=s?n:r,u=!!a.prerelease.length;if(!!o.prerelease.length&&!u)return!o.patch&&!o.minor?"major":a.patch?"patch":a.minor?"minor":"major";let f=u?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};_ae.exports=B4e});var Sae=w((qbt,Cae)=>{"use strict";d();var L4e=Ai(),F4e=(e,t)=>new L4e(e,t).major;Cae.exports=F4e});var Dae=w((Vbt,bae)=>{"use strict";d();var k4e=Ai(),U4e=(e,t)=>new k4e(e,t).minor;bae.exports=U4e});var Tae=w((Gbt,wae)=>{"use strict";d();var M4e=Ai(),q4e=(e,t)=>new M4e(e,t).patch;wae.exports=q4e});var Rae=w((Qbt,Iae)=>{"use strict";d();var j4e=cf(),V4e=(e,t)=>{let r=j4e(e,t);return r&&r.prerelease.length?r.prerelease:null};Iae.exports=V4e});var la=w((Kbt,Oae)=>{"use strict";d();var Nae=Ai(),H4e=(e,t,r)=>new Nae(e,r).compare(new Nae(t,r));Oae.exports=H4e});var Bae=w((Ybt,Pae)=>{"use strict";d();var G4e=la(),W4e=(e,t,r)=>G4e(t,e,r);Pae.exports=W4e});var Fae=w((Jbt,Lae)=>{"use strict";d();var Q4e=la(),z4e=(e,t)=>Q4e(e,t,!0);Lae.exports=z4e});var fb=w((e1t,Uae)=>{"use strict";d();var kae=Ai(),K4e=(e,t,r)=>{let n=new kae(e,r),i=new kae(t,r);return n.compare(i)||n.compareBuild(i)};Uae.exports=K4e});var qae=w((r1t,Mae)=>{"use strict";d();var $4e=fb(),Y4e=(e,t)=>e.sort((r,n)=>$4e(r,n,t));Mae.exports=Y4e});var Vae=w((i1t,jae)=>{"use strict";d();var X4e=fb(),J4e=(e,t)=>e.sort((r,n)=>X4e(n,r,t));jae.exports=J4e});var Lv=w((a1t,Hae)=>{"use strict";d();var Z4e=la(),eUe=(e,t,r)=>Z4e(e,t,r)>0;Hae.exports=eUe});var db=w((u1t,Gae)=>{"use strict";d();var tUe=la(),rUe=(e,t,r)=>tUe(e,t,r)<0;Gae.exports=rUe});var WL=w((l1t,Wae)=>{"use strict";d();var nUe=la(),iUe=(e,t,r)=>nUe(e,t,r)===0;Wae.exports=iUe});var QL=w((f1t,Qae)=>{"use strict";d();var sUe=la(),aUe=(e,t,r)=>sUe(e,t,r)!==0;Qae.exports=aUe});var hb=w((h1t,zae)=>{"use strict";d();var oUe=la(),uUe=(e,t,r)=>oUe(e,t,r)>=0;zae.exports=uUe});var mb=w((g1t,Kae)=>{"use strict";d();var cUe=la(),lUe=(e,t,r)=>cUe(e,t,r)<=0;Kae.exports=lUe});var zL=w((y1t,$ae)=>{"use strict";d();var pUe=WL(),fUe=QL(),dUe=Lv(),hUe=hb(),mUe=db(),gUe=mb(),vUe=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return pUe(e,r,n);case"!=":return fUe(e,r,n);case">":return dUe(e,r,n);case">=":return hUe(e,r,n);case"<":return mUe(e,r,n);case"<=":return gUe(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};$ae.exports=vUe});var Xae=w((E1t,Yae)=>{"use strict";d();var yUe=Ai(),xUe=cf(),{safeRe:gb,t:vb}=hm(),EUe=(e,t)=>{if(e instanceof yUe)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(gb[vb.COERCE]);else{let n;for(;(n=gb[vb.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),gb[vb.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;gb[vb.COERCERTL].lastIndex=-1}return r===null?null:xUe(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};Yae.exports=EUe});var roe=w((A1t,toe)=>{"use strict";d();var _Ue=h_(),lf=Symbol("max"),Ku=Symbol("length"),gm=Symbol("lengthCalculator"),kv=Symbol("allowStale"),pf=Symbol("maxAge"),zu=Symbol("dispose"),Jae=Symbol("noDisposeOnSet"),Gn=Symbol("lruList"),Za=Symbol("cache"),eoe=Symbol("updateAgeOnGet"),KL=()=>1,YL=class{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");let r=this[lf]=t.max||1/0,n=t.length||KL;if(this[gm]=typeof n!="function"?KL:n,this[kv]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[pf]=t.maxAge||0,this[zu]=t.dispose,this[Jae]=t.noDisposeOnSet||!1,this[eoe]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[lf]=t||1/0,Fv(this)}get max(){return this[lf]}set allowStale(t){this[kv]=!!t}get allowStale(){return this[kv]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[pf]=t,Fv(this)}get maxAge(){return this[pf]}set lengthCalculator(t){typeof t!="function"&&(t=KL),t!==this[gm]&&(this[gm]=t,this[Ku]=0,this[Gn].forEach(r=>{r.length=this[gm](r.value,r.key),this[Ku]+=r.length})),Fv(this)}get lengthCalculator(){return this[gm]}get length(){return this[Ku]}get itemCount(){return this[Gn].length}rforEach(t,r){r=r||this;for(let n=this[Gn].tail;n!==null;){let i=n.prev;Zae(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[Gn].head;n!==null;){let i=n.next;Zae(this,t,n,r),n=i}}keys(){return this[Gn].toArray().map(t=>t.key)}values(){return this[Gn].toArray().map(t=>t.value)}reset(){this[zu]&&this[Gn]&&this[Gn].length&&this[Gn].forEach(t=>this[zu](t.key,t.value)),this[Za]=new Map,this[Gn]=new _Ue,this[Ku]=0}dump(){return this[Gn].map(t=>yb(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[Gn]}set(t,r,n){if(n=n||this[pf],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let i=n?Date.now():0,s=this[gm](r,t);if(this[Za].has(t)){if(s>this[lf])return vm(this,this[Za].get(t)),!1;let u=this[Za].get(t).value;return this[zu]&&(this[Jae]||this[zu](t,u.value)),u.now=i,u.maxAge=n,u.value=r,this[Ku]+=s-u.length,u.length=s,this.get(t),Fv(this),!0}let a=new XL(t,r,s,i,n);return a.length>this[lf]?(this[zu]&&this[zu](t,r),!1):(this[Ku]+=a.length,this[Gn].unshift(a),this[Za].set(t,this[Gn].head),Fv(this),!0)}has(t){if(!this[Za].has(t))return!1;let r=this[Za].get(t).value;return!yb(this,r)}get(t){return $L(this,t,!0)}peek(t){return $L(this,t,!1)}pop(){let t=this[Gn].tail;return t?(vm(this,t),t.value):null}del(t){vm(this,this[Za].get(t))}load(t){this.reset();let r=Date.now();for(let n=t.length-1;n>=0;n--){let i=t[n],s=i.e||0;if(s===0)this.set(i.k,i.v);else{let a=s-r;a>0&&this.set(i.k,i.v,a)}}}prune(){this[Za].forEach((t,r)=>$L(this,r,!1))}},$L=(e,t,r)=>{let n=e[Za].get(t);if(n){let i=n.value;if(yb(e,i)){if(vm(e,n),!e[kv])return}else r&&(e[eoe]&&(n.value.now=Date.now()),e[Gn].unshiftNode(n));return i.value}},yb=(e,t)=>{if(!t||!t.maxAge&&!e[pf])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[pf]&&r>e[pf]},Fv=e=>{if(e[Ku]>e[lf])for(let t=e[Gn].tail;e[Ku]>e[lf]&&t!==null;){let r=t.prev;vm(e,t),t=r}},vm=(e,t)=>{if(t){let r=t.value;e[zu]&&e[zu](r.key,r.value),e[Ku]-=r.length,e[Za].delete(r.key),e[Gn].removeNode(t)}},XL=class{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}},Zae=(e,t,r,n)=>{let i=r.value;yb(e,i)&&(vm(e,r),e[kv]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};toe.exports=YL});var pa=w((S1t,aoe)=>{"use strict";d();var JL=class e{constructor(t,r){if(r=CUe(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof ZL)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!ioe(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&RUe(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(t=>t.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&TUe)|(this.options.loose&&IUe))+":"+t,i=noe.get(n);if(i)return i;let s=this.options.loose,a=s?as[ki.HYPHENRANGELOOSE]:as[ki.HYPHENRANGE];t=t.replace(a,qUe(this.options.includePrerelease)),kr("hyphen replace",t),t=t.replace(as[ki.COMPARATORTRIM],bUe),kr("comparator trim",t),t=t.replace(as[ki.TILDETRIM],DUe),kr("tilde trim",t),t=t.replace(as[ki.CARETTRIM],wUe),kr("caret trim",t);let o=t.split(" ").map(h=>NUe(h,this.options)).join(" ").split(/\s+/).map(h=>MUe(h,this.options));s&&(o=o.filter(h=>(kr("loose invalid filter",h,this.options),!!h.match(as[ki.COMPARATORLOOSE])))),kr("range list",o);let u=new Map,l=o.map(h=>new ZL(h,this.options));for(let h of l){if(ioe(h))return[h];u.set(h.value,h)}u.size>1&&u.has("")&&u.delete("");let f=[...u.values()];return noe.set(n,f),f}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>soe(n,r)&&t.set.some(i=>soe(i,r)&&n.every(s=>i.every(a=>s.intersects(a,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new SUe(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(jUe(this.set[r],t,this.options))return!0;return!1}};aoe.exports=JL;var AUe=roe(),noe=new AUe({max:1e3}),CUe=cb(),ZL=Uv(),kr=Bv(),SUe=Ai(),{safeRe:as,t:ki,comparatorTrimReplace:bUe,tildeTrimReplace:DUe,caretTrimReplace:wUe}=hm(),{FLAG_INCLUDE_PRERELEASE:TUe,FLAG_LOOSE:IUe}=Pv(),ioe=e=>e.value==="<0.0.0-0",RUe=e=>e.value==="",soe=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},NUe=(e,t)=>(kr("comp",e,t),e=BUe(e,t),kr("caret",e),e=OUe(e,t),kr("tildes",e),e=FUe(e,t),kr("xrange",e),e=UUe(e,t),kr("stars",e),e),Ui=e=>!e||e.toLowerCase()==="x"||e==="*",OUe=(e,t)=>e.trim().split(/\s+/).map(r=>PUe(r,t)).join(" "),PUe=(e,t)=>{let r=t.loose?as[ki.TILDELOOSE]:as[ki.TILDE];return e.replace(r,(n,i,s,a,o)=>{kr("tilde",e,n,i,s,a,o);let u;return Ui(i)?u="":Ui(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:Ui(a)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:o?(kr("replaceTilde pr",o),u=`>=${i}.${s}.${a}-${o} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${a} <${i}.${+s+1}.0-0`,kr("tilde return",u),u})},BUe=(e,t)=>e.trim().split(/\s+/).map(r=>LUe(r,t)).join(" "),LUe=(e,t)=>{kr("caret",e,t);let r=t.loose?as[ki.CARETLOOSE]:as[ki.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,a,o,u)=>{kr("caret",e,i,s,a,o,u);let l;return Ui(s)?l="":Ui(a)?l=`>=${s}.0.0${n} <${+s+1}.0.0-0`:Ui(o)?s==="0"?l=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.0${n} <${+s+1}.0.0-0`:u?(kr("replaceCaret pr",u),s==="0"?a==="0"?l=`>=${s}.${a}.${o}-${u} <${s}.${a}.${+o+1}-0`:l=`>=${s}.${a}.${o}-${u} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.${o}-${u} <${+s+1}.0.0-0`):(kr("no pr"),s==="0"?a==="0"?l=`>=${s}.${a}.${o}${n} <${s}.${a}.${+o+1}-0`:l=`>=${s}.${a}.${o}${n} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.${o} <${+s+1}.0.0-0`),kr("caret return",l),l})},FUe=(e,t)=>(kr("replaceXRanges",e,t),e.split(/\s+/).map(r=>kUe(r,t)).join(" ")),kUe=(e,t)=>{e=e.trim();let r=t.loose?as[ki.XRANGELOOSE]:as[ki.XRANGE];return e.replace(r,(n,i,s,a,o,u)=>{kr("xRange",e,n,i,s,a,o,u);let l=Ui(s),f=l||Ui(a),h=f||Ui(o),m=h;return i==="="&&m&&(i=""),u=t.includePrerelease?"-0":"",l?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&m?(f&&(a=0),o=0,i===">"?(i=">=",f?(s=+s+1,a=0,o=0):(a=+a+1,o=0)):i==="<="&&(i="<",f?s=+s+1:a=+a+1),i==="<"&&(u="-0"),n=`${i+s}.${a}.${o}${u}`):f?n=`>=${s}.0.0${u} <${+s+1}.0.0-0`:h&&(n=`>=${s}.${a}.0${u} <${s}.${+a+1}.0-0`),kr("xRange return",n),n})},UUe=(e,t)=>(kr("replaceStars",e,t),e.trim().replace(as[ki.STAR],"")),MUe=(e,t)=>(kr("replaceGTE0",e,t),e.trim().replace(as[t.includePrerelease?ki.GTE0PRE:ki.GTE0],"")),qUe=e=>(t,r,n,i,s,a,o,u,l,f,h,m,y)=>(Ui(n)?r="":Ui(i)?r=`>=${n}.0.0${e?"-0":""}`:Ui(s)?r=`>=${n}.${i}.0${e?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,Ui(l)?u="":Ui(f)?u=`<${+l+1}.0.0-0`:Ui(h)?u=`<${l}.${+f+1}.0-0`:m?u=`<=${l}.${f}.${h}-${m}`:e?u=`<${l}.${f}.${+h+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),jUe=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(kr(e[n].semver),e[n].semver!==ZL.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}});var Uv=w((D1t,foe)=>{"use strict";d();var Mv=Symbol("SemVer ANY"),rF=class e{static get ANY(){return Mv}constructor(t,r){if(r=ooe(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),tF("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===Mv?this.value="":this.value=this.operator+this.semver.version,tF("comp",this)}parse(t){let r=this.options.loose?uoe[coe.COMPARATORLOOSE]:uoe[coe.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new loe(n[2],this.options.loose):this.semver=Mv}toString(){return this.value}test(t){if(tF("Comparator.test",t,this.options.loose),this.semver===Mv||t===Mv)return!0;if(typeof t=="string")try{t=new loe(t,this.options)}catch{return!1}return eF(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new poe(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new poe(this.value,r).test(t.semver):(r=ooe(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||eF(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||eF(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};foe.exports=rF;var ooe=cb(),{safeRe:uoe,t:coe}=hm(),eF=zL(),tF=Bv(),loe=Ai(),poe=pa()});var qv=w((T1t,doe)=>{"use strict";d();var VUe=pa(),HUe=(e,t,r)=>{try{t=new VUe(t,r)}catch{return!1}return t.test(e)};doe.exports=HUe});var moe=w((R1t,hoe)=>{"use strict";d();var GUe=pa(),WUe=(e,t)=>new GUe(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));hoe.exports=WUe});var voe=w((O1t,goe)=>{"use strict";d();var QUe=Ai(),zUe=pa(),KUe=(e,t,r)=>{let n=null,i=null,s=null;try{s=new zUe(t,r)}catch{return null}return e.forEach(a=>{s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new QUe(n,r))}),n};goe.exports=KUe});var xoe=w((B1t,yoe)=>{"use strict";d();var $Ue=Ai(),YUe=pa(),XUe=(e,t,r)=>{let n=null,i=null,s=null;try{s=new YUe(t,r)}catch{return null}return e.forEach(a=>{s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new $Ue(n,r))}),n};yoe.exports=XUe});var Aoe=w((F1t,_oe)=>{"use strict";d();var nF=Ai(),JUe=pa(),Eoe=Lv(),ZUe=(e,t)=>{e=new JUe(e,t);let r=new nF("0.0.0");if(e.test(r)||(r=new nF("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let i=e.set[n],s=null;i.forEach(a=>{let o=new nF(a.semver.version);switch(a.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!s||Eoe(o,s))&&(s=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!r||Eoe(r,s))&&(r=s)}return r&&e.test(r)?r:null};_oe.exports=ZUe});var Soe=w((U1t,Coe)=>{"use strict";d();var e6e=pa(),t6e=(e,t)=>{try{return new e6e(e,t).range||"*"}catch{return null}};Coe.exports=t6e});var xb=w((q1t,Toe)=>{"use strict";d();var r6e=Ai(),woe=Uv(),{ANY:n6e}=woe,i6e=pa(),s6e=qv(),boe=Lv(),Doe=db(),a6e=mb(),o6e=hb(),u6e=(e,t,r,n)=>{e=new r6e(e,n),t=new i6e(t,n);let i,s,a,o,u;switch(r){case">":i=boe,s=a6e,a=Doe,o=">",u=">=";break;case"<":i=Doe,s=o6e,a=boe,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s6e(e,t,n))return!1;for(let l=0;l<t.set.length;++l){let f=t.set[l],h=null,m=null;if(f.forEach(y=>{y.semver===n6e&&(y=new woe(">=0.0.0")),h=h||y,m=m||y,i(y.semver,h.semver,n)?h=y:a(y.semver,m.semver,n)&&(m=y)}),h.operator===o||h.operator===u||(!m.operator||m.operator===o)&&s(e,m.semver))return!1;if(m.operator===u&&a(e,m.semver))return!1}return!0};Toe.exports=u6e});var Roe=w((V1t,Ioe)=>{"use strict";d();var c6e=xb(),l6e=(e,t,r)=>c6e(e,t,">",r);Ioe.exports=l6e});var Ooe=w((G1t,Noe)=>{"use strict";d();var p6e=xb(),f6e=(e,t,r)=>p6e(e,t,"<",r);Noe.exports=f6e});var Loe=w((Q1t,Boe)=>{"use strict";d();var Poe=pa(),d6e=(e,t,r)=>(e=new Poe(e,r),t=new Poe(t,r),e.intersects(t,r));Boe.exports=d6e});var koe=w((K1t,Foe)=>{"use strict";d();var h6e=qv(),m6e=la();Foe.exports=(e,t,r)=>{let n=[],i=null,s=null,a=e.sort((f,h)=>m6e(f,h,r));for(let f of a)h6e(f,t,r)?(s=f,i||(i=f)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let o=[];for(let[f,h]of n)f===h?o.push(f):!h&&f===a[0]?o.push("*"):h?f===a[0]?o.push(`<=${h}`):o.push(`${f} - ${h}`):o.push(`>=${f}`);let u=o.join(" || "),l=typeof t.raw=="string"?t.raw:String(t);return u.length<l.length?u:t}});var Hoe=w((Y1t,Voe)=>{"use strict";d();var Uoe=pa(),sF=Uv(),{ANY:iF}=sF,jv=qv(),aF=la(),g6e=(e,t,r={})=>{if(e===t)return!0;e=new Uoe(e,r),t=new Uoe(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let a=y6e(i,s,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},v6e=[new sF(">=0.0.0-0")],Moe=[new sF(">=0.0.0")],y6e=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===iF){if(t.length===1&&t[0].semver===iF)return!0;r.includePrerelease?e=v6e:e=Moe}if(t.length===1&&t[0].semver===iF){if(r.includePrerelease)return!0;t=Moe}let n=new Set,i,s;for(let y of e)y.operator===">"||y.operator===">="?i=qoe(i,y,r):y.operator==="<"||y.operator==="<="?s=joe(s,y,r):n.add(y.semver);if(n.size>1)return null;let a;if(i&&s){if(a=aF(i.semver,s.semver,r),a>0)return null;if(a===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let y of n){if(i&&!jv(y,String(i),r)||s&&!jv(y,String(s),r))return null;for(let _ of t)if(!jv(y,String(_),r))return!1;return!0}let o,u,l,f,h=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,m=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;h&&h.prerelease.length===1&&s.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let y of t){if(f=f||y.operator===">"||y.operator===">=",l=l||y.operator==="<"||y.operator==="<=",i){if(m&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===m.major&&y.semver.minor===m.minor&&y.semver.patch===m.patch&&(m=!1),y.operator===">"||y.operator===">="){if(o=qoe(i,y,r),o===y&&o!==i)return!1}else if(i.operator===">="&&!jv(i.semver,String(y),r))return!1}if(s){if(h&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===h.major&&y.semver.minor===h.minor&&y.semver.patch===h.patch&&(h=!1),y.operator==="<"||y.operator==="<="){if(u=joe(s,y,r),u===y&&u!==s)return!1}else if(s.operator==="<="&&!jv(s.semver,String(y),r))return!1}if(!y.operator&&(s||i)&&a!==0)return!1}return!(i&&l&&!s&&a!==0||s&&f&&!i&&a!==0||m||h)},qoe=(e,t,r)=>{if(!e)return t;let n=aF(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},joe=(e,t,r)=>{if(!e)return t;let n=aF(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};Voe.exports=g6e});var zoe=w((J1t,Qoe)=>{"use strict";d();var oF=hm(),Goe=Pv(),x6e=Ai(),Woe=HL(),E6e=cf(),_6e=hae(),A6e=gae(),C6e=xae(),S6e=Aae(),b6e=Sae(),D6e=Dae(),w6e=Tae(),T6e=Rae(),I6e=la(),R6e=Bae(),N6e=Fae(),O6e=fb(),P6e=qae(),B6e=Vae(),L6e=Lv(),F6e=db(),k6e=WL(),U6e=QL(),M6e=hb(),q6e=mb(),j6e=zL(),V6e=Xae(),H6e=Uv(),G6e=pa(),W6e=qv(),Q6e=moe(),z6e=voe(),K6e=xoe(),$6e=Aoe(),Y6e=Soe(),X6e=xb(),J6e=Roe(),Z6e=Ooe(),eMe=Loe(),tMe=koe(),rMe=Hoe();Qoe.exports={parse:E6e,valid:_6e,clean:A6e,inc:C6e,diff:S6e,major:b6e,minor:D6e,patch:w6e,prerelease:T6e,compare:I6e,rcompare:R6e,compareLoose:N6e,compareBuild:O6e,sort:P6e,rsort:B6e,gt:L6e,lt:F6e,eq:k6e,neq:U6e,gte:M6e,lte:q6e,cmp:j6e,coerce:V6e,Comparator:H6e,Range:G6e,satisfies:W6e,toComparators:Q6e,maxSatisfying:z6e,minSatisfying:K6e,minVersion:$6e,validRange:Y6e,outside:X6e,gtr:J6e,ltr:Z6e,intersects:eMe,simplifyRange:tMe,subset:rMe,SemVer:x6e,re:oF.re,src:oF.src,tokens:oF.t,SEMVER_SPEC_VERSION:Goe.SEMVER_SPEC_VERSION,RELEASE_TYPES:Goe.RELEASE_TYPES,compareIdentifiers:Woe.compareIdentifiers,rcompareIdentifiers:Woe.rcompareIdentifiers}});d();d();d();var o3=Ce(a3(),1),{program:IMe,createCommand:Ps,createArgument:RMe,createOption:NMe,CommanderError:OMe,InvalidArgumentError:zm,InvalidOptionArgumentError:PMe,Command:BMe,Argument:LMe,Option:u3,Help:FMe}=o3.default;var Hy="1.0.89";d();import{cwd as Fke}from"node:process";import{build as kke}from"vite";d();d();d();var v3=Ce(qf(),1),{WError:Dce}=v3.default,we=class extends Dce{code;constructor(t){let r=t.cause instanceof Error?t.cause:new Error(JSON.stringify(t.cause));super({name:t.code.type,cause:r,info:t.info},t.code.type),this.code=t.code,this.name=t.code.type}};d();var Tt=Ce(St(),1),ox=(0,Tt.variant)({FailedToGetDeviceCode:{},FailedToGetAuthToken:{},FailedToRenewAuthToken:{},FailedToRefreshTokenForSite:{},FailedToRevokeRefreshToken:(0,Tt.fields)(),UnknownFailure:(0,Tt.fields)(),FailedToFetchPackageJson:{},FailedToGetDeveloperApps:{},FailedToUpdateTelemetryConfig:{},FailedToSyncToRevision:(0,Tt.fields)(),FailedToCreateVersion:{},UploadApplicationFailed:{},FailedToCreateDevCenterApp:{},GridAppFailedToUpdateFiles:{},FailedToCreateGridApp:{},FailedToGetPackageDetails:{},InvalidCreateAppResponse:{},InvalidDeployAppResponse:{},FailedToGetPagesDiff:{},InvalidViteBuildOutput:{},ViteModuleBundleNotFound:{},FailedToCreatePresignedUrl:{},FailedToUploadApplicationFiles:{},FailedToVerifyDeployment:{},FailedToGetUserInfo:{},FailedToCreateDevelopmentSite:{},FailedToGetDevelopmentSites:{},FailedToGetDevelopmentSitesLimit:{},FailedToQuerySites:{},FailedToGetSite:{},FailedToDeploySite:{},SiteNotFound:{},FailedToCheckIfAppInstalled:{},TypeErrorInvalidUrl:{},FailedToGenerateSelfsignedCertificate:{},FailedToResolveViteOrigin:{},FailedToCreateAppRelease:{},FailedToUpdateAppRelease:{},FailedToGetResolveNpmDependenciesResult:{},FailedToResolveNpmDependencies:{}}),gD=(0,Tt.variant)({LatestVersionOfCreateAppRequired:(0,Tt.fields)(),EmptyDirectoryRequiredAppGeneration:(0,Tt.fields)(),InvalidNewPackageName:(0,Tt.fields)(),UnsupportedPackageManager:(0,Tt.fields)(),UnsupportedPackageManagerWorkspaces:(0,Tt.fields)(),FailedAddingPackageToWorkspace:{},AppPermissionDenied:(0,Tt.fields)(),BuiltProjectNeeded:{},UnsupportedWixInstallCommand:{},UnsupportedWixUpdateCommand:{},WixUninstallMissingPackageName:{},FailedToReadJson:(0,Tt.fields)(),FailedToWriteJson:(0,Tt.fields)(),InvalidJsonFile:(0,Tt.fields)(),FailedToWriteWixLock:{},InvalidVeloConfigJson:(0,Tt.fields)(),DashboardPageConfigNotFound:(0,Tt.fields)(),NoDashboardPagesFound:(0,Tt.fields)(),NoPagesDirectoryFound:(0,Tt.fields)(),DashboardWidgetConfigNotFound:(0,Tt.fields)(),InvalidConfigSchemaError:(0,Tt.fields)(),PermissionDenied:{},SiteSelectorTimedout:{},FailedToReadProjectFiles:(0,Tt.fields)(),FailedToCreateVersionForSubmittedApp:{},GridAppFilesMaxLengthExcceeded:(0,Tt.fields)(),DeviceCodeTimedOut:{},DuplicateComponentIdsError:(0,Tt.fields)(),FailedToSaveDevelopmentSite:(0,Tt.fields)(),FailedToBuildApp:{},FailedToInitializeGitRepo:(0,Tt.fields)(),FailedToInstallDependencies:(0,Tt.fields)(),FailedToCommitChanges:(0,Tt.fields)(),FailedToDeleteAuthData:(0,Tt.fields)(),FailedToDeleteLegacyAuthData:(0,Tt.fields)(),FailedToSaveAuthData:(0,Tt.fields)(),FailedToRenewAuthTokenSiteNotFound:(0,Tt.fields)(),FailedToInstallPackage:(0,Tt.fields)(),FailedToInstallPackages:(0,Tt.fields)(),FailedToUninstallPackage:(0,Tt.fields)(),TemplatePathNotFound:(0,Tt.fields)(),FailedToCloneRepo:(0,Tt.fields)(),InvalidGitUrl:(0,Tt.fields)(),AuthenticationRequired:{},SiteConfiguredRequired:{},NonInteractiveTerminal:{},FailedToWatchFiles:(0,Tt.fields)()}),Re=(0,Tt.variant)({...ox,...gD});d();var vD=Ce(St(),1);function kl(e){return e&&typeof e=="object"&&"code"in e?(0,vD.isOfVariant)(e.code,Re):!1}function Hf(e){return(0,vD.isOfVariant)(e.code,ox)}d();var q3=Ce(St(),1),j3=Ce(qf(),1);function V3(e){if(kl(e)&&(0,q3.isOfVariant)(e.code,gD))return e;let t=j3.default.cause(e);return t?V3(t):null}function yD(e){let t=kl(e)?e:new we({code:Re.UnknownFailure({error:e})});return V3(t)??t}d();d();d();import{Stream as xde}from"node:stream";import kx from"node:process";d();var vw=Ce(_8(),1);import k6 from"node:process";import yde from"react";d();import CD from"node:process";var hr="\x1B[",eg="\x1B]",Gf="\x07",Zm=";",A8=CD.env.TERM_PROGRAM==="Apple_Terminal",zt={};zt.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?hr+(e+1)+"G":hr+(t+1)+Zm+(e+1)+"H"};zt.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=hr+-e+"D":e>0&&(r+=hr+e+"C"),t<0?r+=hr+-t+"A":t>0&&(r+=hr+t+"B"),r};zt.cursorUp=(e=1)=>hr+e+"A";zt.cursorDown=(e=1)=>hr+e+"B";zt.cursorForward=(e=1)=>hr+e+"C";zt.cursorBackward=(e=1)=>hr+e+"D";zt.cursorLeft=hr+"G";zt.cursorSavePosition=A8?"\x1B7":hr+"s";zt.cursorRestorePosition=A8?"\x1B8":hr+"u";zt.cursorGetPosition=hr+"6n";zt.cursorNextLine=hr+"E";zt.cursorPrevLine=hr+"F";zt.cursorHide=hr+"?25l";zt.cursorShow=hr+"?25h";zt.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=zt.eraseLine+(r<e-1?zt.cursorUp():"");return e&&(t+=zt.cursorLeft),t};zt.eraseEndLine=hr+"K";zt.eraseStartLine=hr+"1K";zt.eraseLine=hr+"2K";zt.eraseDown=hr+"J";zt.eraseUp=hr+"1J";zt.eraseScreen=hr+"2J";zt.scrollUp=hr+"S";zt.scrollDown=hr+"T";zt.clearScreen="\x1Bc";zt.clearTerminal=CD.platform==="win32"?`${zt.eraseScreen}${hr}0f`:`${zt.eraseScreen}${hr}3J${hr}H`;zt.beep=Gf;zt.link=(e,t)=>[eg,"8",Zm,Zm,t,Gf,e,eg,"8",Zm,Zm,Gf].join("");zt.image=(e,t={})=>{let r=`${eg}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+Gf};zt.iTerm={setCwd:(e=CD.cwd())=>`${eg}50;CurrentDir=${e}${Gf}`,annotation(e,t={}){let r=`${eg}1337;`,n=typeof t.x<"u",i=typeof t.y<"u";if((n||i)&&!(n&&i&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+Gf}};var tg=zt;var U6=Ce(SD(),1);d();var Tpe=e=>{let t=new Set;do for(let r of Reflect.ownKeys(e))t.add([e,r]);while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return t};function bD(e,{include:t,exclude:r}={}){let n=i=>{let s=a=>typeof a=="string"?i===a:a.test(i);return t?t.some(s):r?!r.some(s):!0};for(let[i,s]of Tpe(e.constructor.prototype)){if(s==="constructor"||!n(s))continue;let a=Reflect.getOwnPropertyDescriptor(i,s);a&&typeof a.value=="function"&&(e[s]=e[s].bind(e))}return e}var M6=Ce(TD(),1);d();import{PassThrough as P8}from"node:stream";var B8=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],ID={},Ipe=e=>{let t=new P8,r=new P8;t.write=i=>{e("stdout",i)},r.write=i=>{e("stderr",i)};let n=new console.Console(t,r);for(let i of B8)ID[i]=console[i],console[i]=n[i];return()=>{for(let i of B8)console[i]=ID[i];ID={}}},L8=Ipe;d();import{readFile as Npe}from"node:fs/promises";import{createRequire as Ope}from"node:module";d();d();var Pe={},F8=Pe.ALIGN_AUTO=0,k8=Pe.ALIGN_FLEX_START=1,U8=Pe.ALIGN_CENTER=2,M8=Pe.ALIGN_FLEX_END=3,q8=Pe.ALIGN_STRETCH=4,j8=Pe.ALIGN_BASELINE=5,V8=Pe.ALIGN_SPACE_BETWEEN=6,H8=Pe.ALIGN_SPACE_AROUND=7,G8=Pe.DIMENSION_WIDTH=0,W8=Pe.DIMENSION_HEIGHT=1,Q8=Pe.DIRECTION_INHERIT=0,z8=Pe.DIRECTION_LTR=1,K8=Pe.DIRECTION_RTL=2,$8=Pe.DISPLAY_FLEX=0,Y8=Pe.DISPLAY_NONE=1,X8=Pe.EDGE_LEFT=0,J8=Pe.EDGE_TOP=1,Z8=Pe.EDGE_RIGHT=2,e4=Pe.EDGE_BOTTOM=3,t4=Pe.EDGE_START=4,r4=Pe.EDGE_END=5,n4=Pe.EDGE_HORIZONTAL=6,i4=Pe.EDGE_VERTICAL=7,s4=Pe.EDGE_ALL=8,a4=Pe.EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS=0,o4=Pe.EXPERIMENTAL_FEATURE_ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE=1,u4=Pe.EXPERIMENTAL_FEATURE_FIX_ABSOLUTE_TRAILING_COLUMN_MARGIN=2,c4=Pe.FLEX_DIRECTION_COLUMN=0,l4=Pe.FLEX_DIRECTION_COLUMN_REVERSE=1,p4=Pe.FLEX_DIRECTION_ROW=2,f4=Pe.FLEX_DIRECTION_ROW_REVERSE=3,d4=Pe.GUTTER_COLUMN=0,h4=Pe.GUTTER_ROW=1,m4=Pe.GUTTER_ALL=2,g4=Pe.JUSTIFY_FLEX_START=0,v4=Pe.JUSTIFY_CENTER=1,y4=Pe.JUSTIFY_FLEX_END=2,x4=Pe.JUSTIFY_SPACE_BETWEEN=3,E4=Pe.JUSTIFY_SPACE_AROUND=4,_4=Pe.JUSTIFY_SPACE_EVENLY=5,A4=Pe.LOG_LEVEL_ERROR=0,C4=Pe.LOG_LEVEL_WARN=1,S4=Pe.LOG_LEVEL_INFO=2,b4=Pe.LOG_LEVEL_DEBUG=3,D4=Pe.LOG_LEVEL_VERBOSE=4,w4=Pe.LOG_LEVEL_FATAL=5,T4=Pe.MEASURE_MODE_UNDEFINED=0,I4=Pe.MEASURE_MODE_EXACTLY=1,R4=Pe.MEASURE_MODE_AT_MOST=2,N4=Pe.NODE_TYPE_DEFAULT=0,O4=Pe.NODE_TYPE_TEXT=1,P4=Pe.OVERFLOW_VISIBLE=0,B4=Pe.OVERFLOW_HIDDEN=1,L4=Pe.OVERFLOW_SCROLL=2,F4=Pe.POSITION_TYPE_STATIC=0,k4=Pe.POSITION_TYPE_RELATIVE=1,U4=Pe.POSITION_TYPE_ABSOLUTE=2,M4=Pe.PRINT_OPTIONS_LAYOUT=1,q4=Pe.PRINT_OPTIONS_STYLE=2,j4=Pe.PRINT_OPTIONS_CHILDREN=4,V4=Pe.UNIT_UNDEFINED=0,H4=Pe.UNIT_POINT=1,G4=Pe.UNIT_PERCENT=2,W4=Pe.UNIT_AUTO=3,Q4=Pe.WRAP_NO_WRAP=0,z4=Pe.WRAP_WRAP=1,K4=Pe.WRAP_WRAP_REVERSE=2;var $4=e=>{function t(i,s,a){let o=i[s];i[s]=function(...u){return a.call(this,o,...u)}}for(let i of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding"]){let s={[Pe.UNIT_POINT]:e.Node.prototype[i],[Pe.UNIT_PERCENT]:e.Node.prototype[`${i}Percent`],[Pe.UNIT_AUTO]:e.Node.prototype[`${i}Auto`]};t(e.Node.prototype,i,function(a,...o){let u,l,f=o.pop();if(f==="auto")u=Pe.UNIT_AUTO,l=void 0;else if(typeof f=="object")u=f.unit,l=f.valueOf();else if(u=typeof f=="string"&&f.endsWith("%")?Pe.UNIT_PERCENT:Pe.UNIT_POINT,l=parseFloat(f),!Number.isNaN(f)&&Number.isNaN(l))throw Error(`Invalid value ${f} for ${i}`);if(!s[u])throw Error(`Failed to execute "${i}": Unsupported unit '${f}'`);return l!==void 0?s[u].call(this,...o,l):s[u].call(this,...o)})}function r(i){return e.MeasureCallback.implement({measure:(...s)=>{let{width:a,height:o}=i(...s);return{width:a??NaN,height:o??NaN}}})}function n(i){return e.DirtiedCallback.implement({dirtied:i})}return t(e.Node.prototype,"setMeasureFunc",function(i,s){return s?i.call(this,r(s)):this.unsetMeasureFunc()}),t(e.Node.prototype,"setDirtiedFunc",function(i,s){i.call(this,n(s))}),t(e.Config.prototype,"free",function(){e.Config.destroy(this)}),t(e.Node,"create",(i,s)=>s?e.Node.createWithConfig(s):e.Node.createDefault()),t(e.Node.prototype,"free",function(){e.Node.destroy(this)}),t(e.Node.prototype,"freeRecursive",function(){for(let i=0,s=this.getChildCount();i<s;++i)this.getChild(0).freeRecursive();this.free()}),t(e.Node.prototype,"calculateLayout",function(i,s=NaN,a=NaN,o=Pe.DIRECTION_LTR){return i.call(this,s,a,o)}),{Config:e.Config,Node:e.Node,...Pe}};var Rpe=(()=>{var e=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(t={}){u||(u=t!==void 0?t:{}),u.ready=new Promise(function(B,P){l=B,f=P});var r,n,i=Object.assign({},u),s="";typeof document<"u"&&document.currentScript&&(s=document.currentScript.src),e&&(s=e),s=s.indexOf("blob:")!==0?s.substr(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var a=console.log.bind(console),o=console.warn.bind(console);Object.assign(u,i),i=null,typeof WebAssembly!="object"&&Ie("no native wasm support detected");var u,l,f,h,m=!1;function y(B,P,$){$=P+$;for(var Z="";!(P>=$);){var Y=B[P++];if(!Y)break;if(128&Y){var ie=63&B[P++];if((224&Y)==192)Z+=String.fromCharCode((31&Y)<<6|ie);else{var xe=63&B[P++];65536>(Y=(240&Y)==224?(15&Y)<<12|ie<<6|xe:(7&Y)<<18|ie<<12|xe<<6|63&B[P++])?Z+=String.fromCharCode(Y):(Y-=65536,Z+=String.fromCharCode(55296|Y>>10,56320|1023&Y))}}else Z+=String.fromCharCode(Y)}return Z}function _(){var B=h.buffer;u.HEAP8=C=new Int8Array(B),u.HEAP16=D=new Int16Array(B),u.HEAP32=F=new Int32Array(B),u.HEAPU8=b=new Uint8Array(B),u.HEAPU16=L=new Uint16Array(B),u.HEAPU32=q=new Uint32Array(B),u.HEAPF32=M=new Float32Array(B),u.HEAPF64=k=new Float64Array(B)}var C,b,D,L,F,q,M,k,te,ce=[],ne=[],pe=[],Q=0,be=null;function Ie(B){throw o(B="Aborted("+B+")"),m=!0,f(B=new WebAssembly.RuntimeError(B+". Build with -sASSERTIONS for more info.")),B}function et(){return r.startsWith("data:application/octet-stream;base64,")}function j(){try{throw"both async and sync fetching of the wasm failed"}catch(B){Ie(B)}}function z(B){for(;0<B.length;)B.shift()(u)}function oe(B){if(B===void 0)return"_unknown";var P=(B=B.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=P&&57>=P?"_"+B:B}function ve(B,P){return B=oe(B),function(){return P.apply(this,arguments)}}r="yoga.wasm",et()||(r=s+r);var Ve=[{},{value:void 0},{value:null},{value:!0},{value:!1}],dt=[];function ht(B){var P=Error,$=ve(B,function(Z){this.name=B,this.message=Z,(Z=Error(Z).stack)!==void 0&&(this.stack=this.toString()+`
|
|
76
|
-
`+Z.replace(/^Error(:[^\n]*)?\n/,""))});return $.prototype=Object.create(P.prototype),$.prototype.constructor=$,$.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},$}var Lt=void 0;function Je(B){throw new Lt(B)}var er=B=>(B||Je("Cannot use deleted val. handle = "+B),Ve[B].value),vt=B=>{switch(B){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var P=dt.length?dt.pop():Ve.length;return Ve[P]={fa:1,value:B},P}},Ze=void 0,Er=void 0;function Ft(B){for(var P="";b[B];)P+=Er[b[B++]];return P}var Ee=[];function ut(){for(;Ee.length;){var B=Ee.pop();B.L.Z=!1,B.delete()}}var le=void 0,Ue={};function tt(B,P){for(P===void 0&&Je("ptr should not be undefined");B.P;)P=B.aa(P),B=B.P;return P}var Ct={};function wt(B){var P=Ft(B=$v(B));return ma(B),P}function $u(B,P){var $=Ct[B];return $===void 0&&Je(P+" has unknown type "+wt(B)),$}function fa(){}var ym=!1;function Vv(B){--B.count.value,B.count.value===0&&(B.S?B.T.V(B.S):B.O.M.V(B.N))}var Yu={},Hv=void 0;function df(B){throw new Hv(B)}function hf(B,P){return P.O&&P.N||df("makeClassHandle requires ptr and ptrType"),!!P.T!=!!P.S&&df("Both smartPtrType and smartPtr must be specified"),P.count={value:1},Ss(Object.create(B,{L:{value:P}}))}function Ss(B){return typeof FinalizationRegistry>"u"?(Ss=P=>P,B):(ym=new FinalizationRegistry(P=>{Vv(P.L)}),Ss=P=>{var $=P.L;return $.S&&ym.register(P,{L:$},P),P},fa=P=>{ym.unregister(P)},Ss(B))}var mf={};function xm(B){for(;B.length;){var P=B.pop();B.pop()(P)}}function Al(B){return this.fromWireType(F[B>>2])}var Xu={},gf={};function to(B,P,$){function Z(fe){(fe=$(fe)).length!==B.length&&df("Mismatched type converter count");for(var _e=0;_e<B.length;++_e)da(B[_e],fe[_e])}B.forEach(function(fe){gf[fe]=P});var Y=Array(P.length),ie=[],xe=0;P.forEach((fe,_e)=>{Ct.hasOwnProperty(fe)?Y[_e]=Ct[fe]:(ie.push(fe),Xu.hasOwnProperty(fe)||(Xu[fe]=[]),Xu[fe].push(()=>{Y[_e]=Ct[fe],++xe===ie.length&&Z(Y)}))}),ie.length===0&&Z(Y)}function Em(B){switch(B){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw TypeError("Unknown type size: "+B)}}function da(B,P,$={}){if(!("argPackAdvance"in P))throw TypeError("registerType registeredInstance requires argPackAdvance");var Z=P.name;if(B||Je('type "'+Z+'" must have a positive integer typeid pointer'),Ct.hasOwnProperty(B)){if($.ta)return;Je("Cannot register type '"+Z+"' twice")}Ct[B]=P,delete gf[B],Xu.hasOwnProperty(B)&&(P=Xu[B],delete Xu[B],P.forEach(Y=>Y()))}function _m(B){Je(B.L.O.M.name+" instance already deleted")}function ro(){}function Am(B,P,$){if(B[P].R===void 0){var Z=B[P];B[P]=function(){return B[P].R.hasOwnProperty(arguments.length)||Je("Function '"+$+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+B[P].R+")!"),B[P].R[arguments.length].apply(this,arguments)},B[P].R=[],B[P].R[Z.Y]=Z}}function _b(B,P,$,Z,Y,ie,xe,fe){this.name=B,this.constructor=P,this.W=$,this.V=Z,this.P=Y,this.oa=ie,this.aa=xe,this.ma=fe,this.ia=[]}function vf(B,P,$){for(;P!==$;)P.aa||Je("Expected null or instance of "+$.name+", got an instance of "+P.name),B=P.aa(B),P=P.P;return B}function Ab(B,P){return P===null?(this.da&&Je("null is not a valid "+this.name),0):(P.L||Je('Cannot pass "'+Sm(P)+'" as a '+this.name),P.L.N||Je("Cannot pass deleted object as a pointer of type "+this.name),vf(P.L.N,P.L.O.M,this.M))}function Cb(B,P){if(P===null){if(this.da&&Je("null is not a valid "+this.name),this.ca){var $=this.ea();return B!==null&&B.push(this.V,$),$}return 0}if(P.L||Je('Cannot pass "'+Sm(P)+'" as a '+this.name),P.L.N||Je("Cannot pass deleted object as a pointer of type "+this.name),!this.ba&&P.L.O.ba&&Je("Cannot convert argument of type "+(P.L.T?P.L.T.name:P.L.O.name)+" to parameter type "+this.name),$=vf(P.L.N,P.L.O.M,this.M),this.ca)switch(P.L.S===void 0&&Je("Passing raw pointer to smart pointer is illegal"),this.Aa){case 0:P.L.T===this?$=P.L.S:Je("Cannot convert argument of type "+(P.L.T?P.L.T.name:P.L.O.name)+" to parameter type "+this.name);break;case 1:$=P.L.S;break;case 2:if(P.L.T===this)$=P.L.S;else{var Z=P.clone();$=this.wa($,vt(function(){Z.delete()})),B!==null&&B.push(this.V,$)}break;default:Je("Unsupporting sharing policy")}return $}function Sb(B,P){return P===null?(this.da&&Je("null is not a valid "+this.name),0):(P.L||Je('Cannot pass "'+Sm(P)+'" as a '+this.name),P.L.N||Je("Cannot pass deleted object as a pointer of type "+this.name),P.L.O.ba&&Je("Cannot convert argument of type "+P.L.O.name+" to parameter type "+this.name),vf(P.L.N,P.L.O.M,this.M))}function ha(B,P,$,Z){this.name=B,this.M=P,this.da=$,this.ba=Z,this.ca=!1,this.V=this.wa=this.ea=this.ja=this.Aa=this.va=void 0,P.P!==void 0?this.toWireType=Cb:(this.toWireType=Z?Ab:Sb,this.U=null)}var yf=[];function Gv(B){var P=yf[B];return P||(B>=yf.length&&(yf.length=B+1),yf[B]=P=te.get(B)),P}function Mi(B,P){var $,Z,Y=(B=Ft(B)).includes("j")?($=B,Z=[],function(){if(Z.length=0,Object.assign(Z,arguments),$.includes("j")){var ie=u["dynCall_"+$];ie=Z&&Z.length?ie.apply(null,[P].concat(Z)):ie.call(null,P)}else ie=Gv(P).apply(null,Z);return ie}):Gv(P);return typeof Y!="function"&&Je("unknown function pointer with signature "+B+": "+P),Y}var Cm=void 0;function xf(B,P){var $=[],Z={};throw P.forEach(function Y(ie){Z[ie]||Ct[ie]||(gf[ie]?gf[ie].forEach(Y):($.push(ie),Z[ie]=!0))}),new Cm(B+": "+$.map(wt).join([", "]))}function Cl(B,P,$,Z,Y){var ie=P.length;2>ie&&Je("argTypes array size mismatch! Must at least get return value and 'this' types!");var xe=P[1]!==null&&$!==null,fe=!1;for($=1;$<P.length;++$)if(P[$]!==null&&P[$].U===void 0){fe=!0;break}var _e=P[0].name!=="void",he=ie-2,De=Array(he),Ye=[],Xe=[];return function(){if(arguments.length!==he&&Je("function "+B+" called with "+arguments.length+" arguments, expected "+he+" args!"),Xe.length=0,Ye.length=xe?2:1,Ye[0]=Y,xe){var Bt=P[1].toWireType(Xe,this);Ye[1]=Bt}for(var pt=0;pt<he;++pt)De[pt]=P[pt+2].toWireType(Xe,arguments[pt]),Ye.push(De[pt]);if(pt=Z.apply(null,Ye),fe)xm(Xe);else for(var Yt=xe?1:2;Yt<P.length;Yt++){var qi=Yt===1?Bt:De[Yt-2];P[Yt].U!==null&&P[Yt].U(qi)}return _e?P[0].fromWireType(pt):void 0}}function Ef(B,P){for(var $=[],Z=0;Z<B;Z++)$.push(q[P+4*Z>>2]);return $}function _f(B){4<B&&--Ve[B].fa==0&&(Ve[B]=void 0,dt.push(B))}function Sm(B){if(B===null)return"null";var P=typeof B;return P==="object"||P==="array"||P==="function"?B.toString():""+B}function bb(B,P){for(var $="",Z=0;!(Z>=P/2);++Z){var Y=D[B+2*Z>>1];if(Y==0)break;$+=String.fromCharCode(Y)}return $}function Db(B,P,$){if($===void 0&&($=2147483647),2>$)return 0;$-=2;var Z=P;$=$<2*B.length?$/2:B.length;for(var Y=0;Y<$;++Y)D[P>>1]=B.charCodeAt(Y),P+=2;return D[P>>1]=0,P-Z}function Wv(B){return 2*B.length}function bm(B,P){for(var $=0,Z="";!($>=P/4);){var Y=F[B+4*$>>2];if(Y==0)break;++$,65536<=Y?(Y-=65536,Z+=String.fromCharCode(55296|Y>>10,56320|1023&Y)):Z+=String.fromCharCode(Y)}return Z}function wb(B,P,$){if($===void 0&&($=2147483647),4>$)return 0;var Z=P;$=Z+$-4;for(var Y=0;Y<B.length;++Y){var ie=B.charCodeAt(Y);if(55296<=ie&&57343>=ie&&(ie=65536+((1023&ie)<<10)|1023&B.charCodeAt(++Y)),F[P>>2]=ie,(P+=4)+4>$)break}return F[P>>2]=0,P-Z}function Tb(B){for(var P=0,$=0;$<B.length;++$){var Z=B.charCodeAt($);55296<=Z&&57343>=Z&&++$,P+=4}return P}var Af={};function Qv(B){var P=Af[B];return P===void 0?Ft(B):P}var Cf=[],zv=[],Ib=[null,[],[]];Lt=u.BindingError=ht("BindingError"),u.count_emval_handles=function(){for(var B=0,P=5;P<Ve.length;++P)Ve[P]!==void 0&&++B;return B},u.get_first_emval=function(){for(var B=5;B<Ve.length;++B)if(Ve[B]!==void 0)return Ve[B];return null},Ze=u.PureVirtualError=ht("PureVirtualError");for(var Kv=Array(256),Sf=0;256>Sf;++Sf)Kv[Sf]=String.fromCharCode(Sf);Er=Kv,u.getInheritedInstanceCount=function(){return Object.keys(Ue).length},u.getLiveInheritedInstances=function(){var B,P=[];for(B in Ue)Ue.hasOwnProperty(B)&&P.push(Ue[B]);return P},u.flushPendingDeletes=ut,u.setDelayFunction=function(B){le=B,Ee.length&&le&&le(ut)},Hv=u.InternalError=ht("InternalError"),ro.prototype.isAliasOf=function(B){if(!(this instanceof ro&&B instanceof ro))return!1;var P=this.L.O.M,$=this.L.N,Z=B.L.O.M;for(B=B.L.N;P.P;)$=P.aa($),P=P.P;for(;Z.P;)B=Z.aa(B),Z=Z.P;return P===Z&&$===B},ro.prototype.clone=function(){if(this.L.N||_m(this),this.L.$)return this.L.count.value+=1,this;var B=Ss,P=Object,$=P.create,Z=Object.getPrototypeOf(this),Y=this.L;return B=B($.call(P,Z,{L:{value:{count:Y.count,Z:Y.Z,$:Y.$,N:Y.N,O:Y.O,S:Y.S,T:Y.T}}})),B.L.count.value+=1,B.L.Z=!1,B},ro.prototype.delete=function(){this.L.N||_m(this),this.L.Z&&!this.L.$&&Je("Object already scheduled for deletion"),fa(this),Vv(this.L),this.L.$||(this.L.S=void 0,this.L.N=void 0)},ro.prototype.isDeleted=function(){return!this.L.N},ro.prototype.deleteLater=function(){return this.L.N||_m(this),this.L.Z&&!this.L.$&&Je("Object already scheduled for deletion"),Ee.push(this),Ee.length===1&&le&&le(ut),this.L.Z=!0,this},ha.prototype.pa=function(B){return this.ja&&(B=this.ja(B)),B},ha.prototype.ga=function(B){this.V&&this.V(B)},ha.prototype.argPackAdvance=8,ha.prototype.readValueFromPointer=Al,ha.prototype.deleteObject=function(B){B!==null&&B.delete()},ha.prototype.fromWireType=function(B){function P(){return this.ca?hf(this.M.W,{O:this.va,N:Z,T:this,S:B}):hf(this.M.W,{O:this,N:B})}var $,Z=this.pa(B);if(!Z)return this.ga(B),null;var Y=Ue[tt(this.M,Z)];if(Y!==void 0)return Y.L.count.value===0?(Y.L.N=Z,Y.L.S=B,Y.clone()):(Y=Y.clone(),this.ga(B),Y);if(!(Y=Yu[Y=this.M.oa(Z)]))return P.call(this);Y=this.ba?Y.ka:Y.pointerType;var ie=function xe(fe,_e,he){return _e===he?fe:he.P===void 0||(fe=xe(fe,_e,he.P))===null?null:he.ma(fe)}(Z,this.M,Y.M);return ie===null?P.call(this):this.ca?hf(Y.M.W,{O:Y,N:ie,T:this,S:B}):hf(Y.M.W,{O:Y,N:ie})},Cm=u.UnboundTypeError=ht("UnboundTypeError");var Rb={q:function(B,P,$){B=Ft(B),P=$u(P,"wrapper"),$=er($);var Z=[].slice,Y=P.M,ie=Y.W,xe=Y.P.W,fe=Y.P.constructor;for(var _e in B=ve(B,function(){Y.P.ia.forEach(function(he){if(this[he]===xe[he])throw new Ze("Pure virtual function "+he+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:ie}),this.__construct.apply(this,Z.call(arguments))}),ie.__construct=function(){this===ie&&Je("Pass correct 'this' to __construct");var he=fe.implement.apply(void 0,[this].concat(Z.call(arguments)));fa(he);var De=he.L;he.notifyOnDestruction(),De.$=!0,Object.defineProperties(this,{L:{value:De}}),Ss(this),he=tt(Y,he=De.N),Ue.hasOwnProperty(he)?Je("Tried to register registered instance: "+he):Ue[he]=this},ie.__destruct=function(){this===ie&&Je("Pass correct 'this' to __destruct"),fa(this);var he=this.L.N;he=tt(Y,he),Ue.hasOwnProperty(he)?delete Ue[he]:Je("Tried to unregister unregistered instance: "+he)},B.prototype=Object.create(ie),$)B.prototype[_e]=$[_e];return vt(B)},l:function(B){var P=mf[B];delete mf[B];var $=P.ea,Z=P.V,Y=P.ha;to([B],Y.map(ie=>ie.sa).concat(Y.map(ie=>ie.ya)),ie=>{var xe={};return Y.forEach((fe,_e)=>{var he=ie[_e],De=fe.qa,Ye=fe.ra,Xe=ie[_e+Y.length],Bt=fe.xa,pt=fe.za;xe[fe.na]={read:Yt=>he.fromWireType(De(Ye,Yt)),write:(Yt,qi)=>{var ji=[];Bt(pt,Yt,Xe.toWireType(ji,qi)),xm(ji)}}}),[{name:P.name,fromWireType:function(fe){var _e,he={};for(_e in xe)he[_e]=xe[_e].read(fe);return Z(fe),he},toWireType:function(fe,_e){for(var he in xe)if(!(he in _e))throw TypeError('Missing field: "'+he+'"');var De=$();for(he in xe)xe[he].write(De,_e[he]);return fe!==null&&fe.push(Z,De),De},argPackAdvance:8,readValueFromPointer:Al,U:Z}]})},v:function(){},B:function(B,P,$,Z,Y){var ie=Em($);da(B,{name:P=Ft(P),fromWireType:function(xe){return!!xe},toWireType:function(xe,fe){return fe?Z:Y},argPackAdvance:8,readValueFromPointer:function(xe){if($===1)var fe=C;else if($===2)fe=D;else if($===4)fe=F;else throw TypeError("Unknown boolean type size: "+P);return this.fromWireType(fe[xe>>ie])},U:null})},h:function(B,P,$,Z,Y,ie,xe,fe,_e,he,De,Ye,Xe){De=Ft(De),ie=Mi(Y,ie),fe&&(fe=Mi(xe,fe)),he&&(he=Mi(_e,he)),Xe=Mi(Ye,Xe);var Bt,pt=oe(De);Bt=function(){xf("Cannot construct "+De+" due to unbound types",[Z])},u.hasOwnProperty(pt)?(Je("Cannot register public name '"+pt+"' twice"),Am(u,pt,pt),u.hasOwnProperty(void 0)&&Je("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),u[pt].R[void 0]=Bt):u[pt]=Bt,to([B,P,$],Z?[Z]:[],function(Yt){if(Yt=Yt[0],Z)var qi,ji=Yt.M,dn=ji.W;else dn=ro.prototype;Yt=ve(pt,function(){if(Object.getPrototypeOf(this)!==Ju)throw new Lt("Use 'new' to construct "+De);if(Qo.X===void 0)throw new Lt(De+" has no accessible constructor");var Sl=Qo.X[arguments.length];if(Sl===void 0)throw new Lt("Tried to invoke ctor of "+De+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Qo.X).toString()+") parameters instead!");return Sl.apply(this,arguments)});var Ju=Object.create(dn,{constructor:{value:Yt}});Yt.prototype=Ju;var Qo=new _b(De,Yt,Ju,Xe,ji,ie,fe,he);ji=new ha(De,Qo,!0,!1),dn=new ha(De+"*",Qo,!1,!1);var wm=new ha(De+" const*",Qo,!1,!0);return Yu[B]={pointerType:dn,ka:wm},qi=Yt,u.hasOwnProperty(pt)||df("Replacing nonexistant public symbol"),u[pt]=qi,u[pt].Y=void 0,[ji,dn,wm]})},d:function(B,P,$,Z,Y,ie,xe){var fe=Ef($,Z);P=Ft(P),ie=Mi(Y,ie),to([],[B],function(_e){function he(){xf("Cannot call "+De+" due to unbound types",fe)}var De=(_e=_e[0]).name+"."+P;P.startsWith("@@")&&(P=Symbol[P.substring(2)]);var Ye=_e.M.constructor;return Ye[P]===void 0?(he.Y=$-1,Ye[P]=he):(Am(Ye,P,De),Ye[P].R[$-1]=he),to([],fe,function(Xe){return Xe=Cl(De,[Xe[0],null].concat(Xe.slice(1)),null,ie,xe),Ye[P].R===void 0?(Xe.Y=$-1,Ye[P]=Xe):Ye[P].R[$-1]=Xe,[]}),[]})},p:function(B,P,$,Z,Y,ie){0<P||Ie();var xe=Ef(P,$);Y=Mi(Z,Y),to([],[B],function(fe){var _e="constructor "+(fe=fe[0]).name;if(fe.M.X===void 0&&(fe.M.X=[]),fe.M.X[P-1]!==void 0)throw new Lt("Cannot register multiple constructors with identical number of parameters ("+(P-1)+") for class '"+fe.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return fe.M.X[P-1]=()=>{xf("Cannot construct "+fe.name+" due to unbound types",xe)},to([],xe,function(he){return he.splice(1,0,null),fe.M.X[P-1]=Cl(_e,he,null,Y,ie),[]}),[]})},a:function(B,P,$,Z,Y,ie,xe,fe){var _e=Ef($,Z);P=Ft(P),ie=Mi(Y,ie),to([],[B],function(he){function De(){xf("Cannot call "+Ye+" due to unbound types",_e)}var Ye=(he=he[0]).name+"."+P;P.startsWith("@@")&&(P=Symbol[P.substring(2)]),fe&&he.M.ia.push(P);var Xe=he.M.W,Bt=Xe[P];return Bt===void 0||Bt.R===void 0&&Bt.className!==he.name&&Bt.Y===$-2?(De.Y=$-2,De.className=he.name,Xe[P]=De):(Am(Xe,P,Ye),Xe[P].R[$-2]=De),to([],_e,function(pt){return pt=Cl(Ye,pt,he,ie,xe),Xe[P].R===void 0?(pt.Y=$-2,Xe[P]=pt):Xe[P].R[$-2]=pt,[]}),[]})},A:function(B,P){da(B,{name:P=Ft(P),fromWireType:function($){var Z=er($);return _f($),Z},toWireType:function($,Z){return vt(Z)},argPackAdvance:8,readValueFromPointer:Al,U:null})},n:function(B,P,$){$=Em($),da(B,{name:P=Ft(P),fromWireType:function(Z){return Z},toWireType:function(Z,Y){return Y},argPackAdvance:8,readValueFromPointer:function(Z,Y){switch(Y){case 2:return function(ie){return this.fromWireType(M[ie>>2])};case 3:return function(ie){return this.fromWireType(k[ie>>3])};default:throw TypeError("Unknown float type: "+Z)}}(P,$),U:null})},e:function(B,P,$,Z,Y){P=Ft(P),Y===-1&&(Y=4294967295),Y=Em($);var ie=fe=>fe;if(Z===0){var xe=32-8*$;ie=fe=>fe<<xe>>>xe}$=P.includes("unsigned")?function(fe,_e){return _e>>>0}:function(fe,_e){return _e},da(B,{name:P,fromWireType:ie,toWireType:$,argPackAdvance:8,readValueFromPointer:function(fe,_e,he){switch(_e){case 0:return he?function(De){return C[De]}:function(De){return b[De]};case 1:return he?function(De){return D[De>>1]}:function(De){return L[De>>1]};case 2:return he?function(De){return F[De>>2]}:function(De){return q[De>>2]};default:throw TypeError("Unknown integer type: "+fe)}}(P,Y,Z!==0),U:null})},b:function(B,P,$){function Z(ie){ie>>=2;var xe=q;return new Y(xe.buffer,xe[ie+1],xe[ie])}var Y=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][P];da(B,{name:$=Ft($),fromWireType:Z,argPackAdvance:8,readValueFromPointer:Z},{ta:!0})},o:function(B,P){var $=(P=Ft(P))==="std::string";da(B,{name:P,fromWireType:function(Z){var Y=q[Z>>2],ie=Z+4;if($)for(var xe=ie,fe=0;fe<=Y;++fe){var _e=ie+fe;if(fe==Y||b[_e]==0){if(xe=xe?y(b,xe,_e-xe):"",he===void 0)var he=xe;else he+="\0"+xe;xe=_e+1}}else{for(fe=0,he=Array(Y);fe<Y;++fe)he[fe]=String.fromCharCode(b[ie+fe]);he=he.join("")}return ma(Z),he},toWireType:function(Z,Y){Y instanceof ArrayBuffer&&(Y=new Uint8Array(Y));var ie,xe=typeof Y=="string";if(xe||Y instanceof Uint8Array||Y instanceof Uint8ClampedArray||Y instanceof Int8Array||Je("Cannot pass non-string to std::string"),$&&xe){var fe=0;for(ie=0;ie<Y.length;++ie){var _e=Y.charCodeAt(ie);127>=_e?fe++:2047>=_e?fe+=2:55296<=_e&&57343>=_e?(fe+=4,++ie):fe+=3}ie=fe}else ie=Y.length;if(_e=(fe=Dm(4+ie+1))+4,q[fe>>2]=ie,$&&xe){if(xe=_e,_e=ie+1,ie=b,0<_e){_e=xe+_e-1;for(var he=0;he<Y.length;++he){var De=Y.charCodeAt(he);if(55296<=De&&57343>=De&&(De=65536+((1023&De)<<10)|1023&Y.charCodeAt(++he)),127>=De){if(xe>=_e)break;ie[xe++]=De}else{if(2047>=De){if(xe+1>=_e)break;ie[xe++]=192|De>>6}else{if(65535>=De){if(xe+2>=_e)break;ie[xe++]=224|De>>12}else{if(xe+3>=_e)break;ie[xe++]=240|De>>18,ie[xe++]=128|De>>12&63}ie[xe++]=128|De>>6&63}ie[xe++]=128|63&De}}ie[xe]=0}}else if(xe)for(xe=0;xe<ie;++xe)255<(he=Y.charCodeAt(xe))&&(ma(_e),Je("String has UTF-16 code units that do not fit in 8 bits")),b[_e+xe]=he;else for(xe=0;xe<ie;++xe)b[_e+xe]=Y[xe];return Z!==null&&Z.push(ma,fe),fe},argPackAdvance:8,readValueFromPointer:Al,U:function(Z){ma(Z)}})},k:function(B,P,$){if($=Ft($),P===2)var Z=bb,Y=Db,ie=Wv,xe=()=>L,fe=1;else P===4&&(Z=bm,Y=wb,ie=Tb,xe=()=>q,fe=2);da(B,{name:$,fromWireType:function(_e){for(var he,De=q[_e>>2],Ye=xe(),Xe=_e+4,Bt=0;Bt<=De;++Bt){var pt=_e+4+Bt*P;(Bt==De||Ye[pt>>fe]==0)&&(Xe=Z(Xe,pt-Xe),he===void 0?he=Xe:he+="\0"+Xe,Xe=pt+P)}return ma(_e),he},toWireType:function(_e,he){typeof he!="string"&&Je("Cannot pass non-string to C++ string type "+$);var De=ie(he),Ye=Dm(4+De+P);return q[Ye>>2]=De>>fe,Y(he,Ye+4,De+P),_e!==null&&_e.push(ma,Ye),Ye},argPackAdvance:8,readValueFromPointer:Al,U:function(_e){ma(_e)}})},m:function(B,P,$,Z,Y,ie){mf[B]={name:Ft(P),ea:Mi($,Z),V:Mi(Y,ie),ha:[]}},c:function(B,P,$,Z,Y,ie,xe,fe,_e,he){mf[B].ha.push({na:Ft(P),sa:$,qa:Mi(Z,Y),ra:ie,ya:xe,xa:Mi(fe,_e),za:he})},C:function(B,P){da(B,{ua:!0,name:P=Ft(P),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},t:function(B,P,$,Z,Y){B=Cf[B],P=er(P),$=Qv($);var ie=[];return q[Z>>2]=vt(ie),B(P,$,ie,Y)},j:function(B,P,$,Z){B=Cf[B],B(P=er(P),$=Qv($),null,Z)},f:_f,g:function(B,P){var $,Z,Y=function(_e,he){for(var De=Array(_e),Ye=0;Ye<_e;++Ye)De[Ye]=$u(q[he+4*Ye>>2],"parameter "+Ye);return De}(B,P),ie=Y[0],xe=zv[P=ie.name+"_$"+Y.slice(1).map(function(_e){return _e.name}).join("_")+"$"];if(xe!==void 0)return xe;var fe=Array(B-1);return $=(_e,he,De,Ye)=>{for(var Xe=0,Bt=0;Bt<B-1;++Bt)fe[Bt]=Y[Bt+1].readValueFromPointer(Ye+Xe),Xe+=Y[Bt+1].argPackAdvance;for(Bt=0,_e=_e[he].apply(_e,fe);Bt<B-1;++Bt)Y[Bt+1].la&&Y[Bt+1].la(fe[Bt]);if(!ie.ua)return ie.toWireType(De,_e)},Z=Cf.length,Cf.push($),xe=Z,zv[P]=xe},r:function(B){4<B&&(Ve[B].fa+=1)},s:function(B){xm(er(B)),_f(B)},i:function(){Ie("")},x:function(B,P,$){b.copyWithin(B,P,P+$)},w:function(B){var P=b.length;if(2147483648<(B>>>=0))return!1;for(var $=1;4>=$;$*=2){var Z=P*(1+.2/$);Z=Math.min(Z,B+100663296);var Y=Math,ie=Y.min;Z=Math.max(B,Z),Z+=(65536-Z%65536)%65536;e:{var xe=h.buffer;try{h.grow(ie.call(Y,2147483648,Z)-xe.byteLength+65535>>>16),_();var fe=1;break e}catch{}fe=void 0}if(fe)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(B,P,$,Z){for(var Y=0,ie=0;ie<$;ie++){var xe=q[P>>2],fe=q[P+4>>2];P+=8;for(var _e=0;_e<fe;_e++){var he=b[xe+_e],De=Ib[B];he===0||he===10?((B===1?a:o)(y(De,0)),De.length=0):De.push(he)}Y+=fe}return q[Z>>2]=Y,0}};(function(){function B(Y){u.asm=Y.exports,h=u.asm.D,_(),te=u.asm.I,ne.unshift(u.asm.E),--Q==0&&be&&(Y=be,be=null,Y())}function P(Y){B(Y.instance)}function $(Y){return(typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(function(ie){if(!ie.ok)throw"failed to load wasm binary file at '"+r+"'";return ie.arrayBuffer()}).catch(function(){return j()}):Promise.resolve().then(function(){return j()})).then(function(ie){return WebAssembly.instantiate(ie,Z)}).then(function(ie){return ie}).then(Y,function(ie){o("failed to asynchronously prepare wasm: "+ie),Ie(ie)})}var Z={a:Rb};if(Q++,u.instantiateWasm)try{return u.instantiateWasm(Z,B)}catch(Y){o("Module.instantiateWasm callback failed with error: "+Y),f(Y)}(typeof WebAssembly.instantiateStreaming!="function"||et()||typeof fetch!="function"?$(P):fetch(r,{credentials:"same-origin"}).then(function(Y){return WebAssembly.instantiateStreaming(Y,Z).then(P,function(ie){return o("wasm streaming compile failed: "+ie),o("falling back to ArrayBuffer instantiation"),$(P)})})).catch(f)})();var $v=u.___getTypeName=function(){return($v=u.___getTypeName=u.asm.F).apply(null,arguments)};function Dm(){return(Dm=u.asm.H).apply(null,arguments)}function ma(){return(ma=u.asm.J).apply(null,arguments)}function Yv(){0<Q||(z(ce),0<Q||n||(n=!0,u.calledRun=!0,m||(z(ne),l(u),z(pe))))}return u.__embind_initialize_bindings=function(){return(u.__embind_initialize_bindings=u.asm.G).apply(null,arguments)},u.dynCall_jiji=function(){return(u.dynCall_jiji=u.asm.K).apply(null,arguments)},be=function B(){n||Yv(),n||(be=B)},Yv(),t.ready}})();async function Y4(e){let t=await Rpe({instantiateWasm(r,n){WebAssembly.instantiate(e,r).then(i=>{i instanceof WebAssembly.Instance?n(i):n(i.instance)})}});return $4(t)}var Qe=await Y4(await Npe(Ope(import.meta.url).resolve("./yoga.wasm")));d();var HU=Ce(fU(),1),GU=Ce(mU(),1);import ufe from"node:process";d();d();d();d();d();d();function MD({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var Bpe=MD();function Da(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Bpe,"")}var yU=Ce(yx(),1),xU=Ce(xx(),1);function jD(e,t={}){if(typeof e!="string"||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=Da(e),e.length===0))return 0;e=e.replace((0,xU.default)()," ");let r=t.ambiguousIsNarrow?1:2,n=0;for(let i of e){let s=i.codePointAt(0);if(s<=31||s>=127&&s<=159||s>=768&&s<=879)continue;switch(yU.default.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}function Vl(e){let t=0;for(let r of e.split(`
|
|
77
|
-
`))t=Math.max(t,jD(r));return t}var EU={},Lpe=e=>{if(e.length===0)return{width:0,height:0};let t=EU[e];if(t)return t;let r=Vl(e),n=e.split(`
|
|
78
|
-
`).length;return EU[e]={width:r,height:n},{width:r,height:n}},VD=Lpe;d();d();d();var _U=Ce(yx(),1),AU=Ce(xx(),1);function fo(e,t={}){if(typeof e!="string"||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=Da(e),e.length===0))return 0;e=e.replace((0,AU.default)()," ");let r=t.ambiguousIsNarrow?1:2,n=0;for(let i of e){let s=i.codePointAt(0);if(s<=31||s>=127&&s<=159||s>=768&&s<=879)continue;switch(_U.default.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}d();var CU=(e=0)=>t=>`\x1B[${t+e}m`,SU=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,bU=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,Hr={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Gje=Object.keys(Hr.modifier),Fpe=Object.keys(Hr.color),kpe=Object.keys(Hr.bgColor),Wje=[...Fpe,...kpe];function Upe(){let e=new Map;for(let[t,r]of Object.entries(Hr)){for(let[n,i]of Object.entries(r))Hr[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Hr[n],e.set(i[0],i[1]);Object.defineProperty(Hr,t,{value:r,enumerable:!1})}return Object.defineProperty(Hr,"codes",{value:e,enumerable:!1}),Hr.color.close="\x1B[39m",Hr.bgColor.close="\x1B[49m",Hr.color.ansi=CU(),Hr.color.ansi256=SU(),Hr.color.ansi16m=bU(),Hr.bgColor.ansi=CU(10),Hr.bgColor.ansi256=SU(10),Hr.bgColor.ansi16m=bU(10),Object.defineProperties(Hr,{rgbToAnsi256:{value:(t,r,n)=>t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:t=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>Hr.rgbToAnsi256(...Hr.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let o=t%36;r=Math.floor(t/36)/5,n=Math.floor(o/6)/5,i=o%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>Hr.ansi256ToAnsi(Hr.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>Hr.ansi256ToAnsi(Hr.hexToAnsi256(t)),enumerable:!1}}),Hr}var Mpe=Upe(),wa=Mpe;var Ex=new Set(["\x1B","\x9B"]),qpe=39,GD="\x07",TU="[",jpe="]",IU="m",WD=`${jpe}8;;`,DU=e=>`${Ex.values().next().value}${TU}${e}${IU}`,wU=e=>`${Ex.values().next().value}${WD}${e}${GD}`,Vpe=e=>e.split(" ").map(t=>fo(t)),HD=(e,t,r)=>{let n=[...t],i=!1,s=!1,a=fo(Da(e[e.length-1]));for(let[o,u]of n.entries()){let l=fo(u);if(a+l<=r?e[e.length-1]+=u:(e.push(u),a=0),Ex.has(u)&&(i=!0,s=n.slice(o+1).join("").startsWith(WD)),i){s?u===GD&&(i=!1,s=!1):u===IU&&(i=!1);continue}a+=l,a===r&&o<n.length-1&&(e.push(""),a=0)}!a&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Hpe=e=>{let t=e.split(" "),r=t.length;for(;r>0&&!(fo(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},Gpe=(e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let n="",i,s,a=Vpe(e),o=[""];for(let[l,f]of e.split(" ").entries()){r.trim!==!1&&(o[o.length-1]=o[o.length-1].trimStart());let h=fo(o[o.length-1]);if(l!==0&&(h>=t&&(r.wordWrap===!1||r.trim===!1)&&(o.push(""),h=0),(h>0||r.trim===!1)&&(o[o.length-1]+=" ",h++)),r.hard&&a[l]>t){let m=t-h,y=1+Math.floor((a[l]-m-1)/t);Math.floor((a[l]-1)/t)<y&&o.push(""),HD(o,f,t);continue}if(h+a[l]>t&&h>0&&a[l]>0){if(r.wordWrap===!1&&h<t){HD(o,f,t);continue}o.push("")}if(h+a[l]>t&&r.wordWrap===!1){HD(o,f,t);continue}o[o.length-1]+=f}r.trim!==!1&&(o=o.map(l=>Hpe(l)));let u=[...o.join(`
|
|
79
|
-
`)];for(let[l,f]of u.entries()){if(n+=f,Ex.has(f)){let{groups:m}=new RegExp(`(?:\\${TU}(?<code>\\d+)m|\\${WD}(?<uri>.*)${GD})`).exec(u.slice(l).join(""))||{groups:{}};if(m.code!==void 0){let y=Number.parseFloat(m.code);i=y===qpe?void 0:y}else m.uri!==void 0&&(s=m.uri.length===0?void 0:m.uri)}let h=wa.codes.get(Number(i));u[l+1]===`
|
|
80
|
-
`?(s&&(n+=wU("")),i&&h&&(n+=DU(h))):f===`
|
|
81
|
-
`&&(i&&h&&(n+=DU(i)),s&&(n+=wU(s)))}return n};function QD(e,t,r){return String(e).normalize().replace(/\r\n/g,`
|
|
82
|
-
`).split(`
|
|
83
|
-
`).map(n=>Gpe(n,t,r)).join(`
|
|
84
|
-
`)}d();d();d();function zD(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}d();var RU=(e=0)=>t=>`\x1B[${t+e}m`,NU=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,OU=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,Gr={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},tVe=Object.keys(Gr.modifier),Wpe=Object.keys(Gr.color),Qpe=Object.keys(Gr.bgColor),rVe=[...Wpe,...Qpe];function zpe(){let e=new Map;for(let[t,r]of Object.entries(Gr)){for(let[n,i]of Object.entries(r))Gr[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Gr[n],e.set(i[0],i[1]);Object.defineProperty(Gr,t,{value:r,enumerable:!1})}return Object.defineProperty(Gr,"codes",{value:e,enumerable:!1}),Gr.color.close="\x1B[39m",Gr.bgColor.close="\x1B[49m",Gr.color.ansi=RU(),Gr.color.ansi256=NU(),Gr.color.ansi16m=OU(),Gr.bgColor.ansi=RU(10),Gr.bgColor.ansi256=NU(10),Gr.bgColor.ansi16m=OU(10),Object.defineProperties(Gr,{rgbToAnsi256:{value:(t,r,n)=>t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:t=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>Gr.rgbToAnsi256(...Gr.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let o=t%36;r=Math.floor(t/36)/5,n=Math.floor(o/6)/5,i=o%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>Gr.ansi256ToAnsi(Gr.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>Gr.ansi256ToAnsi(Gr.hexToAnsi256(t)),enumerable:!1}}),Gr}var Kpe=zpe(),KD=Kpe;var $pe=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,BU=["\x1B","\x9B"],_x=e=>`${BU[0]}[${e}m`,PU=(e,t,r)=>{let n=[];e=[...e];for(let i of e){let s=i;i.includes(";")&&(i=i.split(";")[0][0]+"0");let a=KD.codes.get(Number.parseInt(i,10));if(a){let o=e.indexOf(a.toString());o===-1?n.push(_x(t?a:s)):e.splice(o,1)}else if(t){n.push(_x(0));break}else n.push(_x(s))}if(t&&(n=n.filter((i,s)=>n.indexOf(i)===s),r!==void 0)){let i=_x(KD.codes.get(Number.parseInt(r,10)));n=n.reduce((s,a)=>a===i?[a,...s]:[...s,a],[])}return n.join("")};function ho(e,t,r){let n=[...e],i=[],s=typeof r=="number"?r:n.length,a=!1,o,u=0,l="";for(let[f,h]of n.entries()){let m=!1;if(BU.includes(h)){let y=/\d[^m]*/.exec(e.slice(f,f+18));o=y&&y.length>0?y[0]:void 0,u<s&&(a=!0,o!==void 0&&i.push(o))}else a&&h==="m"&&(a=!1,m=!0);if(!a&&!m&&u++,!$pe.test(h)&&zD(h.codePointAt())&&(u++,typeof r!="number"&&s++),u>t&&u<=s)l+=h;else if(u===t&&!a&&o!==void 0)l=PU(i);else if(u>=s){l+=PU(i,!0,o);break}}return l}d();var LU=Ce(yx(),1),FU=Ce(xx(),1);function Kf(e,t={}){if(typeof e!="string"||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=Da(e),e.length===0))return 0;e=e.replace((0,FU.default)()," ");let r=t.ambiguousIsNarrow?1:2,n=0;for(let i of e){let s=i.codePointAt(0);if(s<=31||s>=127&&s<=159||s>=768&&s<=879)continue;switch(LU.default.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}function Ax(e,t,r){if(e.charAt(t)===" ")return t;for(let n=1;n<=3;n++)if(r){if(e.charAt(t+n)===" ")return t+n}else if(e.charAt(t-n)===" ")return t-n;return t}function $D(e,t,r){r={position:"end",preferTruncationOnSpace:!1,truncationCharacter:"\u2026",...r};let{position:n,space:i,preferTruncationOnSpace:s}=r,{truncationCharacter:a}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof t!="number")throw new TypeError(`Expected \`columns\` to be a number, got ${typeof t}`);if(t<1)return"";if(t===1)return a;let o=Kf(e);if(o<=t)return e;if(n==="start"){if(s){let u=Ax(e,o-t+1,!0);return a+ho(e,u,o).trim()}return i===!0&&(a+=" "),a+ho(e,o-t+Kf(a),o)}if(n==="middle"){i===!0&&(a=` ${a} `);let u=Math.floor(t/2);if(s){let l=Ax(e,u),f=Ax(e,o-(t-u)+1,!0);return ho(e,0,l)+a+ho(e,f,o).trim()}return ho(e,0,u)+a+ho(e,o-(t-u)+Kf(a),o)}if(n==="end"){if(s){let u=Ax(e,t-1);return ho(e,0,u)+a}return i===!0&&(a=` ${a}`),ho(e,0,t-Kf(a))+a}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${n}`)}var kU={},Ype=(e,t,r)=>{let n=e+String(t)+String(r),i=kU[n];if(i)return i;let s=e;if(r==="wrap"&&(s=QD(e,t,{trim:!1,hard:!0})),r.startsWith("truncate")){let a="end";r==="truncate-middle"&&(a="middle"),r==="truncate-start"&&(a="start"),s=$D(e,t,{position:a})}return kU[n]=s,s},Cx=Ype;d();var UU=e=>{let t="";if(e.childNodes.length>0)for(let r of e.childNodes){let n="";r.nodeName==="#text"?n=r.nodeValue:((r.nodeName==="ink-text"||r.nodeName==="ink-virtual-text")&&(n=UU(r)),n.length>0&&typeof r.internal_transform=="function"&&(n=r.internal_transform(n))),t+=n}return t},Sx=UU;var bx=e=>{let t={nodeName:e,style:{},attributes:{},childNodes:[],parentNode:void 0,yogaNode:e==="ink-virtual-text"?void 0:Qe.Node.create()};return e==="ink-text"&&t.yogaNode?.setMeasureFunc(Xpe.bind(null,t)),t},Dx=(e,t)=>{t.parentNode&&ag(t.parentNode,t),t.parentNode=e,e.childNodes.push(t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,e.yogaNode.getChildCount()),(e.nodeName==="ink-text"||e.nodeName==="ink-virtual-text")&&wx(e)},YD=(e,t,r)=>{t.parentNode&&ag(t.parentNode,t),t.parentNode=e;let n=e.childNodes.indexOf(r);if(n>=0){e.childNodes.splice(n,0,t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,n);return}e.childNodes.push(t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,e.yogaNode.getChildCount()),(e.nodeName==="ink-text"||e.nodeName==="ink-virtual-text")&&wx(e)},ag=(e,t)=>{t.yogaNode&&t.parentNode?.yogaNode?.removeChild(t.yogaNode),t.parentNode=void 0;let r=e.childNodes.indexOf(t);r>=0&&e.childNodes.splice(r,1),(e.nodeName==="ink-text"||e.nodeName==="ink-virtual-text")&&wx(e)},XD=(e,t,r)=>{e.attributes[t]=r},JD=(e,t)=>{e.style=t},MU=e=>{let t={nodeName:"#text",nodeValue:e,yogaNode:void 0,parentNode:void 0,style:{}};return og(t,e),t},Xpe=function(e,t){let r=e.nodeName==="#text"?e.nodeValue:Sx(e),n=VD(r);if(n.width<=t||n.width>=1&&t>0&&t<1)return n;let i=e.style?.textWrap??"wrap",s=Cx(r,t,i);return VD(s)},qU=e=>{if(e?.parentNode)return e.yogaNode??qU(e.parentNode)},wx=e=>{qU(e)?.markDirty()},og=(e,t)=>{typeof t!="string"&&(t=String(t)),e.nodeValue=t,wx(e)};d();var Zpe=(e,t)=>{"position"in t&&e.setPositionType(t.position==="absolute"?Qe.POSITION_TYPE_ABSOLUTE:Qe.POSITION_TYPE_RELATIVE)},efe=(e,t)=>{"margin"in t&&e.setMargin(Qe.EDGE_ALL,t.margin??0),"marginX"in t&&e.setMargin(Qe.EDGE_HORIZONTAL,t.marginX??0),"marginY"in t&&e.setMargin(Qe.EDGE_VERTICAL,t.marginY??0),"marginLeft"in t&&e.setMargin(Qe.EDGE_START,t.marginLeft||0),"marginRight"in t&&e.setMargin(Qe.EDGE_END,t.marginRight||0),"marginTop"in t&&e.setMargin(Qe.EDGE_TOP,t.marginTop||0),"marginBottom"in t&&e.setMargin(Qe.EDGE_BOTTOM,t.marginBottom||0)},tfe=(e,t)=>{"padding"in t&&e.setPadding(Qe.EDGE_ALL,t.padding??0),"paddingX"in t&&e.setPadding(Qe.EDGE_HORIZONTAL,t.paddingX??0),"paddingY"in t&&e.setPadding(Qe.EDGE_VERTICAL,t.paddingY??0),"paddingLeft"in t&&e.setPadding(Qe.EDGE_LEFT,t.paddingLeft||0),"paddingRight"in t&&e.setPadding(Qe.EDGE_RIGHT,t.paddingRight||0),"paddingTop"in t&&e.setPadding(Qe.EDGE_TOP,t.paddingTop||0),"paddingBottom"in t&&e.setPadding(Qe.EDGE_BOTTOM,t.paddingBottom||0)},rfe=(e,t)=>{"flexGrow"in t&&e.setFlexGrow(t.flexGrow??0),"flexShrink"in t&&e.setFlexShrink(typeof t.flexShrink=="number"?t.flexShrink:1),"flexWrap"in t&&(t.flexWrap==="nowrap"&&e.setFlexWrap(Qe.WRAP_NO_WRAP),t.flexWrap==="wrap"&&e.setFlexWrap(Qe.WRAP_WRAP),t.flexWrap==="wrap-reverse"&&e.setFlexWrap(Qe.WRAP_WRAP_REVERSE)),"flexDirection"in t&&(t.flexDirection==="row"&&e.setFlexDirection(Qe.FLEX_DIRECTION_ROW),t.flexDirection==="row-reverse"&&e.setFlexDirection(Qe.FLEX_DIRECTION_ROW_REVERSE),t.flexDirection==="column"&&e.setFlexDirection(Qe.FLEX_DIRECTION_COLUMN),t.flexDirection==="column-reverse"&&e.setFlexDirection(Qe.FLEX_DIRECTION_COLUMN_REVERSE)),"flexBasis"in t&&(typeof t.flexBasis=="number"?e.setFlexBasis(t.flexBasis):typeof t.flexBasis=="string"?e.setFlexBasisPercent(Number.parseInt(t.flexBasis,10)):e.setFlexBasis(Number.NaN)),"alignItems"in t&&((t.alignItems==="stretch"||!t.alignItems)&&e.setAlignItems(Qe.ALIGN_STRETCH),t.alignItems==="flex-start"&&e.setAlignItems(Qe.ALIGN_FLEX_START),t.alignItems==="center"&&e.setAlignItems(Qe.ALIGN_CENTER),t.alignItems==="flex-end"&&e.setAlignItems(Qe.ALIGN_FLEX_END)),"alignSelf"in t&&((t.alignSelf==="auto"||!t.alignSelf)&&e.setAlignSelf(Qe.ALIGN_AUTO),t.alignSelf==="flex-start"&&e.setAlignSelf(Qe.ALIGN_FLEX_START),t.alignSelf==="center"&&e.setAlignSelf(Qe.ALIGN_CENTER),t.alignSelf==="flex-end"&&e.setAlignSelf(Qe.ALIGN_FLEX_END)),"justifyContent"in t&&((t.justifyContent==="flex-start"||!t.justifyContent)&&e.setJustifyContent(Qe.JUSTIFY_FLEX_START),t.justifyContent==="center"&&e.setJustifyContent(Qe.JUSTIFY_CENTER),t.justifyContent==="flex-end"&&e.setJustifyContent(Qe.JUSTIFY_FLEX_END),t.justifyContent==="space-between"&&e.setJustifyContent(Qe.JUSTIFY_SPACE_BETWEEN),t.justifyContent==="space-around"&&e.setJustifyContent(Qe.JUSTIFY_SPACE_AROUND))},nfe=(e,t)=>{"width"in t&&(typeof t.width=="number"?e.setWidth(t.width):typeof t.width=="string"?e.setWidthPercent(Number.parseInt(t.width,10)):e.setWidthAuto()),"height"in t&&(typeof t.height=="number"?e.setHeight(t.height):typeof t.height=="string"?e.setHeightPercent(Number.parseInt(t.height,10)):e.setHeightAuto()),"minWidth"in t&&(typeof t.minWidth=="string"?e.setMinWidthPercent(Number.parseInt(t.minWidth,10)):e.setMinWidth(t.minWidth??0)),"minHeight"in t&&(typeof t.minHeight=="string"?e.setMinHeightPercent(Number.parseInt(t.minHeight,10)):e.setMinHeight(t.minHeight??0))},ife=(e,t)=>{"display"in t&&e.setDisplay(t.display==="flex"?Qe.DISPLAY_FLEX:Qe.DISPLAY_NONE)},sfe=(e,t)=>{if("borderStyle"in t){let r=t.borderStyle?1:0;t.borderTop!==!1&&e.setBorder(Qe.EDGE_TOP,r),t.borderBottom!==!1&&e.setBorder(Qe.EDGE_BOTTOM,r),t.borderLeft!==!1&&e.setBorder(Qe.EDGE_LEFT,r),t.borderRight!==!1&&e.setBorder(Qe.EDGE_RIGHT,r)}},afe=(e,t)=>{"gap"in t&&e.setGap(Qe.GUTTER_ALL,t.gap??0),"columnGap"in t&&e.setGap(Qe.GUTTER_COLUMN,t.columnGap??0),"rowGap"in t&&e.setGap(Qe.GUTTER_ROW,t.rowGap??0)},ofe=(e,t={})=>{Zpe(e,t),efe(e,t),tfe(e,t),rfe(e,t),nfe(e,t),ife(e,t),sfe(e,t),afe(e,t)},ZD=ofe;if(ufe.env.DEV==="true")try{await import("./devtools-BEX4ITW5.js")}catch(e){if(e.code==="MODULE_NOT_FOUND")console.warn(`
|
|
85
|
-
Debugging with React Devtools requires \`react-devtools-core\` dependency to be installed.
|
|
86
|
-
|
|
87
|
-
$ npm install --save-dev react-devtools-core
|
|
88
|
-
`.trim()+`
|
|
89
|
-
`);else throw e}var jU=(e,t)=>{if(e===t)return;if(!e)return t;let r={},n=!1;for(let i of Object.keys(e))(t?!Object.hasOwnProperty.call(t,i):!0)&&(r[i]=void 0,n=!0);if(t)for(let i of Object.keys(t))t[i]!==e[i]&&(r[i]=t[i],n=!0);return n?r:void 0},VU=e=>{e?.unsetMeasureFunc(),e?.freeRecursive()},ug=(0,HU.default)({getRootHostContext:()=>({isInsideText:!1}),prepareForCommit:()=>null,preparePortalMount:()=>null,clearContainer:()=>!1,resetAfterCommit(e){if(typeof e.onComputeLayout=="function"&&e.onComputeLayout(),e.isStaticDirty){e.isStaticDirty=!1,typeof e.onImmediateRender=="function"&&e.onImmediateRender();return}typeof e.onRender=="function"&&e.onRender()},getChildHostContext(e,t){let r=e.isInsideText,n=t==="ink-text"||t==="ink-virtual-text";return r===n?e:{isInsideText:n}},shouldSetTextContent:()=>!1,createInstance(e,t,r,n){if(n.isInsideText&&e==="ink-box")throw new Error("<Box> can\u2019t be nested inside <Text> component");let i=e==="ink-text"&&n.isInsideText?"ink-virtual-text":e,s=bx(i);for(let[a,o]of Object.entries(t))if(a!=="children"){if(a==="style"){JD(s,o),s.yogaNode&&ZD(s.yogaNode,o);continue}if(a==="internal_transform"){s.internal_transform=o;continue}if(a==="internal_static"){s.internal_static=!0;continue}XD(s,a,o)}return s},createTextInstance(e,t,r){if(!r.isInsideText)throw new Error(`Text string "${e}" must be rendered inside <Text> component`);return MU(e)},resetTextContent(){},hideTextInstance(e){og(e,"")},unhideTextInstance(e,t){og(e,t)},getPublicInstance:e=>e,hideInstance(e){e.yogaNode?.setDisplay(Qe.DISPLAY_NONE)},unhideInstance(e){e.yogaNode?.setDisplay(Qe.DISPLAY_FLEX)},appendInitialChild:Dx,appendChild:Dx,insertBefore:YD,finalizeInitialChildren(e,t,r,n){return e.internal_static&&(n.isStaticDirty=!0,n.staticNode=e),!1},isPrimaryRenderer:!0,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,getCurrentEventPriority:()=>GU.DefaultEventPriority,beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},detachDeletedInstance(){},getInstanceFromNode:()=>null,prepareScopeUpdate(){},getInstanceFromScope:()=>null,appendChildToContainer:Dx,insertInContainerBefore:YD,removeChildFromContainer(e,t){ag(e,t),VU(t.yogaNode)},prepareUpdate(e,t,r,n,i){e.internal_static&&(i.isStaticDirty=!0);let s=jU(r,n),a=jU(r.style,n.style);return!s&&!a?null:{props:s,style:a}},commitUpdate(e,{props:t,style:r}){if(t)for(let[n,i]of Object.entries(t)){if(n==="style"){JD(e,i);continue}if(n==="internal_transform"){e.internal_transform=i;continue}if(n==="internal_static"){e.internal_static=!0;continue}XD(e,n,i)}r&&e.yogaNode&&ZD(e.yogaNode,r)},commitTextUpdate(e,t,r){og(e,r)},removeChild(e,t){ag(e,t),VU(t.yogaNode)}});d();d();d();function ew(e,t=1,r={}){let{indent:n=" ",includeEmptyLines:i=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(t===0)return e;let s=i?/^/gm:/^(?!\s*$)/gm;return e.replace(s,n.repeat(t))}d();var cfe=e=>e.getComputedWidth()-e.getComputedPadding(Qe.EDGE_LEFT)-e.getComputedPadding(Qe.EDGE_RIGHT)-e.getComputedBorder(Qe.EDGE_LEFT)-e.getComputedBorder(Qe.EDGE_RIGHT),WU=cfe;d();var a6=Ce(KU(),1);d();d();d();var $U=(e=0)=>t=>`\x1B[${t+e}m`,YU=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,XU=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,Wr={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},GVe=Object.keys(Wr.modifier),pfe=Object.keys(Wr.color),ffe=Object.keys(Wr.bgColor),WVe=[...pfe,...ffe];function dfe(){let e=new Map;for(let[t,r]of Object.entries(Wr)){for(let[n,i]of Object.entries(r))Wr[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Wr[n],e.set(i[0],i[1]);Object.defineProperty(Wr,t,{value:r,enumerable:!1})}return Object.defineProperty(Wr,"codes",{value:e,enumerable:!1}),Wr.color.close="\x1B[39m",Wr.bgColor.close="\x1B[49m",Wr.color.ansi=$U(),Wr.color.ansi256=YU(),Wr.color.ansi16m=XU(),Wr.bgColor.ansi=$U(10),Wr.bgColor.ansi256=YU(10),Wr.bgColor.ansi16m=XU(10),Object.defineProperties(Wr,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>Wr.rgbToAnsi256(...Wr.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let o=t%36;r=Math.floor(t/36)/5,n=Math.floor(o/6)/5,i=o%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>Wr.ansi256ToAnsi(Wr.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>Wr.ansi256ToAnsi(Wr.hexToAnsi256(t)),enumerable:!1}}),Wr}var hfe=dfe(),Ta=hfe;d();import rw from"node:process";import mfe from"node:os";import JU from"node:tty";function Ls(e,t=globalThis.Deno?globalThis.Deno.args:rw.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:Jr}=rw,Tx;Ls("no-color")||Ls("no-colors")||Ls("color=false")||Ls("color=never")?Tx=0:(Ls("color")||Ls("colors")||Ls("color=true")||Ls("color=always"))&&(Tx=1);function gfe(){if("FORCE_COLOR"in Jr)return Jr.FORCE_COLOR==="true"?1:Jr.FORCE_COLOR==="false"?0:Jr.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Jr.FORCE_COLOR,10),3)}function vfe(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function yfe(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=gfe();n!==void 0&&(Tx=n);let i=r?Tx:n;if(i===0)return 0;if(r){if(Ls("color=16m")||Ls("color=full")||Ls("color=truecolor"))return 3;if(Ls("color=256"))return 2}if("TF_BUILD"in Jr&&"AGENT_NAME"in Jr)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(Jr.TERM==="dumb")return s;if(rw.platform==="win32"){let a=mfe.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Jr)return"GITHUB_ACTIONS"in Jr||"GITEA_ACTIONS"in Jr?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Jr)||Jr.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Jr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Jr.TEAMCITY_VERSION)?1:0;if(Jr.COLORTERM==="truecolor"||Jr.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Jr){let a=Number.parseInt((Jr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Jr.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Jr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Jr.TERM)||"COLORTERM"in Jr?1:s}function ZU(e,t={}){let r=yfe(e,{streamIsTTY:e&&e.isTTY,...t});return vfe(r)}var xfe={stdout:ZU({isTTY:JU.isatty(1)}),stderr:ZU({isTTY:JU.isatty(2)})},e6=xfe;d();function t6(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,a="";do a+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return a+=e.slice(s),a}function r6(e,t,r,n){let i=0,s="";do{let a=e[n-1]==="\r";s+=e.slice(i,a?n-1:n)+t+(a?`\r
|
|
90
|
-
`:`
|
|
91
|
-
`)+r,i=n+1,n=e.indexOf(`
|
|
92
|
-
`,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:n6,stderr:i6}=e6,nw=Symbol("GENERATOR"),$f=Symbol("STYLER"),cg=Symbol("IS_EMPTY"),s6=["ansi","ansi","ansi256","ansi16m"],Yf=Object.create(null),Efe=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=n6?n6.level:0;e.level=t.level===void 0?r:t.level};var _fe=e=>{let t=(...r)=>r.join(" ");return Efe(t,e),Object.setPrototypeOf(t,lg.prototype),t};function lg(e){return _fe(e)}Object.setPrototypeOf(lg.prototype,Function.prototype);for(let[e,t]of Object.entries(Ta))Yf[e]={get(){let r=Ix(this,sw(t.open,t.close,this[$f]),this[cg]);return Object.defineProperty(this,e,{value:r}),r}};Yf.visible={get(){let e=Ix(this,this[$f],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var iw=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Ta[r].ansi16m(...n):t==="ansi256"?Ta[r].ansi256(Ta.rgbToAnsi256(...n)):Ta[r].ansi(Ta.rgbToAnsi(...n)):e==="hex"?iw("rgb",t,r,...Ta.hexToRgb(...n)):Ta[r][e](...n),Afe=["rgb","hex","ansi256"];for(let e of Afe){Yf[e]={get(){let{level:r}=this;return function(...n){let i=sw(iw(e,s6[r],"color",...n),Ta.color.close,this[$f]);return Ix(this,i,this[cg])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Yf[t]={get(){let{level:r}=this;return function(...n){let i=sw(iw(e,s6[r],"bgColor",...n),Ta.bgColor.close,this[$f]);return Ix(this,i,this[cg])}}}}var Cfe=Object.defineProperties(()=>{},{...Yf,level:{enumerable:!0,get(){return this[nw].level},set(e){this[nw].level=e}}}),sw=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Ix=(e,t,r)=>{let n=(...i)=>Sfe(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Cfe),n[nw]=e,n[$f]=t,n[cg]=r,n},Sfe=(e,t)=>{if(e.level<=0||!t)return e[cg]?"":t;let r=e[$f];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=t6(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
|
93
|
-
`);return s!==-1&&(t=r6(t,i,n,s)),n+t+i};Object.defineProperties(lg.prototype,Yf);var bfe=lg(),iHe=lg({level:i6?i6.level:0});var Or=bfe;var Dfe=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/,wfe=/^ansi256\(\s?(\d+)\s?\)$/,Tfe=e=>e in Or,Ife=(e,t,r)=>{if(!t)return e;if(Tfe(t)){if(r==="foreground")return Or[t](e);let n=`bg${t[0].toUpperCase()+t.slice(1)}`;return Or[n](e)}if(t.startsWith("#"))return r==="foreground"?Or.hex(t)(e):Or.bgHex(t)(e);if(t.startsWith("ansi256")){let n=wfe.exec(t);if(!n)return e;let i=Number(n[1]);return r==="foreground"?Or.ansi256(i)(e):Or.bgAnsi256(i)(e)}if(t.startsWith("rgb")){let n=Dfe.exec(t);if(!n)return e;let i=Number(n[1]),s=Number(n[2]),a=Number(n[3]);return r==="foreground"?Or.rgb(i,s,a)(e):Or.bgRgb(i,s,a)(e)}return e},vc=Ife;var Rfe=(e,t,r,n)=>{if(r.style.borderStyle){let i=r.yogaNode.getComputedWidth(),s=r.yogaNode.getComputedHeight(),a=typeof r.style.borderStyle=="string"?a6.default[r.style.borderStyle]:r.style.borderStyle,o=r.style.borderTopColor??r.style.borderColor,u=r.style.borderBottomColor??r.style.borderColor,l=r.style.borderLeftColor??r.style.borderColor,f=r.style.borderRightColor??r.style.borderColor,h=r.style.borderTop!==!1,m=r.style.borderBottom!==!1,y=r.style.borderLeft!==!1,_=r.style.borderRight!==!1,C=i-(y?1:0)-(_?1:0),b=h?vc((y?a.topLeft:"")+a.top.repeat(C)+(_?a.topRight:""),o,"foreground"):void 0,D=s;h&&(D-=1),m&&(D-=1);let L=(vc(a.left,l,"foreground")+`
|
|
94
|
-
`).repeat(D),F=(vc(a.right,f,"foreground")+`
|
|
95
|
-
`).repeat(D),q=m?vc((y?a.bottomLeft:"")+a.bottom.repeat(C)+(_?a.bottomRight:""),u,"foreground"):void 0,M=h?1:0;b&&n.write(e,t,b,{transformers:[]}),y&&n.write(e,t+M,L,{transformers:[]}),_&&n.write(e+i-1,t+M,F,{transformers:[]}),q&&n.write(e,t+s-1,q,{transformers:[]})}},o6=Rfe;var Nfe=(e,t)=>{let r=e.childNodes[0]?.yogaNode;if(r){let n=r.getComputedLeft(),i=r.getComputedTop();t=`
|
|
96
|
-
`.repeat(i)+ew(t,n)}return t},u6=(e,t,r)=>{let{offsetX:n=0,offsetY:i=0,transformers:s=[],skipStaticElements:a}=r;if(a&&e.internal_static)return;let{yogaNode:o}=e;if(o){if(o.getDisplay()===Qe.DISPLAY_NONE)return;let u=n+o.getComputedLeft(),l=i+o.getComputedTop(),f=s;if(typeof e.internal_transform=="function"&&(f=[e.internal_transform,...s]),e.nodeName==="ink-text"){let m=Sx(e);if(m.length>0){let y=Vl(m),_=WU(o);if(y>_){let C=e.style.textWrap??"wrap";m=Cx(m,_,C)}m=Nfe(e,m),t.write(u,l,m,{transformers:f})}return}let h=!1;if(e.nodeName==="ink-box"){o6(u,l,e,t);let m=e.style.overflowX==="hidden"||e.style.overflow==="hidden",y=e.style.overflowY==="hidden"||e.style.overflow==="hidden";if(m||y){let _=m?u+o.getComputedBorder(Qe.EDGE_LEFT):void 0,C=m?u+o.getComputedWidth()-o.getComputedBorder(Qe.EDGE_RIGHT):void 0,b=y?l+o.getComputedBorder(Qe.EDGE_TOP):void 0,D=y?l+o.getComputedHeight()-o.getComputedBorder(Qe.EDGE_BOTTOM):void 0;t.clip({x1:_,x2:C,y1:b,y2:D}),h=!0}}if(e.nodeName==="ink-root"||e.nodeName==="ink-box"){for(let m of e.childNodes)u6(m,t,{offsetX:u,offsetY:l,transformers:f,skipStaticElements:a});h&&t.unclip()}}},aw=u6;d();d();d();function ow(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}var Ofe=new Set([27,155]),Pfe="0".codePointAt(0),Bfe="9".codePointAt(0),cw=new Set,uw=new Map;for(let[e,t]of wa.codes)cw.add(wa.color.ansi(t)),uw.set(wa.color.ansi(e),wa.color.ansi(t));function Lfe(e){if(cw.has(e))return e;if(uw.has(e))return uw.get(e);e=e.slice(2),e.includes(";")&&(e=e[0]+"0");let t=wa.codes.get(Number.parseInt(e,10));return t?wa.color.ansi(t):wa.reset.open}function Ffe(e){for(let t=0;t<e.length;t++){let r=e.codePointAt(t);if(r>=Pfe&&r<=Bfe)return t}return-1}function kfe(e,t){e=e.slice(t,t+19);let r=Ffe(e);if(r!==-1){let n=e.indexOf("m",r);return n===-1&&(n=e.length),e.slice(0,n+1)}}function Ufe(e,t=Number.POSITIVE_INFINITY){let r=[],n=0,i=0;for(;n<e.length;){let s=e.codePointAt(n);if(Ofe.has(s)){let u=kfe(e,n);if(u){r.push({type:"ansi",code:u,endCode:Lfe(u)}),n+=u.length;continue}}let a=ow(s),o=String.fromCodePoint(s);if(r.push({type:"character",value:o,isFullWidth:a}),n+=o.length,i+=a?2:o.length,i>=t)break}return r}function c6(e){let t=[];for(let r of e)r.code===wa.reset.open?t=[]:cw.has(r.code)?t=t.filter(n=>n.endCode!==r.code):(t=t.filter(n=>n.endCode!==r.endCode),t.push(r));return t}function Mfe(e){return c6(e).map(({endCode:n})=>n).reverse().join("")}function pg(e,t,r){let n=Ufe(e,r),i=[],s=0,a="",o=!1;for(let u of n){if(r!==void 0&&s>=r)break;u.type==="ansi"?(i.push(u),o&&(a+=u.code)):(!o&&s>=t&&(o=!0,i=c6(i),a=i.map(({code:l})=>l).join("")),o&&(a+=u.value),s+=u.isFullWidth?2:u.value.length)}return a+=Mfe(i),a}var Xf=class{constructor(t){Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"operations",{enumerable:!0,configurable:!0,writable:!0,value:[]});let{width:r,height:n}=t;this.width=r,this.height=n}write(t,r,n,i){let{transformers:s}=i;n&&this.operations.push({type:"write",x:t,y:r,text:n,transformers:s})}clip(t){this.operations.push({type:"clip",clip:t})}unclip(){this.operations.push({type:"unclip"})}get(){let t=[];for(let i=0;i<this.height;i++)t.push(" ".repeat(this.width));let r=[];for(let i of this.operations)if(i.type==="clip"&&r.push(i.clip),i.type==="unclip"&&r.pop(),i.type==="write"){let{text:s,transformers:a}=i,{x:o,y:u}=i,l=s.split(`
|
|
97
|
-
`),f=r[r.length-1];if(f){let m=typeof f?.x1=="number"&&typeof f?.x2=="number",y=typeof f?.y1=="number"&&typeof f?.y2=="number";if(m){let _=Vl(s);if(o+_<f.x1||o>f.x2)continue}if(y){let _=l.length;if(u+_<f.y1||u>f.y2)continue}if(m&&(l=l.map(_=>{let C=o<f.x1?f.x1-o:0,b=fo(_),D=o+b>f.x2?f.x2-o:b;return pg(_,C,D)}),o<f.x1&&(o=f.x1)),y){let _=u<f.y1?f.y1-u:0,C=l.length,b=u+C>f.y2?f.y2-u:C;l=l.slice(_,b),u<f.y1&&(u=f.y1)}}let h=0;for(let m of l){let y=t[u+h];if(!y)continue;let _=fo(m);for(let C of a)m=C(m);t[u+h]=pg(y,0,o)+m+pg(y,o+_),h++}}return{output:t.map(i=>i.trimEnd()).join(`
|
|
98
|
-
`),height:t.length}}};var qfe=e=>{if(e.yogaNode){let t=new Xf({width:e.yogaNode.getComputedWidth(),height:e.yogaNode.getComputedHeight()});aw(e,t,{skipStaticElements:!0});let r;e.staticNode?.yogaNode&&(r=new Xf({width:e.staticNode.yogaNode.getComputedWidth(),height:e.staticNode.yogaNode.getComputedHeight()}),aw(e.staticNode,r,{skipStaticElements:!1}));let{output:n,height:i}=t.get();return{output:n,outputHeight:i,staticOutput:r?`${r.get().output}
|
|
99
|
-
`:""}}return{output:"",outputHeight:0,staticOutput:""}},l6=qfe;d();d();import y6 from"node:process";d();var m6=Ce(h6(),1),g6=Ce(TD(),1);import Vfe from"node:process";var Hfe=(0,m6.default)(()=>{(0,g6.default)(()=>{Vfe.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),v6=Hfe;var Ox=!1,Jf={};Jf.show=(e=y6.stderr)=>{e.isTTY&&(Ox=!1,e.write("\x1B[?25h"))};Jf.hide=(e=y6.stderr)=>{e.isTTY&&(v6(),Ox=!0,e.write("\x1B[?25l"))};Jf.toggle=(e,t)=>{e!==void 0&&(Ox=e),Ox?Jf.show(t):Jf.hide(t)};var Zf=Jf;var Gfe=(e,{showCursor:t=!1}={})=>{let r=0,n="",i=!1,s=a=>{!t&&!i&&(Zf.hide(),i=!0);let o=a+`
|
|
100
|
-
`;o!==n&&(n=o,e.write(tg.eraseLines(r)+o),r=o.split(`
|
|
101
|
-
`).length)};return s.clear=()=>{e.write(tg.eraseLines(r)),n="",r=0},s.done=()=>{n="",r=0,t||(Zf.show(),i=!1)},s},Wfe={create:Gfe},x6=Wfe;d();var Qfe=new WeakMap,ed=Qfe;d();import dde from"node:process";import td,{PureComponent as hde}from"react";d();import{createContext as zfe}from"react";var E6=zfe({exit(){}});E6.displayName="InternalAppContext";var Px=E6;d();import Kfe from"node:process";import{createContext as $fe}from"react";var _6=$fe({stdin:Kfe.stdin,setRawMode(){},isRawModeSupported:!1,internal_exitOnCtrlC:!0});_6.displayName="InternalStdinContext";var Bx=_6;d();import Yfe from"node:process";import{createContext as Xfe}from"react";var A6=Xfe({stdout:Yfe.stdout,write(){}});A6.displayName="InternalStdoutContext";var pw=A6;d();import Jfe from"node:process";import{createContext as Zfe}from"react";var C6=Zfe({stderr:Jfe.stderr,write(){}});C6.displayName="InternalStderrContext";var fw=C6;d();import{createContext as ede}from"react";var S6=ede({activeId:void 0,add(){},remove(){},activate(){},deactivate(){},enableFocus(){},disableFocus(){},focusNext(){},focusPrevious(){},focus(){}});S6.displayName="InternalFocusContext";var Lx=S6;d();var mw=Ce(R6(),1);import*as Fx from"node:fs";import{cwd as L6}from"node:process";import Sn from"react";d();d();var ode=(e,t=2)=>e.replace(/^\t+/gm,r=>" ".repeat(r.length*t)),N6=ode;var ude=(e,t)=>{let r=[],n=e-t,i=e+t;for(let s=n;s<=i;s++)r.push(s);return r},cde=(e,t,r={})=>{var n;if(typeof e!="string")throw new TypeError("Source code is missing.");if(!t||t<1)throw new TypeError("Line number must start from `1`.");let i=N6(e).split(/\r?\n/);if(!(t>i.length))return ude(t,(n=r.around)!==null&&n!==void 0?n:3).filter(s=>i[s-1]!==void 0).map(s=>({line:s,value:i[s-1]}))},O6=cde;d();import lde,{forwardRef as pde}from"react";var hw=pde(({children:e,...t},r)=>lde.createElement("ink-box",{ref:r,style:{...t,overflowX:t.overflowX??t.overflow??"visible",overflowY:t.overflowY??t.overflow??"visible"}},e));hw.displayName="Box";hw.defaultProps={flexWrap:"nowrap",flexDirection:"row",flexGrow:0,flexShrink:1};var ke=hw;d();import fde from"react";function vr({color:e,backgroundColor:t,dimColor:r=!1,bold:n=!1,italic:i=!1,underline:s=!1,strikethrough:a=!1,inverse:o=!1,wrap:u="wrap",children:l}){if(l==null)return null;let f=h=>(r&&(h=Or.dim(h)),e&&(h=vc(h,e,"foreground")),t&&(h=vc(h,t,"background")),n&&(h=Or.bold(h)),i&&(h=Or.italic(h)),s&&(h=Or.underline(h)),a&&(h=Or.strikethrough(h)),o&&(h=Or.inverse(h)),h);return fde.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:u},internal_transform:f},l)}var P6=e=>e?.replace(`file://${L6()}/`,""),B6=new mw.default({cwd:L6(),internals:mw.default.nodeInternals()});function gw({error:e}){let t=e.stack?e.stack.split(`
|
|
102
|
-
`).slice(1):void 0,r=t?B6.parseLine(t[0]):void 0,n=P6(r?.file),i,s=0;if(n&&r?.line&&Fx.existsSync(n)){let a=Fx.readFileSync(n,"utf8");if(i=O6(a,r.line),i)for(let{line:o}of i)s=Math.max(s,String(o).length)}return Sn.createElement(ke,{flexDirection:"column",padding:1},Sn.createElement(ke,null,Sn.createElement(vr,{backgroundColor:"red",color:"white"}," ","ERROR"," "),Sn.createElement(vr,null," ",e.message)),r&&n&&Sn.createElement(ke,{marginTop:1},Sn.createElement(vr,{dimColor:!0},n,":",r.line,":",r.column)),r&&i&&Sn.createElement(ke,{marginTop:1,flexDirection:"column"},i.map(({line:a,value:o})=>Sn.createElement(ke,{key:a},Sn.createElement(ke,{width:s+1},Sn.createElement(vr,{dimColor:a!==r.line,backgroundColor:a===r.line?"red":void 0,color:a===r.line?"white":void 0},String(a).padStart(s," "),":")),Sn.createElement(vr,{key:a,backgroundColor:a===r.line?"red":void 0,color:a===r.line?"white":void 0}," "+o)))),e.stack&&Sn.createElement(ke,{marginTop:1,flexDirection:"column"},e.stack.split(`
|
|
103
|
-
`).slice(1).map(a=>{let o=B6.parseLine(a);return o?Sn.createElement(ke,{key:a},Sn.createElement(vr,{dimColor:!0},"- "),Sn.createElement(vr,{dimColor:!0,bold:!0},o.function),Sn.createElement(vr,{dimColor:!0,color:"gray"}," ","(",P6(o.file)??"",":",o.line,":",o.column,")")):Sn.createElement(ke,{key:a},Sn.createElement(vr,{dimColor:!0},"- "),Sn.createElement(vr,{dimColor:!0,bold:!0},a))})))}var mde=" ",gde="\x1B[Z",vde="\x1B",rd=class extends hde{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:{isFocusEnabled:!0,activeFocusId:void 0,focusables:[],error:void 0}}),Object.defineProperty(this,"rawModeEnabledCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"handleSetRawMode",{enumerable:!0,configurable:!0,writable:!0,value:t=>{let{stdin:r}=this.props;if(!this.isRawModeSupported())throw r===dde.stdin?new Error(`Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
|
|
104
|
-
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`):new Error(`Raw mode is not supported on the stdin provided to Ink.
|
|
105
|
-
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`);if(r.setEncoding("utf8"),t){this.rawModeEnabledCount===0&&(r.addListener("data",this.handleInput),r.resume(),r.setRawMode(!0)),this.rawModeEnabledCount++;return}--this.rawModeEnabledCount===0&&(r.setRawMode(!1),r.removeListener("data",this.handleInput),r.pause())}}),Object.defineProperty(this,"handleInput",{enumerable:!0,configurable:!0,writable:!0,value:t=>{t===""&&this.props.exitOnCtrlC&&this.handleExit(),t===vde&&this.state.activeFocusId&&this.setState({activeFocusId:void 0}),this.state.isFocusEnabled&&this.state.focusables.length>0&&(t===mde&&this.focusNext(),t===gde&&this.focusPrevious())}}),Object.defineProperty(this,"handleExit",{enumerable:!0,configurable:!0,writable:!0,value:t=>{this.isRawModeSupported()&&this.handleSetRawMode(!1),this.props.onExit(t)}}),Object.defineProperty(this,"enableFocus",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.setState({isFocusEnabled:!0})}}),Object.defineProperty(this,"disableFocus",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.setState({isFocusEnabled:!1})}}),Object.defineProperty(this,"focus",{enumerable:!0,configurable:!0,writable:!0,value:t=>{this.setState(r=>r.focusables.some(i=>i?.id===t)?{activeFocusId:t}:r)}}),Object.defineProperty(this,"focusNext",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.setState(t=>{let r=t.focusables[0]?.id;return{activeFocusId:this.findNextFocusable(t)??r}})}}),Object.defineProperty(this,"focusPrevious",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.setState(t=>{let r=t.focusables[t.focusables.length-1]?.id;return{activeFocusId:this.findPreviousFocusable(t)??r}})}}),Object.defineProperty(this,"addFocusable",{enumerable:!0,configurable:!0,writable:!0,value:(t,{autoFocus:r})=>{this.setState(n=>{let i=n.activeFocusId;return!i&&r&&(i=t),{activeFocusId:i,focusables:[...n.focusables,{id:t,isActive:!0}]}})}}),Object.defineProperty(this,"removeFocusable",{enumerable:!0,configurable:!0,writable:!0,value:t=>{this.setState(r=>({activeFocusId:r.activeFocusId===t?void 0:r.activeFocusId,focusables:r.focusables.filter(n=>n.id!==t)}))}}),Object.defineProperty(this,"activateFocusable",{enumerable:!0,configurable:!0,writable:!0,value:t=>{this.setState(r=>({focusables:r.focusables.map(n=>n.id!==t?n:{id:t,isActive:!0})}))}}),Object.defineProperty(this,"deactivateFocusable",{enumerable:!0,configurable:!0,writable:!0,value:t=>{this.setState(r=>({activeFocusId:r.activeFocusId===t?void 0:r.activeFocusId,focusables:r.focusables.map(n=>n.id!==t?n:{id:t,isActive:!1})}))}}),Object.defineProperty(this,"findNextFocusable",{enumerable:!0,configurable:!0,writable:!0,value:t=>{let r=t.focusables.findIndex(n=>n.id===t.activeFocusId);for(let n=r+1;n<t.focusables.length;n++){let i=t.focusables[n];if(i?.isActive)return i.id}}}),Object.defineProperty(this,"findPreviousFocusable",{enumerable:!0,configurable:!0,writable:!0,value:t=>{let r=t.focusables.findIndex(n=>n.id===t.activeFocusId);for(let n=r-1;n>=0;n--){let i=t.focusables[n];if(i?.isActive)return i.id}}})}static getDerivedStateFromError(t){return{error:t}}isRawModeSupported(){return this.props.stdin.isTTY}render(){return td.createElement(Px.Provider,{value:{exit:this.handleExit}},td.createElement(Bx.Provider,{value:{stdin:this.props.stdin,setRawMode:this.handleSetRawMode,isRawModeSupported:this.isRawModeSupported(),internal_exitOnCtrlC:this.props.exitOnCtrlC}},td.createElement(pw.Provider,{value:{stdout:this.props.stdout,write:this.props.writeToStdout}},td.createElement(fw.Provider,{value:{stderr:this.props.stderr,write:this.props.writeToStderr}},td.createElement(Lx.Provider,{value:{activeId:this.state.activeFocusId,add:this.addFocusable,remove:this.removeFocusable,activate:this.activateFocusable,deactivate:this.deactivateFocusable,enableFocus:this.enableFocus,disableFocus:this.disableFocus,focusNext:this.focusNext,focusPrevious:this.focusPrevious,focus:this.focus}},this.state.error?td.createElement(gw,{error:this.state.error}):this.props.children)))))}componentDidMount(){Zf.hide(this.props.stdout)}componentWillUnmount(){Zf.show(this.props.stdout),this.isRawModeSupported()&&this.handleSetRawMode(!1)}componentDidCatch(t){this.handleExit(t)}};Object.defineProperty(rd,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:"InternalApp"});var nd=k6.env.CI==="false"?!1:U6.default,F6=()=>{},fg=class{constructor(t){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"log",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"throttledLog",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isUnmounted",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lastOutput",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fullStaticOutput",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"exitPromise",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"restoreConsole",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"unsubscribeResize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"resized",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.calculateLayout(),this.onRender()}}),Object.defineProperty(this,"resolveExitPromise",{enumerable:!0,configurable:!0,writable:!0,value:()=>{}}),Object.defineProperty(this,"rejectExitPromise",{enumerable:!0,configurable:!0,writable:!0,value:()=>{}}),Object.defineProperty(this,"unsubscribeExit",{enumerable:!0,configurable:!0,writable:!0,value:()=>{}}),Object.defineProperty(this,"calculateLayout",{enumerable:!0,configurable:!0,writable:!0,value:()=>{let r=this.options.stdout.columns||80;this.rootNode.yogaNode.setWidth(r),this.rootNode.yogaNode.calculateLayout(void 0,void 0,Qe.DIRECTION_LTR)}}),Object.defineProperty(this,"onRender",{enumerable:!0,configurable:!0,writable:!0,value:()=>{if(this.isUnmounted)return;let{output:r,outputHeight:n,staticOutput:i}=l6(this.rootNode),s=i&&i!==`
|
|
106
|
-
`;if(this.options.debug){s&&(this.fullStaticOutput+=i),this.options.stdout.write(this.fullStaticOutput+r);return}if(nd){s&&this.options.stdout.write(i),this.lastOutput=r;return}if(s&&(this.fullStaticOutput+=i),n>=this.options.stdout.rows){this.options.stdout.write(tg.clearTerminal+this.fullStaticOutput+r),this.lastOutput=r;return}s&&(this.log.clear(),this.options.stdout.write(i),this.log(r)),!s&&r!==this.lastOutput&&this.throttledLog(r),this.lastOutput=r}}),bD(this),this.options=t,this.rootNode=bx("ink-root"),this.rootNode.onComputeLayout=this.calculateLayout,this.rootNode.onRender=t.debug?this.onRender:(0,vw.default)(this.onRender,32,{leading:!0,trailing:!0}),this.rootNode.onImmediateRender=this.onRender,this.log=x6.create(t.stdout),this.throttledLog=t.debug?this.log:(0,vw.default)(this.log,void 0,{leading:!0,trailing:!0}),this.isUnmounted=!1,this.lastOutput="",this.fullStaticOutput="",this.container=ug.createContainer(this.rootNode,0,null,!1,null,"id",()=>{},null),this.unsubscribeExit=(0,M6.default)(this.unmount,{alwaysLast:!1}),k6.env.DEV==="true"&&ug.injectIntoDevTools({bundleType:0,version:"16.13.1",rendererPackageName:"ink"}),t.patchConsole&&this.patchConsole(),nd||(t.stdout.on("resize",this.resized),this.unsubscribeResize=()=>{t.stdout.off("resize",this.resized)})}render(t){let r=yde.createElement(rd,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,writeToStdout:this.writeToStdout,writeToStderr:this.writeToStderr,exitOnCtrlC:this.options.exitOnCtrlC,onExit:this.unmount},t);ug.updateContainer(r,this.container,null,F6)}writeToStdout(t){if(!this.isUnmounted){if(this.options.debug){this.options.stdout.write(t+this.fullStaticOutput+this.lastOutput);return}if(nd){this.options.stdout.write(t);return}this.log.clear(),this.options.stdout.write(t),this.log(this.lastOutput)}}writeToStderr(t){if(!this.isUnmounted){if(this.options.debug){this.options.stderr.write(t),this.options.stdout.write(this.fullStaticOutput+this.lastOutput);return}if(nd){this.options.stderr.write(t);return}this.log.clear(),this.options.stderr.write(t),this.log(this.lastOutput)}}unmount(t){this.isUnmounted||(this.calculateLayout(),this.onRender(),this.unsubscribeExit(),typeof this.restoreConsole=="function"&&this.restoreConsole(),typeof this.unsubscribeResize=="function"&&this.unsubscribeResize(),nd?this.options.stdout.write(this.lastOutput+`
|
|
107
|
-
`):this.options.debug||this.log.done(),this.isUnmounted=!0,ug.updateContainer(null,this.container,null,F6),ed.delete(this.options.stdout),t instanceof Error?this.rejectExitPromise(t):this.resolveExitPromise())}async waitUntilExit(){return this.exitPromise||(this.exitPromise=new Promise((t,r)=>{this.resolveExitPromise=t,this.rejectExitPromise=r})),this.exitPromise}clear(){!nd&&!this.options.debug&&this.log.clear()}patchConsole(){this.options.debug||(this.restoreConsole=L8((t,r)=>{t==="stdout"&&this.writeToStdout(r),t==="stderr"&&(r.startsWith("The above error occurred")||this.writeToStderr(r))}))}};var Ede=(e,t)=>{let r={stdout:kx.stdout,stdin:kx.stdin,stderr:kx.stderr,debug:!1,exitOnCtrlC:!0,patchConsole:!0,..._de(t)},n=Ade(r.stdout,()=>new fg(r));return n.render(e),{rerender:n.render,unmount(){n.unmount()},waitUntilExit:n.waitUntilExit,cleanup:()=>ed.delete(r.stdout),clear:n.clear}},Ux=Ede,_de=(e={})=>e instanceof xde?{stdout:e,stdin:kx.stdin}:e,Ade=(e,t)=>{let r=ed.get(e);return r||(r=t(),ed.set(e,r)),r};d();import xGe,{useMemo as EGe,useState as _Ge,useLayoutEffect as AGe}from"react";d();import Cde from"react";function Mx({children:e,transform:t}){return e==null?null:Cde.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row"},internal_transform:t},e)}d();import Sde from"react";function Ia({count:e=1}){return Sde.createElement("ink-text",null,`
|
|
108
|
-
`.repeat(e))}d();import OGe from"react";d();import{useEffect as G6}from"react";d();function q6(e){return e.toUpperCase()===e&&e.toLowerCase()!==e}d();import{Buffer as bde}from"node:buffer";var Dde=/^(?:\x1b)([a-zA-Z0-9])$/,wde=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,j6={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"},V6=[...Object.values(j6),"backspace"],Tde=e=>["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(e),Ide=e=>["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(e),Rde=(e="")=>{let t;bde.isBuffer(e)?e[0]>127&&e[1]===void 0?(e[0]-=128,e="\x1B"+String(e)):e=String(e):e!==void 0&&typeof e!="string"?e=String(e):e||(e="");let r={name:"",ctrl:!1,meta:!1,shift:!1,option:!1,sequence:e,raw:e};if(r.sequence=r.sequence||e||r.name,e==="\r")r.raw=void 0,r.name="return";else if(e===`
|
|
109
|
-
`)r.name="enter";else if(e===" ")r.name="tab";else if(e==="\b"||e==="\x1B\b")r.name="backspace",r.meta=e.charAt(0)==="\x1B";else if(e==="\x7F"||e==="\x1B\x7F")r.name="delete",r.meta=e.charAt(0)==="\x1B";else if(e==="\x1B"||e==="\x1B\x1B")r.name="escape",r.meta=e.length===2;else if(e===" "||e==="\x1B ")r.name="space",r.meta=e.length===2;else if(e<="")r.name=String.fromCharCode(e.charCodeAt(0)+97-1),r.ctrl=!0;else if(e.length===1&&e>="0"&&e<="9")r.name="number";else if(e.length===1&&e>="a"&&e<="z")r.name=e;else if(e.length===1&&e>="A"&&e<="Z")r.name=e.toLowerCase(),r.shift=!0;else if(t=Dde.exec(e))r.meta=!0,r.shift=/^[A-Z]$/.test(t[1]);else if(t=wde.exec(e)){let n=[...e];n[0]==="\x1B"&&n[1]==="\x1B"&&(r.option=!0);let i=[t[1],t[2],t[4],t[6]].filter(Boolean).join(""),s=(t[3]||t[5]||1)-1;r.ctrl=!!(s&4),r.meta=!!(s&10),r.shift=!!(s&1),r.code=i,r.name=j6[i],r.shift=Tde(i)||r.shift,r.ctrl=Ide(i)||r.ctrl}return r},H6=Rde;d();import{useContext as Nde}from"react";var Ode=()=>Nde(Bx),qx=Ode;var Pde=(e,t={})=>{let{stdin:r,setRawMode:n,internal_exitOnCtrlC:i}=qx();G6(()=>{if(t.isActive!==!1)return n(!0),()=>{n(!1)}},[t.isActive,n]),G6(()=>{if(t.isActive===!1)return;let s=a=>{let o=H6(a),u={upArrow:o.name==="up",downArrow:o.name==="down",leftArrow:o.name==="left",rightArrow:o.name==="right",pageDown:o.name==="pagedown",pageUp:o.name==="pageup",return:o.name==="return",escape:o.name==="escape",ctrl:o.ctrl,shift:o.shift,tab:o.name==="tab",backspace:o.name==="backspace",delete:o.name==="delete",meta:o.meta||o.name==="escape"||o.option},l=o.ctrl?o.name:o.sequence;V6.includes(o.name)&&(l=""),l.startsWith("\x1B")&&(l=l.slice(1)),l.length===1&&typeof l[0]=="string"&&q6(l[0])&&(u.shift=!0),(!(l==="c"&&u.ctrl)||!i)&&e(l,u)};return r?.on("data",s),()=>{r?.off("data",s)}},[t.isActive,r,i,e])},ci=Pde;d();import{useContext as Bde}from"react";var Lde=()=>Bde(Px),yw=Lde;d();import{useContext as r7e}from"react";d();import{useContext as o7e}from"react";d();import{useEffect as f7e,useContext as d7e,useMemo as h7e}from"react";d();import{useContext as E7e}from"react";d();d();d();import vg,{useState as Zde,useCallback as ehe}from"react";var Y6=Ce(St(),1);d();var jx=Ce(St(),1),ru=(0,jx.variant)((0,jx.onTerms)(({T:e})=>({NotSubmitted:t=>({value:t}),Submitted:t=>({value:t})})));d();var gg=Ce(St(),1);import mo from"react";d();d();import Ude from"react";d();import Ra from"node:process";function bn(){return Ra.platform!=="win32"?Ra.env.TERM!=="linux":!!Ra.env.CI||!!Ra.env.WT_SESSION||!!Ra.env.TERMINUS_SUBLIME||Ra.env.ConEmuTask==="{cmd::Cmder}"||Ra.env.TERM_PROGRAM==="Terminus-Sublime"||Ra.env.TERM_PROGRAM==="vscode"||Ra.env.TERM==="xterm-256color"||Ra.env.TERM==="alacritty"||Ra.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}d();import Fde from"react";var kde={standard:void 0,secondary:"gray",success:"green",info:"cyan",error:"red",warning:"yellow",legacyBlue:"blueBright"},de=({children:e,skin:t="standard",bold:r,underline:n,strikethrough:i})=>Fde.createElement(vr,{color:kde[t],bold:r,underline:n,strikethrough:i},e);var xw=()=>Ude.createElement(de,null,bn()?"\u2026":"...");d();import Mde from"react";var Ew=()=>Mde.createElement(de,null,bn()?"\u2716":"\xD7");d();import qde from"react";var _w=()=>qde.createElement(de,null,bn()?"\u2139":"i");d();import jde from"react";var dg=()=>jde.createElement(de,null,bn()?"\u276F":">");d();import Vde from"react";var hg=()=>Vde.createElement(de,null,bn()?"\u203A":"\xBB");d();import Hde from"react";var Aw=()=>Hde.createElement(de,null,"?");d();import Gde from"react";var nu=()=>Gde.createElement(de,null,bn()?"\u2714":"\u221A");d();import Wde from"react";var Cw=()=>Wde.createElement(de,null,bn()?"\u26A0":"\u203C");d();import Qde from"react";var mg=()=>Qde.createElement(de,null,bn()?"\u{1F4A1}":"!");var Vx=({children:e,inputState:t})=>{let{icon:r,separator:n}=(0,gg.match)(t,{NotSubmitted:(0,gg.constant)({icon:mo.createElement(de,{skin:"info"},mo.createElement(Aw,null)),separator:mo.createElement(de,{skin:"secondary"},mo.createElement(hg,null))}),Submitted:(0,gg.constant)({icon:mo.createElement(de,{skin:"success"},mo.createElement(nu,null)),separator:mo.createElement(de,{skin:"secondary"},mo.createElement(xw,null))})});return mo.createElement(ke,{columnGap:1},r,mo.createElement(de,{bold:!0},e),n)};d();var Q6=Ce(St(),1);import W6 from"react";var z6=({inputState:e})=>(0,Q6.match)(e,{NotSubmitted:({value:t})=>W6.createElement(de,{skin:"secondary"},"(",t?"Y/n":"y/N",")"),Submitted:({value:t})=>W6.createElement(de,null,t?"yes":"no")});d();import Xde,{useCallback as Jde}from"react";d();import zde,{useState as Kde,useEffect as $de}from"react";function Yde({value:e,placeholder:t="",focus:r=!0,mask:n,highlightPastedText:i=!1,showCursor:s=!0,onChange:a,onSubmit:o}){let[u,l]=Kde({cursorOffset:(e||"").length,cursorWidth:0}),{cursorOffset:f,cursorWidth:h}=u;$de(()=>{l(b=>{if(!r||!s)return b;let D=e||"";return b.cursorOffset>D.length-1?{cursorOffset:D.length,cursorWidth:0}:b})},[e,r,s]);let m=i?h:0,y=n?n.repeat(e.length):e,_=y,C=t?Or.grey(t):void 0;if(s&&r){C=t.length>0?Or.inverse(t[0])+Or.grey(t.slice(1)):Or.inverse(" "),_=y.length>0?"":Or.inverse(" ");let b=0;for(let D of y)_+=b>=f-m&&b<=f?Or.inverse(D):D,b++;y.length>0&&f===y.length&&(_+=Or.inverse(" "))}return ci((b,D)=>{if(D.upArrow||D.downArrow||D.ctrl&&b==="c"||D.tab||D.shift&&D.tab)return;if(D.return){o&&o(e);return}let L=f,F=e,q=0;D.leftArrow?s&&L--:D.rightArrow?s&&L++:D.backspace||D.delete?f>0&&(F=e.slice(0,f-1)+e.slice(f,e.length),L--):(F=e.slice(0,f)+b+e.slice(f,e.length),L+=b.length,b.length>1&&(q=b.length)),f<0&&(L=0),f>e.length&&(L=e.length),l({cursorOffset:L,cursorWidth:q}),F!==e&&a(F)},{isActive:r}),zde.createElement(vr,null,t?y.length>0?_:C:_)}var K6=Yde;var $6=({initialValue:e,onSubmit:t})=>{let r=Jde(n=>{let i=n.toLowerCase();["y","n"].includes(i)&&t(i==="y")},[t]);return Xde.createElement(K6,{value:"",showCursor:!1,onChange:r,onSubmit:()=>t(e)})};var Sw=({label:e,initialValue:t=!0,onSubmit:r})=>{let[n,i]=Zde(()=>ru.NotSubmitted(t)),s=ehe(a=>{i(ru.Submitted(a)),r(a)},[r]);return vg.createElement(ke,null,vg.createElement(Vx,{inputState:n},e),vg.createElement(ke,{marginLeft:1},vg.createElement(z6,{inputState:n}),(0,Y6.isType)(n,ru.NotSubmitted)&&vg.createElement($6,{initialValue:t,onSubmit:s})))};d();d();import zl,{useState as Qme,useCallback as QM}from"react";var ud=Ce(St(),1);d();var J6=Ce(St(),1);import X6 from"react";function Z6({inputState:e}){return(0,J6.match)(e,{NotSubmitted:()=>X6.createElement(de,{skin:"secondary"},"- Use arrow-keys. Return to submit."),Submitted:({value:t})=>X6.createElement(de,null,t.title)})}d();import Hme,{useCallback as Gme,useMemo as Wme}from"react";d();d();import bw from"react";d();import the from"node:process";d();var{platform:rhe}=the,eM={square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},nhe={...eM,...rhe==="linux"?{circleQuestionMark:"?\u20DD",questionMarkPrefix:"?\u20DD"}:{circleQuestionMark:"?",questionMarkPrefix:"?"},tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},ihe={...eM,tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",circleQuestionMark:"(?)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",questionMarkPrefix:"\uFF1F",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},she=bn(),ahe=she?nhe:ihe,tM=ahe;function ohe({isSelected:e=!1}){return bw.createElement(ke,{marginRight:1},e?bw.createElement(vr,{color:"blue"},tM.pointer):bw.createElement(vr,null," "))}var Dw=ohe;d();import*as rM from"react";function uhe({isSelected:e=!1,label:t}){return rM.createElement(vr,{color:e?"blue":void 0},t)}var ww=uhe;d();var jM=Ce(kM(),1),Cg=Ce(MM(),1);import eE from"react";import{useState as qM,useEffect as Mme,useRef as qme,useCallback as jme}from"react";function Vme({items:e=[],isFocused:t=!0,initialIndex:r=0,indicatorComponent:n=Dw,itemComponent:i=ww,limit:s,onSelect:a,onHighlight:o}){let u=typeof s=="number"&&e.length>s,l=u?Math.min(s,e.length):e.length,f=l-1,[h,m]=qM(r>f?f-r:0),[y,_]=qM(r?r>f?f:r:0),C=qme(e);Mme(()=>{(0,jM.default)(C.current.map(D=>D.value),e.map(D=>D.value))||(m(0),_(0)),C.current=e},[e]),ci(jme((D,L)=>{if(D==="k"||L.upArrow){let F=(u?l:e.length)-1,q=y===0,M=u?y:F,k=q?h+1:h,te=q?M:y-1;m(k),_(te);let ce=u?(0,Cg.default)(e,k).slice(0,l):e;typeof o=="function"&&o(ce[te])}if(D==="j"||L.downArrow){let F=y===(u?l:e.length)-1,q=u?y:0,M=F?h-1:h,k=F?q:y+1;m(M),_(k);let te=u?(0,Cg.default)(e,M).slice(0,l):e;typeof o=="function"&&o(te[k])}if(L.return){let F=u?(0,Cg.default)(e,h).slice(0,l):e;typeof a=="function"&&a(F[y])}},[u,l,h,y,e,a,o]),{isActive:t});let b=u?(0,Cg.default)(e,h).slice(0,l):e;return eE.createElement(ke,{flexDirection:"column"},b.map((D,L)=>{let F=L===y;return eE.createElement(ke,{key:D.key??D.value},eE.createElement(n,{isSelected:F}),eE.createElement(i,{...D,isSelected:F}))}))}var Mw=Vme;var GM=Ce(St(),1);d();import qw from"react";var VM=({isSelected:e})=>qw.createElement(ke,{width:4},e&&qw.createElement(de,{skin:"info"},qw.createElement(dg,null)));d();import od from"react";var tE=Ce(St(),1);function HM({isSelected:e,label:t,value:{description:r,availability:n=Na.Enabled()}}){let i=(0,tE.isType)(n,Na.Disabled);return od.createElement(ke,null,od.createElement(de,{skin:i?"secondary":e?"info":"standard",underline:e,strikethrough:!e&&i},t),e&&(0,tE.match)(n,{Disabled:({reason:s})=>od.createElement(ke,{marginLeft:1},od.createElement(de,{skin:"warning"},"- disabled",s&&` (${s})`)),Enabled:()=>r&&od.createElement(ke,{marginLeft:1},od.createElement(de,{skin:"secondary"},"- ",r))}))}function WM({options:e,onHighlight:t,onSelect:r,limit:n}){let i=Gme(({value:a})=>{(0,GM.isType)(a.availability,Na.Disabled)||r(a)},[r]),s=Wme(()=>e.map(a=>({key:typeof a.value=="string"?a.value:a.key,label:a.title,value:a})),[e]);return Hme.createElement(Mw,{items:s,limit:n,itemComponent:HM,indicatorComponent:VM,onSelect:i,onHighlight:({value:a})=>t(a)})}var Na=(0,ud.variant)({Enabled:{},Disabled:(0,ud.fields)()});function au({label:e,options:t,onSubmit:r,limit:n=10}){if(t.length===0)throw new Error("SelectInput: options cannot be empty");let[i,s]=Qme(()=>ru.NotSubmitted(t[0])),a=QM(u=>{s(ru.NotSubmitted(u))},[]),o=QM(u=>{s(ru.Submitted(u)),r(u)},[r]);return zl.createElement(zl.Fragment,null,zl.createElement(ke,null,zl.createElement(Vx,{inputState:i},e),zl.createElement(ke,{marginLeft:1},zl.createElement(Z6,{inputState:i}))),(0,ud.isType)(i,ru.NotSubmitted)&&zl.createElement(WM,{options:t,limit:n,onSelect:o,onHighlight:a}))}d();var Kl=Ce(St(),1);import Ec from"react";var un=({type:e,children:t})=>{let r=(0,Kl.match)(e,{error:(0,Kl.constant)(Ec.createElement(de,{skin:"error"},Ec.createElement(Ew,null))),warning:(0,Kl.constant)(Ec.createElement(de,{skin:"warning"},Ec.createElement(Cw,null))),success:(0,Kl.constant)(Ec.createElement(de,{skin:"success"},Ec.createElement(nu,null))),insight:(0,Kl.constant)(Ec.createElement(mg,null))});return Ec.createElement(de,null,r," ",t)};d();import zme from"react";var Oa=({value:e})=>zme.createElement(vr,{inverse:!0}," ",e," ");d();import Ww from"react";d();d();var mr="\x1B[",Sg="\x1B]",cd="\x07",rE=";",zM=process.env.TERM_PROGRAM==="Apple_Terminal",Kt={};Kt.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?mr+(e+1)+"G":mr+(t+1)+";"+(e+1)+"H"};Kt.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=mr+-e+"D":e>0&&(r+=mr+e+"C"),t<0?r+=mr+-t+"A":t>0&&(r+=mr+t+"B"),r};Kt.cursorUp=(e=1)=>mr+e+"A";Kt.cursorDown=(e=1)=>mr+e+"B";Kt.cursorForward=(e=1)=>mr+e+"C";Kt.cursorBackward=(e=1)=>mr+e+"D";Kt.cursorLeft=mr+"G";Kt.cursorSavePosition=zM?"\x1B7":mr+"s";Kt.cursorRestorePosition=zM?"\x1B8":mr+"u";Kt.cursorGetPosition=mr+"6n";Kt.cursorNextLine=mr+"E";Kt.cursorPrevLine=mr+"F";Kt.cursorHide=mr+"?25l";Kt.cursorShow=mr+"?25h";Kt.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=Kt.eraseLine+(r<e-1?Kt.cursorUp():"");return e&&(t+=Kt.cursorLeft),t};Kt.eraseEndLine=mr+"K";Kt.eraseStartLine=mr+"1K";Kt.eraseLine=mr+"2K";Kt.eraseDown=mr+"J";Kt.eraseUp=mr+"1J";Kt.eraseScreen=mr+"2J";Kt.scrollUp=mr+"S";Kt.scrollDown=mr+"T";Kt.clearScreen="\x1Bc";Kt.clearTerminal=process.platform==="win32"?`${Kt.eraseScreen}${mr}0f`:`${Kt.eraseScreen}${mr}3J${mr}H`;Kt.beep=cd;Kt.link=(e,t)=>[Sg,"8",rE,rE,t,cd,e,Sg,"8",rE,rE,cd].join("");Kt.image=(e,t={})=>{let r=`${Sg}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+cd};Kt.iTerm={setCwd:(e=process.cwd())=>`${Sg}50;CurrentDir=${e}${cd}`,annotation:(e,t={})=>{let r=`${Sg}1337;`,n=typeof t.x<"u",i=typeof t.y<"u";if((n||i)&&!(n&&i&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+cd}};var KM=Kt;var nE=Ce(t5(),1);function $l(e,t,{target:r="stdout",...n}={}){return nE.default[r]?KM.link(e,t):n.fallback===!1?e:typeof n.fallback=="function"?n.fallback(e,t):`${e} (\u200B${t}\u200B)`}$l.isSupported=nE.default.stdout;$l.stderr=(e,t,r={})=>$l(e,t,{target:"stderr",...r});$l.stderr.isSupported=nE.default.stderr;var bi=({children:e,url:t,transform:r=n=>n})=>e?Ww.createElement(Mx,{transform:n=>r($l(n,t,{fallback:!0}))},Ww.createElement(de,null,e)):Ww.createElement(de,{skin:"legacyBlue"},t);d();import sE from"react";d();import Jme,{useState as Zme,useEffect as ege}from"react";var a5=Ce(s5(),1);function tge({type:e="dots"}){let[t,r]=Zme(0),n=a5.default[e];return ege(()=>{let i=setInterval(()=>{r(s=>s===n.frames.length-1?0:s+1)},n.interval);return()=>{clearInterval(i)}},[n]),Jme.createElement(vr,null,n.frames[t])}var o5=tge;var Zr=({text:e})=>{let t=sE.createElement(de,{skin:"info"},sE.createElement(o5,{type:"dots"}));return e?sE.createElement(ke,{gap:1},t,sE.createElement(de,null,e)):t};d();import{useCallback as rge}from"react";function ks(){let{exit:e}=yw();return rge(t=>{t instanceof Error?e(t):t!==void 0?e(new Error(JSON.stringify(t))):e()},[e])}d();var ou=Ce(St(),1);d();import{useLayoutEffect as nge,useEffect as Qw,useRef as zw,useState as c5,useCallback as Yl}from"react";function pd(){return pd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pd.apply(this,arguments)}var kKe=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator",UKe=typeof Symbol<"u"?Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")):"@@asyncIterator";var ige=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?nge:Qw,sge=function(t){var r=zw(t);return ige(function(){r.current=t}),Yl(function(){return r.current},[r])},age={status:"not-requested",loading:!1,result:void 0,error:void 0},l5={status:"loading",loading:!0,result:void 0,error:void 0},oge=function(t){return l5},uge=function(t,r){return{status:"success",loading:!1,result:t,error:void 0}},cge=function(t,r){return{status:"error",loading:!1,result:void 0,error:t}},u5=function(){},lge={initialState:function(t){return t&&t.executeOnMount?l5:age},executeOnMount:!0,executeOnUpdate:!0,setLoading:oge,setResult:uge,setError:cge,onSuccess:u5,onError:u5},pge=function(t){return pd({},lge,{},t)},fge=function(t){var r=c5(function(){return t.initialState(t)}),n=r[0],i=r[1],s=Yl(function(){return i(t.initialState(t))},[i,t]),a=Yl(function(){return i(t.setLoading(n))},[n,i]),o=Yl(function(f){return i(t.setResult(f,n))},[n,i]),u=Yl(function(f){return i(t.setError(f,n))},[n,i]),l=Yl(function(f){return i(pd({},n,{},f))},[n,i]);return{value:n,set:i,merge:l,reset:s,setLoading:a,setResult:o,setError:u}},dge=function(){var t=zw(!1);return Qw(function(){return t.current=!0,function(){t.current=!1}},[]),function(){return t.current}},hge=function(){var t=zw(null);return{set:function(n){return t.current=n},get:function(){return t.current},is:function(n){return t.current===n}}},p5=function(t,r,n){!r&&(r=[]);var i=pge(n),s=c5(null),a=s[0],o=s[1],u=fge(i),l=dge(),f=hge(),h=function(D){return l()&&f.is(D)},m=function(){for(var D=arguments.length,L=new Array(D),F=0;F<D;F++)L[F]=arguments[F];var q=function(){try{return Promise.resolve(t.apply(void 0,L))}catch(M){return Promise.reject(M)}}();return o(L),f.set(q),u.setLoading(),q.then(function(M){h(q)&&u.setResult(M),i.onSuccess(M,{isCurrent:function(){return f.is(q)}})},function(M){h(q)&&u.setError(M),i.onError(M,{isCurrent:function(){return f.is(q)}})}),q},y=sge(m),_=Yl(function(){return y().apply(void 0,arguments)},[y]),C=!l();return Qw(function(){var b=function(){return y().apply(void 0,r)};C&&i.executeOnMount&&b(),!C&&i.executeOnUpdate&&b()},r),pd({},u.value,{set:u.set,merge:u.merge,reset:u.reset,execute:_,currentPromise:f.get(),currentParams:a})};function f5(e,t,r){return p5(e,t,r)}var d5=function(t,r){return p5(t,[],pd({},r,{executeOnMount:!1,executeOnUpdate:!1}))};import{useEffect as h5,useMemo as m5}from"react";var bg=(0,ou.variant)((0,ou.onTerms)(({T:e})=>({Error:t=>({error:t}),Success:t=>({result:t}),Loading:()=>({})}))),Dg=(0,ou.variant)((0,ou.onTerms)(({T:e})=>({Error:t=>({error:t}),Success:t=>({result:t}),Loading:()=>({}),NotRequested:()=>({})}))),en=(e,t,r)=>{let n=ks(),i=m5(()=>new AbortController,[]),{result:s,error:a,status:o,merge:u}=f5(e.bind(null,{signal:i.signal}),t,{onError:l=>n(l),...r??{}});return h5(()=>()=>{i.abort()},[i]),(0,ou.match)(o,{error:()=>({status:bg.Error(a??new Error("Unexpected error state in useAsync")),merge:u}),"not-requested":()=>({status:bg.Loading(),merge:u}),loading:()=>({status:bg.Loading(),merge:u}),success:()=>({status:bg.Success(s),merge:u})})},Us=(e,t)=>{let r=ks(),n=m5(()=>new AbortController,[]),{result:i,error:s,status:a,merge:o,execute:u}=d5(e.bind(null,{signal:n.signal}),{onError:l=>r(l),...t??{}});return h5(()=>()=>{n.abort()},[n]),(0,ou.match)(a,{error:()=>({status:Dg.Error(s??new Error("Unexpected error state in useAsyncCallback")),merge:o,execute:u}),"not-requested":()=>({status:Dg.NotRequested(),merge:o,execute:u}),loading:()=>({status:Dg.Loading(),merge:o,execute:u}),success:()=>({status:Dg.Success(i),merge:o,execute:u})})};d();import g0e from"node:events";import Ed,{Component as v0e}from"react";d();import d0e from"node:process";d();var cr;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function r(i){throw new Error}e.assertNever=r,e.arrayToEnum=i=>{let s={};for(let a of i)s[a]=a;return s},e.getValidEnumValues=i=>{let s=e.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),a={};for(let o of s)a[o]=i[o];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(s){return i[s]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s},e.find=(i,s)=>{for(let a of i)if(s(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(cr||(cr={}));var $w;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})($w||($w={}));var je=cr.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ac=e=>{switch(typeof e){case"undefined":return je.undefined;case"string":return je.string;case"number":return isNaN(e)?je.nan:je.number;case"boolean":return je.boolean;case"function":return je.function;case"bigint":return je.bigint;case"symbol":return je.symbol;case"object":return Array.isArray(e)?je.array:e===null?je.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?je.promise:typeof Map<"u"&&e instanceof Map?je.map:typeof Set<"u"&&e instanceof Set?je.set:typeof Date<"u"&&e instanceof Date?je.date:je.object;default:return je.unknown}},Se=cr.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),mge=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ps=class extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){let r=t||function(s){return s.message},n={_errors:[]},i=s=>{for(let a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)n._errors.push(r(a));else{let o=n,u=0;for(;u<a.path.length;){let l=a.path[u];u===a.path.length-1?(o[l]=o[l]||{_errors:[]},o[l]._errors.push(r(a))):o[l]=o[l]||{_errors:[]},o=o[l],u++}}};return i(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,cr.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};ps.create=e=>new ps(e);var wg=(e,t)=>{let r;switch(e.code){case Se.invalid_type:e.received===je.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Se.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,cr.jsonStringifyReplacer)}`;break;case Se.unrecognized_keys:r=`Unrecognized key(s) in object: ${cr.joinValues(e.keys,", ")}`;break;case Se.invalid_union:r="Invalid input";break;case Se.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${cr.joinValues(e.options)}`;break;case Se.invalid_enum_value:r=`Invalid enum value. Expected ${cr.joinValues(e.options)}, received '${e.received}'`;break;case Se.invalid_arguments:r="Invalid function arguments";break;case Se.invalid_return_type:r="Invalid function return type";break;case Se.invalid_date:r="Invalid date";break;case Se.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:cr.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Se.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case Se.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case Se.custom:r="Invalid input";break;case Se.invalid_intersection_types:r="Intersection results could not be merged";break;case Se.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Se.not_finite:r="Number must be finite";break;default:r=t.defaultError,cr.assertNever(e)}return{message:r}},y5=wg;function gge(e){y5=e}function oE(){return y5}var uE=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,s=[...r,...i.path||[]],a={...i,path:s},o="",u=n.filter(l=>!!l).slice().reverse();for(let l of u)o=l(a,{data:t,defaultError:o}).message;return{...i,path:s,message:i.message||o}},vge=[];function He(e,t){let r=uE({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,oE(),wg].filter(n=>!!n)});e.common.issues.push(r)}var li=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let i of r){if(i.status==="aborted")return yt;i.status==="dirty"&&t.dirty(),n.push(i.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let i of r)n.push({key:await i.key,value:await i.value});return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let i of r){let{key:s,value:a}=i;if(s.status==="aborted"||a.status==="aborted")return yt;s.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(n[s.value]=a.value)}return{status:t.value,value:n}}},yt=Object.freeze({status:"aborted"}),x5=e=>({status:"dirty",value:e}),Di=e=>({status:"valid",value:e}),Yw=e=>e.status==="aborted",Xw=e=>e.status==="dirty",Tg=e=>e.status==="valid",cE=e=>typeof Promise<"u"&&e instanceof Promise,at;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(at||(at={}));var Ms=class{constructor(t,r,n,i){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},g5=(e,t)=>{if(Tg(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new ps(e.common.issues);return this._error=r,this._error}}};function bt(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(a,o)=>a.code!=="invalid_type"?{message:o.defaultError}:typeof o.data>"u"?{message:n??o.defaultError}:{message:r??o.defaultError},description:i}}var Dt=class{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Ac(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Ac(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new li,ctx:{common:t.parent.common,data:t.data,parsedType:Ac(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(cE(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;let i={common:{issues:[],async:(n=r?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ac(t)},s=this._parseSync({data:t,path:i.path,parent:i});return g5(i,s)}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ac(t)},i=this._parse({data:t,path:n.path,parent:n}),s=await(cE(i)?i:Promise.resolve(i));return g5(n,s)}refine(t,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let a=t(i),o=()=>s.addIssue({code:Se.custom,...n(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(u=>u?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(t,r){return this._refinement((n,i)=>t(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(t){return new fs({schema:this,typeName:lt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Pa.create(this,this._def)}nullable(){return lu.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return cu.create(this,this._def)}promise(){return bc.create(this,this._def)}or(t){return np.create([this,t],this._def)}and(t){return ip.create(this,t,this._def)}transform(t){return new fs({...bt(this._def),schema:this,typeName:lt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new cp({...bt(this._def),innerType:this,defaultValue:r,typeName:lt.ZodDefault})}brand(){return new dE({typeName:lt.ZodBranded,type:this,...bt(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new vd({...bt(this._def),innerType:this,catchValue:r,typeName:lt.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Ig.create(this,t)}readonly(){return xd.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},yge=/^c[^\s-]{8,}$/i,xge=/^[a-z][a-z0-9]*$/,Ege=/^[0-9A-HJKMNP-TV-Z]{26}$/,_ge=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Age=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Cge="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Kw,Sge=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,bge=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Dge=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function wge(e,t){return!!((t==="v4"||!t)&&Sge.test(e)||(t==="v6"||!t)&&bge.test(e))}var Cc=class e extends Dt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==je.string){let s=this._getOrReturnCtx(t);return He(s,{code:Se.invalid_type,expected:je.string,received:s.parsedType}),yt}let n=new li,i;for(let s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(i=this._getOrReturnCtx(t,i),He(i,{code:Se.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")t.data.length>s.value&&(i=this._getOrReturnCtx(t,i),He(i,{code:Se.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let a=t.data.length>s.value,o=t.data.length<s.value;(a||o)&&(i=this._getOrReturnCtx(t,i),a?He(i,{code:Se.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&He(i,{code:Se.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")Age.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"email",code:Se.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")Kw||(Kw=new RegExp(Cge,"u")),Kw.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"emoji",code:Se.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")_ge.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"uuid",code:Se.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")yge.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"cuid",code:Se.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")xge.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"cuid2",code:Se.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")Ege.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"ulid",code:Se.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),He(i,{validation:"url",code:Se.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"regex",code:Se.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(t,i),He(i,{code:Se.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(i=this._getOrReturnCtx(t,i),He(i,{code:Se.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(i=this._getOrReturnCtx(t,i),He(i,{code:Se.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?Dge(s).test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{code:Se.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="ip"?wge(t.data,s.version)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"ip",code:Se.invalid_string,message:s.message}),n.dirty()):cr.assertNever(s);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(i=>t.test(i),{validation:r,code:Se.invalid_string,...at.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...at.errToObj(t)})}url(t){return this._addCheck({kind:"url",...at.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...at.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...at.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...at.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...at.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...at.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...at.errToObj(t)})}datetime(t){var r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:(r=t?.offset)!==null&&r!==void 0?r:!1,...at.errToObj(t?.message)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...at.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...at.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...at.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...at.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...at.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...at.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...at.errToObj(r)})}nonempty(t){return this.min(1,at.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Cc.create=e=>{var t;return new Cc({checks:[],typeName:lt.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...bt(e)})};function Tge(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(e.toFixed(i).replace(".","")),a=parseInt(t.toFixed(i).replace(".",""));return s%a/Math.pow(10,i)}var Xl=class e extends Dt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==je.number){let s=this._getOrReturnCtx(t);return He(s,{code:Se.invalid_type,expected:je.number,received:s.parsedType}),yt}let n,i=new li;for(let s of this._def.checks)s.kind==="int"?cr.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),He(n,{code:Se.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),He(n,{code:Se.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),He(n,{code:Se.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?Tge(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),He(n,{code:Se.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),He(n,{code:Se.not_finite,message:s.message}),i.dirty()):cr.assertNever(s);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,at.toString(r))}gt(t,r){return this.setLimit("min",t,!1,at.toString(r))}lte(t,r){return this.setLimit("max",t,!0,at.toString(r))}lt(t,r){return this.setLimit("max",t,!1,at.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:at.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:at.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:at.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:at.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:at.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:at.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:at.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:at.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:at.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:at.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&cr.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}};Xl.create=e=>new Xl({checks:[],typeName:lt.ZodNumber,coerce:e?.coerce||!1,...bt(e)});var Jl=class e extends Dt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==je.bigint){let s=this._getOrReturnCtx(t);return He(s,{code:Se.invalid_type,expected:je.bigint,received:s.parsedType}),yt}let n,i=new li;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),He(n,{code:Se.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),He(n,{code:Se.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),He(n,{code:Se.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):cr.assertNever(s);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,at.toString(r))}gt(t,r){return this.setLimit("min",t,!1,at.toString(r))}lte(t,r){return this.setLimit("max",t,!0,at.toString(r))}lt(t,r){return this.setLimit("max",t,!1,at.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:at.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:at.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:at.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:at.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:at.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:at.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Jl.create=e=>{var t;return new Jl({checks:[],typeName:lt.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...bt(e)})};var Zl=class extends Dt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==je.boolean){let n=this._getOrReturnCtx(t);return He(n,{code:Se.invalid_type,expected:je.boolean,received:n.parsedType}),yt}return Di(t.data)}};Zl.create=e=>new Zl({typeName:lt.ZodBoolean,coerce:e?.coerce||!1,...bt(e)});var ep=class e extends Dt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==je.date){let s=this._getOrReturnCtx(t);return He(s,{code:Se.invalid_type,expected:je.date,received:s.parsedType}),yt}if(isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return He(s,{code:Se.invalid_date}),yt}let n=new li,i;for(let s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(i=this._getOrReturnCtx(t,i),He(i,{code:Se.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(i=this._getOrReturnCtx(t,i),He(i,{code:Se.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):cr.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:at.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:at.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};ep.create=e=>new ep({checks:[],coerce:e?.coerce||!1,typeName:lt.ZodDate,...bt(e)});var dd=class extends Dt{_parse(t){if(this._getType(t)!==je.symbol){let n=this._getOrReturnCtx(t);return He(n,{code:Se.invalid_type,expected:je.symbol,received:n.parsedType}),yt}return Di(t.data)}};dd.create=e=>new dd({typeName:lt.ZodSymbol,...bt(e)});var tp=class extends Dt{_parse(t){if(this._getType(t)!==je.undefined){let n=this._getOrReturnCtx(t);return He(n,{code:Se.invalid_type,expected:je.undefined,received:n.parsedType}),yt}return Di(t.data)}};tp.create=e=>new tp({typeName:lt.ZodUndefined,...bt(e)});var rp=class extends Dt{_parse(t){if(this._getType(t)!==je.null){let n=this._getOrReturnCtx(t);return He(n,{code:Se.invalid_type,expected:je.null,received:n.parsedType}),yt}return Di(t.data)}};rp.create=e=>new rp({typeName:lt.ZodNull,...bt(e)});var Sc=class extends Dt{constructor(){super(...arguments),this._any=!0}_parse(t){return Di(t.data)}};Sc.create=e=>new Sc({typeName:lt.ZodAny,...bt(e)});var uu=class extends Dt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Di(t.data)}};uu.create=e=>new uu({typeName:lt.ZodUnknown,...bt(e)});var Ba=class extends Dt{_parse(t){let r=this._getOrReturnCtx(t);return He(r,{code:Se.invalid_type,expected:je.never,received:r.parsedType}),yt}};Ba.create=e=>new Ba({typeName:lt.ZodNever,...bt(e)});var hd=class extends Dt{_parse(t){if(this._getType(t)!==je.undefined){let n=this._getOrReturnCtx(t);return He(n,{code:Se.invalid_type,expected:je.void,received:n.parsedType}),yt}return Di(t.data)}};hd.create=e=>new hd({typeName:lt.ZodVoid,...bt(e)});var cu=class e extends Dt{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),i=this._def;if(r.parsedType!==je.array)return He(r,{code:Se.invalid_type,expected:je.array,received:r.parsedType}),yt;if(i.exactLength!==null){let a=r.data.length>i.exactLength.value,o=r.data.length<i.exactLength.value;(a||o)&&(He(r,{code:a?Se.too_big:Se.too_small,minimum:o?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(He(r,{code:Se.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(He(r,{code:Se.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((a,o)=>i.type._parseAsync(new Ms(r,a,r.path,o)))).then(a=>li.mergeArray(n,a));let s=[...r.data].map((a,o)=>i.type._parseSync(new Ms(r,a,r.path,o)));return li.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:at.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:at.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:at.toString(r)}})}nonempty(t){return this.min(1,t)}};cu.create=(e,t)=>new cu({type:e,minLength:null,maxLength:null,exactLength:null,typeName:lt.ZodArray,...bt(t)});function fd(e){if(e instanceof Qi){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=Pa.create(fd(n))}return new Qi({...e._def,shape:()=>t})}else return e instanceof cu?new cu({...e._def,type:fd(e.element)}):e instanceof Pa?Pa.create(fd(e.unwrap())):e instanceof lu?lu.create(fd(e.unwrap())):e instanceof vo?vo.create(e.items.map(t=>fd(t))):e}var Qi=class e extends Dt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=cr.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==je.object){let l=this._getOrReturnCtx(t);return He(l,{code:Se.invalid_type,expected:je.object,received:l.parsedType}),yt}let{status:n,ctx:i}=this._processInputParams(t),{shape:s,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof Ba&&this._def.unknownKeys==="strip"))for(let l in i.data)a.includes(l)||o.push(l);let u=[];for(let l of a){let f=s[l],h=i.data[l];u.push({key:{status:"valid",value:l},value:f._parse(new Ms(i,h,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof Ba){let l=this._def.unknownKeys;if(l==="passthrough")for(let f of o)u.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(l==="strict")o.length>0&&(He(i,{code:Se.unrecognized_keys,keys:o}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let f of o){let h=i.data[f];u.push({key:{status:"valid",value:f},value:l._parse(new Ms(i,h,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let l=[];for(let f of u){let h=await f.key;l.push({key:h,value:await f.value,alwaysSet:f.alwaysSet})}return l}).then(l=>li.mergeObjectSync(n,l)):li.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return at.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var i,s,a,o;let u=(a=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&a!==void 0?a:n.defaultError;return r.code==="unrecognized_keys"?{message:(o=at.errToObj(t).message)!==null&&o!==void 0?o:u}:{message:u}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:lt.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};return cr.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new e({...this._def,shape:()=>r})}omit(t){let r={};return cr.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new e({...this._def,shape:()=>r})}deepPartial(){return fd(this)}partial(t){let r={};return cr.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];t&&!t[n]?r[n]=i:r[n]=i.optional()}),new e({...this._def,shape:()=>r})}required(t){let r={};return cr.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof Pa;)s=s._def.innerType;r[n]=s}}),new e({...this._def,shape:()=>r})}keyof(){return E5(cr.objectKeys(this.shape))}};Qi.create=(e,t)=>new Qi({shape:()=>e,unknownKeys:"strip",catchall:Ba.create(),typeName:lt.ZodObject,...bt(t)});Qi.strictCreate=(e,t)=>new Qi({shape:()=>e,unknownKeys:"strict",catchall:Ba.create(),typeName:lt.ZodObject,...bt(t)});Qi.lazycreate=(e,t)=>new Qi({shape:e,unknownKeys:"strip",catchall:Ba.create(),typeName:lt.ZodObject,...bt(t)});var np=class extends Dt{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function i(s){for(let o of s)if(o.result.status==="valid")return o.result;for(let o of s)if(o.result.status==="dirty")return r.common.issues.push(...o.ctx.common.issues),o.result;let a=s.map(o=>new ps(o.ctx.common.issues));return He(r,{code:Se.invalid_union,unionErrors:a}),yt}if(r.common.async)return Promise.all(n.map(async s=>{let a={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(i);{let s,a=[];for(let u of n){let l={...r,common:{...r.common,issues:[]},parent:null},f=u._parseSync({data:r.data,path:r.path,parent:l});if(f.status==="valid")return f;f.status==="dirty"&&!s&&(s={result:f,ctx:l}),l.common.issues.length&&a.push(l.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let o=a.map(u=>new ps(u));return He(r,{code:Se.invalid_union,unionErrors:o}),yt}}get options(){return this._def.options}};np.create=(e,t)=>new np({options:e,typeName:lt.ZodUnion,...bt(t)});var aE=e=>e instanceof sp?aE(e.schema):e instanceof fs?aE(e.innerType()):e instanceof ap?[e.value]:e instanceof op?e.options:e instanceof up?Object.keys(e.enum):e instanceof cp?aE(e._def.innerType):e instanceof tp?[void 0]:e instanceof rp?[null]:null,lE=class e extends Dt{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==je.object)return He(r,{code:Se.invalid_type,expected:je.object,received:r.parsedType}),yt;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(He(r,{code:Se.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),yt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let i=new Map;for(let s of r){let a=aE(s.shape[t]);if(!a)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let o of a){if(i.has(o))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(o)}`);i.set(o,s)}}return new e({typeName:lt.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:i,...bt(n)})}};function Jw(e,t){let r=Ac(e),n=Ac(t);if(e===t)return{valid:!0,data:e};if(r===je.object&&n===je.object){let i=cr.objectKeys(t),s=cr.objectKeys(e).filter(o=>i.indexOf(o)!==-1),a={...e,...t};for(let o of s){let u=Jw(e[o],t[o]);if(!u.valid)return{valid:!1};a[o]=u.data}return{valid:!0,data:a}}else if(r===je.array&&n===je.array){if(e.length!==t.length)return{valid:!1};let i=[];for(let s=0;s<e.length;s++){let a=e[s],o=t[s],u=Jw(a,o);if(!u.valid)return{valid:!1};i.push(u.data)}return{valid:!0,data:i}}else return r===je.date&&n===je.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var ip=class extends Dt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t),i=(s,a)=>{if(Yw(s)||Yw(a))return yt;let o=Jw(s.value,a.value);return o.valid?((Xw(s)||Xw(a))&&r.dirty(),{status:r.value,value:o.data}):(He(n,{code:Se.invalid_intersection_types}),yt)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,a])=>i(s,a)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};ip.create=(e,t,r)=>new ip({left:e,right:t,typeName:lt.ZodIntersection,...bt(r)});var vo=class e extends Dt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==je.array)return He(n,{code:Se.invalid_type,expected:je.array,received:n.parsedType}),yt;if(n.data.length<this._def.items.length)return He(n,{code:Se.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),yt;!this._def.rest&&n.data.length>this._def.items.length&&(He(n,{code:Se.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((a,o)=>{let u=this._def.items[o]||this._def.rest;return u?u._parse(new Ms(n,a,n.path,o)):null}).filter(a=>!!a);return n.common.async?Promise.all(s).then(a=>li.mergeArray(r,a)):li.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};vo.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new vo({items:e,typeName:lt.ZodTuple,rest:null,...bt(t)})};var pE=class e extends Dt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==je.object)return He(n,{code:Se.invalid_type,expected:je.object,received:n.parsedType}),yt;let i=[],s=this._def.keyType,a=this._def.valueType;for(let o in n.data)i.push({key:s._parse(new Ms(n,o,n.path,o)),value:a._parse(new Ms(n,n.data[o],n.path,o))});return n.common.async?li.mergeObjectAsync(r,i):li.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof Dt?new e({keyType:t,valueType:r,typeName:lt.ZodRecord,...bt(n)}):new e({keyType:Cc.create(),valueType:t,typeName:lt.ZodRecord,...bt(r)})}},md=class extends Dt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==je.map)return He(n,{code:Se.invalid_type,expected:je.map,received:n.parsedType}),yt;let i=this._def.keyType,s=this._def.valueType,a=[...n.data.entries()].map(([o,u],l)=>({key:i._parse(new Ms(n,o,n.path,[l,"key"])),value:s._parse(new Ms(n,u,n.path,[l,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let u of a){let l=await u.key,f=await u.value;if(l.status==="aborted"||f.status==="aborted")return yt;(l.status==="dirty"||f.status==="dirty")&&r.dirty(),o.set(l.value,f.value)}return{status:r.value,value:o}})}else{let o=new Map;for(let u of a){let l=u.key,f=u.value;if(l.status==="aborted"||f.status==="aborted")return yt;(l.status==="dirty"||f.status==="dirty")&&r.dirty(),o.set(l.value,f.value)}return{status:r.value,value:o}}}};md.create=(e,t,r)=>new md({valueType:t,keyType:e,typeName:lt.ZodMap,...bt(r)});var gd=class e extends Dt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==je.set)return He(n,{code:Se.invalid_type,expected:je.set,received:n.parsedType}),yt;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(He(n,{code:Se.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(He(n,{code:Se.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function a(u){let l=new Set;for(let f of u){if(f.status==="aborted")return yt;f.status==="dirty"&&r.dirty(),l.add(f.value)}return{status:r.value,value:l}}let o=[...n.data.values()].map((u,l)=>s._parse(new Ms(n,u,n.path,l)));return n.common.async?Promise.all(o).then(u=>a(u)):a(o)}min(t,r){return new e({...this._def,minSize:{value:t,message:at.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:at.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};gd.create=(e,t)=>new gd({valueType:e,minSize:null,maxSize:null,typeName:lt.ZodSet,...bt(t)});var fE=class e extends Dt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==je.function)return He(r,{code:Se.invalid_type,expected:je.function,received:r.parsedType}),yt;function n(o,u){return uE({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,oE(),wg].filter(l=>!!l),issueData:{code:Se.invalid_arguments,argumentsError:u}})}function i(o,u){return uE({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,oE(),wg].filter(l=>!!l),issueData:{code:Se.invalid_return_type,returnTypeError:u}})}let s={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof bc){let o=this;return Di(async function(...u){let l=new ps([]),f=await o._def.args.parseAsync(u,s).catch(y=>{throw l.addIssue(n(u,y)),l}),h=await Reflect.apply(a,this,f);return await o._def.returns._def.type.parseAsync(h,s).catch(y=>{throw l.addIssue(i(h,y)),l})})}else{let o=this;return Di(function(...u){let l=o._def.args.safeParse(u,s);if(!l.success)throw new ps([n(u,l.error)]);let f=Reflect.apply(a,this,l.data),h=o._def.returns.safeParse(f,s);if(!h.success)throw new ps([i(f,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:vo.create(t).rest(uu.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||vo.create([]).rest(uu.create()),returns:r||uu.create(),typeName:lt.ZodFunction,...bt(n)})}},sp=class extends Dt{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};sp.create=(e,t)=>new sp({getter:e,typeName:lt.ZodLazy,...bt(t)});var ap=class extends Dt{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return He(r,{received:r.data,code:Se.invalid_literal,expected:this._def.value}),yt}return{status:"valid",value:t.data}}get value(){return this._def.value}};ap.create=(e,t)=>new ap({value:e,typeName:lt.ZodLiteral,...bt(t)});function E5(e,t){return new op({values:e,typeName:lt.ZodEnum,...bt(t)})}var op=class e extends Dt{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return He(r,{expected:cr.joinValues(n),received:r.parsedType,code:Se.invalid_type}),yt}if(this._def.values.indexOf(t.data)===-1){let r=this._getOrReturnCtx(t),n=this._def.values;return He(r,{received:r.data,code:Se.invalid_enum_value,options:n}),yt}return Di(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t){return e.create(t)}exclude(t){return e.create(this.options.filter(r=>!t.includes(r)))}};op.create=E5;var up=class extends Dt{_parse(t){let r=cr.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==je.string&&n.parsedType!==je.number){let i=cr.objectValues(r);return He(n,{expected:cr.joinValues(i),received:n.parsedType,code:Se.invalid_type}),yt}if(r.indexOf(t.data)===-1){let i=cr.objectValues(r);return He(n,{received:n.data,code:Se.invalid_enum_value,options:i}),yt}return Di(t.data)}get enum(){return this._def.values}};up.create=(e,t)=>new up({values:e,typeName:lt.ZodNativeEnum,...bt(t)});var bc=class extends Dt{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==je.promise&&r.common.async===!1)return He(r,{code:Se.invalid_type,expected:je.promise,received:r.parsedType}),yt;let n=r.parsedType===je.promise?r.data:Promise.resolve(r.data);return Di(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};bc.create=(e,t)=>new bc({type:e,typeName:lt.ZodPromise,...bt(t)});var fs=class extends Dt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===lt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),i=this._def.effect||null,s={addIssue:a=>{He(n,a),a.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let a=i.transform(n.data,s);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(a).then(o=>this._def.schema._parseAsync({data:o,path:n.path,parent:n})):this._def.schema._parseSync({data:a,path:n.path,parent:n})}if(i.type==="refinement"){let a=o=>{let u=i.refinement(o,s);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?yt:(o.status==="dirty"&&r.dirty(),a(o.value),{status:r.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?yt:(o.status==="dirty"&&r.dirty(),a(o.value).then(()=>({status:r.value,value:o.value}))))}if(i.type==="transform")if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Tg(a))return a;let o=i.transform(a.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>Tg(a)?Promise.resolve(i.transform(a.value,s)).then(o=>({status:r.value,value:o})):a);cr.assertNever(i)}};fs.create=(e,t,r)=>new fs({schema:e,typeName:lt.ZodEffects,effect:t,...bt(r)});fs.createWithPreprocess=(e,t,r)=>new fs({schema:t,effect:{type:"preprocess",transform:e},typeName:lt.ZodEffects,...bt(r)});var Pa=class extends Dt{_parse(t){return this._getType(t)===je.undefined?Di(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Pa.create=(e,t)=>new Pa({innerType:e,typeName:lt.ZodOptional,...bt(t)});var lu=class extends Dt{_parse(t){return this._getType(t)===je.null?Di(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};lu.create=(e,t)=>new lu({innerType:e,typeName:lt.ZodNullable,...bt(t)});var cp=class extends Dt{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===je.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};cp.create=(e,t)=>new cp({innerType:e,typeName:lt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...bt(t)});var vd=class extends Dt{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return cE(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ps(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ps(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};vd.create=(e,t)=>new vd({innerType:e,typeName:lt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...bt(t)});var yd=class extends Dt{_parse(t){if(this._getType(t)!==je.nan){let n=this._getOrReturnCtx(t);return He(n,{code:Se.invalid_type,expected:je.nan,received:n.parsedType}),yt}return{status:"valid",value:t.data}}};yd.create=e=>new yd({typeName:lt.ZodNaN,...bt(e)});var Ige=Symbol("zod_brand"),dE=class extends Dt{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Ig=class e extends Dt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?yt:s.status==="dirty"?(r.dirty(),x5(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?yt:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:lt.ZodPipeline})}},xd=class extends Dt{_parse(t){let r=this._def.innerType._parse(t);return Tg(r)&&(r.value=Object.freeze(r.value)),r}};xd.create=(e,t)=>new xd({innerType:e,typeName:lt.ZodReadonly,...bt(t)});var _5=(e,t={},r)=>e?Sc.create().superRefine((n,i)=>{var s,a;if(!e(n)){let o=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,u=(a=(s=o.fatal)!==null&&s!==void 0?s:r)!==null&&a!==void 0?a:!0,l=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...l,fatal:u})}}):Sc.create(),Rge={object:Qi.lazycreate},lt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(lt||(lt={}));var Nge=(e,t={message:`Input not instance of ${e.name}`})=>_5(r=>r instanceof e,t),A5=Cc.create,C5=Xl.create,Oge=yd.create,Pge=Jl.create,S5=Zl.create,Bge=ep.create,Lge=dd.create,Fge=tp.create,kge=rp.create,Uge=Sc.create,Mge=uu.create,qge=Ba.create,jge=hd.create,Vge=cu.create,Hge=Qi.create,Gge=Qi.strictCreate,Wge=np.create,Qge=lE.create,zge=ip.create,Kge=vo.create,$ge=pE.create,Yge=md.create,Xge=gd.create,Jge=fE.create,Zge=sp.create,e0e=ap.create,t0e=op.create,r0e=up.create,n0e=bc.create,v5=fs.create,i0e=Pa.create,s0e=lu.create,a0e=fs.createWithPreprocess,o0e=Ig.create,u0e=()=>A5().optional(),c0e=()=>C5().optional(),l0e=()=>S5().optional(),p0e={string:e=>Cc.create({...e,coerce:!0}),number:e=>Xl.create({...e,coerce:!0}),boolean:e=>Zl.create({...e,coerce:!0}),bigint:e=>Jl.create({...e,coerce:!0}),date:e=>ep.create({...e,coerce:!0})},f0e=yt,G=Object.freeze({__proto__:null,defaultErrorMap:wg,setErrorMap:gge,getErrorMap:oE,makeIssue:uE,EMPTY_PATH:vge,addIssueToContext:He,ParseStatus:li,INVALID:yt,DIRTY:x5,OK:Di,isAborted:Yw,isDirty:Xw,isValid:Tg,isAsync:cE,get util(){return cr},get objectUtil(){return $w},ZodParsedType:je,getParsedType:Ac,ZodType:Dt,ZodString:Cc,ZodNumber:Xl,ZodBigInt:Jl,ZodBoolean:Zl,ZodDate:ep,ZodSymbol:dd,ZodUndefined:tp,ZodNull:rp,ZodAny:Sc,ZodUnknown:uu,ZodNever:Ba,ZodVoid:hd,ZodArray:cu,ZodObject:Qi,ZodUnion:np,ZodDiscriminatedUnion:lE,ZodIntersection:ip,ZodTuple:vo,ZodRecord:pE,ZodMap:md,ZodSet:gd,ZodFunction:fE,ZodLazy:sp,ZodLiteral:ap,ZodEnum:op,ZodNativeEnum:up,ZodPromise:bc,ZodEffects:fs,ZodTransformer:fs,ZodOptional:Pa,ZodNullable:lu,ZodDefault:cp,ZodCatch:vd,ZodNaN:yd,BRAND:Ige,ZodBranded:dE,ZodPipeline:Ig,ZodReadonly:xd,custom:_5,Schema:Dt,ZodSchema:Dt,late:Rge,get ZodFirstPartyTypeKind(){return lt},coerce:p0e,any:Uge,array:Vge,bigint:Pge,boolean:S5,date:Bge,discriminatedUnion:Qge,effect:v5,enum:t0e,function:Jge,instanceof:Nge,intersection:zge,lazy:Zge,literal:e0e,map:Yge,nan:Oge,nativeEnum:r0e,never:qge,null:kge,nullable:s0e,number:C5,object:Hge,oboolean:l0e,onumber:c0e,optional:i0e,ostring:u0e,pipeline:o0e,preprocess:a0e,promise:n0e,record:$ge,set:Xge,strictObject:Gge,string:A5,symbol:Lge,transformer:v5,tuple:Kge,undefined:Fge,union:Wge,unknown:Mge,void:jge,NEVER:f0e,ZodIssueCode:Se,quotelessJson:mge,ZodError:ps});var h0e=G.object({biLoggerBaseUrl:G.string().url().optional(),devEditorBaseUrl:G.string().url().optional(),inkDebug:G.boolean().optional(),minRetryTimeout:G.number().optional(),sentryDsn:G.string().optional(),userBrowserTestEndpoint:G.string().url().optional(),dataDir:G.string().optional(),wixCliDependencyVersion:G.string().optional(),wixCliAppDependencyVersion:G.string().optional(),appInstallationPollInterval:G.number().optional(),disableTTY:G.boolean().optional(),waitForLoginInterval:G.number().optional()}),m0e="WIX_CLI_TEST_OVERRIDES";function Pn(){let e=d0e.env[m0e];return e?h0e.parse(JSON.parse(e)):{}}var Zw=class extends v0e{state={hasError:!1};static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t){let r=t instanceof Error?t:new Error(JSON.stringify(t));r.message.includes("Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default")?this.props.onExit(new we({code:Re.NonInteractiveTerminal(),cause:r})):this.props.onExit(r)}render(){return this.state.hasError?null:this.props.children}},y0e=({children:e})=>{let t=ks();return Ed.createElement(Zw,{onExit:t},e)},x0e=({children:e,wrap:t})=>Ed.createElement(Ed.Fragment,null,t&&Ed.createElement(vr,null,"----RENDER FRAME START----"),e);async function tT(e){let t=!!Pn().inkDebug,{waitUntilExit:r,unmount:n}=Ux(Ed.createElement(x0e,{wrap:t},Ed.createElement(y0e,null,e)),{exitOnCtrlC:!0,debug:t});process.once("beforeExit",()=>{n()}),process.once("SIGINT",()=>{n()}),await r()}var eT=class extends g0e{get columns(){return 500}_lastFrame;write(t){this._lastFrame=Da(t)}lastFrame=()=>this._lastFrame??""};function rT(){let e,t=new eT;return{render:r=>(e?e.rerender(r):e=Ux(r,{stdout:t,debug:!0,exitOnCtrlC:!1,patchConsole:!1}),t.lastFrame()),unmount:()=>{e?.unmount(),e?.cleanup()}}}d();var HT=Ce(qf(),1);import{dirname as dxe}from"node:path";import{appendFileSync as hxe,mkdirSync as mxe}from"node:fs";import gxe,{createContext as vxe,useContext as yxe,useCallback as xxe}from"react";d();var cV=Ce(jg(),1),fxe={backoffice:"https://manage.wix.com",editor:"https://editor.wix.com",code:"https://code.wix.com",general:"https://www.wix.com",standalone:void 0};function gp({getAppToken:e,type:t}){return(0,cV.createHttpClient)({baseURL:fxe[t],...t!=="standalone"?{getAppToken:e}:{},createHeaders:()=>({"X-XSRF-TOKEN":"nocheck",Cookie:"XSRF-TOKEN=nocheck","User-Agent":"wix-cli"})})}d();var lV=Ce(jg(),1);function Eo(e){return lV.HttpClient.isHttpError(e)}d();var pV=Ce(jg(),1),fV=Ce(qf(),1);function VT(e){if(pV.HttpClient.isHttpError(e))return e;let t=e instanceof Error?fV.default.cause(e):null;return t?VT(t):null}d();function dV(e){return{request:{baseURL:e.config?.baseURL,url:e.config?.url,method:e.config?.method,headers:e.config?.headers,data:e.config?.data},response:{code:e.code,message:e.message,status:e.response?.status,headers:e.response?.headers,data:e.response?.data}}}function Exe(e,t){try{let r=`----- CLI crash report at ${new Date().toISOString()}
|
|
110
|
-
`;if(t instanceof Error){r+=`Error Trace
|
|
111
|
-
`,r+=`${HT.default.fullStack(t)}
|
|
112
|
-
`,r+=`Error Info
|
|
113
|
-
`,r+=`${JSON.stringify(HT.default.info(t),null,2)}
|
|
114
|
-
`;let n=VT(t);n&&(r+=`Request Info
|
|
115
|
-
`,r+=`${JSON.stringify(dV(n),null,2)}
|
|
116
|
-
`)}mxe(dxe(e),{recursive:!0}),hxe(e,r)}catch{}}var hV=vxe(null),mV=({filePath:e,children:t})=>{let r=xxe(n=>Exe(e,n),[e]);return gxe.createElement(hV.Provider,{value:r},t)},VE=()=>{let e=yxe(hV);if(e===null)throw new Error("useDebugLog() cannot be used without an <DebugLogProvider>");return e};d();import{createElement as Nxe,useMemo as Oxe}from"react";d();var QT=Ce(St(),1);import ae from"react";d();function HE(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function gV(){return typeof WeakMap<"u"?new WeakMap:_xe()}function _xe(){return{add:HE,delete:HE,get:HE,set:HE,has:function(e){return!1}}}var Axe=Object.prototype.hasOwnProperty,WT=function(e,t){return Axe.call(e,t)};function GT(e,t){for(var r in t)WT(t,r)&&(e[r]=t[r]);return e}var Cxe=/^[ \t]*(?:\r\n|\r|\n)/,Sxe=/(?:\r\n|\r|\n)[ \t]*$/,bxe=/^(?:[\r\n]|$)/,Dxe=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,wxe=/^[ \t]*[\r\n][ \t\r\n]*$/;function vV(e,t,r){var n=0,i=e[0].match(Dxe);i&&(n=i[1].length);var s="(\\r\\n|\\r|\\n).{0,"+n+"}",a=new RegExp(s,"g");t&&(e=e.slice(1));var o=r.newline,u=r.trimLeadingNewline,l=r.trimTrailingNewline,f=typeof o=="string",h=e.length,m=e.map(function(y,_){return y=y.replace(a,"$1"),_===0&&u&&(y=y.replace(Cxe,"")),_===h-1&&l&&(y=y.replace(Sxe,"")),f&&(y=y.replace(/\r\n|\n|\r/g,function(C){return o})),y});return m}function Txe(e,t){for(var r="",n=0,i=e.length;n<i;n++)r+=e[n],n<i-1&&(r+=t[n]);return r}function Ixe(e){return WT(e,"raw")&&WT(e,"length")}function yV(e){var t=gV(),r=gV();function n(s){for(var a=[],o=1;o<arguments.length;o++)a[o-1]=arguments[o];if(Ixe(s)){var u=s,l=(a[0]===n||a[0]===Fa)&&wxe.test(u[0])&&bxe.test(u[1]),f=l?r:t,h=f.get(u);if(h||(h=vV(u,l,e),f.set(u,h)),a.length===0)return h[0];var m=Txe(h,l?a.slice(1):a);return m}else return yV(GT(GT({},e),s||{}))}var i=GT(n,{string:function(s){return vV([s],!1,e)[0]}});return i}var Fa=yV({trimLeadingNewline:!0,trimTrailingNewline:!0});if(typeof module<"u")try{module.exports=Fa,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.default=Fa,Fa.outdent=Fa}catch{}d();import vp from"react";var Oe=({message:e,explanation:t,hint:r})=>vp.createElement(ke,{flexDirection:"column"},vp.createElement(un,{type:"error"},e),t&&vp.createElement(un,{type:"warning"},t),r&&vp.createElement(ke,{paddingTop:1,columnGap:1},vp.createElement(mg,null),typeof r=="string"?vp.createElement(de,null,r):r)),ms=({message:e,explanation:t,hint:r})=>vp.createElement(Oe,{message:e,explanation:t,hint:r??"This is probably a temporary system error and has been logged. Try again shortly."});function xV(e){return(0,QT.match)(e,{UnknownFailure:({error:t})=>()=>ae.createElement(ae.Fragment,null,ae.createElement(de,{skin:"error"},"Oh no, seems like the CLI encountered an unexpected error:"),t instanceof Error?ae.createElement(de,{skin:"error"},t.message):ae.createElement(de,null,JSON.stringify(t))),FailedToGetDeviceCode:()=>()=>ae.createElement(ms,{message:"An error occured while logging in: Failed to issue a login device code"}),FailedToGetAuthToken:()=>()=>ae.createElement(ms,{message:"An error occured while logging in: Failed to issue refresh token"}),FailedToRefreshTokenForSite:()=>()=>ae.createElement(ms,{message:"An error occured while logging in: Failed to issue refresh token for site"}),FailedToRenewAuthToken:()=>()=>ae.createElement(ms,{message:"Failed to renew access token."}),FailedToRenewAuthTokenSiteNotFound:({siteId:t})=>()=>ae.createElement(Oe,{message:`Authenticate failed, your configured development site (${t}) could not be accessed`,hint:"Make sure the site exists and you still have access to it"}),FailedToRevokeRefreshToken:({email:t})=>()=>ae.createElement(ms,{message:"An error occured while trying to logout: Failed to revoke refresh token!",explanation:`Wix CLI is still logged in to account ${t}`}),FailedToFetchPackageJson:()=>()=>ae.createElement(ms,{message:"Failed to fetch package data."}),LatestVersionOfCreateAppRequired:({currentVersion:t,latestVersion:r,updateCommand:n})=>()=>ae.createElement(Oe,{message:ae.createElement(ae.Fragment,null,"Generating a Wix App is only supported using the latest version (",r,") of ",ae.createElement(de,{bold:!0},"@wix/create-app")," (current:"," ",t,")"),hint:ae.createElement(de,null,"Make sure you are using the following command:",ae.createElement(Ia,null),ae.createElement(de,{bold:!0},n),ae.createElement(Ia,null),"If the problem persists, try clearing your package manager's cache")}),EmptyDirectoryRequiredAppGeneration:({folder:t})=>()=>ae.createElement(Oe,{message:ae.createElement(ae.Fragment,null,"Generating a Wix App requires an empty directory but"," ",ae.createElement(de,{bold:!0},t)," already exists and isn't empty"),hint:ae.createElement(de,null,"Choose a different project name or delete the existing"," ",ae.createElement(de,{bold:!0},t)," folder")}),InvalidNewPackageName:({packageName:t,validations:r})=>()=>ae.createElement(Oe,{message:ae.createElement(ae.Fragment,null,"Generating a Wix App requires a valid npm package name for the generated ",ae.createElement(de,{bold:!0},"package.json")," ",ae.createElement(Ia,null),"The name ",ae.createElement(de,{bold:!0},t)," failed the following validations:",ae.createElement(Ia,null),r.map((n,i)=>ae.createElement(de,{key:i},ae.createElement(Ia,null),"- ",n))),hint:"Choose a different project name that follows the validations above"}),SiteSelectorTimedout:()=>()=>ae.createElement(Oe,{message:"Waiting for application installation timed out."}),TypeErrorInvalidUrl:()=>()=>ae.createElement(Oe,{message:"Invalid assets URL."}),UnsupportedPackageManager:({packageManagerName:t})=>()=>ae.createElement(Oe,{message:"Generating a Wix App requires the usage of a supported package manager",hint:`Expected Yarn or NPM but ${t?`got ${t}`:"failed to detect a package manager"}`}),UnsupportedPackageManagerWorkspaces:({packageManagerName:t})=>()=>ae.createElement(Oe,{message:`Generating a Wix App inside ${t} workspaces is not supported`}),FailedToGetDeveloperApps:()=>()=>ae.createElement(ms,{message:"Failed to get the list of your applications"}),FailedToCreateDevCenterApp:()=>()=>ae.createElement(ms,{message:"Failed to register your application in Wix Dev Center"}),AppPermissionDenied:({appId:t})=>()=>ae.createElement(Oe,{message:`You don't have permissions to application ${t}`}),FailedToUpdateTelemetryConfig:()=>()=>ae.createElement(Oe,{message:"Failed to change telemetry preferences"}),FailedToInstallPackage:({packageName:t,cause:r})=>{let n=fi(r);return()=>ae.createElement(Oe,{message:`Failed to install npm package ${t}. Cause: ${n}`})},FailedToResolveNpmDependencies:()=>()=>ae.createElement(ms,{message:"Failed to resolve npm dependencies"}),FailedToInstallPackages:({cause:t})=>{let r=fi(t);return()=>ae.createElement(Oe,{message:`Failed to install npm packages. Cause: ${r}`})},FailedToUninstallPackage:({packageName:t,cause:r})=>{let n=fi(r);return()=>ae.createElement(Oe,{message:`Failed to uninstall npm package ${t}. Cause: ${n}`})},FailedToSyncToRevision:({revision:t})=>()=>ae.createElement(Oe,{message:`Failed to sync the local project to revision ${t}`}),FailedToCreateVersion:()=>()=>ae.createElement(Oe,{message:"Wix CLI failed to create version for your app"}),UploadApplicationFailed:()=>()=>ae.createElement(Oe,{message:"Failed to upload the application"}),BuiltProjectNeeded:()=>()=>ae.createElement(Oe,{message:"Can not find build output, please execute `wix app build` to build your app before proceeding"}),UnsupportedWixInstallCommand:()=>()=>ae.createElement(Oe,{message:"`wix install` is not supported now. Please use `wix install <package-name>`"}),UnsupportedWixUpdateCommand:()=>()=>ae.createElement(Oe,{message:"`wix update` is not supported now. Please use `wix update <package-name>`"}),WixUninstallMissingPackageName:()=>()=>ae.createElement(Oe,{message:"Please specify a package name"}),FailedToReadJson:({filePath:t,cause:r})=>{let n=fi(r);return()=>ae.createElement(Oe,{message:`Failed to read ${t}. Cause: ${n}`})},InvalidJsonFile:({filePath:t,cause:r})=>{let n=fi(r);return()=>ae.createElement(Oe,{message:`Invalid JSON file located at ${t}. Cause: ${n}`})},FailedToWriteWixLock:()=>()=>ae.createElement(Oe,{message:"Failed to write 'wix.lock'"}),InvalidVeloConfigJson:({configFilename:t,cause:r})=>{let n=fi(r);return()=>ae.createElement(Oe,{message:`Invalid ${t}, make sure it's configured correctly. Cause: ${n}`})},DashboardPageConfigNotFound:({configPath:t})=>()=>ae.createElement(Oe,{message:`Dashboard page config not found at ${t}`}),NoDashboardPagesFound:({dashboardPagesDir:t})=>()=>ae.createElement(Oe,{message:Fa`
|
|
117
|
-
No dashboard pages found under \`${t}\`.
|
|
118
|
-
Go ahead and create your first \`page.json\` and \`page.tsx\` under \`${t}\`.`}),NoPagesDirectoryFound:({srcDir:t})=>()=>ae.createElement(Oe,{message:ae.createElement(ae.Fragment,null,"No ",ae.createElement(de,{bold:!0},"pages")," directory was found under"," ",ae.createElement(de,{bold:!0},t),"."),hint:ae.createElement(de,null,"Consider re-cloning the project repository or creating a"," ",ae.createElement(de,{bold:!0},"pages")," directory under ",ae.createElement(de,{bold:!0},t),".")}),DashboardWidgetConfigNotFound:({configPath:t})=>()=>ae.createElement(Oe,{message:`Dashboard widget config not found at ${t}`}),InvalidConfigSchemaError:({configPath:t,zodError:r})=>()=>ae.createElement(Oe,{message:Fa`
|
|
119
|
-
Invalid configuration found at \`${t}\`:
|
|
120
|
-
The following errors were found:
|
|
121
|
-
${r.errors.map(Rxe).join(`
|
|
122
|
-
`)}`,hint:"Fix the errors above for your configurations to be applied successfully."}),PermissionDenied:()=>()=>ae.createElement(Oe,{message:"Forbidden operation. Missing permissions"}),FailedToReadProjectFiles:({cause:t})=>{let r=fi(t);return()=>ae.createElement(Oe,{message:`Failed to read source files: make sure you have an 'src' folder and that it's readable. Cause: ${r}`})},FailedToCreateVersionForSubmittedApp:()=>()=>ae.createElement(Oe,{message:"Cannot create a new application version because the app has an active marketplace submission",hint:"You will be able continue creating versions when your submission is approved or retracted"}),GridAppFilesMaxLengthExcceeded:({maxSizeViolationsData:t,filePaths:r})=>{let n="Found one or more project files that are bigger than the allowed limit";return t?.files?.length&&(n+=` (${t.expectedSize}KB): ${t.files.map(i=>`${r[i.fileIndex]} (${i.receivedSize}KB)`).join(", ")}`),()=>ae.createElement(Oe,{message:n})},GridAppFailedToUpdateFiles:()=>()=>ae.createElement(Oe,{message:Fa`
|
|
123
|
-
Failed to update files.
|
|
124
|
-
Failed to sync changes from local files to the Dev Editor
|
|
125
|
-
Still watching local files and will continue to sync changes...
|
|
126
|
-
`}),FailedToWatchFiles:({cause:t})=>{let r=fi(t);return()=>ae.createElement(Oe,{message:`Failed to watch files. Cause: ${r}`})},FailedToCreateGridApp:()=>()=>ae.createElement(Oe,{message:"Failed to create an isolated environment."}),DeviceCodeTimedOut:()=>()=>ae.createElement(Oe,{message:"The device code has not been approved in the time allocated, please start the login process again."}),DuplicateComponentIdsError:({issues:t})=>{let r=({issue:i})=>{let s=a=>(0,QT.match)(a,{page:()=>"page",widget:()=>"widget","sidebar-category":()=>"sidebar category"});return ae.createElement(ke,{flexDirection:"column"},ae.createElement(de,null,ae.createElement(de,{bold:!0},"Duplicate ID: "),i.id),ae.createElement(de,{bold:!0},"Components:"),i.components.map(({name:a,path:o,type:u})=>ae.createElement(de,{key:o},"[",s(u),"] ",a," (",o,")")),ae.createElement(de,null,ae.createElement(de,{bold:!0},"Possible GUID: "),i.suggestedId))},n=ae.createElement(ke,{flexDirection:"column",rowGap:1},ae.createElement(de,null,"You can use the provided suggested GUIDs as the ID of the newly created component."),t.map(i=>ae.createElement(r,{issue:i,key:i.id})));return()=>ae.createElement(Oe,{message:"Found multiple components with the same id, this might happen if you copy paste folders.",hint:n})},FailedToGetPackageDetails:()=>()=>ae.createElement(Oe,{message:"Failed to get package info."}),InvalidCreateAppResponse:()=>()=>ae.createElement(Oe,{message:"`createApp` returned an invalid response."}),InvalidDeployAppResponse:()=>()=>ae.createElement(Oe,{message:"Got unexpected response from server. Make sure you are running a supported version of the Velo CLI."}),FailedToGetPagesDiff:()=>()=>ae.createElement(Oe,{message:"Failed to request pages diff."}),InvalidViteBuildOutput:()=>()=>ae.createElement(Oe,{message:"Invalid vite build output"}),ViteModuleBundleNotFound:()=>()=>ae.createElement(Oe,{message:"Could not find module bundle in vite build output"}),FailedToCreatePresignedUrl:()=>()=>ae.createElement(Oe,{message:"Failed to create a presigned upload url"}),FailedToUploadApplicationFiles:()=>()=>ae.createElement(Oe,{message:"Failed to upload the application files"}),FailedToVerifyDeployment:()=>()=>ae.createElement(Oe,{message:"Deployment was not finished within the desired timeframe, please try again later."}),FailedToGetUserInfo:()=>()=>ae.createElement(Oe,{message:"Failed to get user information."}),FailedToCreateDevelopmentSite:()=>()=>ae.createElement(Oe,{message:"Failed to create a Development Site"}),FailedToGetDevelopmentSites:()=>()=>ae.createElement(Oe,{message:"Failed to request development sites."}),FailedToGetDevelopmentSitesLimit:()=>()=>ae.createElement(Oe,{message:"Failed to request development sites limit."}),FailedToQuerySites:()=>()=>ae.createElement(Oe,{message:"Failed to request sites list."}),FailedToGetSite:()=>()=>ae.createElement(Oe,{message:"Failed to get information about your configured Development Site"}),FailedToDeploySite:()=>()=>ae.createElement(Oe,{message:"Failed to deploy site."}),SiteNotFound:()=>()=>ae.createElement(Oe,{message:"Site not found."}),FailedToSaveDevelopmentSite:({path:t})=>()=>ae.createElement(Oe,{message:"Failed to save the current development site.",hint:`Make sure the \`${t}\` file has proper permissions and is accessible`}),FailedToBuildApp:()=>()=>ae.createElement(Oe,{message:"Failed to build the application.",hint:"Please check the build output for more information"}),FailedToCheckIfAppInstalled:()=>()=>ae.createElement(Oe,{message:"Failed to fetch site installation details"}),FailedToInitializeGitRepo:({cause:t})=>{let r=fi(t);return()=>ae.createElement(Oe,{message:`Failed to initialize git repo. Cause: ${r}`})},FailedToInstallDependencies:({cause:t})=>{let r=fi(t);return()=>ae.createElement(Oe,{message:`Failed to install dependencies. Cause: ${r}`})},FailedToCommitChanges:({cause:t})=>{let r=fi(t);return()=>ae.createElement(Oe,{message:`Failed to commit changes. Cause: ${r}`})},FailedToDeleteAuthData:({cause:t})=>{let r=fi(t);return()=>ae.createElement(Oe,{message:`Failed to delete auth data: ${r}`})},FailedToDeleteLegacyAuthData:({cause:t})=>{let r=fi(t);return()=>ae.createElement(Oe,{message:`Failed to delete legacy auth data: ${r}`})},FailedToSaveAuthData:({cause:t})=>{let r=fi(t);return()=>ae.createElement(Oe,{message:`Failed to save auth data: ${r}`})},FailedToWriteJson:({filePath:t,cause:r})=>{let n=fi(r);return()=>ae.createElement(Oe,{message:`Failed to write JSON at path: ${t}. Cause: ${n}`})},TemplatePathNotFound:({templatePath:t})=>()=>ae.createElement(Oe,{message:`Template path not found: ${t}`,hint:"Make sure the template path exists in the remote repository"}),FailedToCloneRepo:({cause:t})=>{let r=fi(t);return()=>ae.createElement(Oe,{message:`Failed to clone repo: ${r}`,hint:"Make sure the Git URL is correct and that your local Git is configured properly to access the remote repository"})},InvalidGitUrl:({url:t})=>()=>ae.createElement(Oe,{message:`Invalid Git URL: ${t}`,hint:"Make sure the Git URL is in the correct format"}),AuthenticationRequired:()=>()=>ae.createElement(Oe,{message:"You have to already be logged in to run this command."}),SiteConfiguredRequired:()=>()=>ae.createElement(Oe,{message:"You have to already have a site configured to run this command."}),FailedAddingPackageToWorkspace:()=>()=>ae.createElement(Oe,{message:"Could not add package to the workspaces configuration. Please add it as instructed by your package manager.",hint:ae.createElement(de,null,"Full error can be found in ",ae.createElement(de,{bold:!0},"wix-error.log"))}),FailedToGenerateSelfsignedCertificate:()=>()=>ae.createElement(Oe,{message:"Failed to generate a Selfsigned certificate for development."}),NonInteractiveTerminal:()=>()=>ae.createElement(Oe,{message:"This command is not supported in non-interactive terminals. Please run the command in an interactive terminal (TTY)."}),FailedToResolveViteOrigin:()=>()=>ae.createElement(Oe,{message:"Failed to resolve the base url for CSS asset urls"}),FailedToCreateAppRelease:()=>()=>ae.createElement(ms,{message:"Failed to create an app configuration in dev center."}),FailedToUpdateAppRelease:()=>()=>ae.createElement(ms,{message:"Failed to update an app configuration in dev center."}),FailedToGetResolveNpmDependenciesResult:()=>()=>ae.createElement(ms,{message:"Failed to resolve Wix's lockfile."})})}function fi(e){return e instanceof Error?e.message:JSON.stringify(e)}function Rxe(e){return`- \`${e.path.join(".")}\`: ${e.message}`}var yp=({error:e,systemErrorOverride:t})=>Oxe(()=>{let r=yD(e);return Hf(r)&&t?t:Nxe(xV(r.code))},[e,t]);d();import Pxe,{createContext as Bxe,useContext as Lxe}from"react";var EV=Bxe(null),zT=e=>Pxe.createElement(EV.Provider,{...e}),xp=()=>{let e=Lxe(EV);if(e===null)throw new Error("useErrorReporter() cannot be used without an <ErrorReporterProvider>");return e};d();import TTe,{createContext as ITe,useContext as RTe,useState as pK,useEffect as NTe}from"react";d();d();import{join as kxe}from"node:path";d();import{join as Fxe}from"node:path";function _V(e=""){return Fxe(e,".wix")}var Ep="wix.config.json";function AV(e){return kxe(_V(e),"debug.log")}d();import{join as _o}from"node:path";var CV="src",Uxe="dist",SV=".wix",KT=_o(SV,"app.config.json"),Vg=_o(SV,"dev.log"),_p=_o(CV,"dashboard","pages"),Hg=_o(CV,"dashboard","widgets");function bV(e){return _o(e,_p)}function DV(e){return _o(e,Uxe)}function Od(e){return _o(DV(e),"statics")}function $T(e){return _o(e,KT)}function wV(e){return _o(e,Vg)}function Gg(e){return _o(DV(e),"devcenter","app-manifest.json")}var Mxe=G.object({id:G.string(),label:G.string(),priority:G.number().int().optional()}),qxe=G.object({sidebar:G.object({categories:G.array(Mxe).optional()}).optional()}),TV=G.object({appId:G.string().uuid(),projectId:G.string().optional(),sentryDSN:G.string().optional(),trusted:G.boolean().default(!1),dashboard:qxe.optional()}),IV=G.object({siteId:G.string().uuid().optional(),devArmTag:G.string().optional()}),jxe=G.object({disabled:G.boolean().optional(),categoryId:G.string().uuid().optional(),priority:G.number().int().optional(),whenActive:G.object({selectedPageId:G.string().optional(),hideSidebar:G.boolean().optional()}).optional()}),RV=G.object({id:G.string().uuid(),title:G.string(),additionalRoutes:G.array(G.string()).optional(),requiredPermission:G.string().optional(),sidebar:jxe.optional(),sentryDSN:G.string().optional(),experiments:G.object({enabledBy:G.string()}).optional()}),NV=G.object({id:G.string().uuid(),title:G.string(),requiredPermission:G.string().optional(),width:G.number(),height:G.number(),containerId:G.string().uuid(),sentryDSN:G.string().optional()});d();var PG=Ce(OG(),1),BG=Ce(qf(),1);import{statSync as xAe}from"node:fs";import{access as EAe,readFile as _Ae,writeFile as AAe,mkdir as CAe,stat as SAe}from"node:fs/promises";import{dirname as bAe,join as DAe}from"node:path";import{EOL as wAe}from"node:os";async function rh(e,t,r){try{let n=JSON.stringify(t,null,r?.spaces).concat(wAe);await CAe(bAe(e),{recursive:!0}),await AAe(e,n,"utf-8")}catch(n){throw new we({code:Re.FailedToWriteJson({filePath:e,cause:n}),cause:n})}}async function Du(e){let t=null;try{t=await _Ae(e,"utf-8")}catch(r){throw new we({code:Re.FailedToReadJson({filePath:e,cause:r})})}try{return JSON.parse(t)}catch(r){throw new we({code:Re.InvalidJsonFile({filePath:e,cause:r})})}}function Qs(e){return EAe(e).then(()=>!0).catch(()=>!1)}async function LG(e,t){if(!await Qs(e))throw new BG.default({name:"PathNotFound"},`Folder not found at '${e}'`);let r=0,n=0;await(0,PG.create)({strict:!0,gzip:!0,portable:!0,cwd:e,filter(s){let a=DAe(e,s),o=xAe(a);return o.isFile()&&(r++,n+=o.size),!0},file:t},["."]);let i=(await SAe(t)).size/1024;return{fileCount:r,compressedSizeInKb:Math.round(i),uncompressedSizeInKb:Math.round(n/1024)}}async function FG(){let e=await Du(Ep),t=TV.safeParse(e);if(t.success)return t.data;throw new we({code:Re.InvalidConfigSchemaError({configPath:Ep,zodError:t.error})})}d();d();import{join as MN}from"node:path";d();var GQ=Ce(k2(),1),y0=Ce(SN(),1),v0=Ce(bQ(),1);import iDe from"node:fs";import sDe from"node:path";d();var PN=Ce(SN(),1),kQ=Ce(LQ(),1);import eDe from"node:process";import FQ from"node:fs";import ph from"node:path";d();function lh(e){let t=/^\\\\\?\\/.test(e),r=/[^\u0000-\u0080]+/.test(e);return t||r?e:e.replace(/\\/g,"/")}d();import{fileURLToPath as J1e}from"node:url";import{Transform as Z1e}from"node:stream";var g0=e=>e instanceof URL?J1e(e):e,wA=class extends Z1e{constructor(t){super({objectMode:!0,transform(r,n,i){i(void 0,t(r)?r:void 0)}})}},TA=e=>e[0]==="!";var UQ={ignore:["**/node_modules","**/flow-typed","**/coverage","**/.git"],absolute:!0,dot:!0},MQ="**/.gitignore",tDe=(e,t)=>TA(e)?"!"+ph.posix.join(t,e.slice(1)):ph.posix.join(t,e),rDe=(e,t)=>{let r=lh(ph.relative(t,ph.dirname(e.filePath)));return e.content.split(/\r?\n/).filter(n=>n&&!n.startsWith("#")).map(n=>tDe(n,r))},nDe=(e,t)=>{if(t=lh(t),ph.isAbsolute(e)){if(lh(e).startsWith(t))return ph.relative(t,e);throw new Error(`Path ${e} is not in cwd ${t}`)}return e},qQ=(e,t)=>{let r=e.flatMap(i=>rDe(i,t)),n=(0,kQ.default)().add(r);return i=>(i=g0(i),i=nDe(i,t),i?n.ignores(lh(i)):!1)},jQ=(e={})=>({cwd:g0(e.cwd)||eDe.cwd(),suppressErrors:!!e.suppressErrors,deep:typeof e.deep=="number"?e.deep:Number.POSITIVE_INFINITY}),VQ=async(e,t)=>{let{cwd:r,suppressErrors:n,deep:i}=jQ(t),s=await(0,PN.default)(e,{cwd:r,suppressErrors:n,deep:i,...UQ}),a=await Promise.all(s.map(async o=>({filePath:o,content:await FQ.promises.readFile(o,"utf8")})));return qQ(a,r)},HQ=(e,t)=>{let{cwd:r,suppressErrors:n,deep:i}=jQ(t),a=PN.default.sync(e,{cwd:r,suppressErrors:n,deep:i,...UQ}).map(o=>({filePath:o,content:FQ.readFileSync(o,"utf8")}));return qQ(a,r)};var aDe=e=>{if(e.some(t=>typeof t!="string"))throw new TypeError("Patterns must be a string or an array of strings")},BN=e=>(e=[...new Set([e].flat())],aDe(e),e),oDe=e=>{if(!e.cwd)return;let t;try{t=iDe.statSync(e.cwd)}catch{return}if(!t.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},WQ=(e={})=>(e={...e,ignore:e.ignore||[],expandDirectories:e.expandDirectories===void 0?!0:e.expandDirectories,cwd:g0(e.cwd)},oDe(e),e),QQ=e=>async(t,r)=>e(BN(t),WQ(r)),IA=e=>(t,r)=>e(BN(t),WQ(r)),zQ=e=>{let{ignoreFiles:t,gitignore:r}=e,n=t?BN(t):[];return r&&n.push(MQ),n},uDe=async e=>{let t=zQ(e);return $Q(t.length>0&&await VQ(t,e))},KQ=e=>{let t=zQ(e);return $Q(t.length>0&&HQ(t,e))},$Q=e=>{let t=new Set;return r=>{let n=r.path||r,i=sDe.normalize(n),s=t.has(i)||e&&e(n);return t.add(i),!s}},YQ=(e,t)=>e.flat().filter(r=>t(r)),cDe=(e,t)=>(0,GQ.default)(e).pipe(new wA(r=>t(r))),XQ=(e,t)=>{let r=[];for(;e.length>0;){let n=e.findIndex(s=>TA(s));if(n===-1){r.push({patterns:e,options:t});break}let i=e[n].slice(1);for(let s of r)s.options.ignore.push(i);n!==0&&r.push({patterns:e.slice(0,n),options:{...t,ignore:[...t.ignore,i]}}),e=e.slice(n+1)}return r},JQ=(e,t)=>({...t?{cwd:t}:{},...Array.isArray(e)?{files:e}:e}),ZQ=async(e,t)=>{let r=XQ(e,t),{cwd:n,expandDirectories:i}=t;if(!i)return r;let s=JQ(i,n),a=n?{cwd:n}:void 0;return Promise.all(r.map(async o=>{let{patterns:u,options:l}=o;return[u,l.ignore]=await Promise.all([(0,v0.default)(u,s),(0,v0.default)(l.ignore,a)]),{patterns:u,options:l}}))},LN=(e,t)=>{let r=XQ(e,t),{cwd:n,expandDirectories:i}=t;if(!i)return r;let s=JQ(i,n),a=n?{cwd:n}:void 0;return r.map(o=>{let{patterns:u,options:l}=o;return u=v0.default.sync(u,s),l.ignore=v0.default.sync(l.ignore,a),{patterns:u,options:l}})},FN=QQ(async(e,t)=>{let[r,n]=await Promise.all([ZQ(e,t),uDe(t)]),i=await Promise.all(r.map(s=>(0,y0.default)(s.patterns,s.options)));return YQ(i,n)}),iit=IA((e,t)=>{let r=LN(e,t),n=KQ(t),i=r.map(s=>y0.default.sync(s.patterns,s.options));return YQ(i,n)}),sit=IA((e,t)=>{let r=LN(e,t),n=KQ(t),i=r.map(s=>y0.default.stream(s.patterns,s.options));return cDe(i,n)}),ait=IA((e,t)=>e.some(r=>y0.default.isDynamicPattern(r,t))),oit=QQ(ZQ),uit=IA(LN);d();var fh=Ce(St(),1),yi=(0,fh.variant)({DashboardPage:(0,fh.fields)(),DashboardWidget:(0,fh.fields)(),DashboardSidebarCategory:(0,fh.fields)()});d();var x0=Ce(St(),1);d();import{dirname as lDe,join as ez,parse as pDe,relative as fDe,sep as dDe}from"node:path";import{platform as hDe}from"node:os";function dh(e,t){let{dir:r,name:n}=pDe(e);return t!==""?ez(r,`${n}.${t}`):ez(r,n)}function tz(e,t){return`/${fDe(bV(e),lDe(t)).split(dDe).map(encodeURIComponent).join("/")}`}function kN(e){return hDe()==="win32"?e.replace(/\\/g,"/"):e}async function rz(e){let t=dh(e,"json");if(!await Qs(t))throw new we({code:Re.DashboardPageConfigNotFound({configPath:t})});let n=await Du(t),i=RV.safeParse(n);if(i.success)return i.data;throw new we({code:Re.InvalidConfigSchemaError({configPath:t,zodError:i.error})})}async function nz(e){let t=dh(e,"json");if(!await Qs(t))throw new we({code:Re.DashboardWidgetConfigNotFound({configPath:t})});let n=await Du(t),i=NV.safeParse(n);if(i.success)return i.data;throw new we({code:Re.InvalidConfigSchemaError({configPath:t,zodError:i.error})})}function UN(e){return`wix/html/dashboard-asset/${e}.html`}function E0(e){return new Map(e.components.filter(t=>(0,x0.isType)(t,yi.DashboardPage)||(0,x0.isType)(t,yi.DashboardWidget)).map(t=>[UN(t.id),t]))}function hh(e){return`wix/scripts/dashboard-asset/${e}.js`}function _0(e){return new Map(e.components.filter(t=>(0,x0.isType)(t,yi.DashboardPage)||(0,x0.isType)(t,yi.DashboardWidget)).map(t=>[hh(t.id),t]))}var qN=MN(_p,"**","page.{ts,tsx,js,jsx}"),jN=MN(Hg,"**","widget.{ts,tsx,js,jsx}");async function mDe(e,t){let r=await rz(t);return yi.DashboardPage({...r,relativePath:t,route:tz(e,MN(e,t))})}async function iz(e){let t=await FN(kN(qN),{cwd:e}),r=await Promise.all(t.map(n=>mDe(e,n)));if(r.length===0)throw new we({code:Re.NoDashboardPagesFound({dashboardPagesDir:_p})});return r}async function gDe(e){let t=await nz(e);return yi.DashboardWidget({...t,relativePath:e})}async function sz(e){let t=await FN(kN(jN),{cwd:e});return await Promise.all(t.map(n=>gDe(n)))}async function az({projectFolder:e,config:t}){let r=await iz(e),n=await sz(e),i=(t.dashboard?.sidebar?.categories??[]).map(yi.DashboardSidebarCategory);return[...r,...n,...i]}d();import{join as cK,basename as uK}from"node:path";import{EventEmitter as bTe}from"node:events";var _O=Ce(Yz(),1),lK=Ce(AD(),1);d();var tTe=Object.getOwnPropertyNames,rTe=Object.getOwnPropertySymbols,nTe=Object.prototype.hasOwnProperty;function Xz(e,t){return function(n,i,s){return e(n,i,s)&&t(n,i,s)}}function VA(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var s=i.cache,a=s.get(r),o=s.get(n);if(a&&o)return a===n&&o===r;s.set(r,n),s.set(n,r);var u=e(r,n,i);return s.delete(r),s.delete(n),u}}function Jz(e){return tTe(e).concat(rTe(e))}var sK=Object.hasOwn||function(e,t){return nTe.call(e,t)};function yh(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var aK="_owner",Zz=Object.getOwnPropertyDescriptor,eK=Object.keys;function iTe(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function sTe(e,t){return yh(e.getTime(),t.getTime())}function tK(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.entries(),s=0,a,o;(a=i.next())&&!a.done;){for(var u=t.entries(),l=!1,f=0;(o=u.next())&&!o.done;){var h=a.value,m=h[0],y=h[1],_=o.value,C=_[0],b=_[1];!l&&!n[f]&&(l=r.equals(m,C,s,f,e,t,r)&&r.equals(y,b,m,C,e,t,r))&&(n[f]=!0),f++}if(!l)return!1;s++}return!0}function aTe(e,t,r){var n=eK(e),i=n.length;if(eK(t).length!==i)return!1;for(var s;i-- >0;)if(s=n[i],s===aK&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!sK(t,s)||!r.equals(e[s],t[s],s,s,e,t,r))return!1;return!0}function R0(e,t,r){var n=Jz(e),i=n.length;if(Jz(t).length!==i)return!1;for(var s,a,o;i-- >0;)if(s=n[i],s===aK&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!sK(t,s)||!r.equals(e[s],t[s],s,s,e,t,r)||(a=Zz(e,s),o=Zz(t,s),(a||o)&&(!a||!o||a.configurable!==o.configurable||a.enumerable!==o.enumerable||a.writable!==o.writable)))return!1;return!0}function oTe(e,t){return yh(e.valueOf(),t.valueOf())}function uTe(e,t){return e.source===t.source&&e.flags===t.flags}function rK(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.values(),s,a;(s=i.next())&&!s.done;){for(var o=t.values(),u=!1,l=0;(a=o.next())&&!a.done;)!u&&!n[l]&&(u=r.equals(s.value,a.value,s.value,a.value,e,t,r))&&(n[l]=!0),l++;if(!u)return!1}return!0}function cTe(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var lTe="[object Arguments]",pTe="[object Boolean]",fTe="[object Date]",dTe="[object Map]",hTe="[object Number]",mTe="[object Object]",gTe="[object RegExp]",vTe="[object Set]",yTe="[object String]",xTe=Array.isArray,nK=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,iK=Object.assign,ETe=Object.prototype.toString.call.bind(Object.prototype.toString);function _Te(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,i=e.areObjectsEqual,s=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,o=e.areSetsEqual,u=e.areTypedArraysEqual;return function(f,h,m){if(f===h)return!0;if(f==null||h==null||typeof f!="object"||typeof h!="object")return f!==f&&h!==h;var y=f.constructor;if(y!==h.constructor)return!1;if(y===Object)return i(f,h,m);if(xTe(f))return t(f,h,m);if(nK!=null&&nK(f))return u(f,h,m);if(y===Date)return r(f,h,m);if(y===RegExp)return a(f,h,m);if(y===Map)return n(f,h,m);if(y===Set)return o(f,h,m);var _=ETe(f);return _===fTe?r(f,h,m):_===gTe?a(f,h,m):_===dTe?n(f,h,m):_===vTe?o(f,h,m):_===mTe?typeof f.then!="function"&&typeof h.then!="function"&&i(f,h,m):_===lTe?i(f,h,m):_===pTe||_===hTe||_===yTe?s(f,h,m):!1}}function ATe(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?R0:iTe,areDatesEqual:sTe,areMapsEqual:n?Xz(tK,R0):tK,areObjectsEqual:n?R0:aTe,arePrimitiveWrappersEqual:oTe,areRegExpsEqual:uTe,areSetsEqual:n?Xz(rK,R0):rK,areTypedArraysEqual:n?R0:cTe};if(r&&(i=iK({},i,r(i))),t){var s=VA(i.areArraysEqual),a=VA(i.areMapsEqual),o=VA(i.areObjectsEqual),u=VA(i.areSetsEqual);i=iK({},i,{areArraysEqual:s,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return i}function CTe(e){return function(t,r,n,i,s,a,o){return e(t,r,o)}}function STe(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,s=e.strict;if(n)return function(u,l){var f=n(),h=f.cache,m=h===void 0?t?new WeakMap:void 0:h,y=f.meta;return r(u,l,{cache:m,equals:i,meta:y,strict:s})};if(t)return function(u,l){return r(u,l,{cache:new WeakMap,equals:i,meta:void 0,strict:s})};var a={cache:void 0,equals:i,meta:void 0,strict:s};return function(u,l){return r(u,l,a)}}var oK=Kc(),nst=Kc({strict:!0}),ist=Kc({circular:!0}),sst=Kc({circular:!0,strict:!0}),ast=Kc({createInternalComparator:function(){return yh}}),ost=Kc({strict:!0,createInternalComparator:function(){return yh}}),ust=Kc({circular:!0,createInternalComparator:function(){return yh}}),cst=Kc({circular:!0,createInternalComparator:function(){return yh},strict:!0});function Kc(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,s=e.strict,a=s===void 0?!1:s,o=ATe(e),u=_Te(o),l=n?n(u):CTe(u);return STe({circular:r,comparator:u,createState:i,equals:l,strict:a})}var DTe=cK(_p,"**","page.json"),wTe=cK(Hg,"**","widget.json"),HA=class{emitter=new bTe;fsWatchers=[];prevModel;constructor(t){this.prevModel=t}watch(){let t=_O.default.watch([DTe,wTe,Ep],{ignoreInitial:!0}).on("add",this.emitConfigUpdate).on("change",this.emitConfigUpdate),r=_O.default.watch([`${_p}/**`,`${Hg}/**`],{ignoreInitial:!0}).on("unlink",async n=>{(uK(n)==="page.json"||uK(n)==="widget.json")&&await this.emitConfigUpdate()});return this.fsWatchers.push(t,r),this}onChange(t){return this.emitter.on("all",t),this}onError(t){return this.emitter.on("error",t),this}async close(){await Promise.all(this.fsWatchers.map(t=>t.close()))}emitConfigUpdate=(0,lK.default)(async()=>{try{let t=await Nu(this.prevModel.projectFolder);this.emitter.emit("all",t,"change-received"),oK(t,this.prevModel)?this.emitter.emit("all",t,"model-did-not-change"):(this.prevModel=t,this.emitter.emit("all",t,"model-updated"))}catch(t){this.emitter.emit("error",t)}},200)};async function Nu(e){let t=await FG();return{projectFolder:e,config:t,components:await az({projectFolder:e,config:t})}}var fK=ITe(null),dK=e=>{let[t,r]=pK(e.value),[n]=pK(()=>{let i=new HA(t);return e.watchForChanges===!0&&i.watch().onChange((s,a)=>{a==="model-updated"&&r(s)}),i});return NTe(()=>()=>{n.close()},[n]),TTe.createElement(fK.Provider,{value:{model:t,watcher:n}},e.children)};function tn(){let e=RTe(fK);if(e===null)throw new Error("useProjectModel() cannot be used without an <ProjectModelProvider>");return e}d();d();d();d();var OTe={},AO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(N0=0;N0<AO.length;N0++)OTe[AO.charCodeAt(N0)]=N0;var N0;function hK(e){for(var t=0,r=0,n=0,i=0,s="",a=0;a<e.length;a++){var o=e[a];if(a>0&&(s+=";"),o.length!==0){for(var u=0,l=[],f=0,h=o;f<h.length;f++){var m=h[f],y=O0(m[0]-u);u=m[0],m.length>1&&(y+=O0(m[1]-t)+O0(m[2]-r)+O0(m[3]-n),t=m[1],r=m[2],n=m[3]),m.length===5&&(y+=O0(m[4]-i),i=m[4]),l.push(y)}s+=l.join(",")}}return s}function O0(e){var t="";e=e<0?-e<<1|1:e<<1;do{var r=e&31;e>>>=5,e>0&&(r|=32),t+=AO[r]}while(e>0);return t}var GA=function e(t){this.bits=t instanceof e?t.bits.slice():[]};GA.prototype.add=function(t){this.bits[t>>5]|=1<<(t&31)};GA.prototype.has=function(t){return!!(this.bits[t>>5]&1<<(t&31))};var Xn=function(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};Xn.prototype.appendLeft=function(t){this.outro+=t};Xn.prototype.appendRight=function(t){this.intro=this.intro+t};Xn.prototype.clone=function(){var t=new Xn(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t};Xn.prototype.contains=function(t){return this.start<t&&t<this.end};Xn.prototype.eachNext=function(t){for(var r=this;r;)t(r),r=r.next};Xn.prototype.eachPrevious=function(t){for(var r=this;r;)t(r),r=r.previous};Xn.prototype.edit=function(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this};Xn.prototype.prependLeft=function(t){this.outro=t+this.outro};Xn.prototype.prependRight=function(t){this.intro=t+this.intro};Xn.prototype.split=function(t){var r=t-this.start,n=this.original.slice(0,r),i=this.original.slice(r);this.original=n;var s=new Xn(t,this.end,i);return s.outro=this.outro,this.outro="",this.end=t,this.edited?(s.edit("",!1),this.content=""):this.content=n,s.next=this.next,s.next&&(s.next.previous=s),s.previous=this,this.next=s,s};Xn.prototype.toString=function(){return this.intro+this.content+this.outro};Xn.prototype.trimEnd=function(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var r=this.content.replace(t,"");if(r.length)return r!==this.content&&this.split(this.start+r.length).edit("",void 0,!0),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0};Xn.prototype.trimStart=function(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.end-r.length),this.edit("",void 0,!0)),!0;if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0};var CO=function(){throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};typeof window<"u"&&typeof window.btoa=="function"?CO=function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer=="function"&&(CO=function(e){return Buffer.from(e,"utf-8").toString("base64")});var WA=function(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=hK(t.mappings)};WA.prototype.toString=function(){return JSON.stringify(this)};WA.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+CO(this.toString())};function PTe(e){var t=e.split(`
|
|
127
|
-
`),r=t.filter(function(s){return/^\t+/.test(s)}),n=t.filter(function(s){return/^ {2,}/.test(s)});if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";var i=n.reduce(function(s,a){var o=/^ +/.exec(a)[0].length;return Math.min(o,s)},1/0);return new Array(i+1).join(" ")}function gK(e,t){var r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length)for(var i=r.length;i--;)r[i]="..";return r.concat(n).join("/")}var BTe=Object.prototype.toString;function vK(e){return BTe.call(e)==="[object Object]"}function SO(e){for(var t=e.split(`
|
|
128
|
-
`),r=[],n=0,i=0;n<t.length;n++)r.push(i),i+=t[n].length+1;return function(a){for(var o=0,u=r.length;o<u;){var l=o+u>>1;a<r[l]?u=l:o=l+1}var f=o-1,h=a-r[f];return{line:f,column:h}}}var B0=function(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};B0.prototype.addEdit=function(t,r,n,i){if(r.length){var s=[this.generatedCodeColumn,t,n.line,n.column];i>=0&&s.push(i),this.rawSegments.push(s)}else this.pending&&this.rawSegments.push(this.pending);this.advance(r),this.pending=null};B0.prototype.addUneditedChunk=function(t,r,n,i,s){for(var a=r.start,o=!0;a<r.end;)(this.hires||o||s.has(a))&&this.rawSegments.push([this.generatedCodeColumn,t,i.line,i.column]),n[a]===`
|
|
129
|
-
`?(i.line+=1,i.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0):(i.column+=1,this.generatedCodeColumn+=1,o=!1),a+=1;this.pending=null};B0.prototype.advance=function(t){if(t){var r=t.split(`
|
|
130
|
-
`);if(r.length>1){for(var n=0;n<r.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=r[r.length-1].length}};var P0=`
|
|
131
|
-
`,xh={insertLeft:!1,insertRight:!1,storeName:!1},qt=function(t,r){r===void 0&&(r={});var n=new Xn(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new GA},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:PTe(t)}}),this.byStart[0]=n,this.byEnd[t.length]=n};qt.prototype.addSourcemapLocation=function(t){this.sourcemapLocations.add(t)};qt.prototype.append=function(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this};qt.prototype.appendLeft=function(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);var n=this.byEnd[t];return n?n.appendLeft(r):this.intro+=r,this};qt.prototype.appendRight=function(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);var n=this.byStart[t];return n?n.appendRight(r):this.outro+=r,this};qt.prototype.clone=function(){for(var t=new qt(this.original,{filename:this.filename}),r=this.firstChunk,n=t.firstChunk=t.lastSearchedChunk=r.clone();r;){t.byStart[n.start]=n,t.byEnd[n.end]=n;var i=r.next,s=i&&i.clone();s&&(n.next=s,s.previous=n,n=s),r=i}return t.lastChunk=n,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new GA(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t};qt.prototype.generateDecodedMap=function(t){var r=this;t=t||{};var n=0,i=Object.keys(this.storedNames),s=new B0(t.hires),a=SO(this.original);return this.intro&&s.advance(this.intro),this.firstChunk.eachNext(function(o){var u=a(o.start);o.intro.length&&s.advance(o.intro),o.edited?s.addEdit(n,o.content,u,o.storeName?i.indexOf(o.original):-1):s.addUneditedChunk(n,o,r.original,u,r.sourcemapLocations),o.outro.length&&s.advance(o.outro)}),{file:t.file?t.file.split(/[/\\]/).pop():null,sources:[t.source?gK(t.file||"",t.source):null],sourcesContent:t.includeContent?[this.original]:[null],names:i,mappings:s.raw}};qt.prototype.generateMap=function(t){return new WA(this.generateDecodedMap(t))};qt.prototype.getIndentString=function(){return this.indentStr===null?" ":this.indentStr};qt.prototype.indent=function(t,r){var n=/^[^\r\n]/gm;if(vK(t)&&(r=t,t=void 0),t=t!==void 0?t:this.indentStr||" ",t==="")return this;r=r||{};var i={};if(r.exclude){var s=typeof r.exclude[0]=="number"?[r.exclude]:r.exclude;s.forEach(function(m){for(var y=m[0];y<m[1];y+=1)i[y]=!0})}var a=r.indentStart!==!1,o=function(m){return a?""+t+m:(a=!0,m)};this.intro=this.intro.replace(n,o);for(var u=0,l=this.firstChunk;l;){var f=l.end;if(l.edited)i[u]||(l.content=l.content.replace(n,o),l.content.length&&(a=l.content[l.content.length-1]===`
|
|
132
|
-
`));else for(u=l.start;u<f;){if(!i[u]){var h=this.original[u];h===`
|
|
133
|
-
`?a=!0:h!=="\r"&&a&&(a=!1,u===l.start||(this._splitChunk(l,u),l=l.next),l.prependRight(t))}u+=1}u=l.end,l=l.next}return this.outro=this.outro.replace(n,o),this};qt.prototype.insert=function(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")};qt.prototype.insertLeft=function(t,r){return xh.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),xh.insertLeft=!0),this.appendLeft(t,r)};qt.prototype.insertRight=function(t,r){return xh.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),xh.insertRight=!0),this.prependRight(t,r)};qt.prototype.move=function(t,r,n){if(n>=t&&n<=r)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(r),this._split(n);var i=this.byStart[t],s=this.byEnd[r],a=i.previous,o=s.next,u=this.byStart[n];if(!u&&s===this.lastChunk)return this;var l=u?u.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),l&&(l.next=i),u&&(u.previous=s),i.previous||(this.firstChunk=s.next),s.next||(this.lastChunk=i.previous,this.lastChunk.next=null),i.previous=l,s.next=u||null,l||(this.firstChunk=i),u||(this.lastChunk=s),this};qt.prototype.overwrite=function(t,r,n,i){if(typeof n!="string")throw new TypeError("replacement content must be a string");for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;if(r>this.original.length)throw new Error("end is out of bounds");if(t===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(r),i===!0&&(xh.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),xh.storeName=!0),i={storeName:!0});var s=i!==void 0?i.storeName:!1,a=i!==void 0?i.contentOnly:!1;if(s){var o=this.original.slice(t,r);Object.defineProperty(this.storedNames,o,{writable:!0,value:!0,enumerable:!0})}var u=this.byStart[t],l=this.byEnd[r];if(u){for(var f=u;f!==l;){if(f.next!==this.byStart[f.end])throw new Error("Cannot overwrite across a split point");f=f.next,f.edit("",!1)}u.edit(n,s,a)}else{var h=new Xn(t,r,"").edit(n,s);l.next=h,h.previous=l}return this};qt.prototype.prepend=function(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this};qt.prototype.prependLeft=function(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);var n=this.byEnd[t];return n?n.prependLeft(r):this.intro=r+this.intro,this};qt.prototype.prependRight=function(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);var n=this.byStart[t];return n?n.prependRight(r):this.outro=r+this.outro,this};qt.prototype.remove=function(t,r){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);for(var n=this.byStart[t];n;)n.intro="",n.outro="",n.edit(""),n=r>n.end?this.byStart[n.end]:null;return this};qt.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""};qt.prototype.lastLine=function(){var t=this.outro.lastIndexOf(P0);if(t!==-1)return this.outro.substr(t+1);var r=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(t=n.outro.lastIndexOf(P0),t!==-1)return n.outro.substr(t+1)+r;r=n.outro+r}if(n.content.length>0){if(t=n.content.lastIndexOf(P0),t!==-1)return n.content.substr(t+1)+r;r=n.content+r}if(n.intro.length>0){if(t=n.intro.lastIndexOf(P0),t!==-1)return n.intro.substr(t+1)+r;r=n.intro+r}}while(n=n.previous);return t=this.intro.lastIndexOf(P0),t!==-1?this.intro.substr(t+1)+r:this.intro+r};qt.prototype.slice=function(t,r){for(t===void 0&&(t=0),r===void 0&&(r=this.original.length);t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;for(var n="",i=this.firstChunk;i&&(i.start>t||i.end<=t);){if(i.start<r&&i.end>=r)return n;i=i.next}if(i&&i.edited&&i.start!==t)throw new Error("Cannot use replaced character "+t+" as slice start anchor.");for(var s=i;i;){i.intro&&(s!==i||i.start===t)&&(n+=i.intro);var a=i.start<r&&i.end>=r;if(a&&i.edited&&i.end!==r)throw new Error("Cannot use replaced character "+r+" as slice end anchor.");var o=s===i?t-i.start:0,u=a?i.content.length+r-i.end:i.content.length;if(n+=i.content.slice(o,u),i.outro&&(!a||i.end===r)&&(n+=i.outro),a)break;i=i.next}return n};qt.prototype.snip=function(t,r){var n=this.clone();return n.remove(0,t),n.remove(r,n.original.length),n};qt.prototype._split=function(t){if(!(this.byStart[t]||this.byEnd[t]))for(var r=this.lastSearchedChunk,n=t>r.end;r;){if(r.contains(t))return this._splitChunk(r,t);r=n?this.byStart[r.end]:this.byEnd[r.start]}};qt.prototype._splitChunk=function(t,r){if(t.edited&&t.content.length){var n=SO(this.original)(r);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' \u2013 "'+t.original+'")')}var i=t.split(r);return this.byEnd[r]=t,this.byStart[r]=i,this.byEnd[i.end]=i,t===this.lastChunk&&(this.lastChunk=i),this.lastSearchedChunk=t,!0};qt.prototype.toString=function(){for(var t=this.intro,r=this.firstChunk;r;)t+=r.toString(),r=r.next;return t+this.outro};qt.prototype.isEmpty=function(){var t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0};qt.prototype.length=function(){var t=this.firstChunk,r=0;do r+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return r};qt.prototype.trimLines=function(){return this.trim("[\\r\\n]")};qt.prototype.trim=function(t){return this.trimStart(t).trimEnd(t)};qt.prototype.trimEndAborted=function(t){var r=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;var n=this.lastChunk;do{var i=n.end,s=n.trimEnd(r);if(n.end!==i&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),s)return!0;n=n.previous}while(n);return!1};qt.prototype.trimEnd=function(t){return this.trimEndAborted(t),this};qt.prototype.trimStartAborted=function(t){var r=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;var n=this.firstChunk;do{var i=n.end,s=n.trimStart(r);if(n.end!==i&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),s)return!0;n=n.next}while(n);return!1};qt.prototype.trimStart=function(t){return this.trimStartAborted(t),this};var mK=Object.prototype.hasOwnProperty,xi=function(t){t===void 0&&(t={}),this.intro=t.intro||"",this.separator=t.separator!==void 0?t.separator:`
|
|
134
|
-
`,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};xi.prototype.addSource=function(t){if(t instanceof qt)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!vK(t)||!t.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach(function(n){mK.call(t,n)||(t[n]=t.content[n])}),t.separator===void 0&&(t.separator=this.separator),t.filename)if(!mK.call(this.uniqueSourceIndexByFilename,t.filename))this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});else{var r=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==r.content)throw new Error("Illegal source: same filename ("+t.filename+"), different contents")}return this.sources.push(t),this};xi.prototype.append=function(t,r){return this.addSource({content:new qt(t),separator:r&&r.separator||""}),this};xi.prototype.clone=function(){var t=new xi({intro:this.intro,separator:this.separator});return this.sources.forEach(function(r){t.addSource({filename:r.filename,content:r.content.clone(),separator:r.separator})}),t};xi.prototype.generateDecodedMap=function(t){var r=this;t===void 0&&(t={});var n=[];this.sources.forEach(function(s){Object.keys(s.content.storedNames).forEach(function(a){~n.indexOf(a)||n.push(a)})});var i=new B0(t.hires);return this.intro&&i.advance(this.intro),this.sources.forEach(function(s,a){a>0&&i.advance(r.separator);var o=s.filename?r.uniqueSourceIndexByFilename[s.filename]:-1,u=s.content,l=SO(u.original);u.intro&&i.advance(u.intro),u.firstChunk.eachNext(function(f){var h=l(f.start);f.intro.length&&i.advance(f.intro),s.filename?f.edited?i.addEdit(o,f.content,h,f.storeName?n.indexOf(f.original):-1):i.addUneditedChunk(o,f,u.original,h,u.sourcemapLocations):i.advance(f.content),f.outro.length&&i.advance(f.outro)}),u.outro&&i.advance(u.outro)}),{file:t.file?t.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map(function(s){return t.file?gK(t.file,s.filename):s.filename}),sourcesContent:this.uniqueSources.map(function(s){return t.includeContent?s.content:null}),names:n,mappings:i.raw}};xi.prototype.generateMap=function(t){return new WA(this.generateDecodedMap(t))};xi.prototype.getIndentString=function(){var t={};return this.sources.forEach(function(r){var n=r.content.indentStr;n!==null&&(t[n]||(t[n]=0),t[n]+=1)}),Object.keys(t).sort(function(r,n){return t[r]-t[n]})[0]||" "};xi.prototype.indent=function(t){var r=this;if(arguments.length||(t=this.getIndentString()),t==="")return this;var n=!this.intro||this.intro.slice(-1)===`
|
|
135
|
-
`;return this.sources.forEach(function(i,s){var a=i.separator!==void 0?i.separator:r.separator,o=n||s>0&&/\r?\n$/.test(a);i.content.indent(t,{exclude:i.indentExclusionRanges,indentStart:o}),n=i.content.lastChar()===`
|
|
136
|
-
`}),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,function(i,s){return s>0?t+i:i})),this};xi.prototype.prepend=function(t){return this.intro=t+this.intro,this};xi.prototype.toString=function(){var t=this,r=this.sources.map(function(n,i){var s=n.separator!==void 0?n.separator:t.separator,a=(i>0?s:"")+n.content.toString();return a}).join("");return this.intro+r};xi.prototype.isEmpty=function(){return!(this.intro.length&&this.intro.trim()||this.sources.some(function(t){return!t.content.isEmpty()}))};xi.prototype.length=function(){return this.sources.reduce(function(t,r){return t+r.content.length()},this.intro.length)};xi.prototype.trimLines=function(){return this.trim("[\\r\\n]")};xi.prototype.trim=function(t){return this.trimStart(t).trimEnd(t)};xi.prototype.trimStart=function(t){var r=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(r,""),!this.intro){var n,i=0;do if(n=this.sources[i++],!n)break;while(!n.content.trimStartAborted(t))}return this};xi.prototype.trimEnd=function(t){var r=new RegExp((t||"\\s")+"+$"),n,i=this.sources.length-1;do if(n=this.sources[i--],!n){this.intro=this.intro.replace(r,"");break}while(!n.content.trimEndAborted(t));return this};d();var LTe=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function DO(e,t="@"){if(!zr)return wO.then(()=>DO(e));let r=e.length+1,n=(zr.__heap_base.value||zr.__heap_base)+4*r-zr.memory.buffer.byteLength;n>0&&zr.memory.grow(Math.ceil(n/65536));let i=zr.sa(r-1);if((LTe?kTe:FTe)(e,new Uint16Array(zr.memory.buffer,i,r)),!zr.parse())throw Object.assign(new Error(`Parse error ${t}:${e.slice(0,zr.e()).split(`
|
|
137
|
-
`).length}:${zr.e()-e.lastIndexOf(`
|
|
138
|
-
`,zr.e()-1)}`),{idx:zr.e()});let s=[],a=[];for(;zr.ri();){let u=zr.is(),l=zr.ie(),f;zr.ip()&&(f=o(e.slice(u-1,l+1))),s.push({n:f,s:u,e:l,ss:zr.ss(),se:zr.se(),d:zr.id()})}for(;zr.re();)a.push(e.slice(zr.es(),zr.ee()));function o(u){try{return(0,eval)(u)}catch{}}return[s,a,!!zr.f()]}function FTe(e,t){let r=e.length,n=0;for(;n<r;){let i=e.charCodeAt(n);t[n++]=(255&i)<<8|i>>>8}}function kTe(e,t){let r=e.length,n=0;for(;n<r;)t[n]=e.charCodeAt(n++)}var zr,wO=WebAssembly.compile((bO="AGFzbQEAAAABWAxgAX8Bf2AEf39/fwBgAn9/AGAAAX9gAABgBn9/f39/fwF/YAR/f39/AX9gA39/fwF/YAd/f39/f39/AX9gBX9/f39/AX9gAn9/AX9gCH9/f39/f39/AX8DMC8AAQIDAwMDAwMDAwMDAwMABAQABQQEAAAAAAQEBAQEAAUGBwgJCgsDAgAACgMICwQFAXABAQEFAwEAAQYPAn8BQfDwAAt/AEHw8AALB18QBm1lbW9yeQIAAnNhAAABZQADAmlzAAQCaWUABQJzcwAGAnNlAAcCaWQACAJpcAAJAmVzAAoCZWUACwJyaQAMAnJlAA0BZgAOBXBhcnNlAA8LX19oZWFwX2Jhc2UDAQrbNC9oAQF/QQAgADYCtAhBACgCkAgiASAAQQF0aiIAQQA7AQBBACAAQQJqIgA2ArgIQQAgADYCvAhBAEEANgKUCEEAQQA2AqQIQQBBADYCnAhBAEEANgKYCEEAQQA2AqwIQQBBADYCoAggAQurAQECf0EAKAKkCCIEQRhqQZQIIAQbQQAoArwIIgU2AgBBACAFNgKkCEEAIAQ2AqgIQQAgBUEcajYCvAggBSAANgIIAkACQEEAKAKICCADRw0AIAUgAjYCDAwBCwJAQQAoAoQIIANHDQAgBSACQQJqNgIMDAELIAVBACgCkAg2AgwLIAUgATYCACAFIAM2AhAgBSACNgIEIAVBADYCGCAFQQAoAoQIIANGOgAUC0gBAX9BACgCrAgiAkEIakGYCCACG0EAKAK8CCICNgIAQQAgAjYCrAhBACACQQxqNgK8CCACQQA2AgggAiABNgIEIAIgADYCAAsIAEEAKALACAsVAEEAKAKcCCgCAEEAKAKQCGtBAXULFQBBACgCnAgoAgRBACgCkAhrQQF1CxUAQQAoApwIKAIIQQAoApAIa0EBdQsVAEEAKAKcCCgCDEEAKAKQCGtBAXULOwEBfwJAQQAoApwIKAIQIgBBACgChAhHDQBBfw8LAkAgAEEAKAKICEcNAEF+DwsgAEEAKAKQCGtBAXULCwBBACgCnAgtABQLFQBBACgCoAgoAgBBACgCkAhrQQF1CxUAQQAoAqAIKAIEQQAoApAIa0EBdQslAQF/QQBBACgCnAgiAEEYakGUCCAAGygCACIANgKcCCAAQQBHCyUBAX9BAEEAKAKgCCIAQQhqQZgIIAAbKAIAIgA2AqAIIABBAEcLCABBAC0AxAgLhQwBBX8jAEGA8ABrIgEkAEEAQQE6AMQIQQBB//8DOwHKCEEAQQAoAowINgLMCEEAQQAoApAIQX5qIgI2AuAIQQAgAkEAKAK0CEEBdGoiAzYC5AhBAEEAOwHGCEEAQQA7AcgIQQBBADoA0AhBAEEANgLACEEAQQA6ALAIQQAgAUGA0ABqNgLUCEEAIAFBgBBqNgLYCEEAQQA6ANwIAkACQAJAA0BBACACQQJqIgQ2AuAIAkACQAJAAkAgAiADTw0AIAQvAQAiA0F3akEFSQ0DIANBm39qIgVBBE0NASADQSBGDQMCQCADQS9GDQAgA0E7Rg0DDAYLAkAgAi8BBCIEQSpGDQAgBEEvRw0GEBAMBAsQEQwDC0EAIQMgBCECQQAtALAIDQYMBQsCQAJAIAUOBQEFBQUAAQsgBBASRQ0BIAJBBGpB7QBB8ABB7wBB8gBB9AAQE0UNARAUDAELQQAvAcgIDQAgBBASRQ0AIAJBBGpB+ABB8ABB7wBB8gBB9AAQE0UNABAVQQAtAMQIDQBBAEEAKALgCCICNgLMCAwEC0EAQQAoAuAINgLMCAtBACgC5AghA0EAKALgCCECDAALC0EAIAI2AuAIQQBBADoAxAgLA0BBACACQQJqIgM2AuAIAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAJBACgC5AhPDQAgAy8BACIEQXdqQQVJDQ4gBEFgaiIFQQlNDQEgBEGgf2oiBUEJTQ0CAkACQAJAIARBhX9qIgNBAk0NACAEQS9HDRAgAi8BBCICQSpGDQEgAkEvRw0CEBAMEQsCQAJAIAMOAwARAQALAkBBACgCzAgiBC8BAEEpRw0AQQAoAqQIIgJFDQAgAigCBCAERw0AQQBBACgCqAgiAjYCpAgCQCACRQ0AIAJBADYCGAwBC0EAQQA2ApQICyABQQAvAcgIIgJqQQAtANwIOgAAQQAgAkEBajsByAhBACgC2AggAkECdGogBDYCAEEAQQA6ANwIDBALQQAvAcgIIgJFDQlBACACQX9qIgM7AcgIAkAgAkEALwHKCCIERw0AQQBBAC8BxghBf2oiAjsBxghBAEEAKALUCCACQf//A3FBAXRqLwEAOwHKCAwICyAEQf//A0YNDyADQf//A3EgBEkNCQwPCxARDA8LAkACQAJAAkBBACgCzAgiBC8BACICEBZFDQAgAkFVaiIDQQNLDQICQAJAAkAgAw4EAQUCAAELIARBfmovAQBBUGpB//8DcUEKSQ0DDAQLIARBfmovAQBBK0YNAgwDCyAEQX5qLwEAQS1GDQEMAgsCQCACQf0ARg0AIAJBKUcNAUEAKALYCEEALwHICEECdGooAgAQF0UNAQwCC0EAKALYCEEALwHICCIDQQJ0aigCABAYDQEgASADai0AAA0BCyAEEBkNACACRQ0AQQEhBCACQS9GQQAtANAIQQBHcUUNAQsQGkEAIQQLQQAgBDoA0AgMDQtBAC8ByghB//8DRkEALwHICEVxQQAtALAIRXEhAwwPCyAFDgoMCwELCwsLAgcEDAsgBQ4KAgoKBwoJCgoKCAILEBsMCQsQHAwICxAdDAcLQQAvAcgIIgINAQsQHkEAIQMMCAtBACACQX9qIgQ7AcgIQQAoAqQIIgJFDQQgAigCEEEAKALYCCAEQf//A3FBAnRqKAIARw0EIAIgAzYCBAwEC0EAQQAvAcgIIgJBAWo7AcgIQQAoAtgIIAJBAnRqQQAoAswINgIADAMLIAMQEkUNAiACLwEKQfMARw0CIAIvAQhB8wBHDQIgAi8BBkHhAEcNAiACLwEEQewARw0CAkACQCACLwEMIgRBd2oiAkEXSw0AQQEgAnRBn4CABHENAQsgBEGgAUcNAwtBAEEBOgDcCAwCCyADEBJFDQEgAkEEakHtAEHwAEHvAEHyAEH0ABATRQ0BEBQMAQtBAC8ByAgNACADEBJFDQAgAkEEakH4AEHwAEHvAEHyAEH0ABATRQ0AEBULQQBBACgC4Ag2AswIC0EAKALgCCECDAALCyABQYDwAGokACADC1ABBH9BACgC4AhBAmohAEEAKALkCCEBAkADQCAAIgJBfmogAU8NASACQQJqIQAgAi8BAEF2aiIDQQNLDQAgAw4EAQAAAQELC0EAIAI2AuAIC3cBAn9BAEEAKALgCCIAQQJqNgLgCCAAQQZqIQBBACgC5AghAQNAAkACQAJAIABBfGogAU8NACAAQX5qLwEAQSpHDQIgAC8BAEEvRw0CQQAgAEF+ajYC4AgMAQsgAEF+aiEAC0EAIAA2AuAIDwsgAEECaiEADAALCx0AAkBBACgCkAggAEcNAEEBDwsgAEF+ai8BABAfCz8BAX9BACEGAkAgAC8BCCAFRw0AIAAvAQYgBEcNACAALwEEIANHDQAgAC8BAiACRw0AIAAvAQAgAUYhBgsgBgv3AwEEf0EAQQAoAuAIIgBBDGoiATYC4AgCQAJAAkACQAJAECciAkFZaiIDQQdNDQAgAkEiRg0CIAJB+wBGDQIMAQsCQAJAIAMOCAMBAgMCAgIAAwtBAEEAKALgCEECajYC4AgQJ0HtAEcNA0EAKALgCCIDLwEGQeEARw0DIAMvAQRB9ABHDQMgAy8BAkHlAEcNA0EAKALMCC8BAEEuRg0DIAAgACADQQhqQQAoAogIEAEPC0EAKALYCEEALwHICCIDQQJ0aiAANgIAQQAgA0EBajsByAhBACgCzAgvAQBBLkYNAiAAQQAoAuAIQQJqQQAgABABQQBBACgC4AhBAmo2AuAIAkACQBAnIgNBIkYNAAJAIANBJ0cNABAcDAILQQBBACgC4AhBfmo2AuAIDwsQGwtBAEEAKALgCEECajYC4AgCQBAnQSlHDQBBACgCpAgiA0EBOgAUIANBACgC4Ag2AgRBAEEALwHICEF/ajsByAgPC0EAQQAoAuAIQX5qNgLgCA8LQQAoAuAIIAFGDQELQQAvAcgIDQFBACgC4AghA0EAKALkCCEBAkADQCADIAFPDQECQAJAIAMvAQAiAkEnRg0AIAJBIkcNAQsgACACECgPC0EAIANBAmoiAzYC4AgMAAsLEB4LDwtBAEEAKALgCEF+ajYC4AgLmAYBBH9BAEEAKALgCCIAQQxqIgE2AuAIECchAgJAAkACQAJAAkACQEEAKALgCCIDIAFHDQAgAhApRQ0BCwJAAkACQAJAIAJBn39qIgFBC00NAAJAAkAgAkEqRg0AIAJB9gBGDQUgAkH7AEcNA0EAIANBAmo2AuAIECchA0EAKALgCCEBA0AgA0H//wNxECoaQQAoAuAIIQIQJxoCQCABIAIQKyIDQSxHDQBBAEEAKALgCEECajYC4AgQJyEDC0EAKALgCCECAkAgA0H9AEYNACACIAFGDQwgAiEBIAJBACgC5AhNDQEMDAsLQQAgAkECajYC4AgMAQtBACADQQJqNgLgCBAnGkEAKALgCCICIAIQKxoLECchAgwBCyABDgwEAAEGAAUAAAAAAAIEC0EAKALgCCEDAkAgAkHmAEcNACADLwEGQe0ARw0AIAMvAQRB7wBHDQAgAy8BAkHyAEcNAEEAIANBCGo2AuAIIAAQJxAoDwtBACADQX5qNgLgCAwCCwJAIAMvAQhB8wBHDQAgAy8BBkHzAEcNACADLwEEQeEARw0AIAMvAQJB7ABHDQAgAy8BChAfRQ0AQQAgA0EKajYC4AgQJyECQQAoAuAIIQMgAhAqGiADQQAoAuAIEAJBAEEAKALgCEF+ajYC4AgPC0EAIANBBGoiAzYC4AgLQQAgA0EEaiICNgLgCEEAQQA6AMQIA0BBACACQQJqNgLgCBAnIQNBACgC4AghAgJAIAMQKkEgckH7AEcNAEEAQQAoAuAIQX5qNgLgCA8LQQAoAuAIIgMgAkYNASACIAMQAgJAECciAkEsRg0AAkAgAkE9Rw0AQQBBACgC4AhBfmo2AuAIDwtBAEEAKALgCEF+ajYC4AgPC0EAKALgCCECDAALCw8LQQAgA0EKajYC4AgQJxpBACgC4AghAwtBACADQRBqNgLgCAJAECciAkEqRw0AQQBBACgC4AhBAmo2AuAIECchAgtBACgC4AghAyACECoaIANBACgC4AgQAkEAQQAoAuAIQX5qNgLgCA8LIAMgA0EOahACDwsQHgt1AQF/AkACQCAAQV9qIgFBBUsNAEEBIAF0QTFxDQELIABBRmpB//8DcUEGSQ0AIABBWGpB//8DcUEHSSAAQSlHcQ0AAkAgAEGlf2oiAUEDSw0AIAEOBAEAAAEBCyAAQf0ARyAAQYV/akH//wNxQQRJcQ8LQQELPQEBf0EBIQECQCAAQfcAQegAQekAQewAQeUAECANACAAQeYAQe8AQfIAECENACAAQekAQeYAECIhAQsgAQutAQEDf0EBIQECQAJAAkACQAJAAkACQCAALwEAIgJBRWoiA0EDTQ0AIAJBm39qIgNBA00NASACQSlGDQMgAkH5AEcNAiAAQX5qQeYAQekAQe4AQeEAQewAQewAECMPCyADDgQCAQEFAgsgAw4EAgAAAwILQQAhAQsgAQ8LIABBfmpB5QBB7ABB8wAQIQ8LIABBfmpB4wBB4QBB9ABB4wAQJA8LIABBfmovAQBBPUYL7QMBAn9BACEBAkAgAC8BAEGcf2oiAkETSw0AAkACQAJAAkACQAJAAkACQCACDhQAAQIICAgICAgIAwQICAUIBggIBwALIABBfmovAQBBl39qIgJBA0sNBwJAAkAgAg4EAAkJAQALIABBfGpB9gBB7wAQIg8LIABBfGpB+QBB6QBB5QAQIQ8LIABBfmovAQBBjX9qIgJBAUsNBgJAAkAgAg4CAAEACwJAIABBfGovAQAiAkHhAEYNACACQewARw0IIABBempB5QAQJQ8LIABBempB4wAQJQ8LIABBfGpB5ABB5QBB7ABB5QAQJA8LIABBfmovAQBB7wBHDQUgAEF8ai8BAEHlAEcNBQJAIABBemovAQAiAkHwAEYNACACQeMARw0GIABBeGpB6QBB7gBB8wBB9ABB4QBB7gAQIw8LIABBeGpB9ABB+QAQIg8LQQEhASAAQX5qIgBB6QAQJQ0EIABB8gBB5QBB9ABB9QBB8gAQIA8LIABBfmpB5AAQJQ8LIABBfmpB5ABB5QBB4gBB9QBB5wBB5wBB5QAQJg8LIABBfmpB4QBB9wBB4QBB6QAQJA8LAkAgAEF+ai8BACICQe8ARg0AIAJB5QBHDQEgAEF8akHuABAlDwsgAEF8akH0AEHoAEHyABAhIQELIAELgwEBA38DQEEAQQAoAuAIIgBBAmoiATYC4AgCQAJAAkAgAEEAKALkCE8NACABLwEAIgFBpX9qIgJBAU0NAgJAIAFBdmoiAEEDTQ0AIAFBL0cNBAwCCyAADgQAAwMAAAsQHgsPCwJAAkAgAg4CAQABC0EAIABBBGo2AuAIDAELECwaDAALC5EBAQR/QQAoAuAIIQBBACgC5AghAQJAA0AgACICQQJqIQAgAiABTw0BAkAgAC8BACIDQdwARg0AAkAgA0F2aiICQQNNDQAgA0EiRw0CQQAgADYC4AgPCyACDgQCAQECAgsgAkEEaiEAIAIvAQRBDUcNACACQQZqIAAgAi8BBkEKRhshAAwACwtBACAANgLgCBAeC5EBAQR/QQAoAuAIIQBBACgC5AghAQJAA0AgACICQQJqIQAgAiABTw0BAkAgAC8BACIDQdwARg0AAkAgA0F2aiICQQNNDQAgA0EnRw0CQQAgADYC4AgPCyACDgQCAQECAgsgAkEEaiEAIAIvAQRBDUcNACACQQZqIAAgAi8BBkEKRhshAAwACwtBACAANgLgCBAeC8kBAQV/QQAoAuAIIQBBACgC5AghAQNAIAAiAkECaiEAAkACQCACIAFPDQAgAC8BACIDQaR/aiIEQQRNDQEgA0EkRw0CIAIvAQRB+wBHDQJBAEEALwHGCCIAQQFqOwHGCEEAKALUCCAAQQF0akEALwHKCDsBAEEAIAJBBGo2AuAIQQBBAC8ByAhBAWoiADsByghBACAAOwHICA8LQQAgADYC4AgQHg8LAkACQCAEDgUBAgICAAELQQAgADYC4AgPCyACQQRqIQAMAAsLNQEBf0EAQQE6ALAIQQAoAuAIIQBBAEEAKALkCEECajYC4AhBACAAQQAoApAIa0EBdTYCwAgLNAEBf0EBIQECQCAAQXdqQf//A3FBBUkNACAAQYABckGgAUYNACAAQS5HIAAQKXEhAQsgAQtJAQN/QQAhBgJAIABBeGoiB0EAKAKQCCIISQ0AIAcgASACIAMgBCAFEBNFDQACQCAHIAhHDQBBAQ8LIABBdmovAQAQHyEGCyAGC1kBA39BACEEAkAgAEF8aiIFQQAoApAIIgZJDQAgAC8BACADRw0AIABBfmovAQAgAkcNACAFLwEAIAFHDQACQCAFIAZHDQBBAQ8LIABBemovAQAQHyEECyAEC0wBA39BACEDAkAgAEF+aiIEQQAoApAIIgVJDQAgAC8BACACRw0AIAQvAQAgAUcNAAJAIAQgBUcNAEEBDwsgAEF8ai8BABAfIQMLIAMLSwEDf0EAIQcCQCAAQXZqIghBACgCkAgiCUkNACAIIAEgAiADIAQgBSAGEC1FDQACQCAIIAlHDQBBAQ8LIABBdGovAQAQHyEHCyAHC2YBA39BACEFAkAgAEF6aiIGQQAoApAIIgdJDQAgAC8BACAERw0AIABBfmovAQAgA0cNACAAQXxqLwEAIAJHDQAgBi8BACABRw0AAkAgBiAHRw0AQQEPCyAAQXhqLwEAEB8hBQsgBQs9AQJ/QQAhAgJAQQAoApAIIgMgAEsNACAALwEAIAFHDQACQCADIABHDQBBAQ8LIABBfmovAQAQHyECCyACC00BA39BACEIAkAgAEF0aiIJQQAoApAIIgpJDQAgCSABIAIgAyAEIAUgBiAHEC5FDQACQCAJIApHDQBBAQ8LIABBcmovAQAQHyEICyAIC3YBA39BACgC4AghAAJAA0ACQCAALwEAIgFBd2pBBUkNACABQSBGDQAgAUGgAUYNACABQS9HDQICQCAALwECIgBBKkYNACAAQS9HDQMQEAwBCxARC0EAQQAoAuAIIgJBAmoiADYC4AggAkEAKALkCEkNAAsLIAELWAACQAJAIAFBIkYNACABQSdHDQFBACgC4AghARAcIAAgAUECakEAKALgCEEAKAKECBABDwtBACgC4AghARAbIAAgAUECakEAKALgCEEAKAKECBABDwsQHgtoAQJ/QQEhAQJAAkAgAEFfaiICQQVLDQBBASACdEExcQ0BCyAAQfj/A3FBKEYNACAAQUZqQf//A3FBBkkNAAJAIABBpX9qIgJBA0sNACACQQFHDQELIABBhX9qQf//A3FBBEkhAQsgAQttAQJ/AkACQANAAkAgAEH//wNxIgFBd2oiAkEXSw0AQQEgAnRBn4CABHENAgsgAUGgAUYNASAAIQIgARApDQJBACECQQBBACgC4AgiAEECajYC4AggAC8BAiIADQAMAgsLIAAhAgsgAkH//wNxC1wBAn8CQEEAKALgCCICLwEAIgNB4QBHDQBBACACQQRqNgLgCBAnIQJBACgC4AghACACECoaQQAoAuAIIQEQJyEDQQAoAuAIIQILAkAgAiAARg0AIAAgARACCyADC4kBAQV/QQAoAuAIIQBBACgC5AghAQN/IABBAmohAgJAAkAgACABTw0AIAIvAQAiA0Gkf2oiBEEBTQ0BIAIhACADQXZqIgNBA0sNAiACIQAgAw4EAAICAAALQQAgAjYC4AgQHkEADwsCQAJAIAQOAgEAAQtBACACNgLgCEHdAA8LIABBBGohAAwACwtJAQF/QQAhBwJAIAAvAQogBkcNACAALwEIIAVHDQAgAC8BBiAERw0AIAAvAQQgA0cNACAALwECIAJHDQAgAC8BACABRiEHCyAHC1MBAX9BACEIAkAgAC8BDCAHRw0AIAAvAQogBkcNACAALwEIIAVHDQAgAC8BBiAERw0AIAAvAQQgA0cNACAALwECIAJHDQAgAC8BACABRiEICyAICwsfAgBBgAgLAgAAAEGECAsQAQAAAAIAAAAABAAAcDgAAA==",typeof window<"u"&&typeof atob=="function"?Uint8Array.from(atob(bO),e=>e.charCodeAt(0)):Buffer.from(bO,"base64"))).then(WebAssembly.instantiate).then(({exports:e})=>{zr=e}),bO;d();function yK(e){return Object.prototype.toString.call(e)==="[object Object]"}var il=Ce(wY());import xX from"path";d();d();var TY=/\.(mjs|js|ts|vue|jsx|tsx)(\?.*|)$/,G0="node_modules",IY=".vite-plugin-externals";var K2e={disableInServe:!1,disableSsr:!0,filter(e,t,r,n){return!(!TY.test(t)||t.includes(G0)&&!n)},useWindow:!0,sourceMapOptions:{},debug:!1};function RY(e){return Object.assign({},K2e,e)}d();d();var $2e=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],LY=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],Y2e="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",FY="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",GO={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},WO="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",X2e={5:WO,"5module":WO+" export import",6:WO+" const class extends export import super"},J2e=/^in(stanceof)?$/,Z2e=new RegExp("["+FY+"]"),eRe=new RegExp("["+FY+Y2e+"]");function zO(e,t){for(var r=65536,n=0;n<t.length;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Ou(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Z2e.test(String.fromCharCode(e)):t===!1?!1:zO(e,LY)}function Sh(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&eRe.test(String.fromCharCode(e)):t===!1?!1:zO(e,LY)||zO(e,$2e)}var rr=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function Ys(e,t){return new rr(e,{beforeExpr:!0,binop:t})}var Xs={beforeExpr:!0},ts={startsExpr:!0},YO={};function $t(e,t){return t===void 0&&(t={}),t.keyword=e,YO[e]=new rr(e,t)}var N={num:new rr("num",ts),regexp:new rr("regexp",ts),string:new rr("string",ts),name:new rr("name",ts),privateId:new rr("privateId",ts),eof:new rr("eof"),bracketL:new rr("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new rr("]"),braceL:new rr("{",{beforeExpr:!0,startsExpr:!0}),braceR:new rr("}"),parenL:new rr("(",{beforeExpr:!0,startsExpr:!0}),parenR:new rr(")"),comma:new rr(",",Xs),semi:new rr(";",Xs),colon:new rr(":",Xs),dot:new rr("."),question:new rr("?",Xs),questionDot:new rr("?."),arrow:new rr("=>",Xs),template:new rr("template"),invalidTemplate:new rr("invalidTemplate"),ellipsis:new rr("...",Xs),backQuote:new rr("`",ts),dollarBraceL:new rr("${",{beforeExpr:!0,startsExpr:!0}),eq:new rr("=",{beforeExpr:!0,isAssign:!0}),assign:new rr("_=",{beforeExpr:!0,isAssign:!0}),incDec:new rr("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new rr("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ys("||",1),logicalAND:Ys("&&",2),bitwiseOR:Ys("|",3),bitwiseXOR:Ys("^",4),bitwiseAND:Ys("&",5),equality:Ys("==/!=/===/!==",6),relational:Ys("</>/<=/>=",7),bitShift:Ys("<</>>/>>>",8),plusMin:new rr("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ys("%",10),star:Ys("*",10),slash:Ys("/",10),starstar:new rr("**",{beforeExpr:!0}),coalesce:Ys("??",1),_break:$t("break"),_case:$t("case",Xs),_catch:$t("catch"),_continue:$t("continue"),_debugger:$t("debugger"),_default:$t("default",Xs),_do:$t("do",{isLoop:!0,beforeExpr:!0}),_else:$t("else",Xs),_finally:$t("finally"),_for:$t("for",{isLoop:!0}),_function:$t("function",ts),_if:$t("if"),_return:$t("return",Xs),_switch:$t("switch"),_throw:$t("throw",Xs),_try:$t("try"),_var:$t("var"),_const:$t("const"),_while:$t("while",{isLoop:!0}),_with:$t("with"),_new:$t("new",{beforeExpr:!0,startsExpr:!0}),_this:$t("this",ts),_super:$t("super",ts),_class:$t("class",ts),_extends:$t("extends",Xs),_export:$t("export"),_import:$t("import",ts),_null:$t("null",ts),_true:$t("true",ts),_false:$t("false",ts),_in:$t("in",{beforeExpr:!0,binop:7}),_instanceof:$t("instanceof",{beforeExpr:!0,binop:7}),_typeof:$t("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:$t("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:$t("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ea=/\r\n?|\n|\u2028|\u2029/,tRe=new RegExp(ea.source,"g");function bh(e){return e===10||e===13||e===8232||e===8233}function kY(e,t,r){r===void 0&&(r=e.length);for(var n=t;n<r;n++){var i=e.charCodeAt(n);if(bh(i))return n<r-1&&i===13&&e.charCodeAt(n+1)===10?n+2:n+1}return-1}var UY=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Js=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,MY=Object.prototype,rRe=MY.hasOwnProperty,nRe=MY.toString,K0=Object.hasOwn||function(e,t){return rRe.call(e,t)},NY=Array.isArray||function(e){return nRe.call(e)==="[object Array]"};function tl(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function rl(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var iRe=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Q0=function(t,r){this.line=t,this.column=r};Q0.prototype.offset=function(t){return new Q0(this.line,this.column+t)};var pC=function(t,r,n){this.start=r,this.end=n,t.sourceFile!==null&&(this.source=t.sourceFile)};function qY(e,t){for(var r=1,n=0;;){var i=kY(e,n,t);if(i<0)return new Q0(r,t-n);++r,n=i}}var KO={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},OY=!1;function sRe(e){var t={};for(var r in KO)t[r]=e&&K0(e,r)?e[r]:KO[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!OY&&typeof console=="object"&&console.warn&&(OY=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
139
|
-
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),NY(t.onToken)){var n=t.onToken;t.onToken=function(i){return n.push(i)}}return NY(t.onComment)&&(t.onComment=aRe(t,t.onComment)),t}function aRe(e,t){return function(r,n,i,s,a,o){var u={type:r?"Block":"Line",value:n,start:i,end:s};e.locations&&(u.loc=new pC(this,a,o)),e.ranges&&(u.range=[i,s]),t.push(u)}}var z0=1,Dh=2,XO=4,jY=8,VY=16,HY=32,JO=64,GY=128,$0=256,ZO=z0|Dh|$0;function eP(e,t){return Dh|(e?XO:0)|(t?jY:0)}var uC=0,tP=1,Bu=2,WY=3,QY=4,zY=5,yn=function(t,r,n){this.options=t=sRe(t),this.sourceFile=t.sourceFile,this.keywords=tl(X2e[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var i="";t.allowReserved!==!0&&(i=GO[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(i+=" await")),this.reservedWords=tl(i);var s=(i?i+" ":"")+GO.strict;this.reservedWordsStrict=tl(s),this.reservedWordsStrictBind=tl(s+" "+GO.strictBind),this.input=String(r),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
|
|
140
|
-
`,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ea).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=N.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(z0),this.regexpState=null,this.privateNameStack=[]},Po={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};yn.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};Po.inFunction.get=function(){return(this.currentVarScope().flags&Dh)>0};Po.inGenerator.get=function(){return(this.currentVarScope().flags&jY)>0&&!this.currentVarScope().inClassFieldInit};Po.inAsync.get=function(){return(this.currentVarScope().flags&XO)>0&&!this.currentVarScope().inClassFieldInit};Po.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&$0)return!1;if(t.flags&Dh)return(t.flags&XO)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Po.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&JO)>0||r||this.options.allowSuperOutsideMethod};Po.allowDirectSuper.get=function(){return(this.currentThisScope().flags&GY)>0};Po.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Po.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&(Dh|$0))>0||r};Po.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&$0)>0};yn.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var n=this,i=0;i<t.length;i++)n=t[i](n);return n};yn.parse=function(t,r){return new this(r,t).parse()};yn.parseExpressionAt=function(t,r,n){var i=new this(n,t,r);return i.nextToken(),i.parseExpression()};yn.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties(yn.prototype,Po);var Ri=yn.prototype,oRe=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Ri.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Js.lastIndex=e,e+=Js.exec(this.input)[0].length;var t=oRe.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){Js.lastIndex=e+t[0].length;var r=Js.exec(this.input),n=r.index+r[0].length,i=this.input.charAt(n);return i===";"||i==="}"||ea.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(n+1)==="=")}e+=t[0].length,Js.lastIndex=e,e+=Js.exec(this.input)[0].length,this.input[e]===";"&&e++}};Ri.eat=function(e){return this.type===e?(this.next(),!0):!1};Ri.isContextual=function(e){return this.type===N.name&&this.value===e&&!this.containsEsc};Ri.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Ri.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Ri.canInsertSemicolon=function(){return this.type===N.eof||this.type===N.braceR||ea.test(this.input.slice(this.lastTokEnd,this.start))};Ri.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Ri.semicolon=function(){!this.eat(N.semi)&&!this.insertSemicolon()&&this.unexpected()};Ri.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Ri.expect=function(e){this.eat(e)||this.unexpected()};Ri.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var fC=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ri.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}};Ri.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")};Ri.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Ri.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var rt=yn.prototype;rt.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==N.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,i=Object.keys(this.undefinedExports);n<i.length;n+=1){var s=i[n];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var rP={kind:"loop"},uRe={kind:"switch"};rt.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Js.lastIndex=this.pos;var t=Js.exec(this.input),r=this.pos+t[0].length,n=this.input.charCodeAt(r);if(n===91||n===92)return!0;if(e)return!1;if(n===123||n>55295&&n<56320)return!0;if(Ou(n,!0)){for(var i=r+1;Sh(n=this.input.charCodeAt(i),!0);)++i;if(n===92||n>55295&&n<56320)return!0;var s=this.input.slice(r,i);if(!J2e.test(s))return!0}return!1};rt.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Js.lastIndex=this.pos;var e=Js.exec(this.input),t=this.pos+e[0].length,r;return!ea.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(Sh(r=this.input.charCodeAt(t+8))||r>55295&&r<56320))};rt.parseStatement=function(e,t,r){var n=this.type,i=this.startNode(),s;switch(this.isLet(e)&&(n=N._var,s="let"),n){case N._break:case N._continue:return this.parseBreakContinueStatement(i,n.keyword);case N._debugger:return this.parseDebuggerStatement(i);case N._do:return this.parseDoStatement(i);case N._for:return this.parseForStatement(i);case N._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case N._class:return e&&this.unexpected(),this.parseClass(i,!0);case N._if:return this.parseIfStatement(i);case N._return:return this.parseReturnStatement(i);case N._switch:return this.parseSwitchStatement(i);case N._throw:return this.parseThrowStatement(i);case N._try:return this.parseTryStatement(i);case N._const:case N._var:return s=s||this.value,e&&s!=="var"&&this.unexpected(),this.parseVarStatement(i,s);case N._while:return this.parseWhileStatement(i);case N._with:return this.parseWithStatement(i);case N.braceL:return this.parseBlock(!0,i);case N.semi:return this.parseEmptyStatement(i);case N._export:case N._import:if(this.options.ecmaVersion>10&&n===N._import){Js.lastIndex=this.pos;var a=Js.exec(this.input),o=this.pos+a[0].length,u=this.input.charCodeAt(o);if(u===40||u===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===N._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.value,f=this.parseExpression();return n===N.name&&f.type==="Identifier"&&this.eat(N.colon)?this.parseLabeledStatement(i,l,f,e):this.parseExpressionStatement(i,f)}};rt.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(N.semi)||this.insertSemicolon()?e.label=null:this.type!==N.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var i=this.labels[n];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(r||i.kind==="loop")||e.label&&r))break}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")};rt.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};rt.parseDoStatement=function(e){return this.next(),this.labels.push(rP),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(N._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(N.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};rt.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(rP),this.enterScope(0),this.expect(N.parenL),this.type===N.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===N._var||this.type===N._const||r){var n=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),(this.type===N._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&n.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===N._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,n)):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var s=this.isContextual("let"),a=!1,o=new fC,u=this.parseExpression(t>-1?"await":!0,o);return this.type===N._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===N._in?t>-1&&this.unexpected(t):e.await=t>-1),s&&a&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,o),this.checkLValPattern(u),this.parseForIn(e,u)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))};rt.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,W0|(r?0:$O),!1,t)};rt.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(N._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};rt.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(N.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};rt.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(N.braceL),this.labels.push(uRe),this.enterScope(0);for(var t,r=!1;this.type!==N.braceR;)if(this.type===N._case||this.type===N._default){var n=this.type===N._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(N.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};rt.parseThrowStatement=function(e){return this.next(),ea.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var cRe=[];rt.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?HY:0),this.checkLValPattern(e,t?QY:Bu),this.expect(N.parenR),e};rt.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===N._catch){var t=this.startNode();this.next(),this.eat(N.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(N._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};rt.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")};rt.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(rP),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};rt.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};rt.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};rt.parseLabeledStatement=function(e,t,r,n){for(var i=0,s=this.labels;i<s.length;i+=1){var a=s[i];a.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===N._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var l=this.labels[u];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(n?n.indexOf("label")===-1?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};rt.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};rt.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(N.braceL),e&&this.enterScope(0);this.type!==N.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};rt.parseFor=function(e,t){return e.init=t,this.expect(N.semi),e.test=this.type===N.semi?null:this.parseExpression(),this.expect(N.semi),e.update=this.type===N.parenR?null:this.parseExpression(),this.expect(N.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};rt.parseForIn=function(e,t){var r=this.type===N._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(N.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};rt.parseVar=function(e,t,r,n){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(N.eq)?i.init=this.parseMaybeAssign(t):!n&&r==="const"&&!(this.type===N._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!n&&i.id.type!=="Identifier"&&!(t&&(this.type===N._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(N.comma))break}return e};rt.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?tP:Bu,!1)};var W0=1,$O=2,KY=4;rt.parseFunction=function(e,t,r,n,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===N.star&&t&$O&&this.unexpected(),e.generator=this.eat(N.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&W0&&(e.id=t&KY&&this.type!==N.name?null:this.parseIdent(),e.id&&!(t&$O)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?tP:Bu:WY));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(eP(e.async,e.generator)),t&W0||(e.id=this.type===N.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,i),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&W0?"FunctionDeclaration":"FunctionExpression")};rt.parseFunctionParams=function(e){this.expect(N.parenL),e.params=this.parseBindingList(N.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};rt.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),i=this.startNode(),s=!1;for(i.body=[],this.expect(N.braceL);this.type!==N.braceR;){var a=this.parseClassElement(e.superClass!==null);a&&(i.body.push(a),a.type==="MethodDefinition"&&a.kind==="constructor"?(s&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),s=!0):a.key&&a.key.type==="PrivateIdentifier"&&lRe(n,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};rt.parseClassElement=function(e){if(this.eat(N.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),n="",i=!1,s=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(N.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===N.star?o=!0:n="static"}if(r.static=o,!n&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===N.star)&&!this.canInsertSemicolon()?s=!0:n="async"),!n&&(t>=9||!s)&&this.eat(N.star)&&(i=!0),!n&&!s&&!i){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=u:n=u)}if(n?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=n,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===N.parenL||a!=="method"||i||s){var l=!r.static&&cC(r,"constructor"),f=l&&e;l&&a!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=l?"constructor":a,this.parseClassMethod(r,i,s,f)}else this.parseClassField(r);return r};rt.isClassElementNameStart=function(){return this.type===N.name||this.type===N.privateId||this.type===N.num||this.type===N.string||this.type===N.bracketL||this.type.keyword};rt.parseClassElementName=function(e){this.type===N.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};rt.parseClassMethod=function(e,t,r,n){var i=e.key;e.kind==="constructor"?(t&&this.raise(i.start,"Constructor can't be a generator"),r&&this.raise(i.start,"Constructor can't be an async method")):e.static&&cC(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,r,n);return e.kind==="get"&&s.params.length!==0&&this.raiseRecoverable(s.start,"getter should have no params"),e.kind==="set"&&s.params.length!==1&&this.raiseRecoverable(s.start,"setter should have exactly one param"),e.kind==="set"&&s.params[0].type==="RestElement"&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};rt.parseClassField=function(e){if(cC(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&cC(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(N.eq)){var t=this.currentThisScope(),r=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=r}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};rt.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope($0|JO);this.type!==N.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};rt.parseClassId=function(e,t){this.type===N.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Bu,!1)):(t===!0&&this.unexpected(),e.id=null)};rt.parseClassSuper=function(e){e.superClass=this.eat(N._extends)?this.parseExprSubscripts(null,!1):null};rt.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};rt.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,i=n===0?null:this.privateNameStack[n-1],s=0;s<r.length;++s){var a=r[s];K0(t,a.name)||(i?i.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}};function lRe(e,t){var r=t.key.name,n=e[r],i="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(i=(t.static?"s":"i")+t.kind),n==="iget"&&i==="iset"||n==="iset"&&i==="iget"||n==="sget"&&i==="sset"||n==="sset"&&i==="sget"?(e[r]="true",!1):n?!0:(e[r]=i,!1)}function cC(e,t){var r=e.computed,n=e.key;return!r&&(n.type==="Identifier"&&n.name===t||n.type==="Literal"&&n.value===t)}rt.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==N.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};rt.parseExport=function(e,t){if(this.next(),this.eat(N.star))return this.parseExportAllDeclaration(e,t);if(this.eat(N._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==N.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var r=0,n=e.specifiers;r<n.length;r+=1){var i=n[r];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type==="Literal"&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};rt.parseExportDeclaration=function(e){return this.parseStatement(null)};rt.parseExportDefaultDeclaration=function(){var e;if(this.type===N._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,W0|KY,!1,e)}else if(this.type===N._class){var r=this.startNode();return this.parseClass(r,"nullableID")}else{var n=this.parseMaybeAssign();return this.semicolon(),n}};rt.checkExport=function(e,t,r){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),K0(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)};rt.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier")this.checkExport(e,t,t.start);else if(r==="ObjectPattern")for(var n=0,i=t.properties;n<i.length;n+=1){var s=i[n];this.checkPatternExport(e,s)}else if(r==="ArrayPattern")for(var a=0,o=t.elements;a<o.length;a+=1){var u=o[a];u&&this.checkPatternExport(e,u)}else r==="Property"?this.checkPatternExport(e,t.value):r==="AssignmentPattern"?this.checkPatternExport(e,t.left):r==="RestElement"?this.checkPatternExport(e,t.argument):r==="ParenthesizedExpression"&&this.checkPatternExport(e,t.expression)};rt.checkVariableExport=function(e,t){if(e)for(var r=0,n=t;r<n.length;r+=1){var i=n[r];this.checkPatternExport(e,i.id)}};rt.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};rt.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};rt.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(N.braceL);!this.eat(N.braceR);){if(r)r=!1;else if(this.expect(N.comma),this.afterTrailingComma(N.braceR))break;t.push(this.parseExportSpecifier(e))}return t};rt.parseImport=function(e){return this.next(),this.type===N.string?(e.specifiers=cRe,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===N.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};rt.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,Bu),this.finishNode(e,"ImportSpecifier")};rt.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Bu),this.finishNode(e,"ImportDefaultSpecifier")};rt.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,Bu),this.finishNode(e,"ImportNamespaceSpecifier")};rt.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===N.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(N.comma)))return e;if(this.type===N.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(N.braceL);!this.eat(N.braceR);){if(t)t=!1;else if(this.expect(N.comma),this.afterTrailingComma(N.braceR))break;e.push(this.parseImportSpecifier())}return e};rt.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===N.string){var e=this.parseLiteral(this.value);return iRe.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};rt.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};rt.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var ta=yn.prototype;ta.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,i=e.properties;n<i.length;n+=1){var s=i[n];this.toAssignable(s,t),s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e};ta.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var i=e[n];i&&this.toAssignable(i,t)}if(r){var s=e[r-1];this.options.ecmaVersion===6&&t&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"&&this.unexpected(s.argument.start)}return e};ta.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};ta.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==N.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};ta.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case N.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(N.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case N.braceL:return this.parseObj(!0)}return this.parseIdent()};ta.parseBindingList=function(e,t,r,n){for(var i=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(N.comma),t&&this.type===N.comma)i.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===N.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),i.push(a),this.type===N.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(n))}return i};ta.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};ta.parseBindingListItem=function(e){return e};ta.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(N.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")};ta.checkLValSimple=function(e,t,r){t===void 0&&(t=uC);var n=t!==uC;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(t===Bu&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(K0(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==zY&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}};ta.checkLValPattern=function(e,t,r){switch(t===void 0&&(t=uC),e.type){case"ObjectPattern":for(var n=0,i=e.properties;n<i.length;n+=1){var s=i[n];this.checkLValInnerPattern(s,t,r)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var u=o[a];u&&this.checkLValInnerPattern(u,t,r)}break;default:this.checkLValSimple(e,t,r)}};ta.checkLValInnerPattern=function(e,t,r){switch(t===void 0&&(t=uC),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var Ga=function(t,r,n,i,s){this.token=t,this.isExpr=!!r,this.preserveSpace=!!n,this.override=i,this.generator=!!s},Kr={b_stat:new Ga("{",!1),b_expr:new Ga("{",!0),b_tmpl:new Ga("${",!1),p_stat:new Ga("(",!1),p_expr:new Ga("(",!0),q_tmpl:new Ga("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Ga("function",!1),f_expr:new Ga("function",!0),f_expr_gen:new Ga("function",!0,!1,null,!0),f_gen:new Ga("function",!1,!1,null,!0)},wh=yn.prototype;wh.initialContext=function(){return[Kr.b_stat]};wh.curContext=function(){return this.context[this.context.length-1]};wh.braceIsBlock=function(e){var t=this.curContext();return t===Kr.f_expr||t===Kr.f_stat?!0:e===N.colon&&(t===Kr.b_stat||t===Kr.b_expr)?!t.isExpr:e===N._return||e===N.name&&this.exprAllowed?ea.test(this.input.slice(this.lastTokEnd,this.start)):e===N._else||e===N.semi||e===N.eof||e===N.parenR||e===N.arrow?!0:e===N.braceL?t===Kr.b_stat:e===N._var||e===N._const||e===N.name?!1:!this.exprAllowed};wh.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};wh.updateContext=function(e){var t,r=this.type;r.keyword&&e===N.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};wh.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};N.parenR.updateContext=N.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===Kr.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};N.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Kr.b_stat:Kr.b_expr),this.exprAllowed=!0};N.dollarBraceL.updateContext=function(){this.context.push(Kr.b_tmpl),this.exprAllowed=!0};N.parenL.updateContext=function(e){var t=e===N._if||e===N._for||e===N._with||e===N._while;this.context.push(t?Kr.p_stat:Kr.p_expr),this.exprAllowed=!0};N.incDec.updateContext=function(){};N._function.updateContext=N._class.updateContext=function(e){e.beforeExpr&&e!==N._else&&!(e===N.semi&&this.curContext()!==Kr.p_stat)&&!(e===N._return&&ea.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===N.colon||e===N.braceL)&&this.curContext()===Kr.b_stat)?this.context.push(Kr.f_expr):this.context.push(Kr.f_stat),this.exprAllowed=!1};N.backQuote.updateContext=function(){this.curContext()===Kr.q_tmpl?this.context.pop():this.context.push(Kr.q_tmpl),this.exprAllowed=!1};N.star.updateContext=function(e){if(e===N._function){var t=this.context.length-1;this.context[t]===Kr.f_expr?this.context[t]=Kr.f_expr_gen:this.context[t]=Kr.f_gen}this.exprAllowed=!0};N.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==N.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var gt=yn.prototype;gt.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n=e.key,i;switch(n.type){case"Identifier":i=n.name;break;case"Literal":i=String(n.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&s==="init"&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),t.proto=!0);return}i="$"+i;var a=t[i];if(a){var o;s==="init"?o=this.strict&&a.init||a.get||a.set:o=a.init||a[s],o&&this.raiseRecoverable(n.start,"Redefinition of property")}else a=t[i]={init:!1,get:!1,set:!1};a[s]=!0}};gt.parseExpression=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===N.comma){var s=this.startNodeAt(r,n);for(s.expressions=[i];this.eat(N.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i};gt.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,i=-1,s=-1,a=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new fC,n=!0);var o=this.start,u=this.startLoc;(this.type===N.parenL||this.type===N.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var l=this.parseMaybeConditional(e,t);if(r&&(l=r.call(this,l,o,u)),this.type.isAssign){var f=this.startNodeAt(o,u);return f.operator=this.value,this.type===N.eq&&(l=this.toAssignable(l,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===N.eq?this.checkLValPattern(l):this.checkLValSimple(l),f.left=l,this.next(),f.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(f,"AssignmentExpression")}else n&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),l};gt.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(N.question)){var s=this.startNodeAt(r,n);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(N.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i};gt.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===r&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,r,n,-1,e)};gt.parseExprOp=function(e,t,r,n,i){var s=this.type.binop;if(s!=null&&(!i||this.type!==N._in)&&s>n){var a=this.type===N.logicalOR||this.type===N.logicalAND,o=this.type===N.coalesce;o&&(s=N.logicalAND.binop);var u=this.value;this.next();var l=this.start,f=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,f,s,i),m=this.buildBinary(t,r,e,h,u,a||o);return(a&&this.type===N.coalesce||o&&(this.type===N.logicalOR||this.type===N.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(m,t,r,n,i)}return e};gt.buildBinary=function(e,t,r,n,i,s){n.type==="PrivateIdentifier"&&this.raise(n.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=r,a.operator=i,a.right=n,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")};gt.parseMaybeUnary=function(e,t,r,n){var i=this.start,s=this.startLoc,a;if(this.isContextual("await")&&this.canAwait)a=this.parseAwait(n),t=!0;else if(this.type.prefix){var o=this.startNode(),u=this.type===N.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,u,n),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(o.argument):this.strict&&o.operator==="delete"&&o.argument.type==="Identifier"?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):o.operator==="delete"&&$Y(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,a=this.finishNode(o,u?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===N.privateId)(n||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),a=this.parsePrivateIdent(),this.type!==N._in&&this.unexpected();else{if(a=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return a;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,s);l.operator=this.value,l.prefix=!1,l.argument=a,this.checkLValSimple(a),this.next(),a=this.finishNode(l,"UpdateExpression")}}if(!r&&this.eat(N.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,s,a,this.parseMaybeUnary(null,!1,!1,n),"**",!1);else return a};function $Y(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&$Y(e.expression)}gt.parseExprSubscripts=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprAtom(e,t);if(i.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return i;var s=this.parseSubscripts(i,r,n,!1,t);return e&&s.type==="MemberExpression"&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s};gt.parseSubscripts=function(e,t,r,n,i){for(var s=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,r,n,s,a,i);if(o.optional&&(a=!0),o===e||o.type==="ArrowFunctionExpression"){if(a){var u=this.startNodeAt(t,r);u.expression=o,o=this.finishNode(u,"ChainExpression")}return o}e=o}};gt.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(N.arrow)};gt.parseSubscriptAsyncArrow=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!0,n)};gt.parseSubscript=function(e,t,r,n,i,s,a){var o=this.options.ecmaVersion>=11,u=o&&this.eat(N.questionDot);n&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(N.bracketL);if(l||u&&this.type!==N.parenL&&this.type!==N.backQuote||this.eat(N.dot)){var f=this.startNodeAt(t,r);f.object=e,l?(f.property=this.parseExpression(),this.expect(N.bracketR)):this.type===N.privateId&&e.type!=="Super"?f.property=this.parsePrivateIdent():f.property=this.parseIdent(this.options.allowReserved!=="never"),f.computed=!!l,o&&(f.optional=u),e=this.finishNode(f,"MemberExpression")}else if(!n&&this.eat(N.parenL)){var h=new fC,m=this.yieldPos,y=this.awaitPos,_=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var C=this.parseExprList(N.parenR,this.options.ecmaVersion>=8,!1,h);if(i&&!u&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=m,this.awaitPos=y,this.awaitIdentPos=_,this.parseSubscriptAsyncArrow(t,r,C,a);this.checkExpressionErrors(h,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=y||this.awaitPos,this.awaitIdentPos=_||this.awaitIdentPos;var b=this.startNodeAt(t,r);b.callee=e,b.arguments=C,o&&(b.optional=u),e=this.finishNode(b,"CallExpression")}else if(this.type===N.backQuote){(u||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var D=this.startNodeAt(t,r);D.tag=e,D.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(D,"TaggedTemplateExpression")}return e};gt.parseExprAtom=function(e,t,r){this.type===N.slash&&this.readRegexp();var n,i=this.potentialArrowAt===this.start;switch(this.type){case N._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type===N.parenL&&!this.allowDirectSuper&&this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==N.dot&&this.type!==N.bracketL&&this.type!==N.parenL&&this.unexpected(),this.finishNode(n,"Super");case N._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case N.name:var s=this.start,a=this.startLoc,o=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(N._function))return this.overrideContext(Kr.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(N.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[u],!1,t);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===N.name&&!o&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(N.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[u],!0,t)}return u;case N.regexp:var l=this.value;return n=this.parseLiteral(l.value),n.regex={pattern:l.pattern,flags:l.flags},n;case N.num:case N.string:return this.parseLiteral(this.value);case N._null:case N._true:case N._false:return n=this.startNode(),n.value=this.type===N._null?null:this.type===N._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case N.parenL:var f=this.start,h=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=f),e.parenthesizedBind<0&&(e.parenthesizedBind=f)),h;case N.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(N.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case N.braceL:return this.overrideContext(Kr.b_expr),this.parseObj(!1,e);case N._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case N._class:return this.parseClass(this.startNode(),!1);case N._new:return this.parseNew();case N.backQuote:return this.parseTemplate();case N._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}};gt.parseExprAtomDefault=function(){this.unexpected()};gt.parseExprImport=function(e){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var r=this.parseIdent(!0);if(this.type===N.parenL&&!e)return this.parseDynamicImport(t);if(this.type===N.dot)return t.meta=r,this.parseImportMeta(t);this.unexpected()};gt.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(N.parenR)){var t=this.start;this.eat(N.comma)&&this.eat(N.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};gt.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};gt.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};gt.parseParenExpression=function(){this.expect(N.parenL);var e=this.parseExpression();return this.expect(N.parenR),e};gt.shouldParseArrow=function(e){return!this.canInsertSemicolon()};gt.parseParenAndDistinguishExpression=function(e,t){var r=this.start,n=this.startLoc,i,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,o=this.startLoc,u=[],l=!0,f=!1,h=new fC,m=this.yieldPos,y=this.awaitPos,_;for(this.yieldPos=0,this.awaitPos=0;this.type!==N.parenR;)if(l?l=!1:this.expect(N.comma),s&&this.afterTrailingComma(N.parenR,!0)){f=!0;break}else if(this.type===N.ellipsis){_=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===N.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,h,this.parseParenItem));var C=this.lastTokEnd,b=this.lastTokEndLoc;if(this.expect(N.parenR),e&&this.shouldParseArrow(u)&&this.eat(N.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=m,this.awaitPos=y,this.parseParenArrowList(r,n,u,t);(!u.length||f)&&this.unexpected(this.lastTokStart),_&&this.unexpected(_),this.checkExpressionErrors(h,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=y||this.awaitPos,u.length>1?(i=this.startNodeAt(a,o),i.expressions=u,this.finishNodeAt(i,"SequenceExpression",C,b)):i=u[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var D=this.startNodeAt(r,n);return D.expression=i,this.finishNode(D,"ParenthesizedExpression")}else return i};gt.parseParenItem=function(e){return e};gt.parseParenArrowList=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,n)};var pRe=[];gt.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(N.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,i,!0,!1),this.eat(N.parenL)?e.arguments=this.parseExprList(N.parenR,this.options.ecmaVersion>=8,!1):e.arguments=pRe,this.finishNode(e,"NewExpression")};gt.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===N.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
141
|
-
`),cooked:this.value},this.next(),r.tail=this.type===N.backQuote,this.finishNode(r,"TemplateElement")};gt.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===N.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(N.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(N.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};gt.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===N.name||this.type===N.num||this.type===N.string||this.type===N.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===N.star)&&!ea.test(this.input.slice(this.lastTokEnd,this.start))};gt.parseObj=function(e,t){var r=this.startNode(),n=!0,i={};for(r.properties=[],this.next();!this.eat(N.braceR);){if(n)n=!1;else if(this.expect(N.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(N.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),r.properties.push(s)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};gt.parseProperty=function(e,t){var r=this.startNode(),n,i,s,a;if(this.options.ecmaVersion>=9&&this.eat(N.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===N.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===N.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(s=this.start,a=this.startLoc),e||(n=this.eat(N.star)));var o=this.containsEsc;return this.parsePropertyName(r),!e&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(r)?(i=!0,n=this.options.ecmaVersion>=9&&this.eat(N.star),this.parsePropertyName(r)):i=!1,this.parsePropertyValue(r,e,n,i,s,a,t,o),this.finishNode(r,"Property")};gt.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var r=e.value.start;e.kind==="get"?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};gt.parsePropertyValue=function(e,t,r,n,i,s,a,o){(r||n)&&this.type===N.colon&&this.unexpected(),this.eat(N.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===N.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,n)):!t&&!o&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==N.comma&&this.type!==N.braceR&&this.type!==N.eq?((r||n)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key)):this.type===N.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};gt.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(N.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(N.bracketR),e.key;e.computed=!1}return e.key=this.type===N.num||this.type===N.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};gt.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};gt.parseMethod=function(e,t,r){var n=this.startNode(),i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(eP(t,n.generator)|JO|(r?GY:0)),this.expect(N.parenL),n.params=this.parseBindingList(N.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(n,"FunctionExpression")};gt.parseArrowExpression=function(e,t,r,n){var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(eP(r,!1)|VY),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")};gt.parseFunctionBody=function(e,t,r,n){var i=t&&this.type!==N.braceL,s=this.strict,a=!1;if(i)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||o)&&(a=this.strictDirective(this.end),a&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var u=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,zY),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()};gt.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){var n=r[t];if(n.type!=="Identifier")return!1}return!0};gt.checkParams=function(e,t){for(var r=Object.create(null),n=0,i=e.params;n<i.length;n+=1){var s=i[n];this.checkLValInnerPattern(s,tP,t?null:r)}};gt.parseExprList=function(e,t,r,n){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(N.comma),t&&this.afterTrailingComma(e))break;var a=void 0;r&&this.type===N.comma?a=null:this.type===N.ellipsis?(a=this.parseSpread(n),n&&this.type===N.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):a=this.parseMaybeAssign(!1,n),i.push(a)}return i};gt.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;if(this.inGenerator&&n==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&n==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&n==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(n==="arguments"||n==="await")&&this.raise(t,"Cannot use "+n+" in class static initialization block"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1)){var i=this.strict?this.reservedWordsStrict:this.reservedWords;i.test(n)&&(!this.inAsync&&n==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))}};gt.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};gt.parseIdentNode=function(){var e=this.startNode();return this.type===N.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),e};gt.parsePrivateIdent=function(){var e=this.startNode();return this.type===N.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};gt.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===N.semi||this.canInsertSemicolon()||this.type!==N.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(N.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};gt.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var lC=yn.prototype;lC.raise=function(e,t){var r=qY(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n};lC.raiseRecoverable=lC.raise;lC.curPosition=function(){if(this.options.locations)return new Q0(this.curLine,this.pos-this.lineStart)};var nl=yn.prototype,fRe=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};nl.enterScope=function(e){this.scopeStack.push(new fRe(e))};nl.exitScope=function(){this.scopeStack.pop()};nl.treatFunctionsAsVarInScope=function(e){return e.flags&Dh||!this.inModule&&e.flags&z0};nl.declareName=function(e,t,r){var n=!1;if(t===Bu){var i=this.currentScope();n=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&z0&&delete this.undefinedExports[e]}else if(t===QY){var s=this.currentScope();s.lexical.push(e)}else if(t===WY){var a=this.currentScope();this.treatFunctionsAsVar?n=a.lexical.indexOf(e)>-1:n=a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var u=this.scopeStack[o];if(u.lexical.indexOf(e)>-1&&!(u.flags&HY&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){n=!0;break}if(u.var.push(e),this.inModule&&u.flags&z0&&delete this.undefinedExports[e],u.flags&ZO)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};nl.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};nl.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};nl.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&ZO)return t}};nl.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&ZO&&!(t.flags&VY))return t}};var dC=function(t,r,n){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new pC(t,n)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},Y0=yn.prototype;Y0.startNode=function(){return new dC(this,this.start,this.startLoc)};Y0.startNodeAt=function(e,t){return new dC(this,e,t)};function YY(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}Y0.finishNode=function(e,t){return YY.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Y0.finishNodeAt=function(e,t,r,n){return YY.call(this,e,t,r,n)};Y0.copyNode=function(e){var t=new dC(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var XY="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",JY=XY+" Extended_Pictographic",ZY=JY,eX=ZY+" EBase EComp EMod EPres ExtPict",tX=eX,dRe=tX,hRe={9:XY,10:JY,11:ZY,12:eX,13:tX,14:dRe},mRe="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",gRe={9:"",10:"",11:"",12:"",13:"",14:mRe},PY="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",rX="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",nX=rX+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",iX=nX+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",sX=iX+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",aX=sX+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",vRe=aX+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",yRe={9:rX,10:nX,11:iX,12:sX,13:aX,14:vRe},oX={};function xRe(e){var t=oX[e]={binary:tl(hRe[e]+" "+PY),binaryOfStrings:tl(gRe[e]),nonBinary:{General_Category:tl(PY),Script:tl(yRe[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(oC=0,QO=[9,10,11,12,13,14];oC<QO.length;oC+=1)BY=QO[oC],xRe(BY);var BY,oC,QO,ze=yn.prototype,Bo=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=oX[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Bo.prototype.reset=function(t,r,n){var i=n.indexOf("v")!==-1,s=n.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=n,i&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)};Bo.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Bo.prototype.at=function(t,r){r===void 0&&(r=!1);var n=this.source,i=n.length;if(t>=i)return-1;var s=n.charCodeAt(t);if(!(r||this.switchU)||s<=55295||s>=57344||t+1>=i)return s;var a=n.charCodeAt(t+1);return a>=56320&&a<=57343?(s<<10)+a-56613888:s};Bo.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var n=this.source,i=n.length;if(t>=i)return i;var s=n.charCodeAt(t),a;return!(r||this.switchU)||s<=55295||s>=57344||t+1>=i||(a=n.charCodeAt(t+1))<56320||a>57343?t+1:t+2};Bo.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Bo.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Bo.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Bo.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};Bo.prototype.eatChars=function(t,r){r===void 0&&(r=!1);for(var n=this.pos,i=0,s=t;i<s.length;i+=1){var a=s[i],o=this.at(n,r);if(o===-1||o!==a)return!1;n=this.nextIndex(n,r)}return this.pos=n,!0};ze.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=!1,i=!1,s=0;s<r.length;s++){var a=r.charAt(s);t.indexOf(a)===-1&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(a,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),a==="u"&&(n=!0),a==="v"&&(i=!0)}this.options.ecmaVersion>=15&&n&&i&&this.raise(e.start,"Invalid regular expression flag")};ze.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))};ze.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var n=r[t];e.groupNames.indexOf(n)===-1&&e.raise("Invalid named capture referenced")}};ze.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};ze.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};ze.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};ze.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};ze.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};ze.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};ze.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1};ze.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};ze.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};ze.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1};ze.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};ze.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};ze.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};ze.regexp_eatSyntaxCharacter=function(e){var t=e.current();return uX(t)?(e.lastIntValue=t,e.advance(),!0):!1};function uX(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}ze.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!uX(r);)e.advance();return e.pos!==t};ze.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};ze.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};ze.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};ze.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=rl(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=rl(e.lastIntValue);return!0}return!1};ze.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),ERe(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)};function ERe(e){return Ou(e,!0)||e===36||e===95}ze.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),_Re(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)};function _Re(e){return Sh(e,!0)||e===36||e===95||e===8204||e===8205}ze.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};ze.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};ze.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};ze.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};ze.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};ze.regexp_eatZero=function(e){return e.current()===48&&!hC(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};ze.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};ze.regexp_eatControlLetter=function(e){var t=e.current();return cX(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function cX(e){return e>=65&&e<=90||e>=97&&e<=122}ze.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,n=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(n&&i>=55296&&i<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=(i-55296)*1024+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=i}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&ARe(e.lastIntValue))return!0;n&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function ARe(e){return e>=0&&e<=1114111}ze.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};ze.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var lX=0,Pu=1,Zs=2;ze.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(CRe(t))return e.lastIntValue=-1,e.advance(),Pu;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=t===80)||t===112)){e.lastIntValue=-1,e.advance();var n;if(e.eat(123)&&(n=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&n===Zs&&e.raise("Invalid property name"),n;e.raise("Invalid property name")}return lX};function CRe(e){return e===100||e===68||e===115||e===83||e===119||e===87}ze.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),Pu}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return lX};ze.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){K0(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};ze.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Pu;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return Zs;e.raise("Invalid property name")};ze.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";pX(t=e.current());)e.lastStringValue+=rl(t),e.advance();return e.lastStringValue!==""};function pX(e){return cX(e)||e===95}ze.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";SRe(t=e.current());)e.lastStringValue+=rl(t),e.advance();return e.lastStringValue!==""};function SRe(e){return pX(e)||hC(e)}ze.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};ze.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),r=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&r===Zs&&e.raise("Negated character class may contain strings"),!0}return!1};ze.regexp_classContents=function(e){return e.current()===93?Pu:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Pu)};ze.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};ze.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||hX(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return n!==93?(e.lastIntValue=n,e.advance(),!0):!1};ze.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};ze.regexp_classSetExpression=function(e){var t=Pu,r;if(!this.regexp_eatClassSetRange(e))if(r=this.regexp_eatClassSetOperand(e)){r===Zs&&(t=Zs);for(var n=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(r=this.regexp_eatClassSetOperand(e))){r!==Zs&&(t=Pu);continue}e.raise("Invalid character in character class")}if(n!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(n!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(r=this.regexp_eatClassSetOperand(e),!r)return t;r===Zs&&(t=Zs)}};ze.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;return r!==-1&&n!==-1&&r>n&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};ze.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Pu:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};ze.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var r=e.eat(94),n=this.regexp_classContents(e);if(e.eat(93))return r&&n===Zs&&e.raise("Negated character class may contain strings"),n;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null};ze.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var r=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return r}else e.raise("Invalid escape");e.pos=t}return null};ze.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Zs&&(t=Zs);return t};ze.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Pu:Zs};ze.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var r=e.current();return r<0||r===e.lookahead()&&bRe(r)||DRe(r)?!1:(e.advance(),e.lastIntValue=r,!0)};function bRe(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function DRe(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}ze.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return wRe(t)?(e.lastIntValue=t,e.advance(),!0):!1};function wRe(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}ze.regexp_eatClassControlLetter=function(e){var t=e.current();return hC(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};ze.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};ze.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;hC(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function hC(e){return e>=48&&e<=57}ze.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;fX(r=e.current());)e.lastIntValue=16*e.lastIntValue+dX(r),e.advance();return e.pos!==t};function fX(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function dX(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}ze.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};ze.regexp_eatOctalDigit=function(e){var t=e.current();return hX(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function hX(e){return e>=48&&e<=55}ze.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var i=e.current();if(!fX(i))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+dX(i),e.advance()}return!0};var nP=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new pC(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Wt=yn.prototype;Wt.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new nP(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};Wt.getToken=function(){return this.next(),new nP(this)};typeof Symbol<"u"&&(Wt[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===N.eof,value:t}}}});Wt.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(N.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};Wt.readToken=function(e){return Ou(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};Wt.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};Wt.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var n=void 0,i=t;(n=kY(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())};Wt.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!bh(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())};Wt.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&UY.test(String.fromCharCode(e)))++this.pos;else break e}}};Wt.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};Wt.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(N.ellipsis)):(++this.pos,this.finishToken(N.dot))};Wt.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(N.assign,2):this.finishOp(N.slash,1)};Wt.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=e===42?N.star:N.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,n=N.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(N.assign,r+1):this.finishOp(n,r)};Wt.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(N.assign,3)}return this.finishOp(e===124?N.logicalOR:N.logicalAND,2)}return t===61?this.finishOp(N.assign,2):this.finishOp(e===124?N.bitwiseOR:N.bitwiseAND,1)};Wt.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(N.assign,2):this.finishOp(N.bitwiseXOR,1)};Wt.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||ea.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(N.incDec,2):t===61?this.finishOp(N.assign,2):this.finishOp(N.plusMin,1)};Wt.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(N.assign,r+1):this.finishOp(N.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(N.relational,r))};Wt.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(N.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(N.arrow)):this.finishOp(e===61?N.eq:N.prefix,1)};Wt.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(N.questionDot,2)}if(t===63){if(e>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(N.assign,3)}return this.finishOp(N.coalesce,2)}}return this.finishOp(N.question,1)};Wt.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Ou(t,!0)||t===92))return this.finishToken(N.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+rl(t)+"'")};Wt.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(N.parenL);case 41:return++this.pos,this.finishToken(N.parenR);case 59:return++this.pos,this.finishToken(N.semi);case 44:return++this.pos,this.finishToken(N.comma);case 91:return++this.pos,this.finishToken(N.bracketL);case 93:return++this.pos,this.finishToken(N.bracketR);case 123:return++this.pos,this.finishToken(N.braceL);case 125:return++this.pos,this.finishToken(N.braceR);case 58:return++this.pos,this.finishToken(N.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(N.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(N.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+rl(e)+"'")};Wt.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};Wt.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(ea.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(n==="[")t=!0;else if(n==="]"&&t)t=!1;else if(n==="/"&&!t)break;e=n==="\\"}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new Bo(this));o.reset(r,i,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var u=null;try{u=new RegExp(i,a)}catch{}return this.finishToken(N.regexp,{pattern:i,flags:a,value:u})};Wt.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&t===void 0,i=r&&this.input.charCodeAt(this.pos)===48,s=this.pos,a=0,o=0,u=0,l=t??1/0;u<l;++u,++this.pos){var f=this.input.charCodeAt(this.pos),h=void 0;if(n&&f===95){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),o===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),u===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=f;continue}if(f>=97?h=f-97+10:f>=65?h=f-65+10:f>=48&&f<=57?h=f-48:h=1/0,h>=e)break;o=f,a=a*e+h}return n&&o===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||t!=null&&this.pos-s!==t?null:a};function TRe(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function mX(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}Wt.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=mX(this.input.slice(t,this.pos)),++this.pos):Ou(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(N.num,r)};Wt.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&n===110){var i=mX(this.input.slice(t,this.pos));return++this.pos,Ou(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(N.num,i)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),n===46&&!r&&(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),(n===69||n===101)&&!r&&(n=this.input.charCodeAt(++this.pos),(n===43||n===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Ou(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=TRe(this.input.slice(t,this.pos),r);return this.finishToken(N.num,s)};Wt.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};Wt.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;n===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):n===8232||n===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(bh(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(N.string,t)};var gX={};Wt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===gX)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};Wt.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw gX;this.raise(e,t)};Wt.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===N.template||this.type===N.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(N.dollarBraceL)):(++this.pos,this.finishToken(N.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(N.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(bh(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
142
|
-
`;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};Wt.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(N.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")};Wt.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
143
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return rl(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),(n!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return bh(t)?"":String.fromCharCode(t)}};Wt.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};Wt.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Sh(i,n))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var s=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?Ou:Sh)(a,n)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=rl(a),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};Wt.readWord=function(){var e=this.readWord1(),t=N.name;return this.keywords.test(e)&&(t=YO[e]),this.finishToken(t,e)};var IRe="8.10.0";yn.acorn={Parser:yn,version:IRe,defaultOptions:KO,Position:Q0,SourceLocation:pC,getLineInfo:qY,Node:dC,TokenType:rr,tokTypes:N,keywordTypes:YO,TokContext:Ga,tokContexts:Kr,isIdentifierChar:Sh,isIdentifierStart:Ou,Token:nP,isNewLine:bh,lineBreak:ea,lineBreakG:tRe,nonASCIIwhitespace:UY};var vX=(e,t,r)=>{var n;let s=(n=yn.parse(e,{ecmaVersion:"latest",sourceType:"module"}).body[0])===null||n===void 0?void 0:n.specifiers;return s?s.reduce((a,o)=>{let{local:u}=o;if(o.type==="ImportDefaultSpecifier")a+=`const ${u.name} = ${r(t)}
|
|
144
|
-
`;else if(o.type==="ImportSpecifier"){let{imported:l}=o;a+=`const ${u.name} = ${r(t)}.${l.name}
|
|
145
|
-
`}else if(o.type==="ImportNamespaceSpecifier")a+=`const ${u.name} = ${r(t)}
|
|
146
|
-
`;else if(o.type==="ExportSpecifier"){let{exported:l}=o,f=`${r(t)}${u.name!=="default"?`.${u.name}`:""}`;l.name==="default"?a+=`export default ${f}
|
|
147
|
-
`:a+=`export const ${l.name} = ${f}
|
|
148
|
-
`}return a},""):""};function yX(e,t,r){return Object.keys(t).reduce((n,i)=>{let s=new RegExp(`require\\((["'\`])\\s*${i}\\s*(\\1)\\)`,"g");return n.replace(s,r(t[i]))},e)}var RRe=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=e[s]&&function(a){return new Promise(function(o,u){a=e[s](a),i(o,u,a.done,a.value)})}}function i(s,a,o,u){Promise.resolve(u).then(function(l){s({value:l,done:o})},a)}},NRe=e=>r=>{let{useWindow:n}=e;return n===!1?typeof r=="string"?r:r.join("."):typeof r=="string"?`window['${r}']`:`window${r.map(s=>`['${s}']`).join("")}`};function EX(e={},t={}){let r=!1,n=!1,i=RY(t),s=Object.keys(e),a=s.length===0,o=NRe(i);return Object.assign(Object.assign({name:"vite-plugin-externals"},t.enforce?{enforce:t.enforce}:{}),{async config(u,{command:l}){var f,h,m,y;if(r=l==="build",n=l==="serve",!n||i.disableInServe||a)return;let _=[],C=(y=(m=u.resolve)===null||m===void 0?void 0:m.alias)!==null&&y!==void 0?y:{};yK(C)?Object.keys(C).forEach(F=>{_.push({find:F,replacement:C[F]})}):Array.isArray(C)&&_.push(...C);let b=xX.join(process.cwd(),G0,IY);await(0,il.ensureDir)(b),await(0,il.emptyDirSync)(b);try{for(var D=RRe(s),L;L=await D.next(),!L.done;){let F=L.value,q=xX.join(b,`${F}.js`);_.push({find:new RegExp(`^${F}$`),replacement:q}),await(0,il.ensureFile)(q),await(0,il.writeFile)(q,`module.exports = ${o(e[F])};`)}}catch(F){f={error:F}}finally{try{L&&!L.done&&(h=D.return)&&await h.call(D)}finally{if(f)throw f.error}}return{resolve:{alias:_}}},async transform(u,l,f){let h=PRe(f);if(n&&i.disableInServe||!ORe.call(this,i,u,l,r,h))return;let m,y=!1;try{r&&l.includes(G0)&&(u=yX(u,e,o)),await wO;let[_]=DO(u);_.forEach(({d:C,n:b,ss:D,se:L})=>{if(C!==-1||!b)return;let F=e[b];if(!F)return;m=m||(m=new qt(u));let q=u.substring(D,L),M=vX(q,F,o);m.overwrite(D,L,M)})}catch(_){y=!0,t.debug&&console.error(_)}return y||!m?{code:u,map:null}:{code:m.toString(),map:m.generateMap(Object.assign({},{source:l,includeContent:!0,hires:!0},t.sourceMapOptions))}}})}function ORe(e,t,r,n,i){let{disableSsr:s=!0,filter:a}=e;return s&&i?!1:a.call(this,t,r,i??!1,n)}function PRe(e){var t;return typeof e=="boolean"?e:(t=e?.ssr)!==null&&t!==void 0?t:!1}d();var _X=/[?&]component-hmr\b/;function AX(){let e;return{name:"wix:component-hmr",apply:"serve",configResolved(t){e=t.root},load(t){if(!_X.test(t))return null;let r=t.replace(_X,"").replace(e,"");return{code:`
|
|
149
|
-
import { createComponentHmrWrapper } from '@wix/cli-app/internal/component-hmr-wrapper';
|
|
150
|
-
import OriginalComponent from '${r}';
|
|
151
|
-
|
|
152
|
-
if (import.meta.hot) {
|
|
153
|
-
// We catch HMR updates because otherwise Vite reloads the component as a fallback
|
|
154
|
-
import.meta.hot.accept((_) => {});
|
|
155
|
-
|
|
156
|
-
import.meta.hot.accept(
|
|
157
|
-
'${r}',
|
|
158
|
-
({ default: NewComponent }) => {
|
|
159
|
-
// 'createComponentHmrWrapper' sets 'import.meta.hot.data.setComponent'
|
|
160
|
-
// so we can call it here
|
|
161
|
-
import.meta.hot.data.setComponent(NewComponent);
|
|
162
|
-
}
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export default createComponentHmrWrapper(OriginalComponent, import.meta.hot.data);
|
|
167
|
-
`}}}}d();import{send as BRe}from"vite";d();function sl(e){let t=e.resolvedUrls?.local?.[0];if(!t)throw new Error("Vite server listening but no URL.");return t}function SX(e){let{initialModel:t,type:r,projectModelWatcher:n}=e,i=E0(t);return r==="dev"&&n.onChange(s=>{i=E0(s)}),{name:"inline-html",resolveId(s){return i.has(s)?s:null},load(s){let a=i.get(s);if(!a)return null;let o=hh(a.id);return CX(a.id,o,t.config.appId,e.type)},async configureServer(s){s.middlewares.use(async(a,o,u)=>{if(!a.url)return u();let l=sl(s),f;try{f=new URL(a.url,l)}catch(C){throw new we({code:Re.TypeErrorInvalidUrl(),info:{url:a.url,resolvedUrl:l},cause:C})}let h=f.pathname.replace(/^\/+/,""),m=i.get(h);if(!m)return u();let y=hh(m.id),_=await s.transformIndexHtml(a.url,CX(m.id,y,t.config.appId,e.type),a.originalUrl);return BRe(a,o,_,"html",{headers:s.config.server.headers})})}}}function CX(e,t,r,n){return`<!DOCTYPE html>
|
|
168
|
-
<html>
|
|
169
|
-
<head>
|
|
170
|
-
<meta charset="UTF-8" />
|
|
171
|
-
<title>Dashboard Component</title>
|
|
172
|
-
</head>
|
|
173
|
-
<body style="margin: 0">
|
|
174
|
-
<div id="root"></div>
|
|
175
|
-
${n==="dev"?`
|
|
176
|
-
<script crossorigin src="https://unpkg.com/react@16.14.0/umd/react.development.js"></script>
|
|
177
|
-
<script crossorigin src="https://unpkg.com/react-dom@16.14.0/umd/react-dom.development.js"></script>
|
|
178
|
-
`:`
|
|
179
|
-
<script crossorigin src="https://unpkg.com/react@16.14.0/umd/react.production.min.js"></script>
|
|
180
|
-
<script crossorigin src="https://unpkg.com/react-dom@16.14.0/umd/react-dom.production.min.js"></script>
|
|
181
|
-
`}
|
|
182
|
-
<script type="module">
|
|
183
|
-
import { createElement } from 'react';
|
|
184
|
-
import { render } from 'react-dom';
|
|
185
|
-
import '${t}';
|
|
186
|
-
|
|
187
|
-
async function main() {
|
|
188
|
-
const getComponent = await window['__module_federation__containers']['${r}'].get('${e}');
|
|
189
|
-
render(createElement(getComponent().default), document.getElementById('root'));
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
main();
|
|
193
|
-
</script>
|
|
194
|
-
</body>
|
|
195
|
-
</html>`}d();var bX=({initialModel:e,type:t,projectModelWatcher:r})=>{let{appId:n}=e.config,i=_0(e);return{name:"wix:moduleBundle",resolveId(s){return i.has(s)?s:null},configureServer(s){t==="dev"&&r.onChange(a=>{i=_0(a);for(let o of i.keys()){let u=s.moduleGraph.getModuleById(o);u&&s.moduleGraph.invalidateModule(u)}})},load(s){let a=i.get(s);if(!a)return null;let o=`/${a.relativePath}${t==="dev"?"?component-hmr":""}`,u=a.id;return`
|
|
196
|
-
(function () {
|
|
197
|
-
const mfKey = '__module_federation__containers';
|
|
198
|
-
window[mfKey] = window[mfKey] || {};
|
|
199
|
-
window[mfKey]['${n}'] = window[mfKey]['${n}'] || {
|
|
200
|
-
get: async (cmpId) => {
|
|
201
|
-
const importFn = window[mfKey]['${n}'][cmpId];
|
|
202
|
-
const Component = await importFn();
|
|
203
|
-
return () => Component;
|
|
204
|
-
},
|
|
205
|
-
init: async () => {
|
|
206
|
-
${t==="dev"?"await import('/@vite/client');":""}
|
|
207
|
-
},
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
window[mfKey]['${n}']['${u}'] = () => import('${o}');
|
|
211
|
-
})();`}}};d();var DX={global:"window"};function wX(){return[{name:"fix-draft-js",apply:"serve",config:()=>({optimizeDeps:{esbuildOptions:{define:DX}}})},{name:"fix-draft-js",apply:"build",config:()=>({esbuild:{define:DX}})}]}d();d();var KZ=Ce(QZ(),1);d();import{mkdir as yBe}from"node:fs/promises";import{resolve as xBe}from"node:path";import{homedir as EBe}from"node:os";function Hh(){return Pn().dataDir??xBe(EBe(),".wix")}async function zZ(){await yBe(Hh(),{recursive:!0})}import{readFile as _Be,writeFile as ABe,stat as CBe}from"node:fs/promises";import SBe from"node:path";var bBe="wix-cli.pem",$Z=30,DBe=[{name:"commonName",value:"localhost"},{name:"countryName",value:"US"},{shortName:"ST",value:"Virginia"},{name:"organizationName",value:"Dev"},{shortName:"OU",value:"Dev"}],wBe=async()=>{let e=KZ.default.generate(DBe,{days:$Z});return e.private+e.cert},TBe=async e=>{let t=await CBe(e).then(r=>r).catch(()=>null);return!t||Date.now()-t.ctime.valueOf()>$Z*24*60*60*1e3},YZ=async()=>{let e=Hh(),t=SBe.join(e,bBe);if(!await TBe(t)){let i=await _Be(t,{encoding:"utf-8"});return{cert:i,key:i}}let n=await wBe();return await zZ(),await ABe(t,n,{encoding:"utf-8"}),{cert:n,key:n}};import{send as IBe}from"vite";function XZ(){return{name:"wix:ssl",config:async e=>{try{let t=await YZ();return{...e,server:{https:t},preview:{https:t}}}catch(t){throw new we({code:Re.FailedToGenerateSelfsignedCertificate(),cause:t})}},async configureServer(e){e.middlewares.use(async(t,r,n)=>t.url==="/"?IBe(t,r,RBe(),"html",{headers:e.config.server.headers}):n())}}}function RBe(){return`<!DOCTYPE html>
|
|
212
|
-
<html>
|
|
213
|
-
<head>
|
|
214
|
-
<meta charset="UTF-8" />
|
|
215
|
-
<title>Wix CLI Dev Server Root</title>
|
|
216
|
-
</head>
|
|
217
|
-
<body>
|
|
218
|
-
Wix CLI dev server is up and running.<br>
|
|
219
|
-
You can close this browser tab and return to the terminal to continue working.
|
|
220
|
-
</body>
|
|
221
|
-
</html>`}d();var JZ="__WIX_ORIGIN_PLACEHOLDER__";function ZZ(){let e=null;return{name:"wix:auto-origin",apply:"serve",config:()=>({server:{origin:JZ}}),configureServer:t=>{t.middlewares.use((r,n,i)=>{e=e??sl(t),i()})},transform:(t,r)=>{if(r.match(/.*\.(m?jsx?|tsx?)$/))return t;if(!e)throw new we({code:Re.FailedToResolveViteOrigin()});return t.replaceAll(JZ,e)}}}async function Gh(e,t){let{https:r}=t,n=[...E0(e)].map(([s,a])=>[`html-asset-${a.id}`,s]),i=[..._0(e)].map(([s,a])=>[`script-asset-${a.id}`,s]);return{configFile:!1,root:e.projectFolder,customLogger:t.customLogger,clearScreen:!1,logLevel:"info",optimizeDeps:{entries:[qN,jN]},server:{https:r},build:{sourcemap:!0,outDir:Od(e.projectFolder),rollupOptions:{input:Object.fromEntries([...n,...i])}},plugins:[wX(),...r?[XZ()]:[],bX({initialModel:e,...t}),AX(),EX({react:"React","react-dom":"ReactDOM"}),SX({initialModel:e,...t}),ZZ()],experimental:{renderBuiltUrl(s,{hostType:a,hostId:o}){return a!=="js"?{relative:!0}:{runtime:`import.meta.url.replace(${`"${o}"`}, ${`"${s}"`})`}}}}}d();d();import NBe from"node:fs/promises";d();var Li;(function(e){e.NONE="NONE",e.STUDIO="STUDIO",e.PLATFORM="PLATFORM",e.WORKER="WORKER",e.DASHBOARD="DASHBOARD",e.WIDGET="WIDGET",e.PAGE="PAGE",e.DASHBOARD_PLATFORM="DASHBOARD_PLATFORM",e.STUDIO_WIDGET="STUDIO_WIDGET",e.EMBEDDED_SCRIPT="EMBEDDED_SCRIPT",e.EXTENSION="EXTENSION",e.SNIPPET_SOLUTION="SNIPPET_SOLUTION",e.DATA_COMPONENT="DATA_COMPONENT",e.WEB="WEB",e.DC_CONFIG="DC_CONFIG",e.WIDGET_OUT_OF_IFRAME="WIDGET_OUT_OF_IFRAME",e.PAGE_OUT_OF_IFRAME="PAGE_OUT_OF_IFRAME",e.STATIC_FILE="STATIC_FILE",e.APP_CONFIG="APP_CONFIG",e.MULTIPLE_DASHBOARDS="MULTIPLE_DASHBOARDS",e.PAYMENTS_GATEWAY="PAYMENTS_GATEWAY",e.CODE_PACKAGE="CODE_PACKAGE",e.AUTOMATION_TRIGGER="AUTOMATION_TRIGGER",e.INVOICES_ACTIONS="INVOICES_ACTIONS",e.DASHBOARD_APPLICATION="DASHBOARD_APPLICATION",e.CONTACT_LABELS="CONTACT_LABELS",e.WIDGET_PLUGIN="WIDGET_PLUGIN",e.CROSS_SELL="CROSS_SELL",e.LOCAL_DELIVERY="LOCAL_DELIVERY",e.PAYMENT_PROVIDER="PAYMENT_PROVIDER",e.ECOM_MEMBERSHIPS="ECOM_MEMBERSHIPS",e.ECOM_LINE_ITEMS_ENRICHER="ECOM_LINE_ITEMS_ENRICHER",e.ECOM_SHIPPING_RATES="ECOM_SHIPPING_RATES",e.SHIPPING_LABEL_CARRIER="SHIPPING_LABEL_CARRIER",e.RESTAURANTS_POS="RESTAURANTS_POS",e.FICTIONAL_SHIPPING_PROVIDER="FICTIONAL_SHIPPING_PROVIDER",e.ALERT_ENRICHER="ALERT_ENRICHER",e.DATA_EXTENSIONS="DATA_EXTENSIONS",e.GENERIC_HOOKS="GENERIC_HOOKS",e.AUTOMATIONS_ACTION_PROVIDER="AUTOMATIONS_ACTION_PROVIDER",e.ECOM_CATALOG="ECOM_CATALOG",e.BACK_OFFICE_EXTENSION_CONTAINER="BACK_OFFICE_EXTENSION_CONTAINER",e.BACK_OFFICE_EXTENSION="BACK_OFFICE_EXTENSION",e.AUTOMATIONS_TRIGGER_PROVIDER="AUTOMATIONS_TRIGGER_PROVIDER",e.IDENTITY_PRE_REGISTRATION="IDENTITY_PRE_REGISTRATION",e.PREMIUM_PRODUCTS_PATHS="PREMIUM_PRODUCTS_PATHS",e.ECOM_CUSTOM_SCOPE="ECOM_CUSTOM_SCOPE",e.GIFT_CARDS_PROVIDER="GIFT_CARDS_PROVIDER",e.DEALER_EXTERNAL_FILTER_PROVIDER="DEALER_EXTERNAL_FILTER_PROVIDER",e.ECOM_DROPSHIPPING_PROVIDER="ECOM_DROPSHIPPING_PROVIDER",e.INVOICES_PROVIDER="INVOICES_PROVIDER",e.SEO_KEYWORDS_SUGGESTIONS="SEO_KEYWORDS_SUGGESTIONS",e.ECOM_DISCOUNTS_TRIGGER="ECOM_DISCOUNTS_TRIGGER",e.MULTILINGUAL_CONTENT_PROVIDER="MULTILINGUAL_CONTENT_PROVIDER",e.APPLICATION_AUTOMATION="APPLICATION_AUTOMATION",e.BACK_OFFICE_SIDEBAR_CATEGORY="BACK_OFFICE_SIDEBAR_CATEGORY",e.BACK_OFFICE_PAGE="BACK_OFFICE_PAGE",e.ECOM_ADDITIONAL_FEES="ECOM_ADDITIONAL_FEES",e.PING_USER_NOTIFICATION="PING_USER_NOTIFICATION",e.ECOM_RECOMMENDATIONS_PROVIDER="ECOM_RECOMMENDATIONS_PROVIDER",e.BOOKINGS_PRICING_PROVIDER="BOOKINGS_PRICING_PROVIDER",e.IDENTITY_AUTHENTICATOR="IDENTITY_AUTHENTICATOR",e.IDENTITY_IDP_CONNECTOR="IDENTITY_IDP_CONNECTOR",e.ITEMS_SELECTION_PROVIDER="ITEMS_SELECTION_PROVIDER",e.PORTFOLIO_SYNCED_PROJECTS_PROVIDER="PORTFOLIO_SYNCED_PROJECTS_PROVIDER",e.COMMUNICATION_CHANNEL="COMMUNICATION_CHANNEL",e.IDENTITY_POST_LOGIN="IDENTITY_POST_LOGIN",e.BACK_OFFICE_WIDGET="BACK_OFFICE_WIDGET",e.SOCIAL_MARKETING_DESIGN="SOCIAL_MARKETING_DESIGN",e.FORMS_SUBMISSIONS_PROVIDER="FORMS_SUBMISSIONS_PROVIDER",e.WIX_OFFERING="WIX_OFFERING",e.DEV_CENTER_TESTING_COMPONENT="DEV_CENTER_TESTING_COMPONENT",e.COMPONENTS_VALIDATOR_PROVIDER="COMPONENTS_VALIDATOR_PROVIDER",e.COMPONENTS_TRANSLATIONS_ADDITIONAL_FIELDS_PROVIDER="COMPONENTS_TRANSLATIONS_ADDITIONAL_FIELDS_PROVIDER",e.FORMS_SCHEMA_PROVIDER="FORMS_SCHEMA_PROVIDER",e.BOOKINGS_EXTERNAL_CALENDAR_PROVIDER="BOOKINGS_EXTERNAL_CALENDAR_PROVIDER",e.ECOM_DEFAULT_TAXATION_CATEGORY="ECOM_DEFAULT_TAXATION_CATEGORY",e.VIEWER_DYNAMIC_SITE_STRUCTURE_PROVIDER="VIEWER_DYNAMIC_SITE_STRUCTURE_PROVIDER",e.PING_UOU_NOTIFICATION="PING_UOU_NOTIFICATION",e.HEADLESS_OAUTH="HEADLESS_OAUTH",e.ECOM_TAX_CALCULATOR_SPI="ECOM_TAX_CALCULATOR_SPI",e.COMMENTS_MODERATION_PROVIDER="COMMENTS_MODERATION_PROVIDER",e.GRID_APP_FILES_TRANSFORMER="GRID_APP_FILES_TRANSFORMER",e.BENEFIT_PROGRAMS_POLICY_PROVIDER="BENEFIT_PROGRAMS_POLICY_PROVIDER",e.PREMIUM_CUSTOM_CHARGES="PREMIUM_CUSTOM_CHARGES",e.ECOM_VALIDATIONS="ECOM_VALIDATIONS",e.COMPONENT_REFERENCE_DATA_PROVIDER="COMPONENT_REFERENCE_DATA_PROVIDER",e.WIX_REVIEWS_PRODUCT_CATALOG="WIX_REVIEWS_PRODUCT_CATALOG",e.SOCIAL_MARKETING_DESIGNS_PROVIDER="SOCIAL_MARKETING_DESIGNS_PROVIDER",e.GOOGLE_BUSINESS_PROFILE_FEATURE_PROVIDER="GOOGLE_BUSINESS_PROFILE_FEATURE_PROVIDER",e.COMMENTS_FILTER_PROVIDER="COMMENTS_FILTER_PROVIDER",e.BILLING_TAX_ID_VALIDATOR="BILLING_TAX_ID_VALIDATOR",e.PING_SETTINGS_GROUP="PING_SETTINGS_GROUP",e.FORMS_SPAM_SUBMISSIONS_PROVIDER="FORMS_SPAM_SUBMISSIONS_PROVIDER",e.EDITOR_ADDON="EDITOR_ADDON",e.EXTERNAL_DATABASE_PROVIDER="EXTERNAL_DATABASE_PROVIDER",e.ECOM_PAYMENT_SETTINGS="ECOM_PAYMENT_SETTINGS",e.NOTIFICATION_TOPIC="NOTIFICATION_TOPIC",e.NOTIFICATION_PREFERENCES_FILTER_PROVIDER="NOTIFICATION_PREFERENCES_FILTER_PROVIDER",e.BOOKINGS_RESOURCE_TYPES_PROVIDER="BOOKINGS_RESOURCE_TYPES_PROVIDER",e.PRICING_PLANS_FORM_CONFIGURATION="PRICING_PLANS_FORM_CONFIGURATION",e.USER_NOTIFICATION="USER_NOTIFICATION",e.CONTACT_NOTIFICATION="CONTACT_NOTIFICATION",e.UNIFIED_PAGE="UNIFIED_PAGE",e.AVAILABILITY_TIME_SLOTS_CONFIGURATION_PROVIDER="AVAILABILITY_TIME_SLOTS_CONFIGURATION_PROVIDER",e.PROPOSAL_EDITOR_PROVIDER="PROPOSAL_EDITOR_PROVIDER",e.CUSTOM_TABLE_RESERVATIONS_PROVIDER="CUSTOM_TABLE_RESERVATIONS_PROVIDER",e.COMMENTS_CONTEXT_PROVIDER="COMMENTS_CONTEXT_PROVIDER",e.FORMS_SPAM_SUBMISSION_REPORTS_PROVIDER="FORMS_SPAM_SUBMISSION_REPORTS_PROVIDER",e.AUTOMATIONS_VELO_ACTION_PROVIDER="AUTOMATIONS_VELO_ACTION_PROVIDER",e.CALENDAR_EVENT_TYPE_PROVIDER="CALENDAR_EVENT_TYPE_PROVIDER",e.RESERVED="RESERVED",e.SMS_ACTION_MESSAGE="SMS_ACTION_MESSAGE",e.BOOKING_POLICY_PROVIDER="BOOKING_POLICY_PROVIDER",e.MULTI_SERVICE_BOOKING_POLICY_PROVIDER="MULTI_SERVICE_BOOKING_POLICY_PROVIDER",e.FORMS_SUBMISSIONS_COLLABORATOR_PROVIDER="FORMS_SUBMISSIONS_COLLABORATOR_PROVIDER",e.AI_ASSISTANT="AI_ASSISTANT"})(Li||(Li={}));var eee;(function(e){e.NONE_VERTICAL="NONE_VERTICAL",e.TOP="TOP",e.CENTER_VERTICAL="CENTER_VERTICAL",e.BOTTOM="BOTTOM"})(eee||(eee={}));var tee;(function(e){e.NONE_HORIZONTAL="NONE_HORIZONTAL",e.LEFT="LEFT",e.CENTER_HORIZONTAL="CENTER_HORIZONTAL",e.RIGHT="RIGHT"})(tee||(tee={}));var ree;(function(e){e.NONE_TYPE="NONE_TYPE",e.CUSTOM="CUSTOM",e.FULL="FULL"})(ree||(ree={}));var nee;(function(e){e.no_region="no_region",e.header="header",e.pageContainer="pageContainer",e.footer="footer"})(nee||(nee={}));var iee;(function(e){e.NO_UNIT="NO_UNIT",e.AUTO="AUTO",e.PX="PX",e.VH="VH",e.VW="VW",e.PERCENTAGE="PERCENTAGE"})(iee||(iee={}));var see;(function(e){e.NO_HDOCKING="NO_HDOCKING",e.LEFT_DOCKING="LEFT_DOCKING",e.HCENTER="HCENTER",e.RIGHT_DOCKING="RIGHT_DOCKING"})(see||(see={}));var aee;(function(e){e.NO_VDOCKING="NO_VDOCKING",e.TOP_DOCKING="TOP_DOCKING",e.VCENTER="VCENTER",e.BOTTOM_DOCKING="BOTTOM_DOCKING"})(aee||(aee={}));var oee;(function(e){e.UNKNOWN_REPLACEMENT="UNKNOWN_REPLACEMENT",e.REPLACING="REPLACING",e.REPLACEABLE="REPLACEABLE"})(oee||(oee={}));var uee;(function(e){e.NONE_INTERFACE="NONE_INTERFACE",e.DEFAULT="DEFAULT",e.RESOURCE="RESOURCE",e.REVIEWS="REVIEWS",e.RATINGS_SUMMARY="RATINGS_SUMMARY",e.ENV="ENV",e.RATINGS_SUMMARY_OOI_LIST="RATINGS_SUMMARY_OOI_LIST",e.BOOKINGS_SERVICE="BOOKINGS_SERVICE",e.CHECKOUT_WIDGET="CHECKOUT_WIDGET",e.EVENT_DETAILS="EVENT_DETAILS",e.BOOKINGS_FORM="BOOKINGS_FORM",e.BASE="BASE"})(uee||(uee={}));var cee;(function(e){e.NO_PAGE="NO_PAGE",e.CURRENT="CURRENT",e.PAGE="PAGE",e.LIGHTBOX="LIGHTBOX"})(cee||(cee={}));var lee;(function(e){e.HEADER="HEADER",e.BODY="BODY",e.FOOTER="FOOTER"})(lee||(lee={}));var pee;(function(e){e.NONE_PAGES="NONE_PAGES",e.ONCE="ONCE",e.SPECIFIC_PAGES="SPECIFIC_PAGES"})(pee||(pee={}));var fee;(function(e){e.NONE_PLACEMENT="NONE_PLACEMENT",e.HEAD="HEAD",e.BODY_START="BODY_START",e.BODY_END="BODY_END"})(fee||(fee={}));var dee;(function(e){e.UNKNOWN="UNKNOWN",e.ESSENTIAL="ESSENTIAL",e.FUNCTIONAL="FUNCTIONAL",e.ANALYTICS="ANALYTICS",e.ADVERTISING="ADVERTISING"})(dee||(dee={}));var hee;(function(e){e.BACKGROUND="BACKGROUND",e.SECONDARY_TEXTS="SECONDARY_TEXTS",e.MAIN_TEXT_AND_ICONS="MAIN_TEXT_AND_ICONS",e.BORDERS_AND_DIVIDERS="BORDERS_AND_DIVIDERS",e.BUTTONS_AND_LINKS="BUTTONS_AND_LINKS"})(hee||(hee={}));var mee;(function(e){e.SMALL="SMALL",e.MEDIUM="MEDIUM",e.LARGE="LARGE",e.XLARGE="XLARGE"})(mee||(mee={}));var gee;(function(e){e.ALIGN_LEFT="ALIGN_LEFT",e.ALIGN_CENTER="ALIGN_CENTER",e.ALIGN_RIGHT="ALIGN_RIGHT"})(gee||(gee={}));var vee;(function(e){e.TITLE="TITLE",e.PARAGRAPH="PARAGRAPH",e.LOWER_HIERARCHY_TEXTS="LOWER_HIERARCHY_TEXTS"})(vee||(vee={}));var yee;(function(e){e.WIDGET="WIDGET",e.PAGE="PAGE"})(yee||(yee={}));var xee;(function(e){e.NO_SCRIPT_TYPE="NO_SCRIPT_TYPE",e.MODULE="MODULE"})(xee||(xee={}));var Eee;(function(e){e.NONE_EXTENSION="NONE_EXTENSION",e.PAYMENTS_GATEWAY_EXTENSION="PAYMENTS_GATEWAY_EXTENSION",e.COUPONS_EXTENSION="COUPONS_EXTENSION",e.DROPSHIPPING_EXTENSION="DROPSHIPPING_EXTENSION",e.FULFILMENT_EXTENSION="FULFILMENT_EXTENSION",e.DROPSHIPPING_SUPPLIER_EXTENSION="DROPSHIPPING_SUPPLIER_EXTENSION",e.FULFILLMENT_CENTER_EXTENSION="FULFILLMENT_CENTER_EXTENSION",e.RESTAURANTS_POS_EXTENSION="RESTAURANTS_POS_EXTENSION",e.ART_STORE_EXTENSION="ART_STORE_EXTENSION",e.ASCEND_AUTOMATION_EXTENSION="ASCEND_AUTOMATION_EXTENSION",e.CONTACT_LABELS_EXTENSION="CONTACT_LABELS_EXTENSION"})(Eee||(Eee={}));var _ee;(function(e){e.UNKNOWN_PRIMITIVE_TYPE="UNKNOWN_PRIMITIVE_TYPE",e.TEXT="TEXT",e.BOOLEAN="BOOLEAN",e.NUMBER="NUMBER"})(_ee||(_ee={}));var Aee;(function(e){e.UNKNOWN_SIMPLE_TYPE="UNKNOWN_SIMPLE_TYPE",e.MONEY="MONEY",e.LINK="LINK",e.BACKOFFICE_LINK="BACKOFFICE_LINK",e.LIVESITE_LINK="LIVESITE_LINK",e.MULTILINGUAL="MULTILINGUAL",e.IMAGE_LINK="IMAGE_LINK",e.GUID="GUID",e.EMAIL="EMAIL",e.PHONE="PHONE",e.CONTACT_ID="CONTACT_ID"})(Aee||(Aee={}));var Cee;(function(e){e.UNKNOWN_EXPOSURE="UNKNOWN_EXPOSURE",e.SETUP="SETUP",e.HIDDEN="HIDDEN",e.EXPOSED="EXPOSED"})(Cee||(Cee={}));var See;(function(e){e.UNDEFINED="UNDEFINED",e.ALLOW="ALLOW",e.DISALLOW="DISALLOW"})(See||(See={}));var bee;(function(e){e.BUSINESS_MANAGER="BUSINESS_MANAGER",e.BUSINESS_DASHBOARD_HOST="BUSINESS_DASHBOARD_HOST",e.SIDEBAR_FOOTER="SIDEBAR_FOOTER"})(bee||(bee={}));var Dee;(function(e){e.ZIPCODE="ZIPCODE",e.CITY="CITY",e.STATE="STATE",e.ADDRESS="ADDRESS",e.COUNTRY_CODE="COUNTRY_CODE",e.EMAIL="EMAIL",e.PHONE="PHONE",e.FIRST_NAME="FIRST_NAME",e.LAST_NAME="LAST_NAME",e.STREET="STREET",e.HOUSE_NUMBER="HOUSE_NUMBER",e.TAX_IDENTIFIER="TAX_IDENTIFIER"})(Dee||(Dee={}));var wee;(function(e){e.Metric="Metric",e.Imperial="Imperial"})(wee||(wee={}));var Tee;(function(e){e.WIX="WIX",e.POS="POS"})(Tee||(Tee={}));var Iee;(function(e){e.UNDEFINED="UNDEFINED",e.BEFORE_BLOCKING="BEFORE_BLOCKING",e.BEFORE="BEFORE",e.AFTER="AFTER"})(Iee||(Iee={}));var Ree;(function(e){e.UNKNOWN_TYPE="UNKNOWN_TYPE",e.WIDGET_COMPONENT="WIDGET_COMPONENT",e.GENERIC="GENERIC"})(Ree||(Ree={}));var Nee;(function(e){e.UNKNOWN_EXECUTION_TYPE="UNKNOWN_EXECUTION_TYPE",e.SYNC="SYNC",e.ASYNC="ASYNC"})(Nee||(Nee={}));var Wh;(function(e){e.INVALID="INVALID",e.BACK_OFFICE_MENU_ITEM="BACK_OFFICE_MENU_ITEM",e.BACK_OFFICE_EXTENSION_WIDGET="BACK_OFFICE_EXTENSION_WIDGET"})(Wh||(Wh={}));var Qh;(function(e){e.NO_HOSTING_PLATFORM="NO_HOSTING_PLATFORM",e.BUSINESS_MANAGER="BUSINESS_MANAGER",e.ACCOUNT_MANAGER="ACCOUNT_MANAGER",e.DEV_CENTER="DEV_CENTER",e.ENTERPRISE="ENTERPRISE",e.PARTNERS_DASHBOARD="PARTNERS_DASHBOARD",e.FINANCIALS_INTERNAL_BO="FINANCIALS_INTERNAL_BO",e.FED_GUILD_POC="FED_GUILD_POC",e.STUDIO_DASHBOARD="STUDIO_DASHBOARD",e.CHANNELS="CHANNELS",e.DATA_TOOLS="DATA_TOOLS",e.PSP_BACKOFFICE="PSP_BACKOFFICE",e.RISE_PLATFORM_ACCOUNT_DASHBOARD="RISE_PLATFORM_ACCOUNT_DASHBOARD"})(Qh||(Qh={}));var zC;(function(e){e.UNKNOWN_TYPE="UNKNOWN_TYPE",e.MODULE="MODULE"})(zC||(zC={}));var Oee;(function(e){e.PAGE="PAGE",e.MODAL="MODAL"})(Oee||(Oee={}));var Pee;(function(e){e.UNSPECIFIED="UNSPECIFIED",e.RELATED_ITEMS="RELATED_ITEMS",e.GLOBAL="GLOBAL"})(Pee||(Pee={}));var Bee;(function(e){e.UNSPECIFIED_LOCKABLE="UNSPECIFIED_LOCKABLE",e.LOCKED="LOCKED",e.UNLOCKED="UNLOCKED"})(Bee||(Bee={}));var Lee;(function(e){e.UNSPECIFIED_RESTRICTED="UNSPECIFIED_RESTRICTED",e.ALLOW="ALLOW",e.WARN="WARN"})(Lee||(Lee={}));var Fee;(function(e){e.UNKNOWN="UNKNOWN",e.OR="OR",e.AND="AND"})(Fee||(Fee={}));var kee;(function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE"})(kee||(kee={}));var Uee;(function(e){e.TEXT="TEXT",e.PASSWORD="PASSWORD",e.CODE="CODE"})(Uee||(Uee={}));var Mee;(function(e){e.UNKNOWN_TAG="UNKNOWN_TAG",e.EMBEDDABLE="EMBEDDABLE",e.ECOM_EDIT_ORDER="ECOM_EDIT_ORDER",e.ECOM_CREATE_ORDER="ECOM_CREATE_ORDER"})(Mee||(Mee={}));var qee;(function(e){e.UNKNOWN_CHANNEL_TYPE="UNKNOWN_CHANNEL_TYPE",e.DIRECT_MESSAGING="DIRECT_MESSAGING",e.EMAIL="EMAIL",e.SMS="SMS"})(qee||(qee={}));var jee;(function(e){e.TEXT="TEXT",e.MEDIA="MEDIA",e.CARD="CARD",e.ANNOUNCEMENT="ANNOUNCEMENT",e.FORM="FORM"})(jee||(jee={}));var Vee;(function(e){e.UNKNOWN_MIME_TYPE="UNKNOWN_MIME_TYPE",e.IMAGE_JPEG="IMAGE_JPEG",e.IMAGE_PNG="IMAGE_PNG",e.IMAGE_WEBP="IMAGE_WEBP",e.VIDEO_MPEG="VIDEO_MPEG",e.VIDEO_MP4="VIDEO_MP4",e.VIDEO_3GP="VIDEO_3GP",e.AUDIO_AAC="AUDIO_AAC",e.AUDIO_MP4="AUDIO_MP4",e.AUDIO_MPEG="AUDIO_MPEG",e.AUDIO_OGG="AUDIO_OGG",e.AUDIO_OPUS="AUDIO_OPUS",e.APPLICATION_PDF="APPLICATION_PDF",e.APPLICATION_OCTET_STREAM="APPLICATION_OCTET_STREAM"})(Vee||(Vee={}));var Hee;(function(e){e.SMS="SMS",e.MMS="MMS"})(Hee||(Hee={}));var Gee;(function(e){e.UNKNOWN_INIT_DIRECTION="UNKNOWN_INIT_DIRECTION",e.BUSINESS="BUSINESS",e.CUSTOMER="CUSTOMER",e.BOTH="BOTH"})(Gee||(Gee={}));var Wee;(function(e){e.UNDEFINED="UNDEFINED",e.GOOGLE="GOOGLE",e.I_CAL="I_CAL",e.MICROSOFT="MICROSOFT",e.OTHER="OTHER"})(Wee||(Wee={}));var Qee;(function(e){e.OAUTH="OAUTH",e.CREDENTIALS="CREDENTIALS"})(Qee||(Qee={}));var zee;(function(e){e.LIST_NOT_SUPPORTED="LIST_NOT_SUPPORTED",e.LIST_FROM_PRIMARY_CALENDAR_ONLY="LIST_FROM_PRIMARY_CALENDAR_ONLY",e.LIST_FROM_SPECIFIC_CALENDARS="LIST_FROM_SPECIFIC_CALENDARS"})(zee||(zee={}));var Kee;(function(e){e.SYNC_NOT_SUPPORTED="SYNC_NOT_SUPPORTED",e.SYNC_TO_PRIMARY_CALENDAR_ONLY="SYNC_TO_PRIMARY_CALENDAR_ONLY",e.SYNC_TO_DEDICATED_CALENDAR="SYNC_TO_DEDICATED_CALENDAR"})(Kee||(Kee={}));var $ee;(function(e){e.NAVIGATE="NAVIGATE",e.MODAL="MODAL"})($ee||($ee={}));var Yee;(function(e){e.UNKNOWN_STATE="UNKNOWN_STATE",e.DEFAULT_ON="DEFAULT_ON",e.DEFAULT_OFF="DEFAULT_OFF",e.ALWAYS_ON="ALWAYS_ON"})(Yee||(Yee={}));var Xee;(function(e){e.UNKNOWN_STATE="UNKNOWN_STATE",e.DEFAULT_ON="DEFAULT_ON",e.DEFAULT_OFF="DEFAULT_OFF",e.ALWAYS_ON="ALWAYS_ON"})(Xee||(Xee={}));var Jee;(function(e){e.UNKNOWN_TYPE="UNKNOWN_TYPE",e.PROMOTIONAL="PROMOTIONAL",e.TRANSACTIONAL="TRANSACTIONAL"})(Jee||(Jee={}));var Zee;(function(e){e.UNKNOWN_TYPE="UNKNOWN_TYPE",e.STRING="STRING",e.ARRAY="ARRAY"})(Zee||(Zee={}));var ete;(function(e){e.UNKNOWN_TYPE="UNKNOWN_TYPE",e.WIX_USERS="WIX_USERS",e.SITE_CONTRIBUTORS="SITE_CONTRIBUTORS"})(ete||(ete={}));var tte;(function(e){e.UNKNOWN_TYPE="UNKNOWN_TYPE",e.WIX_USER="WIX_USER",e.WIX_APP="WIX_APP"})(tte||(tte={}));var rte;(function(e){e.UNKNOWN_LEVEL="UNKNOWN_LEVEL",e.ACCOUNT="ACCOUNT",e.USER="USER",e.SITE="SITE"})(rte||(rte={}));var nte;(function(e){e.UNKNOWN_TYPE="UNKNOWN_TYPE",e.URL="URL",e.SPOUT="SPOUT",e.INITIATOR="INITIATOR"})(nte||(nte={}));var ite;(function(e){e.UNKNOWN_MOBILE_APPLICATION="UNKNOWN_MOBILE_APPLICATION",e.OWNER="OWNER",e.SPACES="SPACES",e.DINE="DINE",e.FITNESS="FITNESS",e.WIX_LIFE="WIX_LIFE",e.WIX_PARTNERS="WIX_PARTNERS",e.BRANDED="BRANDED",e.WIX_STUDIO="WIX_STUDIO",e.NO_SPECIFIC_TARGET_APP="NO_SPECIFIC_TARGET_APP"})(ite||(ite={}));var ste;(function(e){e.UNKNOWN_ANDROID_STYLE="UNKNOWN_ANDROID_STYLE",e.BIG_TEXT="BIG_TEXT",e.MESSAGING="MESSAGING",e.INBOX="INBOX"})(ste||(ste={}));var ate;(function(e){e.UNKNOWN_TYPE="UNKNOWN_TYPE",e.OPEN_TO_ALL="OPEN_TO_ALL",e.OPEN_TO_NONE="OPEN_TO_NONE",e.BOOLEAN_EXPERIMENT="BOOLEAN_EXPERIMENT",e.CUSTOM_EXPERIMENT="CUSTOM_EXPERIMENT"})(ate||(ate={}));var ote;(function(e){e.UNKNOWN_INTENT="UNKNOWN_INTENT",e.MARKETING="MARKETING",e.TRANSACTIONAL="TRANSACTIONAL"})(ote||(ote={}));var ute;(function(e){e.UNKNOWN_TYPE="UNKNOWN_TYPE",e.CONTACTS="CONTACTS"})(ute||(ute={}));var cte;(function(e){e.UNKNOWN_TYPE="UNKNOWN_TYPE",e.CONTACT="CONTACT",e.SITE_MEMBER="SITE_MEMBER"})(cte||(cte={}));var lte;(function(e){e.LIVE_SITE="LIVE_SITE",e.BUSINESS_MANAGER="BUSINESS_MANAGER"})(lte||(lte={}));var fte=G.object({errorReporting:G.object({url:G.string().optional()}).optional()}),dte=G.object({iframeUrl:G.string().optional(),scriptAsset:G.object({exportedName:G.string(),containerId:G.string(),url:G.string(),scriptType:G.string().optional()}).optional()}),OBe=G.object({hostingPlatform:G.string(),fullPage:G.boolean().nullish(),hideInSidebar:G.boolean().nullish(),priority:G.number().nullish(),routePath:G.string().nullish(),title:G.string(),pageCategoryId:G.string().nullish(),activeSidebarPageId:G.string().nullish(),requiredPermission:G.string().nullish(),previousRoutePaths:G.array(G.string()).nullish()}).merge(fte).merge(dte).passthrough(),PBe=G.object({width:G.number().nullish(),height:G.number().nullish()}).merge(dte).passthrough(),hte=G.object({appId:G.string(),componentId:G.string(),spec:G.string().min(1),variantValue:G.string()}).passthrough().optional(),BBe=G.object({compId:G.string(),compType:G.literal(Li.BACK_OFFICE_PAGE),compData:G.object({backOfficePage:OBe}),compName:G.string().optional(),experiment:hte}).passthrough(),LBe=G.object({compId:G.string(),compType:G.literal(Li.BACK_OFFICE_EXTENSION),compData:G.object({backOfficeExtension:G.object({hostingPlatform:G.string(),extends:G.string(),title:G.string().nullish(),extensionType:G.literal(Wh.BACK_OFFICE_EXTENSION_WIDGET),requiredPermission:G.string().nullish(),widget:PBe}).merge(fte).passthrough()}),compName:G.string().optional(),experiment:hte}).passthrough(),FBe=G.object({compId:G.string(),compType:G.literal(Li.BACK_OFFICE_SIDEBAR_CATEGORY),compData:G.object({backOfficeSidebarCategory:G.object({hostingPlatform:G.string(),title:G.string(),priority:G.number().nullish()})}),compName:G.string().optional()}).passthrough(),kBe=G.object({compId:G.string(),compType:G.literal(Li.BACK_OFFICE_WIDGET),compName:G.string().optional()}).passthrough(),UBe=G.object({compId:G.string(),compType:G.literal(Li.BACK_OFFICE_EXTENSION_CONTAINER),compName:G.string().optional()}).passthrough(),MBe=G.object({appId:G.string(),components:G.array(G.discriminatedUnion("compType",[BBe,LBe,FBe,kBe,UBe]))});async function mte(e){try{let t=await NBe.readFile(e,"utf-8");return MBe.parse(JSON.parse(t))}catch(t){let r=t instanceof Error?t.toString():JSON.stringify(t);throw new Error(`Failed to read App Manifest at ${e}: ${r}`)}}var pte=(e,t)=>{let{scriptAsset:r,iframeUrl:n}=e;return r?{scriptAsset:{...r,url:new URL(r.url,t).href}}:n?{iframeUrl:new URL(n,t).href}:e},zh=(e,t)=>{let r=JSON.parse(JSON.stringify(e)),n=t.endsWith("/")?t:`${t}/`;return r.components.forEach(i=>{let{compData:s,compType:a}=i;a===Li.BACK_OFFICE_PAGE&&(s.backOfficePage={...s.backOfficePage,...pte(s.backOfficePage,n)}),a===Li.BACK_OFFICE_EXTENSION&&(s.backOfficeExtension.widget={...s.backOfficeExtension.widget,...pte(s.backOfficeExtension.widget,n)})}),r};async function gte({projectFolder:e,manifest:t}){let r=Gg(e);return rh(r,t)}async function KC(e){let t=Gg(e);return mte(t)}d();var yte=Ce(St(),1);d();var vte=Ce(St(),1);import{randomUUID as qBe}from"node:crypto";var $C=e=>{let t=new Map;[...e].sort((i,s)=>i.id.localeCompare(s.id)).forEach(i=>{let s=t.get(i.id)??[];s.push(i),t.set(i.id,s)});let n=new Map;if(t.forEach((i,s)=>{i.length>1&&n.set(s,i)}),n.size)throw new we({code:Re.DuplicateComponentIdsError({issues:Array.from(n.entries()).map(([i,s])=>({id:i,components:s.map(a=>(0,vte.match)(a,{DashboardPage:({title:o,relativePath:u})=>({name:o,type:"page",path:dh(u,"json")}),DashboardWidget:({title:o,relativePath:u})=>({name:o,type:"widget",path:dh(u,"json")}),DashboardSidebarCategory:({label:o})=>({name:o,type:"sidebar-category",path:Ep})})).sort((a,o)=>a.name.localeCompare(o.name)),suggestedId:qBe()}))})})};var jBe=(e,t)=>{if(e.experiments)return{appId:t,componentId:e.id,spec:e.experiments.enabledBy,variantValue:"true"}};function YC({appId:e,components:t,sentryDSN:r,componentSourceBuilder:n}){return $C(t),{appId:e,components:t.map((0,yte.match)({DashboardPage:i=>{let s=i.sentryDSN??r;return{compId:i.id,compType:Li.BACK_OFFICE_PAGE,compData:{backOfficePage:{hostingPlatform:Qh.BUSINESS_MANAGER,fullPage:i.sidebar?.whenActive?.hideSidebar,hideInSidebar:i.sidebar?.disabled,priority:i.sidebar?.priority,routePath:i.route.slice(1),title:i.title,pageCategoryId:i.sidebar?.categoryId,activeSidebarPageId:i.sidebar?.whenActive?.selectedPageId,requiredPermission:i.requiredPermission,previousRoutePaths:i.additionalRoutes,...s?{errorReporting:{url:s}}:void 0,...n(i)}},compName:i.title,experiment:jBe(i,e)}},DashboardWidget:i=>({compId:i.id,compType:Li.BACK_OFFICE_EXTENSION,compData:{backOfficeExtension:{hostingPlatform:Qh.BUSINESS_MANAGER,extends:i.containerId,title:i.title,extensionType:Wh.BACK_OFFICE_EXTENSION_WIDGET,requiredPermission:i.requiredPermission,widget:{width:i.width,height:i.height,...n(i)},...i.sentryDSN?{errorReporting:{url:i.sentryDSN}}:void 0}},compName:i.title}),DashboardSidebarCategory:i=>({compId:i.id,compType:Li.BACK_OFFICE_SIDEBAR_CATEGORY,compData:{backOfficeSidebarCategory:{hostingPlatform:Qh.BUSINESS_MANAGER,title:i.label,priority:i.priority}},compName:i.label})}))}}d();d();function xte(e,t){if(!("output"in e||Array.isArray(e)))throw new we({code:Re.InvalidViteBuildOutput()});let i=(Array.isArray(e)?e.flatMap(s=>s.output):e.output).find(s=>s.type==="chunk"&&s.facadeModuleId===t);if(!i)throw new we({code:Re.ViteModuleBundleNotFound()});return i.fileName}function XC(e,t){return e.config.trusted?r=>{let n=hh(r.id),i=t?xte(t,n):`/@id/${n}?import`;return{scriptAsset:{exportedName:r.id,containerId:e.config.appId,url:i,scriptType:zC.MODULE}}}:r=>({iframeUrl:UN(r.id)})}d();import{cwd as Mne}from"node:process";import im from"react";d();d();var aS=Ce(St(),1);d();d();var vl=class extends Error{constructor(t){super(t),this.name="TimeoutError"}},oB=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t}},Ete=e=>globalThis.DOMException===void 0?new oB(e):new DOMException(e),_te=e=>{let t=e.reason===void 0?Ete("This operation was aborted."):e.reason;return t instanceof Error?t:Ete(t)};function uB(e,t){let{milliseconds:r,fallback:n,message:i,customTimers:s={setTimeout,clearTimeout}}=t,a,u=new Promise((l,f)=>{if(typeof r!="number"||Math.sign(r)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(t.signal){let{signal:m}=t;m.aborted&&f(_te(m)),m.addEventListener("abort",()=>{f(_te(m))})}if(r===Number.POSITIVE_INFINITY){e.then(l,f);return}let h=new vl;a=s.setTimeout.call(void 0,()=>{if(n){try{l(n())}catch(m){f(m)}return}typeof e.cancel=="function"&&e.cancel(),i===!1?l():i instanceof Error?f(i):(h.message=i??`Promise timed out after ${r} milliseconds`,f(h))},r),(async()=>{try{l(await e)}catch(m){f(m)}})()}).finally(()=>{u.clear()});return u.clear=()=>{s.clearTimeout.call(void 0,a),a=void 0},u}var cB=Symbol("resolveValue");async function Mu(e,t={}){let{interval:r=20,timeout:n=Number.POSITIVE_INFINITY,before:i=!0}=t,s,a=!1,o=new Promise((u,l)=>{let f=async()=>{try{let h=await e();if(typeof h=="object"&&h[cB])u(h[cB]);else{if(typeof h!="boolean")throw new TypeError("Expected condition to return a boolean");h===!0?u():a||(s=setTimeout(f,r))}}catch(h){l(h)}};i?f():s=setTimeout(f,r)});if(n===Number.POSITIVE_INFINITY)return o;try{return await uB(o,typeof n=="number"?{milliseconds:n}:n)}finally{a=!0,clearTimeout(s)}}Mu.resolveWith=e=>({[cB]:e});d();d();var Tte=Ce(Dte(),1),HBe=new Set(["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed"]),lB=class extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t}},GBe=(e,t,r)=>{let n=r.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=n,e},WBe=e=>HBe.has(e),wte=e=>globalThis.DOMException===void 0?new Error(e):new DOMException(e);async function sn(e,t){return new Promise((r,n)=>{t={onFailedAttempt(){},retries:10,...t};let i=Tte.default.operation(t);i.attempt(async s=>{try{r(await e(s))}catch(a){if(!(a instanceof Error)){n(new TypeError(`Non-error was thrown: "${a}". You should only throw errors.`));return}if(a instanceof lB)i.stop(),n(a.originalError);else if(a instanceof TypeError&&!WBe(a.message))i.stop(),n(a);else{GBe(a,s,t);try{await t.onFailedAttempt(a)}catch(o){n(o);return}i.retry(a)||n(i.mainError())}}}),t.signal&&!t.signal.aborted&&t.signal.addEventListener("abort",()=>{i.stop();let s=t.signal.reason===void 0?wte("The operation was aborted."):t.signal.reason;n(s instanceof Error?s:wte(s))},{once:!0})})}d();d();d();d();function Ite(e){e===void 0&&(e="");var t=QBe(e),r=t[0],n=t[1];return n?{schemaName:n,schemaType:r}:{schemaName:r}}var QBe=function(e){return e.split("#")};d();d();function Rte(e,t,r,n){for(var i=e,s=0,a=t.split(".");s<a.length;s++){var o=a[s];if(!i)return r;i=i[o]}return"".concat(i).concat(n)}var zBe="_",KBe=["wix.com","editorx.com"],$Be=["42.wixprod.net"],YBe=/{(.*)}/,XBe=new RegExp("\\.(".concat(KBe.join("|"),")$")),JBe=new RegExp("\\.(".concat($Be.join("|"),")$"));function ca(e){var t=tLe(e.host),r=nLe(t,e.domainToMappings),n=ZBe(e.protoPath,e.data||{});return iLe(n,r)}function ZBe(e,t){return e.split("/").map(function(r){return eLe(r,t)}).join("/")}function eLe(e,t){var r=e.match(YBe)||[],n=r[1];if(n){var i=e.replace(r[0],"");return Rte(t,n,e,i)}return e}function tLe(e){var t=rLe(e);return t.replace(XBe,"._base_domain_").replace(JBe,"._api_base_domain_")}function rLe(e){return e.replace("create.editorx.com","editor.editorx.com")}function nLe(e,t){var r=t[e]||t[zBe];return!r&&sLe(e)?t[aLe]:r}function iLe(e,t){var r=t?.find(function(n){return e.startsWith(n.destPath)});return r?r.srcPath+e.slice(r.destPath.length):e}function sLe(e){return!!e.match(/\._base_domain_$/)}var aLe="www._base_domain_";d();function Nte(e,t){t===void 0&&(t="");var r={};return Object.entries(e).forEach(function(n){var i=n[0],s=n[1],a=s!==null&&typeof s=="object"&&!Array.isArray(s),o=oLe(t,i);if(a){var u=Nte(s,o);Object.assign(r,u)}else r[o]=s}),r}function oLe(e,t){return"".concat(e).concat(e?".":"").concat(t)}function Fi(e){var t=Nte(e);return Object.entries(t).reduce(function(r,n){var i=n[0],s=n[1],a=Array.isArray(s)?s:[s];return a.forEach(function(o){o!=null&&r.append(i,o)}),r},new URLSearchParams)}d();d();var En;(function(e){e[e.TO_JSON=0]="TO_JSON",e[e.FROM_JSON=1]="FROM_JSON"})(En||(En={}));d();function Ote(e,t,r){return t===void 0&&(t={}),function(i,s){return i===void 0&&(i={}),typeof i=="string"?i:a(e,i);function a(f,h){var m={};return[null,void 0].includes(h)?h:(Object.entries(h).forEach(function(y){var _,C,b,D=y[0],L=y[1],F=f[D],q=Ite(F),M=q.schemaName,k=q.schemaType,te=k==="Map",ce=(b=(C=(_=u(M))===null||_===void 0?void 0:_.checkRepetable)===null||C===void 0?void 0:C.call(_,L))!==null&&b!==void 0?b:Array.isArray(L),ne;ce?ne=L.map(function(pe){return o(pe,M)}):te?ne=l(L,M):ne=o(L,M),m[D]=ne}),m)}function o(f,h){if(!h)return f;var m=t[h],y=u(h);if(y)return u(h).transform(f);if(m)return a(m,f);throw new Error("".concat(h," is neither schema nor serializable type"))}function u(f){var h;return(h=r[f])===null||h===void 0?void 0:h[s]}function l(f,h){return Object.entries(f).reduce(function(m,y){var _=y[0],C=y[1];return m[_]=o(C,h),m},{})}}}d();d();var JC,Pte=(JC={types:["google.protobuf.Timestamp"]},JC[En.TO_JSON]={transform:function(e){return e.toISOString()}},JC[En.FROM_JSON]={transform:function(e){return new Date(e)}},JC);d();var ZC,Bte=(ZC={types:["google.protobuf.FieldMask"]},ZC[En.TO_JSON]={transform:function(e){return e.join(",")},checkRepetable:function(e){return e.some(function(t){return Array.isArray(t)})}},ZC[En.FROM_JSON]={transform:function(e){return typeof e=="object"?e.paths:e.split(",")}},ZC);d();var eS,Lte=(eS={types:["google.protobuf.BytesValue","BYTES"]},eS[En.TO_JSON]={transform:function(e){var t=e.reduce(function(r,n){return r+String.fromCharCode(n)},"");return btoa(t)}},eS[En.FROM_JSON]={transform:function(e){return Uint8Array.from(atob(e),function(t){return t.charCodeAt(0)})}},eS);d();var tS,Fte=(tS={types:["google.protobuf.Duration"]},tS[En.TO_JSON]={transform:function(e){var t=e.seconds,r=t===void 0?"0":t,n=e.nanos,i=n===void 0?0:n,s="";return i!==0&&(s=".".concat(i.toString().padStart(9,"0"))),"".concat(r).concat(s,"s")}},tS[En.FROM_JSON]={transform:function(e){var t=e.substring(0,e.length-1).split("."),r=t[0],n=t[1];return{seconds:r,nanos:uLe(n)}}},tS);function uLe(e){var t=0;if(e!==void 0){var r=3-e.length/3;t=parseInt(e,10)*Math.pow(1e3,r)}return t}d();var rS,kte=(rS={types:["FLOAT","DOUBLE","google.protobuf.FloatValue","google.protobuf.DoubleValue"]},rS[En.TO_JSON]={transform:function(e){return isFinite(e)?e:e.toString()}},rS[En.FROM_JSON]={transform:function(e){return e==="NaN"?NaN:e==="Infinity"?1/0:e==="-Infinity"?-1/0:e}},rS);var Ute=[Pte,Bte,Lte,Fte,kte];d();var Kh=function(){return Kh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Kh.apply(this,arguments)};function Mte(e){return e.reduce(function(t,r){var n=r.types.reduce(function(i,s){var a;return Kh(Kh({},i),(a={},a[s]=r,a))},{});return Kh(Kh({},t),n)},{})}var cLe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},lLe=Mte(cLe([],Ute,!0));function xt(e,t){t===void 0&&(t={});var r=Ote(e,t,lLe);return{fromJSON:function(n){var i=pLe(n)||n;return r(i,En.FROM_JSON)},toJSON:function(n){return r(n,En.TO_JSON)}}}function pLe(e){try{return JSON.parse(e)}catch{}}var fLe={},dLe={},hLe={},mLe={},gLe={},vLe={},yLe={},xLe={body:"BYTES"},qte={body:"BYTES"},ELe={},_Le={};function $h(e){var t={"manage._base_domain_":[{srcPath:"/oauth2",destPath:"/v1/oauth"}],"www.wixapis.com":[{srcPath:"/oauth2",destPath:"/v1/oauth"}],"users._base_domain_":[{srcPath:"/v1/oauth/device/verify",destPath:"/v1/oauth/device/verify"},{srcPath:"/v1/oauth/manage/user-code",destPath:"/v1/oauth/manage/user-code"}],_:[{srcPath:"/_api/oauth2",destPath:"/v1/oauth"}]};return ca(Object.assign(e,{domainToMappings:t}))}function ALe(e){var t=xt(fLe,{}),r=t.toJSON,n=t.fromJSON,i=xt(qte,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"GET",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.Authorize",url:$h({protoPath:"/v1/oauth/authorize",data:u,host:o}),params:Fi(u),transformResponse:i};return l}return s.fromReq=n,s}ALe.__isAmbassador=!0;function nS(e){var t=xt(xLe,{}),r=t.toJSON,n=t.fromJSON,i=xt(qte,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"POST",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.Token",url:$h({protoPath:"/v1/oauth/token",data:u,host:o}),data:u,transformResponse:i};return l}return s.fromReq=n,s}nS.__isAmbassador=!0;function pB(e){var t=xt(dLe,{}),r=t.toJSON,n=t.fromJSON,i=xt(hLe,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"GET",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.DeviceCode",url:$h({protoPath:"/v1/oauth/device/code",data:u,host:o}),params:Fi(u),transformResponse:i};return l}return s.fromReq=n,s}pB.__isAmbassador=!0;function CLe(e){var t=xt(mLe,{}),r=t.toJSON,n=t.fromJSON,i=xt(gLe,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"GET",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.DeviceVerify",url:$h({protoPath:"/v1/oauth/device/verify",data:u,host:o}),params:Fi(u),transformResponse:i};return l}return s.fromReq=n,s}CLe.__isAmbassador=!0;function SLe(e){var t=xt(vLe,{}),r=t.toJSON,n=t.fromJSON,i=xt(yLe,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"DELETE",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.InvalidateUserCode",url:$h({protoPath:"/v1/oauth/manage/user-code",data:u,host:o}),params:Fi(u),transformResponse:i};return l}return s.fromReq=n,s}SLe.__isAmbassador=!0;function fB(e){var t=xt(ELe,{}),r=t.toJSON,n=t.fromJSON,i=xt(_Le,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"POST",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.RevokeRefreshToken",url:$h({protoPath:"/v1/oauth/revoke",data:u,host:o}),data:u,transformResponse:i};return l}return s.fromReq=n,s}fB.__isAmbassador=!0;var fv=Ce(St(),1);d();var jte=G.object({deviceCode:G.string(),verificationUri:G.string().url(),userCode:G.string(),expiresIn:G.number()}),dB=G.object({access_token:G.string(),refresh_token:G.string(),expires_in:G.number()}).transform(e=>({accessToken:e.access_token,refreshToken:e.refresh_token,expiresIn:e.expires_in})),hB=G.object({userId:G.string().uuid(),email:G.string().email()}),Vte=G.object({accessToken:G.string(),refreshToken:G.string(),expiresIn:G.number(),issuedAt:G.number()}),Hte=Vte.extend({userInfo:hB});var{FailedToGetAuthToken:bLe,FailedToGetDeviceCode:DLe,FailedToRenewAuthToken:wLe,FailedToRenewAuthTokenSiteNotFound:TLe,FailedToRevokeRefreshToken:ILe}=Re,mB="6f95cec8-3e98-48b9-b4e5-1fb92fcd9973",Gte=()=>Math.floor(Date.now()/1e3),dv=class extends Error{},Wte=(0,fv.variant)({TokenRenewed:(0,fv.fields)(),RefreshTokenRevoked:(0,fv.fields)()}),gB=class{constructor(t){this.httpClient=t;let{minRetryTimeout:r}=Pn();this.retryOptions={retries:3,minTimeout:r,maxTimeout:3*1e3}}retryOptions;async requestDeviceCode(t={}){try{let{data:r}=await sn(()=>this.httpClient.request(pB({...t,clientId:mB})),this.retryOptions);return jte.parse(r)}catch(r){throw new we({code:DLe(),cause:r})}}async createToken(t){try{let r={clientId:mB,grantType:"urn:ietf:params:oauth:grant-type:device_code",scope:["offline_access"],...t},{data:n}=await sn(()=>this.httpClient.request(nS(r)),this.retryOptions);return{...dB.parse(n),issuedAt:Gte()}}catch(r){throw Eo(r)&&(r.response?.data?.message==="Device code is not yet verified"||r.response?.data?.error==="authorization_pending")?new dv("Device code is not yet verified."):new we({code:bLe(),cause:r})}}async renewToken(t){try{let r={clientId:mB,grantType:"refresh_token",...t},{data:n}=await sn(()=>this.httpClient.request(nS(r)),this.retryOptions),i=dB.parse(n);return Wte.TokenRenewed({...i,issuedAt:Gte()})}catch(r){if(Eo(r)){if(r.response?.status===400&&r.response?.data?.error==="invalid_grant")return Wte.RefreshTokenRevoked({cause:r,siteId:t.siteId});if(t.siteId&&r.response?.status===404&&r.response?.data?.details?.applicationError?.code==="SITE_NOT_FOUND")throw new we({code:TLe({siteId:t.siteId}),cause:r})}throw new we({code:wLe(),cause:r})}}async revokeRefreshToken(t,{email:r}){try{let{data:n}=await this.httpClient.request(fB(t));return n}catch(n){throw new we({code:ILe({email:r}),info:{email:r},cause:n})}}async userInfo({accessToken:t}){try{let r=gp({type:"backoffice",getAppToken:()=>t}),{data:n}=await r.get("/_serverless/wix-cli-userinfo/userinfo");return hB.parse(n)}catch(r){throw new we({code:Re.FailedToGetUserInfo(),cause:r})}}},Yh=new gB(gp({type:"backoffice"}));d();import{unlink as RLe,rm as NLe}from"node:fs/promises";import{resolve as iS}from"node:path";var qu=Ce(St(),1);function Qte(){return iS(Hh(),"auth.json")}function yB(){return iS(Hh(),"auth")}function zte(){return iS(yB(),"account.json")}function OLe(e){return iS(yB(),`${e}.json`)}var vB=(0,qu.variant)({Authenticated:(0,qu.fields)(),Unauthenticated:{},Expired:(0,qu.fields)()});async function Kte(){let e=zte();if(!await Qs(e))return vB.Unauthenticated();let t=await Du(e),r=Hte.parse(t);return PLe(r)?vB.Authenticated(r):vB.Expired(r)}var Jpt=(0,qu.variant)({Authenticated:(0,qu.fields)(),Unauthenticated:{},Expired:(0,qu.fields)()});async function xB(e,t){try{let r=t?OLe(t):zte();await rh(r,e)}catch(r){throw new we({code:Re.FailedToSaveAuthData({cause:r})})}}async function $te(){try{await NLe(yB(),{recursive:!0,force:!0})}catch(e){throw new we({code:Re.FailedToDeleteAuthData({cause:e})})}}async function Yte(){try{await RLe(Qte())}catch(e){throw new we({code:Re.FailedToDeleteLegacyAuthData({cause:e})})}}async function sS(){return Qs(Qte())}function PLe(e){let t=Math.floor(Date.now()/1e3),r=e.expiresIn;return e.issuedAt+r>t}var Xte=e=>1e3*e;async function BLe({deviceCode:e,expiresIn:t},{signal:r}){try{let n=await Mu(async()=>{try{let a=await Yh.createToken({deviceCode:e});return Mu.resolveWith(a)}catch(a){if(a instanceof dv)return!1;throw a}},{interval:Pn().waitForLoginInterval??Xte(3),timeout:{milliseconds:Xte(t),signal:r}}),i=await Yh.userInfo({accessToken:n.accessToken}),s={...n,userInfo:i};return await $te(),await sS()&&await Yte(),await xB(s),s}catch(n){throw n instanceof vl?new we({code:Re.DeviceCodeTimedOut()}):n}}async function LLe(){let e=await Kte();return(0,aS.match)(e,{Authenticated:t=>t,Unauthenticated:()=>null,Expired:async t=>{let r=await Yh.renewToken({refreshToken:t.refreshToken});return(0,aS.match)(r,{TokenRenewed:async n=>{let i={userInfo:t.userInfo,...n};return await xB(i),i},RefreshTokenRevoked:()=>null})}})}var oS={isLoggedIn(){return LLe()},login({deviceCode:e,signal:t}){return BLe(e,{signal:t})}};d();import{useContext as kLe}from"react";d();import{createContext as FLe}from"react";var uS=FLe(null);function EB(){let e=kLe(uS);if(!e)throw new Error("useAuth() cannot be used without an <AuthProvider>");return e}d();import wne from"react";d();d();d();d();function Jte(e,t,r){function n(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function i(){return!e||typeof e=="string"}for(var s=typeof t!="string"?[].concat(t):t.split(".");s.length>1;){if(i())return{};var a=n(s.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return i()?{}:{obj:e,k:n(s.shift())}}function Zte(e,t,r){var n=Jte(e,t,Object),i=n.obj,s=n.k;i[s]=r}function ere(e,t){var r=Jte(e,t),n=r.obj,i=r.k;if(n)return n[i]}var tre=[],ULe=tre.forEach,MLe=tre.slice;function rre(e){return ULe.call(MLe.call(arguments,1),function(t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r])}),e}d();d();yo();d();yo();d();var Gt;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Gt||(Gt={}));d();yo();d();var Fr;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Fr||(Fr={}));var ef;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ef||(ef={}));function _B(e){return e.type===Fr.literal}function nre(e){return e.type===Fr.argument}function cS(e){return e.type===Fr.number}function lS(e){return e.type===Fr.date}function pS(e){return e.type===Fr.time}function fS(e){return e.type===Fr.select}function dS(e){return e.type===Fr.plural}function ire(e){return e.type===Fr.pound}function hS(e){return e.type===Fr.tag}function mS(e){return!!(e&&typeof e=="object"&&e.type===ef.number)}function hv(e){return!!(e&&typeof e=="object"&&e.type===ef.dateTime)}d();var AB=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;d();d();var jLe=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function sre(e){var t={};return e.replace(jLe,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"short":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}d();yo();d();var are=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function lre(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(are).filter(function(m){return m.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var o=a[0],u=a.slice(1),l=0,f=u;l<f.length;l++){var h=f[l];if(h.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:u})}return r}function VLe(e){return e.replace(/^(.*?)-/,"")}var ore=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,pre=/^(@+)?(\+|#+)?[rs]?$/g,HLe=/(\*)(0+)|(#+)(0+)|(0+)/g,fre=/^(0+)$/;function ure(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(pre,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function dre(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function GLe(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!fre.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function cre(e){var t={},r=dre(e);return r||t}function hre(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=VLe(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Mt(Mt(Mt({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return Mt(Mt({},u),cre(l))},{}));continue;case"engineering":t=Mt(Mt(Mt({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return Mt(Mt({},u),cre(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(HLe,function(u,l,f,h,m,y){if(l)t.minimumIntegerDigits=f.length;else{if(h&&m)throw new Error("We currently do not support maximum integer digits");if(y)throw new Error("We currently do not support exact integer digits")}return""});continue}if(fre.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ore.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ore,function(u,l,f,h,m,y){return f==="*"?t.minimumFractionDigits=l.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:m&&y?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+y.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=Mt(Mt({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=Mt(Mt({},t),ure(s)));continue}if(pre.test(i.stem)){t=Mt(Mt({},t),ure(i.stem));continue}var a=dre(i.stem);a&&(t=Mt(Mt({},t),a));var o=GLe(i.stem);o&&(t=Mt(Mt({},t),o))}return t}d();d();var mv={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function mre(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var a=1+(s&1),o=s<2?1:3+(s>>1),u="a",l=WLe(t);for((l=="H"||l=="k")&&(o=0);o-- >0;)r+=u;for(;a-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function WLe(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=mv[n||""]||mv[r||""]||mv["".concat(r,"-001")]||mv["001"];return i[0]}var CB,QLe=new RegExp("^".concat(AB.source,"*")),zLe=new RegExp("".concat(AB.source,"*$"));function Zt(e,t){return{start:e,end:t}}var KLe=!!String.prototype.startsWith&&"_a".startsWith("a",1),$Le=!!String.fromCodePoint,YLe=!!Object.fromEntries,XLe=!!String.prototype.codePointAt,JLe=!!String.prototype.trimStart,ZLe=!!String.prototype.trimEnd,eFe=!!Number.isSafeInteger,tFe=eFe?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},bB=!0;try{gre=Ere("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),bB=((CB=gre.exec("a"))===null||CB===void 0?void 0:CB[0])==="a"}catch{bB=!1}var gre,vre=KLe?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},DB=$Le?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,a;i>s;){if(a=t[s++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},yre=YLe?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],a=s[0],o=s[1];r[a]=o}return r},xre=XLe?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),s;return i<55296||i>56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},rFe=JLe?function(t){return t.trimStart()}:function(t){return t.replace(QLe,"")},nFe=ZLe?function(t){return t.trimEnd()}:function(t){return t.replace(zLe,"")};function Ere(e,t){return new RegExp(e,t)}var wB;bB?(SB=Ere("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),wB=function(t,r){var n;SB.lastIndex=r;var i=SB.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}):wB=function(t,r){for(var n=[];;){var i=xre(t,r);if(i===void 0||Are(i)||aFe(i))break;n.push(i),r+=i>=65536?2:1}return DB.apply(void 0,n)};var SB,_re=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:Fr.pound,location:Zt(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Gt.UNMATCHED_CLOSING_TAG,Zt(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&TB(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Fr.literal,value:"<".concat(i,"/>"),location:Zt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var a=s.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!TB(this.char()))return this.error(Gt.INVALID_TAG,Zt(o,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(Gt.UNMATCHED_CLOSING_TAG,Zt(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Fr.tag,value:i,children:a,location:Zt(n,this.clonePosition())},err:null}:this.error(Gt.INVALID_TAG,Zt(o,this.clonePosition())))}else return this.error(Gt.UNCLOSED_TAG,Zt(n,this.clonePosition()))}else return this.error(Gt.INVALID_TAG,Zt(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&sFe(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var u=Zt(n,this.clonePosition());return{val:{type:Fr.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!iFe(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return DB.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),DB(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Gt.EXPECT_ARGUMENT_CLOSING_BRACE,Zt(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Gt.EMPTY_ARGUMENT,Zt(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Gt.MALFORMED_ARGUMENT,Zt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Gt.EXPECT_ARGUMENT_CLOSING_BRACE,Zt(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Fr.argument,value:i,location:Zt(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Gt.EXPECT_ARGUMENT_CLOSING_BRACE,Zt(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(Gt.MALFORMED_ARGUMENT,Zt(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=wB(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=Zt(t,s);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(o){case"":return this.error(Gt.EXPECT_ARGUMENT_TYPE,Zt(a,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var m=nFe(h.val);if(m.length===0)return this.error(Gt.EXPECT_ARGUMENT_STYLE,Zt(this.clonePosition(),this.clonePosition()));var y=Zt(f,this.clonePosition());l={style:m,styleLocation:y}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var C=Zt(i,this.clonePosition());if(l&&vre(l?.style,"::",0)){var b=rFe(l.style.slice(2));if(o==="number"){var h=this.parseNumberSkeletonFromString(b,l.styleLocation);return h.err?h:{val:{type:Fr.number,value:n,location:C,style:h.val},err:null}}else{if(b.length===0)return this.error(Gt.EXPECT_DATE_TIME_SKELETON,C);var D=b;this.locale&&(D=mre(b,this.locale));var m={type:ef.dateTime,pattern:D,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?sre(D):{}},L=o==="date"?Fr.date:Fr.time;return{val:{type:L,value:n,location:C,style:m},err:null}}}return{val:{type:o==="number"?Fr.number:o==="date"?Fr.date:Fr.time,value:n,location:C,style:(s=l?.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var F=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Gt.EXPECT_SELECT_ARGUMENT_OPTIONS,Zt(F,Mt({},F)));this.bumpSpace();var q=this.parseIdentifierIfPossible(),M=0;if(o!=="select"&&q.value==="offset"){if(!this.bumpIf(":"))return this.error(Gt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Zt(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(Gt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Gt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),q=this.parseIdentifierIfPossible(),M=h.val}var k=this.tryParsePluralOrSelectOptions(t,o,r,q);if(k.err)return k;var _=this.tryParseArgumentClose(i);if(_.err)return _;var te=Zt(i,this.clonePosition());return o==="select"?{val:{type:Fr.select,value:n,options:yre(k.val),location:te},err:null}:{val:{type:Fr.plural,value:n,options:yre(k.val),offset:M,pluralType:o==="plural"?"cardinal":"ordinal",location:te},err:null}}default:return this.error(Gt.INVALID_ARGUMENT_TYPE,Zt(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Gt.EXPECT_ARGUMENT_CLOSING_BRACE,Zt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Gt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Zt(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=lre(t)}catch{return this.error(Gt.INVALID_NUMBER_SKELETON,r)}return{val:{type:ef.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?hre(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,a=!1,o=[],u=new Set,l=i.value,f=i.location;;){if(l.length===0){var h=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(Gt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Gt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;f=Zt(h,this.clonePosition()),l=this.message.slice(h.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?Gt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Gt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(a=!0),this.bumpSpace();var y=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Gt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Gt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Zt(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var C=this.tryParseArgumentClose(y);if(C.err)return C;o.push([l,{value:_.val,location:Zt(y,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,f=s.location}return o.length===0?this.error(r==="select"?Gt.EXPECT_SELECT_ARGUMENT_SELECTOR:Gt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Zt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Gt.MISSING_OTHER_CLAUSE,Zt(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)s=!0,a=a*10+(o-48),this.bump();else break}var u=Zt(i,this.clonePosition());return s?(a*=n,tFe(a)?{val:a,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=xre(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(vre(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Are(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function TB(e){return e>=97&&e<=122||e>=65&&e<=90}function iFe(e){return TB(e)||e===47}function sFe(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Are(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function aFe(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function IB(e){e.forEach(function(t){if(delete t.location,fS(t)||dS(t))for(var r in t.options)delete t.options[r].location,IB(t.options[r].value);else cS(t)&&mS(t.style)||(lS(t)||pS(t))&&hv(t.style)?delete t.style.location:hS(t)&&IB(t.children)})}function Cre(e,t){t===void 0&&(t={}),t=Mt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new _re(e,t).parse();if(r.err){var n=SyntaxError(Gt[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||IB(r.val),r.val}d();function gS(e,t){var r=t&&t.cache?t.cache:fFe,n=t&&t.serializer?t.serializer:pFe,i=t&&t.strategy?t.strategy:uFe;return i(e,{cache:r,serializer:n})}function oFe(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Sre(e,t,r,n){var i=oFe(n)?n:r(n),s=t.get(i);return typeof s>"u"&&(s=e.call(this,n),t.set(i,s)),s}function bre(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s>"u"&&(s=e.apply(this,n),t.set(i,s)),s}function RB(e,t,r,n,i){return r.bind(t,e,n,i)}function uFe(e,t){var r=e.length===1?Sre:bre;return RB(e,this,r,t.cache.create(),t.serializer)}function cFe(e,t){return RB(e,this,bre,t.cache.create(),t.serializer)}function lFe(e,t){return RB(e,this,Sre,t.cache.create(),t.serializer)}var pFe=function(){return JSON.stringify(arguments)};function NB(){this.cache=Object.create(null)}NB.prototype.get=function(e){return this.cache[e]};NB.prototype.set=function(e,t){this.cache[e]=t};var fFe={create:function(){return new NB}},vS={variadic:cFe,monadic:lFe};d();d();yo();var tf;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(tf||(tf={}));var gv=function(e){lp(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.code=n,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error);var OB=function(e){lp(t,e);function t(r,n,i,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),tf.INVALID_VALUE,s)||this}return t}(gv);var Dre=function(e){lp(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),tf.INVALID_VALUE,i)||this}return t}(gv);var wre=function(e){lp(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),tf.MISSING_VALUE,n)||this}return t}(gv);var _i;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(_i||(_i={}));function dFe(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==_i.literal||r.type!==_i.literal?t.push(r):n.value+=r.value,t},[])}function hFe(e){return typeof e=="function"}function vv(e,t,r,n,i,s,a){if(e.length===1&&_B(e[0]))return[{type:_i.literal,value:e[0].value}];for(var o=[],u=0,l=e;u<l.length;u++){var f=l[u];if(_B(f)){o.push({type:_i.literal,value:f.value});continue}if(ire(f)){typeof s=="number"&&o.push({type:_i.literal,value:r.getNumberFormat(t).format(s)});continue}var h=f.value;if(!(i&&h in i))throw new wre(h,a);var m=i[h];if(nre(f)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),o.push({type:typeof m=="string"?_i.literal:_i.object,value:m});continue}if(lS(f)){var y=typeof f.style=="string"?n.date[f.style]:hv(f.style)?f.style.parsedOptions:void 0;o.push({type:_i.literal,value:r.getDateTimeFormat(t,y).format(m)});continue}if(pS(f)){var y=typeof f.style=="string"?n.time[f.style]:hv(f.style)?f.style.parsedOptions:n.time.medium;o.push({type:_i.literal,value:r.getDateTimeFormat(t,y).format(m)});continue}if(cS(f)){var y=typeof f.style=="string"?n.number[f.style]:mS(f.style)?f.style.parsedOptions:void 0;y&&y.scale&&(m=m*(y.scale||1)),o.push({type:_i.literal,value:r.getNumberFormat(t,y).format(m)});continue}if(hS(f)){var _=f.children,C=f.value,b=i[C];if(!hFe(b))throw new Dre(C,"function",a);var D=vv(_,t,r,n,i,s),L=b(D.map(function(M){return M.value}));Array.isArray(L)||(L=[L]),o.push.apply(o,L.map(function(M){return{type:typeof M=="string"?_i.literal:_i.object,value:M}}))}if(fS(f)){var F=f.options[m]||f.options.other;if(!F)throw new OB(f.value,m,Object.keys(f.options),a);o.push.apply(o,vv(F.value,t,r,n,i));continue}if(dS(f)){var F=f.options["=".concat(m)];if(!F){if(!Intl.PluralRules)throw new gv(`Intl.PluralRules is not available in this environment.
|
|
222
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
223
|
-
`,tf.MISSING_INTL_API,a);var q=r.getPluralRules(t,{type:f.pluralType}).select(m-(f.offset||0));F=f.options[q]||f.options.other}if(!F)throw new OB(f.value,m,Object.keys(f.options),a);o.push.apply(o,vv(F.value,t,r,n,i,m-(f.offset||0)));continue}}return dFe(o)}function mFe(e,t){return t?Mt(Mt(Mt({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Mt(Mt({},e[n]),t[n]||{}),r},{})):e}function gFe(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=mFe(e[n],t[n]),r},Mt({},e)):e}function PB(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function vFe(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:gS(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Ad([void 0],r,!1)))},{cache:PB(e.number),strategy:vS.variadic}),getDateTimeFormat:gS(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Ad([void 0],r,!1)))},{cache:PB(e.dateTime),strategy:vS.variadic}),getPluralRules:gS(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Ad([void 0],r,!1)))},{cache:PB(e.pluralRules),strategy:vS.variadic})}}var Tre=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var f=s.formatToParts(l);if(f.length===1)return f[0].value;var h=f.reduce(function(m,y){return!m.length||y.type!==_i.literal||typeof m[m.length-1]!="string"?m.push(y.value):m[m.length-1]+=y.value,m},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return vv(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{},o=a.formatters,u=mE(a,["formatters"]);this.ast=e.__parse(t,Mt(Mt({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=gFe(e.formats,n),this.formatters=i&&i.formatters||vFe(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Cre,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var BB=Tre;function Ire(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rre(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ire(Object(r),!0).forEach(function(n){yFe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ire(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yFe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nre(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function EFe(e,t,r){return t&&Nre(e.prototype,t),r&&Nre(e,r),e}function _Fe(){return{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:"",parseErrorHandler:function(t,r,n,i){return n},parseLngForICU:function(t){return t}}}var Ore=function(){function e(t){xFe(this,e),this.type="i18nFormat",this.mem={},this.init(null,t)}return EFe(e,[{key:"init",value:function(r,n){var i=this,s=r&&r.options&&r.options.i18nFormat||{};if(this.options=rre(s,n,this.options||{},_Fe()),this.formats=this.options.formats,r){var a=this.options,o=a.bindI18n,u=a.bindI18nStore,l=a.memoize;r.IntlMessageFormat=BB,r.ICU=this,l&&(o&&r.on(o,function(){return i.clearCache()}),u&&r.store.on(u,function(){return i.clearCache()}))}}},{key:"addUserDefinedFormats",value:function(r){this.formats=this.formats?Rre(Rre({},this.formats),r):r}},{key:"parse",value:function(r,n,i,s,a,o){var u=o&&o.resolved&&o.resolved.res,l=this.options.memoize&&"".concat(i,".").concat(s,".").concat(a.replace(/\./g,"###")),f;this.options.memoize&&(f=ere(this.mem,l));try{if(!f){var h=this.options.parseLngForICU(i);f=new BB(r,h,this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!o||u)&&Zte(this.mem,l,f)}return f.format(n)}catch(m){return this.options.parseErrorHandler(m,a,r,n)}}},{key:"addLookupKeys",value:function(r,n,i,s,a){return r}},{key:"clearCache",value:function(){this.mem={}}}]),e}();Ore.type="i18nFormat";var Pre=Ore;d();var AFe={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},FB=class e{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||AFe,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Wo=new FB,Zh=class{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]=this.observers[n]||[],this.observers[n].push(r)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(n=>n!==r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(a=>{a(...n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(a=>{a.apply(a,[t,...n])})}};function yv(){let e,t,r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function Bre(e){return e==null?"":""+e}function CFe(e,t,r){e.forEach(n=>{t[n]&&(r[n]=t[n])})}function jB(e,t,r){function n(a){return a&&a.indexOf("###")>-1?a.replace(/###/g,"."):a}function i(){return!e||typeof e=="string"}let s=typeof t!="string"?[].concat(t):t.split(".");for(;s.length>1;){if(i())return{};let a=n(s.shift());!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:n(s.shift())}}function Lre(e,t,r){let{obj:n,k:i}=jB(e,t,Object);n[i]=r}function SFe(e,t,r,n){let{obj:i,k:s}=jB(e,t,Object);i[s]=i[s]||[],n&&(i[s]=i[s].concat(r)),n||i[s].push(r)}function xS(e,t){let{obj:r,k:n}=jB(e,t);if(r)return r[n]}function bFe(e,t,r){let n=xS(e,r);return n!==void 0?n:xS(t,r)}function jre(e,t,r){for(let n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):jre(e[n],t[n],r):e[n]=t[n]);return e}function Xh(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var DFe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function wFe(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>DFe[t]):e}var TFe=[" ",",","?","!",";"];function IFe(e,t,r){t=t||"",r=r||"";let n=TFe.filter(a=>t.indexOf(a)<0&&r.indexOf(a)<0);if(n.length===0)return!0;let i=new RegExp(`(${n.map(a=>a==="?"?"\\?":a).join("|")})`),s=!i.test(e);if(!s){let a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(s=!0)}return s}function ES(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let n=t.split(r),i=e;for(let s=0;s<n.length;++s){if(!i||typeof i[n[s]]=="string"&&s+1<n.length)return;if(i[n[s]]===void 0){let a=2,o=n.slice(s,s+a).join(r),u=i[o];for(;u===void 0&&n.length>s+a;)a++,o=n.slice(s,s+a).join(r),u=i[o];if(u===void 0)return;if(u===null)return null;if(t.endsWith(o)){if(typeof u=="string")return u;if(o&&typeof u[o]=="string")return u[o]}let l=n.slice(s+a).join(r);return l?ES(u,l,r):void 0}i=i[n[s]]}return i}function _S(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}var AS=class extends Zh{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,o=[t,r];n&&typeof n!="string"&&(o=o.concat(n)),n&&typeof n=="string"&&(o=o.concat(s?n.split(s):n)),t.indexOf(".")>-1&&(o=t.split("."));let u=xS(this.data,o);return u||!a||typeof n!="string"?u:ES(this.data&&this.data[t]&&this.data[t][r],n,s)}addResource(t,r,n,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=[t,r];n&&(o=o.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(o=t.split("."),i=r,r=o[1]),this.addNamespaces(r),Lre(this.data,o,i),s.silent||this.emit("added",t,r,n,i)}addResources(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let s in n)(typeof n[s]=="string"||Object.prototype.toString.apply(n[s])==="[object Array]")&&this.addResource(t,r,s,n[s],{silent:!0});i.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,i,s){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},o=[t,r];t.indexOf(".")>-1&&(o=t.split("."),i=n,n=r,r=o[1]),this.addNamespaces(r);let u=xS(this.data,o)||{};i?jre(u,n,s):u={...u,...n},Lre(this.data,o,u),a.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(i=>r[i]&&Object.keys(r[i]).length>0)}toJSON(){return this.data}},Vre={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,r,n,i))}),t}},Fre={},CS=class e extends Zh{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),CFe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Wo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");let i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ns||this.options.defaultNS||[],a=n&&t.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!IFe(t,n,i);if(a&&!o){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:s};let l=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(l[0])>-1)&&(s=l.shift()),t=l.join(i)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let i=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:a,namespaces:o}=this.extractFromKey(t[t.length-1],r),u=o[o.length-1],l=r.lng||this.language,f=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()==="cimode"){if(f){let q=r.nsSeparator||this.options.nsSeparator;return i?{res:`${u}${q}${a}`,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:`${u}${q}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:a}let h=this.resolve(t,r),m=h&&h.res,y=h&&h.usedKey||a,_=h&&h.exactUsedKey||a,C=Object.prototype.toString.apply(m),b=["[object Number]","[object Function]","[object RegExp]"],D=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject;if(L&&m&&(typeof m!="string"&&typeof m!="boolean"&&typeof m!="number")&&b.indexOf(C)<0&&!(typeof D=="string"&&C==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let q=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,m,{...r,ns:o}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(h.res=q,h.usedParams=this.getUsedParamsDetails(r),h):q}if(s){let q=C==="[object Array]",M=q?[]:{},k=q?_:y;for(let te in m)if(Object.prototype.hasOwnProperty.call(m,te)){let ce=`${k}${s}${te}`;M[te]=this.translate(ce,{...r,joinArrays:!1,ns:o}),M[te]===ce&&(M[te]=m[te])}m=M}}else if(L&&typeof D=="string"&&C==="[object Array]")m=m.join(D),m&&(m=this.extendTranslation(m,t,r,n));else{let q=!1,M=!1,k=r.count!==void 0&&typeof r.count!="string",te=e.hasDefaultValue(r),ce=k?this.pluralResolver.getSuffix(l,r.count,r):"",ne=r.ordinal&&k?this.pluralResolver.getSuffix(l,r.count,{ordinal:!1}):"",pe=r[`defaultValue${ce}`]||r[`defaultValue${ne}`]||r.defaultValue;!this.isValidLookup(m)&&te&&(q=!0,m=pe),this.isValidLookup(m)||(M=!0,m=a);let be=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&M?void 0:m,Ie=te&&pe!==m&&this.options.updateMissing;if(M||q||Ie){if(this.logger.log(Ie?"updateKey":"missingKey",l,u,a,Ie?pe:m),s){let oe=this.resolve(a,{...r,keySeparator:!1});oe&&oe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let et=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&j&&j[0])for(let oe=0;oe<j.length;oe++)et.push(j[oe]);else this.options.saveMissingTo==="all"?et=this.languageUtils.toResolveHierarchy(r.lng||this.language):et.push(r.lng||this.language);let z=(oe,ve,Ve)=>{let dt=te&&Ve!==m?Ve:be;this.options.missingKeyHandler?this.options.missingKeyHandler(oe,u,ve,dt,Ie,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(oe,u,ve,dt,Ie,r),this.emit("missingKey",oe,u,ve,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?et.forEach(oe=>{this.pluralResolver.getSuffixes(oe,r).forEach(ve=>{z([oe],a+ve,r[`defaultValue${ve}`]||pe)})}):z(et,a,pe))}m=this.extendTranslation(m,t,r,h,n),M&&m===a&&this.options.appendNamespaceToMissingKey&&(m=`${u}:${a}`),(M||q)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${a}`:a,q?m:void 0):m=this.options.parseMissingKeyHandler(m))}return i?(h.res=m,h.usedParams=this.getUsedParamsDetails(r),h):m}extendTranslation(t,r,n,i,s){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let l=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(l){let m=t.match(this.interpolator.nestingRegexp);f=m&&m.length}let h=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,n.lng||this.language,n),l){let m=t.match(this.interpolator.nestingRegexp),y=m&&m.length;f<y&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(n.lng=i.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var m=arguments.length,y=new Array(m),_=0;_<m;_++)y[_]=arguments[_];return s&&s[0]===y[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${r[0]}`),null):a.translate(...y,r)},n)),n.interpolation&&this.interpolator.reset()}let o=n.postProcess||this.options.postProcess,u=typeof o=="string"?[o]:o;return t!=null&&u&&u.length&&n.applyPostProcessor!==!1&&(t=Vre.handle(u,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:i,...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,i,s,a,o;return typeof t=="string"&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(n))return;let l=this.extractFromKey(u,r),f=l.key;i=f;let h=l.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));let m=r.count!==void 0&&typeof r.count!="string",y=m&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),_=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",C=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);h.forEach(b=>{this.isValidLookup(n)||(o=b,!Fre[`${C[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Fre[`${C[0]}-${b}`]=!0,this.logger.warn(`key "${i}" for languages "${C.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),C.forEach(D=>{if(this.isValidLookup(n))return;a=D;let L=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(L,f,D,b,r);else{let q;m&&(q=this.pluralResolver.getSuffix(D,r.count,r));let M=`${this.options.pluralSeparator}zero`,k=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(L.push(f+q),r.ordinal&&q.indexOf(k)===0&&L.push(f+q.replace(k,this.options.pluralSeparator)),y&&L.push(f+M)),_){let te=`${f}${this.options.contextSeparator}${r.context}`;L.push(te),m&&(L.push(te+q),r.ordinal&&q.indexOf(k)===0&&L.push(te+q.replace(k,this.options.pluralSeparator)),y&&L.push(te+M))}}let F;for(;F=L.pop();)this.isValidLookup(n)||(s=F,n=this.getResource(D,b,F,r))}))})}),{res:n,usedKey:i,exactUsedKey:s,usedLng:a,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,i):this.resourceStore.getResource(t,r,n,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&typeof t.replace!="string",i=n?t.replace:t;if(n&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(let s of r)delete i[s]}return i}static hasDefaultValue(t){let r="defaultValue";for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}};function LB(e){return e.charAt(0).toUpperCase()+e.slice(1)}var SS=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Wo.create("languageUtils")}getScriptPartFromCode(t){if(t=_S(t),!t||t.indexOf("-")<0)return null;let r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=_S(t),!t||t.indexOf("-")<0)return t;let r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){let r=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map(i=>i.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=LB(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=LB(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=LB(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;let i=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(i))&&(r=i)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;let i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return r=i;r=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&s.indexOf(i)===0)return s})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){let n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),i=[],s=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),n.forEach(a=>{i.indexOf(a)<0&&s(this.formatLanguageCode(a))}),i}},RFe=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],NFe={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},OFe=["v1","v2","v3"],PFe=["v4"],kre={zero:0,one:1,two:2,few:3,many:4,other:5};function BFe(){let e={};return RFe.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:NFe[t.fc]}})}),e}var kB=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=Wo.create("pluralResolver"),(!this.options.compatibilityJSON||PFe.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=BFe()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(_S(t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(i=>`${r}${i}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((i,s)=>kre[i]-kre[s]).map(i=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i}`):n.numbers.map(i=>this.getSuffix(t,i,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(r)}`:this.getSuffixRetroCompatible(i,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){let n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r)),i=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));let s=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!OFe.includes(this.options.compatibilityJSON)}};function Ure(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=bFe(e,t,r);return!s&&i&&typeof r=="string"&&(s=ES(e,r,n),s===void 0&&(s=ES(t,r,n))),s}var UB=class{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Wo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let r=t.interpolation;this.escape=r.escape!==void 0?r.escape:wFe,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Xh(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Xh(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Xh(r.nestingPrefix):r.nestingPrefixEscaped||Xh("$t("),this.nestingSuffix=r.nestingSuffix?Xh(r.nestingSuffix):r.nestingSuffixEscaped||Xh(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");let r=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(r,"g");let n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(n,"g")}interpolate(t,r,n,i){let s,a,o,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(_){return _.replace(/\$/g,"$$$$")}let f=_=>{if(_.indexOf(this.formatSeparator)<0){let L=Ure(r,u,_,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(L,void 0,n,{...i,...r,interpolationkey:_}):L}let C=_.split(this.formatSeparator),b=C.shift().trim(),D=C.join(this.formatSeparator).trim();return this.format(Ure(r,u,b,this.options.keySeparator,this.options.ignoreJSONStructure),D,n,{...i,...r,interpolationkey:b})};this.resetRegExp();let h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:_=>l(_)},{regex:this.regexp,safeValue:_=>this.escapeValue?l(this.escape(_)):l(_)}].forEach(_=>{for(o=0;s=_.regex.exec(t);){let C=s[1].trim();if(a=f(C),a===void 0)if(typeof h=="function"){let D=h(t,s,i);a=typeof D=="string"?D:""}else if(i&&Object.prototype.hasOwnProperty.call(i,C))a="";else if(m){a=s[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${t}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=Bre(a));let b=_.safeValue(a);if(t=t.replace(s[0],b),m?(_.regex.lastIndex+=a.length,_.regex.lastIndex-=s[0].length):_.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,a;function o(u,l){let f=this.nestingOptionsSeparator;if(u.indexOf(f)<0)return u;let h=u.split(new RegExp(`${f}[ ]*{`)),m=`{${h[1]}`;u=h[0],m=this.interpolate(m,a);let y=m.match(/'/g),_=m.match(/"/g);(y&&y.length%2===0&&!_||_.length%2!==0)&&(m=m.replace(/'/g,'"'));try{a=JSON.parse(m),l&&(a={...l,...a})}catch(C){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,C),`${u}${f}${m}`}return delete a.defaultValue,u}for(;i=this.nestingRegexp.exec(t);){let u=[];a={...n},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let l=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){let f=i[1].split(this.formatSeparator).map(h=>h.trim());i[1]=f.shift(),u=f,l=!0}if(s=r(o.call(this,i[1].trim(),a),a),s&&i[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=Bre(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),l&&(s=u.reduce((f,h)=>this.format(f,h,n.lng,{...n,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}};function LFe(e){let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let i=n[1].substring(0,n[1].length-1);t==="currency"&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(a=>{if(!a)return;let[o,...u]=a.split(":"),l=u.join(":").trim().replace(/^'+|'+$/g,"");r[o.trim()]||(r[o.trim()]=l),l==="false"&&(r[o.trim()]=!1),l==="true"&&(r[o.trim()]=!0),isNaN(l)||(r[o.trim()]=parseInt(l,10))})}return{formatName:t,formatOptions:r}}function Jh(e){let t={};return function(n,i,s){let a=i+JSON.stringify(s),o=t[a];return o||(o=e(_S(i),s),t[a]=o),o(n)}}var MB=class{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Wo.create("formatter"),this.options=t,this.formats={number:Jh((r,n)=>{let i=new Intl.NumberFormat(r,{...n});return s=>i.format(s)}),currency:Jh((r,n)=>{let i=new Intl.NumberFormat(r,{...n,style:"currency"});return s=>i.format(s)}),datetime:Jh((r,n)=>{let i=new Intl.DateTimeFormat(r,{...n});return s=>i.format(s)}),relativetime:Jh((r,n)=>{let i=new Intl.RelativeTimeFormat(r,{...n});return s=>i.format(s,n.range||"day")}),list:Jh((r,n)=>{let i=new Intl.ListFormat(r,{...n});return s=>i.format(s)})},this.init(t)}init(t){let n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=Jh(r)}format(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((o,u)=>{let{formatName:l,formatOptions:f}=LFe(u);if(this.formats[l]){let h=o;try{let m=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},y=m.locale||m.lng||i.locale||i.lng||n;h=this.formats[l](o,y,{...f,...i,...m})}catch(m){this.logger.warn(m)}return h}else this.logger.warn(`there was no format function for ${l}`);return o},t)}};function FFe(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var qB=class extends Zh{constructor(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=Wo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,i.backend,i)}queueLoad(t,r,n,i){let s={},a={},o={},u={};return t.forEach(l=>{let f=!0;r.forEach(h=>{let m=`${l}|${h}`;!n.reload&&this.store.hasResourceBundle(l,h)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?a[m]===void 0&&(a[m]=!0):(this.state[m]=1,f=!1,a[m]===void 0&&(a[m]=!0),s[m]===void 0&&(s[m]=!0),u[h]===void 0&&(u[h]=!0)))}),f||(o[l]=!0)}),(Object.keys(s).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(u)}}loaded(t,r,n){let i=t.split("|"),s=i[0],a=i[1];r&&this.emit("failedLoading",s,a,r),n&&this.store.addResourceBundle(s,a,n),this.state[t]=r?-1:2;let o={};this.queue.forEach(u=>{SFe(u.loaded,[s],a),FFe(u,t),r&&u.errors.push(r),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(l=>{o[l]||(o[l]={});let f=u.loaded[l];f.length&&f.forEach(h=>{o[l][h]===void 0&&(o[l][h]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(u=>!u.done)}read(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:i,wait:s,callback:a});return}this.readingCalls++;let o=(l,f)=>{if(this.readingCalls--,this.waitingReads.length>0){let h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(l&&f&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,i+1,s*2,a)},s);return}a(l,f)},u=this.backend[n].bind(this.backend);if(u.length===2){try{let l=u(t,r);l&&typeof l.then=="function"?l.then(f=>o(null,f)).catch(o):o(null,l)}catch(l){o(l)}return}return u(t,r,o)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);let s=this.queueLoad(t,r,n,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(a=>{this.loadOne(a)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t.split("|"),i=n[0],s=n[1];this.read(i,s,"read",void 0,void 0,(a,o)=>{a&&this.logger.warn(`${r}loading namespace ${s} for language ${i} failed`,a),!a&&o&&this.logger.log(`${r}loaded namespace ${s} for language ${i}`,o),this.loaded(t,a,o)})}saveMissing(t,r,n,i,s){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){let u={...a,isUpdate:s},l=this.backend.create.bind(this.backend);if(l.length<6)try{let f;l.length===5?f=l(t,r,n,i,u):f=l(t,r,n,i),f&&typeof f.then=="function"?f.then(h=>o(null,h)).catch(o):o(null,f)}catch(f){o(f)}else l(t,r,n,i,o,u)}!t||!t[0]||this.store.addResource(t[0],r,n,i)}}};function Mre(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let r={};if(typeof t[1]=="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){let n=t[3]||t[2];Object.keys(n).forEach(i=>{r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:(e,t,r,n)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function qre(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function yS(){}function kFe(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var bS=class e extends Zh{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=qre(t),this.services={},this.logger=Wo,this.modules={external:[]},kFe(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));let i=Mre();this.options={...i,...this.options,...qre(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function s(f){return f?typeof f=="function"?new f:f:null}if(!this.options.isClone){this.modules.logger?Wo.init(s(this.modules.logger),this.options):Wo.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=MB);let h=new SS(this.options);this.store=new AS(this.options.resources,this.options);let m=this.services;m.logger=Wo,m.resourceStore=this.store,m.languageUtils=h,m.pluralResolver=new kB(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(m.formatter=s(f),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new UB(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new qB(s(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(y){for(var _=arguments.length,C=new Array(_>1?_-1:0),b=1;b<_;b++)C[b-1]=arguments[b];t.emit(y,...C)}),this.modules.languageDetector&&(m.languageDetector=s(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=s(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new CS(this.services,this.options),this.translator.on("*",function(y){for(var _=arguments.length,C=new Array(_>1?_-1:0),b=1;b<_;b++)C[b-1]=arguments[b];t.emit(y,...C)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,n||(n=yS),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});let u=yv(),l=()=>{let f=(h,m)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(m),n(h,m)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yS,i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();let s=[],a=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(l=>{l!=="cimode"&&s.indexOf(l)<0&&s.push(l)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>a(u)),this.options.preload&&this.options.preload.forEach(o=>a(o)),this.services.backendConnector.load(s,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(o)})}else n(null)}reloadResources(t,r,n){let i=yv();return t||(t=this.languages),r||(r=this.options.ns),n||(n=yS),this.services.backendConnector.reload(t,r,s=>{i.resolve(),n(s)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Vre.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){let n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;let i=yv();this.emit("languageChanging",t);let s=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},a=(u,l)=>{l?(s(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,i.resolve(function(){return n.t(...arguments)}),r&&r(u,function(){return n.t(...arguments)})},o=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let l=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);l&&(this.language||s(l),this.translator.language||this.translator.changeLanguage(l),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(l)),this.loadResources(l,f=>{a(f,l)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),i}getFixedT(t,r,n){var i=this;let s=function(a,o){let u;if(typeof o!="object"){for(var l=arguments.length,f=new Array(l>2?l-2:0),h=2;h<l;h++)f[h-2]=arguments[h];u=i.options.overloadTranslationOptionHandler([a,o].concat(f))}else u={...o};u.lng=u.lng||s.lng,u.lngs=u.lngs||s.lngs,u.ns=u.ns||s.ns,u.keyPrefix=u.keyPrefix||n||s.keyPrefix;let m=i.options.keySeparator||".",y;return u.keyPrefix&&Array.isArray(a)?y=a.map(_=>`${u.keyPrefix}${m}${_}`):y=u.keyPrefix?`${u.keyPrefix}${m}${a}`:a,i.t(y,u)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=r,s.keyPrefix=n,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=r.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;let a=(o,u)=>{let l=this.services.backendConnector.state[`${o}|${u}`];return l===-1||l===2};if(r.precheck){let o=r.precheck(this,a);if(o!==void 0)return o}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,t)&&(!i||a(s,t)))}loadNamespaces(t,r){let n=yv();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){let n=yv();typeof t=="string"&&(t=[t]);let i=this.options.preload||[],s=t.filter(a=>i.indexOf(a)<0);return s.length?(this.options.preload=i.concat(s),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new SS(Mre());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new e(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yS,n=t.forkResourceStore;n&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},s=new e(i);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(o=>{s[o]=this[o]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},n&&(s.store=new AS(this.store.data,i),s.services.resourceStore=s.store),s.translator=new CS(s.services,i),s.translator.on("*",function(o){for(var u=arguments.length,l=new Array(u>1?u-1:0),f=1;f<u;f++)l[f-1]=arguments[f];s.emit(o,...l)}),s.init(i,r),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},ri=bS.createInstance();ri.createInstance=bS.createInstance;var bdt=ri.createInstance,Ddt=ri.dir,wdt=ri.init,Tdt=ri.loadResources,Idt=ri.reloadResources,Rdt=ri.use,Ndt=ri.changeLanguage,Odt=ri.getFixedT,Pdt=ri.t,Bdt=ri.exists,Ldt=ri.setDefaultNamespace,Fdt=ri.hasLoadedNamespace,kdt=ri.loadNamespaces,Udt=ri.loadLanguages;d();d();import{useContext as eke}from"react";d();var tne=Ce(Hre(),1);import zFe,{isValidElement as IS,cloneElement as KFe,createElement as TS,Children as $Fe}from"react";d();var zre=Ce(Wre()),UFe=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function Qre(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(zre.default[r[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("-->");return{type:"comment",comment:n!==-1?e.slice(4,n):""}}for(var i=new RegExp(UFe),s=null;(s=i.exec(e))!==null;)if(s[0].trim())if(s[1]){var a=s[1].trim(),o=[a,""];a.indexOf("=")>-1&&(o=a.split("=")),t.attrs[o[0]]=o[1],i.lastIndex--}else s[2]&&(t.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return t}var MFe=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,qFe=/^\s*$/,jFe=Object.create(null);function Kre(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(r){var n=[];for(var i in r)n.push(i+'="'+r[i]+'"');return n.length?" "+n.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(Kre,"")+"</"+t.name+">";case"comment":return e+"<!--"+t.comment+"-->"}}var VFe={parse:function(e,t){t||(t={}),t.components||(t.components=jFe);var r,n=[],i=[],s=-1,a=!1;if(e.indexOf("<")!==0){var o=e.indexOf("<");n.push({type:"text",content:o===-1?e:e.substring(0,o)})}return e.replace(MFe,function(u,l){if(a){if(u!=="</"+r.name+">")return;a=!1}var f,h=u.charAt(1)!=="/",m=u.startsWith("<!--"),y=l+u.length,_=e.charAt(y);if(m){var C=Qre(u);return s<0?(n.push(C),n):((f=i[s]).children.push(C),n)}if(h&&(s++,(r=Qre(u)).type==="tag"&&t.components[r.name]&&(r.type="component",a=!0),r.voidElement||a||!_||_==="<"||r.children.push({type:"text",content:e.slice(y,e.indexOf("<",y))}),s===0&&n.push(r),(f=i[s-1])&&f.children.push(r),i[s]=r),(!h||r.voidElement)&&(s>-1&&(r.voidElement||r.name===u.slice(2,-1))&&(s--,r=s===-1?n:i[s]),!a&&_!=="<"&&_)){f=s===-1?n:i[s].children;var b=e.indexOf("<",y),D=e.slice(y,b===-1?void 0:b);qFe.test(D)&&(D=" "),(b>-1&&s+f.length>=0||D!==" ")&&f.push({type:"text",content:D})}}),n},stringify:function(e){return e.reduce(function(t,r){return t+Kre("",r)},"")}},$re=VFe;d();function xv(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}var Yre={};function em(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&Yre[t[0]]||(typeof t[0]=="string"&&(Yre[t[0]]=new Date),xv(...t))}var Xre=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}};function HB(e,t,r){e.loadNamespaces(t,Xre(e,r))}function GB(e,t,r,n){typeof r=="string"&&(r=[r]),r.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Xre(e,n))}function HFe(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=t.languages[0],i=t.options?t.options.fallbackLng:!1,s=t.languages[t.languages.length-1];if(n.toLowerCase()==="cimode")return!0;let a=(o,u)=>{let l=t.services.backendConnector.state[`${o}|${u}`];return l===-1||l===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(n,e)&&(!i||a(s,e)))}function Jre(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(em("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(i,s)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,e))return!1}}):HFe(e,t,r)}d();d();var GFe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,WFe={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},QFe=e=>WFe[e],Zre=e=>e.replace(GFe,QFe);var WB={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Zre};function DS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};WB={...WB,...e}}function tm(){return WB}d();var ene;function wS(e){ene=e}function Vu(){return ene}function QB(e,t){if(!e)return!1;let r=e.props?e.props.children:e.children;return t?r.length>0:!!r}function zB(e){if(!e)return[];let t=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?rm(t):t}function YFe(e){return Object.prototype.toString.call(e)!=="[object Array]"?!1:e.every(t=>IS(t))}function rm(e){return Array.isArray(e)?e:[e]}function XFe(e,t){let r={...t};return r.props=Object.assign(e.props,t.props),r}function KB(e,t){if(!e)return"";let r="",n=rm(e),i=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return n.forEach((s,a)=>{if(typeof s=="string")r+=`${s}`;else if(IS(s)){let o=Object.keys(s.props).length,u=i.indexOf(s.type)>-1,l=s.props.children;if(!l&&u&&o===0)r+=`<${s.type}/>`;else if(!l&&(!u||o!==0))r+=`<${a}></${a}>`;else if(s.props.i18nIsDynamicList)r+=`<${a}></${a}>`;else if(u&&o===1&&typeof l=="string")r+=`<${s.type}>${l}</${s.type}>`;else{let f=KB(l,t);r+=`<${a}>${f}</${a}>`}}else if(s===null)xv("Trans: the passed in value is invalid - seems you passed in a null child.");else if(typeof s=="object"){let{format:o,...u}=s,l=Object.keys(u);if(l.length===1){let f=o?`${l[0]}, ${o}`:l[0];r+=`{{${f}}}`}else xv("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",s)}else xv("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",s)}),r}function JFe(e,t,r,n,i,s){if(t==="")return[];let a=n.transKeepBasicHtmlNodesFor||[],o=t&&new RegExp(a.map(b=>`<${b}`).join("|")).test(t);if(!e&&!o&&!s)return[t];let u={};function l(b){rm(b).forEach(L=>{typeof L!="string"&&(QB(L)?l(zB(L)):typeof L=="object"&&!IS(L)&&Object.assign(u,L))})}l(e);let f=$re.parse(`<0>${t}</0>`),h={...u,...i};function m(b,D,L){let F=zB(b),q=_(F,D.children,L);return YFe(F)&&q.length===0||b.props&&b.props.i18nIsDynamicList?F:q}function y(b,D,L,F,q){b.dummy?(b.children=D,L.push(KFe(b,{key:F},q?void 0:D))):L.push(...$Fe.map([b],M=>{let k={...M.props};return delete k.i18nIsDynamicList,zFe.createElement(M.type,(0,tne.default)({},k,{key:F,ref:M.ref},q?{}:{children:D}))}))}function _(b,D,L){let F=rm(b);return rm(D).reduce((M,k,te)=>{let ce=k.children&&k.children[0]&&k.children[0].content&&r.services.interpolator.interpolate(k.children[0].content,h,r.language);if(k.type==="tag"){let ne=F[parseInt(k.name,10)];L.length===1&&!ne&&(ne=L[0][k.name]),ne||(ne={});let pe=Object.keys(k.attrs).length!==0?XFe({props:k.attrs},ne):ne,Q=IS(pe),be=Q&&QB(k,!0)&&!k.voidElement,Ie=o&&typeof pe=="object"&&pe.dummy&&!Q,et=typeof e=="object"&&e!==null&&Object.hasOwnProperty.call(e,k.name);if(typeof pe=="string"){let j=r.services.interpolator.interpolate(pe,h,r.language);M.push(j)}else if(QB(pe)||be){let j=m(pe,k,L);y(pe,j,M,te)}else if(Ie){let j=_(F,k.children,L);y(pe,j,M,te)}else if(Number.isNaN(parseFloat(k.name)))if(et){let j=m(pe,k,L);y(pe,j,M,te,k.voidElement)}else if(n.transSupportBasicHtmlNodes&&a.indexOf(k.name)>-1)if(k.voidElement)M.push(TS(k.name,{key:`${k.name}-${te}`}));else{let j=_(F,k.children,L);M.push(TS(k.name,{key:`${k.name}-${te}`},j))}else if(k.voidElement)M.push(`<${k.name} />`);else{let j=_(F,k.children,L);M.push(`<${k.name}>${j}</${k.name}>`)}else if(typeof pe=="object"&&!Q){let j=k.children[0]?ce:null;j&&M.push(j)}else y(pe,ce,M,te,k.children.length!==1||!ce)}else if(k.type==="text"){let ne=n.transWrapTextNodes,pe=s?n.unescape(r.services.interpolator.interpolate(k.content,h,r.language)):r.services.interpolator.interpolate(k.content,h,r.language);ne?M.push(TS(ne,{key:`${k.name}-${te}`},pe)):M.push(pe)}return M},[])}let C=_([{dummy:!0,children:e||[]}],f,rm(e||[]));return zB(C[0])}function $B(e){let{children:t,count:r,parent:n,i18nKey:i,context:s,tOptions:a={},values:o,defaults:u,components:l,ns:f,i18n:h,t:m,shouldUnescape:y,..._}=e,C=h||Vu();if(!C)return em("You will need to pass in an i18next instance by using i18nextReactModule"),t;let b=m||C.t.bind(C)||(be=>be);s&&(a.context=s);let D={...tm(),...C.options&&C.options.react},L=f||b.ns||C.options&&C.options.defaultNS;L=typeof L=="string"?[L]:L||["translation"];let F=KB(t,D),q=u||F||D.transEmptyNodeValue||i,{hashTransKey:M}=D,k=i||(M?M(F||q):F||q);C.options&&C.options.interpolation&&C.options.interpolation.defaultVariables&&(o=o&&Object.keys(o).length>0?{...o,...C.options.interpolation.defaultVariables}:{...C.options.interpolation.defaultVariables});let te=o?a.interpolation:{interpolation:{...a.interpolation,prefix:"#$?",suffix:"?$#"}},ce={...a,count:r,...o,...te,defaultValue:q,ns:L},ne=k?b(k,ce):q,pe=JFe(l||t,ne,C,D,ce,y),Q=n!==void 0?n:D.defaultTransParent;return Q?TS(Q,_,pe):pe}d();import{createContext as ZFe}from"react";d();var RS={type:"3rdParty",init(e){DS(e.options.react),wS(e)}};var yl=ZFe(),NS=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};function Rt(e){let{children:t,count:r,parent:n,i18nKey:i,context:s,tOptions:a={},values:o,defaults:u,components:l,ns:f,i18n:h,t:m,shouldUnescape:y,..._}=e,{i18n:C,defaultNS:b}=eke(yl)||{},D=h||C||Vu(),L=m||D&&D.t.bind(D);return $B({children:t,count:r,parent:n,i18nKey:i,context:s,tOptions:a,values:o,defaults:u,components:l,ns:f||L&&L.ns||b||D&&D.options&&D.options.defaultNS,i18n:D,t:m,shouldUnescape:y,..._})}d();import{useState as tke,useEffect as YB,useContext as rke,useRef as XB}from"react";var nke=(e,t)=>{let r=XB();return YB(()=>{r.current=t?r.current:e},[e,t]),r.current};function fr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{i18n:r}=t,{i18n:n,defaultNS:i}=rke(yl)||{},s=r||n||Vu();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new NS),!s){em("You will need to pass in an i18next instance by using initReactI18next");let F=(M,k)=>typeof k=="string"?k:k&&typeof k=="object"&&typeof k.defaultValue=="string"?k.defaultValue:Array.isArray(M)?M[M.length-1]:M,q=[F,{},!1];return q.t=F,q.i18n={},q.ready=!1,q}s.options.react&&s.options.react.wait!==void 0&&em("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let a={...tm(),...s.options.react,...t},{useSuspense:o,keyPrefix:u}=a,l=e||i||s.options&&s.options.defaultNS;l=typeof l=="string"?[l]:l||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(l);let f=(s.isInitialized||s.initializedStoreOnce)&&l.every(F=>Jre(F,s,a));function h(){return s.getFixedT(t.lng||null,a.nsMode==="fallback"?l:l[0],u)}let[m,y]=tke(h),_=l.join();t.lng&&(_=`${t.lng}${_}`);let C=nke(_),b=XB(!0);YB(()=>{let{bindI18n:F,bindI18nStore:q}=a;b.current=!0,!f&&!o&&(t.lng?GB(s,t.lng,l,()=>{b.current&&y(h)}):HB(s,l,()=>{b.current&&y(h)})),f&&C&&C!==_&&b.current&&y(h);function M(){b.current&&y(h)}return F&&s&&s.on(F,M),q&&s&&s.store.on(q,M),()=>{b.current=!1,F&&s&&F.split(" ").forEach(k=>s.off(k,M)),q&&s&&q.split(" ").forEach(k=>s.store.off(k,M))}},[s,_]);let D=XB(!0);YB(()=>{b.current&&!D.current&&y(h),D.current=!1},[s,u]);let L=[m,s,f];if(L.t=m,L.i18n=s,L.ready=f,f||!f&&!o)return L;throw new Promise(F=>{t.lng?GB(s,t.lng,l,()=>F()):HB(s,l,()=>F())})}d();import{createElement as Rht,forwardRef as Nht}from"react";d();d();import{createElement as ske,useMemo as ake}from"react";function JB(e){let{i18n:t,defaultNS:r,children:n}=e,i=ake(()=>({i18n:t,defaultNS:r}),[t,r]);return ske(yl.Provider,{value:i},n)}d();import{createElement as $ht}from"react";d();import{useContext as Ght}from"react";function OS(e){let t={lng:"en",resources:{en:{translation:e}},keySeparator:!1,react:{defaultTransParent:de}},r=new Pre,n=ri.createInstance(t);return n.use(r),n.use(RS),n.init(),n}d();import cke,{useState as lke}from"react";var rf=({children:e,messages:t,i18n:r})=>{let[n]=lke(()=>r??OS(t));return cke.createElement(JB,{i18n:n},e)};d();d();import pke,{createContext as fke,useContext as dke}from"react";var rne=fke(null),ZB=function({children:e,value:t}){return pke.createElement(rne.Provider,{value:t},e)},Ev=()=>{let e=dke(rne);if(e===null)throw new Error("useBiLogger() cannot be used without an <BiProvider>");return e};d();function eL(e){return{evid:5212,src:11,endpoint:"wix-cli",params:e}}function nne(e){return{evid:5208,src:11,endpoint:"wix-cli",params:e}}function tL(e){return{evid:5201,src:11,endpoint:"wix-cli",params:e}}function ine(e){return{evid:5209,src:11,endpoint:"wix-cli",params:e}}function sne(e){return{evid:5211,src:11,endpoint:"wix-cli",params:e}}function ane(e){return{evid:5210,src:11,endpoint:"wix-cli",params:e}}function one(e){return{evid:5200,src:11,endpoint:"wix-cli",params:e}}var Tne=Ce(St(),1);var une={"login.instructions_title":"Authorize the CLI to access your Wix account:","login.instructions_details":`1. Copy this code to the clipboard: <0>{code}</0>
|
|
224
|
-
2. Press <1/> to connect to <2/> then paste the code`,"login.legacy_auth_notice":"We implemented a new and more secure login method. You'll need to re-login to continue using the CLI.","login.error_opening_browser":"Failed to open browser, please try opening <0/> manually."};d();import is,{useState as Dke}from"react";d();var bne=Ce(Ane(),1);d();var Cne=Ce(jg(),1);async function Sne(e,t){await(0,Cne.createHttpClient)().post(e,void 0,{params:{url:t}})}async function xl(e){let{userBrowserTestEndpoint:t}=Pn();t?await Sne(t,e):await(0,bne.default)(e,{background:!0})}var Dne=({userCode:e,verificationUri:t})=>{let{reportError:r}=xp(),[n,i]=Dke(null);return ci((s,a)=>{a.return&&xl(t).catch(o=>{r(o),i(o)})}),is.createElement(is.Fragment,null,is.createElement(Rt,{i18nKey:"login.instructions_title"}),is.createElement(ke,{flexDirection:"column",marginTop:1,marginBottom:1,marginLeft:2},is.createElement(Rt,{i18nKey:"login.instructions_details",components:[is.createElement(de,{skin:"legacyBlue"}),is.createElement(Oa,{value:"enter"}),is.createElement(bi,{url:t})],values:{code:e}})),n&&is.createElement(is.Fragment,null,is.createElement(ke,{flexDirection:"column",marginBottom:1},is.createElement(yp,{error:n})),is.createElement(Rt,{i18nKey:"login.error_opening_browser",components:[is.createElement(bi,{url:t})]})))};var Ine=({loginFn:e,onLogin:t,onError:r})=>{let n=Ev();function i(o){n.report(eL({isSuccess:!1,...o instanceof Error?{errorType:o.name}:{errorType:"unknown",errorMessage:JSON.stringify(o)}})),r(o)}let s=Us(async({signal:o},u)=>{try{let l=await e({deviceCode:u,signal:o});n.report(eL({isSuccess:!0})),t(l)}catch(l){i(l)}}),{status:a}=en(async()=>(n.report(sne({})),Yh.requestDeviceCode()),[],{onSuccess:o=>{s.execute(o)},onError:i});return(0,Tne.match)(a,{Error:()=>null,Loading:()=>wne.createElement(Zr,null),Success:({result:{userCode:o,verificationUri:u}})=>wne.createElement(Dne,{userCode:o,verificationUri:u})})};d();import Bne from"react";d();var One=Ce(St(),1);import US from"react";d();var Rne=Ce(St(),1);import kS from"react";var Nne=({children:e})=>{let{status:t}=en(sS,[],{onError:()=>{}});return(0,Rne.match)(t,{Error:()=>null,Loading:()=>null,Success:({result:r})=>kS.createElement(kS.Fragment,null,r&&kS.createElement(ke,{marginBottom:1},kS.createElement(Rt,{i18nKey:"login.legacy_auth_notice"})),e)})};var Pne=({authStrategy:{login:e,isLoggedIn:t},onLogin:r,onError:n,children:i})=>{let{status:s,merge:a}=en(t,[],{onSuccess:o=>{o&&r(o)},onError:n});return(0,One.match)(s,{Loading:()=>US.createElement(Zr,null),Error:()=>null,Success:({result:o})=>o===null?US.createElement(rf,{messages:une},US.createElement(Nne,null,US.createElement(Ine,{loginFn:e,onLogin:u=>{a({result:u}),r(u)},onError:n}))):i(o)})};var cL=({children:e,onError:t,onLogin:r})=>{let n=ks();return Bne.createElement(Pne,{authStrategy:oS,onLogin:({userInfo:i})=>r?.(i),onError:t??n},i=>Bne.createElement(uS.Provider,{value:{userInfo:i.userInfo,accessToken:i.accessToken}},e))};var{isLoggedIn:Lne}=oS;d();d();import{randomUUID as wke}from"node:crypto";function _v(e,t){e.updateDefaults(Tke(t))}function Tke(e){return e?{_client_id:e,_uuid:e,logged_user_id:e,logged_account_id:e,target_account_id:e}:{_client_id:wke()}}d();import{uptime as Pke}from"node:process";d();var Fne=Ce(SD(),1);import Ike from"node:os";import{platform as Rke,version as Nke}from"node:process";function kne({cliVersion:e,flow:t}){return{...t?{flow:t}:{},cliVersion:e,isCI:Fne.default,nodeVersion:Nke,osName:Oke(),osVersion:Ike.release()}}function Oke(){switch(Rke){case"darwin":return"mac";case"win32":return"windows";default:return"linux"}}var Une=()=>Math.round(Pke()*1e3);function lL({biLogger:e,command:t,flow:r,cliVersion:n}){let i={command:t.name(),arguments:t.args.join(",")??"",flags:Object.keys(t.opts()).join(",")};return e.report(one({...kne({cliVersion:n,flow:r}),...i,isValid:!0})),{succeed(){e.report(tL({...i,duration:Une(),isSuccess:!0,isValid:!0}))},failed(s){let a=kl(s)?{errorType:Hf(s)?"SystemError":"UserError",errorName:s.name,errorMessage:s.message}:s instanceof Error?{errorType:"UnknownError",errorName:s.name,errorMessage:s.message}:{errorType:"UnknownError",errorMessage:JSON.stringify(s)};e.report(tL({...i,...a,duration:Une(),isSuccess:!1,isValid:!0}))}}}var MS={"create_version_command_def.option.version_type":"The type of version you would like to create","create_version_command_def.option.approve_preview":"Approve preview automatically","create_version_command_def.option.base_url":"The base url for when static files have been uploaded to an external cdn","dev_command_def.option.https":"Start local dev server on https","app_preview_command_def.option.site":"The site id to use for Application Preview urls, defaults to the current selected development site","app_preview_command_def.option.base_url":"The base url for when static files have been uploaded to an external cdn","app_preview_command_def.option.no_input":"Disable command interactivity","general.loading":"Loading...","general.no_site_id_configured":"You don't have a Development Site currently configured","general.site_id_not_found":`Your currently configured Development Site was not found ({id})
|
|
225
|
-
This may happen because the site was deleted or your access has been revoked.
|
|
226
|
-
|
|
227
|
-
Please select another Development Site to continue`,"general.dashboard_page_text":"<0>Click here</0> to open your application in the Wix Dashboard","general.dashboard_page_click_here":"Click here","general.close_screen":"Press <0/> to close","general.write_dev_log_failure.message":"Can not write logs to <0>{path}</0>","general.write_dev_log_failure.hint":"Make sure the file has proper permissions and is accessible","preview_command.creating_preview":"Creating a preview...","preview_command.creating_preview_success":"Preview created successfully!","preview_command.uploading_files":"Uploading your application files...","preview_command.uploading_files_success":"Uploaded successfully!","dev_command.dev_environment.loading":"Starting dev environment...","dev_command.dev_environment.started":"Local development environment ready.","dev_command.dev_environment.url":"Application served on <0/>","dev_command.dev_environment.https_url.open_info":"Press <0/> to open & approve dev server","dev_command.dev_environment.https_url.failed_to_open":"Unable to open <0/> for approving selfsigned certificate. Please manually access the link.","dev_command.dev_site.current":"Current Development Site: {name}","dev_command.dev_site.change":"Press <0/> to change your current Development Site","dev_command.site_selector.error":"Failed to change Development Site!","dev_command.dashboard_pages.open_page_error":"Failed to open the browser for <0>{title}</0>, use the following URL to open it in your browser:","dev_command.dashboard_pages_screen.select_label":"Select a dashboard page to open","dev_command.dashboard_pages_viewer.title":"Press a number key to open a dashboard page:","dev_command.dashboard_pages_viewer.show_more":"View more...","dev_command.dev_env_logs.title":"Dev Environment Logs: <0>(full logs at {path})</0>","dev_command.dev_env_logs.empty":"No logs to show","dev_command.config_change":"Loading App Manifest changes...","dev_command.config_update":"App Manifest updated. Refresh existing browser tabs to view the latest changes.","dev_command.config_didnt_update":"No App Manifest update occurred","serve_command.starting_serve_environment":"Starting serve environment...","serve_command.starting_serve_environment_success":"Serve environment started! <0/>","create_version_command.creating_version":"Creating a version...","create_version_command.creating_version_success":"Successfully created v{version}","create_version_command.creating_version_success_publish_message":"Go ahead and publish it at <0/>","create_version_command.current_version":"Your current version is: v{version}","create_version_command.confirm_publish":"Continue with publish?","create_version_command.confirm_publish_aborted":"Publishing aborted","create_version_command.version_type_question":"What type of version would you like to create?","create_version_command.version_type_question_minor":"Minor (v{version})","create_version_command.version_type_question_major":"Major (v{version})","create_version_command.check_preview_before_version_release":"Before creating a new version, let's create a preview of your app"};async function Lke({biLogger:e,errorReporter:t}){let r=await Nu(Mne());t.setContext("app info",{appId:r.config.appId,...r.config.projectId?{projectId:r.config.projectId}:{}}),e.updateDefaults({_appId:r.config.appId})}async function El(e,{biLogger:t,errorReporter:r},n,i){await Av(e,{biLogger:t,errorReporter:r},async()=>{let s=await Nu(Mne()),a=AV(s.projectFolder);await tT(im.createElement(ZB,{value:t},im.createElement(zT,{value:r},im.createElement(cL,{onLogin:u=>{r.setUser({id:u.userId}),_v(t,u.userId)}},im.createElement(rf,{messages:MS},im.createElement(mV,{filePath:a},im.createElement(dK,{value:s,watchForChanges:i?.watchForModelChanges},n)))))))})}async function Av(e,t,r){await Lke(t);let n=lL({biLogger:t.biLogger,command:e,cliVersion:Hy,flow:"Apps"});try{await r(),n.succeed()}catch(i){throw n.failed(i),i}}var qne=e=>Ps("build").action(async(t,r)=>{await Av(r,e,Uke)});async function Uke(){let e=await Nu(Fke());$C(e.components);let t=await kke(await Gh(e,{type:"build"})).catch(()=>{throw new we({code:Re.FailedToBuildApp()})}),r=YC({appId:e.config.appId,components:e.components,sentryDSN:e.config.sentryDSN,componentSourceBuilder:XC(e,t)});await gte({projectFolder:e.projectFolder,manifest:r})}d();import bL from"react";d();d();var Zie=Ce(St(),1);import CL,{useState as K3e}from"react";d();import Sr from"react";d();d();var vL=Ce(St(),1);import zS,{useCallback as Oie}from"react";d();d();d();var Mke={},qke={sites:"_site"},jke={createdDate:"google.protobuf.Timestamp",updatedDate:"google.protobuf.Timestamp",trashedDate:"google.protobuf.Timestamp"};function Vke(e){var t={"www._base_domain_":[{srcPath:"/_api/sites-list",destPath:"/api"},{srcPath:"/_api/sites-list/v2/sites",destPath:"/v2/sites"}],"feedback._base_domain_":[{srcPath:"/_api/sites-list",destPath:"/api"}],"manage._base_domain_":[{srcPath:"/_api/sites-list",destPath:"/api"},{srcPath:"/_api/sites-list/v2/sites",destPath:"/v2/sites"},{srcPath:"/_api/sites-list-data",destPath:"/api/sites-list-data"}],"www.wixapis.com":[{srcPath:"/site-list/v2/sites",destPath:"/v2/sites"}],"api._api_base_domain_":[{srcPath:"/sites-list",destPath:""}],"bo._base_domain_":[{srcPath:"/_api/sites-list/v2/sites",destPath:"/v2/sites"}],"dev._base_domain_":[{srcPath:"/_api/sites-list/v2/sites",destPath:"/v2/sites"}]};return ca(Object.assign(e,{domainToMappings:t}))}function pL(e){var t=xt(Mke,{}),r=t.toJSON,n=t.fromJSON,i=xt(qke,{_site:jke}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.site_list.v2.site",method:"POST",methodFqn:"com.wixpress.sitelist.api.SiteListServiceV2.QuerySites",url:Vke({protoPath:"/v2/sites/query",data:u,host:o}),data:u,transformResponse:i};return l}return s.fromReq=n,s}d();var Hke=G.object({id:G.string(),displayName:G.string(),viewUrl:G.union([G.string().url(),G.literal("")])}),fL=G.object({sites:G.array(Hke)});var nf=class{constructor(t){this.httpClient=t;let{minRetryTimeout:r}=Pn();this.retryOptions={retries:3,minTimeout:r,maxTimeout:3*1e3}}retryOptions;querySites=async(t={})=>{try{let{data:r}=await sn(()=>this.httpClient.request(pL(t)),this.retryOptions);return fL.parse(r).sites}catch(r){throw new we({code:Re.FailedToQuerySites(),cause:r,info:{...t}})}};getSite=async t=>{try{let{data:r}=await sn(()=>this.httpClient.request(pL({query:{filter:{id:{$in:[t]}}}})),this.retryOptions),{sites:n}=fL.parse(r);return n.at(0)??null}catch(r){throw new we({code:Re.FailedToGetSite(),cause:r,info:{id:t}})}}};d();import{useMemo as zke}from"react";d();d();import{useMemo as Gke,useRef as Wke,useEffect as Qke}from"react";function Ka({type:e}){let{accessToken:t}=EB(),r=Wke(t);return Qke(()=>{r.current=t},[t]),Gke(()=>gp({type:e,getAppToken:()=>r.current}),[e])}function Cv(){let e=Ka({type:"backoffice"});return zke(()=>new nf(e),[e])}d();async function Sv(e,t){let r=$T(e);if(!await Qs(r))return null;try{let i=await Du(r),s=await IV.safeParseAsync(i);return s.success?s.data:null}catch(i){return t?.(i),null}}async function qS(e,t){let n={...await Sv(e)??{},...t};await rh($T(e),n)}d();var GS=Ce(St(),1);import Rv from"react";d();d();var Nie=Ce(St(),1);import af,{useState as m3e}from"react";d();d();d();var jne={actionConfig:"_actionSPIConfig"},Vne={icon:"_commonImage"},Hne={requiredSettings:"google.protobuf.FieldMask",adminConfigurableSettings:"google.protobuf.FieldMask"};var Gne={expectedInputs:"_expectedInputs"};var Wne={urlExpirationDate:"google.protobuf.Timestamp"},Qne={compData:"_componentData"},zne={widgetComponentData:"_widgetComponentData",widgetOutOfIframeData:"_widgetOutOfIframeComponentData",studioWidgetComponentData:"_studioWidgetComponentData",shippingLabelCarrier:"_shippingLabelCarrierSpiConfig",fictionalShippingProvider:"_shippingProviderConfig",automationsActionProvider:"_actionProviderSPIConfig",identityAuthenticator:"_authenticatorConfig"},Kke={},$ke={};var Kne={presetsEditorPresence:"_presetEditorPresence"},$ne={expectedStartInputs:"_predefinedExpectedInput",expectedVerifyInputs:"_predefinedExpectedInput"};var Yke={dateCreated:"google.protobuf.Timestamp",components:"_component"},Xke={};var Jke={dateCreated:"google.protobuf.Timestamp",components:"_component"};var Zke={},e3e={apps:"_getAppInfoResponse"};var Yne={urlExpirationDate:"google.protobuf.Timestamp"};var Xne={width:"DOUBLE",length:"DOUBLE",height:"google.protobuf.DoubleValue"},Jne={dimension:"_packageDimension",image:"_image"};var Zne={configuration:"_predefinedExpectedInputConfiguration"},eie={textInput:"_adminConfigurableTextInput"},tie={wixMediaThumbnail:"_commonImage"};var rie={packageTypes:"_packageType"},nie={shippingPrice:"DOUBLE"},iie={widgetDisplay:"_widgetDisplay",editorPresence:"_editorPresence"};var sie={widgetDisplay:"_widgetDisplay"},aie={price:"google.protobuf.FloatValue"},oie={widgetData:"_widgetComponentData"};function bv(e){var t={"api._api_base_domain_":[{srcPath:"/app-service-webapp",destPath:""}],"dev._base_domain_":[{srcPath:"/_api/app-service",destPath:"/api"},{srcPath:"/_api/app-service-webapp",destPath:""}],"editor._base_domain_":[{srcPath:"/_api/app-service",destPath:"/api"},{srcPath:"/_api/app-service-webapp",destPath:""}],"blocks._base_domain_":[{srcPath:"/_api/app-service",destPath:"/api"},{srcPath:"/_api/app-service-webapp",destPath:""}],"create.editorx":[{srcPath:"/_api/app-service",destPath:"/api"},{srcPath:"/_api/app-service-webapp",destPath:""}],"bo._base_domain_":[{srcPath:"/_api/app-service",destPath:"/api"},{srcPath:"/_api/app-service-webapp",destPath:""},{srcPath:"/app-service-webapp",destPath:"/api"}],"manage._base_domain_":[{srcPath:"/_api/app-service",destPath:"/api"},{srcPath:"/_api/app-service-webapp",destPath:""}],"www._base_domain_":[{srcPath:"/_api/app-service",destPath:"/api"},{srcPath:"/_api/app-service-webapp",destPath:""}]};return ca(Object.assign(e,{domainToMappings:t}))}function uie(e){var t=xt(Kke,{}),r=t.toJSON,n=t.fromJSON,i=xt($ke,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.devcenter.apps.v1.app",method:"POST",methodFqn:"com.wixpress.appservice.api.Apps.Create",url:bv({protoPath:"/v1/apps",data:u,host:o}),data:u,transformResponse:i};return l}return s.fromReq=n,s.__isAmbassador=!0,s}function cie(e){var t=xt(Xke,{}),r=t.toJSON,n=t.fromJSON,i=xt(Jke,{_actionProviderSPIConfig:jne,_actionSPIConfig:Vne,_adminConfigurableTextInput:Hne,_authenticatorConfig:Gne,_commonImage:Wne,_component:Qne,_componentData:zne,_editorPresence:Kne,_expectedInputs:$ne,_image:Yne,_packageDimension:Xne,_packageType:Jne,_predefinedExpectedInput:Zne,_predefinedExpectedInputConfiguration:eie,_presetEditorPresence:tie,_shippingLabelCarrierSpiConfig:rie,_shippingProviderConfig:nie,_studioWidgetComponentData:iie,_widgetComponentData:sie,_widgetDisplay:aie,_widgetOutOfIframeComponentData:oie}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.devcenter.apps.v1.app",method:"GET",methodFqn:"com.wixpress.appservice.api.Apps.GetAppSnapshot",url:bv({protoPath:"/v1/apps/{appId}",data:u,host:o}),params:Fi(u),transformResponse:i,fallback:[{method:"GET",url:bv({protoPath:"/v1/apps/{appId}",data:u,host:o}),params:Fi(u)}]};return l}return s.fromReq=n,s.__isAmbassador=!0,s}function lie(e){var t=xt(Zke,{}),r=t.toJSON,n=t.fromJSON,i=xt(e3e,{_actionProviderSPIConfig:jne,_actionSPIConfig:Vne,_adminConfigurableTextInput:Hne,_authenticatorConfig:Gne,_commonImage:Wne,_component:Qne,_componentData:zne,_editorPresence:Kne,_expectedInputs:$ne,_getAppInfoResponse:Yke,_image:Yne,_packageDimension:Xne,_packageType:Jne,_predefinedExpectedInput:Zne,_predefinedExpectedInputConfiguration:eie,_presetEditorPresence:tie,_shippingLabelCarrierSpiConfig:rie,_shippingProviderConfig:nie,_studioWidgetComponentData:iie,_widgetComponentData:sie,_widgetDisplay:aie,_widgetOutOfIframeComponentData:oie}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.devcenter.apps.v1.app",method:"GET",methodFqn:"com.wixpress.appservice.api.Apps.GetDeveloperApps",url:bv({protoPath:"/v1/apps",data:u,host:o}),params:Fi(u),transformResponse:i,fallback:[{method:"GET",url:bv({protoPath:"/v1/apps",data:u,host:o}),params:Fi(u)}]};return l}return s.fromReq=n,s.__isAmbassador=!0,s}d();var t3e={},r3e={};var n3e={},i3e={},s3e={},a3e={};function dL(e){var t={"api._api_base_domain_":[{srcPath:"/development-sites-manager",destPath:""}],"manage._base_domain_":[{srcPath:"/development-sites-manager",destPath:""},{srcPath:"/_api/development-sites-manager",destPath:""}],"bo._base_domain_":[{srcPath:"/development-sites-manager",destPath:""}],"www.wixapps.net":[{srcPath:"/development-sites-manager/v1/development-sites",destPath:""}],"dev._base_domain_":[{srcPath:"/development-sites-manager",destPath:""}],"www.wixapis.com":[{srcPath:"/development-sites-manager/v1/development-sites",destPath:""}]};return ca(Object.assign(e,{domainToMappings:t}))}function pie(e){var t=xt(t3e,{}),r=t.toJSON,n=t.fromJSON,i=xt(r3e,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={method:"POST",url:dL({protoPath:"/v1/development-sites",data:u,host:o}),data:u,transformResponse:i};return l}return s.fromReq=n,s}function fie(e){var t=xt(s3e,{}),r=t.toJSON,n=t.fromJSON,i=xt(a3e,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={method:"GET",url:dL({protoPath:"/v1/development-sites",data:u,host:o}),params:Fi(u),transformResponse:i};return l}return s.fromReq=n,s}function die(e){var t=xt(n3e,{}),r=t.toJSON,n=t.fromJSON,i=xt(i3e,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={method:"GET",url:dL({protoPath:"/v1/development-sites-limit",data:u,host:o}),params:Fi(u),transformResponse:i};return l}return s.fromReq=n,s}d();var hie=G.object({appId:G.string()}),mie=G.object({latestVersion:G.string()}),gie=G.object({developmentSite:G.object({id:G.string(),siteName:G.string()})}),vie=G.object({developmentSites:G.array(G.object({}))}),yie=G.object({limit:G.number()}),o3e=G.object({name:G.string(),appId:G.string()}),xie=G.object({apps:G.array(o3e)});var u3e="a573279f-ae6f-46d1-8556-7c93ae9b2c84",jS=class{constructor(t){this.httpClient=t;let{minRetryTimeout:r}=Pn();this.retryOptions={retries:3,minTimeout:r,maxTimeout:3*1e3}}retryOptions;createApp=async t=>{try{let{data:r}=await sn(()=>this.httpClient.request(uie(t)),this.retryOptions);return hie.parse(r)}catch(r){throw new we({code:Re.FailedToCreateDevCenterApp(),cause:r})}};getAppSnapshot=async t=>{let{data:r}=await sn(()=>this.httpClient.request(cie(t)),this.retryOptions);return mie.parse(r)};createDevSite=async t=>{try{let{data:r}=await sn(()=>this.httpClient.request(pie({templateId:u3e})),this.retryOptions),{id:n}=gie.parse(r).developmentSite,i=await t.getSite(n);if(!i)throw new we({code:Re.SiteNotFound(),info:{id:n}});return i}catch(r){throw new we({code:Re.FailedToCreateDevelopmentSite(),cause:r})}};getDevSitesCount=async()=>{try{let{data:t}=await sn(()=>this.httpClient.request(fie({})),this.retryOptions);return vie.parse(t).developmentSites.length}catch(t){throw new we({code:Re.FailedToGetDevelopmentSites(),cause:t})}};getDeveloperApps=async()=>{try{let{data:t}=await sn(()=>this.httpClient.request(lie({})),this.retryOptions);return xie.parse(t).apps}catch(t){throw new we({code:Re.FailedToGetDeveloperApps(),cause:t})}};getDevSitesLimit=async()=>{try{let{data:t}=await sn(()=>this.httpClient.request(die({})),this.retryOptions);return yie.parse(t).limit}catch(t){throw new we({code:Re.FailedToGetDevelopmentSitesLimit(),cause:t})}}};d();import{useMemo as c3e}from"react";function sf(){let e=Ka({type:"backoffice"});return c3e(()=>new jS(e),[e])}d();var _ie=Ce(St(),1);import Eie from"react";var Aie=({onSubmit:e,onError:t,sites:r})=>{let{t:n}=fr(),{getDevSitesCount:i,getDevSitesLimit:s}=sf(),{status:a}=en(()=>Promise.all([i(),s()]),[],{onError:t});return(0,_ie.match)(a,{Error:()=>null,Loading:()=>Eie.createElement(Zr,{text:n("general.loading")}),Success:({result:[o,u]})=>{let l=o>=u,f=r.length===0;return Eie.createElement(au,{label:n("site_type_select.label"),options:[{availability:f?Na.Disabled({reason:n("site_type_select.no_sites")}):Na.Enabled(),title:n("site_type_select.pick_existing_site"),value:"select-existing-site"},{title:n("site_type_select.create_new_dev_site"),value:"create-dev-site",availability:l?Na.Disabled({reason:n("site_type_select.create_new_dev_site.disabled",{limit:u})}):Na.Enabled()}],onSubmit:({value:h})=>e(h)})}})};d();var bie=Ce(St(),1);import am from"react";d();import hL from"react";d();d();import{useMemo as l3e}from"react";d();d();var Cie=G.record(G.object({appDefinitionId:G.string().optional(),permissions:G.object({revoked:G.boolean()}).optional()}));var VS=class{constructor(t){this.httpClient=t}isAppInstalled=async({metaSiteId:t,appId:r})=>{try{let{data:n}=await this.httpClient.request({url:`/_api/msm/v1/meta-site/editor-client-spec-map/${t}`}),i=Cie.parse(n);return Object.values(i).some(a=>a.appDefinitionId===r&&!a.permissions?.revoked)}catch(n){throw new we({code:Re.FailedToCheckIfAppInstalled(),cause:n})}}};function Dv(){let e=Ka({type:"general"});return l3e(()=>new VS(e),[e])}var sm=Ce(St(),1);d();import wv from"react";var Sie=({siteId:e,appId:t})=>(ci(async(r,n)=>{n.return&&await xl(`https://manage.wix.com/installer/install?metaSiteId=${e}&appId=${t}&platform=cli&version=latest`)}),wv.createElement(wv.Fragment,null,wv.createElement(Rt,{i18nKey:"install_app_on_site.warning"}),wv.createElement(Rt,{i18nKey:"install_app_on_site.warning.instructions",components:[wv.createElement(Oa,{value:"enter"})]})));var mL=(0,sm.variant)({Success:{},Canceled:{}});function p3e(e){return e&&typeof e=="object"&&"name"in e&&e.name==="AbortError"}var HS=({appId:e,site:t,onSubmit:r,onError:n})=>{let{isAppInstalled:i}=Dv(),{status:s}=en(async({signal:a})=>{let{appInstallationPollInterval:o}=Pn();try{return await Mu(()=>i({metaSiteId:t.id,appId:e}),{interval:o??2e3,timeout:{milliseconds:60*1e3*2,signal:a}}),mL.Success()}catch(u){if(u instanceof vl)throw new we({code:Re.SiteSelectorTimedout(),cause:u});if(p3e(u))return mL.Canceled();throw u}},[],{onError:n,onSuccess:a=>{(0,sm.isType)(a,mL.Success)&&r()}});return(0,sm.match)(s,{Error:()=>null,Loading:()=>hL.createElement(Sie,{siteId:t.id,appId:e}),Success:()=>hL.createElement(un,{type:"success"},hL.createElement(Rt,{i18nKey:"install_app_on_site.finished_successfully"}))})};var Die=({status:e,appId:t,onSubmit:r,onError:n})=>{let{t:i}=fr();return(0,bie.match)(e,{NotRequested:()=>null,Error:()=>null,Loading:()=>am.createElement(Zr,{text:i("create_dev_site.loading")}),Success:({result:s})=>am.createElement(am.Fragment,null,am.createElement(Rt,{i18nKey:"create_dev_site.success",components:[am.createElement(de,{skin:"success",bold:!0})],values:{name:s.displayName}}),am.createElement(HS,{appId:t,site:s,onSubmit:()=>r(s),onError:n}))})};var wie={"general.loading":"Loading...","site_type_select.label":"Select Development Site","site_type_select.create_new_dev_site":"Create a new Development Site","site_type_select.create_new_dev_site.disabled":"You have reached the maximum number of {limit} Development Sites","site_type_select.pick_existing_site":"Pick an existing site","site_type_select.no_sites":"No sites found","create_dev_site.loading":"Creating your new Development Site...","create_dev_site.success":"Development Site <0>{name}</0> created successfully! \u{1F680}","site_list_select.label":"Select Site","install_app_on_site.warning":"Your new application needs to be installed on the selected Development Site","install_app_on_site.warning.instructions":"Press <0/> to install the application in your browser","install_app_on_site.finished_successfully":"App installed on Development Site."};d();import Tv,{useState as h3e}from"react";var Iie=Ce(St(),1);d();import d3e from"react";var Tie=({onSubmit:e,sites:t})=>{let{t:r}=fr();return d3e.createElement(au,{label:r("site_list_select.label"),options:t.map(n=>({key:n.id,title:n.displayName,description:n.viewUrl,value:n})),onSubmit:({value:n})=>e(n)})};var Rie=({sites:e,appId:t,onSubmit:r,onError:n})=>{let{t:i}=fr(),{isAppInstalled:s}=Dv(),[a,o]=h3e(null),u=Us((f,h)=>s({metaSiteId:h.id,appId:t}),{onError:n});async function l(f){await u.execute(f)?r(f):o(f)}return Tv.createElement(Tv.Fragment,null,Tv.createElement(Tie,{onSubmit:l,sites:e}),(0,Iie.isType)(u.status,"Loading")&&Tv.createElement(Zr,{text:i("general.loading")}),a&&Tv.createElement(HS,{appId:t,site:a,onSubmit:()=>r(a),onError:n}))};var Iv=({appId:e,onSubmit:t,onError:r})=>{let{t:n}=fr(),[i,s]=m3e(null),{createDevSite:a}=sf(),o=Cv(),{status:u}=en(()=>o.querySites(),[],{onError:r}),l=Us(()=>a(o),{onError:r});function f(h){s(h),h==="create-dev-site"&&l.execute()}return af.createElement(rf,{messages:wie},(0,Nie.match)(u,{Error:()=>null,Loading:()=>af.createElement(Zr,{text:n("general.loading")}),Success:({result:h})=>af.createElement(af.Fragment,null,af.createElement(Aie,{onSubmit:f,onError:r,sites:h}),i==="create-dev-site"&&af.createElement(Die,{status:l.status,appId:e,onSubmit:t,onError:r}),i==="select-existing-site"&&af.createElement(Rie,{sites:h,appId:e,onSubmit:t,onError:r}))}))};var gL=({state:e,onSubmit:t})=>{let r=ks(),{t:n}=fr(),{model:i}=tn();return Rv.createElement(Rv.Fragment,null,(0,GS.match)(e,{NotConfigured:(0,GS.constant)(Rv.createElement(un,{type:"insight"},n("general.no_site_id_configured"))),NotFound:({id:s})=>Rv.createElement(un,{type:"error"},n("general.site_id_not_found",{id:s}))}),Rv.createElement(Iv,{appId:i.config.appId,onSubmit:t,onError:r}))};d();import{createContext as g3e}from"react";var WS=g3e(null);d();var Nv=Ce(St(),1),om=(0,Nv.variant)({NotConfigured:{},NotFound:(0,Nv.fields)(),Resolved:(0,Nv.fields)()});d();async function QS({projectFolder:e,siteListClient:{getSite:t},writeDebugLog:r}){let n=await Sv(e,r);if(!n?.siteId)return om.NotConfigured();let i=await t(n.siteId);return i?om.Resolved({site:i}):om.NotFound({id:n.siteId})}var um=({children:e})=>{let t=ks(),{model:{projectFolder:r}}=tn(),n=VE(),i=Cv(),{status:s,merge:a}=en(async()=>QS({projectFolder:r,siteListClient:i,writeDebugLog:n}),[]),o=Oie(async l=>{try{await qS(r,{siteId:l.id}),a({result:om.Resolved({site:l})})}catch{throw new we({code:Re.FailedToSaveDevelopmentSite({path:KT})})}},[a,r]),u=Oie(l=>o(l).catch(t),[t,o]);return(0,vL.match)(s,{Error:()=>null,Loading:()=>zS.createElement(Zr,null),Success:({result:l})=>(0,vL.match)(l,{NotConfigured:f=>zS.createElement(gL,{state:f,onSubmit:u}),NotFound:f=>zS.createElement(gL,{state:f,onSubmit:u}),Resolved:({site:f})=>zS.createElement(WS.Provider,{value:{site:f,setSite:o}},typeof e=="function"?e(f):e)})})};d();import{useContext as v3e}from"react";function Hu(){let e=v3e(WS);if(e===null)throw new Error("useSiteId() cannot be used without an <SiteIdProvider>");return e}d();var Pie=Ce(St(),1),$a=(0,Pie.variant)({Home:{},SiteSelector:{},DashboardPages:{}});d();var _L=Ce(St(),1);import Hie,{createContext as j3e,useContext as V3e}from"react";d();import{useCallback as T3e}from"react";d();d();d();var y3e={},x3e={},E3e={},_3e={},A3e={},C3e={},S3e={},b3e={};function KS(e){var t={"api._api_base_domain_":[{srcPath:"/apps-release-manager-service-web",destPath:""}],"bo._base_domain_":[{srcPath:"/apps-release-manager-service-web",destPath:""}],"www._base_domain_":[{srcPath:"/apps-release-manager-service-web/artifacts-release-manager/app-releases",destPath:"/artifacts-release-manager/app-releases"},{srcPath:"/_api/apps-release-manager-service-web/artifacts-release-manager/app-releases",destPath:"/artifacts-release-manager/app-releases"},{srcPath:"/apps-release-manager-service-web/apps/create",destPath:"/apps/create"},{srcPath:"/apps-release-manager-service-web/apps/promote",destPath:"/apps/promote"},{srcPath:"/apps-release-manager-service-web/apps/tags",destPath:"/apps/tags"}],"manage._base_domain_":[{srcPath:"/apps-release-manager-service-web/apps/promote",destPath:"/apps/promote"},{srcPath:"/apps-release-manager-service-web/apps/create",destPath:"/apps/create"},{srcPath:"/apps-release-manager-service-web/apps/tags",destPath:"/apps/tags"}]};return ca(Object.assign(e,{domainToMappings:t}))}function yL(e){var t=xt(y3e,{}),r=t.toJSON,n=t.fromJSON,i=xt(x3e,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.ctp.gradual_rollout.v1.app_config",method:"POST",methodFqn:"com.wix.ctp.AppsReleaseManagerService.CreateAppRelease",url:KS({protoPath:"/apps/create/{appId}",data:u,host:o}),data:u,transformResponse:i};return l}return s.fromReq=n,s}yL.__isAmbassador=!0;function xL(e){var t=xt(S3e,{}),r=t.toJSON,n=t.fromJSON,i=xt(b3e,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.ctp.gradual_rollout.v1.app_config",method:"PUT",methodFqn:"com.wix.ctp.AppsReleaseManagerService.UpdateAppRelease",url:KS({protoPath:"/apps/tags/{tag}",data:u,host:o}),data:u,transformResponse:i};return l}return s.fromReq=n,s}xL.__isAmbassador=!0;function D3e(e){var t=xt(E3e,{}),r=t.toJSON,n=t.fromJSON,i=xt(_3e,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.ctp.gradual_rollout.v1.app_config",method:"POST",methodFqn:"com.wix.ctp.AppsReleaseManagerService.GetAppsRelease",url:KS({protoPath:"/apps",data:u,host:o}),data:u,transformResponse:i};return l}return s.fromReq=n,s}D3e.__isAmbassador=!0;function EL(e){var t=xt(A3e,{}),r=t.toJSON,n=t.fromJSON,i=xt(C3e,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.ctp.gradual_rollout.v1.app_config",method:"POST",methodFqn:"com.wix.ctp.AppsReleaseManagerService.PromoteAppReleaseToDevCenter",url:KS({protoPath:"/apps/promote/{appId}/{tag}",data:u,host:o}),data:u,transformResponse:i};return l}return s.fromReq=n,s}EL.__isAmbassador=!0;d();var Bie=G.object({newVersion:G.string()}),Lie=G.object({tag:G.string()});var{AppPermissionDenied:Fie}=Re,of=class{constructor(t){this.httpClient=t;let{minRetryTimeout:r}=Pn();this.retryOptions={retries:3,minTimeout:r,maxTimeout:3*1e3}}retryOptions;createAppRelease=async(t,r)=>{try{let{data:n}=await sn(()=>this.httpClient.request(yL({appId:t.appId,componentConfigs:t.components,projectId:r})),this.retryOptions);return Lie.parse(n).tag}catch(n){throw Eo(n)&&n.response?.status===403?new we({code:Fie({appId:t.appId}),cause:n}):new we({code:Re.FailedToCreateAppRelease(),cause:n})}};updateAppRelease=async(t,r)=>{try{return await sn(()=>this.httpClient.request(xL({appId:t.appId,componentConfigs:t.components,tag:r})),this.retryOptions),r}catch(n){throw Eo(n)&&n.response?.status===403?new we({code:Fie({appId:t.appId}),cause:n}):new we({code:Re.FailedToUpdateAppRelease(),cause:n})}};promoteToDevCenter=async(t,r,n)=>{let{data:i}=await sn(()=>this.httpClient.request(EL({appId:t,tag:r,versionType:n})),this.retryOptions);return Bie.parse(i)}};d();import{useMemo as w3e}from"react";function Gu(){let e=Ka({type:"backoffice"});return w3e(()=>new of(e),[e])}var kie=(e,t)=>{let r=YC({appId:e.config.appId,components:e.components,componentSourceBuilder:XC(e)});return zh(r,t)};function Uie(){let{model:e}=tn(),t=VE(),{createAppRelease:r,updateAppRelease:n}=Gu();return T3e(async({devServerUrl:i,projectModelWatcher:s,onChange:a,onError:o})=>{let u=kie(e,i),l=await Sv(e.projectFolder,t),f=l?.devArmTag?await n(u,l.devArmTag):await r(u,e.config.projectId);return l?.devArmTag||await qS(e.projectFolder,{devArmTag:f}).catch(h=>t(h)),s.onChange(async(h,m)=>{try{if(m==="model-updated"){let y=kie(h,i);await n(y,f)}a(m)}catch(y){o(y)}}).onError(o),f},[r,e,n,t])}d();import{useRef as I3e,useCallback as R3e,useEffect as N3e}from"react";import{createServer as O3e}from"vite";d();function Mie({onLog:e}){let t=new WeakSet,r=new Set,n={hasWarned:!1,info(i){e("info",i)},warn(i){n.hasWarned=!0,e("warning",i)},warnOnce(i){r.has(i)||(n.hasWarned=!0,e("warning",i),r.add(i))},error(i,s){n.hasWarned=!0,e("error",i),s?.error&&t.add(s.error)},clearScreen(){},hasErrorLogged(i){return t.has(i)}};return n}function qie({https:e}){let t=I3e(),{model:r}=tn();return N3e(()=>()=>{t.current?.close()},[]),R3e(async({projectModelWatcher:n,onLog:i})=>{let s=await O3e(await Gh(r,{type:"dev",https:e,projectModelWatcher:n,customLogger:Mie({onLog:i})}));return t.current=s,await s.listen(),sl(s)},[r,e])}d();import Wu,{useCallback as jie,useEffect as L3e,useState as F3e,useMemo as k3e}from"react";d();import{EOL as P3e}from"node:os";import{createWriteStream as B3e}from"node:fs";var $S=class{constructor(t,r){this.opts=r;this.stream=B3e(wV(t),{flags:"w"}),this.stream.on("error",this.opts.onError)}drain=!1;stream;write=t=>{if(this.drain){this.stream.once("drain",()=>{this.drain=!1,this.write(t)});return}this.stream.write(t.concat(P3e),n=>{n&&this.opts.onError(n)})||(this.drain=!0,this.stream.once("drain",()=>{this.drain=!1}))};close=()=>{this.stream.close()}};d();import _l from"react";var YS=({type:e,msg:t,error:r,prefix:n="app",timestamp:i})=>_l.createElement(ke,{columnGap:1},_l.createElement(ke,{flexShrink:0},_l.createElement(de,{skin:"secondary"},i.toLocaleTimeString())),_l.createElement(ke,{flexShrink:0},_l.createElement(de,{skin:e,bold:!0},"[",n,"]")),_l.createElement(ke,null,e==="error"&&r?_l.createElement(yp,{error:r}):typeof t=="string"?_l.createElement(de,null,t):t));var U3e=()=>Wu.createElement(ke,{flexDirection:"column"},Wu.createElement(un,{type:"error"},Wu.createElement(Rt,{i18nKey:"general.write_dev_log_failure.message",components:[Wu.createElement(de,{bold:!0})],values:{path:Vg}})),Wu.createElement(ke,{paddingTop:1},Wu.createElement(un,{type:"insight"},Wu.createElement(Rt,{i18nKey:"general.write_dev_log_failure.hint"})))),M3e=5;function q3e(e){return!!/Port \d{1,5} is in use, trying another one/.test(e)}function Vie(){let{model:e}=tn(),[t,r]=F3e([]),n=jie(o=>{let u={...o,timestamp:new Date};return r(l=>{let f=[...l,u];return f.length>M3e&&f.shift(),f}),u},[]),{renderer:i,stream:s}=k3e(()=>({renderer:rT(),stream:new $S(e.projectFolder,{onError(){n({type:"error",msg:Wu.createElement(U3e,null)})}})}),[n,e.projectFolder]),a=jie(o=>{if(o.msg&&q3e(o.msg.toString()))return;let u=n(o),l=i.render(Wu.createElement(YS,{...u}));s.write(l)},[n,i,s]);return L3e(()=>()=>{i.unmount(),s.close()},[i,s]),{logs:t,writeLog:a}}var Gie=j3e(null),AL=({https:e,children:t})=>{let{t:r}=fr(),{reportError:n}=xp(),i=qie({https:e}),s=Uie(),{logs:a,writeLog:o}=Vie(),{watcher:u}=tn(),{status:l}=en(async()=>{let f=await i({projectModelWatcher:u,onLog(m,y){o({type:m,msg:y,prefix:"vite"})}}),h=await s({devServerUrl:f,projectModelWatcher:u,onChange(m){(0,_L.match)(m,{"change-received":()=>{o({type:"info",msg:r("dev_command.config_change")})},"model-did-not-change":()=>{o({type:"info",msg:r("dev_command.config_didnt_update")})},"model-updated":()=>{o({type:"info",msg:r("dev_command.config_update")})}})},onError(m){n(m),o({type:"error",error:m}),o({type:"info",msg:r("dev_command.config_didnt_update")})}});return{devServerUrl:f,armTag:h,https:e}},[]);return(0,_L.match)(l,{Error:()=>null,Loading:()=>Hie.createElement(Zr,{text:r("dev_command.dev_environment.loading")}),Success:({result:f})=>Hie.createElement(Gie.Provider,{value:{logs:a,writeLog:o,...f}},t)})};function cm(){let e=V3e(Gie);if(e===null)throw new Error("useDevEnvironment() cannot be used without an <DevEnvironmentProvider>");return e}d();import uf from"react";var Wie=()=>{let{t:e}=fr(),{logs:t}=cm(),r=!t.length;return uf.createElement(uf.Fragment,null,uf.createElement(ke,{gap:1},uf.createElement(Rt,{i18nKey:"dev_command.dev_env_logs.title",components:[uf.createElement(de,{skin:r?"secondary":"standard"})],values:{path:Vg}})),r&&uf.createElement(de,{skin:"secondary"},e("dev_command.dev_env_logs.empty")),t.map(n=>uf.createElement(YS,{key:n.timestamp.getTime(),...n})))};d();import Ya,{useMemo as W3e}from"react";d();var Qie=Ce(St(),1);import Ov,{useMemo as H3e,useCallback as G3e}from"react";d();function lm(e){let{appId:t,siteId:r,tag:n,component:i}=e,s=new URL(`dashboard/${r}/app/${t}${i.route}`,"https://manage.wix.com/");return s.searchParams.append("apps-override",n),s.toString()}function XS(){let{site:e}=Hu(),{model:t}=tn(),{armTag:r,writeLog:n}=cm(),i=H3e(()=>t.components.filter((0,Qie.isType)(yi.DashboardPage)).sort((a,o)=>a.route.localeCompare(o.route)).map(a=>({title:a.title,route:a.route,url:lm({appId:t.config.appId,siteId:e.id,tag:r,component:a})})),[t.components,t.config.appId,e.id,r]),s=G3e(async({url:a,title:o})=>{try{await xl(a)}catch{n({type:"error",prefix:"app",msg:Ov.createElement(un,{type:"error"},Ov.createElement(Rt,{i18nKey:"dev_command.dashboard_pages.open_page_error",components:[Ov.createElement(de,{bold:!0})],values:{title:o}}),Ov.createElement(Ia,null),Ov.createElement(bi,{url:a}))})}},[n]);return{pages:i,openPage:s}}var JS=3,zie=({itemNumber:e,onSelect:t,children:r})=>{let n=`${e}`;return ci(i=>{i===n&&t()}),Ya.createElement(de,null,Ya.createElement(hg,null)," ",Ya.createElement(Oa,{value:n})," - ",r)},Kie=({onViewMore:e})=>{let{pages:t,openPage:r}=XS(),{visiblePages:n,showMore:i}=W3e(()=>{let s=t.length<=JS?t.length:JS-1;return{visiblePages:t.slice(0,s),showMore:t.length>JS}},[t]);return Ya.createElement(Ya.Fragment,null,Ya.createElement(Rt,{i18nKey:"dev_command.dashboard_pages_viewer.title"}),Ya.createElement(ke,{paddingLeft:2,flexDirection:"column"},n.map((s,a)=>Ya.createElement(zie,{key:s.route,itemNumber:a+1,onSelect:()=>r(s)},s.title," (",Ya.createElement(de,{skin:"secondary"},s.route),")")),i&&Ya.createElement(zie,{itemNumber:JS,onSelect:e},Ya.createElement(Rt,{i18nKey:"dev_command.dashboard_pages_viewer.show_more"}))))};var $ie=({onScreenChange:e})=>{let{site:t}=Hu(),{devServerUrl:r,https:n,writeLog:i}=cm(),s=async()=>{try{await xl(r)}catch{i({type:"error",prefix:"app",msg:Sr.createElement(un,{type:"error"},Sr.createElement(Rt,{i18nKey:"dev_command.dev_environment.https_url.failed_to_open",components:[Sr.createElement(bi,{url:r})]}))})}};return ci(async a=>{a==="d"&&e($a.SiteSelector()),a==="a"&&n&&await s()}),Sr.createElement(Sr.Fragment,null,Sr.createElement(ke,{gap:1},Sr.createElement(de,{skin:"success"},Sr.createElement(nu,null)),Sr.createElement(Rt,{i18nKey:"dev_command.dev_environment.started"})),Sr.createElement(ke,{gap:1},Sr.createElement(_w,null),Sr.createElement(Rt,{i18nKey:"dev_command.dev_environment.url",components:[Sr.createElement(bi,{url:r})]})),n&&Sr.createElement(ke,{paddingLeft:2},Sr.createElement(de,{skin:"secondary"},Sr.createElement(Rt,{components:[Sr.createElement(Oa,{value:"A"})],i18nKey:"dev_command.dev_environment.https_url.open_info"}))),Sr.createElement(ke,{gap:1},Sr.createElement(dg,null),Sr.createElement(Rt,{i18nKey:"dev_command.dev_site.current",values:{name:t.displayName}})),Sr.createElement(ke,{paddingLeft:2},Sr.createElement(de,{skin:"secondary"},Sr.createElement(Rt,{i18nKey:"dev_command.dev_site.change",components:[Sr.createElement(Oa,{value:"D"})]}))),Sr.createElement(ke,{paddingTop:1,paddingBottom:1,flexDirection:"column"},Sr.createElement(Kie,{onViewMore:()=>e($a.DashboardPages())})),Sr.createElement(Wie,null))};d();import pm,{useState as Q3e,useCallback as Yie}from"react";d();import ZS from"react";var eb=({onClose:e})=>(ci((t,r)=>{r.escape&&e()}),ZS.createElement(ke,{paddingTop:1},ZS.createElement(de,{skin:"secondary"},ZS.createElement(Rt,{i18nKey:"general.close_screen",components:[ZS.createElement(Oa,{value:"esc"})]}))));var Xie=({onScreenChange:e})=>{let{t}=fr(),{model:r}=tn(),{setSite:n}=Hu(),{reportError:i}=xp(),[s,a]=Q3e(null),o=Yie(l=>{i(l),a(l)},[i,a]),u=Yie(async l=>{try{await n(l),e($a.Home())}catch(f){o(f)}},[n,e,o]);return pm.createElement(pm.Fragment,null,pm.createElement(Iv,{appId:r.config.appId,onSubmit:u,onError:o}),s&&pm.createElement(yp,{error:s,systemErrorOverride:pm.createElement(un,{type:"error"},t("dev_command.site_selector.error"))}),pm.createElement(eb,{onClose:()=>e($a.Home())}))};d();import tb,{useCallback as z3e}from"react";var Jie=({onScreenChange:e})=>{let{t}=fr(),{pages:r,openPage:n}=XS(),i=z3e(async({value:s})=>{await n(s),e($a.Home())},[e,n]);return tb.createElement(tb.Fragment,null,tb.createElement(au,{label:t("dev_command.dashboard_pages_screen.select_label"),options:r.map(s=>({key:s.route,title:s.title,description:s.route,value:s})),onSubmit:i}),tb.createElement(eb,{onClose:()=>e($a.Home())}))};var SL=()=>{let[e,t]=K3e($a.Home());return(0,Zie.match)(e,{Home:()=>CL.createElement($ie,{onScreenChange:t}),SiteSelector:()=>CL.createElement(Xie,{onScreenChange:t}),DashboardPages:()=>CL.createElement(Jie,{onScreenChange:t})})};d();function fm(){let e=OS(MS);return e.t.bind(e)}var ese=e=>{let t=fm();return Ps("dev").option("-s, --https",t("dev_command_def.option.https")).action(async(r,n)=>{let{https:i=!1}=r;await El(n,e,bL.createElement(um,null,bL.createElement(AL,{https:i},bL.createElement(SL,null))),{watchForModelChanges:!0})})};d();import Ja from"react";var ML=Ce(St(),1);d();var tse=Ce(St(),1);var rb=async({model:e,siteId:t,arm:r,serveUrl:n})=>{let i=await KC(e.projectFolder),s=zh(i,n),a=await r.createAppRelease(s,e.config.projectId),[o]=e.components.filter((0,tse.isType)(yi.DashboardPage));return{tag:a,dashboardPageUrl:lm({appId:e.config.appId,siteId:t,component:o,tag:a})}};d();import{createReadStream as n4e}from"node:fs";d();import c8e from"node:fs";import l8e from"node:fs/promises";import ase from"node:path";import p8e from"node:stream";import{promisify as f8e}from"node:util";d();d();import{promisify as $3e}from"util";import DL from"crypto";var rse=$3e(DL.randomBytes),Y3e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~".split(""),X3e="0123456789".split(""),J3e="CDEHKMPRTUWXY012458".split(""),Z3e="!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".split(""),e8e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t8e=(e,t)=>{let r=t.length,n=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e),s="",a=0;for(;a<e;){let o=DL.randomBytes(i),u=0;for(;u<i&&a<e;){let l=o.readUInt16LE(u);u+=2,!(l>n)&&(s+=t[l%r],a++)}}return s},r8e=async(e,t)=>{let r=t.length,n=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e),s="",a=0;for(;a<e;){let o=await rse(i),u=0;for(;u<i&&a<e;){let l=o.readUInt16LE(u);u+=2,!(l>n)&&(s+=t[l%r],a++)}}return s},n8e=(e,t,r)=>DL.randomBytes(e).toString(t).slice(0,r),i8e=async(e,t,r)=>(await rse(e)).toString(t).slice(0,r),s8e=new Set([void 0,"hex","base64","url-safe","numeric","distinguishable","ascii-printable","alphanumeric"]),nse=(e,t)=>({length:r,type:n,characters:i})=>{if(!(r>=0&&Number.isFinite(r)))throw new TypeError("Expected a `length` to be a non-negative finite number");if(n!==void 0&&i!==void 0)throw new TypeError("Expected either `type` or `characters`");if(i!==void 0&&typeof i!="string")throw new TypeError("Expected `characters` to be string");if(!s8e.has(n))throw new TypeError(`Unknown type: ${n}`);if(n===void 0&&i===void 0&&(n="hex"),n==="hex"||n===void 0&&i===void 0)return t(Math.ceil(r*.5),"hex",r);if(n==="base64")return t(Math.ceil(r*.75),"base64",r);if(n==="url-safe")return e(r,Y3e);if(n==="numeric")return e(r,X3e);if(n==="distinguishable")return e(r,J3e);if(n==="ascii-printable")return e(r,Z3e);if(n==="alphanumeric")return e(r,e8e);if(i.length===0)throw new TypeError("Expected `characters` string length to be greater than or equal to 1");if(i.length>65536)throw new TypeError("Expected `characters` string length to be less or equal to 65536");return e(r,i.split(""))},ise=nse(t8e,n8e);ise.async=nse(r8e,i8e);var sse=ise;function wL(){return sse({length:32})}d();import{promises as a8e}from"node:fs";import o8e from"node:os";var u8e=await a8e.realpath(o8e.tmpdir()),TL=u8e;d();var xCt=f8e(p8e.pipeline),ose=(e="")=>ase.join(TL,e+wL());async function d8e(e,t){try{return await t(e)}finally{await l8e.rm(e,{recursive:!0,force:!0,maxRetries:2})}}function h8e({name:e,extension:t}={}){if(e){if(t!=null)throw new Error("The `name` and `extension` options are mutually exclusive");return ase.join(m8e(),e)}return ose()+(t==null?"":"."+t.replace(/^\./,""))}var use=async(e,t)=>d8e(h8e(t),e);function m8e({prefix:e=""}={}){let t=ose(e);return c8e.mkdirSync(t),t}d();var Kse=Ce(Hse(),1);d();var sb;(function(e){e.INITIALIZED="INITIALIZED",e.IN_PROGRESS="IN_PROGRESS",e.DONE="DONE",e.FAILED="FAILED",e.NO_UPLOAD_IN_PROGRESS="NO_UPLOAD_IN_PROGRESS"})(sb||(sb={}));d();d();var J8e={},Z8e={},e4e={},t4e={};function Gse(e){var t={"manage._base_domain_":[{srcPath:"/app-cloud-deployer-service-web",destPath:""}],"www._base_domain_":[{srcPath:"/app-cloud-deployer-service-web",destPath:""}]};return ca(Object.assign(e,{domainToMappings:t}))}function Wse(e){var t=xt(J8e,{}),r=t.toJSON,n=t.fromJSON,i=xt(Z8e,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.ctp.app_cloud_deployer_service.v1.app_cloud_deployer",method:"POST",methodFqn:"com.wix.ctp.AppCloudDeployerService.CreatePresignedUrl",isReadOnly:!1,url:Gse({protoPath:"/v1/create-presigned-url/{appId}",data:u,host:o}),data:u,transformResponse:i};return l}return s.fromReq=n,s}function Qse(e){var t=xt(e4e,{}),r=t.toJSON,n=t.fromJSON,i=xt(t4e,{}).fromJSON;function s(a){var o=a.host,u=r(e),l={entityFqdn:"wix.ctp.app_cloud_deployer_service.v1.app_cloud_deployer",method:"GET",methodFqn:"com.wix.ctp.AppCloudDeployerService.GetDeploymentStatus",isReadOnly:!1,url:Gse({protoPath:"/v1/get-deployment-status/{appId}",data:u,host:o}),params:Fi(u),transformResponse:i};return l}return s.fromReq=n,s}d();var zse=G.object({serveUrl:G.string().url(),uploadUrl:G.string().url(),fields:G.record(G.unknown()),deploymentId:G.string()});var ab=class{constructor(t,r={retries:3,maxTimeout:3*1e3}){this.httpClient=t;this.retryOptions=r}async createPresignedUrl(t){try{let{data:r}=await sn(()=>this.httpClient.request(Wse(t)),this.retryOptions);return zse.parse(r)}catch(r){throw Eo(r)&&r.response?.status===403?new we({code:Re.AppPermissionDenied({appId:t.appId}),cause:r}):new we({code:Re.FailedToCreatePresignedUrl(),cause:r})}}upload(t,r){return new Promise((n,i)=>{let s="";r.submit(t,(a,o)=>{if(a){i(new we({code:Re.FailedToUploadApplicationFiles(),cause:a}));return}o.on("data",u=>{s+=u.toString()}),o.on("end",()=>{[200,204].includes(o.statusCode)?n():i(s)})})})}async getDeploymentStatus(t){let{data:r}=await sn(()=>this.httpClient.request(Qse(t)),this.retryOptions);return r.status}};function r4e(e){return{fileUpload({provider:t,fileCount:r,compressedSize:n,uncompressedSize:i}){let s=Date.now();return e.report(nne({timestampMs:s,hostingProvider:t,numFiles:r,fileSizeCompressed:n,fileSizeNotCompressed:i})),{archiveUploaded(){e.report(ine({duration:Date.now()-s}))},finished(){e.report(ane({duration:Date.now()-s}))}}}}}var ob=class{constructor(t,r,n){this.scope=t;this.biLogger=r;this.client=new ab(n)}client;async uploadApplication(t,r){let n=r4e(this.biLogger),{serveUrl:i,uploadUrl:s,fields:a,deploymentId:o}=await this.createPresignedUrl(),u=n.fileUpload({provider:"Wix",fileCount:r.fileCount,compressedSize:r.compressedSizeInKb,uncompressedSize:r.uncompressedSizeInKb});return await this.uploadFile(o,s,a,t),u.archiveUploaded(),await this.waitForDeployment(o),u.finished(),{serveUrl:i}}createPresignedUrl(){return this.client.createPresignedUrl({appId:this.scope})}buildFormData(t,r,n){let i=new Kse.default;return Object.entries(t).forEach(([s,a])=>{i.append(s,a)}),i.append("file",n,{filename:r}),i}uploadFile(t,r,n,i){let s=`${t}.tar.gz`,a=this.buildFormData(n,s,i);return this.client.upload(r,a)}async waitForDeployment(t){let r=i=>1e3*i,n=i=>r(60)*i;try{await Mu(async()=>await this.client.getDeploymentStatus({appId:this.scope,deploymentId:t})===sb.DONE,{before:!1,interval:r(3),timeout:n(5)})}catch(i){throw new we({code:Re.FailedToVerifyDeployment(),cause:i,info:{deploymentId:t}})}}};var ub=async(e,t,r,n)=>{let i=new ob(e,r,n),s=Od(t);return use(async a=>{try{let o=await LG(s,a),u=n4e(a),{serveUrl:l}=await i.uploadApplication(u,o);return l}catch(o){throw new we({code:Re.UploadApplicationFailed(),cause:o})}},{extension:"tar.gz"})};d();var Yse=Ce(St(),1);import{cwd as i4e}from"node:process";d();function $se(e){console.log(e)}async function s4e(e,t){let r=new nf(t),n=await QS({projectFolder:e.projectFolder,siteListClient:r});return(0,Yse.match)(n,{NotConfigured:()=>{throw new we({code:Re.SiteConfiguredRequired()})},NotFound:()=>{throw new we({code:Re.SiteConfiguredRequired()})},Resolved:({site:i})=>i.id})}async function Xse(e,t){let r=await Nu(i4e()),n=await Lne();if(!n)throw new we({code:Re.AuthenticationRequired()});t.errorReporter.setUser({id:n.userInfo.userId}),_v(t.biLogger,n.userInfo.userId);let i=gp({type:"backoffice",getAppToken:()=>n.accessToken}),s=e.site??await s4e(r,i),a=e.baseUrl??await ub(r.config.appId,r.projectFolder,t.biLogger,i),o=new of(i),{dashboardPageUrl:u}=await rb({model:r,siteId:s,arm:o,serveUrl:a});$se(u)}d();async function dm(e){let t=Od(e),r=Gg(e);if(!await Qs(t)||!await Qs(r))throw new we({code:Re.BuiltProjectNeeded()})}function a4e(e){let t=G.union([G.string().uuid(),G.literal("current")]).transform(r=>r==="current"?void 0:r).safeParse(e);if(t.success)return t.data;throw new zm('Value must be a valid GUID or "current"')}function o4e(e){let t=G.string().url().safeParse(e);if(t.success)return t.data;throw new zm("Value must be a valid URL")}var Zse=e=>{let t=fm();return Ps("preview").option("-s, --site <site-id>",t("app_preview_command_def.option.site"),a4e).option("--base-url <url>",t("app_preview_command_def.option.base_url"),o4e).option("--no-input",t("app_preview_command_def.option.no_input")).action(async(r,n)=>{let{site:i,baseUrl:s,input:a}=r;if(!a)return Av(n,e,()=>Xse({site:i,baseUrl:s},e));await El(n,e,Ja.createElement(qL,{baseUrl:s,siteIdOverride:i}))})},Jse=({status:e,loadingText:t,successText:r})=>(0,ML.match)(e,{NotRequested:()=>null,Loading:()=>Ja.createElement(Zr,{text:t}),Error:()=>null,Success:()=>Ja.createElement(un,{type:"success"},r)}),u4e=({onPreviewCreated:e,siteId:t,baseUrl:r})=>{let{model:n}=tn(),{t:i}=fr(),s=Gu(),a=Ev(),o=Ka({type:"backoffice"}),u=Us(()=>ub(n.config.appId,n.projectFolder,a,o)),l=Us((h,m)=>rb({model:n,siteId:t,arm:s,serveUrl:m})),{status:f}=en(async()=>{await dm(n.projectFolder);let h=r??await u.execute(),{dashboardPageUrl:m,tag:y}=await l.execute(h);return e?.(y),m},[]);return Ja.createElement(Ja.Fragment,null,Ja.createElement(Jse,{status:u.status,loadingText:i("preview_command.uploading_files"),successText:i("preview_command.uploading_files_success")}),Ja.createElement(Jse,{status:l.status,loadingText:i("preview_command.creating_preview"),successText:i("preview_command.creating_preview_success")}),(0,ML.match)(f,{Loading:()=>null,Error:()=>null,Success:({result:h})=>Ja.createElement(Rt,{i18nKey:"general.dashboard_page_text",components:[Ja.createElement(bi,{url:h})]})}))},qL=({baseUrl:e,siteIdOverride:t,onPreviewCreated:r})=>{let n=i=>Ja.createElement(u4e,{baseUrl:e,siteId:i,onPreviewCreated:r});return t?n(t):Ja.createElement(um,null,({id:i})=>n(i))};d();var uF=Ce(zoe(),1);d();var ff;(function(e){e.BUILD="BUILD",e.MINOR="MINOR",e.MAJOR="MAJOR"})(ff||(ff={}));var lF=Ce(St(),1);import fn,{useState as cF}from"react";function nMe(e){let t=G.string().url().safeParse(e);if(t.success)return t.data;throw new zm("Value must be a valid URL")}var Koe=e=>{let t=fm();return Ps("create-version").addOption(new u3("-t, --version-type <type>",t("create_version_command_def.option.version_type")).choices(["major","minor"])).option("-y, --approve-preview",t("create_version_command_def.option.approve_preview")).option("--base-url <url>",t("create_version_command_def.option.base_url"),nMe).action(async(r,n)=>{let{approvePreview:i=!1,versionType:s,baseUrl:a}=r,o={major:ff.MAJOR,minor:ff.MINOR},u=s?o[s]:void 0;await El(n,e,fn.createElement(aMe,{baseUrl:a,preApprovePreview:i,versionType:u}))})},iMe=({onSubmit:e})=>{let{t}=fr(),[r,n]=cF(!1);return fn.createElement(fn.Fragment,null,fn.createElement(Sw,{label:t("create_version_command.confirm_publish"),initialValue:!0,onSubmit:i=>{i?e(!0):(n(!0),e(!1))}}),r&&fn.createElement(de,null,t("create_version_command.confirm_publish_aborted")))},sMe=({version:e,onSubmit:t})=>{let{t:r}=fr();return fn.createElement(au,{label:r("create_version_command.version_type_question"),options:[{title:r("create_version_command.version_type_question_minor",{version:(0,uF.inc)(e,"minor")}),value:ff.MINOR},{title:r("create_version_command.version_type_question_major",{version:(0,uF.inc)(e,"major")}),value:ff.MAJOR}],onSubmit:({value:n})=>t(n)})},aMe=({baseUrl:e,preApprovePreview:t,versionType:r})=>{let{model:n}=tn(),{t:i}=fr(),s=Gu(),{getAppSnapshot:a}=sf(),[o,u]=cF(),[l,f]=cF(t),{status:h}=en(async()=>{await dm(n.projectFolder);let{latestVersion:_}=await a({appId:n.config.appId});return _},[]),m=Us((_,C,b)=>oMe(n.config.appId,b,C,s));function y(_){u(_),l&&r&&m.execute(r,_)}return(0,lF.match)(h,{Loading:()=>fn.createElement(Zr,null),Error:()=>null,Success:({result:_})=>fn.createElement(ke,{flexDirection:"column",rowGap:1},fn.createElement(de,null,i("create_version_command.check_preview_before_version_release")),fn.createElement(qL,{baseUrl:e,onPreviewCreated:y}),o&&!t&&fn.createElement(iMe,{onSubmit:f}),o&&l&&fn.createElement(fn.Fragment,null,fn.createElement(de,null,i("create_version_command.current_version",{version:_})),!r&&fn.createElement(sMe,{version:_,onSubmit:C=>m.execute(C,o)}),(0,lF.match)(m.status,{NotRequested:()=>null,Error:()=>null,Loading:()=>fn.createElement(Zr,{text:i("create_version_command.creating_version")}),Success:({result:C})=>fn.createElement(fn.Fragment,null,fn.createElement(un,{type:"success"},i("create_version_command.creating_version_success",{version:C})),fn.createElement(Rt,{i18nKey:"create_version_command.creating_version_success_publish_message",components:[fn.createElement(bi,{url:`https://dev.wix.com/dc3/my-apps/${n.config.appId}/versions`})]}))})))})},oMe=async(e,t,r,n)=>{try{let{newVersion:i}=await n.promoteToDevCenter(e,t,r);return i}catch(i){throw Eo(i)&&i.response?.status===428?new we({code:Re.FailedToCreateVersionForSubmittedApp(),cause:i}):new we({code:Re.FailedToCreateVersion(),cause:i})}};d();var Eb=Ce(St(),1);import{preview as uMe}from"vite";import eo,{useCallback as cMe,useEffect as lMe,useRef as pMe}from"react";var $oe=e=>Ps("serve").action(async(t,r)=>{await El(r,e,eo.createElement(um,null,eo.createElement(dMe,null)))});function fMe(){let e=pMe(),{model:t}=tn();return lMe(()=>()=>{e.current?.httpServer.close()},[]),cMe(async()=>{let r=await uMe(await Gh(t,{type:"build"}));return e.current=r,sl(r)},[t])}function dMe(){let{model:e}=tn(),{t}=fr(),r=Gu(),{site:n}=Hu(),i=fMe(),{status:s}=en(async()=>{await dm(e.projectFolder);let a=await i(),o=await KC(e.projectFolder),u=zh(o,a);return{tag:await r.createAppRelease(u,e.config.projectId),serverUrl:a}},[]);return(0,Eb.match)(s,{Loading:()=>eo.createElement(Zr,{text:t("serve_command.starting_serve_environment")}),Error:()=>null,Success:({result:{tag:a,serverUrl:o}})=>{let[u]=e.components.filter((0,Eb.isType)(yi.DashboardPage)),l=lm({appId:e.config.appId,siteId:n.id,component:u,tag:a});return eo.createElement(ke,{paddingTop:1,flexDirection:"column"},eo.createElement(ke,{gap:1},eo.createElement(de,{skin:"success"},eo.createElement(nu,null)),eo.createElement(Rt,{i18nKey:"serve_command.starting_serve_environment_success",components:[eo.createElement(bi,{url:o})]})),eo.createElement(Rt,{i18nKey:"general.dashboard_page_text",components:[eo.createElement(bi,{url:l})]}))}})}var hMe=async e=>Ps("app").version(Hy,"-v, --version","Output the version number").enablePositionalOptions(!0).helpOption("-h, --help","Display help for command").addHelpCommand(!1).addCommand(ese(e)).addCommand(qne(e)).addCommand($oe(e)).addCommand(Zse(e)).addCommand(Koe(e));export{hMe as getRootCommand};
|
|
228
|
-
/*! Bundled license information:
|
|
229
|
-
|
|
230
|
-
scheduler/cjs/scheduler.production.min.js:
|
|
231
|
-
(**
|
|
232
|
-
* @license React
|
|
233
|
-
* scheduler.production.min.js
|
|
234
|
-
*
|
|
235
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
236
|
-
*
|
|
237
|
-
* This source code is licensed under the MIT license found in the
|
|
238
|
-
* LICENSE file in the root directory of this source tree.
|
|
239
|
-
*)
|
|
240
|
-
|
|
241
|
-
react-reconciler/cjs/react-reconciler.production.min.js:
|
|
242
|
-
(**
|
|
243
|
-
* @license React
|
|
244
|
-
* react-reconciler.production.min.js
|
|
245
|
-
*
|
|
246
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
247
|
-
*
|
|
248
|
-
* This source code is licensed under the MIT license found in the
|
|
249
|
-
* LICENSE file in the root directory of this source tree.
|
|
250
|
-
*)
|
|
251
|
-
|
|
252
|
-
react-reconciler/cjs/react-reconciler-constants.production.min.js:
|
|
253
|
-
(**
|
|
254
|
-
* @license React
|
|
255
|
-
* react-reconciler-constants.production.min.js
|
|
256
|
-
*
|
|
257
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
258
|
-
*
|
|
259
|
-
* This source code is licensed under the MIT license found in the
|
|
260
|
-
* LICENSE file in the root directory of this source tree.
|
|
261
|
-
*)
|
|
262
|
-
|
|
263
|
-
base-64/base64.js:
|
|
264
|
-
(*! https://mths.be/base64 v1.0.0 by @mathias | MIT license *)
|
|
265
|
-
|
|
266
|
-
is-extglob/index.js:
|
|
267
|
-
(*!
|
|
268
|
-
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
269
|
-
*
|
|
270
|
-
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
271
|
-
* Licensed under the MIT License.
|
|
272
|
-
*)
|
|
273
|
-
|
|
274
|
-
is-glob/index.js:
|
|
275
|
-
(*!
|
|
276
|
-
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
277
|
-
*
|
|
278
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
279
|
-
* Released under the MIT License.
|
|
280
|
-
*)
|
|
281
|
-
|
|
282
|
-
is-number/index.js:
|
|
283
|
-
(*!
|
|
284
|
-
* is-number <https://github.com/jonschlinkert/is-number>
|
|
285
|
-
*
|
|
286
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
287
|
-
* Released under the MIT License.
|
|
288
|
-
*)
|
|
289
|
-
|
|
290
|
-
to-regex-range/index.js:
|
|
291
|
-
(*!
|
|
292
|
-
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
293
|
-
*
|
|
294
|
-
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
295
|
-
* Released under the MIT License.
|
|
296
|
-
*)
|
|
297
|
-
|
|
298
|
-
fill-range/index.js:
|
|
299
|
-
(*!
|
|
300
|
-
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
301
|
-
*
|
|
302
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
303
|
-
* Licensed under the MIT License.
|
|
304
|
-
*)
|
|
305
|
-
|
|
306
|
-
queue-microtask/index.js:
|
|
307
|
-
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
308
|
-
|
|
309
|
-
run-parallel/index.js:
|
|
310
|
-
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
311
|
-
|
|
312
|
-
normalize-path/index.js:
|
|
313
|
-
(*!
|
|
314
|
-
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
315
|
-
*
|
|
316
|
-
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
317
|
-
* Released under the MIT License.
|
|
318
|
-
*)
|
|
319
|
-
|
|
320
|
-
mime-db/index.js:
|
|
321
|
-
(*!
|
|
322
|
-
* mime-db
|
|
323
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
324
|
-
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
325
|
-
* MIT Licensed
|
|
326
|
-
*)
|
|
327
|
-
|
|
328
|
-
mime-types/index.js:
|
|
329
|
-
(*!
|
|
330
|
-
* mime-types
|
|
331
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
332
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
333
|
-
* MIT Licensed
|
|
334
|
-
*)
|
|
335
|
-
*/
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import{a as _,b}from"./chunk-RGPGMVHK.js";import{a as r,b as l,c as u,d as x,e as h}from"./chunk-ZVAVQTPJ.js";import"./chunk-LHKDRLTT.js";import"./chunk-BNCDZAQC.js";import"./chunk-XVSH4K7G.js";import"./chunk-AWOTQVII.js";import"./chunk-JZEMYLWD.js";import"./chunk-FJCAYHQL.js";import"./chunk-IJ6QC2OQ.js";import"./chunk-JDGDMH7E.js";import"./chunk-JI4J5GCL.js";import"./chunk-6G7R73WW.js";import"./chunk-5CJ7KYIU.js";import{H as S}from"./chunk-U6YFRFIX.js";import{h as y}from"./chunk-52CFCSNQ.js";import{h as t}from"./chunk-HFDLXX7R.js";t();t();t();var I=o=>r("build").action(async(e,a)=>{let{runCommand:m}=await import("./render-command-3GYMO4L2.js"),{build:n}=await import("./build-2RGFEOAH.js");await m(a,o,n)});t();import V from"react";t();function c(){let o=S(b);return o.t.bind(o)}var T=o=>{let e=c();return r("dev").option("-s, --https",e("dev_command_def.option.https")).action(async(a,m)=>{let{DevCommand:n}=await import("./DevCommand-HBIIRNKJ.js"),{renderCommand:i}=await import("./render-command-3GYMO4L2.js"),{https:s=!1}=a;await i(m,o,V.createElement(n,{https:s}),{watchForModelChanges:!0})})};t();import A from"react";var g=o=>{let e=c();return r("preview").option("-s, --site <site-id>",e("app_preview_command_def.option.site"),x).option("--base-url <url>",e("app_preview_command_def.option.base_url"),h).option("--no-input",e("app_preview_command_def.option.no_input")).action(async(a,m)=>{let{nonInteractivePreview:n}=await import("./preview-3532IXSY.js"),{renderCommand:i,runCommand:s}=await import("./render-command-3GYMO4L2.js"),{PreviewCommand:f}=await import("./PreviewCommand-ISSV3BOT.js"),{site:v,baseUrl:C,input:w}=a;if(!w)return s(m,o,()=>n({site:v,baseUrl:C},o));await i(m,o,A.createElement(f,{baseUrl:C,siteIdOverride:v}))})};t();import F from"react";function M(o){let e=y.string().url().safeParse(o);if(e.success)return e.data;throw new l("Value must be a valid URL")}var O=o=>{let e=c();return r("create-version").addOption(new u("-t, --version-type <type>",e("create_version_command_def.option.version_type")).choices(["major","minor"])).option("-y, --approve-preview",e("create_version_command_def.option.approve_preview")).option("--base-url <url>",e("create_version_command_def.option.base_url"),M).action(async(a,m)=>{let{VersionType:n}=await import("./types.impl-HD4UTKFC.js"),{renderCommand:i}=await import("./render-command-3GYMO4L2.js"),{CreateVersionCommand:s}=await import("./CreateVersionCommand-M57PLQFO.js"),{approvePreview:f=!1,versionType:v,baseUrl:C}=a,w={major:n.MAJOR,minor:n.MINOR},U=v?w[v]:void 0;await i(m,o,F.createElement(s,{baseUrl:C,preApprovePreview:f,versionType:U}))})};t();import P from"react";var R=o=>r("serve").action(async(e,a)=>{let{renderCommand:m}=await import("./render-command-3GYMO4L2.js"),{SiteIdProvider:n}=await import("./SiteIdProvider-OORASSSR.js"),{ServeCommand:i}=await import("./ServeCommand-PBWWH7JV.js");await m(a,o,P.createElement(n,null,P.createElement(i,null)))});var j=async o=>r("app").version(_,"-v, --version","Output the version number").enablePositionalOptions(!0).helpOption("-h, --help","Display help for command").addHelpCommand(!1).addCommand(T(o)).addCommand(I(o)).addCommand(R(o)).addCommand(g(o)).addCommand(O(o));export{j as getRootCommand};
|
|
336
4
|
//# sourceMappingURL=index.js.map
|