@capgo/cli 4.21.13 → 4.21.14
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/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -198,7 +198,7 @@ tell application "System Events" to get value of property list item "CFBundleNam
|
|
|
198
198
|
GFS4: `),console.error(e)});Ze[St]||(X5=global[St]||[],e9(Ze,X5),Ze.close=function(e){function t(r,n){return e.call(Ze,r,function(i){i||Q5(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,$g,{value:e}),t}(Ze.close),Ze.closeSync=function(e){function t(r){e.apply(Ze,arguments),Q5()}return Object.defineProperty(t,$g,{value:e}),t}(Ze.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ts(Ze[St]),require("assert").equal(Ze[St].length,0)}));var X5;global[St]||e9(global,Ze[St]);UC.exports=LC(nve(Ze));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ze.__patched&&(UC.exports=LC(Ze),Ze.__patched=!0);function LC(e){tve(e),e.gracefulify=LC,e.createReadStream=P,e.createWriteStream=j;var t=e.readFile;e.readFile=r;function r(E,$,k){return typeof $=="function"&&(k=$,$=null),N(E,$,k);function N(M,G,L,_){return t(M,G,function(y){y&&(y.code==="EMFILE"||y.code==="ENFILE")?Ku([N,[M,G,L],y,_||Date.now(),Date.now()]):typeof L=="function"&&L.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(E,$,k,N){return typeof k=="function"&&(N=k,k=null),M(E,$,k,N);function M(G,L,_,y,D){return n(G,L,_,function(C){C&&(C.code==="EMFILE"||C.code==="ENFILE")?Ku([M,[G,L,_,y],C,D||Date.now(),Date.now()]):typeof y=="function"&&y.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=s);function s(E,$,k,N){return typeof k=="function"&&(N=k,k=null),M(E,$,k,N);function M(G,L,_,y,D){return o(G,L,_,function(C){C&&(C.code==="EMFILE"||C.code==="ENFILE")?Ku([M,[G,L,_,y],C,D||Date.now(),Date.now()]):typeof y=="function"&&y.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=l);function l(E,$,k,N){return typeof k=="function"&&(N=k,k=0),M(E,$,k,N);function M(G,L,_,y,D){return a(G,L,_,function(C){C&&(C.code==="EMFILE"||C.code==="ENFILE")?Ku([M,[G,L,_,y],C,D||Date.now(),Date.now()]):typeof y=="function"&&y.apply(this,arguments)})}}var u=e.readdir;e.readdir=f;var c=/^v[0-5]\./;function f(E,$,k){typeof $=="function"&&(k=$,$=null);var N=c.test(process.version)?function(L,_,y,D){return u(L,M(L,_,y,D))}:function(L,_,y,D){return u(L,_,M(L,_,y,D))};return N(E,$,k);function M(G,L,_,y){return function(D,C){D&&(D.code==="EMFILE"||D.code==="ENFILE")?Ku([N,[G,L,_],D,y||Date.now(),Date.now()]):(C&&C.sort&&C.sort(),typeof _=="function"&&_.call(this,D,C))}}}if(process.version.substr(0,4)==="v0.8"){var h=rve(e);w=h.ReadStream,O=h.WriteStream}var d=e.ReadStream;d&&(w.prototype=Object.create(d.prototype),w.prototype.open=x);var g=e.WriteStream;g&&(O.prototype=Object.create(g.prototype),O.prototype.open=A),Object.defineProperty(e,"ReadStream",{get:function(){return w},set:function(E){w=E},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return O},set:function(E){O=E},enumerable:!0,configurable:!0});var b=w;Object.defineProperty(e,"FileReadStream",{get:function(){return b},set:function(E){b=E},enumerable:!0,configurable:!0});var v=O;Object.defineProperty(e,"FileWriteStream",{get:function(){return v},set:function(E){v=E},enumerable:!0,configurable:!0});function w(E,$){return this instanceof w?(d.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}function x(){var E=this;B(E.path,E.flags,E.mode,function($,k){$?(E.autoClose&&E.destroy(),E.emit("error",$)):(E.fd=k,E.emit("open",k),E.read())})}function O(E,$){return this instanceof O?(g.apply(this,arguments),this):O.apply(Object.create(O.prototype),arguments)}function A(){var E=this;B(E.path,E.flags,E.mode,function($,k){$?(E.destroy(),E.emit("error",$)):(E.fd=k,E.emit("open",k))})}function P(E,$){return new e.ReadStream(E,$)}function j(E,$){return new e.WriteStream(E,$)}var F=e.open;e.open=B;function B(E,$,k,N){return typeof k=="function"&&(N=k,k=null),M(E,$,k,N);function M(G,L,_,y,D){return F(G,L,_,function(C,I){C&&(C.code==="EMFILE"||C.code==="ENFILE")?Ku([M,[G,L,_,y],C,D||Date.now(),Date.now()]):typeof y=="function"&&y.apply(this,arguments)})}}return e}function Ku(e){Ts("ENQUEUE",e[0].name,e[1]),Ze[St].push(e),MC()}var Rg;function Q5(){for(var e=Date.now(),t=0;t<Ze[St].length;++t)Ze[St][t].length>2&&(Ze[St][t][3]=e,Ze[St][t][4]=e);MC()}function MC(){if(clearTimeout(Rg),Rg=void 0,Ze[St].length!==0){var e=Ze[St].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)Ts("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Ts("TIMEOUT",t.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var a=Date.now()-o,l=Math.max(o-i,1),u=Math.min(l*1.2,100);a>=u?(Ts("RETRY",t.name,r),t.apply(null,r.concat([i]))):Ze[St].push(e)}Rg===void 0&&(Rg=setTimeout(MC,0))}}});var r9=m(Yu=>{"use strict";var ove=Yu&&Yu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yu,"__esModule",{value:!0});Yu.readCAFileSync=void 0;var sve=ove(t9());function ave(e){try{let t=sve.default.readFileSync(e,"utf8"),r="-----END CERTIFICATE-----";return t.split(r).filter(i=>!!i.trim()).map(i=>`${i.trimLeft()}${r}`)}catch(t){if(t.code==="ENOENT")return;throw t}}Yu.readCAFileSync=ave});var n9=m(Ps=>{"use strict";var uve=Ps&&Ps.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),lve=Ps&&Ps.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&uve(t,e,r)};Object.defineProperty(Ps,"__esModule",{value:!0});lve(r9(),Ps)});var s9=m((_Fe,o9)=>{o9.exports=i9;function Rs(e,t){if(typeof Object.setPrototypeOf=="function")return Object.setPrototypeOf(e,t);e.__proto__=t}function i9(){this.list=[];var e=null;Object.defineProperty(this,"root",{get:function(){return e},set:function(t){e=t,this.list.length&&Rs(this.list[this.list.length-1],t)},enumerable:!0,configurable:!0})}i9.prototype={get length(){return this.list.length},get keys(){var e=[];for(var t in this.list[0])e.push(t);return e},get snapshot(){var e={};return this.keys.forEach(function(t){e[t]=this.get(t)},this),e},get store(){return this.list[0]},push:function(e){return typeof e!="object"&&(e={valueOf:e}),this.list.length>=1&&Rs(this.list[this.list.length-1],e),Rs(e,this.root),this.list.push(e)},pop:function(){return this.list.length>=2&&Rs(this.list[this.list.length-2],this.root),this.list.pop()},unshift:function(e){return Rs(e,this.list[0]||this.root),this.list.unshift(e)},shift:function(){return this.list.length===1&&Rs(this.list[0],this.root),this.list.shift()},get:function(e){return this.list[0][e]},set:function(e,t,r){return this.length||this.push({}),r&&this.list[0].hasOwnProperty(e)&&this.push({}),this.list[0][e]=t},forEach:function(e,t){for(var r in this.list[0])e.call(t,r,this.list[0][r])},slice:function(){return this.list.slice.apply(this.list,arguments)},splice:function(){for(var e=this.list.splice.apply(this.list,arguments),t=0,r=this.list.length;t<r;t++)Rs(this.list[t],this.list[t+1]||this.root);return e}}});var c9=m($s=>{$s.parse=$s.decode=cve;$s.stringify=$s.encode=a9;$s.safe=Zu;$s.unsafe=Ig;var zC=typeof process<"u"&&process.platform==="win32"?`\r
|
|
199
199
|
`:`
|
|
200
200
|
`;function a9(e,t){var r=[],n="";typeof t=="string"?t={section:t,whitespace:!1}:(t=t||{},t.whitespace=t.whitespace===!0);var i=t.whitespace?" = ":"=";return Object.keys(e).forEach(function(o,s,a){var l=e[o];l&&Array.isArray(l)?l.forEach(function(u){n+=Zu(o+"[]")+i+Zu(u)+`
|
|
201
|
-
`}):l&&typeof l=="object"?r.push(o):n+=Zu(o)+i+Zu(l)+zC}),t.section&&n.length&&(n="["+Zu(t.section)+"]"+zC+n),r.forEach(function(o,s,a){var l=u9(o).join("\\."),u=(t.section?t.section+".":"")+l,c=a9(e[o],{section:u,whitespace:t.whitespace});n.length&&c.length&&(n+=zC),n+=c}),n}function u9(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(t){return t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function cve(e){var t={},r=t,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,o=e.split(/[\r\n]+/g);return o.forEach(function(s,a,l){if(!(!s||s.match(/^\s*[;#]/))){var u=s.match(i);if(u){if(u[1]!==void 0){if(n=Ig(u[1]),n==="__proto__"){r={};return}r=t[n]=t[n]||{};return}var c=Ig(u[2]);if(c!=="__proto__"){var f=u[3]?Ig(u[4]):!0;switch(f){case"true":case"false":case"null":f=JSON.parse(f)}if(c.length>2&&c.slice(-2)==="[]"){if(c=c.substring(0,c.length-2),c==="__proto__")return;r[c]?Array.isArray(r[c])||(r[c]=[r[c]]):r[c]=[]}Array.isArray(r[c])?r[c].push(f):r[c]=f}}}}),Object.keys(t).filter(function(s,a,l){if(!t[s]||typeof t[s]!="object"||Array.isArray(t[s]))return!1;var u=u9(s),c=t,f=u.pop(),h=f.replace(/\\\./g,".");return u.forEach(function(d,g,b){d!=="__proto__"&&((!c[d]||typeof c[d]!="object")&&(c[d]={}),c=c[d])}),c===t&&h===f?!1:(c[h]=t[s],!0)}).forEach(function(s,a,l){delete t[s]}),t}function l9(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function Zu(e){return typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&l9(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function Ig(e,t){if(e=(e||"").trim(),l9(e)){e.charAt(0)==="'"&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch{}}else{for(var r=!1,n="",i=0,o=e.length;i<o;i++){var s=e.charAt(i);if(r)"\\;#".indexOf(s)!==-1?n+=s:n+="\\"+s,r=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?r=!0:n+=s}}return r&&(n+="\\"),n.trim()}return e}});var p9=m((wi,d9)=>{var f9=s9(),Gf=require("path"),jg=require("fs"),HC=c9(),VC=require("events").EventEmitter,fve=require("url"),hve=require("http"),wi=d9.exports=function(){for(var e=[].slice.call(arguments),t=new Rt;e.length;){var r=e.shift();r&&t.push(typeof r=="string"?pve(r):r)}return t},EFe=wi.find=function(){var e=Gf.join.apply(null,[].slice.call(arguments));function t(r,n){var i=Gf.join(r,n);try{return jg.statSync(i),i}catch{if(Gf.dirname(r)!==r)return t(Gf.dirname(r),n)}}return t(__dirname,e)},dve=wi.parse=function(e,t,r){if(e=""+e,r)if(r==="json")if(this.emit)try{return JSON.parse(e)}catch(n){this.emit("error",n)}else return JSON.parse(e);else return HC.parse(e);else try{return JSON.parse(e)}catch{return HC.parse(e)}},pve=wi.json=function(){var e=[].slice.call(arguments).filter(function(n){return n!=null}),t=Gf.join.apply(null,e),r;try{r=jg.readFileSync(t,"utf-8")}catch{return}return dve(r,t,"json")},CFe=wi.env=function(e,t){t=t||process.env;var r={},n=e.length;for(var i in t)i.indexOf(e)===0&&(r[i.substring(n)]=t[i]);return r};wi.ConfigChain=Rt;function Rt(){VC.apply(this),f9.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var h9={constructor:{value:Rt}};Object.keys(VC.prototype).forEach(function(e){h9[e]=Object.getOwnPropertyDescriptor(VC.prototype,e)});Rt.prototype=Object.create(f9.prototype,h9);Rt.prototype.del=function(e,t){if(t){var r=this.sources[t];if(r=r&&r.data,!r)return this.emit("error",new Error("not found "+t));delete r[e]}else for(var n=0,i=this.list.length;n<i;n++)delete this.list[n][e];return this};Rt.prototype.set=function(e,t,r){var n;if(r){if(n=this.sources[r],n=n&&n.data,!n)return this.emit("error",new Error("not found "+r))}else if(n=this.list[0],!n)return this.emit("error",new Error("cannot set, no confs!"));return n[e]=t,this};Rt.prototype.get=function(e,t){return t?(t=this.sources[t],t&&(t=t.data),t&&Object.hasOwnProperty.call(t,e)?t[e]:void 0):this.list[0][e]};Rt.prototype.save=function(e,o,r){typeof o=="function"&&(r=o,o=null);var n=this.sources[e];if(!n||!(n.path||n.source)||!n.data)return this.emit("error",new Error("bad save target: "+e));if(n.source){var i=n.prefix||"";return Object.keys(n.data).forEach(function(a){n.source[i+a]=n.data[a]}),this}var o=o||n.type,s=n.data;return n.type==="json"?s=JSON.stringify(s):s=HC.stringify(s),this._saving++,jg.writeFile(n.path,s,"utf8",function(a){if(this._saving--,a)return r?r(a):this.emit("error",a);this._saving===0&&(r&&r(),this.emit("save"))}.bind(this)),this};Rt.prototype.addFile=function(e,t,r){r=r||e;var n={__source__:r};return this.sources[r]={path:e,type:t},this.push(n),this._await(),jg.readFile(e,"utf8",function(i,o){i&&this.emit("error",i),this.addString(o,e,t,n)}.bind(this)),this};Rt.prototype.addEnv=function(e,t,r){r=r||"env";var n=wi.env(e,t);return this.sources[r]={data:n,source:t,prefix:e},this.add(n,r)};Rt.prototype.addUrl=function(e,t,r){this._await();var n=fve.format(e);r=r||n;var i={__source__:r};return this.sources[r]={href:n,type:t},this.push(i),hve.request(e,function(o){var s=[],a=o.headers["content-type"];t||(t=a.indexOf("json")!==-1?"json":a.indexOf("ini")!==-1?"ini":n.match(/\.json$/)?"json":n.match(/\.ini$/)?"ini":null,i.type=t),o.on("data",s.push.bind(s)).on("end",function(){this.addString(Buffer.concat(s),n,t,i)}.bind(this)).on("error",this.emit.bind(this,"error"))}.bind(this)).on("error",this.emit.bind(this,"error")).end(),this};Rt.prototype.addString=function(e,t,r,n){return e=this.parse(e,t,r),this.add(e,n),this};Rt.prototype.add=function(e,t){if(t&&typeof t=="object"){var r=this.list.indexOf(t);if(r===-1)return this.emit("error",new Error("bad marker"));this.splice(r,1,e),t=t.__source__,this.sources[t]=this.sources[t]||{},this.sources[t].data=e,this._resolve()}else typeof t=="string"&&(this.sources[t]=this.sources[t]||{},this.sources[t].data=e),this._await(),this.push(e),process.nextTick(this._resolve.bind(this));return this};Rt.prototype.parse=wi.parse;Rt.prototype._await=function(){this._awaiting++};Rt.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit("load",this)}});var g9=m((xFe,m9)=>{m9.exports=function(e){let t=e.indexOf(":");if(t===-1)return WC(e);let r=e.substr(0,t),n=e.substr(t+1);return`${WC(r)}:${WC(n)}`};function WC(e){if(e=e.toLowerCase(),e==="_authtoken")return"_authToken";let t=e[0];for(let r=1;r<e.length;r++)t+=e[r]==="_"?"-":e[r];return t}});var y9=m(Bg=>{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});Bg.envReplace=void 0;var mve=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function gve(e,t){return e.replace(mve,yve.bind(null,t))}Bg.envReplace=gve;function yve(e,t,r,n){if(r.length%2)return t.slice((r.length+1)/2);let i=Dve(e,n);if(i===void 0)throw new Error(`Failed to replace env in config: ${t}`);return`${r.slice(r.length/2)}${i}`}var vve=/([^:-]+)(:?)-(.+)/;function Dve(e,t){let r=t.match(vve);if(!r)return e[t];let[,n,i,o]=r;return Object.prototype.hasOwnProperty.call(e,n)?!e[n]&&i?o:e[n]:o}});var v9=m(qg=>{"use strict";Object.defineProperty(qg,"__esModule",{value:!0});qg.envReplace=void 0;var bve=y9();Object.defineProperty(qg,"envReplace",{enumerable:!0,get:function(){return bve.envReplace}})});var b9=m(Ng=>{"use strict";var _ve=require("fs"),Is=require("path"),{envReplace:D9}=v9(),wve=(e,t,r)=>{if(typeof t!="string")return t;let n=[].concat(e[r]),i=n.indexOf(Is)!==-1,o=n.indexOf(Boolean)!==-1,s=n.indexOf(String)!==-1,a=n.indexOf(Number)!==-1;if(t=`${t}`.trim(),/^".*"$/.test(t))try{t=JSON.parse(t)}catch{throw new Error(`Failed parsing JSON config key ${r}: ${t}`)}if(o&&!s&&t==="")return!0;switch(t){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}return t=D9(t,process.env),i&&((process.platform==="win32"?/^~(\/|\\)/:/^~\//).test(t)&&process.env.HOME&&(t=Is.resolve(process.env.HOME,t.substr(2))),t=Is.resolve(t)),a&&!isNaN(t)&&(t=Number(t)),t},Eve=e=>{e=Is.resolve(e);let t=!1;for(;Is.basename(e)==="node_modules";)e=Is.dirname(e),t=!0;if(t)return e;let r=(n,i)=>{let o=/^[a-zA-Z]:(\\|\/)?$/;if(n==="/"||process.platform==="win32"&&o.test(n))return i;try{let s=_ve.readdirSync(n);if(s.includes("node_modules")||s.includes("package.json")||s.includes("package.json5")||s.includes("package.yaml")||s.includes("pnpm-workspace.yaml"))return n;let a=Is.dirname(n);return a===n?i:r(a,i)}catch(s){if(n===i){if(s.code==="ENOENT")return i;throw s}return i}};return r(e,e)};Ng.envReplace=D9;Ng.findPrefix=Eve;Ng.parseField=wve});var E9=m(w9=>{"use strict";var js=require("path"),Cve=require("stream").Stream,Lg=require("url"),xve=()=>{},Sve=()=>[],_9=()=>{};w9.types={access:[null,"restricted","public"],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,"dev","development"],audit:Boolean,"auth-type":["legacy","sso","saml","oauth"],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:js,cache:js,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],cidr:[null,String,Array],color:["always",Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,"commit-hooks":Boolean,global:Boolean,globalconfig:js,"global-style":Boolean,group:[Number,String],"https-proxy":[null,Lg],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":js,"init-author-name":String,"init-author-email":String,"init-author-url":["",Lg],"init-license":String,"init-version":_9,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":Sve(),loglevel:["silent","error","warn","notice","http","timing","info","verbose","silly"],logstream:Cve,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-options":[null,String],"node-version":[null,_9],"no-proxy":[null,String,Array],offline:Boolean,"onload-script":[null,String],only:[null,"dev","development","prod","production"],optional:Boolean,"package-lock":Boolean,otp:[null,String],"package-lock-only":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:js,production:Boolean,progress:Boolean,proxy:[null,!1,Lg],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,Lg],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,"auto","warn-only"],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,"oauth","saml"],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:js,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:js,umask:xve,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}});var F9=m((kFe,S9)=>{"use strict";var{readCAFileSync:Fve}=n9(),C9=require("fs"),GC=require("path"),{ConfigChain:Ove}=p9(),Ave=g9(),x9=b9(),KC=class extends Ove{constructor(t,r){super(t),this.root=t,this._parseField=x9.parseField.bind(null,r||E9())}add(t,r){try{for(let n of Object.keys(t))t[n]=this._parseField(t[n],n)}catch(n){throw n}return super.add(t,r)}addFile(t,r){r=r||t;let n={__source__:r};this.sources[r]={path:t,type:"ini"},this.push(n),this._await();try{let i=C9.readFileSync(t,"utf8");this.addString(i,t,"ini",n)}catch(i){if(i.code==="ENOENT")this.add({},n);else return`Issue while reading "${t}". ${i.message}`}}addEnv(t){t=t||process.env;let r={};return Object.keys(t).filter(n=>/^npm_config_/i.test(n)).forEach(n=>{t[n]&&(r[Ave(n.substr(11))]=t[n])}),super.addEnv("",r,"env")}loadPrefix(){let t=this.list[0];Object.defineProperty(this,"prefix",{enumerable:!0,set:n=>{let i=this.get("global");this[i?"globalPrefix":"localPrefix"]=n},get:()=>this.get("global")?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,"globalPrefix",{enumerable:!0,set:n=>{this.set("prefix",n)},get:()=>GC.resolve(this.get("prefix"))});let r;if(Object.defineProperty(this,"localPrefix",{enumerable:!0,set:n=>{r=n},get:()=>r}),Object.prototype.hasOwnProperty.call(t,"prefix"))r=GC.resolve(t.prefix);else try{r=x9.findPrefix(process.cwd())}catch(n){throw n}return r}loadCAFile(t){if(!t)return;let r=Fve(t);r&&this.set("ca",r)}loadUser(){let t=this.root;if(this.get("global"))return;if(process.env.SUDO_UID){t.user=Number(process.env.SUDO_UID);return}let r=GC.resolve(this.get("prefix"));try{let n=C9.statSync(r);t.user=n.uid}catch(n){if(n.code==="ENOENT")return;throw n}}};S9.exports=KC});var R9=m(P9=>{"use strict";var k9=require("os"),Ei=require("path"),T9=k9.tmpdir(),kve=process.getuid?process.getuid():process.pid,Tve=()=>!0,O9=process.platform==="win32",A9={editor:()=>process.env.EDITOR||process.env.VISUAL||(O9?"notepad.exe":"vi"),shell:()=>O9?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"},Pve={fromString:()=>process.umask()},Ju=k9.homedir();Ju?process.env.HOME=Ju:Ju=Ei.resolve(T9,"npm-"+kve);var Rve=process.platform==="win32"?"npm-cache":".npm",$ve=process.platform==="win32"&&process.env.APPDATA||Ju,Ive=Ei.resolve($ve,Rve),Mg,Bs;Object.defineProperty(P9,"defaults",{get:function(){return Mg||(process.env.PREFIX?Bs=process.env.PREFIX:process.platform==="win32"?Bs=Ei.dirname(process.execPath):(Bs=Ei.dirname(Ei.dirname(process.execPath)),process.env.DESTDIR&&(Bs=Ei.join(process.env.DESTDIR,Bs))),Mg={access:null,"allow-same-version":!1,"always-auth":!1,also:null,audit:!0,"auth-type":"legacy","bin-links":!0,browser:null,ca:null,cafile:null,cache:Ive,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,cidr:null,color:process.env.NO_COLOR==null,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:A9.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":!0,"commit-hooks":!0,global:!1,globalconfig:Ei.resolve(Bs,"etc","npmrc"),"global-style":!1,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:"npm","if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":Ei.resolve(Ju,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:"%s","metrics-registry":null,"node-options":null,offline:!1,"onload-script":!1,only:null,optional:!0,otp:null,"package-lock":!0,"package-lock-only":!1,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:Bs,production:process.env.NODE_ENV==="production",progress:!process.env.TRAVIS&&!process.env.CI,provenance:!1,proxy:null,"https-proxy":null,"no-proxy":null,"user-agent":"npm/{npm-version} node/{node-version} {platform} {arch}","read-only":!1,"rebuild-bundle":!0,registry:"https://registry.npmjs.org/",rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":"^","save-prod":!1,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:15*60,"send-metrics":!1,shell:A9.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":!0,tag:"latest","tag-version-prefix":"v",timing:!1,tmp:T9,unicode:Tve(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform==="win32"?0:"nobody",userconfig:Ei.resolve(Ju,".npmrc"),umask:process.umask?process.umask():Pve.fromString("022"),version:!1,versions:!1,viewer:process.platform==="win32"?"browser":"man",_exit:!0},Mg)}})});var I9=m((PFe,YC)=>{"use strict";var qs=require("path"),jve=F9(),$9=R9();YC.exports=(e,t,r)=>{let n=new jve(Object.assign({},$9.defaults,r),t);n.add(Object.assign({},e),"cli");let i=[],o=!1;if(require.resolve.paths){let u=require.resolve.paths("npm"),c;try{c=require.resolve("npm",{paths:u.slice(-1)})}catch{o=!0}c&&i.push(n.addFile(qs.resolve(qs.dirname(c),"..","npmrc"),"builtin"))}n.addEnv(),n.loadPrefix();let s=qs.resolve(n.localPrefix,".npmrc"),a=n.get("userconfig");if(!n.get("global")&&s!==a?i.push(n.addFile(s,"project")):n.add({},"project"),n.get("workspace-prefix")&&n.get("workspace-prefix")!==s){let u=qs.resolve(n.get("workspace-prefix"),".npmrc");i.push(n.addFile(u,"workspace"))}if(i.push(n.addFile(n.get("userconfig"),"user")),n.get("prefix")){let u=qs.resolve(n.get("prefix"),"etc");n.root.globalconfig=qs.resolve(u,"npmrc"),n.root.globalignorefile=qs.resolve(u,"npmignore")}i.push(n.addFile(n.get("globalconfig"),"global")),n.loadUser();let l=n.get("cafile");return l&&n.loadCAFile(l),{config:n,warnings:i.filter(Boolean),failedToLoadBuiltInConfig:o}};Object.defineProperty(YC.exports,"defaults",{get(){return $9.defaults},enumerable:!0})});var z9=m((RFe,U9)=>{var ZC=require("url"),j9=I9(),B9=":_authToken",q9=":_auth",N9=":username",L9=":_password";U9.exports=function(){let t,r;arguments.length>=2?(t=arguments[0],r=Object.assign({},arguments[1])):typeof arguments[0]=="string"?t=arguments[0]:r=Object.assign({},arguments[0]),r=r||{};let n=r.npmrc;return r.npmrc=(r.npmrc?{config:{get:i=>n[i]}}:j9()).config,t=t||r.npmrc.get("registry")||j9.defaults.registry,M9(t,r)||Bve(r.npmrc)};function M9(e,t){let r=ZC.parse(e,!1,!0),n;for(;n!=="/"&&r.pathname!==n;){n=r.pathname||"/";let i="//"+r.host+n.replace(/\/$/,""),o=Nve(i,t.npmrc);if(o)return o;if(!t.recursive)return/\/$/.test(e)?void 0:M9(ZC.resolve(e,"."),t);r.pathname=ZC.resolve(qve(n),"..")||"/"}}function Bve(e){return e.get("_auth")?{token:Ug(e.get("_auth")),type:"Basic"}:void 0}function qve(e){return e[e.length-1]==="/"?e:e+"/"}function Nve(e,t){let r=Lve(t.get(e+B9)||t.get(e+"/"+B9));if(r)return r;let n=t.get(e+N9)||t.get(e+"/"+N9),i=t.get(e+L9)||t.get(e+"/"+L9),o=Mve(n,i);if(o)return o;let s=Uve(t.get(e+q9)||t.get(e+"/"+q9));if(s)return s}function Ug(e){return e.replace(/^\$\{?([^}]*)\}?$/,function(t,r){return process.env[r]})}function Lve(e){return e?{token:Ug(e),type:"Bearer"}:void 0}function Mve(e,t){if(!e||!t)return;let r=Buffer.from(Ug(t),"base64").toString("utf8");return{token:Buffer.from(e+":"+r,"utf8").toString("base64"),type:"Basic",password:r,username:e}}function Uve(e){return e?{token:Ug(e),type:"Basic"}:void 0}});var z7=m((qTe,Oi)=>{var lt=require("fs"),S1=require("os"),wr=require("path"),O7=require("crypto"),Nn={fs:lt.constants,os:S1.constants},A7="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",T7=/XXXXXX/,FDe=3,P7=(Nn.O_CREAT||Nn.fs.O_CREAT)|(Nn.O_EXCL||Nn.fs.O_EXCL)|(Nn.O_RDWR||Nn.fs.O_RDWR),ODe=S1.platform()==="win32",ADe=Nn.EBADF||Nn.os.errno.EBADF,kDe=Nn.ENOENT||Nn.os.errno.ENOENT,R7=448,$7=384,TDe="exit",sl=[],I7=lt.rmdirSync.bind(lt),j7=!1;function PDe(e,t){return lt.rm(e,{recursive:!0},t)}function B7(e){return lt.rmSync(e,{recursive:!0})}function F1(e,t){let r=al(e,t),n=r[0],i=r[1];try{L7(n)}catch(s){return i(s)}let o=n.tries;(function s(){try{let a=N7(n);lt.stat(a,function(l){if(!l)return o-- >0?s():i(new Error("Could not get a unique tmp filename, max tries reached "+a));i(null,a)})}catch(a){i(a)}})()}function O1(e){let t=al(e),r=t[0];L7(r);let n=r.tries;do{let i=N7(r);try{lt.statSync(i)}catch{return i}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function RDe(e,t){let r=al(e,t),n=r[0],i=r[1];F1(n,function(s,a){if(s)return i(s);lt.open(a,P7,n.mode||$7,function(u,c){if(u)return i(u);if(n.discardDescriptor)return lt.close(c,function(h){return i(h,a,void 0,E1(a,-1,n,!1))});{let f=n.discardDescriptor||n.detachDescriptor;i(null,a,c,E1(a,f?-1:c,n,!1))}})})}function $De(e){let t=al(e),r=t[0],n=r.discardDescriptor||r.detachDescriptor,i=O1(r);var o=lt.openSync(i,P7,r.mode||$7);return r.discardDescriptor&&(lt.closeSync(o),o=void 0),{name:i,fd:o,removeCallback:E1(i,n?-1:o,r,!0)}}function IDe(e,t){let r=al(e,t),n=r[0],i=r[1];F1(n,function(s,a){if(s)return i(s);lt.mkdir(a,n.mode||R7,function(u){if(u)return i(u);i(null,a,q7(a,n,!1))})})}function jDe(e){let t=al(e),r=t[0],n=O1(r);return lt.mkdirSync(n,r.mode||R7),{name:n,removeCallback:q7(n,r,!0)}}function BDe(e,t){let r=function(n){if(n&&!x1(n))return t(n);t()};0<=e[0]?lt.close(e[0],function(){lt.unlink(e[1],r)}):lt.unlink(e[1],r)}function qDe(e){let t=null;try{0<=e[0]&<.closeSync(e[0])}catch(r){if(!MDe(r)&&!x1(r))throw r}finally{try{lt.unlinkSync(e[1])}catch(r){x1(r)||(t=r)}}if(t!==null)throw t}function E1(e,t,r,n){let i=fy(qDe,[t,e],n),o=fy(BDe,[t,e],n,i);return r.keep||sl.unshift(i),n?i:o}function q7(e,t,r){let n=t.unsafeCleanup?PDe:lt.rmdir.bind(lt),i=t.unsafeCleanup?B7:I7,o=fy(i,e,r),s=fy(n,e,r,o);return t.keep||sl.unshift(o),r?o:s}function fy(e,t,r,n){let i=!1;return function o(s){if(!i){let a=n||o,l=sl.indexOf(a);return l>=0&&sl.splice(l,1),i=!0,r||e===I7||e===B7?e(t):e(t,s||function(){})}}}function NDe(){if(j7)for(;sl.length;)try{sl[0]()}catch{}}function k7(e){let t=[],r=null;try{r=O7.randomBytes(e)}catch{r=O7.pseudoRandomBytes(e)}for(var n=0;n<e;n++)t.push(A7[r[n]%A7.length]);return t.join("")}function LDe(e){return e===null||fr(e)||!e.trim()}function fr(e){return typeof e>"u"}function al(e,t){if(typeof e=="function")return[{},e];if(fr(e))return[{},t];let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=e[n];return[r,t]}function N7(e){let t=e.tmpdir;if(!fr(e.name))return wr.join(t,e.dir,e.name);if(!fr(e.template))return wr.join(t,e.dir,e.template).replace(T7,k7(6));let r=[e.prefix?e.prefix:"tmp","-",process.pid,"-",k7(12),e.postfix?"-"+e.postfix:""].join("");return wr.join(t,e.dir,r)}function L7(e){e.tmpdir=U7(e);let t=e.tmpdir;if(fr(e.name)||w1(e.name,"name",t),fr(e.dir)||w1(e.dir,"dir",t),!fr(e.template)&&(w1(e.template,"template",t),!e.template.match(T7)))throw new Error(`Invalid template, found "${e.template}".`);if(!fr(e.tries)&&isNaN(e.tries)||e.tries<0)throw new Error(`Invalid tries, found "${e.tries}".`);e.tries=fr(e.name)?e.tries||FDe:1,e.keep=!!e.keep,e.detachDescriptor=!!e.detachDescriptor,e.discardDescriptor=!!e.discardDescriptor,e.unsafeCleanup=!!e.unsafeCleanup,e.dir=fr(e.dir)?"":wr.relative(t,C1(e.dir,t)),e.template=fr(e.template)?void 0:wr.relative(t,C1(e.template,t)),e.template=LDe(e.template)?void 0:wr.relative(e.dir,e.template),e.name=fr(e.name)?void 0:e.name,e.prefix=fr(e.prefix)?"":e.prefix,e.postfix=fr(e.postfix)?"":e.postfix}function C1(e,t){return e.startsWith(t)?wr.resolve(e):wr.resolve(wr.join(t,e))}function w1(e,t,r){if(t==="name"){if(wr.isAbsolute(e))throw new Error(`${t} option must not contain an absolute path, found "${e}".`);let n=wr.basename(e);if(n===".."||n==="."||n!==e)throw new Error(`${t} option must not contain a path, found "${e}".`)}else{if(wr.isAbsolute(e)&&!e.startsWith(r))throw new Error(`${t} option must be relative to "${r}", found "${e}".`);let n=C1(e,r);if(!n.startsWith(r))throw new Error(`${t} option must be relative to "${r}", found "${n}".`)}}function MDe(e){return M7(e,-ADe,"EBADF")}function x1(e){return M7(e,-kDe,"ENOENT")}function M7(e,t,r){return ODe?e.code===r:e.code===r&&e.errno===t}function UDe(){j7=!0}function U7(e){return wr.resolve(e&&e.tmpdir||S1.tmpdir())}process.addListener(TDe,NDe);Object.defineProperty(Oi.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return U7()}});Oi.exports.dir=IDe;Oi.exports.dirSync=jDe;Oi.exports.file=RDe;Oi.exports.fileSync=$De;Oi.exports.tmpName=F1;Oi.exports.tmpNameSync=O1;Oi.exports.setGracefulCleanup=UDe});var Y1=ce(K1(),1),{program:S,createCommand:bbe,createArgument:_be,createOption:wbe,CommanderError:Ebe,InvalidArgumentError:Cbe,InvalidOptionArgumentError:xbe,Command:Sbe,Argument:Fbe,Option:Obe,Help:Abe}=Y1.default;var nn={name:"@capgo/cli",version:"4.21.13",description:"A CLI to upload to capgo servers",author:"github.com/riderx",license:"Apache 2.0",homepage:"https://github.com/Cap-go/CLIl#readme",repository:{type:"git",url:"git+https://github.com/Cap-go/CLI.git"},bugs:{url:"https://github.com/Cap-go/CLI/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli"],main:"dist/index.js",bin:{capgo:"dist/index.js"},engines:{npm:">=8.0.0",node:">=20.0.0"},scripts:{build:"node build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js",test:"npx --yes ts-node -T src/index.ts","dev-build":"SUPA_DB=development ncc build",pack:"pkg",types:"npx --yes supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",test_rls:"ts-node ./test/test_headers_rls.ts",lint:'eslint "src/**/*.ts" --fix',"check-posix-paths":"node test/check-posix-paths.js"},devDependencies:{"@antfu/eslint-config":"^3.7.3","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client","@capacitor/cli":"^6.1.2","@capgo/find-package-manager":"^0.0.17","@clack/prompts":"^0.7.0","@sauber/table":"npm:@jsr/sauber__table","@std/semver":"npm:@jsr/std__semver","@supabase/supabase-js":"^2.45.2","@tomasklaen/checksum":"^1.1.0","@types/node":"^22.5.0","@types/prettyjson":"^0.0.33","@types/tmp":"^0.2.6","@typescript-eslint/eslint-plugin":"^8.3.0","@typescript-eslint/parser":"^8.3.0","@vercel/ncc":"^0.38.1","ci-info":"^4.0.0",commander:"12.1.0",esbuild:"^0.24.0",eslint:"9.12.0","git-format-staged":"3.1.1",husky:"^9.1.5","is-wsl":"^3.1.0",jszip:"^3.10.1",ky:"^1.7.2","latest-version":"^9.0.0",open:"^10.1.0",pkg:"5.8.1",prettyjson:"^1.2.5",tmp:"^0.2.3","ts-loader":"^9.5.1","ts-node":"^10.9.2","tsconfig-paths":"4.2.0","tus-js-client":"^4.2.3",typescript:"5.6.3"}};var Xu=require("node:fs"),W9=require("node:process");var It=ce(Pe(),1),Hs=require("node:process"),Ti=ce(require("node:readline"),1),jy=ce(require("node:readline"),1),ax=require("node:tty"),mh=ce(Q1(),1);function Tz({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}function ux(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Tz(),"")}var By={},Pz={get exports(){return By},set exports(e){By=e}};(function(e){var t={};e.exports=t,t.eastAsianWidth=function(n){var i=n.charCodeAt(0),o=n.length==2?n.charCodeAt(1):0,s=i;return 55296<=i&&i<=56319&&56320<=o&&o<=57343&&(i&=1023,o&=1023,s=i<<10|o,s+=65536),s==12288||65281<=s&&s<=65376||65504<=s&&s<=65510?"F":s==8361||65377<=s&&s<=65470||65474<=s&&s<=65479||65482<=s&&s<=65487||65490<=s&&s<=65495||65498<=s&&s<=65500||65512<=s&&s<=65518?"H":4352<=s&&s<=4447||4515<=s&&s<=4519||4602<=s&&s<=4607||9001<=s&&s<=9002||11904<=s&&s<=11929||11931<=s&&s<=12019||12032<=s&&s<=12245||12272<=s&&s<=12283||12289<=s&&s<=12350||12353<=s&&s<=12438||12441<=s&&s<=12543||12549<=s&&s<=12589||12593<=s&&s<=12686||12688<=s&&s<=12730||12736<=s&&s<=12771||12784<=s&&s<=12830||12832<=s&&s<=12871||12880<=s&&s<=13054||13056<=s&&s<=19903||19968<=s&&s<=42124||42128<=s&&s<=42182||43360<=s&&s<=43388||44032<=s&&s<=55203||55216<=s&&s<=55238||55243<=s&&s<=55291||63744<=s&&s<=64255||65040<=s&&s<=65049||65072<=s&&s<=65106||65108<=s&&s<=65126||65128<=s&&s<=65131||110592<=s&&s<=110593||127488<=s&&s<=127490||127504<=s&&s<=127546||127552<=s&&s<=127560||127568<=s&&s<=127569||131072<=s&&s<=194367||177984<=s&&s<=196605||196608<=s&&s<=262141?"W":32<=s&&s<=126||162<=s&&s<=163||165<=s&&s<=166||s==172||s==175||10214<=s&&s<=10221||10629<=s&&s<=10630?"Na":s==161||s==164||167<=s&&s<=168||s==170||173<=s&&s<=174||176<=s&&s<=180||182<=s&&s<=186||188<=s&&s<=191||s==198||s==208||215<=s&&s<=216||222<=s&&s<=225||s==230||232<=s&&s<=234||236<=s&&s<=237||s==240||242<=s&&s<=243||247<=s&&s<=250||s==252||s==254||s==257||s==273||s==275||s==283||294<=s&&s<=295||s==299||305<=s&&s<=307||s==312||319<=s&&s<=322||s==324||328<=s&&s<=331||s==333||338<=s&&s<=339||358<=s&&s<=359||s==363||s==462||s==464||s==466||s==468||s==470||s==472||s==474||s==476||s==593||s==609||s==708||s==711||713<=s&&s<=715||s==717||s==720||728<=s&&s<=731||s==733||s==735||768<=s&&s<=879||913<=s&&s<=929||931<=s&&s<=937||945<=s&&s<=961||963<=s&&s<=969||s==1025||1040<=s&&s<=1103||s==1105||s==8208||8211<=s&&s<=8214||8216<=s&&s<=8217||8220<=s&&s<=8221||8224<=s&&s<=8226||8228<=s&&s<=8231||s==8240||8242<=s&&s<=8243||s==8245||s==8251||s==8254||s==8308||s==8319||8321<=s&&s<=8324||s==8364||s==8451||s==8453||s==8457||s==8467||s==8470||8481<=s&&s<=8482||s==8486||s==8491||8531<=s&&s<=8532||8539<=s&&s<=8542||8544<=s&&s<=8555||8560<=s&&s<=8569||s==8585||8592<=s&&s<=8601||8632<=s&&s<=8633||s==8658||s==8660||s==8679||s==8704||8706<=s&&s<=8707||8711<=s&&s<=8712||s==8715||s==8719||s==8721||s==8725||s==8730||8733<=s&&s<=8736||s==8739||s==8741||8743<=s&&s<=8748||s==8750||8756<=s&&s<=8759||8764<=s&&s<=8765||s==8776||s==8780||s==8786||8800<=s&&s<=8801||8804<=s&&s<=8807||8810<=s&&s<=8811||8814<=s&&s<=8815||8834<=s&&s<=8835||8838<=s&&s<=8839||s==8853||s==8857||s==8869||s==8895||s==8978||9312<=s&&s<=9449||9451<=s&&s<=9547||9552<=s&&s<=9587||9600<=s&&s<=9615||9618<=s&&s<=9621||9632<=s&&s<=9633||9635<=s&&s<=9641||9650<=s&&s<=9651||9654<=s&&s<=9655||9660<=s&&s<=9661||9664<=s&&s<=9665||9670<=s&&s<=9672||s==9675||9678<=s&&s<=9681||9698<=s&&s<=9701||s==9711||9733<=s&&s<=9734||s==9737||9742<=s&&s<=9743||9748<=s&&s<=9749||s==9756||s==9758||s==9792||s==9794||9824<=s&&s<=9825||9827<=s&&s<=9829||9831<=s&&s<=9834||9836<=s&&s<=9837||s==9839||9886<=s&&s<=9887||9918<=s&&s<=9919||9924<=s&&s<=9933||9935<=s&&s<=9953||s==9955||9960<=s&&s<=9983||s==10045||s==10071||10102<=s&&s<=10111||11093<=s&&s<=11097||12872<=s&&s<=12879||57344<=s&&s<=63743||65024<=s&&s<=65039||s==65533||127232<=s&&s<=127242||127248<=s&&s<=127277||127280<=s&&s<=127337||127344<=s&&s<=127386||917760<=s&&s<=917999||983040<=s&&s<=1048573||1048576<=s&&s<=1114109?"A":"N"},t.characterLength=function(n){var i=this.eastAsianWidth(n);return i=="F"||i=="W"||i=="A"?2:1};function r(n){return n.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}t.length=function(n){for(var i=r(n),o=0,s=0;s<i.length;s++)o=o+this.characterLength(i[s]);return o},t.slice=function(n,i,o){textLen=t.length(n),i=i||0,o=o||1,i<0&&(i=textLen+i),o<0&&(o=textLen+o);for(var s="",a=0,l=r(n),u=0;u<l.length;u++){var c=l[u],f=t.length(c);if(a>=i-(f==2?1:0))if(a+f<=o)s+=c;else break;a+=f}return s}})(Pz);var Rz=By,$z=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g};function fl(e,t={}){if(typeof e!="string"||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=ux(e),e.length===0))return 0;e=e.replace($z()," ");let r=t.ambiguousIsNarrow?1:2,n=0;for(let i of e){let o=i.codePointAt(0);if(!(o<=31||o>=127&&o<=159||o>=768&&o<=879))switch(Rz.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}var $y=10,ex=(e=0)=>t=>`\x1B[${t+e}m`,tx=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,rx=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,qe={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(qe.modifier);var Iz=Object.keys(qe.color),jz=Object.keys(qe.bgColor);[...Iz,...jz];function Bz(){let e=new Map;for(let[t,r]of Object.entries(qe)){for(let[n,i]of Object.entries(r))qe[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=qe[n],e.set(i[0],i[1]);Object.defineProperty(qe,t,{value:r,enumerable:!1})}return Object.defineProperty(qe,"codes",{value:e,enumerable:!1}),qe.color.close="\x1B[39m",qe.bgColor.close="\x1B[49m",qe.color.ansi=ex(),qe.color.ansi256=tx(),qe.color.ansi16m=rx(),qe.bgColor.ansi=ex($y),qe.bgColor.ansi256=tx($y),qe.bgColor.ansi16m=rx($y),Object.defineProperties(qe,{rgbToAnsi256:{value:(t,r,n)=>t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:t=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>qe.rgbToAnsi256(...qe.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let s=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>qe.ansi256ToAnsi(qe.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>qe.ansi256ToAnsi(qe.hexToAnsi256(t)),enumerable:!1}}),qe}var qz=Bz(),Dh=new Set(["\x1B","\x9B"]),Nz=39,qy="\x07",lx="[",Lz="]",cx="m",Ny=`${Lz}8;;`,nx=e=>`${Dh.values().next().value}${lx}${e}${cx}`,ix=e=>`${Dh.values().next().value}${Ny}${e}${qy}`,Mz=e=>e.split(" ").map(t=>fl(t)),Iy=(e,t,r)=>{let n=[...t],i=!1,o=!1,s=fl(ux(e[e.length-1]));for(let[a,l]of n.entries()){let u=fl(l);if(s+u<=r?e[e.length-1]+=l:(e.push(l),s=0),Dh.has(l)&&(i=!0,o=n.slice(a+1).join("").startsWith(Ny)),i){o?l===qy&&(i=!1,o=!1):l===cx&&(i=!1);continue}s+=u,s===r&&a<n.length-1&&(e.push(""),s=0)}!s&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Uz=e=>{let t=e.split(" "),r=t.length;for(;r>0&&!(fl(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},zz=(e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let n="",i,o,s=Mz(e),a=[""];for(let[u,c]of e.split(" ").entries()){r.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let f=fl(a[a.length-1]);if(u!==0&&(f>=t&&(r.wordWrap===!1||r.trim===!1)&&(a.push(""),f=0),(f>0||r.trim===!1)&&(a[a.length-1]+=" ",f++)),r.hard&&s[u]>t){let h=t-f,d=1+Math.floor((s[u]-h-1)/t);Math.floor((s[u]-1)/t)<d&&a.push(""),Iy(a,c,t);continue}if(f+s[u]>t&&f>0&&s[u]>0){if(r.wordWrap===!1&&f<t){Iy(a,c,t);continue}a.push("")}if(f+s[u]>t&&r.wordWrap===!1){Iy(a,c,t);continue}a[a.length-1]+=c}r.trim!==!1&&(a=a.map(u=>Uz(u)));let l=[...a.join(`
|
|
201
|
+
`}):l&&typeof l=="object"?r.push(o):n+=Zu(o)+i+Zu(l)+zC}),t.section&&n.length&&(n="["+Zu(t.section)+"]"+zC+n),r.forEach(function(o,s,a){var l=u9(o).join("\\."),u=(t.section?t.section+".":"")+l,c=a9(e[o],{section:u,whitespace:t.whitespace});n.length&&c.length&&(n+=zC),n+=c}),n}function u9(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(t){return t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function cve(e){var t={},r=t,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,o=e.split(/[\r\n]+/g);return o.forEach(function(s,a,l){if(!(!s||s.match(/^\s*[;#]/))){var u=s.match(i);if(u){if(u[1]!==void 0){if(n=Ig(u[1]),n==="__proto__"){r={};return}r=t[n]=t[n]||{};return}var c=Ig(u[2]);if(c!=="__proto__"){var f=u[3]?Ig(u[4]):!0;switch(f){case"true":case"false":case"null":f=JSON.parse(f)}if(c.length>2&&c.slice(-2)==="[]"){if(c=c.substring(0,c.length-2),c==="__proto__")return;r[c]?Array.isArray(r[c])||(r[c]=[r[c]]):r[c]=[]}Array.isArray(r[c])?r[c].push(f):r[c]=f}}}}),Object.keys(t).filter(function(s,a,l){if(!t[s]||typeof t[s]!="object"||Array.isArray(t[s]))return!1;var u=u9(s),c=t,f=u.pop(),h=f.replace(/\\\./g,".");return u.forEach(function(d,g,b){d!=="__proto__"&&((!c[d]||typeof c[d]!="object")&&(c[d]={}),c=c[d])}),c===t&&h===f?!1:(c[h]=t[s],!0)}).forEach(function(s,a,l){delete t[s]}),t}function l9(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function Zu(e){return typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&l9(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function Ig(e,t){if(e=(e||"").trim(),l9(e)){e.charAt(0)==="'"&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch{}}else{for(var r=!1,n="",i=0,o=e.length;i<o;i++){var s=e.charAt(i);if(r)"\\;#".indexOf(s)!==-1?n+=s:n+="\\"+s,r=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?r=!0:n+=s}}return r&&(n+="\\"),n.trim()}return e}});var p9=m((wi,d9)=>{var f9=s9(),Gf=require("path"),jg=require("fs"),HC=c9(),VC=require("events").EventEmitter,fve=require("url"),hve=require("http"),wi=d9.exports=function(){for(var e=[].slice.call(arguments),t=new Rt;e.length;){var r=e.shift();r&&t.push(typeof r=="string"?pve(r):r)}return t},EFe=wi.find=function(){var e=Gf.join.apply(null,[].slice.call(arguments));function t(r,n){var i=Gf.join(r,n);try{return jg.statSync(i),i}catch{if(Gf.dirname(r)!==r)return t(Gf.dirname(r),n)}}return t(__dirname,e)},dve=wi.parse=function(e,t,r){if(e=""+e,r)if(r==="json")if(this.emit)try{return JSON.parse(e)}catch(n){this.emit("error",n)}else return JSON.parse(e);else return HC.parse(e);else try{return JSON.parse(e)}catch{return HC.parse(e)}},pve=wi.json=function(){var e=[].slice.call(arguments).filter(function(n){return n!=null}),t=Gf.join.apply(null,e),r;try{r=jg.readFileSync(t,"utf-8")}catch{return}return dve(r,t,"json")},CFe=wi.env=function(e,t){t=t||process.env;var r={},n=e.length;for(var i in t)i.indexOf(e)===0&&(r[i.substring(n)]=t[i]);return r};wi.ConfigChain=Rt;function Rt(){VC.apply(this),f9.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var h9={constructor:{value:Rt}};Object.keys(VC.prototype).forEach(function(e){h9[e]=Object.getOwnPropertyDescriptor(VC.prototype,e)});Rt.prototype=Object.create(f9.prototype,h9);Rt.prototype.del=function(e,t){if(t){var r=this.sources[t];if(r=r&&r.data,!r)return this.emit("error",new Error("not found "+t));delete r[e]}else for(var n=0,i=this.list.length;n<i;n++)delete this.list[n][e];return this};Rt.prototype.set=function(e,t,r){var n;if(r){if(n=this.sources[r],n=n&&n.data,!n)return this.emit("error",new Error("not found "+r))}else if(n=this.list[0],!n)return this.emit("error",new Error("cannot set, no confs!"));return n[e]=t,this};Rt.prototype.get=function(e,t){return t?(t=this.sources[t],t&&(t=t.data),t&&Object.hasOwnProperty.call(t,e)?t[e]:void 0):this.list[0][e]};Rt.prototype.save=function(e,o,r){typeof o=="function"&&(r=o,o=null);var n=this.sources[e];if(!n||!(n.path||n.source)||!n.data)return this.emit("error",new Error("bad save target: "+e));if(n.source){var i=n.prefix||"";return Object.keys(n.data).forEach(function(a){n.source[i+a]=n.data[a]}),this}var o=o||n.type,s=n.data;return n.type==="json"?s=JSON.stringify(s):s=HC.stringify(s),this._saving++,jg.writeFile(n.path,s,"utf8",function(a){if(this._saving--,a)return r?r(a):this.emit("error",a);this._saving===0&&(r&&r(),this.emit("save"))}.bind(this)),this};Rt.prototype.addFile=function(e,t,r){r=r||e;var n={__source__:r};return this.sources[r]={path:e,type:t},this.push(n),this._await(),jg.readFile(e,"utf8",function(i,o){i&&this.emit("error",i),this.addString(o,e,t,n)}.bind(this)),this};Rt.prototype.addEnv=function(e,t,r){r=r||"env";var n=wi.env(e,t);return this.sources[r]={data:n,source:t,prefix:e},this.add(n,r)};Rt.prototype.addUrl=function(e,t,r){this._await();var n=fve.format(e);r=r||n;var i={__source__:r};return this.sources[r]={href:n,type:t},this.push(i),hve.request(e,function(o){var s=[],a=o.headers["content-type"];t||(t=a.indexOf("json")!==-1?"json":a.indexOf("ini")!==-1?"ini":n.match(/\.json$/)?"json":n.match(/\.ini$/)?"ini":null,i.type=t),o.on("data",s.push.bind(s)).on("end",function(){this.addString(Buffer.concat(s),n,t,i)}.bind(this)).on("error",this.emit.bind(this,"error"))}.bind(this)).on("error",this.emit.bind(this,"error")).end(),this};Rt.prototype.addString=function(e,t,r,n){return e=this.parse(e,t,r),this.add(e,n),this};Rt.prototype.add=function(e,t){if(t&&typeof t=="object"){var r=this.list.indexOf(t);if(r===-1)return this.emit("error",new Error("bad marker"));this.splice(r,1,e),t=t.__source__,this.sources[t]=this.sources[t]||{},this.sources[t].data=e,this._resolve()}else typeof t=="string"&&(this.sources[t]=this.sources[t]||{},this.sources[t].data=e),this._await(),this.push(e),process.nextTick(this._resolve.bind(this));return this};Rt.prototype.parse=wi.parse;Rt.prototype._await=function(){this._awaiting++};Rt.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit("load",this)}});var g9=m((xFe,m9)=>{m9.exports=function(e){let t=e.indexOf(":");if(t===-1)return WC(e);let r=e.substr(0,t),n=e.substr(t+1);return`${WC(r)}:${WC(n)}`};function WC(e){if(e=e.toLowerCase(),e==="_authtoken")return"_authToken";let t=e[0];for(let r=1;r<e.length;r++)t+=e[r]==="_"?"-":e[r];return t}});var y9=m(Bg=>{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});Bg.envReplace=void 0;var mve=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function gve(e,t){return e.replace(mve,yve.bind(null,t))}Bg.envReplace=gve;function yve(e,t,r,n){if(r.length%2)return t.slice((r.length+1)/2);let i=Dve(e,n);if(i===void 0)throw new Error(`Failed to replace env in config: ${t}`);return`${r.slice(r.length/2)}${i}`}var vve=/([^:-]+)(:?)-(.+)/;function Dve(e,t){let r=t.match(vve);if(!r)return e[t];let[,n,i,o]=r;return Object.prototype.hasOwnProperty.call(e,n)?!e[n]&&i?o:e[n]:o}});var v9=m(qg=>{"use strict";Object.defineProperty(qg,"__esModule",{value:!0});qg.envReplace=void 0;var bve=y9();Object.defineProperty(qg,"envReplace",{enumerable:!0,get:function(){return bve.envReplace}})});var b9=m(Ng=>{"use strict";var _ve=require("fs"),Is=require("path"),{envReplace:D9}=v9(),wve=(e,t,r)=>{if(typeof t!="string")return t;let n=[].concat(e[r]),i=n.indexOf(Is)!==-1,o=n.indexOf(Boolean)!==-1,s=n.indexOf(String)!==-1,a=n.indexOf(Number)!==-1;if(t=`${t}`.trim(),/^".*"$/.test(t))try{t=JSON.parse(t)}catch{throw new Error(`Failed parsing JSON config key ${r}: ${t}`)}if(o&&!s&&t==="")return!0;switch(t){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}return t=D9(t,process.env),i&&((process.platform==="win32"?/^~(\/|\\)/:/^~\//).test(t)&&process.env.HOME&&(t=Is.resolve(process.env.HOME,t.substr(2))),t=Is.resolve(t)),a&&!isNaN(t)&&(t=Number(t)),t},Eve=e=>{e=Is.resolve(e);let t=!1;for(;Is.basename(e)==="node_modules";)e=Is.dirname(e),t=!0;if(t)return e;let r=(n,i)=>{let o=/^[a-zA-Z]:(\\|\/)?$/;if(n==="/"||process.platform==="win32"&&o.test(n))return i;try{let s=_ve.readdirSync(n);if(s.includes("node_modules")||s.includes("package.json")||s.includes("package.json5")||s.includes("package.yaml")||s.includes("pnpm-workspace.yaml"))return n;let a=Is.dirname(n);return a===n?i:r(a,i)}catch(s){if(n===i){if(s.code==="ENOENT")return i;throw s}return i}};return r(e,e)};Ng.envReplace=D9;Ng.findPrefix=Eve;Ng.parseField=wve});var E9=m(w9=>{"use strict";var js=require("path"),Cve=require("stream").Stream,Lg=require("url"),xve=()=>{},Sve=()=>[],_9=()=>{};w9.types={access:[null,"restricted","public"],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,"dev","development"],audit:Boolean,"auth-type":["legacy","sso","saml","oauth"],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:js,cache:js,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],cidr:[null,String,Array],color:["always",Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,"commit-hooks":Boolean,global:Boolean,globalconfig:js,"global-style":Boolean,group:[Number,String],"https-proxy":[null,Lg],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":js,"init-author-name":String,"init-author-email":String,"init-author-url":["",Lg],"init-license":String,"init-version":_9,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":Sve(),loglevel:["silent","error","warn","notice","http","timing","info","verbose","silly"],logstream:Cve,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-options":[null,String],"node-version":[null,_9],"no-proxy":[null,String,Array],offline:Boolean,"onload-script":[null,String],only:[null,"dev","development","prod","production"],optional:Boolean,"package-lock":Boolean,otp:[null,String],"package-lock-only":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:js,production:Boolean,progress:Boolean,proxy:[null,!1,Lg],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,Lg],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,"auto","warn-only"],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,"oauth","saml"],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:js,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:js,umask:xve,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}});var F9=m((kFe,S9)=>{"use strict";var{readCAFileSync:Fve}=n9(),C9=require("fs"),GC=require("path"),{ConfigChain:Ove}=p9(),Ave=g9(),x9=b9(),KC=class extends Ove{constructor(t,r){super(t),this.root=t,this._parseField=x9.parseField.bind(null,r||E9())}add(t,r){try{for(let n of Object.keys(t))t[n]=this._parseField(t[n],n)}catch(n){throw n}return super.add(t,r)}addFile(t,r){r=r||t;let n={__source__:r};this.sources[r]={path:t,type:"ini"},this.push(n),this._await();try{let i=C9.readFileSync(t,"utf8");this.addString(i,t,"ini",n)}catch(i){if(i.code==="ENOENT")this.add({},n);else return`Issue while reading "${t}". ${i.message}`}}addEnv(t){t=t||process.env;let r={};return Object.keys(t).filter(n=>/^npm_config_/i.test(n)).forEach(n=>{t[n]&&(r[Ave(n.substr(11))]=t[n])}),super.addEnv("",r,"env")}loadPrefix(){let t=this.list[0];Object.defineProperty(this,"prefix",{enumerable:!0,set:n=>{let i=this.get("global");this[i?"globalPrefix":"localPrefix"]=n},get:()=>this.get("global")?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,"globalPrefix",{enumerable:!0,set:n=>{this.set("prefix",n)},get:()=>GC.resolve(this.get("prefix"))});let r;if(Object.defineProperty(this,"localPrefix",{enumerable:!0,set:n=>{r=n},get:()=>r}),Object.prototype.hasOwnProperty.call(t,"prefix"))r=GC.resolve(t.prefix);else try{r=x9.findPrefix(process.cwd())}catch(n){throw n}return r}loadCAFile(t){if(!t)return;let r=Fve(t);r&&this.set("ca",r)}loadUser(){let t=this.root;if(this.get("global"))return;if(process.env.SUDO_UID){t.user=Number(process.env.SUDO_UID);return}let r=GC.resolve(this.get("prefix"));try{let n=C9.statSync(r);t.user=n.uid}catch(n){if(n.code==="ENOENT")return;throw n}}};S9.exports=KC});var R9=m(P9=>{"use strict";var k9=require("os"),Ei=require("path"),T9=k9.tmpdir(),kve=process.getuid?process.getuid():process.pid,Tve=()=>!0,O9=process.platform==="win32",A9={editor:()=>process.env.EDITOR||process.env.VISUAL||(O9?"notepad.exe":"vi"),shell:()=>O9?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"},Pve={fromString:()=>process.umask()},Ju=k9.homedir();Ju?process.env.HOME=Ju:Ju=Ei.resolve(T9,"npm-"+kve);var Rve=process.platform==="win32"?"npm-cache":".npm",$ve=process.platform==="win32"&&process.env.APPDATA||Ju,Ive=Ei.resolve($ve,Rve),Mg,Bs;Object.defineProperty(P9,"defaults",{get:function(){return Mg||(process.env.PREFIX?Bs=process.env.PREFIX:process.platform==="win32"?Bs=Ei.dirname(process.execPath):(Bs=Ei.dirname(Ei.dirname(process.execPath)),process.env.DESTDIR&&(Bs=Ei.join(process.env.DESTDIR,Bs))),Mg={access:null,"allow-same-version":!1,"always-auth":!1,also:null,audit:!0,"auth-type":"legacy","bin-links":!0,browser:null,ca:null,cafile:null,cache:Ive,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,cidr:null,color:process.env.NO_COLOR==null,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:A9.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":!0,"commit-hooks":!0,global:!1,globalconfig:Ei.resolve(Bs,"etc","npmrc"),"global-style":!1,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:"npm","if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":Ei.resolve(Ju,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:"%s","metrics-registry":null,"node-options":null,offline:!1,"onload-script":!1,only:null,optional:!0,otp:null,"package-lock":!0,"package-lock-only":!1,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:Bs,production:process.env.NODE_ENV==="production",progress:!process.env.TRAVIS&&!process.env.CI,provenance:!1,proxy:null,"https-proxy":null,"no-proxy":null,"user-agent":"npm/{npm-version} node/{node-version} {platform} {arch}","read-only":!1,"rebuild-bundle":!0,registry:"https://registry.npmjs.org/",rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":"^","save-prod":!1,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:15*60,"send-metrics":!1,shell:A9.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":!0,tag:"latest","tag-version-prefix":"v",timing:!1,tmp:T9,unicode:Tve(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform==="win32"?0:"nobody",userconfig:Ei.resolve(Ju,".npmrc"),umask:process.umask?process.umask():Pve.fromString("022"),version:!1,versions:!1,viewer:process.platform==="win32"?"browser":"man",_exit:!0},Mg)}})});var I9=m((PFe,YC)=>{"use strict";var qs=require("path"),jve=F9(),$9=R9();YC.exports=(e,t,r)=>{let n=new jve(Object.assign({},$9.defaults,r),t);n.add(Object.assign({},e),"cli");let i=[],o=!1;if(require.resolve.paths){let u=require.resolve.paths("npm"),c;try{c=require.resolve("npm",{paths:u.slice(-1)})}catch{o=!0}c&&i.push(n.addFile(qs.resolve(qs.dirname(c),"..","npmrc"),"builtin"))}n.addEnv(),n.loadPrefix();let s=qs.resolve(n.localPrefix,".npmrc"),a=n.get("userconfig");if(!n.get("global")&&s!==a?i.push(n.addFile(s,"project")):n.add({},"project"),n.get("workspace-prefix")&&n.get("workspace-prefix")!==s){let u=qs.resolve(n.get("workspace-prefix"),".npmrc");i.push(n.addFile(u,"workspace"))}if(i.push(n.addFile(n.get("userconfig"),"user")),n.get("prefix")){let u=qs.resolve(n.get("prefix"),"etc");n.root.globalconfig=qs.resolve(u,"npmrc"),n.root.globalignorefile=qs.resolve(u,"npmignore")}i.push(n.addFile(n.get("globalconfig"),"global")),n.loadUser();let l=n.get("cafile");return l&&n.loadCAFile(l),{config:n,warnings:i.filter(Boolean),failedToLoadBuiltInConfig:o}};Object.defineProperty(YC.exports,"defaults",{get(){return $9.defaults},enumerable:!0})});var z9=m((RFe,U9)=>{var ZC=require("url"),j9=I9(),B9=":_authToken",q9=":_auth",N9=":username",L9=":_password";U9.exports=function(){let t,r;arguments.length>=2?(t=arguments[0],r=Object.assign({},arguments[1])):typeof arguments[0]=="string"?t=arguments[0]:r=Object.assign({},arguments[0]),r=r||{};let n=r.npmrc;return r.npmrc=(r.npmrc?{config:{get:i=>n[i]}}:j9()).config,t=t||r.npmrc.get("registry")||j9.defaults.registry,M9(t,r)||Bve(r.npmrc)};function M9(e,t){let r=ZC.parse(e,!1,!0),n;for(;n!=="/"&&r.pathname!==n;){n=r.pathname||"/";let i="//"+r.host+n.replace(/\/$/,""),o=Nve(i,t.npmrc);if(o)return o;if(!t.recursive)return/\/$/.test(e)?void 0:M9(ZC.resolve(e,"."),t);r.pathname=ZC.resolve(qve(n),"..")||"/"}}function Bve(e){return e.get("_auth")?{token:Ug(e.get("_auth")),type:"Basic"}:void 0}function qve(e){return e[e.length-1]==="/"?e:e+"/"}function Nve(e,t){let r=Lve(t.get(e+B9)||t.get(e+"/"+B9));if(r)return r;let n=t.get(e+N9)||t.get(e+"/"+N9),i=t.get(e+L9)||t.get(e+"/"+L9),o=Mve(n,i);if(o)return o;let s=Uve(t.get(e+q9)||t.get(e+"/"+q9));if(s)return s}function Ug(e){return e.replace(/^\$\{?([^}]*)\}?$/,function(t,r){return process.env[r]})}function Lve(e){return e?{token:Ug(e),type:"Bearer"}:void 0}function Mve(e,t){if(!e||!t)return;let r=Buffer.from(Ug(t),"base64").toString("utf8");return{token:Buffer.from(e+":"+r,"utf8").toString("base64"),type:"Basic",password:r,username:e}}function Uve(e){return e?{token:Ug(e),type:"Basic"}:void 0}});var z7=m((qTe,Oi)=>{var lt=require("fs"),S1=require("os"),wr=require("path"),O7=require("crypto"),Nn={fs:lt.constants,os:S1.constants},A7="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",T7=/XXXXXX/,FDe=3,P7=(Nn.O_CREAT||Nn.fs.O_CREAT)|(Nn.O_EXCL||Nn.fs.O_EXCL)|(Nn.O_RDWR||Nn.fs.O_RDWR),ODe=S1.platform()==="win32",ADe=Nn.EBADF||Nn.os.errno.EBADF,kDe=Nn.ENOENT||Nn.os.errno.ENOENT,R7=448,$7=384,TDe="exit",sl=[],I7=lt.rmdirSync.bind(lt),j7=!1;function PDe(e,t){return lt.rm(e,{recursive:!0},t)}function B7(e){return lt.rmSync(e,{recursive:!0})}function F1(e,t){let r=al(e,t),n=r[0],i=r[1];try{L7(n)}catch(s){return i(s)}let o=n.tries;(function s(){try{let a=N7(n);lt.stat(a,function(l){if(!l)return o-- >0?s():i(new Error("Could not get a unique tmp filename, max tries reached "+a));i(null,a)})}catch(a){i(a)}})()}function O1(e){let t=al(e),r=t[0];L7(r);let n=r.tries;do{let i=N7(r);try{lt.statSync(i)}catch{return i}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function RDe(e,t){let r=al(e,t),n=r[0],i=r[1];F1(n,function(s,a){if(s)return i(s);lt.open(a,P7,n.mode||$7,function(u,c){if(u)return i(u);if(n.discardDescriptor)return lt.close(c,function(h){return i(h,a,void 0,E1(a,-1,n,!1))});{let f=n.discardDescriptor||n.detachDescriptor;i(null,a,c,E1(a,f?-1:c,n,!1))}})})}function $De(e){let t=al(e),r=t[0],n=r.discardDescriptor||r.detachDescriptor,i=O1(r);var o=lt.openSync(i,P7,r.mode||$7);return r.discardDescriptor&&(lt.closeSync(o),o=void 0),{name:i,fd:o,removeCallback:E1(i,n?-1:o,r,!0)}}function IDe(e,t){let r=al(e,t),n=r[0],i=r[1];F1(n,function(s,a){if(s)return i(s);lt.mkdir(a,n.mode||R7,function(u){if(u)return i(u);i(null,a,q7(a,n,!1))})})}function jDe(e){let t=al(e),r=t[0],n=O1(r);return lt.mkdirSync(n,r.mode||R7),{name:n,removeCallback:q7(n,r,!0)}}function BDe(e,t){let r=function(n){if(n&&!x1(n))return t(n);t()};0<=e[0]?lt.close(e[0],function(){lt.unlink(e[1],r)}):lt.unlink(e[1],r)}function qDe(e){let t=null;try{0<=e[0]&<.closeSync(e[0])}catch(r){if(!MDe(r)&&!x1(r))throw r}finally{try{lt.unlinkSync(e[1])}catch(r){x1(r)||(t=r)}}if(t!==null)throw t}function E1(e,t,r,n){let i=fy(qDe,[t,e],n),o=fy(BDe,[t,e],n,i);return r.keep||sl.unshift(i),n?i:o}function q7(e,t,r){let n=t.unsafeCleanup?PDe:lt.rmdir.bind(lt),i=t.unsafeCleanup?B7:I7,o=fy(i,e,r),s=fy(n,e,r,o);return t.keep||sl.unshift(o),r?o:s}function fy(e,t,r,n){let i=!1;return function o(s){if(!i){let a=n||o,l=sl.indexOf(a);return l>=0&&sl.splice(l,1),i=!0,r||e===I7||e===B7?e(t):e(t,s||function(){})}}}function NDe(){if(j7)for(;sl.length;)try{sl[0]()}catch{}}function k7(e){let t=[],r=null;try{r=O7.randomBytes(e)}catch{r=O7.pseudoRandomBytes(e)}for(var n=0;n<e;n++)t.push(A7[r[n]%A7.length]);return t.join("")}function LDe(e){return e===null||fr(e)||!e.trim()}function fr(e){return typeof e>"u"}function al(e,t){if(typeof e=="function")return[{},e];if(fr(e))return[{},t];let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=e[n];return[r,t]}function N7(e){let t=e.tmpdir;if(!fr(e.name))return wr.join(t,e.dir,e.name);if(!fr(e.template))return wr.join(t,e.dir,e.template).replace(T7,k7(6));let r=[e.prefix?e.prefix:"tmp","-",process.pid,"-",k7(12),e.postfix?"-"+e.postfix:""].join("");return wr.join(t,e.dir,r)}function L7(e){e.tmpdir=U7(e);let t=e.tmpdir;if(fr(e.name)||w1(e.name,"name",t),fr(e.dir)||w1(e.dir,"dir",t),!fr(e.template)&&(w1(e.template,"template",t),!e.template.match(T7)))throw new Error(`Invalid template, found "${e.template}".`);if(!fr(e.tries)&&isNaN(e.tries)||e.tries<0)throw new Error(`Invalid tries, found "${e.tries}".`);e.tries=fr(e.name)?e.tries||FDe:1,e.keep=!!e.keep,e.detachDescriptor=!!e.detachDescriptor,e.discardDescriptor=!!e.discardDescriptor,e.unsafeCleanup=!!e.unsafeCleanup,e.dir=fr(e.dir)?"":wr.relative(t,C1(e.dir,t)),e.template=fr(e.template)?void 0:wr.relative(t,C1(e.template,t)),e.template=LDe(e.template)?void 0:wr.relative(e.dir,e.template),e.name=fr(e.name)?void 0:e.name,e.prefix=fr(e.prefix)?"":e.prefix,e.postfix=fr(e.postfix)?"":e.postfix}function C1(e,t){return e.startsWith(t)?wr.resolve(e):wr.resolve(wr.join(t,e))}function w1(e,t,r){if(t==="name"){if(wr.isAbsolute(e))throw new Error(`${t} option must not contain an absolute path, found "${e}".`);let n=wr.basename(e);if(n===".."||n==="."||n!==e)throw new Error(`${t} option must not contain a path, found "${e}".`)}else{if(wr.isAbsolute(e)&&!e.startsWith(r))throw new Error(`${t} option must be relative to "${r}", found "${e}".`);let n=C1(e,r);if(!n.startsWith(r))throw new Error(`${t} option must be relative to "${r}", found "${n}".`)}}function MDe(e){return M7(e,-ADe,"EBADF")}function x1(e){return M7(e,-kDe,"ENOENT")}function M7(e,t,r){return ODe?e.code===r:e.code===r&&e.errno===t}function UDe(){j7=!0}function U7(e){return wr.resolve(e&&e.tmpdir||S1.tmpdir())}process.addListener(TDe,NDe);Object.defineProperty(Oi.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return U7()}});Oi.exports.dir=IDe;Oi.exports.dirSync=jDe;Oi.exports.file=RDe;Oi.exports.fileSync=$De;Oi.exports.tmpName=F1;Oi.exports.tmpNameSync=O1;Oi.exports.setGracefulCleanup=UDe});var Y1=ce(K1(),1),{program:S,createCommand:bbe,createArgument:_be,createOption:wbe,CommanderError:Ebe,InvalidArgumentError:Cbe,InvalidOptionArgumentError:xbe,Command:Sbe,Argument:Fbe,Option:Obe,Help:Abe}=Y1.default;var nn={name:"@capgo/cli",version:"4.21.14",description:"A CLI to upload to capgo servers",author:"github.com/riderx",license:"Apache 2.0",homepage:"https://github.com/Cap-go/CLIl#readme",repository:{type:"git",url:"git+https://github.com/Cap-go/CLI.git"},bugs:{url:"https://github.com/Cap-go/CLI/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli"],main:"dist/index.js",bin:{capgo:"dist/index.js"},engines:{npm:">=8.0.0",node:">=20.0.0"},scripts:{build:"node build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js",test:"npx --yes ts-node -T src/index.ts","dev-build":"SUPA_DB=development ncc build",pack:"pkg",types:"npx --yes supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",test_rls:"ts-node ./test/test_headers_rls.ts",lint:'eslint "src/**/*.ts" --fix',"check-posix-paths":"node test/check-posix-paths.js"},devDependencies:{"@antfu/eslint-config":"^3.7.3","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client","@capacitor/cli":"^6.1.2","@capgo/find-package-manager":"^0.0.17","@clack/prompts":"^0.7.0","@sauber/table":"npm:@jsr/sauber__table","@std/semver":"npm:@jsr/std__semver","@supabase/supabase-js":"^2.45.2","@tomasklaen/checksum":"^1.1.0","@types/node":"^22.5.0","@types/prettyjson":"^0.0.33","@types/tmp":"^0.2.6","@typescript-eslint/eslint-plugin":"^8.3.0","@typescript-eslint/parser":"^8.3.0","@vercel/ncc":"^0.38.1","ci-info":"^4.0.0",commander:"12.1.0",esbuild:"^0.24.0",eslint:"9.12.0","git-format-staged":"3.1.1",husky:"^9.1.5","is-wsl":"^3.1.0",jszip:"^3.10.1",ky:"^1.7.2","latest-version":"^9.0.0",open:"^10.1.0",pkg:"5.8.1",prettyjson:"^1.2.5",tmp:"^0.2.3","ts-loader":"^9.5.1","ts-node":"^10.9.2","tsconfig-paths":"4.2.0","tus-js-client":"^4.2.3",typescript:"5.6.3"}};var Xu=require("node:fs"),W9=require("node:process");var It=ce(Pe(),1),Hs=require("node:process"),Ti=ce(require("node:readline"),1),jy=ce(require("node:readline"),1),ax=require("node:tty"),mh=ce(Q1(),1);function Tz({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}function ux(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Tz(),"")}var By={},Pz={get exports(){return By},set exports(e){By=e}};(function(e){var t={};e.exports=t,t.eastAsianWidth=function(n){var i=n.charCodeAt(0),o=n.length==2?n.charCodeAt(1):0,s=i;return 55296<=i&&i<=56319&&56320<=o&&o<=57343&&(i&=1023,o&=1023,s=i<<10|o,s+=65536),s==12288||65281<=s&&s<=65376||65504<=s&&s<=65510?"F":s==8361||65377<=s&&s<=65470||65474<=s&&s<=65479||65482<=s&&s<=65487||65490<=s&&s<=65495||65498<=s&&s<=65500||65512<=s&&s<=65518?"H":4352<=s&&s<=4447||4515<=s&&s<=4519||4602<=s&&s<=4607||9001<=s&&s<=9002||11904<=s&&s<=11929||11931<=s&&s<=12019||12032<=s&&s<=12245||12272<=s&&s<=12283||12289<=s&&s<=12350||12353<=s&&s<=12438||12441<=s&&s<=12543||12549<=s&&s<=12589||12593<=s&&s<=12686||12688<=s&&s<=12730||12736<=s&&s<=12771||12784<=s&&s<=12830||12832<=s&&s<=12871||12880<=s&&s<=13054||13056<=s&&s<=19903||19968<=s&&s<=42124||42128<=s&&s<=42182||43360<=s&&s<=43388||44032<=s&&s<=55203||55216<=s&&s<=55238||55243<=s&&s<=55291||63744<=s&&s<=64255||65040<=s&&s<=65049||65072<=s&&s<=65106||65108<=s&&s<=65126||65128<=s&&s<=65131||110592<=s&&s<=110593||127488<=s&&s<=127490||127504<=s&&s<=127546||127552<=s&&s<=127560||127568<=s&&s<=127569||131072<=s&&s<=194367||177984<=s&&s<=196605||196608<=s&&s<=262141?"W":32<=s&&s<=126||162<=s&&s<=163||165<=s&&s<=166||s==172||s==175||10214<=s&&s<=10221||10629<=s&&s<=10630?"Na":s==161||s==164||167<=s&&s<=168||s==170||173<=s&&s<=174||176<=s&&s<=180||182<=s&&s<=186||188<=s&&s<=191||s==198||s==208||215<=s&&s<=216||222<=s&&s<=225||s==230||232<=s&&s<=234||236<=s&&s<=237||s==240||242<=s&&s<=243||247<=s&&s<=250||s==252||s==254||s==257||s==273||s==275||s==283||294<=s&&s<=295||s==299||305<=s&&s<=307||s==312||319<=s&&s<=322||s==324||328<=s&&s<=331||s==333||338<=s&&s<=339||358<=s&&s<=359||s==363||s==462||s==464||s==466||s==468||s==470||s==472||s==474||s==476||s==593||s==609||s==708||s==711||713<=s&&s<=715||s==717||s==720||728<=s&&s<=731||s==733||s==735||768<=s&&s<=879||913<=s&&s<=929||931<=s&&s<=937||945<=s&&s<=961||963<=s&&s<=969||s==1025||1040<=s&&s<=1103||s==1105||s==8208||8211<=s&&s<=8214||8216<=s&&s<=8217||8220<=s&&s<=8221||8224<=s&&s<=8226||8228<=s&&s<=8231||s==8240||8242<=s&&s<=8243||s==8245||s==8251||s==8254||s==8308||s==8319||8321<=s&&s<=8324||s==8364||s==8451||s==8453||s==8457||s==8467||s==8470||8481<=s&&s<=8482||s==8486||s==8491||8531<=s&&s<=8532||8539<=s&&s<=8542||8544<=s&&s<=8555||8560<=s&&s<=8569||s==8585||8592<=s&&s<=8601||8632<=s&&s<=8633||s==8658||s==8660||s==8679||s==8704||8706<=s&&s<=8707||8711<=s&&s<=8712||s==8715||s==8719||s==8721||s==8725||s==8730||8733<=s&&s<=8736||s==8739||s==8741||8743<=s&&s<=8748||s==8750||8756<=s&&s<=8759||8764<=s&&s<=8765||s==8776||s==8780||s==8786||8800<=s&&s<=8801||8804<=s&&s<=8807||8810<=s&&s<=8811||8814<=s&&s<=8815||8834<=s&&s<=8835||8838<=s&&s<=8839||s==8853||s==8857||s==8869||s==8895||s==8978||9312<=s&&s<=9449||9451<=s&&s<=9547||9552<=s&&s<=9587||9600<=s&&s<=9615||9618<=s&&s<=9621||9632<=s&&s<=9633||9635<=s&&s<=9641||9650<=s&&s<=9651||9654<=s&&s<=9655||9660<=s&&s<=9661||9664<=s&&s<=9665||9670<=s&&s<=9672||s==9675||9678<=s&&s<=9681||9698<=s&&s<=9701||s==9711||9733<=s&&s<=9734||s==9737||9742<=s&&s<=9743||9748<=s&&s<=9749||s==9756||s==9758||s==9792||s==9794||9824<=s&&s<=9825||9827<=s&&s<=9829||9831<=s&&s<=9834||9836<=s&&s<=9837||s==9839||9886<=s&&s<=9887||9918<=s&&s<=9919||9924<=s&&s<=9933||9935<=s&&s<=9953||s==9955||9960<=s&&s<=9983||s==10045||s==10071||10102<=s&&s<=10111||11093<=s&&s<=11097||12872<=s&&s<=12879||57344<=s&&s<=63743||65024<=s&&s<=65039||s==65533||127232<=s&&s<=127242||127248<=s&&s<=127277||127280<=s&&s<=127337||127344<=s&&s<=127386||917760<=s&&s<=917999||983040<=s&&s<=1048573||1048576<=s&&s<=1114109?"A":"N"},t.characterLength=function(n){var i=this.eastAsianWidth(n);return i=="F"||i=="W"||i=="A"?2:1};function r(n){return n.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}t.length=function(n){for(var i=r(n),o=0,s=0;s<i.length;s++)o=o+this.characterLength(i[s]);return o},t.slice=function(n,i,o){textLen=t.length(n),i=i||0,o=o||1,i<0&&(i=textLen+i),o<0&&(o=textLen+o);for(var s="",a=0,l=r(n),u=0;u<l.length;u++){var c=l[u],f=t.length(c);if(a>=i-(f==2?1:0))if(a+f<=o)s+=c;else break;a+=f}return s}})(Pz);var Rz=By,$z=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g};function fl(e,t={}){if(typeof e!="string"||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=ux(e),e.length===0))return 0;e=e.replace($z()," ");let r=t.ambiguousIsNarrow?1:2,n=0;for(let i of e){let o=i.codePointAt(0);if(!(o<=31||o>=127&&o<=159||o>=768&&o<=879))switch(Rz.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}var $y=10,ex=(e=0)=>t=>`\x1B[${t+e}m`,tx=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,rx=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,qe={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(qe.modifier);var Iz=Object.keys(qe.color),jz=Object.keys(qe.bgColor);[...Iz,...jz];function Bz(){let e=new Map;for(let[t,r]of Object.entries(qe)){for(let[n,i]of Object.entries(r))qe[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=qe[n],e.set(i[0],i[1]);Object.defineProperty(qe,t,{value:r,enumerable:!1})}return Object.defineProperty(qe,"codes",{value:e,enumerable:!1}),qe.color.close="\x1B[39m",qe.bgColor.close="\x1B[49m",qe.color.ansi=ex(),qe.color.ansi256=tx(),qe.color.ansi16m=rx(),qe.bgColor.ansi=ex($y),qe.bgColor.ansi256=tx($y),qe.bgColor.ansi16m=rx($y),Object.defineProperties(qe,{rgbToAnsi256:{value:(t,r,n)=>t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:t=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>qe.rgbToAnsi256(...qe.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let s=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>qe.ansi256ToAnsi(qe.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>qe.ansi256ToAnsi(qe.hexToAnsi256(t)),enumerable:!1}}),qe}var qz=Bz(),Dh=new Set(["\x1B","\x9B"]),Nz=39,qy="\x07",lx="[",Lz="]",cx="m",Ny=`${Lz}8;;`,nx=e=>`${Dh.values().next().value}${lx}${e}${cx}`,ix=e=>`${Dh.values().next().value}${Ny}${e}${qy}`,Mz=e=>e.split(" ").map(t=>fl(t)),Iy=(e,t,r)=>{let n=[...t],i=!1,o=!1,s=fl(ux(e[e.length-1]));for(let[a,l]of n.entries()){let u=fl(l);if(s+u<=r?e[e.length-1]+=l:(e.push(l),s=0),Dh.has(l)&&(i=!0,o=n.slice(a+1).join("").startsWith(Ny)),i){o?l===qy&&(i=!1,o=!1):l===cx&&(i=!1);continue}s+=u,s===r&&a<n.length-1&&(e.push(""),s=0)}!s&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Uz=e=>{let t=e.split(" "),r=t.length;for(;r>0&&!(fl(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},zz=(e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let n="",i,o,s=Mz(e),a=[""];for(let[u,c]of e.split(" ").entries()){r.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let f=fl(a[a.length-1]);if(u!==0&&(f>=t&&(r.wordWrap===!1||r.trim===!1)&&(a.push(""),f=0),(f>0||r.trim===!1)&&(a[a.length-1]+=" ",f++)),r.hard&&s[u]>t){let h=t-f,d=1+Math.floor((s[u]-h-1)/t);Math.floor((s[u]-1)/t)<d&&a.push(""),Iy(a,c,t);continue}if(f+s[u]>t&&f>0&&s[u]>0){if(r.wordWrap===!1&&f<t){Iy(a,c,t);continue}a.push("")}if(f+s[u]>t&&r.wordWrap===!1){Iy(a,c,t);continue}a[a.length-1]+=c}r.trim!==!1&&(a=a.map(u=>Uz(u)));let l=[...a.join(`
|
|
202
202
|
`)];for(let[u,c]of l.entries()){if(n+=c,Dh.has(c)){let{groups:h}=new RegExp(`(?:\\${lx}(?<code>\\d+)m|\\${Ny}(?<uri>.*)${qy})`).exec(l.slice(u).join(""))||{groups:{}};if(h.code!==void 0){let d=Number.parseFloat(h.code);i=d===Nz?void 0:d}else h.uri!==void 0&&(o=h.uri.length===0?void 0:h.uri)}let f=qz.codes.get(Number(i));l[u+1]===`
|
|
203
203
|
`?(o&&(n+=ix("")),i&&f&&(n+=nx(f))):c===`
|
|
204
204
|
`&&(i&&f&&(n+=nx(i)),o&&(n+=ix(o)))}return n};function ox(e,t,r){return String(e).normalize().replace(/\r\n/g,`
|
|
@@ -292,7 +292,7 @@ It will be also visible in your dashboard
|
|
|
292
292
|
`),l=b.encryptedData}let h=Math.floor((l?.byteLength??0)/1024/1024);return h>o5&&(p.warn(`WARNING !!
|
|
293
293
|
The app size is ${h} Mb, this may take a while to download for users
|
|
294
294
|
`),p.info(`Learn how to optimize your assets https://capgo.app/blog/optimise-your-images-for-updates/
|
|
295
|
-
`),await Fe(n,{channel:"app-error",event:"App Too Large",icon:"\u{1F69B}",user_id:i,tags:{"app-id":o},notify:!1})),{zipped:l,sessionKey:s,checksum:a}}async function EDe(e,t,r,n,i,o,s){let a=_e();a.start("Uploading Bundle");let l=performance.now(),u=!1;try{if(s.tus!==void 0&&s.tus){p.info("Uploading bundle with TUS protocol")
|
|
295
|
+
`),await Fe(n,{channel:"app-error",event:"App Too Large",icon:"\u{1F69B}",user_id:i,tags:{"app-id":o},notify:!1})),{zipped:l,sessionKey:s,checksum:a}}async function EDe(e,t,r,n,i,o,s){let a=_e();a.start("Uploading Bundle");let l=performance.now(),u=!1;try{let h=await Lr();if(s.tus!==void 0&&s.tus){p.info("Uploading bundle with TUS protocol"),await RC(e,o,i,r,n,a,h),u=!0;let d=`orgs/${i}/apps/${r}/${n}.zip`,{error:g}=await t.from("app_versions").update({r2_path:d}).eq("name",n).eq("app_id",r);g&&(p.error(`Cannot finish TUS upload ${J(g)}`),Promise.reject(new Error("Cannot finish TUS upload")))}if(s.multipart!==void 0&&s.multipart){p.info("Uploading bundle with TUS protocol, multipart is deprecated"),await RC(e,o,i,r,n,a,h),u=!0;let d=`orgs/${i}/apps/${r}/${n}.zip`,{error:g}=await t.from("app_versions").update({r2_path:d}).eq("name",n).eq("app_id",r);g&&(p.error(`Cannot finish TUS upload ${J(g)}`),Promise.reject(new Error("Cannot finish TUS upload")))}else{let d=await p5(t,r,n);d||(p.error("Cannot get upload url"),Promise.reject(new Error("Cannot get upload url"))),await bn.put(d,{timeout:s.timeout||s5,retry:5,body:o})}}catch(h){let g=((performance.now()-l)/1e3).toFixed(2);if(a.stop(`Failed to upload bundle ( after ${g} seconds)`),h instanceof Yi){let b=await h.response.json();p.error(`Response Error: ${b.error||b.status||b.message}`)}else p.error(`Cannot upload bundle ( try again with --tus option) ${J(h)}`);await y5(t,r,n),S.error("")}let f=((performance.now()-l)/1e3).toFixed(2);a.stop(`Bundle uploaded \u{1F4AA} in (${f} seconds)`),await Fe(e,{channel:"performance",event:u?"TUS upload zip performance":"Upload zip performance",icon:"\u{1F684}",user_id:i,tags:{"app-id":r,time:f},notify:!1})}async function CDe(e,t,r,n,i,o,s,a,l){let{data:u}=await e.rpc("get_app_versions",{apikey:t,name_version:n,appid:a}).single();u||(p.warn("Cannot get version id, cannot set channel"),S.error(""));let{error:c,data:f}=await Og(e,{name:i,app_id:a,created_by:o,version:u,owner_org:s});c&&(p.error(`Cannot set channel, the upload key is not allowed to do that, use the "all" for this. ${J(c)}`),S.error(""));let h=As(a),d=`${l.hostWeb}/app/p/${h}/channel/${f.id}`;f?.public?p.info("Your update is now available in your public channel \u{1F389}"):f?.id&&p.info(`Link device to this bundle to try it: ${d}`),r?p.info(`Bundle url: ${d}`):u||(p.warn("Cannot set bundle with upload key, use key with more rights for that"),S.error(""))}async function xDe(e,t,r){let{error:n,data:i}=await t.from("apps").select("default_upload_channel").single();if(n){p.warn("Cannot find default upload channel");let o=As(e);return p.info(`You can set it here: ${r}/app/p/${o}/settings`),null}return i.default_upload_channel}async function ly(e,t,r=!0){K(`Uploading with CLI version ${nn.version}`);let n=Vt();await ge();let{s3Region:i,s3Apikey:o,s3Apisecret:s,s3BucketName:a,s3Endpoint:l,s3Port:u,s3SSL:c}=t,f=gDe(t),h=await Q(),d=await u5(),{appid:g,path:b}=yDe(e,t,h.config),v=await mDe(h.config,t);vDe(t,b),p.info(`Upload ${g}@${v} started from path "${b}" to Capgo cloud`);let w=await Lr(),x=await le(f),O=await pe(x,f,["write","all","upload"]),A=t.channel||await xDe(g,x,w.hostWeb)||"dev",P=await Mr(x,g);await Mu(x,P,f,g,!0),await bDe(x,P,w);let{nativePackages:j,minUpdateVersion:F}=await DDe(x,n,t,A,g,v);await _De(x,g,v),t.external&&!t.external.startsWith("https://")&&(p.error(`External link should should start with "https://" current is "${external}"`),S.error(""));let B={name:v,app_id:g,session_key:void 0,external_url:t.external,storage_provider:t.external?"external":"r2-direct",min_update_version:F,native_packages:j,owner_org:P,user_id:O,checksum:void 0},E=null;if(t.external)await Fe(f,{channel:"app",event:"App external",icon:"\u{1F4E4}",user_id:P,tags:{"app-id":g},notify:!1}),B.session_key=t.ivSessionKey,B.checksum=t.encryptedChecksum;else{let{zipped:M,sessionKey:G,checksum:L}=await wDe(b,t,w,f,P,g);B.session_key=G,B.checksum=L,E=M,t.ignoreChecksumCheck||await D5(x,g,A,L)}d.TUSUpload?t.tus=t.tus||d.TUSUploadForced:t.tus=!1,d.partialUpload?t.partial=t.partial||d.partialUploadForced:t.partial=!1;let $=t.partial?await u7(b,f,P,g):[],{error:k}=await PC(x,B);if(k&&(p.error(`Cannot add bundle ${J(k)}`),S.error("")),E&&(a||l||i||o||s||u||c)){(!a||!l||!i||!o||!s||!u)&&(p.error("Missing argument, for S3 upload you need to provide a bucket name, endpoint, region, port, API key, and API secret"),S.error("")),p.info("Uploading to S3");let M=new nh({endPoint:l,region:i,port:u,useSSL:c,bucket:a,accessKey:o,secretKey:s}),G=`${g}-${v}`,L=encodeURIComponent(G);await M.putObject(G,E),B.external_url=`https://${l}/${L}`,B.storage_provider="external"}else if(E){await EDe(f,x,g,v,P,E,t);let M=null;try{M=t.partial?await l7(f,$,b,g,v,P):null}catch(L){p.error(`Failed to upload partial files to capgo cloud. Error: ${J(L)}`)}B.storage_provider="r2",B.manifest=M;let{error:G}=await PC(x,B);G&&(p.error(`Cannot update bundle ${J(G)}`),S.error(""))}let N=await He(x,f,g,2);return l5(N,3)?await CDe(x,f,!!t.bundleUrl,v,A,O,P,g,w):p.warn("Cannot set channel as a upload organization member"),await Fe(f,{channel:"app",event:"App Uploaded",icon:"\u23EB",user_id:P,tags:{"app-id":g},notify:!1}),r&&(Z("Time to share your update to the world \u{1F30D}"),(0,f7.exit)()),!0}async function h7(e,t){try{await ly(e,t,!0)}catch(r){p.error(J(r)),S.error("")}}async function d7(e,t){let r=Vt();p.warn(`\u26A0\uFE0F This command is deprecated, use "${r.runner} @capgo/cli bundle upload" instead \u26A0\uFE0F`);try{await ly(e,t,!0)}catch(n){p.error(J(n)),S.error("")}}var p7=require("node:crypto"),cy=require("node:fs"),m7=require("node:process");var b1=ce(Gl());var SDe=20;async function g7(e,t){try{let{bundle:r,path:n}=t,{json:i}=t;i||await ge();let o=await Q();e=e||o?.config?.appId;let s=(0,p7.randomUUID)().split("-")[0],a=await Ht();r=r||a?.version||`0.0.1-beta.${s}`,i||K(`Zipping ${e}@${r}`),r&&!Lu.test(r)&&(i?console.error(J({error:"invalid_semver"})):p.error(`Your bundle name ${r}, is not valid it should follow semver convention : https://semver.org/`),S.error("")),n=n||o?.config?.webDir,(!e||!r||!n)&&(i?console.error(J({error:"missing_argument"})):p.error("Missing argument, you need to provide a appId and a bundle and a path, or be in a capacitor project"),S.error("")),i||p.info(`Started from path "${n}"`);let l=t.codeCheck;(typeof l>"u"||l)&&(oh(n,"notifyAppReady")||(i?console.error(J({error:"notifyAppReady_not_in_source_code"})):p.error("notifyAppReady() is missing in the source code. see: https://capgo.app/docs/plugin/api/#notifyappready"),S.error("")),sh(n)||(i?console.error(J({error:"index_html_not_found"})):p.error("index.html is missing in the root folder or in the only folder in the root folder"),S.error("")));let u=await Fg(n);i||p.info(`Zipped ${u.byteLength} bytes`);let c=_e();i||c.start("Calculating checksum");let f="";t.keyV2||(0,cy.existsSync)(Dr)?f=await(0,b1.checksum)(u,"sha256"):f=await(0,b1.checksum)(u,"crc32"),i||c.stop(`Checksum: ${f}`);let h=Math.floor(u.byteLength/1024/1024);h>SDe&&!i&&(p.warn(`WARNING !!
|
|
296
296
|
The app size is ${h} Mb, this may take a while to download for users
|
|
297
297
|
`),p.warn(`Learn how to optimize your assets https://capgo.app/blog/optimise-your-images-for-updates/
|
|
298
298
|
`));let d=_e(),g=t.name||`${e}_${r}.zip`;i||d.start(`Saving to ${g}`),(0,cy.writeFileSync)(g,u),i||d.stop(`Saved to ${g}`),i||Z("Done \u2705"),i&&console.log(JSON.stringify({bundle:r,filename:g,checksum:f},null,2)),(0,m7.exit)()}catch(r){p.error(J(r)),S.error("")}}var y7=require("node:process");async function _1(e,t,r,n=!0){K("Create channel"),r.apikey=r.apikey||de();let i=await Q();t=t||i?.config?.appId,r.apikey||(p.error("Missing API key, you need to provide a API key to upload your bundle"),S.error("")),t||(p.error("Missing argument, you need to provide a appId, or be in a capacitor project"),S.error(""));let o=await le(r.apikey);await pe(o,r.apikey,["write","all"]),await He(o,r.apikey,t,4),p.info(`Creating channel ${t}#${e} to Capgo`);try{let s=await c1(o,t),a=await Mr(o,t);s||(p.error("Cannot find default version for channel creation, please contact Capgo support \u{1F928}"),S.error(""));let l=await vU(o,{name:e,app_id:t,version:s.id,owner_org:a});l.error&&(p.error(`Cannot create Channel \u{1F640}
|