expo-updates 0.28.10 → 0.28.12
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/CHANGELOG.md +8 -0
- package/android/build.gradle +2 -2
- package/check-for-changed-paths/dist/index.js +2 -0
- package/check-for-changed-paths/package.json +52 -0
- package/{e2e/setup/check-for-changed-paths.ts → check-for-changed-paths/src/index.ts} +5 -4
- package/check-for-changed-paths/tsconfig.json +12 -0
- package/e2e/fixtures/project_files/scripts/check-android-emulator.ts +2 -2
- package/e2e/setup/create-eas-project-custom-init.ts +1 -7
- package/e2e/setup/create-eas-project-old-arch.ts +43 -0
- package/e2e/setup/project.ts +4 -4
- package/package.json +7 -8
- package/bin/check-for-changed-paths/index.js +0 -4
- /package/{e2e/setup → check-for-changed-paths/src}/paths-filter/LICENSE +0 -0
- /package/{e2e/setup → check-for-changed-paths/src}/paths-filter/README.md +0 -0
- /package/{e2e/setup → check-for-changed-paths/src}/paths-filter/file.ts +0 -0
- /package/{e2e/setup → check-for-changed-paths/src}/paths-filter/filter.ts +0 -0
- /package/{e2e/setup → check-for-changed-paths/src}/paths-filter/git.ts +0 -0
- /package/{e2e/setup → check-for-changed-paths/src}/paths-filter/paths-filter-dependencies.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.28.12 — 2025-05-01
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 0.28.11 — 2025-04-30
|
|
18
|
+
|
|
19
|
+
_This version does not introduce any user-facing changes._
|
|
20
|
+
|
|
13
21
|
## 0.28.10 — 2025-04-30
|
|
14
22
|
|
|
15
23
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
|
@@ -39,7 +39,7 @@ expoModule {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
group = 'host.exp.exponent'
|
|
42
|
-
version = '0.28.
|
|
42
|
+
version = '0.28.12'
|
|
43
43
|
|
|
44
44
|
// Utility method to derive boolean values from the environment or from Java properties,
|
|
45
45
|
// and return them as strings to be used in BuildConfig fields
|
|
@@ -85,7 +85,7 @@ android {
|
|
|
85
85
|
namespace "expo.modules.updates"
|
|
86
86
|
defaultConfig {
|
|
87
87
|
versionCode 31
|
|
88
|
-
versionName '0.28.
|
|
88
|
+
versionName '0.28.12'
|
|
89
89
|
consumerProguardFiles("proguard-rules.pro")
|
|
90
90
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
91
91
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env yarn --silent ts-node --transpile-only
|
|
2
|
+
(()=>{var e={3164:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return l.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return f.default}});var n=_interopRequireDefault(r(5155));var i=_interopRequireDefault(r(6997));var o=_interopRequireDefault(r(6848));var a=_interopRequireDefault(r(6567));var s=_interopRequireDefault(r(9983));var u=_interopRequireDefault(r(2768));var l=_interopRequireDefault(r(7580));var c=_interopRequireDefault(r(8513));var f=_interopRequireDefault(r(5951));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},2164:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(6982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var i=md5;t["default"]=i},9983:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},5951:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(7580));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var i=parse;t["default"]=i},2771:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},7441:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(6982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=new Uint8Array(256);let o=i.length;function rng(){if(o>i.length-16){n.default.randomFillSync(i);o=0}return i.slice(o,o+=16)}},1911:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(6982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var i=sha1;t["default"]=i},8513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(7580));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=[];for(let e=0;e<256;++e){i.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},5155:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(7441));var i=_interopRequireDefault(r(8513));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let a;let s=0;let u=0;function v1(e,t,r){let l=t&&r||0;const c=t||new Array(16);e=e||{};let f=e.node||o;let p=e.clockseq!==undefined?e.clockseq:a;if(f==null||p==null){const t=e.random||(e.rng||n.default)();if(f==null){f=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(p==null){p=a=(t[6]<<8|t[7])&16383}}let d=e.msecs!==undefined?e.msecs:Date.now();let h=e.nsecs!==undefined?e.nsecs:u+1;const g=d-s+(h-u)/1e4;if(g<0&&e.clockseq===undefined){p=p+1&16383}if((g<0||d>s)&&e.nsecs===undefined){h=0}if(h>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}s=d;u=h;a=p;d+=122192928e5;const m=((d&268435455)*1e4+h)%4294967296;c[l++]=m>>>24&255;c[l++]=m>>>16&255;c[l++]=m>>>8&255;c[l++]=m&255;const v=d/4294967296*1e4&268435455;c[l++]=v>>>8&255;c[l++]=v&255;c[l++]=v>>>24&15|16;c[l++]=v>>>16&255;c[l++]=p>>>8|128;c[l++]=p&255;for(let e=0;e<6;++e){c[l+e]=f[e]}return t||(0,i.default)(c)}var l=v1;t["default"]=l},6997:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(6390));var i=_interopRequireDefault(r(2164));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,i.default);var a=o;t["default"]=a},6390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(8513));var i=_interopRequireDefault(r(5951));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r){t.push(e.charCodeAt(r))}return t}const o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=o;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a;function _default(e,t,r){function generateUUID(e,o,a,s){if(typeof e==="string"){e=stringToBytes(e)}if(typeof o==="string"){o=(0,i.default)(o)}if(o.length!==16){throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")}let u=new Uint8Array(16+e.length);u.set(o);u.set(e,o.length);u=r(u);u[6]=u[6]&15|t;u[8]=u[8]&63|128;if(a){s=s||0;for(let e=0;e<16;++e){a[s+e]=u[e]}return a}return(0,n.default)(u)}try{generateUUID.name=e}catch(e){}generateUUID.DNS=o;generateUUID.URL=a;return generateUUID}},6848:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(7441));var i=_interopRequireDefault(r(8513));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,i.default)(o)}var o=v4;t["default"]=o},6567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(6390));var i=_interopRequireDefault(r(1911));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,i.default);var a=o;t["default"]=a},7580:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(2771));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var i=validate;t["default"]=i},2768:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(7580));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var i=version;t["default"]=i},85:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const i=n(r(546));function spawnAsync(e,t,r={}){const n=new Error;const o=n.stack?n.stack.replace(/^.*/," ..."):null;let a;let s=new Promise(((n,s)=>{let{ignoreStdio:u,...l}=r;a=(0,i.default)(e,t,l);let c="";let f="";if(!u){if(a.stdout){a.stdout.on("data",(e=>{c+=e}))}if(a.stderr){a.stderr.on("data",(e=>{f+=e}))}}let completionListener=(r,i)=>{a.removeListener("error",errorListener);let u={pid:a.pid,output:[c,f],stdout:c,stderr:f,status:r,signal:i};if(r!==0){let n=t&&t.length>0?` ${t.join(" ")}`:"";let a=i?new Error(`${e}${n} exited with signal: ${i}`):new Error(`${e}${n} exited with non-zero code: ${r}`);if(a.stack&&o){a.stack+=`\n${o}`}Object.assign(a,u);s(a)}else{n(u)}};let errorListener=e=>{if(u){a.removeListener("exit",completionListener)}else{a.removeListener("close",completionListener)}Object.assign(e,{pid:a.pid,output:[c,f],stdout:c,stderr:f,status:null,signal:null});s(e)};if(u){a.once("exit",completionListener)}else{a.once("close",completionListener)}a.once("error",errorListener)}));s.child=a;return s}e.exports=spawnAsync},546:(e,t,r)=>{"use strict";const n=r(5317);const i=r(7877);const o=r(6469);function spawn(e,t,r){const a=i(e,t,r);const s=n.spawn(a.command,a.args,a.options);o.hookChildProcess(s,a);return s}function spawnSync(e,t,r){const a=i(e,t,r);const s=n.spawnSync(a.command,a.args,a.options);s.error=s.error||o.verifyENOENTSync(s.status,a);return s}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=o},6469:e=>{"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,r){if(!t){return}const n=e.emit;e.emit=function(t,i){if(t==="exit"){const t=verifyENOENT(i,r);if(t){return n.call(e,"error",t)}}return n.apply(e,arguments)}}function verifyENOENT(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawn")}return null}function verifyENOENTSync(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},7877:(e,t,r)=>{"use strict";const n=r(6928);const i=r(4866);const o=r(9783);const a=r(599);const s=process.platform==="win32";const u=/\.(?:com|exe)$/i;const l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function detectShebang(e){e.file=i(e);const t=e.file&&a(e.file);if(t){e.args.unshift(e.file);e.command=t;return i(e)}return e.file}function parseNonShell(e){if(!s){return e}const t=detectShebang(e);const r=!u.test(t);if(e.options.forceShell||r){const r=l.test(t);e.command=n.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map((e=>o.argument(e,r)));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const n={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?n:parseNonShell(n)}e.exports=parse},9783:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"');e=e.replace(/(?=(\\+?)?)\1$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},599:(e,t,r)=>{"use strict";const n=r(9896);const i=r(9152);function readShebang(e){const t=150;const r=Buffer.alloc(t);let o;try{o=n.openSync(e,"r");n.readSync(o,r,0,t,0);n.closeSync(o)}catch(e){}return i(r.toString())}e.exports=readShebang},4866:(e,t,r)=>{"use strict";const n=r(6928);const i=r(4467);const o=r(6689);function resolveCommandAttempt(e,t){const r=e.options.env||process.env;const a=process.cwd();const s=e.options.cwd!=null;const u=s&&process.chdir!==undefined&&!process.chdir.disabled;if(u){try{process.chdir(e.options.cwd)}catch(e){}}let l;try{l=i.sync(e.command,{path:r[o({env:r})],pathExt:t?n.delimiter:undefined})}catch(e){}finally{if(u){process.chdir(a)}}if(l){l=n.resolve(s?e.options.cwd:"",l)}return l}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},2940:(e,t,r)=>{var n=r(9896);var i;if(process.platform==="win32"||global.TESTING_WINDOWS){i=r(9225)}else{i=r(1025)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(r,n){isexe(e,t||{},(function(e,t){if(e){n(e)}else{r(t)}}))}))}i(e,t||{},(function(e,n){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;n=false}}r(e,n)}))}function sync(e,t){try{return i.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},1025:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(9896);function isexe(e,t,r){n.stat(e,(function(e,n){r(e,e?false:checkStat(n,t))}))}function sync(e,t){return checkStat(n.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var n=e.uid;var i=e.gid;var o=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var a=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var s=parseInt("100",8);var u=parseInt("010",8);var l=parseInt("001",8);var c=s|u;var f=r&l||r&u&&i===a||r&s&&n===o||r&c&&o===0;return f}},9225:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(9896);function checkPathExt(e,t){var r=t.pathExt!==undefined?t.pathExt:process.env.PATHEXT;if(!r){return true}r=r.split(";");if(r.indexOf("")!==-1){return true}for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i){return true}}return false}function checkStat(e,t,r){if(!e.isSymbolicLink()&&!e.isFile()){return false}return checkPathExt(t,r)}function isexe(e,t,r){n.stat(e,(function(n,i){r(n,n?false:checkStat(i,e,t))}))}function sync(e,t){return checkStat(n.statSync(e),e,t)}},4281:(e,t,r)=>{"use strict";var n=r(1950);var i=r(9980);function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=r(9557);e.exports.Schema=r(2046);e.exports.FAILSAFE_SCHEMA=r(9832);e.exports.JSON_SCHEMA=r(8927);e.exports.CORE_SCHEMA=r(5746);e.exports.DEFAULT_SCHEMA=r(7336);e.exports.load=n.load;e.exports.loadAll=n.loadAll;e.exports.dump=i.dump;e.exports.YAMLException=r(1248);e.exports.types={binary:r(8149),float:r(7584),map:r(7316),null:r(4333),pairs:r(6267),set:r(8758),timestamp:r(8966),bool:r(7296),int:r(2271),merge:r(6854),omap:r(8649),seq:r(7161),str:r(3929)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},9816:e=>{"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var r,n,i,o;if(t){o=Object.keys(t);for(r=0,n=o.length;r<n;r+=1){i=o[r];e[i]=t[i]}}return e}function repeat(e,t){var r="",n;for(n=0;n<t;n+=1){r+=e}return r}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}e.exports.isNothing=isNothing;e.exports.isObject=isObject;e.exports.toArray=toArray;e.exports.repeat=repeat;e.exports.isNegativeZero=isNegativeZero;e.exports.extend=extend},9980:(e,t,r)=>{"use strict";var n=r(9816);var i=r(1248);var o=r(7336);var a=Object.prototype.toString;var s=Object.prototype.hasOwnProperty;var u=65279;var l=9;var c=10;var f=13;var p=32;var d=33;var h=34;var g=35;var m=37;var v=38;var y=39;var _=42;var A=44;var E=45;var b=58;var S=61;var w=62;var x=63;var C=64;var O=91;var R=93;var k=96;var T=123;var L=124;var I=125;var N={};N[0]="\\0";N[7]="\\a";N[8]="\\b";N[9]="\\t";N[10]="\\n";N[11]="\\v";N[12]="\\f";N[13]="\\r";N[27]="\\e";N[34]='\\"';N[92]="\\\\";N[133]="\\N";N[160]="\\_";N[8232]="\\L";N[8233]="\\P";var $=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var M=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){var r,n,i,o,a,u,l;if(t===null)return{};r={};n=Object.keys(t);for(i=0,o=n.length;i<o;i+=1){a=n[i];u=String(t[a]);if(a.slice(0,2)==="!!"){a="tag:yaml.org,2002:"+a.slice(2)}l=e.compiledTypeMap["fallback"][a];if(l&&s.call(l.styleAliases,u)){u=l.styleAliases[u]}r[a]=u}return r}function encodeHex(e){var t,r,o;t=e.toString(16).toUpperCase();if(e<=255){r="x";o=2}else if(e<=65535){r="u";o=4}else if(e<=4294967295){r="U";o=8}else{throw new i("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+r+n.repeat("0",o-t.length)+t}var D=1,P=2;function State(e){this.schema=e["schema"]||o;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=n.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=compileStyleMap(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?P:D;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(e,t){var r=n.repeat(" ",t),i=0,o=-1,a="",s,u=e.length;while(i<u){o=e.indexOf("\n",i);if(o===-1){s=e.slice(i);i=u}else{s=e.slice(i,o+1);i=o+1}if(s.length&&s!=="\n")a+=r;a+=s}return a}function generateNextLine(e,t){return"\n"+n.repeat(" ",e.indent*t)}function testImplicitResolving(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1){i=e.implicitTypes[r];if(i.resolve(t)){return true}}return false}function isWhitespace(e){return e===p||e===l}function isPrintable(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==u||65536<=e&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==u&&e!==f&&e!==c}function isPlainSafe(e,t,r){var n=isNsCharOrWhitespace(e);var i=n&&!isWhitespace(e);return(r?n:n&&e!==A&&e!==O&&e!==R&&e!==T&&e!==I)&&e!==g&&!(t===b&&!i)||isNsCharOrWhitespace(t)&&!isWhitespace(t)&&e===g||t===b&&i}function isPlainSafeFirst(e){return isPrintable(e)&&e!==u&&!isWhitespace(e)&&e!==E&&e!==x&&e!==b&&e!==A&&e!==O&&e!==R&&e!==T&&e!==I&&e!==g&&e!==v&&e!==_&&e!==d&&e!==L&&e!==S&&e!==w&&e!==y&&e!==h&&e!==m&&e!==C&&e!==k}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==b}function codePointAt(e,t){var r=e.charCodeAt(t),n;if(r>=55296&&r<=56319&&t+1<e.length){n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){return(r-55296)*1024+n-56320+65536}}return r}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var H=1,j=2,F=3,B=4,q=5;function chooseScalarStyle(e,t,r,n,i,o,a,s){var u;var l=0;var f=null;var p=false;var d=false;var h=n!==-1;var g=-1;var m=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||a){for(u=0;u<e.length;l>=65536?u+=2:u++){l=codePointAt(e,u);if(!isPrintable(l)){return q}m=m&&isPlainSafe(l,f,s);f=l}}else{for(u=0;u<e.length;l>=65536?u+=2:u++){l=codePointAt(e,u);if(l===c){p=true;if(h){d=d||u-g-1>n&&e[g+1]!==" ";g=u}}else if(!isPrintable(l)){return q}m=m&&isPlainSafe(l,f,s);f=l}d=d||h&&(u-g-1>n&&e[g+1]!==" ")}if(!p&&!d){if(m&&!a&&!i(e)){return H}return o===P?q:j}if(r>9&&needIndentIndicator(e)){return q}if(!a){return d?B:F}return o===P?q:j}function writeScalar(e,t,r,n,o){e.dump=function(){if(t.length===0){return e.quotingType===P?'""':"''"}if(!e.noCompatMode){if($.indexOf(t)!==-1||M.test(t)){return e.quotingType===P?'"'+t+'"':"'"+t+"'"}}var a=e.indent*Math.max(1,r);var s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a);var u=n||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,u,e.indent,s,testAmbiguity,e.quotingType,e.forceQuotes&&!n,o)){case H:return t;case j:return"'"+t.replace(/'/g,"''")+"'";case F:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,a));case B:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,s),a));case q:return'"'+escapeString(t,s)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var r=needIndentIndicator(e)?String(t):"";var n=e[e.length-1]==="\n";var i=n&&(e[e.length-2]==="\n"||e==="\n");var o=i?"+":n?"":"-";return r+o+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var r=/(\n+)([^\n]*)/g;var n=function(){var n=e.indexOf("\n");n=n!==-1?n:e.length;r.lastIndex=n;return foldLine(e.slice(0,n),t)}();var i=e[0]==="\n"||e[0]===" ";var o;var a;while(a=r.exec(e)){var s=a[1],u=a[2];o=u[0]===" ";n+=s+(!i&&!o&&u!==""?"\n":"")+foldLine(u,t);i=o}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var n;var i=0,o,a=0,s=0;var u="";while(n=r.exec(e)){s=n.index;if(s-i>t){o=a>i?a:s;u+="\n"+e.slice(i,o);i=o+1}a=s}u+="\n";if(e.length-i>t&&a>i){u+=e.slice(i,a)+"\n"+e.slice(a+1)}else{u+=e.slice(i)}return u.slice(1)}function escapeString(e){var t="";var r=0;var n;for(var i=0;i<e.length;r>=65536?i+=2:i++){r=codePointAt(e,i);n=N[r];if(!n&&isPrintable(r)){t+=e[i];if(r>=65536)t+=e[i+1]}else{t+=n||encodeHex(r)}}return t}function writeFlowSequence(e,t,r){var n="",i=e.tag,o,a,s;for(o=0,a=r.length;o<a;o+=1){s=r[o];if(e.replacer){s=e.replacer.call(r,String(o),s)}if(writeNode(e,t,s,false,false)||typeof s==="undefined"&&writeNode(e,t,null,false,false)){if(n!=="")n+=","+(!e.condenseFlow?" ":"");n+=e.dump}}e.tag=i;e.dump="["+n+"]"}function writeBlockSequence(e,t,r,n){var i="",o=e.tag,a,s,u;for(a=0,s=r.length;a<s;a+=1){u=r[a];if(e.replacer){u=e.replacer.call(r,String(a),u)}if(writeNode(e,t+1,u,true,true,false,true)||typeof u==="undefined"&&writeNode(e,t+1,null,true,true,false,true)){if(!n||i!==""){i+=generateNextLine(e,t)}if(e.dump&&c===e.dump.charCodeAt(0)){i+="-"}else{i+="- "}i+=e.dump}}e.tag=o;e.dump=i||"[]"}function writeFlowMapping(e,t,r){var n="",i=e.tag,o=Object.keys(r),a,s,u,l,c;for(a=0,s=o.length;a<s;a+=1){c="";if(n!=="")c+=", ";if(e.condenseFlow)c+='"';u=o[a];l=r[u];if(e.replacer){l=e.replacer.call(r,u,l)}if(!writeNode(e,t,u,false,false)){continue}if(e.dump.length>1024)c+="? ";c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,l,false,false)){continue}c+=e.dump;n+=c}e.tag=i;e.dump="{"+n+"}"}function writeBlockMapping(e,t,r,n){var o="",a=e.tag,s=Object.keys(r),u,l,f,p,d,h;if(e.sortKeys===true){s.sort()}else if(typeof e.sortKeys==="function"){s.sort(e.sortKeys)}else if(e.sortKeys){throw new i("sortKeys must be a boolean or a function")}for(u=0,l=s.length;u<l;u+=1){h="";if(!n||o!==""){h+=generateNextLine(e,t)}f=s[u];p=r[f];if(e.replacer){p=e.replacer.call(r,f,p)}if(!writeNode(e,t+1,f,true,true,true)){continue}d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(d){if(e.dump&&c===e.dump.charCodeAt(0)){h+="?"}else{h+="? "}}h+=e.dump;if(d){h+=generateNextLine(e,t)}if(!writeNode(e,t+1,p,true,d)){continue}if(e.dump&&c===e.dump.charCodeAt(0)){h+=":"}else{h+=": "}h+=e.dump;o+=h}e.tag=a;e.dump=o||"{}"}function detectType(e,t,r){var n,o,u,l,c,f;o=r?e.explicitTypes:e.implicitTypes;for(u=0,l=o.length;u<l;u+=1){c=o[u];if((c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t==="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(r){if(c.multi&&c.representName){e.tag=c.representName(t)}else{e.tag=c.tag}}else{e.tag="?"}if(c.represent){f=e.styleMap[c.tag]||c.defaultStyle;if(a.call(c.represent)==="[object Function]"){n=c.represent(t,f)}else if(s.call(c.represent,f)){n=c.represent[f](t,f)}else{throw new i("!<"+c.tag+'> tag resolver accepts not "'+f+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,r,n,o,s,u){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var l=a.call(e.dump);var c=n;var f;if(n){n=e.flowLevel<0||e.flowLevel>t}var p=l==="[object Object]"||l==="[object Array]",d,h;if(p){d=e.duplicates.indexOf(r);h=d!==-1}if(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0){o=false}if(h&&e.usedDuplicates[d]){e.dump="*ref_"+d}else{if(p&&h&&!e.usedDuplicates[d]){e.usedDuplicates[d]=true}if(l==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,o);if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowMapping(e,t,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(l==="[object Array]"){if(n&&e.dump.length!==0){if(e.noArrayIndent&&!u&&t>0){writeBlockSequence(e,t-1,e.dump,o)}else{writeBlockSequence(e,t,e.dump,o)}if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowSequence(e,t,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(l==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,s,c)}}else if(l==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new i("unacceptable kind of an object to dump "+l)}if(e.tag!==null&&e.tag!=="?"){f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){f="!"+f}else if(f.slice(0,18)==="tag:yaml.org,2002:"){f="!!"+f.slice(18)}else{f="!<"+f+">"}e.dump=f+" "+e.dump}}return true}function getDuplicateReferences(e,t){var r=[],n=[],i,o;inspectNode(e,r,n);for(i=0,o=n.length;i<o;i+=1){t.duplicates.push(r[n[i]])}t.usedDuplicates=new Array(o)}function inspectNode(e,t,r){var n,i,o;if(e!==null&&typeof e==="object"){i=t.indexOf(e);if(i!==-1){if(r.indexOf(i)===-1){r.push(i)}}else{t.push(e);if(Array.isArray(e)){for(i=0,o=e.length;i<o;i+=1){inspectNode(e[i],t,r)}}else{n=Object.keys(e);for(i=0,o=n.length;i<o;i+=1){inspectNode(e[n[i]],t,r)}}}}}function dump(e,t){t=t||{};var r=new State(t);if(!r.noRefs)getDuplicateReferences(e,r);var n=e;if(r.replacer){n=r.replacer.call({"":n},"",n)}if(writeNode(r,0,n,true,true))return r.dump+"\n";return""}e.exports.dump=dump},1248:e=>{"use strict";function formatError(e,t){var r="",n=e.reason||"(unknown reason)";if(!e.mark)return n;if(e.mark.name){r+='in "'+e.mark.name+'" '}r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){r+="\n\n"+e.mark.snippet}return n+" "+r}function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},1950:(e,t,r)=>{"use strict";var n=r(9816);var i=r(1248);var o=r(9440);var a=r(7336);var s=Object.prototype.hasOwnProperty;var u=1;var l=2;var c=3;var f=4;var p=1;var d=2;var h=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var m=/[\x85\u2028\u2029]/;var v=/[,\[\]\{\}]/;var y=/^(?:!|!!|![a-z\-]+!)$/i;var _=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var A=new Array(256);var E=new Array(256);for(var b=0;b<256;b++){A[b]=simpleEscapeSequence(b)?1:0;E[b]=simpleEscapeSequence(b)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||a;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};r.snippet=o(r);return new i(t,r)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var S={YAML:function handleYamlDirective(e,t,r){var n,i,o;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(n[1],10);o=parseInt(n[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=o<2;if(o!==1&&o!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){var n,i;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}n=r[0];i=r[1];if(!y.test(n)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(s.call(e.tagMap,n)){throwError(e,'there is a previously declared suffix for "'+n+'" tag handle')}if(!_.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{i=decodeURIComponent(i)}catch(t){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i}};function captureSegment(e,t,r,n){var i,o,a,s;if(t<r){s=e.input.slice(t,r);if(n){for(i=0,o=s.length;i<o;i+=1){a=s.charCodeAt(i);if(!(a===9||32<=a&&a<=1114111)){throwError(e,"expected valid JSON character")}}}else if(g.test(s)){throwError(e,"the stream contains non-printable characters")}e.result+=s}}function mergeMappings(e,t,r,i){var o,a,u,l;if(!n.isObject(r)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}o=Object.keys(r);for(u=0,l=o.length;u<l;u+=1){a=o[u];if(!s.call(t,a)){t[a]=r[a];i[a]=true}}}function storeMappingPair(e,t,r,n,i,o,a,u,l){var c,f;if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(c=0,f=i.length;c<f;c+=1){if(Array.isArray(i[c])){throwError(e,"nested arrays are not supported inside keys")}if(typeof i==="object"&&_class(i[c])==="[object Object]"){i[c]="[object Object]"}}}if(typeof i==="object"&&_class(i)==="[object Object]"){i="[object Object]"}i=String(i);if(t===null){t={}}if(n==="tag:yaml.org,2002:merge"){if(Array.isArray(o)){for(c=0,f=o.length;c<f;c+=1){mergeMappings(e,t,o[c],r)}}else{mergeMappings(e,t,o,r)}}else{if(!e.json&&!s.call(r,i)&&s.call(t,i)){e.line=a||e.line;e.lineStart=u||e.lineStart;e.position=l||e.position;throwError(e,"duplicated mapping key")}if(i==="__proto__"){Object.defineProperty(t,i,{configurable:true,enumerable:true,writable:true,value:o})}else{t[i]=o}delete r[i]}return t}function readLineBreak(e){var t;t=e.input.charCodeAt(e.position);if(t===10){e.position++}else if(t===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{throwError(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function skipSeparationSpace(e,t,r){var n=0,i=e.input.charCodeAt(e.position);while(i!==0){while(is_WHITE_SPACE(i)){if(i===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}i=e.input.charCodeAt(++e.position)}if(t&&i===35){do{i=e.input.charCodeAt(++e.position)}while(i!==10&&i!==13&&i!==0)}if(is_EOL(i)){readLineBreak(e);i=e.input.charCodeAt(e.position);n++;e.lineIndent=0;while(i===32){e.lineIndent++;i=e.input.charCodeAt(++e.position)}}else{break}}if(r!==-1&&n!==0&&e.lineIndent<r){throwWarning(e,"deficient indentation")}return n}function testDocumentSeparator(e){var t=e.position,r;r=e.input.charCodeAt(t);if((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)){t+=3;r=e.input.charCodeAt(t);if(r===0||is_WS_OR_EOL(r)){return true}}return false}function writeFoldedLines(e,t){if(t===1){e.result+=" "}else if(t>1){e.result+=n.repeat("\n",t-1)}}function readPlainScalar(e,t,r){var n,i,o,a,s,u,l,c,f=e.kind,p=e.result,d;d=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||r&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";o=a=e.position;s=false;while(d!==0){if(d===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||r&&is_FLOW_INDICATOR(i)){break}}else if(d===35){n=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(n)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(d)){break}else if(is_EOL(d)){u=e.line;l=e.lineStart;c=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){s=true;d=e.input.charCodeAt(e.position);continue}else{e.position=a;e.line=u;e.lineStart=l;e.lineIndent=c;break}}if(s){captureSegment(e,o,a,false);writeFoldedLines(e,e.line-u);o=a=e.position;s=false}if(!is_WHITE_SPACE(d)){a=e.position+1}d=e.input.charCodeAt(++e.position)}captureSegment(e,o,a,false);if(e.result){return true}e.kind=f;e.result=p;return false}function readSingleQuotedScalar(e,t){var r,n,i;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;n=i=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,n,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){n=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,n,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var r,n,i,o,a,s;s=e.input.charCodeAt(e.position);if(s!==34){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((s=e.input.charCodeAt(e.position))!==0){if(s===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(s===92){captureSegment(e,r,e.position,true);s=e.input.charCodeAt(++e.position);if(is_EOL(s)){skipSeparationSpace(e,false,t)}else if(s<256&&A[s]){e.result+=E[s];e.position++}else if((a=escapedHexLen(s))>0){i=a;o=0;for(;i>0;i--){s=e.input.charCodeAt(++e.position);if((a=fromHexCode(s))>=0){o=(o<<4)+a}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(o);e.position++}else{throwError(e,"unknown escape sequence")}r=n=e.position}else if(is_EOL(s)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;n=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var r=true,n,i,o,a=e.tag,s,l=e.anchor,c,f,p,d,h,g=Object.create(null),m,v,y,_;_=e.input.charCodeAt(e.position);if(_===91){f=93;h=false;s=[]}else if(_===123){f=125;h=true;s={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=s}_=e.input.charCodeAt(++e.position);while(_!==0){skipSeparationSpace(e,true,t);_=e.input.charCodeAt(e.position);if(_===f){e.position++;e.tag=a;e.anchor=l;e.kind=h?"mapping":"sequence";e.result=s;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}else if(_===44){throwError(e,"expected the node content, but found ','")}v=m=y=null;p=d=false;if(_===63){c=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(c)){p=d=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;i=e.lineStart;o=e.position;composeNode(e,t,u,false,true);v=e.tag;m=e.result;skipSeparationSpace(e,true,t);_=e.input.charCodeAt(e.position);if((d||e.line===n)&&_===58){p=true;_=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,u,false,true);y=e.result}if(h){storeMappingPair(e,s,g,v,m,y,n,i,o)}else if(p){s.push(storeMappingPair(e,null,g,v,m,y,n,i,o))}else{s.push(m)}skipSeparationSpace(e,true,t);_=e.input.charCodeAt(e.position);if(_===44){r=true;_=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var r,i,o=p,a=false,s=false,u=t,l=0,c=false,f,g;g=e.input.charCodeAt(e.position);if(g===124){i=false}else if(g===62){i=true}else{return false}e.kind="scalar";e.result="";while(g!==0){g=e.input.charCodeAt(++e.position);if(g===43||g===45){if(p===o){o=g===43?h:d}else{throwError(e,"repeat of a chomping mode identifier")}}else if((f=fromDecimalCode(g))>=0){if(f===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!s){u=t+f-1;s=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(g)){do{g=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(g));if(g===35){do{g=e.input.charCodeAt(++e.position)}while(!is_EOL(g)&&g!==0)}}while(g!==0){readLineBreak(e);e.lineIndent=0;g=e.input.charCodeAt(e.position);while((!s||e.lineIndent<u)&&g===32){e.lineIndent++;g=e.input.charCodeAt(++e.position)}if(!s&&e.lineIndent>u){u=e.lineIndent}if(is_EOL(g)){l++;continue}if(e.lineIndent<u){if(o===h){e.result+=n.repeat("\n",a?1+l:l)}else if(o===p){if(a){e.result+="\n"}}break}if(i){if(is_WHITE_SPACE(g)){c=true;e.result+=n.repeat("\n",a?1+l:l)}else if(c){c=false;e.result+=n.repeat("\n",l+1)}else if(l===0){if(a){e.result+=" "}}else{e.result+=n.repeat("\n",l)}}else{e.result+=n.repeat("\n",a?1+l:l)}a=true;s=true;l=0;r=e.position;while(!is_EOL(g)&&g!==0){g=e.input.charCodeAt(++e.position)}captureSegment(e,r,e.position,false)}return true}function readBlockSequence(e,t){var r,n=e.tag,i=e.anchor,o=[],a,s=false,u;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=o}u=e.input.charCodeAt(e.position);while(u!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}if(u!==45){break}a=e.input.charCodeAt(e.position+1);if(!is_WS_OR_EOL(a)){break}s=true;e.position++;if(skipSeparationSpace(e,true,-1)){if(e.lineIndent<=t){o.push(null);u=e.input.charCodeAt(e.position);continue}}r=e.line;composeNode(e,t,c,false,true);o.push(e.result);skipSeparationSpace(e,true,-1);u=e.input.charCodeAt(e.position);if((e.line===r||e.lineIndent>t)&&u!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndent<t){break}}if(s){e.tag=n;e.anchor=i;e.kind="sequence";e.result=o;return true}return false}function readBlockMapping(e,t,r){var n,i,o,a,s,u,c=e.tag,p=e.anchor,d={},h=Object.create(null),g=null,m=null,v=null,y=false,_=false,A;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=d}A=e.input.charCodeAt(e.position);while(A!==0){if(!y&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}n=e.input.charCodeAt(e.position+1);o=e.line;if((A===63||A===58)&&is_WS_OR_EOL(n)){if(A===63){if(y){storeMappingPair(e,d,h,g,m,null,a,s,u);g=m=v=null}_=true;y=true;i=true}else if(y){y=false;i=true}else{throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;A=n}else{a=e.line;s=e.lineStart;u=e.position;if(!composeNode(e,r,l,false,true)){break}if(e.line===o){A=e.input.charCodeAt(e.position);while(is_WHITE_SPACE(A)){A=e.input.charCodeAt(++e.position)}if(A===58){A=e.input.charCodeAt(++e.position);if(!is_WS_OR_EOL(A)){throwError(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(y){storeMappingPair(e,d,h,g,m,null,a,s,u);g=m=v=null}_=true;y=false;i=false;g=e.tag;m=e.result}else if(_){throwError(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=c;e.anchor=p;return true}}else if(_){throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=c;e.anchor=p;return true}}if(e.line===o||e.lineIndent>t){if(y){a=e.line;s=e.lineStart;u=e.position}if(composeNode(e,t,f,true,i)){if(y){m=e.result}else{v=e.result}}if(!y){storeMappingPair(e,d,h,g,m,v,a,s,u);g=m=v=null}skipSeparationSpace(e,true,-1);A=e.input.charCodeAt(e.position)}if((e.line===o||e.lineIndent>t)&&A!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndent<t){break}}if(y){storeMappingPair(e,d,h,g,m,null,a,s,u)}if(_){e.tag=c;e.anchor=p;e.kind="mapping";e.result=d}return _}function readTagProperty(e){var t,r=false,n=false,i,o,a;a=e.input.charCodeAt(e.position);if(a!==33)return false;if(e.tag!==null){throwError(e,"duplication of a tag property")}a=e.input.charCodeAt(++e.position);if(a===60){r=true;a=e.input.charCodeAt(++e.position)}else if(a===33){n=true;i="!!";a=e.input.charCodeAt(++e.position)}else{i="!"}t=e.position;if(r){do{a=e.input.charCodeAt(++e.position)}while(a!==0&&a!==62);if(e.position<e.length){o=e.input.slice(t,e.position);a=e.input.charCodeAt(++e.position)}else{throwError(e,"unexpected end of the stream within a verbatim tag")}}else{while(a!==0&&!is_WS_OR_EOL(a)){if(a===33){if(!n){i=e.input.slice(t-1,e.position+1);if(!y.test(i)){throwError(e,"named tag handle cannot contain such characters")}n=true;t=e.position+1}else{throwError(e,"tag suffix cannot contain exclamation marks")}}a=e.input.charCodeAt(++e.position)}o=e.input.slice(t,e.position);if(v.test(o)){throwError(e,"tag suffix cannot contain flow indicator characters")}}if(o&&!_.test(o)){throwError(e,"tag name cannot contain such characters: "+o)}try{o=decodeURIComponent(o)}catch(t){throwError(e,"tag name is malformed: "+o)}if(r){e.tag=o}else if(s.call(e.tagMap,i)){e.tag=e.tagMap[i]+o}else if(i==="!"){e.tag="!"+o}else if(i==="!!"){e.tag="tag:yaml.org,2002:"+o}else{throwError(e,'undeclared tag handle "'+i+'"')}return true}function readAnchorProperty(e){var t,r;r=e.input.charCodeAt(e.position);if(r!==38)return false;if(e.anchor!==null){throwError(e,"duplication of an anchor property")}r=e.input.charCodeAt(++e.position);t=e.position;while(r!==0&&!is_WS_OR_EOL(r)&&!is_FLOW_INDICATOR(r)){r=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(t,e.position);return true}function readAlias(e){var t,r,n;n=e.input.charCodeAt(e.position);if(n!==42)return false;n=e.input.charCodeAt(++e.position);t=e.position;while(n!==0&&!is_WS_OR_EOL(n)&&!is_FLOW_INDICATOR(n)){n=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an alias node must contain at least one character")}r=e.input.slice(t,e.position);if(!s.call(e.anchorMap,r)){throwError(e,'unidentified alias "'+r+'"')}e.result=e.anchorMap[r];skipSeparationSpace(e,true,-1);return true}function composeNode(e,t,r,n,i){var o,a,p,d=1,h=false,g=false,m,v,y,_,A,E;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;o=a=p=f===r||c===r;if(n){if(skipSeparationSpace(e,true,-1)){h=true;if(e.lineIndent>t){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent<t){d=-1}}}if(d===1){while(readTagProperty(e)||readAnchorProperty(e)){if(skipSeparationSpace(e,true,-1)){h=true;p=o;if(e.lineIndent>t){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent<t){d=-1}}else{p=false}}}if(p){p=h||i}if(d===1||f===r){if(u===r||l===r){A=t}else{A=t+1}E=e.position-e.lineStart;if(d===1){if(p&&(readBlockSequence(e,E)||readBlockMapping(e,E,A))||readFlowCollection(e,A)){g=true}else{if(a&&readBlockScalar(e,A)||readSingleQuotedScalar(e,A)||readDoubleQuotedScalar(e,A)){g=true}else if(readAlias(e)){g=true;if(e.tag!==null||e.anchor!==null){throwError(e,"alias node should not have any properties")}}else if(readPlainScalar(e,A,u===r)){g=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else if(d===0){g=p&&readBlockSequence(e,E)}}if(e.tag===null){if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){throwError(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(m=0,v=e.implicitTypes.length;m<v;m+=1){_=e.implicitTypes[m];if(_.resolve(e.result)){e.result=_.construct(e.result);e.tag=_.tag;if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}break}}}else if(e.tag!=="!"){if(s.call(e.typeMap[e.kind||"fallback"],e.tag)){_=e.typeMap[e.kind||"fallback"][e.tag]}else{_=null;y=e.typeMap.multi[e.kind||"fallback"];for(m=0,v=y.length;m<v;m+=1){if(e.tag.slice(0,y[m].tag.length)===y[m].tag){_=y[m];break}}}if(!_){throwError(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&_.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+_.kind+'", not "'+e.kind+'"')}if(!_.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=_.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||g}function readDocument(e){var t=e.position,r,n,i,o=false,a;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((a=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);a=e.input.charCodeAt(e.position);if(e.lineIndent>0||a!==37){break}o=true;a=e.input.charCodeAt(++e.position);r=e.position;while(a!==0&&!is_WS_OR_EOL(a)){a=e.input.charCodeAt(++e.position)}n=e.input.slice(r,e.position);i=[];if(n.length<1){throwError(e,"directive name must not be less than one character in length")}while(a!==0){while(is_WHITE_SPACE(a)){a=e.input.charCodeAt(++e.position)}if(a===35){do{a=e.input.charCodeAt(++e.position)}while(a!==0&&!is_EOL(a));break}if(is_EOL(a))break;r=e.position;while(a!==0&&!is_WS_OR_EOL(a)){a=e.input.charCodeAt(++e.position)}i.push(e.input.slice(r,e.position))}if(a!==0)readLineBreak(e);if(s.call(S,n)){S[n](e,n,i)}else{throwWarning(e,'unknown document directive "'+n+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(o){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,f,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&m.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position<e.length-1){throwError(e,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(e,t){e=String(e);t=t||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}var r=new State(e,t);var n=e.indexOf("\0");if(n!==-1){r.position=n;throwError(r,"null byte is not allowed in input")}r.input+="\0";while(r.input.charCodeAt(r.position)===32){r.lineIndent+=1;r.position+=1}while(r.position<r.length-1){readDocument(r)}return r.documents}function loadAll(e,t,r){if(t!==null&&typeof t==="object"&&typeof r==="undefined"){r=t;t=null}var n=loadDocuments(e,r);if(typeof t!=="function"){return n}for(var i=0,o=n.length;i<o;i+=1){t(n[i])}}function load(e,t){var r=loadDocuments(e,t);if(r.length===0){return undefined}else if(r.length===1){return r[0]}throw new i("expected a single document in the stream, but found more")}e.exports.loadAll=loadAll;e.exports.load=load},2046:(e,t,r)=>{"use strict";var n=r(1248);var i=r(9557);function compileList(e,t){var r=[];e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){if(r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi){t=n}}));r[t]=e}));return r}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,r=arguments.length;t<r;t+=1){arguments[t].forEach(collectType)}return e}function Schema(e){return this.extend(e)}Schema.prototype.extend=function extend(e){var t=[];var r=[];if(e instanceof i){r.push(e)}else if(Array.isArray(e)){r=r.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)t=t.concat(e.implicit);if(e.explicit)r=r.concat(e.explicit)}else{throw new n("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}t.forEach((function(e){if(!(e instanceof i)){throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new n("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new n("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));r.forEach((function(e){if(!(e instanceof i)){throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var o=Object.create(Schema.prototype);o.implicit=(this.implicit||[]).concat(t);o.explicit=(this.explicit||[]).concat(r);o.compiledImplicit=compileList(o,"implicit");o.compiledExplicit=compileList(o,"explicit");o.compiledTypeMap=compileMap(o.compiledImplicit,o.compiledExplicit);return o};e.exports=Schema},5746:(e,t,r)=>{"use strict";e.exports=r(8927)},7336:(e,t,r)=>{"use strict";e.exports=r(5746).extend({implicit:[r(8966),r(6854)],explicit:[r(8149),r(8649),r(6267),r(8758)]})},9832:(e,t,r)=>{"use strict";var n=r(2046);e.exports=new n({explicit:[r(3929),r(7161),r(7316)]})},8927:(e,t,r)=>{"use strict";e.exports=r(9832).extend({implicit:[r(4333),r(7296),r(2271),r(7584)]})},9440:(e,t,r)=>{"use strict";var n=r(9816);function getLine(e,t,r,n,i){var o="";var a="";var s=Math.floor(i/2)-1;if(n-t>s){o=" ... ";t=n-s+o.length}if(r-n>s){a=" ...";r=n+s-a.length}return{str:o+e.slice(t,r).replace(/\t/g,"→")+a,pos:n-t+o.length}}function padStart(e,t){return n.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var r=/\r?\n|\r|\0/g;var i=[0];var o=[];var a;var s=-1;while(a=r.exec(e.buffer)){o.push(a.index);i.push(a.index+a[0].length);if(e.position<=a.index&&s<0){s=i.length-2}}if(s<0)s=i.length-1;var u="",l,c;var f=Math.min(e.line+t.linesAfter,o.length).toString().length;var p=t.maxLength-(t.indent+f+3);for(l=1;l<=t.linesBefore;l++){if(s-l<0)break;c=getLine(e.buffer,i[s-l],o[s-l],e.position-(i[s]-i[s-l]),p);u=n.repeat(" ",t.indent)+padStart((e.line-l+1).toString(),f)+" | "+c.str+"\n"+u}c=getLine(e.buffer,i[s],o[s],e.position,p);u+=n.repeat(" ",t.indent)+padStart((e.line+1).toString(),f)+" | "+c.str+"\n";u+=n.repeat("-",t.indent+f+3+c.pos)+"^"+"\n";for(l=1;l<=t.linesAfter;l++){if(s+l>=o.length)break;c=getLine(e.buffer,i[s+l],o[s+l],e.position-(i[s]-i[s+l]),p);u+=n.repeat(" ",t.indent)+padStart((e.line+l+1).toString(),f)+" | "+c.str+"\n"}return u.replace(/\n$/,"")}e.exports=makeSnippet},9557:(e,t,r)=>{"use strict";var n=r(1248);var i=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var o=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))}))}return t}function Type(e,t){t=t||{};Object.keys(t).forEach((function(t){if(i.indexOf(t)===-1){throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(o.indexOf(this.kind)===-1){throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},8149:(e,t,r)=>{"use strict";var n=r(9557);var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,r,n=0,o=e.length,a=i;for(r=0;r<o;r++){t=a.indexOf(e.charAt(r));if(t>64)continue;if(t<0)return false;n+=6}return n%8===0}function constructYamlBinary(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,a=i,s=0,u=[];for(t=0;t<o;t++){if(t%4===0&&t){u.push(s>>16&255);u.push(s>>8&255);u.push(s&255)}s=s<<6|a.indexOf(n.charAt(t))}r=o%4*6;if(r===0){u.push(s>>16&255);u.push(s>>8&255);u.push(s&255)}else if(r===18){u.push(s>>10&255);u.push(s>>2&255)}else if(r===12){u.push(s>>4&255)}return new Uint8Array(u)}function representYamlBinary(e){var t="",r=0,n,o,a=e.length,s=i;for(n=0;n<a;n++){if(n%3===0&&n){t+=s[r>>18&63];t+=s[r>>12&63];t+=s[r>>6&63];t+=s[r&63]}r=(r<<8)+e[n]}o=a%3;if(o===0){t+=s[r>>18&63];t+=s[r>>12&63];t+=s[r>>6&63];t+=s[r&63]}else if(o===2){t+=s[r>>10&63];t+=s[r>>4&63];t+=s[r<<2&63];t+=s[64]}else if(o===1){t+=s[r>>2&63];t+=s[r<<4&63];t+=s[64];t+=s[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},7296:(e,t,r)=>{"use strict";var n=r(9557);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},7584:(e,t,r)=>{"use strict";var n=r(9816);var i=r(9557);var o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!o.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,r;t=e.replace(/_/g,"").toLowerCase();r=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return r*parseFloat(t,10)}var a=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var r;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(n.isNegativeZero(e)){return"-0.0"}r=e.toString(10);return a.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||n.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},2271:(e,t,r)=>{"use strict";var n=r(9816);var i=r(9557);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var t=e.length,r=0,n=false,i;if(!t)return false;i=e[r];if(i==="-"||i==="+"){i=e[++r]}if(i==="0"){if(r+1===t)return true;i=e[++r];if(i==="b"){r++;for(;r<t;r++){i=e[r];if(i==="_")continue;if(i!=="0"&&i!=="1")return false;n=true}return n&&i!=="_"}if(i==="x"){r++;for(;r<t;r++){i=e[r];if(i==="_")continue;if(!isHexCode(e.charCodeAt(r)))return false;n=true}return n&&i!=="_"}if(i==="o"){r++;for(;r<t;r++){i=e[r];if(i==="_")continue;if(!isOctCode(e.charCodeAt(r)))return false;n=true}return n&&i!=="_"}}if(i==="_")return false;for(;r<t;r++){i=e[r];if(i==="_")continue;if(!isDecCode(e.charCodeAt(r))){return false}n=true}if(!n||i==="_")return false;return true}function constructYamlInteger(e){var t=e,r=1,n;if(t.indexOf("_")!==-1){t=t.replace(/_/g,"")}n=t[0];if(n==="-"||n==="+"){if(n==="-")r=-1;t=t.slice(1);n=t[0]}if(t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function isInteger(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!n.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},7316:(e,t,r)=>{"use strict";var n=r(9557);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},6854:(e,t,r)=>{"use strict";var n=r(9557);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},4333:(e,t,r)=>{"use strict";var n=r(9557);function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},8649:(e,t,r)=>{"use strict";var n=r(9557);var i=Object.prototype.hasOwnProperty;var o=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],r,n,a,s,u,l=e;for(r=0,n=l.length;r<n;r+=1){a=l[r];u=false;if(o.call(a)!=="[object Object]")return false;for(s in a){if(i.call(a,s)){if(!u)u=true;else return false}}if(!u)return false;if(t.indexOf(s)===-1)t.push(s);else return false}return true}function constructYamlOmap(e){return e!==null?e:[]}e.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},6267:(e,t,r)=>{"use strict";var n=r(9557);var i=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,r,n,o,a,s=e;a=new Array(s.length);for(t=0,r=s.length;t<r;t+=1){n=s[t];if(i.call(n)!=="[object Object]")return false;o=Object.keys(n);if(o.length!==1)return false;a[t]=[o[0],n[o[0]]]}return true}function constructYamlPairs(e){if(e===null)return[];var t,r,n,i,o,a=e;o=new Array(a.length);for(t=0,r=a.length;t<r;t+=1){n=a[t];i=Object.keys(n);o[t]=[i[0],n[i[0]]]}return o}e.exports=new n("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},7161:(e,t,r)=>{"use strict";var n=r(9557);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},8758:(e,t,r)=>{"use strict";var n=r(9557);var i=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,r=e;for(t in r){if(i.call(r,t)){if(r[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},3929:(e,t,r)=>{"use strict";var n=r(9557);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},8966:(e,t,r)=>{"use strict";var n=r(9557);var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(i.exec(e)!==null)return true;if(o.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,r,n,a,s,u,l,c=0,f=null,p,d,h;t=i.exec(e);if(t===null)t=o.exec(e);if(t===null)throw new Error("Date resolve error");r=+t[1];n=+t[2]-1;a=+t[3];if(!t[4]){return new Date(Date.UTC(r,n,a))}s=+t[4];u=+t[5];l=+t[6];if(t[7]){c=t[7].slice(0,3);while(c.length<3){c+="0"}c=+c}if(t[9]){p=+t[10];d=+(t[11]||0);f=(p*60+d)*6e4;if(t[9]==="-")f=-f}h=new Date(Date.UTC(r,n,a,s,u,l,c));if(f)h.setTime(h.getTime()-f);return h}function representYamlTimestamp(e){return e.toISOString()}e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},6689:e=>{"use strict";const pathKey=(e={})=>{const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).reverse().find((e=>e.toUpperCase()==="PATH"))||"Path"};e.exports=pathKey;e.exports["default"]=pathKey},4006:(e,t,r)=>{"use strict";const n=r(8016);const i=r(4059);function picomatch(e,t,r=false){if(t&&(t.windows===null||t.windows===undefined)){t={...t,windows:i.isWindows()}}return n(e,t,r)}Object.assign(picomatch,n);e.exports=picomatch},5595:e=>{"use strict";const t="\\\\/";const r=`[^${t}]`;const n="\\.";const i="\\+";const o="\\?";const a="\\/";const s="(?=.)";const u="[^/]";const l=`(?:${a}|$)`;const c=`(?:^|${a})`;const f=`${n}{1,2}${l}`;const p=`(?!${n})`;const d=`(?!${c}${f})`;const h=`(?!${n}{0,1}${l})`;const g=`(?!${f})`;const m=`[^.${a}]`;const v=`${u}*?`;const y="/";const _={DOT_LITERAL:n,PLUS_LITERAL:i,QMARK_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:s,QMARK:u,END_ANCHOR:l,DOTS_SLASH:f,NO_DOT:p,NO_DOTS:d,NO_DOT_SLASH:h,NO_DOTS_SLASH:g,QMARK_NO_DOT:m,STAR:v,START_ANCHOR:c,SEP:y};const A={..._,SLASH_LITERAL:`[${t}]`,QMARK:r,STAR:`${r}*?`,DOTS_SLASH:`${n}{1,2}(?:[${t}]|$)`,NO_DOT:`(?!${n})`,NO_DOTS:`(?!(?:^|[${t}])${n}{1,2}(?:[${t}]|$))`,NO_DOT_SLASH:`(?!${n}{0,1}(?:[${t}]|$))`,NO_DOTS_SLASH:`(?!${n}{1,2}(?:[${t}]|$))`,QMARK_NO_DOT:`[^.${t}]`,START_ANCHOR:`(?:^|[${t}])`,END_ANCHOR:`(?:[${t}]|$)`,SEP:"\\"};const E={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"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:E,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,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===true?A:_}}},8265:(e,t,r)=>{"use strict";const n=r(5595);const i=r(4059);const{MAX_LENGTH:o,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:l}=n;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>i.escapeRegex(e))).join("..")}return r};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=l[e]||e;const r={...t};const c=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;let f=e.length;if(f>c){throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${c}`)}const p={type:"bos",value:"",output:r.prepend||""};const d=[p];const h=r.capture?"":"?:";const g=n.globChars(r.windows);const m=n.extglobChars(g);const{DOT_LITERAL:v,PLUS_LITERAL:y,SLASH_LITERAL:_,ONE_CHAR:A,DOTS_SLASH:E,NO_DOT:b,NO_DOT_SLASH:S,NO_DOTS_SLASH:w,QMARK:x,QMARK_NO_DOT:C,STAR:O,START_ANCHOR:R}=g;const globstar=e=>`(${h}(?:(?!${R}${e.dot?E:v}).)*?)`;const k=r.dot?"":b;const T=r.dot?x:C;let L=r.bash===true?globstar(r):O;if(r.capture){L=`(${L})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const I={input:e,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:d};e=i.removePrefix(e,I);f=e.length;const N=[];const $=[];const M=[];let D=p;let P;const eos=()=>I.index===f-1;const H=I.peek=(t=1)=>e[I.index+t];const j=I.advance=()=>e[++I.index]||"";const remaining=()=>e.slice(I.index+1);const consume=(e="",t=0)=>{I.consumed+=e;I.index+=t};const append=e=>{I.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(H()==="!"&&(H(2)!=="("||H(3)==="?")){j();I.start++;e++}if(e%2===0){return false}I.negated=true;I.start++;return true};const increment=e=>{I[e]++;M.push(e)};const decrement=e=>{I[e]--;M.pop()};const push=e=>{if(D.type==="globstar"){const t=I.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||N.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){I.output=I.output.slice(0,-D.output.length);D.type="star";D.value="*";D.output=L;I.output+=D.output}}if(N.length&&e.type!=="paren"){N[N.length-1].inner+=e.value}if(e.value||e.output)append(e);if(D&&D.type==="text"&&e.type==="text"){D.output=(D.output||D.value)+e.value;D.value+=e.value;return}e.prev=D;d.push(e);D=e};const extglobOpen=(e,t)=>{const n={...m[t],conditions:1,inner:""};n.prev=D;n.parens=I.parens;n.output=I.output;const i=(r.capture?"(":"")+n.open;increment("parens");push({type:e,value:t,output:I.output?"":A});push({type:"paren",extglob:true,value:j(),output:i});N.push(n)};const extglobClose=e=>{let n=e.close+(r.capture?")":"");let i;if(e.type==="negate"){let o=L;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){o=globstar(r)}if(o!==L||eos()||/^\)+$/.test(remaining())){n=e.close=`)$))${o}`}if(e.inner.includes("*")&&(i=remaining())&&/^\.[^\\/.]+$/.test(i)){const r=parse(i,{...t,fastpaths:false}).output;n=e.close=`)${r})${o})`}if(e.prev.type==="bos"){I.negatedExtglob=true}}push({type:"paren",extglob:true,value:P,output:n});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=false;let o=e.replace(u,((e,t,r,i,o,a)=>{if(i==="\\"){n=true;return e}if(i==="?"){if(t){return t+i+(o?x.repeat(o.length):"")}if(a===0){return T+(o?x.repeat(o.length):"")}return x.repeat(r.length)}if(i==="."){return v.repeat(r.length)}if(i==="*"){if(t){return t+i+(o?L:"")}return L}return t?e:`\\${e}`}));if(n===true){if(r.unescape===true){o=o.replace(/\\/g,"")}else{o=o.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(o===e&&r.contains===true){I.output=e;return I}I.output=i.wrapOutput(o,I,t);return I}while(!eos()){P=j();if(P==="\0"){continue}if(P==="\\"){const e=H();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){P+="\\";push({type:"text",value:P});continue}const t=/^\\+/.exec(remaining());let n=0;if(t&&t[0].length>2){n=t[0].length;I.index+=n;if(n%2!==0){P+="\\"}}if(r.unescape===true){P=j()}else{P+=j()}if(I.brackets===0){push({type:"text",value:P});continue}}if(I.brackets>0&&(P!=="]"||D.value==="["||D.value==="[^")){if(r.posix!==false&&P===":"){const e=D.value.slice(1);if(e.includes("[")){D.posix=true;if(e.includes(":")){const e=D.value.lastIndexOf("[");const t=D.value.slice(0,e);const r=D.value.slice(e+2);const n=a[r];if(n){D.value=t+n;I.backtrack=true;j();if(!p.output&&d.indexOf(D)===1){p.output=A}continue}}}}if(P==="["&&H()!==":"||P==="-"&&H()==="]"){P=`\\${P}`}if(P==="]"&&(D.value==="["||D.value==="[^")){P=`\\${P}`}if(r.posix===true&&P==="!"&&D.value==="["){P="^"}D.value+=P;append({value:P});continue}if(I.quotes===1&&P!=='"'){P=i.escapeRegex(P);D.value+=P;append({value:P});continue}if(P==='"'){I.quotes=I.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:P})}continue}if(P==="("){increment("parens");push({type:"paren",value:P});continue}if(P===")"){if(I.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=N[N.length-1];if(e&&I.parens===e.parens+1){extglobClose(N.pop());continue}push({type:"paren",value:P,output:I.parens?")":"\\)"});decrement("parens");continue}if(P==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}P=`\\${P}`}else{increment("brackets")}push({type:"bracket",value:P});continue}if(P==="]"){if(r.nobracket===true||D&&D.type==="bracket"&&D.value.length===1){push({type:"text",value:P,output:`\\${P}`});continue}if(I.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:P,output:`\\${P}`});continue}decrement("brackets");const e=D.value.slice(1);if(D.posix!==true&&e[0]==="^"&&!e.includes("/")){P=`/${P}`}D.value+=P;append({value:P});if(r.literalBrackets===false||i.hasRegexChars(e)){continue}const t=i.escapeRegex(D.value);I.output=I.output.slice(0,-D.value.length);if(r.literalBrackets===true){I.output+=t;D.value=t;continue}D.value=`(${h}${t}|${D.value})`;I.output+=D.value;continue}if(P==="{"&&r.nobrace!==true){increment("braces");const e={type:"brace",value:P,output:"(",outputIndex:I.output.length,tokensIndex:I.tokens.length};$.push(e);push(e);continue}if(P==="}"){const e=$[$.length-1];if(r.nobrace===true||!e){push({type:"text",value:P,output:P});continue}let t=")";if(e.dots===true){const e=d.slice();const n=[];for(let t=e.length-1;t>=0;t--){d.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){n.unshift(e[t].value)}}t=expandRange(n,r);I.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=I.output.slice(0,e.outputIndex);const n=I.tokens.slice(e.tokensIndex);e.value=e.output="\\{";P=t="\\}";I.output=r;for(const e of n){I.output+=e.output||e.value}}push({type:"brace",value:P,output:t});decrement("braces");$.pop();continue}if(P==="|"){if(N.length>0){N[N.length-1].conditions++}push({type:"text",value:P});continue}if(P===","){let e=P;const t=$[$.length-1];if(t&&M[M.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:P,output:e});continue}if(P==="/"){if(D.type==="dot"&&I.index===I.start+1){I.start=I.index+1;I.consumed="";I.output="";d.pop();D=p;continue}push({type:"slash",value:P,output:_});continue}if(P==="."){if(I.braces>0&&D.type==="dot"){if(D.value===".")D.output=v;const e=$[$.length-1];D.type="dots";D.output+=P;D.value+=P;e.dots=true;continue}if(I.braces+I.parens===0&&D.type!=="bos"&&D.type!=="slash"){push({type:"text",value:P,output:v});continue}push({type:"dot",value:P,output:v});continue}if(P==="?"){const e=D&&D.value==="(";if(!e&&r.noextglob!==true&&H()==="("&&H(2)!=="?"){extglobOpen("qmark",P);continue}if(D&&D.type==="paren"){const e=H();let t=P;if(D.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${P}`}push({type:"text",value:P,output:t});continue}if(r.dot!==true&&(D.type==="slash"||D.type==="bos")){push({type:"qmark",value:P,output:C});continue}push({type:"qmark",value:P,output:x});continue}if(P==="!"){if(r.noextglob!==true&&H()==="("){if(H(2)!=="?"||!/[!=<:]/.test(H(3))){extglobOpen("negate",P);continue}}if(r.nonegate!==true&&I.index===0){negate();continue}}if(P==="+"){if(r.noextglob!==true&&H()==="("&&H(2)!=="?"){extglobOpen("plus",P);continue}if(D&&D.value==="("||r.regex===false){push({type:"plus",value:P,output:y});continue}if(D&&(D.type==="bracket"||D.type==="paren"||D.type==="brace")||I.parens>0){push({type:"plus",value:P});continue}push({type:"plus",value:y});continue}if(P==="@"){if(r.noextglob!==true&&H()==="("&&H(2)!=="?"){push({type:"at",extglob:true,value:P,output:""});continue}push({type:"text",value:P});continue}if(P!=="*"){if(P==="$"||P==="^"){P=`\\${P}`}const e=s.exec(remaining());if(e){P+=e[0];I.index+=e[0].length}push({type:"text",value:P});continue}if(D&&(D.type==="globstar"||D.star===true)){D.type="star";D.star=true;D.value+=P;D.output=L;I.backtrack=true;I.globstar=true;consume(P);continue}let t=remaining();if(r.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",P);continue}if(D.type==="star"){if(r.noglobstar===true){consume(P);continue}const n=D.prev;const i=n.prev;const o=n.type==="slash"||n.type==="bos";const a=i&&(i.type==="star"||i.type==="globstar");if(r.bash===true&&(!o||t[0]&&t[0]!=="/")){push({type:"star",value:P,output:""});continue}const s=I.braces>0&&(n.type==="comma"||n.type==="brace");const u=N.length&&(n.type==="pipe"||n.type==="paren");if(!o&&n.type!=="paren"&&!s&&!u){push({type:"star",value:P,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[I.index+4];if(r&&r!=="/"){break}t=t.slice(3);consume("/**",3)}if(n.type==="bos"&&eos()){D.type="globstar";D.value+=P;D.output=globstar(r);I.output=D.output;I.globstar=true;consume(P);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&!a&&eos()){I.output=I.output.slice(0,-(n.output+D.output).length);n.output=`(?:${n.output}`;D.type="globstar";D.output=globstar(r)+(r.strictSlashes?")":"|$)");D.value+=P;I.globstar=true;I.output+=n.output+D.output;consume(P);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";I.output=I.output.slice(0,-(n.output+D.output).length);n.output=`(?:${n.output}`;D.type="globstar";D.output=`${globstar(r)}${_}|${_}${e})`;D.value+=P;I.output+=n.output+D.output;I.globstar=true;consume(P+j());push({type:"slash",value:"/",output:""});continue}if(n.type==="bos"&&t[0]==="/"){D.type="globstar";D.value+=P;D.output=`(?:^|${_}|${globstar(r)}${_})`;I.output=D.output;I.globstar=true;consume(P+j());push({type:"slash",value:"/",output:""});continue}I.output=I.output.slice(0,-D.output.length);D.type="globstar";D.output=globstar(r);D.value+=P;I.output+=D.output;I.globstar=true;consume(P);continue}const n={type:"star",value:P,output:L};if(r.bash===true){n.output=".*?";if(D.type==="bos"||D.type==="slash"){n.output=k+n.output}push(n);continue}if(D&&(D.type==="bracket"||D.type==="paren")&&r.regex===true){n.output=P;push(n);continue}if(I.index===I.start||D.type==="slash"||D.type==="dot"){if(D.type==="dot"){I.output+=S;D.output+=S}else if(r.dot===true){I.output+=w;D.output+=w}else{I.output+=k;D.output+=k}if(H()!=="*"){I.output+=A;D.output+=A}}push(n)}while(I.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));I.output=i.escapeLast(I.output,"[");decrement("brackets")}while(I.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));I.output=i.escapeLast(I.output,"(");decrement("parens")}while(I.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));I.output=i.escapeLast(I.output,"{");decrement("braces")}if(r.strictSlashes!==true&&(D.type==="star"||D.type==="bracket")){push({type:"maybe_slash",value:"",output:`${_}?`})}if(I.backtrack===true){I.output="";for(const e of I.tokens){I.output+=e.output!=null?e.output:e.value;if(e.suffix){I.output+=e.suffix}}}return I};parse.fastpaths=(e,t)=>{const r={...t};const a=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;const s=e.length;if(s>a){throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${a}`)}e=l[e]||e;const{DOT_LITERAL:u,SLASH_LITERAL:c,ONE_CHAR:f,DOTS_SLASH:p,NO_DOT:d,NO_DOTS:h,NO_DOTS_SLASH:g,STAR:m,START_ANCHOR:v}=n.globChars(r.windows);const y=r.dot?h:d;const _=r.dot?g:d;const A=r.capture?"":"?:";const E={negated:false,prefix:""};let b=r.bash===true?".*?":m;if(r.capture){b=`(${b})`}const globstar=e=>{if(e.noglobstar===true)return b;return`(${A}(?:(?!${v}${e.dot?p:u}).)*?)`};const create=e=>{switch(e){case"*":return`${y}${f}${b}`;case".*":return`${u}${f}${b}`;case"*.*":return`${y}${b}${u}${f}${b}`;case"*/*":return`${y}${b}${c}${f}${_}${b}`;case"**":return y+globstar(r);case"**/*":return`(?:${y}${globstar(r)}${c})?${_}${f}${b}`;case"**/*.*":return`(?:${y}${globstar(r)}${c})?${_}${b}${u}${f}${b}`;case"**/.*":return`(?:${y}${globstar(r)}${c})?${u}${f}${b}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=create(t[1]);if(!r)return;return r+u+t[2]}}};const S=i.removePrefix(e,E);let w=create(S);if(w&&r.strictSlashes!==true){w+=`${c}?`}return w};e.exports=parse},8016:(e,t,r)=>{"use strict";const n=r(1781);const i=r(8265);const o=r(4059);const a=r(5595);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,r=false)=>{if(Array.isArray(e)){const n=e.map((e=>picomatch(e,t,r)));const arrayMatcher=e=>{for(const t of n){const r=t(e);if(r)return r}return false};return arrayMatcher}const n=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!n){throw new TypeError("Expected pattern to be a non-empty string")}const i=t||{};const o=i.windows;const a=n?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const s=a.state;delete a.state;let isIgnored=()=>false;if(i.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(i.ignore,e,r)}const matcher=(r,n=false)=>{const{isMatch:u,match:l,output:c}=picomatch.test(r,a,t,{glob:e,posix:o});const f={glob:e,state:s,regex:a,posix:o,input:r,output:c,match:l,isMatch:u};if(typeof i.onResult==="function"){i.onResult(f)}if(u===false){f.isMatch=false;return n?f:false}if(isIgnored(r)){if(typeof i.onIgnore==="function"){i.onIgnore(f)}f.isMatch=false;return n?f:false}if(typeof i.onMatch==="function"){i.onMatch(f)}return n?f:true};if(r){matcher.state=s}return matcher};picomatch.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:false,output:""}}const a=r||{};const s=a.format||(i?o.toPosixSlashes:null);let u=e===n;let l=u&&s?s(e):e;if(u===false){l=s?s(e):e;u=l===n}if(u===false||a.capture===true){if(a.matchBase===true||a.basename===true){u=picomatch.matchBase(e,t,r,i)}else{u=t.exec(l)}}return{isMatch:Boolean(u),match:u,output:l}};picomatch.matchBase=(e,t,r)=>{const n=t instanceof RegExp?t:picomatch.makeRe(t,r);return n.test(o.basename(e))};picomatch.isMatch=(e,t,r)=>picomatch(t,r)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return i(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>n(e,t);picomatch.compileRe=(e,t,r=false,n=false)=>{if(r===true){return e.output}const i=t||{};const o=i.contains?"":"^";const a=i.contains?"":"$";let s=`${o}(?:${e.output})${a}`;if(e&&e.negated===true){s=`^(?!${s}).*$`}const u=picomatch.toRegex(s,t);if(n===true){u.state=e}return u};picomatch.makeRe=(e,t={},r=false,n=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let o={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){o.output=i.fastpaths(e,t)}if(!o.output){o=i(e,t)}return picomatch.compileRe(o,t,r,n)};picomatch.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=a;e.exports=picomatch},1781:(e,t,r)=>{"use strict";const n=r(4059);const{CHAR_ASTERISK:i,CHAR_AT:o,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:s,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:h,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:v,CHAR_RIGHT_SQUARE_BRACKET:y}=r(5595);const isPathSeparator=e=>e===c||e===a;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const r=t||{};const _=e.length-1;const A=r.parts===true||r.scanToEnd===true;const E=[];const b=[];const S=[];let w=e;let x=-1;let C=0;let O=0;let R=false;let k=false;let T=false;let L=false;let I=false;let N=false;let $=false;let M=false;let D=false;let P=false;let H=0;let j;let F;let B={value:"",depth:0,isGlob:false};const eos=()=>x>=_;const peek=()=>w.charCodeAt(x+1);const advance=()=>{j=F;return w.charCodeAt(++x)};while(x<_){F=advance();let e;if(F===a){$=B.backslashes=true;F=advance();if(F===f){N=true}continue}if(N===true||F===f){H++;while(eos()!==true&&(F=advance())){if(F===a){$=B.backslashes=true;advance();continue}if(F===f){H++;continue}if(N!==true&&F===u&&(F=advance())===u){R=B.isBrace=true;T=B.isGlob=true;P=true;if(A===true){continue}break}if(N!==true&&F===s){R=B.isBrace=true;T=B.isGlob=true;P=true;if(A===true){continue}break}if(F===m){H--;if(H===0){N=false;R=B.isBrace=true;P=true;break}}}if(A===true){continue}break}if(F===c){E.push(x);b.push(B);B={value:"",depth:0,isGlob:false};if(P===true)continue;if(j===u&&x===C+1){C+=2;continue}O=x+1;continue}if(r.noext!==true){const e=F===h||F===o||F===i||F===g||F===l;if(e===true&&peek()===p){T=B.isGlob=true;L=B.isExtglob=true;P=true;if(F===l&&x===C){D=true}if(A===true){while(eos()!==true&&(F=advance())){if(F===a){$=B.backslashes=true;F=advance();continue}if(F===v){T=B.isGlob=true;P=true;break}}continue}break}}if(F===i){if(j===i)I=B.isGlobstar=true;T=B.isGlob=true;P=true;if(A===true){continue}break}if(F===g){T=B.isGlob=true;P=true;if(A===true){continue}break}if(F===d){while(eos()!==true&&(e=advance())){if(e===a){$=B.backslashes=true;advance();continue}if(e===y){k=B.isBracket=true;T=B.isGlob=true;P=true;break}}if(A===true){continue}break}if(r.nonegate!==true&&F===l&&x===C){M=B.negated=true;C++;continue}if(r.noparen!==true&&F===p){T=B.isGlob=true;if(A===true){while(eos()!==true&&(F=advance())){if(F===p){$=B.backslashes=true;F=advance();continue}if(F===v){P=true;break}}continue}break}if(T===true){P=true;if(A===true){continue}break}}if(r.noext===true){L=false;T=false}let q=w;let G="";let U="";if(C>0){G=w.slice(0,C);w=w.slice(C);O-=C}if(q&&T===true&&O>0){q=w.slice(0,O);U=w.slice(O)}else if(T===true){q="";U=w}else{q=w}if(q&&q!==""&&q!=="/"&&q!==w){if(isPathSeparator(q.charCodeAt(q.length-1))){q=q.slice(0,-1)}}if(r.unescape===true){if(U)U=n.removeBackslashes(U);if(q&&$===true){q=n.removeBackslashes(q)}}const Y={prefix:G,input:e,start:C,base:q,glob:U,isBrace:R,isBracket:k,isGlob:T,isExtglob:L,isGlobstar:I,negated:M,negatedExtglob:D};if(r.tokens===true){Y.maxDepth=0;if(!isPathSeparator(F)){b.push(B)}Y.tokens=b}if(r.parts===true||r.tokens===true){let t;for(let n=0;n<E.length;n++){const i=t?t+1:C;const o=E[n];const a=e.slice(i,o);if(r.tokens){if(n===0&&C!==0){b[n].isPrefix=true;b[n].value=G}else{b[n].value=a}depth(b[n]);Y.maxDepth+=b[n].depth}if(n!==0||a!==""){S.push(a)}t=o}if(t&&t+1<e.length){const n=e.slice(t+1);S.push(n);if(r.tokens){b[b.length-1].value=n;depth(b[b.length-1]);Y.maxDepth+=b[b.length-1].depth}}Y.slashes=E;Y.parts=S}return Y};e.exports=scan},4059:(e,t,r)=>{"use strict";const{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:a}=r(5595);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>o.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(a,"\\$1");t.toPosixSlashes=e=>e.replace(n,"/");t.isWindows=()=>{if(typeof navigator!=="undefined"&&navigator.platform){const e=navigator.platform.toLowerCase();return e==="win32"||e==="windows"}if(typeof process!=="undefined"&&process.platform){return process.platform==="win32"}return false};t.removeBackslashes=e=>e.replace(i,(e=>e==="\\"?"":e));t.escapeLast=(e,r,n)=>{const i=e.lastIndexOf(r,n);if(i===-1)return e;if(e[i-1]==="\\")return t.escapeLast(e,r,i-1);return`${e.slice(0,i)}\\${e.slice(i)}`};t.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r};t.wrapOutput=(e,t={},r={})=>{const n=r.contains?"":"^";const i=r.contains?"":"$";let o=`${n}(?:${e})${i}`;if(t.negated===true){o=`(?:^(?!${o}).*$)`}return o};t.basename=(e,{windows:t}={})=>{const r=e.split(t?/[\\/]/:"/");const n=r[r.length-1];if(n===""){return r[r.length-2]}return n}},9152:(e,t,r)=>{"use strict";const n=r(7334);e.exports=(e="")=>{const t=e.match(n);if(!t){return null}const[r,i]=t[0].replace(/#! ?/,"").split(" ");const o=r.split("/").pop();if(o==="env"){return i}return i?`${o} ${i}`:o}},7334:e=>{"use strict";e.exports=/^#!(.*)/},4467:(e,t,r)=>{const n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const i=r(6928);const o=n?";":":";const a=r(2940);const getNotFoundError=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"});const getPathInfo=(e,t)=>{const r=t.colon||o;const i=e.match(/\//)||n&&e.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)];const a=n?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const s=n?a.split(r):[""];if(n){if(e.indexOf(".")!==-1&&s[0]!=="")s.unshift("")}return{pathEnv:i,pathExt:s,pathExtExe:a}};const which=(e,t,r)=>{if(typeof t==="function"){r=t;t={}}if(!t)t={};const{pathEnv:n,pathExt:o,pathExtExe:s}=getPathInfo(e,t);const u=[];const step=r=>new Promise(((o,a)=>{if(r===n.length)return t.all&&u.length?o(u):a(getNotFoundError(e));const s=n[r];const l=/^".*"$/.test(s)?s.slice(1,-1):s;const c=i.join(l,e);const f=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;o(subStep(f,r,0))}));const subStep=(e,r,n)=>new Promise(((i,l)=>{if(n===o.length)return i(step(r+1));const c=o[n];a(e+c,{pathExt:s},((o,a)=>{if(!o&&a){if(t.all)u.push(e+c);else return i(e+c)}return i(subStep(e,r,n+1))}))}));return r?step(0).then((e=>r(null,e)),r):step(0)};const whichSync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:o}=getPathInfo(e,t);const s=[];for(let u=0;u<r.length;u++){const l=r[u];const c=/^".*"$/.test(l)?l.slice(1,-1):l;const f=i.join(c,e);const p=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;for(let e=0;e<n.length;e++){const r=p+n[e];try{const e=a.sync(r,{pathExt:o});if(e){if(t.all)s.push(r);else return r}}catch(e){}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw getNotFoundError(e)};e.exports=which;which.sync=whichSync},9407:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[t.length]=r;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ownKeys(e),o=0;o<r.length;o++)if(r[o]!=="default")n(t,e,r[o]);i(t,e);return t}}();var a=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});const s=r(3164);const u=r(1215);const l=o(r(5085));const c=r(85);const f=r(4006);(function(){return a(this,void 0,void 0,(function*(){const e=[...process["argv"].slice(2)];if(e.length<1){throw new Error("Usage: check-for-changed-paths <git_event_name> <branch> [<path1> <path2> ...]")}const t=e.shift();if(!shouldDoPathsCheck(t)){console.log(`didChange: true`);yield setOutput("result","true");return}const r=e.shift();const n=[...e];if(n.length===0){console.log("false");return}console.log(`branch: ${r}`);console.log(`pathsToCheck: ${JSON.stringify(n,null,2)}`);const i=(0,s.v4)();const o=(0,s.v4)();yield prepareGit(r,i,o);const a=yield l.getChanges(o,i);const u=new Filter;u.loadFromEntries(n);const c=u.match(a);console.log(`results: ${JSON.stringify(c,null,2)}`);const f=(yield didAnyFilesChange(c))?"true":"false";console.log(`didChange: ${f}`);yield setOutput("result",f)}))})();const p={dot:true};class Filter extends u.Filter{loadFromEntries(e){for(const t of e){this.rules[t]=[{status:undefined,isMatch:f(t,p)}]}}}function shouldDoPathsCheck(e){console.log(`git_event_name: ${e}`);return e==="pull_request"||e==="push"}function didAnyFilesChange(e){return a(this,void 0,void 0,(function*(){return Object.values(e).some((e=>e.length>0))}))}function setOutput(e,t){return a(this,void 0,void 0,(function*(){yield c("set-output",[e,t],{stdio:"inherit"})}))}function prepareGit(e,t,r){return a(this,void 0,void 0,(function*(){yield c("git",["config","user.email",process.env.GIT_AUTHOR_EMAIL],{stdio:"ignore"});yield c("git",["config","user.name",process.env.GIT_AUTHOR_NAME],{stdio:"ignore"});yield c("git",["checkout","-b",t],{stdio:"ignore"});yield c("git",["add","."],{stdio:"ignore"});yield c("git",["commit","--allow-empty","-m","tmp"],{stdio:"ignore"});yield c("git",["fetch","origin",e],{stdio:"ignore"});yield c("git",["checkout","FETCH_HEAD"],{stdio:"ignore"});yield c("git",["switch","-c",r],{stdio:"ignore"});yield c("git",["checkout",t],{stdio:"ignore"})}))}},3899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ChangeStatus=void 0;var r;(function(e){e["Added"]="added";e["Copied"]="copied";e["Deleted"]="deleted";e["Modified"]="modified";e["Renamed"]="renamed";e["Unmerged"]="unmerged"})(r||(t.ChangeStatus=r={}))},1215:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[t.length]=r;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ownKeys(e),o=0;o<r.length;o++)if(r[o]!=="default")n(t,e,r[o]);i(t,e);return t}}();Object.defineProperty(t,"__esModule",{value:true});t.Filter=t.SUPPORTED_PREDICATE_QUANTIFIERS=t.PredicateQuantifier=void 0;t.isPredicateQuantifier=isPredicateQuantifier;const a=o(r(4281));const s=r(4006)["default"];const u={dot:true};var l;(function(e){e["EVERY"]="every";e["SOME"]="some"})(l||(t.PredicateQuantifier=l={}));t.SUPPORTED_PREDICATE_QUANTIFIERS=Object.values(l);function isPredicateQuantifier(e){return t.SUPPORTED_PREDICATE_QUANTIFIERS.includes(e)}class Filter{constructor(e,t){this.filterConfig=t;this.rules={};if(e){this.load(e)}}load(e){if(!e){return}const t=a.load(e);if(typeof t!=="object"){this.throwInvalidFormatError("Root element is not an object")}for(const[e,r]of Object.entries(t)){this.rules[e]=this.parseFilterItemYaml(r)}}match(e){const t={};for(const[r,n]of Object.entries(this.rules)){t[r]=e.filter((e=>this.isMatch(e,n)))}return t}isMatch(e,t){var r;const aPredicate=t=>(t.status===undefined||t.status.includes(e.status))&&t.isMatch(e.filename);if(((r=this.filterConfig)===null||r===void 0?void 0:r.predicateQuantifier)==="every"){return t.every(aPredicate)}else{return t.some(aPredicate)}}parseFilterItemYaml(e){if(Array.isArray(e)){return flat(e.map((e=>this.parseFilterItemYaml(e))))}if(typeof e==="string"){return[{status:undefined,isMatch:s(e,u)}]}if(typeof e==="object"){return Object.entries(e).map((([e,t])=>{if(typeof e!=="string"||typeof t!=="string"&&!Array.isArray(t)){this.throwInvalidFormatError(`Expected [key:string]= pattern:string | string[], but [${e}:${typeof e}]= ${t}:${typeof t} found`)}return{status:e.split("|").map((e=>e.trim())).filter((e=>e.length>0)).map((e=>e.toLowerCase())),isMatch:s(t,u)}}))}this.throwInvalidFormatError(`Unexpected element type '${typeof e}'`)}throwInvalidFormatError(e){throw new Error(`Invalid filter YAML format: ${e}.`)}}t.Filter=Filter;function flat(e){return e.reduce(((e,t)=>e.concat(t)),[])}},5085:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HEAD=t.NULL_SHA=void 0;t.getChangesInLastCommit=getChangesInLastCommit;t.getChanges=getChanges;t.getChangesOnHead=getChangesOnHead;t.getChangesSinceMergeBase=getChangesSinceMergeBase;t.parseGitDiffOutput=parseGitDiffOutput;t.listAllFilesAsAdded=listAllFilesAsAdded;t.getCurrentRef=getCurrentRef;t.getShortName=getShortName;t.isGitSha=isGitSha;const i=r(3899);const o=r(1128);t.NULL_SHA="0000000000000000000000000000000000000000";t.HEAD="HEAD";function getChangesInLastCommit(){return n(this,void 0,void 0,(function*(){o.core.startGroup(`Change detection in last commit`);let e="";try{e=(yield(0,o.getExecOutput)("git",["log","--format=","--no-renames","--name-status","-z","-n","1"])).stdout}finally{fixStdOutNullTermination();o.core.endGroup()}return parseGitDiffOutput(e)}))}function getChanges(e,t){return n(this,void 0,void 0,(function*(){const r=yield ensureRefAvailable(e);const n=yield ensureRefAvailable(t);o.core.startGroup(`Change detection ${e}..${t}`);let i="";try{i=(yield(0,o.getExecOutput)("git",["diff","--no-renames","--name-status","-z",`${r}..${n}`])).stdout}finally{fixStdOutNullTermination();o.core.endGroup()}return parseGitDiffOutput(i)}))}function getChangesOnHead(){return n(this,void 0,void 0,(function*(){o.core.startGroup(`Change detection on HEAD`);let e="";try{e=(yield(0,o.getExecOutput)("git",["diff","--no-renames","--name-status","-z","HEAD"])).stdout}finally{fixStdOutNullTermination();o.core.endGroup()}return parseGitDiffOutput(e)}))}function getChangesSinceMergeBase(e,t,r){return n(this,void 0,void 0,(function*(){let i;let a;function hasMergeBase(){return n(this,void 0,void 0,(function*(){if(i===undefined||a===undefined){return false}return(yield(0,o.getExecOutput)("git",["merge-base",i,a],{ignoreReturnCode:true})).exitCode===0}))}let s=false;o.core.startGroup(`Searching for merge-base ${e}...${t}`);try{i=yield getLocalRef(e);a=yield getLocalRef(t);if(!(yield hasMergeBase())){yield(0,o.getExecOutput)("git",["fetch","--no-tags",`--depth=${r}`,"origin",e,t]);if(i===undefined||a===undefined){i=i!==null&&i!==void 0?i:yield getLocalRef(e);a=a!==null&&a!==void 0?a:yield getLocalRef(t);if(i===undefined||a===undefined){yield(0,o.getExecOutput)("git",["fetch","--tags","--depth=1","origin",e,t],{ignoreReturnCode:true});i=i!==null&&i!==void 0?i:yield getLocalRef(e);a=a!==null&&a!==void 0?a:yield getLocalRef(t);if(i===undefined){throw new Error(`Could not determine what is ${e} - fetch works but it's not a branch, tag or commit SHA`)}if(a===undefined){throw new Error(`Could not determine what is ${t} - fetch works but it's not a branch, tag or commit SHA`)}}}let n=r;let u=yield getCommitCount();while(!(yield hasMergeBase())){n=Math.min(n*2,Number.MAX_SAFE_INTEGER);yield(0,o.getExecOutput)("git",["fetch",`--deepen=${n}`,"origin",e,t]);const r=yield getCommitCount();if(r===u){o.core.info("No more commits were fetched");o.core.info("Last attempt will be to fetch full history");yield(0,o.getExecOutput)("git",["fetch"]);if(!(yield hasMergeBase())){s=true}break}u=r}}}finally{o.core.endGroup()}let u=`${i}...${a}`;if(s){o.core.warning("No merge base found - change detection will use direct <commit>..<commit> comparison");u=`${i}..${a}`}o.core.startGroup(`Change detection ${u}`);let l="";try{l=(yield(0,o.getExecOutput)("git",["diff","--no-renames","--name-status","-z",u])).stdout}finally{fixStdOutNullTermination();o.core.endGroup()}return parseGitDiffOutput(l)}))}function parseGitDiffOutput(e){const t=e.split("\0").filter((e=>e.length>0));const r=[];for(let e=0;e+1<t.length;e+=2){r.push({status:a[t[e]],filename:t[e+1]})}return r}function listAllFilesAsAdded(){return n(this,void 0,void 0,(function*(){o.core.startGroup("Listing all files tracked by git");let e="";try{e=(yield(0,o.getExecOutput)("git",["ls-files","-z"])).stdout}finally{fixStdOutNullTermination();o.core.endGroup()}return e.split("\0").filter((e=>e.length>0)).map((e=>({status:i.ChangeStatus.Added,filename:e})))}))}function getCurrentRef(){return n(this,void 0,void 0,(function*(){o.core.startGroup(`Get current git ref`);try{const e=(yield(0,o.getExecOutput)("git",["branch","--show-current"])).stdout.trim();if(e){return e}const r=yield(0,o.getExecOutput)("git",["describe","--tags","--exact-match"],{ignoreReturnCode:true});if(r.exitCode===0){return r.stdout.trim()}return(yield(0,o.getExecOutput)("git",["rev-parse",t.HEAD])).stdout.trim()}finally{o.core.endGroup()}}))}function getShortName(e){if(!e)return"";const t="refs/heads/";const r="refs/tags/";if(e.startsWith(t))return e.slice(t.length);if(e.startsWith(r))return e.slice(r.length);return e}function isGitSha(e){return/^[a-z0-9]{40}$/.test(e)}function hasCommit(e){return n(this,void 0,void 0,(function*(){return(yield(0,o.getExecOutput)("git",["cat-file","-e",`${e}^{commit}`],{ignoreReturnCode:true})).exitCode===0}))}function getCommitCount(){return n(this,void 0,void 0,(function*(){const e=(yield(0,o.getExecOutput)("git",["rev-list","--count","--all"])).stdout;const t=parseInt(e);return isNaN(t)?0:t}))}function getLocalRef(e){return n(this,void 0,void 0,(function*(){if(isGitSha(e)){return(yield hasCommit(e))?e:undefined}const t=(yield(0,o.getExecOutput)("git",["show-ref",e],{ignoreReturnCode:true})).stdout;const r=t.split(/\r?\n/g).map((e=>e.match(/refs\/(?:(?:heads)|(?:tags)|(?:remotes\/origin))\/(.*)$/))).filter((t=>t!==null&&t[1]===e)).map((e=>{var t;return(t=e===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:""}));if(r.length===0){return undefined}const n=r.find((e=>e.startsWith("refs/remotes/origin/")));if(n){return n}return r[0]}))}function ensureRefAvailable(e){return n(this,void 0,void 0,(function*(){o.core.startGroup(`Ensuring ${e} is fetched from origin`);try{let t=yield getLocalRef(e);if(t===undefined){yield(0,o.getExecOutput)("git",["fetch","--depth=1","--no-tags","origin",e]);t=yield getLocalRef(e);if(t===undefined){yield(0,o.getExecOutput)("git",["fetch","--depth=1","--tags","origin",e]);t=yield getLocalRef(e);if(t===undefined){throw new Error(`Could not determine what is ${e} - fetch works but it's not a branch, tag or commit SHA`)}}}return t}finally{o.core.endGroup()}}))}function fixStdOutNullTermination(){o.core.info("")}const a={A:i.ChangeStatus.Added,C:i.ChangeStatus.Copied,D:i.ChangeStatus.Deleted,M:i.ChangeStatus.Modified,R:i.ChangeStatus.Renamed,U:i.ChangeStatus.Unmerged}},1128:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.core=t.getExecOutput=void 0;const i=r(85);const getExecOutput=(e,t,r)=>n(void 0,void 0,void 0,(function*(){var n;const o=yield i(e,t,{stdio:"pipe"});if(o.status===0||(r===null||r===void 0?void 0:r.ignoreReturnCode)){return Object.assign(Object.assign({},o),{exitCode:(n=o.status)!==null&&n!==void 0?n:0})}throw new Error(o.stderr)}));t.getExecOutput=getExecOutput;t.core={startGroup:e=>{},endGroup:()=>{},info:e=>{},warning:e=>{}}},5317:e=>{"use strict";e.exports=require("child_process")},6982:e=>{"use strict";e.exports=require("crypto")},9896:e=>{"use strict";e.exports=require("fs")},6928:e=>{"use strict";e.exports=require("path")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var o=true;try{e[r].call(i.exports,i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(9407);module.exports=r})();
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "check-for-changed-paths",
|
|
3
|
+
"version": "0.28.11",
|
|
4
|
+
"description": "Tool to check for changed paths in EAS workflows",
|
|
5
|
+
"main": "build/index.js",
|
|
6
|
+
"types": "build/index.d.ts",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"bin": {
|
|
9
|
+
"expo-updates": "bin/cli.js"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build:check-paths": "ncc build ./src/index.ts --minify --transpile-only --no-cache --no-source-map-register"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"expo",
|
|
16
|
+
"updates"
|
|
17
|
+
],
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/expo/expo.git",
|
|
21
|
+
"directory": "packages/expo-updates/check-for-changed-paths"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/expo/expo/issues"
|
|
25
|
+
},
|
|
26
|
+
"author": "650 Industries, Inc.",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"homepage": "https://docs.expo.dev/versions/latest/sdk/updates/",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@expo/spawn-async": "^1.7.2",
|
|
31
|
+
"@vercel/ncc": "^0.38.1",
|
|
32
|
+
"arg": "4.1.0",
|
|
33
|
+
"chalk": "^4.1.2",
|
|
34
|
+
"glob": "^10.4.2",
|
|
35
|
+
"ignore": "^5.3.1",
|
|
36
|
+
"resolve-from": "^5.0.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/js-yaml": "^4.0.9",
|
|
40
|
+
"@types/node": "^22.14.0",
|
|
41
|
+
"@types/node-forge": "^1.0.0",
|
|
42
|
+
"@types/picomatch": "^4.0.0",
|
|
43
|
+
"@vercel/ncc": "^0.38.1",
|
|
44
|
+
"js-yaml": "^4.1.0",
|
|
45
|
+
"memfs": "^3.2.0",
|
|
46
|
+
"picomatch": "^4.0.2"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"expo": "*",
|
|
50
|
+
"react": "*"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -31,9 +31,10 @@ const picomatch = require('picomatch');
|
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
//
|
|
34
|
+
// Until paths support is added to EAS workflows, we should do the paths check
|
|
35
|
+
// for push and pull request workflows
|
|
35
36
|
const github_event_name = args.shift() as unknown as string;
|
|
36
|
-
if (!
|
|
37
|
+
if (!shouldDoPathsCheck(github_event_name)) {
|
|
37
38
|
console.log(`didChange: true`);
|
|
38
39
|
await setOutput('result', 'true');
|
|
39
40
|
return;
|
|
@@ -73,9 +74,9 @@ class Filter extends PathsFilter {
|
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
|
|
76
|
-
function
|
|
77
|
+
function shouldDoPathsCheck(github_event_name: string) {
|
|
77
78
|
console.log(`git_event_name: ${github_event_name}`);
|
|
78
|
-
return github_event_name === 'pull_request';
|
|
79
|
+
return github_event_name === 'pull_request' || github_event_name === 'push';
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
async function didAnyFilesChange(result: FilterResults) {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @generated by expo-module-scripts
|
|
2
|
+
{
|
|
3
|
+
"extends": "expo-module-scripts/tsconfig.base",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"target": "es2015",
|
|
6
|
+
"module": "Node16",
|
|
7
|
+
"moduleResolution": "Node16",
|
|
8
|
+
"outDir": "./build"
|
|
9
|
+
},
|
|
10
|
+
"include": ["./src"],
|
|
11
|
+
"exclude": ["**/__mocks__/*", "**/__tests__/*", "**/__rsc_tests__/*"]
|
|
12
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env yarn --silent ts-node --transpile-only
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const spawnAsync = require('@expo/spawn-async');
|
|
4
|
+
const delay = require('timers/promises').setTimeout;
|
|
5
5
|
|
|
6
6
|
const isEmulatorRunning = async () => {
|
|
7
7
|
try {
|
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
import nullthrows from 'nullthrows';
|
|
4
4
|
import path from 'path';
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
initAsync,
|
|
8
|
-
repoRoot,
|
|
9
|
-
setupE2EAppAsync,
|
|
10
|
-
transformAppJsonForE2EWithCustomInit,
|
|
11
|
-
} from './project';
|
|
6
|
+
import { initAsync, repoRoot, setupE2EAppAsync } from './project';
|
|
12
7
|
|
|
13
8
|
const workingDir = path.resolve(repoRoot, '..');
|
|
14
9
|
const runtimeVersion = '1.0.0';
|
|
@@ -39,7 +34,6 @@ const runtimeVersion = '1.0.0';
|
|
|
39
34
|
runtimeVersion,
|
|
40
35
|
localCliBin,
|
|
41
36
|
useCustomInit: true,
|
|
42
|
-
transformAppJson: transformAppJsonForE2EWithCustomInit,
|
|
43
37
|
});
|
|
44
38
|
|
|
45
39
|
await setupE2EAppAsync(projectRoot, { localCliBin, repoRoot });
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/usr/bin/env yarn --silent ts-node --transpile-only
|
|
2
|
+
|
|
3
|
+
import path from 'path';
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
initAsync,
|
|
7
|
+
repoRoot,
|
|
8
|
+
setupE2EAppAsync,
|
|
9
|
+
transformAppJsonForE2EWithOldArch,
|
|
10
|
+
} from './project';
|
|
11
|
+
|
|
12
|
+
const workingDir = path.resolve(repoRoot, '..');
|
|
13
|
+
const runtimeVersion = '1.0.0';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* This generates a project at the location TEST_PROJECT_ROOT,
|
|
18
|
+
* that is configured to build a test app and run both suites
|
|
19
|
+
* of updates E2E tests in the Detox environment.
|
|
20
|
+
*
|
|
21
|
+
* This test project will use the old architecture (Paper).
|
|
22
|
+
*
|
|
23
|
+
* See `packages/expo-updates/e2e/README.md` for instructions on how
|
|
24
|
+
* to run these tests locally.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
(async function () {
|
|
29
|
+
if (!repoRoot || !process.env.UPDATES_HOST || !process.env.UPDATES_PORT) {
|
|
30
|
+
throw new Error('Missing one or more environment variables; see instructions in e2e/README.md');
|
|
31
|
+
}
|
|
32
|
+
const projectRoot = process.env.TEST_PROJECT_ROOT || path.join(workingDir, 'updates-e2e');
|
|
33
|
+
const localCliBin = path.join(repoRoot, 'packages/@expo/cli/build/bin/cli');
|
|
34
|
+
|
|
35
|
+
await initAsync(projectRoot, {
|
|
36
|
+
repoRoot,
|
|
37
|
+
runtimeVersion,
|
|
38
|
+
localCliBin,
|
|
39
|
+
transformAppJson: transformAppJsonForE2EWithOldArch,
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
await setupE2EAppAsync(projectRoot, { localCliBin, repoRoot });
|
|
43
|
+
})();
|
package/e2e/setup/project.ts
CHANGED
|
@@ -504,7 +504,7 @@ function transformAppJsonForE2E(
|
|
|
504
504
|
owner: 'expo-ci',
|
|
505
505
|
runtimeVersion,
|
|
506
506
|
plugins,
|
|
507
|
-
newArchEnabled:
|
|
507
|
+
newArchEnabled: true,
|
|
508
508
|
android: { ...appJson.expo.android, package: 'dev.expo.updatese2e' },
|
|
509
509
|
ios: { ...appJson.expo.ios, bundleIdentifier: 'dev.expo.updatese2e' },
|
|
510
510
|
updates: {
|
|
@@ -522,7 +522,7 @@ function transformAppJsonForE2E(
|
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
-
export function
|
|
525
|
+
export function transformAppJsonForE2EWithOldArch(
|
|
526
526
|
appJson: any,
|
|
527
527
|
projectName: string,
|
|
528
528
|
runtimeVersion: string,
|
|
@@ -533,7 +533,7 @@ export function transformAppJsonForE2EWithCustomInit(
|
|
|
533
533
|
...transformedForE2E,
|
|
534
534
|
expo: {
|
|
535
535
|
...transformedForE2E.expo,
|
|
536
|
-
newArchEnabled:
|
|
536
|
+
newArchEnabled: false,
|
|
537
537
|
},
|
|
538
538
|
};
|
|
539
539
|
}
|
|
@@ -635,7 +635,7 @@ export function transformAppJsonForUpdatesDisabledE2E(
|
|
|
635
635
|
owner: 'expo-ci',
|
|
636
636
|
runtimeVersion,
|
|
637
637
|
plugins,
|
|
638
|
-
newArchEnabled:
|
|
638
|
+
newArchEnabled: true,
|
|
639
639
|
android: { ...appJson.expo.android, package: 'dev.expo.updatese2e' },
|
|
640
640
|
ios: { ...appJson.expo.ios, bundleIdentifier: 'dev.expo.updatese2e' },
|
|
641
641
|
updates: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-updates",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.12",
|
|
4
4
|
"description": "Fetches and manages remotely-hosted assets and updates to your app's JS bundle.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "expo-module build",
|
|
13
|
-
"build:check-paths": "ncc build ./e2e/setup/check-for-changed-paths.ts -o ./bin/check-for-changed-paths --minify --no-cache --no-source-map-register",
|
|
14
13
|
"clean": "expo-module clean",
|
|
15
14
|
"lint": "expo-module lint",
|
|
16
15
|
"test": "expo-module test",
|
|
@@ -40,13 +39,13 @@
|
|
|
40
39
|
},
|
|
41
40
|
"dependencies": {
|
|
42
41
|
"@expo/code-signing-certificates": "0.0.5",
|
|
43
|
-
"@expo/config": "~11.0.
|
|
44
|
-
"@expo/config-plugins": "~10.0.
|
|
42
|
+
"@expo/config": "~11.0.7",
|
|
43
|
+
"@expo/config-plugins": "~10.0.2",
|
|
45
44
|
"@expo/spawn-async": "^1.7.2",
|
|
46
45
|
"arg": "4.1.0",
|
|
47
46
|
"chalk": "^4.1.2",
|
|
48
|
-
"expo-eas-client": "~0.14.
|
|
49
|
-
"expo-manifests": "~0.16.
|
|
47
|
+
"expo-eas-client": "~0.14.3",
|
|
48
|
+
"expo-manifests": "~0.16.4",
|
|
50
49
|
"expo-structured-headers": "~4.1.0",
|
|
51
50
|
"expo-updates-interface": "~1.1.0",
|
|
52
51
|
"glob": "^10.4.2",
|
|
@@ -60,7 +59,7 @@
|
|
|
60
59
|
"@types/node-forge": "^1.0.0",
|
|
61
60
|
"@types/picomatch": "^4.0.0",
|
|
62
61
|
"@vercel/ncc": "^0.38.1",
|
|
63
|
-
"expo-module-scripts": "^4.1.
|
|
62
|
+
"expo-module-scripts": "^4.1.6",
|
|
64
63
|
"express": "^4.21.1",
|
|
65
64
|
"form-data": "^4.0.0",
|
|
66
65
|
"js-yaml": "^4.1.0",
|
|
@@ -72,5 +71,5 @@
|
|
|
72
71
|
"expo": "*",
|
|
73
72
|
"react": "*"
|
|
74
73
|
},
|
|
75
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "7cd543b5d7b836fed6dca00859e35883c490b9ef"
|
|
76
75
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env yarn --silent ts-node --transpile-only
|
|
2
|
-
(()=>{var e={642:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const i=n(r(987));function spawnAsync(e,t,r={}){const n=new Error;const o=n.stack?n.stack.replace(/^.*/," ..."):null;let a;let s=new Promise(((n,s)=>{let{ignoreStdio:u,...l}=r;a=(0,i.default)(e,t,l);let c="";let f="";if(!u){if(a.stdout){a.stdout.on("data",(e=>{c+=e}))}if(a.stderr){a.stderr.on("data",(e=>{f+=e}))}}let completionListener=(r,i)=>{a.removeListener("error",errorListener);let u={pid:a.pid,output:[c,f],stdout:c,stderr:f,status:r,signal:i};if(r!==0){let n=t&&t.length>0?` ${t.join(" ")}`:"";let a=i?new Error(`${e}${n} exited with signal: ${i}`):new Error(`${e}${n} exited with non-zero code: ${r}`);if(a.stack&&o){a.stack+=`\n${o}`}Object.assign(a,u);s(a)}else{n(u)}};let errorListener=e=>{if(u){a.removeListener("exit",completionListener)}else{a.removeListener("close",completionListener)}Object.assign(e,{pid:a.pid,output:[c,f],stdout:c,stderr:f,status:null,signal:null});s(e)};if(u){a.once("exit",completionListener)}else{a.once("close",completionListener)}a.once("error",errorListener)}));s.child=a;return s}e.exports=spawnAsync},987:(e,t,r)=>{"use strict";const n=r(81);const i=r(655);const o=r(738);function spawn(e,t,r){const a=i(e,t,r);const s=n.spawn(a.command,a.args,a.options);o.hookChildProcess(s,a);return s}function spawnSync(e,t,r){const a=i(e,t,r);const s=n.spawnSync(a.command,a.args,a.options);s.error=s.error||o.verifyENOENTSync(s.status,a);return s}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=o},738:e=>{"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,r){if(!t){return}const n=e.emit;e.emit=function(t,i){if(t==="exit"){const t=verifyENOENT(i,r);if(t){return n.call(e,"error",t)}}return n.apply(e,arguments)}}function verifyENOENT(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawn")}return null}function verifyENOENTSync(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},655:(e,t,r)=>{"use strict";const n=r(17);const i=r(534);const o=r(902);const a=r(964);const s=process.platform==="win32";const u=/\.(?:com|exe)$/i;const l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function detectShebang(e){e.file=i(e);const t=e.file&&a(e.file);if(t){e.args.unshift(e.file);e.command=t;return i(e)}return e.file}function parseNonShell(e){if(!s){return e}const t=detectShebang(e);const r=!u.test(t);if(e.options.forceShell||r){const r=l.test(t);e.command=n.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map((e=>o.argument(e,r)));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const n={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?n:parseNonShell(n)}e.exports=parse},902:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"');e=e.replace(/(?=(\\+?)?)\1$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},964:(e,t,r)=>{"use strict";const n=r(147);const i=r(970);function readShebang(e){const t=150;const r=Buffer.alloc(t);let o;try{o=n.openSync(e,"r");n.readSync(o,r,0,t,0);n.closeSync(o)}catch(e){}return i(r.toString())}e.exports=readShebang},534:(e,t,r)=>{"use strict";const n=r(17);const i=r(362);const o=r(170);function resolveCommandAttempt(e,t){const r=e.options.env||process.env;const a=process.cwd();const s=e.options.cwd!=null;const u=s&&process.chdir!==undefined&&!process.chdir.disabled;if(u){try{process.chdir(e.options.cwd)}catch(e){}}let l;try{l=i.sync(e.command,{path:r[o({env:r})],pathExt:t?n.delimiter:undefined})}catch(e){}finally{if(u){process.chdir(a)}}if(l){l=n.resolve(s?e.options.cwd:"",l)}return l}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},718:(e,t,r)=>{var n=r(147);var i;if(process.platform==="win32"||global.TESTING_WINDOWS){i=r(183)}else{i=r(855)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(r,n){isexe(e,t||{},(function(e,t){if(e){n(e)}else{r(t)}}))}))}i(e,t||{},(function(e,n){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;n=false}}r(e,n)}))}function sync(e,t){try{return i.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},855:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(147);function isexe(e,t,r){n.stat(e,(function(e,n){r(e,e?false:checkStat(n,t))}))}function sync(e,t){return checkStat(n.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var n=e.uid;var i=e.gid;var o=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var a=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var s=parseInt("100",8);var u=parseInt("010",8);var l=parseInt("001",8);var c=s|u;var f=r&l||r&u&&i===a||r&s&&n===o||r&c&&o===0;return f}},183:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(147);function checkPathExt(e,t){var r=t.pathExt!==undefined?t.pathExt:process.env.PATHEXT;if(!r){return true}r=r.split(";");if(r.indexOf("")!==-1){return true}for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i){return true}}return false}function checkStat(e,t,r){if(!e.isSymbolicLink()&&!e.isFile()){return false}return checkPathExt(t,r)}function isexe(e,t,r){n.stat(e,(function(n,i){r(n,n?false:checkStat(i,e,t))}))}function sync(e,t){return checkStat(n.statSync(e),e,t)}},362:(e,t,r)=>{const n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const i=r(17);const o=n?";":":";const a=r(718);const getNotFoundError=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"});const getPathInfo=(e,t)=>{const r=t.colon||o;const i=e.match(/\//)||n&&e.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)];const a=n?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const s=n?a.split(r):[""];if(n){if(e.indexOf(".")!==-1&&s[0]!=="")s.unshift("")}return{pathEnv:i,pathExt:s,pathExtExe:a}};const which=(e,t,r)=>{if(typeof t==="function"){r=t;t={}}if(!t)t={};const{pathEnv:n,pathExt:o,pathExtExe:s}=getPathInfo(e,t);const u=[];const step=r=>new Promise(((o,a)=>{if(r===n.length)return t.all&&u.length?o(u):a(getNotFoundError(e));const s=n[r];const l=/^".*"$/.test(s)?s.slice(1,-1):s;const c=i.join(l,e);const f=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;o(subStep(f,r,0))}));const subStep=(e,r,n)=>new Promise(((i,l)=>{if(n===o.length)return i(step(r+1));const c=o[n];a(e+c,{pathExt:s},((o,a)=>{if(!o&&a){if(t.all)u.push(e+c);else return i(e+c)}return i(subStep(e,r,n+1))}))}));return r?step(0).then((e=>r(null,e)),r):step(0)};const whichSync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:o}=getPathInfo(e,t);const s=[];for(let u=0;u<r.length;u++){const l=r[u];const c=/^".*"$/.test(l)?l.slice(1,-1):l;const f=i.join(c,e);const p=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;for(let e=0;e<n.length;e++){const r=p+n[e];try{const e=a.sync(r,{pathExt:o});if(e){if(t.all)s.push(r);else return r}}catch(e){}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw getNotFoundError(e)};e.exports=which;which.sync=whichSync},170:e=>{"use strict";const pathKey=(e={})=>{const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).reverse().find((e=>e.toUpperCase()==="PATH"))||"Path"};e.exports=pathKey;e.exports["default"]=pathKey},970:(e,t,r)=>{"use strict";const n=r(504);e.exports=(e="")=>{const t=e.match(n);if(!t){return null}const[r,i]=t[0].replace(/#! ?/,"").split(" ");const o=r.split("/").pop();if(o==="env"){return i}return i?`${o} ${i}`:o}},504:e=>{"use strict";e.exports=/^#!(.*)/},972:(e,t,r)=>{"use strict";var n;n={value:true};Object.defineProperty(t,"v1",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"zR",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"i8",{enumerable:true,get:function(){return l.default}});Object.defineProperty(t,"Gu",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"Pz",{enumerable:true,get:function(){return f.default}});Object.defineProperty(t,"Qc",{enumerable:true,get:function(){return p.default}});var i=_interopRequireDefault(r(265));var o=_interopRequireDefault(r(203));var a=_interopRequireDefault(r(222));var s=_interopRequireDefault(r(193));var u=_interopRequireDefault(r(110));var l=_interopRequireDefault(r(988));var c=_interopRequireDefault(r(350));var f=_interopRequireDefault(r(997));var p=_interopRequireDefault(r(713));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var i=md5;t["default"]=i},110:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(350));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var i=parse;t["default"]=i},496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},127:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=new Uint8Array(256);let o=i.length;function rng(){if(o>i.length-16){n.default.randomFillSync(i);o=0}return i.slice(o,o+=16)}},419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var i=sha1;t["default"]=i},997:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(350));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=[];for(let e=0;e<256;++e){i.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},265:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(127));var i=_interopRequireDefault(r(997));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let a;let s=0;let u=0;function v1(e,t,r){let l=t&&r||0;const c=t||new Array(16);e=e||{};let f=e.node||o;let p=e.clockseq!==undefined?e.clockseq:a;if(f==null||p==null){const t=e.random||(e.rng||n.default)();if(f==null){f=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(p==null){p=a=(t[6]<<8|t[7])&16383}}let d=e.msecs!==undefined?e.msecs:Date.now();let h=e.nsecs!==undefined?e.nsecs:u+1;const g=d-s+(h-u)/1e4;if(g<0&&e.clockseq===undefined){p=p+1&16383}if((g<0||d>s)&&e.nsecs===undefined){h=0}if(h>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}s=d;u=h;a=p;d+=122192928e5;const m=((d&268435455)*1e4+h)%4294967296;c[l++]=m>>>24&255;c[l++]=m>>>16&255;c[l++]=m>>>8&255;c[l++]=m&255;const v=d/4294967296*1e4&268435455;c[l++]=v>>>8&255;c[l++]=v&255;c[l++]=v>>>24&15|16;c[l++]=v>>>16&255;c[l++]=p>>>8|128;c[l++]=p&255;for(let e=0;e<6;++e){c[l+e]=f[e]}return t||(0,i.default)(c)}var l=v1;t["default"]=l},203:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(952));var i=_interopRequireDefault(r(374));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,i.default);var a=o;t["default"]=a},952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(997));var i=_interopRequireDefault(r(713));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r){t.push(e.charCodeAt(r))}return t}const o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=o;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a;function _default(e,t,r){function generateUUID(e,o,a,s){if(typeof e==="string"){e=stringToBytes(e)}if(typeof o==="string"){o=(0,i.default)(o)}if(o.length!==16){throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")}let u=new Uint8Array(16+e.length);u.set(o);u.set(e,o.length);u=r(u);u[6]=u[6]&15|t;u[8]=u[8]&63|128;if(a){s=s||0;for(let e=0;e<16;++e){a[s+e]=u[e]}return a}return(0,n.default)(u)}try{generateUUID.name=e}catch(e){}generateUUID.DNS=o;generateUUID.URL=a;return generateUUID}},222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(127));var i=_interopRequireDefault(r(997));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,i.default)(o)}var o=v4;t["default"]=o},193:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(952));var i=_interopRequireDefault(r(419));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,i.default);var a=o;t["default"]=a},350:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(496));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var i=validate;t["default"]=i},988:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(350));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var i=version;t["default"]=i},285:(e,t,r)=>{"use strict";const n=r(457);const i=r(414);function picomatch(e,t,r=false){if(t&&(t.windows===null||t.windows===undefined)){t={...t,windows:i.isWindows()}}return n(e,t,r)}Object.assign(picomatch,n);e.exports=picomatch},472:e=>{"use strict";const t="\\\\/";const r=`[^${t}]`;const n="\\.";const i="\\+";const o="\\?";const a="\\/";const s="(?=.)";const u="[^/]";const l=`(?:${a}|$)`;const c=`(?:^|${a})`;const f=`${n}{1,2}${l}`;const p=`(?!${n})`;const d=`(?!${c}${f})`;const h=`(?!${n}{0,1}${l})`;const g=`(?!${f})`;const m=`[^.${a}]`;const v=`${u}*?`;const y="/";const _={DOT_LITERAL:n,PLUS_LITERAL:i,QMARK_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:s,QMARK:u,END_ANCHOR:l,DOTS_SLASH:f,NO_DOT:p,NO_DOTS:d,NO_DOT_SLASH:h,NO_DOTS_SLASH:g,QMARK_NO_DOT:m,STAR:v,START_ANCHOR:c,SEP:y};const A={..._,SLASH_LITERAL:`[${t}]`,QMARK:r,STAR:`${r}*?`,DOTS_SLASH:`${n}{1,2}(?:[${t}]|$)`,NO_DOT:`(?!${n})`,NO_DOTS:`(?!(?:^|[${t}])${n}{1,2}(?:[${t}]|$))`,NO_DOT_SLASH:`(?!${n}{0,1}(?:[${t}]|$))`,NO_DOTS_SLASH:`(?!${n}{1,2}(?:[${t}]|$))`,QMARK_NO_DOT:`[^.${t}]`,START_ANCHOR:`(?:^|[${t}])`,END_ANCHOR:`(?:[${t}]|$)`,SEP:"\\"};const w={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"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:w,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,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===true?A:_}}},485:(e,t,r)=>{"use strict";const n=r(472);const i=r(414);const{MAX_LENGTH:o,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:l}=n;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>i.escapeRegex(e))).join("..")}return r};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=l[e]||e;const r={...t};const c=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;let f=e.length;if(f>c){throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${c}`)}const p={type:"bos",value:"",output:r.prepend||""};const d=[p];const h=r.capture?"":"?:";const g=n.globChars(r.windows);const m=n.extglobChars(g);const{DOT_LITERAL:v,PLUS_LITERAL:y,SLASH_LITERAL:_,ONE_CHAR:A,DOTS_SLASH:w,NO_DOT:E,NO_DOT_SLASH:b,NO_DOTS_SLASH:S,QMARK:C,QMARK_NO_DOT:x,STAR:O,START_ANCHOR:R}=g;const globstar=e=>`(${h}(?:(?!${R}${e.dot?w:v}).)*?)`;const k=r.dot?"":E;const T=r.dot?C:x;let L=r.bash===true?globstar(r):O;if(r.capture){L=`(${L})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const $={input:e,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:d};e=i.removePrefix(e,$);f=e.length;const I=[];const N=[];const M=[];let H=p;let D;const eos=()=>$.index===f-1;const P=$.peek=(t=1)=>e[$.index+t];const F=$.advance=()=>e[++$.index]||"";const remaining=()=>e.slice($.index+1);const consume=(e="",t=0)=>{$.consumed+=e;$.index+=t};const append=e=>{$.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(P()==="!"&&(P(2)!=="("||P(3)==="?")){F();$.start++;e++}if(e%2===0){return false}$.negated=true;$.start++;return true};const increment=e=>{$[e]++;M.push(e)};const decrement=e=>{$[e]--;M.pop()};const push=e=>{if(H.type==="globstar"){const t=$.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||I.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){$.output=$.output.slice(0,-H.output.length);H.type="star";H.value="*";H.output=L;$.output+=H.output}}if(I.length&&e.type!=="paren"){I[I.length-1].inner+=e.value}if(e.value||e.output)append(e);if(H&&H.type==="text"&&e.type==="text"){H.output=(H.output||H.value)+e.value;H.value+=e.value;return}e.prev=H;d.push(e);H=e};const extglobOpen=(e,t)=>{const n={...m[t],conditions:1,inner:""};n.prev=H;n.parens=$.parens;n.output=$.output;const i=(r.capture?"(":"")+n.open;increment("parens");push({type:e,value:t,output:$.output?"":A});push({type:"paren",extglob:true,value:F(),output:i});I.push(n)};const extglobClose=e=>{let n=e.close+(r.capture?")":"");let i;if(e.type==="negate"){let o=L;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){o=globstar(r)}if(o!==L||eos()||/^\)+$/.test(remaining())){n=e.close=`)$))${o}`}if(e.inner.includes("*")&&(i=remaining())&&/^\.[^\\/.]+$/.test(i)){const r=parse(i,{...t,fastpaths:false}).output;n=e.close=`)${r})${o})`}if(e.prev.type==="bos"){$.negatedExtglob=true}}push({type:"paren",extglob:true,value:D,output:n});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=false;let o=e.replace(u,((e,t,r,i,o,a)=>{if(i==="\\"){n=true;return e}if(i==="?"){if(t){return t+i+(o?C.repeat(o.length):"")}if(a===0){return T+(o?C.repeat(o.length):"")}return C.repeat(r.length)}if(i==="."){return v.repeat(r.length)}if(i==="*"){if(t){return t+i+(o?L:"")}return L}return t?e:`\\${e}`}));if(n===true){if(r.unescape===true){o=o.replace(/\\/g,"")}else{o=o.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(o===e&&r.contains===true){$.output=e;return $}$.output=i.wrapOutput(o,$,t);return $}while(!eos()){D=F();if(D==="\0"){continue}if(D==="\\"){const e=P();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){D+="\\";push({type:"text",value:D});continue}const t=/^\\+/.exec(remaining());let n=0;if(t&&t[0].length>2){n=t[0].length;$.index+=n;if(n%2!==0){D+="\\"}}if(r.unescape===true){D=F()}else{D+=F()}if($.brackets===0){push({type:"text",value:D});continue}}if($.brackets>0&&(D!=="]"||H.value==="["||H.value==="[^")){if(r.posix!==false&&D===":"){const e=H.value.slice(1);if(e.includes("[")){H.posix=true;if(e.includes(":")){const e=H.value.lastIndexOf("[");const t=H.value.slice(0,e);const r=H.value.slice(e+2);const n=a[r];if(n){H.value=t+n;$.backtrack=true;F();if(!p.output&&d.indexOf(H)===1){p.output=A}continue}}}}if(D==="["&&P()!==":"||D==="-"&&P()==="]"){D=`\\${D}`}if(D==="]"&&(H.value==="["||H.value==="[^")){D=`\\${D}`}if(r.posix===true&&D==="!"&&H.value==="["){D="^"}H.value+=D;append({value:D});continue}if($.quotes===1&&D!=='"'){D=i.escapeRegex(D);H.value+=D;append({value:D});continue}if(D==='"'){$.quotes=$.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:D})}continue}if(D==="("){increment("parens");push({type:"paren",value:D});continue}if(D===")"){if($.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=I[I.length-1];if(e&&$.parens===e.parens+1){extglobClose(I.pop());continue}push({type:"paren",value:D,output:$.parens?")":"\\)"});decrement("parens");continue}if(D==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}D=`\\${D}`}else{increment("brackets")}push({type:"bracket",value:D});continue}if(D==="]"){if(r.nobracket===true||H&&H.type==="bracket"&&H.value.length===1){push({type:"text",value:D,output:`\\${D}`});continue}if($.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:D,output:`\\${D}`});continue}decrement("brackets");const e=H.value.slice(1);if(H.posix!==true&&e[0]==="^"&&!e.includes("/")){D=`/${D}`}H.value+=D;append({value:D});if(r.literalBrackets===false||i.hasRegexChars(e)){continue}const t=i.escapeRegex(H.value);$.output=$.output.slice(0,-H.value.length);if(r.literalBrackets===true){$.output+=t;H.value=t;continue}H.value=`(${h}${t}|${H.value})`;$.output+=H.value;continue}if(D==="{"&&r.nobrace!==true){increment("braces");const e={type:"brace",value:D,output:"(",outputIndex:$.output.length,tokensIndex:$.tokens.length};N.push(e);push(e);continue}if(D==="}"){const e=N[N.length-1];if(r.nobrace===true||!e){push({type:"text",value:D,output:D});continue}let t=")";if(e.dots===true){const e=d.slice();const n=[];for(let t=e.length-1;t>=0;t--){d.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){n.unshift(e[t].value)}}t=expandRange(n,r);$.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=$.output.slice(0,e.outputIndex);const n=$.tokens.slice(e.tokensIndex);e.value=e.output="\\{";D=t="\\}";$.output=r;for(const e of n){$.output+=e.output||e.value}}push({type:"brace",value:D,output:t});decrement("braces");N.pop();continue}if(D==="|"){if(I.length>0){I[I.length-1].conditions++}push({type:"text",value:D});continue}if(D===","){let e=D;const t=N[N.length-1];if(t&&M[M.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:D,output:e});continue}if(D==="/"){if(H.type==="dot"&&$.index===$.start+1){$.start=$.index+1;$.consumed="";$.output="";d.pop();H=p;continue}push({type:"slash",value:D,output:_});continue}if(D==="."){if($.braces>0&&H.type==="dot"){if(H.value===".")H.output=v;const e=N[N.length-1];H.type="dots";H.output+=D;H.value+=D;e.dots=true;continue}if($.braces+$.parens===0&&H.type!=="bos"&&H.type!=="slash"){push({type:"text",value:D,output:v});continue}push({type:"dot",value:D,output:v});continue}if(D==="?"){const e=H&&H.value==="(";if(!e&&r.noextglob!==true&&P()==="("&&P(2)!=="?"){extglobOpen("qmark",D);continue}if(H&&H.type==="paren"){const e=P();let t=D;if(H.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${D}`}push({type:"text",value:D,output:t});continue}if(r.dot!==true&&(H.type==="slash"||H.type==="bos")){push({type:"qmark",value:D,output:x});continue}push({type:"qmark",value:D,output:C});continue}if(D==="!"){if(r.noextglob!==true&&P()==="("){if(P(2)!=="?"||!/[!=<:]/.test(P(3))){extglobOpen("negate",D);continue}}if(r.nonegate!==true&&$.index===0){negate();continue}}if(D==="+"){if(r.noextglob!==true&&P()==="("&&P(2)!=="?"){extglobOpen("plus",D);continue}if(H&&H.value==="("||r.regex===false){push({type:"plus",value:D,output:y});continue}if(H&&(H.type==="bracket"||H.type==="paren"||H.type==="brace")||$.parens>0){push({type:"plus",value:D});continue}push({type:"plus",value:y});continue}if(D==="@"){if(r.noextglob!==true&&P()==="("&&P(2)!=="?"){push({type:"at",extglob:true,value:D,output:""});continue}push({type:"text",value:D});continue}if(D!=="*"){if(D==="$"||D==="^"){D=`\\${D}`}const e=s.exec(remaining());if(e){D+=e[0];$.index+=e[0].length}push({type:"text",value:D});continue}if(H&&(H.type==="globstar"||H.star===true)){H.type="star";H.star=true;H.value+=D;H.output=L;$.backtrack=true;$.globstar=true;consume(D);continue}let t=remaining();if(r.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",D);continue}if(H.type==="star"){if(r.noglobstar===true){consume(D);continue}const n=H.prev;const i=n.prev;const o=n.type==="slash"||n.type==="bos";const a=i&&(i.type==="star"||i.type==="globstar");if(r.bash===true&&(!o||t[0]&&t[0]!=="/")){push({type:"star",value:D,output:""});continue}const s=$.braces>0&&(n.type==="comma"||n.type==="brace");const u=I.length&&(n.type==="pipe"||n.type==="paren");if(!o&&n.type!=="paren"&&!s&&!u){push({type:"star",value:D,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[$.index+4];if(r&&r!=="/"){break}t=t.slice(3);consume("/**",3)}if(n.type==="bos"&&eos()){H.type="globstar";H.value+=D;H.output=globstar(r);$.output=H.output;$.globstar=true;consume(D);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&!a&&eos()){$.output=$.output.slice(0,-(n.output+H.output).length);n.output=`(?:${n.output}`;H.type="globstar";H.output=globstar(r)+(r.strictSlashes?")":"|$)");H.value+=D;$.globstar=true;$.output+=n.output+H.output;consume(D);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";$.output=$.output.slice(0,-(n.output+H.output).length);n.output=`(?:${n.output}`;H.type="globstar";H.output=`${globstar(r)}${_}|${_}${e})`;H.value+=D;$.output+=n.output+H.output;$.globstar=true;consume(D+F());push({type:"slash",value:"/",output:""});continue}if(n.type==="bos"&&t[0]==="/"){H.type="globstar";H.value+=D;H.output=`(?:^|${_}|${globstar(r)}${_})`;$.output=H.output;$.globstar=true;consume(D+F());push({type:"slash",value:"/",output:""});continue}$.output=$.output.slice(0,-H.output.length);H.type="globstar";H.output=globstar(r);H.value+=D;$.output+=H.output;$.globstar=true;consume(D);continue}const n={type:"star",value:D,output:L};if(r.bash===true){n.output=".*?";if(H.type==="bos"||H.type==="slash"){n.output=k+n.output}push(n);continue}if(H&&(H.type==="bracket"||H.type==="paren")&&r.regex===true){n.output=D;push(n);continue}if($.index===$.start||H.type==="slash"||H.type==="dot"){if(H.type==="dot"){$.output+=b;H.output+=b}else if(r.dot===true){$.output+=S;H.output+=S}else{$.output+=k;H.output+=k}if(P()!=="*"){$.output+=A;H.output+=A}}push(n)}while($.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));$.output=i.escapeLast($.output,"[");decrement("brackets")}while($.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));$.output=i.escapeLast($.output,"(");decrement("parens")}while($.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));$.output=i.escapeLast($.output,"{");decrement("braces")}if(r.strictSlashes!==true&&(H.type==="star"||H.type==="bracket")){push({type:"maybe_slash",value:"",output:`${_}?`})}if($.backtrack===true){$.output="";for(const e of $.tokens){$.output+=e.output!=null?e.output:e.value;if(e.suffix){$.output+=e.suffix}}}return $};parse.fastpaths=(e,t)=>{const r={...t};const a=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;const s=e.length;if(s>a){throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${a}`)}e=l[e]||e;const{DOT_LITERAL:u,SLASH_LITERAL:c,ONE_CHAR:f,DOTS_SLASH:p,NO_DOT:d,NO_DOTS:h,NO_DOTS_SLASH:g,STAR:m,START_ANCHOR:v}=n.globChars(r.windows);const y=r.dot?h:d;const _=r.dot?g:d;const A=r.capture?"":"?:";const w={negated:false,prefix:""};let E=r.bash===true?".*?":m;if(r.capture){E=`(${E})`}const globstar=e=>{if(e.noglobstar===true)return E;return`(${A}(?:(?!${v}${e.dot?p:u}).)*?)`};const create=e=>{switch(e){case"*":return`${y}${f}${E}`;case".*":return`${u}${f}${E}`;case"*.*":return`${y}${E}${u}${f}${E}`;case"*/*":return`${y}${E}${c}${f}${_}${E}`;case"**":return y+globstar(r);case"**/*":return`(?:${y}${globstar(r)}${c})?${_}${f}${E}`;case"**/*.*":return`(?:${y}${globstar(r)}${c})?${_}${E}${u}${f}${E}`;case"**/.*":return`(?:${y}${globstar(r)}${c})?${u}${f}${E}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=create(t[1]);if(!r)return;return r+u+t[2]}}};const b=i.removePrefix(e,w);let S=create(b);if(S&&r.strictSlashes!==true){S+=`${c}?`}return S};e.exports=parse},457:(e,t,r)=>{"use strict";const n=r(117);const i=r(485);const o=r(414);const a=r(472);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,r=false)=>{if(Array.isArray(e)){const n=e.map((e=>picomatch(e,t,r)));const arrayMatcher=e=>{for(const t of n){const r=t(e);if(r)return r}return false};return arrayMatcher}const n=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!n){throw new TypeError("Expected pattern to be a non-empty string")}const i=t||{};const o=i.windows;const a=n?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const s=a.state;delete a.state;let isIgnored=()=>false;if(i.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(i.ignore,e,r)}const matcher=(r,n=false)=>{const{isMatch:u,match:l,output:c}=picomatch.test(r,a,t,{glob:e,posix:o});const f={glob:e,state:s,regex:a,posix:o,input:r,output:c,match:l,isMatch:u};if(typeof i.onResult==="function"){i.onResult(f)}if(u===false){f.isMatch=false;return n?f:false}if(isIgnored(r)){if(typeof i.onIgnore==="function"){i.onIgnore(f)}f.isMatch=false;return n?f:false}if(typeof i.onMatch==="function"){i.onMatch(f)}return n?f:true};if(r){matcher.state=s}return matcher};picomatch.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:false,output:""}}const a=r||{};const s=a.format||(i?o.toPosixSlashes:null);let u=e===n;let l=u&&s?s(e):e;if(u===false){l=s?s(e):e;u=l===n}if(u===false||a.capture===true){if(a.matchBase===true||a.basename===true){u=picomatch.matchBase(e,t,r,i)}else{u=t.exec(l)}}return{isMatch:Boolean(u),match:u,output:l}};picomatch.matchBase=(e,t,r)=>{const n=t instanceof RegExp?t:picomatch.makeRe(t,r);return n.test(o.basename(e))};picomatch.isMatch=(e,t,r)=>picomatch(t,r)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return i(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>n(e,t);picomatch.compileRe=(e,t,r=false,n=false)=>{if(r===true){return e.output}const i=t||{};const o=i.contains?"":"^";const a=i.contains?"":"$";let s=`${o}(?:${e.output})${a}`;if(e&&e.negated===true){s=`^(?!${s}).*$`}const u=picomatch.toRegex(s,t);if(n===true){u.state=e}return u};picomatch.makeRe=(e,t={},r=false,n=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let o={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){o.output=i.fastpaths(e,t)}if(!o.output){o=i(e,t)}return picomatch.compileRe(o,t,r,n)};picomatch.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=a;e.exports=picomatch},117:(e,t,r)=>{"use strict";const n=r(414);const{CHAR_ASTERISK:i,CHAR_AT:o,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:s,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:h,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:v,CHAR_RIGHT_SQUARE_BRACKET:y}=r(472);const isPathSeparator=e=>e===c||e===a;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const r=t||{};const _=e.length-1;const A=r.parts===true||r.scanToEnd===true;const w=[];const E=[];const b=[];let S=e;let C=-1;let x=0;let O=0;let R=false;let k=false;let T=false;let L=false;let $=false;let I=false;let N=false;let M=false;let H=false;let D=false;let P=0;let F;let j;let q={value:"",depth:0,isGlob:false};const eos=()=>C>=_;const peek=()=>S.charCodeAt(C+1);const advance=()=>{F=j;return S.charCodeAt(++C)};while(C<_){j=advance();let e;if(j===a){N=q.backslashes=true;j=advance();if(j===f){I=true}continue}if(I===true||j===f){P++;while(eos()!==true&&(j=advance())){if(j===a){N=q.backslashes=true;advance();continue}if(j===f){P++;continue}if(I!==true&&j===u&&(j=advance())===u){R=q.isBrace=true;T=q.isGlob=true;D=true;if(A===true){continue}break}if(I!==true&&j===s){R=q.isBrace=true;T=q.isGlob=true;D=true;if(A===true){continue}break}if(j===m){P--;if(P===0){I=false;R=q.isBrace=true;D=true;break}}}if(A===true){continue}break}if(j===c){w.push(C);E.push(q);q={value:"",depth:0,isGlob:false};if(D===true)continue;if(F===u&&C===x+1){x+=2;continue}O=C+1;continue}if(r.noext!==true){const e=j===h||j===o||j===i||j===g||j===l;if(e===true&&peek()===p){T=q.isGlob=true;L=q.isExtglob=true;D=true;if(j===l&&C===x){H=true}if(A===true){while(eos()!==true&&(j=advance())){if(j===a){N=q.backslashes=true;j=advance();continue}if(j===v){T=q.isGlob=true;D=true;break}}continue}break}}if(j===i){if(F===i)$=q.isGlobstar=true;T=q.isGlob=true;D=true;if(A===true){continue}break}if(j===g){T=q.isGlob=true;D=true;if(A===true){continue}break}if(j===d){while(eos()!==true&&(e=advance())){if(e===a){N=q.backslashes=true;advance();continue}if(e===y){k=q.isBracket=true;T=q.isGlob=true;D=true;break}}if(A===true){continue}break}if(r.nonegate!==true&&j===l&&C===x){M=q.negated=true;x++;continue}if(r.noparen!==true&&j===p){T=q.isGlob=true;if(A===true){while(eos()!==true&&(j=advance())){if(j===p){N=q.backslashes=true;j=advance();continue}if(j===v){D=true;break}}continue}break}if(T===true){D=true;if(A===true){continue}break}}if(r.noext===true){L=false;T=false}let B=S;let G="";let Y="";if(x>0){G=S.slice(0,x);S=S.slice(x);O-=x}if(B&&T===true&&O>0){B=S.slice(0,O);Y=S.slice(O)}else if(T===true){B="";Y=S}else{B=S}if(B&&B!==""&&B!=="/"&&B!==S){if(isPathSeparator(B.charCodeAt(B.length-1))){B=B.slice(0,-1)}}if(r.unescape===true){if(Y)Y=n.removeBackslashes(Y);if(B&&N===true){B=n.removeBackslashes(B)}}const U={prefix:G,input:e,start:x,base:B,glob:Y,isBrace:R,isBracket:k,isGlob:T,isExtglob:L,isGlobstar:$,negated:M,negatedExtglob:H};if(r.tokens===true){U.maxDepth=0;if(!isPathSeparator(j)){E.push(q)}U.tokens=E}if(r.parts===true||r.tokens===true){let t;for(let n=0;n<w.length;n++){const i=t?t+1:x;const o=w[n];const a=e.slice(i,o);if(r.tokens){if(n===0&&x!==0){E[n].isPrefix=true;E[n].value=G}else{E[n].value=a}depth(E[n]);U.maxDepth+=E[n].depth}if(n!==0||a!==""){b.push(a)}t=o}if(t&&t+1<e.length){const n=e.slice(t+1);b.push(n);if(r.tokens){E[E.length-1].value=n;depth(E[E.length-1]);U.maxDepth+=E[E.length-1].depth}}U.slashes=w;U.parts=b}return U};e.exports=scan},414:(e,t,r)=>{"use strict";const{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:a}=r(472);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>o.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(a,"\\$1");t.toPosixSlashes=e=>e.replace(n,"/");t.isWindows=()=>{if(typeof navigator!=="undefined"&&navigator.platform){const e=navigator.platform.toLowerCase();return e==="win32"||e==="windows"}if(typeof process!=="undefined"&&process.platform){return process.platform==="win32"}return false};t.removeBackslashes=e=>e.replace(i,(e=>e==="\\"?"":e));t.escapeLast=(e,r,n)=>{const i=e.lastIndexOf(r,n);if(i===-1)return e;if(e[i-1]==="\\")return t.escapeLast(e,r,i-1);return`${e.slice(0,i)}\\${e.slice(i)}`};t.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r};t.wrapOutput=(e,t={},r={})=>{const n=r.contains?"":"^";const i=r.contains?"":"$";let o=`${n}(?:${e})${i}`;if(t.negated===true){o=`(?:^(?!${o}).*$)`}return o};t.basename=(e,{windows:t}={})=>{const r=e.split(t?/[\\/]/:"/");const n=r[r.length-1];if(n===""){return r[r.length-2]}return n}},81:e=>{"use strict";e.exports=require("child_process")},113:e=>{"use strict";e.exports=require("crypto")},147:e=>{"use strict";e.exports=require("fs")},17:e=>{"use strict";e.exports=require("path")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var o=true;try{e[r].call(i.exports,i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return i.exports}(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r={};(()=>{"use strict";__nccwpck_require__.r(r);var e=__nccwpck_require__(972);const t=e.v1;const n=e.v3;const i=e.v4;const o=e.v5;const a=e.zR;const s=e.i8;const u=e.Gu;const l=e.Pz;const c=e.Qc;
|
|
3
|
-
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
4
|
-
function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var r,n,i,o;if(t){o=Object.keys(t);for(r=0,n=o.length;r<n;r+=1){i=o[r];e[i]=t[i]}}return e}function repeat(e,t){var r="",n;for(n=0;n<t;n+=1){r+=e}return r}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var f=isNothing;var p=isObject;var d=toArray;var h=repeat;var g=isNegativeZero;var m=extend;var v={isNothing:f,isObject:p,toArray:d,repeat:h,isNegativeZero:g,extend:m};function formatError(e,t){var r="",n=e.reason||"(unknown reason)";if(!e.mark)return n;if(e.mark.name){r+='in "'+e.mark.name+'" '}r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){r+="\n\n"+e.mark.snippet}return n+" "+r}function YAMLException$1(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException$1.prototype=Object.create(Error.prototype);YAMLException$1.prototype.constructor=YAMLException$1;YAMLException$1.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};var y=YAMLException$1;function getLine(e,t,r,n,i){var o="";var a="";var s=Math.floor(i/2)-1;if(n-t>s){o=" ... ";t=n-s+o.length}if(r-n>s){a=" ...";r=n+s-a.length}return{str:o+e.slice(t,r).replace(/\t/g,"→")+a,pos:n-t+o.length}}function padStart(e,t){return v.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var r=/\r?\n|\r|\0/g;var n=[0];var i=[];var o;var a=-1;while(o=r.exec(e.buffer)){i.push(o.index);n.push(o.index+o[0].length);if(e.position<=o.index&&a<0){a=n.length-2}}if(a<0)a=n.length-1;var s="",u,l;var c=Math.min(e.line+t.linesAfter,i.length).toString().length;var f=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore;u++){if(a-u<0)break;l=getLine(e.buffer,n[a-u],i[a-u],e.position-(n[a]-n[a-u]),f);s=v.repeat(" ",t.indent)+padStart((e.line-u+1).toString(),c)+" | "+l.str+"\n"+s}l=getLine(e.buffer,n[a],i[a],e.position,f);s+=v.repeat(" ",t.indent)+padStart((e.line+1).toString(),c)+" | "+l.str+"\n";s+=v.repeat("-",t.indent+c+3+l.pos)+"^"+"\n";for(u=1;u<=t.linesAfter;u++){if(a+u>=i.length)break;l=getLine(e.buffer,n[a+u],i[a+u],e.position-(n[a]-n[a+u]),f);s+=v.repeat(" ",t.indent)+padStart((e.line+u+1).toString(),c)+" | "+l.str+"\n"}return s.replace(/\n$/,"")}var _=makeSnippet;var A=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var w=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))}))}return t}function Type$1(e,t){t=t||{};Object.keys(t).forEach((function(t){if(A.indexOf(t)===-1){throw new y('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(w.indexOf(this.kind)===-1){throw new y('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}var E=Type$1;function compileList(e,t){var r=[];e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){if(r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi){t=n}}));r[t]=e}));return r}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,r=arguments.length;t<r;t+=1){arguments[t].forEach(collectType)}return e}function Schema$1(e){return this.extend(e)}Schema$1.prototype.extend=function extend(e){var t=[];var r=[];if(e instanceof E){r.push(e)}else if(Array.isArray(e)){r=r.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)t=t.concat(e.implicit);if(e.explicit)r=r.concat(e.explicit)}else{throw new y("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}t.forEach((function(e){if(!(e instanceof E)){throw new y("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new y("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new y("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));r.forEach((function(e){if(!(e instanceof E)){throw new y("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var n=Object.create(Schema$1.prototype);n.implicit=(this.implicit||[]).concat(t);n.explicit=(this.explicit||[]).concat(r);n.compiledImplicit=compileList(n,"implicit");n.compiledExplicit=compileList(n,"explicit");n.compiledTypeMap=compileMap(n.compiledImplicit,n.compiledExplicit);return n};var b=Schema$1;var S=new E("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}});var C=new E("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}});var x=new E("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}});var O=new b({explicit:[S,C,x]});function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}var R=new E("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var k=new E("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var t=e.length,r=0,n=false,i;if(!t)return false;i=e[r];if(i==="-"||i==="+"){i=e[++r]}if(i==="0"){if(r+1===t)return true;i=e[++r];if(i==="b"){r++;for(;r<t;r++){i=e[r];if(i==="_")continue;if(i!=="0"&&i!=="1")return false;n=true}return n&&i!=="_"}if(i==="x"){r++;for(;r<t;r++){i=e[r];if(i==="_")continue;if(!isHexCode(e.charCodeAt(r)))return false;n=true}return n&&i!=="_"}if(i==="o"){r++;for(;r<t;r++){i=e[r];if(i==="_")continue;if(!isOctCode(e.charCodeAt(r)))return false;n=true}return n&&i!=="_"}}if(i==="_")return false;for(;r<t;r++){i=e[r];if(i==="_")continue;if(!isDecCode(e.charCodeAt(r))){return false}n=true}if(!n||i==="_")return false;return true}function constructYamlInteger(e){var t=e,r=1,n;if(t.indexOf("_")!==-1){t=t.replace(/_/g,"")}n=t[0];if(n==="-"||n==="+"){if(n==="-")r=-1;t=t.slice(1);n=t[0]}if(t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function isInteger(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!v.isNegativeZero(e))}var T=new E("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}});var L=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!L.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,r;t=e.replace(/_/g,"").toLowerCase();r=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return r*parseFloat(t,10)}var $=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var r;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(v.isNegativeZero(e)){return"-0.0"}r=e.toString(10);return $.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||v.isNegativeZero(e))}var I=new E("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"});var N=O.extend({implicit:[R,k,T,I]});var M=N;var H=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var D=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(H.exec(e)!==null)return true;if(D.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,r,n,i,o,a,s,u=0,l=null,c,f,p;t=H.exec(e);if(t===null)t=D.exec(e);if(t===null)throw new Error("Date resolve error");r=+t[1];n=+t[2]-1;i=+t[3];if(!t[4]){return new Date(Date.UTC(r,n,i))}o=+t[4];a=+t[5];s=+t[6];if(t[7]){u=t[7].slice(0,3);while(u.length<3){u+="0"}u=+u}if(t[9]){c=+t[10];f=+(t[11]||0);l=(c*60+f)*6e4;if(t[9]==="-")l=-l}p=new Date(Date.UTC(r,n,i,o,a,s,u));if(l)p.setTime(p.getTime()-l);return p}function representYamlTimestamp(e){return e.toISOString()}var P=new E("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp});function resolveYamlMerge(e){return e==="<<"||e===null}var F=new E("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge});var j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,r,n=0,i=e.length,o=j;for(r=0;r<i;r++){t=o.indexOf(e.charAt(r));if(t>64)continue;if(t<0)return false;n+=6}return n%8===0}function constructYamlBinary(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=j,a=0,s=[];for(t=0;t<i;t++){if(t%4===0&&t){s.push(a>>16&255);s.push(a>>8&255);s.push(a&255)}a=a<<6|o.indexOf(n.charAt(t))}r=i%4*6;if(r===0){s.push(a>>16&255);s.push(a>>8&255);s.push(a&255)}else if(r===18){s.push(a>>10&255);s.push(a>>2&255)}else if(r===12){s.push(a>>4&255)}return new Uint8Array(s)}function representYamlBinary(e){var t="",r=0,n,i,o=e.length,a=j;for(n=0;n<o;n++){if(n%3===0&&n){t+=a[r>>18&63];t+=a[r>>12&63];t+=a[r>>6&63];t+=a[r&63]}r=(r<<8)+e[n]}i=o%3;if(i===0){t+=a[r>>18&63];t+=a[r>>12&63];t+=a[r>>6&63];t+=a[r&63]}else if(i===2){t+=a[r>>10&63];t+=a[r>>4&63];t+=a[r<<2&63];t+=a[64]}else if(i===1){t+=a[r>>2&63];t+=a[r<<4&63];t+=a[64];t+=a[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var q=new E("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary});var B=Object.prototype.hasOwnProperty;var G=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],r,n,i,o,a,s=e;for(r=0,n=s.length;r<n;r+=1){i=s[r];a=false;if(G.call(i)!=="[object Object]")return false;for(o in i){if(B.call(i,o)){if(!a)a=true;else return false}}if(!a)return false;if(t.indexOf(o)===-1)t.push(o);else return false}return true}function constructYamlOmap(e){return e!==null?e:[]}var Y=new E("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap});var U=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,r,n,i,o,a=e;o=new Array(a.length);for(t=0,r=a.length;t<r;t+=1){n=a[t];if(U.call(n)!=="[object Object]")return false;i=Object.keys(n);if(i.length!==1)return false;o[t]=[i[0],n[i[0]]]}return true}function constructYamlPairs(e){if(e===null)return[];var t,r,n,i,o,a=e;o=new Array(a.length);for(t=0,r=a.length;t<r;t+=1){n=a[t];i=Object.keys(n);o[t]=[i[0],n[i[0]]]}return o}var W=new E("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs});var K=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,r=e;for(t in r){if(K.call(r,t)){if(r[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}var Q=new E("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet});var X=M.extend({implicit:[P,F],explicit:[q,Y,W,Q]});var z=Object.prototype.hasOwnProperty;var Z=1;var V=2;var J=3;var ee=4;var te=1;var re=2;var ne=3;var ie=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var oe=/[\x85\u2028\u2029]/;var ae=/[,\[\]\{\}]/;var se=/^(?:!|!!|![a-z\-]+!)$/i;var ue=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var le=new Array(256);var ce=new Array(256);for(var fe=0;fe<256;fe++){le[fe]=simpleEscapeSequence(fe)?1:0;ce[fe]=simpleEscapeSequence(fe)}function State$1(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||X;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};r.snippet=_(r);return new y(t,r)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var pe={YAML:function handleYamlDirective(e,t,r){var n,i,o;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(n[1],10);o=parseInt(n[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=o<2;if(o!==1&&o!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){var n,i;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}n=r[0];i=r[1];if(!se.test(n)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(z.call(e.tagMap,n)){throwError(e,'there is a previously declared suffix for "'+n+'" tag handle')}if(!ue.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{i=decodeURIComponent(i)}catch(t){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i}};function captureSegment(e,t,r,n){var i,o,a,s;if(t<r){s=e.input.slice(t,r);if(n){for(i=0,o=s.length;i<o;i+=1){a=s.charCodeAt(i);if(!(a===9||32<=a&&a<=1114111)){throwError(e,"expected valid JSON character")}}}else if(ie.test(s)){throwError(e,"the stream contains non-printable characters")}e.result+=s}}function mergeMappings(e,t,r,n){var i,o,a,s;if(!v.isObject(r)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}i=Object.keys(r);for(a=0,s=i.length;a<s;a+=1){o=i[a];if(!z.call(t,o)){t[o]=r[o];n[o]=true}}}function storeMappingPair(e,t,r,n,i,o,a,s,u){var l,c;if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(l=0,c=i.length;l<c;l+=1){if(Array.isArray(i[l])){throwError(e,"nested arrays are not supported inside keys")}if(typeof i==="object"&&_class(i[l])==="[object Object]"){i[l]="[object Object]"}}}if(typeof i==="object"&&_class(i)==="[object Object]"){i="[object Object]"}i=String(i);if(t===null){t={}}if(n==="tag:yaml.org,2002:merge"){if(Array.isArray(o)){for(l=0,c=o.length;l<c;l+=1){mergeMappings(e,t,o[l],r)}}else{mergeMappings(e,t,o,r)}}else{if(!e.json&&!z.call(r,i)&&z.call(t,i)){e.line=a||e.line;e.lineStart=s||e.lineStart;e.position=u||e.position;throwError(e,"duplicated mapping key")}if(i==="__proto__"){Object.defineProperty(t,i,{configurable:true,enumerable:true,writable:true,value:o})}else{t[i]=o}delete r[i]}return t}function readLineBreak(e){var t;t=e.input.charCodeAt(e.position);if(t===10){e.position++}else if(t===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{throwError(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function skipSeparationSpace(e,t,r){var n=0,i=e.input.charCodeAt(e.position);while(i!==0){while(is_WHITE_SPACE(i)){if(i===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}i=e.input.charCodeAt(++e.position)}if(t&&i===35){do{i=e.input.charCodeAt(++e.position)}while(i!==10&&i!==13&&i!==0)}if(is_EOL(i)){readLineBreak(e);i=e.input.charCodeAt(e.position);n++;e.lineIndent=0;while(i===32){e.lineIndent++;i=e.input.charCodeAt(++e.position)}}else{break}}if(r!==-1&&n!==0&&e.lineIndent<r){throwWarning(e,"deficient indentation")}return n}function testDocumentSeparator(e){var t=e.position,r;r=e.input.charCodeAt(t);if((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)){t+=3;r=e.input.charCodeAt(t);if(r===0||is_WS_OR_EOL(r)){return true}}return false}function writeFoldedLines(e,t){if(t===1){e.result+=" "}else if(t>1){e.result+=v.repeat("\n",t-1)}}function readPlainScalar(e,t,r){var n,i,o,a,s,u,l,c,f=e.kind,p=e.result,d;d=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||r&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";o=a=e.position;s=false;while(d!==0){if(d===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||r&&is_FLOW_INDICATOR(i)){break}}else if(d===35){n=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(n)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(d)){break}else if(is_EOL(d)){u=e.line;l=e.lineStart;c=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){s=true;d=e.input.charCodeAt(e.position);continue}else{e.position=a;e.line=u;e.lineStart=l;e.lineIndent=c;break}}if(s){captureSegment(e,o,a,false);writeFoldedLines(e,e.line-u);o=a=e.position;s=false}if(!is_WHITE_SPACE(d)){a=e.position+1}d=e.input.charCodeAt(++e.position)}captureSegment(e,o,a,false);if(e.result){return true}e.kind=f;e.result=p;return false}function readSingleQuotedScalar(e,t){var r,n,i;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;n=i=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,n,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){n=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,n,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var r,n,i,o,a,s;s=e.input.charCodeAt(e.position);if(s!==34){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((s=e.input.charCodeAt(e.position))!==0){if(s===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(s===92){captureSegment(e,r,e.position,true);s=e.input.charCodeAt(++e.position);if(is_EOL(s)){skipSeparationSpace(e,false,t)}else if(s<256&&le[s]){e.result+=ce[s];e.position++}else if((a=escapedHexLen(s))>0){i=a;o=0;for(;i>0;i--){s=e.input.charCodeAt(++e.position);if((a=fromHexCode(s))>=0){o=(o<<4)+a}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(o);e.position++}else{throwError(e,"unknown escape sequence")}r=n=e.position}else if(is_EOL(s)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;n=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var r=true,n,i,o,a=e.tag,s,u=e.anchor,l,c,f,p,d,h=Object.create(null),g,m,v,y;y=e.input.charCodeAt(e.position);if(y===91){c=93;d=false;s=[]}else if(y===123){c=125;d=true;s={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=s}y=e.input.charCodeAt(++e.position);while(y!==0){skipSeparationSpace(e,true,t);y=e.input.charCodeAt(e.position);if(y===c){e.position++;e.tag=a;e.anchor=u;e.kind=d?"mapping":"sequence";e.result=s;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}else if(y===44){throwError(e,"expected the node content, but found ','")}m=g=v=null;f=p=false;if(y===63){l=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(l)){f=p=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;i=e.lineStart;o=e.position;composeNode(e,t,Z,false,true);m=e.tag;g=e.result;skipSeparationSpace(e,true,t);y=e.input.charCodeAt(e.position);if((p||e.line===n)&&y===58){f=true;y=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,Z,false,true);v=e.result}if(d){storeMappingPair(e,s,h,m,g,v,n,i,o)}else if(f){s.push(storeMappingPair(e,null,h,m,g,v,n,i,o))}else{s.push(g)}skipSeparationSpace(e,true,t);y=e.input.charCodeAt(e.position);if(y===44){r=true;y=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var r,n,i=te,o=false,a=false,s=t,u=0,l=false,c,f;f=e.input.charCodeAt(e.position);if(f===124){n=false}else if(f===62){n=true}else{return false}e.kind="scalar";e.result="";while(f!==0){f=e.input.charCodeAt(++e.position);if(f===43||f===45){if(te===i){i=f===43?ne:re}else{throwError(e,"repeat of a chomping mode identifier")}}else if((c=fromDecimalCode(f))>=0){if(c===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!a){s=t+c-1;a=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(f)){do{f=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(f));if(f===35){do{f=e.input.charCodeAt(++e.position)}while(!is_EOL(f)&&f!==0)}}while(f!==0){readLineBreak(e);e.lineIndent=0;f=e.input.charCodeAt(e.position);while((!a||e.lineIndent<s)&&f===32){e.lineIndent++;f=e.input.charCodeAt(++e.position)}if(!a&&e.lineIndent>s){s=e.lineIndent}if(is_EOL(f)){u++;continue}if(e.lineIndent<s){if(i===ne){e.result+=v.repeat("\n",o?1+u:u)}else if(i===te){if(o){e.result+="\n"}}break}if(n){if(is_WHITE_SPACE(f)){l=true;e.result+=v.repeat("\n",o?1+u:u)}else if(l){l=false;e.result+=v.repeat("\n",u+1)}else if(u===0){if(o){e.result+=" "}}else{e.result+=v.repeat("\n",u)}}else{e.result+=v.repeat("\n",o?1+u:u)}o=true;a=true;u=0;r=e.position;while(!is_EOL(f)&&f!==0){f=e.input.charCodeAt(++e.position)}captureSegment(e,r,e.position,false)}return true}function readBlockSequence(e,t){var r,n=e.tag,i=e.anchor,o=[],a,s=false,u;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=o}u=e.input.charCodeAt(e.position);while(u!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}if(u!==45){break}a=e.input.charCodeAt(e.position+1);if(!is_WS_OR_EOL(a)){break}s=true;e.position++;if(skipSeparationSpace(e,true,-1)){if(e.lineIndent<=t){o.push(null);u=e.input.charCodeAt(e.position);continue}}r=e.line;composeNode(e,t,J,false,true);o.push(e.result);skipSeparationSpace(e,true,-1);u=e.input.charCodeAt(e.position);if((e.line===r||e.lineIndent>t)&&u!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndent<t){break}}if(s){e.tag=n;e.anchor=i;e.kind="sequence";e.result=o;return true}return false}function readBlockMapping(e,t,r){var n,i,o,a,s,u,l=e.tag,c=e.anchor,f={},p=Object.create(null),d=null,h=null,g=null,m=false,v=false,y;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=f}y=e.input.charCodeAt(e.position);while(y!==0){if(!m&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}n=e.input.charCodeAt(e.position+1);o=e.line;if((y===63||y===58)&&is_WS_OR_EOL(n)){if(y===63){if(m){storeMappingPair(e,f,p,d,h,null,a,s,u);d=h=g=null}v=true;m=true;i=true}else if(m){m=false;i=true}else{throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;y=n}else{a=e.line;s=e.lineStart;u=e.position;if(!composeNode(e,r,V,false,true)){break}if(e.line===o){y=e.input.charCodeAt(e.position);while(is_WHITE_SPACE(y)){y=e.input.charCodeAt(++e.position)}if(y===58){y=e.input.charCodeAt(++e.position);if(!is_WS_OR_EOL(y)){throwError(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(m){storeMappingPair(e,f,p,d,h,null,a,s,u);d=h=g=null}v=true;m=false;i=false;d=e.tag;h=e.result}else if(v){throwError(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=l;e.anchor=c;return true}}else if(v){throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=l;e.anchor=c;return true}}if(e.line===o||e.lineIndent>t){if(m){a=e.line;s=e.lineStart;u=e.position}if(composeNode(e,t,ee,true,i)){if(m){h=e.result}else{g=e.result}}if(!m){storeMappingPair(e,f,p,d,h,g,a,s,u);d=h=g=null}skipSeparationSpace(e,true,-1);y=e.input.charCodeAt(e.position)}if((e.line===o||e.lineIndent>t)&&y!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndent<t){break}}if(m){storeMappingPair(e,f,p,d,h,null,a,s,u)}if(v){e.tag=l;e.anchor=c;e.kind="mapping";e.result=f}return v}function readTagProperty(e){var t,r=false,n=false,i,o,a;a=e.input.charCodeAt(e.position);if(a!==33)return false;if(e.tag!==null){throwError(e,"duplication of a tag property")}a=e.input.charCodeAt(++e.position);if(a===60){r=true;a=e.input.charCodeAt(++e.position)}else if(a===33){n=true;i="!!";a=e.input.charCodeAt(++e.position)}else{i="!"}t=e.position;if(r){do{a=e.input.charCodeAt(++e.position)}while(a!==0&&a!==62);if(e.position<e.length){o=e.input.slice(t,e.position);a=e.input.charCodeAt(++e.position)}else{throwError(e,"unexpected end of the stream within a verbatim tag")}}else{while(a!==0&&!is_WS_OR_EOL(a)){if(a===33){if(!n){i=e.input.slice(t-1,e.position+1);if(!se.test(i)){throwError(e,"named tag handle cannot contain such characters")}n=true;t=e.position+1}else{throwError(e,"tag suffix cannot contain exclamation marks")}}a=e.input.charCodeAt(++e.position)}o=e.input.slice(t,e.position);if(ae.test(o)){throwError(e,"tag suffix cannot contain flow indicator characters")}}if(o&&!ue.test(o)){throwError(e,"tag name cannot contain such characters: "+o)}try{o=decodeURIComponent(o)}catch(t){throwError(e,"tag name is malformed: "+o)}if(r){e.tag=o}else if(z.call(e.tagMap,i)){e.tag=e.tagMap[i]+o}else if(i==="!"){e.tag="!"+o}else if(i==="!!"){e.tag="tag:yaml.org,2002:"+o}else{throwError(e,'undeclared tag handle "'+i+'"')}return true}function readAnchorProperty(e){var t,r;r=e.input.charCodeAt(e.position);if(r!==38)return false;if(e.anchor!==null){throwError(e,"duplication of an anchor property")}r=e.input.charCodeAt(++e.position);t=e.position;while(r!==0&&!is_WS_OR_EOL(r)&&!is_FLOW_INDICATOR(r)){r=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(t,e.position);return true}function readAlias(e){var t,r,n;n=e.input.charCodeAt(e.position);if(n!==42)return false;n=e.input.charCodeAt(++e.position);t=e.position;while(n!==0&&!is_WS_OR_EOL(n)&&!is_FLOW_INDICATOR(n)){n=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an alias node must contain at least one character")}r=e.input.slice(t,e.position);if(!z.call(e.anchorMap,r)){throwError(e,'unidentified alias "'+r+'"')}e.result=e.anchorMap[r];skipSeparationSpace(e,true,-1);return true}function composeNode(e,t,r,n,i){var o,a,s,u=1,l=false,c=false,f,p,d,h,g,m;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;o=a=s=ee===r||J===r;if(n){if(skipSeparationSpace(e,true,-1)){l=true;if(e.lineIndent>t){u=1}else if(e.lineIndent===t){u=0}else if(e.lineIndent<t){u=-1}}}if(u===1){while(readTagProperty(e)||readAnchorProperty(e)){if(skipSeparationSpace(e,true,-1)){l=true;s=o;if(e.lineIndent>t){u=1}else if(e.lineIndent===t){u=0}else if(e.lineIndent<t){u=-1}}else{s=false}}}if(s){s=l||i}if(u===1||ee===r){if(Z===r||V===r){g=t}else{g=t+1}m=e.position-e.lineStart;if(u===1){if(s&&(readBlockSequence(e,m)||readBlockMapping(e,m,g))||readFlowCollection(e,g)){c=true}else{if(a&&readBlockScalar(e,g)||readSingleQuotedScalar(e,g)||readDoubleQuotedScalar(e,g)){c=true}else if(readAlias(e)){c=true;if(e.tag!==null||e.anchor!==null){throwError(e,"alias node should not have any properties")}}else if(readPlainScalar(e,g,Z===r)){c=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else if(u===0){c=s&&readBlockSequence(e,m)}}if(e.tag===null){if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){throwError(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(f=0,p=e.implicitTypes.length;f<p;f+=1){h=e.implicitTypes[f];if(h.resolve(e.result)){e.result=h.construct(e.result);e.tag=h.tag;if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}break}}}else if(e.tag!=="!"){if(z.call(e.typeMap[e.kind||"fallback"],e.tag)){h=e.typeMap[e.kind||"fallback"][e.tag]}else{h=null;d=e.typeMap.multi[e.kind||"fallback"];for(f=0,p=d.length;f<p;f+=1){if(e.tag.slice(0,d[f].tag.length)===d[f].tag){h=d[f];break}}}if(!h){throwError(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&h.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"')}if(!h.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=h.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||c}function readDocument(e){var t=e.position,r,n,i,o=false,a;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((a=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);a=e.input.charCodeAt(e.position);if(e.lineIndent>0||a!==37){break}o=true;a=e.input.charCodeAt(++e.position);r=e.position;while(a!==0&&!is_WS_OR_EOL(a)){a=e.input.charCodeAt(++e.position)}n=e.input.slice(r,e.position);i=[];if(n.length<1){throwError(e,"directive name must not be less than one character in length")}while(a!==0){while(is_WHITE_SPACE(a)){a=e.input.charCodeAt(++e.position)}if(a===35){do{a=e.input.charCodeAt(++e.position)}while(a!==0&&!is_EOL(a));break}if(is_EOL(a))break;r=e.position;while(a!==0&&!is_WS_OR_EOL(a)){a=e.input.charCodeAt(++e.position)}i.push(e.input.slice(r,e.position))}if(a!==0)readLineBreak(e);if(z.call(pe,n)){pe[n](e,n,i)}else{throwWarning(e,'unknown document directive "'+n+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(o){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,ee,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&oe.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position<e.length-1){throwError(e,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(e,t){e=String(e);t=t||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}var r=new State$1(e,t);var n=e.indexOf("\0");if(n!==-1){r.position=n;throwError(r,"null byte is not allowed in input")}r.input+="\0";while(r.input.charCodeAt(r.position)===32){r.lineIndent+=1;r.position+=1}while(r.position<r.length-1){readDocument(r)}return r.documents}function loadAll$1(e,t,r){if(t!==null&&typeof t==="object"&&typeof r==="undefined"){r=t;t=null}var n=loadDocuments(e,r);if(typeof t!=="function"){return n}for(var i=0,o=n.length;i<o;i+=1){t(n[i])}}function load$1(e,t){var r=loadDocuments(e,t);if(r.length===0){return undefined}else if(r.length===1){return r[0]}throw new y("expected a single document in the stream, but found more")}var de=loadAll$1;var he=load$1;var ge={loadAll:de,load:he};var me=Object.prototype.toString;var ve=Object.prototype.hasOwnProperty;var ye=65279;var _e=9;var Ae=10;var we=13;var Ee=32;var be=33;var Se=34;var Ce=35;var xe=37;var Oe=38;var Re=39;var ke=42;var Te=44;var Le=45;var $e=58;var Ie=61;var Ne=62;var Me=63;var He=64;var De=91;var Pe=93;var Fe=96;var je=123;var qe=124;var Be=125;var Ge={};Ge[0]="\\0";Ge[7]="\\a";Ge[8]="\\b";Ge[9]="\\t";Ge[10]="\\n";Ge[11]="\\v";Ge[12]="\\f";Ge[13]="\\r";Ge[27]="\\e";Ge[34]='\\"';Ge[92]="\\\\";Ge[133]="\\N";Ge[160]="\\_";Ge[8232]="\\L";Ge[8233]="\\P";var Ye=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var Ue=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){var r,n,i,o,a,s,u;if(t===null)return{};r={};n=Object.keys(t);for(i=0,o=n.length;i<o;i+=1){a=n[i];s=String(t[a]);if(a.slice(0,2)==="!!"){a="tag:yaml.org,2002:"+a.slice(2)}u=e.compiledTypeMap["fallback"][a];if(u&&ve.call(u.styleAliases,s)){s=u.styleAliases[s]}r[a]=s}return r}function encodeHex(e){var t,r,n;t=e.toString(16).toUpperCase();if(e<=255){r="x";n=2}else if(e<=65535){r="u";n=4}else if(e<=4294967295){r="U";n=8}else{throw new y("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+r+v.repeat("0",n-t.length)+t}var We=1,Ke=2;function State(e){this.schema=e["schema"]||X;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=v.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=compileStyleMap(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?Ke:We;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(e,t){var r=v.repeat(" ",t),n=0,i=-1,o="",a,s=e.length;while(n<s){i=e.indexOf("\n",n);if(i===-1){a=e.slice(n);n=s}else{a=e.slice(n,i+1);n=i+1}if(a.length&&a!=="\n")o+=r;o+=a}return o}function generateNextLine(e,t){return"\n"+v.repeat(" ",e.indent*t)}function testImplicitResolving(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1){i=e.implicitTypes[r];if(i.resolve(t)){return true}}return false}function isWhitespace(e){return e===Ee||e===_e}function isPrintable(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==ye||65536<=e&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==ye&&e!==we&&e!==Ae}function isPlainSafe(e,t,r){var n=isNsCharOrWhitespace(e);var i=n&&!isWhitespace(e);return(r?n:n&&e!==Te&&e!==De&&e!==Pe&&e!==je&&e!==Be)&&e!==Ce&&!(t===$e&&!i)||isNsCharOrWhitespace(t)&&!isWhitespace(t)&&e===Ce||t===$e&&i}function isPlainSafeFirst(e){return isPrintable(e)&&e!==ye&&!isWhitespace(e)&&e!==Le&&e!==Me&&e!==$e&&e!==Te&&e!==De&&e!==Pe&&e!==je&&e!==Be&&e!==Ce&&e!==Oe&&e!==ke&&e!==be&&e!==qe&&e!==Ie&&e!==Ne&&e!==Re&&e!==Se&&e!==xe&&e!==He&&e!==Fe}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==$e}function codePointAt(e,t){var r=e.charCodeAt(t),n;if(r>=55296&&r<=56319&&t+1<e.length){n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){return(r-55296)*1024+n-56320+65536}}return r}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var Qe=1,Xe=2,ze=3,Ze=4,Ve=5;function chooseScalarStyle(e,t,r,n,i,o,a,s){var u;var l=0;var c=null;var f=false;var p=false;var d=n!==-1;var h=-1;var g=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||a){for(u=0;u<e.length;l>=65536?u+=2:u++){l=codePointAt(e,u);if(!isPrintable(l)){return Ve}g=g&&isPlainSafe(l,c,s);c=l}}else{for(u=0;u<e.length;l>=65536?u+=2:u++){l=codePointAt(e,u);if(l===Ae){f=true;if(d){p=p||u-h-1>n&&e[h+1]!==" ";h=u}}else if(!isPrintable(l)){return Ve}g=g&&isPlainSafe(l,c,s);c=l}p=p||d&&(u-h-1>n&&e[h+1]!==" ")}if(!f&&!p){if(g&&!a&&!i(e)){return Qe}return o===Ke?Ve:Xe}if(r>9&&needIndentIndicator(e)){return Ve}if(!a){return p?Ze:ze}return o===Ke?Ve:Xe}function writeScalar(e,t,r,n,i){e.dump=function(){if(t.length===0){return e.quotingType===Ke?'""':"''"}if(!e.noCompatMode){if(Ye.indexOf(t)!==-1||Ue.test(t)){return e.quotingType===Ke?'"'+t+'"':"'"+t+"'"}}var o=e.indent*Math.max(1,r);var a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o);var s=n||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,s,e.indent,a,testAmbiguity,e.quotingType,e.forceQuotes&&!n,i)){case Qe:return t;case Xe:return"'"+t.replace(/'/g,"''")+"'";case ze:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,o));case Ze:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,a),o));case Ve:return'"'+escapeString(t)+'"';default:throw new y("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var r=needIndentIndicator(e)?String(t):"";var n=e[e.length-1]==="\n";var i=n&&(e[e.length-2]==="\n"||e==="\n");var o=i?"+":n?"":"-";return r+o+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var r=/(\n+)([^\n]*)/g;var n=function(){var n=e.indexOf("\n");n=n!==-1?n:e.length;r.lastIndex=n;return foldLine(e.slice(0,n),t)}();var i=e[0]==="\n"||e[0]===" ";var o;var a;while(a=r.exec(e)){var s=a[1],u=a[2];o=u[0]===" ";n+=s+(!i&&!o&&u!==""?"\n":"")+foldLine(u,t);i=o}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var n;var i=0,o,a=0,s=0;var u="";while(n=r.exec(e)){s=n.index;if(s-i>t){o=a>i?a:s;u+="\n"+e.slice(i,o);i=o+1}a=s}u+="\n";if(e.length-i>t&&a>i){u+=e.slice(i,a)+"\n"+e.slice(a+1)}else{u+=e.slice(i)}return u.slice(1)}function escapeString(e){var t="";var r=0;var n;for(var i=0;i<e.length;r>=65536?i+=2:i++){r=codePointAt(e,i);n=Ge[r];if(!n&&isPrintable(r)){t+=e[i];if(r>=65536)t+=e[i+1]}else{t+=n||encodeHex(r)}}return t}function writeFlowSequence(e,t,r){var n="",i=e.tag,o,a,s;for(o=0,a=r.length;o<a;o+=1){s=r[o];if(e.replacer){s=e.replacer.call(r,String(o),s)}if(writeNode(e,t,s,false,false)||typeof s==="undefined"&&writeNode(e,t,null,false,false)){if(n!=="")n+=","+(!e.condenseFlow?" ":"");n+=e.dump}}e.tag=i;e.dump="["+n+"]"}function writeBlockSequence(e,t,r,n){var i="",o=e.tag,a,s,u;for(a=0,s=r.length;a<s;a+=1){u=r[a];if(e.replacer){u=e.replacer.call(r,String(a),u)}if(writeNode(e,t+1,u,true,true,false,true)||typeof u==="undefined"&&writeNode(e,t+1,null,true,true,false,true)){if(!n||i!==""){i+=generateNextLine(e,t)}if(e.dump&&Ae===e.dump.charCodeAt(0)){i+="-"}else{i+="- "}i+=e.dump}}e.tag=o;e.dump=i||"[]"}function writeFlowMapping(e,t,r){var n="",i=e.tag,o=Object.keys(r),a,s,u,l,c;for(a=0,s=o.length;a<s;a+=1){c="";if(n!=="")c+=", ";if(e.condenseFlow)c+='"';u=o[a];l=r[u];if(e.replacer){l=e.replacer.call(r,u,l)}if(!writeNode(e,t,u,false,false)){continue}if(e.dump.length>1024)c+="? ";c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,l,false,false)){continue}c+=e.dump;n+=c}e.tag=i;e.dump="{"+n+"}"}function writeBlockMapping(e,t,r,n){var i="",o=e.tag,a=Object.keys(r),s,u,l,c,f,p;if(e.sortKeys===true){a.sort()}else if(typeof e.sortKeys==="function"){a.sort(e.sortKeys)}else if(e.sortKeys){throw new y("sortKeys must be a boolean or a function")}for(s=0,u=a.length;s<u;s+=1){p="";if(!n||i!==""){p+=generateNextLine(e,t)}l=a[s];c=r[l];if(e.replacer){c=e.replacer.call(r,l,c)}if(!writeNode(e,t+1,l,true,true,true)){continue}f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(f){if(e.dump&&Ae===e.dump.charCodeAt(0)){p+="?"}else{p+="? "}}p+=e.dump;if(f){p+=generateNextLine(e,t)}if(!writeNode(e,t+1,c,true,f)){continue}if(e.dump&&Ae===e.dump.charCodeAt(0)){p+=":"}else{p+=": "}p+=e.dump;i+=p}e.tag=o;e.dump=i||"{}"}function detectType(e,t,r){var n,i,o,a,s,u;i=r?e.explicitTypes:e.implicitTypes;for(o=0,a=i.length;o<a;o+=1){s=i[o];if((s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t==="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(r){if(s.multi&&s.representName){e.tag=s.representName(t)}else{e.tag=s.tag}}else{e.tag="?"}if(s.represent){u=e.styleMap[s.tag]||s.defaultStyle;if(me.call(s.represent)==="[object Function]"){n=s.represent(t,u)}else if(ve.call(s.represent,u)){n=s.represent[u](t,u)}else{throw new y("!<"+s.tag+'> tag resolver accepts not "'+u+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,r,n,i,o,a){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var s=me.call(e.dump);var u=n;var l;if(n){n=e.flowLevel<0||e.flowLevel>t}var c=s==="[object Object]"||s==="[object Array]",f,p;if(c){f=e.duplicates.indexOf(r);p=f!==-1}if(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0){i=false}if(p&&e.usedDuplicates[f]){e.dump="*ref_"+f}else{if(c&&p&&!e.usedDuplicates[f]){e.usedDuplicates[f]=true}if(s==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,i);if(p){e.dump="&ref_"+f+e.dump}}else{writeFlowMapping(e,t,e.dump);if(p){e.dump="&ref_"+f+" "+e.dump}}}else if(s==="[object Array]"){if(n&&e.dump.length!==0){if(e.noArrayIndent&&!a&&t>0){writeBlockSequence(e,t-1,e.dump,i)}else{writeBlockSequence(e,t,e.dump,i)}if(p){e.dump="&ref_"+f+e.dump}}else{writeFlowSequence(e,t,e.dump);if(p){e.dump="&ref_"+f+" "+e.dump}}}else if(s==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,o,u)}}else if(s==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new y("unacceptable kind of an object to dump "+s)}if(e.tag!==null&&e.tag!=="?"){l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){l="!"+l}else if(l.slice(0,18)==="tag:yaml.org,2002:"){l="!!"+l.slice(18)}else{l="!<"+l+">"}e.dump=l+" "+e.dump}}return true}function getDuplicateReferences(e,t){var r=[],n=[],i,o;inspectNode(e,r,n);for(i=0,o=n.length;i<o;i+=1){t.duplicates.push(r[n[i]])}t.usedDuplicates=new Array(o)}function inspectNode(e,t,r){var n,i,o;if(e!==null&&typeof e==="object"){i=t.indexOf(e);if(i!==-1){if(r.indexOf(i)===-1){r.push(i)}}else{t.push(e);if(Array.isArray(e)){for(i=0,o=e.length;i<o;i+=1){inspectNode(e[i],t,r)}}else{n=Object.keys(e);for(i=0,o=n.length;i<o;i+=1){inspectNode(e[n[i]],t,r)}}}}}function dump$1(e,t){t=t||{};var r=new State(t);if(!r.noRefs)getDuplicateReferences(e,r);var n=e;if(r.replacer){n=r.replacer.call({"":n},"",n)}if(writeNode(r,0,n,true,true))return r.dump+"\n";return""}var Je=dump$1;var et={dump:Je};function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}var tt=E;var rt=b;var nt=O;var it=N;var ot=M;var at=X;var st=ge.load;var ut=ge.loadAll;var lt=et.dump;var ct=y;var ft={binary:q,float:I,map:x,null:R,pairs:W,set:Q,timestamp:P,bool:k,int:T,merge:F,omap:Y,seq:C,str:S};var pt=renamed("safeLoad","load");var dt=renamed("safeLoadAll","loadAll");var ht=renamed("safeDump","dump");var gt={Type:tt,Schema:rt,FAILSAFE_SCHEMA:nt,JSON_SCHEMA:it,CORE_SCHEMA:ot,DEFAULT_SCHEMA:at,load:st,loadAll:ut,dump:lt,YAMLException:ct,types:ft,safeLoad:pt,safeLoadAll:dt,safeDump:ht};const mt=null&>const vt=__nccwpck_require__(285)["default"];const yt={dot:true};var _t;(function(e){e["EVERY"]="every";e["SOME"]="some"})(_t||(_t={}));const At=Object.values(_t);function isPredicateQuantifier(e){return At.includes(e)}class filter_Filter{filterConfig;rules={};constructor(e,t){this.filterConfig=t;if(e){this.load(e)}}load(e){if(!e){return}const t=st(e);if(typeof t!=="object"){this.throwInvalidFormatError("Root element is not an object")}for(const[e,r]of Object.entries(t)){this.rules[e]=this.parseFilterItemYaml(r)}}match(e){const t={};for(const[r,n]of Object.entries(this.rules)){t[r]=e.filter((e=>this.isMatch(e,n)))}return t}isMatch(e,t){const aPredicate=t=>(t.status===undefined||t.status.includes(e.status))&&t.isMatch(e.filename);if(this.filterConfig?.predicateQuantifier==="every"){return t.every(aPredicate)}else{return t.some(aPredicate)}}parseFilterItemYaml(e){if(Array.isArray(e)){return flat(e.map((e=>this.parseFilterItemYaml(e))))}if(typeof e==="string"){return[{status:undefined,isMatch:vt(e,yt)}]}if(typeof e==="object"){return Object.entries(e).map((([e,t])=>{if(typeof e!=="string"||typeof t!=="string"&&!Array.isArray(t)){this.throwInvalidFormatError(`Expected [key:string]= pattern:string | string[], but [${e}:${typeof e}]= ${t}:${typeof t} found`)}return{status:e.split("|").map((e=>e.trim())).filter((e=>e.length>0)).map((e=>e.toLowerCase())),isMatch:vt(t,yt)}}))}this.throwInvalidFormatError(`Unexpected element type '${typeof e}'`)}throwInvalidFormatError(e){throw new Error(`Invalid filter YAML format: ${e}.`)}}function flat(e){return e.reduce(((e,t)=>e.concat(t)),[])}var wt;(function(e){e["Added"]="added";e["Copied"]="copied";e["Deleted"]="deleted";e["Modified"]="modified";e["Renamed"]="renamed";e["Unmerged"]="unmerged"})(wt||(wt={}));const Et=__nccwpck_require__(642);const paths_filter_dependencies_getExecOutput=async(e,t,r)=>{const n=await Et(e,t,{stdio:"pipe"});if(n.status===0||r?.ignoreReturnCode){return{...n,exitCode:n.status??0}}throw new Error(n.stderr)};const bt={startGroup:e=>{},endGroup:()=>{},info:e=>{},warning:e=>{}};const St="0000000000000000000000000000000000000000";const Ct="HEAD";async function getChangesInLastCommit(){core.startGroup(`Change detection in last commit`);let e="";try{e=(await getExecOutput("git",["log","--format=","--no-renames","--name-status","-z","-n","1"])).stdout}finally{fixStdOutNullTermination();core.endGroup()}return parseGitDiffOutput(e)}async function getChanges(e,t){const r=await ensureRefAvailable(e);const n=await ensureRefAvailable(t);bt.startGroup(`Change detection ${e}..${t}`);let i="";try{i=(await paths_filter_dependencies_getExecOutput("git",["diff","--no-renames","--name-status","-z",`${r}..${n}`])).stdout}finally{fixStdOutNullTermination();bt.endGroup()}return parseGitDiffOutput(i)}async function getChangesOnHead(){core.startGroup(`Change detection on HEAD`);let e="";try{e=(await getExecOutput("git",["diff","--no-renames","--name-status","-z","HEAD"])).stdout}finally{fixStdOutNullTermination();core.endGroup()}return parseGitDiffOutput(e)}async function getChangesSinceMergeBase(e,t,r){let n;let i;async function hasMergeBase(){if(n===undefined||i===undefined){return false}return(await getExecOutput("git",["merge-base",n,i],{ignoreReturnCode:true})).exitCode===0}let o=false;core.startGroup(`Searching for merge-base ${e}...${t}`);try{n=await getLocalRef(e);i=await getLocalRef(t);if(!await hasMergeBase()){await getExecOutput("git",["fetch","--no-tags",`--depth=${r}`,"origin",e,t]);if(n===undefined||i===undefined){n=n??await getLocalRef(e);i=i??await getLocalRef(t);if(n===undefined||i===undefined){await getExecOutput("git",["fetch","--tags","--depth=1","origin",e,t],{ignoreReturnCode:true});n=n??await getLocalRef(e);i=i??await getLocalRef(t);if(n===undefined){throw new Error(`Could not determine what is ${e} - fetch works but it's not a branch, tag or commit SHA`)}if(i===undefined){throw new Error(`Could not determine what is ${t} - fetch works but it's not a branch, tag or commit SHA`)}}}let a=r;let s=await getCommitCount();while(!await hasMergeBase()){a=Math.min(a*2,Number.MAX_SAFE_INTEGER);await getExecOutput("git",["fetch",`--deepen=${a}`,"origin",e,t]);const r=await getCommitCount();if(r===s){core.info("No more commits were fetched");core.info("Last attempt will be to fetch full history");await getExecOutput("git",["fetch"]);if(!await hasMergeBase()){o=true}break}s=r}}}finally{core.endGroup()}let a=`${n}...${i}`;if(o){core.warning("No merge base found - change detection will use direct <commit>..<commit> comparison");a=`${n}..${i}`}core.startGroup(`Change detection ${a}`);let s="";try{s=(await getExecOutput("git",["diff","--no-renames","--name-status","-z",a])).stdout}finally{fixStdOutNullTermination();core.endGroup()}return parseGitDiffOutput(s)}function parseGitDiffOutput(e){const t=e.split("\0").filter((e=>e.length>0));const r=[];for(let e=0;e+1<t.length;e+=2){r.push({status:xt[t[e]],filename:t[e+1]})}return r}async function listAllFilesAsAdded(){core.startGroup("Listing all files tracked by git");let e="";try{e=(await getExecOutput("git",["ls-files","-z"])).stdout}finally{fixStdOutNullTermination();core.endGroup()}return e.split("\0").filter((e=>e.length>0)).map((e=>({status:ChangeStatus.Added,filename:e})))}async function getCurrentRef(){core.startGroup(`Get current git ref`);try{const e=(await getExecOutput("git",["branch","--show-current"])).stdout.trim();if(e){return e}const t=await getExecOutput("git",["describe","--tags","--exact-match"],{ignoreReturnCode:true});if(t.exitCode===0){return t.stdout.trim()}return(await getExecOutput("git",["rev-parse",Ct])).stdout.trim()}finally{core.endGroup()}}function getShortName(e){if(!e)return"";const t="refs/heads/";const r="refs/tags/";if(e.startsWith(t))return e.slice(t.length);if(e.startsWith(r))return e.slice(r.length);return e}function isGitSha(e){return/^[a-z0-9]{40}$/.test(e)}async function hasCommit(e){return(await paths_filter_dependencies_getExecOutput("git",["cat-file","-e",`${e}^{commit}`],{ignoreReturnCode:true})).exitCode===0}async function getCommitCount(){const e=(await getExecOutput("git",["rev-list","--count","--all"])).stdout;const t=parseInt(e);return isNaN(t)?0:t}async function getLocalRef(e){if(isGitSha(e)){return await hasCommit(e)?e:undefined}const t=(await paths_filter_dependencies_getExecOutput("git",["show-ref",e],{ignoreReturnCode:true})).stdout;const r=t.split(/\r?\n/g).map((e=>e.match(/refs\/(?:(?:heads)|(?:tags)|(?:remotes\/origin))\/(.*)$/))).filter((t=>t!==null&&t[1]===e)).map((e=>e?.[0]??""));if(r.length===0){return undefined}const n=r.find((e=>e.startsWith("refs/remotes/origin/")));if(n){return n}return r[0]}async function ensureRefAvailable(e){bt.startGroup(`Ensuring ${e} is fetched from origin`);try{let t=await getLocalRef(e);if(t===undefined){await paths_filter_dependencies_getExecOutput("git",["fetch","--depth=1","--no-tags","origin",e]);t=await getLocalRef(e);if(t===undefined){await paths_filter_dependencies_getExecOutput("git",["fetch","--depth=1","--tags","origin",e]);t=await getLocalRef(e);if(t===undefined){throw new Error(`Could not determine what is ${e} - fetch works but it's not a branch, tag or commit SHA`)}}}return t}finally{bt.endGroup()}}function fixStdOutNullTermination(){bt.info("")}const xt={A:wt.Added,C:wt.Copied,D:wt.Deleted,M:wt.Modified,R:wt.Renamed,U:wt.Unmerged};const Ot=__nccwpck_require__(642);const Rt=__nccwpck_require__(285);(async function(){const e=[...process["argv"].slice(2)];if(e.length<1){throw new Error("Usage: check-for-changed-paths <git_event_name> <branch> [<path1> <path2> ...]")}const t=e.shift();if(!isPullRequestWorkflow(t)){console.log(`didChange: true`);await setOutput("result","true");return}const r=e.shift();const n=[...e];if(n.length===0){console.log("false");return}console.log(`branch: ${r}`);console.log(`pathsToCheck: ${JSON.stringify(n,null,2)}`);const o=i();const a=i();await prepareGit(r,o,a);const s=await getChanges(a,o);const u=new Filter;u.loadFromEntries(n);const l=u.match(s);console.log(`results: ${JSON.stringify(l,null,2)}`);const c=await didAnyFilesChange(l)?"true":"false";console.log(`didChange: ${c}`);await setOutput("result",c)})();const kt={dot:true};class Filter extends filter_Filter{loadFromEntries(e){for(const t of e){this.rules[t]=[{status:undefined,isMatch:Rt(t,kt)}]}}}function isPullRequestWorkflow(e){console.log(`git_event_name: ${e}`);return e==="pull_request"}async function didAnyFilesChange(e){return Object.values(e).some((e=>e.length>0))}async function setOutput(e,t){await Ot("set-output",[e,t],{stdio:"inherit"})}async function prepareGit(e,t,r){await Ot("git",["config","user.email",process.env.GIT_AUTHOR_EMAIL],{stdio:"ignore"});await Ot("git",["config","user.name",process.env.GIT_AUTHOR_NAME],{stdio:"ignore"});await Ot("git",["checkout","-b",t],{stdio:"ignore"});await Ot("git",["add","."],{stdio:"ignore"});await Ot("git",["commit","--allow-empty","-m","tmp"],{stdio:"ignore"});await Ot("git",["fetch","origin",e],{stdio:"ignore"});await Ot("git",["checkout","FETCH_HEAD"],{stdio:"ignore"});await Ot("git",["switch","-c",r],{stdio:"ignore"});await Ot("git",["checkout",t],{stdio:"ignore"})}})();module.exports=r})();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{e2e/setup → check-for-changed-paths/src}/paths-filter/paths-filter-dependencies.ts
RENAMED
|
File without changes
|