@wix/cli-app 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/CreateVersionCommand-M57PLQFO.js +4 -0
- package/build/CreateVersionCommand-M57PLQFO.js.map +1 -0
- package/build/DevCommand-HBIIRNKJ.js +4 -0
- package/build/DevCommand-HBIIRNKJ.js.map +1 -0
- package/build/PreviewCommand-ISSV3BOT.js +4 -0
- package/build/PreviewCommand-ISSV3BOT.js.map +1 -0
- package/build/ServeCommand-PBWWH7JV.js +4 -0
- package/build/ServeCommand-PBWWH7JV.js.map +1 -0
- package/build/SiteIdProvider-OORASSSR.js +4 -0
- package/build/SiteIdProvider-OORASSSR.js.map +1 -0
- package/build/build-2RGFEOAH.js +4 -0
- package/build/build-2RGFEOAH.js.map +1 -0
- package/build/chunk-52CFCSNQ.js +65 -0
- package/build/chunk-52CFCSNQ.js.map +1 -0
- package/build/chunk-5CJ7KYIU.js +4 -0
- package/build/chunk-5CJ7KYIU.js.map +1 -0
- package/build/chunk-6G7R73WW.js +4 -0
- package/build/chunk-6G7R73WW.js.map +1 -0
- package/build/chunk-AWOTQVII.js +4 -0
- package/build/chunk-AWOTQVII.js.map +1 -0
- package/build/chunk-BNCDZAQC.js +4 -0
- package/build/chunk-BNCDZAQC.js.map +1 -0
- package/build/chunk-BOTVIAFU.js +4 -0
- package/build/chunk-BOTVIAFU.js.map +1 -0
- package/build/chunk-DUZ55BRL.js +126 -0
- package/build/chunk-DUZ55BRL.js.map +1 -0
- package/build/chunk-FGP4AKBM.js +4 -0
- package/build/chunk-FGP4AKBM.js.map +1 -0
- package/build/chunk-FJCAYHQL.js +23 -0
- package/build/chunk-FJCAYHQL.js.map +1 -0
- package/build/chunk-IJ6QC2OQ.js +4 -0
- package/build/chunk-IJ6QC2OQ.js.map +1 -0
- package/build/chunk-JDGDMH7E.js +4 -0
- package/build/chunk-JDGDMH7E.js.map +1 -0
- package/build/chunk-JI4J5GCL.js +4 -0
- package/build/chunk-JI4J5GCL.js.map +1 -0
- package/build/chunk-JZEMYLWD.js +11 -0
- package/build/chunk-JZEMYLWD.js.map +1 -0
- package/build/chunk-L4IT3FJC.js +4 -0
- package/build/chunk-L4IT3FJC.js.map +1 -0
- package/build/chunk-LHKDRLTT.js +4 -0
- package/build/chunk-LHKDRLTT.js.map +1 -0
- package/build/chunk-RGPGMVHK.js +7 -0
- package/build/chunk-RGPGMVHK.js.map +1 -0
- package/build/chunk-S7NF452E.js +4 -0
- package/build/chunk-S7NF452E.js.map +1 -0
- package/build/chunk-U6YFRFIX.js +106 -0
- package/build/chunk-U6YFRFIX.js.map +1 -0
- package/build/chunk-XVSH4K7G.js +4 -0
- package/build/chunk-XVSH4K7G.js.map +1 -0
- package/build/chunk-ZVAVQTPJ.js +24 -0
- package/build/chunk-ZVAVQTPJ.js.map +1 -0
- package/build/index.js +1 -331
- package/build/index.js.map +1 -1
- package/build/preview-3532IXSY.js +4 -0
- package/build/preview-3532IXSY.js.map +1 -0
- package/build/render-command-3GYMO4L2.js +4 -0
- package/build/render-command-3GYMO4L2.js.map +1 -0
- package/build/types.impl-HD4UTKFC.js +4 -0
- package/build/types.impl-HD4UTKFC.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import{a as T,c as m,e as we,h}from"./chunk-HFDLXX7R.js";var za=m(Sn=>{"use strict";h();Object.defineProperty(Sn,"__esModule",{value:!0});Sn.isTypeImpl=void 0;function IT(t){function e(r,s){if(r!=null)if(typeof r=="function"||typeof r=="string"){let i=r,n=typeof i=="string"?i:i.output.type;return o=>e(o,n)}else{let i=r,n=typeof s=="string"?s:s.output.type;return i!=null&&i[t??"type"]===n}else return!1}return{isType:e}}Sn.isTypeImpl=IT});var Xa=m(tr=>{"use strict";h();Object.defineProperty(tr,"__esModule",{value:!0});tr.HOI=tr.isPromise=tr.identityFunc=void 0;var NT=(t={})=>t;tr.identityFunc=NT;function bT(t){return t!=null&&typeof t=="object"&&"then"in t&&typeof t.then=="function"}tr.isPromise=bT;var wT=()=>t=>t;tr.HOI=wT});var rr=m(xt=>{"use strict";h();Object.defineProperty(xt,"__esModule",{value:!0});xt.variantImpl=xt.isVariantCreator=xt.scopeType=void 0;var On=Xa(),CT=(t,e)=>`${t}/${e}`;xt.scopeType=CT;function PT(t){var e;return(e=t.split("/")[1])!==null&&e!==void 0?e:t}var Za=Symbol("Variant Creator");function zf(t){return Za in t}xt.isVariantCreator=zf;function DT(t){function e(a,c){return Object.keys(c).reduce((u,l)=>Object.assign(Object.assign({},u),{[l]:s(xt.scopeType(a,l),typeof c[l]=="function"?c[l]:On.identityFunc)}),{})}function r(a){return Object.assign(Object.assign({},a),{[t]:PT(a[t])})}function s(a,c){let u=(...f)=>{let d=(c??On.identityFunc)(...f);return On.isPromise(d)?d.then(E=>t in(E??{})?E:Object.assign(E??{},{[t]:a})):t in(d??{})?d:Object.assign(d??{},{[t]:a})};return Object.defineProperty(u,"name",{value:a,writable:!1}),Object.assign(u,{output:{key:t,type:a}},{[Za]:Za,toString:function(){return this.output.type}})}function i(a){return Object.entries(a).reduce((c,[u,l])=>{let f=typeof l=="function"?zf(l)?l:s(u,l):s(u,On.identityFunc);return Object.assign(Object.assign({},c),{[u]:f})},{})}function n(a){return a.map(c=>typeof c=="string"?s(c):c).reduce((c,u)=>{let l=typeof u=="string"?s(u):u;return Object.assign(Object.assign({},c),{[l.output.type]:l})},{})}function o(a){return Array.isArray(a)?n(a):i(a)}return{descope:r,scoped:e,variant:o,variantList:n,variantModule:i,variation:s}}xt.variantImpl=DT});var Xf=m(Rn=>{"use strict";h();Object.defineProperty(Rn,"__esModule",{value:!0});Rn.DEFAULT_KEY=void 0;Rn.DEFAULT_KEY="default"});var Qa=m(Tn=>{"use strict";h();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.matchImpl=void 0;var xT=rr(),Zf=Xf();function LT(t){let e=u=>l=>f=>r(f,l);function r(...u){var l,f;if(u.length===1){let[d]=u;return E=>r(E,d)}else if(u.length===2){let[d,E]=u,g=typeof d=="string"?n(d):d,R=typeof E=="function"?E(g):E,v=g==null?void 0:xT.isVariantCreator(g)?g.output.type:g[t];if(g!=null&&v!==void 0&&v in R)return(l=R[v])===null||l===void 0?void 0:l.call(R,g);if(Zf.DEFAULT_KEY in R)return(f=R[Zf.DEFAULT_KEY])===null||f===void 0?void 0:f.call(R,g)}}let s=u=>()=>u,i=n;function n(u){return{[t]:u}}function o(u){let l=Object.keys(u).reduce((f,d)=>Object.assign(Object.assign({},f),{[d]:()=>u[d]}),{});return f=>l}function a(u,l){return f=>Object.assign(Object.assign({},u),{default:l})}function c(u,l){return f=>Object.assign(Object.assign({},u),{default:l})}return{match:r,ofLiteral:n,onLiteral:i,otherwise:a,partial:s,prematch:e,lookup:o,withFallback:c}}Tn.matchImpl=LT});var Qf=m(An=>{"use strict";h();Object.defineProperty(An,"__esModule",{value:!0});An.typesImpl=void 0;var MT=rr();function FT(t){function e(s){return Array.isArray(s)?s.length&&MT.isVariantCreator(s[0])?s.map(i=>i.output.type):s.map(i=>i[t]):Object.values(s).map(i=>i.output.type)}function r(s){return new Proxy({},{get:(i,n)=>n})}return{types:e,inferTypes:r}}An.typesImpl=FT});var Ja=m(vn=>{"use strict";h();Object.defineProperty(vn,"__esModule",{value:!0});vn.flagsImpl=void 0;function kT(t){function e(r){return r.reduce((s,i)=>Object.assign(Object.assign({},s),{[i[t]]:i}),Object.create(null))}return{flags:e}}vn.flagsImpl=kT});var Jf=m(In=>{"use strict";h();Object.defineProperty(In,"__esModule",{value:!0});In.isOfVariantImpl=void 0;function BT(t){function e(...r){if(r.length===1){let[s]=r;return i=>i!=null&&Object.values(s).some(n=>n.output.type===i[t])}else if(r.length===2){let[s,i]=r;return s!=null&&Object.values(i).some(n=>n.output.type===s[t])}return!1}return{isOfVariant:e}}In.isOfVariantImpl=BT});var ed=m(Mr=>{"use strict";h();Object.defineProperty(Mr,"__esModule",{value:!0});Mr.remoteImpl=Mr.CompareResult=void 0;var UT=za(),GT=Qa(),jT=rr(),qT;(function(t){t[t.Lesser=-1]="Lesser",t[t.Equal=0]="Equal",t[t.Greater=1]="Greater"})(qT=Mr.CompareResult||(Mr.CompareResult={}));function HT(t){let{isType:e}=UT.isTypeImpl(t),{match:r}=GT.matchImpl(t),{variantList:s}=jT.variantImpl(t);function i(l){return Object.keys(l).reduce((d,E)=>Object.assign(Object.assign({},d),{[E]:e(E)}),{})}function n(l){return{key:t,is:i(l),new:l,match:r}}function o(l){return typeof l=="string"?l:typeof l=="function"?l.output.type:l[t]}function a(l,f){let E=n(l),g=f.map(o);return Object.assign(Object.assign({},E),{length:f.length,compare:(R,v)=>{let N=g.findIndex(Oe=>Oe===o(R)),V=g.findIndex(Oe=>Oe===o(v)),z=N-V;return z===0?z:z/Math.abs(z)},get(R){let v=this.types[R];return this.new[v]},index:R=>g.findIndex(v=>v===o(R)),types:g})}function c(l){let f=s(l);return a(f,l)}function u(l,f){return Array.isArray(l)?c(l):a(l,f)}return{remote:n,sequence:u}}Mr.remoteImpl=HT});var ec=m(Fr=>{"use strict";h();Object.defineProperty(Fr,"__esModule",{value:!0});Fr.typedImpl=Fr.pass=void 0;var WT=t=>t;Fr.pass=WT;function VT(t){function e(r){return typeof r=="function"?r(Fr.pass):r}return{typed:e}}Fr.typedImpl=VT});var tc=m(sr=>{"use strict";h();Object.defineProperty(sr,"__esModule",{value:!0});sr.unpack=sr.just=sr.constant=void 0;function td(t){return()=>t}sr.constant=td;sr.just=td;var $T=t=>t.payload;sr.unpack=$T});var rd=m(ir=>{"use strict";h();Object.defineProperty(ir,"__esModule",{value:!0});ir.matcherImpl=ir.Matcher=ir.tableToHandler=void 0;var YT=tc(),KT=rr();function rc(t){return Object.keys(t).reduce((e,r)=>{let s=r;return Object.assign(Object.assign({},e),{[s]:YT.just(t[s])})},{})}ir.tableToHandler=rc;var Nn=class t{constructor(e,r,s){this.target=e,this.key=r,this.handler=s,this.complete=i=>{var n,o;if(this.target!=null&&this.target[this.key]in this.handler)return(o=(n=this.handler)[this.target[this.key]])===null||o===void 0?void 0:o.call(n,this.target);if(i?.withFallback!=null)return i.withFallback(this.target)}}execute(){let e=this.handler[this.target[this.key]];return e?.(this.target)}exhaust(e){var r;let s=Object.assign(Object.assign({},this.handler),e);return(r=s[this.target[this.key]])===null||r===void 0?void 0:r.call(s,this.target)}remaining(e){return new t(this.target,this.key,Object.assign(Object.assign({},this.handler),e))}else(e){var r,s;return this.target[this.key]in this.handler?(s=(r=this.handler)[this.target[this.key]])===null||s===void 0?void 0:s.call(r,this.target):e(this.target)}register(e){let r=Object.assign(Object.assign({},this.handler),rc(e));return new t(this.target,this.key,r)}lookup(e){var r;let s=Object.assign(Object.assign({},this.handler),rc(e));return(r=s[this.target[this.key]])===null||r===void 0?void 0:r.call(s,this.target)}with(e){return new t(this.target,this.key,Object.assign(Object.assign({},this.handler),e))}when(e,r){if(r!=null){let i=(Array.isArray(e)?e:[e]).reduce((n,o)=>{let a=typeof o=="string"?o:KT.isVariantCreator(o)?o.output.type:void 0;return a!=null?Object.assign(Object.assign({},n),{[a]:r}):n},{});return new t(this.target,this.key,Object.assign(Object.assign({},this.handler),i))}else return new t(this.target,this.key,Object.assign(Object.assign({},this.handler),e))}};ir.Matcher=Nn;function zT(t){function e(r){let s=typeof r=="string"?{[t]:r}:r;return new Nn(s,t,{})}return{matcher:e}}ir.matcherImpl=zT});var sc=m(bn=>{"use strict";h();Object.defineProperty(bn,"__esModule",{value:!0});bn.variantCosmos=void 0;var XT=za(),ZT=Qa(),QT=rr(),JT=Qf(),eA=Ja(),tA=Jf(),rA=ed(),sA=ec(),iA=rd();function nA({key:t}){let{isType:e}=XT.isTypeImpl(t),{flags:r}=eA.flagsImpl(t);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({key:t,isType:e,flags:r},tA.isOfVariantImpl(t)),ZT.matchImpl(t)),iA.matcherImpl(t)),rA.remoteImpl(t)),sA.typedImpl(t)),JT.typesImpl(t)),QT.variantImpl(t))}bn.variantCosmos=nA});var ic=m(F=>{"use strict";h();var ue;Object.defineProperty(F,"__esModule",{value:!0});F.withFallback=F.variation=F.variantModule=F.variantList=F.variant=F.types=F.typed=F.lookup=F.sequence=F.scoped=F.remote=F.prematch=F.partial=F.otherwise=F.onLiteral=F.ofLiteral=F.matcher=F.match=F.isType=F.isOfVariant=F.inferTypes=F.flags=F.descope=void 0;var oA=sc();ue=oA.variantCosmos({key:"type"}),F.descope=ue.descope,F.flags=ue.flags,F.inferTypes=ue.inferTypes,F.isOfVariant=ue.isOfVariant,F.isType=ue.isType,F.match=ue.match,F.matcher=ue.matcher,F.ofLiteral=ue.ofLiteral,F.onLiteral=ue.onLiteral,F.otherwise=ue.otherwise,F.partial=ue.partial,F.prematch=ue.prematch,F.remote=ue.remote,F.scoped=ue.scoped,F.sequence=ue.sequence,F.lookup=ue.lookup,F.typed=ue.typed,F.types=ue.types,F.variant=ue.variant,F.variantList=ue.variantList,F.variantModule=ue.variantModule,F.variation=ue.variation,F.withFallback=ue.withFallback});var sd=m(wn=>{"use strict";h();Object.defineProperty(wn,"__esModule",{value:!0});wn.augment=void 0;var aA=ic(),cA=rr();function uA(t,e){return Object.keys(t).reduce((r,s)=>{let i=t[s],n=cA.isVariantCreator(i)?aA.variation(i.output.type,(...o)=>{let a=i(...o);return Object.assign(Object.assign({},e(a)),a)}):(...o)=>{let a=t[s],c=typeof a=="function"?a(...o):{};return Object.assign(Object.assign({},e(c)),c)};return Object.assign(Object.assign({},r),{[s]:n})},{})}wn.augment=uA});var id=m(Cn=>{"use strict";h();Object.defineProperty(Cn,"__esModule",{value:!0});Cn.constrained=void 0;function lA(t,e){return e}Cn.constrained=lA});var nd=m(Pn=>{"use strict";h();Object.defineProperty(Pn,"__esModule",{value:!0});Pn.construct=void 0;function hA(t){return(...e)=>new t(e)}Pn.construct=hA});var ad=m(kr=>{"use strict";h();Object.defineProperty(kr,"__esModule",{value:!0});kr.Alpha=kr.onTerms=void 0;var fA=Ja(),dA=rr(),pA=Symbol("VARIANT GENERIC TEMPLATE");function _A(t){return Object.assign(Object.assign({},t(kr.Alpha)),{[pA]:void 0})}kr.onTerms=_A;var od="__term",mA=dA.variantImpl(od).variant,EA=fA.flagsImpl(od).flags,gA=mA(["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]);kr.Alpha=EA(Object.values(gA).map(t=>t()))});var cd=m(Ss=>{"use strict";h();Object.defineProperty(Ss,"__esModule",{value:!0});Ss.typeMap=Ss.typeCatalog=void 0;function yA(t){return Object.values(t).reduce((e,r)=>Object.assign(Object.assign({},e),{[r.output.type]:r.output.type}),{})}Ss.typeCatalog=yA;function SA(t){return Object.keys(t).reduce((e,r)=>Object.assign(Object.assign({},e),{[r]:t[r].output.type}),{})}Ss.typeMap=SA});var ld=m(Os=>{"use strict";h();Object.defineProperty(Os,"__esModule",{value:!0});Os.literalist=Os.catalog=void 0;function ud(t,e){return Array.isArray(t)?t.reduce((r,s,i)=>Object.assign(Object.assign({},r),{[s]:e!=null?e(s,i):s}),{}):t}Os.catalog=ud;Os.literalist=ud});var hd=m(Dn=>{"use strict";h();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.patterned=void 0;function OA(t,e){return e}Dn.patterned=OA});var fd=m(nr=>{"use strict";h();Object.defineProperty(nr,"__esModule",{value:!0});nr.nil=nr.payload=nr.fields=void 0;function RA(t={}){return(...e)=>{let[r]=e;return Object.assign(Object.assign({},t),r)}}nr.fields=RA;function TA(t){return e=>({payload:e})}nr.payload=TA;var AA=()=>({});nr.nil=AA});var _d=m(Y=>{"use strict";h();Object.defineProperty(Y,"__esModule",{value:!0});Y.payload=Y.nil=Y.fields=Y.HOI=Y.pass=Y.patterned=Y.unpack=Y.just=Y.constant=Y.literalist=Y.catalog=Y.typeCatalog=Y.typeMap=Y.onTerms=Y.variantCosmos=Y.construct=Y.constrained=Y.augment=void 0;var vA=sd();Object.defineProperty(Y,"augment",{enumerable:!0,get:function(){return vA.augment}});var IA=id();Object.defineProperty(Y,"constrained",{enumerable:!0,get:function(){return IA.constrained}});var NA=nd();Object.defineProperty(Y,"construct",{enumerable:!0,get:function(){return NA.construct}});var bA=sc();Object.defineProperty(Y,"variantCosmos",{enumerable:!0,get:function(){return bA.variantCosmos}});var wA=ad();Object.defineProperty(Y,"onTerms",{enumerable:!0,get:function(){return wA.onTerms}});var dd=cd();Object.defineProperty(Y,"typeMap",{enumerable:!0,get:function(){return dd.typeMap}});Object.defineProperty(Y,"typeCatalog",{enumerable:!0,get:function(){return dd.typeCatalog}});var pd=ld();Object.defineProperty(Y,"catalog",{enumerable:!0,get:function(){return pd.catalog}});Object.defineProperty(Y,"literalist",{enumerable:!0,get:function(){return pd.literalist}});var nc=tc();Object.defineProperty(Y,"constant",{enumerable:!0,get:function(){return nc.constant}});Object.defineProperty(Y,"just",{enumerable:!0,get:function(){return nc.just}});Object.defineProperty(Y,"unpack",{enumerable:!0,get:function(){return nc.unpack}});var CA=hd();Object.defineProperty(Y,"patterned",{enumerable:!0,get:function(){return CA.patterned}});var PA=ec();Object.defineProperty(Y,"pass",{enumerable:!0,get:function(){return PA.pass}});var DA=Xa();Object.defineProperty(Y,"HOI",{enumerable:!0,get:function(){return DA.HOI}});var oc=fd();Object.defineProperty(Y,"fields",{enumerable:!0,get:function(){return oc.fields}});Object.defineProperty(Y,"nil",{enumerable:!0,get:function(){return oc.nil}});Object.defineProperty(Y,"payload",{enumerable:!0,get:function(){return oc.payload}})});var Rs=m(or=>{"use strict";h();var xA=or&&or.__createBinding||(Object.create?function(t,e,r,s){s===void 0&&(s=r),Object.defineProperty(t,s,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]}),md=or&&or.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&xA(e,t,r)};Object.defineProperty(or,"__esModule",{value:!0});md(_d(),or);md(ic(),or)});var yd=m((XF,gd)=>{"use strict";h();var xn=T("assert"),LA=T("stream").Stream,MA=T("util"),FA=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function ac(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ar(t,e,r,s,i){throw new xn.AssertionError({message:MA.format("%s (%s) is required",t,e),actual:i===void 0?typeof s:i(s),expected:e,operator:r||"===",stackStartFunction:ar.caller})}function cc(t){return Object.prototype.toString.call(t).slice(8,-1)}function Ts(){}var Ei={bool:{check:function(t){return typeof t=="boolean"}},func:{check:function(t){return typeof t=="function"}},string:{check:function(t){return typeof t=="string"}},object:{check:function(t){return typeof t=="object"&&t!==null}},number:{check:function(t){return typeof t=="number"&&!isNaN(t)}},finite:{check:function(t){return typeof t=="number"&&!isNaN(t)&&isFinite(t)}},buffer:{check:function(t){return Buffer.isBuffer(t)},operator:"Buffer.isBuffer"},array:{check:function(t){return Array.isArray(t)},operator:"Array.isArray"},stream:{check:function(t){return t instanceof LA},operator:"instanceof",actual:cc},date:{check:function(t){return t instanceof Date},operator:"instanceof",actual:cc},regexp:{check:function(t){return t instanceof RegExp},operator:"instanceof",actual:cc},uuid:{check:function(t){return typeof t=="string"&&FA.test(t)},operator:"isUUID"}};function Ed(t){var e=Object.keys(Ei),r;return process.env.NODE_NDEBUG?r=Ts:r=function(s,i){s||ar(i,"true",s)},e.forEach(function(s){if(t){r[s]=Ts;return}var i=Ei[s];r[s]=function(n,o){i.check(n)||ar(o,s,i.operator,n,i.actual)}}),e.forEach(function(s){var i="optional"+ac(s);if(t){r[i]=Ts;return}var n=Ei[s];r[i]=function(o,a){o!=null&&(n.check(o)||ar(a,s,n.operator,o,n.actual))}}),e.forEach(function(s){var i="arrayOf"+ac(s);if(t){r[i]=Ts;return}var n=Ei[s],o="["+s+"]";r[i]=function(a,c){Array.isArray(a)||ar(c,o,n.operator,a,n.actual);var u;for(u=0;u<a.length;u++)n.check(a[u])||ar(c,o,n.operator,a,n.actual)}}),e.forEach(function(s){var i="optionalArrayOf"+ac(s);if(t){r[i]=Ts;return}var n=Ei[s],o="["+s+"]";r[i]=function(a,c){if(a!=null){Array.isArray(a)||ar(c,o,n.operator,a,n.actual);var u;for(u=0;u<a.length;u++)n.check(a[u])||ar(c,o,n.operator,a,n.actual)}}}),Object.keys(xn).forEach(function(s){if(s==="AssertionError"){r[s]=xn[s];return}if(t){r[s]=Ts;return}r[s]=xn[s]}),r._setExports=Ed,r}gd.exports=Ed(process.env.NODE_NDEBUG)});var Rd=m(Ln=>{"use strict";h();var yi=T("assert"),kA=T("util");Ln.sprintf=lc;Ln.printf=BA;Ln.fprintf=Sd;function lc(t){var e=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join(""),r=new RegExp(e),s=Array.prototype.slice.call(arguments,1),i=t,n,o,a,c,u,l,f,d,E,g="",R=1,v=0,N,V;for(yi.equal("string",typeof i,"first argument must be a format string");(E=r.exec(i))!==null;){if(g+=E[1],i=i.substring(E[0].length),V=E[0].substring(E[1].length),N=v+E[1].length+1,v+=E[0].length,n=E[2]||"",o=E[3]||0,a=E[4]||"",c=E[6],u=!1,f=!1,l=" ",c=="%"){g+="%";continue}if(s.length===0)throw gi(t,N,V,"has no matching argument (too few arguments passed)");if(d=s.shift(),R++,n.match(/[\' #]/))throw gi(t,N,V,"uses unsupported flags");if(a.length>0)throw gi(t,N,V,"uses non-zero precision (not supported)");switch(n.match(/-/)&&(u=!0),n.match(/0/)&&(l="0"),n.match(/\+/)&&(f=!0),c){case"s":if(d==null)throw gi(t,N,V,"attempted to print undefined or null as a string (argument "+R+" to sprintf)");g+=uc(l,o,u,d.toString());break;case"d":d=Math.floor(d);case"f":f=f&&d>0?"+":"",g+=f+uc(l,o,u,d.toString());break;case"x":g+=uc(l,o,u,d.toString(16));break;case"j":o===0&&(o=10),g+=kA.inspect(d,!1,o);break;case"r":g+=Od(d);break;default:throw gi(t,N,V,"is not supported")}}return g+=i,g}function gi(t,e,r,s){return yi.equal(typeof t,"string"),yi.equal(typeof r,"string"),yi.equal(typeof e,"number"),yi.equal(typeof s,"string"),new Error('format string "'+t+'": conversion specifier "'+r+'" at character '+e+" "+s)}function BA(){var t=Array.prototype.slice.call(arguments);t.unshift(process.stdout),Sd.apply(null,t)}function Sd(t){var e=Array.prototype.slice.call(arguments,1);return t.write(lc.apply(this,e))}function uc(t,e,r,s){for(var i=s;i.length<e;)r?i+=t:i=t+i;return i}function Od(t){var e;if(!(t instanceof Error))throw new Error(lc("invalid type for %%r: %j",t));if(e="EXCEPTION: "+t.constructor.name+": "+t.stack,t.cause&&typeof t.cause=="function"){var r=t.cause();r&&(e+=`
|
|
4
|
+
Caused by: `+Od(r))}return e}});var Td=m(Ce=>{"use strict";h();function UA(t){return Array.isArray?Array.isArray(t):Mn(t)==="[object Array]"}Ce.isArray=UA;function GA(t){return typeof t=="boolean"}Ce.isBoolean=GA;function jA(t){return t===null}Ce.isNull=jA;function qA(t){return t==null}Ce.isNullOrUndefined=qA;function HA(t){return typeof t=="number"}Ce.isNumber=HA;function WA(t){return typeof t=="string"}Ce.isString=WA;function VA(t){return typeof t=="symbol"}Ce.isSymbol=VA;function $A(t){return t===void 0}Ce.isUndefined=$A;function YA(t){return Mn(t)==="[object RegExp]"}Ce.isRegExp=YA;function KA(t){return typeof t=="object"&&t!==null}Ce.isObject=KA;function zA(t){return Mn(t)==="[object Date]"}Ce.isDate=zA;function XA(t){return Mn(t)==="[object Error]"||t instanceof Error}Ce.isError=XA;function ZA(t){return typeof t=="function"}Ce.isFunction=ZA;function QA(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}Ce.isPrimitive=QA;Ce.isBuffer=Buffer.isBuffer;function Mn(t){return Object.prototype.toString.call(t)}});var kn=m((rk,Ad)=>{"use strict";h();var Ee=yd(),Fn=T("util"),JA=Rd(),lt=Td().isError,ev=JA.sprintf;Ad.exports=X;X.VError=X;X.SError=Si;X.WError=cr;X.MultiError=As;function hc(t){var e,r,s,i,n;if(Ee.object(t,"args"),Ee.bool(t.strict,"args.strict"),Ee.array(t.argv,"args.argv"),e=t.argv,e.length===0)r={},s=[];else if(lt(e[0]))r={cause:e[0]},s=e.slice(1);else if(typeof e[0]=="object"){r={};for(n in e[0])r[n]=e[0][n];s=e.slice(1)}else Ee.string(e[0],"first argument to VError, SError, or WError constructor must be a string, object, or Error"),r={},s=e;return Ee.object(r),!r.strict&&!t.strict&&(s=s.map(function(o){return o===null?"null":o===void 0?"undefined":o})),s.length===0?i="":i=ev.apply(null,s),{options:r,shortmessage:i}}function X(){var t,e,r,s,i,n,o;if(t=Array.prototype.slice.call(arguments,0),!(this instanceof X))return e=Object.create(X.prototype),X.apply(e,arguments),e;if(r=hc({argv:t,strict:!1}),r.options.name&&(Ee.string(r.options.name,`error's "name" must be a string`),this.name=r.options.name),this.jse_shortmsg=r.shortmessage,n=r.shortmessage,s=r.options.cause,s&&(Ee.ok(lt(s),"cause is not an Error"),this.jse_cause=s,r.options.skipCauseMessage||(n+=": "+s.message)),this.jse_info={},r.options.info)for(o in r.options.info)this.jse_info[o]=r.options.info[o];return this.message=n,Error.call(this,n),Error.captureStackTrace&&(i=r.options.constructorOpt||this.constructor,Error.captureStackTrace(this,i)),this}Fn.inherits(X,Error);X.prototype.name="VError";X.prototype.toString=function(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e+=": "+this.message),e};X.prototype.cause=function(){var e=X.cause(this);return e===null?void 0:e};X.cause=function(t){return Ee.ok(lt(t),"err must be an Error"),lt(t.jse_cause)?t.jse_cause:null};X.info=function(t){var e,r,s;if(Ee.ok(lt(t),"err must be an Error"),r=X.cause(t),r!==null?e=X.info(r):e={},typeof t.jse_info=="object"&&t.jse_info!==null)for(s in t.jse_info)e[s]=t.jse_info[s];return e};X.findCauseByName=function(t,e){var r;for(Ee.ok(lt(t),"err must be an Error"),Ee.string(e,"name"),Ee.ok(e.length>0,"name cannot be empty"),r=t;r!==null;r=X.cause(r))if(Ee.ok(lt(r)),r.name==e)return r;return null};X.hasCauseWithName=function(t,e){return X.findCauseByName(t,e)!==null};X.fullStack=function(t){Ee.ok(lt(t),"err must be an Error");var e=X.cause(t);return e?t.stack+`
|
|
5
|
+
caused by: `+X.fullStack(e):t.stack};X.errorFromList=function(t){return Ee.arrayOfObject(t,"errors"),t.length===0?null:(t.forEach(function(e){Ee.ok(lt(e))}),t.length==1?t[0]:new As(t))};X.errorForEach=function(t,e){Ee.ok(lt(t),"err must be an Error"),Ee.func(e,"func"),t instanceof As?t.errors().forEach(function(s){e(s)}):e(t)};function Si(){var t,e,r,s;return t=Array.prototype.slice.call(arguments,0),this instanceof Si?(r=hc({argv:t,strict:!0}),s=r.options,X.call(this,s,"%s",r.shortmessage),this):(e=Object.create(Si.prototype),Si.apply(e,arguments),e)}Fn.inherits(Si,X);function As(t){Ee.array(t,"list of errors"),Ee.ok(t.length>0,"must be at least one error"),this.ase_errors=t,X.call(this,{cause:t[0]},"first of %d error%s",t.length,t.length==1?"":"s")}Fn.inherits(As,X);As.prototype.name="MultiError";As.prototype.errors=function(){return this.ase_errors.slice(0)};function cr(){var t,e,r,s;return t=Array.prototype.slice.call(arguments,0),this instanceof cr?(r=hc({argv:t,strict:!1}),s=r.options,s.skipCauseMessage=!0,X.call(this,s,"%s",r.shortmessage),this):(e=Object.create(cr.prototype),cr.apply(e,t),e)}Fn.inherits(cr,X);cr.prototype.name="WError";cr.prototype.toString=function(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(e+="; caused by "+this.jse_cause.toString()),e};cr.prototype.cause=function(e){return lt(e)&&(this.jse_cause=e),this.jse_cause}});var Ls=m((Wk,l_)=>{"use strict";h();var u_=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);l_.exports=t=>t?Object.keys(t).map(e=>[u_.has(e)?u_.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var eo=m(S_=>{"use strict";h();var h_=typeof process=="object"&&process?process:{stdout:null,stderr:null},lI=T("events"),f_=T("stream"),hI=T("string_decoder"),d_=hI.StringDecoder,kt=Symbol("EOF"),Bt=Symbol("maybeEmitEnd"),dr=Symbol("emittedEnd"),Kn=Symbol("emittingEnd"),Ni=Symbol("emittedError"),zn=Symbol("closed"),p_=Symbol("read"),Xn=Symbol("flush"),__=Symbol("flushChunk"),je=Symbol("encoding"),Ut=Symbol("decoder"),Zn=Symbol("flowing"),bi=Symbol("paused"),Ms=Symbol("resume"),pe=Symbol("buffer"),Rt=Symbol("pipes"),Re=Symbol("bufferLength"),Sc=Symbol("bufferPush"),Oc=Symbol("bufferShift"),be=Symbol("objectMode"),_e=Symbol("destroyed"),Rc=Symbol("error"),Tc=Symbol("emitData"),m_=Symbol("emitEnd"),Ac=Symbol("emitEnd2"),Gt=Symbol("async"),vc=Symbol("abort"),Qn=Symbol("aborted"),Jr=Symbol("signal"),wi=t=>Promise.resolve().then(t),y_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",E_=y_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),g_=y_&&Symbol.iterator||Symbol("iterator not implemented"),fI=t=>t==="end"||t==="finish"||t==="prefinish",dI=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,pI=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Jn=class{constructor(e,r,s){this.src=e,this.dest=r,this.opts=s,this.ondrain=()=>e[Ms](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Ic=class extends Jn{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,s){super(e,r,s),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}},Nc=class t extends f_{constructor(e){super(),this[Zn]=!1,this[bi]=!1,this[Rt]=[],this[pe]=[],this[be]=e&&e.objectMode||!1,this[be]?this[je]=null:this[je]=e&&e.encoding||null,this[je]==="buffer"&&(this[je]=null),this[Gt]=e&&!!e.async||!1,this[Ut]=this[je]?new d_(this[je]):null,this[kt]=!1,this[dr]=!1,this[Kn]=!1,this[zn]=!1,this[Ni]=null,this.writable=!0,this.readable=!0,this[Re]=0,this[_e]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[pe]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Rt]}),this[Jr]=e&&e.signal,this[Qn]=!1,this[Jr]&&(this[Jr].addEventListener("abort",()=>this[vc]()),this[Jr].aborted&&this[vc]())}get bufferLength(){return this[Re]}get encoding(){return this[je]}set encoding(e){if(this[be])throw new Error("cannot set encoding in objectMode");if(this[je]&&e!==this[je]&&(this[Ut]&&this[Ut].lastNeed||this[Re]))throw new Error("cannot change encoding");this[je]!==e&&(this[Ut]=e?new d_(e):null,this[pe].length&&(this[pe]=this[pe].map(r=>this[Ut].write(r)))),this[je]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[be]}set objectMode(e){this[be]=this[be]||!!e}get async(){return this[Gt]}set async(e){this[Gt]=this[Gt]||!!e}[vc](){this[Qn]=!0,this.emit("abort",this[Jr].reason),this.destroy(this[Jr].reason)}get aborted(){return this[Qn]}set aborted(e){}write(e,r,s){if(this[Qn])return!1;if(this[kt])throw new Error("write after end");if(this[_e])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(s=r,r="utf8"),r||(r="utf8");let i=this[Gt]?wi:n=>n();return!this[be]&&!Buffer.isBuffer(e)&&(pI(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):dI(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[be]?(this.flowing&&this[Re]!==0&&this[Xn](!0),this.flowing?this.emit("data",e):this[Sc](e),this[Re]!==0&&this.emit("readable"),s&&i(s),this.flowing):e.length?(typeof e=="string"&&!(r===this[je]&&!this[Ut].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[je]&&(e=this[Ut].write(e)),this.flowing&&this[Re]!==0&&this[Xn](!0),this.flowing?this.emit("data",e):this[Sc](e),this[Re]!==0&&this.emit("readable"),s&&i(s),this.flowing):(this[Re]!==0&&this.emit("readable"),s&&i(s),this.flowing)}read(e){if(this[_e])return null;if(this[Re]===0||e===0||e>this[Re])return this[Bt](),null;this[be]&&(e=null),this[pe].length>1&&!this[be]&&(this.encoding?this[pe]=[this[pe].join("")]:this[pe]=[Buffer.concat(this[pe],this[Re])]);let r=this[p_](e||null,this[pe][0]);return this[Bt](),r}[p_](e,r){return e===r.length||e===null?this[Oc]():(this[pe][0]=r.slice(e),r=r.slice(0,e),this[Re]-=e),this.emit("data",r),!this[pe].length&&!this[kt]&&this.emit("drain"),r}end(e,r,s){return typeof e=="function"&&(s=e,e=null),typeof r=="function"&&(s=r,r="utf8"),e&&this.write(e,r),s&&this.once("end",s),this[kt]=!0,this.writable=!1,(this.flowing||!this[bi])&&this[Bt](),this}[Ms](){this[_e]||(this[bi]=!1,this[Zn]=!0,this.emit("resume"),this[pe].length?this[Xn]():this[kt]?this[Bt]():this.emit("drain"))}resume(){return this[Ms]()}pause(){this[Zn]=!1,this[bi]=!0}get destroyed(){return this[_e]}get flowing(){return this[Zn]}get paused(){return this[bi]}[Sc](e){this[be]?this[Re]+=1:this[Re]+=e.length,this[pe].push(e)}[Oc](){return this[be]?this[Re]-=1:this[Re]-=this[pe][0].length,this[pe].shift()}[Xn](e){do;while(this[__](this[Oc]())&&this[pe].length);!e&&!this[pe].length&&!this[kt]&&this.emit("drain")}[__](e){return this.emit("data",e),this.flowing}pipe(e,r){if(this[_e])return;let s=this[dr];return r=r||{},e===h_.stdout||e===h_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,s?r.end&&e.end():(this[Rt].push(r.proxyErrors?new Ic(this,e,r):new Jn(this,e,r)),this[Gt]?wi(()=>this[Ms]()):this[Ms]()),e}unpipe(e){let r=this[Rt].find(s=>s.dest===e);r&&(this[Rt].splice(this[Rt].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let s=super.on(e,r);return e==="data"&&!this[Rt].length&&!this.flowing?this[Ms]():e==="readable"&&this[Re]!==0?super.emit("readable"):fI(e)&&this[dr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Ni]&&(this[Gt]?wi(()=>r.call(this,this[Ni])):r.call(this,this[Ni])),s}get emittedEnd(){return this[dr]}[Bt](){!this[Kn]&&!this[dr]&&!this[_e]&&this[pe].length===0&&this[kt]&&(this[Kn]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[zn]&&this.emit("close"),this[Kn]=!1)}emit(e,r,...s){if(e!=="error"&&e!=="close"&&e!==_e&&this[_e])return;if(e==="data")return!this[be]&&!r?!1:this[Gt]?wi(()=>this[Tc](r)):this[Tc](r);if(e==="end")return this[m_]();if(e==="close"){if(this[zn]=!0,!this[dr]&&!this[_e])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Ni]=r,super.emit(Rc,r);let n=!this[Jr]||this.listeners("error").length?super.emit("error",r):!1;return this[Bt](),n}else if(e==="resume"){let n=super.emit("resume");return this[Bt](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let i=super.emit(e,r,...s);return this[Bt](),i}[Tc](e){for(let s of this[Rt])s.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Bt](),r}[m_](){this[dr]||(this[dr]=!0,this.readable=!1,this[Gt]?wi(()=>this[Ac]()):this[Ac]())}[Ac](){if(this[Ut]){let r=this[Ut].end();if(r){for(let s of this[Rt])s.dest.write(r);super.emit("data",r)}}for(let r of this[Rt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[be]||(e.dataLength=0);let r=this.promise();return this.on("data",s=>{e.push(s),this[be]||(e.dataLength+=s.length)}),r.then(()=>e)}concat(){return this[be]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[be]?Promise.reject(new Error("cannot concat in objectMode")):this[je]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(_e,()=>r(new Error("stream destroyed"))),this.on("error",s=>r(s)),this.on("end",()=>e())})}[E_](){let e=!1,r=()=>(this.pause(),e=!0,Promise.resolve({done:!0}));return{next:()=>{if(e)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[kt])return r();let n=null,o=null,a=f=>{this.removeListener("data",c),this.removeListener("end",u),this.removeListener(_e,l),r(),o(f)},c=f=>{this.removeListener("error",a),this.removeListener("end",u),this.removeListener(_e,l),this.pause(),n({value:f,done:!!this[kt]})},u=()=>{this.removeListener("error",a),this.removeListener("data",c),this.removeListener(_e,l),r(),n({done:!0})},l=()=>a(new Error("stream destroyed"));return new Promise((f,d)=>{o=d,n=f,this.once(_e,l),this.once("error",a),this.once("end",u),this.once("data",c)})},throw:r,return:r,[E_](){return this}}}[g_](){let e=!1,r=()=>(this.pause(),this.removeListener(Rc,r),this.removeListener(_e,r),this.removeListener("end",r),e=!0,{done:!0}),s=()=>{if(e)return r();let i=this.read();return i===null?r():{value:i}};return this.once("end",r),this.once(Rc,r),this.once(_e,r),{next:s,throw:r,return:r,[g_](){return this}}}destroy(e){return this[_e]?(e?this.emit("error",e):this.emit(_e),this):(this[_e]=!0,this[pe].length=0,this[Re]=0,typeof this.close=="function"&&!this[zn]&&this.close(),e?this.emit("error",e):this.emit(_e),this)}static isStream(e){return!!e&&(e instanceof t||e instanceof f_||e instanceof lI&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}};S_.Minipass=Nc});var R_=m((Kk,O_)=>{"use strict";h();var _I=T("zlib").constants||{ZLIB_VERNUM:4736};O_.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},_I))});var xc=m((Xk,P_)=>{"use strict";h();var T_=typeof process=="object"&&process?process:{stdout:null,stderr:null},mI=T("events"),A_=T("stream"),v_=T("string_decoder").StringDecoder,jt=Symbol("EOF"),qt=Symbol("maybeEmitEnd"),pr=Symbol("emittedEnd"),to=Symbol("emittingEnd"),Ci=Symbol("emittedError"),ro=Symbol("closed"),I_=Symbol("read"),so=Symbol("flush"),N_=Symbol("flushChunk"),qe=Symbol("encoding"),Ht=Symbol("decoder"),io=Symbol("flowing"),Pi=Symbol("paused"),Fs=Symbol("resume"),Te=Symbol("bufferLength"),bc=Symbol("bufferPush"),wc=Symbol("bufferShift"),De=Symbol("objectMode"),xe=Symbol("destroyed"),Cc=Symbol("emitData"),b_=Symbol("emitEnd"),Pc=Symbol("emitEnd2"),Wt=Symbol("async"),Di=t=>Promise.resolve().then(t),w_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",EI=w_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),gI=w_&&Symbol.iterator||Symbol("iterator not implemented"),yI=t=>t==="end"||t==="finish"||t==="prefinish",SI=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,OI=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),no=class{constructor(e,r,s){this.src=e,this.dest=r,this.opts=s,this.ondrain=()=>e[Fs](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Dc=class extends no{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,s){super(e,r,s),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};P_.exports=class C_ extends A_{constructor(e){super(),this[io]=!1,this[Pi]=!1,this.pipes=[],this.buffer=[],this[De]=e&&e.objectMode||!1,this[De]?this[qe]=null:this[qe]=e&&e.encoding||null,this[qe]==="buffer"&&(this[qe]=null),this[Wt]=e&&!!e.async||!1,this[Ht]=this[qe]?new v_(this[qe]):null,this[jt]=!1,this[pr]=!1,this[to]=!1,this[ro]=!1,this[Ci]=null,this.writable=!0,this.readable=!0,this[Te]=0,this[xe]=!1}get bufferLength(){return this[Te]}get encoding(){return this[qe]}set encoding(e){if(this[De])throw new Error("cannot set encoding in objectMode");if(this[qe]&&e!==this[qe]&&(this[Ht]&&this[Ht].lastNeed||this[Te]))throw new Error("cannot change encoding");this[qe]!==e&&(this[Ht]=e?new v_(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Ht].write(r)))),this[qe]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[De]}set objectMode(e){this[De]=this[De]||!!e}get async(){return this[Wt]}set async(e){this[Wt]=this[Wt]||!!e}write(e,r,s){if(this[jt])throw new Error("write after end");if(this[xe])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(s=r,r="utf8"),r||(r="utf8");let i=this[Wt]?Di:n=>n();return!this[De]&&!Buffer.isBuffer(e)&&(OI(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):SI(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[De]?(this.flowing&&this[Te]!==0&&this[so](!0),this.flowing?this.emit("data",e):this[bc](e),this[Te]!==0&&this.emit("readable"),s&&i(s),this.flowing):e.length?(typeof e=="string"&&!(r===this[qe]&&!this[Ht].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[qe]&&(e=this[Ht].write(e)),this.flowing&&this[Te]!==0&&this[so](!0),this.flowing?this.emit("data",e):this[bc](e),this[Te]!==0&&this.emit("readable"),s&&i(s),this.flowing):(this[Te]!==0&&this.emit("readable"),s&&i(s),this.flowing)}read(e){if(this[xe])return null;if(this[Te]===0||e===0||e>this[Te])return this[qt](),null;this[De]&&(e=null),this.buffer.length>1&&!this[De]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Te])]);let r=this[I_](e||null,this.buffer[0]);return this[qt](),r}[I_](e,r){return e===r.length||e===null?this[wc]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Te]-=e),this.emit("data",r),!this.buffer.length&&!this[jt]&&this.emit("drain"),r}end(e,r,s){return typeof e=="function"&&(s=e,e=null),typeof r=="function"&&(s=r,r="utf8"),e&&this.write(e,r),s&&this.once("end",s),this[jt]=!0,this.writable=!1,(this.flowing||!this[Pi])&&this[qt](),this}[Fs](){this[xe]||(this[Pi]=!1,this[io]=!0,this.emit("resume"),this.buffer.length?this[so]():this[jt]?this[qt]():this.emit("drain"))}resume(){return this[Fs]()}pause(){this[io]=!1,this[Pi]=!0}get destroyed(){return this[xe]}get flowing(){return this[io]}get paused(){return this[Pi]}[bc](e){this[De]?this[Te]+=1:this[Te]+=e.length,this.buffer.push(e)}[wc](){return this.buffer.length&&(this[De]?this[Te]-=1:this[Te]-=this.buffer[0].length),this.buffer.shift()}[so](e){do;while(this[N_](this[wc]()));!e&&!this.buffer.length&&!this[jt]&&this.emit("drain")}[N_](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[xe])return;let s=this[pr];return r=r||{},e===T_.stdout||e===T_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,s?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Dc(this,e,r):new no(this,e,r)),this[Wt]?Di(()=>this[Fs]()):this[Fs]()),e}unpipe(e){let r=this.pipes.find(s=>s.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let s=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[Fs]():e==="readable"&&this[Te]!==0?super.emit("readable"):yI(e)&&this[pr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Ci]&&(this[Wt]?Di(()=>r.call(this,this[Ci])):r.call(this,this[Ci])),s}get emittedEnd(){return this[pr]}[qt](){!this[to]&&!this[pr]&&!this[xe]&&this.buffer.length===0&&this[jt]&&(this[to]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ro]&&this.emit("close"),this[to]=!1)}emit(e,r,...s){if(e!=="error"&&e!=="close"&&e!==xe&&this[xe])return;if(e==="data")return r?this[Wt]?Di(()=>this[Cc](r)):this[Cc](r):!1;if(e==="end")return this[b_]();if(e==="close"){if(this[ro]=!0,!this[pr]&&!this[xe])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Ci]=r;let n=super.emit("error",r);return this[qt](),n}else if(e==="resume"){let n=super.emit("resume");return this[qt](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let i=super.emit(e,r,...s);return this[qt](),i}[Cc](e){for(let s of this.pipes)s.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[qt](),r}[b_](){this[pr]||(this[pr]=!0,this.readable=!1,this[Wt]?Di(()=>this[Pc]()):this[Pc]())}[Pc](){if(this[Ht]){let r=this[Ht].end();if(r){for(let s of this.pipes)s.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[De]||(e.dataLength=0);let r=this.promise();return this.on("data",s=>{e.push(s),this[De]||(e.dataLength+=s.length)}),r.then(()=>e)}concat(){return this[De]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[De]?Promise.reject(new Error("cannot concat in objectMode")):this[qe]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(xe,()=>r(new Error("stream destroyed"))),this.on("error",s=>r(s)),this.on("end",()=>e())})}[EI](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[jt])return Promise.resolve({done:!0});let s=null,i=null,n=u=>{this.removeListener("data",o),this.removeListener("end",a),i(u)},o=u=>{this.removeListener("error",n),this.removeListener("end",a),this.pause(),s({value:u,done:!!this[jt]})},a=()=>{this.removeListener("error",n),this.removeListener("data",o),s({done:!0})},c=()=>n(new Error("stream destroyed"));return new Promise((u,l)=>{i=l,s=u,this.once(xe,c),this.once("error",n),this.once("end",a),this.once("data",o)})}}}[gI](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[xe]?(e?this.emit("error",e):this.emit(xe),this):(this[xe]=!0,this.buffer.length=0,this[Te]=0,typeof this.close=="function"&&!this[ro]&&this.close(),e?this.emit("error",e):this.emit(xe),this)}static isStream(e){return!!e&&(e instanceof C_||e instanceof A_||e instanceof mI&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var zc=m(Ke=>{"use strict";h();var Bc=T("assert"),_r=T("buffer").Buffer,L_=T("zlib"),es=Ke.constants=R_(),RI=xc(),D_=_r.concat,ts=Symbol("_superWrite"),Bs=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},TI=Symbol("opts"),xi=Symbol("flushFlag"),x_=Symbol("finishFlushFlag"),Kc=Symbol("fullFlushFlag"),ie=Symbol("handle"),oo=Symbol("onError"),ks=Symbol("sawError"),Lc=Symbol("level"),Mc=Symbol("strategy"),Fc=Symbol("ended"),Qk=Symbol("_defaultFullFlush"),ao=class extends RI{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[ks]=!1,this[Fc]=!1,this[TI]=e,this[xi]=e.flush,this[x_]=e.finishFlush;try{this[ie]=new L_[r](e)}catch(s){throw new Bs(s)}this[oo]=s=>{this[ks]||(this[ks]=!0,this.close(),this.emit("error",s))},this[ie].on("error",s=>this[oo](new Bs(s))),this.once("end",()=>this.close)}close(){this[ie]&&(this[ie].close(),this[ie]=null,this.emit("close"))}reset(){if(!this[ks])return Bc(this[ie],"zlib binding closed"),this[ie].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[Kc]),this.write(Object.assign(_r.alloc(0),{[xi]:e})))}end(e,r,s){return e&&this.write(e,r),this.flush(this[x_]),this[Fc]=!0,super.end(null,null,s)}get ended(){return this[Fc]}write(e,r,s){if(typeof r=="function"&&(s=r,r="utf8"),typeof e=="string"&&(e=_r.from(e,r)),this[ks])return;Bc(this[ie],"zlib binding closed");let i=this[ie]._handle,n=i.close;i.close=()=>{};let o=this[ie].close;this[ie].close=()=>{},_r.concat=u=>u;let a;try{let u=typeof e[xi]=="number"?e[xi]:this[xi];a=this[ie]._processChunk(e,u),_r.concat=D_}catch(u){_r.concat=D_,this[oo](new Bs(u))}finally{this[ie]&&(this[ie]._handle=i,i.close=n,this[ie].close=o,this[ie].removeAllListeners("error"))}this[ie]&&this[ie].on("error",u=>this[oo](new Bs(u)));let c;if(a)if(Array.isArray(a)&&a.length>0){c=this[ts](_r.from(a[0]));for(let u=1;u<a.length;u++)c=this[ts](a[u])}else c=this[ts](_r.from(a));return s&&s(),c}[ts](e){return super.write(e)}},Vt=class extends ao{constructor(e,r){e=e||{},e.flush=e.flush||es.Z_NO_FLUSH,e.finishFlush=e.finishFlush||es.Z_FINISH,super(e,r),this[Kc]=es.Z_FULL_FLUSH,this[Lc]=e.level,this[Mc]=e.strategy}params(e,r){if(!this[ks]){if(!this[ie])throw new Error("cannot switch params when binding is closed");if(!this[ie].params)throw new Error("not supported in this implementation");if(this[Lc]!==e||this[Mc]!==r){this.flush(es.Z_SYNC_FLUSH),Bc(this[ie],"zlib binding closed");let s=this[ie].flush;this[ie].flush=(i,n)=>{this.flush(i),n()};try{this[ie].params(e,r)}finally{this[ie].flush=s}this[ie]&&(this[Lc]=e,this[Mc]=r)}}}},Uc=class extends Vt{constructor(e){super(e,"Deflate")}},Gc=class extends Vt{constructor(e){super(e,"Inflate")}},kc=Symbol("_portable"),jc=class extends Vt{constructor(e){super(e,"Gzip"),this[kc]=e&&!!e.portable}[ts](e){return this[kc]?(this[kc]=!1,e[9]=255,super[ts](e)):super[ts](e)}},qc=class extends Vt{constructor(e){super(e,"Gunzip")}},Hc=class extends Vt{constructor(e){super(e,"DeflateRaw")}},Wc=class extends Vt{constructor(e){super(e,"InflateRaw")}},Vc=class extends Vt{constructor(e){super(e,"Unzip")}},co=class extends ao{constructor(e,r){e=e||{},e.flush=e.flush||es.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||es.BROTLI_OPERATION_FINISH,super(e,r),this[Kc]=es.BROTLI_OPERATION_FLUSH}},$c=class extends co{constructor(e){super(e,"BrotliCompress")}},Yc=class extends co{constructor(e){super(e,"BrotliDecompress")}};Ke.Deflate=Uc;Ke.Inflate=Gc;Ke.Gzip=jc;Ke.Gunzip=qc;Ke.DeflateRaw=Hc;Ke.InflateRaw=Wc;Ke.Unzip=Vc;typeof L_.BrotliCompress=="function"?(Ke.BrotliCompress=$c,Ke.BrotliDecompress=Yc):Ke.BrotliCompress=Ke.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Us=m((rB,M_)=>{"use strict";h();var AI=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;M_.exports=AI!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var uo=m((nB,F_)=>{"use strict";h();var{Minipass:vI}=eo(),Xc=Us(),Zc=Symbol("slurp");F_.exports=class extends vI{constructor(e,r,s){switch(super(),this.pause(),this.extended=r,this.globalExtended=s,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=Xc(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=Xc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Zc](r),s&&this[Zc](s,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let s=this.remain,i=this.blockRemain;return this.remain=Math.max(0,s-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:s>=r?super.write(e):super.write(e.slice(0,s))}[Zc](e,r){for(let s in e)e[s]!==null&&e[s]!==void 0&&!(r&&s==="path")&&(this[s]=s==="path"||s==="linkpath"?Xc(e[s]):e[s])}}});var Qc=m(lo=>{"use strict";h();lo.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);lo.code=new Map(Array.from(lo.name).map(t=>[t[1],t[0]]))});var G_=m((uB,U_)=>{"use strict";h();var II=(t,e)=>{if(Number.isSafeInteger(t))t<0?bI(t,e):NI(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},NI=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},bI=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var s=e.length;s>1;s--){var i=t&255;t=Math.floor(t/256),r?e[s-1]=k_(i):i===0?e[s-1]=0:(r=!0,e[s-1]=B_(i))}},wI=t=>{let e=t[0],r=e===128?PI(t.slice(1,t.length)):e===255?CI(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},CI=t=>{for(var e=t.length,r=0,s=!1,i=e-1;i>-1;i--){var n=t[i],o;s?o=k_(n):n===0?o=n:(s=!0,o=B_(n)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},PI=t=>{for(var e=t.length,r=0,s=e-1;s>-1;s--){var i=t[s];i!==0&&(r+=i*Math.pow(256,e-s-1))}return r},k_=t=>(255^t)&255,B_=t=>(255^t)+1&255;U_.exports={encode:II,parse:wI}});var js=m((hB,q_)=>{"use strict";h();var Jc=Qc(),Gs=T("path").posix,j_=G_(),eu=Symbol("slurp"),ze=Symbol("type"),su=class{constructor(e,r,s,i){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[ze]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,s,i):e&&this.set(e)}decode(e,r,s,i){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=rs(e,r,100),this.mode=mr(e,r+100,8),this.uid=mr(e,r+108,8),this.gid=mr(e,r+116,8),this.size=mr(e,r+124,12),this.mtime=tu(e,r+136,12),this.cksum=mr(e,r+148,12),this[eu](s),this[eu](i,!0),this[ze]=rs(e,r+156,1),this[ze]===""&&(this[ze]="0"),this[ze]==="0"&&this.path.slice(-1)==="/"&&(this[ze]="5"),this[ze]==="5"&&(this.size=0),this.linkpath=rs(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=rs(e,r+265,32),this.gname=rs(e,r+297,32),this.devmaj=mr(e,r+329,8),this.devmin=mr(e,r+337,8),e[r+475]!==0){let o=rs(e,r+345,155);this.path=o+"/"+this.path}else{let o=rs(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=tu(e,r+476,12),this.ctime=tu(e,r+488,12)}let n=8*32;for(let o=r;o<r+148;o++)n+=e[o];for(let o=r+156;o<r+512;o++)n+=e[o];this.cksumValid=n===this.cksum,this.cksum===null&&n===8*32&&(this.nullBlock=!0)}[eu](e,r){for(let s in e)e[s]!==null&&e[s]!==void 0&&!(r&&s==="path")&&(this[s]=e[s])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let s=this.ctime||this.atime?130:155,i=DI(this.path||"",s),n=i[0],o=i[1];this.needPax=i[2],this.needPax=ss(e,r,100,n)||this.needPax,this.needPax=Er(e,r+100,8,this.mode)||this.needPax,this.needPax=Er(e,r+108,8,this.uid)||this.needPax,this.needPax=Er(e,r+116,8,this.gid)||this.needPax,this.needPax=Er(e,r+124,12,this.size)||this.needPax,this.needPax=ru(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[ze].charCodeAt(0),this.needPax=ss(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=ss(e,r+265,32,this.uname)||this.needPax,this.needPax=ss(e,r+297,32,this.gname)||this.needPax,this.needPax=Er(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Er(e,r+337,8,this.devmin)||this.needPax,this.needPax=ss(e,r+345,s,o)||this.needPax,e[r+475]!==0?this.needPax=ss(e,r+345,155,o)||this.needPax:(this.needPax=ss(e,r+345,130,o)||this.needPax,this.needPax=ru(e,r+476,12,this.atime)||this.needPax,this.needPax=ru(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let c=r;c<r+148;c++)a+=e[c];for(let c=r+156;c<r+512;c++)a+=e[c];return this.cksum=a,Er(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return Jc.name.get(this[ze])||this[ze]}get typeKey(){return this[ze]}set type(e){Jc.code.has(e)?this[ze]=Jc.code.get(e):this[ze]=e}},DI=(t,e)=>{let s=t,i="",n,o=Gs.parse(t).root||".";if(Buffer.byteLength(s)<100)n=[s,i,!1];else{i=Gs.dirname(s),s=Gs.basename(s);do Buffer.byteLength(s)<=100&&Buffer.byteLength(i)<=e?n=[s,i,!1]:Buffer.byteLength(s)>100&&Buffer.byteLength(i)<=e?n=[s.slice(0,99),i,!0]:(s=Gs.join(Gs.basename(i),s),i=Gs.dirname(i));while(i!==o&&!n);n||(n=[t.slice(0,99),"",!0])}return n},rs=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),tu=(t,e,r)=>xI(mr(t,e,r)),xI=t=>t===null?null:new Date(t*1e3),mr=(t,e,r)=>t[e]&128?j_.parse(t.slice(e,e+r)):MI(t,e,r),LI=t=>isNaN(t)?null:t,MI=(t,e,r)=>LI(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),FI={12:8589934591,8:2097151},Er=(t,e,r,s)=>s===null?!1:s>FI[r]||s<0?(j_.encode(s,t.slice(e,e+r)),!0):(kI(t,e,r,s),!1),kI=(t,e,r,s)=>t.write(BI(s,r),e,r,"ascii"),BI=(t,e)=>UI(Math.floor(t).toString(8),e),UI=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",ru=(t,e,r,s)=>s===null?!1:Er(t,e,r,s.getTime()/1e3),GI=new Array(156).join("\0"),ss=(t,e,r,s)=>s===null?!1:(t.write(s+GI,e,r,"utf8"),s.length!==Buffer.byteLength(s)||s.length>r);q_.exports=su});var ho=m((dB,H_)=>{"use strict";h();var jI=js(),qI=T("path"),Li=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),s=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(s);for(let n=0;n<512;n++)i[n]=0;new jI({path:("PaxHeader/"+qI.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(i),i.write(e,512,r,"utf8");for(let n=r+512;n<i.length;n++)i[n]=0;return i}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],s=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
|
6
|
+
`,i=Buffer.byteLength(s),n=Math.floor(Math.log(i)/Math.log(10))+1;return i+n>=Math.pow(10,n)&&(n+=1),n+i+s}};Li.parse=(t,e,r)=>new Li(HI(WI(t),e),r);var HI=(t,e)=>e?Object.keys(t).reduce((r,s)=>(r[s]=t[s],r),e):t,WI=t=>t.replace(/\n$/,"").split(`
|
|
7
|
+
`).reduce(VI,Object.create(null)),VI=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let s=e.split("="),i=s.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return t;let n=s.join("=");return t[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(n*1e3):/^[0-9]+$/.test(n)?+n:n,t};H_.exports=Li});var qs=m((_B,W_)=>{"use strict";h();W_.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var fo=m((EB,V_)=>{"use strict";h();V_.exports=t=>class extends t{warn(e,r,s={}){this.file&&(s.file=this.file),this.cwd&&(s.cwd=this.cwd),s.code=r instanceof Error&&r.code||e,s.tarCode=e,!this.strict&&s.recoverable!==!1?(r instanceof Error&&(s=Object.assign(r,s),r=r.message),this.emit("warn",s.tarCode,r,s)):r instanceof Error?this.emit("error",Object.assign(r,s)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),s))}}});var nu=m((SB,$_)=>{"use strict";h();var po=["|","<",">","?",":"],iu=po.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),$I=new Map(po.map((t,e)=>[t,iu[e]])),YI=new Map(iu.map((t,e)=>[t,po[e]]));$_.exports={encode:t=>po.reduce((e,r)=>e.split(r).join($I.get(r)),t),decode:t=>iu.reduce((e,r)=>e.split(r).join(YI.get(r)),t)}});var ou=m((RB,K_)=>{"use strict";h();var{isAbsolute:KI,parse:Y_}=T("path").win32;K_.exports=t=>{let e="",r=Y_(t);for(;KI(t)||r.root;){let s=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(s.length),e+=s,r=Y_(t)}return[e,t]}});var X_=m((AB,z_)=>{"use strict";h();z_.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var mu=m((bB,lm)=>{"use strict";h();var{Minipass:sm}=eo(),im=ho(),nm=js(),At=T("fs"),Z_=T("path"),Tt=Us(),zI=qs(),om=(t,e)=>e?(t=Tt(t).replace(/^\.(\/|$)/,""),zI(e)+"/"+t):Tt(t),XI=16*1024*1024,Q_=Symbol("process"),J_=Symbol("file"),em=Symbol("directory"),cu=Symbol("symlink"),tm=Symbol("hardlink"),Mi=Symbol("header"),_o=Symbol("read"),uu=Symbol("lstat"),mo=Symbol("onlstat"),lu=Symbol("onread"),hu=Symbol("onreadlink"),fu=Symbol("openfile"),du=Symbol("onopenfile"),gr=Symbol("close"),Eo=Symbol("mode"),pu=Symbol("awaitDrain"),au=Symbol("ondrain"),vt=Symbol("prefix"),rm=Symbol("hadError"),am=fo(),ZI=nu(),cm=ou(),um=X_(),go=am(class extends sm{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Tt(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||XI,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Tt(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Tt(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let s=!1;if(!this.preservePaths){let[i,n]=cm(this.path);i&&(this.path=n,s=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=ZI.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Tt(r.absolute||Z_.resolve(this.cwd,e)),this.path===""&&(this.path="./"),s&&this.warn("TAR_ENTRY_INFO",`stripping ${s} from absolute path`,{entry:this,path:s+this.path}),this.statCache.has(this.absolute)?this[mo](this.statCache.get(this.absolute)):this[uu]()}emit(e,...r){return e==="error"&&(this[rm]=!0),super.emit(e,...r)}[uu](){At.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[mo](r)})}[mo](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=JI(e),this.emit("stat",e),this[Q_]()}[Q_](){switch(this.type){case"File":return this[J_]();case"Directory":return this[em]();case"SymbolicLink":return this[cu]();default:return this.end()}}[Eo](e){return um(e,this.type==="Directory",this.portable)}[vt](e){return om(e,this.prefix)}[Mi](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new nm({path:this[vt](this.path),linkpath:this.type==="Link"?this[vt](this.linkpath):this.linkpath,mode:this[Eo](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new im({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[vt](this.path),linkpath:this.type==="Link"?this[vt](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[em](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Mi](),this.end()}[cu](){At.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[hu](r)})}[hu](e){this.linkpath=Tt(e),this[Mi](),this.end()}[tm](e){this.type="Link",this.linkpath=Tt(Z_.relative(this.cwd,e)),this.stat.size=0,this[Mi](),this.end()}[J_](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[tm](r)}this.linkCache.set(e,this.absolute)}if(this[Mi](),this.stat.size===0)return this.end();this[fu]()}[fu](){At.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[du](r)})}[du](e){if(this.fd=e,this[rm])return this[gr]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[_o]()}[_o](){let{fd:e,buf:r,offset:s,length:i,pos:n}=this;At.read(e,r,s,i,n,(o,a)=>{if(o)return this[gr](()=>this.emit("error",o));this[lu](a)})}[gr](e){At.close(this.fd,e)}[lu](e){if(e<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[gr](()=>this.emit("error",i))}if(e>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[gr](()=>this.emit("error",i))}if(e===this.remain)for(let i=e;i<this.length&&e<this.blockRemain;i++)this.buf[i+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[au]():this[pu](()=>this[au]())}[pu](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[au](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[gr](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[_o]()}}),_u=class extends go{[uu](){this[mo](At.lstatSync(this.absolute))}[cu](){this[hu](At.readlinkSync(this.absolute))}[fu](){this[du](At.openSync(this.absolute,"r"))}[_o](){let e=!0;try{let{fd:r,buf:s,offset:i,length:n,pos:o}=this,a=At.readSync(r,s,i,n,o);this[lu](a),e=!1}finally{if(e)try{this[gr](()=>{})}catch{}}}[pu](e){e()}[gr](e){At.closeSync(this.fd),e()}},QI=am(class extends sm{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Tt(e.path),this.mode=this[Eo](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Tt(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let s=!1;if(!this.preservePaths){let[i,n]=cm(this.path);i&&(this.path=n,s=i)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new nm({path:this[vt](this.path),linkpath:this.type==="Link"?this[vt](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),s&&this.warn("TAR_ENTRY_INFO",`stripping ${s} from absolute path`,{entry:this,path:s+this.path}),this.header.encode()&&!this.noPax&&super.write(new im({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[vt](this.path),linkpath:this.type==="Link"?this[vt](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[vt](e){return om(e,this.prefix)}[Eo](e){return um(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});go.Sync=_u;go.Tar=QI;var JI=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";lm.exports=go});var fm=m((CB,hm)=>{"use strict";h();hm.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Eu=m((DB,dm)=>{"use strict";h();dm.exports=ee;ee.Node=is;ee.create=ee;function ee(t){var e=this;if(e instanceof ee||(e=new ee),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,s=arguments.length;r<s;r++)e.push(arguments[r]);return e}ee.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};ee.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};ee.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};ee.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)tN(this,arguments[t]);return this.length};ee.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)rN(this,arguments[t]);return this.length};ee.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};ee.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};ee.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,s=0;r!==null;s++)t.call(e,r.value,s,this),r=r.next};ee.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,s=this.length-1;r!==null;s--)t.call(e,r.value,s,this),r=r.prev};ee.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};ee.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};ee.prototype.map=function(t,e){e=e||this;for(var r=new ee,s=this.head;s!==null;)r.push(t.call(e,s.value,this)),s=s.next;return r};ee.prototype.mapReverse=function(t,e){e=e||this;for(var r=new ee,s=this.tail;s!==null;)r.push(t.call(e,s.value,this)),s=s.prev;return r};ee.prototype.reduce=function(t,e){var r,s=this.head;if(arguments.length>1)r=e;else if(this.head)s=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;s!==null;i++)r=t(r,s.value,i),s=s.next;return r};ee.prototype.reduceReverse=function(t,e){var r,s=this.tail;if(arguments.length>1)r=e;else if(this.tail)s=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;s!==null;i--)r=t(r,s.value,i),s=s.prev;return r};ee.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};ee.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};ee.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new ee;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var s=0,i=this.head;i!==null&&s<t;s++)i=i.next;for(;i!==null&&s<e;s++,i=i.next)r.push(i.value);return r};ee.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new ee;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var s=this.length,i=this.tail;i!==null&&s>e;s--)i=i.prev;for(;i!==null&&s>t;s--,i=i.prev)r.push(i.value);return r};ee.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var s=0,i=this.head;i!==null&&s<t;s++)i=i.next;for(var n=[],s=0;i&&s<e;s++)n.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var s=0;s<r.length;s++)i=eN(this,i,r[s]);return n};ee.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var s=r.prev;r.prev=r.next,r.next=s}return this.head=e,this.tail=t,this};function eN(t,e,r){var s=e===t.head?new is(r,null,e,t):new is(r,e,e.next,t);return s.next===null&&(t.tail=s),s.prev===null&&(t.head=s),t.length++,s}function tN(t,e){t.tail=new is(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function rN(t,e){t.head=new is(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function is(t,e,r,s){if(!(this instanceof is))return new is(t,e,r,s);this.list=s,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{fm()(ee)}catch{}});var No=m((MB,Om)=>{"use strict";h();var vo=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},{Minipass:sN}=eo(),pm=zc(),iN=uo(),Iu=mu(),nN=Iu.Sync,oN=Iu.Tar,aN=Eu(),_m=Buffer.alloc(1024),Oo=Symbol("onStat"),yo=Symbol("ended"),It=Symbol("queue"),Hs=Symbol("current"),ns=Symbol("process"),So=Symbol("processing"),mm=Symbol("processJob"),Nt=Symbol("jobs"),gu=Symbol("jobDone"),Ro=Symbol("addFSEntry"),Em=Symbol("addTarEntry"),Ru=Symbol("stat"),Tu=Symbol("readdir"),To=Symbol("onreaddir"),Ao=Symbol("pipe"),gm=Symbol("entry"),yu=Symbol("entryOpt"),Au=Symbol("writeEntryClass"),Sm=Symbol("write"),Su=Symbol("ondrain"),Io=T("fs"),ym=T("path"),cN=fo(),Ou=Us(),Nu=cN(class extends sN{constructor(e){if(super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=Ou(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Au]=Iu,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip||e.brotli){if(e.gzip&&e.brotli)throw new TypeError("gzip and brotli are mutually exclusive");e.gzip&&(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new pm.Gzip(e.gzip)),e.brotli&&(typeof e.brotli!="object"&&(e.brotli={}),this.zip=new pm.BrotliCompress(e.brotli)),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Su]()),this.on("resume",r=>this.zip.resume())}else this.on("drain",this[Su]);this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[It]=new aN,this[Nt]=0,this.jobs=+e.jobs||4,this[So]=!1,this[yo]=!1}[Sm](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[yo]=!0,this[ns](),this}write(e){if(this[yo])throw new Error("write after end");return e instanceof iN?this[Em](e):this[Ro](e),this.flowing}[Em](e){let r=Ou(ym.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let s=new vo(e.path,r,!1);s.entry=new oN(e,this[yu](s)),s.entry.on("end",i=>this[gu](s)),this[Nt]+=1,this[It].push(s)}this[ns]()}[Ro](e){let r=Ou(ym.resolve(this.cwd,e));this[It].push(new vo(e,r)),this[ns]()}[Ru](e){e.pending=!0,this[Nt]+=1;let r=this.follow?"stat":"lstat";Io[r](e.absolute,(s,i)=>{e.pending=!1,this[Nt]-=1,s?this.emit("error",s):this[Oo](e,i)})}[Oo](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[ns]()}[Tu](e){e.pending=!0,this[Nt]+=1,Io.readdir(e.absolute,(r,s)=>{if(e.pending=!1,this[Nt]-=1,r)return this.emit("error",r);this[To](e,s)})}[To](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[ns]()}[ns](){if(!this[So]){this[So]=!0;for(let e=this[It].head;e!==null&&this[Nt]<this.jobs;e=e.next)if(this[mm](e.value),e.value.ignore){let r=e.next;this[It].removeNode(e),e.next=r}this[So]=!1,this[yo]&&!this[It].length&&this[Nt]===0&&(this.zip?this.zip.end(_m):(super.write(_m),super.end()))}}get[Hs](){return this[It]&&this[It].head&&this[It].head.value}[gu](e){this[It].shift(),this[Nt]-=1,this[ns]()}[mm](e){if(!e.pending){if(e.entry){e===this[Hs]&&!e.piped&&this[Ao](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Oo](e,this.statCache.get(e.absolute)):this[Ru](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[To](e,this.readdirCache.get(e.absolute)):this[Tu](e),!e.readdir))){if(e.entry=this[gm](e),!e.entry){e.ignore=!0;return}e===this[Hs]&&!e.piped&&this[Ao](e)}}}[yu](e){return{onwarn:(r,s,i)=>this.warn(r,s,i),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[gm](e){this[Nt]+=1;try{return new this[Au](e.path,this[yu](e)).on("end",()=>this[gu](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Su](){this[Hs]&&this[Hs].entry&&this[Hs].entry.resume()}[Ao](e){e.piped=!0,e.readdir&&e.readdir.forEach(i=>{let n=e.path,o=n==="./"?"":n.replace(/\/*$/,"/");this[Ro](o+i)});let r=e.entry,s=this.zip;s?r.on("data",i=>{s.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),vu=class extends Nu{constructor(e){super(e),this[Au]=nN}pause(){}resume(){}[Ru](e){let r=this.follow?"statSync":"lstatSync";this[Oo](e,Io[r](e.absolute))}[Tu](e,r){this[To](e,Io.readdirSync(e.absolute))}[Ao](e){let r=e.entry,s=this.zip;e.readdir&&e.readdir.forEach(i=>{let n=e.path,o=n==="./"?"":n.replace(/\/*$/,"/");this[Ro](o+i)}),s?r.on("data",i=>{s.write(i)}):r.on("data",i=>{super[Sm](i)})}};Nu.Sync=vu;Om.exports=Nu});var Zs=m(ki=>{"use strict";h();var uN=xc(),lN=T("events").EventEmitter,He=T("fs"),Cu=He.writev;if(!Cu){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Cu=(r,s,i,n)=>{let o=(c,u)=>n(c,u,s),a=new e;a.oncomplete=o,t.writeBuffers(r,s,i,a)}}var zs=Symbol("_autoClose"),pt=Symbol("_close"),Fi=Symbol("_ended"),se=Symbol("_fd"),Rm=Symbol("_finished"),Sr=Symbol("_flags"),bu=Symbol("_flush"),Pu=Symbol("_handleChunk"),Du=Symbol("_makeBuf"),Do=Symbol("_mode"),bo=Symbol("_needDrain"),Ys=Symbol("_onerror"),Xs=Symbol("_onopen"),wu=Symbol("_onread"),Vs=Symbol("_onwrite"),Or=Symbol("_open"),$t=Symbol("_path"),os=Symbol("_pos"),bt=Symbol("_queue"),$s=Symbol("_read"),Tm=Symbol("_readSize"),yr=Symbol("_reading"),wo=Symbol("_remain"),Am=Symbol("_size"),Co=Symbol("_write"),Ws=Symbol("_writing"),Po=Symbol("_defaultFlag"),Ks=Symbol("_errored"),xo=class extends uN{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[Ks]=!1,this[se]=typeof r.fd=="number"?r.fd:null,this[$t]=e,this[Tm]=r.readSize||16*1024*1024,this[yr]=!1,this[Am]=typeof r.size=="number"?r.size:1/0,this[wo]=this[Am],this[zs]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[se]=="number"?this[$s]():this[Or]()}get fd(){return this[se]}get path(){return this[$t]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Or](){He.open(this[$t],"r",(e,r)=>this[Xs](e,r))}[Xs](e,r){e?this[Ys](e):(this[se]=r,this.emit("open",r),this[$s]())}[Du](){return Buffer.allocUnsafe(Math.min(this[Tm],this[wo]))}[$s](){if(!this[yr]){this[yr]=!0;let e=this[Du]();if(e.length===0)return process.nextTick(()=>this[wu](null,0,e));He.read(this[se],e,0,e.length,null,(r,s,i)=>this[wu](r,s,i))}}[wu](e,r,s){this[yr]=!1,e?this[Ys](e):this[Pu](r,s)&&this[$s]()}[pt](){if(this[zs]&&typeof this[se]=="number"){let e=this[se];this[se]=null,He.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Ys](e){this[yr]=!0,this[pt](),this.emit("error",e)}[Pu](e,r){let s=!1;return this[wo]-=e,e>0&&(s=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[wo]<=0)&&(s=!1,this[pt](),super.end()),s}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[se]=="number"&&this[$s]();break;case"error":return this[Ks]?void 0:(this[Ks]=!0,super.emit(e,r));default:return super.emit(e,r)}}},xu=class extends xo{[Or](){let e=!0;try{this[Xs](null,He.openSync(this[$t],"r")),e=!1}finally{e&&this[pt]()}}[$s](){let e=!0;try{if(!this[yr]){this[yr]=!0;do{let r=this[Du](),s=r.length===0?0:He.readSync(this[se],r,0,r.length,null);if(!this[Pu](s,r))break}while(!0);this[yr]=!1}e=!1}finally{e&&this[pt]()}}[pt](){if(this[zs]&&typeof this[se]=="number"){let e=this[se];this[se]=null,He.closeSync(e),this.emit("close")}}},Lo=class extends lN{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Ks]=!1,this[Ws]=!1,this[Fi]=!1,this[bo]=!1,this[bt]=[],this[$t]=e,this[se]=typeof r.fd=="number"?r.fd:null,this[Do]=r.mode===void 0?438:r.mode,this[os]=typeof r.start=="number"?r.start:null,this[zs]=typeof r.autoClose=="boolean"?r.autoClose:!0;let s=this[os]!==null?"r+":"w";this[Po]=r.flags===void 0,this[Sr]=this[Po]?s:r.flags,this[se]===null&&this[Or]()}emit(e,r){if(e==="error"){if(this[Ks])return;this[Ks]=!0}return super.emit(e,r)}get fd(){return this[se]}get path(){return this[$t]}[Ys](e){this[pt](),this[Ws]=!0,this.emit("error",e)}[Or](){He.open(this[$t],this[Sr],this[Do],(e,r)=>this[Xs](e,r))}[Xs](e,r){this[Po]&&this[Sr]==="r+"&&e&&e.code==="ENOENT"?(this[Sr]="w",this[Or]()):e?this[Ys](e):(this[se]=r,this.emit("open",r),this[bu]())}end(e,r){return e&&this.write(e,r),this[Fi]=!0,!this[Ws]&&!this[bt].length&&typeof this[se]=="number"&&this[Vs](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Fi]?(this.emit("error",new Error("write() after end()")),!1):this[se]===null||this[Ws]||this[bt].length?(this[bt].push(e),this[bo]=!0,!1):(this[Ws]=!0,this[Co](e),!0)}[Co](e){He.write(this[se],e,0,e.length,this[os],(r,s)=>this[Vs](r,s))}[Vs](e,r){e?this[Ys](e):(this[os]!==null&&(this[os]+=r),this[bt].length?this[bu]():(this[Ws]=!1,this[Fi]&&!this[Rm]?(this[Rm]=!0,this[pt](),this.emit("finish")):this[bo]&&(this[bo]=!1,this.emit("drain"))))}[bu](){if(this[bt].length===0)this[Fi]&&this[Vs](null,0);else if(this[bt].length===1)this[Co](this[bt].pop());else{let e=this[bt];this[bt]=[],Cu(this[se],e,this[os],(r,s)=>this[Vs](r,s))}}[pt](){if(this[zs]&&typeof this[se]=="number"){let e=this[se];this[se]=null,He.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Lu=class extends Lo{[Or](){let e;if(this[Po]&&this[Sr]==="r+")try{e=He.openSync(this[$t],this[Sr],this[Do])}catch(r){if(r.code==="ENOENT")return this[Sr]="w",this[Or]();throw r}else e=He.openSync(this[$t],this[Sr],this[Do]);this[Xs](null,e)}[pt](){if(this[zs]&&typeof this[se]=="number"){let e=this[se];this[se]=null,He.closeSync(e),this.emit("close")}}[Co](e){let r=!0;try{this[Vs](null,He.writeSync(this[se],e,0,e.length,this[os])),r=!1}finally{if(r)try{this[pt]()}catch{}}}};ki.ReadStream=xo;ki.ReadStreamSync=xu;ki.WriteStream=Lo;ki.WriteStreamSync=Lu});var jo=m((GB,Lm)=>{"use strict";h();var hN=fo(),vm=js(),fN=T("events"),dN=Eu(),pN=1024*1024,_N=uo(),Im=ho(),Nm=zc(),{nextTick:mN}=T("process"),Mu=Buffer.from([31,139]),tt=Symbol("state"),as=Symbol("writeEntry"),Yt=Symbol("readEntry"),Fu=Symbol("nextEntry"),bm=Symbol("processEntry"),rt=Symbol("extendedHeader"),Bi=Symbol("globalExtendedHeader"),Rr=Symbol("meta"),wm=Symbol("emitMeta"),ne=Symbol("buffer"),Kt=Symbol("queue"),Tr=Symbol("ended"),Cm=Symbol("emittedEnd"),cs=Symbol("emit"),Ae=Symbol("unzip"),Mo=Symbol("consumeChunk"),Fo=Symbol("consumeChunkSub"),ku=Symbol("consumeBody"),Pm=Symbol("consumeMeta"),Dm=Symbol("consumeHeader"),ko=Symbol("consuming"),Bu=Symbol("bufferConcat"),Uu=Symbol("maybeEnd"),Ui=Symbol("writing"),Ar=Symbol("aborted"),Bo=Symbol("onDone"),us=Symbol("sawValidEntry"),Uo=Symbol("sawNullBlock"),Go=Symbol("sawEOF"),xm=Symbol("closeStream"),EN=t=>!0;Lm.exports=hN(class extends fN{constructor(e){e=e||{},super(e),this.file=e.file||"",this[us]=null,this.on(Bo,s=>{(this[tt]==="begin"||this[us]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Bo,e.ondone):this.on(Bo,s=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||pN,this.filter=typeof e.filter=="function"?e.filter:EN;let r=e.file&&(e.file.endsWith(".tar.br")||e.file.endsWith(".tbr"));this.brotli=!e.gzip&&e.brotli!==void 0?e.brotli:r?void 0:!1,this.writable=!0,this.readable=!1,this[Kt]=new dN,this[ne]=null,this[Yt]=null,this[as]=null,this[tt]="begin",this[Rr]="",this[rt]=null,this[Bi]=null,this[Tr]=!1,this[Ae]=null,this[Ar]=!1,this[Uo]=!1,this[Go]=!1,this.on("end",()=>this[xm]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Dm](e,r){this[us]===null&&(this[us]=!1);let s;try{s=new vm(e,r,this[rt],this[Bi])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(s.nullBlock)this[Uo]?(this[Go]=!0,this[tt]==="begin"&&(this[tt]="header"),this[cs]("eof")):(this[Uo]=!0,this[cs]("nullBlock"));else if(this[Uo]=!1,!s.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:s});else if(!s.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:s});else{let i=s.type;if(/^(Symbolic)?Link$/.test(i)&&!s.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:s});else if(!/^(Symbolic)?Link$/.test(i)&&s.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:s});else{let n=this[as]=new _N(s,this[rt],this[Bi]);if(!this[us])if(n.remain){let o=()=>{n.invalid||(this[us]=!0)};n.on("end",o)}else this[us]=!0;n.meta?n.size>this.maxMetaEntrySize?(n.ignore=!0,this[cs]("ignoredEntry",n),this[tt]="ignore",n.resume()):n.size>0&&(this[Rr]="",n.on("data",o=>this[Rr]+=o),this[tt]="meta"):(this[rt]=null,n.ignore=n.ignore||!this.filter(n.path,n),n.ignore?(this[cs]("ignoredEntry",n),this[tt]=n.remain?"ignore":"header",n.resume()):(n.remain?this[tt]="body":(this[tt]="header",n.end()),this[Yt]?this[Kt].push(n):(this[Kt].push(n),this[Fu]())))}}}[xm](){mN(()=>this.emit("close"))}[bm](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Yt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",s=>this[Fu]()),r=!1)):(this[Yt]=null,r=!1),r}[Fu](){do;while(this[bm](this[Kt].shift()));if(!this[Kt].length){let e=this[Yt];!e||e.flowing||e.size===e.remain?this[Ui]||this.emit("drain"):e.once("drain",s=>this.emit("drain"))}}[ku](e,r){let s=this[as],i=s.blockRemain,n=i>=e.length&&r===0?e:e.slice(r,r+i);return s.write(n),s.blockRemain||(this[tt]="header",this[as]=null,s.end()),n.length}[Pm](e,r){let s=this[as],i=this[ku](e,r);return this[as]||this[wm](s),i}[cs](e,r,s){!this[Kt].length&&!this[Yt]?this.emit(e,r,s):this[Kt].push([e,r,s])}[wm](e){switch(this[cs]("meta",this[Rr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[rt]=Im.parse(this[Rr],this[rt],!1);break;case"GlobalExtendedHeader":this[Bi]=Im.parse(this[Rr],this[Bi],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[rt]=this[rt]||Object.create(null),this[rt].path=this[Rr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[rt]=this[rt]||Object.create(null),this[rt].linkpath=this[Rr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Ar]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Ar])return;if((this[Ae]===null||this.brotli===void 0&&this[Ae]===!1)&&e){if(this[ne]&&(e=Buffer.concat([this[ne],e]),this[ne]=null),e.length<Mu.length)return this[ne]=e,!0;for(let n=0;this[Ae]===null&&n<Mu.length;n++)e[n]!==Mu[n]&&(this[Ae]=!1);let i=this.brotli===void 0;if(this[Ae]===!1&&i)if(e.length<512)if(this[Tr])this.brotli=!0;else return this[ne]=e,!0;else try{new vm(e.slice(0,512)),this.brotli=!1}catch{this.brotli=!0}if(this[Ae]===null||this[Ae]===!1&&this.brotli){let n=this[Tr];this[Tr]=!1,this[Ae]=this[Ae]===null?new Nm.Unzip:new Nm.BrotliDecompress,this[Ae].on("data",a=>this[Mo](a)),this[Ae].on("error",a=>this.abort(a)),this[Ae].on("end",a=>{this[Tr]=!0,this[Mo]()}),this[Ui]=!0;let o=this[Ae][n?"end":"write"](e);return this[Ui]=!1,o}}this[Ui]=!0,this[Ae]?this[Ae].write(e):this[Mo](e),this[Ui]=!1;let s=this[Kt].length?!1:this[Yt]?this[Yt].flowing:!0;return!s&&!this[Kt].length&&this[Yt].once("drain",i=>this.emit("drain")),s}[Bu](e){e&&!this[Ar]&&(this[ne]=this[ne]?Buffer.concat([this[ne],e]):e)}[Uu](){if(this[Tr]&&!this[Cm]&&!this[Ar]&&!this[ko]){this[Cm]=!0;let e=this[as];if(e&&e.blockRemain){let r=this[ne]?this[ne].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[ne]&&e.write(this[ne]),e.end()}this[cs](Bo)}}[Mo](e){if(this[ko])this[Bu](e);else if(!e&&!this[ne])this[Uu]();else{if(this[ko]=!0,this[ne]){this[Bu](e);let r=this[ne];this[ne]=null,this[Fo](r)}else this[Fo](e);for(;this[ne]&&this[ne].length>=512&&!this[Ar]&&!this[Go];){let r=this[ne];this[ne]=null,this[Fo](r)}this[ko]=!1}(!this[ne]||this[Tr])&&this[Uu]()}[Fo](e){let r=0,s=e.length;for(;r+512<=s&&!this[Ar]&&!this[Go];)switch(this[tt]){case"begin":case"header":this[Dm](e,r),r+=512;break;case"ignore":case"body":r+=this[ku](e,r);break;case"meta":r+=this[Pm](e,r);break;default:throw new Error("invalid state: "+this[tt])}r<s&&(this[ne]?this[ne]=Buffer.concat([e.slice(r),this[ne]]):this[ne]=e.slice(r))}end(e){this[Ar]||(this[Ae]?this[Ae].end(e):(this[Tr]=!0,this.brotli===void 0&&(e=e||Buffer.alloc(0)),this.write(e)))}})});var qo=m((qB,Bm)=>{"use strict";h();var gN=Ls(),Fm=jo(),Qs=T("fs"),yN=Zs(),Mm=T("path"),Gu=qs();Bm.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let s=gN(t);if(s.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!s.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&ON(s,e),s.noResume||SN(s),s.file&&s.sync?RN(s):s.file?TN(s,r):km(s)};var SN=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},ON=(t,e)=>{let r=new Map(e.map(n=>[Gu(n),!0])),s=t.filter,i=(n,o)=>{let a=o||Mm.parse(n).root||".",c=n===a?!1:r.has(n)?r.get(n):i(Mm.dirname(n),a);return r.set(n,c),c};t.filter=s?(n,o)=>s(n,o)&&i(Gu(n)):n=>i(Gu(n))},RN=t=>{let e=km(t),r=t.file,s=!0,i;try{let n=Qs.statSync(r),o=t.maxReadSize||16*1024*1024;if(n.size<o)e.end(Qs.readFileSync(r));else{let a=0,c=Buffer.allocUnsafe(o);for(i=Qs.openSync(r,"r");a<n.size;){let u=Qs.readSync(i,c,0,o,a);a+=u,e.write(c.slice(0,u))}e.end()}s=!1}finally{if(s&&i)try{Qs.closeSync(i)}catch{}}},TN=(t,e)=>{let r=new Fm(t),s=t.maxReadSize||16*1024*1024,i=t.file,n=new Promise((o,a)=>{r.on("error",a),r.on("end",o),Qs.stat(i,(c,u)=>{if(c)a(c);else{let l=new yN.ReadStream(i,{readSize:s,size:u.size});l.on("error",a),l.pipe(r)}})});return e?n.then(e,e):n},km=t=>new Fm(t)});var Wm=m((WB,Hm)=>{"use strict";h();var AN=Ls(),Ho=No(),Um=Zs(),Gm=qo(),jm=T("path");Hm.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let s=AN(t);if(s.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!s.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return s.file&&s.sync?vN(s,e):s.file?IN(s,e,r):s.sync?NN(s,e):bN(s,e)};var vN=(t,e)=>{let r=new Ho.Sync(t),s=new Um.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(s),qm(r,e)},IN=(t,e,r)=>{let s=new Ho(t),i=new Um.WriteStream(t.file,{mode:t.mode||438});s.pipe(i);let n=new Promise((o,a)=>{i.on("error",a),i.on("close",o),s.on("error",a)});return ju(s,e),r?n.then(r,r):n},qm=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Gm({file:jm.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:s=>t.add(s)}):t.add(r)}),t.end()},ju=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Gm({file:jm.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:s=>t.add(s)}).then(s=>ju(t,e));t.add(r)}t.end()},NN=(t,e)=>{let r=new Ho.Sync(t);return qm(r,e),r},bN=(t,e)=>{let r=new Ho(t);return ju(r,e),r}});var qu=m(($B,Zm)=>{"use strict";h();var wN=Ls(),Vm=No(),Xe=T("fs"),$m=Zs(),Ym=qo(),Km=T("path"),zm=js();Zm.exports=(t,e,r)=>{let s=wN(t);if(!s.file)throw new TypeError("file is required");if(s.gzip||s.brotli||s.file.endsWith(".br")||s.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),s.sync?CN(s,e):DN(s,e,r)};var CN=(t,e)=>{let r=new Vm.Sync(t),s=!0,i,n;try{try{i=Xe.openSync(t.file,"r+")}catch(c){if(c.code==="ENOENT")i=Xe.openSync(t.file,"w+");else throw c}let o=Xe.fstatSync(i),a=Buffer.alloc(512);e:for(n=0;n<o.size;n+=512){for(let l=0,f=0;l<512;l+=f){if(f=Xe.readSync(i,a,l,a.length-l,n+l),n===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!f)break e}let c=new zm(a);if(!c.cksumValid)break;let u=512*Math.ceil(c.size/512);if(n+u+512>o.size)break;n+=u,t.mtimeCache&&t.mtimeCache.set(c.path,c.mtime)}s=!1,PN(t,r,n,i,e)}finally{if(s)try{Xe.closeSync(i)}catch{}}},PN=(t,e,r,s,i)=>{let n=new $m.WriteStreamSync(t.file,{fd:s,start:r});e.pipe(n),xN(e,i)},DN=(t,e,r)=>{e=Array.from(e);let s=new Vm(t),i=(o,a,c)=>{let u=(g,R)=>{g?Xe.close(o,v=>c(g)):c(null,R)},l=0;if(a===0)return u(null,0);let f=0,d=Buffer.alloc(512),E=(g,R)=>{if(g)return u(g);if(f+=R,f<512&&R)return Xe.read(o,d,f,d.length-f,l+f,E);if(l===0&&d[0]===31&&d[1]===139)return u(new Error("cannot append to compressed archives"));if(f<512)return u(null,l);let v=new zm(d);if(!v.cksumValid)return u(null,l);let N=512*Math.ceil(v.size/512);if(l+N+512>a||(l+=N+512,l>=a))return u(null,l);t.mtimeCache&&t.mtimeCache.set(v.path,v.mtime),f=0,Xe.read(o,d,0,512,l,E)};Xe.read(o,d,0,512,l,E)},n=new Promise((o,a)=>{s.on("error",a);let c="r+",u=(l,f)=>{if(l&&l.code==="ENOENT"&&c==="r+")return c="w+",Xe.open(t.file,c,u);if(l)return a(l);Xe.fstat(f,(d,E)=>{if(d)return Xe.close(f,()=>a(d));i(f,E.size,(g,R)=>{if(g)return a(g);let v=new $m.WriteStream(t.file,{fd:f,start:R});s.pipe(v),v.on("error",a),v.on("close",o),Xm(s,e)})})};Xe.open(t.file,c,u)});return r?n.then(r,r):n},xN=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Ym({file:Km.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:s=>t.add(s)}):t.add(r)}),t.end()},Xm=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Ym({file:Km.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:s=>t.add(s)}).then(s=>Xm(t,e));t.add(r)}t.end()}});var Jm=m((KB,Qm)=>{"use strict";h();var LN=Ls(),MN=qu();Qm.exports=(t,e,r)=>{let s=LN(t);if(!s.file)throw new TypeError("file is required");if(s.gzip||s.brotli||s.file.endsWith(".br")||s.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),FN(s),MN(s,e,r)};var FN=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,s)=>e(r,s)&&!(t.mtimeCache.get(r)>s.mtime):(r,s)=>!(t.mtimeCache.get(r)>s.mtime)}});var rE=m((XB,tE)=>{"use strict";h();var{promisify:eE}=T("util"),vr=T("fs"),kN=t=>{if(!t)t={mode:511,fs:vr};else if(typeof t=="object")t={mode:511,fs:vr,...t};else if(typeof t=="number")t={mode:t,fs:vr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:vr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||vr.mkdir,t.mkdirAsync=eE(t.mkdir),t.stat=t.stat||t.fs.stat||vr.stat,t.statAsync=eE(t.stat),t.statSync=t.statSync||t.fs.statSync||vr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||vr.mkdirSync,t};tE.exports=kN});var iE=m((QB,sE)=>{"use strict";h();var BN=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:UN,parse:GN}=T("path"),jN=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=UN(t),BN==="win32"){let e=/[*|"<>?:]/,{root:r}=GN(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};sE.exports=jN});var uE=m((eU,cE)=>{"use strict";h();var{dirname:nE}=T("path"),oE=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(s=>s.isDirectory()?r:void 0,s=>s.code==="ENOENT"?oE(t,nE(e),e):void 0),aE=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(s){return s.code==="ENOENT"?aE(t,nE(e),e):void 0}};cE.exports={findMade:oE,findMadeSync:aE}});var Vu=m((rU,hE)=>{"use strict";h();var{dirname:lE}=T("path"),Hu=(t,e,r)=>{e.recursive=!1;let s=lE(t);return s===t?e.mkdirAsync(t,e).catch(i=>{if(i.code!=="EISDIR")throw i}):e.mkdirAsync(t,e).then(()=>r||t,i=>{if(i.code==="ENOENT")return Hu(s,e).then(n=>Hu(t,e,n));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return e.statAsync(t).then(n=>{if(n.isDirectory())return r;throw i},()=>{throw i})})},Wu=(t,e,r)=>{let s=lE(t);if(e.recursive=!1,s===t)try{return e.mkdirSync(t,e)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return e.mkdirSync(t,e),r||t}catch(i){if(i.code==="ENOENT")return Wu(t,e,Wu(s,e,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!e.statSync(t).isDirectory())throw i}catch{throw i}}};hE.exports={mkdirpManual:Hu,mkdirpManualSync:Wu}});var pE=m((iU,dE)=>{"use strict";h();var{dirname:fE}=T("path"),{findMade:qN,findMadeSync:HN}=uE(),{mkdirpManual:WN,mkdirpManualSync:VN}=Vu(),$N=(t,e)=>(e.recursive=!0,fE(t)===t?e.mkdirAsync(t,e):qN(e,t).then(s=>e.mkdirAsync(t,e).then(()=>s).catch(i=>{if(i.code==="ENOENT")return WN(t,e);throw i}))),YN=(t,e)=>{if(e.recursive=!0,fE(t)===t)return e.mkdirSync(t,e);let s=HN(e,t);try{return e.mkdirSync(t,e),s}catch(i){if(i.code==="ENOENT")return VN(t,e);throw i}};dE.exports={mkdirpNative:$N,mkdirpNativeSync:YN}});var gE=m((oU,EE)=>{"use strict";h();var _E=T("fs"),KN=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,$u=KN.replace(/^v/,"").split("."),mE=+$u[0]>10||+$u[0]==10&&+$u[1]>=12,zN=mE?t=>t.mkdir===_E.mkdir:()=>!1,XN=mE?t=>t.mkdirSync===_E.mkdirSync:()=>!1;EE.exports={useNative:zN,useNativeSync:XN}});var AE=m((cU,TE)=>{"use strict";h();var Js=rE(),ei=iE(),{mkdirpNative:yE,mkdirpNativeSync:SE}=pE(),{mkdirpManual:OE,mkdirpManualSync:RE}=Vu(),{useNative:ZN,useNativeSync:QN}=gE(),ti=(t,e)=>(t=ei(t),e=Js(e),ZN(e)?yE(t,e):OE(t,e)),JN=(t,e)=>(t=ei(t),e=Js(e),QN(e)?SE(t,e):RE(t,e));ti.sync=JN;ti.native=(t,e)=>yE(ei(t),Js(e));ti.manual=(t,e)=>OE(ei(t),Js(e));ti.nativeSync=(t,e)=>SE(ei(t),Js(e));ti.manualSync=(t,e)=>RE(ei(t),Js(e));TE.exports=ti});var PE=m((lU,CE)=>{"use strict";h();var st=T("fs"),ls=T("path"),eb=st.lchown?"lchown":"chown",tb=st.lchownSync?"lchownSync":"chownSync",IE=st.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),vE=(t,e,r)=>{try{return st[tb](t,e,r)}catch(s){if(s.code!=="ENOENT")throw s}},rb=(t,e,r)=>{try{return st.chownSync(t,e,r)}catch(s){if(s.code!=="ENOENT")throw s}},sb=IE?(t,e,r,s)=>i=>{!i||i.code!=="EISDIR"?s(i):st.chown(t,e,r,s)}:(t,e,r,s)=>s,Yu=IE?(t,e,r)=>{try{return vE(t,e,r)}catch(s){if(s.code!=="EISDIR")throw s;rb(t,e,r)}}:(t,e,r)=>vE(t,e,r),ib=process.version,NE=(t,e,r)=>st.readdir(t,e,r),nb=(t,e)=>st.readdirSync(t,e);/^v4\./.test(ib)&&(NE=(t,e,r)=>st.readdir(t,r));var Wo=(t,e,r,s)=>{st[eb](t,e,r,sb(t,e,r,i=>{s(i&&i.code!=="ENOENT"?i:null)}))},bE=(t,e,r,s,i)=>{if(typeof e=="string")return st.lstat(ls.resolve(t,e),(n,o)=>{if(n)return i(n.code!=="ENOENT"?n:null);o.name=e,bE(t,o,r,s,i)});if(e.isDirectory())Ku(ls.resolve(t,e.name),r,s,n=>{if(n)return i(n);let o=ls.resolve(t,e.name);Wo(o,r,s,i)});else{let n=ls.resolve(t,e.name);Wo(n,r,s,i)}},Ku=(t,e,r,s)=>{NE(t,{withFileTypes:!0},(i,n)=>{if(i){if(i.code==="ENOENT")return s();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return s(i)}if(i||!n.length)return Wo(t,e,r,s);let o=n.length,a=null,c=u=>{if(!a){if(u)return s(a=u);if(--o===0)return Wo(t,e,r,s)}};n.forEach(u=>bE(t,u,e,r,c))})},ob=(t,e,r,s)=>{if(typeof e=="string")try{let i=st.lstatSync(ls.resolve(t,e));i.name=e,e=i}catch(i){if(i.code==="ENOENT")return;throw i}e.isDirectory()&&wE(ls.resolve(t,e.name),r,s),Yu(ls.resolve(t,e.name),r,s)},wE=(t,e,r)=>{let s;try{s=nb(t,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return Yu(t,e,r);throw i}return s&&s.length&&s.forEach(i=>ob(t,i,e,r)),Yu(t,e,r)};CE.exports=Ku;Ku.sync=wE});var ME=m((fU,zu)=>{"use strict";h();var DE=AE(),it=T("fs"),Vo=T("path"),xE=PE(),_t=Us(),$o=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Yo=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Ko=(t,e)=>t.get(_t(e)),Gi=(t,e,r)=>t.set(_t(e),r),ab=(t,e)=>{it.stat(t,(r,s)=>{(r||!s.isDirectory())&&(r=new Yo(t,r&&r.code||"ENOTDIR")),e(r)})};zu.exports=(t,e,r)=>{t=_t(t);let s=e.umask,i=e.mode|448,n=(i&s)!==0,o=e.uid,a=e.gid,c=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),u=e.preserve,l=e.unlink,f=e.cache,d=_t(e.cwd),E=(v,N)=>{v?r(v):(Gi(f,t,!0),N&&c?xE(N,o,a,V=>E(V)):n?it.chmod(t,i,r):r())};if(f&&Ko(f,t)===!0)return E();if(t===d)return ab(t,E);if(u)return DE(t,{mode:i}).then(v=>E(null,v),E);let R=_t(Vo.relative(d,t)).split("/");zo(d,R,i,f,l,d,null,E)};var zo=(t,e,r,s,i,n,o,a)=>{if(!e.length)return a(null,o);let c=e.shift(),u=_t(Vo.resolve(t+"/"+c));if(Ko(s,u))return zo(u,e,r,s,i,n,o,a);it.mkdir(u,r,LE(u,e,r,s,i,n,o,a))},LE=(t,e,r,s,i,n,o,a)=>c=>{c?it.lstat(t,(u,l)=>{if(u)u.path=u.path&&_t(u.path),a(u);else if(l.isDirectory())zo(t,e,r,s,i,n,o,a);else if(i)it.unlink(t,f=>{if(f)return a(f);it.mkdir(t,r,LE(t,e,r,s,i,n,o,a))});else{if(l.isSymbolicLink())return a(new $o(t,t+"/"+e.join("/")));a(c)}}):(o=o||t,zo(t,e,r,s,i,n,o,a))},cb=t=>{let e=!1,r="ENOTDIR";try{e=it.statSync(t).isDirectory()}catch(s){r=s.code}finally{if(!e)throw new Yo(t,r)}};zu.exports.sync=(t,e)=>{t=_t(t);let r=e.umask,s=e.mode|448,i=(s&r)!==0,n=e.uid,o=e.gid,a=typeof n=="number"&&typeof o=="number"&&(n!==e.processUid||o!==e.processGid),c=e.preserve,u=e.unlink,l=e.cache,f=_t(e.cwd),d=v=>{Gi(l,t,!0),v&&a&&xE.sync(v,n,o),i&&it.chmodSync(t,s)};if(l&&Ko(l,t)===!0)return d();if(t===f)return cb(f),d();if(c)return d(DE.sync(t,s));let g=_t(Vo.relative(f,t)).split("/"),R=null;for(let v=g.shift(),N=f;v&&(N+="/"+v);v=g.shift())if(N=_t(Vo.resolve(N)),!Ko(l,N))try{it.mkdirSync(N,s),R=R||N,Gi(l,N,!0)}catch{let z=it.lstatSync(N);if(z.isDirectory()){Gi(l,N,!0);continue}else if(u){it.unlinkSync(N),it.mkdirSync(N,s),R=R||N,Gi(l,N,!0);continue}else if(z.isSymbolicLink())return new $o(N,N+"/"+g.join("/"))}return d(R)}});var Zu=m((pU,FE)=>{"use strict";h();var Xu=Object.create(null),{hasOwnProperty:ub}=Object.prototype;FE.exports=t=>(ub.call(Xu,t)||(Xu[t]=t.normalize("NFD")),Xu[t])});var GE=m((mU,UE)=>{"use strict";h();var kE=T("assert"),lb=Zu(),hb=qs(),{join:BE}=T("path"),fb=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,db=fb==="win32";UE.exports=()=>{let t=new Map,e=new Map,r=u=>u.split("/").slice(0,-1).reduce((f,d)=>(f.length&&(d=BE(f[f.length-1],d)),f.push(d||"/"),f),[]),s=new Set,i=u=>{let l=e.get(u);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>t.get(f)),dirs:[...l.dirs].map(f=>t.get(f))}},n=u=>{let{paths:l,dirs:f}=i(u);return l.every(d=>d[0]===u)&&f.every(d=>d[0]instanceof Set&&d[0].has(u))},o=u=>s.has(u)||!n(u)?!1:(s.add(u),u(()=>a(u)),!0),a=u=>{if(!s.has(u))return!1;let{paths:l,dirs:f}=e.get(u),d=new Set;return l.forEach(E=>{let g=t.get(E);kE.equal(g[0],u),g.length===1?t.delete(E):(g.shift(),typeof g[0]=="function"?d.add(g[0]):g[0].forEach(R=>d.add(R)))}),f.forEach(E=>{let g=t.get(E);kE(g[0]instanceof Set),g[0].size===1&&g.length===1?t.delete(E):g[0].size===1?(g.shift(),d.add(g[0])):g[0].delete(u)}),s.delete(u),d.forEach(E=>o(E)),!0};return{check:n,reserve:(u,l)=>{u=db?["win32 parallelization disabled"]:u.map(d=>hb(BE(lb(d))).toLowerCase());let f=new Set(u.map(d=>r(d)).reduce((d,E)=>d.concat(E)));return e.set(l,{dirs:f,paths:u}),u.forEach(d=>{let E=t.get(d);E?E.push(l):t.set(d,[l])}),f.forEach(d=>{let E=t.get(d);E?E[E.length-1]instanceof Set?E[E.length-1].add(l):E.push(new Set([l])):t.set(d,[new Set([l])])}),o(l)}}}});var HE=m((gU,qE)=>{"use strict";h();var pb=process.env.__FAKE_PLATFORM__||process.platform,_b=pb==="win32",mb=global.__FAKE_TESTING_FS__||T("fs"),{O_CREAT:Eb,O_TRUNC:gb,O_WRONLY:yb,UV_FS_O_FILEMAP:jE=0}=mb.constants,Sb=_b&&!!jE,Ob=512*1024,Rb=jE|gb|Eb|yb;qE.exports=Sb?t=>t<Ob?Rb:"w":()=>"w"});var ol=m((SU,sg)=>{"use strict";h();var Tb=T("assert"),Ab=jo(),te=T("fs"),vb=Zs(),zt=T("path"),eg=ME(),WE=nu(),Ib=GE(),Nb=ou(),Ze=Us(),bb=qs(),wb=Zu(),VE=Symbol("onEntry"),el=Symbol("checkFs"),$E=Symbol("checkFs2"),Qo=Symbol("pruneCache"),tl=Symbol("isReusable"),nt=Symbol("makeFs"),rl=Symbol("file"),sl=Symbol("directory"),Jo=Symbol("link"),YE=Symbol("symlink"),KE=Symbol("hardlink"),zE=Symbol("unsupported"),XE=Symbol("checkPath"),Ir=Symbol("mkdir"),Le=Symbol("onError"),Xo=Symbol("pending"),ZE=Symbol("pend"),ri=Symbol("unpend"),Qu=Symbol("ended"),Ju=Symbol("maybeClose"),il=Symbol("skip"),ji=Symbol("doChown"),qi=Symbol("uid"),Hi=Symbol("gid"),Wi=Symbol("checkedCwd"),tg=T("crypto"),rg=HE(),Cb=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Vi=Cb==="win32",Pb=(t,e)=>{if(!Vi)return te.unlink(t,e);let r=t+".DELETE."+tg.randomBytes(16).toString("hex");te.rename(t,r,s=>{if(s)return e(s);te.unlink(r,e)})},Db=t=>{if(!Vi)return te.unlinkSync(t);let e=t+".DELETE."+tg.randomBytes(16).toString("hex");te.renameSync(t,e),te.unlinkSync(e)},QE=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,JE=t=>bb(Ze(wb(t))).toLowerCase(),xb=(t,e)=>{e=JE(e);for(let r of t.keys()){let s=JE(r);(s===e||s.indexOf(e+"/")===0)&&t.delete(r)}},Lb=t=>{for(let e of t.keys())t.delete(e)},$i=class extends Ab{constructor(e){if(e||(e={}),e.ondone=r=>{this[Qu]=!0,this[Ju]()},super(e),this[Wi]=!1,this.reservations=Ib(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Xo]=0,this[Qu]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||Vi,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Ze(zt.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[VE](r))}warn(e,r,s={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(s.recoverable=!1),super.warn(e,r,s)}[Ju](){this[Qu]&&this[Xo]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[XE](e){if(this.strip){let r=Ze(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let s=Ze(e.linkpath).split("/");if(s.length>=this.strip)e.linkpath=s.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Ze(e.path),s=r.split("/");if(s.includes("..")||Vi&&/^[a-z]:\.\.$/i.test(s[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[i,n]=Nb(r);i&&(e.path=n,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:e,path:r}))}if(zt.isAbsolute(e.path)?e.absolute=Ze(zt.resolve(e.path)):e.absolute=Ze(zt.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:Ze(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=zt.win32.parse(e.absolute);e.absolute=r+WE.encode(e.absolute.slice(r.length));let{root:s}=zt.win32.parse(e.path);e.path=s+WE.encode(e.path.slice(s.length))}return!0}[VE](e){if(!this[XE](e))return e.resume();switch(Tb.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[el](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[zE](e)}}[Le](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[ri](),r.resume())}[Ir](e,r,s){eg(Ze(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},s)}[ji](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[qi](e){return QE(this.uid,e.uid,this.processUid)}[Hi](e){return QE(this.gid,e.gid,this.processGid)}[rl](e,r){let s=e.mode&4095||this.fmode,i=new vb.WriteStream(e.absolute,{flags:rg(e.size),mode:s,autoClose:!1});i.on("error",c=>{i.fd&&te.close(i.fd,()=>{}),i.write=()=>!0,this[Le](c,e),r()});let n=1,o=c=>{if(c){i.fd&&te.close(i.fd,()=>{}),this[Le](c,e),r();return}--n===0&&te.close(i.fd,u=>{u?this[Le](u,e):this[ri](),r()})};i.on("finish",c=>{let u=e.absolute,l=i.fd;if(e.mtime&&!this.noMtime){n++;let f=e.atime||new Date,d=e.mtime;te.futimes(l,f,d,E=>E?te.utimes(u,f,d,g=>o(g&&E)):o())}if(this[ji](e)){n++;let f=this[qi](e),d=this[Hi](e);te.fchown(l,f,d,E=>E?te.chown(u,f,d,g=>o(g&&E)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",c=>{this[Le](c,e),r()}),e.pipe(a)),a.pipe(i)}[sl](e,r){let s=e.mode&4095||this.dmode;this[Ir](e.absolute,s,i=>{if(i){this[Le](i,e),r();return}let n=1,o=a=>{--n===0&&(r(),this[ri](),e.resume())};e.mtime&&!this.noMtime&&(n++,te.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[ji](e)&&(n++,te.chown(e.absolute,this[qi](e),this[Hi](e),o)),o()})}[zE](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[YE](e,r){this[Jo](e,e.linkpath,"symlink",r)}[KE](e,r){let s=Ze(zt.resolve(this.cwd,e.linkpath));this[Jo](e,s,"link",r)}[ZE](){this[Xo]++}[ri](){this[Xo]--,this[Ju]()}[il](e){this[ri](),e.resume()}[tl](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Vi}[el](e){this[ZE]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,s=>this[$E](e,s))}[Qo](e){e.type==="SymbolicLink"?Lb(this.dirCache):e.type!=="Directory"&&xb(this.dirCache,e.absolute)}[$E](e,r){this[Qo](e);let s=a=>{this[Qo](e),r(a)},i=()=>{this[Ir](this.cwd,this.dmode,a=>{if(a){this[Le](a,e),s();return}this[Wi]=!0,n()})},n=()=>{if(e.absolute!==this.cwd){let a=Ze(zt.dirname(e.absolute));if(a!==this.cwd)return this[Ir](a,this.dmode,c=>{if(c){this[Le](c,e),s();return}o()})}o()},o=()=>{te.lstat(e.absolute,(a,c)=>{if(c&&(this.keep||this.newer&&c.mtime>e.mtime)){this[il](e),s();return}if(a||this[tl](e,c))return this[nt](null,e,s);if(c.isDirectory()){if(e.type==="Directory"){let u=!this.noChmod&&e.mode&&(c.mode&4095)!==e.mode,l=f=>this[nt](f,e,s);return u?te.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return te.rmdir(e.absolute,u=>this[nt](u,e,s))}if(e.absolute===this.cwd)return this[nt](null,e,s);Pb(e.absolute,u=>this[nt](u,e,s))})};this[Wi]?n():i()}[nt](e,r,s){if(e){this[Le](e,r),s();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[rl](r,s);case"Link":return this[KE](r,s);case"SymbolicLink":return this[YE](r,s);case"Directory":case"GNUDumpDir":return this[sl](r,s)}}[Jo](e,r,s,i){te[s](r,e.absolute,n=>{n?this[Le](n,e):(this[ri](),e.resume()),i()})}},Zo=t=>{try{return[null,t()]}catch(e){return[e,null]}},nl=class extends $i{[nt](e,r){return super[nt](e,r,()=>{})}[el](e){if(this[Qo](e),!this[Wi]){let n=this[Ir](this.cwd,this.dmode);if(n)return this[Le](n,e);this[Wi]=!0}if(e.absolute!==this.cwd){let n=Ze(zt.dirname(e.absolute));if(n!==this.cwd){let o=this[Ir](n,this.dmode);if(o)return this[Le](o,e)}}let[r,s]=Zo(()=>te.lstatSync(e.absolute));if(s&&(this.keep||this.newer&&s.mtime>e.mtime))return this[il](e);if(r||this[tl](e,s))return this[nt](null,e);if(s.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(s.mode&4095)!==e.mode,[a]=o?Zo(()=>{te.chmodSync(e.absolute,e.mode)}):[];return this[nt](a,e)}let[n]=Zo(()=>te.rmdirSync(e.absolute));this[nt](n,e)}let[i]=e.absolute===this.cwd?[]:Zo(()=>Db(e.absolute));this[nt](i,e)}[rl](e,r){let s=e.mode&4095||this.fmode,i=a=>{let c;try{te.closeSync(n)}catch(u){c=u}(a||c)&&this[Le](a||c,e),r()},n;try{n=te.openSync(e.absolute,rg(e.size),s)}catch(a){return i(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Le](a,e)),e.pipe(o)),o.on("data",a=>{try{te.writeSync(n,a,0,a.length)}catch(c){i(c)}}),o.on("end",a=>{let c=null;if(e.mtime&&!this.noMtime){let u=e.atime||new Date,l=e.mtime;try{te.futimesSync(n,u,l)}catch(f){try{te.utimesSync(e.absolute,u,l)}catch{c=f}}}if(this[ji](e)){let u=this[qi](e),l=this[Hi](e);try{te.fchownSync(n,u,l)}catch(f){try{te.chownSync(e.absolute,u,l)}catch{c=c||f}}}i(c)})}[sl](e,r){let s=e.mode&4095||this.dmode,i=this[Ir](e.absolute,s);if(i){this[Le](i,e),r();return}if(e.mtime&&!this.noMtime)try{te.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[ji](e))try{te.chownSync(e.absolute,this[qi](e),this[Hi](e))}catch{}r(),e.resume()}[Ir](e,r){try{return eg.sync(Ze(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(s){return s}}[Jo](e,r,s,i){try{te[s+"Sync"](r,e.absolute),i(),e.resume()}catch(n){return this[Le](n,e)}}};$i.Sync=nl;sg.exports=$i});var cg=m((RU,ag)=>{"use strict";h();var Mb=Ls(),ea=ol(),ng=T("fs"),og=Zs(),ig=T("path"),al=qs();ag.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let s=Mb(t);if(s.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!s.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&Fb(s,e),s.file&&s.sync?kb(s):s.file?Bb(s,r):s.sync?Ub(s):Gb(s)};var Fb=(t,e)=>{let r=new Map(e.map(n=>[al(n),!0])),s=t.filter,i=(n,o)=>{let a=o||ig.parse(n).root||".",c=n===a?!1:r.has(n)?r.get(n):i(ig.dirname(n),a);return r.set(n,c),c};t.filter=s?(n,o)=>s(n,o)&&i(al(n)):n=>i(al(n))},kb=t=>{let e=new ea.Sync(t),r=t.file,s=ng.statSync(r),i=t.maxReadSize||16*1024*1024;new og.ReadStreamSync(r,{readSize:i,size:s.size}).pipe(e)},Bb=(t,e)=>{let r=new ea(t),s=t.maxReadSize||16*1024*1024,i=t.file,n=new Promise((o,a)=>{r.on("error",a),r.on("close",o),ng.stat(i,(c,u)=>{if(c)a(c);else{let l=new og.ReadStream(i,{readSize:s,size:u.size});l.on("error",a),l.pipe(r)}})});return e?n.then(e,e):n},Ub=t=>new ea.Sync(t),Gb=t=>new ea(t)});var ug=m(Se=>{"use strict";h();Se.c=Se.create=Wm();Se.r=Se.replace=qu();Se.t=Se.list=qo();Se.u=Se.update=Jm();Se.x=Se.extract=cg();Se.Pack=No();Se.Unpack=ol();Se.Parse=jo();Se.ReadEntry=uo();Se.WriteEntry=mu();Se.Header=js();Se.Pax=ho();Se.types=Qc()});var cl=m((jU,_g)=>{"use strict";h();var Xb=T("stream"),dg=Xb.PassThrough,Zb=Array.prototype.slice;_g.exports=Qb;function Qb(){let t=[],e=Zb.call(arguments),r=!1,s=e[e.length-1];s&&!Array.isArray(s)&&s.pipe==null?e.pop():s={};let i=s.end!==!1,n=s.pipeError===!0;s.objectMode==null&&(s.objectMode=!0),s.highWaterMark==null&&(s.highWaterMark=64*1024);let o=dg(s);function a(){for(let l=0,f=arguments.length;l<f;l++)t.push(pg(arguments[l],s));return c(),this}function c(){if(r)return;r=!0;let l=t.shift();if(!l){process.nextTick(u);return}Array.isArray(l)||(l=[l]);let f=l.length+1;function d(){--f>0||(r=!1,c())}function E(g){function R(){g.removeListener("merge2UnpipeEnd",R),g.removeListener("end",R),n&&g.removeListener("error",v),d()}function v(N){o.emit("error",N)}if(g._readableState.endEmitted)return d();g.on("merge2UnpipeEnd",R),g.on("end",R),n&&g.on("error",v),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<l.length;g++)E(l[g]);d()}function u(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function pg(t,e){if(Array.isArray(t))for(let r=0,s=t.length;r<s;r++)t[r]=pg(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(dg(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var mg=m(ii=>{"use strict";h();Object.defineProperty(ii,"__esModule",{value:!0});ii.splitWhen=ii.flatten=void 0;function Jb(t){return t.reduce((e,r)=>[].concat(e,r),[])}ii.flatten=Jb;function ew(t,e){let r=[[]],s=0;for(let i of t)e(i)?(s++,r[s]=[]):r[s].push(i);return r}ii.splitWhen=ew});var Eg=m(ta=>{"use strict";h();Object.defineProperty(ta,"__esModule",{value:!0});ta.isEnoentCodeError=void 0;function tw(t){return t.code==="ENOENT"}ta.isEnoentCodeError=tw});var gg=m(ra=>{"use strict";h();Object.defineProperty(ra,"__esModule",{value:!0});ra.createDirentFromStats=void 0;var ul=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function rw(t,e){return new ul(t,e)}ra.createDirentFromStats=rw});var Rg=m(ge=>{"use strict";h();Object.defineProperty(ge,"__esModule",{value:!0});ge.convertPosixPathToPattern=ge.convertWindowsPathToPattern=ge.convertPathToPattern=ge.escapePosixPath=ge.escapeWindowsPath=ge.escape=ge.removeLeadingDotSegment=ge.makeAbsolute=ge.unixify=void 0;var sw=T("os"),iw=T("path"),yg=sw.platform()==="win32",nw=2,ow=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,aw=/(\\?)([(){}]|^!|[!+@](?=\())/g,cw=/^\\\\([.?])/,uw=/\\(?![!()+@{}])/g;function lw(t){return t.replace(/\\/g,"/")}ge.unixify=lw;function hw(t,e){return iw.resolve(t,e)}ge.makeAbsolute=hw;function fw(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(nw)}return t}ge.removeLeadingDotSegment=fw;ge.escape=yg?ll:hl;function ll(t){return t.replace(aw,"\\$2")}ge.escapeWindowsPath=ll;function hl(t){return t.replace(ow,"\\$2")}ge.escapePosixPath=hl;ge.convertPathToPattern=yg?Sg:Og;function Sg(t){return ll(t).replace(cw,"//$1").replace(uw,"/")}ge.convertWindowsPathToPattern=Sg;function Og(t){return hl(t)}ge.convertPosixPathToPattern=Og});var Ag=m((ZU,Tg)=>{"use strict";h();Tg.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var fl=m((JU,Ig)=>{"use strict";h();var dw=Ag(),vg={"{":"}","(":")","[":"]"},pw=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,s=-2,i=-2,n=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||s!==-1&&t[e]==="["&&t[e+1]!=="]"&&(s<e&&(s=t.indexOf("]",e)),s>e&&(o===-1||o>s||(o=t.indexOf("\\",e),o===-1||o>s)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||n!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(n=t.indexOf(")",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(n=t.indexOf(")",r),n>r&&(o=t.indexOf("\\",r),o===-1||o>n))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var c=vg[a];if(c){var u=t.indexOf(c,e);u!==-1&&(e=u+1)}if(t[e]==="!")return!0}else e++}return!1},_w=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var s=vg[r];if(s){var i=t.indexOf(s,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};Ig.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(dw(e))return!0;var s=pw;return r&&r.strict===!1&&(s=_w),s(e)}});var pl=m((t1,Ng)=>{"use strict";h();var mw=fl(),Ew=T("path").posix.dirname,gw=T("os").platform()==="win32",dl="/",yw=/\\/g,Sw=/[\{\[].*[\}\]]$/,Ow=/(^|[^\\])([\{\[]|\([^\)]+$)/,Rw=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Ng.exports=function(e,r){var s=Object.assign({flipBackslashes:!0},r);s.flipBackslashes&&gw&&e.indexOf(dl)<0&&(e=e.replace(yw,dl)),Sw.test(e)&&(e+=dl),e+="a";do e=Ew(e);while(mw(e)||Ow.test(e));return e.replace(Rw,"$1")}});var sa=m(ot=>{"use strict";h();ot.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;ot.find=(t,e)=>t.nodes.find(r=>r.type===e);ot.exceedsLimit=(t,e,r=1,s)=>s===!1||!ot.isInteger(t)||!ot.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=s;ot.escapeNode=(t,e=0,r)=>{let s=t.nodes[e];s&&(r&&s.type===r||s.type==="open"||s.type==="close")&&s.escaped!==!0&&(s.value="\\"+s.value,s.escaped=!0)};ot.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);ot.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;ot.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;ot.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);ot.flatten=(...t)=>{let e=[],r=s=>{for(let i=0;i<s.length;i++){let n=s[i];Array.isArray(n)?r(n,e):n!==void 0&&e.push(n)}return e};return r(t),e}});var ia=m((n1,wg)=>{"use strict";h();var bg=sa();wg.exports=(t,e={})=>{let r=(s,i={})=>{let n=e.escapeInvalid&&bg.isInvalidBrace(i),o=s.invalid===!0&&e.escapeInvalid===!0,a="";if(s.value)return(n||o)&&bg.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let c of s.nodes)a+=r(c);return a};return r(t)}});var Pg=m((a1,Cg)=>{"use strict";h();Cg.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Gg=m((u1,Ug)=>{"use strict";h();var Dg=Pg(),fs=(t,e,r)=>{if(Dg(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Dg(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let s={relaxZeros:!0,...r};typeof s.strictZeros=="boolean"&&(s.relaxZeros=s.strictZeros===!1);let i=String(s.relaxZeros),n=String(s.shorthand),o=String(s.capture),a=String(s.wrap),c=t+":"+e+"="+i+n+o+a;if(fs.cache.hasOwnProperty(c))return fs.cache[c].result;let u=Math.min(t,e),l=Math.max(t,e);if(Math.abs(u-l)===1){let R=t+"|"+e;return s.capture?`(${R})`:s.wrap===!1?R:`(?:${R})`}let f=Bg(t)||Bg(e),d={min:t,max:e,a:u,b:l},E=[],g=[];if(f&&(d.isPadded=f,d.maxLen=String(d.max).length),u<0){let R=l<0?Math.abs(l):1;g=xg(R,Math.abs(u),d,s),u=d.a=0}return l>=0&&(E=xg(u,l,d,s)),d.negatives=g,d.positives=E,d.result=Tw(g,E,s),s.capture===!0?d.result=`(${d.result})`:s.wrap!==!1&&E.length+g.length>1&&(d.result=`(?:${d.result})`),fs.cache[c]=d,d.result};function Tw(t,e,r){let s=_l(t,e,"-",!1,r)||[],i=_l(e,t,"",!1,r)||[],n=_l(t,e,"-?",!0,r)||[];return s.concat(n).concat(i).join("|")}function Aw(t,e){let r=1,s=1,i=Mg(t,r),n=new Set([e]);for(;t<=i&&i<=e;)n.add(i),r+=1,i=Mg(t,r);for(i=Fg(e+1,s)-1;t<i&&i<=e;)n.add(i),s+=1,i=Fg(e+1,s)-1;return n=[...n],n.sort(Nw),n}function vw(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let s=Iw(t,e),i=s.length,n="",o=0;for(let a=0;a<i;a++){let[c,u]=s[a];c===u?n+=c:c!=="0"||u!=="9"?n+=bw(c,u,r):o++}return o&&(n+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:n,count:[o],digits:i}}function xg(t,e,r,s){let i=Aw(t,e),n=[],o=t,a;for(let c=0;c<i.length;c++){let u=i[c],l=vw(String(o),String(u),s),f="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+kg(a.count),o=u+1;continue}r.isPadded&&(f=ww(u,r,s)),l.string=f+l.pattern+kg(l.count),n.push(l),o=u+1,a=l}return n}function _l(t,e,r,s,i){let n=[];for(let o of t){let{string:a}=o;!s&&!Lg(e,"string",a)&&n.push(r+a),s&&Lg(e,"string",a)&&n.push(r+a)}return n}function Iw(t,e){let r=[];for(let s=0;s<t.length;s++)r.push([t[s],e[s]]);return r}function Nw(t,e){return t>e?1:e>t?-1:0}function Lg(t,e,r){return t.some(s=>s[e]===r)}function Mg(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Fg(t,e){return t-t%Math.pow(10,e)}function kg(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function bw(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Bg(t){return/^-?(0+)\d/.test(t)}function ww(t,e,r){if(!e.isPadded)return t;let s=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(s){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${s}}`:`0{${s}}`}}fs.cache={};fs.clearCache=()=>fs.cache={};Ug.exports=fs});var gl=m((h1,Kg)=>{"use strict";h();var Cw=T("util"),Hg=Gg(),jg=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),Pw=t=>e=>t===!0?Number(e):String(e),ml=t=>typeof t=="number"||typeof t=="string"&&t!=="",Yi=t=>Number.isInteger(+t),El=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},Dw=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,xw=(t,e,r)=>{if(e>0){let s=t[0]==="-"?"-":"";s&&(t=t.slice(1)),t=s+t.padStart(s?e-1:e,"0")}return r===!1?String(t):t},qg=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},Lw=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",s="",i="",n;return t.positives.length&&(s=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),s&&i?n=`${s}|${i}`:n=s||i,e.wrap?`(${r}${n})`:n},Wg=(t,e,r,s)=>{if(r)return Hg(t,e,{wrap:!1,...s});let i=String.fromCharCode(t);if(t===e)return i;let n=String.fromCharCode(e);return`[${i}-${n}]`},Vg=(t,e,r)=>{if(Array.isArray(t)){let s=r.wrap===!0,i=r.capture?"":"?:";return s?`(${i}${t.join("|")})`:t.join("|")}return Hg(t,e,r)},$g=(...t)=>new RangeError("Invalid range arguments: "+Cw.inspect(...t)),Yg=(t,e,r)=>{if(r.strictRanges===!0)throw $g([t,e]);return[]},Mw=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},Fw=(t,e,r=1,s={})=>{let i=Number(t),n=Number(e);if(!Number.isInteger(i)||!Number.isInteger(n)){if(s.strictRanges===!0)throw $g([t,e]);return[]}i===0&&(i=0),n===0&&(n=0);let o=i>n,a=String(t),c=String(e),u=String(r);r=Math.max(Math.abs(r),1);let l=El(a)||El(c)||El(u),f=l?Math.max(a.length,c.length,u.length):0,d=l===!1&&Dw(t,e,s)===!1,E=s.transform||Pw(d);if(s.toRegex&&r===1)return Wg(qg(t,f),qg(e,f),!0,s);let g={negatives:[],positives:[]},R=V=>g[V<0?"negatives":"positives"].push(Math.abs(V)),v=[],N=0;for(;o?i>=n:i<=n;)s.toRegex===!0&&r>1?R(i):v.push(xw(E(i,N),f,d)),i=o?i-r:i+r,N++;return s.toRegex===!0?r>1?Lw(g,s):Vg(v,null,{wrap:!1,...s}):v},kw=(t,e,r=1,s={})=>{if(!Yi(t)&&t.length>1||!Yi(e)&&e.length>1)return Yg(t,e,s);let i=s.transform||(d=>String.fromCharCode(d)),n=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=n>o,c=Math.min(n,o),u=Math.max(n,o);if(s.toRegex&&r===1)return Wg(c,u,!1,s);let l=[],f=0;for(;a?n>=o:n<=o;)l.push(i(n,f)),n=a?n-r:n+r,f++;return s.toRegex===!0?Vg(l,null,{wrap:!1,options:s}):l},na=(t,e,r,s={})=>{if(e==null&&ml(t))return[t];if(!ml(t)||!ml(e))return Yg(t,e,s);if(typeof r=="function")return na(t,e,1,{transform:r});if(jg(r))return na(t,e,0,r);let i={...s};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Yi(r)?Yi(t)&&Yi(e)?Fw(t,e,r,i):kw(t,e,Math.max(Math.abs(r),1),i):r!=null&&!jg(r)?Mw(r,i):na(t,e,1,r)};Kg.exports=na});var Zg=m((d1,Xg)=>{"use strict";h();var Bw=gl(),zg=sa(),Uw=(t,e={})=>{let r=(s,i={})=>{let n=zg.isInvalidBrace(i),o=s.invalid===!0&&e.escapeInvalid===!0,a=n===!0||o===!0,c=e.escapeInvalid===!0?"\\":"",u="";if(s.isOpen===!0||s.isClose===!0)return c+s.value;if(s.type==="open")return a?c+s.value:"(";if(s.type==="close")return a?c+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":a?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let l=zg.reduce(s.nodes),f=Bw(...l,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(s.nodes)for(let l of s.nodes)u+=r(l,s);return u};return r(t)};Xg.exports=Uw});var ey=m((_1,Jg)=>{"use strict";h();var Gw=gl(),Qg=ia(),ni=sa(),ds=(t="",e="",r=!1)=>{let s=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?ni.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let n of i)s.push(ds(n,e,r));else for(let n of e)r===!0&&typeof n=="string"&&(n=`{${n}}`),s.push(Array.isArray(n)?ds(i,n,r):i+n);return ni.flatten(s)},jw=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,s=(i,n={})=>{i.queue=[];let o=n,a=n.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(ds(a.pop(),Qg(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(ds(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=ni.reduce(i.nodes);if(ni.exceedsLimit(...f,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=Gw(...f,e);d.length===0&&(d=Qg(i,e)),a.push(ds(a.pop(),d)),i.nodes=[];return}let c=ni.encloseBrace(i),u=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,u=l.queue;for(let f=0;f<i.nodes.length;f++){let d=i.nodes[f];if(d.type==="comma"&&i.type==="brace"){f===1&&u.push(""),u.push("");continue}if(d.type==="close"){a.push(ds(a.pop(),u,c));continue}if(d.value&&d.type!=="open"){u.push(ds(u.pop(),d.value));continue}d.nodes&&s(d,i)}return u};return ni.flatten(s(t))};Jg.exports=jw});var ry=m((E1,ty)=>{"use strict";h();ty.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
8
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var ay=m((y1,oy)=>{"use strict";h();var qw=ia(),{MAX_LENGTH:sy,CHAR_BACKSLASH:yl,CHAR_BACKTICK:Hw,CHAR_COMMA:Ww,CHAR_DOT:Vw,CHAR_LEFT_PARENTHESES:$w,CHAR_RIGHT_PARENTHESES:Yw,CHAR_LEFT_CURLY_BRACE:Kw,CHAR_RIGHT_CURLY_BRACE:zw,CHAR_LEFT_SQUARE_BRACKET:iy,CHAR_RIGHT_SQUARE_BRACKET:ny,CHAR_DOUBLE_QUOTE:Xw,CHAR_SINGLE_QUOTE:Zw,CHAR_NO_BREAK_SPACE:Qw,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Jw}=ry(),eC=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},s=typeof r.maxLength=="number"?Math.min(sy,r.maxLength):sy;if(t.length>s)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${s})`);let i={type:"root",input:t,nodes:[]},n=[i],o=i,a=i,c=0,u=t.length,l=0,f=0,d,E={},g=()=>t[l++],R=v=>{if(v.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&v.type==="text"){a.value+=v.value;return}return o.nodes.push(v),v.parent=o,v.prev=a,a=v,v};for(R({type:"bos"});l<u;)if(o=n[n.length-1],d=g(),!(d===Jw||d===Qw)){if(d===yl){R({type:"text",value:(e.keepEscaping?d:"")+g()});continue}if(d===ny){R({type:"text",value:"\\"+d});continue}if(d===iy){c++;let v=!0,N;for(;l<u&&(N=g());){if(d+=N,N===iy){c++;continue}if(N===yl){d+=g();continue}if(N===ny&&(c--,c===0))break}R({type:"text",value:d});continue}if(d===$w){o=R({type:"paren",nodes:[]}),n.push(o),R({type:"text",value:d});continue}if(d===Yw){if(o.type!=="paren"){R({type:"text",value:d});continue}o=n.pop(),R({type:"text",value:d}),o=n[n.length-1];continue}if(d===Xw||d===Zw||d===Hw){let v=d,N;for(e.keepQuotes!==!0&&(d="");l<u&&(N=g());){if(N===yl){d+=N+g();continue}if(N===v){e.keepQuotes===!0&&(d+=N);break}d+=N}R({type:"text",value:d});continue}if(d===Kw){f++;let N={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=R(N),n.push(o),R({type:"open",value:d});continue}if(d===zw){if(o.type!=="brace"){R({type:"text",value:d});continue}let v="close";o=n.pop(),o.close=!0,R({type:v,value:d}),f--,o=n[n.length-1];continue}if(d===Ww&&f>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:qw(o)}]}R({type:"comma",value:d}),o.commas++;continue}if(d===Vw&&f>0&&o.commas===0){let v=o.nodes;if(f===0||v.length===0){R({type:"text",value:d});continue}if(a.type==="dot"){if(o.range=[],a.value+=d,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){v.pop();let N=v[v.length-1];N.value+=a.value+d,a=N,o.ranges--;continue}R({type:"dot",value:d});continue}R({type:"text",value:d})}do if(o=n.pop(),o.type!=="root"){o.nodes.forEach(V=>{V.nodes||(V.type==="open"&&(V.isOpen=!0),V.type==="close"&&(V.isClose=!0),V.nodes||(V.type="text"),V.invalid=!0)});let v=n[n.length-1],N=v.nodes.indexOf(o);v.nodes.splice(N,1,...o.nodes)}while(n.length>0);return R({type:"eos"}),i};oy.exports=eC});var Sl=m((O1,uy)=>{"use strict";h();var cy=ia(),tC=Zg(),rC=ey(),sC=ay(),Qe=(t,e={})=>{let r=[];if(Array.isArray(t))for(let s of t){let i=Qe.create(s,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Qe.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Qe.parse=(t,e={})=>sC(t,e);Qe.stringify=(t,e={})=>cy(typeof t=="string"?Qe.parse(t,e):t,e);Qe.compile=(t,e={})=>(typeof t=="string"&&(t=Qe.parse(t,e)),tC(t,e));Qe.expand=(t,e={})=>{typeof t=="string"&&(t=Qe.parse(t,e));let r=rC(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Qe.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Qe.compile(t,e):Qe.expand(t,e);uy.exports=Qe});var Ki=m((T1,py)=>{"use strict";h();var iC=T("path"),wt="\\\\/",ly=`[^${wt}]`,Xt="\\.",nC="\\+",oC="\\?",oa="\\/",aC="(?=.)",hy="[^/]",Ol=`(?:${oa}|$)`,fy=`(?:^|${oa})`,Rl=`${Xt}{1,2}${Ol}`,cC=`(?!${Xt})`,uC=`(?!${fy}${Rl})`,lC=`(?!${Xt}{0,1}${Ol})`,hC=`(?!${Rl})`,fC=`[^.${oa}]`,dC=`${hy}*?`,dy={DOT_LITERAL:Xt,PLUS_LITERAL:nC,QMARK_LITERAL:oC,SLASH_LITERAL:oa,ONE_CHAR:aC,QMARK:hy,END_ANCHOR:Ol,DOTS_SLASH:Rl,NO_DOT:cC,NO_DOTS:uC,NO_DOT_SLASH:lC,NO_DOTS_SLASH:hC,QMARK_NO_DOT:fC,STAR:dC,START_ANCHOR:fy},pC={...dy,SLASH_LITERAL:`[${wt}]`,QMARK:ly,STAR:`${ly}*?`,DOTS_SLASH:`${Xt}{1,2}(?:[${wt}]|$)`,NO_DOT:`(?!${Xt})`,NO_DOTS:`(?!(?:^|[${wt}])${Xt}{1,2}(?:[${wt}]|$))`,NO_DOT_SLASH:`(?!${Xt}{0,1}(?:[${wt}]|$))`,NO_DOTS_SLASH:`(?!${Xt}{1,2}(?:[${wt}]|$))`,QMARK_NO_DOT:`[^.${wt}]`,START_ANCHOR:`(?:^|[${wt}])`,END_ANCHOR:`(?:[${wt}]|$)`},_C={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"};py.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:_C,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:iC.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?pC:dy}}});var zi=m(We=>{"use strict";h();var mC=T("path"),EC=process.platform==="win32",{REGEX_BACKSLASH:gC,REGEX_REMOVE_BACKSLASH:yC,REGEX_SPECIAL_CHARS:SC,REGEX_SPECIAL_CHARS_GLOBAL:OC}=Ki();We.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);We.hasRegexChars=t=>SC.test(t);We.isRegexChar=t=>t.length===1&&We.hasRegexChars(t);We.escapeRegex=t=>t.replace(OC,"\\$1");We.toPosixSlashes=t=>t.replace(gC,"/");We.removeBackslashes=t=>t.replace(yC,e=>e==="\\"?"":e);We.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};We.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:EC===!0||mC.sep==="\\";We.escapeLast=(t,e,r)=>{let s=t.lastIndexOf(e,r);return s===-1?t:t[s-1]==="\\"?We.escapeLast(t,e,s-1):`${t.slice(0,s)}\\${t.slice(s)}`};We.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};We.wrapOutput=(t,e={},r={})=>{let s=r.contains?"":"^",i=r.contains?"":"$",n=`${s}(?:${t})${i}`;return e.negated===!0&&(n=`(?:^(?!${n}).*$)`),n}});var Ry=m((N1,Oy)=>{"use strict";h();var _y=zi(),{CHAR_ASTERISK:Tl,CHAR_AT:RC,CHAR_BACKWARD_SLASH:Xi,CHAR_COMMA:TC,CHAR_DOT:Al,CHAR_EXCLAMATION_MARK:vl,CHAR_FORWARD_SLASH:Sy,CHAR_LEFT_CURLY_BRACE:Il,CHAR_LEFT_PARENTHESES:Nl,CHAR_LEFT_SQUARE_BRACKET:AC,CHAR_PLUS:vC,CHAR_QUESTION_MARK:my,CHAR_RIGHT_CURLY_BRACE:IC,CHAR_RIGHT_PARENTHESES:Ey,CHAR_RIGHT_SQUARE_BRACKET:NC}=Ki(),gy=t=>t===Sy||t===Xi,yy=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},bC=(t,e)=>{let r=e||{},s=t.length-1,i=r.parts===!0||r.scanToEnd===!0,n=[],o=[],a=[],c=t,u=-1,l=0,f=0,d=!1,E=!1,g=!1,R=!1,v=!1,N=!1,V=!1,z=!1,Oe=!1,W=!1,G=0,k,L,Z={value:"",depth:0,isGlob:!1},Ne=()=>u>=s,O=()=>c.charCodeAt(u+1),ce=()=>(k=L,c.charCodeAt(++u));for(;u<s;){L=ce();let ke;if(L===Xi){V=Z.backslashes=!0,L=ce(),L===Il&&(N=!0);continue}if(N===!0||L===Il){for(G++;Ne()!==!0&&(L=ce());){if(L===Xi){V=Z.backslashes=!0,ce();continue}if(L===Il){G++;continue}if(N!==!0&&L===Al&&(L=ce())===Al){if(d=Z.isBrace=!0,g=Z.isGlob=!0,W=!0,i===!0)continue;break}if(N!==!0&&L===TC){if(d=Z.isBrace=!0,g=Z.isGlob=!0,W=!0,i===!0)continue;break}if(L===IC&&(G--,G===0)){N=!1,d=Z.isBrace=!0,W=!0;break}}if(i===!0)continue;break}if(L===Sy){if(n.push(u),o.push(Z),Z={value:"",depth:0,isGlob:!1},W===!0)continue;if(k===Al&&u===l+1){l+=2;continue}f=u+1;continue}if(r.noext!==!0&&(L===vC||L===RC||L===Tl||L===my||L===vl)===!0&&O()===Nl){if(g=Z.isGlob=!0,R=Z.isExtglob=!0,W=!0,L===vl&&u===l&&(Oe=!0),i===!0){for(;Ne()!==!0&&(L=ce());){if(L===Xi){V=Z.backslashes=!0,L=ce();continue}if(L===Ey){g=Z.isGlob=!0,W=!0;break}}continue}break}if(L===Tl){if(k===Tl&&(v=Z.isGlobstar=!0),g=Z.isGlob=!0,W=!0,i===!0)continue;break}if(L===my){if(g=Z.isGlob=!0,W=!0,i===!0)continue;break}if(L===AC){for(;Ne()!==!0&&(ke=ce());){if(ke===Xi){V=Z.backslashes=!0,ce();continue}if(ke===NC){E=Z.isBracket=!0,g=Z.isGlob=!0,W=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&L===vl&&u===l){z=Z.negated=!0,l++;continue}if(r.noparen!==!0&&L===Nl){if(g=Z.isGlob=!0,i===!0){for(;Ne()!==!0&&(L=ce());){if(L===Nl){V=Z.backslashes=!0,L=ce();continue}if(L===Ey){W=!0;break}}continue}break}if(g===!0){if(W=!0,i===!0)continue;break}}r.noext===!0&&(R=!1,g=!1);let oe=c,er="",y="";l>0&&(er=c.slice(0,l),c=c.slice(l),f-=l),oe&&g===!0&&f>0?(oe=c.slice(0,f),y=c.slice(f)):g===!0?(oe="",y=c):oe=c,oe&&oe!==""&&oe!=="/"&&oe!==c&&gy(oe.charCodeAt(oe.length-1))&&(oe=oe.slice(0,-1)),r.unescape===!0&&(y&&(y=_y.removeBackslashes(y)),oe&&V===!0&&(oe=_y.removeBackslashes(oe)));let S={prefix:er,input:t,start:l,base:oe,glob:y,isBrace:d,isBracket:E,isGlob:g,isExtglob:R,isGlobstar:v,negated:z,negatedExtglob:Oe};if(r.tokens===!0&&(S.maxDepth=0,gy(L)||o.push(Z),S.tokens=o),r.parts===!0||r.tokens===!0){let ke;for(let Q=0;Q<n.length;Q++){let yt=ke?ke+1:l,St=n[Q],Ve=t.slice(yt,St);r.tokens&&(Q===0&&l!==0?(o[Q].isPrefix=!0,o[Q].value=er):o[Q].value=Ve,yy(o[Q]),S.maxDepth+=o[Q].depth),(Q!==0||Ve!=="")&&a.push(Ve),ke=St}if(ke&&ke+1<t.length){let Q=t.slice(ke+1);a.push(Q),r.tokens&&(o[o.length-1].value=Q,yy(o[o.length-1]),S.maxDepth+=o[o.length-1].depth)}S.slashes=n,S.parts=a}return S};Oy.exports=bC});var vy=m((w1,Ay)=>{"use strict";h();var aa=Ki(),Je=zi(),{MAX_LENGTH:ca,POSIX_REGEX_SOURCE:wC,REGEX_NON_SPECIAL_CHARS:CC,REGEX_SPECIAL_CHARS_BACKREF:PC,REPLACEMENTS:Ty}=aa,DC=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>Je.escapeRegex(i)).join("..")}return r},oi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,bl=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Ty[t]||t;let r={...e},s=typeof r.maxLength=="number"?Math.min(ca,r.maxLength):ca,i=t.length;if(i>s)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${s}`);let n={type:"bos",value:"",output:r.prepend||""},o=[n],a=r.capture?"":"?:",c=Je.isWindows(e),u=aa.globChars(c),l=aa.extglobChars(u),{DOT_LITERAL:f,PLUS_LITERAL:d,SLASH_LITERAL:E,ONE_CHAR:g,DOTS_SLASH:R,NO_DOT:v,NO_DOT_SLASH:N,NO_DOTS_SLASH:V,QMARK:z,QMARK_NO_DOT:Oe,STAR:W,START_ANCHOR:G}=u,k=w=>`(${a}(?:(?!${G}${w.dot?R:f}).)*?)`,L=r.dot?"":v,Z=r.dot?z:Oe,Ne=r.bash===!0?k(r):W;r.capture&&(Ne=`(${Ne})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let O={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Je.removePrefix(t,O),i=t.length;let ce=[],oe=[],er=[],y=n,S,ke=()=>O.index===i-1,Q=O.peek=(w=1)=>t[O.index+w],yt=O.advance=()=>t[++O.index]||"",St=()=>t.slice(O.index+1),Ve=(w="",ae=0)=>{O.consumed+=w,O.index+=ae},mn=w=>{O.output+=w.output!=null?w.output:w.value,Ve(w.value)},AT=()=>{let w=1;for(;Q()==="!"&&(Q(2)!=="("||Q(3)==="?");)yt(),O.start++,w++;return w%2===0?!1:(O.negated=!0,O.start++,!0)},En=w=>{O[w]++,er.push(w)},Lr=w=>{O[w]--,er.pop()},K=w=>{if(y.type==="globstar"){let ae=O.braces>0&&(w.type==="comma"||w.type==="brace"),I=w.extglob===!0||ce.length&&(w.type==="pipe"||w.type==="paren");w.type!=="slash"&&w.type!=="paren"&&!ae&&!I&&(O.output=O.output.slice(0,-y.output.length),y.type="star",y.value="*",y.output=Ne,O.output+=y.output)}if(ce.length&&w.type!=="paren"&&(ce[ce.length-1].inner+=w.value),(w.value||w.output)&&mn(w),y&&y.type==="text"&&w.type==="text"){y.value+=w.value,y.output=(y.output||"")+w.value;return}w.prev=y,o.push(w),y=w},gn=(w,ae)=>{let I={...l[ae],conditions:1,inner:""};I.prev=y,I.parens=O.parens,I.output=O.output;let $=(r.capture?"(":"")+I.open;En("parens"),K({type:w,value:ae,output:O.output?"":g}),K({type:"paren",extglob:!0,value:yt(),output:$}),ce.push(I)},vT=w=>{let ae=w.close+(r.capture?")":""),I;if(w.type==="negate"){let $=Ne;if(w.inner&&w.inner.length>1&&w.inner.includes("/")&&($=k(r)),($!==Ne||ke()||/^\)+$/.test(St()))&&(ae=w.close=`)$))${$}`),w.inner.includes("*")&&(I=St())&&/^\.[^\\/.]+$/.test(I)){let he=bl(I,{...e,fastpaths:!1}).output;ae=w.close=`)${he})${$})`}w.prev.type==="bos"&&(O.negatedExtglob=!0)}K({type:"paren",extglob:!0,value:S,output:ae}),Lr("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let w=!1,ae=t.replace(PC,(I,$,he,Be,ye,Ka)=>Be==="\\"?(w=!0,I):Be==="?"?$?$+Be+(ye?z.repeat(ye.length):""):Ka===0?Z+(ye?z.repeat(ye.length):""):z.repeat(he.length):Be==="."?f.repeat(he.length):Be==="*"?$?$+Be+(ye?Ne:""):Ne:$?I:`\\${I}`);return w===!0&&(r.unescape===!0?ae=ae.replace(/\\/g,""):ae=ae.replace(/\\+/g,I=>I.length%2===0?"\\\\":I?"\\":"")),ae===t&&r.contains===!0?(O.output=t,O):(O.output=Je.wrapOutput(ae,O,e),O)}for(;!ke();){if(S=yt(),S==="\0")continue;if(S==="\\"){let I=Q();if(I==="/"&&r.bash!==!0||I==="."||I===";")continue;if(!I){S+="\\",K({type:"text",value:S});continue}let $=/^\\+/.exec(St()),he=0;if($&&$[0].length>2&&(he=$[0].length,O.index+=he,he%2!==0&&(S+="\\")),r.unescape===!0?S=yt():S+=yt(),O.brackets===0){K({type:"text",value:S});continue}}if(O.brackets>0&&(S!=="]"||y.value==="["||y.value==="[^")){if(r.posix!==!1&&S===":"){let I=y.value.slice(1);if(I.includes("[")&&(y.posix=!0,I.includes(":"))){let $=y.value.lastIndexOf("["),he=y.value.slice(0,$),Be=y.value.slice($+2),ye=wC[Be];if(ye){y.value=he+ye,O.backtrack=!0,yt(),!n.output&&o.indexOf(y)===1&&(n.output=g);continue}}}(S==="["&&Q()!==":"||S==="-"&&Q()==="]")&&(S=`\\${S}`),S==="]"&&(y.value==="["||y.value==="[^")&&(S=`\\${S}`),r.posix===!0&&S==="!"&&y.value==="["&&(S="^"),y.value+=S,mn({value:S});continue}if(O.quotes===1&&S!=='"'){S=Je.escapeRegex(S),y.value+=S,mn({value:S});continue}if(S==='"'){O.quotes=O.quotes===1?0:1,r.keepQuotes===!0&&K({type:"text",value:S});continue}if(S==="("){En("parens"),K({type:"paren",value:S});continue}if(S===")"){if(O.parens===0&&r.strictBrackets===!0)throw new SyntaxError(oi("opening","("));let I=ce[ce.length-1];if(I&&O.parens===I.parens+1){vT(ce.pop());continue}K({type:"paren",value:S,output:O.parens?")":"\\)"}),Lr("parens");continue}if(S==="["){if(r.nobracket===!0||!St().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(oi("closing","]"));S=`\\${S}`}else En("brackets");K({type:"bracket",value:S});continue}if(S==="]"){if(r.nobracket===!0||y&&y.type==="bracket"&&y.value.length===1){K({type:"text",value:S,output:`\\${S}`});continue}if(O.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(oi("opening","["));K({type:"text",value:S,output:`\\${S}`});continue}Lr("brackets");let I=y.value.slice(1);if(y.posix!==!0&&I[0]==="^"&&!I.includes("/")&&(S=`/${S}`),y.value+=S,mn({value:S}),r.literalBrackets===!1||Je.hasRegexChars(I))continue;let $=Je.escapeRegex(y.value);if(O.output=O.output.slice(0,-y.value.length),r.literalBrackets===!0){O.output+=$,y.value=$;continue}y.value=`(${a}${$}|${y.value})`,O.output+=y.value;continue}if(S==="{"&&r.nobrace!==!0){En("braces");let I={type:"brace",value:S,output:"(",outputIndex:O.output.length,tokensIndex:O.tokens.length};oe.push(I),K(I);continue}if(S==="}"){let I=oe[oe.length-1];if(r.nobrace===!0||!I){K({type:"text",value:S,output:S});continue}let $=")";if(I.dots===!0){let he=o.slice(),Be=[];for(let ye=he.length-1;ye>=0&&(o.pop(),he[ye].type!=="brace");ye--)he[ye].type!=="dots"&&Be.unshift(he[ye].value);$=DC(Be,r),O.backtrack=!0}if(I.comma!==!0&&I.dots!==!0){let he=O.output.slice(0,I.outputIndex),Be=O.tokens.slice(I.tokensIndex);I.value=I.output="\\{",S=$="\\}",O.output=he;for(let ye of Be)O.output+=ye.output||ye.value}K({type:"brace",value:S,output:$}),Lr("braces"),oe.pop();continue}if(S==="|"){ce.length>0&&ce[ce.length-1].conditions++,K({type:"text",value:S});continue}if(S===","){let I=S,$=oe[oe.length-1];$&&er[er.length-1]==="braces"&&($.comma=!0,I="|"),K({type:"comma",value:S,output:I});continue}if(S==="/"){if(y.type==="dot"&&O.index===O.start+1){O.start=O.index+1,O.consumed="",O.output="",o.pop(),y=n;continue}K({type:"slash",value:S,output:E});continue}if(S==="."){if(O.braces>0&&y.type==="dot"){y.value==="."&&(y.output=f);let I=oe[oe.length-1];y.type="dots",y.output+=S,y.value+=S,I.dots=!0;continue}if(O.braces+O.parens===0&&y.type!=="bos"&&y.type!=="slash"){K({type:"text",value:S,output:f});continue}K({type:"dot",value:S,output:f});continue}if(S==="?"){if(!(y&&y.value==="(")&&r.noextglob!==!0&&Q()==="("&&Q(2)!=="?"){gn("qmark",S);continue}if(y&&y.type==="paren"){let $=Q(),he=S;if($==="<"&&!Je.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(y.value==="("&&!/[!=<:]/.test($)||$==="<"&&!/<([!=]|\w+>)/.test(St()))&&(he=`\\${S}`),K({type:"text",value:S,output:he});continue}if(r.dot!==!0&&(y.type==="slash"||y.type==="bos")){K({type:"qmark",value:S,output:Oe});continue}K({type:"qmark",value:S,output:z});continue}if(S==="!"){if(r.noextglob!==!0&&Q()==="("&&(Q(2)!=="?"||!/[!=<:]/.test(Q(3)))){gn("negate",S);continue}if(r.nonegate!==!0&&O.index===0){AT();continue}}if(S==="+"){if(r.noextglob!==!0&&Q()==="("&&Q(2)!=="?"){gn("plus",S);continue}if(y&&y.value==="("||r.regex===!1){K({type:"plus",value:S,output:d});continue}if(y&&(y.type==="bracket"||y.type==="paren"||y.type==="brace")||O.parens>0){K({type:"plus",value:S});continue}K({type:"plus",value:d});continue}if(S==="@"){if(r.noextglob!==!0&&Q()==="("&&Q(2)!=="?"){K({type:"at",extglob:!0,value:S,output:""});continue}K({type:"text",value:S});continue}if(S!=="*"){(S==="$"||S==="^")&&(S=`\\${S}`);let I=CC.exec(St());I&&(S+=I[0],O.index+=I[0].length),K({type:"text",value:S});continue}if(y&&(y.type==="globstar"||y.star===!0)){y.type="star",y.star=!0,y.value+=S,y.output=Ne,O.backtrack=!0,O.globstar=!0,Ve(S);continue}let w=St();if(r.noextglob!==!0&&/^\([^?]/.test(w)){gn("star",S);continue}if(y.type==="star"){if(r.noglobstar===!0){Ve(S);continue}let I=y.prev,$=I.prev,he=I.type==="slash"||I.type==="bos",Be=$&&($.type==="star"||$.type==="globstar");if(r.bash===!0&&(!he||w[0]&&w[0]!=="/")){K({type:"star",value:S,output:""});continue}let ye=O.braces>0&&(I.type==="comma"||I.type==="brace"),Ka=ce.length&&(I.type==="pipe"||I.type==="paren");if(!he&&I.type!=="paren"&&!ye&&!Ka){K({type:"star",value:S,output:""});continue}for(;w.slice(0,3)==="/**";){let yn=t[O.index+4];if(yn&&yn!=="/")break;w=w.slice(3),Ve("/**",3)}if(I.type==="bos"&&ke()){y.type="globstar",y.value+=S,y.output=k(r),O.output=y.output,O.globstar=!0,Ve(S);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&!Be&&ke()){O.output=O.output.slice(0,-(I.output+y.output).length),I.output=`(?:${I.output}`,y.type="globstar",y.output=k(r)+(r.strictSlashes?")":"|$)"),y.value+=S,O.globstar=!0,O.output+=I.output+y.output,Ve(S);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&w[0]==="/"){let yn=w[1]!==void 0?"|$":"";O.output=O.output.slice(0,-(I.output+y.output).length),I.output=`(?:${I.output}`,y.type="globstar",y.output=`${k(r)}${E}|${E}${yn})`,y.value+=S,O.output+=I.output+y.output,O.globstar=!0,Ve(S+yt()),K({type:"slash",value:"/",output:""});continue}if(I.type==="bos"&&w[0]==="/"){y.type="globstar",y.value+=S,y.output=`(?:^|${E}|${k(r)}${E})`,O.output=y.output,O.globstar=!0,Ve(S+yt()),K({type:"slash",value:"/",output:""});continue}O.output=O.output.slice(0,-y.output.length),y.type="globstar",y.output=k(r),y.value+=S,O.output+=y.output,O.globstar=!0,Ve(S);continue}let ae={type:"star",value:S,output:Ne};if(r.bash===!0){ae.output=".*?",(y.type==="bos"||y.type==="slash")&&(ae.output=L+ae.output),K(ae);continue}if(y&&(y.type==="bracket"||y.type==="paren")&&r.regex===!0){ae.output=S,K(ae);continue}(O.index===O.start||y.type==="slash"||y.type==="dot")&&(y.type==="dot"?(O.output+=N,y.output+=N):r.dot===!0?(O.output+=V,y.output+=V):(O.output+=L,y.output+=L),Q()!=="*"&&(O.output+=g,y.output+=g)),K(ae)}for(;O.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(oi("closing","]"));O.output=Je.escapeLast(O.output,"["),Lr("brackets")}for(;O.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(oi("closing",")"));O.output=Je.escapeLast(O.output,"("),Lr("parens")}for(;O.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(oi("closing","}"));O.output=Je.escapeLast(O.output,"{"),Lr("braces")}if(r.strictSlashes!==!0&&(y.type==="star"||y.type==="bracket")&&K({type:"maybe_slash",value:"",output:`${E}?`}),O.backtrack===!0){O.output="";for(let w of O.tokens)O.output+=w.output!=null?w.output:w.value,w.suffix&&(O.output+=w.suffix)}return O};bl.fastpaths=(t,e)=>{let r={...e},s=typeof r.maxLength=="number"?Math.min(ca,r.maxLength):ca,i=t.length;if(i>s)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${s}`);t=Ty[t]||t;let n=Je.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:d,STAR:E,START_ANCHOR:g}=aa.globChars(n),R=r.dot?f:l,v=r.dot?d:l,N=r.capture?"":"?:",V={negated:!1,prefix:""},z=r.bash===!0?".*?":E;r.capture&&(z=`(${z})`);let Oe=L=>L.noglobstar===!0?z:`(${N}(?:(?!${g}${L.dot?u:o}).)*?)`,W=L=>{switch(L){case"*":return`${R}${c}${z}`;case".*":return`${o}${c}${z}`;case"*.*":return`${R}${z}${o}${c}${z}`;case"*/*":return`${R}${z}${a}${c}${v}${z}`;case"**":return R+Oe(r);case"**/*":return`(?:${R}${Oe(r)}${a})?${v}${c}${z}`;case"**/*.*":return`(?:${R}${Oe(r)}${a})?${v}${z}${o}${c}${z}`;case"**/.*":return`(?:${R}${Oe(r)}${a})?${o}${c}${z}`;default:{let Z=/^(.*?)\.(\w+)$/.exec(L);if(!Z)return;let Ne=W(Z[1]);return Ne?Ne+o+Z[2]:void 0}}},G=Je.removePrefix(t,V),k=W(G);return k&&r.strictSlashes!==!0&&(k+=`${a}?`),k};Ay.exports=bl});var Ny=m((P1,Iy)=>{"use strict";h();var xC=T("path"),LC=Ry(),wl=vy(),Cl=zi(),MC=Ki(),FC=t=>t&&typeof t=="object"&&!Array.isArray(t),me=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(d=>me(d,e,r));return d=>{for(let E of l){let g=E(d);if(g)return g}return!1}}let s=FC(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!s)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},n=Cl.isWindows(e),o=s?me.compileRe(t,e):me.makeRe(t,e,!1,!0),a=o.state;delete o.state;let c=()=>!1;if(i.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};c=me(i.ignore,l,r)}let u=(l,f=!1)=>{let{isMatch:d,match:E,output:g}=me.test(l,o,e,{glob:t,posix:n}),R={glob:t,state:a,regex:o,posix:n,input:l,output:g,match:E,isMatch:d};return typeof i.onResult=="function"&&i.onResult(R),d===!1?(R.isMatch=!1,f?R:!1):c(l)?(typeof i.onIgnore=="function"&&i.onIgnore(R),R.isMatch=!1,f?R:!1):(typeof i.onMatch=="function"&&i.onMatch(R),f?R:!0)};return r&&(u.state=a),u};me.test=(t,e,r,{glob:s,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let n=r||{},o=n.format||(i?Cl.toPosixSlashes:null),a=t===s,c=a&&o?o(t):t;return a===!1&&(c=o?o(t):t,a=c===s),(a===!1||n.capture===!0)&&(n.matchBase===!0||n.basename===!0?a=me.matchBase(t,e,r,i):a=e.exec(c)),{isMatch:!!a,match:a,output:c}};me.matchBase=(t,e,r,s=Cl.isWindows(r))=>(e instanceof RegExp?e:me.makeRe(e,r)).test(xC.basename(t));me.isMatch=(t,e,r)=>me(e,r)(t);me.parse=(t,e)=>Array.isArray(t)?t.map(r=>me.parse(r,e)):wl(t,{...e,fastpaths:!1});me.scan=(t,e)=>LC(t,e);me.compileRe=(t,e,r=!1,s=!1)=>{if(r===!0)return t.output;let i=e||{},n=i.contains?"":"^",o=i.contains?"":"$",a=`${n}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let c=me.toRegex(a,e);return s===!0&&(c.state=t),c};me.makeRe=(t,e={},r=!1,s=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=wl.fastpaths(t,e)),i.output||(i=wl(t,e)),me.compileRe(i,e,r,s)};me.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};me.constants=MC;Iy.exports=me});var ua=m((x1,by)=>{"use strict";h();by.exports=Ny()});var xy=m((M1,Dy)=>{"use strict";h();var Cy=T("util"),Py=Sl(),Ct=ua(),Pl=zi(),wy=t=>t===""||t==="./",le=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let s=new Set,i=new Set,n=new Set,o=0,a=l=>{n.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<e.length;l++){let f=Ct(String(e[l]),{...r,onResult:a},!0),d=f.state.negated||f.state.negatedExtglob;d&&o++;for(let E of t){let g=f(E,!0);(d?!g.isMatch:g.isMatch)&&(d?s.add(g.output):(s.delete(g.output),i.add(g.output)))}}let u=(o===e.length?[...n]:[...i]).filter(l=>!s.has(l));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(l=>l.replace(/\\/g,"")):e}return u};le.match=le;le.matcher=(t,e)=>Ct(t,e);le.isMatch=(t,e,r)=>Ct(e,r)(t);le.any=le.isMatch;le.not=(t,e,r={})=>{e=[].concat(e).map(String);let s=new Set,i=[],n=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(le(t,e,{...r,onResult:n}));for(let a of i)o.has(a)||s.add(a);return[...s]};le.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Cy.inspect(t)}"`);if(Array.isArray(e))return e.some(s=>le.contains(t,s,r));if(typeof e=="string"){if(wy(t)||wy(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return le.isMatch(t,e,{...r,contains:!0})};le.matchKeys=(t,e,r)=>{if(!Pl.isObject(t))throw new TypeError("Expected the first argument to be an object");let s=le(Object.keys(t),e,r),i={};for(let n of s)i[n]=t[n];return i};le.some=(t,e,r)=>{let s=[].concat(t);for(let i of[].concat(e)){let n=Ct(String(i),r);if(s.some(o=>n(o)))return!0}return!1};le.every=(t,e,r)=>{let s=[].concat(t);for(let i of[].concat(e)){let n=Ct(String(i),r);if(!s.every(o=>n(o)))return!1}return!0};le.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Cy.inspect(t)}"`);return[].concat(e).every(s=>Ct(s,r)(t))};le.capture=(t,e,r)=>{let s=Pl.isWindows(r),n=Ct.makeRe(String(t),{...r,capture:!0}).exec(s?Pl.toPosixSlashes(e):e);if(n)return n.slice(1).map(o=>o===void 0?"":o)};le.makeRe=(...t)=>Ct.makeRe(...t);le.scan=(...t)=>Ct.scan(...t);le.parse=(t,e)=>{let r=[];for(let s of[].concat(t||[]))for(let i of Py(String(s),e))r.push(Ct.parse(i,e));return r};le.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Py(t,e)};le.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return le.braces(t,{...e,expand:!0})};Dy.exports=le});var jy=m(U=>{"use strict";h();Object.defineProperty(U,"__esModule",{value:!0});U.removeDuplicateSlashes=U.matchAny=U.convertPatternsToRe=U.makeRe=U.getPatternParts=U.expandBraceExpansion=U.expandPatternsWithBraceExpansion=U.isAffectDepthOfReadingPattern=U.endsWithSlashGlobStar=U.hasGlobStar=U.getBaseDirectory=U.isPatternRelatedToParentDirectory=U.getPatternsOutsideCurrentDirectory=U.getPatternsInsideCurrentDirectory=U.getPositivePatterns=U.getNegativePatterns=U.isPositivePattern=U.isNegativePattern=U.convertToNegativePattern=U.convertToPositivePattern=U.isDynamicPattern=U.isStaticPattern=void 0;var kC=T("path"),BC=pl(),Dl=xy(),Ly="**",UC="\\",GC=/[*?]|^!/,jC=/\[[^[]*]/,qC=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,HC=/[!*+?@]\([^(]*\)/,WC=/,|\.\./,VC=/(?!^)\/{2,}/g;function My(t,e={}){return!Fy(t,e)}U.isStaticPattern=My;function Fy(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(UC)||GC.test(t)||jC.test(t)||qC.test(t)||e.extglob!==!1&&HC.test(t)||e.braceExpansion!==!1&&$C(t))}U.isDynamicPattern=Fy;function $C(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let s=t.slice(e,r);return WC.test(s)}function YC(t){return la(t)?t.slice(1):t}U.convertToPositivePattern=YC;function KC(t){return"!"+t}U.convertToNegativePattern=KC;function la(t){return t.startsWith("!")&&t[1]!=="("}U.isNegativePattern=la;function ky(t){return!la(t)}U.isPositivePattern=ky;function zC(t){return t.filter(la)}U.getNegativePatterns=zC;function XC(t){return t.filter(ky)}U.getPositivePatterns=XC;function ZC(t){return t.filter(e=>!xl(e))}U.getPatternsInsideCurrentDirectory=ZC;function QC(t){return t.filter(xl)}U.getPatternsOutsideCurrentDirectory=QC;function xl(t){return t.startsWith("..")||t.startsWith("./..")}U.isPatternRelatedToParentDirectory=xl;function JC(t){return BC(t,{flipBackslashes:!1})}U.getBaseDirectory=JC;function eP(t){return t.includes(Ly)}U.hasGlobStar=eP;function By(t){return t.endsWith("/"+Ly)}U.endsWithSlashGlobStar=By;function tP(t){let e=kC.basename(t);return By(t)||My(e)}U.isAffectDepthOfReadingPattern=tP;function rP(t){return t.reduce((e,r)=>e.concat(Uy(r)),[])}U.expandPatternsWithBraceExpansion=rP;function Uy(t){let e=Dl.braces(t,{expand:!0,nodupes:!0});return e.sort((r,s)=>r.length-s.length),e.filter(r=>r!=="")}U.expandBraceExpansion=Uy;function sP(t,e){let{parts:r}=Dl.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}U.getPatternParts=sP;function Gy(t,e){return Dl.makeRe(t,e)}U.makeRe=Gy;function iP(t,e){return t.map(r=>Gy(r,e))}U.convertPatternsToRe=iP;function nP(t,e){return e.some(r=>r.test(t))}U.matchAny=nP;function oP(t){return t.replace(VC,"/")}U.removeDuplicateSlashes=oP});var Hy=m(ha=>{"use strict";h();Object.defineProperty(ha,"__esModule",{value:!0});ha.merge=void 0;var aP=cl();function cP(t){let e=aP(t);return t.forEach(r=>{r.once("error",s=>e.emit("error",s))}),e.once("close",()=>qy(t)),e.once("end",()=>qy(t)),e}ha.merge=cP;function qy(t){t.forEach(e=>e.emit("close"))}});var Wy=m(ai=>{"use strict";h();Object.defineProperty(ai,"__esModule",{value:!0});ai.isEmpty=ai.isString=void 0;function uP(t){return typeof t=="string"}ai.isString=uP;function lP(t){return t===""}ai.isEmpty=lP});var Zt=m(Me=>{"use strict";h();Object.defineProperty(Me,"__esModule",{value:!0});Me.string=Me.stream=Me.pattern=Me.path=Me.fs=Me.errno=Me.array=void 0;var hP=mg();Me.array=hP;var fP=Eg();Me.errno=fP;var dP=gg();Me.fs=dP;var pP=Rg();Me.path=pP;var _P=jy();Me.pattern=_P;var mP=Hy();Me.stream=mP;var EP=Wy();Me.string=EP});var Ky=m(Fe=>{"use strict";h();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.convertPatternGroupToTask=Fe.convertPatternGroupsToTasks=Fe.groupPatternsByBaseDirectory=Fe.getNegativePatternsAsPositive=Fe.getPositivePatterns=Fe.convertPatternsToTasks=Fe.generate=void 0;var mt=Zt();function gP(t,e){let r=Vy(t,e),s=Vy(e.ignore,e),i=$y(r),n=Yy(r,s),o=i.filter(l=>mt.pattern.isStaticPattern(l,e)),a=i.filter(l=>mt.pattern.isDynamicPattern(l,e)),c=Ll(o,n,!1),u=Ll(a,n,!0);return c.concat(u)}Fe.generate=gP;function Vy(t,e){let r=t;return e.braceExpansion&&(r=mt.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(s=>s.includes("/")?s:`**/${s}`)),r.map(s=>mt.pattern.removeDuplicateSlashes(s))}function Ll(t,e,r){let s=[],i=mt.pattern.getPatternsOutsideCurrentDirectory(t),n=mt.pattern.getPatternsInsideCurrentDirectory(t),o=Ml(i),a=Ml(n);return s.push(...Fl(o,e,r)),"."in a?s.push(kl(".",n,e,r)):s.push(...Fl(a,e,r)),s}Fe.convertPatternsToTasks=Ll;function $y(t){return mt.pattern.getPositivePatterns(t)}Fe.getPositivePatterns=$y;function Yy(t,e){return mt.pattern.getNegativePatterns(t).concat(e).map(mt.pattern.convertToPositivePattern)}Fe.getNegativePatternsAsPositive=Yy;function Ml(t){let e={};return t.reduce((r,s)=>{let i=mt.pattern.getBaseDirectory(s);return i in r?r[i].push(s):r[i]=[s],r},e)}Fe.groupPatternsByBaseDirectory=Ml;function Fl(t,e,r){return Object.keys(t).map(s=>kl(s,t[s],e,r))}Fe.convertPatternGroupsToTasks=Fl;function kl(t,e,r,s){return{dynamic:s,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(mt.pattern.convertToNegativePattern))}}Fe.convertPatternGroupToTask=kl});var Xy=m(fa=>{"use strict";h();Object.defineProperty(fa,"__esModule",{value:!0});fa.read=void 0;function yP(t,e,r){e.fs.lstat(t,(s,i)=>{if(s!==null){zy(r,s);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){Bl(r,i);return}e.fs.stat(t,(n,o)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){zy(r,n);return}Bl(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Bl(r,o)})})}fa.read=yP;function zy(t,e){t(e)}function Bl(t,e){t(null,e)}});var Zy=m(da=>{"use strict";h();Object.defineProperty(da,"__esModule",{value:!0});da.read=void 0;function SP(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let s=e.fs.statSync(t);return e.markSymbolicLink&&(s.isSymbolicLink=()=>!0),s}catch(s){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw s}}da.read=SP});var Qy=m(Nr=>{"use strict";h();Object.defineProperty(Nr,"__esModule",{value:!0});Nr.createFileSystemAdapter=Nr.FILE_SYSTEM_ADAPTER=void 0;var pa=T("fs");Nr.FILE_SYSTEM_ADAPTER={lstat:pa.lstat,stat:pa.stat,lstatSync:pa.lstatSync,statSync:pa.statSync};function OP(t){return t===void 0?Nr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Nr.FILE_SYSTEM_ADAPTER),t)}Nr.createFileSystemAdapter=OP});var Jy=m(Gl=>{"use strict";h();Object.defineProperty(Gl,"__esModule",{value:!0});var RP=Qy(),Ul=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=RP.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};Gl.default=Ul});var ps=m(br=>{"use strict";h();Object.defineProperty(br,"__esModule",{value:!0});br.statSync=br.stat=br.Settings=void 0;var eS=Xy(),TP=Zy(),jl=Jy();br.Settings=jl.default;function AP(t,e,r){if(typeof e=="function"){eS.read(t,ql(),e);return}eS.read(t,ql(e),r)}br.stat=AP;function vP(t,e){let r=ql(e);return TP.read(t,r)}br.statSync=vP;function ql(t={}){return t instanceof jl.default?t:new jl.default(t)}});var sS=m((sG,rS)=>{"use strict";h();var tS;rS.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(tS||(tS=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var nS=m((nG,iS)=>{"use strict";h();iS.exports=NP;var IP=sS();function NP(t,e){let r,s,i,n=!0;Array.isArray(t)?(r=[],s=t.length):(i=Object.keys(t),r={},s=i.length);function o(c){function u(){e&&e(c,r),e=null}n?IP(u):u()}function a(c,u,l){r[c]=l,(--s===0||u)&&o(u)}s?i?i.forEach(function(c){t[c](function(u,l){a(c,u,l)})}):t.forEach(function(c,u){c(function(l,f){a(u,l,f)})}):o(null),n=!1}});var Hl=m(ma=>{"use strict";h();Object.defineProperty(ma,"__esModule",{value:!0});ma.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var _a=process.versions.node.split(".");if(_a[0]===void 0||_a[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var oS=Number.parseInt(_a[0],10),bP=Number.parseInt(_a[1],10),aS=10,wP=10,CP=oS>aS,PP=oS===aS&&bP>=wP;ma.IS_SUPPORT_READDIR_WITH_FILE_TYPES=CP||PP});var cS=m(Ea=>{"use strict";h();Object.defineProperty(Ea,"__esModule",{value:!0});Ea.createDirentFromStats=void 0;var Wl=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function DP(t,e){return new Wl(t,e)}Ea.createDirentFromStats=DP});var Vl=m(ga=>{"use strict";h();Object.defineProperty(ga,"__esModule",{value:!0});ga.fs=void 0;var xP=cS();ga.fs=xP});var $l=m(ya=>{"use strict";h();Object.defineProperty(ya,"__esModule",{value:!0});ya.joinPathSegments=void 0;function LP(t,e,r){return t.endsWith(r)?t+e:t+r+e}ya.joinPathSegments=LP});var pS=m(wr=>{"use strict";h();Object.defineProperty(wr,"__esModule",{value:!0});wr.readdir=wr.readdirWithFileTypes=wr.read=void 0;var MP=ps(),uS=nS(),FP=Hl(),lS=Vl(),hS=$l();function kP(t,e,r){if(!e.stats&&FP.IS_SUPPORT_READDIR_WITH_FILE_TYPES){fS(t,e,r);return}dS(t,e,r)}wr.read=kP;function fS(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(s,i)=>{if(s!==null){Sa(r,s);return}let n=i.map(a=>({dirent:a,name:a.name,path:hS.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Yl(r,n);return}let o=n.map(a=>BP(a,e));uS(o,(a,c)=>{if(a!==null){Sa(r,a);return}Yl(r,c)})})}wr.readdirWithFileTypes=fS;function BP(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(s,i)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){r(s);return}r(null,t);return}t.dirent=lS.fs.createDirentFromStats(t.name,i),r(null,t)})}}function dS(t,e,r){e.fs.readdir(t,(s,i)=>{if(s!==null){Sa(r,s);return}let n=i.map(o=>{let a=hS.joinPathSegments(t,o,e.pathSegmentSeparator);return c=>{MP.stat(a,e.fsStatSettings,(u,l)=>{if(u!==null){c(u);return}let f={name:o,path:a,dirent:lS.fs.createDirentFromStats(o,l)};e.stats&&(f.stats=l),c(null,f)})}});uS(n,(o,a)=>{if(o!==null){Sa(r,o);return}Yl(r,a)})})}wr.readdir=dS;function Sa(t,e){t(e)}function Yl(t,e){t(null,e)}});var yS=m(Cr=>{"use strict";h();Object.defineProperty(Cr,"__esModule",{value:!0});Cr.readdir=Cr.readdirWithFileTypes=Cr.read=void 0;var UP=ps(),GP=Hl(),_S=Vl(),mS=$l();function jP(t,e){return!e.stats&&GP.IS_SUPPORT_READDIR_WITH_FILE_TYPES?ES(t,e):gS(t,e)}Cr.read=jP;function ES(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(s=>{let i={dirent:s,name:s.name,path:mS.joinPathSegments(t,s.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let n=e.fs.statSync(i.path);i.dirent=_S.fs.createDirentFromStats(i.name,n)}catch(n){if(e.throwErrorOnBrokenSymbolicLink)throw n}return i})}Cr.readdirWithFileTypes=ES;function gS(t,e){return e.fs.readdirSync(t).map(s=>{let i=mS.joinPathSegments(t,s,e.pathSegmentSeparator),n=UP.statSync(i,e.fsStatSettings),o={name:s,path:i,dirent:_S.fs.createDirentFromStats(s,n)};return e.stats&&(o.stats=n),o})}Cr.readdir=gS});var SS=m(Pr=>{"use strict";h();Object.defineProperty(Pr,"__esModule",{value:!0});Pr.createFileSystemAdapter=Pr.FILE_SYSTEM_ADAPTER=void 0;var ci=T("fs");Pr.FILE_SYSTEM_ADAPTER={lstat:ci.lstat,stat:ci.stat,lstatSync:ci.lstatSync,statSync:ci.statSync,readdir:ci.readdir,readdirSync:ci.readdirSync};function qP(t){return t===void 0?Pr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Pr.FILE_SYSTEM_ADAPTER),t)}Pr.createFileSystemAdapter=qP});var OS=m(zl=>{"use strict";h();Object.defineProperty(zl,"__esModule",{value:!0});var HP=T("path"),WP=ps(),VP=SS(),Kl=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=VP.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,HP.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new WP.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};zl.default=Kl});var Oa=m(Dr=>{"use strict";h();Object.defineProperty(Dr,"__esModule",{value:!0});Dr.Settings=Dr.scandirSync=Dr.scandir=void 0;var RS=pS(),$P=yS(),Xl=OS();Dr.Settings=Xl.default;function YP(t,e,r){if(typeof e=="function"){RS.read(t,Zl(),e);return}RS.read(t,Zl(e),r)}Dr.scandir=YP;function KP(t,e){let r=Zl(e);return $P.read(t,r)}Dr.scandirSync=KP;function Zl(t={}){return t instanceof Xl.default?t:new Xl.default(t)}});var AS=m((vG,TS)=>{"use strict";h();function zP(t){var e=new t,r=e;function s(){var n=e;return n.next?e=n.next:(e=new t,r=e),n.next=null,n}function i(n){r.next=n,r=n}return{get:s,release:i}}TS.exports=zP});var IS=m((NG,Ql)=>{"use strict";h();var XP=AS();function vS(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var s=XP(ZP),i=null,n=null,o=0,a=null,c={push:R,drain:at,saturated:at,pause:l,paused:!1,concurrency:r,running:u,resume:E,idle:g,length:f,getQueue:d,unshift:v,empty:at,kill:V,killAndDrain:z,error:Oe};return c;function u(){return o}function l(){c.paused=!0}function f(){for(var W=i,G=0;W;)W=W.next,G++;return G}function d(){for(var W=i,G=[];W;)G.push(W.value),W=W.next;return G}function E(){if(c.paused){c.paused=!1;for(var W=0;W<c.concurrency;W++)o++,N()}}function g(){return o===0&&c.length()===0}function R(W,G){var k=s.get();k.context=t,k.release=N,k.value=W,k.callback=G||at,k.errorHandler=a,o===c.concurrency||c.paused?n?(n.next=k,n=k):(i=k,n=k,c.saturated()):(o++,e.call(t,k.value,k.worked))}function v(W,G){var k=s.get();k.context=t,k.release=N,k.value=W,k.callback=G||at,o===c.concurrency||c.paused?i?(k.next=i,i=k):(i=k,n=k,c.saturated()):(o++,e.call(t,k.value,k.worked))}function N(W){W&&s.release(W);var G=i;G?c.paused?o--:(n===i&&(n=null),i=G.next,G.next=null,e.call(t,G.value,G.worked),n===null&&c.empty()):--o===0&&c.drain()}function V(){i=null,n=null,c.drain=at}function z(){i=null,n=null,c.drain(),c.drain=at}function Oe(W){a=W}}function at(){}function ZP(){this.value=null,this.callback=at,this.next=null,this.release=at,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,s){var i=t.callback,n=t.errorHandler,o=t.value;t.value=null,t.callback=at,t.errorHandler&&n(r,o),i.call(t.context,r,s),t.release(t)}}function QP(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function s(l,f){e.call(this,l).then(function(d){f(null,d)},f)}var i=vS(t,s,r),n=i.push,o=i.unshift;return i.push=a,i.unshift=c,i.drained=u,i;function a(l){var f=new Promise(function(d,E){n(l,function(g,R){if(g){E(g);return}d(R)})});return f.catch(at),f}function c(l){var f=new Promise(function(d,E){o(l,function(g,R){if(g){E(g);return}d(R)})});return f.catch(at),f}function u(){var l=i.drain,f=new Promise(function(d){i.drain=function(){l(),d()}});return f}}Ql.exports=vS;Ql.exports.promise=QP});var Ra=m(Pt=>{"use strict";h();Object.defineProperty(Pt,"__esModule",{value:!0});Pt.joinPathSegments=Pt.replacePathSegmentSeparator=Pt.isAppliedFilter=Pt.isFatalError=void 0;function JP(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Pt.isFatalError=JP;function eD(t,e){return t===null||t(e)}Pt.isAppliedFilter=eD;function tD(t,e){return t.split(/[/\\]/).join(e)}Pt.replacePathSegmentSeparator=tD;function rD(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Pt.joinPathSegments=rD});var th=m(eh=>{"use strict";h();Object.defineProperty(eh,"__esModule",{value:!0});var sD=Ra(),Jl=class{constructor(e,r){this._root=e,this._settings=r,this._root=sD.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};eh.default=Jl});var ih=m(sh=>{"use strict";h();Object.defineProperty(sh,"__esModule",{value:!0});var iD=T("events"),nD=Oa(),oD=IS(),Ta=Ra(),aD=th(),rh=class extends aD.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=nD.scandir,this._emitter=new iD.EventEmitter,this._queue=oD(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let s={directory:e,base:r};this._queue.push(s,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(s,i)=>{if(s!==null){r(s,void 0);return}for(let n of i)this._handleEntry(n,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Ta.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let s=e.path;r!==void 0&&(e.path=Ta.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ta.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Ta.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(s,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};sh.default=rh});var NS=m(oh=>{"use strict";h();Object.defineProperty(oh,"__esModule",{value:!0});var cD=ih(),nh=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new cD.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{uD(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{lD(e,this._storage)}),this._reader.read()}};oh.default=nh;function uD(t,e){t(e)}function lD(t,e){t(null,e)}});var bS=m(ch=>{"use strict";h();Object.defineProperty(ch,"__esModule",{value:!0});var hD=T("stream"),fD=ih(),ah=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new fD.default(this._root,this._settings),this._stream=new hD.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};ch.default=ah});var wS=m(lh=>{"use strict";h();Object.defineProperty(lh,"__esModule",{value:!0});var dD=Oa(),Aa=Ra(),pD=th(),uh=class extends pD.default{constructor(){super(...arguments),this._scandir=dD.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let s=this._scandir(e,this._settings.fsScandirSettings);for(let i of s)this._handleEntry(i,r)}catch(s){this._handleError(s)}}_handleError(e){if(Aa.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let s=e.path;r!==void 0&&(e.path=Aa.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Aa.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Aa.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(s,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};lh.default=uh});var CS=m(fh=>{"use strict";h();Object.defineProperty(fh,"__esModule",{value:!0});var _D=wS(),hh=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new _D.default(this._root,this._settings)}read(){return this._reader.read()}};fh.default=hh});var PS=m(ph=>{"use strict";h();Object.defineProperty(ph,"__esModule",{value:!0});var mD=T("path"),ED=Oa(),dh=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,mD.sep),this.fsScandirSettings=new ED.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};ph.default=dh});var Ia=m(Dt=>{"use strict";h();Object.defineProperty(Dt,"__esModule",{value:!0});Dt.Settings=Dt.walkStream=Dt.walkSync=Dt.walk=void 0;var DS=NS(),gD=bS(),yD=CS(),_h=PS();Dt.Settings=_h.default;function SD(t,e,r){if(typeof e=="function"){new DS.default(t,va()).read(e);return}new DS.default(t,va(e)).read(r)}Dt.walk=SD;function OD(t,e){let r=va(e);return new yD.default(t,r).read()}Dt.walkSync=OD;function RD(t,e){let r=va(e);return new gD.default(t,r).read()}Dt.walkStream=RD;function va(t={}){return t instanceof _h.default?t:new _h.default(t)}});var Na=m(Eh=>{"use strict";h();Object.defineProperty(Eh,"__esModule",{value:!0});var TD=T("path"),AD=ps(),xS=Zt(),mh=class{constructor(e){this._settings=e,this._fsStatSettings=new AD.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return TD.resolve(this._settings.cwd,e)}_makeEntry(e,r){let s={name:r,path:r,dirent:xS.fs.createDirentFromStats(r,e)};return this._settings.stats&&(s.stats=e),s}_isFatalError(e){return!xS.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Eh.default=mh});var Sh=m(yh=>{"use strict";h();Object.defineProperty(yh,"__esModule",{value:!0});var vD=T("stream"),ID=ps(),ND=Ia(),bD=Na(),gh=class extends bD.default{constructor(){super(...arguments),this._walkStream=ND.walkStream,this._stat=ID.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let s=e.map(this._getFullEntryPath,this),i=new vD.PassThrough({objectMode:!0});i._write=(n,o,a)=>this._getEntry(s[n],e[n],r).then(c=>{c!==null&&r.entryFilter(c)&&i.push(c),n===s.length-1&&i.end(),a()}).catch(a);for(let n=0;n<s.length;n++)i.write(n);return i}_getEntry(e,r,s){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(s.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,s)=>{this._stat(e,this._fsStatSettings,(i,n)=>i===null?r(n):s(i))})}};yh.default=gh});var LS=m(Rh=>{"use strict";h();Object.defineProperty(Rh,"__esModule",{value:!0});var wD=Ia(),CD=Na(),PD=Sh(),Oh=class extends CD.default{constructor(){super(...arguments),this._walkAsync=wD.walk,this._readerStream=new PD.default(this._settings)}dynamic(e,r){return new Promise((s,i)=>{this._walkAsync(e,r,(n,o)=>{n===null?s(o):i(n)})})}async static(e,r){let s=[],i=this._readerStream.static(e,r);return new Promise((n,o)=>{i.once("error",o),i.on("data",a=>s.push(a)),i.once("end",()=>n(s))})}};Rh.default=Oh});var MS=m(Ah=>{"use strict";h();Object.defineProperty(Ah,"__esModule",{value:!0});var Zi=Zt(),Th=class{constructor(e,r,s){this._patterns=e,this._settings=r,this._micromatchOptions=s,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let r=this._getPatternSegments(e),s=this._splitSegmentsIntoSections(r);this._storage.push({complete:s.length<=1,pattern:e,segments:r,sections:s})}}_getPatternSegments(e){return Zi.pattern.getPatternParts(e,this._micromatchOptions).map(s=>Zi.pattern.isDynamicPattern(s,this._settings)?{dynamic:!0,pattern:s,patternRe:Zi.pattern.makeRe(s,this._micromatchOptions)}:{dynamic:!1,pattern:s})}_splitSegmentsIntoSections(e){return Zi.array.splitWhen(e,r=>r.dynamic&&Zi.pattern.hasGlobStar(r.pattern))}};Ah.default=Th});var FS=m(Ih=>{"use strict";h();Object.defineProperty(Ih,"__esModule",{value:!0});var DD=MS(),vh=class extends DD.default{match(e){let r=e.split("/"),s=r.length,i=this._storage.filter(n=>!n.complete||n.segments.length>s);for(let n of i){let o=n.sections[0];if(!n.complete&&s>o.length||r.every((c,u)=>{let l=n.segments[u];return!!(l.dynamic&&l.patternRe.test(c)||!l.dynamic&&l.pattern===c)}))return!0}return!1}};Ih.default=vh});var kS=m(bh=>{"use strict";h();Object.defineProperty(bh,"__esModule",{value:!0});var ba=Zt(),xD=FS(),Nh=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,s){let i=this._getMatcher(r),n=this._getNegativePatternsRe(s);return o=>this._filter(e,o,i,n)}_getMatcher(e){return new xD.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(ba.pattern.isAffectDepthOfReadingPattern);return ba.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,s,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let n=ba.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(n,s)?!1:this._isSkippedByNegativePatterns(n,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let s=r.split("/").length;if(e==="")return s;let i=e.split("/").length;return s-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!ba.pattern.matchAny(e,r)}};bh.default=Nh});var BS=m(Ch=>{"use strict";h();Object.defineProperty(Ch,"__esModule",{value:!0});var _s=Zt(),wh=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let s=_s.pattern.convertPatternsToRe(e,this._micromatchOptions),i=_s.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return n=>this._filter(n,s,i)}_filter(e,r,s){let i=_s.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(i,s))return!1;let n=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,n)&&!this._isMatchToPatterns(i,s,n);return this._settings.unique&&o&&this._createIndexRecord(i),o}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let s=_s.path.makeAbsolute(this._settings.cwd,e);return _s.pattern.matchAny(s,r)}_isMatchToPatterns(e,r,s){let i=_s.pattern.matchAny(e,r);return!i&&s?_s.pattern.matchAny(e+"/",r):i}};Ch.default=wh});var US=m(Dh=>{"use strict";h();Object.defineProperty(Dh,"__esModule",{value:!0});var LD=Zt(),Ph=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return LD.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Dh.default=Ph});var jS=m(Lh=>{"use strict";h();Object.defineProperty(Lh,"__esModule",{value:!0});var GS=Zt(),xh=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=GS.path.makeAbsolute(this._settings.cwd,r),r=GS.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Lh.default=xh});var wa=m(Fh=>{"use strict";h();Object.defineProperty(Fh,"__esModule",{value:!0});var MD=T("path"),FD=kS(),kD=BS(),BD=US(),UD=jS(),Mh=class{constructor(e){this._settings=e,this.errorFilter=new BD.default(this._settings),this.entryFilter=new kD.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new FD.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new UD.default(this._settings)}_getRootDirectory(e){return MD.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Fh.default=Mh});var qS=m(Bh=>{"use strict";h();Object.defineProperty(Bh,"__esModule",{value:!0});var GD=LS(),jD=wa(),kh=class extends jD.default{constructor(){super(...arguments),this._reader=new GD.default(this._settings)}async read(e){let r=this._getRootDirectory(e),s=this._getReaderOptions(e);return(await this.api(r,e,s)).map(n=>s.transform(n))}api(e,r,s){return r.dynamic?this._reader.dynamic(e,s):this._reader.static(r.patterns,s)}};Bh.default=kh});var HS=m(Gh=>{"use strict";h();Object.defineProperty(Gh,"__esModule",{value:!0});var qD=T("stream"),HD=Sh(),WD=wa(),Uh=class extends WD.default{constructor(){super(...arguments),this._reader=new HD.default(this._settings)}read(e){let r=this._getRootDirectory(e),s=this._getReaderOptions(e),i=this.api(r,e,s),n=new qD.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>n.emit("error",o)).on("data",o=>n.emit("data",s.transform(o))).once("end",()=>n.emit("end")),n.once("close",()=>i.destroy()),n}api(e,r,s){return r.dynamic?this._reader.dynamic(e,s):this._reader.static(r.patterns,s)}};Gh.default=Uh});var WS=m(qh=>{"use strict";h();Object.defineProperty(qh,"__esModule",{value:!0});var VD=ps(),$D=Ia(),YD=Na(),jh=class extends YD.default{constructor(){super(...arguments),this._walkSync=$D.walkSync,this._statSync=VD.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let s=[];for(let i of e){let n=this._getFullEntryPath(i),o=this._getEntry(n,i,r);o===null||!r.entryFilter(o)||s.push(o)}return s}_getEntry(e,r,s){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(s.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};qh.default=jh});var VS=m(Wh=>{"use strict";h();Object.defineProperty(Wh,"__esModule",{value:!0});var KD=WS(),zD=wa(),Hh=class extends zD.default{constructor(){super(...arguments),this._reader=new KD.default(this._settings)}read(e){let r=this._getRootDirectory(e),s=this._getReaderOptions(e);return this.api(r,e,s).map(s.transform)}api(e,r,s){return r.dynamic?this._reader.dynamic(e,s):this._reader.static(r.patterns,s)}};Wh.default=Hh});var $S=m(li=>{"use strict";h();Object.defineProperty(li,"__esModule",{value:!0});li.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var ui=T("fs"),XD=T("os"),ZD=Math.max(XD.cpus().length,1);li.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:ui.lstat,lstatSync:ui.lstatSync,stat:ui.stat,statSync:ui.statSync,readdir:ui.readdir,readdirSync:ui.readdirSync};var Vh=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,ZD),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},li.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};li.default=Vh});var zh=m((Tj,KS)=>{"use strict";h();var YS=Ky(),QD=qS(),JD=HS(),ex=VS(),$h=$S(),ct=Zt();async function Yh(t,e){Et(t);let r=Kh(t,QD.default,e),s=await Promise.all(r);return ct.array.flatten(s)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(u,l){Et(u);let f=Kh(u,ex.default,l);return ct.array.flatten(f)}t.sync=e;function r(u,l){Et(u);let f=Kh(u,JD.default,l);return ct.stream.merge(f)}t.stream=r;function s(u,l){Et(u);let f=[].concat(u),d=new $h.default(l);return YS.generate(f,d)}t.generateTasks=s;function i(u,l){Et(u);let f=new $h.default(l);return ct.pattern.isDynamicPattern(u,f)}t.isDynamicPattern=i;function n(u){return Et(u),ct.path.escape(u)}t.escapePath=n;function o(u){return Et(u),ct.path.convertPathToPattern(u)}t.convertPathToPattern=o;let a;(function(u){function l(d){return Et(d),ct.path.escapePosixPath(d)}u.escapePath=l;function f(d){return Et(d),ct.path.convertPosixPathToPattern(d)}u.convertPathToPattern=f})(a=t.posix||(t.posix={}));let c;(function(u){function l(d){return Et(d),ct.path.escapeWindowsPath(d)}u.escapePath=l;function f(d){return Et(d),ct.path.convertWindowsPathToPattern(d)}u.convertPathToPattern=f})(c=t.win32||(t.win32={}))})(Yh||(Yh={}));function Kh(t,e,r){let s=[].concat(t),i=new $h.default(r),n=YS.generate(s,i),o=new e(i);return n.map(o.read,o)}function Et(t){if(![].concat(t).every(s=>ct.string.isString(s)&&!ct.string.isEmpty(s)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}KS.exports=Yh});var XS=m(ms=>{"use strict";h();var{promisify:tx}=T("util"),zS=T("fs");async function Xh(t,e,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return(await tx(zS[t])(r))[e]()}catch(s){if(s.code==="ENOENT")return!1;throw s}}function Zh(t,e,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return zS[t](r)[e]()}catch(s){if(s.code==="ENOENT")return!1;throw s}}ms.isFile=Xh.bind(null,"stat","isFile");ms.isDirectory=Xh.bind(null,"stat","isDirectory");ms.isSymlink=Xh.bind(null,"lstat","isSymbolicLink");ms.isFileSync=Zh.bind(null,"statSync","isFile");ms.isDirectorySync=Zh.bind(null,"statSync","isDirectory");ms.isSymlinkSync=Zh.bind(null,"lstatSync","isSymbolicLink")});var tO=m((Nj,Qh)=>{"use strict";h();var Es=T("path"),ZS=XS(),QS=t=>t.length>1?`{${t.join(",")}}`:t[0],JS=(t,e)=>{let r=t[0]==="!"?t.slice(1):t;return Es.isAbsolute(r)?r:Es.join(e,r)},rx=(t,e)=>Es.extname(t)?`**/${t}`:`**/${t}.${QS(e)}`,eO=(t,e)=>{if(e.files&&!Array.isArray(e.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof e.files}\``);if(e.extensions&&!Array.isArray(e.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof e.extensions}\``);return e.files&&e.extensions?e.files.map(r=>Es.posix.join(t,rx(r,e.extensions))):e.files?e.files.map(r=>Es.posix.join(t,`**/${r}`)):e.extensions?[Es.posix.join(t,`**/*.${QS(e.extensions)}`)]:[Es.posix.join(t,"**")]};Qh.exports=async(t,e)=>{if(e={cwd:process.cwd(),...e},typeof e.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);let r=await Promise.all([].concat(t).map(async s=>await ZS.isDirectory(JS(s,e.cwd))?eO(s,e):s));return[].concat.apply([],r)};Qh.exports.sync=(t,e)=>{if(e={cwd:process.cwd(),...e},typeof e.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);let r=[].concat(t).map(s=>ZS.isDirectorySync(JS(s,e.cwd))?eO(s,e):s);return[].concat.apply([],r)}});var hO=m((wj,lO)=>{"use strict";h();function rO(t){return Array.isArray(t)?t:[t]}var oO="",sO=" ",Jh="\\",sx=/^\s+$/,ix=/(?:[^\\]|^)\\$/,nx=/^\\!/,ox=/^\\#/,ax=/\r?\n/g,cx=/^\.*\/|^\.+$/,ef="/",aO="node-ignore";typeof Symbol<"u"&&(aO=Symbol.for("node-ignore"));var iO=aO,ux=(t,e,r)=>Object.defineProperty(t,e,{value:r}),lx=/([0-z])-([0-z])/g,cO=()=>!1,hx=t=>t.replace(lx,(e,r,s)=>r.charCodeAt(0)<=s.charCodeAt(0)?e:oO),fx=t=>{let{length:e}=t;return t.slice(0,e-e%2)},dx=[[/\\?\s+$/,t=>t.indexOf("\\")===0?sO:oO],[/\\\s/g,()=>sO],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t,e,r)=>{let s=r.replace(/\\\*/g,"[^\\/]*");return e+s}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Jh],[/\\\\/g,()=>Jh],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,i)=>e===Jh?`\\[${r}${fx(s)}${i}`:i==="]"&&s.length%2===0?`[${hx(r)}${s}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],nO=Object.create(null),px=(t,e)=>{let r=nO[t];return r||(r=dx.reduce((s,i)=>s.replace(i[0],i[1].bind(t)),t),nO[t]=r),e?new RegExp(r,"i"):new RegExp(r)},sf=t=>typeof t=="string",_x=t=>t&&sf(t)&&!sx.test(t)&&!ix.test(t)&&t.indexOf("#")!==0,mx=t=>t.split(ax),tf=class{constructor(e,r,s,i){this.origin=e,this.pattern=r,this.negative=s,this.regex=i}},Ex=(t,e)=>{let r=t,s=!1;t.indexOf("!")===0&&(s=!0,t=t.substr(1)),t=t.replace(nx,"!").replace(ox,"#");let i=px(t,e);return new tf(r,t,s,i)},gx=(t,e)=>{throw new e(t)},Qt=(t,e,r)=>sf(t)?t?Qt.isNotRelative(t)?r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${e}\``,TypeError),uO=t=>cx.test(t);Qt.isNotRelative=uO;Qt.convert=t=>t;var rf=class{constructor({ignorecase:e=!0,ignoreCase:r=e,allowRelativePaths:s=!1}={}){ux(this,iO,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=s,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[iO]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(_x(e)){let r=Ex(e,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(e){return this._added=!1,rO(sf(e)?mx(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,r){let s=!1,i=!1;return this._rules.forEach(n=>{let{negative:o}=n;if(i===o&&s!==i||o&&!s&&!i&&!r)return;n.regex.test(e)&&(s=!o,i=o)}),{ignored:s,unignored:i}}_test(e,r,s,i){let n=e&&Qt.convert(e);return Qt(n,e,this._allowRelativePaths?cO:gx),this._t(n,r,s,i)}_t(e,r,s,i){if(e in r)return r[e];if(i||(i=e.split(ef)),i.pop(),!i.length)return r[e]=this._testOne(e,s);let n=this._t(i.join(ef)+ef,r,s,i);return r[e]=n.ignored?n:this._testOne(e,s)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return rO(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},Ca=t=>new rf(t),yx=t=>Qt(t&&Qt.convert(t),t,cO);Ca.isPathValid=yx;Ca.default=Ca;lO.exports=Ca;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");Qt.convert=t;let e=/^[a-z]:\//i;Qt.isNotRelative=r=>e.test(r)||uO(r)}});var $O=m((Kq,VO)=>{"use strict";h();var an=T("fs"),{Readable:Vx}=T("stream"),on=T("path"),{promisify:ka}=T("util"),lf=ua(),$x=ka(an.readdir),Yx=ka(an.stat),UO=ka(an.lstat),Kx=ka(an.realpath),zx="!",HO="READDIRP_RECURSIVE_ERROR",Xx=new Set(["ENOENT","EPERM","EACCES","ELOOP",HO]),hf="files",WO="directories",Ma="files_directories",La="all",GO=[hf,WO,Ma,La],Zx=t=>Xx.has(t.code),[jO,Qx]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),Jx=process.platform==="win32"&&(jO>10||jO===10&&Qx>=5),qO=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){let e=lf(t.trim());return r=>e(r.basename)}if(Array.isArray(t)){let e=[],r=[];for(let s of t){let i=s.trim();i.charAt(0)===zx?r.push(lf(i.slice(1))):e.push(lf(i))}return r.length>0?e.length>0?s=>e.some(i=>i(s.basename))&&!r.some(i=>i(s.basename)):s=>!r.some(i=>i(s.basename)):s=>e.some(i=>i(s.basename))}}},Fa=class t extends Vx{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:hf,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});let r={...t.defaultOptions,...e},{root:s,type:i}=r;this._fileFilter=qO(r.fileFilter),this._directoryFilter=qO(r.directoryFilter);let n=r.lstat?UO:Yx;Jx?this._stat=o=>n(o,{bigint:!0}):this._stat=n,this._maxDepth=r.depth,this._wantsDir=[WO,Ma,La].includes(i),this._wantsFile=[hf,Ma,La].includes(i),this._wantsEverything=i===La,this._root=on.resolve(s),this._isDirent="Dirent"in an&&!r.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(s,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){let{path:r,depth:s,files:i=[]}=this.parent||{};if(i.length>0){let n=i.splice(0,e).map(o=>this._formatEntry(o,r));for(let o of await Promise.all(n)){if(this.destroyed)return;let a=await this._getEntryType(o);a==="directory"&&this._directoryFilter(o)?(s<=this._maxDepth&&this.parents.push(this._exploreDir(o.fullPath,s+1)),this._wantsDir&&(this.push(o),e--)):(a==="file"||this._includeAsFile(o))&&this._fileFilter(o)&&this._wantsFile&&(this.push(o),e--)}}else{let n=this.parents.pop();if(!n){this.push(null);break}if(this.parent=await n,this.destroyed)return}}}catch(r){this.destroy(r)}finally{this.reading=!1}}}async _exploreDir(e,r){let s;try{s=await $x(e,this._rdOptions)}catch(i){this._onError(i)}return{files:s,depth:r,path:e}}async _formatEntry(e,r){let s;try{let i=this._isDirent?e.name:e,n=on.resolve(on.join(r,i));s={path:on.relative(this._root,n),fullPath:n,basename:i},s[this._statsProp]=this._isDirent?e:await this._stat(n)}catch(i){this._onError(i)}return s}_onError(e){Zx(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){let r=e&&e[this._statsProp];if(r){if(r.isFile())return"file";if(r.isDirectory())return"directory";if(r&&r.isSymbolicLink()){let s=e.fullPath;try{let i=await Kx(s),n=await UO(i);if(n.isFile())return"file";if(n.isDirectory()){let o=i.length;if(s.startsWith(i)&&s.substr(o,1)===on.sep){let a=new Error(`Circular symlink detected: "${s}" points to "${i}"`);return a.code=HO,this._onError(a)}return"directory"}}catch(i){this._onError(i)}}}}_includeAsFile(e){let r=e&&e[this._statsProp];return r&&this._wantsEverything&&!r.isDirectory()}},di=(t,e={})=>{let r=e.entryType||e.type;if(r==="both"&&(r=Ma),r&&(e.type=r),t){if(typeof t!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(r&&!GO.includes(r))throw new Error(`readdirp: Invalid type passed. Use one of ${GO.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new Fa(e)},eL=(t,e={})=>new Promise((r,s)=>{let i=[];di(t,e).on("data",n=>i.push(n)).on("end",()=>r(i)).on("error",n=>s(n))});di.promise=eL;di.ReaddirpStream=Fa;di.default=di;VO.exports=di});var ff=m((Xq,YO)=>{"use strict";h();YO.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var s="";if(r>4&&t[3]==="\\"){var i=t[2];(i==="?"||i===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),s="//")}var n=t.split(/[/\\]+/);return e!==!1&&n[n.length-1]===""&&n.pop(),s+n.join("/")}});var JO=m((ZO,QO)=>{"use strict";h();Object.defineProperty(ZO,"__esModule",{value:!0});var XO=ua(),tL=ff(),KO="!",rL={returnIndex:!1},sL=t=>Array.isArray(t)?t:[t],iL=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=XO(t,e);return s=>t===s||r(s)}return t instanceof RegExp?r=>t.test(r):r=>!1},zO=(t,e,r,s)=>{let i=Array.isArray(r),n=i?r[0]:r;if(!i&&typeof n!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(n));let o=tL(n);for(let c=0;c<e.length;c++){let u=e[c];if(u(o))return s?-1:!1}let a=i&&[o].concat(r.slice(1));for(let c=0;c<t.length;c++){let u=t[c];if(i?u(...a):u(o))return s?c:!0}return s?-1:!1},df=(t,e,r=rL)=>{if(t==null)throw new TypeError("anymatch: specify first argument");let s=typeof r=="boolean"?{returnIndex:r}:r,i=s.returnIndex||!1,n=sL(t),o=n.filter(c=>typeof c=="string"&&c.charAt(0)===KO).map(c=>c.slice(1)).map(c=>XO(c,s)),a=n.filter(c=>typeof c!="string"||typeof c=="string"&&c.charAt(0)!==KO).map(c=>iL(c,s));return e==null?(c,u=!1)=>zO(a,o,c,typeof u=="boolean"?u:!1):zO(a,o,e,i)};df.default=df;QO.exports=df});var eR=m((Jq,nL)=>{nL.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var rR=m((eH,tR)=>{"use strict";h();tR.exports=eR()});var iR=m((rH,sR)=>{"use strict";h();var oL=T("path"),aL=rR(),cL=new Set(aL);sR.exports=t=>cL.has(oL.extname(t).slice(1).toLowerCase())});var Ba=m(D=>{"use strict";h();var{sep:uL}=T("path"),{platform:pf}=process,lL=T("os");D.EV_ALL="all";D.EV_READY="ready";D.EV_ADD="add";D.EV_CHANGE="change";D.EV_ADD_DIR="addDir";D.EV_UNLINK="unlink";D.EV_UNLINK_DIR="unlinkDir";D.EV_RAW="raw";D.EV_ERROR="error";D.STR_DATA="data";D.STR_END="end";D.STR_CLOSE="close";D.FSEVENT_CREATED="created";D.FSEVENT_MODIFIED="modified";D.FSEVENT_DELETED="deleted";D.FSEVENT_MOVED="moved";D.FSEVENT_CLONED="cloned";D.FSEVENT_UNKNOWN="unknown";D.FSEVENT_TYPE_FILE="file";D.FSEVENT_TYPE_DIRECTORY="directory";D.FSEVENT_TYPE_SYMLINK="symlink";D.KEY_LISTENERS="listeners";D.KEY_ERR="errHandlers";D.KEY_RAW="rawEmitters";D.HANDLER_KEYS=[D.KEY_LISTENERS,D.KEY_ERR,D.KEY_RAW];D.DOT_SLASH=`.${uL}`;D.BACK_SLASH_RE=/\\/g;D.DOUBLE_SLASH_RE=/\/\//;D.SLASH_OR_BACK_SLASH_RE=/[/\\]/;D.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;D.REPLACER_RE=/^\.[/\\]/;D.SLASH="/";D.SLASH_SLASH="//";D.BRACE_START="{";D.BANG="!";D.ONE_DOT=".";D.TWO_DOTS="..";D.STAR="*";D.GLOBSTAR="**";D.ROOT_GLOBSTAR="/**/*";D.SLASH_GLOBSTAR="/**";D.DIR_SUFFIX="Dir";D.ANYMATCH_OPTS={dot:!0};D.STRING_TYPE="string";D.FUNCTION_TYPE="function";D.EMPTY_STR="";D.EMPTY_FN=()=>{};D.IDENTITY_FN=t=>t;D.isWindows=pf==="win32";D.isMacos=pf==="darwin";D.isLinux=pf==="linux";D.isIBMi=lL.type()==="OS400"});var lR=m((oH,uR)=>{"use strict";h();var Jt=T("fs"),ve=T("path"),{promisify:hn}=T("util"),hL=iR(),{isWindows:fL,isLinux:dL,EMPTY_FN:pL,EMPTY_STR:_L,KEY_LISTENERS:pi,KEY_ERR:_f,KEY_RAW:cn,HANDLER_KEYS:mL,EV_CHANGE:Ga,EV_ADD:Ua,EV_ADD_DIR:EL,EV_ERROR:oR,STR_DATA:gL,STR_END:yL,BRACE_START:SL,STAR:OL}=Ba(),RL="watch",TL=hn(Jt.open),aR=hn(Jt.stat),AL=hn(Jt.lstat),vL=hn(Jt.close),mf=hn(Jt.realpath),IL={lstat:AL,stat:aR},gf=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},un=(t,e,r)=>{let s=t[e];s instanceof Set||(t[e]=s=new Set([s])),s.add(r)},NL=t=>e=>{let r=t[e];r instanceof Set?r.clear():delete t[e]},ln=(t,e,r)=>{let s=t[e];s instanceof Set?s.delete(r):s===r&&delete t[e]},cR=t=>t instanceof Set?t.size===0:!t,ja=new Map;function nR(t,e,r,s,i){let n=(o,a)=>{r(t),i(o,a,{watchedPath:t}),a&&t!==a&&qa(ve.resolve(t,a),pi,ve.join(t,a))};try{return Jt.watch(t,e,n)}catch(o){s(o)}}var qa=(t,e,r,s,i)=>{let n=ja.get(t);n&&gf(n[e],o=>{o(r,s,i)})},bL=(t,e,r,s)=>{let{listener:i,errHandler:n,rawEmitter:o}=s,a=ja.get(e),c;if(!r.persistent)return c=nR(t,r,i,n,o),c.close.bind(c);if(a)un(a,pi,i),un(a,_f,n),un(a,cn,o);else{if(c=nR(t,r,qa.bind(null,e,pi),n,qa.bind(null,e,cn)),!c)return;c.on(oR,async u=>{let l=qa.bind(null,e,_f);if(a.watcherUnusable=!0,fL&&u.code==="EPERM")try{let f=await TL(t,"r");await vL(f),l(u)}catch{}else l(u)}),a={listeners:i,errHandlers:n,rawEmitters:o,watcher:c},ja.set(e,a)}return()=>{ln(a,pi,i),ln(a,_f,n),ln(a,cn,o),cR(a.listeners)&&(a.watcher.close(),ja.delete(e),mL.forEach(NL(a)),a.watcher=void 0,Object.freeze(a))}},Ef=new Map,wL=(t,e,r,s)=>{let{listener:i,rawEmitter:n}=s,o=Ef.get(e),a=new Set,c=new Set,u=o&&o.options;return u&&(u.persistent<r.persistent||u.interval>r.interval)&&(a=o.listeners,c=o.rawEmitters,Jt.unwatchFile(e),o=void 0),o?(un(o,pi,i),un(o,cn,n)):(o={listeners:i,rawEmitters:n,options:r,watcher:Jt.watchFile(e,r,(l,f)=>{gf(o.rawEmitters,E=>{E(Ga,e,{curr:l,prev:f})});let d=l.mtimeMs;(l.size!==f.size||d>f.mtimeMs||d===0)&&gf(o.listeners,E=>E(t,l))})},Ef.set(e,o)),()=>{ln(o,pi,i),ln(o,cn,n),cR(o.listeners)&&(Ef.delete(e),Jt.unwatchFile(e),o.options=o.watcher=void 0,Object.freeze(o))}},yf=class{constructor(e){this.fsw=e,this._boundHandleError=r=>e._handleError(r)}_watchWithNodeFs(e,r){let s=this.fsw.options,i=ve.dirname(e),n=ve.basename(e);this.fsw._getWatchedDir(i).add(n);let a=ve.resolve(e),c={persistent:s.persistent};r||(r=pL);let u;return s.usePolling?(c.interval=s.enableBinaryInterval&&hL(n)?s.binaryInterval:s.interval,u=wL(e,a,c,{listener:r,rawEmitter:this.fsw._emitRaw})):u=bL(e,a,c,{listener:r,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),u}_handleFile(e,r,s){if(this.fsw.closed)return;let i=ve.dirname(e),n=ve.basename(e),o=this.fsw._getWatchedDir(i),a=r;if(o.has(n))return;let c=async(l,f)=>{if(this.fsw._throttle(RL,e,5)){if(!f||f.mtimeMs===0)try{let d=await aR(e);if(this.fsw.closed)return;let E=d.atimeMs,g=d.mtimeMs;(!E||E<=g||g!==a.mtimeMs)&&this.fsw._emit(Ga,e,d),dL&&a.ino!==d.ino?(this.fsw._closeFile(l),a=d,this.fsw._addPathCloser(l,this._watchWithNodeFs(e,c))):a=d}catch{this.fsw._remove(i,n)}else if(o.has(n)){let d=f.atimeMs,E=f.mtimeMs;(!d||d<=E||E!==a.mtimeMs)&&this.fsw._emit(Ga,e,f),a=f}}},u=this._watchWithNodeFs(e,c);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(Ua,e,0))return;this.fsw._emit(Ua,e,r)}return u}async _handleSymlink(e,r,s,i){if(this.fsw.closed)return;let n=e.fullPath,o=this.fsw._getWatchedDir(r);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let a;try{a=await mf(s)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(o.has(i)?this.fsw._symlinkPaths.get(n)!==a&&(this.fsw._symlinkPaths.set(n,a),this.fsw._emit(Ga,s,e.stats)):(o.add(i),this.fsw._symlinkPaths.set(n,a),this.fsw._emit(Ua,s,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(n))return!0;this.fsw._symlinkPaths.set(n,!0)}_handleRead(e,r,s,i,n,o,a){if(e=ve.join(e,_L),!s.hasGlob&&(a=this.fsw._throttle("readdir",e,1e3),!a))return;let c=this.fsw._getWatchedDir(s.path),u=new Set,l=this.fsw._readdirp(e,{fileFilter:f=>s.filterPath(f),directoryFilter:f=>s.filterDir(f),depth:0}).on(gL,async f=>{if(this.fsw.closed){l=void 0;return}let d=f.path,E=ve.join(e,d);if(u.add(d),!(f.stats.isSymbolicLink()&&await this._handleSymlink(f,e,E,d))){if(this.fsw.closed){l=void 0;return}(d===i||!i&&!c.has(d))&&(this.fsw._incrReadyCount(),E=ve.join(n,ve.relative(n,E)),this._addToNodeFs(E,r,s,o+1))}}).on(oR,this._boundHandleError);return new Promise(f=>l.once(yL,()=>{if(this.fsw.closed){l=void 0;return}let d=a?a.clear():!1;f(),c.getChildren().filter(E=>E!==e&&!u.has(E)&&(!s.hasGlob||s.filterPath({fullPath:ve.resolve(e,E)}))).forEach(E=>{this.fsw._remove(e,E)}),l=void 0,d&&this._handleRead(e,!1,s,i,n,o,a)}))}async _handleDir(e,r,s,i,n,o,a){let c=this.fsw._getWatchedDir(ve.dirname(e)),u=c.has(ve.basename(e));!(s&&this.fsw.options.ignoreInitial)&&!n&&!u&&(!o.hasGlob||o.globFilter(e))&&this.fsw._emit(EL,e,r),c.add(ve.basename(e)),this.fsw._getWatchedDir(e);let l,f,d=this.fsw.options.depth;if((d==null||i<=d)&&!this.fsw._symlinkPaths.has(a)){if(!n&&(await this._handleRead(e,s,o,n,e,i,l),this.fsw.closed))return;f=this._watchWithNodeFs(e,(E,g)=>{g&&g.mtimeMs===0||this._handleRead(E,!1,o,n,e,i,l)})}return f}async _addToNodeFs(e,r,s,i,n){let o=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return o(),!1;let a=this.fsw._getWatchHelpers(e,i);!a.hasGlob&&s&&(a.hasGlob=s.hasGlob,a.globFilter=s.globFilter,a.filterPath=c=>s.filterPath(c),a.filterDir=c=>s.filterDir(c));try{let c=await IL[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,c))return o(),!1;let u=this.fsw.options.followSymlinks&&!e.includes(OL)&&!e.includes(SL),l;if(c.isDirectory()){let f=ve.resolve(e),d=u?await mf(e):e;if(this.fsw.closed||(l=await this._handleDir(a.watchPath,c,r,i,n,a,d),this.fsw.closed))return;f!==d&&d!==void 0&&this.fsw._symlinkPaths.set(f,d)}else if(c.isSymbolicLink()){let f=u?await mf(e):e;if(this.fsw.closed)return;let d=ve.dirname(a.watchPath);if(this.fsw._getWatchedDir(d).add(a.watchPath),this.fsw._emit(Ua,a.watchPath,c),l=await this._handleDir(d,c,r,i,e,a,f),this.fsw.closed)return;f!==void 0&&this.fsw._symlinkPaths.set(ve.resolve(e),f)}else l=this._handleFile(a.watchPath,c,r);return o(),this.fsw._addPathCloser(e,l),!1}catch(c){if(this.fsw._handleError(c))return o(),e}}};uR.exports=yf});var ER=m((cH,Nf)=>{"use strict";h();var vf=T("fs"),Ie=T("path"),{promisify:If}=T("util"),_i;try{_i=T("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(_i){let t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){let e=Number.parseInt(t[1],10),r=Number.parseInt(t[2],10);e===8&&r<16&&(_i=void 0)}}var{EV_ADD:Sf,EV_CHANGE:CL,EV_ADD_DIR:hR,EV_UNLINK:Ha,EV_ERROR:PL,STR_DATA:DL,STR_END:xL,FSEVENT_CREATED:LL,FSEVENT_MODIFIED:ML,FSEVENT_DELETED:FL,FSEVENT_MOVED:kL,FSEVENT_UNKNOWN:BL,FSEVENT_TYPE_FILE:UL,FSEVENT_TYPE_DIRECTORY:fn,FSEVENT_TYPE_SYMLINK:mR,ROOT_GLOBSTAR:fR,DIR_SUFFIX:GL,DOT_SLASH:dR,FUNCTION_TYPE:Of,EMPTY_FN:jL,IDENTITY_FN:qL}=Ba(),HL=t=>isNaN(t)?{}:{depth:t},Tf=If(vf.stat),WL=If(vf.lstat),pR=If(vf.realpath),VL={stat:Tf,lstat:WL},ys=new Map,$L=10,YL=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),KL=(t,e)=>({stop:_i.watch(t,e)});function zL(t,e,r,s){let i=Ie.extname(e)?Ie.dirname(e):e,n=Ie.dirname(i),o=ys.get(i);XL(n)&&(i=n);let a=Ie.resolve(t),c=a!==e,u=(f,d,E)=>{c&&(f=f.replace(e,a)),(f===a||!f.indexOf(a+Ie.sep))&&r(f,d,E)},l=!1;for(let f of ys.keys())if(e.indexOf(Ie.resolve(f)+Ie.sep)===0){i=f,o=ys.get(i),l=!0;break}return o||l?o.listeners.add(u):(o={listeners:new Set([u]),rawEmitter:s,watcher:KL(i,(f,d)=>{if(!o.listeners.size)return;let E=_i.getInfo(f,d);o.listeners.forEach(g=>{g(f,d,E)}),o.rawEmitter(E.event,f,E)})},ys.set(i,o)),()=>{let f=o.listeners;if(f.delete(u),!f.size&&(ys.delete(i),o.watcher))return o.watcher.stop().then(()=>{o.rawEmitter=o.watcher=void 0,Object.freeze(o)})}}var XL=t=>{let e=0;for(let r of ys.keys())if(r.indexOf(t)===0&&(e++,e>=$L))return!0;return!1},ZL=()=>_i&&ys.size<128,Rf=(t,e)=>{let r=0;for(;!t.indexOf(e)&&(t=Ie.dirname(t))!==e;)r++;return r},_R=(t,e)=>t.type===fn&&e.isDirectory()||t.type===mR&&e.isSymbolicLink()||t.type===UL&&e.isFile(),Af=class{constructor(e){this.fsw=e}checkIgnored(e,r){let s=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,r))return s.add(e),r&&r.isDirectory()&&s.add(e+fR),!0;s.delete(e),s.delete(e+fR)}addOrChange(e,r,s,i,n,o,a,c){let u=n.has(o)?CL:Sf;this.handleEvent(u,e,r,s,i,n,o,a,c)}async checkExists(e,r,s,i,n,o,a,c){try{let u=await Tf(e);if(this.fsw.closed)return;_R(a,u)?this.addOrChange(e,r,s,i,n,o,a,c):this.handleEvent(Ha,e,r,s,i,n,o,a,c)}catch(u){u.code==="EACCES"?this.addOrChange(e,r,s,i,n,o,a,c):this.handleEvent(Ha,e,r,s,i,n,o,a,c)}}handleEvent(e,r,s,i,n,o,a,c,u){if(!(this.fsw.closed||this.checkIgnored(r)))if(e===Ha){let l=c.type===fn;(l||o.has(a))&&this.fsw._remove(n,a,l)}else{if(e===Sf){if(c.type===fn&&this.fsw._getWatchedDir(r),c.type===mR&&u.followSymlinks){let f=u.depth===void 0?void 0:Rf(s,i)+1;return this._addToFsEvents(r,!1,!0,f)}this.fsw._getWatchedDir(n).add(a)}let l=c.type===fn?e+GL:e;this.fsw._emit(l,r),l===hR&&this._addToFsEvents(r,!1,!0)}}_watchWithFsEvents(e,r,s,i){if(this.fsw.closed||this.fsw._isIgnored(e))return;let n=this.fsw.options,a=zL(e,r,async(c,u,l)=>{if(this.fsw.closed||n.depth!==void 0&&Rf(c,r)>n.depth)return;let f=s(Ie.join(e,Ie.relative(e,c)));if(i&&!i(f))return;let d=Ie.dirname(f),E=Ie.basename(f),g=this.fsw._getWatchedDir(l.type===fn?f:d);if(YL.has(u)||l.event===BL)if(typeof n.ignored===Of){let R;try{R=await Tf(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,R))return;_R(l,R)?this.addOrChange(f,c,r,d,g,E,l,n):this.handleEvent(Ha,f,c,r,d,g,E,l,n)}else this.checkExists(f,c,r,d,g,E,l,n);else switch(l.event){case LL:case ML:return this.addOrChange(f,c,r,d,g,E,l,n);case FL:case kL:return this.checkExists(f,c,r,d,g,E,l,n)}},this.fsw._emitRaw);return this.fsw._emitReady(),a}async _handleFsEventsSymlink(e,r,s,i){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(r))){this.fsw._symlinkPaths.set(r,!0),this.fsw._incrReadyCount();try{let n=await pR(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(n))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(n||e,o=>{let a=e;return n&&n!==dR?a=o.replace(n,e):o!==dR&&(a=Ie.join(e,o)),s(a)},!1,i)}catch(n){if(this.fsw._handleError(n))return this.fsw._emitReady()}}}emitAdd(e,r,s,i,n){let o=s(e),a=r.isDirectory(),c=this.fsw._getWatchedDir(Ie.dirname(o)),u=Ie.basename(o);a&&this.fsw._getWatchedDir(o),!c.has(u)&&(c.add(u),(!i.ignoreInitial||n===!0)&&this.fsw._emit(a?hR:Sf,o,r))}initWatch(e,r,s,i){if(this.fsw.closed)return;let n=this._watchWithFsEvents(s.watchPath,Ie.resolve(e||s.watchPath),i,s.globFilter);this.fsw._addPathCloser(r,n)}async _addToFsEvents(e,r,s,i){if(this.fsw.closed)return;let n=this.fsw.options,o=typeof r===Of?r:qL,a=this.fsw._getWatchHelpers(e);try{let c=await VL[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,c))throw null;if(c.isDirectory()){if(a.globFilter||this.emitAdd(o(e),c,o,n,s),i&&i>n.depth)return;this.fsw._readdirp(a.watchPath,{fileFilter:u=>a.filterPath(u),directoryFilter:u=>a.filterDir(u),...HL(n.depth-(i||0))}).on(DL,u=>{if(this.fsw.closed||u.stats.isDirectory()&&!a.filterPath(u))return;let l=Ie.join(a.watchPath,u.path),{fullPath:f}=u;if(a.followSymlinks&&u.stats.isSymbolicLink()){let d=n.depth===void 0?void 0:Rf(l,Ie.resolve(a.watchPath))+1;this._handleFsEventsSymlink(l,f,o,d)}else this.emitAdd(l,u.stats,o,n,s)}).on(PL,jL).on(xL,()=>{this.fsw._emitReady()})}else this.emitAdd(a.watchPath,c,o,n,s),this.fsw._emitReady()}catch(c){(!c||this.fsw._handleError(c))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(n.persistent&&s!==!0)if(typeof r===Of)this.initWatch(void 0,e,a,o);else{let c;try{c=await pR(a.watchPath)}catch{}this.initWatch(c,e,a,o)}}};Nf.exports=Af;Nf.exports.canUse=ZL});var bR=m(qf=>{"use strict";h();var{EventEmitter:QL}=T("events"),Gf=T("fs"),re=T("path"),{promisify:AR}=T("util"),JL=$O(),xf=JO().default,e0=pl(),bf=fl(),t0=Sl(),r0=ff(),s0=lR(),gR=ER(),{EV_ALL:wf,EV_READY:i0,EV_ADD:Wa,EV_CHANGE:dn,EV_UNLINK:yR,EV_ADD_DIR:n0,EV_UNLINK_DIR:o0,EV_RAW:a0,EV_ERROR:Cf,STR_CLOSE:c0,STR_END:u0,BACK_SLASH_RE:l0,DOUBLE_SLASH_RE:SR,SLASH_OR_BACK_SLASH_RE:h0,DOT_RE:f0,REPLACER_RE:d0,SLASH:Pf,SLASH_SLASH:p0,BRACE_START:_0,BANG:Lf,ONE_DOT:vR,TWO_DOTS:m0,GLOBSTAR:E0,SLASH_GLOBSTAR:Df,ANYMATCH_OPTS:Mf,STRING_TYPE:jf,FUNCTION_TYPE:g0,EMPTY_STR:Ff,EMPTY_FN:y0,isWindows:S0,isMacos:O0,isIBMi:R0}=Ba(),T0=AR(Gf.stat),A0=AR(Gf.readdir),kf=(t=[])=>Array.isArray(t)?t:[t],IR=(t,e=[])=>(t.forEach(r=>{Array.isArray(r)?IR(r,e):e.push(r)}),e),OR=t=>{let e=IR(kf(t));if(!e.every(r=>typeof r===jf))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(NR)},RR=t=>{let e=t.replace(l0,Pf),r=!1;for(e.startsWith(p0)&&(r=!0);e.match(SR);)e=e.replace(SR,Pf);return r&&(e=Pf+e),e},NR=t=>RR(re.normalize(RR(t))),TR=(t=Ff)=>e=>typeof e!==jf?e:NR(re.isAbsolute(e)?e:re.join(t,e)),v0=(t,e)=>re.isAbsolute(t)?t:t.startsWith(Lf)?Lf+re.join(e,t.slice(1)):re.join(e,t),gt=(t,e)=>t[e]===void 0,Bf=class{constructor(e,r){this.path=e,this._removeWatcher=r,this.items=new Set}add(e){let{items:r}=this;r&&e!==vR&&e!==m0&&r.add(e)}async remove(e){let{items:r}=this;if(!r||(r.delete(e),r.size>0))return;let s=this.path;try{await A0(s)}catch{this._removeWatcher&&this._removeWatcher(re.dirname(s),re.basename(s))}}has(e){let{items:r}=this;if(r)return r.has(e)}getChildren(){let{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},I0="stat",N0="lstat",Uf=class{constructor(e,r,s,i){this.fsw=i,this.path=e=e.replace(d0,Ff),this.watchPath=r,this.fullWatchPath=re.resolve(r),this.hasGlob=r!==e,e===Ff&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&s?void 0:!1,this.globFilter=this.hasGlob?xf(e,void 0,Mf):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(n=>{n.length>1&&n.pop()}),this.followSymlinks=s,this.statMethod=s?I0:N0}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return re.join(this.watchPath,re.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){let{stats:r}=e;if(r&&r.isSymbolicLink())return this.filterDir(e);let s=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===g0?this.globFilter(s):!0)&&this.fsw._isntIgnored(s,r)&&this.fsw._hasReadPermissions(r)}getDirParts(e){if(!this.hasGlob)return[];let r=[];return(e.includes(_0)?t0.expand(e):[e]).forEach(i=>{r.push(re.relative(this.watchPath,i).split(h0))}),r}filterDir(e){if(this.hasGlob){let r=this.getDirParts(this.checkGlobSymlink(e)),s=!1;this.unmatchedGlob=!this.dirParts.some(i=>i.every((n,o)=>(n===E0&&(s=!0),s||!r[0][o]||xf(n,r[0][o],Mf))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}},Va=class extends QL{constructor(e){super();let r={};e&&Object.assign(r,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,gt(r,"persistent")&&(r.persistent=!0),gt(r,"ignoreInitial")&&(r.ignoreInitial=!1),gt(r,"ignorePermissionErrors")&&(r.ignorePermissionErrors=!1),gt(r,"interval")&&(r.interval=100),gt(r,"binaryInterval")&&(r.binaryInterval=300),gt(r,"disableGlobbing")&&(r.disableGlobbing=!1),r.enableBinaryInterval=r.binaryInterval!==r.interval,gt(r,"useFsEvents")&&(r.useFsEvents=!r.usePolling),gR.canUse()||(r.useFsEvents=!1),gt(r,"usePolling")&&!r.useFsEvents&&(r.usePolling=O0),R0&&(r.usePolling=!0);let i=process.env.CHOKIDAR_USEPOLLING;if(i!==void 0){let c=i.toLowerCase();c==="false"||c==="0"?r.usePolling=!1:c==="true"||c==="1"?r.usePolling=!0:r.usePolling=!!c}let n=process.env.CHOKIDAR_INTERVAL;n&&(r.interval=Number.parseInt(n,10)),gt(r,"atomic")&&(r.atomic=!r.usePolling&&!r.useFsEvents),r.atomic&&(this._pendingUnlinks=new Map),gt(r,"followSymlinks")&&(r.followSymlinks=!0),gt(r,"awaitWriteFinish")&&(r.awaitWriteFinish=!1),r.awaitWriteFinish===!0&&(r.awaitWriteFinish={});let o=r.awaitWriteFinish;o&&(o.stabilityThreshold||(o.stabilityThreshold=2e3),o.pollInterval||(o.pollInterval=100),this._pendingWrites=new Map),r.ignored&&(r.ignored=kf(r.ignored));let a=0;this._emitReady=()=>{a++,a>=this._readyCount&&(this._emitReady=y0,this._readyEmitted=!0,process.nextTick(()=>this.emit(i0)))},this._emitRaw=(...c)=>this.emit(a0,...c),this._readyEmitted=!1,this.options=r,r.useFsEvents?this._fsEventsHandler=new gR(this):this._nodeFsHandler=new s0(this),Object.freeze(r)}add(e,r,s){let{cwd:i,disableGlobbing:n}=this.options;this.closed=!1;let o=OR(e);return i&&(o=o.map(a=>{let c=v0(a,i);return n||!bf(a)?c:r0(c)})),o=o.filter(a=>a.startsWith(Lf)?(this._ignoredPaths.add(a.slice(1)),!1):(this._ignoredPaths.delete(a),this._ignoredPaths.delete(a+Df),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=o.length),this.options.persistent&&(this._readyCount*=2),o.forEach(a=>this._fsEventsHandler._addToFsEvents(a))):(this._readyCount||(this._readyCount=0),this._readyCount+=o.length,Promise.all(o.map(async a=>{let c=await this._nodeFsHandler._addToNodeFs(a,!s,0,0,r);return c&&this._emitReady(),c})).then(a=>{this.closed||a.filter(c=>c).forEach(c=>{this.add(re.dirname(c),re.basename(r||c))})})),this}unwatch(e){if(this.closed)return this;let r=OR(e),{cwd:s}=this.options;return r.forEach(i=>{!re.isAbsolute(i)&&!this._closers.has(i)&&(s&&(i=re.join(s,i)),i=re.resolve(i)),this._closePath(i),this._ignoredPaths.add(i),this._watched.has(i)&&this._ignoredPaths.add(i+Df),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let e=[];return this._closers.forEach(r=>r.forEach(s=>{let i=s();i instanceof Promise&&e.push(i)})),this._streams.forEach(r=>r.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(r=>r.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(r=>{this[`_${r}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let e={};return this._watched.forEach((r,s)=>{let i=this.options.cwd?re.relative(this.options.cwd,s):s;e[i||vR]=r.getChildren().sort()}),e}emitWithAll(e,r){this.emit(...r),e!==Cf&&this.emit(wf,...r)}async _emit(e,r,s,i,n){if(this.closed)return;let o=this.options;S0&&(r=re.normalize(r)),o.cwd&&(r=re.relative(o.cwd,r));let a=[e,r];n!==void 0?a.push(s,i,n):i!==void 0?a.push(s,i):s!==void 0&&a.push(s);let c=o.awaitWriteFinish,u;if(c&&(u=this._pendingWrites.get(r)))return u.lastChange=new Date,this;if(o.atomic){if(e===yR)return this._pendingUnlinks.set(r,a),setTimeout(()=>{this._pendingUnlinks.forEach((l,f)=>{this.emit(...l),this.emit(wf,...l),this._pendingUnlinks.delete(f)})},typeof o.atomic=="number"?o.atomic:100),this;e===Wa&&this._pendingUnlinks.has(r)&&(e=a[0]=dn,this._pendingUnlinks.delete(r))}if(c&&(e===Wa||e===dn)&&this._readyEmitted){let l=(f,d)=>{f?(e=a[0]=Cf,a[1]=f,this.emitWithAll(e,a)):d&&(a.length>2?a[2]=d:a.push(d),this.emitWithAll(e,a))};return this._awaitWriteFinish(r,c.stabilityThreshold,e,l),this}if(e===dn&&!this._throttle(dn,r,50))return this;if(o.alwaysStat&&s===void 0&&(e===Wa||e===n0||e===dn)){let l=o.cwd?re.join(o.cwd,r):r,f;try{f=await T0(l)}catch{}if(!f||this.closed)return;a.push(f)}return this.emitWithAll(e,a),this}_handleError(e){let r=e&&e.code;return e&&r!=="ENOENT"&&r!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||r!=="EPERM"&&r!=="EACCES")&&this.emit(Cf,e),e||this.closed}_throttle(e,r,s){this._throttled.has(e)||this._throttled.set(e,new Map);let i=this._throttled.get(e),n=i.get(r);if(n)return n.count++,!1;let o,a=()=>{let u=i.get(r),l=u?u.count:0;return i.delete(r),clearTimeout(o),u&&clearTimeout(u.timeoutObject),l};o=setTimeout(a,s);let c={timeoutObject:o,clear:a,count:0};return i.set(r,c),c}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,r,s,i){let n,o=e;this.options.cwd&&!re.isAbsolute(e)&&(o=re.join(this.options.cwd,e));let a=new Date,c=u=>{Gf.stat(o,(l,f)=>{if(l||!this._pendingWrites.has(e)){l&&l.code!=="ENOENT"&&i(l);return}let d=Number(new Date);u&&f.size!==u.size&&(this._pendingWrites.get(e).lastChange=d);let E=this._pendingWrites.get(e);d-E.lastChange>=r?(this._pendingWrites.delete(e),i(void 0,f)):n=setTimeout(c,this.options.awaitWriteFinish.pollInterval,f)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:a,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(n),s)}),n=setTimeout(c,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,r){if(this.options.atomic&&f0.test(e))return!0;if(!this._userIgnored){let{cwd:s}=this.options,i=this.options.ignored,n=i&&i.map(TR(s)),o=kf(n).filter(c=>typeof c===jf&&!bf(c)).map(c=>c+Df),a=this._getGlobIgnored().map(TR(s)).concat(n,o);this._userIgnored=xf(a,void 0,Mf)}return this._userIgnored([e,r])}_isntIgnored(e,r){return!this._isIgnored(e,r)}_getWatchHelpers(e,r){let s=r||this.options.disableGlobbing||!bf(e)?e:e0(e),i=this.options.followSymlinks;return new Uf(e,s,i,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));let r=re.resolve(e);return this._watched.has(r)||this._watched.set(r,new Bf(r,this._boundRemove)),this._watched.get(r)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;let s=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(s.toString(8)[0],10))}_remove(e,r,s){let i=re.join(e,r),n=re.resolve(i);if(s=s??(this._watched.has(i)||this._watched.has(n)),!this._throttle("remove",i,100))return;!s&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,r,!0),this._getWatchedDir(i).getChildren().forEach(d=>this._remove(i,d));let c=this._getWatchedDir(e),u=c.has(r);c.remove(r),this._symlinkPaths.has(n)&&this._symlinkPaths.delete(n);let l=i;if(this.options.cwd&&(l=re.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(l)&&this._pendingWrites.get(l).cancelWait()===Wa)return;this._watched.delete(i),this._watched.delete(n);let f=s?o0:yR;u&&!this._isIgnored(i)&&this._emit(f,i),this.options.useFsEvents||this._closePath(i)}_closePath(e){this._closeFile(e);let r=re.dirname(e);this._getWatchedDir(r).remove(re.basename(e))}_closeFile(e){let r=this._closers.get(e);r&&(r.forEach(s=>s()),this._closers.delete(e))}_addPathCloser(e,r){if(!r)return;let s=this._closers.get(e);s||(s=[],this._closers.set(e,s)),s.push(r)}_readdirp(e,r){if(this.closed)return;let s={type:wf,alwaysStat:!0,lstat:!0,...r},i=JL(e,s);return this._streams.add(i),i.once(c0,()=>{i=void 0}),i.once(u0,()=>{i&&(this._streams.delete(i),i=void 0)}),i}};qf.FSWatcher=Va;var b0=(t,e)=>{let r=new Va(e);return r.add(t),r};qf.watch=b0});var Hf=m((fH,wR)=>{"use strict";h();function w0(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}wR.exports=w0});var PR=m((pH,CR)=>{"use strict";h();var C0=typeof global=="object"&&global&&global.Object===Object&&global;CR.exports=C0});var Wf=m((mH,DR)=>{"use strict";h();var P0=PR(),D0=typeof self=="object"&&self&&self.Object===Object&&self,x0=P0||D0||Function("return this")();DR.exports=x0});var LR=m((gH,xR)=>{"use strict";h();var L0=Wf(),M0=function(){return L0.Date.now()};xR.exports=M0});var FR=m((SH,MR)=>{"use strict";h();var F0=/\s/;function k0(t){for(var e=t.length;e--&&F0.test(t.charAt(e)););return e}MR.exports=k0});var BR=m((RH,kR)=>{"use strict";h();var B0=FR(),U0=/^\s+/;function G0(t){return t&&t.slice(0,B0(t)+1).replace(U0,"")}kR.exports=G0});var Vf=m((AH,UR)=>{"use strict";h();var j0=Wf(),q0=j0.Symbol;UR.exports=q0});var HR=m((IH,qR)=>{"use strict";h();var GR=Vf(),jR=Object.prototype,H0=jR.hasOwnProperty,W0=jR.toString,pn=GR?GR.toStringTag:void 0;function V0(t){var e=H0.call(t,pn),r=t[pn];try{t[pn]=void 0;var s=!0}catch{}var i=W0.call(t);return s&&(e?t[pn]=r:delete t[pn]),i}qR.exports=V0});var VR=m((bH,WR)=>{"use strict";h();var $0=Object.prototype,Y0=$0.toString;function K0(t){return Y0.call(t)}WR.exports=K0});var zR=m((CH,KR)=>{"use strict";h();var $R=Vf(),z0=HR(),X0=VR(),Z0="[object Null]",Q0="[object Undefined]",YR=$R?$R.toStringTag:void 0;function J0(t){return t==null?t===void 0?Q0:Z0:YR&&YR in Object(t)?z0(t):X0(t)}KR.exports=J0});var ZR=m((DH,XR)=>{"use strict";h();function eM(t){return t!=null&&typeof t=="object"}XR.exports=eM});var JR=m((LH,QR)=>{"use strict";h();var tM=zR(),rM=ZR(),sM="[object Symbol]";function iM(t){return typeof t=="symbol"||rM(t)&&tM(t)==sM}QR.exports=iM});var sT=m((FH,rT)=>{"use strict";h();var nM=BR(),eT=Hf(),oM=JR(),tT=NaN,aM=/^[-+]0x[0-9a-f]+$/i,cM=/^0b[01]+$/i,uM=/^0o[0-7]+$/i,lM=parseInt;function hM(t){if(typeof t=="number")return t;if(oM(t))return tT;if(eT(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=eT(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=nM(t);var r=cM.test(t);return r||uM.test(t)?lM(t.slice(2),r?2:8):aM.test(t)?tT:+t}rT.exports=hM});var oT=m((BH,nT)=>{"use strict";h();var fM=Hf(),$f=LR(),iT=sT(),dM="Expected a function",pM=Math.max,_M=Math.min;function mM(t,e,r){var s,i,n,o,a,c,u=0,l=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError(dM);e=iT(e)||0,fM(r)&&(l=!!r.leading,f="maxWait"in r,n=f?pM(iT(r.maxWait)||0,e):n,d="trailing"in r?!!r.trailing:d);function E(G){var k=s,L=i;return s=i=void 0,u=G,o=t.apply(L,k),o}function g(G){return u=G,a=setTimeout(N,e),l?E(G):o}function R(G){var k=G-c,L=G-u,Z=e-k;return f?_M(Z,n-L):Z}function v(G){var k=G-c,L=G-u;return c===void 0||k>=e||k<0||f&&L>=n}function N(){var G=$f();if(v(G))return V(G);a=setTimeout(N,R(G))}function V(G){return a=void 0,d&&s?E(G):(s=i=void 0,o)}function z(){a!==void 0&&clearTimeout(a),u=0,s=c=i=a=void 0}function Oe(){return a===void 0?o:V($f())}function W(){var G=$f(),k=v(G);if(s=arguments,i=this,c=G,k){if(a===void 0)return g(c);if(f)return clearTimeout(a),a=setTimeout(N,e),E(c)}return a===void 0&&(a=setTimeout(N,e)),o}return W.cancel=z,W.flush=Oe,W}nT.exports=mM});h();var vd=we(kn(),1),{WError:tv}=vd.default,fe=class extends tv{code;constructor(e){let r=e.cause instanceof Error?e.cause:new Error(JSON.stringify(e.cause));super({name:e.code.type,cause:r,info:e.info},e.code.type),this.code=e.code,this.name=e.code.type}};h();var B=we(Rs(),1),Bn=(0,B.variant)({FailedToGetDeviceCode:{},FailedToGetAuthToken:{},FailedToRenewAuthToken:{},FailedToRefreshTokenForSite:{},FailedToRevokeRefreshToken:(0,B.fields)(),UnknownFailure:(0,B.fields)(),FailedToFetchPackageJson:{},FailedToGetDeveloperApps:{},FailedToUpdateTelemetryConfig:{},FailedToSyncToRevision:(0,B.fields)(),FailedToCreateVersion:{},FailedToReadCache:(0,B.fields)(),FailedToWriteCache:(0,B.fields)(),UploadApplicationFailed:{},FailedToCreateDevCenterApp:{},GridAppFailedToUpdateFiles:{},FailedToCreateGridApp:{},UnknownComponentType:{},FailedToGetPackageDetails:{},InvalidCreateAppResponse:{},InvalidDeployAppResponse:{},FailedToGetPagesDiff:{},InvalidViteBuildOutput:{},ViteModuleBundleNotFound:{},ViteFileNotFoundInOutput:(0,B.fields)(),FailedToCreatePresignedUrl:{},FailedToUploadApplicationFiles:{},FailedToVerifyDeployment:{},FailedToGetUserInfo:{},FailedToCreateDevelopmentSite:{},FailedToGetDevelopmentSites:{},FailedToGetDevelopmentSitesLimit:{},FailedToQuerySites:{},FailedToGetSite:{},FailedToDeploySite:{},FailedToPublishDeployment:{},SiteNotFound:{},FailedToCheckIfAppInstalled:{},TypeErrorInvalidUrl:{},FailedToGenerateSelfsignedCertificate:{},FailedToResolveViteOrigin:{},FailedToCreateAppRelease:{},FailedToUpdateAppRelease:{},FailedToGetResolveNpmDependenciesResult:{},FailedToResolveNpmDependencies:{}}),fc=(0,B.variant)({LatestVersionOfCreateAppRequired:(0,B.fields)(),EmptyDirectoryRequiredAppGeneration:(0,B.fields)(),InvalidNewPackageName:(0,B.fields)(),UnsupportedPackageManager:(0,B.fields)(),UnsupportedPackageManagerWorkspaces:(0,B.fields)(),FailedAddingPackageToWorkspace:{},AppPermissionDenied:(0,B.fields)(),BuiltProjectNeeded:{},UnsupportedWixInstallCommand:{},UnsupportedWixUpdateCommand:{},WixUninstallMissingPackageName:{},FailedToReadJson:(0,B.fields)(),FailedToWriteJson:(0,B.fields)(),InvalidJsonFile:(0,B.fields)(),FailedToWriteWixLock:{},InvalidVeloConfigJson:(0,B.fields)(),DashboardPageConfigNotFound:(0,B.fields)(),EmbeddedScriptConfigNotFound:(0,B.fields)(),NoDashboardPagesFound:(0,B.fields)(),NoPagesDirectoryFound:(0,B.fields)(),DashboardWidgetConfigNotFound:(0,B.fields)(),InvalidConfigSchemaError:(0,B.fields)(),PermissionDenied:{},SiteSelectorTimedout:{},FailedToReadProjectFiles:(0,B.fields)(),FailedToCreateVersionForSubmittedApp:{},GridAppFilesMaxLengthExcceeded:(0,B.fields)(),DeviceCodeTimedOut:{},DuplicateComponentIdsError:(0,B.fields)(),FailedToSaveDevelopmentSite:(0,B.fields)(),FailedToBuildApp:{},FailedToInitializeGitRepo:(0,B.fields)(),FailedToInstallDependencies:(0,B.fields)(),FailedToCommitChanges:(0,B.fields)(),FailedToDeleteAuthData:(0,B.fields)(),FailedToDeleteLegacyAuthData:(0,B.fields)(),FailedToSaveAuthData:(0,B.fields)(),FailedToRenewAuthTokenSiteNotFound:(0,B.fields)(),FailedToInstallPackage:(0,B.fields)(),FailedToInstallPackages:(0,B.fields)(),FailedToUninstallPackage:(0,B.fields)(),TemplatePathNotFound:(0,B.fields)(),FailedToCloneRepo:(0,B.fields)(),InvalidGitUrl:(0,B.fields)(),AuthenticationRequired:{},SiteConfiguredRequired:{},NonInteractiveTerminal:{},FailedToWatchFiles:(0,B.fields)(),CliAppVersionMismatch:(0,B.fields)()}),de=(0,B.variant)({...Bn,...fc});h();h();var dc=we(Rs(),1);function Un(t){return t&&typeof t=="object"&&"code"in t?(0,dc.isOfVariant)(t.code,de):!1}function rv(t){return(0,dc.isOfVariant)(t.code,Bn)}h();var Id=we(Rs(),1),Nd=we(kn(),1);function bd(t){if(Un(t)&&(0,Id.isOfVariant)(t.code,fc))return t;let e=Nd.default.cause(t);return e?bd(e):null}function sv(t){let e=Un(t)?t:new fe({code:de.UnknownFailure({error:t})});return bd(e)??e}h();import{join as nv}from"node:path";h();import{join as iv}from"node:path";function wd(t=""){return iv(t,".wix")}var Oi="wix.config.json";function Nk(t){return nv(wd(t),"debug.log")}h();import{join as dt}from"node:path";h();var J;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let n={};for(let o of i)n[o]=o;return n},t.getValidEnumValues=i=>{let n=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of n)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(n){return i[n]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let n=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&n.push(o);return n},t.find=(i,n)=>{for(let o of i)if(n(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function s(i,n=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(n)}t.joinValues=s,t.jsonStringifyReplacer=(i,n)=>typeof n=="bigint"?n.toString():n})(J||(J={}));var _c;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(_c||(_c={}));var b=J.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ur=t=>{switch(typeof t){case"undefined":return b.undefined;case"string":return b.string;case"number":return isNaN(t)?b.nan:b.number;case"boolean":return b.boolean;case"function":return b.function;case"bigint":return b.bigint;case"symbol":return b.symbol;case"object":return Array.isArray(t)?b.array:t===null?b.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?b.promise:typeof Map<"u"&&t instanceof Map?b.map:typeof Set<"u"&&t instanceof Set?b.set:typeof Date<"u"&&t instanceof Date?b.date:b.object;default:return b.unknown}},A=J.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),ov=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),$e=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(n){return n.message},s={_errors:[]},i=n=>{for(let o of n.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)s._errors.push(r(o));else{let a=s,c=0;for(;c<o.path.length;){let u=o.path[c];c===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(o))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return i(this),s}toString(){return this.message}get message(){return JSON.stringify(this.issues,J.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},s=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):s.push(e(i));return{formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}};$e.create=t=>new $e(t);var Ri=(t,e)=>{let r;switch(t.code){case A.invalid_type:t.received===b.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case A.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,J.jsonStringifyReplacer)}`;break;case A.unrecognized_keys:r=`Unrecognized key(s) in object: ${J.joinValues(t.keys,", ")}`;break;case A.invalid_union:r="Invalid input";break;case A.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${J.joinValues(t.options)}`;break;case A.invalid_enum_value:r=`Invalid enum value. Expected ${J.joinValues(t.options)}, received '${t.received}'`;break;case A.invalid_arguments:r="Invalid function arguments";break;case A.invalid_return_type:r="Invalid function return type";break;case A.invalid_date:r="Invalid date";break;case A.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:J.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case A.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case A.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case A.custom:r="Invalid input";break;case A.invalid_intersection_types:r="Intersection results could not be merged";break;case A.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case A.not_finite:r="Number must be finite";break;default:r=e.defaultError,J.assertNever(t)}return{message:r}},Dd=Ri;function av(t){Dd=t}function jn(){return Dd}var qn=t=>{let{data:e,path:r,errorMaps:s,issueData:i}=t,n=[...r,...i.path||[]],o={...i,path:n},a="",c=s.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:e,defaultError:a}).message;return{...i,path:n,message:i.message||a}},cv=[];function C(t,e){let r=qn({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,jn(),Ri].filter(s=>!!s)});t.common.issues.push(r)}var Pe=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let s=[];for(let i of r){if(i.status==="aborted")return j;i.status==="dirty"&&e.dirty(),s.push(i.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,r){let s=[];for(let i of r)s.push({key:await i.key,value:await i.value});return t.mergeObjectSync(e,s)}static mergeObjectSync(e,r){let s={};for(let i of r){let{key:n,value:o}=i;if(n.status==="aborted"||o.status==="aborted")return j;n.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),n.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(s[n.value]=o.value)}return{status:e.value,value:s}}},j=Object.freeze({status:"aborted"}),xd=t=>({status:"dirty",value:t}),Ue=t=>({status:"valid",value:t}),mc=t=>t.status==="aborted",Ec=t=>t.status==="dirty",Ti=t=>t.status==="valid",Hn=t=>typeof Promise<"u"&&t instanceof Promise,x;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(x||(x={}));var et=class{constructor(e,r,s,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=s,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Cd=(t,e)=>{if(Ti(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new $e(t.common.issues);return this._error=r,this._error}}};function q(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:s,description:i}=t;if(e&&(r||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>o.code!=="invalid_type"?{message:a.defaultError}:typeof a.data>"u"?{message:s??a.defaultError}:{message:r??a.defaultError},description:i}}var H=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return ur(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:ur(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Pe,ctx:{common:e.parent.common,data:e.data,parsedType:ur(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Hn(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let s=this.safeParse(e,r);if(s.success)return s.data;throw s.error}safeParse(e,r){var s;let i={common:{issues:[],async:(s=r?.async)!==null&&s!==void 0?s:!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ur(e)},n=this._parseSync({data:e,path:i.path,parent:i});return Cd(i,n)}async parseAsync(e,r){let s=await this.safeParseAsync(e,r);if(s.success)return s.data;throw s.error}async safeParseAsync(e,r){let s={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ur(e)},i=this._parse({data:e,path:s.path,parent:s}),n=await(Hn(i)?i:Promise.resolve(i));return Cd(s,n)}refine(e,r){let s=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,n)=>{let o=e(i),a=()=>n.addIssue({code:A.custom,...s(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((s,i)=>e(s)?!0:(i.addIssue(typeof r=="function"?r(s,i):r),!1))}_refinement(e){return new Ye({schema:this,typeName:M.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ht.create(this,this._def)}nullable(){return Ft.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Mt.create(this,this._def)}promise(){return fr.create(this,this._def)}or(e){return Wr.create([this,e],this._def)}and(e){return Vr.create(this,e,this._def)}transform(e){return new Ye({...q(this._def),schema:this,typeName:M.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Xr({...q(this._def),innerType:this,defaultValue:r,typeName:M.ZodDefault})}brand(){return new Yn({typeName:M.ZodBranded,type:this,...q(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new Cs({...q(this._def),innerType:this,catchValue:r,typeName:M.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Ai.create(this,e)}readonly(){return Ds.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},uv=/^c[^\s-]{8,}$/i,lv=/^[a-z][a-z0-9]*$/,hv=/^[0-9A-HJKMNP-TV-Z]{26}$/,fv=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,dv=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,pv="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",pc,_v=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,mv=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Ev=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function gv(t,e){return!!((e==="v4"||!e)&&_v.test(t)||(e==="v6"||!e)&&mv.test(t))}var lr=class t extends H{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==b.string){let n=this._getOrReturnCtx(e);return C(n,{code:A.invalid_type,expected:b.string,received:n.parsedType}),j}let s=new Pe,i;for(let n of this._def.checks)if(n.kind==="min")e.data.length<n.value&&(i=this._getOrReturnCtx(e,i),C(i,{code:A.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="max")e.data.length>n.value&&(i=this._getOrReturnCtx(e,i),C(i,{code:A.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="length"){let o=e.data.length>n.value,a=e.data.length<n.value;(o||a)&&(i=this._getOrReturnCtx(e,i),o?C(i,{code:A.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):a&&C(i,{code:A.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),s.dirty())}else if(n.kind==="email")dv.test(e.data)||(i=this._getOrReturnCtx(e,i),C(i,{validation:"email",code:A.invalid_string,message:n.message}),s.dirty());else if(n.kind==="emoji")pc||(pc=new RegExp(pv,"u")),pc.test(e.data)||(i=this._getOrReturnCtx(e,i),C(i,{validation:"emoji",code:A.invalid_string,message:n.message}),s.dirty());else if(n.kind==="uuid")fv.test(e.data)||(i=this._getOrReturnCtx(e,i),C(i,{validation:"uuid",code:A.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid")uv.test(e.data)||(i=this._getOrReturnCtx(e,i),C(i,{validation:"cuid",code:A.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid2")lv.test(e.data)||(i=this._getOrReturnCtx(e,i),C(i,{validation:"cuid2",code:A.invalid_string,message:n.message}),s.dirty());else if(n.kind==="ulid")hv.test(e.data)||(i=this._getOrReturnCtx(e,i),C(i,{validation:"ulid",code:A.invalid_string,message:n.message}),s.dirty());else if(n.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),C(i,{validation:"url",code:A.invalid_string,message:n.message}),s.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),C(i,{validation:"regex",code:A.invalid_string,message:n.message}),s.dirty())):n.kind==="trim"?e.data=e.data.trim():n.kind==="includes"?e.data.includes(n.value,n.position)||(i=this._getOrReturnCtx(e,i),C(i,{code:A.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),s.dirty()):n.kind==="toLowerCase"?e.data=e.data.toLowerCase():n.kind==="toUpperCase"?e.data=e.data.toUpperCase():n.kind==="startsWith"?e.data.startsWith(n.value)||(i=this._getOrReturnCtx(e,i),C(i,{code:A.invalid_string,validation:{startsWith:n.value},message:n.message}),s.dirty()):n.kind==="endsWith"?e.data.endsWith(n.value)||(i=this._getOrReturnCtx(e,i),C(i,{code:A.invalid_string,validation:{endsWith:n.value},message:n.message}),s.dirty()):n.kind==="datetime"?Ev(n).test(e.data)||(i=this._getOrReturnCtx(e,i),C(i,{code:A.invalid_string,validation:"datetime",message:n.message}),s.dirty()):n.kind==="ip"?gv(e.data,n.version)||(i=this._getOrReturnCtx(e,i),C(i,{validation:"ip",code:A.invalid_string,message:n.message}),s.dirty()):J.assertNever(n);return{status:s.value,value:e.data}}_regex(e,r,s){return this.refinement(i=>e.test(i),{validation:r,code:A.invalid_string,...x.errToObj(s)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...x.errToObj(e)})}url(e){return this._addCheck({kind:"url",...x.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...x.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...x.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...x.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...x.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...x.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...x.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:(r=e?.offset)!==null&&r!==void 0?r:!1,...x.errToObj(e?.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...x.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...x.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...x.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...x.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...x.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...x.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...x.errToObj(r)})}nonempty(e){return this.min(1,x.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};lr.create=t=>{var e;return new lr({checks:[],typeName:M.ZodString,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...q(t)})};function yv(t,e){let r=(t.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,i=r>s?r:s,n=parseInt(t.toFixed(i).replace(".","")),o=parseInt(e.toFixed(i).replace(".",""));return n%o/Math.pow(10,i)}var Br=class t extends H{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==b.number){let n=this._getOrReturnCtx(e);return C(n,{code:A.invalid_type,expected:b.number,received:n.parsedType}),j}let s,i=new Pe;for(let n of this._def.checks)n.kind==="int"?J.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),C(s,{code:A.invalid_type,expected:"integer",received:"float",message:n.message}),i.dirty()):n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),C(s,{code:A.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),C(s,{code:A.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):n.kind==="multipleOf"?yv(e.data,n.value)!==0&&(s=this._getOrReturnCtx(e,s),C(s,{code:A.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):n.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),C(s,{code:A.not_finite,message:n.message}),i.dirty()):J.assertNever(n);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,x.toString(r))}gt(e,r){return this.setLimit("min",e,!1,x.toString(r))}lte(e,r){return this.setLimit("max",e,!0,x.toString(r))}lt(e,r){return this.setLimit("max",e,!1,x.toString(r))}setLimit(e,r,s,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:s,message:x.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:x.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:x.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:x.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:x.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:x.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:x.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:x.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:x.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:x.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&J.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(e===null||s.value<e)&&(e=s.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Br.create=t=>new Br({checks:[],typeName:M.ZodNumber,coerce:t?.coerce||!1,...q(t)});var Ur=class t extends H{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==b.bigint){let n=this._getOrReturnCtx(e);return C(n,{code:A.invalid_type,expected:b.bigint,received:n.parsedType}),j}let s,i=new Pe;for(let n of this._def.checks)n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),C(s,{code:A.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),C(s,{code:A.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty()):n.kind==="multipleOf"?e.data%n.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),C(s,{code:A.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):J.assertNever(n);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,x.toString(r))}gt(e,r){return this.setLimit("min",e,!1,x.toString(r))}lte(e,r){return this.setLimit("max",e,!0,x.toString(r))}lt(e,r){return this.setLimit("max",e,!1,x.toString(r))}setLimit(e,r,s,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:s,message:x.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:x.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:x.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:x.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:x.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:x.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Ur.create=t=>{var e;return new Ur({checks:[],typeName:M.ZodBigInt,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...q(t)})};var Gr=class extends H{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==b.boolean){let s=this._getOrReturnCtx(e);return C(s,{code:A.invalid_type,expected:b.boolean,received:s.parsedType}),j}return Ue(e.data)}};Gr.create=t=>new Gr({typeName:M.ZodBoolean,coerce:t?.coerce||!1,...q(t)});var jr=class t extends H{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==b.date){let n=this._getOrReturnCtx(e);return C(n,{code:A.invalid_type,expected:b.date,received:n.parsedType}),j}if(isNaN(e.data.getTime())){let n=this._getOrReturnCtx(e);return C(n,{code:A.invalid_date}),j}let s=new Pe,i;for(let n of this._def.checks)n.kind==="min"?e.data.getTime()<n.value&&(i=this._getOrReturnCtx(e,i),C(i,{code:A.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),s.dirty()):n.kind==="max"?e.data.getTime()>n.value&&(i=this._getOrReturnCtx(e,i),C(i,{code:A.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),s.dirty()):J.assertNever(n);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:x.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:x.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};jr.create=t=>new jr({checks:[],coerce:t?.coerce||!1,typeName:M.ZodDate,...q(t)});var Is=class extends H{_parse(e){if(this._getType(e)!==b.symbol){let s=this._getOrReturnCtx(e);return C(s,{code:A.invalid_type,expected:b.symbol,received:s.parsedType}),j}return Ue(e.data)}};Is.create=t=>new Is({typeName:M.ZodSymbol,...q(t)});var qr=class extends H{_parse(e){if(this._getType(e)!==b.undefined){let s=this._getOrReturnCtx(e);return C(s,{code:A.invalid_type,expected:b.undefined,received:s.parsedType}),j}return Ue(e.data)}};qr.create=t=>new qr({typeName:M.ZodUndefined,...q(t)});var Hr=class extends H{_parse(e){if(this._getType(e)!==b.null){let s=this._getOrReturnCtx(e);return C(s,{code:A.invalid_type,expected:b.null,received:s.parsedType}),j}return Ue(e.data)}};Hr.create=t=>new Hr({typeName:M.ZodNull,...q(t)});var hr=class extends H{constructor(){super(...arguments),this._any=!0}_parse(e){return Ue(e.data)}};hr.create=t=>new hr({typeName:M.ZodAny,...q(t)});var Lt=class extends H{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Ue(e.data)}};Lt.create=t=>new Lt({typeName:M.ZodUnknown,...q(t)});var ft=class extends H{_parse(e){let r=this._getOrReturnCtx(e);return C(r,{code:A.invalid_type,expected:b.never,received:r.parsedType}),j}};ft.create=t=>new ft({typeName:M.ZodNever,...q(t)});var Ns=class extends H{_parse(e){if(this._getType(e)!==b.undefined){let s=this._getOrReturnCtx(e);return C(s,{code:A.invalid_type,expected:b.void,received:s.parsedType}),j}return Ue(e.data)}};Ns.create=t=>new Ns({typeName:M.ZodVoid,...q(t)});var Mt=class t extends H{_parse(e){let{ctx:r,status:s}=this._processInputParams(e),i=this._def;if(r.parsedType!==b.array)return C(r,{code:A.invalid_type,expected:b.array,received:r.parsedType}),j;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(C(r,{code:o?A.too_big:A.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),s.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(C(r,{code:A.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),s.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(C(r,{code:A.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new et(r,o,r.path,a)))).then(o=>Pe.mergeArray(s,o));let n=[...r.data].map((o,a)=>i.type._parseSync(new et(r,o,r.path,a)));return Pe.mergeArray(s,n)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:x.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:x.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:x.toString(r)}})}nonempty(e){return this.min(1,e)}};Mt.create=(t,e)=>new Mt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:M.ZodArray,...q(e)});function vs(t){if(t instanceof Ge){let e={};for(let r in t.shape){let s=t.shape[r];e[r]=ht.create(vs(s))}return new Ge({...t._def,shape:()=>e})}else return t instanceof Mt?new Mt({...t._def,type:vs(t.element)}):t instanceof ht?ht.create(vs(t.unwrap())):t instanceof Ft?Ft.create(vs(t.unwrap())):t instanceof Ot?Ot.create(t.items.map(e=>vs(e))):t}var Ge=class t extends H{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=J.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==b.object){let u=this._getOrReturnCtx(e);return C(u,{code:A.invalid_type,expected:b.object,received:u.parsedType}),j}let{status:s,ctx:i}=this._processInputParams(e),{shape:n,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof ft&&this._def.unknownKeys==="strip"))for(let u in i.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let l=n[u],f=i.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new et(i,f,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof ft){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of a)c.push({key:{status:"valid",value:l},value:{status:"valid",value:i.data[l]}});else if(u==="strict")a.length>0&&(C(i,{code:A.unrecognized_keys,keys:a}),s.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of a){let f=i.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new et(i,f,i.path,l)),alwaysSet:l in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let f=await l.key;u.push({key:f,value:await l.value,alwaysSet:l.alwaysSet})}return u}).then(u=>Pe.mergeObjectSync(s,u)):Pe.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(e){return x.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,s)=>{var i,n,o,a;let c=(o=(n=(i=this._def).errorMap)===null||n===void 0?void 0:n.call(i,r,s).message)!==null&&o!==void 0?o:s.defaultError;return r.code==="unrecognized_keys"?{message:(a=x.errToObj(e).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:M.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};return J.objectKeys(e).forEach(s=>{e[s]&&this.shape[s]&&(r[s]=this.shape[s])}),new t({...this._def,shape:()=>r})}omit(e){let r={};return J.objectKeys(this.shape).forEach(s=>{e[s]||(r[s]=this.shape[s])}),new t({...this._def,shape:()=>r})}deepPartial(){return vs(this)}partial(e){let r={};return J.objectKeys(this.shape).forEach(s=>{let i=this.shape[s];e&&!e[s]?r[s]=i:r[s]=i.optional()}),new t({...this._def,shape:()=>r})}required(e){let r={};return J.objectKeys(this.shape).forEach(s=>{if(e&&!e[s])r[s]=this.shape[s];else{let n=this.shape[s];for(;n instanceof ht;)n=n._def.innerType;r[s]=n}}),new t({...this._def,shape:()=>r})}keyof(){return Ld(J.objectKeys(this.shape))}};Ge.create=(t,e)=>new Ge({shape:()=>t,unknownKeys:"strip",catchall:ft.create(),typeName:M.ZodObject,...q(e)});Ge.strictCreate=(t,e)=>new Ge({shape:()=>t,unknownKeys:"strict",catchall:ft.create(),typeName:M.ZodObject,...q(e)});Ge.lazycreate=(t,e)=>new Ge({shape:t,unknownKeys:"strip",catchall:ft.create(),typeName:M.ZodObject,...q(e)});var Wr=class extends H{_parse(e){let{ctx:r}=this._processInputParams(e),s=this._def.options;function i(n){for(let a of n)if(a.result.status==="valid")return a.result;for(let a of n)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=n.map(a=>new $e(a.ctx.common.issues));return C(r,{code:A.invalid_union,unionErrors:o}),j}if(r.common.async)return Promise.all(s.map(async n=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await n._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let n,o=[];for(let c of s){let u={...r,common:{...r.common,issues:[]},parent:null},l=c._parseSync({data:r.data,path:r.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!n&&(n={result:l,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(n)return r.common.issues.push(...n.ctx.common.issues),n.result;let a=o.map(c=>new $e(c));return C(r,{code:A.invalid_union,unionErrors:a}),j}}get options(){return this._def.options}};Wr.create=(t,e)=>new Wr({options:t,typeName:M.ZodUnion,...q(e)});var Gn=t=>t instanceof $r?Gn(t.schema):t instanceof Ye?Gn(t.innerType()):t instanceof Yr?[t.value]:t instanceof Kr?t.options:t instanceof zr?Object.keys(t.enum):t instanceof Xr?Gn(t._def.innerType):t instanceof qr?[void 0]:t instanceof Hr?[null]:null,Wn=class t extends H{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==b.object)return C(r,{code:A.invalid_type,expected:b.object,received:r.parsedType}),j;let s=this.discriminator,i=r.data[s],n=this.optionsMap.get(i);return n?r.common.async?n._parseAsync({data:r.data,path:r.path,parent:r}):n._parseSync({data:r.data,path:r.path,parent:r}):(C(r,{code:A.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),j)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,s){let i=new Map;for(let n of r){let o=Gn(n.shape[e]);if(!o)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,n)}}return new t({typeName:M.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...q(s)})}};function gc(t,e){let r=ur(t),s=ur(e);if(t===e)return{valid:!0,data:t};if(r===b.object&&s===b.object){let i=J.objectKeys(e),n=J.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of n){let c=gc(t[a],e[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===b.array&&s===b.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let n=0;n<t.length;n++){let o=t[n],a=e[n],c=gc(o,a);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return r===b.date&&s===b.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var Vr=class extends H{_parse(e){let{status:r,ctx:s}=this._processInputParams(e),i=(n,o)=>{if(mc(n)||mc(o))return j;let a=gc(n.value,o.value);return a.valid?((Ec(n)||Ec(o))&&r.dirty(),{status:r.value,value:a.data}):(C(s,{code:A.invalid_intersection_types}),j)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([n,o])=>i(n,o)):i(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}};Vr.create=(t,e,r)=>new Vr({left:t,right:e,typeName:M.ZodIntersection,...q(r)});var Ot=class t extends H{_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==b.array)return C(s,{code:A.invalid_type,expected:b.array,received:s.parsedType}),j;if(s.data.length<this._def.items.length)return C(s,{code:A.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),j;!this._def.rest&&s.data.length>this._def.items.length&&(C(s,{code:A.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let n=[...s.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new et(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(n).then(o=>Pe.mergeArray(r,o)):Pe.mergeArray(r,n)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};Ot.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ot({items:t,typeName:M.ZodTuple,rest:null,...q(e)})};var Vn=class t extends H{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==b.object)return C(s,{code:A.invalid_type,expected:b.object,received:s.parsedType}),j;let i=[],n=this._def.keyType,o=this._def.valueType;for(let a in s.data)i.push({key:n._parse(new et(s,a,s.path,a)),value:o._parse(new et(s,s.data[a],s.path,a))});return s.common.async?Pe.mergeObjectAsync(r,i):Pe.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,s){return r instanceof H?new t({keyType:e,valueType:r,typeName:M.ZodRecord,...q(s)}):new t({keyType:lr.create(),valueType:e,typeName:M.ZodRecord,...q(r)})}},bs=class extends H{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==b.map)return C(s,{code:A.invalid_type,expected:b.map,received:s.parsedType}),j;let i=this._def.keyType,n=this._def.valueType,o=[...s.data.entries()].map(([a,c],u)=>({key:i._parse(new et(s,a,s.path,[u,"key"])),value:n._parse(new et(s,c,s.path,[u,"value"]))}));if(s.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return j;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return j;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}}}};bs.create=(t,e,r)=>new bs({valueType:e,keyType:t,typeName:M.ZodMap,...q(r)});var ws=class t extends H{_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==b.set)return C(s,{code:A.invalid_type,expected:b.set,received:s.parsedType}),j;let i=this._def;i.minSize!==null&&s.data.size<i.minSize.value&&(C(s,{code:A.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&s.data.size>i.maxSize.value&&(C(s,{code:A.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let n=this._def.valueType;function o(c){let u=new Set;for(let l of c){if(l.status==="aborted")return j;l.status==="dirty"&&r.dirty(),u.add(l.value)}return{status:r.value,value:u}}let a=[...s.data.values()].map((c,u)=>n._parse(new et(s,c,s.path,u)));return s.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,r){return new t({...this._def,minSize:{value:e,message:x.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:x.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};ws.create=(t,e)=>new ws({valueType:t,minSize:null,maxSize:null,typeName:M.ZodSet,...q(e)});var $n=class t extends H{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==b.function)return C(r,{code:A.invalid_type,expected:b.function,received:r.parsedType}),j;function s(a,c){return qn({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,jn(),Ri].filter(u=>!!u),issueData:{code:A.invalid_arguments,argumentsError:c}})}function i(a,c){return qn({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,jn(),Ri].filter(u=>!!u),issueData:{code:A.invalid_return_type,returnTypeError:c}})}let n={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof fr){let a=this;return Ue(async function(...c){let u=new $e([]),l=await a._def.args.parseAsync(c,n).catch(E=>{throw u.addIssue(s(c,E)),u}),f=await Reflect.apply(o,this,l);return await a._def.returns._def.type.parseAsync(f,n).catch(E=>{throw u.addIssue(i(f,E)),u})})}else{let a=this;return Ue(function(...c){let u=a._def.args.safeParse(c,n);if(!u.success)throw new $e([s(c,u.error)]);let l=Reflect.apply(o,this,u.data),f=a._def.returns.safeParse(l,n);if(!f.success)throw new $e([i(l,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:Ot.create(e).rest(Lt.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,s){return new t({args:e||Ot.create([]).rest(Lt.create()),returns:r||Lt.create(),typeName:M.ZodFunction,...q(s)})}},$r=class extends H{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};$r.create=(t,e)=>new $r({getter:t,typeName:M.ZodLazy,...q(e)});var Yr=class extends H{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return C(r,{received:r.data,code:A.invalid_literal,expected:this._def.value}),j}return{status:"valid",value:e.data}}get value(){return this._def.value}};Yr.create=(t,e)=>new Yr({value:t,typeName:M.ZodLiteral,...q(e)});function Ld(t,e){return new Kr({values:t,typeName:M.ZodEnum,...q(e)})}var Kr=class t extends H{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),s=this._def.values;return C(r,{expected:J.joinValues(s),received:r.parsedType,code:A.invalid_type}),j}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),s=this._def.values;return C(r,{received:r.data,code:A.invalid_enum_value,options:s}),j}return Ue(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return t.create(e)}exclude(e){return t.create(this.options.filter(r=>!e.includes(r)))}};Kr.create=Ld;var zr=class extends H{_parse(e){let r=J.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==b.string&&s.parsedType!==b.number){let i=J.objectValues(r);return C(s,{expected:J.joinValues(i),received:s.parsedType,code:A.invalid_type}),j}if(r.indexOf(e.data)===-1){let i=J.objectValues(r);return C(s,{received:s.data,code:A.invalid_enum_value,options:i}),j}return Ue(e.data)}get enum(){return this._def.values}};zr.create=(t,e)=>new zr({values:t,typeName:M.ZodNativeEnum,...q(e)});var fr=class extends H{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==b.promise&&r.common.async===!1)return C(r,{code:A.invalid_type,expected:b.promise,received:r.parsedType}),j;let s=r.parsedType===b.promise?r.data:Promise.resolve(r.data);return Ue(s.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};fr.create=(t,e)=>new fr({type:t,typeName:M.ZodPromise,...q(e)});var Ye=class extends H{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===M.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:s}=this._processInputParams(e),i=this._def.effect||null,n={addIssue:o=>{C(s,o),o.fatal?r.abort():r.dirty()},get path(){return s.path}};if(n.addIssue=n.addIssue.bind(n),i.type==="preprocess"){let o=i.transform(s.data,n);return s.common.issues.length?{status:"dirty",value:s.data}:s.common.async?Promise.resolve(o).then(a=>this._def.schema._parseAsync({data:a,path:s.path,parent:s})):this._def.schema._parseSync({data:o,path:s.path,parent:s})}if(i.type==="refinement"){let o=a=>{let c=i.refinement(a,n);if(s.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){let a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?j:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?j:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(s.common.async===!1){let o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Ti(o))return o;let a=i.transform(o.value,n);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>Ti(o)?Promise.resolve(i.transform(o.value,n)).then(a=>({status:r.value,value:a})):o);J.assertNever(i)}};Ye.create=(t,e,r)=>new Ye({schema:t,typeName:M.ZodEffects,effect:e,...q(r)});Ye.createWithPreprocess=(t,e,r)=>new Ye({schema:e,effect:{type:"preprocess",transform:t},typeName:M.ZodEffects,...q(r)});var ht=class extends H{_parse(e){return this._getType(e)===b.undefined?Ue(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ht.create=(t,e)=>new ht({innerType:t,typeName:M.ZodOptional,...q(e)});var Ft=class extends H{_parse(e){return this._getType(e)===b.null?Ue(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Ft.create=(t,e)=>new Ft({innerType:t,typeName:M.ZodNullable,...q(e)});var Xr=class extends H{_parse(e){let{ctx:r}=this._processInputParams(e),s=r.data;return r.parsedType===b.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Xr.create=(t,e)=>new Xr({innerType:t,typeName:M.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...q(e)});var Cs=class extends H{_parse(e){let{ctx:r}=this._processInputParams(e),s={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Hn(i)?i.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new $e(s.common.issues)},input:s.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new $e(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}};Cs.create=(t,e)=>new Cs({innerType:t,typeName:M.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...q(e)});var Ps=class extends H{_parse(e){if(this._getType(e)!==b.nan){let s=this._getOrReturnCtx(e);return C(s,{code:A.invalid_type,expected:b.nan,received:s.parsedType}),j}return{status:"valid",value:e.data}}};Ps.create=t=>new Ps({typeName:M.ZodNaN,...q(t)});var Sv=Symbol("zod_brand"),Yn=class extends H{_parse(e){let{ctx:r}=this._processInputParams(e),s=r.data;return this._def.type._parse({data:s,path:r.path,parent:r})}unwrap(){return this._def.type}},Ai=class t extends H{_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{let n=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?j:n.status==="dirty"?(r.dirty(),xd(n.value)):this._def.out._parseAsync({data:n.value,path:s.path,parent:s})})();{let i=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?j:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:s.path,parent:s})}}static create(e,r){return new t({in:e,out:r,typeName:M.ZodPipeline})}},Ds=class extends H{_parse(e){let r=this._def.innerType._parse(e);return Ti(r)&&(r.value=Object.freeze(r.value)),r}};Ds.create=(t,e)=>new Ds({innerType:t,typeName:M.ZodReadonly,...q(e)});var Md=(t,e={},r)=>t?hr.create().superRefine((s,i)=>{var n,o;if(!t(s)){let a=typeof e=="function"?e(s):typeof e=="string"?{message:e}:e,c=(o=(n=a.fatal)!==null&&n!==void 0?n:r)!==null&&o!==void 0?o:!0,u=typeof a=="string"?{message:a}:a;i.addIssue({code:"custom",...u,fatal:c})}}):hr.create(),Ov={object:Ge.lazycreate},M;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(M||(M={}));var Rv=(t,e={message:`Input not instance of ${t.name}`})=>Md(r=>r instanceof t,e),Fd=lr.create,kd=Br.create,Tv=Ps.create,Av=Ur.create,Bd=Gr.create,vv=jr.create,Iv=Is.create,Nv=qr.create,bv=Hr.create,wv=hr.create,Cv=Lt.create,Pv=ft.create,Dv=Ns.create,xv=Mt.create,Lv=Ge.create,Mv=Ge.strictCreate,Fv=Wr.create,kv=Wn.create,Bv=Vr.create,Uv=Ot.create,Gv=Vn.create,jv=bs.create,qv=ws.create,Hv=$n.create,Wv=$r.create,Vv=Yr.create,$v=Kr.create,Yv=zr.create,Kv=fr.create,Pd=Ye.create,zv=ht.create,Xv=Ft.create,Zv=Ye.createWithPreprocess,Qv=Ai.create,Jv=()=>Fd().optional(),eI=()=>kd().optional(),tI=()=>Bd().optional(),rI={string:t=>lr.create({...t,coerce:!0}),number:t=>Br.create({...t,coerce:!0}),boolean:t=>Gr.create({...t,coerce:!0}),bigint:t=>Ur.create({...t,coerce:!0}),date:t=>jr.create({...t,coerce:!0})},sI=j,P=Object.freeze({__proto__:null,defaultErrorMap:Ri,setErrorMap:av,getErrorMap:jn,makeIssue:qn,EMPTY_PATH:cv,addIssueToContext:C,ParseStatus:Pe,INVALID:j,DIRTY:xd,OK:Ue,isAborted:mc,isDirty:Ec,isValid:Ti,isAsync:Hn,get util(){return J},get objectUtil(){return _c},ZodParsedType:b,getParsedType:ur,ZodType:H,ZodString:lr,ZodNumber:Br,ZodBigInt:Ur,ZodBoolean:Gr,ZodDate:jr,ZodSymbol:Is,ZodUndefined:qr,ZodNull:Hr,ZodAny:hr,ZodUnknown:Lt,ZodNever:ft,ZodVoid:Ns,ZodArray:Mt,ZodObject:Ge,ZodUnion:Wr,ZodDiscriminatedUnion:Wn,ZodIntersection:Vr,ZodTuple:Ot,ZodRecord:Vn,ZodMap:bs,ZodSet:ws,ZodFunction:$n,ZodLazy:$r,ZodLiteral:Yr,ZodEnum:Kr,ZodNativeEnum:zr,ZodPromise:fr,ZodEffects:Ye,ZodTransformer:Ye,ZodOptional:ht,ZodNullable:Ft,ZodDefault:Xr,ZodCatch:Cs,ZodNaN:Ps,BRAND:Sv,ZodBranded:Yn,ZodPipeline:Ai,ZodReadonly:Ds,custom:Md,Schema:H,ZodSchema:H,late:Ov,get ZodFirstPartyTypeKind(){return M},coerce:rI,any:wv,array:xv,bigint:Av,boolean:Bd,date:vv,discriminatedUnion:kv,effect:Pd,enum:$v,function:Hv,instanceof:Rv,intersection:Bv,lazy:Wv,literal:Vv,map:jv,nan:Tv,nativeEnum:Yv,never:Pv,null:bv,nullable:Xv,number:kd,object:Lv,oboolean:tI,onumber:eI,optional:zv,ostring:Jv,pipeline:Qv,preprocess:Zv,promise:Kv,record:Gv,set:qv,strictObject:Mv,string:Fd,symbol:Iv,transformer:Pd,tuple:Uv,undefined:Nv,union:Fv,unknown:Cv,void:Dv,NEVER:sI,ZodIssueCode:A,quotelessJson:ov,ZodError:$e});h();var Ud;(function(t){t.NONE="NONE",t.STUDIO="STUDIO",t.PLATFORM="PLATFORM",t.WORKER="WORKER",t.DASHBOARD="DASHBOARD",t.WIDGET="WIDGET",t.PAGE="PAGE",t.DASHBOARD_PLATFORM="DASHBOARD_PLATFORM",t.STUDIO_WIDGET="STUDIO_WIDGET",t.EMBEDDED_SCRIPT="EMBEDDED_SCRIPT",t.EXTENSION="EXTENSION",t.SNIPPET_SOLUTION="SNIPPET_SOLUTION",t.DATA_COMPONENT="DATA_COMPONENT",t.WEB="WEB",t.DC_CONFIG="DC_CONFIG",t.WIDGET_OUT_OF_IFRAME="WIDGET_OUT_OF_IFRAME",t.PAGE_OUT_OF_IFRAME="PAGE_OUT_OF_IFRAME",t.STATIC_FILE="STATIC_FILE",t.APP_CONFIG="APP_CONFIG",t.MULTIPLE_DASHBOARDS="MULTIPLE_DASHBOARDS",t.PAYMENTS_GATEWAY="PAYMENTS_GATEWAY",t.CODE_PACKAGE="CODE_PACKAGE",t.AUTOMATION_TRIGGER="AUTOMATION_TRIGGER",t.INVOICES_ACTIONS="INVOICES_ACTIONS",t.DASHBOARD_APPLICATION="DASHBOARD_APPLICATION",t.CONTACT_LABELS="CONTACT_LABELS",t.WIDGET_PLUGIN="WIDGET_PLUGIN",t.CROSS_SELL="CROSS_SELL",t.LOCAL_DELIVERY="LOCAL_DELIVERY",t.PAYMENT_PROVIDER="PAYMENT_PROVIDER",t.ECOM_MEMBERSHIPS="ECOM_MEMBERSHIPS",t.ECOM_LINE_ITEMS_ENRICHER="ECOM_LINE_ITEMS_ENRICHER",t.ECOM_SHIPPING_RATES="ECOM_SHIPPING_RATES",t.SHIPPING_LABEL_CARRIER="SHIPPING_LABEL_CARRIER",t.RESTAURANTS_POS="RESTAURANTS_POS",t.FICTIONAL_SHIPPING_PROVIDER="FICTIONAL_SHIPPING_PROVIDER",t.ALERT_ENRICHER="ALERT_ENRICHER",t.DATA_EXTENSIONS="DATA_EXTENSIONS",t.GENERIC_HOOKS="GENERIC_HOOKS",t.AUTOMATIONS_ACTION_PROVIDER="AUTOMATIONS_ACTION_PROVIDER",t.ECOM_CATALOG="ECOM_CATALOG",t.BACK_OFFICE_EXTENSION_CONTAINER="BACK_OFFICE_EXTENSION_CONTAINER",t.BACK_OFFICE_EXTENSION="BACK_OFFICE_EXTENSION",t.AUTOMATIONS_TRIGGER_PROVIDER="AUTOMATIONS_TRIGGER_PROVIDER",t.IDENTITY_PRE_REGISTRATION="IDENTITY_PRE_REGISTRATION",t.PREMIUM_PRODUCTS_PATHS="PREMIUM_PRODUCTS_PATHS",t.ECOM_CUSTOM_SCOPE="ECOM_CUSTOM_SCOPE",t.GIFT_CARDS_PROVIDER="GIFT_CARDS_PROVIDER",t.DEALER_EXTERNAL_FILTER_PROVIDER="DEALER_EXTERNAL_FILTER_PROVIDER",t.ECOM_DROPSHIPPING_PROVIDER="ECOM_DROPSHIPPING_PROVIDER",t.INVOICES_PROVIDER="INVOICES_PROVIDER",t.SEO_KEYWORDS_SUGGESTIONS="SEO_KEYWORDS_SUGGESTIONS",t.ECOM_DISCOUNTS_TRIGGER="ECOM_DISCOUNTS_TRIGGER",t.MULTILINGUAL_CONTENT_PROVIDER="MULTILINGUAL_CONTENT_PROVIDER",t.APPLICATION_AUTOMATION="APPLICATION_AUTOMATION",t.BACK_OFFICE_SIDEBAR_CATEGORY="BACK_OFFICE_SIDEBAR_CATEGORY",t.BACK_OFFICE_PAGE="BACK_OFFICE_PAGE",t.ECOM_ADDITIONAL_FEES="ECOM_ADDITIONAL_FEES",t.PING_USER_NOTIFICATION="PING_USER_NOTIFICATION",t.ECOM_RECOMMENDATIONS_PROVIDER="ECOM_RECOMMENDATIONS_PROVIDER",t.BOOKINGS_PRICING_PROVIDER="BOOKINGS_PRICING_PROVIDER",t.IDENTITY_AUTHENTICATOR="IDENTITY_AUTHENTICATOR",t.IDENTITY_IDP_CONNECTOR="IDENTITY_IDP_CONNECTOR",t.ITEMS_SELECTION_PROVIDER="ITEMS_SELECTION_PROVIDER",t.PORTFOLIO_SYNCED_PROJECTS_PROVIDER="PORTFOLIO_SYNCED_PROJECTS_PROVIDER",t.COMMUNICATION_CHANNEL="COMMUNICATION_CHANNEL",t.IDENTITY_POST_LOGIN="IDENTITY_POST_LOGIN",t.BACK_OFFICE_WIDGET="BACK_OFFICE_WIDGET",t.SOCIAL_MARKETING_DESIGN="SOCIAL_MARKETING_DESIGN",t.FORMS_SUBMISSIONS_PROVIDER="FORMS_SUBMISSIONS_PROVIDER",t.WIX_OFFERING="WIX_OFFERING",t.DEV_CENTER_TESTING_COMPONENT="DEV_CENTER_TESTING_COMPONENT",t.COMPONENTS_VALIDATOR_PROVIDER="COMPONENTS_VALIDATOR_PROVIDER",t.COMPONENTS_TRANSLATIONS_ADDITIONAL_FIELDS_PROVIDER="COMPONENTS_TRANSLATIONS_ADDITIONAL_FIELDS_PROVIDER",t.FORMS_SCHEMA_PROVIDER="FORMS_SCHEMA_PROVIDER",t.BOOKINGS_EXTERNAL_CALENDAR_PROVIDER="BOOKINGS_EXTERNAL_CALENDAR_PROVIDER",t.ECOM_DEFAULT_TAXATION_CATEGORY="ECOM_DEFAULT_TAXATION_CATEGORY",t.VIEWER_DYNAMIC_SITE_STRUCTURE_PROVIDER="VIEWER_DYNAMIC_SITE_STRUCTURE_PROVIDER",t.PING_UOU_NOTIFICATION="PING_UOU_NOTIFICATION",t.HEADLESS_OAUTH="HEADLESS_OAUTH",t.ECOM_TAX_CALCULATOR_SPI="ECOM_TAX_CALCULATOR_SPI",t.COMMENTS_MODERATION_PROVIDER="COMMENTS_MODERATION_PROVIDER",t.GRID_APP_FILES_TRANSFORMER="GRID_APP_FILES_TRANSFORMER",t.BENEFIT_PROGRAMS_POLICY_PROVIDER="BENEFIT_PROGRAMS_POLICY_PROVIDER",t.PREMIUM_CUSTOM_CHARGES="PREMIUM_CUSTOM_CHARGES",t.ECOM_VALIDATIONS="ECOM_VALIDATIONS",t.COMPONENT_REFERENCE_DATA_PROVIDER="COMPONENT_REFERENCE_DATA_PROVIDER",t.WIX_REVIEWS_PRODUCT_CATALOG="WIX_REVIEWS_PRODUCT_CATALOG",t.SOCIAL_MARKETING_DESIGNS_PROVIDER="SOCIAL_MARKETING_DESIGNS_PROVIDER",t.GOOGLE_BUSINESS_PROFILE_FEATURE_PROVIDER="GOOGLE_BUSINESS_PROFILE_FEATURE_PROVIDER",t.COMMENTS_FILTER_PROVIDER="COMMENTS_FILTER_PROVIDER",t.BILLING_TAX_ID_VALIDATOR="BILLING_TAX_ID_VALIDATOR",t.PING_SETTINGS_GROUP="PING_SETTINGS_GROUP",t.FORMS_SPAM_SUBMISSIONS_PROVIDER="FORMS_SPAM_SUBMISSIONS_PROVIDER",t.EDITOR_ADDON="EDITOR_ADDON",t.EXTERNAL_DATABASE_PROVIDER="EXTERNAL_DATABASE_PROVIDER",t.ECOM_PAYMENT_SETTINGS="ECOM_PAYMENT_SETTINGS",t.NOTIFICATION_TOPIC="NOTIFICATION_TOPIC",t.NOTIFICATION_PREFERENCES_FILTER_PROVIDER="NOTIFICATION_PREFERENCES_FILTER_PROVIDER",t.BOOKINGS_RESOURCE_TYPES_PROVIDER="BOOKINGS_RESOURCE_TYPES_PROVIDER",t.PRICING_PLANS_FORM_CONFIGURATION="PRICING_PLANS_FORM_CONFIGURATION",t.USER_NOTIFICATION="USER_NOTIFICATION",t.CONTACT_NOTIFICATION="CONTACT_NOTIFICATION",t.UNIFIED_PAGE="UNIFIED_PAGE",t.AVAILABILITY_TIME_SLOTS_CONFIGURATION_PROVIDER="AVAILABILITY_TIME_SLOTS_CONFIGURATION_PROVIDER",t.PROPOSAL_EDITOR_PROVIDER="PROPOSAL_EDITOR_PROVIDER",t.CUSTOM_TABLE_RESERVATIONS_PROVIDER="CUSTOM_TABLE_RESERVATIONS_PROVIDER",t.COMMENTS_CONTEXT_PROVIDER="COMMENTS_CONTEXT_PROVIDER",t.FORMS_SPAM_SUBMISSION_REPORTS_PROVIDER="FORMS_SPAM_SUBMISSION_REPORTS_PROVIDER",t.AUTOMATIONS_VELO_ACTION_PROVIDER="AUTOMATIONS_VELO_ACTION_PROVIDER",t.CALENDAR_EVENT_TYPE_PROVIDER="CALENDAR_EVENT_TYPE_PROVIDER",t.RESERVED="RESERVED",t.SMS_ACTION_MESSAGE="SMS_ACTION_MESSAGE",t.BOOKING_POLICY_PROVIDER="BOOKING_POLICY_PROVIDER",t.MULTI_SERVICE_BOOKING_POLICY_PROVIDER="MULTI_SERVICE_BOOKING_POLICY_PROVIDER",t.AI_ASSISTANT="AI_ASSISTANT",t.FORMS_SUBMISSIONS_EXTENSION_PROVIDER="FORMS_SUBMISSIONS_EXTENSION_PROVIDER",t.MULTILINGUAL_TRANSLATION_SCHEMA="MULTILINGUAL_TRANSLATION_SCHEMA",t.TAX_CALCULATION_PROVIDER="TAX_CALCULATION_PROVIDER",t.TAX_GROUPS_PROVIDER="TAX_GROUPS_PROVIDER",t.BACK_OFFICE_MODAL="BACK_OFFICE_MODAL",t.DEPLOYMENT_PIPELINE_PROVIDER="DEPLOYMENT_PIPELINE_PROVIDER"})(Ud||(Ud={}));var Gd;(function(t){t.NONE_VERTICAL="NONE_VERTICAL",t.TOP="TOP",t.CENTER_VERTICAL="CENTER_VERTICAL",t.BOTTOM="BOTTOM"})(Gd||(Gd={}));var jd;(function(t){t.NONE_HORIZONTAL="NONE_HORIZONTAL",t.LEFT="LEFT",t.CENTER_HORIZONTAL="CENTER_HORIZONTAL",t.RIGHT="RIGHT"})(jd||(jd={}));var qd;(function(t){t.NONE_TYPE="NONE_TYPE",t.CUSTOM="CUSTOM",t.FULL="FULL"})(qd||(qd={}));var Hd;(function(t){t.no_region="no_region",t.header="header",t.pageContainer="pageContainer",t.footer="footer"})(Hd||(Hd={}));var Wd;(function(t){t.NO_UNIT="NO_UNIT",t.AUTO="AUTO",t.PX="PX",t.VH="VH",t.VW="VW",t.PERCENTAGE="PERCENTAGE"})(Wd||(Wd={}));var Vd;(function(t){t.NO_HDOCKING="NO_HDOCKING",t.LEFT_DOCKING="LEFT_DOCKING",t.HCENTER="HCENTER",t.RIGHT_DOCKING="RIGHT_DOCKING"})(Vd||(Vd={}));var $d;(function(t){t.NO_VDOCKING="NO_VDOCKING",t.TOP_DOCKING="TOP_DOCKING",t.VCENTER="VCENTER",t.BOTTOM_DOCKING="BOTTOM_DOCKING"})($d||($d={}));var Yd;(function(t){t.UNKNOWN_REPLACEMENT="UNKNOWN_REPLACEMENT",t.REPLACING="REPLACING",t.REPLACEABLE="REPLACEABLE"})(Yd||(Yd={}));var Kd;(function(t){t.NONE_INTERFACE="NONE_INTERFACE",t.DEFAULT="DEFAULT",t.RESOURCE="RESOURCE",t.REVIEWS="REVIEWS",t.RATINGS_SUMMARY="RATINGS_SUMMARY",t.ENV="ENV",t.RATINGS_SUMMARY_OOI_LIST="RATINGS_SUMMARY_OOI_LIST",t.BOOKINGS_SERVICE="BOOKINGS_SERVICE",t.CHECKOUT_WIDGET="CHECKOUT_WIDGET",t.EVENT_DETAILS="EVENT_DETAILS",t.BOOKINGS_FORM="BOOKINGS_FORM",t.BASE="BASE",t.EVENT="EVENT",t.PRODUCT="PRODUCT",t.CHECKOUT="CHECKOUT"})(Kd||(Kd={}));var zd;(function(t){t.NO_PAGE="NO_PAGE",t.CURRENT="CURRENT",t.PAGE="PAGE",t.LIGHTBOX="LIGHTBOX"})(zd||(zd={}));var Xd;(function(t){t.HEADER="HEADER",t.BODY="BODY",t.FOOTER="FOOTER"})(Xd||(Xd={}));var Zd;(function(t){t.NONE_PAGES="NONE_PAGES",t.ONCE="ONCE",t.SPECIFIC_PAGES="SPECIFIC_PAGES"})(Zd||(Zd={}));var xs;(function(t){t.NONE_PLACEMENT="NONE_PLACEMENT",t.HEAD="HEAD",t.BODY_START="BODY_START",t.BODY_END="BODY_END"})(xs||(xs={}));var Zr;(function(t){t.UNKNOWN="UNKNOWN",t.ESSENTIAL="ESSENTIAL",t.FUNCTIONAL="FUNCTIONAL",t.ANALYTICS="ANALYTICS",t.ADVERTISING="ADVERTISING"})(Zr||(Zr={}));var Qd;(function(t){t.BACKGROUND="BACKGROUND",t.SECONDARY_TEXTS="SECONDARY_TEXTS",t.MAIN_TEXT_AND_ICONS="MAIN_TEXT_AND_ICONS",t.BORDERS_AND_DIVIDERS="BORDERS_AND_DIVIDERS",t.BUTTONS_AND_LINKS="BUTTONS_AND_LINKS"})(Qd||(Qd={}));var Jd;(function(t){t.SMALL="SMALL",t.MEDIUM="MEDIUM",t.LARGE="LARGE",t.XLARGE="XLARGE"})(Jd||(Jd={}));var ep;(function(t){t.ALIGN_LEFT="ALIGN_LEFT",t.ALIGN_CENTER="ALIGN_CENTER",t.ALIGN_RIGHT="ALIGN_RIGHT"})(ep||(ep={}));var tp;(function(t){t.TITLE="TITLE",t.PARAGRAPH="PARAGRAPH",t.LOWER_HIERARCHY_TEXTS="LOWER_HIERARCHY_TEXTS"})(tp||(tp={}));var rp;(function(t){t.WIDGET="WIDGET",t.PAGE="PAGE"})(rp||(rp={}));var sp;(function(t){t.NO_SCRIPT_TYPE="NO_SCRIPT_TYPE",t.MODULE="MODULE"})(sp||(sp={}));var ip;(function(t){t.NONE_EXTENSION="NONE_EXTENSION",t.PAYMENTS_GATEWAY_EXTENSION="PAYMENTS_GATEWAY_EXTENSION",t.COUPONS_EXTENSION="COUPONS_EXTENSION",t.DROPSHIPPING_EXTENSION="DROPSHIPPING_EXTENSION",t.FULFILMENT_EXTENSION="FULFILMENT_EXTENSION",t.DROPSHIPPING_SUPPLIER_EXTENSION="DROPSHIPPING_SUPPLIER_EXTENSION",t.FULFILLMENT_CENTER_EXTENSION="FULFILLMENT_CENTER_EXTENSION",t.RESTAURANTS_POS_EXTENSION="RESTAURANTS_POS_EXTENSION",t.ART_STORE_EXTENSION="ART_STORE_EXTENSION",t.ASCEND_AUTOMATION_EXTENSION="ASCEND_AUTOMATION_EXTENSION",t.CONTACT_LABELS_EXTENSION="CONTACT_LABELS_EXTENSION"})(ip||(ip={}));var np;(function(t){t.UNKNOWN_PRIMITIVE_TYPE="UNKNOWN_PRIMITIVE_TYPE",t.TEXT="TEXT",t.BOOLEAN="BOOLEAN",t.NUMBER="NUMBER"})(np||(np={}));var op;(function(t){t.UNKNOWN_SIMPLE_TYPE="UNKNOWN_SIMPLE_TYPE",t.MONEY="MONEY",t.LINK="LINK",t.BACKOFFICE_LINK="BACKOFFICE_LINK",t.LIVESITE_LINK="LIVESITE_LINK",t.MULTILINGUAL="MULTILINGUAL",t.IMAGE_LINK="IMAGE_LINK",t.GUID="GUID",t.EMAIL="EMAIL",t.PHONE="PHONE",t.CONTACT_ID="CONTACT_ID"})(op||(op={}));var ap;(function(t){t.UNKNOWN_EXPOSURE="UNKNOWN_EXPOSURE",t.SETUP="SETUP",t.HIDDEN="HIDDEN",t.EXPOSED="EXPOSED"})(ap||(ap={}));var cp;(function(t){t.UNDEFINED="UNDEFINED",t.ALLOW="ALLOW",t.DISALLOW="DISALLOW"})(cp||(cp={}));var up;(function(t){t.BUSINESS_MANAGER="BUSINESS_MANAGER",t.BUSINESS_DASHBOARD_HOST="BUSINESS_DASHBOARD_HOST",t.SIDEBAR_FOOTER="SIDEBAR_FOOTER"})(up||(up={}));var lp;(function(t){t.ZIPCODE="ZIPCODE",t.CITY="CITY",t.STATE="STATE",t.ADDRESS="ADDRESS",t.COUNTRY_CODE="COUNTRY_CODE",t.EMAIL="EMAIL",t.PHONE="PHONE",t.FIRST_NAME="FIRST_NAME",t.LAST_NAME="LAST_NAME",t.STREET="STREET",t.HOUSE_NUMBER="HOUSE_NUMBER",t.TAX_IDENTIFIER="TAX_IDENTIFIER"})(lp||(lp={}));var hp;(function(t){t.Metric="Metric",t.Imperial="Imperial"})(hp||(hp={}));var fp;(function(t){t.WIX="WIX",t.POS="POS"})(fp||(fp={}));var dp;(function(t){t.UNDEFINED="UNDEFINED",t.BEFORE_BLOCKING="BEFORE_BLOCKING",t.BEFORE="BEFORE",t.AFTER="AFTER"})(dp||(dp={}));var pp;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.WIDGET_COMPONENT="WIDGET_COMPONENT",t.GENERIC="GENERIC"})(pp||(pp={}));var _p;(function(t){t.UNKNOWN_EXECUTION_TYPE="UNKNOWN_EXECUTION_TYPE",t.SYNC="SYNC",t.ASYNC="ASYNC"})(_p||(_p={}));var mp;(function(t){t.INVALID="INVALID",t.BACK_OFFICE_MENU_ITEM="BACK_OFFICE_MENU_ITEM",t.BACK_OFFICE_EXTENSION_WIDGET="BACK_OFFICE_EXTENSION_WIDGET"})(mp||(mp={}));var Ep;(function(t){t.NO_HOSTING_PLATFORM="NO_HOSTING_PLATFORM",t.BUSINESS_MANAGER="BUSINESS_MANAGER",t.ACCOUNT_MANAGER="ACCOUNT_MANAGER",t.DEV_CENTER="DEV_CENTER",t.ENTERPRISE="ENTERPRISE",t.PARTNERS_DASHBOARD="PARTNERS_DASHBOARD",t.FINANCIALS_INTERNAL_BO="FINANCIALS_INTERNAL_BO",t.FED_GUILD_POC="FED_GUILD_POC",t.STUDIO_DASHBOARD="STUDIO_DASHBOARD",t.CHANNELS="CHANNELS",t.DATA_TOOLS="DATA_TOOLS",t.PSP_BACKOFFICE="PSP_BACKOFFICE",t.RISE_PLATFORM_ACCOUNT_DASHBOARD="RISE_PLATFORM_ACCOUNT_DASHBOARD"})(Ep||(Ep={}));var gp;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.MODULE="MODULE"})(gp||(gp={}));var yp;(function(t){t.PAGE="PAGE",t.MODAL="MODAL"})(yp||(yp={}));var Sp;(function(t){t.UNSPECIFIED="UNSPECIFIED",t.RELATED_ITEMS="RELATED_ITEMS",t.GLOBAL="GLOBAL"})(Sp||(Sp={}));var Op;(function(t){t.UNSPECIFIED_LOCKABLE="UNSPECIFIED_LOCKABLE",t.LOCKED="LOCKED",t.UNLOCKED="UNLOCKED"})(Op||(Op={}));var Rp;(function(t){t.UNSPECIFIED_RESTRICTED="UNSPECIFIED_RESTRICTED",t.ALLOW="ALLOW",t.WARN="WARN"})(Rp||(Rp={}));var Tp;(function(t){t.UNKNOWN="UNKNOWN",t.OR="OR",t.AND="AND"})(Tp||(Tp={}));var Ap;(function(t){t.ACTIVE="ACTIVE",t.INACTIVE="INACTIVE"})(Ap||(Ap={}));var vp;(function(t){t.TEXT="TEXT",t.PASSWORD="PASSWORD",t.CODE="CODE"})(vp||(vp={}));var Ip;(function(t){t.UNKNOWN_TAG="UNKNOWN_TAG",t.EMBEDDABLE="EMBEDDABLE",t.ECOM_EDIT_ORDER="ECOM_EDIT_ORDER",t.ECOM_CREATE_ORDER="ECOM_CREATE_ORDER"})(Ip||(Ip={}));var Np;(function(t){t.UNKNOWN_CHANNEL_TYPE="UNKNOWN_CHANNEL_TYPE",t.DIRECT_MESSAGING="DIRECT_MESSAGING",t.EMAIL="EMAIL",t.SMS="SMS"})(Np||(Np={}));var bp;(function(t){t.TEXT="TEXT",t.MEDIA="MEDIA",t.CARD="CARD",t.ANNOUNCEMENT="ANNOUNCEMENT",t.FORM="FORM"})(bp||(bp={}));var wp;(function(t){t.UNKNOWN_MIME_TYPE="UNKNOWN_MIME_TYPE",t.IMAGE_JPEG="IMAGE_JPEG",t.IMAGE_PNG="IMAGE_PNG",t.IMAGE_WEBP="IMAGE_WEBP",t.VIDEO_MPEG="VIDEO_MPEG",t.VIDEO_MP4="VIDEO_MP4",t.VIDEO_3GP="VIDEO_3GP",t.AUDIO_AAC="AUDIO_AAC",t.AUDIO_MP4="AUDIO_MP4",t.AUDIO_MPEG="AUDIO_MPEG",t.AUDIO_OGG="AUDIO_OGG",t.AUDIO_OPUS="AUDIO_OPUS",t.APPLICATION_PDF="APPLICATION_PDF",t.APPLICATION_OCTET_STREAM="APPLICATION_OCTET_STREAM"})(wp||(wp={}));var Cp;(function(t){t.SMS="SMS",t.MMS="MMS"})(Cp||(Cp={}));var Pp;(function(t){t.UNKNOWN_INIT_DIRECTION="UNKNOWN_INIT_DIRECTION",t.BUSINESS="BUSINESS",t.CUSTOMER="CUSTOMER",t.BOTH="BOTH"})(Pp||(Pp={}));var Dp;(function(t){t.UNDEFINED="UNDEFINED",t.GOOGLE="GOOGLE",t.I_CAL="I_CAL",t.MICROSOFT="MICROSOFT",t.OTHER="OTHER"})(Dp||(Dp={}));var xp;(function(t){t.OAUTH="OAUTH",t.CREDENTIALS="CREDENTIALS"})(xp||(xp={}));var Lp;(function(t){t.LIST_NOT_SUPPORTED="LIST_NOT_SUPPORTED",t.LIST_FROM_PRIMARY_CALENDAR_ONLY="LIST_FROM_PRIMARY_CALENDAR_ONLY",t.LIST_FROM_SPECIFIC_CALENDARS="LIST_FROM_SPECIFIC_CALENDARS"})(Lp||(Lp={}));var Mp;(function(t){t.SYNC_NOT_SUPPORTED="SYNC_NOT_SUPPORTED",t.SYNC_TO_PRIMARY_CALENDAR_ONLY="SYNC_TO_PRIMARY_CALENDAR_ONLY",t.SYNC_TO_DEDICATED_CALENDAR="SYNC_TO_DEDICATED_CALENDAR"})(Mp||(Mp={}));var Fp;(function(t){t.NAVIGATE="NAVIGATE",t.MODAL="MODAL"})(Fp||(Fp={}));var kp;(function(t){t.UNKNOWN_STATE="UNKNOWN_STATE",t.DEFAULT_ON="DEFAULT_ON",t.DEFAULT_OFF="DEFAULT_OFF",t.ALWAYS_ON="ALWAYS_ON"})(kp||(kp={}));var Bp;(function(t){t.UNKNOWN_STATE="UNKNOWN_STATE",t.DEFAULT_ON="DEFAULT_ON",t.DEFAULT_OFF="DEFAULT_OFF",t.ALWAYS_ON="ALWAYS_ON"})(Bp||(Bp={}));var Up;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.PROMOTIONAL="PROMOTIONAL",t.TRANSACTIONAL="TRANSACTIONAL"})(Up||(Up={}));var Gp;(function(t){t.UNKNWON_PLAN_FORM_SECTION="UNKNWON_PLAN_FORM_SECTION",t.INFO="INFO",t.BENEFITS="BENEFITS",t.PAGE_PERMISSIONS="PAGE_PERMISSIONS",t.PRICING_AND_DURATION="PRICING_AND_DURATION",t.ADVANCED_SETTINGS="ADVANCED_SETTINGS"})(Gp||(Gp={}));var jp;(function(t){t.UNDEFINED="UNDEFINED",t.DAY="DAY",t.WEEK="WEEK",t.MONTH="MONTH",t.YEAR="YEAR"})(jp||(jp={}));var qp;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.STRING="STRING",t.ARRAY="ARRAY"})(qp||(qp={}));var Hp;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.WIX_USERS="WIX_USERS",t.SITE_CONTRIBUTORS="SITE_CONTRIBUTORS"})(Hp||(Hp={}));var Wp;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.WIX_USER="WIX_USER",t.WIX_APP="WIX_APP"})(Wp||(Wp={}));var Vp;(function(t){t.UNKNOWN_LEVEL="UNKNOWN_LEVEL",t.ACCOUNT="ACCOUNT",t.USER="USER",t.SITE="SITE"})(Vp||(Vp={}));var $p;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.URL="URL",t.SPOUT="SPOUT",t.INITIATOR="INITIATOR"})($p||($p={}));var Yp;(function(t){t.UNKNOWN_MOBILE_APPLICATION="UNKNOWN_MOBILE_APPLICATION",t.OWNER="OWNER",t.SPACES="SPACES",t.DINE="DINE",t.FITNESS="FITNESS",t.WIX_LIFE="WIX_LIFE",t.WIX_PARTNERS="WIX_PARTNERS",t.BRANDED="BRANDED",t.WIX_STUDIO="WIX_STUDIO",t.NO_SPECIFIC_TARGET_APP="NO_SPECIFIC_TARGET_APP"})(Yp||(Yp={}));var Kp;(function(t){t.UNKNOWN_ANDROID_STYLE="UNKNOWN_ANDROID_STYLE",t.BIG_TEXT="BIG_TEXT",t.MESSAGING="MESSAGING",t.INBOX="INBOX"})(Kp||(Kp={}));var zp;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.OPEN_TO_ALL="OPEN_TO_ALL",t.OPEN_TO_NONE="OPEN_TO_NONE",t.BOOLEAN_EXPERIMENT="BOOLEAN_EXPERIMENT",t.CUSTOM_EXPERIMENT="CUSTOM_EXPERIMENT"})(zp||(zp={}));var Xp;(function(t){t.UNKNOWN_INTENT="UNKNOWN_INTENT",t.MARKETING="MARKETING",t.TRANSACTIONAL="TRANSACTIONAL"})(Xp||(Xp={}));var Zp;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.CONTACTS="CONTACTS"})(Zp||(Zp={}));var Qp;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.CONTACT="CONTACT",t.SITE_MEMBER="SITE_MEMBER"})(Qp||(Qp={}));var Jp;(function(t){t.LIVE_SITE="LIVE_SITE",t.BUSINESS_MANAGER="BUSINESS_MANAGER"})(Jp||(Jp={}));var e_;(function(t){t.UNKNOWN_SCOPE="UNKNOWN_SCOPE",t.GLOBAL="GLOBAL",t.SITE="SITE"})(e_||(e_={}));var t_;(function(t){t.UNDEFINED_TYPE="UNDEFINED_TYPE",t.SHORT_TEXT="SHORT_TEXT",t.LONG_TEXT="LONG_TEXT",t.HTML="HTML",t.RICH_CONTENT="RICH_CONTENT",t.IMAGE="IMAGE",t.IMAGE_LINK="IMAGE_LINK",t.JSON="JSON",t.VIDEO="VIDEO",t.DOCUMENT="DOCUMENT"})(t_||(t_={}));var yc="src",iI="dist",r_=".wix",nI=dt(r_,"app.config.json"),oI=dt(r_,"dev.log"),Qr=dt(yc,"dashboard","pages"),vi=dt(yc,"dashboard","widgets"),Ii=dt(yc,"website","embedded-scripts");function s_(t){return dt(t,Qr)}function i_(t){return dt(t,iI)}function kk(t){return dt(i_(t),"statics")}function Bk(t){return dt(t,nI)}function Uk(t){return dt(t,oI)}function Gk(t){return dt(i_(t),"devcenter","app-manifest.json")}var aI=P.object({id:P.string(),label:P.string(),priority:P.number().int().optional()}),cI=P.object({sidebar:P.object({categories:P.array(aI).optional()}).optional()}),n_=P.object({appId:P.string().uuid(),projectId:P.string().optional(),sentryDSN:P.string().optional(),trusted:P.boolean().default(!1),dashboard:cI.optional()}).strict(),jk=P.object({siteId:P.string().uuid().optional(),devArmTag:P.string().optional()}),uI=P.object({disabled:P.boolean().optional(),categoryId:P.string().uuid().optional(),priority:P.number().int().optional(),whenActive:P.object({selectedPageId:P.string().optional(),hideSidebar:P.boolean().optional()}).optional()}),o_=P.object({id:P.string().uuid(),title:P.string(),additionalRoutes:P.array(P.string()).optional(),requiredPermission:P.string().optional(),sidebar:uI.optional(),sentryDSN:P.string().optional(),experiments:P.object({enabledBy:P.string()}).optional()}).strict(),a_=P.object({id:P.string().uuid(),title:P.string(),requiredPermission:P.string().optional(),width:P.number(),height:P.number(),containerId:P.string().uuid(),sentryDSN:P.string().optional()}),c_=P.object({id:P.string().uuid(),name:P.string(),scriptType:P.enum([Zr.FUNCTIONAL,Zr.ESSENTIAL,Zr.ANALYTICS,Zr.ADVERTISING]),placement:P.enum([xs.HEAD,xs.BODY_START,xs.BODY_END])});h();import VM,{createContext as $M,useContext as YM,useState as OT,useEffect as KM}from"react";h();h();var lg=we(ug(),1),hg=we(kn(),1);import{statSync as jb}from"node:fs";import{access as qb,readFile as Hb,writeFile as Wb,mkdir as Vb,stat as $b}from"node:fs/promises";import{dirname as Yb,join as Kb}from"node:path";import{EOL as zb}from"node:os";async function PU(t,e,r){try{let s=JSON.stringify(e,null,r?.spaces).concat(zb);await Vb(Yb(t),{recursive:!0}),await Wb(t,s,"utf-8")}catch(s){throw new fe({code:de.FailedToWriteJson({filePath:t,cause:s}),cause:s})}}async function hs(t){let e=null;try{e=await Hb(t,"utf-8")}catch(r){throw new fe({code:de.FailedToReadJson({filePath:t,cause:r})})}try{return JSON.parse(e)}catch(r){throw new fe({code:de.InvalidJsonFile({filePath:t,cause:r})})}}function si(t){return qb(t).then(()=>!0).catch(()=>!1)}async function DU(t,e){if(!await si(t))throw new hg.default({name:"PathNotFound"},`Folder not found at '${t}'`);let r=0,s=0;await(0,lg.create)({strict:!0,gzip:!0,portable:!0,cwd:t,filter(n){let o=Kb(t,n),a=jb(o);return a.isFile()&&(r++,s+=a.size),!0},file:e},["."]);let i=(await $b(e)).size/1024;return{fileCount:r,compressedSizeInKb:Math.round(i),uncompressedSizeInKb:Math.round(s/1024)}}async function fg(){let t=await hs(Oi),e=n_.safeParse(t);if(e.success)return e.data;throw new fe({code:de.InvalidConfigSchemaError({configPath:Oi,zodError:e.error})})}h();h();import{join as cf}from"node:path";h();var SO=we(cl(),1),en=we(zh(),1),Ji=we(tO(),1);import Ix from"node:fs";import Nx from"node:path";h();var nf=we(zh(),1),dO=we(hO(),1);import Rx from"node:process";import fO from"node:fs";import fi from"node:path";h();function hi(t){let e=/^\\\\\?\\/.test(t),r=/[^\u0000-\u0080]+/.test(t);return e||r?t:t.replace(/\\/g,"/")}h();import{fileURLToPath as Sx}from"node:url";import{Transform as Ox}from"node:stream";var Qi=t=>t instanceof URL?Sx(t):t,Pa=class extends Ox{constructor(e){super({objectMode:!0,transform(r,s,i){i(void 0,e(r)?r:void 0)}})}},Da=t=>t[0]==="!";var pO={ignore:["**/node_modules","**/flow-typed","**/coverage","**/.git"],absolute:!0,dot:!0},_O="**/.gitignore",Tx=(t,e)=>Da(t)?"!"+fi.posix.join(e,t.slice(1)):fi.posix.join(e,t),Ax=(t,e)=>{let r=hi(fi.relative(e,fi.dirname(t.filePath)));return t.content.split(/\r?\n/).filter(s=>s&&!s.startsWith("#")).map(s=>Tx(s,r))},vx=(t,e)=>{if(e=hi(e),fi.isAbsolute(t)){if(hi(t).startsWith(e))return fi.relative(e,t);throw new Error(`Path ${t} is not in cwd ${e}`)}return t},mO=(t,e)=>{let r=t.flatMap(i=>Ax(i,e)),s=(0,dO.default)().add(r);return i=>(i=Qi(i),i=vx(i,e),i?s.ignores(hi(i)):!1)},EO=(t={})=>({cwd:Qi(t.cwd)||Rx.cwd(),suppressErrors:!!t.suppressErrors,deep:typeof t.deep=="number"?t.deep:Number.POSITIVE_INFINITY}),gO=async(t,e)=>{let{cwd:r,suppressErrors:s,deep:i}=EO(e),n=await(0,nf.default)(t,{cwd:r,suppressErrors:s,deep:i,...pO}),o=await Promise.all(n.map(async a=>({filePath:a,content:await fO.promises.readFile(a,"utf8")})));return mO(o,r)},yO=(t,e)=>{let{cwd:r,suppressErrors:s,deep:i}=EO(e),o=nf.default.sync(t,{cwd:r,suppressErrors:s,deep:i,...pO}).map(a=>({filePath:a,content:fO.readFileSync(a,"utf8")}));return mO(o,r)};var bx=t=>{if(t.some(e=>typeof e!="string"))throw new TypeError("Patterns must be a string or an array of strings")},of=t=>(t=[...new Set([t].flat())],bx(t),t),wx=t=>{if(!t.cwd)return;let e;try{e=Ix.statSync(t.cwd)}catch{return}if(!e.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},OO=(t={})=>(t={...t,ignore:t.ignore||[],expandDirectories:t.expandDirectories===void 0?!0:t.expandDirectories,cwd:Qi(t.cwd)},wx(t),t),RO=t=>async(e,r)=>t(of(e),OO(r)),xa=t=>(e,r)=>t(of(e),OO(r)),TO=t=>{let{ignoreFiles:e,gitignore:r}=t,s=e?of(e):[];return r&&s.push(_O),s},Cx=async t=>{let e=TO(t);return vO(e.length>0&&await gO(e,t))},AO=t=>{let e=TO(t);return vO(e.length>0&&yO(e,t))},vO=t=>{let e=new Set;return r=>{let s=r.path||r,i=Nx.normalize(s),n=e.has(i)||t&&t(s);return e.add(i),!n}},IO=(t,e)=>t.flat().filter(r=>e(r)),Px=(t,e)=>(0,SO.default)(t).pipe(new Pa(r=>e(r))),NO=(t,e)=>{let r=[];for(;t.length>0;){let s=t.findIndex(n=>Da(n));if(s===-1){r.push({patterns:t,options:e});break}let i=t[s].slice(1);for(let n of r)n.options.ignore.push(i);s!==0&&r.push({patterns:t.slice(0,s),options:{...e,ignore:[...e.ignore,i]}}),t=t.slice(s+1)}return r},bO=(t,e)=>({...e?{cwd:e}:{},...Array.isArray(t)?{files:t}:t}),wO=async(t,e)=>{let r=NO(t,e),{cwd:s,expandDirectories:i}=e;if(!i)return r;let n=bO(i,s),o=s?{cwd:s}:void 0;return Promise.all(r.map(async a=>{let{patterns:c,options:u}=a;return[c,u.ignore]=await Promise.all([(0,Ji.default)(c,n),(0,Ji.default)(u.ignore,o)]),{patterns:c,options:u}}))},af=(t,e)=>{let r=NO(t,e),{cwd:s,expandDirectories:i}=e;if(!i)return r;let n=bO(i,s),o=s?{cwd:s}:void 0;return r.map(a=>{let{patterns:c,options:u}=a;return c=Ji.default.sync(c,n),u.ignore=Ji.default.sync(u.ignore,o),{patterns:c,options:u}})},tn=RO(async(t,e)=>{let[r,s]=await Promise.all([wO(t,e),Cx(e)]),i=await Promise.all(r.map(n=>(0,en.default)(n.patterns,n.options)));return IO(i,s)}),Xj=xa((t,e)=>{let r=af(t,e),s=AO(e),i=r.map(n=>en.default.sync(n.patterns,n.options));return IO(i,s)}),Zj=xa((t,e)=>{let r=af(t,e),s=AO(e),i=r.map(n=>en.default.stream(n.patterns,n.options));return Px(i,s)}),Qj=xa((t,e)=>t.some(r=>en.default.isDynamicPattern(r,e))),Jj=RO(wO),eq=xa(af);h();var gs=we(Rs(),1),ut=(0,gs.variant)({DashboardPage:(0,gs.fields)(),DashboardWidget:(0,gs.fields)(),DashboardSidebarCategory:(0,gs.fields)(),EmbeddedScript:(0,gs.fields)()});h();var nn=we(Rs(),1);h();import{dirname as Dx,join as CO,parse as xx,relative as Lx,sep as Mx}from"node:path";import{platform as Fx}from"node:os";function rn(t,e){let{dir:r,name:s}=xx(t);return e!==""?CO(r,`${s}.${e}`):CO(r,s)}function PO(t,e){return`/${Lx(s_(t),Dx(e)).split(Mx).map(encodeURIComponent).join("/")}`}function sn(t){return Fx()==="win32"?t.replace(/\\/g,"/"):t}async function DO(t){let e=rn(t,"json");if(!await si(e))throw new fe({code:de.DashboardPageConfigNotFound({configPath:e})});let s=await hs(e),i=o_.safeParse(s);if(i.success)return i.data;throw new fe({code:de.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}async function xO(t){let e=rn(t,"json");if(!await si(e))throw new fe({code:de.DashboardWidgetConfigNotFound({configPath:e})});let s=await hs(e),i=a_.safeParse(s);if(i.success)return i.data;throw new fe({code:de.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}function kx(t){return`wix/html/dashboard-asset/${t}.html`}function mq(t){return new Map(t.components.filter(e=>(0,nn.isType)(e,ut.DashboardPage)||(0,nn.isType)(e,ut.DashboardWidget)).map(e=>[kx(e.id),e]))}function Bx(t){return`wix/scripts/dashboard-asset/${t}.js`}function Eq(t){return new Map(t.components.filter(e=>(0,nn.isType)(e,ut.DashboardPage)||(0,nn.isType)(e,ut.DashboardWidget)).map(e=>[Bx(e.id),e]))}var Ux=cf(Qr,"**","page.{ts,tsx,js,jsx}"),Gx=cf(vi,"**","widget.{ts,tsx,js,jsx}");async function jx(t,e){let r=await DO(e);return ut.DashboardPage({...r,relativePath:e,route:PO(t,cf(t,e))})}async function LO(t){let e=await tn(sn(Ux),{cwd:t}),r=await Promise.all(e.map(s=>jx(t,s)));if(r.length===0)throw new fe({code:de.NoDashboardPagesFound({dashboardPagesDir:Qr})});return r}async function qx(t){let e=await xO(t);return ut.DashboardWidget({...e,relativePath:t})}async function MO(t){let e=await tn(sn(Gx),{cwd:t});return await Promise.all(e.map(s=>qx(s)))}h();import{join as Hx}from"node:path";h();async function FO(t){let e=rn(t,"json");if(!await si(e))throw new fe({code:de.EmbeddedScriptConfigNotFound({configPath:e})});let s=await hs(e),i=c_.safeParse(s);if(i.success)return i.data;throw new fe({code:de.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}var uf=Hx(Ii,"**","embedded.html");async function Wx(t){let e=await FO(t);return ut.EmbeddedScript({...e,relativePath:t})}async function kO(t){let e=await tn(sn(uf),{cwd:t});return await Promise.all(e.map(s=>Wx(s)))}async function BO({projectFolder:t,config:e}){let r=await LO(t),s=await MO(t),i=await kO(t),n=(e.dashboard?.sidebar?.categories??[]).map(ut.DashboardSidebarCategory);return[...r,...s,...i,...n]}h();import{join as Kf,basename as gT}from"node:path";import{EventEmitter as jM}from"node:events";var Yf=we(bR(),1),yT=we(oT(),1);h();var EM=Object.getOwnPropertyNames,gM=Object.getOwnPropertySymbols,yM=Object.prototype.hasOwnProperty;function aT(t,e){return function(s,i,n){return t(s,i,n)&&e(s,i,n)}}function $a(t){return function(r,s,i){if(!r||!s||typeof r!="object"||typeof s!="object")return t(r,s,i);var n=i.cache,o=n.get(r),a=n.get(s);if(o&&a)return o===s&&a===r;n.set(r,s),n.set(s,r);var c=t(r,s,i);return n.delete(r),n.delete(s),c}}function cT(t){return EM(t).concat(gM(t))}var _T=Object.hasOwn||function(t,e){return yM.call(t,e)};function mi(t,e){return t||e?t===e:t===e||t!==t&&e!==e}var mT="_owner",uT=Object.getOwnPropertyDescriptor,lT=Object.keys;function SM(t,e,r){var s=t.length;if(e.length!==s)return!1;for(;s-- >0;)if(!r.equals(t[s],e[s],s,s,t,e,r))return!1;return!0}function OM(t,e){return mi(t.getTime(),e.getTime())}function hT(t,e,r){if(t.size!==e.size)return!1;for(var s={},i=t.entries(),n=0,o,a;(o=i.next())&&!o.done;){for(var c=e.entries(),u=!1,l=0;(a=c.next())&&!a.done;){var f=o.value,d=f[0],E=f[1],g=a.value,R=g[0],v=g[1];!u&&!s[l]&&(u=r.equals(d,R,n,l,t,e,r)&&r.equals(E,v,d,R,t,e,r))&&(s[l]=!0),l++}if(!u)return!1;n++}return!0}function RM(t,e,r){var s=lT(t),i=s.length;if(lT(e).length!==i)return!1;for(var n;i-- >0;)if(n=s[i],n===mT&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!_T(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function _n(t,e,r){var s=cT(t),i=s.length;if(cT(e).length!==i)return!1;for(var n,o,a;i-- >0;)if(n=s[i],n===mT&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!_T(e,n)||!r.equals(t[n],e[n],n,n,t,e,r)||(o=uT(t,n),a=uT(e,n),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function TM(t,e){return mi(t.valueOf(),e.valueOf())}function AM(t,e){return t.source===e.source&&t.flags===e.flags}function fT(t,e,r){if(t.size!==e.size)return!1;for(var s={},i=t.values(),n,o;(n=i.next())&&!n.done;){for(var a=e.values(),c=!1,u=0;(o=a.next())&&!o.done;)!c&&!s[u]&&(c=r.equals(n.value,o.value,n.value,o.value,t,e,r))&&(s[u]=!0),u++;if(!c)return!1}return!0}function vM(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var IM="[object Arguments]",NM="[object Boolean]",bM="[object Date]",wM="[object Map]",CM="[object Number]",PM="[object Object]",DM="[object RegExp]",xM="[object Set]",LM="[object String]",MM=Array.isArray,dT=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,pT=Object.assign,FM=Object.prototype.toString.call.bind(Object.prototype.toString);function kM(t){var e=t.areArraysEqual,r=t.areDatesEqual,s=t.areMapsEqual,i=t.areObjectsEqual,n=t.arePrimitiveWrappersEqual,o=t.areRegExpsEqual,a=t.areSetsEqual,c=t.areTypedArraysEqual;return function(l,f,d){if(l===f)return!0;if(l==null||f==null||typeof l!="object"||typeof f!="object")return l!==l&&f!==f;var E=l.constructor;if(E!==f.constructor)return!1;if(E===Object)return i(l,f,d);if(MM(l))return e(l,f,d);if(dT!=null&&dT(l))return c(l,f,d);if(E===Date)return r(l,f,d);if(E===RegExp)return o(l,f,d);if(E===Map)return s(l,f,d);if(E===Set)return a(l,f,d);var g=FM(l);return g===bM?r(l,f,d):g===DM?o(l,f,d):g===wM?s(l,f,d):g===xM?a(l,f,d):g===PM?typeof l.then!="function"&&typeof f.then!="function"&&i(l,f,d):g===IM?i(l,f,d):g===NM||g===CM||g===LM?n(l,f,d):!1}}function BM(t){var e=t.circular,r=t.createCustomConfig,s=t.strict,i={areArraysEqual:s?_n:SM,areDatesEqual:OM,areMapsEqual:s?aT(hT,_n):hT,areObjectsEqual:s?_n:RM,arePrimitiveWrappersEqual:TM,areRegExpsEqual:AM,areSetsEqual:s?aT(fT,_n):fT,areTypedArraysEqual:s?_n:vM};if(r&&(i=pT({},i,r(i))),e){var n=$a(i.areArraysEqual),o=$a(i.areMapsEqual),a=$a(i.areObjectsEqual),c=$a(i.areSetsEqual);i=pT({},i,{areArraysEqual:n,areMapsEqual:o,areObjectsEqual:a,areSetsEqual:c})}return i}function UM(t){return function(e,r,s,i,n,o,a){return t(e,r,a)}}function GM(t){var e=t.circular,r=t.comparator,s=t.createState,i=t.equals,n=t.strict;if(s)return function(c,u){var l=s(),f=l.cache,d=f===void 0?e?new WeakMap:void 0:f,E=l.meta;return r(c,u,{cache:d,equals:i,meta:E,strict:n})};if(e)return function(c,u){return r(c,u,{cache:new WeakMap,equals:i,meta:void 0,strict:n})};var o={cache:void 0,equals:i,meta:void 0,strict:n};return function(c,u){return r(c,u,o)}}var ET=xr(),GH=xr({strict:!0}),jH=xr({circular:!0}),qH=xr({circular:!0,strict:!0}),HH=xr({createInternalComparator:function(){return mi}}),WH=xr({strict:!0,createInternalComparator:function(){return mi}}),VH=xr({circular:!0,createInternalComparator:function(){return mi}}),$H=xr({circular:!0,createInternalComparator:function(){return mi},strict:!0});function xr(t){t===void 0&&(t={});var e=t.circular,r=e===void 0?!1:e,s=t.createInternalComparator,i=t.createState,n=t.strict,o=n===void 0?!1:n,a=BM(t),c=kM(a),u=s?s(c):UM(c);return GM({circular:r,comparator:c,createState:i,equals:u,strict:o})}var qM=Kf(Qr,"**","page.json"),HM=Kf(vi,"**","widget.json"),WM=Kf(Ii,"**","embedded.json"),Ya=class{emitter=new jM;fsWatchers=[];prevModel;constructor(e){this.prevModel=e}watch(){let e=Yf.default.watch([qM,HM,WM,uf,Oi],{ignoreInitial:!0}).on("add",this.emitConfigUpdate).on("change",this.emitConfigUpdate),r=Yf.default.watch([`${Qr}/**`,`${vi}/**`,`${Ii}/**`],{ignoreInitial:!0}).on("unlink",async s=>{let i=gT(s);(i==="page.json"||i==="widget.json"||i==="embedded.json")&&await this.emitConfigUpdate(s)});return this.fsWatchers.push(e,r),this}onChange(e){return this.emitter.on("all",e),this}onError(e){return this.emitter.on("error",e),this}async close(){await Promise.all(this.fsWatchers.map(e=>e.close()))}emitConfigUpdate=(0,yT.default)(async e=>{try{let r=await ST(this.prevModel.projectFolder);this.emitter.emit("all",r,"change-received"),!ET(r,this.prevModel)||gT(e)==="embedded.html"?(this.prevModel=r,this.emitter.emit("all",r,"model-updated")):this.emitter.emit("all",r,"model-did-not-change")}catch(r){this.emitter.emit("error",r)}},200)};async function ST(t){let e=await fg();return{projectFolder:t,config:e,components:await BO({projectFolder:t,config:e})}}var RT=$M(null),cW=t=>{let[e,r]=OT(t.value),[s]=OT(()=>{let i=new Ya(e);return t.watchForChanges===!0&&i.watch().onChange((n,o)=>{o==="model-updated"&&r(n)}),i});return KM(()=>()=>{s.close()},[s]),VM.createElement(RT.Provider,{value:{model:e,watcher:s}},t.children)};function uW(){let t=YM(RT);if(t===null)throw new Error("useProjectModel() cannot be used without an <ProjectModelProvider>");return t}h();import zM from"node:process";var XM=P.object({biLoggerBaseUrl:P.string().url().optional(),devEditorBaseUrl:P.string().url().optional(),inkDebug:P.boolean().optional(),minRetryTimeout:P.number().optional(),sentryDsn:P.string().optional(),userBrowserTestEndpoint:P.string().url().optional(),dataDir:P.string().optional(),wixCliDependencyVersion:P.string().optional(),wixCliAppDependencyVersion:P.string().optional(),appInstallationPollInterval:P.number().optional(),disableTTY:P.boolean().optional(),waitForLoginInterval:P.number().optional(),cacheDir:P.string().url().optional()}),ZM="WIX_CLI_TEST_OVERRIDES";function TT(){let t=zM.env[ZM];return t?XM.parse(JSON.parse(t)):{}}h();import{mkdir as QM}from"node:fs/promises";import{resolve as JM}from"node:path";import{homedir as eF}from"node:os";function tF(){return TT().dataDir??JM(eF(),".wix")}async function SW(){await QM(tF(),{recursive:!0})}export{Rs as a,kn as b,fe as c,de as d,Un as e,rv as f,sv as g,P as h,TT as i,tF as j,SW as k,Eu as l,PU as m,hs as n,si as o,DU as p,Hf as q,oT as r,Oi as s,Nk as t,Ud as u,Zd as v,xs as w,Zr as x,mp as y,Ep as z,gp as A,nI as B,oI as C,kk as D,Bk as E,Uk as F,Gk as G,jk as H,ut as I,rn as J,kx as K,mq as L,Bx as M,Eq as N,Ux as O,Gx as P,ST as Q,cW as R,uW as S};
|
|
9
|
+
/*! Bundled license information:
|
|
10
|
+
|
|
11
|
+
is-extglob/index.js:
|
|
12
|
+
(*!
|
|
13
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
16
|
+
* Licensed under the MIT License.
|
|
17
|
+
*)
|
|
18
|
+
|
|
19
|
+
is-glob/index.js:
|
|
20
|
+
(*!
|
|
21
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
24
|
+
* Released under the MIT License.
|
|
25
|
+
*)
|
|
26
|
+
|
|
27
|
+
is-number/index.js:
|
|
28
|
+
(*!
|
|
29
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
32
|
+
* Released under the MIT License.
|
|
33
|
+
*)
|
|
34
|
+
|
|
35
|
+
to-regex-range/index.js:
|
|
36
|
+
(*!
|
|
37
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
40
|
+
* Released under the MIT License.
|
|
41
|
+
*)
|
|
42
|
+
|
|
43
|
+
fill-range/index.js:
|
|
44
|
+
(*!
|
|
45
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
46
|
+
*
|
|
47
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
48
|
+
* Licensed under the MIT License.
|
|
49
|
+
*)
|
|
50
|
+
|
|
51
|
+
queue-microtask/index.js:
|
|
52
|
+
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
53
|
+
|
|
54
|
+
run-parallel/index.js:
|
|
55
|
+
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
56
|
+
|
|
57
|
+
normalize-path/index.js:
|
|
58
|
+
(*!
|
|
59
|
+
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
62
|
+
* Released under the MIT License.
|
|
63
|
+
*)
|
|
64
|
+
*/
|
|
65
|
+
//# sourceMappingURL=chunk-52CFCSNQ.js.map
|