@share-crm/sharedev-cli 0.0.4-rc.12 → 0.0.4-rc.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.
Files changed (2) hide show
  1. package/dist/sharedev.js +1 -1
  2. package/package.json +4 -2
package/dist/sharedev.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  /*! For license information please see sharedev.js.LICENSE.txt */
3
- import*as e from"node:process";import*as t from"node:tty";import*as n from"node:util";import{createRequire as i}from"node:module";const a=i(import.meta.url);import{clearLine as o,createInterface as r,default as s,emitKeypressEvents as c,moveCursor as l}from"node:readline";import{existsSync as p,lstatSync as u,readdirSync as d}from"node:fs";import{dirname as m,join as f}from"node:path";import{default as h}from"node:os";var g={1873(e,t,n){e.exports={parallel:n(8798),serial:n(2081),serialOrdered:n(28)}},4555(e){function t(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(t.bind(e)),e.jobs={}}},2313(e,t,n){var i=n(405);e.exports=function(e){var t=!1;return i(function(){t=!0}),function(n,a){t?e(n,a):i(function(){e(n,a)})}}},405(e){e.exports=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)}},8051(e,t,n){var i=n(2313),a=n(4555);e.exports=function(e,t,n,o){var r=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[r]=function(e,t,n,a){return 2==e.length?e(n,i(a)):e(n,t,i(a))}(t,r,e[r],function(e,t){r in n.jobs&&(delete n.jobs[r],e?a(n):n.results[r]=t,o(e,n.results))})}},9500(e){e.exports=function(e,t){var n=!Array.isArray(e),i={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&i.keyedList.sort(n?t:function(n,i){return t(e[n],e[i])}),i}},6276(e,t,n){var i=n(4555),a=n(2313);e.exports=function(e){Object.keys(this.jobs).length&&(this.index=this.size,i(this),a(e)(null,this.results))}},8798(e,t,n){var i=n(8051),a=n(9500),o=n(6276);e.exports=function(e,t,n){for(var r=a(e);r.index<(r.keyedList||e).length;)i(e,t,r,function(e,t){e?n(e,t):0!==Object.keys(r.jobs).length||n(null,r.results)}),r.index++;return o.bind(r,n)}},2081(e,t,n){var i=n(28);e.exports=function(e,t,n){return i(e,t,null,n)}},28(e,t,n){var i=n(8051),a=n(9500),o=n(6276);function r(e,t){return e<t?-1:e>t?1:0}e.exports=function(e,t,n,r){var s=a(e,n);return i(e,t,s,function n(a,o){a?r(a,o):(s.index++,s.index<(s.keyedList||e).length?i(e,t,s,n):r(null,s.results))}),o.bind(s,r)},e.exports.ascending=r,e.exports.descending=function(e,t){return-1*r(e,t)}},4025(e,t,n){var i=n(181).Buffer,a=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function o(e){if(i.isBuffer(e))return e;var t="function"==typeof i.alloc&&"function"==typeof i.from;if("number"==typeof e)return t?i.alloc(e):new i(e);if("string"==typeof e)return t?i.from(e):new i(e);throw new Error("input must be buffer, number, or string, received "+typeof e)}function r(e,t){e=o(e),i.isBuffer(t)&&(t=t.readUInt32BE(0));for(var n=-1^t,r=0;r<e.length;r++)n=a[255&(n^e[r])]^n>>>8;return-1^n}function s(){return e=r.apply(null,arguments),(t=o(4)).writeInt32BE(e,0),t;var e,t}"undefined"!=typeof Int32Array&&(a=new Int32Array(a)),s.signed=function(){return r.apply(null,arguments)},s.unsigned=function(){return r.apply(null,arguments)>>>0},e.exports=s},3144(e,t,n){var i=n(6743),a=n(1002),o=n(76),r=n(7119);e.exports=r||i.call(o,a)},1002(e){e.exports=Function.prototype.apply},76(e){e.exports=Function.prototype.call},3126(e,t,n){var i=n(6743),a=n(9675),o=n(76),r=n(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new a("a function is required");return r(i,o,e)}},7119(e){e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},801(e,t,n){var i=n(9023),a=n(2203).Stream,o=n(8069);function r(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=r,i.inherits(r,a),r.create=function(e){var t=new this;for(var n in e=e||{})t[n]=e[n];return t},r.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},r.prototype.append=function(e){if(r.isStreamLike(e)){if(!(e instanceof o)){var t=o.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},r.prototype.pipe=function(e,t){return a.prototype.pipe.call(this,e,t),this.resume(),e},r.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},r.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){r.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},r.prototype._pipeNext=function(e){if(this._currentStream=e,r.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},r.prototype._handleErrors=function(e){var t=this;e.on("error",function(e){t._emitError(e)})},r.prototype.write=function(e){this.emit("data",e)},r.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},r.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},r.prototype.end=function(){this._reset(),this.emit("end")},r.prototype.destroy=function(){this._reset(),this.emit("close")},r.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},r.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},r.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},r.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},7833(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(a=i))}),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(736)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},736(e,t,n){e.exports=function(e){function t(e){let n,a,o,r=null;function s(...e){if(!s.enabled)return;const i=s,a=Number(new Date),o=a-(n||a);i.diff=o,i.prev=n,i.curr=a,n=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,a)=>{if("%%"===n)return"%";r++;const o=t.formatters[a];if("function"==typeof o){const t=e[r];n=o.call(i,t),e.splice(r,1),r--}return n}),t.formatArgs.call(i,e),(i.log||t.log).apply(i,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=i,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(a!==t.namespaces&&(a=t.namespaces,o=t.enabled(e)),o),set:e=>{r=e}}),"function"==typeof t.init&&t.init(s),s}function i(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function a(e,t){let n=0,i=0,a=-1,o=0;for(;n<e.length;)if(i<t.length&&(t[i]===e[n]||"*"===t[i]))"*"===t[i]?(a=i,o=n,i++):(n++,i++);else{if(-1===a)return!1;i=a+1,o++,n=o}for(;i<t.length&&"*"===t[i];)i++;return i===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(a(e,n))return!1;for(const n of t.names)if(a(e,n))return!0;return!1},t.humanize=n(6585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},5753(e,t,n){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=n(7833):e.exports=n(6033)},6033(e,t,n){const i=n(2018),a=n(9023);t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let i=0;i<n.length;i++)e.inspectOpts[n[i]]=t.inspectOpts[n[i]]},t.log=function(...e){return process.stderr.write(a.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(n){const{namespace:i,useColors:a}=this;if(a){const t=this.color,a="[3"+(t<8?t:"8;5;"+t),o=` ${a};1m${i} `;n[0]=o+n[0].split("\n").join("\n"+o),n.push(a+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+i+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):i.isatty(process.stderr.fd)},t.destroy=a.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=n(7687);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let i=process.env[t];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[n]=i,e},{}),e.exports=n(736)(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}},8069(e,t,n){var i=n(2203).Stream,a=n(9023);function o(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=o,a.inherits(o,i),o.create=function(e,t){var n=new this;for(var i in t=t||{})n[i]=t[i];n.source=e;var a=e.emit;return e.emit=function(){return n._handleEmit(arguments),a.apply(e,arguments)},e.on("error",function(){}),n.pauseStream&&e.pause(),n},Object.defineProperty(o.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),o.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},o.prototype.resume=function(){this._released||this.release(),this.source.resume()},o.prototype.pause=function(){this.source.pause()},o.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},o.prototype.pipe=function(){var e=i.prototype.pipe.apply(this,arguments);return this.resume(),e},o.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},o.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}},7176(e,t,n){var i,a=n(3126),o=n(5795);try{i=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var r=!!i&&o&&o(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=r&&"function"==typeof r.get?a([r.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},6611(e,t,n){var i=n(3519),a=function(){},o=global.Bare?queueMicrotask:process.nextTick.bind(process),r=function(e,t,n){if("function"==typeof t)return r(e,null,t);t||(t={}),n=i(n||a);var s=e._writableState,c=e._readableState,l=t.readable||!1!==t.readable&&e.readable,p=t.writable||!1!==t.writable&&e.writable,u=!1,d=function(){e.writable||m()},m=function(){p=!1,l||n.call(e)},f=function(){l=!1,p||n.call(e)},h=function(t){n.call(e,t?new Error("exited with error code: "+t):null)},g=function(t){n.call(e,t)},v=function(){o(y)},y=function(){if(!u)return(!l||c&&c.ended&&!c.destroyed)&&(!p||s&&s.ended&&!s.destroyed)?void 0:n.call(e,new Error("premature close"))},b=function(){e.req.on("finish",m)};return function(e){return e.setHeader&&"function"==typeof e.abort}(e)?(e.on("complete",m),e.on("abort",v),e.req?b():e.on("request",b)):p&&!s&&(e.on("end",d),e.on("close",d)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",h),e.on("end",f),e.on("finish",m),!1!==t.error&&e.on("error",g),e.on("close",v),function(){u=!0,e.removeListener("complete",m),e.removeListener("abort",v),e.removeListener("request",b),e.req&&e.req.removeListener("finish",m),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",m),e.removeListener("exit",h),e.removeListener("end",f),e.removeListener("error",g),e.removeListener("close",v)}};e.exports=r},655(e){var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},1237(e){e.exports=EvalError},9383(e){e.exports=Error},9290(e){e.exports=RangeError},9538(e){e.exports=ReferenceError},8068(e){e.exports=SyntaxError},9675(e){e.exports=TypeError},5345(e){e.exports=URIError},9612(e){e.exports=Object},9605(e,t,n){var i=n(453)("%Object.defineProperty%",!0),a=n(9092)(),o=n(9957),r=n(9675),s=a?Symbol.toStringTag:null;e.exports=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==a&&"boolean"!=typeof a)throw new r("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!s||!n&&o(e,s)||(i?i(e,s,{configurable:!a,enumerable:!1,value:t,writable:!1}):e[s]=t)}},3832(e,t,n){const i=n(5753)("extract-zip"),{createWriteStream:a,promises:o}=n(9896),r=n(4594),s=n(6928),{promisify:c}=n(9023),l=n(2203),p=n(4824),u=c(p.open),d=c(l.pipeline);class m{constructor(e,t){this.zipPath=e,this.opts=t}async extract(){return i("opening",this.zipPath,"with opts",this.opts),this.zipfile=await u(this.zipPath,{lazyEntries:!0}),this.canceled=!1,new Promise((e,t)=>{this.zipfile.on("error",e=>{this.canceled=!0,t(e)}),this.zipfile.readEntry(),this.zipfile.on("close",()=>{this.canceled||(i("zip extraction complete"),e())}),this.zipfile.on("entry",async e=>{if(this.canceled)return void i("skipping entry",e.fileName,{cancelled:this.canceled});if(i("zipfile entry",e.fileName),e.fileName.startsWith("__MACOSX/"))return void this.zipfile.readEntry();const n=s.dirname(s.join(this.opts.dir,e.fileName));try{await o.mkdir(n,{recursive:!0});const t=await o.realpath(n);if(s.relative(this.opts.dir,t).split(s.sep).includes(".."))throw new Error(`Out of bound path "${t}" found while processing file ${e.fileName}`);await this.extractEntry(e),i("finished processing",e.fileName),this.zipfile.readEntry()}catch(e){this.canceled=!0,this.zipfile.close(),t(e)}})})}async extractEntry(e){if(this.canceled)return void i("skipping entry extraction",e.fileName,{cancelled:this.canceled});this.opts.onEntry&&this.opts.onEntry(e,this.zipfile);const t=s.join(this.opts.dir,e.fileName),n=e.externalFileAttributes>>16&65535,l=40960==(61440&n);let p=16384==(61440&n);!p&&e.fileName.endsWith("/")&&(p=!0);const u=e.versionMadeBy>>8;p||(p=0===u&&16===e.externalFileAttributes),i("extracting entry",{filename:e.fileName,isDir:p,isSymlink:l});const m=511&this.getExtractedMode(n,p),f=p?t:s.dirname(t),h={recursive:!0};if(p&&(h.mode=m),i("mkdir",{dir:f,...h}),await o.mkdir(f,h),p)return;i("opening read stream",t);const g=await c(this.zipfile.openReadStream.bind(this.zipfile))(e);if(l){const e=await r(g);i("creating symlink",e,t),await o.symlink(e,t)}else await d(g,a(t,{mode:m}))}getExtractedMode(e,t){let n=e;return 0===n&&(t?(this.opts.defaultDirMode&&(n=parseInt(this.opts.defaultDirMode,10)),n||(n=493)):(this.opts.defaultFileMode&&(n=parseInt(this.opts.defaultFileMode,10)),n||(n=420))),n}}e.exports=async function(e,t){if(i("creating target directory",t.dir),!s.isAbsolute(t.dir))throw new Error("Target directory is expected to be absolute");return await o.mkdir(t.dir,{recursive:!0}),t.dir=await o.realpath(t.dir),new m(e,t).extract()}},3070(e,t,n){var i=n(9896),a=n(9023),o=n(2203),r=o.Readable,s=o.Writable,c=o.PassThrough,l=n(1436),p=n(4434).EventEmitter;function u(e,t){t=t||{},p.call(this),this.fd=e,this.pend=new l,this.pend.max=1,this.refCount=0,this.autoClose=!!t.autoClose}function d(e,t){t=t||{},r.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=t.end,this.pos=this.start,this.destroyed=!1}function m(e,t){t=t||{},s.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=null==t.end?1/0:+t.end,this.bytesWritten=0,this.pos=this.start,this.destroyed=!1,this.on("finish",this.destroy.bind(this))}function f(e,t){p.call(this),t=t||{},this.refCount=0,this.buffer=e,this.maxChunkSize=t.maxChunkSize||Number.MAX_SAFE_INTEGER}t.createFromBuffer=function(e,t){return new f(e,t)},t.createFromFd=function(e,t){return new u(e,t)},t.BufferSlicer=f,t.FdSlicer=u,a.inherits(u,p),u.prototype.read=function(e,t,n,a,o){var r=this;r.pend.go(function(s){i.read(r.fd,e,t,n,a,function(e,t,n){s(),o(e,t,n)})})},u.prototype.write=function(e,t,n,a,o){var r=this;r.pend.go(function(s){i.write(r.fd,e,t,n,a,function(e,t,n){s(),o(e,t,n)})})},u.prototype.createReadStream=function(e){return new d(this,e)},u.prototype.createWriteStream=function(e){return new m(this,e)},u.prototype.ref=function(){this.refCount+=1},u.prototype.unref=function(){var e=this;if(e.refCount-=1,!(e.refCount>0)){if(e.refCount<0)throw new Error("invalid unref");e.autoClose&&i.close(e.fd,function(t){t?e.emit("error",t):e.emit("close")})}},a.inherits(d,r),d.prototype._read=function(e){var t=this;if(!t.destroyed){var n=Math.min(t._readableState.highWaterMark,e);if(null!=t.endOffset&&(n=Math.min(n,t.endOffset-t.pos)),n<=0)return t.destroyed=!0,t.push(null),void t.context.unref();t.context.pend.go(function(e){if(t.destroyed)return e();var a=new Buffer(n);i.read(t.context.fd,a,0,n,t.pos,function(n,i){n?t.destroy(n):0===i?(t.destroyed=!0,t.push(null),t.context.unref()):(t.pos+=i,t.push(a.slice(0,i))),e()})})}},d.prototype.destroy=function(e){this.destroyed||(e=e||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",e),this.context.unref())},a.inherits(m,s),m.prototype._write=function(e,t,n){var a=this;if(!a.destroyed){if(a.pos+e.length>a.endOffset){var o=new Error("maximum file length exceeded");return o.code="ETOOBIG",a.destroy(),void n(o)}a.context.pend.go(function(t){if(a.destroyed)return t();i.write(a.context.fd,e,0,e.length,a.pos,function(e,i){e?(a.destroy(),t(),n(e)):(a.bytesWritten+=i,a.pos+=i,a.emit("progress"),t(),n())})})}},m.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())},a.inherits(f,p),f.prototype.read=function(e,t,n,i,a){var o=i+n,r=o-this.buffer.length,s=r>0?r:n;this.buffer.copy(e,t,i,o),setImmediate(function(){a(null,s)})},f.prototype.write=function(e,t,n,i,a){e.copy(this.buffer,i,t,t+n),setImmediate(function(){a(null,n,e)})},f.prototype.createReadStream=function(e){var t=new c(e=e||{});t.destroyed=!1,t.start=e.start||0,t.endOffset=e.end,t.pos=t.endOffset||this.buffer.length;for(var n=this.buffer.slice(t.start,t.pos),i=0;;){var a=i+this.maxChunkSize;if(a>=n.length){i<n.length&&t.write(n.slice(i,n.length));break}t.write(n.slice(i,a)),i=a}return t.end(),t.destroy=function(){t.destroyed=!0},t},f.prototype.createWriteStream=function(e){var t=this,n=new s(e=e||{});return n.start=e.start||0,n.endOffset=null==e.end?this.buffer.length:+e.end,n.bytesWritten=0,n.pos=n.start,n.destroyed=!1,n._write=function(e,i,a){if(!n.destroyed){var o=n.pos+e.length;if(o>n.endOffset){var r=new Error("maximum file length exceeded");return r.code="ETOOBIG",n.destroyed=!0,void a(r)}e.copy(t.buffer,n.pos,0,e.length),n.bytesWritten+=e.length,n.pos=o,n.emit("progress"),a()}},n.destroy=function(){n.destroyed=!0},n},f.prototype.ref=function(){this.refCount+=1},f.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")}},7507(e,t,n){var i;e.exports=function(){if(!i){try{i=n(5753)("follow-redirects")}catch(e){}"function"!=typeof i&&(i=function(){})}i.apply(null,arguments)}},3164(e,t,n){var i,a,o,r=n(7016),s=r.URL,c=n(8611),l=n(5692),p=n(2203).Writable,u=n(2613),d=n(7507);i="undefined"!=typeof process,a="undefined"!=typeof window&&"undefined"!=typeof document,o=k(Error.captureStackTrace),i||!a&&o||console.warn("The follow-redirects package should be excluded from browser builds.");var m=!1;try{u(new s(""))}catch(e){m="ERR_INVALID_URL"===e.code}var f=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],h=["abort","aborted","connect","error","socket","timeout"],g=Object.create(null);h.forEach(function(e){g[e]=function(t,n,i){this._redirectable.emit(e,t,n,i)}});var v=T("ERR_INVALID_URL","Invalid URL",TypeError),y=T("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),b=T("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",y),x=T("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),w=T("ERR_STREAM_WRITE_AFTER_END","write after end"),_=p.prototype.destroy||j;function S(e,t){p.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof y?e:new y({cause:e}))}},this._performRequest()}function E(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach(function(i){var a=i+":",o=n[a]=e[i],r=t[i]=Object.create(o);Object.defineProperties(r,{request:{value:function(e,i,o){return s&&e instanceof s?e=C(e):P(e)?e=C(N(e)):(o=i,i=A(e),e={protocol:a}),k(i)&&(o=i,i=null),(i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i)).nativeProtocols=n,P(i.host)||P(i.hostname)||(i.hostname="::1"),u.equal(i.protocol,a,"protocol mismatch"),d("options",i),new S(i,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var i=r.request(e,t,n);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})}),t}function j(){}function N(e){var t;if(m)t=new s(e);else if(!P((t=A(r.parse(e))).protocol))throw new v({input:e});return t}function A(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new v({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new v({input:e.href||e});return e}function C(e,t){var n=t||{};for(var i of f)n[i]=e[i];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function O(e,t){var n;for(var i in t)e.test(i)&&(n=t[i],delete t[i]);return null==n?void 0:String(n).trim()}function T(e,t,n){function i(n){k(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return i.prototype=new(n||Error),Object.defineProperties(i.prototype,{constructor:{value:i,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),i}function $(e,t){for(var n of h)e.removeListener(n,g[n]);e.on("error",j),e.destroy(t)}function P(e){return"string"==typeof e||e instanceof String}function k(e){return"function"==typeof e}S.prototype=Object.create(p.prototype),S.prototype.abort=function(){$(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},S.prototype.destroy=function(e){return $(this._currentRequest,e),_.call(this,e),this},S.prototype.write=function(e,t,n){if(this._ending)throw new w;if(!(P(e)||"object"==typeof(i=e)&&"length"in i))throw new TypeError("data should be a string, Buffer or Uint8Array");var i;k(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new x),this.abort()):n&&n()},S.prototype.end=function(e,t,n){if(k(e)?(n=e,e=t=null):k(t)&&(n=t,t=null),e){var i=this,a=this._currentRequest;this.write(e,t,function(){i._ended=!0,a.end(null,null,n)}),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},S.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},S.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},S.prototype.setTimeout=function(e,t){var n=this;function i(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function a(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit("timeout"),o()},e),i(t)}function o(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",o),n.removeListener("error",o),n.removeListener("response",o),n.removeListener("close",o),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",a)}return t&&this.on("timeout",t),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",i),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){S.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(S.prototype,e,{get:function(){return this._currentRequest[e]}})}),S.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},S.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var a of(i._redirectable=this,h))i.on(a,g[a]);if(this._currentUrl=/^\//.test(this._options.path)?r.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,c=this._requestBodyBuffers;!function e(t){if(i===s._currentRequest)if(t)s.emit("error",t);else if(o<c.length){var n=c[o++];i.finished||i.write(n.data,n.encoding,e)}else s._ended&&i.end()}()}},S.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,i=e.headers.location;if(!i||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if($(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new b;var a=this._options.beforeRedirect;a&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],O(/^content-/i,this._options.headers));var c,l,p=O(/^host$/i,this._options.headers),f=N(this._currentUrl),h=p||f.host,g=/^\w+:/.test(i)?this._currentUrl:r.format(Object.assign(f,{host:h})),v=(c=i,l=g,m?new s(c,l):N(r.resolve(l,c)));if(d("redirecting to",v.href),this._isRedirect=!0,C(v,this._options),(v.protocol!==f.protocol&&"https:"!==v.protocol||v.host!==h&&!function(e,t){u(P(e)&&P(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(v.host,h))&&O(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),k(a)){var y={headers:e.headers,statusCode:t},x={url:g,method:o,headers:n};a(this._options,y,x),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=E({http:c,https:l}),e.exports.wrap=E},737(e,t,n){var i=n(801),a=n(9023),o=n(6928),r=n(8611),s=n(5692),c=n(7016).parse,l=n(9896),p=n(2203).Stream,u=n(6982),d=n(6049),m=n(1873),f=n(9605),h=n(9957),g=n(1362);function v(e){if(!(this instanceof v))return new v(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],i.call(this),e=e||{})this[t]=e[t]}a.inherits(v,i),v.LINE_BREAK="\r\n",v.DEFAULT_CONTENT_TYPE="application/octet-stream",v.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var a=i.prototype.append.bind(this);if("number"!=typeof t&&null!=t||(t=String(t)),Array.isArray(t))this._error(new Error("Arrays are not supported."));else{var o=this._multiPartHeader(e,t,n),r=this._multiPartFooter();a(o),a(t),a(r),this._trackLength(o,t,n)}},v.prototype._trackLength=function(e,t,n){var i=0;null!=n.knownLength?i+=Number(n.knownLength):Buffer.isBuffer(t)?i=t.length:"string"==typeof t&&(i=Buffer.byteLength(t)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+v.LINE_BREAK.length,t&&(t.path||t.readable&&h(t,"httpVersion")||t instanceof p)&&(n.knownLength||this._valuesToMeasure.push(t))},v.prototype._lengthRetriever=function(e,t){h(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):l.stat(e.path,function(n,i){if(n)t(n);else{var a=i.size-(e.start?e.start:0);t(null,a)}}):h(e,"httpVersion")?t(null,Number(e.headers["content-length"])):h(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")},v.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var i,a=this._getContentDisposition(t,n),o=this._getContentType(t,n),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(a||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof n.header&&g(s,n.header),s)if(h(s,c)){if(null==(i=s[c]))continue;Array.isArray(i)||(i=[i]),i.length&&(r+=c+": "+i.join("; ")+v.LINE_BREAK)}return"--"+this.getBoundary()+v.LINE_BREAK+r+v.LINE_BREAK},v.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=o.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=o.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&h(e,"httpVersion")&&(n=o.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},v.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=d.lookup(e.name)),!n&&e&&e.path&&(n=d.lookup(e.path)),!n&&e&&e.readable&&h(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=d.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=v.DEFAULT_CONTENT_TYPE),n},v.prototype._multiPartFooter=function(){return function(e){var t=v.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},v.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+v.LINE_BREAK},v.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)h(e,t)&&(n[t.toLowerCase()]=e[t]);return n},v.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},v.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},v.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,i=this._streams.length;n<i;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(v.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},v.prototype._generateBoundary=function(){this._boundary="--------------------------"+u.randomBytes(12).toString("hex")},v.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},v.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},v.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?m.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,i){n?e(n):(i.forEach(function(e){t+=e}),e(null,t))}):process.nextTick(e.bind(this,null,t))},v.prototype.submit=function(e,t){var n,i,a={method:"post"};return"string"==typeof e?(e=c(e),i=g({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},a)):(i=g(e,a)).port||(i.port="https:"===i.protocol?443:80),i.headers=this.getHeaders(e.headers),n="https:"===i.protocol?s.request(i):r.request(i),this.getLength(function(e,i){if(e&&"Unknown stream"!==e)this._error(e);else if(i&&n.setHeader("Content-Length",i),this.pipe(n),t){var a,o=function(e,i){return n.removeListener("error",o),n.removeListener("response",a),t.call(this,e,i)};a=o.bind(this,null),n.on("error",o),n.on("response",a)}}.bind(this)),n},v.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},v.prototype.toString=function(){return"[object FormData]"},f(v.prototype,"FormData"),e.exports=v},1362(e){e.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}},3876(e,t,n){const i=n(3735),a=n(6928),o=n(3798).mkdirsSync,r=n(7211).utimesMillisSync,s=n(6462);function c(e,t,n,o){const r=(o.dereference?i.statSync:i.lstatSync)(t);if(r.isDirectory())return function(e,t,n,a,o){return t?u(n,a,o):function(e,t,n,a){return i.mkdirSync(n),u(t,n,a),p(n,e)}(e.mode,n,a,o)}(r,e,t,n,o);if(r.isFile()||r.isCharacterDevice()||r.isBlockDevice())return function(e,t,n,a,o){return t?function(e,t,n,a){if(a.overwrite)return i.unlinkSync(n),l(e,t,n,a);if(a.errorOnExist)throw new Error(`'${n}' already exists`)}(e,n,a,o):l(e,n,a,o)}(r,e,t,n,o);if(r.isSymbolicLink())return function(e,t,n,o){let r=i.readlinkSync(t);if(o.dereference&&(r=a.resolve(process.cwd(),r)),e){let e;try{e=i.readlinkSync(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return i.symlinkSync(r,n);throw e}if(o.dereference&&(e=a.resolve(process.cwd(),e)),r!==e){if(s.isSrcSubdir(r,e))throw new Error(`Cannot copy '${r}' to a subdirectory of itself, '${e}'.`);if(s.isSrcSubdir(e,r))throw new Error(`Cannot overwrite '${e}' with '${r}'.`)}return function(e,t){return i.unlinkSync(t),i.symlinkSync(e,t)}(r,n)}return i.symlinkSync(r,n)}(e,t,n,o);if(r.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(r.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function l(e,t,n,a){return i.copyFileSync(t,n),a.preserveTimestamps&&function(e,t,n){(function(e){return!(128&e)})(e)&&function(e,t){p(e,128|t)}(n,e),function(e,t){const n=i.statSync(e);r(t,n.atime,n.mtime)}(t,n)}(e.mode,t,n),p(n,e.mode)}function p(e,t){return i.chmodSync(e,t)}function u(e,t,n){const a=i.opendirSync(e);try{let i;for(;null!==(i=a.readSync());)d(i.name,e,t,n)}finally{a.closeSync()}}function d(e,t,n,i){const o=a.join(t,e),r=a.join(n,e);if(i.filter&&!i.filter(o,r))return;const{destStat:l}=s.checkPathsSync(o,r,"copy",i);return c(l,o,r,i)}e.exports=function(e,t,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:r,destStat:l}=s.checkPathsSync(e,t,"copy",n);if(s.checkParentPathsSync(e,r,t,"copy"),n.filter&&!n.filter(e,t))return;const p=a.dirname(t);return i.existsSync(p)||o(p),c(l,e,t,n)}},4994(e,t,n){const i=n(8737),a=n(6928),{mkdirs:o}=n(3798),{pathExists:r}=n(9288),{utimesMillis:s}=n(7211),c=n(6462),{asyncIteratorConcurrentProcess:l}=n(6322);async function p(e,t,n){return!n.filter||n.filter(e,t)}async function u(e,t,n,o){const r=o.dereference?i.stat:i.lstat,s=await r(t);if(s.isDirectory())return async function(e,t,n,o,r){t||await i.mkdir(o),await l(await i.opendir(n),async e=>{const t=a.join(n,e.name),i=a.join(o,e.name);if(await p(t,i,r)){const{destStat:e}=await c.checkPaths(t,i,"copy",r);await u(e,t,i,r)}}),t||await i.chmod(o,e.mode)}(s,e,t,n,o);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return async function(e,t,n,a,o){if(!t)return d(e,n,a,o);if(o.overwrite)return await i.unlink(a),d(e,n,a,o);if(o.errorOnExist)throw new Error(`'${a}' already exists`)}(s,e,t,n,o);if(s.isSymbolicLink())return async function(e,t,n,o){let r=await i.readlink(t);if(o.dereference&&(r=a.resolve(process.cwd(),r)),!e)return i.symlink(r,n);let s=null;try{s=await i.readlink(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return i.symlink(r,n);throw e}if(o.dereference&&(s=a.resolve(process.cwd(),s)),r!==s){if(c.isSrcSubdir(r,s))throw new Error(`Cannot copy '${r}' to a subdirectory of itself, '${s}'.`);if(c.isSrcSubdir(s,r))throw new Error(`Cannot overwrite '${s}' with '${r}'.`)}return await i.unlink(n),i.symlink(r,n)}(e,t,n,o);if(s.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(s.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}async function d(e,t,n,a){if(await i.copyFile(t,n),a.preserveTimestamps){128&e.mode||await function(e,t){return i.chmod(e,128|t)}(n,e.mode);const a=await i.stat(t);await s(n,a.atime,a.mtime)}return i.chmod(n,e.mode)}e.exports=async function(e,t,n={}){"function"==typeof n&&(n={filter:n}),n.clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001");const{srcStat:i,destStat:s}=await c.checkPaths(e,t,"copy",n);if(await c.checkParentPaths(e,i,t,"copy"),!await p(e,t,n))return;const l=a.dirname(t);await r(l)||await o(l),await u(s,e,t,n)}},4423(e,t,n){const i=n(1236).fromPromise;e.exports={copy:i(n(4994)),copySync:n(3876)}},2591(e,t,n){const i=n(1236).fromPromise,a=n(8737),o=n(6928),r=n(3798),s=n(5422),c=i(async function(e){let t;try{t=await a.readdir(e)}catch{return r.mkdirs(e)}return Promise.all(t.map(t=>s.remove(o.join(e,t))))});function l(e){let t;try{t=a.readdirSync(e)}catch{return r.mkdirsSync(e)}t.forEach(t=>{t=o.join(e,t),s.removeSync(t)})}e.exports={emptyDirSync:l,emptydirSync:l,emptyDir:c,emptydir:c}},9616(e,t,n){const i=n(1236).fromPromise,a=n(6928),o=n(8737),r=n(3798);e.exports={createFile:i(async function(e){let t;try{t=await o.stat(e)}catch{}if(t&&t.isFile())return;const n=a.dirname(e);let i=null;try{i=await o.stat(n)}catch(t){if("ENOENT"===t.code)return await r.mkdirs(n),void await o.writeFile(e,"");throw t}i.isDirectory()?await o.writeFile(e,""):await o.readdir(n)}),createFileSync:function(e){let t;try{t=o.statSync(e)}catch{}if(t&&t.isFile())return;const n=a.dirname(e);try{o.statSync(n).isDirectory()||o.readdirSync(n)}catch(e){if(!e||"ENOENT"!==e.code)throw e;r.mkdirsSync(n)}o.writeFileSync(e,"")}}},6288(e,t,n){const{createFile:i,createFileSync:a}=n(9616),{createLink:o,createLinkSync:r}=n(1522),{createSymlink:s,createSymlinkSync:c}=n(5291);e.exports={createFile:i,createFileSync:a,ensureFile:i,ensureFileSync:a,createLink:o,createLinkSync:r,ensureLink:o,ensureLinkSync:r,createSymlink:s,createSymlinkSync:c,ensureSymlink:s,ensureSymlinkSync:c}},1522(e,t,n){const i=n(1236).fromPromise,a=n(6928),o=n(8737),r=n(3798),{pathExists:s}=n(9288),{areIdentical:c}=n(6462);e.exports={createLink:i(async function(e,t){let n,i;try{n=await o.lstat(t)}catch{}try{i=await o.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}if(n&&c(i,n))return;const l=a.dirname(t);await s(l)||await r.mkdirs(l),await o.link(e,t)}),createLinkSync:function(e,t){let n;try{n=o.lstatSync(t)}catch{}try{const t=o.lstatSync(e);if(n&&c(t,n))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const i=a.dirname(t);return o.existsSync(i)||r.mkdirsSync(i),o.linkSync(e,t)}}},3838(e,t,n){const i=n(6928),a=n(8737),{pathExists:o}=n(9288),r=n(1236).fromPromise;e.exports={symlinkPaths:r(async function(e,t){if(i.isAbsolute(e)){try{await a.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:e}}const n=i.dirname(t),r=i.join(n,e);if(await o(r))return{toCwd:r,toDst:e};try{await a.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:i.relative(n,e)}}),symlinkPathsSync:function(e,t){if(i.isAbsolute(e)){if(!a.existsSync(e))throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}const n=i.dirname(t),o=i.join(n,e);if(a.existsSync(o))return{toCwd:o,toDst:e};if(!a.existsSync(e))throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:i.relative(n,e)}}}},7064(e,t,n){const i=n(8737),a=n(1236).fromPromise;e.exports={symlinkType:a(async function(e,t){if(t)return t;let n;try{n=await i.lstat(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}),symlinkTypeSync:function(e,t){if(t)return t;let n;try{n=i.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}}},5291(e,t,n){const i=n(1236).fromPromise,a=n(6928),o=n(8737),{mkdirs:r,mkdirsSync:s}=n(3798),{symlinkPaths:c,symlinkPathsSync:l}=n(3838),{symlinkType:p,symlinkTypeSync:u}=n(7064),{pathExists:d}=n(9288),{areIdentical:m}=n(6462);e.exports={createSymlink:i(async function(e,t,n){let i;try{i=await o.lstat(t)}catch{}if(i&&i.isSymbolicLink()){let n;if(a.isAbsolute(e))n=await o.stat(e);else{const i=a.dirname(t),r=a.join(i,e);try{n=await o.stat(r)}catch{n=await o.stat(e)}}const i=await o.stat(t);if(m(n,i))return}const s=await c(e,t);e=s.toDst;const l=await p(s.toCwd,n),u=a.dirname(t);return await d(u)||await r(u),o.symlink(e,t,l)}),createSymlinkSync:function(e,t,n){let i;try{i=o.lstatSync(t)}catch{}if(i&&i.isSymbolicLink()){let n;if(a.isAbsolute(e))n=o.statSync(e);else{const i=a.dirname(t),r=a.join(i,e);try{n=o.statSync(r)}catch{n=o.statSync(e)}}const i=o.statSync(t);if(m(n,i))return}const r=l(e,t);e=r.toDst,n=u(r.toCwd,n);const c=a.dirname(t);return o.existsSync(c)||s(c),o.symlinkSync(e,t,n)}}},8737(e,t,n){const i=n(1236).fromCallback,a=n(3735),o=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter(e=>"function"==typeof a[e]);Object.assign(t,a),o.forEach(e=>{t[e]=i(a[e])}),t.exists=function(e,t){return"function"==typeof t?a.exists(e,t):new Promise(t=>a.exists(e,t))},t.read=function(e,t,n,i,o,r){return"function"==typeof r?a.read(e,t,n,i,o,r):new Promise((r,s)=>{a.read(e,t,n,i,o,(e,t,n)=>{if(e)return s(e);r({bytesRead:t,buffer:n})})})},t.write=function(e,t,...n){return"function"==typeof n[n.length-1]?a.write(e,t,...n):new Promise((i,o)=>{a.write(e,t,...n,(e,t,n)=>{if(e)return o(e);i({bytesWritten:t,buffer:n})})})},t.readv=function(e,t,...n){return"function"==typeof n[n.length-1]?a.readv(e,t,...n):new Promise((i,o)=>{a.readv(e,t,...n,(e,t,n)=>{if(e)return o(e);i({bytesRead:t,buffers:n})})})},t.writev=function(e,t,...n){return"function"==typeof n[n.length-1]?a.writev(e,t,...n):new Promise((i,o)=>{a.writev(e,t,...n,(e,t,n)=>{if(e)return o(e);i({bytesWritten:t,buffers:n})})})},"function"==typeof a.realpath.native?t.realpath.native=i(a.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")},1605(e,t,n){e.exports={...n(8737),...n(4423),...n(2591),...n(6288),...n(3376),...n(3798),...n(2455),...n(7024),...n(9288),...n(5422)}},3376(e,t,n){const i=n(1236).fromPromise,a=n(2934);a.outputJson=i(n(6426)),a.outputJsonSync=n(2188),a.outputJSON=a.outputJson,a.outputJSONSync=a.outputJsonSync,a.writeJSON=a.writeJson,a.writeJSONSync=a.writeJsonSync,a.readJSON=a.readJson,a.readJSONSync=a.readJsonSync,e.exports=a},2934(e,t,n){const i=n(2909);e.exports={readJson:i.readFile,readJsonSync:i.readFileSync,writeJson:i.writeFile,writeJsonSync:i.writeFileSync}},2188(e,t,n){const{stringify:i}=n(1144),{outputFileSync:a}=n(7024);e.exports=function(e,t,n){const o=i(t,n);a(e,o,n)}},6426(e,t,n){const{stringify:i}=n(1144),{outputFile:a}=n(7024);e.exports=async function(e,t,n={}){const o=i(t,n);await a(e,o,n)}},3798(e,t,n){const i=n(1236).fromPromise,{makeDir:a,makeDirSync:o}=n(8916),r=i(a);e.exports={mkdirs:r,mkdirsSync:o,mkdirp:r,mkdirpSync:o,ensureDir:r,ensureDirSync:o}},8916(e,t,n){const i=n(8737),{checkPath:a}=n(7111),o=e=>"number"==typeof e?e:{mode:511,...e}.mode;e.exports.makeDir=async(e,t)=>(a(e),i.mkdir(e,{mode:o(t),recursive:!0})),e.exports.makeDirSync=(e,t)=>(a(e),i.mkdirSync(e,{mode:o(t),recursive:!0}))},7111(e,t,n){const i=n(6928);e.exports.checkPath=function(e){if("win32"===process.platform&&/[<>:"|?*]/.test(e.replace(i.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}},2455(e,t,n){const i=n(1236).fromPromise;e.exports={move:i(n(3314)),moveSync:n(6244)}},6244(e,t,n){const i=n(3735),a=n(6928),o=n(4423).copySync,r=n(5422).removeSync,s=n(3798).mkdirpSync,c=n(6462);function l(e,t,n){try{i.renameSync(e,t)}catch(i){if("EXDEV"!==i.code)throw i;return function(e,t,n){return o(e,t,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),r(e)}(e,t,n)}}e.exports=function(e,t,n){const o=(n=n||{}).overwrite||n.clobber||!1,{srcStat:p,isChangingCase:u=!1}=c.checkPathsSync(e,t,"move",n);return c.checkParentPathsSync(e,p,t,"move"),function(e){const t=a.dirname(e);return a.parse(t).root===t}(t)||s(a.dirname(t)),function(e,t,n,a){if(a)return l(e,t,n);if(n)return r(t),l(e,t,n);if(i.existsSync(t))throw new Error("dest already exists.");return l(e,t,n)}(e,t,o,u)}},3314(e,t,n){const i=n(8737),a=n(6928),{copy:o}=n(4423),{remove:r}=n(5422),{mkdirp:s}=n(3798),{pathExists:c}=n(9288),l=n(6462);e.exports=async function(e,t,n={}){const p=n.overwrite||n.clobber||!1,{srcStat:u,isChangingCase:d=!1}=await l.checkPaths(e,t,"move",n);await l.checkParentPaths(e,u,t,"move");const m=a.dirname(t);return a.parse(m).root!==m&&await s(m),async function(e,t,n,a){if(!a)if(n)await r(t);else if(await c(t))throw new Error("dest already exists.");try{await i.rename(e,t)}catch(i){if("EXDEV"!==i.code)throw i;await async function(e,t,n){const i={overwrite:n,errorOnExist:!0,preserveTimestamps:!0};return await o(e,t,i),r(e)}(e,t,n)}}(e,t,p,d)}},7024(e,t,n){const i=n(1236).fromPromise,a=n(8737),o=n(6928),r=n(3798),s=n(9288).pathExists;e.exports={outputFile:i(async function(e,t,n="utf-8"){const i=o.dirname(e);return await s(i)||await r.mkdirs(i),a.writeFile(e,t,n)}),outputFileSync:function(e,...t){const n=o.dirname(e);a.existsSync(n)||r.mkdirsSync(n),a.writeFileSync(e,...t)}}},9288(e,t,n){const i=n(1236).fromPromise,a=n(8737);e.exports={pathExists:i(function(e){return a.access(e).then(()=>!0).catch(()=>!1)}),pathExistsSync:a.existsSync}},5422(e,t,n){const i=n(3735),a=n(1236).fromCallback;e.exports={remove:a(function(e,t){i.rm(e,{recursive:!0,force:!0},t)}),removeSync:function(e){i.rmSync(e,{recursive:!0,force:!0})}}},6322(e){e.exports={asyncIteratorConcurrentProcess:async function(e,t){const n=[];for await(const i of e)n.push(t(i).then(()=>null,e=>e??new Error("unknown error")));await Promise.all(n.map(e=>e.then(e=>{if(null!==e)throw e})))}}},6462(e,t,n){const i=n(8737),a=n(6928),o=n(1236).fromPromise;function r(e,t){return void 0!==t.ino&&void 0!==t.dev&&t.ino===e.ino&&t.dev===e.dev}function s(e,t){const n=a.resolve(e).split(a.sep).filter(e=>e),i=a.resolve(t).split(a.sep).filter(e=>e);return n.every((e,t)=>i[t]===e)}function c(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:o(async function(e,t,n,o){const{srcStat:l,destStat:p}=await function(e,t,n){const a=n.dereference?e=>i.stat(e,{bigint:!0}):e=>i.lstat(e,{bigint:!0});return Promise.all([a(e),a(t).catch(e=>{if("ENOENT"===e.code)return null;throw e})]).then(([e,t])=>({srcStat:e,destStat:t}))}(e,t,o);if(p){if(r(l,p)){const i=a.basename(e),o=a.basename(t);if("move"===n&&i!==o&&i.toLowerCase()===o.toLowerCase())return{srcStat:l,destStat:p,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(l.isDirectory()&&!p.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!l.isDirectory()&&p.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(l.isDirectory()&&s(e,t))throw new Error(c(e,t,n));return{srcStat:l,destStat:p}}),checkPathsSync:function(e,t,n,o){const{srcStat:l,destStat:p}=function(e,t,n){let a;const o=n.dereference?e=>i.statSync(e,{bigint:!0}):e=>i.lstatSync(e,{bigint:!0}),r=o(e);try{a=o(t)}catch(e){if("ENOENT"===e.code)return{srcStat:r,destStat:null};throw e}return{srcStat:r,destStat:a}}(e,t,o);if(p){if(r(l,p)){const i=a.basename(e),o=a.basename(t);if("move"===n&&i!==o&&i.toLowerCase()===o.toLowerCase())return{srcStat:l,destStat:p,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(l.isDirectory()&&!p.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!l.isDirectory()&&p.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(l.isDirectory()&&s(e,t))throw new Error(c(e,t,n));return{srcStat:l,destStat:p}},checkParentPaths:o(async function e(t,n,o,s){const l=a.resolve(a.dirname(t)),p=a.resolve(a.dirname(o));if(p===l||p===a.parse(p).root)return;let u;try{u=await i.stat(p,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(r(n,u))throw new Error(c(t,o,s));return e(t,n,p,s)}),checkParentPathsSync:function e(t,n,o,s){const l=a.resolve(a.dirname(t)),p=a.resolve(a.dirname(o));if(p===l||p===a.parse(p).root)return;let u;try{u=i.statSync(p,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(r(n,u))throw new Error(c(t,o,s));return e(t,n,p,s)},isSrcSubdir:s,areIdentical:r}},7211(e,t,n){const i=n(8737),a=n(1236).fromPromise;e.exports={utimesMillis:a(async function(e,t,n){const a=await i.open(e,"r+");let o=null;try{await i.futimes(a,t,n)}finally{try{await i.close(a)}catch(e){o=e}}if(o)throw o}),utimesMillisSync:function(e,t,n){const a=i.openSync(e,"r+");return i.futimesSync(a,t,n),i.closeSync(a)}}},9353(e){var t=Object.prototype.toString,n=Math.max,i=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n};e.exports=function(e){var a=this;if("function"!=typeof a||"[object Function]"!==t.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var o,r=function(e){for(var t=[],n=1,i=0;n<e.length;n+=1,i+=1)t[i]=e[n];return t}(arguments),s=n(0,a.length-r.length),c=[],l=0;l<s;l++)c[l]="$"+l;if(o=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=a.apply(this,i(r,arguments));return Object(t)===t?t:this}return a.apply(e,i(r,arguments))}),a.prototype){var p=function(){};p.prototype=a.prototype,o.prototype=new p,p.prototype=null}return o}},6743(e,t,n){var i=n(9353);e.exports=Function.prototype.bind||i},453(e,t,n){var i,a=n(9612),o=n(9383),r=n(1237),s=n(9290),c=n(9538),l=n(8068),p=n(9675),u=n(5345),d=n(1514),m=n(8968),f=n(6188),h=n(8002),g=n(5880),v=n(414),y=n(3093),b=Function,x=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=n(5795),_=n(655),S=function(){throw new p},E=w?function(){try{return S}catch(e){try{return w(arguments,"callee").get}catch(e){return S}}}():S,j=n(4039)(),N=n(3628),A=n(1064),C=n(8648),O=n(1002),T=n(76),$={},P="undefined"!=typeof Uint8Array&&N?N(Uint8Array):i,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":j&&N?N([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":r,"%Float16Array%":"undefined"==typeof Float16Array?i:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":$,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&N?N(N([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&j&&N?N((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&j&&N?N((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&N?N(""[Symbol.iterator]()):i,"%Symbol%":j?Symbol:i,"%SyntaxError%":l,"%ThrowTypeError%":E,"%TypedArray%":P,"%TypeError%":p,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet,"%Function.prototype.call%":T,"%Function.prototype.apply%":O,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":A,"%Math.abs%":d,"%Math.floor%":m,"%Math.max%":f,"%Math.min%":h,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":y,"%Reflect.getPrototypeOf%":C};if(N)try{null.error}catch(e){var L=N(N(e));k["%Error.prototype%"]=L}var R=function e(t){var n;if("%AsyncFunction%"===t)n=x("async function () {}");else if("%GeneratorFunction%"===t)n=x("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=x("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&N&&(n=N(a.prototype))}return k[t]=n,n},F={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=n(6743),I=n(9957),M=D.call(T,Array.prototype.concat),B=D.call(O,Array.prototype.splice),U=D.call(T,String.prototype.replace),z=D.call(T,String.prototype.slice),q=D.call(T,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,H=function(e,t){var n,i=e;if(I(F,i)&&(i="%"+(n=F[i])[0]+"%"),I(k,i)){var a=k[i];if(a===$&&(a=R(i)),void 0===a&&!t)throw new p("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new p('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=z(e,0,1),n=z(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var i=[];return U(e,W,function(e,t,n,a){i[i.length]=n?U(a,V,"$1"):t||e}),i}(e),i=n.length>0?n[0]:"",a=H("%"+i+"%",t),o=a.name,r=a.value,s=!1,c=a.alias;c&&(i=c[0],B(n,M([0,1],c)));for(var u=1,d=!0;u<n.length;u+=1){var m=n[u],f=z(m,0,1),h=z(m,-1);if(('"'===f||"'"===f||"`"===f||'"'===h||"'"===h||"`"===h)&&f!==h)throw new l("property names with quotes must have matching quotes");if("constructor"!==m&&d||(s=!0),I(k,o="%"+(i+="."+m)+"%"))r=k[o];else if(null!=r){if(!(m in r)){if(!t)throw new p("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&u+1>=n.length){var g=w(r,m);r=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:r[m]}else d=I(r,m),r=r[m];d&&!s&&(k[o]=r)}}return r}},1064(e,t,n){var i=n(9612);e.exports=i.getPrototypeOf||null},8648(e){e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},3628(e,t,n){var i=n(8648),a=n(1064),o=n(7176);e.exports=i?function(e){return i(e)}:a?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return a(e)}:o?function(e){return o(e)}:null},5635(e,t,n){const{PassThrough:i}=n(2203);e.exports=e=>{e={...e};const{array:t}=e;let{encoding:n}=e;const a="buffer"===n;let o=!1;t?o=!(n||a):n=n||"utf8",a&&(n=null);const r=new i({objectMode:o});n&&r.setEncoding(n);let s=0;const c=[];return r.on("data",e=>{c.push(e),o?s=c.length:s+=e.length}),r.getBufferedValue=()=>t?c:a?Buffer.concat(c,s):c.join(""),r.getBufferedLength=()=>s,r}},4594(e,t,n){const{constants:i}=n(181),a=n(815),o=n(5635);class r extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function s(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t={maxBuffer:1/0,...t};const{maxBuffer:n}=t;let s;return await new Promise((c,l)=>{const p=e=>{e&&s.getBufferedLength()<=i.MAX_LENGTH&&(e.bufferedData=s.getBufferedValue()),l(e)};s=a(e,o(t),e=>{e?p(e):c()}),s.on("data",()=>{s.getBufferedLength()>n&&p(new r)})}),s.getBufferedValue()}e.exports=s,e.exports.default=s,e.exports.buffer=(e,t)=>s(e,{...t,encoding:"buffer"}),e.exports.array=(e,t)=>s(e,{...t,array:!0}),e.exports.MaxBufferError=r},6549(e){e.exports=Object.getOwnPropertyDescriptor},5795(e,t,n){var i=n(6549);if(i)try{i([],"length")}catch(e){i=null}e.exports=i},1283(e){e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var n={__proto__:t(e)};else n=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}),n};var t=Object.getPrototypeOf||function(e){return e.__proto__}},3735(e,t,n){var i,a,o=n(9896),r=n(9106),s=n(1995),c=n(1283),l=n(9023);function p(e,t){Object.defineProperty(e,i,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(i=Symbol.for("graceful-fs.queue"),a=Symbol.for("graceful-fs.previous")):(i="___graceful-fs.queue",a="___graceful-fs.previous");var u,d=function(){};if(l.debuglog?d=l.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!o[i]){var m=global[i]||[];p(o,m),o.close=function(e){function t(t,n){return e.call(o,t,function(e){e||g(),"function"==typeof n&&n.apply(this,arguments)})}return Object.defineProperty(t,a,{value:e}),t}(o.close),o.closeSync=function(e){function t(t){e.apply(o,arguments),g()}return Object.defineProperty(t,a,{value:e}),t}(o.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){d(o[i]),n(2613).equal(o[i].length,0)})}function f(e){r(e),e.gracefulify=f,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,i){return"function"==typeof n&&(i=n,n=null),function e(n,i,a,o){return t(n,i,function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof a&&a.apply(this,arguments):h([e,[n,i,a],t,o||Date.now(),Date.now()])})}(e,n,i)};var n=e.writeFile;e.writeFile=function(e,t,i,a){return"function"==typeof i&&(a=i,i=null),function e(t,i,a,o,r){return n(t,i,a,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):h([e,[t,i,a,o],n,r||Date.now(),Date.now()])})}(e,t,i,a)};var i=e.appendFile;i&&(e.appendFile=function(e,t,n,a){return"function"==typeof n&&(a=n,n=null),function e(t,n,a,o,r){return i(t,n,a,function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof o&&o.apply(this,arguments):h([e,[t,n,a,o],i,r||Date.now(),Date.now()])})}(e,t,n,a)});var a=e.copyFile;a&&(e.copyFile=function(e,t,n,i){return"function"==typeof n&&(i=n,n=0),function e(t,n,i,o,r){return a(t,n,i,function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof o&&o.apply(this,arguments):h([e,[t,n,i,o],a,r||Date.now(),Date.now()])})}(e,t,n,i)});var o=e.readdir;e.readdir=function(e,t,n){"function"==typeof t&&(n=t,t=null);var i=c.test(process.version)?function(e,t,n,i){return o(e,a(e,t,n,i))}:function(e,t,n,i){return o(e,t,a(e,t,n,i))};return i(e,t,n);function a(e,t,n,a){return function(o,r){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(r&&r.sort&&r.sort(),"function"==typeof n&&n.call(this,o,r)):h([i,[e,t,n],o,a||Date.now(),Date.now()])}}};var c=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var l=s(e);g=l.ReadStream,v=l.WriteStream}var p=e.ReadStream;p&&(g.prototype=Object.create(p.prototype),g.prototype.open=function(){var e=this;b(e.path,e.flags,e.mode,function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())})});var u=e.WriteStream;u&&(v.prototype=Object.create(u.prototype),v.prototype.open=function(){var e=this;b(e.path,e.flags,e.mode,function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))})}),Object.defineProperty(e,"ReadStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return v},set:function(e){v=e},enumerable:!0,configurable:!0});var d=g;Object.defineProperty(e,"FileReadStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var m=v;function g(e,t){return this instanceof g?(p.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function v(e,t){return this instanceof v?(u.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var y=e.open;function b(e,t,n,i){return"function"==typeof n&&(i=n,n=null),function e(t,n,i,a,o){return y(t,n,i,function(r,s){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof a&&a.apply(this,arguments):h([e,[t,n,i,a],r,o||Date.now(),Date.now()])})}(e,t,n,i)}return e.open=b,e}function h(e){d("ENQUEUE",e[0].name,e[1]),o[i].push(e),v()}function g(){for(var e=Date.now(),t=0;t<o[i].length;++t)o[i][t].length>2&&(o[i][t][3]=e,o[i][t][4]=e);v()}function v(){if(clearTimeout(u),u=void 0,0!==o[i].length){var e=o[i].shift(),t=e[0],n=e[1],a=e[2],r=e[3],s=e[4];if(void 0===r)d("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-r>=6e4){d("TIMEOUT",t.name,n);var c=n.pop();"function"==typeof c&&c.call(null,a)}else{var l=Date.now()-s,p=Math.max(s-r,1);l>=Math.min(1.2*p,100)?(d("RETRY",t.name,n),t.apply(null,n.concat([r]))):o[i].push(e)}void 0===u&&(u=setTimeout(v,0))}}global[i]||p(global,o[i]),e.exports=f(c(o)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched&&(e.exports=f(o),o.__patched=!0)},1995(e,t,n){var i=n(2203).Stream;e.exports=function(e){return{ReadStream:function t(n,a){if(!(this instanceof t))return new t(n,a);i.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,a=a||{};for(var r=Object.keys(a),s=0,c=r.length;s<c;s++){var l=r[s];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}null===this.fd?e.open(this.path,this.flags,this.mode,function(e,t){if(e)return o.emit("error",e),void(o.readable=!1);o.fd=t,o.emit("open",t),o._read()}):process.nextTick(function(){o._read()})},WriteStream:function t(n,a){if(!(this instanceof t))return new t(n,a);i.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var o=Object.keys(a),r=0,s=o.length;r<s;r++){var c=o[r];this[c]=a[c]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},9106(e,t,n){var i=n(9140),a=process.cwd,o=null,r=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return o||(o=a.call(process)),o};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var s=process.chdir;process.chdir=function(e){o=null,s.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s)}e.exports=function(e){function t(t){return t?function(n,i,a){return t.call(e,n,i,function(e){l(e)&&(e=null),a&&a.apply(this,arguments)})}:t}function n(t){return t?function(n,i){try{return t.call(e,n,i)}catch(e){if(!l(e))throw e}}:t}function a(t){return t?function(n,i,a,o){return t.call(e,n,i,a,function(e){l(e)&&(e=null),o&&o.apply(this,arguments)})}:t}function o(t){return t?function(n,i,a){try{return t.call(e,n,i,a)}catch(e){if(!l(e))throw e}}:t}function s(t){return t?function(n,i,a){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),a&&a.apply(this,arguments)}return"function"==typeof i&&(a=i,i=null),i?t.call(e,n,i,o):t.call(e,n,o)}:t}function c(t){return t?function(n,i){var a=i?t.call(e,n,i):t.call(e,n);return a&&(a.uid<0&&(a.uid+=4294967296),a.gid<0&&(a.gid+=4294967296)),a}:t}function l(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var p;i.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,n,a){e.open(t,i.O_WRONLY|i.O_SYMLINK,n,function(t,i){t?a&&a(t):e.fchmod(i,n,function(t){e.close(i,function(e){a&&a(t||e)})})})},e.lchmodSync=function(t,n){var a,o=e.openSync(t,i.O_WRONLY|i.O_SYMLINK,n),r=!0;try{a=e.fchmodSync(o,n),r=!1}finally{if(r)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return a}}(e),e.lutimes||function(e){i.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,n,a,o){e.open(t,i.O_SYMLINK,function(t,i){t?o&&o(t):e.futimes(i,n,a,function(t){e.close(i,function(e){o&&o(t||e)})})})},e.lutimesSync=function(t,n,a){var o,r=e.openSync(t,i.O_SYMLINK),s=!0;try{o=e.futimesSync(r,n,a),s=!1}finally{if(s)try{e.closeSync(r)}catch(e){}else e.closeSync(r)}return o}):e.futimes&&(e.lutimes=function(e,t,n,i){i&&process.nextTick(i)},e.lutimesSync=function(){})}(e),e.chown=a(e.chown),e.fchown=a(e.fchown),e.lchown=a(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=n(e.chmodSync),e.fchmodSync=n(e.fchmodSync),e.lchmodSync=n(e.lchmodSync),e.stat=s(e.stat),e.fstat=s(e.fstat),e.lstat=s(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,n,i){i&&process.nextTick(i)},e.lchownSync=function(){}),"win32"===r&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function n(n,i,a){var o=Date.now(),r=0;t(n,i,function s(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&Date.now()-o<6e4)return setTimeout(function(){e.stat(i,function(e,o){e&&"ENOENT"===e.code?t(n,i,s):a(c)})},r),void(r<100&&(r+=10));a&&a(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.rename)),e.read="function"!=typeof e.read?e.read:function(t){function n(n,i,a,o,r,s){var c;if(s&&"function"==typeof s){var l=0;c=function(p,u,d){if(p&&"EAGAIN"===p.code&&l<10)return l++,t.call(e,n,i,a,o,r,c);s.apply(this,arguments)}}return t.call(e,n,i,a,o,r,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(p=e.readSync,function(t,n,i,a,o){for(var r=0;;)try{return p.call(e,t,n,i,a,o)}catch(e){if("EAGAIN"===e.code&&r<10){r++;continue}throw e}})}},5884(e){e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(n+e),a=t.indexOf("--");return-1!==i&&(-1===a||i<a)}},4039(e,t,n){var i="undefined"!=typeof Symbol&&Symbol,a=n(1333);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&a()}},1333(e){e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var i in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},9092(e,t,n){var i=n(1333);e.exports=function(){return i()&&!!Symbol.toStringTag}},9957(e,t,n){var i=Function.prototype.call,a=Object.prototype.hasOwnProperty,o=n(6743);e.exports=o.call(i,a)},2909(e,t,n){let i;try{i=n(3735)}catch(e){i=n(9896)}const a=n(1236),{stringify:o,stripBom:r}=n(1144),s=a.fromPromise(async function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||i,o=!("throws"in t)||t.throws;let s,c=await a.fromCallback(n.readFile)(e,t);c=r(c);try{s=JSON.parse(c,t?t.reviver:null)}catch(t){if(o)throw t.message=`${e}: ${t.message}`,t;return null}return s}),c=a.fromPromise(async function(e,t,n={}){const r=n.fs||i,s=o(t,n);await a.fromCallback(r.writeFile)(e,s,n)});e.exports={readFile:s,readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||i,a=!("throws"in t)||t.throws;try{let i=n.readFileSync(e,t);return i=r(i),JSON.parse(i,t.reviver)}catch(t){if(a)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:c,writeFileSync:function(e,t,n={}){const a=n.fs||i,r=o(t,n);return a.writeFileSync(e,r,n)}}},1144(e){e.exports={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:i=null,spaces:a}={}){const o=n?t:"";return JSON.stringify(e,i,a).replace(/\n/g,t)+o},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},1514(e){e.exports=Math.abs},8968(e){e.exports=Math.floor},4459(e){e.exports=Number.isNaN||function(e){return e!=e}},6188(e){e.exports=Math.max},8002(e){e.exports=Math.min},5880(e){e.exports=Math.pow},414(e){e.exports=Math.round},3093(e,t,n){var i=n(4459);e.exports=function(e){return i(e)||0===e?e:e<0?-1:1}},7598(e,t,n){e.exports=n(1813)},6049(e,t,n){var i,a,o,r=n(7598),s=n(6928).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function p(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),n=t&&r[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!l.test(t[1]))&&"UTF-8"}t.charset=p,t.charsets={lookup:p},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var i=t.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),i=n&&t.extensions[n[1].toLowerCase()];return!(!i||!i.length)&&i[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=s("x."+e).toLowerCase().substr(1);return n&&t.types[n]||!1},t.types=Object.create(null),i=t.extensions,a=t.types,o=["nginx","apache",void 0,"iana"],Object.keys(r).forEach(function(e){var t=r[e],n=t.extensions;if(n&&n.length){i[e]=n;for(var s=0;s<n.length;s++){var c=n[s];if(a[c]){var l=o.indexOf(r[a[c]].source),p=o.indexOf(t.source);if("application/octet-stream"!==a[c]&&(l>p||l===p&&"application/"===a[c].substr(0,12)))continue}a[c]=e}}})},6585(e){var t=1e3,n=60*t,i=60*n,a=24*i,o=7*a;function r(e,t,n,i){var a=t>=1.5*n;return Math.round(e/n)+" "+i+(a?"s":"")}e.exports=function(e,s){s=s||{};var c,l,p=typeof e;if("string"===p&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var s=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return s*o;case"days":case"day":case"d":return s*a;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===p&&isFinite(e))return s.long?(c=e,(l=Math.abs(c))>=a?r(c,l,a,"day"):l>=i?r(c,l,i,"hour"):l>=n?r(c,l,n,"minute"):l>=t?r(c,l,t,"second"):c+" ms"):function(e){var o=Math.abs(e);return o>=a?Math.round(e/a)+"d":o>=i?Math.round(e/i)+"h":o>=n?Math.round(e/n)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},3519(e,t,n){var i=n(6587);function a(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=i(a),e.exports.strict=i(o),a.proto=a(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return a(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})})},1436(e){function t(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}function n(e){e.pending+=1;var t=!1;return function(a){if(t)throw new Error("callback called twice");if(t=!0,e.error=e.error||a,e.pending-=1,e.waiting.length>0&&e.pending<e.max)i(e,e.waiting.shift());else if(0===e.pending){var o=e.listeners;e.listeners=[],o.forEach(n)}};function n(t){t(e.error)}}function i(e,t){t(n(e))}e.exports=t,t.prototype.go=function(e){this.pending<this.max?i(this,e):this.waiting.push(e)},t.prototype.wait=function(e){0===this.pending?e(this.error):this.listeners.push(e)},t.prototype.hold=function(){return n(this)}},6504(e,t,n){var i=n(7016).parse,a={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},o=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function r(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}t.getProxyForUrl=function(e){var t="string"==typeof e?i(e):e||{},n=t.protocol,s=t.host,c=t.port;if("string"!=typeof s||!s||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(r("npm_config_no_proxy")||r("no_proxy")).toLowerCase();return!n||"*"!==n&&n.split(/[,\s]/).every(function(n){if(!n)return!0;var i=n.match(/^(.+):(\d+)$/),a=i?i[1]:n,r=i?parseInt(i[2]):0;return!(!r||r===t)||(/^[.*]/.test(a)?("*"===a.charAt(0)&&(a=a.slice(1)),!o.call(e,a)):e!==a)})}(s=s.replace(/:\d*$/,""),c=parseInt(c)||a[n]||0))return"";var l=r("npm_config_"+n+"_proxy")||r(n+"_proxy")||r("npm_config_proxy")||r("all_proxy");return l&&-1===l.indexOf("://")&&(l=n+"://"+l),l}},815(e,t,n){var i,a=n(3519),o=n(6611);try{i=n(9896)}catch(e){}var r=function(){},s="undefined"!=typeof process&&/^v?\.0/.test(process.version),c=function(e){return"function"==typeof e},l=function(e){e()},p=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),n=c(t[t.length-1]||r)&&t.pop()||r;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var u=t.map(function(p,d){var m=d<t.length-1;return function(e,t,n,l){l=a(l);var p=!1;e.on("close",function(){p=!0}),o(e,{readable:t,writable:n},function(e){if(e)return l(e);p=!0,l()});var u=!1;return function(t){if(!p&&!u)return u=!0,function(e){return!!s&&!!i&&(e instanceof(i.ReadStream||r)||e instanceof(i.WriteStream||r))&&c(e.close)}(e)?e.close(r):function(e){return e.setHeader&&c(e.abort)}(e)?e.abort():c(e.destroy)?e.destroy():void l(t||new Error("stream was destroyed"))}}(p,m,d>0,function(t){e||(e=t),t&&u.forEach(l),m||(u.forEach(l),n(e))})});return t.reduce(p)}},723(e){const t="[",n={to:(e,n)=>n?`${t}${n+1};${e+1}H`:`${t}${e+1}G`,move(e,n){let i="";return e<0?i+=`${t}${-e}D`:e>0&&(i+=`${t}${e}C`),n<0?i+=`${t}${-n}A`:n>0&&(i+=`${t}${n}B`),i},up:(e=1)=>`${t}${e}A`,down:(e=1)=>`${t}${e}B`,forward:(e=1)=>`${t}${e}C`,backward:(e=1)=>`${t}${e}D`,nextLine:(e=1)=>`${t}E`.repeat(e),prevLine:(e=1)=>`${t}F`.repeat(e),left:`${t}G`,hide:`${t}?25l`,show:`${t}?25h`,save:"7",restore:"8"},i={up:(e=1)=>`${t}S`.repeat(e),down:(e=1)=>`${t}T`.repeat(e)},a={screen:`${t}2J`,up:(e=1)=>`${t}1J`.repeat(e),down:(e=1)=>`${t}J`.repeat(e),line:`${t}2K`,lineEnd:`${t}K`,lineStart:`${t}1K`,lines(e){let t="";for(let i=0;i<e;i++)t+=this.line+(i<e-1?n.up():"");return e&&(t+=n.left),t}};e.exports={cursor:n,scroll:i,erase:a,beep:""}},7687(e,t,n){const i=n(857),a=n(2018),o=n(5884),{env:r}=process;let s;function c(e,t={}){return 0!==(n=function(e,{streamIsTTY:t,sniffFlags:n=!0}={}){const a=function(){if("FORCE_COLOR"in r)return"true"===r.FORCE_COLOR?1:"false"===r.FORCE_COLOR?0:0===r.FORCE_COLOR.length?1:Math.min(Number.parseInt(r.FORCE_COLOR,10),3)}();void 0!==a&&(s=a);const c=n?s:a;if(0===c)return 0;if(n){if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2}if(e&&!t&&void 0===c)return 0;const l=c||0;if("dumb"===r.TERM)return l;if("win32"===process.platform){const e=i.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(e=>e in r)||"codeship"===r.CI_NAME?1:l;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){const e=Number.parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:l}(e,{streamIsTTY:e&&e.isTTY,...t}))&&{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3};var n}o("no-color")||o("no-colors")||o("color=false")||o("color=never")?s=0:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(s=1),e.exports={supportsColor:c,stdout:c({isTTY:a.isatty(1)}),stderr:c({isTTY:a.isatty(2)})}},2787(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerAplNamespace=function(e,t){const n=e.command("apl").description("APL workspace commands");n.addHelpText("after",'\nExamples:\n $ sharedev apl list\n $ sharedev apl info AccountQuery --bind AccountObj\n $ sharedev apl pull AccountQuery\n $ sharedev apl pull --all\n $ sharedev apl diff AccountQuery --remote latest\n $ sharedev apl push AccountQuery -m "update query logic"\n'),n.command("list").description("List APL functions").action((0,i.createCommandAction)("apl","list",t,async({context:e})=>{await(0,a.aplListCommand)(e)})),n.command("info <apiName>").description("Show APL function details").option("--bind <bindingObjectApiName>","Provide binding object api name for bound functions").action((0,i.createCommandAction)("apl","info",t,async({args:e,options:t,context:n})=>{await(0,a.aplInfoCommand)(e[0],n,t)})),n.command("pull [apiName]").description("Pull APL source from remote").option("--all","Pull all APL functions").action((0,i.createCommandAction)("apl","pull",t,async({args:e,options:t,context:n})=>{await(0,a.aplPullCommand)(e[0],n,t)})),n.command("diff [apiName]").description("Compare local APL source with snapshot or remote version").option("-r, --remote <versionOrLatest>","Compare with remote version or latest").action((0,i.createCommandAction)("apl","diff",t,async({args:e,options:t,context:n})=>{await(0,a.aplDiffCommand)(e[0],n,t)})),n.command("push [apiName]").description("Push local APL source to remote with a required commit comment").requiredOption("-m, --remark <comment>","Required push comment submitted as remote commit_log; [apiName] targets one function, omit it to push all tracked local changes").option("--force","Force push only when remote version changed").action((0,i.createCommandAction)("apl","push",t,async({args:e,options:t,context:n})=>{await(0,a.aplPushCommand)(e[0],n,t)})),n.command("reset [apiName]").description("Reset local APL source to remote latest or a specific version").option("-r, --remote <versionOrLatest>","Reset to remote latest or a specific version").action((0,i.createCommandAction)("apl","reset",t,async({args:e,options:t,context:n})=>{await(0,a.aplResetCommand)(e[0],n,t)})),n.command("analyze [apiName]").description("Analyze local APL source against remote metadata").action((0,i.createCommandAction)("apl","analyze",t,async({args:e,context:t})=>{await(0,a.aplAnalyzeCommand)(e[0],t)})),n.command("compile [apiName]").description("Compile-check local APL source against remote metadata").action((0,i.createCommandAction)("apl","compile",t,async({args:e,context:t})=>{await(0,a.aplCompileCommand)(e[0],t)})),n.command("debug [apiName]").description("Debug local tracked APL source against remote metadata").option("--data-id <id>","Pass object data ID for bound-object debug runs").option("--params <name=value...>","Pass debug params once; separate entries by space or comma, e.g. --params a=1 b=2 or --params a=1,b=2").action((0,i.createCommandAction)("apl","debug",t,async({args:e,options:t,context:n})=>{await(0,a.aplDebugCommand)(e[0],n,t)})),n.command("create").description("Create a new APL function/class and write local groovy source").option("--apiname <apiName>","APL API name").option("--function-name <functionName>","APL display/function name").option("--type <type>","APL type: function | class","function").option("--namespace <namespace>","Namespace value").option("--package <packageName>","Package suffix without fx.custom.apl. prefix").option("--return-type <returnType>","Return type (required when --type function)").option("--bind <bindingObjectApiName>","Binding object API name, or NONE for unbound").option("--remark <remark>","Description (max 200 chars)").option("--template-id <templateId>","Code template id from remote template list").action((0,i.createCommandAction)("apl","create",t,async({options:e,context:t})=>{const n={...e,apiName:e.apiName??e.apiname};await(0,a.aplCreateCommand)(t,n)}))};const i=n(528),a=n(9739)},4263(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerApprovalDefNamespace=function(e,t){const n=e.command("approval-def").description("Approval definition commands");n.command("list").description("List approval definitions").action((0,i.createCommandAction)("approval-def","list",t,async({context:e})=>{await(0,a.approvalDefListCommand)(e)})),n.command("logs").description("Query approval definition logs by source workflow id").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--pageNumber <pageNumber>","Page number, default 1").option("--pageSize <pageSize>","Page size, default 1").action((0,i.createCommandAction)("approval-def","logs",t,async({options:e,context:t})=>{await(0,a.approvalDefLogsCommand)(t,e)})),n.command("detail").description("Query approval definition detail by source workflow id and workflow id").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--workflowId <workflowId>","Workflow id").action((0,i.createCommandAction)("approval-def","detail",t,async({options:e,context:t})=>{await(0,a.approvalDefDetailCommand)(t,e)})),n.command("deploy").description("Deploy approval definition").requiredOption("--workflow <workflow>","Workflow payload string").requiredOption("--rule <rule>","Rule payload string").requiredOption("--execution <execution>","Execution payload string").action((0,i.createCommandAction)("approval-def","deploy",t,async({options:e,context:t})=>{await(0,a.approvalDefDeployCommand)(t,e)})),n.command("enable").description("Enable/disable approval definition").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").requiredOption("--enable <enable>","Enable flag: true or false").action((0,i.createCommandAction)("approval-def","enable",t,async({options:e,context:t})=>{await(0,a.approvalDefEnableCommand)(t,e)})),n.command("delete").description("Delete approval definitions by source workflow ids").requiredOption("--sourceWorkflowIds <sourceWorkflowIds>","Source workflow ids, comma separated, e.g. id1,id2").action((0,i.createCommandAction)("approval-def","delete",t,async({options:e,context:t})=>{await(0,a.approvalDefDeleteCommand)(t,e)}))};const i=n(528),a=n(7663)},1012(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerCompletionCommand=function(e,t){e.command("completion").description("Generate shell completion script").option("--shell <shell>","Shell type: zsh | bash","zsh").option("--line <line>","Current input line (used internally by shell completion)").action(t=>{if(void 0!==t.line){const n=(0,i.getCompletions)(e,t.line);return void(n.length&&process.stdout.write(n.join("\n")+"\n"))}"bash"===t.shell?process.stdout.write((0,i.generateBashScript)()+"\n"):process.stdout.write((0,i.generateZshScript)()+"\n")})};const i=n(9473)},7800(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerConfigCommand=function(e,t){e.command("config").description("Update local .sharedev/settings.json values").option("-d, --domain <url>","Update enterprise domain URL").option("-c, --certificate <token>","Update enterprise certificate token").addHelpText("after","\nExamples:\n $ sharedev config --domain=https://www.fxiaoke.com\n $ sharedev config --certificate=your-token\n $ sharedev config --domain=https://www.fxiaoke.com --certificate=your-token\n").action(async(...e)=>{const n=e[e.length-1].opts();await(0,i.updateConfigCommand)(t.cwd,n)})};const i=n(7429)},2521(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerDevMetadataNamespace=function(e,t){const n=e.command("dev-metadata").description("Download development metadata");n.addHelpText("after","\nExamples:\n $ sharedev dev-metadata search Account\n $ sharedev dev-metadata info AccountObj\n $ sharedev dev-metadata download AccountObj\n $ sharedev dev-metadata download --all\n $ sharedev dev-metadata download --all --type package\n $ sharedev dev-metadata download --all --type custom\n $ sharedev dev-metadata namespace\n $ sharedev dev-metadata namespace --output ./tmp/dev-metadata\n"),n.command("search [query]").description("Search object metadata by api name or display name").action((0,i.createCommandAction)("dev-metadata","search",t,async({args:e,context:t})=>{await(0,a.objectSearchCommand)(e[0],t)})),n.command("info [apiName]").description("Show object metadata details").action((0,i.createCommandAction)("dev-metadata","info",t,async({args:e,context:t})=>{await(0,a.objectInfoCommand)(e[0],t)})),n.command("download [apiName]").description("Download object describe markdown files").option("--all","Download all object describe markdown files").option("--type <type>","Describe define type for --all: package/custom").option("--output <dir>","Output directory for object metadata files").action((0,i.createCommandAction)("dev-metadata","download",t,async({args:e,options:t,context:n})=>{await(0,a.objectDownloadCommand)(e[0],n,t)})),n.command("namespace").description("Download all namespaces from runtime metadata endpoint").option("--output <dir>","Output directory for namespace metadata file").action((0,i.createCommandAction)("dev-metadata","namespace",t,async({options:e,context:t})=>{await(0,a.namespaceDownloadCommand)(t,e)}))};const i=n(528),a=n(707)},9357(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerDocsNamespace=function(e,t){e.command("docs").description("Documentation workspace commands").command("download").description("Download APL and PWC documentation to local").action((0,i.createCommandAction)("docs","download",t,async({context:e})=>{await(0,a.docsDownloadCommand)(e)}))};const i=n(528),a=n(6347)},6592(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerNamespaces=function(e,t){(0,i.registerInitCommand)(e,t),(0,a.registerConfigCommand)(e,t),(0,o.registerAplNamespace)(e,t),(0,r.registerCompletionCommand)(e,t),(0,s.registerDocsNamespace)(e,t),(0,c.registerDevMetadataNamespace)(e,t),(0,l.registerPwcNamespace)(e,t),(0,p.registerSkillNamespace)(e,t),(0,u.registerSpecNamespace)(e,t),(0,d.registerObjectDevNamespace)(e,t),(0,m.registerTraceNamespace)(e,t),(0,f.registerOrgDevNamespace)(e,t),(0,h.registerApprovalDefNamespace)(e,t)};const i=n(212),a=n(7800),o=n(2787),r=n(1012),s=n(9357),c=n(2521),l=n(1218),p=n(5825),u=n(8805),d=n(2903),m=n(9449),f=n(3188),h=n(4263)},212(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerInitCommand=function(e,t){const n=e.command("init").description("Initialize sharedev workspace and settings");n.addHelpText("after","\nExamples:\n $ sharedev init -e my-ea -d https://example.fxiaoke.com -c my-certificate\n $ sharedev init --yes -e my-ea -p my-project -d https://example.fxiaoke.com -c my-certificate --pull-all-apl --agent codex\n $ sharedev init --yes -e my-ea -d https://example.fxiaoke.com -c my-certificate --pull-all-pwc --remote-url=https://github.com/acme/repo.git --agent cursor --force\n"),n.option("-e, --ea <enterpriseEA>","Enterprise EA").option("-p, --project-name <projectName>","Project folder name (defaults to enterprise EA)").option("-d, --domain <url>","Enterprise domain URL").option("-c, --certificate <token>","Developer certificate token").option("--pull-all-apl","With --yes: pull all APL functions; without --yes: used as multiselect default").option("--pull-all-pwc","With --yes: pull all PWC resources; without --yes: used as multiselect default").option("--agent <agentName>","With --yes: required for spec initialization; without --yes: agent is selected interactively").option("--remote-url <url>","With --yes: bind git remote directly when provided; without --yes: used as default input").option("-f, --force","Overwrite existing .sharedev/settings.json and spec target files").option("-y, --yes","Run non-interactively with provided options").action(async(...e)=>{const n=e[e.length-1].opts();await(0,i.initProjectCommand)(t,n)})};const i=n(3421)},2903(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerObjectDevNamespace=function(e,t){const n=e.command("object-dev").description("Object development workspace commands");n.addHelpText("after",'\nExamples:\n $ sharedev object-dev object pull --all\n $ sharedev object-dev object pull --custom\n $ sharedev object-dev object pull --package\n $ sharedev object-dev object pull --apiName AccountObj\n $ sharedev object-dev object create --apiName AccountObj --data "{}"\n $ sharedev object-dev object update --apiName AccountObj --data "{}"\n $ sharedev object-dev object push --apiName AccountObj --layout\n $ sharedev object-dev field create --objectApiName AccountObj --apiName name --data "{}"\n $ sharedev object-dev field update --objectApiName AccountObj --apiName name --data "{}"\n $ sharedev object-dev field push --objectApiName AccountObj --fieldApiName name\n $ sharedev object-dev layout pull --objectApiNames AccountObj,LeadsObj\n $ sharedev object-dev layout pull --objectApiName AccountObj --type detail --namespace flow\n $ sharedev object-dev layout push --objectApiName AccountObj --layoutApiName AccountObj_layout__c --type detail\n $ sharedev object-dev layout-rule pull --objectApiName AccountObj --namespace flow\n $ sharedev object-dev layout-rule push --objectApiName AccountObj --layoutRuleApiName rule_ay__c\n $ sharedev object-dev validate-rule create --apiName rule_xxx__c --data "{"describe_api_name":"AccountObj"}"\n $ sharedev object-dev validate-rule pull --apiName AccountObj\n $ sharedev object-dev validate-rule push --objectApiName AccountObj --apiName rule_xxx__c\n');const o=n.command("object").description("Object describe operations");o.command("pull").description("Pull object describe metadata via shareCli execute").option("--all","Pull all object describe metadata").option("--custom","Pull custom object describe metadata only").option("--package","Pull package object describe metadata only").option("--apiName <apiName>","Pull one object describe by apiName").action((0,i.createCommandAction)("object-dev","object.pull",t,async({options:e,context:t})=>{await(0,a.objectDevObjectPullCommand)(t,e)})),o.command("create").description("Create local object metadata xml without remote API call").option("--apiName <apiName>","Object apiName to create").option("--data <json>","Object describe data (JSON string)").action((0,i.createCommandAction)("object-dev","object.create",t,async({options:e,context:t})=>{await(0,a.objectDevObjectCreateCommand)(t,e)})),o.command("update").description("Update local object metadata xml without remote API call").option("--apiName <apiName>","Object apiName to update").option("--data <json>","Object describe data (JSON string)").action((0,i.createCommandAction)("object-dev","object.update",t,async({options:e,context:t})=>{await(0,a.objectDevObjectUpdateCommand)(t,e)})),o.command("push").description("Push object describe metadata via shareCli execute").option("--apiName <apiName>","Object apiName to push").option("--layout","Include local layout metadata when pushing object").action((0,i.createCommandAction)("object-dev","object.push",t,async({options:e,context:t})=>{await(0,a.objectDevObjectPushCommand)(t,e)}));const r=n.command("field").description("Object field operations");r.command("create").description("Create local field metadata xml without remote API call").option("--objectApiName <apiName>","Target object apiName").option("--apiName <apiName>","Target field apiName to create").option("--fieldApiName <apiName>","Alias of --apiName").option("--data <json>","Field describe data (JSON string)").action((0,i.createCommandAction)("object-dev","field.create",t,async({options:e,context:t})=>{await(0,a.objectDevFieldCreateCommand)(t,e)})),r.command("update").description("Update local field metadata xml without remote API call").option("--objectApiName <apiName>","Target object apiName").option("--apiName <apiName>","Target field apiName to update").option("--fieldApiName <apiName>","Alias of --apiName").option("--data <json>","Field describe data (JSON string)").action((0,i.createCommandAction)("object-dev","field.update",t,async({options:e,context:t})=>{await(0,a.objectDevFieldUpdateCommand)(t,e)})),r.command("push").description("Push object fields via shareCli execute").option("--objectApiName <apiName>","Target object apiName").option("--fieldApiName <apiName>","Target field apiName").action((0,i.createCommandAction)("object-dev","field.push",t,async({options:e,context:t})=>{await(0,a.objectDevFieldPushCommand)(t,e)}));const s=n.command("layout").description("Object layout operations");s.command("pull").description("Pull object layouts via shareCli execute").option("--objectApiNames <apiNames>","Pull all layouts for object apiName list, comma separated").option("--objectApiName <apiName>","Pull one layout for the object apiName").option("--layoutApiName <layoutApiName>","Layout apiName for single layout pull").option("--type <layoutType>","Layout type: detail | edit | list_layout | list (default: detail)").option("--namespace <namespace>","Layout namespace, e.g. flow").action((0,i.createCommandAction)("object-dev","layout.pull",t,async({options:e,context:t})=>{await(0,a.objectDevLayoutPullCommand)(t,e)})),s.command("push").description("Push object layouts via shareCli execute").option("--objectApiName <apiName>","Target object apiName").option("--layoutApiName <layoutApiName>","Target layout apiName").option("--type <layoutType>","Layout type for push, e.g. detail | edit | list_layout | list").action((0,i.createCommandAction)("object-dev","layout.push",t,async({options:e,context:t})=>{await(0,a.objectDevLayoutPushCommand)(t,e)}));const c=n.command("layout-rule").description("Object layout-rule operations");c.command("pull").description("Pull object layout-rules via shareCli execute").option("--objectApiName <apiName>","Target object apiName").option("--namespace <namespace>","Namespace used by QueryLayoutRuleRelatedInfo, default: flow").action((0,i.createCommandAction)("object-dev","layout-rule.pull",t,async({options:e,context:t})=>{await(0,a.objectDevLayoutRulePullCommand)(t,e)})),c.command("push").description("Push object layout-rules via shareCli execute").option("--objectApiName <apiName>","Target object apiName").option("--layoutRuleApiName <apiName>","Target layout-rule apiName").action((0,i.createCommandAction)("object-dev","layout-rule.push",t,async({options:e,context:t})=>{await(0,a.objectDevLayoutRulePushCommand)(t,e)}));const l=n.command("validate-rule").description("Object validate-rule operations");l.command("create").description("Create local validate-rule metadata xml without remote API call").option("--apiName <apiName>","Validate-rule apiName to create").option("--data <json>","Validate-rule data (JSON string), must include describe_api_name or describeApiName").action((0,i.createCommandAction)("object-dev","validate-rule.create",t,async({options:e,context:t})=>{await(0,a.objectDevValidateRuleCreateCommand)(t,e)})),l.command("pull").description("Pull object validate-rules via shareCli execute").option("--apiName <apiName>","Target object apiName").action((0,i.createCommandAction)("object-dev","validate-rule.pull",t,async({options:e,context:t})=>{await(0,a.objectDevValidateRulePullCommand)(t,e)})),l.command("push").description("Push object validate-rule via shareCli execute").option("--objectApiName <apiName>","Target object apiName").option("--apiName <apiName>","Target validate-rule apiName").action((0,i.createCommandAction)("object-dev","validate-rule.push",t,async({options:e,context:t})=>{await(0,a.objectDevValidateRulePushCommand)(t,e)}))};const i=n(528),a=n(7787)},3188(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerOrgDevNamespace=function(e,t){const n=e.command("org-dev").description("Organization development commands");n.addHelpText("after","\nExamples:\n $ sharedev org-dev user query --name 张三\n $ sharedev org-dev department query --name 销售\n"),n.command("user").description("Org user commands").command("query").description("Query users by name keyword").requiredOption("--name <name>","User name keyword").action((0,i.createCommandAction)("org-dev","user.query",t,async({options:e,context:t})=>{await(0,a.orgDevUserQueryCommand)(t,e)})),n.command("department").description("Org department commands").command("query").description("Query departments by name keyword").requiredOption("--name <name>","Department name keyword").action((0,i.createCommandAction)("org-dev","department.query",t,async({options:e,context:t})=>{await(0,a.orgDevDepartmentQueryCommand)(t,e)}))};const i=n(528),a=n(8967)},1218(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerPwcNamespace=function(e,t){const n=e.command("pwc").description("PWC workspace commands");n.addHelpText("after","\nExamples:\n $ sharedev pwc pull --apiname MyComponent --type component\n $ sharedev pwc pull --apiname MyPlugin --type plugin\n $ sharedev pwc pull --all --type component\n $ sharedev pwc push --apiname MyComponent --type component\n $ sharedev pwc push --apiname MyPlugin --type plugin\n $ sharedev pwc deploy --apiname MyComponent --type component\n $ sharedev pwc create --type component --name Demo --apiname demo__c\n"),n.command("pull").description("Pull PWC source from remote").option("--apiname <apiName>","Pull one PWC resource by apiName").option("--all","Pull all PWC resources of the specified type").requiredOption("--type <type>","PWC type: component or plugin").action((0,i.createCommandAction)("pwc","pull",t,async({options:e,context:t})=>{await(0,a.pwcPullCommand)(e.apiname,e,t)})),n.command("deploy").description("Deploy local PWC source to remote (push + build + publish)").option("--apiname <apiName>","Deploy one PWC resource by apiName").option("--path <path>","Deploy one PWC resource by local path").requiredOption("--type <type>","PWC type: component or plugin").action((0,i.createCommandAction)("pwc","deploy",t,async({options:e,context:t})=>{const n=o("deploy",e.apiname,e.path);await(0,a.pwcDeployCommand)(n,e,t)})),n.command("create").description("Create a new PWC resource and pull it into local workspace").option("--type <type>","PWC type: component or plugin").option("--name <name>","PWC name").option("--apiname <apiName>","PWC API name").option("--description <description>","Description").option("--component-type <componentType>","Component type, e.g. vue/applet").option("--client-types <clientTypes>","Component client types, comma separated: web,app").option("--scope-page-types <scopePageTypes>","Component page types, comma separated").option("--client <client>","Plugin client: web or app").option("--plugin-type <pluginType>","Plugin type value").option("--limit-obj <limitObj>","Restrict objects: true or false").option("--scope-objects <scopeObjects>","Object api names, comma separated").action((0,i.createCommandAction)("pwc","create",t,async({options:e,context:t})=>{const n={...e,apiName:e.apiName??e.apiname};await(0,a.pwcCreateCommand)(n,t)})),["init","publish","dev"].forEach(e=>{n.command(`${e} [apiName]`).description(`Placeholder for pwc ${e}`).action((0,i.createCommandAction)("pwc",e,t,async()=>{await(0,a.pwcPlaceholderCommand)(e)}))}),n.command("push").description("Push local PWC source to remote (upload files and update metadata, no build)").option("--apiname <apiName>","Push one PWC resource by apiName").option("--path <path>","Push one PWC resource by local path").requiredOption("--type <type>","PWC type: component or plugin").action((0,i.createCommandAction)("pwc","push",t,async({options:e,context:t})=>{const n=o("push",e.apiname,e.path);await(0,a.pwcPushCommand)(n,e,t)}))};const i=n(528),a=n(7363);function o(e,t,n){const i=t?.trim(),a=n?.trim();if(i&&a)throw new Error(`Invalid arguments: use either --apiname or --path for pwc ${e}, not both.`);if(!i&&!a)throw new Error(`Invalid arguments: use sharedev pwc ${e} --apiname <apiName> --type <component|plugin> (or --path <path>).`);return a??i}},5825(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerSkillNamespace=function(e,t){const n=e.command("skill").description("Skill workspace commands");n.addHelpText("after","\nExamples:\n $ sharedev skill pull ExampleSkill\n $ sharedev skill push ExampleSkill\n"),["pull","push"].forEach(e=>{n.command(`${e} [apiName]`).description(`Placeholder for skill ${e}`).action((0,i.createCommandAction)("skill",e,t,async()=>{a.loggerService.warn(`sharedev skill ${e} is not implemented yet.`)}))})};const i=n(528),a=n(3333)},8805(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerSpecNamespace=function(e,t){e.command("spec").description("Specification workspace commands").command("init").description("Initialize agent spec template").action((0,i.createCommandAction)("spec","init",t,async({context:e})=>{await(0,a.specInitCommand)(e)}))};const i=n(528),a=n(3299)},9449(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerTraceNamespace=function(e,t){e.command("trace").description("Send a trace event").requiredOption("-m, --subModule <subModule>","Trace subModule name").option("--str1 <str1>","str1 field").option("--str2 <str2>","str2 field").option("--str3 <str3>","str3 field").action((0,i.createCommandAction)("trace","send",t,({options:e})=>{if(!e.subModule?.trim())throw new Error("--subModule is required.");(0,a.sendTrace)({subModule:e.subModule.trim(),str1:e.str1,str2:e.str2,str3:e.str3}),o.loggerService.debug(`Trace sent: subModule=${e.subModule}`)}))};const i=n(528),a=n(3632),o=n(3333)},528(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createResolvedCommandContext=o,t.createCommandAction=function(e,t,n,r){return async(...s)=>{const c=s[s.length-1],l=s.slice(0,-1).filter(e=>"string"==typeof e),p=function(e){const t=e[e.length-1];return t&&"object"==typeof t&&"opts"in t?t.opts()??{}:{}}(s),u=await o(e,t,l,p,n),d=`${e} ${t}`;(0,a.traceCommand)(d,l.join(" "));const m="apl"===e&&function(e){return"pull"===e||"push"===e||"reset"===e||"compile"===e}(t);m&&i.loggerService.startLoading(function(e){return{pull:"Running APL pull",push:"Running APL push",reset:"Running APL reset",compile:"Running APL compile",list:"Running APL list",analyze:"Running APL analyze",diff:"Running APL diff",debug:"Running APL debug"}[e]??`Running APL ${e}`}(t));try{await r({args:l,options:c.opts(),context:u})}catch(t){throw"apl"===e&&i.loggerService.stopLoading(),t}}};const i=n(3333),a=n(3632);async function o(e,t,n,i,a){const o="string"==typeof i.cwd?i.cwd:a.cwd;return{...a,cwd:o,namespace:e,commandName:t,args:n,workingDir:a.workspaceRoot}}},1415(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveEntryPath=c,t.resolveSettingsSearchDir=async function(e,t){const n=await c(e,t);return n?await(0,o.pathExists)(n)&&(await(0,o.statPath)(n)).isDirectory()?n:a.default.dirname(n):t},t.findSharedevPath=l,t.findSettings=p,t.validateSettings=u,t.loadSettings=async function(e){const t=await p(e);if(!t)throw new Error(".sharedev/settings.json was not found. Create it in the current directory or a parent directory.");const n=await(0,o.readJsonFile)(t),i={certificate:"string"==typeof n.certificate?n.certificate:"",domain:"string"==typeof n.domain?n.domain:"",settingsPath:t,settingsDir:a.default.dirname(t)};return u(i),i};const a=i(n(6760)),o=n(5409),r=n(5332),s=a.default.join(".sharedev");async function c(e,t){if(e)return(0,r.toAbsolutePath)(e,t)}async function l(e){let t=a.default.resolve(e);for(;;){const e=a.default.join(t,s);if(await(0,o.pathExists)(e))return e;const n=a.default.dirname(t);if(n===t)return;t=n}}async function p(e){const t=await l(e);if(t)return a.default.join(t,"settings.json")}function u(e){if(!e.certificate?.trim())throw new Error("Missing certificate in .sharedev/settings.json.");if(!e.domain?.trim())throw new Error("Missing domain in .sharedev/settings.json.");if(!function(e){try{return new URL(e),!0}catch{return!1}}(e.domain))throw new Error("The domain in .sharedev/settings.json is not a valid URL.");if(!e.settingsDir||!e.settingsPath)throw new Error("Incomplete settings path information.")}},810(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createCliRuntimeContext=async function(e){const t=process.cwd(),n=await(0,i.resolveSettingsSearchDir)(void 0,t),r=await(0,i.loadSettings)(n);return a.loggerService.debug(`settingsPath=${r.settingsPath}`),a.loggerService.debug(`domain=${r.domain}`),a.loggerService.debug(`certificate=${(0,o.maskCertificate)(r.certificate)}`),{cwd:t,verbose:!1,settings:r,workspaceRoot:r.settingsDir}};const i=n(1415),a=n(3333),o=n(5332)},654(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setRuntimeDebugEnabled=function(e){globalThis.__SHAREDEV_DEBUG_RUNTIME_ENABLED__=e},t.isRuntimeDebugEnabled=function(){return function(){if("boolean"==typeof globalThis.__SHAREDEV_DEBUG_RUNTIME_ENABLED__)return globalThis.__SHAREDEV_DEBUG_RUNTIME_ENABLED__}()||!1},t.writeDebug=async function(e){try{const t=await async function(e){const t=(new Date).toISOString().replace(/[:.]/g,"-"),n=(e||"unknown-command").replace(/[^a-zA-Z0-9._-]/g,"_"),i=await async function(){const e=await(0,r.findSharedevPath)(process.cwd());return e?a.default.join(e,"debug"):a.default.join(process.cwd(),".sharedev","debug")}();return a.default.join(i,`debug-${t}-${n}.json`)}(e.command);await(0,s.writeJsonFile)(t,e),o.loggerService.info(`Debug record written to ${t}`)}catch(e){o.loggerService.debug(`Failed to write debug record: ${e.message}`)}};const a=i(n(6760)),o=n(3333),r=n(1415),s=n(5409)},1889(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.download=async function(e,t,n={}){const o=n.concurrency??4,s=n.delayMs??0,c=[],l=[];let p=0,u=0,d=0,m=0;const f=i.loggerService.startDownload(e),h=Math.max(1,Math.min(o,t.length||1));return await Promise.all(new Array(h).fill(0).map(()=>(async()=>{for(;;){const e=m;if(m+=1,e>=t.length)return;const n=t[e],i=f.createProgress(n.fileName);i.update(0,1);const o=a(i);try{s>0&&await r(s);const e=await n.download(o);c.push(e),p+=1,i.update(1,1)}catch(e){u+=1;const t=e instanceof Error?e.message:String(e);l.push({fileName:n.fileName,message:t}),i.fail(t)}finally{d+=1}}})())),f.complete(),{succeeded:p,failed:u,failures:l,values:c}};const i=n(3333);function a(e){return{update:(t,n)=>{e.update(t,n)},downloadByUrl:async t=>async function(e,t){const n=await fetch(e);if(!n.ok)throw new Error(`Failed to download ${e}: ${n.status} ${n.statusText}`);if(!n.body)throw new Error(`Failed to download ${e}: empty response body.`);const i=n.body.getReader(),a=Number(n.headers.get("content-length")??0)||void 0;let r=0;const s=[];for(o(t,r,a);;){const{done:e,value:n}=await i.read();if(e)break;n&&(r+=n.byteLength,s.push(n),o(t,r,a))}return o(t,r,a),Buffer.concat(s.map(e=>Buffer.from(e)))}(t,(t,n)=>{e.update(t,n)})}}function o(e,t,n){e&&e(t,n)}function r(e){return new Promise(t=>setTimeout(t,e))}},3333(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.loggerService=void 0,t.withPrefix=s,t.prefix=function(e){return s(e,r)};const a=i(n(6194)),o=i(n(9742)),r="[sharedev]";function s(e,t){return e.startsWith(t)?e:`${t} ${e}`}class c{constructor(){this.verboseEnabled=!1,this.spinnerState={mode:"ora",textActive:!1},this.downloadProgressMap=new Map,this.downloadReporterSeq=0}createLoadingSpinner(e){return(0,o.default)({text:s(e,r),stream:process.stderr}).start()}formatLoadingMessage(e,t){const n=e??"",i=n.includes("\n"),a=t??(i?"Executeing":void 0);return a?`${a}\n${n}`:n}stopSpinnerSilent(){const e=this.spinnerState;e.spinner&&(e.spinner.stop(),e.spinner=void 0),e.textActive=!1}ensureSpinnerStoppedBeforeOutput(){(this.spinnerState.spinner||this.spinnerState.textActive)&&this.stopSpinnerSilent()}formatBytes(e){if(!Number.isFinite(e)||e<=0)return"0 B";const t=["B","KB","MB","GB"];let n=e,i=0;for(;n>=1024&&i<t.length-1;)n/=1024,i+=1;return`${n.toFixed(0===i?0:1)} ${t[i]}`}formatDownloadProgress(e,t){if((t??0)>0){const n=t,i=Math.max(0,Math.min(1,e/n)),a=Math.floor(100*i),o=Math.floor(i*c.DOWNLOAD_BAR_WIDTH);return`[${new Array(Math.max(0,o-1)).fill("=").join("")+">"}${new Array(c.DOWNLOAD_BAR_WIDTH-o).fill(" ").join("")}] ${a}% (${this.formatBytes(e)}/${this.formatBytes(n)})`}return`${this.formatBytes(e)} downloaded`}normalizeErrorMessage(e){return e.replace(/\s+/g," ").trim()}normalizeCell(e){return"string"==typeof e?e.replace(/[\r\n\t]+/g," ").trim():"number"==typeof e&&Number.isFinite(e)?String(e):null==e?"":String(e).replace(/[\r\n\t]+/g," ").trim()}isFullWidth(e){const t=e.codePointAt(0)??0;return t>=4352&&t<=4447||t>=11904&&t<=42191||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510}displayWidth(e){let t=0;for(const n of e)t+=this.isFullWidth(n)?2:1;return t}padVisual(e,t){const n=this.displayWidth(e);return n>=t?e:e+" ".repeat(t-n)}printTable(e,t){if(this.ensureSpinnerStoppedBeforeOutput(),!e.length)return;const n=e.map(e=>this.normalizeCell(e)),i=t.map(e=>n.map((t,n)=>this.normalizeCell(e[n]))),a=n.map((e,t)=>Math.max(e.length,...i.map(e=>this.displayWidth(e[t])))),o=[];o.push(n.map((e,t)=>this.padVisual(e,a[t])).join(" ")),o.push(a.map(e=>"-".repeat(e)).join(" "));for(const e of i)o.push(e.map((e,t)=>this.padVisual(e,a[t])).join(" "));process.stdout.write(`${o.join("\n")}\n`)}renderDownloadProgress(){if(0===this.downloadProgressMap.size)return void(this.downloadProgressTitle=void 0);const e=[...this.downloadProgressMap.values()].map(e=>e.errorMessage?`${e.taskName} ${a.default.red("[FAILED]")} ${a.default.red(this.normalizeErrorMessage(e.errorMessage))}`:`${e.taskName} ${this.formatDownloadProgress(e.downloadedBytes,e.totalBytes)}`);this.updateLoading(e.join("\n"),this.downloadProgressTitle)}createDownloadProgress(e,t=200){const n="number"==typeof t?{intervalMs:t}:t,i=n.intervalMs??200;n.title&&(this.downloadProgressTitle=n.title);const a=`${e}-${Date.now()}-${Math.random().toString(16).slice(2)}`;return this.downloadProgressMap.set(a,{taskName:e,downloadedBytes:0,totalBytes:void 0,lastEmittedAt:0,intervalMs:i}),{update:(e,t)=>{const n=this.downloadProgressMap.get(a);if(!n)return;const i=Date.now(),o=0===n.lastEmittedAt||i-n.lastEmittedAt>=n.intervalMs||(t??0)>0&&e>=t;n.downloadedBytes=e,n.totalBytes=t,n.errorMessage=void 0,o&&(n.lastEmittedAt=i,this.downloadProgressMap.set(a,n),this.renderDownloadProgress())},fail:e=>{const t=this.downloadProgressMap.get(a);t&&(t.errorMessage=e,t.lastEmittedAt=Date.now(),this.downloadProgressMap.set(a,t),this.renderDownloadProgress())},finish:()=>{this.downloadProgressMap.delete(a),this.renderDownloadProgress()}}}startDownload(e){const t=++this.downloadReporterSeq,n=new Map;return this.stopLoading(),this.activeDownloadReporterId=t,this.downloadProgressMap.clear(),this.downloadProgressTitle=e,{createProgress:(t,i=200)=>{const a="number"==typeof i?{intervalMs:i,title:e}:{...i,title:e},o=this.createDownloadProgress(t,a);return{update:o.update,fail:e=>{n.set(t,this.normalizeErrorMessage(e)),o.fail(e)},finish:o.finish}},complete:()=>{if(this.activeDownloadReporterId===t){if(this.stopLoading(),n.size>0){this.warn(`Download completed with ${n.size} failed item(s):`);for(const[e,t]of n.entries())this.warn(`${e}: ${t}`)}this.activeDownloadReporterId=void 0}}}}startLoading(e,t){const n=this.formatLoadingMessage(e,t),i=this.spinnerState.mode;if("off"!==i)return"text"===i?(this.ensureSpinnerStoppedBeforeOutput(),this.spinnerState.textActive=!0,void console.error(a.default.blue(s(n,r)))):void(this.spinnerState.spinner?(this.spinnerState.spinner.text=s(n,r),this.spinnerState.spinner.start()):this.spinnerState.spinner=this.createLoadingSpinner(n));this.ensureSpinnerStoppedBeforeOutput()}updateLoading(e,t){const n=this.formatLoadingMessage(e,t),i=this.spinnerState.mode;if("off"!==i)if("text"!==i)this.spinnerState.spinner?this.spinnerState.spinner.text=s(n,r):this.startLoading(e,t);else{if(!this.spinnerState.textActive)return;console.error(a.default.blue(s(n,r)))}}succeedLoading(e){const t=this.spinnerState.mode;this.downloadProgressMap.clear(),this.downloadProgressTitle=void 0,"off"!==t&&("text"!==t?this.spinnerState.spinner&&(e?this.spinnerState.spinner.succeed(a.default.green(s(e,r))):this.spinnerState.spinner.succeed(),this.spinnerState.spinner=void 0):this.stopSpinnerSilent())}failLoading(e){const t=this.spinnerState.mode;this.downloadProgressMap.clear(),this.downloadProgressTitle=void 0,"off"!==t&&("text"!==t?this.spinnerState.spinner&&(e?this.spinnerState.spinner.fail(a.default.red(s(e,r))):this.spinnerState.spinner.fail(),this.spinnerState.spinner=void 0):this.stopSpinnerSilent())}stopLoading(){this.downloadProgressMap.clear(),this.downloadProgressTitle=void 0,this.stopSpinnerSilent()}info(e){this.ensureSpinnerStoppedBeforeOutput(),console.log(a.default.blue(s(e,r)))}success(e){this.ensureSpinnerStoppedBeforeOutput(),console.log(a.default.green(s(e,r)))}warn(e){this.ensureSpinnerStoppedBeforeOutput(),console.warn(a.default.yellow(s(e,r)))}error(e){this.ensureSpinnerStoppedBeforeOutput(),console.error(a.default.red(s(e,r)))}debug(e){this.verboseEnabled&&(this.ensureSpinnerStoppedBeforeOutput(),console.log(a.default.gray(`[sharedev:debug] ${e}`)))}printJson(e){this.ensureSpinnerStoppedBeforeOutput(),console.log(JSON.stringify(e,null,2))}printRaw(e){this.ensureSpinnerStoppedBeforeOutput(),process.stdout.write(e)}}c.DOWNLOAD_BAR_WIDTH=20,t.loggerService=new c},2351(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getShareCliCommandPath=function(e,t){return[...n[e][t]]};const n={objectDev:{queryDescribeManageList:["object-dev","object","QueryDescribeManageList"],queryDescribeListByApiName:["object-dev","object","QueryDescribeListByApiName"],createObjectDescribe:["object-dev","object","CreateObjectDescribe"],updateObjectDescribe:["object-dev","object","UpdateObjectDescribe"],addDescribeCustomField:["object-dev","field","AddDescribeCustomField"],updateCustomFieldDescribe:["object-dev","field","UpdateCustomFieldDescribe"],queryLayoutByObjDescribeApiName:["object-dev","layout","QueryLayoutByObjDescribeApiName"],createViewLayout:["object-dev","layout","CreateViewLayout"],updateViewLayout:["object-dev","layout","UpdateViewLayout"],createDesignerLayout:["object-dev","layout","CreateDesignerLayout"],updateDesignerLayout:["object-dev","layout","UpdateDesignerLayout"],queryLayoutRuleRelatedInfo:["object-dev","layout-rule","QueryLayoutRuleRelatedInfo"],queryLayoutRuleInfo:["object-dev","layout-rule","QueryLayoutRuleInfo"],createLayoutRule:["object-dev","layout-rule","CreateLayoutRule"],updateLayoutRule:["object-dev","layout-rule","UpdateLayoutRule"],queryValidateRuleList:["object-dev","validate-rule","list"],createValidateRule:["object-dev","validate-rule","create"],updateValidateRule:["object-dev","validate-rule","update"]},orgDev:{userQuery:["QueryRecordIdByName"],departmentQuery:["QueryRecordIdByName"]},approvalDef:{list:["ApprovalDefList"],logs:["ApprovalDefLogs"],detail:["ApprovalDefDetail"],deploy:["ApprovalDefDeploy"],enable:["ApprovalDefEnable"],delete:["ApprovalDefDelete"]}}},8554(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.executeShareCliCommand=async function(e,t,n){(0,a.traceExecute)(e.join(" "));const o={commandPath:e,data:t??{},...n};return i.requestService.FHH({url:"/EM1HActionCentre/shareCli/execute",data:o})};const i=n(2088),a=n(3632)},2088(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.requestService=void 0;const a=i(n(9329)),o=n(3333),r=n(3632),s=n(654),c=n(5016),l=n(654);function p(e){return!e?.__sharedevNoDebug&&(0,l.isRuntimeDebugEnabled)()}function u(e){const t=e.data,n=t?.commandPath;if(Array.isArray(n)){const e=n.filter(e=>"string"==typeof e).join(" ");if(e)return e}return`${(e.method??"GET").toString().toUpperCase()} ${e.url??""}`.trim()}function d(e){const t=(e.baseURL??"").replace(/\/+$/,""),n=(e.url??"").toString();return t?/^https?:\/\//i.test(n)?n:`${t}${n.startsWith("/")?"":"/"}${n}`:n}async function m(){const{version:e}=await(0,c.readCliPackageMeta)();return e||"0.0.0"}t.requestService=new class{configure(e){this.settings=e,(0,r.setTraceHost)(e.domain),this.axiosInstance=a.default.create({baseURL:e.domain,timeout:3e4,headers:{Authorization:e.certificate}}),this.axiosInstance.interceptors.request.use(e=>{o.loggerService.debug(`request ${e.method?.toUpperCase()??"GET"} ${e.baseURL??""}${e.url??""}`);const t=e,n=`E-E.cli-sharedev-${Date.now()}-${Math.random().toString(36).slice(2,8)}`;return t.__sharedevTraceMeta={fullUrl:d(e),command:u(e),method:(e.method??"GET").toString().toUpperCase(),cliCommandRaw:process.argv.join(" "),noTrace:!!t.__sharedevNoTrace||!!t.__sharedevSkipInterceptor,requestSnapshot:{params:{...e.params,traceId:n},data:e.data,headers:e.headers}},t.__sharedevSkipInterceptor||(e.params={...e.params??{},traceId:n}),e}),this.axiosInstance.interceptors.response.use(async e=>{const t=e.data,n=t?.Result?.UserInfo;n&&(0,r.setTraceIdentity)(n.EnterpriseAccount,String(n.EmployeeID));const i=e.config,a=i.__sharedevTraceMeta;return a&&(a.noTrace||(0,r.traceService)(a.fullUrl),p(i)&&(0,s.writeDebug)({command:a.command,cliCommandRaw:a.cliCommandRaw,version:await m(),url:a.fullUrl,method:a.method,request:a.requestSnapshot,response:e.data,status:e.status,success:!0,timestamp:(new Date).toISOString()})),e},async e=>{const t=e.response?.status?`Request failed: ${e.response.status} ${e.response.statusText}`:e.message;o.loggerService.debug(t);const n=e.config,i=n?.__sharedevTraceMeta;return i&&(i.noTrace||(0,r.traceService)(i.fullUrl),p(n)&&(0,s.writeDebug)({command:i.command,cliCommandRaw:i.cliCommandRaw,version:await m(),url:i.fullUrl,method:i.method,request:i.requestSnapshot,response:e.response?.data??{message:e.message},status:e.response?.status,success:!1,timestamp:(new Date).toISOString()})),Promise.reject(e)})}get instance(){if(!this.axiosInstance||!this.settings)throw new Error("requestService is not initialized.");return this.axiosInstance}async request(e,t){const n=e,i=n.url??"";return n.url=i.replace(/EM\dH/,"EMDH"),n.__sharedevNoDebug=!!t?.noDebug,n.__sharedevSkipInterceptor=!!t?.skipInterceptor,n.__sharedevNoTrace=!!t?.noTrace,(await this.instance.request(n)).data}async get(e,t,n){return this.request({...t,method:"GET",url:e},n)}async post(e,t,n,i){return this.request({...n,method:"POST",url:e,data:t},i)}async FHH(e,t){const n=e.url?.startsWith("/FHH")?e.url:`/FHH${e.url??""}`,i=await this.request({...e,method:"POST",url:n},t);if(0!==i.Result.StatusCode)throw new Error(i.Result.FailureMessage||i.Error?.Message||"The server returned an error.");return i.Value??i}}},3632(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setTraceHost=function(e){try{u=new URL(e).host}catch{u=""}},t.setTraceIdentity=function(e,t){c||(c={ea:e,uid:t})},t.sendTrace=f,t.traceCommand=function(e,t){f({subModule:"cli-command",str1:e,str2:t})},t.traceService=function(e){f({subModule:"cli-service",str1:e})},t.traceExecute=function(e){f({subModule:"cli-execute",str1:e})},t.traceSkill=function(e){f({subModule:"skill",str1:e})};const a=i(n(8161)),o=n(3333),r=n(2088),s=n(5016);let c,l,p,u="";function d(){const e=a.default.platform();return"darwin"===e?"mac":"win32"===e?"windows":e}async function m(){if(p)return p;const e=await async function(){const e=(await(0,s.readCliPackageMeta)()).version;return"string"==typeof e&&e.trim()?e.trim():"0.0.0"}();return p=`sharedev-cli/${e} (${a.default.platform()}; ${a.default.arch()}; Node/${process.version})`,p}function f(e){(async function(){c||(l||(l=async function(){try{await r.requestService.FHH({url:"/EM1HFUNC/biz/query",data:{pageSize:1,pageNumber:1}},{noDebug:!0,noTrace:!0})}catch{o.loggerService.debug("Failed to fetch trace identity")}}()),await l)})().then(()=>async function(e){const t=c??{ea:"",uid:""},n={plat:"pc",os:d(),host:u,bw:"",osVersion:"",source:"",theme:"default",userAgent:await m(),customDatas:[{biz:"paasdev",eventId:`sharedev_${e.subModule}`,eventType:"ACTION",eventName:"pv",module:"sharedev",subModule:e.subModule,ea:t.ea,uid:t.uid,str1:e.str1??"",str2:e.str2??"",str3:e.str3??"",eventTime:Date.now()}]},i=`https://dcx.fxiaoke.com/web/log/get/1.gif?data=${encodeURIComponent(JSON.stringify(n))}`;try{await r.requestService.get(i,void 0,{noDebug:!0,skipInterceptor:!0,noTrace:!0})}catch{o.loggerService.debug("Trace send failed")}}(e)).catch(()=>{o.loggerService.debug("Trace send failed")})}},9739(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.aplListCommand=async function(e){a.loggerService.startLoading("Fetching APL function list");const t=(await(0,r.getFuncList)()).filter(e=>0===e.lang&&!e.is_control);a.loggerService.stopLoading(),a.loggerService.info(`Fetched ${t.length} APL functions.`),a.loggerService.printJson(t.map(e=>({apiName:e.api_name,functionName:e.function_name,packageName:e.package_name,version:e.version})))},t.aplInfoCommand=async function(e,t,n={}){if(!e?.trim())throw new Error("Invalid arguments: use sharedev apl info <apiName>.");const i=e.trim(),o=n.bind?.trim()??"";a.loggerService.startLoading(`Fetching APL function details for ${i}`);try{const e=await(0,r.findFuncByApiName)(i,o);if(!e)throw new Error(`APL function not found: ${i}.`);a.loggerService.stopLoading(),a.loggerService.printRaw(function(e){return`${[l(e),p(e.parameters)].join("\n\n")}\n`}(e))}catch(e){throw a.loggerService.stopLoading(),e}},t.aplCreateCommand=async function(e,t={}){a.loggerService.startLoading("Preparing APL create");try{a.loggerService.updateLoading("Loading namespace and object metadata");const[n,o]=await Promise.all([(0,r.getAplNamespaceOptions)(),(0,r.getAplBindingObjectApiNames)()]),c=await async function(e,t,n,o){const r=process.stdin.isTTY&&process.stdout.isTTY,s=e.type?.trim().toLowerCase();let c="class"===s?"class":"function"!==s&&s?"":"function";if(!c&&r&&(c=await async function(){const e=await(0,i.select)({message:"Select APL type",options:[{value:"function",label:"APL Function"},{value:"class",label:"APL Class"}]});if((0,i.isCancel)(e))throw new Error("APL create cancelled.");return e}()),!c)throw new Error("Invalid --type value. Allowed values: function, class.");const l=t.filter(e=>!e.type||e.type===c);if(!l.length)throw new Error(`No namespace available for type ${c}.`);const p=await h(e.functionName,"--function-name","Enter APL function name",r,e=>e.length>40?"--function-name cannot exceed 40 characters.":void 0),u=await async function(e,t,n){const a=e?.trim()??"";if(a)return a;if(!n)throw new Error("Missing required option --namespace.");const o=await(0,i.select)({message:"Select namespace",options:t.map(e=>({value:e.value,label:`${e.label} (${e.value})`}))});if((0,i.isCancel)(o))throw new Error("APL create cancelled.");return o}(e.namespace,l,r),d=await h(e.package,"--package","Enter package name suffix (without fx.custom.apl.)",r,y),m=await h(e.apiName,"--apiname","Enter APL API name",r,e=>function(e,t){try{return void b(e,t)}catch(e){return e instanceof Error?e.message:String(e)}}(e,c)),f=await h(e.remark,"--remark","Enter APL description",r,e=>e.length>200?"--remark cannot exceed 200 characters.":void 0),v=x(l,u,c);if(!v)throw new Error(`Invalid namespace ${JSON.stringify(u)} for type ${c}.`);const _="class"===c?void 0:await async function(e,t,n,a){const o=e?.trim()??"";if(o)return o;if(!a)throw new Error("Missing --return-type for function type.");const r=w([...(t.returnTypes??[]).map(e=>e.value),...n.map(e=>e.value)]);if(!r.length)throw new Error("No return type options available for selected namespace. Please pass --return-type explicitly.");const s=await(0,i.select)({message:"Select return type",options:r.map(e=>({value:e,label:e}))});if((0,i.isCancel)(s))throw new Error("APL create cancelled.");return s}(e.returnType,v,n,r),S=await async function(e,t,n,o){const r=e?.trim()??"";if(r)return r;if(0===t.bindObject)return"NONE";if(!o)throw new Error("Missing required option --bind.");if(2===t.bindObject){const e=await(0,i.select)({message:"Select binding mode",options:[{value:"NONE",label:"Unbound (NONE)"},{value:"BOUND",label:"Bind object API name"}]});if((0,i.isCancel)(e))throw new Error("APL create cancelled.");if("NONE"===e)return"NONE"}for(;;){const e=await g("Enter binding object API name");if(e){if(!n.length||n.includes(e))return e;a.loggerService.warn(`Invalid --bind value ${JSON.stringify(e)}: object api name does not exist.`)}else a.loggerService.warn("Missing required option --bind.")}}(e.bind,v,o,r);return{apiName:m,functionName:p,type:c,namespace:u,packageName:d,returnType:_,bind:S,remark:f,templateId:e.templateId?.trim()||void 0}}(t,n.namespaces,n.returnTypes,o);v(c.packageName),b(c.apiName,c.type);const l=x(n.namespaces,c.namespace,c.type);if(!l)throw new Error(`Invalid --namespace value ${JSON.stringify(c.namespace)} for type ${c.type}. Use sharedev dev-metadata namespace to inspect available namespaces.`);!function(e,t,n){const i="NONE"===e;if(0===t.bindObject&&!i)throw new Error(`Namespace ${t.value} does not allow bound objects. Use --bind NONE.`);if(1===t.bindObject&&i)throw new Error(`Namespace ${t.value} requires a bound object. --bind NONE is not allowed.`);if(!i&&!n.includes(e))throw new Error(`Invalid --bind value ${JSON.stringify(e)}: object api name does not exist.`)}(c.bind,l,o);const p=function(e,t,n,i){if("class"===i)return;const a=w([...(t.returnTypes??[]).map(e=>e.value),...n.map(e=>e.value)]),o=e?.trim();if(!o)throw new Error("Missing --return-type for function type.");if(a.length&&!a.includes(o))throw new Error(`Invalid --return-type value ${JSON.stringify(o)}. Allowed values: ${a.join(", ")}`);return o}(c.returnType,l,n.returnTypes,c.type);a.loggerService.updateLoading("Generating template source");const u=await(0,r.createAplTemplate)({namespace:c.namespace,type:c.type,apiName:c.apiName,functionName:c.functionName,returnType:p,remark:c.remark,templateId:c.templateId}),d={api_name:c.apiName,binding_object_api_name:c.bind,function_name:c.functionName,package_name:`fx.custom.apl.${c.packageName}`,body:u,type:c.type,lang:0,remark:c.remark,return_type:p,status:"not_used",is_active:!0,name_space:c.namespace};a.loggerService.updateLoading("Creating APL function on remote");const m=await(0,r.createFuncSource)(d);a.loggerService.updateLoading("Writing local source file");const f=await(0,s.writeAplFunction)(e,m);await(0,s.writeAplSnapshot)(e,m),a.loggerService.stopLoading(),a.loggerService.success(`Created APL function ${m.api_name} successfully.`),a.loggerService.info(`Local groovy file: ${f}`)}catch(e){throw a.loggerService.stopLoading(),e}},t.aplPullCommand=async function(e,t,n={}){a.loggerService.startLoading("Preparing APL pull");const i=Boolean(n.all);if(i&&e)throw new Error("Invalid arguments: do not pass apiName when using --all.");if(!i&&!e)throw new Error("Invalid arguments: use sharedev apl pull <apiName> or sharedev apl pull --all.");if(i){a.loggerService.updateLoading("Fetching pullable APL functions");const e=(await(0,r.getFuncList)()).filter(e=>0===e.lang&&!e.is_control).map(e=>e.api_name).filter(Boolean);a.loggerService.updateLoading("Fetching APL function details");const n=await(0,r.findFuncByApiNames)(e),i=new Map(n.map(e=>[e.api_name,e])),o=e.filter(e=>!i.has(e));o.length&&(a.loggerService.warn(`${o.length} functions did not return details and will be skipped.`),a.loggerService.debug(`Missing detail apiNames: ${o.join(", ")}`));const c=e.map(e=>i.get(e)).filter(e=>Boolean(e));if(!c.length)throw new Error("No APL function details were returned. Nothing can be written.");return a.loggerService.updateLoading("Writing APL function files and snapshots"),await(0,s.writeAplFunctions)(t,c),await(0,s.writeAplSnapshot)(t,c),void a.loggerService.success(`Pulled APL functions: target=${e.length}, written=${c.length}, missing=${o.length}.`)}const o=await(0,r.findFuncByApiName)(e);a.loggerService.updateLoading(`Writing APL function ${e}`);const c=await(0,s.writeAplFunction)(t,o);await(0,s.writeAplSnapshot)(t,o),a.loggerService.success(`Pulled APL function ${e} to ${c}`)},t.aplDiffCommand=async function(e,t,n={}){const i=await(0,s.resolveAplTarget)(t,e);a.loggerService.startLoading(`Preparing APL diff for ${i.apiName}`);const c=i.snapshot;if(!c)throw new Error(`Missing snapshot record for APL function ${i.apiName}. Run sharedev apl pull ${i.apiName} first.`);let l=c.body,p=`snapshot@${c.version}`,u=c.version;if(n.remote)if("latest"===n.remote){const e=await(0,r.findFuncLatestByApiName)(i.apiName,c.bindingObjectApiName);l=e.body??"",p=`remote@latest(v${e.version})`,u=e.version}else{const e=Number(n.remote);if(!Number.isInteger(e)||e<=0)throw new Error("--remote only supports latest or a positive integer version.");const t=await(0,r.findFuncVersionByApiName)(i.apiName,e,c.bindingObjectApiName);l=t.func.body??"",u=t.actualVersion,p=t.fallbackToLatest?`remote@latest(v${t.actualVersion}) [requested v${e} not found]`:`remote@v${t.actualVersion}`}const d=(0,o.createLineDiff)(l,i.localBody,{oldFileName:`${i.apiName}.groovy`,newFileName:`${i.apiName}.groovy`,oldHeader:p,newHeader:"local",oldGitPath:`${i.apiName}.groovy`,newGitPath:`${i.apiName}.groovy`}),m=(0,o.summarizeDiff)(d);if(!m.changed)return a.loggerService.stopLoading(),void a.loggerService.success(`No changes for APL function ${i.apiName} (baseline: ${p}).`);a.loggerService.stopLoading(),a.loggerService.info(`APL diff ${i.apiName}: baseline=${p}, localVersion=${c.version}, compareVersion=${u}, +${m.additions} -${m.deletions}`),a.loggerService.printRaw((0,o.renderUnifiedDiff)(d))},t.aplPushCommand=async function(e,t,n={}){const i=n.remark?.trim();if(!i)throw new Error("Invalid arguments: apl push requires a non-empty --remark <comment>. This value will be submitted as the remote commit_log.");const o=e?[await(0,s.resolveAplTarget)(t,e)]:await(0,s.collectChangedAplTargets)(t);if(!o.length)return a.loggerService.stopLoading(),void a.loggerService.info("No local APL changes found to submit.");const c={success:0,skipped:0,conflict:0,failed:0};for(const e of o){const o=e.snapshot,l=e.metadata;if(o&&l)if(e.localBody!==o.body)try{a.loggerService.updateLoading(`Conflict check (1/4) ${e.apiName}`);const l=await(0,r.checkRemoteVersionConflict)(e.apiName,o.version,o.bindingObjectApiName);if(l.conflict&&!n.force){c.conflict+=1,a.loggerService.warn(`Skipped ${e.apiName}: remote version changed from v${o.version} to v${l.remote?.version??"unknown"}. Use --force to override.`);continue}const p=l.remote??await(0,r.findFuncLatestByApiName)(e.apiName,o.bindingObjectApiName),u=_(e,p,"push",i);a.loggerService.updateLoading(`analyze (2/4) ${e.apiName}`),await(0,r.analyzeFuncSource)(u),a.loggerService.updateLoading(`compile (3/4) ${e.apiName}`),await E(e,"push",{remoteBase:p,payload:u}),a.loggerService.updateLoading(`submit (4/4) ${e.apiName}`);const d=await(0,r.pushFuncSource)(u);await(0,s.writeAplSnapshot)(t,d),await(0,s.writeAplFunction)(t,d),c.success+=1,a.loggerService.success(`Submitted APL function ${e.apiName}. Latest version: v${d.version}.`)}catch(t){c.failed+=1;const n=t instanceof Error?t.message:String(t);a.loggerService.error(`Failed to submit ${e.apiName}: \n${n}`)}else c.skipped+=1,a.loggerService.info(`Skipped ${e.apiName}: no local changes.`);else c.failed+=1,a.loggerService.error(`Missing tracked metadata for APL function ${e.apiName}. Run pull again first.`)}a.loggerService.info(`APL push completed: success=${c.success}, skipped=${c.skipped}, conflict=${c.conflict}, failed=${c.failed}`)},t.aplResetCommand=async function(e,t,n={}){const i=await(0,s.resolveAplTarget)(t,e);a.loggerService.updateLoading(`Preparing to reset APL function ${i.apiName}`);const o=i.snapshot;if(!o)throw new Error(`Missing snapshot record for APL function ${i.apiName}. Run sharedev apl pull ${i.apiName} first.`);let c,l;if(n.remote&&"latest"!==n.remote){const e=Number(n.remote);if(!Number.isInteger(e)||e<=0)throw new Error("--remote only supports latest or a positive integer version.");c=await(0,r.findStrictFuncVersionByApiName)(i.apiName,e,o.bindingObjectApiName),l=`v${c.version}`}else c=await(0,r.findFuncLatestByApiName)(i.apiName,o.bindingObjectApiName),l=`latest(v${c.version})`;const p=await(0,s.writeAplFunction)(t,c);await(0,s.writeAplSnapshot)(t,c),a.loggerService.success(`Reset APL function ${i.apiName} to remote ${l}. Updated file: ${p}`)},t.aplAnalyzeCommand=async function(e,t){const n=await(0,s.resolveAplTarget)(t,e);a.loggerService.startLoading(`Analyzing APL function ${n.apiName}`);const i=_(n,await S(n),"analyze"),o=await(0,r.analyzeFuncSource)(i);a.loggerService.stopLoading(),a.loggerService.success(`APL function ${n.apiName} passed analysis.`),a.loggerService.printJson(o)},t.aplCompileCommand=async function(e,t){const n=await(0,s.resolveAplTarget)(t,e);a.loggerService.updateLoading(`Running compile check for APL function ${n.apiName}`),await E(n,"compile"),a.loggerService.success(`APL function ${n.apiName} passed compile check.`)},t.aplDebugCommand=async function(e,t,n={}){const i=await(0,s.resolveAplTarget)(t,e);a.loggerService.stopLoading();const o=_(i,await S(i),"debug"),c=function(e={}){const t=(i=e.params,(Array.isArray(i)?i:i?[i]:[]).flatMap(j).map(N)),n={};var i;for(const e of t)n[e.name]=e.value;return{dataId:e.dataId?.trim()||void 0,paramsByName:n}}(n),l=await async function(e,t){if(!e||"NONE"===e)return;const n=t?.trim();if(n)return n;return(await C(`Enter object data ID for ${e}: `)).trim()||void 0}(o.binding_object_api_name,c.dataId),p=await async function(e,t){if(!e.length)return[];const n=[];for(const i of e){const e=i.name?.trim(),a=i.type;if(!e||!a)throw new Error("APL debug parameters are missing name or type and cannot be collected in the terminal.");if("List"===a||"Map"===a)continue;const o=Object.prototype.hasOwnProperty.call(t,e)?A(i,a,t[e]):await O(i,a);n.push({name:e,type:a,value:o})}return n}(o.parameters??[],c.paramsByName);!function(e,t){const n=new Set(e.map(e=>e.name?.trim()).filter(e=>Boolean(e))),i=Object.keys(t).filter(e=>!n.has(e));i.length&&a.loggerService.warn(`Ignoring unknown APL debug CLI params: ${i.map(e=>JSON.stringify(e)).join(", ")}.`)}(o.parameters??[],c.paramsByName);const u={api_name:i.apiName,binding_object_api_name:o.binding_object_api_name,function:o,input_data:p,...l?{data_source:l}:{}};a.loggerService.startLoading(`Running APL debug for ${i.apiName}`);const d=await(0,r.debugFuncSource)(u);a.loggerService.stopLoading();const m=function(e,t){const n=t.logInfo;return t.success?`APL function ${e} debug run succeeded: ${n}`:`APL function ${e} debug run failed: ${n}`}(i.apiName,d);!1===d.success?a.loggerService.error(m):a.loggerService.success(m),a.loggerService.printRaw(function(e){const t=[];if(e.runResult){t.push("Run Result");try{t.push(JSON.stringify(e.runResult,null,2))}catch{t.push(e.runResult)}}return e.errorInfo&&t.push(e.errorInfo),t.push(""),t.join("\n")}(d))},t.aplPlaceholderCommand=async function(e){"debug"!==e?a.loggerService.warn(`sharedev apl ${e} is not implemented yet.`):a.loggerService.warn("sharedev apl debug is not implemented yet: the backend execution API and input contract are not confirmed.")};const i=n(321),a=n(3333),o=n(4444),r=n(6869),s=n(527),c=new Set(["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","if","implements","import","instanceof","int","interface","long","native","new","package","private","protected","public","return","short","static","strictfp","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"]);function l(e){return["APL Summary",`- API Name: ${m(e.api_name)}`,`- Function Name: ${m(e.function_name)}`,`- Package: ${m(e.package_name)}`,`- Version: ${m(e.version)}`,`- Type: ${m(e.type)}`,`- Lang: ${u(e.lang)}`,`- Binding Object: ${m(e.binding_object_api_name,"(none)")}`,`- Control: ${d(e.is_control)}`,`- Active: ${d(e.is_active,"(unknown)")}`,`- Status: ${m(e.status)}`,`- Return Type: ${m(e.return_type)}`,`- Name Space: ${m(e.name_space)}`,`- Application: ${m(e.application)}`,`- Last Modified By: ${m(e.last_modified_by)}`,`- Update Time: ${f(e.update_time)}`,`- Create Time: ${f(e.create_time)}`,`- Current: ${d(e.is_current,"(unknown)")}`,`- Commit Log: ${m(e.commit_log)}`,`- Remark: ${m(e.remark)}`].join("\n")}function p(e){if(!e?.length)return"Parameters\n- (none)";const t=["Parameters"];return e.forEach((e,n)=>{var i;t.push(`${n+1}. ${m(e.name)}`),t.push(` - Type: ${m(e.type)}`),t.push(` - Default: ${i=e.default_value,null==i||""===i?"-":"string"==typeof i?i:JSON.stringify(i)}`),t.push(` - Remark: ${m(e.remark)}`)}),t.join("\n")}function u(e){switch(e){case 0:return"Groovy";case 1:return"Java";case 2:return"Jar";case 3:return"UnitTest";default:return m(e)}}function d(e,t="-"){return null==e?t:String(e)}function m(e,t="-"){return"string"==typeof e?e.trim()||t:null==e?t:String(e)}function f(e){if(null==e)return"-";const t=new Date(e);return Number.isNaN(t.getTime())?String(e):`${e} (${t.toISOString()})`}async function h(e,t,n,i,o){const r=e?.trim()??"";if(r){const e=o?.(r);if(e)throw new Error(e);return r}if(!i)throw new Error(`Missing required option ${t}.`);for(;;){const e=await g(n);if(!e){a.loggerService.warn(`Missing required option ${t}.`);continue}const i=o?.(e);if(!i)return e;a.loggerService.warn(i)}}async function g(e,t){const n=await(0,i.text)({message:e,placeholder:t,initialValue:t});if((0,i.isCancel)(n))throw new Error("APL create cancelled.");return n.trim()}function v(e){if(e.length>64)throw new Error("--package cannot exceed 64 characters.");const t=e.split(".").filter(Boolean);if(!t.length)throw new Error("Invalid --package value.");if(!t.every(e=>/^[a-z][a-z0-9]*$/u.test(e)&&!c.has(e.toLowerCase())))throw new Error("Invalid --package value: each segment must match ^[a-z][a-z0-9]*$ and cannot be a Java keyword.")}function y(e){try{return void v(e)}catch(e){return e instanceof Error?e.message:String(e)}}function b(e,t){if(e.length>50)throw new Error("--apiname cannot exceed 50 characters.");if(!{class:/^[A-Z]{1}[a-zA-Z0-9]*__c$/u,function:/^[a-zA-Z](?!.*__.*__c$)\w*__c$/u}[t].test(e))throw new Error(`Invalid --apiname for type ${t}.`)}function x(e,t,n){return e.find(e=>e.value===t&&(!e.type||e.type===n))}function w(e){return Array.from(new Set(e.map(e=>e?.trim()).filter(e=>Boolean(e))))}function _(e,t,n,i){const a=e.snapshot,o=e.metadata;return{...t,api_name:e.apiName,binding_object_api_name:a.bindingObjectApiName,function_name:o.functionName,package_name:o.packageName,remark:o.remark,parameters:o.parameters,type:o.type??t.type,body:e.localBody,commit_log:"push"===n?i??"":`sharedev cli ${n} ${(new Date).toISOString()}`}}async function S(e){const t=e.snapshot,n=e.metadata;if(!t||!n)throw new Error(`Missing tracked metadata for APL function ${e.apiName}. Run sharedev apl pull ${e.apiName} first.`);return(0,r.findFuncLatestByApiName)(e.apiName,t.bindingObjectApiName)}async function E(e,t,n={}){const i=n.remoteBase??await S(e),a=n.payload??_(e,i,t);return await(0,r.compileCheckFuncSource)(a),a}function j(e){return e.split(/[\s,]+/).map(e=>e.trim()).filter(Boolean)}function N(e){const t=e.indexOf("=");if(t<=0)throw new Error(`Invalid --params value ${JSON.stringify(e)}. Use --params <name=value...>.`);const n=e.slice(0,t).trim(),i=e.slice(t+1);if(!n)throw new Error(`Invalid --params value ${JSON.stringify(e)}. Parameter name cannot be empty.`);return{name:n,value:i}}function A(e,t,n){return"Boolean"===t?k(e,n):P(e,t,n)}async function C(e,t){const n=await(0,i.text)({message:e,defaultValue:t,initialValue:t});if((0,i.isCancel)(n))throw new Error("APL debug input cancelled.");return n}async function O(e,t){return"Boolean"===t?async function(e){const t=await(0,i.select)({message:T(e,"Boolean"),options:[{value:"__default__",label:`Use default value (current: ${$(e,"Boolean")})`},{value:"true",label:"True"},{value:"false",label:"False"}]});if((0,i.isCancel)(t))throw new Error("APL debug input cancelled.");return k(e,t)}(e):P(e,t,await C(T(e,t),e.default_value))}function T(e,t){return`Enter parameter ${e.name?.trim()||"unknown"} (${t}), default ${$(e,t)}: `}function $(e,t){const n=e.default_value;if(null==n||""===n)return"null";if("String"===t)return JSON.stringify(String(n));if(null!=t&&L(t)){const e=Number(n);if(!Number.isNaN(e))return`${e} (${new Date(e).toISOString()})`}return String(n)}function P(e,t,n){const i=n.trim(),a=""===i?e.default_value:i;if(null==a||""===a)return null;if("String"===t)return a;if("BigDecimal"===t||L(t)){const n=Number(a);if(Number.isNaN(n)){const n="BigDecimal"===t?"a number":"a numeric timestamp";throw new Error(`Parameter ${e.name} for type ${t} must be ${n}.`)}return n}throw new Error(`Terminal input for parameter ${e.name} of type ${t} is not supported yet.`)}function k(e,t){const n="__default__"===t?e.default_value:t,i=null==n?n:String(n).trim().toLowerCase();if(null==i||""===i)return null;if("true"===i)return!0;if("false"===i)return!1;throw new Error(`Boolean default value for parameter ${e.name} must be true or false.`)}function L(e){return"Date"===e||"DateTime"===e||"Time"===e}},6869(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getFuncList=async function(){return(await a.requestService.FHH({url:"/EM1HFUNC/biz/query",data:{pageSize:3e3,pageNumber:1}})).function??[]},t.findFuncByApiNames=o,t.findFuncByApiName=r,t.findFuncLatestByApiName=s,t.findFuncHistoryVersions=c,t.findFuncVersionByApiName=async function(e,t,n=""){try{return{func:await l(e,t,n),actualVersion:t,fallbackToLatest:!1}}catch{const t=await s(e,n);return{func:t,actualVersion:t.version,fallbackToLatest:!0}}},t.findStrictFuncVersionByApiName=l,t.checkRemoteVersionConflict=async function(e,t,n=""){const i=await s(e,n);return i?{conflict:i.version!==t,remote:i}:{conflict:!1}},t.pushFuncSource=async function(e){return(await h(t=>a.requestService.FHH({url:"/FHH/EM1HFUNC/biz/update",data:{function:e,token:t}}))).function},t.analyzeFuncSource=async function(e){const t=await h(t=>a.requestService.FHH({url:"/EM1HFUNC/runtime/analyze",data:{token:t,function:e}}));if(!1===t.success){const e=t.violations?.map(e=>`line ${e.line}: ${e.message}`).join("\n")||t.logInfo||"APL analyze failed";throw new Error(`Pre-submit analysis failed: \n${e}`)}return t},t.compileCheckFuncSource=p,t.debugFuncSource=async function(e){return h(t=>a.requestService.FHH({url:"/EM1HFUNC/runtime/debug",data:{...e,token:t}}))},t.getAplNamespaceOptions=async function(){return function(e){const t=m(e)?e:{},n=m(t.data)?t.data:t,i=Array.isArray(n.namespaces)?n.namespaces:[],a=Array.isArray(n.return_type)?n.return_type:[];return{namespaces:i.map(e=>function(e){const t=m(e)?e:{},n=f(t.value)||f(t.namespace)||f(t.name_space)||f(t.name),i=f(t.name)||n,a=function(e){if("string"==typeof e){const t=e.trim().toLowerCase();if("function"===t||"class"===t)return t}return""}(t.type),o=function(e){const t=Number(e);return 0===t||1===t||2===t?t:1}(t.bind_object);return{label:i,value:n,type:a,bindObject:o,apiNamePrefix:f(t.apiNamePrefix)||f(t.api_name_prefix),returnTypes:(Array.isArray(t.return_type)?t.return_type:[]).map(e=>d(e)).filter(e=>Boolean(e))}}(e)).filter(e=>e.value),returnTypes:a.map(e=>d(e)).filter(e=>Boolean(e))}}(await a.requestService.FHH({url:"/EM1HFUNC/runtime/namespace",data:{}}))},t.getAplBindingObjectApiNames=async function(){const e=await a.requestService.FHH({url:"/EM1HNCRM/API/v1/object/describe/service/findDescribeManageList",data:u});return Array.from(new Set((e.objectDescribeList??[]).map(e=>e.api_name?.trim()).filter(e=>Boolean(e)))).sort((e,t)=>e.localeCompare(t))},t.createAplTemplate=async function(e){const t=e.templateId?{optionType:"use",templateId:e.templateId,funcApiName:e.apiName,functionName:e.functionName,description:e.remark}:{lang:0,nameSpace:e.namespace,namespace:e.namespace,type:e.type,funcApiName:e.apiName,returnObject:e.returnType,description:e.remark,functionName:e.functionName};return(await a.requestService.FHH({url:"/EM1HFUNC/biz/funcTemplate",data:t})).body??""},t.createFuncSource=async function(e){await p(e);const t=await h(t=>a.requestService.FHH({url:"/EM1HFUNC/biz/create",data:{function:e,token:t}}));if(!t.function)throw new Error("APL create failed: server did not return function payload.");return t.function};const i=n(5217),a=n(2088);async function o(e){return(await a.requestService.FHH({url:"/EM1HFUNC/biz/batchQuery",data:{apiNames:e}})).function}async function r(e,t=""){return t?(await a.requestService.FHH({url:"/EM1HFUNC/biz/find",data:{api_name:e,binding_object_api_name:t}})).function:(await o([e]))[0]}async function s(e,t=""){return r(e,t)}async function c(e,t){return(await a.requestService.FHH({url:"/EM1HFUNC/biz/queryVersions",single:!0,data:{api_name:e,binding_object_api_name:t}})).functions??[]}async function l(e,t,n=""){const i=(await c(e,n)).find(e=>e.version===t);if(!i)throw new Error(`Remote version v${t} does not exist for APL function ${e}.`);return(await a.requestService.FHH({url:"/EM1HFUNC/biz/findFunctionVersion",data:{id:i.id,api_name:e,binding_object_api_name:n}})).function}async function p(e){const t=await h(t=>a.requestService.FHH({url:"/EM1HFUNC/runtime/compileCheck",data:{token:t,function:e}}));if(!1===t.success)throw new Error(`Pre-submit compile check failed: ${t.compileError||"unknown compile error"}`)}const u={isIncludeFieldDescribe:!1,isIncludeSystemObj:!0,isIncludeUnActived:!0,packageName:"CRM",sourceInfo:"function",serviceContext:{}};function d(e){if("string"==typeof e){const t=e.trim();if(!t)return;return{label:t,value:t}}const t=m(e)?e:{},n=f(t.value)||f(t.type)||f(t.name);if(n)return{label:f(t.name)||n,value:n}}function m(e){return Boolean(e)&&"object"==typeof e}function f(e){return"string"==typeof e?e.trim():""}async function h(e,t={}){const n=t.token??`${Date.now()}-${(0,i.randomUUID)()}`,a=t.num??0,o=t.maxNum??10,r=await e(n);if(r.token&&a<o)return h(e,{token:n,num:a+1,maxNum:o});if(r.token&&a>=o)throw new Error("Server polling exceeded the maximum retry count.");return r}},527(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.readAplSnapshotMap=g,t.readAplVersionsMap=v,t.readAplMetadataMap=y,t.readAplTrackedRecord=b,t.resolveAplFileByApiName=x,t.resolveAplTarget=w,t.readAplLocalSource=_,t.collectChangedAplTargets=async function(e){const[t,n]=await Promise.all([g(e),y(e)]),i=Object.keys(t).filter(e=>Boolean(n[e])),a=[];for(const t of i){const n=await w(e,t);n.localBody!==(n.snapshot?.body??"")&&a.push(n)}return a},t.ensureAplWorkspace=S,t.writeAplFunction=E,t.writeAplFunctions=async function(e,t){const n=[];for(const i of t)n.push(await E(e,i));return n},t.writeAplSnapshot=async function(e,t){const n=s(e),i=Array.isArray(t)?t:[t];await(0,o.ensureDir)(n);const a=c(e),r=l(e),u=p(e),[h,g,v]=await Promise.all([d(a),d(r),d(u)]),y={...h},b={...g},x={...v};for(const e of i)y[e.api_name]=m(e),b[e.api_name]=e.version,x[e.api_name]=f(e);await Promise.all([(0,o.writeJsonFile)(a,y),(0,o.writeJsonFile)(r,b),(0,o.writeJsonFile)(u,x)])};const a=i(n(6760)),o=n(5409),r=a.default.join("fx","custom","apl","script");function s(e){return a.default.join(e.workspaceRoot,"snapshot")}function c(e){return a.default.join(s(e),"snapshot.json")}function l(e){return a.default.join(s(e),"versions.json")}function p(e){return a.default.join(s(e),"metadata.json")}function u(e,t){return a.default.join(function(e){return a.default.join(a.default.dirname(e.workspaceRoot),"package")}(e),function(e){return e.package_name?e.package_name.replace(/\./g,a.default.sep):r}(t),function(e){return`${e.api_name}.${e.type}.groovy`}(t))}async function d(e){return await(0,o.pathExists)(e)?(0,o.readJsonFile)(e):{}}function m(e){return{apiName:e.api_name,body:e.body??"",version:e.version,packageName:e.package_name,bindingObjectApiName:e.binding_object_api_name}}function f(e){return{apiName:e.api_name,functionName:e.function_name,remark:e.remark,parameters:e.parameters,packageName:e.package_name,bindingObjectApiName:e.binding_object_api_name,type:e.type}}function h(e,t){if(!t?.snapshot||!t.metadata||"number"!=typeof t.version)throw new Error(`APL function ${e} is not tracked by sharedev.`)}async function g(e){return d(c(e))}async function v(e){return d(l(e))}async function y(e){return d(p(e))}async function b(e,t){const[n,i,a]=await Promise.all([g(e),v(e),y(e)]),o=n[t],r=a[t],s=i[t];var c;if(o||r||"number"==typeof s)return{apiName:t,snapshot:o,metadata:r,version:s,filePath:u(e,{api_name:t,package_name:o?.packageName??r?.packageName??"",type:(c=r,c?.type??"function")})}}async function x(e,t){const n=await b(e,t);if(h(t,n),!await(0,o.pathExists)(n.filePath))throw new Error(`Local APL file not found: ${n.filePath}`);return n.filePath}async function w(e,t){const n=await x(e,t??""),i=function(e){const t=a.default.basename(e),n=/^(.*)\.(function|class)\.groovy$/u.exec(t);return n?{apiName:n[1],type:n[2]}:null}(n);if(!i)throw new Error(`Failed to parse APL function info from file name: ${n}`);const o=await b(e,i.apiName);return h(i.apiName,o),{...o,localBody:await _(n)}}async function _(e){return(0,o.readTextFile)(e)}async function S(e,t){await(0,o.ensureDir)(function(e,t){return a.default.dirname(u(e,t))}(e,t)),await(0,o.ensureDir)(s(e))}async function E(e,t){await S(e,t);const n=u(e,t);return await(0,o.writeTextFile)(n,t.body??""),n}},7663(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.approvalDefListCommand=async function(e){i.loggerService.startLoading("Executing approval-def list");try{const e=await(0,o.executeApprovalDefShareCli)((0,a.getShareCliCommandPath)("approvalDef","list"),{});i.loggerService.stopLoading(),function(e){const t=function(e){const t=function(e){if(!e||"object"!=typeof e)return[];const t=e,n=t.data;if(n&&"object"==typeof n){const e=n.result;if(Array.isArray(e))return e.filter(e=>!!e&&"object"==typeof e&&!Array.isArray(e))}const i=t.Value;if(!i||"object"!=typeof i)return[];const a=i.data;if(!a||"object"!=typeof a)return[];const o=a.result;return Array.isArray(o)?o.filter(e=>!!e&&"object"==typeof e&&!Array.isArray(e)):[]}(e);return t.map(e=>({name:c(e.name),entityName:c(e.entityName),srcWorkflowId:c(e.srcWorkflowId),description:c(e.description)}))}(e);t.length?i.loggerService.printTable(["name","entityName","srcWorkflowId","description"],t.map(e=>[e.name,e.entityName,e.srcWorkflowId,e.description])):i.loggerService.warn("No approval definition data found in response.")}(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalDefLogsCommand=async function(e,t){const n=t.sourceWorkflowId?.toString().trim();if(!n)throw new Error("Invalid arguments: use --sourceWorkflowId <sourceWorkflowId>.");const s={sourceWorkflowId:n,pageNumber:r(t.pageNumber,1),pageSize:r(t.pageSize,1)};i.loggerService.startLoading(`Executing approval-def logs: ${n}`);try{const e=await(0,o.executeApprovalDefShareCli)((0,a.getShareCliCommandPath)("approvalDef","logs"),s);i.loggerService.stopLoading(),function(e){const t=function(e){const t=function(e){if(!e||"object"!=typeof e)return[];const t=e.data;if(t&&"object"==typeof t&&!Array.isArray(t)){const e=t.workflowLog;if(Array.isArray(e))return e.filter(e=>!!e&&"object"==typeof e&&!Array.isArray(e))}return[]}(e);return t.map(e=>({modifyTime:c(e.modifyTime),modifier:c(e.modifier),workflowId:c(e.workflowId)}))}(e);t.length?i.loggerService.printTable(["modifyTime","modifier","workflowId"],t.map(e=>[e.modifyTime,e.modifier,e.workflowId])):i.loggerService.warn("No workflow log data found in response.")}(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalDefDetailCommand=async function(e,t){const n=t.sourceWorkflowId?.toString().trim();if(!n)throw new Error("Invalid arguments: use --sourceWorkflowId <sourceWorkflowId>.");const r=t.workflowId?.toString().trim(),c={sourceWorkflowId:n};r&&(c.workflowId=r),i.loggerService.startLoading(`Executing approval-def detail: ${n}`);try{const e=await(0,o.executeApprovalDefShareCli)((0,a.getShareCliCommandPath)("approvalDef","detail"),c);s(e,"approval-def detail"),i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalDefDeployCommand=async function(e,t){const n=t.workflow?.toString().trim(),r=t.rule?.toString().trim(),c=t.execution?.toString().trim();if(!n)throw new Error("Invalid arguments: use --workflow <json>.");if(!r)throw new Error("Invalid arguments: use --rule <json>.");if(!c)throw new Error("Invalid arguments: use --execution <json>.");const l={workflow:n,rule:r,execution:c};i.loggerService.startLoading("Executing approval-def deploy");try{s(await(0,o.executeApprovalDefShareCli)((0,a.getShareCliCommandPath)("approvalDef","deploy"),l),"approval-def deploy"),i.loggerService.stopLoading(),i.loggerService.success("Approval-def deploy succeeded.")}catch(e){throw i.loggerService.stopLoading(),i.loggerService.error("Approval-def deploy failed."),e}},t.approvalDefEnableCommand=async function(e,t){const n=t.sourceWorkflowId?.toString().trim();if(!n)throw new Error("Invalid arguments: use --sourceWorkflowId <sourceWorkflowId>.");const r=function(e){if("boolean"==typeof e)return e;if("string"!=typeof e)return;const t=e.trim().toLowerCase();return"true"===t||"false"!==t&&void 0}(t.enable);if(void 0===r)throw new Error("Invalid arguments: use --enable true|false.");const c={sourceWorkflowId:n,enable:r};i.loggerService.startLoading(`Executing approval-def enable: ${n}`);try{s(await(0,o.executeApprovalDefShareCli)((0,a.getShareCliCommandPath)("approvalDef","enable"),c),"approval-def enable"),i.loggerService.stopLoading(),i.loggerService.success("Approval-def enable succeeded.")}catch(e){throw i.loggerService.stopLoading(),i.loggerService.error("Approval-def enable failed."),e}},t.approvalDefDeleteCommand=async function(e,t){const n="string"!=typeof(r=t.sourceWorkflowIds)?[]:r.split(",").map(e=>e.trim()).filter(Boolean);var r;if(!n.length)throw new Error("Invalid arguments: use --sourceWorkflowIds <id1,id2,...>.");const c={sourceWorkflowIds:n};i.loggerService.startLoading("Executing approval-def delete");try{s(await(0,o.executeApprovalDefShareCli)((0,a.getShareCliCommandPath)("approvalDef","delete"),c),"approval-def delete"),i.loggerService.stopLoading(),i.loggerService.success("Approval-def delete succeeded.")}catch(e){throw i.loggerService.stopLoading(),i.loggerService.error("Approval-def delete failed."),e}};const i=n(3333),a=n(2351),o=n(5353);function r(e,t){if(null==e||""===e||void 0===e)return t;const n=Number.parseInt(String(e),10);return!Number.isFinite(n)||n<=0?t:n}function s(e,t){if(!e||"object"!=typeof e)throw new Error(`${t} failed: invalid response.`);const n=e,i="string"==typeof n.code?n.code.trim().toUpperCase():"";if(i&&"OK"!==i&&"SUCCESS"!==i&&"0"!==i){const e="string"==typeof n.message&&n.message.trim()?n.message.trim():`${t} failed: ${i}`;throw new Error(e)}}function c(e){return"string"==typeof e?e.replace(/[\r\n\t]+/g," ").trim():"number"==typeof e&&Number.isFinite(e)?String(e):""}},5353(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.executeApprovalDefShareCli=async function(e,t,n){return(0,i.executeShareCliCommand)(e,t,n)};const i=n(8554)},9473(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getCompletions=function(e,t){const n=function(e){return e.trim().split(/\s+/).filter(Boolean)}(t).slice(1);let i=e,a=0;for(;a<n.length-1;){const e=n[a],t=i.commands.find(t=>t.name()===e);if(!t)break;i=t,a+=1}const o=n[n.length-1]??"";return[...i.commands.map(e=>e.name()),...(r=i,r.options.flatMap(e=>{const t=[];return e.short&&t.push(e.short),e.long&&t.push(e.long),t}))].filter(e=>e.startsWith(o));var r},t.generateZshScript=function(){return'\n# sharedev zsh completion\n# Add to ~/.zshrc:\n# eval "$(sharedev completion --shell zsh)"\n\n_sharedev_completion() {\n local line="$BUFFER"\n local completions\n completions=$(sharedev completion --shell zsh --line "$line" 2>/dev/null)\n if [[ -n "$completions" ]]; then\n local -a items\n items=(${(f)completions})\n compadd -a items\n fi\n}\n\ncompdef _sharedev_completion sharedev\n'.trim()},t.generateBashScript=function(){return'\n# sharedev bash completion\n# Add to ~/.bashrc or ~/.bash_profile:\n# eval "$(sharedev completion --shell bash)"\n\n_sharedev_completion() {\n local line="${COMP_LINE}"\n local completions\n completions=$(sharedev completion --shell bash --line "$line" 2>/dev/null)\n COMPREPLY=($(compgen -W "$completions" -- "${COMP_WORDS[COMP_CWORD]}"))\n}\n\ncomplete -F _sharedev_completion sharedev\n'.trim()}},7429(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.updateConfigCommand=async function(e,t){let n=l(t.domain),i=l(t.certificate);const u=await(0,o.resolveSettingsSearchDir)(void 0,e),d=await(0,o.findSettings)(u);if(!d)throw new Error(".sharedev/settings.json was not found. Run sharedev init first.");const m=await(0,r.readJsonFile)(d),f={...m},h=l("string"==typeof m.domain?m.domain:void 0)??"",g=l("string"==typeof m.certificate?m.certificate:void 0)??"";if(n||i||(n=await p("Enter enterprise domain",h||"https://www.fxiaoke.com",e=>{const t=(e??"").trim();return t?c(t)?void 0:"Invalid URL format. Example: https://www.fxiaoke.com.":"Domain is required."}),i=await p("Enter enterprise certificate",g,e=>{if(!(e??"").trim())return"Certificate is required."})),n&&!c(n))throw new Error("Invalid domain URL. Use a full URL, e.g. https://www.fxiaoke.com.");if(!n&&!i)throw new Error("No updates provided. Use --domain and/or --certificate.");n&&(f.domain=n),i&&(f.certificate=i),await(0,r.writeJsonFile)(d,f),a.loggerService.success(`Configuration updated: ${d}`),n&&a.loggerService.info(`Domain: ${n}`),i&&a.loggerService.info(`Certificate: ${(0,s.maskCertificate)(i)}`)};const i=n(321),a=n(3333),o=n(1415),r=n(5409),s=n(5332);function c(e){try{return new URL(e),!0}catch{return!1}}function l(e){if("string"!=typeof e)return;const t=e.trim();return t.length>0?t:void 0}async function p(e,t,n){const a=await(0,i.text)({message:e,initialValue:t,validate:n});if((0,i.isCancel)(a))throw new Error("Configuration update cancelled.");return String(a).trim()}},707(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.objectSearchCommand=async function(e,t){a.loggerService.startLoading("Fetching object list");const n=await(0,o.getObjectDescribeList)(),i=(0,o.filterObjectDescribeList)(n,e);a.loggerService.stopLoading(),a.loggerService.info(`Object list fetched: fetched=${n.length}, matched=${i.length}`),a.loggerService.printJson(i.map(o.toObjectSearchSummary))},t.objectInfoCommand=async function(e,t){if(!e?.trim())throw new Error("Invalid arguments: use sharedev dev-metadata info <apiName>.");const n=e.trim();let r;a.loggerService.startLoading(`Fetching object details for ${n}`);try{r=await(0,o.getObjectDescribeByApiName)(n)}catch{a.loggerService.updateLoading(`Direct lookup failed for ${n}, searching candidates`);const e=(0,o.filterObjectDescribeList)(await(0,o.getObjectDescribeList)(),n);if(!e.length)throw a.loggerService.stopLoading(),new Error(`Object not found: ${n}.`);const t=await async function(e,t){if(1===t.length||(0,o.isExactObjectApiNameMatch)(t[0],e))return t[0].api_name;a.loggerService.stopLoading();const n=await(0,i.select)({message:`Direct lookup failed for ${e}. Select a candidate object:`,options:t.slice(0,20).map(e=>({value:e.api_name,label:e.api_name,hint:s(e)}))});if((0,i.isCancel)(n))throw a.loggerService.info("Object selection cancelled."),new Error("Object selection cancelled.");return a.loggerService.startLoading(`Fetching object details for ${n}`),n}(n,e);a.loggerService.updateLoading(`Fetching object details for ${t}`),r=await(0,o.getObjectDescribeByApiName)(t)}const d=(0,o.extractObjectDescribe)(r);a.loggerService.stopLoading(),a.loggerService.printRaw(function(e,t){const n=[c(e),l(e.fields??[])],i=function(e){return e?["Layout Summary",`- API Name: ${u(e.api_name)}`,`- Display Name: ${u(e.display_name)}`,`- Layout Type: ${u(e.layout_type)}`,`- Is Default: ${p(e.is_default)}`,`- Ref Object API Name: ${u(e.ref_object_api_name)}`].join("\n"):""}(t);return i&&n.push(i),`${n.filter(Boolean).join("\n\n")}\n`}(d,r.layout))},t.objectDownloadCommand=async function(e,t,n={}){const i=e?.trim(),s=Boolean(n.all);if(s&&i)throw new Error("Invalid arguments: use either sharedev dev-metadata download <apiName> or sharedev dev-metadata download --all.");if(!s&&!i)throw new Error("Invalid arguments: use sharedev dev-metadata download <apiName> or sharedev dev-metadata download --all.");if(!s&&n.type)throw new Error("Invalid arguments: --type can only be used together with --all.");const c=(0,r.resolveObjectDescribeOutputDir)(t,n.output);s?await async function(e,t,n){const i=n?[n]:["package","custom"],s=new Map;a.loggerService.startLoading("Fetching object list");for(const e of i){a.loggerService.updateLoading(`Fetching object list (type=${e})`);const t=await(0,o.getObjectDescribeList)({type:e});for(const e of t)s.has(e.api_name)||s.set(e.api_name,e)}const c=(0,o.filterObjectDescribeList)([...s.values()]),l=await(0,o.downloadObjectDescribeByApiNames)(c.map(e=>e.api_name),{title:"Downloading metadata...",summaryName:"Downloading object describe markdown files",concurrency:6,delayMs:120}),p=l.values.map(async e=>{await(0,r.writeObjectDescribeFile)(t,e.infoResult)});await Promise.all(p),await(0,r.writeObjectDescribeIndex)(t,c),a.loggerService.success(`Object describe download completed: total=${c.length}, succeeded=${l.succeeded}, failed=${l.failed}, output=${t}`)}(0,c,n.type):await async function(e,t){let n;a.loggerService.startLoading(`Fetching object details for ${e}`);try{n=await(0,o.getObjectDescribeByApiName)(e)}catch{throw a.loggerService.stopLoading(),new Error(`Object not found: ${e}.`)}const i=await(0,r.writeObjectDescribeFile)(t,n);a.loggerService.stopLoading(),a.loggerService.success(`Object describe markdown written: ${i}`)}(i,c)},t.namespaceDownloadCommand=async function(e,t={}){const n=(0,r.resolveNamespaceOutputDir)(e,t.output);a.loggerService.startLoading("Fetching runtime namespaces");const i=await(0,o.getRuntimeNamespaceList)(),s=await(0,r.writeNamespaceMetadataFile)(n,i.raw);a.loggerService.stopLoading(),a.loggerService.success(`Namespace metadata downloaded: count=${i.namespaces.length}, file=${s}`)};const i=n(321),a=n(3333),o=n(6973),r=n(9207);function s(e){const t=[e.display_name,e.display_name_r].filter(Boolean).join(" / "),n=e.package_name??e.package,i=e.description?.trim();return[t,n,i].filter(Boolean).join(" | ")}function c(e){return["Object Summary",`- API Name: ${e.api_name}`,`- Display Name: ${u(e.display_name)}`,`- Display Name R: ${u(e.display_name_r)}`,`- Package: ${u(e.package_name??e.package)}`,`- Version: ${u(e.version)}`,`- Release Version: ${u(e.release_version)}`,`- Define Type: ${u(e.define_type)}`,`- Udef: ${p(e.is_udef)}`,`- Active: ${p(e.is_active)}`,`- Store Table: ${u(e.store_table)}`,`- Description: ${u(e.description)}`].join("\n")}function l(e){if(!e.length)return"Fields\n- (none)";const t=["Fields"];return e.forEach((e,n)=>{t.push(function(e,t){const n=[`${t}. ${e.api_name}`,` - Label: ${u(e.label??e.display_name)}`,` - Type: ${u(e.type)}`,` - Define Type: ${u(e.define_type)}`,` - Required: ${p(e.is_required)}`,` - Active: ${p(e.is_active)}`,` - Index: ${p(e.is_index)}`,` - Default: ${i=e.default_value,null==i||""===i?"-":"string"==typeof i?i:JSON.stringify(i)}`,` - Description: ${u(e.description)}`];var i;if("select_one"===e.type||"record_type"===e.type){const t=function(e){return e.length?e.map(e=>`${e.label??e.display_name??e.api_name??u(e.value)}${null==e.value?"":` (${String(e.value)})`}`).join(", "):""}(e.options??[]);t&&n.push(` - Options: ${t}`)}return"object_reference"!==e.type&&"quote"!==e.type||(n.push(` - Target API Name: ${u(e.target_api_name)}`),n.push(` - Quote Field: ${u(e.quote_field)}`)),n.join("\n")}(e,n+1))}),t.join("\n")}function p(e){return null==e?"-":String(e)}function u(e){return"string"==typeof e?e.trim()||"-":null==e?"-":String(e)}},6973(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getObjectDescribeList=async function(e={}){return(await i.requestService.FHH({url:"/EM1HNCRM/API/v1/object/describe/service/findDescribeManageList",data:(t=e.type,{isIncludeFieldDescribe:!1,isIncludeSystemObj:!0,isIncludeUnActived:!0,packageName:"CRM",sourceInfo:"object_management",describeDefineType:t??null})})).objectDescribeList??[];var t},t.filterObjectDescribeList=function(e,t){const n=p(t);return n?e.filter(e=>function(e){return[e.api_name,e.display_name,e.display_name_r].map(u).filter(Boolean)}(e).some(e=>e.includes(n))).sort((e,t)=>c(e,t,n)):[...e].sort(c)},t.getObjectDescribeByApiName=o,t.downloadObjectDescribeByApiNames=async function(e,t){const n=e.map(e=>({fileName:`Downloading ${e}`,download:async()=>{const t=await o(e);return{apiName:e,infoResult:t}}}));return(0,a.download)(t.title,n,{summaryName:t.summaryName,concurrency:t.concurrency,delayMs:t.delayMs})},t.getRuntimeNamespaceList=async function(){const e=await i.requestService.FHH({url:"/EM1HFUNC/runtime/namespace",data:{}});return{namespaces:r(e),raw:e}},t.toObjectSearchSummary=function(e){return{apiName:e.api_name,displayName:e.display_name??"",displayNameR:e.display_name_r??"",packageName:e.package_name??e.package??"",isUdef:e.is_udef??!1,isActive:e.is_active??!1,version:e.version??"",description:e.description??""}},t.isExactObjectApiNameMatch=function(e,t){const n=p(t);return!!n&&u(e.api_name)===n},t.extractObjectDescribe=function(e){if(!e.objectDescribe)throw new Error("The server did not return objectDescribe.");return e.objectDescribe};const i=n(2088),a=n(1889);async function o(e){return i.requestService.FHH({url:"/EM1HNCRM/API/v1/object/describe/service/findDescribeByApiName",data:{describe_apiname:e,include_layout:!0,layout_type:"detail",get_label_direct:!0,include_describe_extra:!1,include_fields_extra:!1,check_cross_filter:!1}})}function r(e){if(Array.isArray(e))return s(e);if(e&&"object"==typeof e){const t=e,n=t.namespaceList??t.namespaces??t.list??t.data??t.value;if(Array.isArray(n))return s(n)}return[]}function s(e){const t=e.map(e=>{if("string"==typeof e)return e.trim();if(e&&"object"==typeof e){const t=e,n=t.namespace??t.name??t.apiName??t.value;return"string"==typeof n?n.trim():""}return""}).filter(Boolean);return Array.from(new Set(t)).sort((e,t)=>e.localeCompare(t))}function c(e,t,n){const i=l(e,n),a=l(t,n);return i!==a?i-a:e.api_name.localeCompare(t.api_name)}function l(e,t){if(!t)return 3;const n=u(e.api_name),i=u(e.display_name),a=u(e.display_name_r);return n===t?0:[n,i,a].some(e=>e.startsWith(t))?1:[n,i,a].some(e=>e.includes(t))?2:3}function p(e){return u(e)}function u(e){return"string"==typeof e?e.trim().toLowerCase():""}},9207(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveObjectDescribeOutputDir=function(e,t){return a.default.join(m(e,t),"objects")},t.resolveNamespaceOutputDir=function(e,t){return a.default.join(m(e,t),"namespaces")},t.writeObjectDescribeIndex=async function(e,t){await(0,o.ensureDir)(e);const n=a.default.join(e,"objects.md");return await(0,o.writeTextFile)(n,function(e){const t=["# Object Describe Index","",`Total objects: ${e.length}`,"","| API Name | Display Name | Package | Active | Version | Description |","| --- | --- | --- | --- | --- | --- |"];for(const n of e)t.push(`| ${p(n.api_name)} | ${l(n.display_name)} | ${l(n.package_name??n.package)} | ${l(s(n.is_active))} | ${l(n.version)} | ${l(n.description)} |`);return`${t.join("\n")}\n`}(t)),n},t.writeObjectDescribeFile=async function(e,t){await(0,o.ensureDir)(e);const n=a.default.join(e,`${t.objectDescribe.api_name}.md`);return await(0,o.writeTextFile)(n,function(e){const t=e.objectDescribe,n=[`# ${t.api_name}`,"",(o=t,["## Summary","","| Field | Value |","| --- | --- |",...[["API Name",o.api_name],["Display Name",o.display_name],["Display Name R",o.display_name_r],["Package",o.package_name??o.package],["Version",o.version],["Release Version",o.release_version],["Define Type",o.define_type],["Udef",s(o.is_udef)],["Active",s(o.is_active)],["Store Table",o.store_table],["Description",o.description]].map(([e,t])=>`| ${e} | ${l(t)} |`)].join("\n")),"",d(t.fields??[])],i=(a=e.layout)?["## Layout Summary","","| Field | Value |","| --- | --- |",`| API Name | ${l(a.api_name)} |`,`| Display Name | ${l(a.display_name)} |`,`| Layout Type | ${l(a.layout_type)} |`,`| Is Default | ${l(s(a.is_default))} |`,`| Ref Object API Name | ${l(a.ref_object_api_name)} |`].join("\n"):"";var a,o;return i&&n.push("",i),`${n.join("\n")}\n`}(t)),n},t.writeNamespaceMetadataFile=async function(e,t){await(0,o.ensureDir)(e);const n=a.default.join(e,"namespaces.json");return await(0,o.writeJsonFile)(n,t),n};const a=i(n(6760)),o=n(5409);function r(e){return"string"==typeof e?e.trim()||"-":null==e?"-":String(e)}function s(e){return null==e?"-":String(e)}function c(e){return null==e||""===e?"-":"string"==typeof e?e:JSON.stringify(e)}function l(e){return r(e).replace(/\r\n/g,"\n").replace(/\r/g,"\n").replace(/\|/g,"\\|").replace(/\n/g,"<br>")}function p(e){return`[${e}](./${e}.md)`}function u(e){const t=e.options??[];return t.length?l(t.map(e=>`${e.label??e.display_name??e.api_name??r(e.value)}${null==e.value?"":` (${String(e.value)})`}`).join(", ")):"-"}function d(e){const t=Array.isArray(e)?e:e?Object.values(e):[];if(!t.length)return["## Fields","","- (none)"].join("\n");const n=["## Fields","","| API Name | Label | Type | Define Type | Required | Active | Index | Default | Description | Target API Name | Quote Field | Options |","| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |"];for(const e of t)n.push(`| ${l(e.api_name)} | ${l(e.label??e.display_name)} | ${l(e.type)} | ${l(e.define_type)} | ${l(s(e.is_required))} | ${l(s(e.is_active))} | ${l(s(e.is_index))} | ${l(c(e.default_value))} | ${l(e.description)} | ${l(e.target_api_name)} | ${l(e.quote_field)} | ${u(e)} |`);return n.join("\n")}function m(e,t){return t?.trim()?a.default.resolve(e.workingDir??e.cwd,t.trim()):a.default.join(e.settings.settingsDir,"docs","dev-metadata")}},6347(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.docsDownloadCommand=async function(e){const t=o.default.join(e.settings.settingsDir,"docs"),n=await(0,a.text)({message:"[sharedev] Enter document output directory:",defaultValue:t,placeholder:"Please enter a directory.",initialValue:t,validate(e){if(!e?.trim())return"Directory cannot be empty."}});if((0,a.isCancel)(n)||!n)return void r.loggerService.info("Document download cancelled.");const i=o.default.resolve(e.cwd,n.trim());try{const e=await(0,s.downloadAndExtractDoc)(i);r.loggerService.success("Document download complete."),r.loggerService.info(`APL docs: ${e.aplPath}`),r.loggerService.info(`PWC docs: ${e.pwcPath}`)}catch(e){const t=e instanceof Error?e.message:String(e);throw r.loggerService.error(`Document download failed: ${t}`),e}};const a=n(321),o=i(n(6760)),r=n(3333),s=n(901)},901(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.downloadAndExtractDoc=async function(e,t={includeApl:!0,includePwc:!0}){const n=o.default.join(e,"apl"),i=o.default.join(e,"pwc"),p=l.filter(e=>"apl"===e.subDir?!1!==t.includeApl:"pwc"!==e.subDir||!1!==t.includePwc),u=p.map(t=>({fileName:`${t.name} Docs`,download:async n=>{const i=await async function(e,t,n,i){const r=e.split("/").pop()??"download.zip",c=o.default.join(n,`${t}-${r}`);await(0,s.ensureDir)(n);const l=await i(e);return await a.default.writeFile(c,l),c}(t.url,t.subDir,e,n.downloadByUrl);await(0,c.extractZipArchive)(i,o.default.join(e,t.subDir))}}));return await(0,r.download)("Downloading docs...",u,{concurrency:p.length||1}),{aplPath:n,pwcPath:i}};const a=i(n(1605)),o=i(n(6760)),r=n(1889),s=n(5409),c=n(5916),l=[{name:"APL",url:"https://developer.fxiaoke.com/apl_v2/docs.zip",subDir:"apl"},{name:"PWC",url:"https://developer.fxiaoke.com/pwc/docs.zip",subDir:"pwc"}]},3421(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.initProjectCommand=async function(e,t){const n=t.cwd?o.default.resolve(t.cwd):e.cwd,i=await async function(e){const t=y(e);let n=e.ea?.trim()??"",i=e.domain?.trim()??"",a=e.certificate?.trim()??"";if(t&&(n||(n=await x("Enter enterprise EA")),i||(i=await x("Enter enterprise domain","https://www.fxiaoke.com")),a||(a=await x("Enter developer certificate"))),!n)throw new Error("Missing enterprise EA. Use --ea or provide it in interactive mode.");if(!i)throw new Error("Missing enterprise domain. Use --domain or provide it in interactive mode.");if(!function(e){try{return new URL(e),!0}catch{return!1}}(i))throw new Error("Invalid enterprise domain URL. Use a full URL, e.g. https://www.fxiaoke.com.");if(!a)throw new Error("Missing developer certificate. Use --certificate or provide it in interactive mode.");return{enterpriseEA:n,domain:i,certificate:a}}(t),S=await async function(e,t){const n=e.projectName?.trim();if(n)return n;if(!y(e))return t;const i=await x("Enter project name",t);if(!i)throw new Error("Project name cannot be empty.");return i}(t,i.enterpriseEA),E=await async function(e){if(e.yes)return{pullAllApl:!0===e.pullAllApl,pullAllPwc:!0===e.pullAllPwc};if(!y(e))throw new Error("Non-interactive mode requires --yes.");const t=[];!0===e.pullAllApl&&t.push("apl"),!0===e.pullAllPwc&&t.push("pwc");const n=await(0,r.multiselect)({message:"Select resources to pull after initialization",options:[{value:"apl",label:"Pull all APL functions"},{value:"pwc",label:"Pull all PWC resources"}],initialValues:t,required:!1});if((0,r.isCancel)(n))throw new Error("Initialization canceled.");const i=new Set(n??[]);return{pullAllApl:i.has("apl"),pullAllPwc:i.has("pwc")}}(t),j=E.pullAllApl||E.pullAllPwc?await async function(e){const t=e.agent?.trim();if(e.yes){if(!t)throw new Error("Missing --agent when using --yes.");return b(t),t}if(t)return b(t),t;if(!y(e))throw new Error("Non-interactive mode requires --yes.");const n=await(0,r.select)({message:"Select an agent platform",options:v.SUPPORTED_AGENTS.map(e=>({value:e.name,label:`${e.displayName} (${e.skillsDir})`}))});if((0,r.isCancel)(n))throw new Error("Initialization canceled.");return n}(t):"",N=o.default.join(n,S),A=o.default.join(N,".sharedev"),C=o.default.join(A,"settings.json");if(await(0,l.pathExists)(C)&&!t.force){if(!y(t))throw new Error(`${C} already exists. Use --force to overwrite.`);if(!await w(`${C} already exists. Overwrite it?`))return void s.loggerService.info("Initialization canceled.")}await(0,l.ensureDir)(N),await async function(e,t){if(!await async function(){return new Promise(e=>{(0,a.exec)("git --version",t=>{e(null===t)})})}())return void s.loggerService.info("Git is not available, skipping git initialization.");if(await async function(e){return new Promise(t=>{(0,a.exec)("git init",{cwd:e},(n,i,a)=>{n?s.loggerService.warn(`Failed to initialize git repository: ${a.trim()||n.message}`):s.loggerService.info(`Git repository initialized: ${e}`),t()})})}(e),await async function(e){const t=o.default.join(e,".gitignore");await(0,l.writeTextFile)(t,".sharedev\n"),s.loggerService.info(`.gitignore created: ${t}`)}(e),t.yes){const n=t.remoteUrl?.trim();return void(n&&await _(e,n))}if(!y(t))throw new Error("Non-interactive mode requires --yes.");if(!await w("Do you want to bind a remote git repository?"))return;const n=await async function(e){const t=await(0,r.text)({message:"Enter git remote repository URL:",placeholder:"https://github.com/example/repo.git",initialValue:e||void 0});if((0,r.isCancel)(t))throw new Error("Git remote binding canceled.");return t.trim()}(t.remoteUrl?.trim());n&&await _(e,n)}(N,t),await(0,l.writeJsonFile)(C,i),s.loggerService.success(`Initialization completed: ${C}`),s.loggerService.info(`Workspace folder created: ${N}`);const O=function(e,t,n,i,a){const o={certificate:a.certificate,domain:a.domain,settingsPath:i,settingsDir:n};return{cwd:t,verbose:e.verbose,settings:o,workspaceRoot:n}}(e,N,A,C,i);await async function(e,t,n,i){const a=[];(n.pullAllApl||n.pullAllPwc)&&a.push(async function(e,t){const n=o.default.join(e.settings.settingsDir,"docs"),i=await(0,u.downloadAndExtractDoc)(n,{includeApl:t.pullAllApl,includePwc:t.pullAllPwc});s.loggerService.success("Documentation download complete."),t.pullAllApl&&s.loggerService.info(`APL docs: ${i.aplPath}`),t.pullAllPwc&&s.loggerService.info(`PWC docs: ${i.pwcPath}`)}(e,n)),(n.pullAllApl||n.pullAllPwc)&&a.push(async function(e,t,n){await(0,g.runSpecInit)(e.cwd,{agentName:n,interactive:y(t),overwriteIfExists:!0===t.force,showLoading:!1})}(e,t,i)),(n.pullAllApl||n.pullAllPwc)&&(c.requestService.configure(e.settings),a.push(async function(e){const t=o.default.join(e.settings.settingsDir,"dev-metadata"),n=o.default.join(t,"objects"),i=o.default.join(t,"namespaces");s.loggerService.info("Downloading metadata...");const[a,r]=await Promise.all([(0,d.getObjectDescribeList)(),(0,d.getRuntimeNamespaceList)()]),c=(0,d.filterObjectDescribeList)(a);await(0,m.writeObjectDescribeIndex)(n,c);let l=0,p=0;for(const e of c)try{const t=await(0,d.getObjectDescribeByApiName)(e.api_name);await(0,m.writeObjectDescribeFile)(n,t),l+=1}catch{p+=1}await(0,m.writeNamespaceMetadataFile)(i,r.raw),s.loggerService.success(`Metadata download complete: objects=${l}${p?`, failed=${p}`:""}, namespaces=${r.namespaces.length}`)}(e))),n.pullAllApl&&a.push(async function(e){s.loggerService.info("Pulling all APL functions..."),await(0,p.aplPullCommand)(void 0,function(e){return{...e,namespace:"apl",commandName:"pull",args:["--all"],workingDir:e.cwd}}(e),{all:!0})}(e)),n.pullAllPwc&&a.push(async function(e){s.loggerService.info("Pulling all PWC components...");const t=(0,f.pwcPullCommand)(void 0,{all:!0,type:h.PWCType.Component},e);s.loggerService.info("Pulling all PWC plugins...");const n=(0,f.pwcPullCommand)(void 0,{all:!0,type:h.PWCType.Plugin},e);await Promise.all([t,n])}(e));const r=(await Promise.allSettled(a)).find(e=>"rejected"===e.status);if(r&&"rejected"===r.status)throw r.reason}(O,t,E,j)};const a=n(1421),o=i(n(6760)),r=n(321),s=n(3333),c=n(2088),l=n(5409),p=n(9739),u=n(901),d=n(6973),m=n(9207),f=n(7363),h=n(1851),g=n(3299),v=n(8102);function y(e){return process.stdin.isTTY&&process.stdout.isTTY&&!e.yes}function b(e){if(!v.SUPPORTED_AGENTS.some(t=>t.name===e))throw new Error(`Unsupported agent: ${e}.`)}async function x(e,t=""){return function(e){if((0,r.isCancel)(e))throw new Error("Initialization canceled.");return e.trim()}(await(0,r.text)({message:e,placeholder:t||void 0,initialValue:t||void 0}))||t}async function w(e,t=!1){const n=await(0,r.confirm)({message:e,initialValue:t});if((0,r.isCancel)(n))throw new Error("Initialization canceled.");return n}async function _(e,t){return new Promise(n=>{(0,a.exec)(`git remote add origin ${t}`,{cwd:e},(e,i,a)=>{e?s.loggerService.warn(`Failed to add git remote: ${a.trim()||e.message}`):s.loggerService.info(`Git remote added: origin -> ${t}`),n()})})}},7787(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.objectDevObjectPullCommand=d,t.objectDevObjectPushCommand=async function(e,t){const n=P(t.apiName);if(!n)throw new Error("Invalid arguments: use --apiName <apiName>.");const i=await(0,p.readObjectDevObjectPushDataFromLocal)(e,{objectApiName:n,includeLayout:!0===t.layout}),a="new"===i.objectStatus;a||await y("pre-pull",async()=>{await g(e,{objectApiName:n,silent:!0})}),await y("push request",async()=>{const n=a?(0,s.getShareCliCommandPath)("objectDev","createObjectDescribe"):(0,s.getShareCliCommandPath)("objectDev","updateObjectDescribe");await b(e,["object","push"],{requestPayload:{commandPath:n,data:{json_data:JSON.stringify(i.objectData),json_layout:!0===t.layout?JSON.stringify({layouts:i.layouts}):null,include_layout:!0===t.layout,active:!0,json_list_layout:null,describe_extra:i.objectExtra??{},i18nInfoList:[]}},silent:!0})}),await y("post-pull",async()=>{await v(e,{objectApiName:n,silent:!0})}),await(0,p.updateObjectDevObjectStatus)(e,{objectApiName:n,status:"unchanged"}),await(0,p.updateObjectDevObjectRelatedStatus)(e,{objectApiName:n,status:"unchanged",includeLayouts:!0===t.layout}),l.loggerService.success(`Push completed successfully: object (${n})`)},t.objectDevObjectCreateCommand=async function(e,t){const n=P(t.apiName);if(!n)throw new Error("Invalid arguments: use --apiName <apiName>.");k(n);const i=P(t.data);if(!i)throw new Error("Invalid arguments: use --data <json>.");let o;try{const e=JSON.parse(i);if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("data must be a JSON object.");o=e}catch(e){throw new Error(`Invalid --data JSON: ${e.message}`)}const r=a.default.join(e.cwd,"tenant-config","objects"),s=a.default.join(r,n),u=a.default.join(s,`${n}.object-meta.xml`);await(0,c.ensureDir)(s),await(0,c.writeTextFile)(u,await(0,p.buildObjectMetaXmlFromJson)(o,"new",u)),l.loggerService.success("Command completed: object create"),l.loggerService.info(`Object metadata created: ${u}`)},t.objectDevObjectUpdateCommand=async function(e,t){const n=P(t.apiName);if(!n)throw new Error("Invalid arguments: use --apiName <apiName>.");k(n);const i=P(t.data);if(!i)throw new Error("Invalid arguments: use --data <json>.");let o;try{const e=JSON.parse(i);if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("data must be a JSON object.");o=e}catch(e){throw new Error(`Invalid --data JSON: ${e.message}`)}const r=a.default.join(e.cwd,"tenant-config","objects"),s=a.default.join(r,n),u=a.default.join(s,`${n}.object-meta.xml`);if(!await(0,c.pathExists)(u))throw new Error(`Object metadata file not found: ${u}`);await(0,c.writeTextFile)(u,await(0,p.buildObjectMetaXmlFromJson)(o,"modified",u)),l.loggerService.success("Command completed: object update"),l.loggerService.info(`Object metadata updated: ${u}`)},t.objectDevFieldPushCommand=async function(e,t){const n=P(t.objectApiName);if(!n)throw new Error("Invalid arguments: use --objectApiName <apiName>.");const i=P(t.fieldApiName);if(!i)throw new Error("Invalid arguments: use --fieldApiName <apiName>.");const a=await(0,p.readObjectDevFieldPushDataFromLocal)(e,{objectApiName:n,fieldApiName:i}),o="new"===a.fieldStatus;o||await y("pre-pull",async()=>{await g(e,{objectApiName:n,silent:!0})}),await y("push request",async()=>{const t=o?(0,s.getShareCliCommandPath)("objectDev","addDescribeCustomField"):(0,s.getShareCliCommandPath)("objectDev","updateCustomFieldDescribe");await b(e,["field","push"],{requestPayload:{commandPath:t,data:{describeAPIName:a.objectApiName,field_describe:JSON.stringify(a.fieldDescribe),layout_list:"[]",group_fields:"[]",persistentDataCalc:"",describe_extra:{fields:a.describeExtra},fieldsExtra:[],i18nInfoList:[]}},silent:!0})}),await y("post-pull",async()=>{await v(e,{objectApiName:n,silent:!0})}),l.loggerService.success(`Push completed successfully: field (${n}.${i})`)},t.objectDevFieldCreateCommand=async function(e,t){const n=P(t.objectApiName);if(!n)throw new Error("Invalid arguments: use --objectApiName <apiName>.");k(n);const i=P(t.apiName)??P(t.fieldApiName);if(!i)throw new Error("Invalid arguments: use --apiName <apiName>.");k(i);const o=P(t.data);if(!o)throw new Error("Invalid arguments: use --data <json>.");let r;try{const e=JSON.parse(o);if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("data must be a JSON object.");r=e}catch(e){throw new Error(`Invalid --data JSON: ${e.message}`)}const s=a.default.join(e.cwd,"tenant-config","objects"),u=a.default.join(s,n,"fields"),d=a.default.join(u,`${i}.field-meta.xml`);await(0,c.ensureDir)(u),await(0,c.writeTextFile)(d,await(0,p.buildObjectFieldMetaXmlFromJson)(r,"new",d)),l.loggerService.success("Command completed: field create"),l.loggerService.info(`Field metadata created: ${d}`)},t.objectDevFieldUpdateCommand=async function(e,t){const n=P(t.objectApiName);if(!n)throw new Error("Invalid arguments: use --objectApiName <apiName>.");k(n);const i=P(t.apiName)??P(t.fieldApiName);if(!i)throw new Error("Invalid arguments: use --apiName <apiName>.");k(i);const o=P(t.data);if(!o)throw new Error("Invalid arguments: use --data <json>.");let r;try{const e=JSON.parse(o);if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("data must be a JSON object.");r=e}catch(e){throw new Error(`Invalid --data JSON: ${e.message}`)}const s=a.default.join(e.cwd,"tenant-config","objects"),u=a.default.join(s,n,"fields"),d=a.default.join(u,`${i}.field-meta.xml`);if(!await(0,c.pathExists)(d))throw new Error(`Field metadata file not found: ${d}`);await(0,c.writeTextFile)(d,await(0,p.buildObjectFieldMetaXmlFromJson)(r,"modified",d)),l.loggerService.success("Command completed: field update"),l.loggerService.info(`Field metadata updated: ${d}`)},t.objectDevLayoutPullCommand=m,t.objectDevLayoutPushCommand=async function(e,t){const n=P(t.objectApiName);if(!n)throw new Error("Invalid arguments: use --objectApiName <apiName>.");const i=P(t.layoutApiName),a=P(t.type),o=await(0,p.readObjectDevLayoutPushDataFromLocal)(e,{objectApiName:n,layoutApiName:i,layoutType:a}),r="new"===o.layoutStatus;r||await y("pre-pull",async()=>{await g(e,{objectApiName:n,silent:!0,layoutPull:{layoutApiName:i,type:a}})}),o.usedDefaultLayoutType&&l.loggerService.warn("Layout type is missing in layout metadata and --type was not provided. Fallback to default type: detail.");const c=o.layoutType.toLowerCase(),u="list"===c||"list_layout"===c?{commandPath:r?(0,s.getShareCliCommandPath)("objectDev","createViewLayout"):(0,s.getShareCliCommandPath)("objectDev","updateViewLayout"),data:{layoutData:o.layoutData,draftData:{},active:!0,describeExtra:{},persistentDataCalc:"",fieldsExtra:[],appId:"CRM"}}:{commandPath:r?(0,s.getShareCliCommandPath)("objectDev","createDesignerLayout"):(0,s.getShareCliCommandPath)("objectDev","updateDesignerLayout"),data:{apiName:o.objectApiName,layoutType:o.layoutType,appId:"CRM",persistentDataCalc:"",layoutData:o.layoutData,describeData:o.describeData,describeExtra:{},fieldsExtra:[],i18nInfoList:[]}};await y("push request",async()=>{await b(e,["layout","push"],{requestPayload:u,silent:!0})}),await y("post-pull",async()=>{await v(e,{objectApiName:n,silent:!0,layoutPull:{layoutApiName:i,type:a}})}),l.loggerService.success(`Push completed successfully: layout (${n}.${o.layoutApiName})`)},t.objectDevLayoutRulePullCommand=f,t.objectDevLayoutRulePushCommand=async function(e,t){const n=P(t.objectApiName);if(!n)throw new Error("Invalid arguments: use --objectApiName <apiName>.");const i=P(t.layoutRuleApiName);if(!i)throw new Error("Invalid arguments: use --layoutRuleApiName <apiName>.");const a=await(0,p.readObjectDevLayoutRulePushDataFromLocal)(e,{objectApiName:n,layoutRuleApiName:i}),o="new"===a.layoutRuleStatus;o||await y("pre-pull",async()=>{await g(e,{objectApiName:n,silent:!0,layoutRulePull:{}})}),await y("push request",async()=>{const t=o?(0,s.getShareCliCommandPath)("objectDev","createLayoutRule"):(0,s.getShareCliCommandPath)("objectDev","updateLayoutRule");await b(e,["layout-rule","push"],{requestPayload:{commandPath:t,data:{json_data:JSON.stringify(a.layoutRuleData)}},silent:!0})}),await y("post-pull",async()=>{await v(e,{objectApiName:n,silent:!0,layoutRulePull:{}})}),l.loggerService.success(`Push completed successfully: layout-rule (${n}.${i})`)},t.objectDevValidateRulePullCommand=h,t.objectDevValidateRuleCreateCommand=async function(e,t){const n=P(t.apiName);if(!n)throw new Error("Invalid arguments: use --apiName <apiName>.");k(n);const i=P(t.data);if(!i)throw new Error("Invalid arguments: use --data <json>.");let o;try{const e=JSON.parse(i);if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("data must be a JSON object.");o=e}catch(e){throw new Error(`Invalid --data JSON: ${e.message}`)}const r=P(o.describe_api_name)??P(o.describeApiName);if(!r)throw new Error("Invalid --data JSON: missing describe_api_name (or describeApiName).");k(r);const s=a.default.join(e.cwd,"tenant-config","objects",r,"validate-rules"),u=a.default.join(s,`${n}.validate-rule-meta.xml`);await(0,c.ensureDir)(s),await(0,c.writeTextFile)(u,await(0,p.buildObjectValidateRuleMetaXmlFromJson)(o,"new",u)),l.loggerService.success("Command completed: validate-rule create"),l.loggerService.info(`Validate-rule metadata created: ${u}`)},t.objectDevValidateRulePushCommand=async function(e,t){const n=P(t.objectApiName);if(!n)throw new Error("Invalid arguments: use --objectApiName <apiName>.");const i=P(t.apiName);if(!i)throw new Error("Invalid arguments: use --apiName <apiName>.");const a=await(0,p.readObjectDevValidateRulePushDataFromLocal)(e,{objectApiName:n,validateRuleApiName:i}),o="new"===a.validateRuleStatus,r=o?(0,s.getShareCliCommandPath)("objectDev","createValidateRule"):(0,s.getShareCliCommandPath)("objectDev","updateValidateRule");o||await y("pre-pull",async()=>{await h(e,{apiName:n},{statusMode:"preserve-existing",silent:!0})}),await y("push request",async()=>{await b(e,["validate-rule","push"],{requestPayload:{commandPath:r,data:{json_data:JSON.stringify(a.validateRuleData)}},silent:!0})}),o||await y("post-pull",async()=>{await h(e,{apiName:n},{statusMode:"reset-unchanged",silent:!0})}),await(0,p.updateObjectDevValidateRuleStatus)(e,{objectApiName:n,validateRuleApiName:i,status:"unchanged"}),l.loggerService.success(`Push completed successfully: validate-rule (${n}.${i})`)};const a=i(n(6760)),o=n(321),r=n(2341),s=n(2351),c=n(5409),l=n(3333),p=n(4431);class u extends Error{constructor(e){super(e),this.name="ObjectDevFatalResponseError"}}async function d(e,t,n={}){const i=P(t.apiName);if(!0===t.custom&&!0===t.package)throw new Error("Invalid arguments: use either --custom or --package, not both.");const a=!0===t.all&&!i;let o=i?[i]:[];if(a){const e=!0===t.custom?"custom":!0===t.package?"package":null,i=e??"all";n.silent||l.loggerService.startLoading(`Fetching object apiName list for object pull (${i})`);try{o=await(0,r.getAllObjectApiNamesForObjectPull)(e)}finally{n.silent||l.loggerService.stopLoading()}n.silent||l.loggerService.info(`Object apiName list fetched: total=${o.length}, mode=${i}`)}await b(e,["object","pull"],{requestPayload:{commandPath:(0,s.getShareCliCommandPath)("objectDev","queryDescribeListByApiName"),data:{describe_apiname_list:o,excludeBigObject:!0,include_describe_extra:!0}},pullScaffold:{enable:!0,pullAll:a,fallbackObjectApiNames:o,statusMode:n.statusMode??"reset-unchanged"},printRawResponse:!1,silent:!0===n.silent})}async function m(e,t,n={}){const i=P(t.layoutApiName),a=P(t.objectApiName),o=L((r=t.objectApiNames)?r.split(",").map(e=>e.trim()).filter(Boolean):[],a?[a]:[]);var r;if(!o.length)throw new Error("Invalid arguments: use --objectApiName <apiName> or --objectApiNames <a,b>.");const c=P(t.type)??"detail",l=P(t.namespace);for(const t of o){const a={objectDescribeApiName:t,layoutType:c,sourceInfo:"object_management"};l&&(a.namespace=l),await b(e,["layout","pull"],{requestPayload:{commandPath:(0,s.getShareCliCommandPath)("objectDev","queryLayoutByObjDescribeApiName"),data:a},layoutPullScaffold:{enable:!0,objectApiName:t,requestedLayoutApiName:i,statusMode:n.statusMode??"reset-unchanged"},printRawResponse:!1,silent:!0===n.silent})}}async function f(e,t,n={}){const i=P(t.objectApiName);if(!i)throw new Error("Invalid arguments: use --objectApiName <apiName>.");const a=P(t.namespace)??"flow";n.silent||l.loggerService.startLoading(`[1/2] Querying layout-rule list for object ${i}`);let o=[];try{o=function(e){const t=new Set,n=new WeakSet,i=[e];for(;i.length;){const e=i.pop();if(!e||"object"!=typeof e)continue;if(n.has(e))continue;if(n.add(e),Array.isArray(e)){for(const t of e)i.push(t);continue}const a=e,o=a.layoutRuleList??a.layout_rule_list;if(Array.isArray(o))for(const e of o){if(!e||"object"!=typeof e||Array.isArray(e))continue;const n=e,i=[n.api_name,n.apiName,n.layout_rule_api_name,n.layoutRuleApiName];for(const e of i)if("string"==typeof e&&e.trim()){t.add(e.trim());break}}for(const e of Object.values(a))e&&"object"==typeof e&&i.push(e)}return Array.from(t).sort((e,t)=>e.localeCompare(t))}(N(await(0,r.executeObjectDevShareCli)((0,s.getShareCliCommandPath)("objectDev","queryLayoutRuleRelatedInfo"),{describeApiName:i,sourceInfo:"object_management",namespaceList:[a],includeDescribe:!0,includeLayout:!0}),"layout-rule.pull.QueryLayoutRuleRelatedInfo").data)}finally{n.silent||l.loggerService.stopLoading()}if(!o.length)return void(n.silent||(l.loggerService.warn(`No layout-rule apiName found for object ${i} (namespace=${a}).`),C({objectApiName:i,namespace:a,found:0,written:0,failed:0,outputDir:"(none)"})));n.silent||(l.loggerService.info(`Discovered ${o.length} layout-rule apiName(s): ${function(e){if(!e.length)return"(none)";const t=e.slice(0,5).join(", ");return e.length<=5?t:`${t}, ... (+${e.length-5} more)`}(o)}`),l.loggerService.startLoading(`[2/2] Querying layout-rule details (${o.length} item(s))`));const c=[];try{for(let e=0;e<o.length;e+=1){const t=o[e];n.silent||l.loggerService.updateLoading(`[2/2] Querying layout-rule details (${e+1}/${o.length}): ${t}`);const i=N(await(0,r.executeObjectDevShareCli)((0,s.getShareCliCommandPath)("objectDev","queryLayoutRuleInfo"),{layoutRuleApiName:t}),`layout-rule.pull.QueryLayoutRuleInfo(${t})`);c.push({layoutRuleApiName:t,rawData:i.data})}}finally{n.silent||l.loggerService.stopLoading()}const u=await(0,p.scaffoldObjectDevLayoutRulePullOutput)(e,{objectApiName:i,layoutRules:c,statusMode:n.statusMode??"reset-unchanged"}),d=o.length,m=u.writtenFiles,f=Math.max(d-m,0);n.silent||(l.loggerService.success("Command completed: layout-rule pull"),C({objectApiName:u.objectApiName,namespace:a,found:d,written:m,failed:f,outputDir:u.layoutRulesDir}),T("Layout-rule pull conflicts (local status=modified, skipped overwrite):",u.conflictFiles))}async function h(e,t,n={}){const i=P(t.apiName);if(!i)throw new Error("Invalid arguments: use --apiName <apiName>.");n.silent||l.loggerService.startLoading(`Querying validate-rule list for object ${i}`);let a=[];try{a=function(e){const t=new WeakSet,n=[e];for(;n.length;){const e=n.pop();if(!e||"object"!=typeof e)continue;if(t.has(e))continue;if(t.add(e),Array.isArray(e)){for(const t of e)n.push(t);continue}const i=e,a=i.ruleList??i.rule_list;if(Array.isArray(a))return a.filter(e=>e&&"object"==typeof e&&!Array.isArray(e)).map(e=>e);for(const e of Object.values(i))e&&"object"==typeof e&&n.push(e)}return[]}(N(await(0,r.executeObjectDevShareCli)((0,s.getShareCliCommandPath)("objectDev","queryValidateRuleList"),{describeApiName:i}),"validate-rule.pull.list").data)}finally{n.silent||l.loggerService.stopLoading()}if(!a.length)return void(n.silent||(l.loggerService.warn(`No validate-rule found for object ${i}.`),O({objectApiName:i,found:0,written:0,failed:0,outputDir:"(none)"})));const o=a.map(e=>({validateRuleApiName:A(e),rawData:e})),c=await(0,p.scaffoldObjectDevValidateRulePullOutput)(e,{objectApiName:i,validateRules:o,statusMode:n.statusMode??"reset-unchanged"}),u=a.length,d=c.writtenFiles,m=Math.max(u-d,0);n.silent||(l.loggerService.success("Command completed: validate-rule pull"),O({objectApiName:i,found:u,written:d,failed:m,outputDir:c.validateRulesDir}),T("Validate-rule pull conflicts (local status=modified, skipped overwrite):",c.conflictFiles))}async function g(e,t){t.silent||l.loggerService.info(`Pre-pull before push: object pull (${t.objectApiName})`),await d(e,{apiName:t.objectApiName},{statusMode:"preserve-existing",silent:!0===t.silent}),t.layoutPull&&(t.silent||l.loggerService.info(`Pre-pull before push: layout pull (${t.objectApiName})`),await m(e,{objectApiName:t.objectApiName,layoutApiName:t.layoutPull.layoutApiName,type:t.layoutPull.type},{statusMode:"preserve-existing",silent:!0===t.silent})),t.layoutRulePull&&(t.silent||l.loggerService.info(`Pre-pull before push: layout-rule pull (${t.objectApiName})`),await f(e,{objectApiName:t.objectApiName,namespace:t.layoutRulePull.namespace},{statusMode:"preserve-existing",silent:!0===t.silent}))}async function v(e,t){t.silent||l.loggerService.info(`Post-pull after push: object pull (${t.objectApiName})`),await d(e,{apiName:t.objectApiName},{statusMode:"reset-unchanged",silent:!0===t.silent}),t.layoutPull&&(t.silent||l.loggerService.info(`Post-pull after push: layout pull (${t.objectApiName})`),await m(e,{objectApiName:t.objectApiName,layoutApiName:t.layoutPull.layoutApiName,type:t.layoutPull.type},{statusMode:"reset-unchanged",silent:!0===t.silent})),t.layoutRulePull&&(t.silent||l.loggerService.info(`Post-pull after push: layout-rule pull (${t.objectApiName})`),await f(e,{objectApiName:t.objectApiName,namespace:t.layoutRulePull.namespace},{statusMode:"reset-unchanged",silent:!0===t.silent}))}async function y(e,t){const n=(0,o.spinner)();n.start(`Running step: ${e}`);try{await t(),n.stop(`Step completed: ${e}`)}catch(t){throw n.stop(`Step failed: ${e}`),l.loggerService.error(`Push failed at step: ${e}`),t}}async function b(e,t,n={}){const i=!0===n.silent;i||l.loggerService.startLoading(`Executing object-dev command: ${t.join(" ")}`);const a=n.requestPayload?.commandPath??t,o=n.requestPayload?.data,s=n.requestPayload?.others,c=await(0,r.executeObjectDevShareCli)(a,o,s),d=x(c);if(!0!==d.success)throw i||l.loggerService.stopLoading(),j(d.error),new u($({success:!1,message:d.message,data:d.data,error:d.error}));if("help"===_(d.message,d.data))return i||(l.loggerService.stopLoading(),l.loggerService.warn("shareCli returned help information for this command. No local files were generated.")),void E(d.message,d.data);let m,f;if(n.pullScaffold?.enable){const t=(0,p.extractObjectApiNamesFromPullResult)(d.data),i=L(n.pullScaffold.fallbackObjectApiNames,t);m=await(0,p.scaffoldObjectDevPullOutput)(e,{objectApiNames:i,rawResponse:d,pullAll:n.pullScaffold.pullAll,statusMode:n.pullScaffold.statusMode??"reset-unchanged"})}else n.layoutPullScaffold?.enable?f=await(0,p.scaffoldObjectDevLayoutPullOutput)(e,{objectApiName:n.layoutPullScaffold.objectApiName,rawResponse:d.data,requestedLayoutApiName:n.layoutPullScaffold.requestedLayoutApiName,statusMode:n.layoutPullScaffold.statusMode??"reset-unchanged"}):t.includes("pull")&&!i&&l.loggerService.info("Local file operation placeholder is reserved for this pull command.");if(i||(l.loggerService.stopLoading(),l.loggerService.success(`Command completed: ${t.join(" ")}`)),!i&&d.message?.trim()&&l.loggerService.info(`Message: ${d.message.trim()}`),!i&&n.printRawResponse?(l.loggerService.info("Raw response:"),l.loggerService.printJson(c)):!i&&n.printRawResponse&&void 0!==d.data&&(l.loggerService.info("Response data:"),l.loggerService.printJson(d.data)),!i&&m){l.loggerService.info(`Objects root: ${m.objectsRoot}`);const e=L(n.pullScaffold?.fallbackObjectApiNames??[],(0,p.extractObjectApiNamesFromPullResult)(d.data)).length,t=m.createdObjects+m.skippedObjects,i=Math.max(e-t,0);l.loggerService.info(`Object pull summary: found=${e}, succeeded=${t}, failed=${i}`),T("Object pull conflicts (local status=modified, skipped overwrite):",m.conflictFiles),n.pullScaffold?.pullAll&&0===e&&l.loggerService.warn("No object apiName could be resolved from pull-all response. Only base folders were prepared.")}!i&&f&&(l.loggerService.info(`Layout xml output: ${f.layoutsDir}`),l.loggerService.info(`Layout pull summary: object=${f.objectApiName}, matched=${f.matchedLayouts}, written=${f.writtenFiles}`),T("Layout pull conflicts (local status=modified, skipped overwrite):",f.conflictFiles),0===f.matchedLayouts&&l.loggerService.warn("No layout records were resolved from pull response."))}function x(e){const t=function(e){if(!e||"object"!=typeof e)return;const t=e,n=t.data;if(!n||"object"!=typeof n||Array.isArray(n))return;const i=n,a=Object.prototype.hasOwnProperty.call(i,"code"),o=Object.prototype.hasOwnProperty.call(i,"data")?i.data:void 0,r=a?o:n,s=w(t.code),c=w(i.code);return{success:a?!1!==s&&!1!==c:!1!==s,message:("string"==typeof i.message?i.message:void 0)??("string"==typeof t.message?t.message:void 0),data:r,error:r&&"object"==typeof r&&!Array.isArray(r)?r.error:void 0}}(e);return t||{success:void 0,message:void 0,data:void 0,error:void 0}}function w(e){if("number"==typeof e)return 0===e;if("string"==typeof e){const t=e.trim().toUpperCase();return"OK"===t||"0"===t||"SUCCESS"===t}}function _(e,t){return(e??"").trim().toLowerCase().includes("fallback to help")||S(t)?"help":"business"}function S(e){if(!e||"object"!=typeof e)return!1;const t=e;return"string"==typeof t.command||"string"==typeof t.usage||"boolean"==typeof t.hasSubCommands||Array.isArray(t.subCommands)||void 0!==t.input||void 0!==t.output}function E(e,t){if(e&&l.loggerService.info(`Message: ${e}`),!S(t))return l.loggerService.info("Help payload:"),void l.loggerService.printJson(t);const n=["Share CLI Help"];t.command&&n.push(`- Command: ${t.command}`),t.description&&n.push(`- Description: ${t.description}`),t.usage&&n.push(`- Usage: ${t.usage}`),"boolean"==typeof t.hasSubCommands&&n.push(`- Has Sub Commands: ${String(t.hasSubCommands)}`),l.loggerService.printRaw(`${n.join("\n")}\n`),Array.isArray(t.subCommands)&&t.subCommands.length&&(l.loggerService.info("Sub commands:"),l.loggerService.printJson(t.subCommands.map(e=>({command:e.command??"",description:e.description??""})))),void 0!==t.input&&(l.loggerService.info("Input schema:"),l.loggerService.printJson(t.input)),void 0!==t.output&&(l.loggerService.info("Output schema:"),l.loggerService.printJson(t.output))}function j(e){if(null!=e)if("string"!=typeof e){if("object"==typeof e){const t=e,n="string"==typeof t.code?t.code:void 0,i="string"==typeof t.message?t.message:void 0,a="string"==typeof t.hint?t.hint:void 0;return n||i||a?((n||i)&&l.loggerService.error(`${n?n+": ":""}${i}`),void(a&&l.loggerService.warn(`Hint: ${a}`))):(l.loggerService.error("Error payload:"),void l.loggerService.printJson(e))}l.loggerService.error(String(e))}else l.loggerService.error(e);else l.loggerService.error("shareCli returned an error, but error field is empty.")}function N(e,t){const n=x(e);if(!0!==n.success)throw j(n.error),new u(`${t} failed: ${$({success:!1,message:n.message,data:n.data,error:n.error})}`);if("help"===_(n.message,n.data))throw E(n.message,n.data),new u(`${t} failed: shareCli returned help payload.`);return n}function A(e){const t=[e.api_name,e.apiName,e.rule_api_name,e.ruleApiName];for(const e of t)if("string"==typeof e&&e.trim())return e.trim();return""}function C(e){const t=[["Object",e.objectApiName],["Namespace",e.namespace],["Found",String(e.found)],["Written",String(e.written)],["Failed",String(e.failed)],["Output",e.outputDir]],n=Math.max(...t.map(([e])=>e.length)),i=["Layout-rule pull summary"];for(const[e,a]of t)i.push(`- ${e.padEnd(n," ")} : ${a}`);l.loggerService.printRaw(`${i.join("\n")}\n`)}function O(e){const t=[["Object",e.objectApiName],["Found",String(e.found)],["Written",String(e.written)],["Failed",String(e.failed)],["Output",e.outputDir]],n=Math.max(...t.map(([e])=>e.length)),i=["Validate-rule pull summary"];for(const[e,a]of t)i.push(`- ${e.padEnd(n," ")} : ${a}`);l.loggerService.printRaw(`${i.join("\n")}\n`)}function T(e,t){t.length&&(l.loggerService.warn(`${e} total=${t.length}`),l.loggerService.printRaw(`${t.map(e=>`- content=${e.contentName}, apiName=${e.apiName}`).join("\n")}\n`))}function $(e){if(e.message?.trim())return e.message.trim();if("string"==typeof e.error&&e.error.trim())return e.error.trim();if(e.error&&"object"==typeof e.error){const t=e.error,n=t.message??t.errorMessage??t.msg;if("string"==typeof n&&n.trim())return n.trim()}return"shareCli execute failed."}function P(e){const t=e?.trim();return t||void 0}function k(e){if(!/^[A-Za-z][A-Za-z0-9_]*$/.test(e))throw new Error(`Invalid apiName "${e}". Use letters, numbers, and underscores only, and start with a letter.`)}function L(...e){const t=new Set;for(const n of e)for(const e of n){const n=P(e);n&&t.add(n)}return Array.from(t).sort((e,t)=>e.localeCompare(t))}},2341(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.executeObjectDevShareCli=r,t.getAllObjectApiNamesForObjectPull=async function(e=null){return function(e){const t=new Set,n=new WeakSet,i=[e];for(;i.length;){const e=i.pop();if(!e||"object"!=typeof e)continue;if(n.has(e))continue;if(n.add(e),Array.isArray(e)){for(const t of e)i.push(t);continue}const a=e;for(const[e,n]of Object.entries(a)){if(s(e)&&"string"==typeof n){const e=n.trim();e&&t.add(e)}n&&"object"==typeof n&&i.push(n)}}return Array.from(t).sort((e,t)=>e.localeCompare(t))}(await r((0,a.getShareCliCommandPath)("objectDev","queryDescribeManageList"),{...o,describeDefineType:e}))};const i=n(8554),a=n(2351),o={isIncludeFieldDescribe:!1,isIncludeSystemObj:!1,isIncludeUnActived:!0,packageName:"CRM",sourceInfo:"object_management",includeControlLevel:!0};async function r(e,t,n){return(0,i.executeShareCliCommand)(e,t,n)}function s(e){return"api_name"===e||"apiName"===e||"describe_apiname"===e||"describeApiName"===e||"object_api_name"===e||"objectApiName"===e}},4431(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveObjectDevObjectsRoot=d,t.readObjectDevObjectPushDataFromLocal=async function(e,t){const n=$(t.objectApiName);if(!n)throw new Error("Failed to push object: object apiName is empty.");const i=o.default.join(d(e),n),a=o.default.join(i,`${n}.object-meta.xml`);if(!await(0,r.pathExists)(a))throw new Error(`Object metadata file not found: ${a}`);const s=await N(a,"Object"),c=await C(a,"Object"),l=await A(a,"Object"),p=o.default.join(i,"fields"),u=(await j(p,".field-meta.xml")).filter(e=>"_template.field-meta.xml"!==e),m=[];for(const e of u){const t=o.default.join(p,e),n=await N(t,"ObjectField"),i=$(e.replace(/\.field-meta\.xml$/i,"")),a=S(n)||i;a&&m.push([a,n])}s.fields=Object.fromEntries(m);const f=!0===t.includeLayout,h=o.default.join(i,"layouts"),g=f?(await j(h,".layout-meta.xml")).filter(e=>"_template.layout-meta.xml"!==e):[],v=[];if(f)for(const e of g){const t=o.default.join(h,e),n=await N(t,"ObjectLayout");v.push(n)}return{objectApiName:n,objectStatus:c,objectData:s,objectExtra:l,layouts:v,objectDir:i,objectFilePath:a,fieldFileCount:u.length,layoutFileCount:g.length}},t.readObjectDevFieldPushDataFromLocal=async function(e,t){const n=$(t.objectApiName);if(!n)throw new Error("Failed to push fields: object apiName is empty.");const i=o.default.join(d(e),n),a=o.default.join(i,`${n}.object-meta.xml`),s=function(e){const t=e.fields;return t&&"object"==typeof t&&!Array.isArray(t)?t:{}}(await(0,r.pathExists)(a)?await A(a,"Object"):{}),c=o.default.join(i,"fields"),l=(await j(c,".field-meta.xml")).filter(e=>"_template.field-meta.xml"!==e);if(!l.length)throw new Error(`No field metadata file found in: ${c}`);const p=$(t.fieldApiName);if(!p)throw new Error("Failed to push fields: --fieldApiName is required.");for(const e of l){const t=o.default.join(c,e),a=await N(t,"ObjectField"),r=$(e.replace(/\.field-meta\.xml$/i,"")),l=S(a)||r;if(l&&l===p)return{objectApiName:n,fieldApiName:l,fieldStatus:await C(t,"ObjectField"),fieldDescribe:a,describeExtra:s,objectDir:i,fieldsDir:c}}throw new Error(`Field metadata not found for object ${n}: ${p}`)},t.readObjectDevLayoutPushDataFromLocal=async function(e,t){const n=$(t.objectApiName);if(!n)throw new Error("Failed to push layout: object apiName is empty.");const i=o.default.join(d(e),n),a=o.default.join(i,`${n}.object-meta.xml`);if(!await(0,r.pathExists)(a))throw new Error(`Object metadata file not found: ${a}`);const s=await N(a,"Object"),c=o.default.join(i,"fields"),l=(await j(c,".field-meta.xml")).filter(e=>"_template.field-meta.xml"!==e),p=[];for(const e of l){const t=o.default.join(c,e),n=await N(t,"ObjectField"),i=$(e.replace(/\.field-meta\.xml$/i,"")),a=S(n)||i;a&&p.push([a,n])}s.fields=Object.fromEntries(p);const u=o.default.join(i,"layouts"),m=(await j(u,".layout-meta.xml")).filter(e=>"_template.layout-meta.xml"!==e);if(!m.length)throw new Error(`No layout metadata file found in: ${u}`);let f=$(t.layoutApiName??"");if(!f){if(1!==m.length)throw new Error("Invalid arguments: use --layoutApiName <apiName> when multiple layouts exist.");f=$(m[0].replace(/\.layout-meta\.xml$/i,""))}const h=o.default.join(u,`${f}.layout-meta.xml`);if(!await(0,r.pathExists)(h))throw new Error(`Layout metadata file not found: ${h}`);const g=await N(h,"ObjectLayout"),v=await C(h,"ObjectLayout"),y=function(e){const t=[e.layoutType,e.layout_type];for(const e of t)if("string"==typeof e){const t=$(e);if(t)return t}return""}(g),b=$(t.layoutType??""),x=y||b;return{objectApiName:n,layoutApiName:f,layoutStatus:v,layoutType:x||"detail",usedDefaultLayoutType:!x,layoutData:g,describeData:s,objectDir:i,layoutsDir:u,layoutFilePath:h}},t.readObjectDevLayoutRulePushDataFromLocal=async function(e,t){const n=$(t.objectApiName);if(!n)throw new Error("Failed to push layout-rule: object apiName is empty.");const i=$(t.layoutRuleApiName);if(!i)throw new Error("Failed to push layout-rule: layout-rule apiName is empty.");const a=o.default.join(d(e),n),s=o.default.join(a,"layout-rules"),c=o.default.join(s,`${i}.layout-rule-meta.xml`);if(!await(0,r.pathExists)(c))throw new Error(`Layout-rule metadata file not found: ${c}`);const l=await N(c,"ObjectLayoutRule");return{objectApiName:n,layoutRuleApiName:i,layoutRuleStatus:await C(c,"ObjectLayoutRule"),layoutRuleData:l,objectDir:a,layoutRulesDir:s,layoutRuleFilePath:c}},t.extractObjectApiNamesFromPullResult=function(e){const t=y(e);if(t.length>0)return t.map(e=>e.objectApiName).sort((e,t)=>e.localeCompare(t));const n=new Set,i=new WeakSet,a=[e];for(;a.length;){const e=a.pop();if(!e||"object"!=typeof e)continue;if(i.has(e))continue;if(i.add(e),Array.isArray(e)){for(const t of e)a.push(t);continue}const t=e;for(const[e,i]of Object.entries(t)){if(T(e)&&"string"==typeof i){const e=$(i);e&&n.add(e)}i&&"object"==typeof i&&a.push(i)}}return Array.from(n).sort((e,t)=>e.localeCompare(t))},t.scaffoldObjectDevPullOutput=async function(e,t){const n=d(e);await(0,r.ensureDir)(n);const i=t.statusMode??"reset-unchanged";let a=0,s=0,c=0;const l=[],p=void 0!==t.rawResponse?y(t.rawResponse):[],u=new Map;for(const e of p)u.set(e.objectApiName,e);const m=function(...e){const t=new Set;for(const n of e)for(const e of n){const n=$(e);n&&t.add(n)}return Array.from(t).sort((e,t)=>e.localeCompare(t))}(t.objectApiNames.map($).filter(Boolean),p.map(e=>e.objectApiName));for(const e of m){const p=o.default.join(n,e),d=await(0,r.pathExists)(p);await(0,r.ensureDir)(p),d?s+=1:a+=1;const m=o.default.join(p,"fields"),g=o.default.join(p,"layouts");await(0,r.ensureDir)(m),await(0,r.ensureDir)(g),await(0,r.ensureDir)(o.default.join(p,"layout-rules"));const y=o.default.join(p,`${e}.object-meta.xml`),b=u.get(e);if(!b)continue;const x=v(t.rawResponse,e);if(await O(y,"Object"))l.push({contentName:"object",apiName:e});else{const e=await F(y,"Object",i);await(0,r.writeTextFile)(y,await f(b.objectContent,e,y,x)),c+=1}for(const e of b.fields){const t=o.default.join(m,`${e.fieldApiName}.field-meta.xml`);if(await O(t,"ObjectField")){l.push({contentName:"field",apiName:e.fieldApiName});continue}const n=await F(t,"ObjectField",i);await(0,r.writeTextFile)(t,await h(e.content,n,t)),c+=1}}return{objectsRoot:n,createdObjects:a,skippedObjects:s,createdFiles:c,conflictFiles:l}},t.scaffoldObjectDevLayoutPullOutput=async function(e,t){const n=$(t.objectApiName);if(!n)throw new Error("Failed to generate layout xml: object apiName is empty.");const i=o.default.join(d(e),n),a=o.default.join(i,"layouts");await(0,r.ensureDir)(a);const s=t.statusMode??"reset-unchanged",c=$(t.requestedLayoutApiName??""),l=function(e){const t=function(e){const t=[],n=new WeakSet,i=[e];for(;i.length;){const e=i.pop();if(!e||"object"!=typeof e)continue;if(n.has(e))continue;if(n.add(e),Array.isArray(e)){for(const t of e)i.push(t);continue}const a=e;for(const e of u){const n=a[e];if(Array.isArray(n))for(const e of n)e&&"object"==typeof e&&!Array.isArray(e)&&t.push(e)}for(const e of Object.values(a))e&&"object"==typeof e&&i.push(e)}return t}(e);if(t.length>0){const e=new Map;for(const n of t){const t=E(n);t&&e.set(t,n)}return Array.from(e.entries()).map(([e,t])=>({layoutApiName:e,content:t})).sort((e,t)=>e.layoutApiName.localeCompare(t.layoutApiName))}const n=new Map,i=new WeakSet,a=[e];for(;a.length;){const e=a.pop();if(!e||"object"!=typeof e)continue;if(i.has(e))continue;if(i.add(e),Array.isArray(e)){for(const t of e)a.push(t);continue}const t=e,o=E(t);o&&n.set(o,t);for(const e of Object.values(t))e&&"object"==typeof e&&a.push(e)}return Array.from(n.entries()).map(([e,t])=>({layoutApiName:e,content:t})).sort((e,t)=>e.layoutApiName.localeCompare(t.layoutApiName))}(t.rawResponse),p=c?l.filter(e=>e.layoutApiName===c):l;let m=0;const f=[];for(const e of p){const t=o.default.join(a,`${e.layoutApiName}.layout-meta.xml`);if(await O(t,"ObjectLayout")){f.push({contentName:"layout",apiName:e.layoutApiName});continue}const n=await F(t,"ObjectLayout",s);await(0,r.writeTextFile)(t,await g(e.content,n,t)),m+=1}return{objectApiName:n,layoutsDir:a,matchedLayouts:p.length,writtenFiles:m,conflictFiles:f}},t.scaffoldObjectDevLayoutRulePullOutput=async function(e,t){const n=$(t.objectApiName);if(!n)throw new Error("Failed to generate layout-rule xml: object apiName is empty.");const i=o.default.join(d(e),n),a=o.default.join(i,"layout-rules");await(0,r.ensureDir)(a);const s=t.statusMode??"reset-unchanged";let c=0;const l=[];for(const e of t.layoutRules){const t=$(e.layoutRuleApiName);if(!t)continue;const n=P(e.rawData),i=o.default.join(a,`${t}.layout-rule-meta.xml`);if(await O(i,"ObjectLayoutRule")){l.push({contentName:"layout-rule",apiName:t});continue}const p=await F(i,"ObjectLayoutRule",s);await(0,r.writeTextFile)(i,await L(n,p,i)),c+=1}return{objectApiName:n,layoutRulesDir:a,writtenFiles:c,conflictFiles:l}},t.readObjectDevValidateRulePushDataFromLocal=m,t.updateObjectDevValidateRuleStatus=async function(e,t){const n=await m(e,{objectApiName:t.objectApiName,validateRuleApiName:t.validateRuleApiName});await(0,r.writeTextFile)(n.validateRuleFilePath,await R(n.validateRuleData,t.status,n.validateRuleFilePath))},t.updateObjectDevObjectStatus=async function(e,t){const n=$(t.objectApiName);if(!n)throw new Error("Failed to update object status: object apiName is empty.");const i=o.default.join(d(e),n),a=o.default.join(i,`${n}.object-meta.xml`);if(!await(0,r.pathExists)(a))throw new Error(`Object metadata file not found: ${a}`);const s=await N(a,"Object"),c=await A(a,"Object");await(0,r.writeTextFile)(a,await f(s,t.status,a,c))},t.updateObjectDevObjectRelatedStatus=async function(e,t){const n=$(t.objectApiName);if(!n)throw new Error("Failed to update object related status: object apiName is empty.");const i=o.default.join(d(e),n),a=o.default.join(i,"fields"),s=(await j(a,".field-meta.xml")).filter(e=>"_template.field-meta.xml"!==e);for(const e of s){const n=o.default.join(a,e),i=await N(n,"ObjectField");await(0,r.writeTextFile)(n,await h(i,t.status,n))}if(!0===t.includeLayouts){const e=o.default.join(i,"layouts"),n=(await j(e,".layout-meta.xml")).filter(e=>"_template.layout-meta.xml"!==e);for(const i of n){const n=o.default.join(e,i),a=await N(n,"ObjectLayout");await(0,r.writeTextFile)(n,await g(a,t.status,n))}}},t.scaffoldObjectDevValidateRulePullOutput=async function(e,t){const n=$(t.objectApiName);if(!n)throw new Error("Failed to generate validate-rule xml: object apiName is empty.");const i=o.default.join(d(e),n),a=o.default.join(i,"validate-rules");await(0,r.ensureDir)(a);const s=t.statusMode??"reset-unchanged";let c=0;const l=[];for(const e of t.validateRules){const t=$(e.validateRuleApiName);if(!t)continue;const n=k(e.rawData),i=o.default.join(a,`${t}.validate-rule-meta.xml`);if(await O(i,"ObjectLayoutRule")){l.push({contentName:"validate-rule",apiName:t});continue}const p=await F(i,"ObjectLayoutRule",s);await(0,r.writeTextFile)(i,await L(n,p,i)),c+=1}return{objectApiName:n,validateRulesDir:a,writtenFiles:c,conflictFiles:l}},t.buildObjectMetaXmlFromJson=f,t.buildObjectFieldMetaXmlFromJson=h,t.buildObjectValidateRuleMetaXmlFromJson=R;const a=i(n(1605)),o=i(n(6760)),r=n(5409),s=n(2706),c=["tenant-config","objects"],l=["objectDescribeList","object_describe_list"],p=["fields","fieldDescribeList","field_describe_list"],u=["layouts","layoutList","layout_list"];function d(e){return o.default.join(e.cwd,...c)}async function m(e,t){const n=$(t.objectApiName);if(!n)throw new Error("Failed to push validate-rule: object apiName is empty.");const i=$(t.validateRuleApiName);if(!i)throw new Error("Failed to push validate-rule: validate-rule apiName is empty.");const a=o.default.join(d(e),n),s=o.default.join(a,"validate-rules"),c=o.default.join(s,`${i}.validate-rule-meta.xml`);if(!await(0,r.pathExists)(c))throw new Error(`Validate-rule metadata file not found: ${c}`);const l=await N(c,"ObjectLayoutRule");return{objectApiName:n,validateRuleApiName:i,validateRuleStatus:await C(c,"ObjectLayoutRule"),validateRuleData:l,objectDir:a,validateRulesDir:s,validateRuleFilePath:c}}async function f(e,t="unchanged",n,i){const a=JSON.stringify(e??null),o=await async function(e){const t='<Object xmlns="http://sharecrm.com/metadata">',n=[" <features>"," <multiFieldSort>true</multiFieldSort>"," <modifyRecord>true</modifyRecord>"," <relatedTeam>true</relatedTeam>"," <globalSearch>true</globalSearch>"," </features>"];if(!e)return{openTag:t,preservedLines:n};if(!await(0,r.pathExists)(e))return{openTag:t,preservedLines:n};const i=await(0,r.readTextFile)(e),a=i.match(/<Object\b[^>]*>/i)?.[0]??t,o=i.match(/<Object\b[^>]*>([\s\S]*?)<\/Object>/i)?.[1];if("string"!=typeof o)return{openTag:a,preservedLines:n};const s=o.replace(/<content>[\s\S]*?<\/content>/i,"").replace(/<status>[\s\S]*?<\/status>/i,"").trim();return s?{openTag:a,preservedLines:s.split(/\r?\n/).map(e=>e.trimEnd())}:{openTag:a,preservedLines:[]}}(n),s=[` <content><![CDATA[${a}]]></content>`],c=void 0===i?o.preservedLines:o.preservedLines.filter(e=>!e.trimStart().startsWith("<extra>"));return c.length>0&&s.push("",...c),void 0!==i&&s.push(""," <extra><![CDATA["+JSON.stringify(i??{})+"]]></extra>"),s.push("",` <status>${t}</status>`),['<?xml version="1.0" encoding="UTF-8"?>',o.openTag,...s,"</Object>",""].join("\n")}async function h(e,t="unchanged",n){const i=JSON.stringify(e??null),a=await async function(e){const t='<ObjectField xmlns="http://sharecrm.com/metadata">',n=[];if(!e)return{openTag:t,preservedLines:n};if(!await(0,r.pathExists)(e))return{openTag:t,preservedLines:n};const i=await(0,r.readTextFile)(e),a=i.match(/<ObjectField\b[^>]*>/i)?.[0]??t,o=i.match(/<ObjectField\b[^>]*>([\s\S]*?)<\/ObjectField>/i)?.[1];if("string"!=typeof o)return{openTag:a,preservedLines:n};const s=o.replace(/<content>[\s\S]*?<\/content>/i,"").replace(/<status>[\s\S]*?<\/status>/i,"").trim();return s?{openTag:a,preservedLines:s.split(/\r?\n/).map(e=>e.trimEnd())}:{openTag:a,preservedLines:[]}}(n),o=[` <content><![CDATA[${i}]]></content>`],s=a.preservedLines;return s.length>0&&o.push("",...s),o.push("",` <status>${t}</status>`),['<?xml version="1.0" encoding="UTF-8"?>',a.openTag,...o,"</ObjectField>",""].join("\n")}async function g(e,t="unchanged",n){const i=JSON.stringify(e??null),a=await async function(e){const t='<ObjectLayout xmlns="http://sharecrm.com/metadata">',n=[];if(!e||!await(0,r.pathExists)(e))return{openTag:t,preservedLines:n};const i=await(0,r.readTextFile)(e),a=i.match(/<ObjectLayout\b[^>]*>/i)?.[0]??t,o=i.match(/<ObjectLayout\b[^>]*>([\s\S]*?)<\/ObjectLayout>/i)?.[1];if("string"!=typeof o)return{openTag:a,preservedLines:n};const s=o.replace(/<content>[\s\S]*?<\/content>/i,"").replace(/<status>[\s\S]*?<\/status>/i,"").trim();return s?{openTag:a,preservedLines:s.split(/\r?\n/).map(e=>e.trimEnd())}:{openTag:a,preservedLines:[]}}(n),o=[` <content><![CDATA[${i}]]></content>`],s=a.preservedLines;return s.length>0&&o.push("",...s),o.push("",` <status>${t}</status>`),['<?xml version="1.0" encoding="UTF-8"?>',a.openTag,...o,"</ObjectLayout>",""].join("\n")}function v(e,t){if(!e||"object"!=typeof e)return{};const n=$(t);if(!n)return{};const i=new WeakSet,a=[e];for(;a.length;){const e=a.pop();if(!e||"object"!=typeof e)continue;if(i.has(e))continue;if(i.add(e),Array.isArray(e)){for(const t of e)a.push(t);continue}const t=e,o=t.describeExtraMap??t.describe_extra_map;if(o&&"object"==typeof o&&!Array.isArray(o)){const e=o[n];return e&&"object"==typeof e&&!Array.isArray(e)?e:{}}for(const e of Object.values(t))e&&"object"==typeof e&&a.push(e)}return{}}function y(e){const t=function(e){const t=[],n=new WeakSet,i=[e];for(;i.length;){const e=i.pop();if(!e||"object"!=typeof e)continue;if(n.has(e))continue;if(n.add(e),Array.isArray(e)){for(const t of e)i.push(t);continue}const a=e;for(const e of l){const n=a[e];if(Array.isArray(n))for(const e of n)e&&"object"==typeof e&&!Array.isArray(e)&&t.push(e)}for(const e of Object.values(a))e&&"object"==typeof e&&i.push(e)}return t}(e),n=new Map;for(const e of t){const t=_(e);if(!t)continue;const i=x(e),a=b(e);n.set(t,{objectApiName:t,objectContent:a,fields:i})}return Array.from(n.values()).sort((e,t)=>e.objectApiName.localeCompare(t.objectApiName))}function b(e){const t={...e};for(const e of p)Object.prototype.hasOwnProperty.call(t,e)&&delete t[e];return t}function x(e){let t=[];for(const n of p){const i=e[n];if(Array.isArray(i)){t=i;break}if(i&&"object"==typeof i){t=Object.entries(i).map(([e,t])=>t&&"object"==typeof t&&!Array.isArray(t)?{...t,__field_key__:e}:{api_name:e,value:t});break}}const n=new Set,i=[];for(let e=0;e<t.length;e+=1){const a=t[e];if(!a||"object"!=typeof a||Array.isArray(a))continue;const o=a,r="string"==typeof o.__field_key__?o.__field_key__:"",s=w(S(o)||$(r)||`field_${e+1}`,n);n.add(s),Object.prototype.hasOwnProperty.call(o,"__field_key__")&&delete o.__field_key__,i.push({fieldApiName:s,content:o})}return i}function w(e,t){const n=$(e)||"field";if(!t.has(n))return n;let i=2,a=`${n}_${i}`;for(;t.has(a);)i+=1,a=`${n}_${i}`;return a}function _(e){const t=[e.api_name,e.apiName,e.describe_api_name,e.describeApiName,e.object_api_name,e.objectApiName];for(const e of t)if("string"==typeof e){const t=$(e);if(t)return t}return""}function S(e){const t=[e.field_api_name,e.fieldApiName,e.api_name,e.apiName,e.describe_api_name,e.describeApiName];for(const e of t)if("string"==typeof e){const t=$(e);if(t)return t}return""}function E(e){const t=[e.layoutApiName,e.layout_api_name,e.layoutDescribeApiName,e.layout_describe_api_name];for(const e of t)if("string"==typeof e){const t=$(e);if(t)return t}return"string"!=typeof e.api_name||void 0===e.layoutType&&void 0===e.layout_type&&void 0===e.objectDescribeApiName&&void 0===e.object_describe_api_name?"":$(e.api_name)}async function j(e,t){return await(0,r.pathExists)(e)?(await a.default.readdir(e,{withFileTypes:!0})).filter(e=>e.isFile()&&e.name.toLowerCase().endsWith(t.toLowerCase())).map(e=>e.name).sort((e,t)=>e.localeCompare(t)):[]}async function N(e,t){const n=await(0,r.readTextFile)(e),i=(0,s.parseMateXml)(n)[t];if(!i||"object"!=typeof i||Array.isArray(i))throw new Error(`Invalid metadata xml root in file: ${e}`);const a=i.content;if("string"!=typeof a||!a.trim())throw new Error(`Invalid metadata xml content in file: ${e}`);const o=a.trim();try{return JSON.parse(o)}catch(t){throw new Error(`Invalid JSON content in metadata xml: ${e}. ${t.message}`)}}async function A(e,t){const n=await(0,r.readTextFile)(e),i=(0,s.parseMateXml)(n)[t];if(!i||"object"!=typeof i||Array.isArray(i))return{};const a=i.extra;if("string"!=typeof a||!a.trim())return{};try{const e=JSON.parse(a.trim());return e&&"object"==typeof e&&!Array.isArray(e)?e:{}}catch{return{}}}async function C(e,t){const n=await(0,r.readTextFile)(e),i=(0,s.parseMateXml)(n)[t];return!i||"object"!=typeof i||Array.isArray(i)?"unchanged":D(i.status)??"unchanged"}async function O(e,t){return!!await(0,r.pathExists)(e)&&"modified"===await C(e,t)}function T(e){return"apiName"===e||"api_name"===e||"objectApiName"===e||"object_api_name"===e||"describe_apiname"===e}function $(e){return e.trim()||""}function P(e){const t=new WeakSet,n=[e];for(;n.length;){const e=n.pop();if(!e||"object"!=typeof e)continue;if(t.has(e))continue;if(t.add(e),Array.isArray(e)){for(const t of e)n.push(t);continue}const i=e,a=i.layoutRule??i.layout_rule;if(a&&"object"==typeof a&&!Array.isArray(a))return a;for(const e of Object.values(i))e&&"object"==typeof e&&n.push(e)}return e}function k(e){const t=new WeakSet,n=[e];for(;n.length;){const e=n.pop();if(!e||"object"!=typeof e)continue;if(t.has(e))continue;if(t.add(e),Array.isArray(e)){for(const t of e)n.push(t);continue}const i=e,a=i.ruleInfo??i.rule_info??i.validateRule??i.validate_rule;if(a&&"object"==typeof a&&!Array.isArray(a))return a;for(const e of Object.values(i))e&&"object"==typeof e&&n.push(e)}return e}async function L(e,t="unchanged",n){const i=JSON.stringify(e??null),a=await async function(e){const t='<ObjectLayoutRule xmlns="http://sharecrm.com/metadata">',n=[];if(!e||!await(0,r.pathExists)(e))return{openTag:t,preservedLines:n};const i=await(0,r.readTextFile)(e),a=i.match(/<ObjectLayoutRule\b[^>]*>/i)?.[0]??t,o=i.match(/<ObjectLayoutRule\b[^>]*>([\s\S]*?)<\/ObjectLayoutRule>/i)?.[1];if("string"!=typeof o)return{openTag:a,preservedLines:n};const s=o.replace(/<content>[\s\S]*?<\/content>/i,"").replace(/<status>[\s\S]*?<\/status>/i,"").trim();return s?{openTag:a,preservedLines:s.split(/\r?\n/).map(e=>e.trimEnd())}:{openTag:a,preservedLines:[]}}(n),o=[` <content><![CDATA[${i}]]></content>`],s=a.preservedLines;return s.length>0&&o.push("",...s),o.push("",` <status>${t}</status>`),['<?xml version="1.0" encoding="UTF-8"?>',a.openTag,...o,"</ObjectLayoutRule>",""].join("\n")}async function R(e,t="unchanged",n){return L(e,t,n)}async function F(e,t,n){if("reset-unchanged"===n)return"unchanged";if(!await(0,r.pathExists)(e))return"unchanged";try{const n=await(0,r.readTextFile)(e),i=(0,s.parseMateXml)(n)[t];if(!i||"object"!=typeof i||Array.isArray(i))return"unchanged";return D(i.status)??"unchanged"}catch{return"unchanged"}}function D(e){if("string"!=typeof e)return;const t=e.trim().toLowerCase();return"new"===t||"unchanged"===t||"modified"===t?t:void 0}},8967(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.orgDevUserQueryCommand=async function(e,t){const n=s(t.name);if(!n)throw new Error("Invalid arguments: use --name <name>.");const c={apiNames:["PersonnelObj"],query:n};i.loggerService.startLoading(`Executing org-dev user query: ${n}`);try{const e=await(0,o.executeOrgDevShareCli)((0,a.getShareCliCommandPath)("orgDev","userQuery"),c);i.loggerService.stopLoading(),i.loggerService.success("Command completed: org-dev user query"),r(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.orgDevDepartmentQueryCommand=async function(e,t){const n=s(t.name);if(!n)throw new Error("Invalid arguments: use --name <name>.");const c={apiNames:["DepartmentObj"],query:n};i.loggerService.startLoading(`Executing org-dev department query: ${n}`);try{const e=await(0,o.executeOrgDevShareCli)((0,a.getShareCliCommandPath)("orgDev","departmentQuery"),c);i.loggerService.stopLoading(),i.loggerService.success("Command completed: org-dev department query"),r(e)}catch(e){throw i.loggerService.stopLoading(),e}};const i=n(3333),a=n(2351),o=n(4113);function r(e){const t=function(e){const t=[],n=new WeakSet,i=[e];for(;i.length;){const e=i.pop();if(!e||"object"!=typeof e)continue;if(n.has(e))continue;if(n.add(e),Array.isArray(e)){for(const t of e)i.push(t);continue}const a=e,o=a.name2IdPos;if(Array.isArray(o)){for(const e of o){if(!e||"object"!=typeof e||Array.isArray(e))continue;const n=e,i=c(n.name),a=c(n.id);i&&a&&t.push({name:i,id:a})}if(t.length>0)return t}for(const e of Object.values(a))e&&"object"==typeof e&&i.push(e)}return t}(e);if(!t.length)return void i.loggerService.warn("No name/id data found in response.");const n=["name","id"],a=Math.max(n[0].length,...t.map(e=>e.name.length)),o=Math.max(n[1].length,...t.map(e=>e.id.length)),r=[];r.push(`${n[0].padEnd(a," ")} ${n[1].padEnd(o," ")}`),r.push(`${"-".repeat(a)} ${"-".repeat(o)}`);for(const e of t)r.push(`${e.name.padEnd(a," ")} ${e.id.padEnd(o," ")}`);i.loggerService.printRaw(`${r.join("\n")}\n`)}function s(e){const t=e?.trim();return t||void 0}function c(e){if("string"==typeof e){return e.trim()||void 0}if("number"==typeof e&&Number.isFinite(e))return String(e)}},4113(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.executeOrgDevShareCli=async function(e,t,n){return(0,i.executeShareCliCommand)(e,t,n)};const i=n(8554)},7363(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.pwcPullCommand=async function(e,t,n){const i=Boolean(t.all),a=e?.trim();if(i&&a)throw new Error("Invalid arguments: do not pass apiName when using --all.");if(!i&&!a)throw new Error("Invalid arguments: use sharedev pwc pull --apiname <apiName> --type <component|plugin> or sharedev pwc pull --all --type <component|plugin>.");if(!t.type)throw new Error("pwc pull currently requires an explicit --type <component|plugin>.");if(i){s.loggerService.startLoading(`Fetching PWC resources for type=${t.type}`);const e=await(0,c.fetchCodeByType)(t.type);if(!e.length)throw s.loggerService.stopLoading(),new Error(`No PWC resources found for type=${t.type}.`);const i={target:e.length,success:0,failed:0};s.loggerService.updateLoading(`Found ${e.length} PWC resources, pulling...`);for(const a of e)try{A(a,t.type);const e=await C(n,a);i.success+=1,s.loggerService.success(`Pulled PWC resource ${a.apiName} to ${e}`)}catch(e){i.failed+=1;const t=e instanceof Error?e.message:String(e);s.loggerService.error(`Failed to pull PWC resource ${a.apiName||"<unknown>"}: ${t}`)}return s.loggerService.stopLoading(),void s.loggerService.info(`PWC pull completed: target=${i.target}, success=${i.success}, failed=${i.failed}`)}s.loggerService.startLoading(`Fetching PWC resource ${a}`);const o=await(0,c.fetchCode)(t.type,a);if(!o.length)throw s.loggerService.stopLoading(),new Error(`PWC resource not found: ${a}`);const r=o[0];A(r,t.type);const l=await C(n,r);s.loggerService.stopLoading(),s.loggerService.success(`Pulled PWC resource ${a} to ${l}`)},t.pwcCreateCommand=async function(e,t){s.loggerService.startLoading("Preparing PWC create");try{s.loggerService.updateLoading("Loading metadata");const[n,i]=await Promise.all([(0,c.getPwcConfig)(),(0,c.getObjectApiNames)()]),u=await async function(e,t,n){const i=process.stdin.isTTY&&process.stdout.isTTY,a=await async function(e,t){if(e===l.PWCType.Component||e===l.PWCType.Plugin)return e;if(!t)throw new Error("Missing required option --type <component|plugin>.");const n=await(0,o.select)({message:"Select PWC resource type",options:[{value:l.PWCType.Component,label:"Component"},{value:l.PWCType.Plugin,label:"Plugin"}]});if((0,o.isCancel)(n))throw new Error("PWC create cancelled.");return n}(e.type,i);if(a===l.PWCType.Component){const a=Object.keys(t.components??{}),r=await async function(e,t,n){const i=e?.trim()??"";if(i)return i;const a=t.length?t:["vue","applet"];if(!n)throw new Error("Missing required option --component-type.");const r=await(0,o.select)({message:"Select component type",options:a.map(e=>({value:e,label:e}))});if((0,o.isCancel)(r))throw new Error("PWC create cancelled.");return r}(e.componentType,a,i),s=t.components?.[r]??[],c=await async function(e,t,n){const i=x(e);if(i.length)return i;if(!n)throw new Error("Missing required option --scope-page-types.");const a=t.map(e=>({value:e.value,label:e.label??e.value}));if(!a.length)return x(await w("Enter scope page types (comma separated)"));const r=await(0,o.multiselect)({message:"Select supported page designer types",options:a,required:!0});if((0,o.isCancel)(r))throw new Error("PWC create cancelled.");return r}(e.scopePageTypes,s,i),l=c.some(e=>s.find(t=>t.value===e)?.isShowLimitObj),p=await async function(e,t){const n=x(e).filter(e=>"web"===e||"app"===e);if(n.length)return Array.from(new Set(n));if(!t)return["web"];const i=await(0,o.multiselect)({message:"Select supported clients",options:[{value:"web",label:"web"},{value:"app",label:"app"}],initialValues:["web"],required:!0});if((0,o.isCancel)(i))throw new Error("PWC create cancelled.");return i.filter(e=>"web"===e||"app"===e)}(e.clientTypes,i),u=await g(e.name,"--name","Enter PWC name",i),d=await g(e.apiName,"--apiname","Enter PWC API name",i,y),m=await v(e.description,"Enter PWC description"),b=!!l&&await f(e.limitObj,i);return{kind:"component",apiName:d,name:u,description:m,componentType:r,clientTypes:p,scopePageTypes:c,limitObj:b,scopeObjects:b?await h(e.scopeObjects,n,i):["ALL"]}}const r=await async function(e,t){if("web"===e||"app"===e)return e;if(!t)return"web";const n=await(0,o.select)({message:"Select plugin client",options:[{value:"web",label:"web"},{value:"app",label:"app"}]});if((0,o.isCancel)(n))throw new Error("PWC create cancelled.");return n}(e.client,i),s=t.plugins?.[r]??[],c=await async function(e,t,n){const i=e?.trim()??"";if(i)return i;if(!n)throw new Error("Missing required option --plugin-type.");const a=t.map(e=>({value:e.value,label:e.label??e.value}));if(!a.length)return g(void 0,"--plugin-type","Enter plugin type",n);const r=await(0,o.select)({message:"Select plugin type",options:a});if((0,o.isCancel)(r))throw new Error("PWC create cancelled.");return r}(e.pluginType,s,i),p=s.find(e=>e.value===c)?.isShowLimitObj??!0,u=await g(e.name,"--name","Enter PWC name",i),d=await g(e.apiName,"--apiname","Enter PWC API name",i,y),m=await v(e.description,"Enter PWC description"),b=!!p&&await f(e.limitObj,i),_=b?await h(e.scopeObjects,n,i):["ALL"];return{kind:"plugin",apiName:d,name:u,description:m,client:r,pluginType:c,limitObj:b,scopeObjects:_}}(e,n,i);!function(e){const t=y(e);if(t)throw new Error(t)}(u.apiName),s.loggerService.updateLoading("Uploading initialization template files");const N=await async function(e){if("component"===e.kind){if("applet"===e.componentType){const t=j(e.apiName);return{fileTree:(await b(_(t))).map(e=>({fileName:e.fileName,filePath:e.filePath,fileSize:e.fileSize,path:e.path??""}))}}return{sourceFiles:(await b([{fileName:"index.vue",content:d}])).map(e=>({fileName:e.fileName,filePath:e.filePath,fileSize:e.fileSize})),images:[],buildTool:"web",entryFileName:"index.vue"}}if("app"===e.client){const t=j(e.apiName);return{fileTree:(await b(S(t))).map(e=>({fileName:e.fileName,filePath:e.filePath,fileSize:e.fileSize,path:e.path??""}))}}return{sourceFiles:(await b([{fileName:"index.js",content:"export default class CustomPlugin { apply() { return []; } }\n"}])).map(e=>({fileName:e.fileName,filePath:e.filePath,fileSize:e.fileSize})),images:[],buildTool:"web",entryFileName:"index.js"}}(u);s.loggerService.updateLoading("Creating remote PWC resource"),"component"===u.kind?await(0,c.createComponentSource)({name:u.name,apiName:u.apiName,description:u.description,type:u.componentType,clientTypes:u.clientTypes,scopePageTypes:u.scopePageTypes,limitObj:u.limitObj,scopeObjects:u.scopeObjects,...N}):await(0,c.createPluginSource)({name:u.name,apiName:u.apiName,description:u.description,client:u.client,type:u.pluginType,limitObj:u.limitObj,scopeObjects:u.scopeObjects,...N}),s.loggerService.updateLoading("Downloading created resource to local workspace");const A="component"===u.kind?l.PWCType.Component:l.PWCType.Plugin,T=await async function(e,t){for(let n=1;n<=8;n+=1){const n=await(0,c.fetchCode)(e,t);if(n.length)return n[0];await O(500)}throw new Error(`Created PWC resource not found from remote: ${t}`)}(A,u.apiName),$=await C(t,T);await async function(e,t,n){const i=(0,p.resolvePwcComponentRoot)(e,t,n),o=a.default.join(i,"source"),s=t===l.PWCType.Component?"index.vue":"index.js",c=a.default.join(o,s);await(0,r.pathExists)(c)||await(0,r.writeTextFile)(c,t===l.PWCType.Component?d:m)}(t,A,u.apiName),await async function(e,t,n,i){const o=(0,p.resolvePwcComponentRoot)(e,n,i),r=j(i);"component"!==t.kind||"applet"!==t.componentType?"plugin"===t.kind&&"app"===t.client&&await E(o,{dirs:["fileTree/components","fileTree/components/"+r,"fileTree/plugins","fileTree/images"],files:S(r).map(e=>({relativePath:a.default.join("fileTree",e.path??"",e.fileName),content:e.content}))}):await E(o,{dirs:["fileTree/components","fileTree/components/"+r,"fileTree/images"],files:_(r).map(e=>({relativePath:a.default.join("fileTree",e.path??"",e.fileName),content:e.content}))})}(t,u,A,u.apiName),s.loggerService.stopLoading(),s.loggerService.success(`Created PWC ${u.kind} ${u.apiName} successfully.`),s.loggerService.info(`Local workspace: ${$}`)}catch(e){throw s.loggerService.stopLoading(),e}},t.pwcDeployCommand=async function(e,t,n){if(!e)throw new Error("Invalid arguments: use sharedev pwc deploy --apiname <apiName> --type <component|plugin> (or --path <path>).");if(!t.type)throw new Error("pwc deploy currently requires an explicit --type <component|plugin>.");s.loggerService.startLoading(`Preparing for ${e}`);try{const i=N(e,t.type,n);s.loggerService.updateLoading(`Preparing local files for ${i.apiName}`);const a=await(0,p.readLocalPwcUploadBundle)(n,i.type,i.apiName);s.loggerService.updateLoading(`Uploading ${a.uploadFiles.length} files`);const o=await(0,c.uploadFileList)(a.uploadFiles.map(e=>({fileName:e.fileName,base64String:e.base64String}))),r=[],u=[],d=[];for(let e=0;e<a.uploadFiles.length;e+=1){const t=a.uploadFiles[e],n=o[e],i={fileName:n.fileName,filePath:n.nPath,nPath:n.nPath,fileSize:t.fileSize};a.sourceIndex.has(t.filePath)?r.push(i):a.staticIndex.has(t.filePath)?u.push(i):a.fileTreeIndex.has(t.filePath)&&d.push({...i,path:(0,p.resolveFileTreeRelativePath)(a.fileTreeBaseDir,t.filePath)})}s.loggerService.updateLoading("Updating remote source metadata"),await(0,c.updateCodeSource)(i.type,i.apiName,{entryFileName:a.entryFileName,pluginType:a.pluginType,sourceFiles:r,images:u,fileTree:d}),s.loggerService.updateLoading("Starting remote build");const m=await(0,c.buildCode)(i.type,i.apiName,a.client);if(!m.buildId)throw new Error("Deploy failed: server did not return buildId.");await async function(e,t){const n=t===l.PWCType.Plugin?"Plugin":"Component";for(let t=1;t<=180;t+=1){const i=await(0,c.getBuildResult)(e,n);if(2===i.status)return;if(3===i.status)throw new Error(`Deploy build failed: buildId=${e}`);s.loggerService.updateLoading(`Waiting for build result... ${t}/180 (buildId=${e})`),await O(1e3)}throw new Error(`Deploy timed out after 180s: buildId=${e}`)}(m.buildId,i.type),s.loggerService.stopLoading(),s.loggerService.success(`Deployed PWC resource ${i.apiName}: files=${a.uploadFiles.length}, source=${r.length}, static=${u.length}, fileTree=${d.length}`)}catch(e){throw s.loggerService.stopLoading(),e}},t.pwcPushCommand=async function(e,t,n){if(!e)throw new Error("Invalid arguments: use sharedev pwc push --apiname <apiName> --type <component|plugin> (or --path <path>).");if(!t.type)throw new Error("pwc push requires an explicit --type <component|plugin>.");s.loggerService.startLoading(`Preparing for ${e}`);try{const i=N(e,t.type,n);s.loggerService.updateLoading(`Preparing local files for ${i.apiName}`);const a=await(0,p.readLocalPwcUploadBundle)(n,i.type,i.apiName);s.loggerService.updateLoading(`Uploading ${a.uploadFiles.length} files`);const o=await(0,c.uploadFileList)(a.uploadFiles.map(e=>({fileName:e.fileName,base64String:e.base64String}))),r=[],l=[],u=[];for(let e=0;e<a.uploadFiles.length;e+=1){const t=a.uploadFiles[e],n=o[e],i={fileName:n.fileName,filePath:n.nPath,nPath:n.nPath,fileSize:t.fileSize};a.sourceIndex.has(t.filePath)?r.push(i):a.staticIndex.has(t.filePath)?l.push(i):a.fileTreeIndex.has(t.filePath)&&u.push({...i,path:(0,p.resolveFileTreeRelativePath)(a.fileTreeBaseDir,t.filePath)})}s.loggerService.updateLoading("Updating remote source metadata"),await(0,c.updateCodeSource)(i.type,i.apiName,{entryFileName:a.entryFileName,pluginType:a.pluginType,sourceFiles:r,images:l,fileTree:u}),s.loggerService.stopLoading(),s.loggerService.success(`Pushed PWC resource ${i.apiName}: files=${a.uploadFiles.length}, source=${r.length}, static=${l.length}, fileTree=${u.length}`)}catch(e){throw s.loggerService.stopLoading(),e}},t.pwcPlaceholderCommand=async function(e){s.loggerService.warn(`sharedev pwc ${e} is not implemented yet.`)};const a=i(n(6760)),o=n(321),r=n(5409),s=n(3333),c=n(2317),l=n(1851),p=n(3047),u=/^[a-zA-Z](?!.*__.*__c$)\w{0,46}__c$/u,d='<template>\n <div>\n\n </div>\n</template>\n\n<script>\nexport default {\n\n}\n<\/script>\n\n<style lang="less" scoped>\n\n</style>\n',m="export default class CustomPlugin {\n apply() {\n return [];\n }\n}\n";async function f(e,t){const n=function(e){if(!e?.trim())return;const t=e.trim().toLowerCase();if("true"===t||"1"===t||"yes"===t)return!0;if("false"===t||"0"===t||"no"===t)return!1;throw new Error("Invalid --limit-obj value. Use true or false.")}(e);if(null!=n)return n;if(!t)return!1;const i=await(0,o.select)({message:"Restrict adaptation objects?",options:[{value:"false",label:"No"},{value:"true",label:"Yes"}]});if((0,o.isCancel)(i))throw new Error("PWC create cancelled.");return"true"===i}async function h(e,t,n){const i=x(e);if(i.length)return i;if(!n)throw new Error("Missing required option --scope-objects.");if(!t.length){const e=x(await w("Enter scope objects (comma separated)"));if(!e.length)throw new Error("scopeObjects cannot be empty when limitObj=true.");return e}const a=await(0,o.multiselect)({message:"Select adaptation objects",options:t.map(e=>({value:e,label:e})),required:!0});if((0,o.isCancel)(a))throw new Error("PWC create cancelled.");return a}async function g(e,t,n,i,a){const o=e?.trim()??"";if(o){const e=a?.(o);if(e)throw new Error(e);return o}if(!i)throw new Error(`Missing required option ${t}.`);for(;;){const e=await w(n);if(!e){s.loggerService.warn(`Missing required option ${t}.`);continue}const i=a?.(e);if(!i)return e;s.loggerService.warn(i)}}async function v(e,t){return null!=e?e.trim():process.stdin.isTTY&&process.stdout.isTTY?w(t,""):""}function y(e){if(!u.test(e))return"Invalid --apiname value. Required format: ^[a-zA-Z](?!.*__.*__c$)\\w{0,46}__c$"}async function b(e){const t=await(0,c.uploadFileList)(e.map(e=>({fileName:e.fileName,base64String:Buffer.from(e.content,"utf8").toString("base64")})));return e.map((e,n)=>({fileName:t[n].fileName,filePath:t[n].nPath,fileSize:Buffer.byteLength(e.content,"utf8"),path:e.path}))}function x(e){return e?.trim()?e.split(",").map(e=>e.trim()).filter(Boolean):[]}async function w(e,t){const n=await(0,o.text)({message:e,initialValue:t,placeholder:t});if((0,o.isCancel)(n))throw new Error("PWC create cancelled.");return n.trim()}function _(e){return[{fileName:"app.json",content:JSON.stringify({pages:[],sitemapLocation:"sitemap.json"},null,2)},{fileName:"config.json",content:JSON.stringify({components:{root:"components/"+e+"/index"},main:""},null,2)},{fileName:"project.config.json",content:JSON.stringify({miniprogramAvaId:"fsdemo-lego",avaFrameVer:"770.0.4",description:"project config",packOptions:{ignore:[]},setting:{urlCheck:!0,scopeDataCheck:!1,coverView:!0,es6:!0,postcss:!0,compileHotReLoad:!1,preloadBackgroundData:!1,minified:!0,autoAudits:!1,newFeature:!1,uglifyFileName:!1,uploadWithSourceMap:!0,useIsolateContext:!0,nodeModules:!1,enhance:!1,useCompilerModule:!0,userConfirmedUseCompilerModuleSwitch:!1,useMultiFrameRuntime:!0,useApiHook:!0,useApiHostProcess:!0,showShadowRootInWxmlPanel:!0,packNpmManually:!1,packNpmRelationList:[],minifyWXSS:!0},compileType:"miniprogram",libVersion:"2.15.0",appid:"wxb7ca92fe07ce5c66",projectname:"legodemo"},null,2)},{fileName:"sitemap.json",content:JSON.stringify({rules:[{action:"allow",page:"*"}]},null,2)},{fileName:"index.js",path:"components/"+e,content:["Component({"," methods: {",""," },"," lifetimes: {"," attached() {",' console.log("attached");'," }"," }","});",""].join("\n")},{fileName:"index.json",path:"components/"+e,content:JSON.stringify({component:!0,usingComponents:{}},null,2)},{fileName:"index.wxml",path:"components/"+e,content:'<view class="container">\n <view>This is a lego component</view>\n</view>\n'},{fileName:"index.wxss",path:"components/"+e,content:".container{\n width:100%;\n height:100%;\n background:#00ff00;\n}\n"}]}function S(e){return[{fileName:"config.json",content:JSON.stringify({components:{cmpt1:"components/"+e+"/index"},main:"plugins/index.js"},null,2)},{fileName:"index.js",path:"plugins",content:"// plugin entry file\n// initialize your plugin instance here\n"},{fileName:"index.js",path:"components/"+e,content:["Component({"," methods: {"," _testMethod() {"," wx.showToast({",' title: "component clicked",',' icon: "none"'," });"," }"," },"," lifetimes: {"," attached() {"," }"," }","});",""].join("\n")},{fileName:"index.json",path:"components/"+e,content:JSON.stringify({component:!0,usingComponents:{}},null,2)},{fileName:"index.wxml",path:"components/"+e,content:'<view class="container" bind:tap="_testMethod">plugin custom component</view>\n'},{fileName:"index.wxss",path:"components/"+e,content:".container{\n display: flex;\n flex-direction: row;\n padding: 32rpx;\n font-size: 32rpx;\n word-break: break-all;\n}\n"}]}async function E(e,t){for(const n of t.dirs)await(0,r.ensureDir)(a.default.join(e,n));for(const n of t.files){const t=a.default.join(e,n.relativePath);await(0,r.pathExists)(t)||await(0,r.writeTextFile)(t,n.content)}}function j(e){return e.replace(/__c$/u,"").trim().replace(/[^a-zA-Z0-9_-]/g,"")||"component"}function N(e,t,n){const i=e.trim(),o=(0,p.parsePwcApiNameAndTypeFromPath)(i);if(o){if(o.type!==t)throw new Error(`The path type (${o.type}) does not match --type ${t}.`);return{apiName:o.apiName,type:t}}if(i.includes("/")||i.includes("\\")){const e=a.default.resolve(n.cwd,i),o=(0,p.parsePwcApiNameAndTypeFromPath)(e);if(o){if(o.type!==t)throw new Error(`The path type (${o.type}) does not match --type ${t}.`);return{apiName:o.apiName,type:t}}}return{apiName:i,type:t}}function A(e,t){if(e.type!==l.PWCType.Component&&e.type!==l.PWCType.Plugin)throw new Error(`The server returned an unsupported PWC resource type: ${String(e.type)}`);if(e.type!==t)throw new Error(`Requested PWC resource type ${t}, but the server returned ${e.type}. Write operation aborted.`)}async function C(e,t){const n=await(0,c.hydratePwcComponent)(t);return(0,p.writePwcComponent)(e,n)}async function O(e){await new Promise(t=>{setTimeout(t,e)})}},2317(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fetchCode=async function(e,t){return(await i.requestService.FHH({url:"/EM2HCompBuild/VscodeExtension/downloadCode",data:{type:e,apiName:t}})).components??[]},t.fetchCodeByType=async function(e){return(await i.requestService.FHH({url:"/EM2HCompBuild/VscodeExtension/downloadCode",data:{type:e}})).components??[]},t.downloadFile=a,t.uploadFile=o,t.uploadFileList=async function(e){return Promise.all(e.map(e=>o(e.fileName,e.base64String)))},t.updateCodeSource=async function(e,t,n){return"plugin"===e?async function(e,t){const n=await async function(e){return i.requestService.FHH({url:"/EM1HCompBuild/Plugin/findByApiName",data:{apiName:e}})}(e);return async function(e){return i.requestService.FHH({url:"/EM1HCompBuild/Plugin/updatePlugin",data:e})}({...n,fileTree:t.fileTree||[],sourceFiles:t.sourceFiles||[],images:t.images||[],type:t.pluginType})}(t,n):async function(e,t){const n=await async function(e){return i.requestService.FHH({url:"/EM1HCompBuild/Component/getComponentByApiName",data:{apiName:e}})}(e);return async function(e){return i.requestService.FHH({url:"/EM1HCompBuild/Component/updateComponent",data:e})}({...n,entryFileName:t.entryFileName||"",fileTree:t.fileTree||[],sourceFiles:t.sourceFiles||[],images:t.images||[]})}(t,n)},t.buildCode=async function(e,t,n="web"){return"component"===e?i.requestService.FHH({url:"/EM9HCompBuild/Component/AsynBuildComponent",data:{apiName:t}}):i.requestService.FHH({url:"/EM9HCompBuild/Plugin/buildPlugin",data:{apiName:t,client:n}})},t.getBuildResult=async function(e,t){return i.requestService.FHH({url:`/EM1HCompBuild/${t}/getBuildResult`,data:{buildId:e}})},t.hydratePwcComponent=async function(e){return{...e,sourceFiles:await r(e.sourceFiles,"sourceFiles",e.apiName),images:await r(e.images,"images",e.apiName),fileTree:await r(e.fileTree,"fileTree",e.apiName)}},t.getPwcConfig=async function(){return(await i.requestService.FHH({url:"/EM1HCompBuild/Component/getConfig",data:{}})).config??{}},t.getObjectApiNames=async function(){const e=await i.requestService.FHH({url:"/EM1HNCRM/API/v1/object/describe/service/findDescribeManageList",data:{isIncludeFieldDescribe:!1,isIncludeSystemObj:!0,isIncludeUnActived:!0,packageName:"CRM",sourceInfo:"function",serviceContext:{}}});return Array.from(new Set((e.objectDescribeList??[]).map(e=>e.api_name?.trim()).filter(e=>Boolean(e)))).sort((e,t)=>e.localeCompare(t))},t.createComponentSource=async function(e){await i.requestService.FHH({url:"/EM1HCompBuild/Component/createComponent",data:e})},t.createPluginSource=async function(e){await i.requestService.FHH({url:"/EM1HCompBuild/Plugin/createPlugin",data:e})};const i=n(2088);async function a(e){const t=await i.requestService.FHH({url:"/EM2HCompBuild/VscodeExtension/downloadFile",data:{nPath:e}});return Buffer.from(t.base64String??"","base64")}async function o(e,t){return{fileName:e,nPath:(await i.requestService.FHH({url:"/EM2HCompBuild/VscodeExtension/uploadFile",data:{fileName:e,base64String:t}})).nPath}}async function r(e,t,n){return e?.length?Promise.all(e.map(e=>async function(e,t,n){const i=e.nPath||e.filePath;if(!i)throw new Error(`Cannot download ${t} file ${e.fileName||"<unknown>"} for PWC resource ${n}: missing nPath/filePath.`);try{const t=await a(i);return{fileName:e.fileName,path:e.path,content:t}}catch(a){const o=a instanceof Error?a.message:String(a);throw new Error(`Failed to download ${t} file ${e.fileName||"<unknown>"} for PWC resource ${n} (${i}): ${o}`)}}(e,t,n))):[]}},1851(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PWCType=void 0,function(e){e.Component="component",e.Plugin="plugin"}(n||(t.PWCType=n={}))},3047(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolvePwcComponentRoot=l,t.parsePwcApiNameAndTypeFromPath=function(e){const t=e.replace(/\\/g,"/").match(/(?:^|\/)pwc\/(components|plugins)\/([^/]+)/);if(t)return{type:"components"===t[1]?s.PWCType.Component:s.PWCType.Plugin,apiName:t[2]}},t.readLocalPwcUploadBundle=async function(e,t,i){const c=l(e,t,i);if(!await(0,r.pathExists)(c))throw new Error(`Local PWC resource directory not found: ${c}`);const u=a.default.join(c,"source"),d=a.default.join(c,"static"),m=a.default.join(c,"fileTree"),f=a.default.join(c,"mateXml.xml"),h=await p(u),g=await p(d),v=await p(m),y=[...h,...g,...v];if(!y.length)throw new Error(`No local files found to upload for ${i}.`);const{readFile:b}=await Promise.resolve().then(n.bind(n,9031)),x=[];for(const e of y){const t=await b(e),n=await(0,r.statPath)(e);x.push({filePath:e,fileName:a.default.basename(e),base64String:t.toString("base64"),fileSize:n.size})}let w="",_="web",S="";if(await(0,r.pathExists)(f)){const e=function(e,t){const n=(new o.XMLParser).parse(t),i=e===s.PWCType.Component?n.ComponentBundle:n.PluginBundle,a=i?.entryFileName,r=i?.client,c=i?.type;return{entryFileName:"string"==typeof a?a:"",client:(l=r,"app"===("string"==typeof l?l.trim().toLowerCase():"")?"app":"web"),pluginType:"string"==typeof c?c:"edit_plugin"};var l}(t,await(0,r.readTextFile)(f));w=e.entryFileName,_=e.client,S=e.pluginType}return{entryFileName:w,client:_,uploadFiles:x,pluginType:S,sourceIndex:new Set(h),staticIndex:new Set(g),fileTreeIndex:new Set(v),fileTreeBaseDir:m}},t.resolveFileTreeRelativePath=function(e,t){return function(e,t){const n=a.default.relative(e,a.default.dirname(t));return n&&"."!==n?n.split(a.default.sep).join("/"):""}(e,t)},t.writePwcComponent=async function(e,t){const n=l(e,t.type,t.apiName),i=a.default.join(n,"source"),o=a.default.join(n,"static"),s=a.default.join(n,"fileTree");return await(0,r.ensureDir)(n),await(0,r.ensureDir)(i),await(0,r.ensureDir)(o),await(0,r.ensureDir)(s),t.mateXml&&await(0,r.writeTextFile)(a.default.join(n,"mateXml.xml"),t.mateXml),await c(i,t.sourceFiles),await c(o,t.images),await async function(e,t){if(t?.length)for(const n of t){const t=a.default.join(e,n.path??"",n.fileName);await(0,r.writeBinaryFile)(t,n.content)}}(s,t.fileTree),await(0,r.writeJsonFile)(a.default.join(n,".sharedev-meta.json"),{name:t.name,apiName:t.apiName,type:t.PWCType,updateTime:t.updateTime}),n};const a=i(n(6760)),o=n(4603),r=n(5409),s=n(1851);async function c(e,t){if(t?.length)for(const n of t){const t=a.default.join(e,n.fileName);await(0,r.writeBinaryFile)(t,n.content)}}function l(e,t,n){return a.default.join(function(e){return a.default.dirname(e.workspaceRoot)}(e),function(e){switch(e){case s.PWCType.Component:return a.default.join("pwc","components");case s.PWCType.Plugin:return a.default.join("pwc","plugins");default:throw new Error(`Cannot resolve the workspace directory for PWC resource type ${String(e)}.`)}}(t),n)}async function p(e){if(!await(0,r.pathExists)(e))return[];const t=await Promise.resolve().then(n.bind(n,9031)),i=await t.readdir(e,{withFileTypes:!0}),o=[];for(const t of i){const n=a.default.join(e,t.name);t.isDirectory()?o.push(...await p(n)):t.isFile()&&o.push(n)}return o.sort((e,t)=>e.localeCompare(t))}},3299(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.specInitCommand=async function(e){await f(e.cwd,{interactive:!0})},t.runSpecInit=f;const a=i(n(8161)),o=i(n(6760)),r=i(n(1455)),s=n(321),c=n(1415),l=n(3333),p=n(5409),u=n(5916),d=n(8102),m=n(9565);async function f(e,t={}){const n=!1!==t.interactive,i=!1!==t.showLoading;i&&l.loggerService.startLoading("Checking spec template version...");const f=await(0,m.fetchSpecManifest)(),h=`${d.SPEC_DOWNLOAD_BASE_URL}/${f.archive}`;if(!t.skipVersionCheck){const t=await async function(e){const t=await(0,c.findSharedevPath)(e);if(!t)return;const n=o.default.join(t,"settings.json");if(await(0,p.pathExists)(n))try{const e=await(0,p.readJsonFile)(n);return"string"==typeof e.specVersion?e.specVersion:void 0}catch{return}}(e);if(t&&t===f.version)return i&&l.loggerService.stopLoading(),void l.loggerService.info(`Spec template is already up-to-date (version: ${f.version}).`)}i&&l.loggerService.stopLoading();const g=await async function(e,t){const n=e?.trim();if(n){const e=d.SUPPORTED_AGENTS.find(e=>e.name===n);if(!e)throw new Error(`Unsupported agent: ${n}.`);return e}if(!t)throw new Error("Missing agent name. Provide --agent when running non-interactively.");return async function(){const e=await(0,s.select)({message:"Select an agent platform",options:d.SUPPORTED_AGENTS.map(e=>({value:e.name,label:`${e.displayName} (${e.skillsDir})`}))});if((0,s.isCancel)(e))throw new Error("Spec initialization canceled.");const t=d.SUPPORTED_AGENTS.find(t=>t.name===e);if(!t)throw new Error("Failed to resolve selected platform.");return t}()}(t.agentName,n),v=o.default.join(e,g.skillsDir);await(0,p.ensureDir)(v);const y=await async function(e,t,n){if(!(await r.default.readdir(e).catch(()=>[])).length)return!0;if(n)return!0;if(!t)throw new Error(`Directory ${e} already contains files. Use interactive mode or enable overwrite.`);const i=await(0,s.confirm)({message:`Directory ${e} already contains files. Continue and overwrite duplicate names?`,initialValue:!1});if((0,s.isCancel)(i))throw new Error("Spec initialization canceled.");return i}(v,n,!0===t.overwriteIfExists);if(!y)return void l.loggerService.info("Spec initialization canceled.");const b=o.default.join(a.default.tmpdir(),`sharedev-spec-${Date.now()}.zip`);try{const t=await(0,m.downloadSpecTemplateArchive)(h,i);await(0,p.writeBinaryFile)(b,t),i?l.loggerService.updateLoading(`Extracting archive to: ${v}`):l.loggerService.info(`Extracting spec template to: ${v}`),await(0,u.extractZipArchive)(b,v),await async function(e){const t=o.default.join(e,"__MACOSX");await(0,p.pathExists)(t)&&await(0,p.removePath)(t);const n=await r.default.readdir(e,{withFileTypes:!0}),i=n.filter(e=>e.isDirectory()),a=n.filter(e=>!e.isDirectory());if(1!==i.length||0!==a.length)return;const s=o.default.join(e,i[0].name),c=await r.default.readdir(s);for(const t of c)await r.default.rename(o.default.join(s,t),o.default.join(e,t));await r.default.rmdir(s)}(v),await async function(e,t){const n=await(0,c.findSharedevPath)(e)??o.default.join(e,".sharedev"),i=o.default.join(n,"settings.json");await(0,p.ensureDir)(n);let a={};if(await(0,p.pathExists)(i))try{a=await(0,p.readJsonFile)(i)}catch{a={}}a.specVersion=t,await(0,p.writeJsonFile)(i,a)}(e,f.version),i&&l.loggerService.stopLoading(),l.loggerService.success(`Spec initialization completed (version: ${f.version}).`),l.loggerService.info(`Platform: ${g.displayName} (${g.name})`),l.loggerService.info(`Directory: ${g.skillsDir}`),l.loggerService.info(`Absolute path: ${v}`)}catch(e){throw i&&l.loggerService.stopLoading(),e}finally{await(0,p.pathExists)(b)&&await(0,p.removePath)(b)}}},8102(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_AGENTS=t.SPEC_DOWNLOAD_BASE_URL=t.SPEC_MANIFEST_URL=void 0,t.SPEC_MANIFEST_URL="https://developer.fxiaoke.com/sharedev/sharecrm-skills-kit.json",t.SPEC_DOWNLOAD_BASE_URL="https://developer.fxiaoke.com/sharedev",t.SUPPORTED_AGENTS=[{name:"claude-code",displayName:"Claude Code",skillsDir:".claude"},{name:"codex",displayName:"Codex",skillsDir:".codex"},{name:"cursor",displayName:"Cursor",skillsDir:".cursor"},{name:"trae",displayName:"Trae",skillsDir:".trae"},{name:"trae-cn",displayName:"Trae CN",skillsDir:".trae"}]},9565(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fetchSpecManifest=async function(){const e=await fetch(o.SPEC_MANIFEST_URL);if(!e.ok)throw new Error(`Failed to fetch spec manifest: ${e.status} ${e.statusText}`);const t=await e.json();if(!t.version||!t.archive)throw new Error("Invalid spec manifest: missing version or archive field.");return t},t.downloadSpecTemplateArchive=async function(e,t){return t||a.loggerService.info(`Downloading spec template archive: ${e}`),(await(0,i.download)("Downloading spec template...",[{fileName:"Spec template archive",download:async t=>t.downloadByUrl(e)}],{summaryName:"Downloading template archive",concurrency:1})).values[0]};const i=n(1889),a=n(3333),o=n(8102)},4444(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createLineDiff=function(e,t,n){const i=function(e,t){if(e.join("\n")===t.join("\n"))return[];const n=function(e,t){const n=Array.from({length:e.length+1},()=>Array(t.length+1).fill(0));for(let i=e.length-1;i>=0;i-=1)for(let a=t.length-1;a>=0;a-=1)e[i]===t[a]?n[i][a]=n[i+1][a+1]+1:n[i][a]=Math.max(n[i+1][a],n[i][a+1]);return n}(e,t),i=function(e,t,n){const i=[];let a=0,o=0;for(;a<e.length&&o<t.length;)e[a]===t[o]?(i.push({type:"context",content:e[a]}),a+=1,o+=1):n[a+1][o]>=n[a][o+1]?(i.push({type:"delete",content:e[a]}),a+=1):(i.push({type:"add",content:t[o]}),o+=1);for(;a<e.length;)i.push({type:"delete",content:e[a]}),a+=1;for(;o<t.length;)i.push({type:"add",content:t[o]}),o+=1;return i}(e,t,n);return function(e){const t=[];let n=1,i=1;for(const a of e)"context"===a.type?(t.push({...a,oldLineNumber:n,newLineNumber:i}),n+=1,i+=1):"delete"===a.type?(t.push({...a,oldLineNumber:n}),n+=1):(t.push({...a,newLineNumber:i}),i+=1);return t}(i)}(o(e),o(t));return{oldFileName:n.oldFileName,newFileName:n.newFileName,oldHeader:n.oldHeader,newHeader:n.newHeader,oldGitPath:f(n.oldGitPath??n.oldFileName),newGitPath:f(n.newGitPath??n.newFileName),hunks:r(i,3)}},t.summarizeDiff=function(e){let t=0,n=0;for(const i of e.hunks)for(const e of i.rows)"add"===e.type?t+=1:"delete"===e.type&&(n+=1);return{additions:t,deletions:n,changed:t>0||n>0}},t.renderUnifiedDiff=function(e){const t=e.hunks.flatMap(e=>e.rows),n=p(t,"oldLineNumber"),i=p(t,"newLineNumber"),o=[a.default.bold(`Update(${e.newFileName})`),a.default.dim(` --- a/${e.oldGitPath}${m(e.oldHeader)}`),a.default.dim(` +++ b/${e.newGitPath}${m(e.newHeader)}`)];for(const t of e.hunks)o.push(c(t)),o.push(l(t.rows,n,i));return o.join("\n")};const a=i(n(6194));function o(e){return e.replace(/\r\n/g,"\n").split("\n")}function r(e,t){if(!e.length)return[];const n=[];for(let t=0;t<e.length;t+=1)"context"!==e[t].type&&n.push(t);return n.length?function(e){if(!e.length)return[];const t=[e[0]];for(let n=1;n<e.length;n+=1){const i=e[n],a=t[t.length-1];i.start<=a.end+1?a.end=Math.max(a.end,i.end):t.push({...i})}return t}(n.map(n=>({start:Math.max(0,n-t),end:Math.min(e.length-1,n+t)}))).map(t=>function(e){const t=e.filter(e=>"add"!==e.type),n=e.filter(e=>"delete"!==e.type),i=t[0]?.oldLineNumber??s(e,"old"),a=n[0]?.newLineNumber??s(e,"new");return{oldStart:i,oldLines:t.length,newStart:a,newLines:n.length,rows:e}}(e.slice(t.start,t.end+1))):[]}function s(e,t){const n="old"===t?"oldLineNumber":"newLineNumber",i=e.find(e=>void 0!==e[n])?.[n];return i??0}function c(e){return a.default.cyan(`@@ -${d(e.oldStart,e.oldLines)} +${d(e.newStart,e.newLines)} @@`)}function l(e,t,n){return e.map(e=>function(e,t,n){const i=u(e.oldLineNumber,t),o=u(e.newLineNumber,n),r=" ".repeat(Math.max(t,n));return"context"===e.type?a.default.dim(` ${i} ${o} │ ${e.content}`):"delete"===e.type?`${a.default.bgRed.white(`- ${i}`)} ${a.default.dim(r)} │ ${a.default.red(e.content)}`:`${a.default.bgGreen.black(`+ ${o}`)} ${a.default.dim(r)} │ ${a.default.green(e.content)}`}(e,t,n)).join("\n")}function p(e,t){const n=e.reduce((e,n)=>Math.max(e,n[t]??0),0);return String(Math.max(1,n)).length}function u(e,t){return void 0===e?"".padStart(t," "):String(e).padStart(t," ")}function d(e,t){return 0===t?`${e},0`:1===t?String(e):`${e},${t}`}function m(e){return e?`\t${e}`:""}function f(e){return e.replace(/\\/g,"/")}},5409(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ensureDir=async function(e){await a.default.ensureDir(e)},t.readJsonFile=async function(e){return a.default.readJson(e)},t.writeJsonFile=async function(e,t){await a.default.ensureDir(o.default.dirname(e)),await a.default.writeJson(e,t,{spaces:2})},t.writeTextFile=async function(e,t){await a.default.ensureDir(o.default.dirname(e)),await a.default.writeFile(e,t,"utf8")},t.writeBinaryFile=async function(e,t){await a.default.ensureDir(o.default.dirname(e)),await a.default.writeFile(e,t)},t.readTextFile=async function(e){return a.default.readFile(e,"utf8")},t.pathExists=async function(e){return a.default.pathExists(e)},t.statPath=async function(e){return a.default.stat(e)},t.removePath=async function(e){await a.default.remove(e)};const a=i(n(1605)),o=i(n(6760))},5332(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePath=o,t.toAbsolutePath=function(e,t){return a.default.isAbsolute(e)?o(e):o(a.default.resolve(t,e))},t.getFileNameWithoutExt=function(e){return a.default.basename(e,a.default.extname(e))},t.maskCertificate=function(e){return e?e.length<=8?`${e.slice(0,2)}***`:`${e.slice(0,4)}***${e.slice(-4)}`:""};const a=i(n(6760));function o(e){return a.default.normalize(e)}},5016(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.readCliPackageMeta=async function(){try{const e=o.default;return{name:"string"==typeof e.name&&e.name.trim()?e.name.trim():"@share-crm/sharedev-cli",version:("string"==typeof e.version&&e.version.trim()?e.version.trim():"0.0.0")+((0,r.isRuntimeDebugEnabled)()?"-debug":"")}}catch{return a.loggerService.error("Failed to read package.json"),{name:"@share-crm/sharedev-cli",version:"0.0.0"}}};const a=n(3333),o=i(n(8330)),r=n(654)},2706(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.parseMateXml=a,t.resolveEntryFileNameFromMateXml=function(e){const t=a(e),n=Object.values(t)[0];if(!n||"object"!=typeof n)return;const i=n.entryFileName;return"string"==typeof i?i:void 0};const i=new(n(4603).XMLParser)({ignoreAttributes:!1,attributeNamePrefix:"",processEntities:!1});function a(e){return i.parse(e)}},5916(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extractZipArchive=async function(e,t){try{if("win32"===process.platform)return void await s("powershell",["-NoProfile","-Command",`Expand-Archive -LiteralPath '${r(e)}' -DestinationPath '${r(t)}' -Force`]);await s("unzip",["-o",e,"-d",t])}catch(n){try{await(0,o.default)(e,{dir:t})}catch(e){const t=n instanceof Error?n.message:String(n),i=e instanceof Error?e.message:String(e);throw new Error(`Failed to extract zip archive. commandError=${t}; fallbackError=${i}`)}}};const a=n(1421),o=i(n(3832));function r(e){return e.replace(/'/g,"''")}async function s(e,t){await new Promise((n,i)=>{const o=(0,a.spawn)(e,t,{stdio:"ignore"});o.on("error",i),o.on("close",a=>{0!==a?i(new Error(`Command failed: ${e} ${t.join(" ")} (exit=${a??-1})`)):n()})})}},1236(e,t){t.fromCallback=function(e){return Object.defineProperty(function(...t){if("function"!=typeof t[t.length-1])return new Promise((n,i)=>{t.push((e,t)=>null!=e?i(e):n(t)),e.apply(this,t)});e.apply(this,t)},"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty(function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);t.pop(),e.apply(this,t).then(e=>n(null,e),n)},"name",{value:e.name})}},6587(e){e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){i[e]=t[e]}),i;function i(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var i=t.apply(this,e),a=e[e.length-1];return"function"==typeof i&&i!==a&&Object.keys(a).forEach(function(e){i[e]=a[e]}),i}}},4824(e,t,n){var i,a=n(9896),o=n(3106),r=n(3070),s=n(4025),c=n(9023),l=n(4434).EventEmitter,p=n(2203).Transform,u=n(2203).PassThrough,d=n(2203).Writable;function m(e,t,n){"function"==typeof t&&(n=t,t=null),null==t&&(t={}),null==t.autoClose&&(t.autoClose=!1),null==t.lazyEntries&&(t.lazyEntries=!1),null==t.decodeStrings&&(t.decodeStrings=!0),null==t.validateEntrySizes&&(t.validateEntrySizes=!0),null==t.strictFileNames&&(t.strictFileNames=!1),null==n&&(n=A),a.fstat(e,function(i,a){if(i)return n(i);f(r.createFromFd(e,{autoClose:!0}),a.size,t,n)})}function f(e,t,n,a){"function"==typeof n&&(a=n,n=null),null==n&&(n={}),null==n.autoClose&&(n.autoClose=!0),null==n.lazyEntries&&(n.lazyEntries=!1),null==n.decodeStrings&&(n.decodeStrings=!0);var o=!!n.decodeStrings;if(null==n.validateEntrySizes&&(n.validateEntrySizes=!0),null==n.strictFileNames&&(n.strictFileNames=!1),null==a&&(a=A),"number"!=typeof t)throw new Error("expected totalSize parameter to be a number");if(t>Number.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");e.ref();var r=Math.min(65557,t),s=i(r),c=t-s.length;w(e,s,0,r,c,function(l){if(l)return a(l);for(var p=r-22;p>=0;p-=1)if(101010256===s.readUInt32LE(p)){var u=s.slice(p),d=u.readUInt16LE(4);if(0!==d)return a(new Error("multi-disk zip files are not supported: found disk number: "+d));var m=u.readUInt16LE(10),f=u.readUInt32LE(16),g=u.readUInt16LE(20),v=u.length-22;if(g!==v)return a(new Error("invalid comment length. expected: "+v+". found: "+g));var y=o?j(u,22,u.length,!1):u.slice(22);if(65535!==m&&4294967295!==f)return a(null,new h(e,f,t,m,y,n.autoClose,n.lazyEntries,o,n.validateEntrySizes,n.strictFileNames));var b=i(20),x=c+p-b.length;return void w(e,b,0,b.length,x,function(r){if(r)return a(r);if(117853008!==b.readUInt32LE(0))return a(new Error("invalid zip64 end of central directory locator signature"));var s=N(b,8),c=i(56);w(e,c,0,c.length,s,function(i){return i?a(i):101075792!==c.readUInt32LE(0)?a(new Error("invalid zip64 end of central directory record signature")):(m=N(c,32),f=N(c,48),a(null,new h(e,f,t,m,y,n.autoClose,n.lazyEntries,o,n.validateEntrySizes,n.strictFileNames)))})})}a(new Error("end of central directory record signature not found"))})}function h(e,t,n,i,a,o,r,s,c,p){var u=this;l.call(u),u.reader=e,u.reader.on("error",function(e){v(u,e)}),u.reader.once("close",function(){u.emit("close")}),u.readEntryCursor=t,u.fileSize=n,u.entryCount=i,u.comment=a,u.entriesRead=0,u.autoClose=!!o,u.lazyEntries=!!r,u.decodeStrings=!!s,u.validateEntrySizes=!!c,u.strictFileNames=!!p,u.isOpen=!0,u.emittedError=!1,u.lazyEntries||u._readEntry()}function g(e,t){e.autoClose&&e.close(),v(e,t)}function v(e,t){e.emittedError||(e.emittedError=!0,e.emit("error",t))}function y(){}function b(e,t){return new Date(1980+(e>>9&127),(e>>5&15)-1,31&e,t>>11&31,t>>5&63,2*(31&t),0)}function x(e){return-1!==e.indexOf("\\")?"invalid characters in fileName: "+e:/^[a-zA-Z]:/.test(e)||/^\//.test(e)?"absolute path: "+e:-1!==e.split("/").indexOf("..")?"invalid relative path: "+e:null}function w(e,t,n,a,o,r){if(0===a)return setImmediate(function(){r(null,i(0))});e.read(t,n,a,o,function(e,t){return e?r(e):t<a?r(new Error("unexpected EOF")):void r()})}function _(e){p.call(this),this.actualByteCount=0,this.expectedByteCount=e}function S(){l.call(this),this.refCount=0}function E(e){u.call(this),this.context=e,this.context.ref(),this.unreffedYet=!1}function j(e,t,n,i){if(i)return e.toString("utf8",t,n);for(var a="",o=t;o<n;o++)a+="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "[e[o]];return a}function N(e,t){var n=e.readUInt32LE(t);return 4294967296*e.readUInt32LE(t+4)+n}function A(e){if(e)throw e}t.open=function(e,t,n){"function"==typeof t&&(n=t,t=null),null==t&&(t={}),null==t.autoClose&&(t.autoClose=!0),null==t.lazyEntries&&(t.lazyEntries=!1),null==t.decodeStrings&&(t.decodeStrings=!0),null==t.validateEntrySizes&&(t.validateEntrySizes=!0),null==t.strictFileNames&&(t.strictFileNames=!1),null==n&&(n=A),a.open(e,"r",function(e,i){if(e)return n(e);m(i,t,function(e,t){e&&a.close(i,A),n(e,t)})})},t.fromFd=m,t.fromBuffer=function(e,t,n){"function"==typeof t&&(n=t,t=null),null==t&&(t={}),t.autoClose=!1,null==t.lazyEntries&&(t.lazyEntries=!1),null==t.decodeStrings&&(t.decodeStrings=!0),null==t.validateEntrySizes&&(t.validateEntrySizes=!0),null==t.strictFileNames&&(t.strictFileNames=!1),f(r.createFromBuffer(e,{maxChunkSize:65536}),e.length,t,n)},t.fromRandomAccessReader=f,t.dosDateTimeToDate=b,t.validateFileName=x,t.ZipFile=h,t.Entry=y,t.RandomAccessReader=S,c.inherits(h,l),h.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.reader.unref())},h.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()},h.prototype._readEntry=function(){var e=this;if(e.entryCount!==e.entriesRead){if(!e.emittedError){var t=i(46);w(e.reader,t,0,t.length,e.readEntryCursor,function(n){if(n)return g(e,n);if(!e.emittedError){var a=new y,o=t.readUInt32LE(0);if(33639248!==o)return g(e,new Error("invalid central directory file header signature: 0x"+o.toString(16)));if(a.versionMadeBy=t.readUInt16LE(4),a.versionNeededToExtract=t.readUInt16LE(6),a.generalPurposeBitFlag=t.readUInt16LE(8),a.compressionMethod=t.readUInt16LE(10),a.lastModFileTime=t.readUInt16LE(12),a.lastModFileDate=t.readUInt16LE(14),a.crc32=t.readUInt32LE(16),a.compressedSize=t.readUInt32LE(20),a.uncompressedSize=t.readUInt32LE(24),a.fileNameLength=t.readUInt16LE(28),a.extraFieldLength=t.readUInt16LE(30),a.fileCommentLength=t.readUInt16LE(32),a.internalFileAttributes=t.readUInt16LE(36),a.externalFileAttributes=t.readUInt32LE(38),a.relativeOffsetOfLocalHeader=t.readUInt32LE(42),64&a.generalPurposeBitFlag)return g(e,new Error("strong encryption is not supported"));e.readEntryCursor+=46,t=i(a.fileNameLength+a.extraFieldLength+a.fileCommentLength),w(e.reader,t,0,t.length,e.readEntryCursor,function(n){if(n)return g(e,n);if(!e.emittedError){var o=!!(2048&a.generalPurposeBitFlag);a.fileName=e.decodeStrings?j(t,0,a.fileNameLength,o):t.slice(0,a.fileNameLength);var r=a.fileNameLength+a.extraFieldLength,c=t.slice(a.fileNameLength,r);a.extraFields=[];for(var l=0;l<c.length-3;){var p=c.readUInt16LE(l+0),u=c.readUInt16LE(l+2),d=l+4,m=d+u;if(m>c.length)return g(e,new Error("extra field length exceeds extra field buffer size"));var f=i(u);c.copy(f,0,d,m),a.extraFields.push({id:p,data:f}),l=m}if(a.fileComment=e.decodeStrings?j(t,r,r+a.fileCommentLength,o):t.slice(r,r+a.fileCommentLength),a.comment=a.fileComment,e.readEntryCursor+=t.length,e.entriesRead+=1,4294967295===a.uncompressedSize||4294967295===a.compressedSize||4294967295===a.relativeOffsetOfLocalHeader){var h=null;for(l=0;l<a.extraFields.length;l++)if(1===(y=a.extraFields[l]).id){h=y.data;break}if(null==h)return g(e,new Error("expected zip64 extended information extra field"));var v=0;if(4294967295===a.uncompressedSize){if(v+8>h.length)return g(e,new Error("zip64 extended information extra field does not include uncompressed size"));a.uncompressedSize=N(h,v),v+=8}if(4294967295===a.compressedSize){if(v+8>h.length)return g(e,new Error("zip64 extended information extra field does not include compressed size"));a.compressedSize=N(h,v),v+=8}if(4294967295===a.relativeOffsetOfLocalHeader){if(v+8>h.length)return g(e,new Error("zip64 extended information extra field does not include relative header offset"));a.relativeOffsetOfLocalHeader=N(h,v),v+=8}}if(e.decodeStrings)for(l=0;l<a.extraFields.length;l++){var y;if(28789===(y=a.extraFields[l]).id){if(y.data.length<6)continue;if(1!==y.data.readUInt8(0))continue;var b=y.data.readUInt32LE(1);if(s.unsigned(t.slice(0,a.fileNameLength))!==b)continue;a.fileName=j(y.data,5,y.data.length,!0);break}}if(e.validateEntrySizes&&0===a.compressionMethod){var w=a.uncompressedSize;if(a.isEncrypted()&&(w+=12),a.compressedSize!==w){var _="compressed/uncompressed size mismatch for stored file: "+a.compressedSize+" != "+a.uncompressedSize;return g(e,new Error(_))}}if(e.decodeStrings){e.strictFileNames||(a.fileName=a.fileName.replace(/\\/g,"/"));var S=x(a.fileName,e.validateFileNameOptions);if(null!=S)return g(e,new Error(S))}e.emit("entry",a),e.lazyEntries||e._readEntry()}})}})}}else setImmediate(function(){e.autoClose&&e.close(),e.emittedError||e.emit("end")})},h.prototype.openReadStream=function(e,t,n){var a=this,r=0,s=e.compressedSize;if(null==n)n=t,t={};else{if(null!=t.decrypt){if(!e.isEncrypted())throw new Error("options.decrypt can only be specified for encrypted entries");if(!1!==t.decrypt)throw new Error("invalid options.decrypt value: "+t.decrypt);if(e.isCompressed()&&!1!==t.decompress)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}if(null!=t.decompress){if(!e.isCompressed())throw new Error("options.decompress can only be specified for compressed entries");if(!1!==t.decompress&&!0!==t.decompress)throw new Error("invalid options.decompress value: "+t.decompress)}if(null!=t.start||null!=t.end){if(e.isCompressed()&&!1!==t.decompress)throw new Error("start/end range not allowed for compressed entry without options.decompress === false");if(e.isEncrypted()&&!1!==t.decrypt)throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}if(null!=t.start){if((r=t.start)<0)throw new Error("options.start < 0");if(r>e.compressedSize)throw new Error("options.start > entry.compressedSize")}if(null!=t.end){if((s=t.end)<0)throw new Error("options.end < 0");if(s>e.compressedSize)throw new Error("options.end > entry.compressedSize");if(s<r)throw new Error("options.end < options.start")}}if(!a.isOpen)return n(new Error("closed"));if(e.isEncrypted()&&!1!==t.decrypt)return n(new Error("entry is encrypted, and options.decrypt !== false"));a.reader.ref();var c=i(30);w(a.reader,c,0,c.length,e.relativeOffsetOfLocalHeader,function(i){try{if(i)return n(i);var l=c.readUInt32LE(0);if(67324752!==l)return n(new Error("invalid local file header signature: 0x"+l.toString(16)));var p,u=c.readUInt16LE(26),d=c.readUInt16LE(28),m=e.relativeOffsetOfLocalHeader+c.length+u+d;if(0===e.compressionMethod)p=!1;else{if(8!==e.compressionMethod)return n(new Error("unsupported compression method: "+e.compressionMethod));p=null==t.decompress||t.decompress}var f=m,h=f+e.compressedSize;if(0!==e.compressedSize&&h>a.fileSize)return n(new Error("file data overflows file bounds: "+f+" + "+e.compressedSize+" > "+a.fileSize));var g=a.reader.createReadStream({start:f+r,end:f+s}),v=g;if(p){var y=!1,b=o.createInflateRaw();g.on("error",function(e){setImmediate(function(){y||b.emit("error",e)})}),g.pipe(b),a.validateEntrySizes?(v=new _(e.uncompressedSize),b.on("error",function(e){setImmediate(function(){y||v.emit("error",e)})}),b.pipe(v)):v=b,v.destroy=function(){y=!0,b!==v&&b.unpipe(v),g.unpipe(b),g.destroy()}}n(null,v)}finally{a.reader.unref()}})},y.prototype.getLastModDate=function(){return b(this.lastModFileDate,this.lastModFileTime)},y.prototype.isEncrypted=function(){return!!(1&this.generalPurposeBitFlag)},y.prototype.isCompressed=function(){return 8===this.compressionMethod},c.inherits(_,p),_.prototype._transform=function(e,t,n){if(this.actualByteCount+=e.length,this.actualByteCount>this.expectedByteCount){var i="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return n(new Error(i))}n(null,e)},_.prototype._flush=function(e){if(this.actualByteCount<this.expectedByteCount){var t="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return e(new Error(t))}e()},c.inherits(S,l),S.prototype.ref=function(){this.refCount+=1},S.prototype.unref=function(){var e=this;if(e.refCount-=1,!(e.refCount>0)){if(e.refCount<0)throw new Error("invalid unref");e.close(function(t){if(t)return e.emit("error",t);e.emit("close")})}},S.prototype.createReadStream=function(e){var t=e.start,n=e.end;if(t===n){var i=new u;return setImmediate(function(){i.end()}),i}var a=this._readStreamForRange(t,n),o=!1,r=new E(this);a.on("error",function(e){setImmediate(function(){o||r.emit("error",e)})}),r.destroy=function(){a.unpipe(r),r.unref(),a.destroy()};var s=new _(n-t);return r.on("error",function(e){setImmediate(function(){o||s.emit("error",e)})}),s.destroy=function(){o=!0,r.unpipe(s),r.destroy()},a.pipe(r).pipe(s)},S.prototype._readStreamForRange=function(e,t){throw new Error("not implemented")},S.prototype.read=function(e,t,n,i,a){var o=this.createReadStream({start:i,end:i+n}),r=new d,s=0;r._write=function(n,i,a){n.copy(e,t+s,0,n.length),s+=n.length,a()},r.on("finish",a),o.on("error",function(e){a(e)}),o.pipe(r)},S.prototype.close=function(e){setImmediate(e)},c.inherits(E,u),E.prototype._flush=function(e){this.unref(),e()},E.prototype.unref=function(e){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())},i="function"==typeof Buffer.allocUnsafe?function(e){return Buffer.allocUnsafe(e)}:function(e){return new Buffer(e)}},9031(e){e.exports=import("node:fs/promises")},7721(t,n,i){var a,o;t.exports=(a={default:()=>e.default,stdin:()=>e.stdin,stdout:()=>e.stdout},o={},i.d(o,a),o)},2607(e,n,i){var a,o;e.exports=(a={ReadStream:()=>t.ReadStream,default:()=>t.default},o={},i.d(o,a),o)},4472(e,t,i){var a,o;e.exports=(a={stripVTControlCharacters:()=>n.stripVTControlCharacters,styleText:()=>n.styleText},o={},i.d(o,a),o)},2613(e){e.exports=a("assert")},181(e){e.exports=a("buffer")},9140(e){e.exports=a("constants")},6982(e){e.exports=a("crypto")},4434(e){e.exports=a("events")},9896(e){e.exports=a("fs")},8611(e){e.exports=a("http")},5675(e){e.exports=a("http2")},5692(e){e.exports=a("https")},1421(e){e.exports=a("node:child_process")},5217(e){e.exports=a("node:crypto")},8474(e){e.exports=a("node:events")},3024(e){e.exports=a("node:fs")},1455(e){e.exports=a("node:fs/promises")},8161(e){e.exports=a("node:os")},6760(e){e.exports=a("node:path")},1708(e){e.exports=a("node:process")},857(e){e.exports=a("os")},6928(e){e.exports=a("path")},2203(e){e.exports=a("stream")},2018(e){e.exports=a("tty")},7016(e){e.exports=a("url")},9023(e){e.exports=a("util")},3106(e){e.exports=a("zlib")},9329(e,t,n){const i=n(737),a=n(6982),o=n(7016),r=n(6504),s=n(8611),c=n(5692),l=n(5675),p=n(9023),u=n(3164),d=n(3106),m=n(2203),f=n(4434);function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const g=h(i),v=h(a),y=h(o),b=h(r),x=h(s),w=h(c),_=h(l),S=h(p),E=h(u),j=h(d),N=h(m);function A(e,t){return function(){return e.apply(t,arguments)}}const{toString:C}=Object.prototype,{getPrototypeOf:O}=Object,{iterator:T,toStringTag:$}=Symbol,P=(k=Object.create(null),e=>{const t=C.call(e);return k[t]||(k[t]=t.slice(8,-1).toLowerCase())});var k;const L=e=>(e=e.toLowerCase(),t=>P(t)===e),R=e=>t=>typeof t===e,{isArray:F}=Array,D=R("undefined");function I(e){return null!==e&&!D(e)&&null!==e.constructor&&!D(e.constructor)&&U(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const M=L("ArrayBuffer"),B=R("string"),U=R("function"),z=R("number"),q=e=>null!==e&&"object"==typeof e,W=e=>{if("object"!==P(e))return!1;const t=O(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||$ in e||T in e)},V=L("Date"),H=L("File"),G=L("Blob"),J=L("FileList"),Y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},K=void 0!==Y.FormData?Y.FormData:void 0,X=L("URLSearchParams"),[Q,Z,ee,te]=["ReadableStream","Request","Response","Headers"].map(L);function ne(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,a;if("object"!=typeof e&&(e=[e]),F(e))for(i=0,a=e.length;i<a;i++)t.call(null,e[i],i,e);else{if(I(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let r;for(i=0;i<o;i++)r=a[i],t.call(null,e[r],r,e)}}function ie(e,t){if(I(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i,a=n.length;for(;a-- >0;)if(i=n[a],t===i.toLowerCase())return i;return null}const ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,oe=e=>!D(e)&&e!==ae,re=(se="undefined"!=typeof Uint8Array&&O(Uint8Array),e=>se&&e instanceof se);var se;const ce=L("HTMLFormElement"),le=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),pe=L("RegExp"),ue=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};ne(n,(n,a)=>{let o;!1!==(o=t(n,a,e))&&(i[a]=o||n)}),Object.defineProperties(e,i)},de=L("AsyncFunction"),me=(fe="function"==typeof setImmediate,he=U(ae.postMessage),fe?setImmediate:he?(ge=`axios@${Math.random()}`,ve=[],ae.addEventListener("message",({source:e,data:t})=>{e===ae&&t===ge&&ve.length&&ve.shift()()},!1),e=>{ve.push(e),ae.postMessage(ge,"*")}):e=>setTimeout(e));var fe,he,ge,ve;const ye="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ae):"undefined"!=typeof process&&process.nextTick||me,be={isArray:F,isArrayBuffer:M,isBuffer:I,isFormData:e=>{let t;return e&&(K&&e instanceof K||U(e.append)&&("formdata"===(t=P(e))||"object"===t&&U(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&M(e.buffer),t},isString:B,isNumber:z,isBoolean:e=>!0===e||!1===e,isObject:q,isPlainObject:W,isEmptyObject:e=>{if(!q(e)||I(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Q,isRequest:Z,isResponse:ee,isHeaders:te,isUndefined:D,isDate:V,isFile:H,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:G,isRegExp:pe,isFunction:U,isStream:e=>q(e)&&U(e.pipe),isURLSearchParams:X,isTypedArray:re,isFileList:J,forEach:ne,merge:function e(){const{caseless:t,skipUndefined:n}=oe(this)&&this||{},i={},a=(a,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;const r=t&&ie(i,o)||o;W(i[r])&&W(a)?i[r]=e(i[r],a):W(a)?i[r]=e({},a):F(a)?i[r]=a.slice():n&&D(a)||(i[r]=a)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ne(arguments[e],a);return i},extend:(e,t,n,{allOwnKeys:i}={})=>(ne(t,(t,i)=>{n&&U(t)?Object.defineProperty(e,i,{value:A(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let a,o,r;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)r=a[o],i&&!i(r,e,t)||s[r]||(t[r]=e[r],s[r]=!0);e=!1!==n&&O(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:P,kindOfTest:L,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if(F(e))return e;let t=e.length;if(!z(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[T]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:ce,hasOwnProperty:le,hasOwnProp:le,reduceDescriptors:ue,freezeMethods:e=>{ue(e,(t,n)=>{if(U(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];U(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach(e=>{n[e]=!0})};return F(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ie,global:ae,isContextDefined:oe,isSpecCompliantForm:function(e){return!!(e&&U(e.append)&&"FormData"===e[$]&&e[T])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(q(e)){if(t.indexOf(e)>=0)return;if(I(e))return e;if(!("toJSON"in e)){t[i]=e;const a=F(e)?[]:{};return ne(e,(e,t)=>{const o=n(e,i+1);!D(o)&&(a[t]=o)}),t[i]=void 0,a}}return e};return n(e,0)},isAsyncFn:de,isThenable:e=>e&&(q(e)||U(e))&&U(e.then)&&U(e.catch),setImmediate:me,asap:ye,isIterable:e=>null!=e&&U(e[T])};class xe extends Error{static from(e,t,n,i,a,o){const r=new xe(e.message,t||e.code,n,i,a);return r.cause=e,r.name=e.name,null!=e.status&&null==r.status&&(r.status=e.status),o&&Object.assign(r,o),r}constructor(e,t,n,i,a){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:be.toJSONObject(this.config),code:this.code,status:this.status}}}xe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",xe.ERR_BAD_OPTION="ERR_BAD_OPTION",xe.ECONNABORTED="ECONNABORTED",xe.ETIMEDOUT="ETIMEDOUT",xe.ERR_NETWORK="ERR_NETWORK",xe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",xe.ERR_DEPRECATED="ERR_DEPRECATED",xe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",xe.ERR_BAD_REQUEST="ERR_BAD_REQUEST",xe.ERR_CANCELED="ERR_CANCELED",xe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",xe.ERR_INVALID_URL="ERR_INVALID_URL";const we=xe;function _e(e){return be.isPlainObject(e)||be.isArray(e)}function Se(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function Ee(e,t,n){return e?e.concat(t).map(function(e,t){return e=Se(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const je=be.toFlatObject(be,{},null,function(e){return/^is[A-Z]/.test(e)});function Ne(e,t,n){if(!be.isObject(e))throw new TypeError("target must be an object");t=t||new(g.default||FormData);const i=(n=be.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!be.isUndefined(t[e])})).metaTokens,a=n.visitor||l,o=n.dots,r=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&be.isSpecCompliantForm(t);if(!be.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(be.isDate(e))return e.toISOString();if(be.isBoolean(e))return e.toString();if(!s&&be.isBlob(e))throw new we("Blob is not supported. Use a Buffer instead.");return be.isArrayBuffer(e)||be.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,a){let s=e;if(be.isReactNative(t)&&be.isReactNativeBlob(e))return t.append(Ee(a,n,o),c(e)),!1;if(e&&!a&&"object"==typeof e)if(be.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(be.isArray(e)&&function(e){return be.isArray(e)&&!e.some(_e)}(e)||(be.isFileList(e)||be.endsWith(n,"[]"))&&(s=be.toArray(e)))return n=Se(n),s.forEach(function(e,i){!be.isUndefined(e)&&null!==e&&t.append(!0===r?Ee([n],i,o):null===r?n:n+"[]",c(e))}),!1;return!!_e(e)||(t.append(Ee(a,n,o),c(e)),!1)}const p=[],u=Object.assign(je,{defaultVisitor:l,convertValue:c,isVisitable:_e});if(!be.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!be.isUndefined(n)){if(-1!==p.indexOf(n))throw Error("Circular reference detected in "+i.join("."));p.push(n),be.forEach(n,function(n,o){!0===(!(be.isUndefined(n)||null===n)&&a.call(t,n,be.isString(o)?o.trim():o,i,u))&&e(n,i?i.concat(o):[o])}),p.pop()}}(e),t}function Ae(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Ce(e,t){this._pairs=[],e&&Ne(e,this,t)}const Oe=Ce.prototype;function Te(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $e(e,t,n){if(!t)return e;const i=n&&n.encode||Te,a=be.isFunction(n)?{serialize:n}:n,o=a&&a.serialize;let r;if(r=o?o(t,a):be.isURLSearchParams(t)?t.toString():new Ce(t,a).toString(i),r){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}Oe.append=function(e,t){this._pairs.push([e,t])},Oe.toString=function(e){const t=e?function(t){return e.call(this,t,Ae)}:Ae;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Pe=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){be.forEach(this.handlers,function(t){null!==t&&e(t)})}},ke={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Le=y.default.URLSearchParams,Re="abcdefghijklmnopqrstuvwxyz",Fe="0123456789",De={DIGIT:Fe,ALPHA:Re,ALPHA_DIGIT:Re+Re.toUpperCase()+Fe},Ie={isNode:!0,classes:{URLSearchParams:Le,FormData:g.default,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:De,generateString:(e=16,t=De.ALPHA_DIGIT)=>{let n="";const{length:i}=t,a=new Uint32Array(e);v.default.randomFillSync(a);for(let o=0;o<e;o++)n+=t[a[o]%i];return n},protocols:["http","https","file","data"]},Me="undefined"!=typeof window&&"undefined"!=typeof document,Be="object"==typeof navigator&&navigator||void 0,Ue=Me&&(!Be||["ReactNative","NativeScript","NS"].indexOf(Be.product)<0),ze="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,qe=Me&&window.location.href||"http://localhost",We={...Object.freeze({__proto__:null,hasBrowserEnv:Me,hasStandardBrowserWebWorkerEnv:ze,hasStandardBrowserEnv:Ue,navigator:Be,origin:qe}),...Ie};function Ve(e){function t(e,n,i,a){let o=e[a++];if("__proto__"===o)return!0;const r=Number.isFinite(+o),s=a>=e.length;return o=!o&&be.isArray(i)?i.length:o,s?(be.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!r):(i[o]&&be.isObject(i[o])||(i[o]=[]),t(e,n,i[o],a)&&be.isArray(i[o])&&(i[o]=function(e){const t={},n=Object.keys(e);let i;const a=n.length;let o;for(i=0;i<a;i++)o=n[i],t[o]=e[o];return t}(i[o])),!r)}if(be.isFormData(e)&&be.isFunction(e.entries)){const n={};return be.forEachEntry(e,(e,i)=>{t(function(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),i,n,0)}),n}return null}const He={transitional:ke,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,a=be.isObject(e);if(a&&be.isHTMLForm(e)&&(e=new FormData(e)),be.isFormData(e))return i?JSON.stringify(Ve(e)):e;if(be.isArrayBuffer(e)||be.isBuffer(e)||be.isStream(e)||be.isFile(e)||be.isBlob(e)||be.isReadableStream(e))return e;if(be.isArrayBufferView(e))return e.buffer;if(be.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ne(e,new We.classes.URLSearchParams,{visitor:function(e,t,n,i){return We.isNode&&be.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((o=be.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ne(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||i?(t.setContentType("application/json",!1),function(e){if(be.isString(e))try{return(0,JSON.parse)(e),be.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||He.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(be.isResponse(e)||be.isReadableStream(e))return e;if(e&&be.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw we.from(e,we.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};be.forEach(["delete","get","head","post","put","patch"],e=>{He.headers[e]={}});const Ge=He,Je=be.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ye=Symbol("internals");function Ke(e){return e&&String(e).trim().toLowerCase()}function Xe(e){return!1===e||null==e?e:be.isArray(e)?e.map(Xe):String(e)}function Qe(e,t,n,i,a){return be.isFunction(i)?i.call(this,t,n):(a&&(t=n),be.isString(t)?be.isString(i)?-1!==t.indexOf(i):be.isRegExp(i)?i.test(t):void 0:void 0)}class Ze{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function a(e,t,n){const a=Ke(t);if(!a)throw new Error("header name must be a non-empty string");const o=be.findKey(i,a);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||t]=Xe(e))}const o=(e,t)=>be.forEach(e,(e,n)=>a(e,n,t));if(be.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(be.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,i,a;return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),i=e.substring(a+1).trim(),!n||t[n]&&Je[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t})(e),t);else if(be.isObject(e)&&be.isIterable(e)){let n,i,a={};for(const t of e){if(!be.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[i=t[0]]=(n=a[i])?be.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=Ke(e)){const n=be.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(be.isFunction(t))return t.call(this,e,n);if(be.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ke(e)){const n=be.findKey(this,e);return!(!n||void 0===this[n]||t&&!Qe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function a(e){if(e=Ke(e)){const a=be.findKey(n,e);!a||t&&!Qe(0,n[a],a,t)||(delete n[a],i=!0)}}return be.isArray(e)?e.forEach(a):a(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const a=t[n];e&&!Qe(0,this[a],a,e,!0)||(delete this[a],i=!0)}return i}normalize(e){const t=this,n={};return be.forEach(this,(i,a)=>{const o=be.findKey(n,a);if(o)return t[o]=Xe(i),void delete t[a];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(a):String(a).trim();r!==a&&delete t[a],t[r]=Xe(i),n[r]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return be.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&be.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Ye]=this[Ye]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=Ke(e);t[i]||(function(e,t){const n=be.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(e,n,a){return this[i].call(this,t,e,n,a)},configurable:!0})})}(n,e),t[i]=!0)}return be.isArray(e)?e.forEach(i):i(e),this}}Ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),be.reduceDescriptors(Ze.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),be.freezeMethods(Ze);const et=Ze;function tt(e,t){const n=this||Ge,i=t||n,a=et.from(i.headers);let o=i.data;return be.forEach(e,function(e){o=e.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function nt(e){return!(!e||!e.__CANCEL__)}const it=class extends we{constructor(e,t,n){super(null==e?"canceled":e,we.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function at(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new we("Request failed with status code "+n.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function ot(e,t,n){let i=!function(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(i||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const rt="1.13.6";function st(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const ct=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/,lt=Symbol("internals");class pt extends N.default.Transform{constructor(e){super({readableHighWaterMark:(e=be.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!be.isUndefined(t[e]))).chunkSize});const t=this[lt]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",e=>{"progress"===e&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){const t=this[lt];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const i=this[lt],a=i.maxRate,o=this.readableHighWaterMark,r=i.timeWindow,s=a/(1e3/r),c=!1!==i.minChunkSize?Math.max(i.minChunkSize,.01*s):0,l=(e,t)=>{const n=Buffer.byteLength(e);i.bytesSeen+=n,i.bytes+=n,i.isCaptured&&this.emit("progress",i.bytesSeen),this.push(e)?process.nextTick(t):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(t)}},p=(e,t)=>{const n=Buffer.byteLength(e);let p,u=null,d=o,m=0;if(a){const e=Date.now();(!i.ts||(m=e-i.ts)>=r)&&(i.ts=e,p=s-i.bytes,i.bytes=p<0?-p:0,m=0),p=s-i.bytes}if(a){if(p<=0)return setTimeout(()=>{t(null,e)},r-m);p<d&&(d=p)}d&&n>d&&n-d>c&&(u=e.subarray(d),e=e.subarray(0,d)),l(e,u?()=>{process.nextTick(t,null,u)}:t)};p(e,function e(t,i){if(t)return n(t);i?p(i,e):n(null)})}}const ut=pt,{asyncIterator:dt}=Symbol,mt=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[dt]?yield*e[dt]():yield e},ft=We.ALPHABET.ALPHA_DIGIT+"-_",ht="function"==typeof TextEncoder?new TextEncoder:new S.default.TextEncoder,gt="\r\n",vt=ht.encode(gt);class yt{constructor(e,t){const{escapeName:n}=this.constructor,i=be.isString(t);let a=`Content-Disposition: form-data; name="${n(e)}"${!i&&t.name?`; filename="${n(t.name)}"`:""}${gt}`;i?t=ht.encode(String(t).replace(/\r?\n|\r\n?/g,gt)):a+=`Content-Type: ${t.type||"application/octet-stream"}${gt}`,this.headers=ht.encode(a+gt),this.contentLength=i?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;be.isTypedArray(e)?yield e:yield*mt(e),yield vt}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e]))}}class bt extends N.default.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}}const xt=bt,wt=(e,t)=>be.isAsyncFn(e)?function(...n){const i=n.pop();e.apply(this,n).then(e=>{try{t?i(null,...t(e)):i(null,e)}catch(e){i(e)}},i)}:e,_t=(e,t,n=3)=>{let i=0;const a=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let a,o=0,r=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=i[r];a||(a=c),n[o]=s,i[o]=c;let p=r,u=0;for(;p!==o;)u+=n[p++],p%=e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),c-a<t)return;const d=l&&c-l;return d?Math.round(1e3*u/d):void 0}}(50,250);return function(n,o){let r,s,c=0,l=1e3/o;const p=(n,o=Date.now())=>{c=o,r=null,s&&(clearTimeout(s),s=null),(n=>{const o=n.loaded,r=n.lengthComputable?n.total:void 0,s=o-i,c=a(s);i=o,e({loaded:o,total:r,progress:r?o/r:void 0,bytes:s,rate:c||void 0,estimated:c&&r&&o<=r?(r-o)/c:void 0,event:n,lengthComputable:null!=r,[t?"download":"upload"]:!0})})(...n)};return[(...e)=>{const t=Date.now(),n=t-c;n>=l?p(e,t):(r=e,s||(s=setTimeout(()=>{s=null,p(r)},l-n)))},()=>r&&p(r)]}(0,n)},St=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Et=e=>(...t)=>be.asap(()=>e(...t)),jt={flush:j.default.constants.Z_SYNC_FLUSH,finishFlush:j.default.constants.Z_SYNC_FLUSH},Nt={flush:j.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:j.default.constants.BROTLI_OPERATION_FLUSH},At=be.isFunction(j.default.createBrotliDecompress),{http:Ct,https:Ot}=E.default,Tt=/https:?/,$t=We.protocols.map(e=>e+":"),Pt=(e,[t,n])=>(e.on("end",n).on("error",n),t),kt=new class{constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign({sessionTimeout:1e3},t);let n=this.sessions[e];if(n){let e=n.length;for(let i=0;i<e;i++){const[e,a]=n[i];if(!e.destroyed&&!e.closed&&S.default.isDeepStrictEqual(a,t))return e}}const i=_.default.connect(e,t);let a;const o=()=>{if(a)return;a=!0;let t=n,o=t.length,r=o;for(;r--;)if(t[r][0]===i)return void(1===o?delete this.sessions[e]:t.splice(r,1))},r=i.request,{sessionTimeout:s}=t;if(null!=s){let e,t=0;i.request=function(){const n=r.apply(this,arguments);return t++,e&&(clearTimeout(e),e=null),n.once("close",()=>{--t||(e=setTimeout(()=>{e=null,o()},s))}),n}}i.once("close",o);let c=[i,t];return n?n.push(c):n=this.sessions[e]=[c],i}};function Lt(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Rt(e,t,n){let i=t;if(!i&&!1!==i){const e=b.default.getProxyForUrl(n);e&&(i=new URL(e))}if(i){if(i.username&&(i.auth=(i.username||"")+":"+(i.password||"")),i.auth){if(Boolean(i.auth.username||i.auth.password))i.auth=(i.auth.username||"")+":"+(i.auth.password||"");else if("object"==typeof i.auth)throw new we("Invalid proxy authorization",we.ERR_BAD_OPTION,{proxy:i});const t=Buffer.from(i.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=i.hostname||i.host;e.hostname=t,e.host=t,e.port=i.port,e.path=n,i.protocol&&(e.protocol=i.protocol.includes(":")?i.protocol:`${i.protocol}:`)}e.beforeRedirects.proxy=function(e){Rt(e,t,e.href)}}const Ft="undefined"!=typeof process&&"process"===be.kindOf(process),Dt=(e,t)=>(({address:e,family:t})=>{if(!be.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(be.isObject(e)?e:{address:e,family:t}),It={request(e,t){const n=e.protocol+"//"+e.hostname+":"+(e.port||("https:"===e.protocol?443:80)),{http2Options:i,headers:a}=e,o=kt.getSession(n,i),{HTTP2_HEADER_SCHEME:r,HTTP2_HEADER_METHOD:s,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=_.default.constants,p={[r]:e.protocol.replace(":",""),[s]:e.method,[c]:e.path};be.forEach(a,(e,t)=>{":"!==t.charAt(0)&&(p[t]=e)});const u=o.request(p);return u.once("response",e=>{const n=u,i=(e=Object.assign({},e))[l];delete e[l],n.headers=e,n.statusCode=+i,t(n)}),u}},Mt=Ft&&function(e){return t=async function(t,n,i){let{data:a,lookup:o,family:r,httpVersion:s=1,http2Options:c}=e;const{responseType:l,responseEncoding:p}=e,u=e.method.toUpperCase();let d,h,g=!1;if(s=+s,Number.isNaN(s))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(1!==s&&2!==s)throw TypeError(`Unsupported protocol version '${s}'`);const v=2===s;if(o){const e=wt(o,e=>be.isArray(e)?e:[e]);o=(t,n,i)=>{e(t,n,(e,t,a)=>{if(e)return i(e);const o=be.isArray(t)?t.map(e=>Dt(e)):[Dt(t,a)];n.all?i(e,o):i(e,o[0].address,o[0].family)})}}const y=new f.EventEmitter;function b(t){try{y.emit("abort",!t||t.type?new it(null,e,h):t)}catch(e){console.warn("emit error",e)}}y.once("abort",n);const _=()=>{e.cancelToken&&e.cancelToken.unsubscribe(b),e.signal&&e.signal.removeEventListener("abort",b),y.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(b),e.signal&&(e.signal.aborted?b():e.signal.addEventListener("abort",b))),i((e,t)=>{if(d=!0,t)return g=!0,void _();const{data:n}=e;if(n instanceof N.default.Readable||n instanceof N.default.Duplex){const e=N.default.finished(n,()=>{e(),_()})}else _()});const E=ot(e.baseURL,e.url,e.allowAbsoluteUrls),A=new URL(E,We.hasBrowserEnv?We.origin:void 0),C=A.protocol||$t[0];if("data:"===C){if(e.maxContentLength>-1){const t=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),i=e.slice(t+1);if(/;base64/i.test(n)){let e=i.length;const t=i.length;for(let n=0;n<t;n++)if(37===i.charCodeAt(n)&&n+2<t){const t=i.charCodeAt(n+1),a=i.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102)&&(e-=2,n+=2)}let n=0,a=t-1;const o=e=>e>=2&&37===i.charCodeAt(e-2)&&51===i.charCodeAt(e-1)&&(68===i.charCodeAt(e)||100===i.charCodeAt(e));a>=0&&(61===i.charCodeAt(a)?(n++,a--):o(a)&&(n++,a-=3)),1===n&&a>=0&&(61===i.charCodeAt(a)||o(a))&&n++;const r=3*Math.floor(e/4)-(n||0);return r>0?r:0}return Buffer.byteLength(i,"utf8")}(String(e.url||E||""));if(t>e.maxContentLength)return n(new we("maxContentLength size of "+e.maxContentLength+" exceeded",we.ERR_BAD_RESPONSE,e))}let i;if("GET"!==u)return at(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{i=function(e,t,n){const i=n&&n.Blob||We.classes.Blob,a=st(e);if(void 0===t&&i&&(t=!0),"data"===a){e=a.length?e.slice(a.length+1):e;const n=ct.exec(e);if(!n)throw new we("Invalid URL",we.ERR_INVALID_URL);const o=n[1],r=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),r?"base64":"utf8");if(t){if(!i)throw new we("Blob is not supported",we.ERR_NOT_SUPPORT);return new i([c],{type:o})}return c}throw new we("Unsupported protocol "+a,we.ERR_NOT_SUPPORT)}(e.url,"blob"===l,{Blob:e.env&&e.env.Blob})}catch(t){throw we.from(t,we.ERR_BAD_REQUEST,e)}return"text"===l?(i=i.toString(p),p&&"utf8"!==p||(i=be.stripBOM(i))):"stream"===l&&(i=N.default.Readable.from(i)),at(t,n,{data:i,status:200,statusText:"OK",headers:new et,config:e})}if(-1===$t.indexOf(C))return n(new we("Unsupported protocol "+C,we.ERR_BAD_REQUEST,e));const O=et.from(e.headers).normalize();O.set("User-Agent","axios/"+rt,!1);const{onUploadProgress:T,onDownloadProgress:$}=e,P=e.maxRate;let k,L;if(be.isSpecCompliantForm(a)){const e=O.getContentType(/boundary=([-_\w\d]{10,70})/i);a=((e,t,n)=>{const{tag:i="form-data-boundary",size:a=25,boundary:o=i+"-"+We.generateString(a,ft)}=n||{};if(!be.isFormData(e))throw TypeError("FormData instance required");if(o.length<1||o.length>70)throw Error("boundary must be 10-70 characters long");const r=ht.encode("--"+o+gt),s=ht.encode("--"+o+"--"+gt);let c=s.byteLength;const l=Array.from(e.entries()).map(([e,t])=>{const n=new yt(e,t);return c+=n.size,n});c+=r.byteLength*l.length,c=be.toFiniteNumber(c);const p={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(p["Content-Length"]=c),t&&t(p),m.Readable.from(async function*(){for(const e of l)yield r,yield*e.encode();yield s}())})(a,e=>{O.set(e)},{tag:`axios-${rt}-boundary`,boundary:e&&e[1]||void 0})}else if(be.isFormData(a)&&be.isFunction(a.getHeaders)){if(O.set(a.getHeaders()),!O.hasContentLength())try{const e=await S.default.promisify(a.getLength).call(a);Number.isFinite(e)&&e>=0&&O.setContentLength(e)}catch(e){}}else if(be.isBlob(a)||be.isFile(a))a.size&&O.setContentType(a.type||"application/octet-stream"),O.setContentLength(a.size||0),a=N.default.Readable.from(mt(a));else if(a&&!be.isStream(a)){if(Buffer.isBuffer(a));else if(be.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else{if(!be.isString(a))return n(new we("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",we.ERR_BAD_REQUEST,e));a=Buffer.from(a,"utf-8")}if(O.setContentLength(a.length,!1),e.maxBodyLength>-1&&a.length>e.maxBodyLength)return n(new we("Request body larger than maxBodyLength limit",we.ERR_BAD_REQUEST,e))}const R=be.toFiniteNumber(O.getContentLength());let F,D;be.isArray(P)?(k=P[0],L=P[1]):k=L=P,a&&(T||k)&&(be.isStream(a)||(a=N.default.Readable.from(a,{objectMode:!1})),a=N.default.pipeline([a,new ut({maxRate:be.toFiniteNumber(k)})],be.noop),T&&a.on("progress",Pt(a,St(R,_t(Et(T),!1,3))))),e.auth&&(F=(e.auth.username||"")+":"+(e.auth.password||"")),!F&&A.username&&(F=A.username+":"+A.password),F&&O.delete("authorization");try{D=$e(A.pathname+A.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const i=new Error(t.message);return i.config=e,i.url=e.url,i.exists=!0,n(i)}O.set("Accept-Encoding","gzip, compress, deflate"+(At?", br":""),!1);const I={path:D,method:u,headers:O.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:F,protocol:C,family:r,beforeRedirect:Lt,beforeRedirects:{},http2Options:c};let M;!be.isUndefined(o)&&(I.lookup=o),e.socketPath?I.socketPath=e.socketPath:(I.hostname=A.hostname.startsWith("[")?A.hostname.slice(1,-1):A.hostname,I.port=A.port,Rt(I,e.proxy,C+"//"+A.hostname+(A.port?":"+A.port:"")+I.path));const B=Tt.test(I.protocol);if(I.agent=B?e.httpsAgent:e.httpAgent,v?M=It:e.transport?M=e.transport:0===e.maxRedirects?M=B?w.default:x.default:(e.maxRedirects&&(I.maxRedirects=e.maxRedirects),e.beforeRedirect&&(I.beforeRedirects.config=e.beforeRedirect),M=B?Ot:Ct),e.maxBodyLength>-1?I.maxBodyLength=e.maxBodyLength:I.maxBodyLength=1/0,e.insecureHTTPParser&&(I.insecureHTTPParser=e.insecureHTTPParser),h=M.request(I,function(i){if(h.destroyed)return;const a=[i],o=be.toFiniteNumber(i.headers["content-length"]);if($||L){const e=new ut({maxRate:be.toFiniteNumber(L)});$&&e.on("progress",Pt(e,St(o,_t(Et($),!0,3)))),a.push(e)}let r=i;const s=i.req||h;if(!1!==e.decompress&&i.headers["content-encoding"])switch("HEAD"!==u&&204!==i.statusCode||delete i.headers["content-encoding"],(i.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":a.push(j.default.createUnzip(jt)),delete i.headers["content-encoding"];break;case"deflate":a.push(new xt),a.push(j.default.createUnzip(jt)),delete i.headers["content-encoding"];break;case"br":At&&(a.push(j.default.createBrotliDecompress(Nt)),delete i.headers["content-encoding"])}r=a.length>1?N.default.pipeline(a,be.noop):a[0];const c={status:i.statusCode,statusText:i.statusMessage,headers:new et(i.headers),config:e,request:s};if("stream"===l)c.data=r,at(t,n,c);else{const i=[];let a=0;r.on("data",function(t){i.push(t),a+=t.length,e.maxContentLength>-1&&a>e.maxContentLength&&(g=!0,r.destroy(),b(new we("maxContentLength size of "+e.maxContentLength+" exceeded",we.ERR_BAD_RESPONSE,e,s)))}),r.on("aborted",function(){if(g)return;const t=new we("stream has been aborted",we.ERR_BAD_RESPONSE,e,s);r.destroy(t),n(t)}),r.on("error",function(t){h.destroyed||n(we.from(t,null,e,s))}),r.on("end",function(){try{let e=1===i.length?i[0]:Buffer.concat(i);"arraybuffer"!==l&&(e=e.toString(p),p&&"utf8"!==p||(e=be.stripBOM(e))),c.data=e}catch(t){return n(we.from(t,null,e,c.request,c))}at(t,n,c)})}y.once("abort",e=>{r.destroyed||(r.emit("error",e),r.destroy())})}),y.once("abort",e=>{h.close?h.close():h.destroy(e)}),h.on("error",function(t){n(we.from(t,null,e,h))}),h.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void b(new we("error trying to parse `config.timeout` to int",we.ERR_BAD_OPTION_VALUE,e,h));h.setTimeout(t,function(){if(d)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||ke;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),b(new we(t,n.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,h))})}else h.setTimeout(0);if(be.isStream(a)){let t=!1,n=!1;a.on("end",()=>{t=!0}),a.once("error",e=>{n=!0,h.destroy(e)}),a.on("close",()=>{t||n||b(new it("Request stream has been aborted",e,h))}),a.pipe(h)}else a&&h.write(a),h.end()},new Promise((e,n)=>{let i,a;const o=(e,t)=>{a||(a=!0,i&&i(e,t))},r=e=>{o(e,!0),n(e)};t(t=>{o(t),e(t)},r,e=>i=e).catch(r)});var t},Bt=We.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,We.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(We.origin),We.navigator&&/(msie|trident)/i.test(We.navigator.userAgent)):()=>!0,Ut=We.hasStandardBrowserEnv?{write(e,t,n,i,a,o,r){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];be.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),be.isString(i)&&s.push(`path=${i}`),be.isString(a)&&s.push(`domain=${a}`),!0===o&&s.push("secure"),be.isString(r)&&s.push(`SameSite=${r}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},zt=e=>e instanceof et?{...e}:e;function qt(e,t){t=t||{};const n={};function i(e,t,n,i){return be.isPlainObject(e)&&be.isPlainObject(t)?be.merge.call({caseless:i},e,t):be.isPlainObject(t)?be.merge({},t):be.isArray(t)?t.slice():t}function a(e,t,n,a){return be.isUndefined(t)?be.isUndefined(e)?void 0:i(void 0,e,0,a):i(e,t,0,a)}function o(e,t){if(!be.isUndefined(t))return i(void 0,t)}function r(e,t){return be.isUndefined(t)?be.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,a,o){return o in t?i(n,a):o in e?i(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(e,t,n)=>a(zt(e),zt(t),0,!0)};return be.forEach(Object.keys({...e,...t}),function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;const o=be.hasOwnProp(c,i)?c[i]:a,r=o(e[i],t[i],i);be.isUndefined(r)&&o!==s||(n[i]=r)}),n}const Wt=e=>{const t=qt({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:o,headers:r,auth:s}=t;if(t.headers=r=et.from(r),t.url=$e(ot(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),be.isFormData(n))if(We.hasStandardBrowserEnv||We.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(be.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&r.set(e,n)})}if(We.hasStandardBrowserEnv&&(i&&be.isFunction(i)&&(i=i(t)),i||!1!==i&&Bt(t.url))){const e=a&&o&&Ut.read(o);e&&r.set(a,e)}return t},Vt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const i=Wt(e);let a=i.data;const o=et.from(i.headers).normalize();let r,s,c,l,p,{responseType:u,onUploadProgress:d,onDownloadProgress:m}=i;function f(){l&&l(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(r),i.signal&&i.signal.removeEventListener("abort",r)}let h=new XMLHttpRequest;function g(){if(!h)return;const i=et.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());at(function(e){t(e),f()},function(e){n(e),f()},{data:u&&"text"!==u&&"json"!==u?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:i,config:e,request:h}),h=null}h.open(i.method.toUpperCase(),i.url,!0),h.timeout=i.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new we("Request aborted",we.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const i=t&&t.message?t.message:"Network Error",a=new we(i,we.ERR_NETWORK,e,h);a.event=t||null,n(a),h=null},h.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const a=i.transitional||ke;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new we(t,a.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,h)),h=null},void 0===a&&o.setContentType(null),"setRequestHeader"in h&&be.forEach(o.toJSON(),function(e,t){h.setRequestHeader(t,e)}),be.isUndefined(i.withCredentials)||(h.withCredentials=!!i.withCredentials),u&&"json"!==u&&(h.responseType=i.responseType),m&&([c,p]=_t(m,!0),h.addEventListener("progress",c)),d&&h.upload&&([s,l]=_t(d),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",l)),(i.cancelToken||i.signal)&&(r=t=>{h&&(n(!t||t.type?new it(null,e,h):t),h.abort(),h=null)},i.cancelToken&&i.cancelToken.subscribe(r),i.signal&&(i.signal.aborted?r():i.signal.addEventListener("abort",r)));const v=st(i.url);v&&-1===We.protocols.indexOf(v)?n(new we("Unsupported protocol "+v+":",we.ERR_BAD_REQUEST,e)):h.send(a||null)})},Ht=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,i=new AbortController;const a=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;i.abort(t instanceof we?t:new it(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,a(new we(`timeout of ${t}ms exceeded`,we.ETIMEDOUT))},t);const r=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));const{signal:s}=i;return s.unsubscribe=()=>be.asap(r),s}},Gt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let i,a=0;for(;a<n;)i=a+t,yield e.slice(a,i),a=i},Jt=(e,t,n,i)=>{const a=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Gt(n,t)}(e,t);let o,r=0,s=e=>{o||(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await a.next();if(t)return s(),void e.close();let o=i.byteLength;if(n){let e=r+=o;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw s(e),e}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},{isFunction:Yt}=be,Kt=(({Request:e,Response:t})=>({Request:e,Response:t}))(be.global),{ReadableStream:Xt,TextEncoder:Qt}=be.global,Zt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},en=e=>{e=be.merge.call({skipUndefined:!0},Kt,e);const{fetch:t,Request:n,Response:i}=e,a=t?Yt(t):"function"==typeof fetch,o=Yt(n),r=Yt(i);if(!a)return!1;const s=a&&Yt(Xt),c=a&&("function"==typeof Qt?(l=new Qt,e=>l.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var l;const p=o&&s&&Zt(()=>{let e=!1;const t=new n(We.origin,{body:new Xt,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=r&&s&&Zt(()=>be.isReadableStream(new i("").body)),d={stream:u&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new we(`Response type '${e}' is not supported`,we.ERR_NOT_SUPPORT,n)})});return async e=>{let{url:a,method:r,data:s,signal:l,cancelToken:m,timeout:f,onDownloadProgress:h,onUploadProgress:g,responseType:v,headers:y,withCredentials:b="same-origin",fetchOptions:x}=Wt(e),w=t||fetch;v=v?(v+"").toLowerCase():"text";let _=Ht([l,m&&m.toAbortSignal()],f),S=null;const E=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let j;try{if(g&&p&&"get"!==r&&"head"!==r&&0!==(j=await(async(e,t)=>{const i=be.toFiniteNumber(e.getContentLength());return null==i?(async e=>{if(null==e)return 0;if(be.isBlob(e))return e.size;if(be.isSpecCompliantForm(e)){const t=new n(We.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return be.isArrayBufferView(e)||be.isArrayBuffer(e)?e.byteLength:(be.isURLSearchParams(e)&&(e+=""),be.isString(e)?(await c(e)).byteLength:void 0)})(t):i})(y,s))){let e,t=new n(a,{method:"POST",body:s,duplex:"half"});if(be.isFormData(s)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,n]=St(j,_t(Et(g)));s=Jt(t.body,65536,e,n)}}be.isString(b)||(b=b?"include":"omit");const t=o&&"credentials"in n.prototype,l={...x,signal:_,method:r.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};S=o&&new n(a,l);let m=await(o?w(S,x):w(a,l));const f=u&&("stream"===v||"response"===v);if(u&&(h||f&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=m[t]});const t=be.toFiniteNumber(m.headers.get("content-length")),[n,a]=h&&St(t,_t(Et(h),!0))||[];m=new i(Jt(m.body,65536,n,()=>{a&&a(),E&&E()}),e)}v=v||"text";let N=await d[be.findKey(d,v)||"text"](m,e);return!f&&E&&E(),await new Promise((t,n)=>{at(t,n,{data:N,headers:et.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:S})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new we("Network Error",we.ERR_NETWORK,e,S,t&&t.response),{cause:t.cause||t});throw we.from(t,t&&t.code,e,S,t&&t.response)}}},tn=new Map,nn=e=>{let t=e&&e.env||{};const{fetch:n,Request:i,Response:a}=t,o=[i,a,n];let r,s,c=o.length,l=tn;for(;c--;)r=o[c],s=l.get(r),void 0===s&&l.set(r,s=c?new Map:en(t)),l=s;return s};nn();const an={http:Mt,xhr:Vt,fetch:{get:nn}};be.forEach(an,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const on=e=>`- ${e}`,rn=e=>be.isFunction(e)||null===e||!1===e,sn=function(e,t){e=be.isArray(e)?e:[e];const{length:n}=e;let i,a;const o={};for(let r=0;r<n;r++){let n;if(i=e[r],a=i,!rn(i)&&(a=an[(n=String(i)).toLowerCase()],void 0===a))throw new we(`Unknown adapter '${n}'`);if(a&&(be.isFunction(a)||(a=a.get(t))))break;o[n||"#"+r]=a}if(!a){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(on).join("\n"):" "+on(e[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return a};function cn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new it(null,e)}function ln(e){return cn(e),e.headers=et.from(e.headers),e.data=tt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sn(e.adapter||Ge.adapter,e)(e).then(function(t){return cn(e),t.data=tt.call(e,e.transformResponse,t),t.headers=et.from(t.headers),t},function(t){return nt(t)||(cn(e),t&&t.response&&(t.response.data=tt.call(e,e.transformResponse,t.response),t.response.headers=et.from(t.response.headers))),Promise.reject(t)})}const pn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const un={};pn.transitional=function(e,t,n){function i(e,t){return"[Axios v"+rt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,o)=>{if(!1===e)throw new we(i(a," has been removed"+(t?" in "+t:"")),we.ERR_DEPRECATED);return t&&!un[a]&&(un[a]=!0,console.warn(i(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,o)}},pn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const dn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let a=i.length;for(;a-- >0;){const o=i[a],r=t[o];if(r){const t=e[o],n=void 0===t||r(t,o,e);if(!0!==n)throw new we("option "+o+" must be "+n,we.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new we("Unknown option "+o,we.ERR_BAD_OPTION)}},validators:pn},mn=dn.validators;class fn{constructor(e){this.defaults=e||{},this.interceptors={request:new Pe,response:new Pe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=qt(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:a}=t;void 0!==n&&dn.assertOptions(n,{silentJSONParsing:mn.transitional(mn.boolean),forcedJSONParsing:mn.transitional(mn.boolean),clarifyTimeoutError:mn.transitional(mn.boolean),legacyInterceptorReqResOrdering:mn.transitional(mn.boolean)},!1),null!=i&&(be.isFunction(i)?t.paramsSerializer={serialize:i}:dn.assertOptions(i,{encode:mn.function,serialize:mn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),dn.assertOptions(t,{baseUrl:mn.spelling("baseURL"),withXsrfToken:mn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&be.merge(a.common,a[t.method]);a&&be.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=et.concat(o,a);const r=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||ke;n&&n.legacyInterceptorReqResOrdering?r.unshift(e.fulfilled,e.rejected):r.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let p,u=0;if(!s){const e=[ln.bind(this),void 0];for(e.unshift(...r),e.push(...c),p=e.length,l=Promise.resolve(t);u<p;)l=l.then(e[u++],e[u++]);return l}p=r.length;let d=t;for(;u<p;){const e=r[u++],t=r[u++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=ln.call(this,d)}catch(e){return Promise.reject(e)}for(u=0,p=c.length;u<p;)l=l.then(c[u++],c[u++]);return l}getUri(e){return $e(ot((e=qt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}be.forEach(["delete","get","head","options"],function(e){fn.prototype[e]=function(t,n){return this.request(qt(n||{},{method:e,url:t,data:(n||{}).data}))}}),be.forEach(["post","put","patch"],function(e){function t(t){return function(n,i,a){return this.request(qt(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}fn.prototype[e]=t(),fn.prototype[e+"Form"]=t(!0)});const hn=fn;class gn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,i,a){n.reason||(n.reason=new it(e,i,a),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new gn(function(t){e=t}),cancel:e}}}const vn=gn,yn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(yn).forEach(([e,t])=>{yn[t]=e});const bn=yn,xn=function e(t){const n=new hn(t),i=A(hn.prototype.request,n);return be.extend(i,hn.prototype,n,{allOwnKeys:!0}),be.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(qt(t,n))},i}(Ge);xn.Axios=hn,xn.CanceledError=it,xn.CancelToken=vn,xn.isCancel=nt,xn.VERSION=rt,xn.toFormData=Ne,xn.AxiosError=we,xn.Cancel=xn.CanceledError,xn.all=function(e){return Promise.all(e)},xn.spread=function(e){return function(t){return e.apply(null,t)}},xn.isAxiosError=function(e){return be.isObject(e)&&!0===e.isAxiosError},xn.mergeConfig=qt,xn.AxiosHeaders=et,xn.formToJSON=e=>Ve(be.isHTMLForm(e)?new FormData(e):e),xn.getAdapter=sn,xn.HttpStatusCode=bn,xn.default=xn,e.exports=xn},2116(e,t,n){const{Argument:i}=n(9297),{Command:a}=n(3749),{CommanderError:o,InvalidArgumentError:r}=n(3666),{Help:s}=n(3693),{Option:c}=n(5019);t.program=new a,t.createCommand=e=>new a(e),t.createOption=(e,t)=>new c(e,t),t.createArgument=(e,t)=>new i(e,t),t.Command=a,t.Option=c,t.Argument=i,t.Help=s,t.CommanderError=o,t.InvalidArgumentError=r,t.InvalidOptionArgumentError=r},9297(e,t,n){const{InvalidArgumentError:i}=n(3666);t.Argument=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?(t.push(e),t):[e]}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new i(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(e,t):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}},t.humanReadableArgName=function(e){const t=e.name()+(!0===e.variadic?"...":"");return e.required?"<"+t+">":"["+t+"]"}},3749(e,t,n){const i=n(8474).EventEmitter,a=n(1421),o=n(6760),r=n(3024),s=n(1708),{Argument:c,humanReadableArgName:l}=n(9297),{CommanderError:p}=n(3666),{Help:u,stripColor:d}=n(3693),{Option:m,DualOptions:f}=n(5019),{suggestSimilar:h}=n(7369);class g extends i{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:e=>s.stdout.write(e),writeErr:e=>s.stderr.write(e),outputError:(e,t)=>t(e),getOutHelpWidth:()=>s.stdout.isTTY?s.stdout.columns:void 0,getErrHelpWidth:()=>s.stderr.isTTY?s.stderr.columns:void 0,getOutHasColors:()=>y()??(s.stdout.isTTY&&s.stdout.hasColors?.()),getErrHasColors:()=>y()??(s.stderr.isTTY&&s.stderr.hasColors?.()),stripColor:e=>d(e)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){const e=[];for(let t=this;t;t=t.parent)e.push(t);return e}command(e,t,n){let i=t,a=n;"object"==typeof i&&null!==i&&(a=i,i=null),a=a||{};const[,o,r]=e.match(/([^ ]+) *(.*)/),s=this.createCommand(o);return i&&(s.description(i),s._executableHandler=!0),a.isDefault&&(this._defaultCommandName=s._name),s._hidden=!(!a.noHelp&&!a.hidden),s._executableFile=a.executableFile||null,r&&s.arguments(r),this._registerCommand(s),s.parent=this,s.copyInheritedSettings(this),i?this:s}createCommand(e){return new g(e)}createHelp(){return Object.assign(new u,this.configureHelp())}configureHelp(e){return void 0===e?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return void 0===e?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...e},this)}showHelpAfterError(e=!0){return"string"!=typeof e&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw new Error("Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()");return(t=t||{}).isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,t){return new c(e,t)}argument(e,t,n,i){const a=this.createArgument(e,t);return"function"==typeof n?a.default(i).argParser(n):a.default(n),this.addArgument(a),this}arguments(e){return e.trim().split(/ +/).forEach(e=>{this.argument(e)}),this}addArgument(e){const t=this.registeredArguments.slice(-1)[0];if(t?.variadic)throw new Error(`only the last argument can be variadic '${t.name()}'`);if(e.required&&void 0!==e.defaultValue&&void 0===e.parseArg)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,t){if("boolean"==typeof e)return this._addImplicitHelpCommand=e,e&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;const n=e??"help [command]",[,i,a]=n.match(/([^ ]+) *(.*)/),o=t??"display help for command",r=this.createCommand(i);return r.helpOption(!1),a&&r.arguments(a),o&&r.description(o),this._addImplicitHelpCommand=!0,this._helpCommand=r,(e||t)&&this._initCommandGroup(r),this}addHelpCommand(e,t){return"object"!=typeof e?(this.helpCommand(e,t),this):(this._addImplicitHelpCommand=!0,this._helpCommand=e,this._initCommandGroup(e),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(void 0===this._helpCommand&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,t){const n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.\nExpecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return this._exitCallback=e||(e=>{if("commander.executeSubCommandAsync"!==e.code)throw e}),this}_exit(e,t,n){this._exitCallback&&this._exitCallback(new p(e,t,n)),s.exit(e)}action(e){return this._actionHandler=t=>{const n=this.registeredArguments.length,i=t.slice(0,n);return this._storeOptionsAsProperties?i[n]=this:i[n]=this.opts(),i.push(this),e.apply(this,i)},this}createOption(e,t){return new m(e,t)}_callParseArg(e,t,n,i){try{return e.parseArg(t,n)}catch(e){if("commander.invalidArgument"===e.code){const t=`${i} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}}_registerOption(e){const t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){const n=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${n}'\n- already used by option '${t.flags}'`)}this._initOptionGroup(e),this.options.push(e)}_registerCommand(e){const t=e=>[e.name()].concat(e.aliases()),n=t(e).find(e=>this._findCommand(e));if(n){const i=t(this._findCommand(n)).join("|"),a=t(e).join("|");throw new Error(`cannot add command '${a}' as already have command '${i}'`)}this._initCommandGroup(e),this.commands.push(e)}addOption(e){this._registerOption(e);const t=e.name(),n=e.attributeName();if(e.negate){const t=e.long.replace(/^--no-/,"--");this._findOption(t)||this.setOptionValueWithSource(n,void 0===e.defaultValue||e.defaultValue,"default")}else void 0!==e.defaultValue&&this.setOptionValueWithSource(n,e.defaultValue,"default");const i=(t,i,a)=>{null==t&&void 0!==e.presetArg&&(t=e.presetArg);const o=this.getOptionValue(n);null!==t&&e.parseArg?t=this._callParseArg(e,t,o,i):null!==t&&e.variadic&&(t=e._collectValue(t,o)),null==t&&(t=!e.negate&&(!(!e.isBoolean()&&!e.optional)||"")),this.setOptionValueWithSource(n,t,a)};return this.on("option:"+t,t=>{const n=`error: option '${e.flags}' argument '${t}' is invalid.`;i(t,n,"cli")}),e.envVar&&this.on("optionEnv:"+t,t=>{const n=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;i(t,n,"env")}),this}_optionEx(e,t,n,i,a){if("object"==typeof t&&t instanceof m)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");const o=this.createOption(t,n);if(o.makeOptionMandatory(!!e.mandatory),"function"==typeof i)o.default(a).argParser(i);else if(i instanceof RegExp){const e=i;i=(t,n)=>{const i=e.exec(t);return i?i[0]:n},o.default(a).argParser(i)}else o.default(i);return this.addOption(o)}option(e,t,n,i){return this._optionEx({},e,t,n,i)}requiredOption(e,t,n,i){return this._optionEx({mandatory:!0},e,t,n,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,void 0)}setOptionValueWithSource(e,t,n){return this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;return this._getCommandAndAncestors().forEach(n=>{void 0!==n.getOptionValueSource(e)&&(t=n.getOptionValueSource(e))}),t}_prepareUserArgs(e,t){if(void 0!==e&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");if(t=t||{},void 0===e&&void 0===t.from){s.versions?.electron&&(t.from="electron");const e=s.execArgv??[];(e.includes("-e")||e.includes("--eval")||e.includes("-p")||e.includes("--print"))&&(t.from="eval")}let n;switch(void 0===e&&(e=s.argv),this.rawArgs=e.slice(),t.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":s.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;case"eval":n=e.slice(1);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,t){this._prepareForParse();const n=this._prepareUserArgs(e,t);return this._parseCommand([],n),this}async parseAsync(e,t){this._prepareForParse();const n=this._prepareUserArgs(e,t);return await this._parseCommand([],n),this}_prepareForParse(){null===this._savedState?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error("Can not call parse again when storeOptionsAsProperties is true.\n- either make a new Command for each call to parse, or stop storing options as properties");this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(e,t,n){if(!r.existsSync(e))throw new Error(`'${e}' does not exist\n - if '${n}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${t?`searched for local subcommand relative to directory '${t}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory"}`)}_executeSubCommand(e,t){t=t.slice();let n=!1;const i=[".js",".ts",".tsx",".mjs",".cjs"];function c(e,t){const n=o.resolve(e,t);if(r.existsSync(n))return n;if(i.includes(o.extname(t)))return;const a=i.find(e=>r.existsSync(`${n}${e}`));return a?`${n}${a}`:void 0}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let l,u=e._executableFile||`${this._name}-${e._name}`,d=this._executableDir||"";if(this._scriptPath){let e;try{e=r.realpathSync(this._scriptPath)}catch{e=this._scriptPath}d=o.resolve(o.dirname(e),d)}if(d){let t=c(d,u);if(!t&&!e._executableFile&&this._scriptPath){const n=o.basename(this._scriptPath,o.extname(this._scriptPath));n!==this._name&&(t=c(d,`${n}-${e._name}`))}u=t||u}n=i.includes(o.extname(u)),"win32"!==s.platform?n?(t.unshift(u),t=v(s.execArgv).concat(t),l=a.spawn(s.argv[0],t,{stdio:"inherit"})):l=a.spawn(u,t,{stdio:"inherit"}):(this._checkForMissingExecutable(u,d,e._name),t.unshift(u),t=v(s.execArgv).concat(t),l=a.spawn(s.execPath,t,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(e=>{s.on(e,()=>{!1===l.killed&&null===l.exitCode&&l.kill(e)})});const m=this._exitCallback;l.on("close",e=>{e=e??1,m?m(new p(e,"commander.executeSubCommandAsync","(close)")):s.exit(e)}),l.on("error",t=>{if("ENOENT"===t.code)this._checkForMissingExecutable(u,d,e._name);else if("EACCES"===t.code)throw new Error(`'${u}' not executable`);if(m){const e=new p(1,"commander.executeSubCommandAsync","(error)");e.nestedError=t,m(e)}else s.exit(1)}),this.runningCommand=l}_dispatchSubcommand(e,t,n){const i=this._findCommand(e);let a;return i||this.help({error:!0}),i._prepareForParse(),a=this._chainOrCallSubCommandHook(a,i,"preSubcommand"),a=this._chainOrCall(a,()=>{if(!i._executableHandler)return i._parseCommand(t,n);this._executeSubCommand(i,t.concat(n))}),a}_dispatchHelpCommand(e){e||this.help();const t=this._findCommand(e);return t&&!t._executableHandler&&t.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,t)=>{e.required&&null==this.args[t]&&this.missingArgument(e.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic||this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){const e=(e,t,n)=>{let i=t;if(null!==t&&e.parseArg){const a=`error: command-argument value '${t}' is invalid for argument '${e.name()}'.`;i=this._callParseArg(e,t,n,a)}return i};this._checkNumberOfArguments();const t=[];this.registeredArguments.forEach((n,i)=>{let a=n.defaultValue;n.variadic?i<this.args.length?(a=this.args.slice(i),n.parseArg&&(a=a.reduce((t,i)=>e(n,i,t),n.defaultValue))):void 0===a&&(a=[]):i<this.args.length&&(a=this.args[i],n.parseArg&&(a=e(n,a,n.defaultValue))),t[i]=a}),this.processedArgs=t}_chainOrCall(e,t){return e?.then&&"function"==typeof e.then?e.then(()=>t()):t()}_chainOrCallHooks(e,t){let n=e;const i=[];return this._getCommandAndAncestors().reverse().filter(e=>void 0!==e._lifeCycleHooks[t]).forEach(e=>{e._lifeCycleHooks[t].forEach(t=>{i.push({hookedCommand:e,callback:t})})}),"postAction"===t&&i.reverse(),i.forEach(e=>{n=this._chainOrCall(n,()=>e.callback(e.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,t,n){let i=e;return void 0!==this._lifeCycleHooks[n]&&this._lifeCycleHooks[n].forEach(e=>{i=this._chainOrCall(i,()=>e(this,t))}),i}_parseCommand(e,t){const n=this.parseOptions(t);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),t=n.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),t);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(t),this._dispatchSubcommand(this._defaultCommandName,e,t);!this.commands.length||0!==this.args.length||this._actionHandler||this._defaultCommandName||this.help({error:!0}),this._outputHelpIfRequested(n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();const i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},a=`command:${this.name()}`;if(this._actionHandler){let n;return i(),this._processArguments(),n=this._chainOrCallHooks(n,"preAction"),n=this._chainOrCall(n,()=>this._actionHandler(this.processedArgs)),this.parent&&(n=this._chainOrCall(n,()=>{this.parent.emit(a,e,t)})),n=this._chainOrCallHooks(n,"postAction"),n}if(this.parent?.listenerCount(a))i(),this._processArguments(),this.parent.emit(a,e,t);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,t);this.listenerCount("command:*")?this.emit("command:*",e,t):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(t=>t._name===e||t._aliases.includes(e))}_findOption(e){return this.options.find(t=>t.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(t=>{t.mandatory&&void 0===e.getOptionValue(t.attributeName())&&e.missingMandatoryOptionValue(t)})})}_checkForConflictingLocalOptions(){const e=this.options.filter(e=>{const t=e.attributeName();return void 0!==this.getOptionValue(t)&&"default"!==this.getOptionValueSource(t)});e.filter(e=>e.conflictsWith.length>0).forEach(t=>{const n=e.find(e=>t.conflictsWith.includes(e.attributeName()));n&&this._conflictingOption(t,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){const t=[],n=[];let i=t;function a(e){return e.length>1&&"-"===e[0]}const o=e=>!!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(e)&&!this._getCommandAndAncestors().some(e=>e.options.map(e=>e.short).some(e=>/^-\d$/.test(e)));let r=null,s=null,c=0;for(;c<e.length||s;){const l=s??e[c++];if(s=null,"--"===l){i===n&&i.push(l),i.push(...e.slice(c));break}if(!r||a(l)&&!o(l)){if(r=null,a(l)){const t=this._findOption(l);if(t){if(t.required){const n=e[c++];void 0===n&&this.optionMissingArgument(t),this.emit(`option:${t.name()}`,n)}else if(t.optional){let n=null;c<e.length&&(!a(e[c])||o(e[c]))&&(n=e[c++]),this.emit(`option:${t.name()}`,n)}else this.emit(`option:${t.name()}`);r=t.variadic?t:null;continue}}if(l.length>2&&"-"===l[0]&&"-"!==l[1]){const e=this._findOption(`-${l[1]}`);if(e){e.required||e.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${e.name()}`,l.slice(2)):(this.emit(`option:${e.name()}`),s=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){const e=l.indexOf("="),t=this._findOption(l.slice(0,e));if(t&&(t.required||t.optional)){this.emit(`option:${t.name()}`,l.slice(e+1));continue}}if(i!==t||!a(l)||0===this.commands.length&&o(l)||(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&0===t.length&&0===n.length){if(this._findCommand(l)){t.push(l),n.push(...e.slice(c));break}if(this._getHelpCommand()&&l===this._getHelpCommand().name()){t.push(l,...e.slice(c));break}if(this._defaultCommandName){n.push(l,...e.slice(c));break}}if(this._passThroughOptions){i.push(l,...e.slice(c));break}i.push(l)}else this.emit(`option:${r.name()}`,l)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){const e={},t=this.options.length;for(let n=0;n<t;n++){const t=this.options[n].attributeName();e[t]=t===this._versionOptionName?this._version:this[t]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,t)=>Object.assign(e,t.opts()),{})}error(e,t){this._outputConfiguration.outputError(`${e}\n`,this._outputConfiguration.writeErr),"string"==typeof this._showHelpAfterError?this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`):this._showHelpAfterError&&(this._outputConfiguration.writeErr("\n"),this.outputHelp({error:!0}));const n=t||{},i=n.exitCode||1,a=n.code||"commander.error";this._exit(i,a,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in s.env){const t=e.attributeName();(void 0===this.getOptionValue(t)||["default","config","env"].includes(this.getOptionValueSource(t)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,s.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){const e=new f(this.options),t=e=>void 0!==this.getOptionValue(e)&&!["default","implied"].includes(this.getOptionValueSource(e));this.options.filter(n=>void 0!==n.implied&&t(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(e=>{Object.keys(e.implied).filter(e=>!t(e)).forEach(t=>{this.setOptionValueWithSource(t,e.implied[t],"implied")})})}missingArgument(e){const t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){const t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){const t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){const n=e=>{const t=e.attributeName(),n=this.getOptionValue(t),i=this.options.find(e=>e.negate&&t===e.attributeName()),a=this.options.find(e=>!e.negate&&t===e.attributeName());return i&&(void 0===i.presetArg&&!1===n||void 0!==i.presetArg&&n===i.presetArg)?i:a||e},i=e=>{const t=n(e),i=t.attributeName();return"env"===this.getOptionValueSource(i)?`environment variable '${t.envVar}'`:`option '${t.flags}'`},a=`error: ${i(e)} cannot be used with ${i(t)}`;this.error(a,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let n=[],i=this;do{const e=i.createHelp().visibleOptions(i).filter(e=>e.long).map(e=>e.long);n=n.concat(e),i=i.parent}while(i&&!i._enablePositionalOptions);t=h(e,n)}const n=`error: unknown option '${e}'${t}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;const t=this.registeredArguments.length,n=1===t?"":"s",i=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${t} argument${n} but got ${e.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){const e=this.args[0];let t="";if(this._showSuggestionAfterError){const n=[];this.createHelp().visibleCommands(this).forEach(e=>{n.push(e.name()),e.alias()&&n.push(e.alias())}),t=h(e,n)}const n=`error: unknown command '${e}'${t}`;this.error(n,{code:"commander.unknownCommand"})}version(e,t,n){if(void 0===e)return this._version;this._version=e,t=t||"-V, --version",n=n||"output the version number";const i=this.createOption(t,n);return this._versionOptionName=i.attributeName(),this._registerOption(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}\n`),this._exit(0,"commander.version",e)}),this}description(e,t){return void 0===e&&void 0===t?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return void 0===e?this._summary:(this._summary=e,this)}alias(e){if(void 0===e)return this._aliases[0];let t=this;if(0!==this.commands.length&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");const n=this.parent?._findCommand(e);if(n){const t=[n.name()].concat(n.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${t}'`)}return t._aliases.push(e),this}aliases(e){return void 0===e?this._aliases:(e.forEach(e=>this.alias(e)),this)}usage(e){if(void 0===e){if(this._usage)return this._usage;const e=this.registeredArguments.map(e=>l(e));return[].concat(this.options.length||null!==this._helpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?e:[]).join(" ")}return this._usage=e,this}name(e){return void 0===e?this._name:(this._name=e,this)}helpGroup(e){return void 0===e?this._helpGroupHeading??"":(this._helpGroupHeading=e,this)}commandsGroup(e){return void 0===e?this._defaultCommandGroup??"":(this._defaultCommandGroup=e,this)}optionsGroup(e){return void 0===e?this._defaultOptionGroup??"":(this._defaultOptionGroup=e,this)}_initOptionGroup(e){this._defaultOptionGroup&&!e.helpGroupHeading&&e.helpGroup(this._defaultOptionGroup)}_initCommandGroup(e){this._defaultCommandGroup&&!e.helpGroup()&&e.helpGroup(this._defaultCommandGroup)}nameFromFilename(e){return this._name=o.basename(e,o.extname(e)),this}executableDir(e){return void 0===e?this._executableDir:(this._executableDir=e,this)}helpInformation(e){const t=this.createHelp(),n=this._getOutputContext(e);t.prepareContext({error:n.error,helpWidth:n.helpWidth,outputHasColors:n.hasColors});const i=t.formatHelp(this,t);return n.hasColors?i:this._outputConfiguration.stripColor(i)}_getOutputContext(e){const t=!!(e=e||{}).error;let n,i,a;return t?(n=e=>this._outputConfiguration.writeErr(e),i=this._outputConfiguration.getErrHasColors(),a=this._outputConfiguration.getErrHelpWidth()):(n=e=>this._outputConfiguration.writeOut(e),i=this._outputConfiguration.getOutHasColors(),a=this._outputConfiguration.getOutHelpWidth()),{error:t,write:e=>(i||(e=this._outputConfiguration.stripColor(e)),n(e)),hasColors:i,helpWidth:a}}outputHelp(e){let t;"function"==typeof e&&(t=e,e=void 0);const n=this._getOutputContext(e),i={error:n.error,write:n.write,command:this};this._getCommandAndAncestors().reverse().forEach(e=>e.emit("beforeAllHelp",i)),this.emit("beforeHelp",i);let a=this.helpInformation({error:n.error});if(t&&(a=t(a),"string"!=typeof a&&!Buffer.isBuffer(a)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(a),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",i),this._getCommandAndAncestors().forEach(e=>e.emit("afterAllHelp",i))}helpOption(e,t){return"boolean"==typeof e?(e?(null===this._helpOption&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(e??"-h, --help",t??"display help for command"),(e||t)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return void 0===this._helpOption&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this._initOptionGroup(e),this}help(e){this.outputHelp(e);let t=Number(s.exitCode??0);0===t&&e&&"function"!=typeof e&&e.error&&(t=1),this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){const n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${n.join("', '")}'`);const i=`${e}Help`;return this.on(i,e=>{let n;n="function"==typeof t?t({error:e.error,command:e.command}):t,n&&e.write(`${n}\n`)}),this}_outputHelpIfRequested(e){const t=this._getHelpOption();t&&e.find(e=>t.is(e))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}}function v(e){return e.map(e=>{if(!e.startsWith("--inspect"))return e;let t,n,i="127.0.0.1",a="9229";return null!==(n=e.match(/^(--inspect(-brk)?)$/))?t=n[1]:null!==(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))?(t=n[1],/^\d+$/.test(n[3])?a=n[3]:i=n[3]):null!==(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))&&(t=n[1],i=n[3],a=n[4]),t&&"0"!==a?`${t}=${i}:${parseInt(a)+1}`:e})}function y(){return!s.env.NO_COLOR&&"0"!==s.env.FORCE_COLOR&&"false"!==s.env.FORCE_COLOR&&(!(!s.env.FORCE_COLOR&&void 0===s.env.CLICOLOR_FORCE)||void 0)}t.Command=g,t.useColor=y},3666(e,t){class n extends Error{constructor(e,t,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}}t.CommanderError=n,t.InvalidArgumentError=class extends n{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}},3693(e,t,n){const{humanReadableArgName:i}=n(9297);function a(e){return e.replace(/\x1b\[\d*(;\d*)*m/g,"")}t.Help=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){const t=e.commands.filter(e=>!e._hidden),n=e._getHelpCommand();return n&&!n._hidden&&t.push(n),this.sortSubcommands&&t.sort((e,t)=>e.name().localeCompare(t.name())),t}compareOptions(e,t){const n=e=>e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"");return n(e).localeCompare(n(t))}visibleOptions(e){const t=e.options.filter(e=>!e.hidden),n=e._getHelpOption();if(n&&!n.hidden){const i=n.short&&e._findOption(n.short),a=n.long&&e._findOption(n.long);i||a?n.long&&!a?t.push(e.createOption(n.long,n.description)):n.short&&!i&&t.push(e.createOption(n.short,n.description)):t.push(n)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];const t=[];for(let n=e.parent;n;n=n.parent){const e=n.options.filter(e=>!e.hidden);t.push(...e)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(t=>{t.description=t.description||e._argsDescription[t.name()]||""}),e.registeredArguments.find(e=>e.description)?e.registeredArguments:[]}subcommandTerm(e){const t=e.registeredArguments.map(e=>i(e)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleSubcommandTerm(t.subcommandTerm(n)))),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleArgumentTerm(t.argumentTerm(n)))),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+"|"+e._aliases[0]);let n="";for(let t=e.parent;t;t=t.parent)n=t.name()+" "+n;return n+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){const t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(", ")}`),void 0!==e.defaultValue&&(e.required||e.optional||e.isBoolean()&&"boolean"==typeof e.defaultValue)&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),void 0!==e.presetArg&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),void 0!==e.envVar&&t.push(`env: ${e.envVar}`),t.length>0){const n=`(${t.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}argumentDescription(e){const t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(", ")}`),void 0!==e.defaultValue&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){const n=`(${t.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatItemList(e,t,n){return 0===t.length?[]:[n.styleTitle(e),...t,""]}groupItems(e,t,n){const i=new Map;return e.forEach(e=>{const t=n(e);i.has(t)||i.set(t,[])}),t.forEach(e=>{const t=n(e);i.has(t)||i.set(t,[]),i.get(t).push(e)}),i}formatHelp(e,t){const n=t.padWidth(e,t),i=t.helpWidth??80;function a(e,i){return t.formatItem(e,n,i,t)}let o=[`${t.styleTitle("Usage:")} ${t.styleUsage(t.commandUsage(e))}`,""];const r=t.commandDescription(e);r.length>0&&(o=o.concat([t.boxWrap(t.styleCommandDescription(r),i),""]));const s=t.visibleArguments(e).map(e=>a(t.styleArgumentTerm(t.argumentTerm(e)),t.styleArgumentDescription(t.argumentDescription(e))));if(o=o.concat(this.formatItemList("Arguments:",s,t)),this.groupItems(e.options,t.visibleOptions(e),e=>e.helpGroupHeading??"Options:").forEach((e,n)=>{const i=e.map(e=>a(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e))));o=o.concat(this.formatItemList(n,i,t))}),t.showGlobalOptions){const n=t.visibleGlobalOptions(e).map(e=>a(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e))));o=o.concat(this.formatItemList("Global Options:",n,t))}return this.groupItems(e.commands,t.visibleCommands(e),e=>e.helpGroup()||"Commands:").forEach((e,n)=>{const i=e.map(e=>a(t.styleSubcommandTerm(t.subcommandTerm(e)),t.styleSubcommandDescription(t.subcommandDescription(e))));o=o.concat(this.formatItemList(n,i,t))}),o.join("\n")}displayWidth(e){return a(e).length}styleTitle(e){return e}styleUsage(e){return e.split(" ").map(e=>"[options]"===e?this.styleOptionText(e):"[command]"===e?this.styleSubcommandText(e):"["===e[0]||"<"===e[0]?this.styleArgumentText(e):this.styleCommandText(e)).join(" ")}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(" ").map(e=>"[options]"===e?this.styleOptionText(e):"["===e[0]||"<"===e[0]?this.styleArgumentText(e):this.styleSubcommandText(e)).join(" ")}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,t,n,i){const a=" ".repeat(2);if(!n)return a+e;const o=e.padEnd(t+e.length-i.displayWidth(e)),r=(this.helpWidth??80)-t-2-2;let s;return s=r<this.minWidthToWrap||i.preformatted(n)?n:i.boxWrap(n,r).replace(/\n/g,"\n"+" ".repeat(t+2)),a+o+" ".repeat(2)+s.replace(/\n/g,`\n${a}`)}boxWrap(e,t){if(t<this.minWidthToWrap)return e;const n=e.split(/\r\n|\n/),i=/[\s]*[^\s]+/g,a=[];return n.forEach(e=>{const n=e.match(i);if(null===n)return void a.push("");let o=[n.shift()],r=this.displayWidth(o[0]);n.forEach(e=>{const n=this.displayWidth(e);if(r+n<=t)return o.push(e),void(r+=n);a.push(o.join(""));const i=e.trimStart();o=[i],r=this.displayWidth(i)}),a.push(o.join(""))}),a.join("\n")}},t.stripColor=a},5019(e,t,n){const{InvalidArgumentError:i}=n(3666);function a(e){return e.split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}t.Option=class{constructor(e,t){this.flags=e,this.description=t||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;const n=function(e){let t,n;const i=/^-[^-]$/,a=/^--[^-]/,o=e.split(/[ |,]+/).concat("guard");if(i.test(o[0])&&(t=o.shift()),a.test(o[0])&&(n=o.shift()),!t&&i.test(o[0])&&(t=o.shift()),!t&&a.test(o[0])&&(t=n,n=o.shift()),o[0].startsWith("-")){const t=o[0],n=`option creation failed due to '${t}' in option flags '${e}'`;if(/^-[^-][^-]/.test(t))throw new Error(`${n}\n- a short flag is a single dash and a single character\n - either use a single dash and a single character (for a short flag)\n - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(i.test(t))throw new Error(`${n}\n- too many short flags`);if(a.test(t))throw new Error(`${n}\n- too many long flags`);throw new Error(`${n}\n- unrecognised flag format`)}if(void 0===t&&void 0===n)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:n}}(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let t=e;return"string"==typeof e&&(t={[e]:!0}),this.implied=Object.assign(this.implied||{},t),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_collectValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?(t.push(e),t):[e]}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new i(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(e,t):e},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?a(this.name().replace(/^no-/,"")):a(this.name())}helpGroup(e){return this.helpGroupHeading=e,this}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},t.DualOptions=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(e=>{e.negate?this.negativeOptions.set(e.attributeName(),e):this.positiveOptions.set(e.attributeName(),e)}),this.negativeOptions.forEach((e,t)=>{this.positiveOptions.has(t)&&this.dualOptions.add(t)})}valueFromOption(e,t){const n=t.attributeName();if(!this.dualOptions.has(n))return!0;const i=this.negativeOptions.get(n).presetArg,a=void 0!==i&&i;return t.negate===(a===e)}}},7369(e,t){t.suggestSimilar=function(e,t){if(!t||0===t.length)return"";t=Array.from(new Set(t));const n=e.startsWith("--");n&&(e=e.slice(2),t=t.map(e=>e.slice(2)));let i=[],a=3;return t.forEach(t=>{if(t.length<=1)return;const n=function(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);const n=[];for(let t=0;t<=e.length;t++)n[t]=[t];for(let e=0;e<=t.length;e++)n[0][e]=e;for(let i=1;i<=t.length;i++)for(let a=1;a<=e.length;a++){let o=1;o=e[a-1]===t[i-1]?0:1,n[a][i]=Math.min(n[a-1][i]+1,n[a][i-1]+1,n[a-1][i-1]+o),a>1&&i>1&&e[a-1]===t[i-2]&&e[a-2]===t[i-1]&&(n[a][i]=Math.min(n[a][i],n[a-2][i-2]+1))}return n[e.length][t.length]}(e,t),o=Math.max(e.length,t.length);(o-n)/o>.4&&(n<a?(a=n,i=[t]):n===a&&i.push(t))}),i.sort((e,t)=>e.localeCompare(t)),n&&(i=i.map(e=>`--${e}`)),i.length>1?`\n(Did you mean one of ${i.join(", ")}?)`:1===i.length?`\n(Did you mean ${i[0]}?)`:""}},4603(e){(()=>{var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{XMLBuilder:()=>$e,XMLParser:()=>ge,XMLValidator:()=>Pe});const i=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",a=new RegExp("^["+i+"]["+i+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function o(e,t){const n=[];let i=t.exec(e);for(;i;){const a=[];a.startIndex=t.lastIndex-i[0].length;const o=i.length;for(let e=0;e<o;e++)a.push(i[e]);n.push(a),i=t.exec(e)}return n}const r=function(e){return!(null==a.exec(e))},s=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],c=["__proto__","constructor","prototype"],l={allowBooleanAttributes:!1,unpairedTags:[]};function p(e,t){t=Object.assign({},l,t);const n=[];let i=!1,a=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let o=0;o<e.length;o++)if("<"===e[o]&&"?"===e[o+1]){if(o+=2,o=d(e,o),o.err)return o}else{if("<"!==e[o]){if(u(e[o]))continue;return x("InvalidChar","char '"+e[o]+"' is not expected.",S(e,o))}{let r=o;if(o++,"!"===e[o]){o=m(e,o);continue}{let s=!1;"/"===e[o]&&(s=!0,o++);let c="";for(;o<e.length&&">"!==e[o]&&" "!==e[o]&&"\t"!==e[o]&&"\n"!==e[o]&&"\r"!==e[o];o++)c+=e[o];if(c=c.trim(),"/"===c[c.length-1]&&(c=c.substring(0,c.length-1),o--),!_(c)){let t;return t=0===c.trim().length?"Invalid space after '<'.":"Tag '"+c+"' is an invalid name.",x("InvalidTag",t,S(e,o))}const l=g(e,o);if(!1===l)return x("InvalidAttr","Attributes for '"+c+"' have open quote.",S(e,o));let p=l.value;if(o=l.index,"/"===p[p.length-1]){const n=o-p.length;p=p.substring(0,p.length-1);const a=y(p,t);if(!0!==a)return x(a.err.code,a.err.msg,S(e,n+a.err.line));i=!0}else if(s){if(!l.tagClosed)return x("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",S(e,o));if(p.trim().length>0)return x("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",S(e,r));if(0===n.length)return x("InvalidTag","Closing tag '"+c+"' has not been opened.",S(e,r));{const t=n.pop();if(c!==t.tagName){let n=S(e,t.tagStartPos);return x("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+c+"'.",S(e,r))}0==n.length&&(a=!0)}}else{const s=y(p,t);if(!0!==s)return x(s.err.code,s.err.msg,S(e,o-p.length+s.err.line));if(!0===a)return x("InvalidXml","Multiple possible root nodes found.",S(e,o));-1!==t.unpairedTags.indexOf(c)||n.push({tagName:c,tagStartPos:r}),i=!0}for(o++;o<e.length;o++)if("<"===e[o]){if("!"===e[o+1]){o++,o=m(e,o);continue}if("?"!==e[o+1])break;if(o=d(e,++o),o.err)return o}else if("&"===e[o]){const t=b(e,o);if(-1==t)return x("InvalidChar","char '&' is not expected.",S(e,o));o=t}else if(!0===a&&!u(e[o]))return x("InvalidXml","Extra text at the end",S(e,o));"<"===e[o]&&o--}}}return i?1==n.length?x("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",S(e,n[0].tagStartPos)):!(n.length>0)||x("InvalidXml","Invalid '"+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):x("InvalidXml","Start tag expected.",1)}function u(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function d(e,t){const n=t;for(;t<e.length;t++)if("?"==e[t]||" "==e[t]){const i=e.substr(n,t-n);if(t>5&&"xml"===i)return x("InvalidXml","XML declaration allowed only at the start of the document.",S(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}continue}return t}function m(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}const f='"',h="'";function g(e,t){let n="",i="",a=!1;for(;t<e.length;t++){if(e[t]===f||e[t]===h)""===i?i=e[t]:i!==e[t]||(i="");else if(">"===e[t]&&""===i){a=!0;break}n+=e[t]}return""===i&&{value:n,index:t,tagClosed:a}}const v=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function y(e,t){const n=o(e,v),i={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return x("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",E(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return x("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",E(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return x("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",E(n[e]));const a=n[e][2];if(!w(a))return x("InvalidAttr","Attribute '"+a+"' is an invalid name.",E(n[e]));if(Object.prototype.hasOwnProperty.call(i,a))return x("InvalidAttr","Attribute '"+a+"' is repeated.",E(n[e]));i[a]=1}return!0}function b(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function x(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function w(e){return r(e)}function _(e){return r(e)}function S(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function E(e){return e.startIndex+e[1].length}const j=e=>s.includes(e)?"__"+e:e,N={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:j};function A(e,t){if("string"!=typeof e)return;const n=e.toLowerCase();if(s.some(e=>n===e.toLowerCase()))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);if(c.some(e=>n===e.toLowerCase()))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function C(e){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:"object"==typeof e&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??100),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}:C(!0)}const O=function(e){const t=Object.assign({},N,e),n=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(const{value:e,name:t}of n)e&&A(e,t);return null===t.onDangerousProperty&&(t.onDangerousProperty=j),t.processEntities=C(t.processEntities),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e)),t};let T;T="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class ${constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][T]={startIndex:t})}static getMetaDataSymbol(){return T}}class P{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){const n=Object.create(null);let i=0;if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let a=1,o=!1,r=!1,s="";for(;t<e.length;t++)if("<"!==e[t]||r)if(">"===e[t]){if(r?"-"===e[t-1]&&"-"===e[t-2]&&(r=!1,a--):a--,0===a)break}else"["===e[t]?o=!0:s+=e[t];else{if(o&&L(e,"!ENTITY",t)){let a,o;if(t+=7,[a,o,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),-1===o.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&i>=this.options.maxEntityCount)throw new Error(`Entity count (${i+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);const e=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n[a]={regx:RegExp(`&${e};`,"g"),val:o},i++}}else if(o&&L(e,"!ELEMENT",t)){t+=8;const{index:n}=this.readElementExp(e,t+1);t=n}else if(o&&L(e,"!ATTLIST",t))t+=8;else if(o&&L(e,"!NOTATION",t)){t+=9;const{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else{if(!L(e,"!--",t))throw new Error("Invalid DOCTYPE");r=!0}a++,s=""}if(0!==a)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}readEntityExp(e,t){const n=t=k(e,t);for(;t<e.length&&!/\s/.test(e[t])&&'"'!==e[t]&&"'"!==e[t];)t++;let i=e.substring(n,t);if(R(i),t=k(e,t),!this.suppressValidationErr){if("SYSTEM"===e.substring(t,t+6).toUpperCase())throw new Error("External entities are not supported");if("%"===e[t])throw new Error("Parameter entities are not supported")}let a="";if([t,a]=this.readIdentifierVal(e,t,"entity"),!1!==this.options.enabled&&null!=this.options.maxEntitySize&&a.length>this.options.maxEntitySize)throw new Error(`Entity "${i}" size (${a.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[i,a,--t]}readNotationExp(e,t){const n=t=k(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);!this.suppressValidationErr&&R(i),t=k(e,t);const a=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==a&&"PUBLIC"!==a)throw new Error(`Expected SYSTEM or PUBLIC, found "${a}"`);t+=a.length,t=k(e,t);let o=null,r=null;if("PUBLIC"===a)[t,o]=this.readIdentifierVal(e,t,"publicIdentifier"),'"'!==e[t=k(e,t)]&&"'"!==e[t]||([t,r]=this.readIdentifierVal(e,t,"systemIdentifier"));else if("SYSTEM"===a&&([t,r]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!r))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:i,publicIdentifier:o,systemIdentifier:r,index:--t}}readIdentifierVal(e,t,n){let i="";const a=e[t];if('"'!==a&&"'"!==a)throw new Error(`Expected quoted string, found "${a}"`);const o=++t;for(;t<e.length&&e[t]!==a;)t++;if(i=e.substring(o,t),e[t]!==a)throw new Error(`Unterminated ${n} value`);return[++t,i]}readElementExp(e,t){const n=t=k(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);if(!this.suppressValidationErr&&!r(i))throw new Error(`Invalid element name: "${i}"`);let a="";if("E"===e[t=k(e,t)]&&L(e,"MPTY",t))t+=4;else if("A"===e[t]&&L(e,"NY",t))t+=2;else if("("===e[t]){const n=++t;for(;t<e.length&&")"!==e[t];)t++;if(a=e.substring(n,t),")"!==e[t])throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:i,contentModel:a.trim(),index:t}}readAttlistExp(e,t){let n=t=k(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);for(R(i),n=t=k(e,t);t<e.length&&!/\s/.test(e[t]);)t++;let a=e.substring(n,t);if(!R(a))throw new Error(`Invalid attribute name: "${a}"`);t=k(e,t);let o="";if("NOTATION"===e.substring(t,t+8).toUpperCase()){if(o="NOTATION","("!==e[t=k(e,t+=8)])throw new Error(`Expected '(', found "${e[t]}"`);t++;let n=[];for(;t<e.length&&")"!==e[t];){const i=t;for(;t<e.length&&"|"!==e[t]&&")"!==e[t];)t++;let a=e.substring(i,t);if(a=a.trim(),!R(a))throw new Error(`Invalid notation name: "${a}"`);n.push(a),"|"===e[t]&&(t++,t=k(e,t))}if(")"!==e[t])throw new Error("Unterminated list of notations");t++,o+=" ("+n.join("|")+")"}else{const n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;o+=e.substring(n,t);const i=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!i.includes(o.toUpperCase()))throw new Error(`Invalid attribute type: "${o}"`)}t=k(e,t);let r="";return"#REQUIRED"===e.substring(t,t+8).toUpperCase()?(r="#REQUIRED",t+=8):"#IMPLIED"===e.substring(t,t+7).toUpperCase()?(r="#IMPLIED",t+=7):[t,r]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:i,attributeName:a,attributeType:o,defaultValue:r,index:t}}}const k=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function L(e,t,n){for(let i=0;i<t.length;i++)if(t[i]!==e[n+i+1])return!1;return!0}function R(e){if(r(e))return e;throw new Error(`Invalid entity name ${e}`)}const F=/^[-+]?0x[a-fA-F0-9]+$/,D=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,I={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"},M=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/,B=new Set(["push","pop","reset","updateCurrent","restore"]);class U{constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[]}push(e,t=null,n=null){this.path.length>0&&(this.path[this.path.length-1].values=void 0);const i=this.path.length;this.siblingStacks[i]||(this.siblingStacks[i]=new Map);const a=this.siblingStacks[i],o=n?`${n}:${e}`:e,r=a.get(o)||0;let s=0;for(const e of a.values())s+=e;a.set(o,r+1);const c={tag:e,position:s,counter:r};null!=n&&(c.namespace=n),null!=t&&(c.values=t),this.path.push(c)}pop(){if(0===this.path.length)return;const e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){const t=this.path[this.path.length-1];null!=e&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(0===this.path.length)return;const t=this.path[this.path.length-1];return t.values?.[e]}hasAttr(e){if(0===this.path.length)return!1;const t=this.path[this.path.length-1];return void 0!==t.values&&e in t.values}getPosition(){return 0===this.path.length?-1:this.path[this.path.length-1].position??0}getCounter(){return 0===this.path.length?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){const n=e||this.separator;return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this.path=[],this.siblingStacks=[]}matches(e){const t=e.segments;return 0!==t.length&&(e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t))}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t<e.length;t++){const n=e[t],i=this.path[t],a=t===this.path.length-1;if(!this._matchSegment(n,i,a))return!1}return!0}_matchWithDeepWildcard(e){let t=this.path.length-1,n=e.length-1;for(;n>=0&&t>=0;){const i=e[n];if("deep-wildcard"===i.type){if(n--,n<0)return!0;const i=e[n];let a=!1;for(let e=t;e>=0;e--){const o=e===this.path.length-1;if(this._matchSegment(i,this.path[e],o)){t=e-1,n--,a=!0;break}}if(!a)return!1}else{const e=t===this.path.length-1;if(!this._matchSegment(i,this.path[t],e))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if("*"!==e.tag&&e.tag!==t.tag)return!1;if(void 0!==e.namespace&&"*"!==e.namespace&&e.namespace!==t.namespace)return!1;if(void 0!==e.attrName){if(!n)return!1;if(!t.values||!(e.attrName in t.values))return!1;if(void 0!==e.attrValue){const n=t.values[e.attrName];if(String(n)!==String(e.attrValue))return!1}}if(void 0!==e.position){if(!n)return!1;const i=t.counter??0;if("first"===e.position&&0!==i)return!1;if("odd"===e.position&&i%2!=1)return!1;if("even"===e.position&&i%2!=0)return!1;if("nth"===e.position&&i!==e.positionValue)return!1}return!0}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return new Proxy(this,{get(e,t,n){if(B.has(t))return()=>{throw new TypeError(`Cannot call '${t}' on a read-only Matcher. Obtain a writable instance to mutate state.`)};const i=Reflect.get(e,t,n);return"path"===t||"siblingStacks"===t?Object.freeze(Array.isArray(i)?i.map(e=>e instanceof Map?Object.freeze(new Map(e)):Object.freeze({...e})):i):"function"==typeof i?i.bind(e):i},set(e,t){throw new TypeError(`Cannot set property '${String(t)}' on a read-only Matcher.`)},deleteProperty(e,t){throw new TypeError(`Cannot delete property '${String(t)}' from a read-only Matcher.`)}})}}class z{constructor(e,t={}){this.pattern=e,this.separator=t.separator||".",this.segments=this._parse(e),this._hasDeepWildcard=this.segments.some(e=>"deep-wildcard"===e.type),this._hasAttributeCondition=this.segments.some(e=>void 0!==e.attrName),this._hasPositionSelector=this.segments.some(e=>void 0!==e.position)}_parse(e){const t=[];let n=0,i="";for(;n<e.length;)e[n]===this.separator?n+1<e.length&&e[n+1]===this.separator?(i.trim()&&(t.push(this._parseSegment(i.trim())),i=""),t.push({type:"deep-wildcard"}),n+=2):(i.trim()&&t.push(this._parseSegment(i.trim())),i="",n++):(i+=e[n],n++);return i.trim()&&t.push(this._parseSegment(i.trim())),t}_parseSegment(e){const t={type:"tag"};let n=null,i=e;const a=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(a&&(i=a[1]+a[3],a[2])){const e=a[2].slice(1,-1);e&&(n=e)}let o,r,s=i;if(i.includes("::")){const t=i.indexOf("::");if(o=i.substring(0,t).trim(),s=i.substring(t+2).trim(),!o)throw new Error(`Invalid namespace in pattern: ${e}`)}let c=null;if(s.includes(":")){const e=s.lastIndexOf(":"),t=s.substring(0,e).trim(),n=s.substring(e+1).trim();["first","last","odd","even"].includes(n)||/^nth\(\d+\)$/.test(n)?(r=t,c=n):r=s}else r=s;if(!r)throw new Error(`Invalid segment pattern: ${e}`);if(t.tag=r,o&&(t.namespace=o),n)if(n.includes("=")){const e=n.indexOf("=");t.attrName=n.substring(0,e).trim(),t.attrValue=n.substring(e+1).trim()}else t.attrName=n.trim();if(c){const e=c.match(/^nth\((\d+)\)$/);e?(t.position="nth",t.positionValue=parseInt(e[1],10)):t.position=c}return t}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}function q(e,t){if(!e)return{};const n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};const i={};for(const e in n)e.startsWith(t.attributeNamePrefix)?i[e.substring(t.attributeNamePrefix.length)]=n[e]:i[e]=n[e];return i}function W(e){if(!e||"string"!=typeof e)return;const t=e.indexOf(":");if(-1!==t&&t>0){const n=e.substring(0,t);if("xmlns"!==n)return n}}class V{constructor(e){var t;if(this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>re(t,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>re(t,16,"&#x")}},this.addExternalEntities=H,this.parseXml=X,this.parseTextData=G,this.resolveNameSpace=J,this.buildAttributesMap=K,this.isItStopNode=te,this.replaceEntitiesValue=Z,this.readStopNodeData=ae,this.saveTextToParentTag=ee,this.addChild=Q,this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const n of t){if("string"==typeof n&&e===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0,this.matcher=new U,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodeExpressions=[];for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];"string"==typeof t?this.stopNodeExpressions.push(new z(t)):t instanceof z&&this.stopNodeExpressions.push(t)}}}}function H(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const i=t[n],a=i.replace(/[.\-+*:]/g,"\\.");this.lastEntities[i]={regex:new RegExp("&"+a+";","g"),val:e[i]}}}function G(e,t,n,i,a,o,r){if(void 0!==e&&(this.options.trimValues&&!i&&(e=e.trim()),e.length>0)){r||(e=this.replaceEntitiesValue(e,t,n));const i=this.options.jPath?n.toString():n,s=this.options.tagValueProcessor(t,e,i,a,o);return null==s?e:typeof s!=typeof e||s!==e?s:this.options.trimValues||e.trim()===e?oe(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function J(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const Y=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function K(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const i=o(e,Y),a=i.length,r={},s={};for(let e=0;e<a;e++){const t=this.resolveNameSpace(i[e][1]),a=i[e][4];if(t.length&&void 0!==a){let e=a;this.options.trimValues&&(e=e.trim()),e=this.replaceEntitiesValue(e,n,this.readonlyMatcher),s[t]=e}}Object.keys(s).length>0&&"object"==typeof t&&t.updateCurrent&&t.updateCurrent(s);for(let e=0;e<a;e++){const a=this.resolveNameSpace(i[e][1]),o=this.options.jPath?t.toString():this.readonlyMatcher;if(this.ignoreAttributesFn(a,o))continue;let s=i[e][4],c=this.options.attributeNamePrefix+a;if(a.length)if(this.options.transformAttributeName&&(c=this.options.transformAttributeName(c)),c=ce(c,this.options),void 0!==s){this.options.trimValues&&(s=s.trim()),s=this.replaceEntitiesValue(s,n,this.readonlyMatcher);const e=this.options.jPath?t.toString():this.readonlyMatcher,i=this.options.attributeValueProcessor(a,s,e);r[c]=null==i?s:typeof i!=typeof s||i!==s?i:oe(s,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(r[c]=!0)}if(!Object.keys(r).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=r,e}return r}}const X=function(e){e=e.replace(/\r\n?/g,"\n");const t=new $("!xml");let n=t,i="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;const a=new P(this.options.processEntities);for(let o=0;o<e.length;o++)if("<"===e[o])if("/"===e[o+1]){const t=ne(e,">",o,"Closing Tag is not closed.");let a=e.substring(o+2,t).trim();if(this.options.removeNSPrefix){const e=a.indexOf(":");-1!==e&&(a=a.substr(e+1))}a=se(this.options.transformTagName,a,"",this.options).tagName,n&&(i=this.saveTextToParentTag(i,n,this.readonlyMatcher));const r=this.matcher.getCurrentTag();if(a&&-1!==this.options.unpairedTags.indexOf(a))throw new Error(`Unpaired tag can not be used as closing tag: </${a}>`);r&&-1!==this.options.unpairedTags.indexOf(r)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),i="",o=t}else if("?"===e[o+1]){let t=ie(e,o,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,n,this.readonlyMatcher),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new $(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName)),this.addChild(n,e,this.readonlyMatcher,o)}o=t.closeIndex+1}else if("!--"===e.substr(o+1,3)){const t=ne(e,"--\x3e",o+4,"Comment is not closed.");if(this.options.commentPropName){const a=e.substring(o+4,t-2);i=this.saveTextToParentTag(i,n,this.readonlyMatcher),n.add(this.options.commentPropName,[{[this.options.textNodeName]:a}])}o=t}else if("!D"===e.substr(o+1,2)){const t=a.readDocType(e,o);this.docTypeEntities=t.entities,o=t.i}else if("!["===e.substr(o+1,2)){const t=ne(e,"]]>",o,"CDATA is not closed.")-2,a=e.substring(o+9,t);i=this.saveTextToParentTag(i,n,this.readonlyMatcher);let r=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);null==r&&(r=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:a}]):n.add(this.options.textNodeName,r),o=t+2}else{let a=ie(e,o,this.options.removeNSPrefix);if(!a){const t=e.substring(Math.max(0,o-50),Math.min(e.length,o+50));throw new Error(`readTagExp returned undefined at position ${o}. Context: "${t}"`)}let r=a.tagName;const s=a.rawTagName;let c=a.tagExp,l=a.attrExpPresent,p=a.closeIndex;if(({tagName:r,tagExp:c}=se(this.options.transformTagName,r,c,this.options)),this.options.strictReservedNames&&(r===this.options.commentPropName||r===this.options.cdataPropName||r===this.options.textNodeName||r===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${r}`);n&&i&&"!xml"!==n.tagname&&(i=this.saveTextToParentTag(i,n,this.readonlyMatcher,!1));const u=n;u&&-1!==this.options.unpairedTags.indexOf(u.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let d=!1;c.length>0&&c.lastIndexOf("/")===c.length-1&&(d=!0,"/"===r[r.length-1]?(r=r.substr(0,r.length-1),c=r):c=c.substr(0,c.length-1),l=r!==c);let m,f=null,h={};m=W(s),r!==t.tagname&&this.matcher.push(r,{},m),r!==c&&l&&(f=this.buildAttributesMap(c,this.matcher,r),f&&(h=q(f,this.options))),r!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));const g=o;if(this.isCurrentNodeStopNode){let t="";if(d)o=a.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(r))o=a.closeIndex;else{const n=this.readStopNodeData(e,s,p+1);if(!n)throw new Error(`Unexpected end of ${s}`);o=n.i,t=n.tagContent}const i=new $(r);f&&(i[":@"]=f),i.add(this.options.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,i,this.readonlyMatcher,g)}else{if(d){({tagName:r,tagExp:c}=se(this.options.transformTagName,r,c,this.options));const e=new $(r);f&&(e[":@"]=f),this.addChild(n,e,this.readonlyMatcher,g),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(-1!==this.options.unpairedTags.indexOf(r)){const e=new $(r);f&&(e[":@"]=f),this.addChild(n,e,this.readonlyMatcher,g),this.matcher.pop(),this.isCurrentNodeStopNode=!1,o=a.closeIndex;continue}{const e=new $(r);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(n),f&&(e[":@"]=f),this.addChild(n,e,this.readonlyMatcher,g),n=e}}i="",o=p}}else i+=e[o];return t.child};function Q(e,t,n,i){this.options.captureMetaData||(i=void 0);const a=this.options.jPath?n.toString():n,o=this.options.updateTag(t.tagname,a,t[":@"]);!1===o||("string"==typeof o?(t.tagname=o,e.addChild(t,i)):e.addChild(t,i))}function Z(e,t,n){const i=this.options.processEntities;if(!i||!i.enabled)return e;if(i.allowedTags){const a=this.options.jPath?n.toString():n;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(t):i.allowedTags(t,a)))return e}if(i.tagFilter){const a=this.options.jPath?n.toString():n;if(!i.tagFilter(t,a))return e}for(const t of Object.keys(this.docTypeEntities)){const n=this.docTypeEntities[t],a=e.match(n.regx);if(a){if(this.entityExpansionCount+=a.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${i.maxTotalExpansions}`);const t=e.length;if(e=e.replace(n.regx,n.val),i.maxExpandedLength&&(this.currentExpandedLength+=e.length-t,this.currentExpandedLength>i.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${i.maxExpandedLength}`)}}for(const t of Object.keys(this.lastEntities)){const n=this.lastEntities[t],a=e.match(n.regex);if(a&&(this.entityExpansionCount+=a.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${i.maxTotalExpansions}`);e=e.replace(n.regex,n.val)}if(-1===e.indexOf("&"))return e;if(this.options.htmlEntities)for(const t of Object.keys(this.htmlEntities)){const n=this.htmlEntities[t],a=e.match(n.regex);if(a&&(this.entityExpansionCount+=a.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${i.maxTotalExpansions}`);e=e.replace(n.regex,n.val)}return e.replace(this.ampEntity.regex,this.ampEntity.val)}function ee(e,t,n,i){return e&&(void 0===i&&(i=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,i))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function te(e,t){if(!e||0===e.length)return!1;for(let n=0;n<e.length;n++)if(t.matches(e[n]))return!0;return!1}function ne(e,t,n,i){const a=e.indexOf(t,n);if(-1===a)throw new Error(i);return a+t.length-1}function ie(e,t,n,i=">"){const a=function(e,t,n=">"){let i,a="";for(let o=t;o<e.length;o++){let t=e[o];if(i)t===i&&(i="");else if('"'===t||"'"===t)i=t;else if(t===n[0]){if(!n[1])return{data:a,index:o};if(e[o+1]===n[1])return{data:a,index:o}}else"\t"===t&&(t=" ");a+=t}}(e,t+1,i);if(!a)return;let o=a.data;const r=a.index,s=o.search(/\s/);let c=o,l=!0;-1!==s&&(c=o.substring(0,s),o=o.substring(s+1).trimStart());const p=c;if(n){const e=c.indexOf(":");-1!==e&&(c=c.substr(e+1),l=c!==a.data.substr(e+1))}return{tagName:c,tagExp:o,closeIndex:r,attrExpPresent:l,rawTagName:p}}function ae(e,t,n){const i=n;let a=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const o=ne(e,">",n,`${t} is not closed`);if(e.substring(n+2,o).trim()===t&&(a--,0===a))return{tagContent:e.substring(i,n),i:o};n=o}else if("?"===e[n+1])n=ne(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=ne(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=ne(e,"]]>",n,"StopNode is not closed.")-2;else{const i=ie(e,n,">");i&&((i&&i.tagName)===t&&"/"!==i.tagExp[i.tagExp.length-1]&&a++,n=i.closeIndex)}}function oe(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},I,t),!e||"string"!=typeof e)return e;let n=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(n))return e;if("0"===e)return 0;if(t.hex&&F.test(n))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(n);if(isFinite(n)){if(n.includes("e")||n.includes("E"))return function(e,t,n){if(!n.eNotation)return e;const i=t.match(M);if(i){let a=i[1]||"";const o=-1===i[3].indexOf("e")?"E":"e",r=i[2],s=a?e[r.length+1]===o:e[r.length]===o;return r.length>1&&s?e:(1!==r.length||!i[3].startsWith(`.${o}`)&&i[3][0]!==o)&&r.length>0?n.leadingZeros&&!s?(t=(i[1]||"")+i[3],Number(t)):e:Number(t)}return e}(e,n,t);{const a=D.exec(n);if(a){const o=a[1]||"",r=a[2];let s=(i=a[3])&&-1!==i.indexOf(".")?("."===(i=i.replace(/0+$/,""))?i="0":"."===i[0]?i="0"+i:"."===i[i.length-1]&&(i=i.substring(0,i.length-1)),i):i;const c=o?"."===e[r.length+1]:"."===e[r.length];if(!t.leadingZeros&&(r.length>1||1===r.length&&!c))return e;{const i=Number(n),a=String(i);if(0===i)return i;if(-1!==a.search(/[eE]/))return t.eNotation?i:e;if(-1!==n.indexOf("."))return"0"===a||a===s||a===`${o}${s}`?i:e;let c=r?s:n;return r?c===a||o+c===a?i:e:c===a||c===o+a?i:e}}return e}}var i;return function(e,t,n){const i=t===1/0;switch(n.infinity.toLowerCase()){case"null":return null;case"infinity":return t;case"string":return i?"Infinity":"-Infinity";default:return e}}(e,Number(n),t)}(e,n)}return void 0!==e?e:""}function re(e,t,n){const i=Number.parseInt(e,t);return i>=0&&i<=1114111?String.fromCodePoint(i):n+e+";"}function se(e,t,n,i){if(e){const i=e(t);n===t&&(n=i),t=i}return{tagName:t=ce(t,i),tagExp:n}}function ce(e,t){if(c.includes(e))throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return s.includes(e)?t.onDangerousProperty(e):e}const le=$.getMetaDataSymbol();function pe(e,t){if(!e||"object"!=typeof e)return{};if(!t)return e;const n={};for(const i in e)i.startsWith(t)?n[i.substring(t.length)]=e[i]:n[i]=e[i];return n}function ue(e,t,n,i){return de(e,t,n,i)}function de(e,t,n,i){let a;const o={};for(let r=0;r<e.length;r++){const s=e[r],c=me(s);if(void 0!==c&&c!==t.textNodeName){const e=pe(s[":@"]||{},t.attributeNamePrefix);n.push(c,e)}if(c===t.textNodeName)void 0===a?a=s[c]:a+=""+s[c];else{if(void 0===c)continue;if(s[c]){let e=de(s[c],t,n,i);const a=he(e,t);if(s[":@"]?fe(e,s[":@"],i,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==s[le]&&"object"==typeof e&&null!==e&&(e[le]=s[le]),void 0!==o[c]&&Object.prototype.hasOwnProperty.call(o,c))Array.isArray(o[c])||(o[c]=[o[c]]),o[c].push(e);else{const n=t.jPath?i.toString():i;t.isArray(c,n,a)?o[c]=[e]:o[c]=e}void 0!==c&&c!==t.textNodeName&&n.pop()}}}return"string"==typeof a?a.length>0&&(o[t.textNodeName]=a):void 0!==a&&(o[t.textNodeName]=a),o}function me(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function fe(e,t,n,i){if(t){const a=Object.keys(t),o=a.length;for(let r=0;r<o;r++){const o=a[r],s=o.startsWith(i.attributeNamePrefix)?o.substring(i.attributeNamePrefix.length):o,c=i.jPath?n.toString()+"."+s:n;i.isArray(o,c,!0,!0)?e[o]=[t[o]]:e[o]=t[o]}}}function he(e,t){const{textNodeName:n}=t,i=Object.keys(e).length;return 0===i||!(1!==i||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}class ge{constructor(e){this.externalEntities={},this.options=O(e)}parse(e,t){if("string"!=typeof e&&e.toString)e=e.toString();else if("string"!=typeof e)throw new Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});const n=p(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new V(this.options);n.addExternalEntities(this.externalEntities);const i=n.parseXml(e);return this.options.preserveOrder||void 0===i?i:ue(i,this.options,n.matcher,n.readonlyMatcher)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return $.getMetaDataSymbol()}}function ve(e,t){let n="";t.format&&t.indentBy.length>0&&(n="\n");const i=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;e<t.stopNodes.length;e++){const n=t.stopNodes[e];"string"==typeof n?i.push(new z(n)):n instanceof z&&i.push(n)}return ye(e,t,n,new U,i)}function ye(e,t,n,i,a){let o="",r=!1;if(t.maxNestedTags&&i.getDepth()>t.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(e)){if(null!=e){let n=e.toString();return n=je(n,t),n}return""}for(let s=0;s<e.length;s++){const c=e[s],l=_e(c);if(void 0===l)continue;const p=be(c[":@"],t);i.push(l,p);const u=Ee(i,a);if(l===t.textNodeName){let e=c[l];u||(e=t.tagValueProcessor(l,e),e=je(e,t)),r&&(o+=n),o+=e,r=!1,i.pop();continue}if(l===t.cdataPropName){r&&(o+=n),o+=`<![CDATA[${c[l][0][t.textNodeName]}]]>`,r=!1,i.pop();continue}if(l===t.commentPropName){o+=n+`\x3c!--${c[l][0][t.textNodeName]}--\x3e`,r=!0,i.pop();continue}if("?"===l[0]){const e=Se(c[":@"],t,u),a="?xml"===l?"":n;let s=c[l][0][t.textNodeName];s=0!==s.length?" "+s:"",o+=a+`<${l}${s}${e}?>`,r=!0,i.pop();continue}let d=n;""!==d&&(d+=t.indentBy);const m=n+`<${l}${Se(c[":@"],t,u)}`;let f;f=u?xe(c[l],t):ye(c[l],t,d,i,a),-1!==t.unpairedTags.indexOf(l)?t.suppressUnpairedNode?o+=m+">":o+=m+"/>":f&&0!==f.length||!t.suppressEmptyNode?f&&f.endsWith(">")?o+=m+`>${f}${n}</${l}>`:(o+=m+">",f&&""!==n&&(f.includes("/>")||f.includes("</"))?o+=n+t.indentBy+f+n:o+=f,o+=`</${l}>`):o+=m+"/>",r=!0,i.pop()}return o}function be(e,t){if(!e||t.ignoreAttributes)return null;const n={};let i=!1;for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a.startsWith(t.attributeNamePrefix)?a.substr(t.attributeNamePrefix.length):a]=e[a],i=!0);return i?n:null}function xe(e,t){if(!Array.isArray(e))return null!=e?e.toString():"";let n="";for(let i=0;i<e.length;i++){const a=e[i],o=_e(a);if(o===t.textNodeName)n+=a[o];else if(o===t.cdataPropName)n+=a[o][0][t.textNodeName];else if(o===t.commentPropName)n+=a[o][0][t.textNodeName];else{if(o&&"?"===o[0])continue;if(o){const e=we(a[":@"],t),i=xe(a[o],t);i&&0!==i.length?n+=`<${o}${e}>${i}</${o}>`:n+=`<${o}${e}/>`}}}return n}function we(e,t){let n="";if(e&&!t.ignoreAttributes)for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=e[i];!0===a&&t.suppressBooleanAttributes?n+=` ${i.substr(t.attributeNamePrefix.length)}`:n+=` ${i.substr(t.attributeNamePrefix.length)}="${a}"`}return n}function _e(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const i=t[n];if(Object.prototype.hasOwnProperty.call(e,i)&&":@"!==i)return i}}function Se(e,t,n){let i="";if(e&&!t.ignoreAttributes)for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a))continue;let o;n?o=e[a]:(o=t.attributeValueProcessor(a,e[a]),o=je(o,t)),!0===o&&t.suppressBooleanAttributes?i+=` ${a.substr(t.attributeNamePrefix.length)}`:i+=` ${a.substr(t.attributeNamePrefix.length)}="${o}"`}return i}function Ee(e,t){if(!t||0===t.length)return!1;for(let n=0;n<t.length;n++)if(e.matches(t[n]))return!0;return!1}function je(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const i=t.entities[n];e=e.replace(i.regex,i.val)}return e}const Ne={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function Ae(e){if(this.options=Object.assign({},Ne,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];"string"==typeof t?this.stopNodeExpressions.push(new z(t)):t instanceof z&&this.stopNodeExpressions.push(t)}var t;!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const n of t){if("string"==typeof n&&e===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Te),this.processTextOrObjNode=Ce,this.options.format?(this.indentate=Oe,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Ce(e,t,n,i){const a=this.extractAttributes(e);if(i.push(t,a),this.checkStopNode(i)){const a=this.buildRawContent(e),o=this.buildAttributesForStopNode(e);return i.pop(),this.buildObjectNode(a,t,o,n)}const o=this.j2x(e,n+1,i);return i.pop(),void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,o.attrStr,n,i):this.buildObjectNode(o.val,t,o.attrStr,n)}function Oe(e){return this.options.indentBy.repeat(e)}function Te(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}Ae.prototype.build=function(e){if(this.options.preserveOrder)return ve(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});const t=new U;return this.j2x(e,0,t).val}},Ae.prototype.j2x=function(e,t,n){let i="",a="";if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");const o=this.options.jPath?n.toString():n,r=this.checkStopNode(n);for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s))if(void 0===e[s])this.isAttribute(s)&&(a+="");else if(null===e[s])this.isAttribute(s)||s===this.options.cdataPropName?a+="":"?"===s[0]?a+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:a+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if(e[s]instanceof Date)a+=this.buildTextValNode(e[s],s,"",t,n);else if("object"!=typeof e[s]){const c=this.isAttribute(s);if(c&&!this.ignoreAttributesFn(c,o))i+=this.buildAttrPairStr(c,""+e[s],r);else if(!c)if(s===this.options.textNodeName){let t=this.options.tagValueProcessor(s,""+e[s]);a+=this.replaceEntitiesValue(t)}else{n.push(s);const i=this.checkStopNode(n);if(n.pop(),i){const n=""+e[s];a+=""===n?this.indentate(t)+"<"+s+this.closeTag(s)+this.tagEndChar:this.indentate(t)+"<"+s+">"+n+"</"+s+this.tagEndChar}else a+=this.buildTextValNode(e[s],s,"",t,n)}}else if(Array.isArray(e[s])){const i=e[s].length;let o="",r="";for(let c=0;c<i;c++){const i=e[s][c];if(void 0===i);else if(null===i)"?"===s[0]?a+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:a+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if("object"==typeof i)if(this.options.oneListGroup){n.push(s);const e=this.j2x(i,t+1,n);n.pop(),o+=e.val,this.options.attributesGroupName&&i.hasOwnProperty(this.options.attributesGroupName)&&(r+=e.attrStr)}else o+=this.processTextOrObjNode(i,s,t,n);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(s,i);e=this.replaceEntitiesValue(e),o+=e}else{n.push(s);const e=this.checkStopNode(n);if(n.pop(),e){const e=""+i;o+=""===e?this.indentate(t)+"<"+s+this.closeTag(s)+this.tagEndChar:this.indentate(t)+"<"+s+">"+e+"</"+s+this.tagEndChar}else o+=this.buildTextValNode(i,s,"",t,n)}}this.options.oneListGroup&&(o=this.buildObjectNode(o,s,r,t)),a+=o}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName){const t=Object.keys(e[s]),n=t.length;for(let a=0;a<n;a++)i+=this.buildAttrPairStr(t[a],""+e[s][t[a]],r)}else a+=this.processTextOrObjNode(e[s],s,t,n);return{attrStr:i,val:a}},Ae.prototype.buildAttrPairStr=function(e,t,n){return n||(t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t)),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},Ae.prototype.extractAttributes=function(e){if(!e||"object"!=typeof e)return null;const t={};let n=!1;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const i=e[this.options.attributesGroupName];for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e]=i[e],n=!0)}else for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const a=this.isAttribute(i);a&&(t[a]=e[i],n=!0)}return n?t:null},Ae.prototype.buildRawContent=function(e){if("string"==typeof e)return e;if("object"!=typeof e||null===e)return String(e);if(void 0!==e[this.options.textNodeName])return e[this.options.textNodeName];let t="";for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(this.isAttribute(n))continue;if(this.options.attributesGroupName&&n===this.options.attributesGroupName)continue;const i=e[n];if(n===this.options.textNodeName)t+=i;else if(Array.isArray(i)){for(let e of i)if("string"==typeof e||"number"==typeof e)t+=`<${n}>${e}</${n}>`;else if("object"==typeof e&&null!==e){const i=this.buildRawContent(e),a=this.buildAttributesForStopNode(e);t+=""===i?`<${n}${a}/>`:`<${n}${a}>${i}</${n}>`}}else if("object"==typeof i&&null!==i){const e=this.buildRawContent(i),a=this.buildAttributesForStopNode(i);t+=""===e?`<${n}${a}/>`:`<${n}${a}>${e}</${n}>`}else t+=`<${n}>${i}</${n}>`}return t},Ae.prototype.buildAttributesForStopNode=function(e){if(!e||"object"!=typeof e)return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const i=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,a=n[e];!0===a&&this.options.suppressBooleanAttributes?t+=" "+i:t+=" "+i+'="'+a+'"'}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const i=this.isAttribute(n);if(i){const a=e[n];!0===a&&this.options.suppressBooleanAttributes?t+=" "+i:t+=" "+i+'="'+a+'"'}}return t},Ae.prototype.buildObjectNode=function(e,t,n,i){if(""===e)return"?"===t[0]?this.indentate(i)+"<"+t+n+"?"+this.tagEndChar:this.indentate(i)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let a="</"+t+this.tagEndChar,o="";return"?"===t[0]&&(o="?",a=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===o.length?this.indentate(i)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(i)+"<"+t+n+o+this.tagEndChar+e+this.indentate(i)+a:this.indentate(i)+"<"+t+n+o+">"+e+a}},Ae.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},Ae.prototype.checkStopNode=function(e){if(!this.stopNodeExpressions||0===this.stopNodeExpressions.length)return!1;for(let t=0;t<this.stopNodeExpressions.length;t++)if(e.matches(this.stopNodeExpressions[t]))return!0;return!1},Ae.prototype.buildTextValNode=function(e,t,n,i,a){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(i)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(i)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(i)+"<"+t+n+"?"+this.tagEndChar;{let a=this.options.tagValueProcessor(t,e);return a=this.replaceEntitiesValue(a),""===a?this.indentate(i)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(i)+"<"+t+n+">"+a+"</"+t+this.tagEndChar}},Ae.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e};const $e=Ae,Pe={validate:p};e.exports=n})()},321(e,t,n){n.d(t,{S_BAR:()=>fe,S_BAR_END:()=>he,S_BAR_END_RIGHT:()=>ve,S_BAR_H:()=>Ee,S_BAR_START:()=>me,S_BAR_START_RIGHT:()=>ge,S_CHECKBOX_ACTIVE:()=>xe,S_CHECKBOX_INACTIVE:()=>_e,S_CHECKBOX_SELECTED:()=>we,S_CONNECT_LEFT:()=>Ne,S_CORNER_BOTTOM_LEFT:()=>Ce,S_CORNER_BOTTOM_RIGHT:()=>Ae,S_CORNER_TOP_LEFT:()=>Oe,S_CORNER_TOP_RIGHT:()=>je,S_ERROR:()=>ke,S_INFO:()=>Te,S_PASSWORD_MASK:()=>Se,S_RADIO_ACTIVE:()=>ye,S_RADIO_INACTIVE:()=>be,S_STEP_ACTIVE:()=>le,S_STEP_CANCEL:()=>pe,S_STEP_ERROR:()=>ue,S_STEP_SUBMIT:()=>de,S_SUCCESS:()=>$e,S_WARN:()=>Pe,autocomplete:()=>rt,autocompleteMultiselect:()=>st,box:()=>dt,cancel:()=>vt,confirm:()=>mt,group:()=>ft,groupMultiselect:()=>ht,intro:()=>yt,isCI:()=>re,isCancel:()=>W,isTTY:()=>se,limitOptions:()=>it,log:()=>gt,multiselect:()=>wt,note:()=>Et,outro:()=>bt,password:()=>jt,path:()=>Nt,progress:()=>Tt,select:()=>Pt,selectKey:()=>kt,settings:()=>M,spinner:()=>Ct,stream:()=>Rt,symbol:()=>Le,symbolBar:()=>Re,taskLog:()=>Dt,tasks:()=>Ft,text:()=>It,unicode:()=>oe,unicodeOr:()=>ce,updateSettings:()=>B}),n.r(t);var i=n(4472),a=n(7721),h=n(723),g=n(2607);function v(e,t,n){if(!n.some(e=>!e.disabled))return e;const i=e+t,a=Math.max(n.length-1,0),o=i<0?a:i>a?0:i;return n[o].disabled?v(o,t<0?-1:1,n):o}const y=e=>161===e||164===e||167===e||168===e||170===e||173===e||174===e||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||198===e||208===e||215===e||216===e||e>=222&&e<=225||230===e||e>=232&&e<=234||236===e||237===e||240===e||242===e||243===e||e>=247&&e<=250||252===e||254===e||257===e||273===e||275===e||283===e||294===e||295===e||299===e||e>=305&&e<=307||312===e||e>=319&&e<=322||324===e||e>=328&&e<=331||333===e||338===e||339===e||358===e||359===e||363===e||462===e||464===e||466===e||468===e||470===e||472===e||474===e||476===e||593===e||609===e||708===e||711===e||e>=713&&e<=715||717===e||720===e||e>=728&&e<=731||733===e||735===e||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||1025===e||e>=1040&&e<=1103||1105===e||8208===e||e>=8211&&e<=8214||8216===e||8217===e||8220===e||8221===e||e>=8224&&e<=8226||e>=8228&&e<=8231||8240===e||8242===e||8243===e||8245===e||8251===e||8254===e||8308===e||8319===e||e>=8321&&e<=8324||8364===e||8451===e||8453===e||8457===e||8467===e||8470===e||8481===e||8482===e||8486===e||8491===e||8531===e||8532===e||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||8585===e||e>=8592&&e<=8601||8632===e||8633===e||8658===e||8660===e||8679===e||8704===e||8706===e||8707===e||8711===e||8712===e||8715===e||8719===e||8721===e||8725===e||8730===e||e>=8733&&e<=8736||8739===e||8741===e||e>=8743&&e<=8748||8750===e||e>=8756&&e<=8759||8764===e||8765===e||8776===e||8780===e||8786===e||8800===e||8801===e||e>=8804&&e<=8807||8810===e||8811===e||8814===e||8815===e||8834===e||8835===e||8838===e||8839===e||8853===e||8857===e||8869===e||8895===e||8978===e||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||9632===e||9633===e||e>=9635&&e<=9641||9650===e||9651===e||9654===e||9655===e||9660===e||9661===e||9664===e||9665===e||e>=9670&&e<=9672||9675===e||e>=9678&&e<=9681||e>=9698&&e<=9701||9711===e||9733===e||9734===e||9737===e||9742===e||9743===e||9756===e||9758===e||9792===e||9794===e||9824===e||9825===e||e>=9827&&e<=9829||e>=9831&&e<=9834||9836===e||9837===e||9839===e||9886===e||9887===e||9919===e||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||9955===e||9960===e||9961===e||e>=9963&&e<=9969||9972===e||e>=9974&&e<=9977||9979===e||9980===e||9982===e||9983===e||10045===e||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||65533===e||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||127375===e||127376===e||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109,b=e=>12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510,x=e=>e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9800&&e<=9811||9855===e||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141,w=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y,_=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,S=/\t{1,1000}/y,E=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/uy,j=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,N=/\p{M}+/gu,A={limit:1/0,ellipsis:""},C=(e,t={},n={})=>{const i=t.limit??1/0,a=t.ellipsis??"",o=t?.ellipsisWidth??(a?C(a,A,n).width:0),r=n.ansiWidth??0,s=n.controlWidth??0,c=n.tabWidth??8,l=n.ambiguousWidth??1,p=n.emojiWidth??2,u=n.fullWidthWidth??2,d=n.regularWidth??1,m=n.wideWidth??2;let f=0,h=0,g=e.length,v=0,O=!1,T=g,$=Math.max(0,i-o),P=0,k=0,L=0,R=0;e:for(;;){if(k>P||h>=g&&h>f){const t=e.slice(P,k)||e.slice(f,h);v=0;for(const e of t.replaceAll(N,"")){const t=e.codePointAt(0)||0;if(R=b(t)?u:x(t)?m:l!==d&&y(t)?l:d,L+R>$&&(T=Math.min(T,Math.max(P,f)+v)),L+R>i){O=!0;break e}v+=e.length,L+=R}P=k=0}if(h>=g)break;if(j.lastIndex=h,j.test(e)){if(v=j.lastIndex-h,R=v*d,L+R>$&&(T=Math.min(T,h+Math.floor(($-L)/d))),L+R>i){O=!0;break}L+=R,P=f,k=h,h=f=j.lastIndex}else if(w.lastIndex=h,w.test(e)){if(L+r>$&&(T=Math.min(T,h)),L+r>i){O=!0;break}L+=r,P=f,k=h,h=f=w.lastIndex}else if(_.lastIndex=h,_.test(e)){if(v=_.lastIndex-h,R=v*s,L+R>$&&(T=Math.min(T,h+Math.floor(($-L)/s))),L+R>i){O=!0;break}L+=R,P=f,k=h,h=f=_.lastIndex}else if(S.lastIndex=h,S.test(e)){if(v=S.lastIndex-h,R=v*c,L+R>$&&(T=Math.min(T,h+Math.floor(($-L)/c))),L+R>i){O=!0;break}L+=R,P=f,k=h,h=f=S.lastIndex}else if(E.lastIndex=h,E.test(e)){if(L+p>$&&(T=Math.min(T,h)),L+p>i){O=!0;break}L+=p,P=f,k=h,h=f=E.lastIndex}else h+=1}return{width:O?$:L,index:O?T:g,truncated:O,ellipsed:O&&i>=o}},O={limit:1/0,ellipsis:"",ellipsisWidth:0},T=(e,t={})=>C(e,O,t).width,$="",P="]8;;",k=new RegExp(`(?:\\[(?<code>\\d+)m|\\${P}(?<uri>.*))`,"y"),L=e=>e>=30&&e<=37||e>=90&&e<=97?39:e>=40&&e<=47||e>=100&&e<=107?49:1===e||2===e?22:3===e?23:4===e?24:7===e?27:8===e?28:9===e?29:0===e?0:void 0,R=e=>`${$}[${e}m`,F=e=>`${$}${P}${e}`,D=(e,t,n)=>{const i=t[Symbol.iterator]();let a=!1,o=!1,r=e.at(-1),s=void 0===r?0:T(r),c=i.next(),l=i.next(),p=0;for(;!c.done;){const r=c.value,u=T(r);s+u<=n?e[e.length-1]+=r:(e.push(r),s=0),(r===$||"›"===r)&&(a=!0,o=t.startsWith(P,p+1)),a?o?""===r&&(a=!1,o=!1):"m"===r&&(a=!1):(s+=u,s===n&&!l.done&&(e.push(""),s=0)),c=l,l=i.next(),p+=r.length}r=e.at(-1),!s&&void 0!==r&&r.length>0&&e.length>1&&(e[e.length-2]+=e.pop())};function I(e,t,n){return String(e).normalize().replaceAll("\r\n","\n").split("\n").map(e=>((e,t,n={})=>{if(!1!==n.trim&&""===e.trim())return"";let i,a,o="";const r=e.split(" "),s=(e=>e.map(e=>T(e)))(r);let c=[""];for(const[e,i]of r.entries()){!1!==n.trim&&(c[c.length-1]=(c.at(-1)??"").trimStart());let a=T(c.at(-1)??"");if(0!==e&&(a>=t&&(!1===n.wordWrap||!1===n.trim)&&(c.push(""),a=0),(a>0||!1===n.trim)&&(c[c.length-1]+=" ",a++)),n.hard&&s[e]>t){const n=t-a,o=1+Math.floor((s[e]-n-1)/t);Math.floor((s[e]-1)/t)<o&&c.push(""),D(c,i,t);continue}if(a+s[e]>t&&a>0&&s[e]>0){if(!1===n.wordWrap&&a<t){D(c,i,t);continue}c.push("")}a+s[e]>t&&!1===n.wordWrap?D(c,i,t):c[c.length-1]+=i}!1!==n.trim&&(c=c.map(e=>(e=>{const t=e.split(" ");let n=t.length;for(;n>0&&!(T(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")})(e)));const l=c.join("\n"),p=l[Symbol.iterator]();let u=p.next(),d=p.next(),m=0;for(;!u.done;){const e=u.value,t=d.value;if(o+=e,e===$||"›"===e){k.lastIndex=m+1;const e=k.exec(l)?.groups;if(void 0!==e?.code){const t=Number.parseFloat(e.code);i=39===t?void 0:t}else void 0!==e?.uri&&(a=0===e.uri.length?void 0:e.uri)}const n=i?L(i):void 0;"\n"===t?(a&&(o+=F("")),i&&n&&(o+=R(n))):"\n"===e&&(i&&n&&(o+=R(i)),a&&(o+=F(a))),m+=e.length,u=d,d=p.next()}return o})(e,t,n)).join("\n")}const M={actions:new Set(["up","down","left","right","space","enter","cancel"]),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]]),messages:{cancel:"Canceled",error:"Something went wrong"},withGuide:!0};function B(e){if(void 0!==e.aliases){const t=e.aliases;for(const e in t){if(!Object.hasOwn(t,e))continue;const n=t[e];M.actions.has(n)&&(M.aliases.has(e)||M.aliases.set(e,n))}}if(void 0!==e.messages){const t=e.messages;void 0!==t.cancel&&(M.messages.cancel=t.cancel),void 0!==t.error&&(M.messages.error=t.error)}void 0!==e.withGuide&&(M.withGuide=!1!==e.withGuide)}function U(e,t){if("string"==typeof e)return M.aliases.get(e)===t;for(const n of e)if(void 0!==n&&U(n,t))return!0;return!1}const z=globalThis.process.platform.startsWith("win"),q=Symbol("clack:cancel");function W(e){return e===q}function V(e,t){const n=e;n.isTTY&&n.setRawMode(t)}const H=e=>"columns"in e&&"number"==typeof e.columns?e.columns:80,G=e=>"rows"in e&&"number"==typeof e.rows?e.rows:20;function J(e,t,n,i=n){return I(t,H(e??a.stdout)-n.length,{hard:!0,trim:!1}).split("\n").map((e,t)=>`${0===t?i:n}${e}`).join("\n")}class Y{input;output;_abortSignal;rl;opts;_render;_track=!1;_prevFrame="";_subscribers=new Map;_cursor=0;state="initial";error="";value;userInput="";constructor(e,t=!0){const{input:n=a.stdin,output:i=a.stdout,render:o,signal:r,...s}=e;this.opts=s,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=o.bind(this),this._track=t,this._abortSignal=r,this.input=n,this.output=i}unsubscribe(){this._subscribers.clear()}setSubscriber(e,t){const n=this._subscribers.get(e)??[];n.push(t),this._subscribers.set(e,n)}on(e,t){this.setSubscriber(e,{cb:t})}once(e,t){this.setSubscriber(e,{cb:t,once:!0})}emit(e,...t){const n=this._subscribers.get(e)??[],i=[];for(const e of n)e.cb(...t),e.once&&i.push(()=>n.splice(n.indexOf(e),1));for(const e of i)e()}prompt(){return new Promise(e=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),e(q);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}this.rl=s.createInterface({input:this.input,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),this.rl.prompt(),void 0!==this.opts.initialUserInput&&this._setUserInput(this.opts.initialUserInput,!0),this.input.on("keypress",this.onKeypress),V(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(h.cursor.show),this.output.off("resize",this.render),V(this.input,!1),e(this.value)}),this.once("cancel",()=>{this.output.write(h.cursor.show),this.output.off("resize",this.render),V(this.input,!1),e(q)})})}_isActionKey(e,t){return"\t"===e}_setValue(e){this.value=e,this.emit("value",this.value)}_setUserInput(e,t){this.userInput=e??"",this.emit("userInput",this.userInput),t&&this._track&&this.rl&&(this.rl.write(this.userInput),this._cursor=this.rl.cursor)}_clearUserInput(){this.rl?.write(null,{ctrl:!0,name:"u"}),this._setUserInput("")}onKeypress(e,t){if(this._track&&"return"!==t.name&&(t.name&&this._isActionKey(e,t)&&this.rl?.write(null,{ctrl:!0,name:"h"}),this._cursor=this.rl?.cursor??0,this._setUserInput(this.rl?.line)),"error"===this.state&&(this.state="active"),t?.name&&(!this._track&&M.aliases.has(t.name)&&this.emit("cursor",M.aliases.get(t.name)),M.actions.has(t.name)&&this.emit("cursor",t.name)),e&&("y"===e.toLowerCase()||"n"===e.toLowerCase())&&this.emit("confirm","y"===e.toLowerCase()),this.emit("key",e?.toLowerCase(),t),"return"===t?.name){if(this.opts.validate){const e=this.opts.validate(this.value);e&&(this.error=e instanceof Error?e.message:e,this.state="error",this.rl?.write(this.userInput))}"error"!==this.state&&(this.state="submit")}U([e,t?.name,t?.sequence],"cancel")&&(this.state="cancel"),("submit"===this.state||"cancel"===this.state)&&this.emit("finalize"),this.render(),("submit"===this.state||"cancel"===this.state)&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write("\n"),V(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){const e=I(this._prevFrame,process.stdout.columns,{hard:!0,trim:!1}).split("\n").length-1;this.output.write(h.cursor.move(-999,-1*e))}render(){const e=I(this._render(this)??"",process.stdout.columns,{hard:!0,trim:!1});if(e!==this._prevFrame){if("initial"===this.state)this.output.write(h.cursor.hide);else{const t=function(e,t){if(e===t)return;const n=e.split("\n"),i=t.split("\n"),a=Math.max(n.length,i.length),o=[];for(let e=0;e<a;e++)n[e]!==i[e]&&o.push(e);return{lines:o,numLinesBefore:n.length,numLinesAfter:i.length,numLines:a}}(this._prevFrame,e),n=G(this.output);if(this.restoreCursor(),t){const i=Math.max(0,t.numLinesAfter-n),a=Math.max(0,t.numLinesBefore-n);let o=t.lines.find(e=>e>=i);if(void 0===o)return void(this._prevFrame=e);if(1===t.lines.length){this.output.write(h.cursor.move(0,o-a)),this.output.write(h.erase.lines(1));const t=e.split("\n");return this.output.write(t[o]),this._prevFrame=e,void this.output.write(h.cursor.move(0,t.length-o-1))}if(t.lines.length>1){if(i<a)o=i;else{const e=o-a;e>0&&this.output.write(h.cursor.move(0,e))}this.output.write(h.erase.down());const t=e.split("\n").slice(o);return this.output.write(t.join("\n")),void(this._prevFrame=e)}}this.output.write(h.erase.down())}this.output.write(e),"initial"===this.state&&(this.state="active"),this._prevFrame=e}}}function K(e,t){return(t.label??String(t.value)).toLowerCase().includes(e.toLowerCase())}class X extends Y{filteredOptions;multiple;isNavigating=!1;selectedValues=[];focusedValue;#e=0;#t="";#n;#i;get cursor(){return this.#e}get userInputWithCursor(){if(!this.userInput)return(0,i.styleText)(["inverse","hidden"],"_");if(this._cursor>=this.userInput.length)return`${this.userInput}█`;const e=this.userInput.slice(0,this._cursor),[t,...n]=this.userInput.slice(this._cursor);return`${e}${(0,i.styleText)("inverse",t)}${n.join("")}`}get options(){return"function"==typeof this.#i?this.#i():this.#i}constructor(e){super(e),this.#i=e.options;const t=this.options;let n;if(this.filteredOptions=[...t],this.multiple=!0===e.multiple,this.#n=e.filter??K,e.initialValue&&Array.isArray(e.initialValue)?n=this.multiple?e.initialValue:e.initialValue.slice(0,1):!this.multiple&&this.options.length>0&&(n=[this.options[0].value]),n)for(const e of n){const n=t.findIndex(t=>t.value===e);-1!==n&&(this.toggleSelected(e),this.#e=n)}this.focusedValue=this.options[this.#e]?.value,this.on("key",(e,t)=>this.#a(e,t)),this.on("userInput",e=>this.#o(e))}_isActionKey(e,t){return"\t"===e||this.multiple&&this.isNavigating&&"space"===t.name&&void 0!==e&&""!==e}#a(e,t){const n="up"===t.name,i="down"===t.name,a="return"===t.name;n||i?(this.#e=v(this.#e,n?-1:1,this.filteredOptions),this.focusedValue=this.filteredOptions[this.#e]?.value,this.multiple||(this.selectedValues=[this.focusedValue]),this.isNavigating=!0):a?this.value=function(e,t){if(t)return e?t:t[0]}(this.multiple,this.selectedValues):this.multiple?void 0!==this.focusedValue&&("tab"===t.name||this.isNavigating&&"space"===t.name)?this.toggleSelected(this.focusedValue):this.isNavigating=!1:(this.focusedValue&&(this.selectedValues=[this.focusedValue]),this.isNavigating=!1)}deselectAll(){this.selectedValues=[]}toggleSelected(e){0!==this.filteredOptions.length&&(this.multiple?this.selectedValues.includes(e)?this.selectedValues=this.selectedValues.filter(t=>t!==e):this.selectedValues=[...this.selectedValues,e]:this.selectedValues=[e])}#o(e){if(e!==this.#t){this.#t=e;const t=this.options;this.filteredOptions=e?t.filter(t=>this.#n(e,t)):[...t];const n=function(e,t){if(void 0===e||0===t.length)return 0;const n=t.findIndex(t=>t.value===e);return-1!==n?n:0}(this.focusedValue,this.filteredOptions);this.#e=v(n,0,this.filteredOptions);const i=this.filteredOptions[this.#e];i&&!i.disabled?this.focusedValue=i.value:this.focusedValue=void 0,this.multiple||(void 0!==this.focusedValue?this.toggleSelected(this.focusedValue):this.deselectAll())}}}class Q extends Y{get cursor(){return this.value?0:1}get _value(){return 0===this.cursor}constructor(e){super(e,!1),this.value=!!e.initialValue,this.on("userInput",()=>{this.value=this._value}),this.on("confirm",e=>{this.output.write(h.cursor.move(0,-1)),this.value=e,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}class Z extends Y{options;cursor=0;#e;getGroupItems(e){return this.options.filter(t=>t.group===e)}isGroupSelected(e){const t=this.getGroupItems(e),n=this.value;return void 0!==n&&t.every(e=>n.includes(e.value))}toggleValue(){const e=this.options[this.cursor];if(void 0===this.value&&(this.value=[]),!0===e.group){const t=e.value,n=this.getGroupItems(t);this.isGroupSelected(t)?this.value=this.value.filter(e=>-1===n.findIndex(t=>t.value===e)):this.value=[...this.value,...n.map(e=>e.value)],this.value=Array.from(new Set(this.value))}else{const t=this.value.includes(e.value);this.value=t?this.value.filter(t=>t!==e.value):[...this.value,e.value]}}constructor(e){super(e,!1);const{options:t}=e;this.#e=!1!==e.selectableGroups,this.options=Object.entries(t).flatMap(([e,t])=>[{value:e,group:!0,label:e},...t.map(t=>({...t,group:e}))]),this.value=[...e.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:t})=>t===e.cursorAt),this.#e?0:1),this.on("cursor",e=>{switch(e){case"left":case"up":{this.cursor=0===this.cursor?this.options.length-1:this.cursor-1;const e=!0===this.options[this.cursor]?.group;!this.#e&&e&&(this.cursor=0===this.cursor?this.options.length-1:this.cursor-1);break}case"down":case"right":{this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;const e=!0===this.options[this.cursor]?.group;!this.#e&&e&&(this.cursor=this.cursor===this.options.length-1?0:this.cursor+1);break}case"space":this.toggleValue()}})}}let ee=class extends Y{options;cursor=0;get _value(){return this.options[this.cursor].value}get _enabledOptions(){return this.options.filter(e=>!0!==e.disabled)}toggleAll(){const e=this._enabledOptions,t=void 0!==this.value&&this.value.length===e.length;this.value=t?[]:e.map(e=>e.value)}toggleInvert(){const e=this.value;if(!e)return;const t=this._enabledOptions.filter(t=>!e.includes(t.value));this.value=t.map(e=>e.value)}toggleValue(){void 0===this.value&&(this.value=[]);const e=this.value.includes(this._value);this.value=e?this.value.filter(e=>e!==this._value):[...this.value,this._value]}constructor(e){super(e,!1),this.options=e.options,this.value=[...e.initialValues??[]];const t=Math.max(this.options.findIndex(({value:t})=>t===e.cursorAt),0);this.cursor=this.options[t].disabled?v(t,1,this.options):t,this.on("key",e=>{"a"===e&&this.toggleAll(),"i"===e&&this.toggleInvert()}),this.on("cursor",e=>{switch(e){case"left":case"up":this.cursor=v(this.cursor,-1,this.options);break;case"down":case"right":this.cursor=v(this.cursor,1,this.options);break;case"space":this.toggleValue()}})}};class te extends Y{_mask="•";get cursor(){return this._cursor}get masked(){return this.userInput.replaceAll(/./g,this._mask)}get userInputWithCursor(){if("submit"===this.state||"cancel"===this.state)return this.masked;const e=this.userInput;if(this.cursor>=e.length)return`${this.masked}${(0,i.styleText)(["inverse","hidden"],"_")}`;const t=this.masked,n=t.slice(0,this.cursor),a=t.slice(this.cursor);return`${n}${(0,i.styleText)("inverse",a[0])}${a.slice(1)}`}clear(){this._clearUserInput()}constructor({mask:e,...t}){super(t),this._mask=e??"•",this.on("userInput",e=>{this._setValue(e)})}}class ne extends Y{options;cursor=0;get _selectedValue(){return this.options[this.cursor]}changeValue(){this.value=this._selectedValue.value}constructor(e){super(e,!1),this.options=e.options;const t=this.options.findIndex(({value:t})=>t===e.initialValue),n=-1===t?0:t;this.cursor=this.options[n].disabled?v(n,1,this.options):n,this.changeValue(),this.on("cursor",e=>{switch(e){case"left":case"up":this.cursor=v(this.cursor,-1,this.options);break;case"down":case"right":this.cursor=v(this.cursor,1,this.options)}this.changeValue()})}}class ie extends Y{options;cursor=0;constructor(e){super(e,!1),this.options=e.options;const t=!0===e.caseSensitive,n=this.options.map(({value:[e]})=>t?e:e?.toLowerCase());this.cursor=Math.max(n.indexOf(e.initialValue),0),this.on("key",(e,i)=>{if(!e)return;const a=t&&i.shift?e.toUpperCase():e;if(!n.includes(a))return;const o=this.options.find(({value:[n]})=>t?n===a:n?.toLowerCase()===e);o&&(this.value=o.value,this.state="submit",this.emit("submit"))})}}class ae extends Y{get userInputWithCursor(){if("submit"===this.state)return this.userInput;const e=this.userInput;if(this.cursor>=e.length)return`${this.userInput}█`;const t=e.slice(0,this.cursor),[n,...a]=e.slice(this.cursor);return`${t}${(0,i.styleText)("inverse",n)}${a.join("")}`}get cursor(){return this._cursor}constructor(e){super({...e,initialUserInput:e.initialUserInput??e.initialValue}),this.on("userInput",e=>{this._setValue(e)}),this.on("finalize",()=>{this.value||(this.value=e.defaultValue),void 0===this.value&&(this.value="")})}}const oe="win32"!==a.default.platform?"linux"!==a.default.env.TERM:!!a.default.env.CI||!!a.default.env.WT_SESSION||!!a.default.env.TERMINUS_SUBLIME||"{cmd::Cmder}"===a.default.env.ConEmuTask||"Terminus-Sublime"===a.default.env.TERM_PROGRAM||"vscode"===a.default.env.TERM_PROGRAM||"xterm-256color"===a.default.env.TERM||"alacritty"===a.default.env.TERM||"JetBrains-JediTerm"===a.default.env.TERMINAL_EMULATOR,re=()=>"true"===process.env.CI,se=e=>!0===e.isTTY,ce=(e,t)=>oe?e:t,le=ce("◆","*"),pe=ce("■","x"),ue=ce("▲","x"),de=ce("◇","o"),me=ce("┌","T"),fe=ce("│","|"),he=ce("└","—"),ge=ce("┐","T"),ve=ce("┘","—"),ye=ce("●",">"),be=ce("○"," "),xe=ce("◻","[•]"),we=ce("◼","[+]"),_e=ce("◻","[ ]"),Se=ce("▪","•"),Ee=ce("─","-"),je=ce("╮","+"),Ne=ce("├","+"),Ae=ce("╯","+"),Ce=ce("╰","+"),Oe=ce("╭","+"),Te=ce("●","•"),$e=ce("◆","*"),Pe=ce("▲","!"),ke=ce("■","x"),Le=e=>{switch(e){case"initial":case"active":return(0,i.styleText)("cyan",le);case"cancel":return(0,i.styleText)("red",pe);case"error":return(0,i.styleText)("yellow",ue);case"submit":return(0,i.styleText)("green",de)}},Re=e=>{switch(e){case"initial":case"active":return(0,i.styleText)("cyan",fe);case"cancel":return(0,i.styleText)("red",fe);case"error":return(0,i.styleText)("yellow",fe);case"submit":return(0,i.styleText)("green",fe)}},Fe=e=>161===e||164===e||167===e||168===e||170===e||173===e||174===e||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||198===e||208===e||215===e||216===e||e>=222&&e<=225||230===e||e>=232&&e<=234||236===e||237===e||240===e||242===e||243===e||e>=247&&e<=250||252===e||254===e||257===e||273===e||275===e||283===e||294===e||295===e||299===e||e>=305&&e<=307||312===e||e>=319&&e<=322||324===e||e>=328&&e<=331||333===e||338===e||339===e||358===e||359===e||363===e||462===e||464===e||466===e||468===e||470===e||472===e||474===e||476===e||593===e||609===e||708===e||711===e||e>=713&&e<=715||717===e||720===e||e>=728&&e<=731||733===e||735===e||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||1025===e||e>=1040&&e<=1103||1105===e||8208===e||e>=8211&&e<=8214||8216===e||8217===e||8220===e||8221===e||e>=8224&&e<=8226||e>=8228&&e<=8231||8240===e||8242===e||8243===e||8245===e||8251===e||8254===e||8308===e||8319===e||e>=8321&&e<=8324||8364===e||8451===e||8453===e||8457===e||8467===e||8470===e||8481===e||8482===e||8486===e||8491===e||8531===e||8532===e||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||8585===e||e>=8592&&e<=8601||8632===e||8633===e||8658===e||8660===e||8679===e||8704===e||8706===e||8707===e||8711===e||8712===e||8715===e||8719===e||8721===e||8725===e||8730===e||e>=8733&&e<=8736||8739===e||8741===e||e>=8743&&e<=8748||8750===e||e>=8756&&e<=8759||8764===e||8765===e||8776===e||8780===e||8786===e||8800===e||8801===e||e>=8804&&e<=8807||8810===e||8811===e||8814===e||8815===e||8834===e||8835===e||8838===e||8839===e||8853===e||8857===e||8869===e||8895===e||8978===e||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||9632===e||9633===e||e>=9635&&e<=9641||9650===e||9651===e||9654===e||9655===e||9660===e||9661===e||9664===e||9665===e||e>=9670&&e<=9672||9675===e||e>=9678&&e<=9681||e>=9698&&e<=9701||9711===e||9733===e||9734===e||9737===e||9742===e||9743===e||9756===e||9758===e||9792===e||9794===e||9824===e||9825===e||e>=9827&&e<=9829||e>=9831&&e<=9834||9836===e||9837===e||9839===e||9886===e||9887===e||9919===e||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||9955===e||9960===e||9961===e||e>=9963&&e<=9969||9972===e||e>=9974&&e<=9977||9979===e||9980===e||9982===e||9983===e||10045===e||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||65533===e||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||127375===e||127376===e||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109,De=e=>12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510,Ie=e=>e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9800&&e<=9811||9855===e||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141,Me=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y,Be=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,Ue=/\t{1,1000}/y,ze=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/uy,qe=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,We=/\p{M}+/gu,Ve={limit:1/0,ellipsis:""},He=(e,t={},n={})=>{const i=t.limit??1/0,a=t.ellipsis??"",o=t?.ellipsisWidth??(a?He(a,Ve,n).width:0),r=n.ansiWidth??0,s=n.controlWidth??0,c=n.tabWidth??8,l=n.ambiguousWidth??1,p=n.emojiWidth??2,u=n.fullWidthWidth??2,d=n.regularWidth??1,m=n.wideWidth??2;let f=0,h=0,g=e.length,v=0,y=!1,b=g,x=Math.max(0,i-o),w=0,_=0,S=0,E=0;e:for(;;){if(_>w||h>=g&&h>f){const t=e.slice(w,_)||e.slice(f,h);v=0;for(const e of t.replaceAll(We,"")){const t=e.codePointAt(0)||0;if(E=De(t)?u:Ie(t)?m:l!==d&&Fe(t)?l:d,S+E>x&&(b=Math.min(b,Math.max(w,f)+v)),S+E>i){y=!0;break e}v+=e.length,S+=E}w=_=0}if(h>=g)break;if(qe.lastIndex=h,qe.test(e)){if(v=qe.lastIndex-h,E=v*d,S+E>x&&(b=Math.min(b,h+Math.floor((x-S)/d))),S+E>i){y=!0;break}S+=E,w=f,_=h,h=f=qe.lastIndex}else if(Me.lastIndex=h,Me.test(e)){if(S+r>x&&(b=Math.min(b,h)),S+r>i){y=!0;break}S+=r,w=f,_=h,h=f=Me.lastIndex}else if(Be.lastIndex=h,Be.test(e)){if(v=Be.lastIndex-h,E=v*s,S+E>x&&(b=Math.min(b,h+Math.floor((x-S)/s))),S+E>i){y=!0;break}S+=E,w=f,_=h,h=f=Be.lastIndex}else if(Ue.lastIndex=h,Ue.test(e)){if(v=Ue.lastIndex-h,E=v*c,S+E>x&&(b=Math.min(b,h+Math.floor((x-S)/c))),S+E>i){y=!0;break}S+=E,w=f,_=h,h=f=Ue.lastIndex}else if(ze.lastIndex=h,ze.test(e)){if(S+p>x&&(b=Math.min(b,h)),S+p>i){y=!0;break}S+=p,w=f,_=h,h=f=ze.lastIndex}else h+=1}return{width:y?x:S,index:y?b:g,truncated:y,ellipsed:y&&i>=o}},Ge={limit:1/0,ellipsis:"",ellipsisWidth:0},Je=(e,t={})=>He(e,Ge,t).width,Ye="",Ke="]8;;",Xe=new RegExp(`(?:\\[(?<code>\\d+)m|\\${Ke}(?<uri>.*))`,"y"),Qe=e=>e>=30&&e<=37||e>=90&&e<=97?39:e>=40&&e<=47||e>=100&&e<=107?49:1===e||2===e?22:3===e?23:4===e?24:7===e?27:8===e?28:9===e?29:0===e?0:void 0,Ze=e=>`${Ye}[${e}m`,et=e=>`${Ye}${Ke}${e}`,tt=(e,t,n)=>{const i=t[Symbol.iterator]();let a=!1,o=!1,r=e.at(-1),s=void 0===r?0:Je(r),c=i.next(),l=i.next(),p=0;for(;!c.done;){const r=c.value,u=Je(r);s+u<=n?e[e.length-1]+=r:(e.push(r),s=0),(r===Ye||"›"===r)&&(a=!0,o=t.startsWith(Ke,p+1)),a?o?""===r&&(a=!1,o=!1):"m"===r&&(a=!1):(s+=u,s===n&&!l.done&&(e.push(""),s=0)),c=l,l=i.next(),p+=r.length}r=e.at(-1),!s&&void 0!==r&&r.length>0&&e.length>1&&(e[e.length-2]+=e.pop())};function nt(e,t,n){return String(e).normalize().replaceAll("\r\n","\n").split("\n").map(e=>((e,t,n={})=>{if(!1!==n.trim&&""===e.trim())return"";let i,a,o="";const r=e.split(" "),s=(e=>e.map(e=>Je(e)))(r);let c=[""];for(const[e,i]of r.entries()){!1!==n.trim&&(c[c.length-1]=(c.at(-1)??"").trimStart());let a=Je(c.at(-1)??"");if(0!==e&&(a>=t&&(!1===n.wordWrap||!1===n.trim)&&(c.push(""),a=0),(a>0||!1===n.trim)&&(c[c.length-1]+=" ",a++)),n.hard&&s[e]>t){const n=t-a,o=1+Math.floor((s[e]-n-1)/t);Math.floor((s[e]-1)/t)<o&&c.push(""),tt(c,i,t);continue}if(a+s[e]>t&&a>0&&s[e]>0){if(!1===n.wordWrap&&a<t){tt(c,i,t);continue}c.push("")}a+s[e]>t&&!1===n.wordWrap?tt(c,i,t):c[c.length-1]+=i}!1!==n.trim&&(c=c.map(e=>(e=>{const t=e.split(" ");let n=t.length;for(;n>0&&!(Je(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")})(e)));const l=c.join("\n"),p=l[Symbol.iterator]();let u=p.next(),d=p.next(),m=0;for(;!u.done;){const e=u.value,t=d.value;if(o+=e,e===Ye||"›"===e){Xe.lastIndex=m+1;const e=Xe.exec(l)?.groups;if(void 0!==e?.code){const t=Number.parseFloat(e.code);i=39===t?void 0:t}else void 0!==e?.uri&&(a=0===e.uri.length?void 0:e.uri)}const n=i?Qe(i):void 0;"\n"===t?(a&&(o+=et("")),i&&n&&(o+=Ze(n))):"\n"===e&&(i&&n&&(o+=Ze(i)),a&&(o+=et(a))),m+=e.length,u=d,d=p.next()}return o})(e,t,n)).join("\n")}const it=({cursor:e,options:t,style:n,output:a=process.stdout,maxItems:o=Number.POSITIVE_INFINITY,columnPadding:r=0,rowPadding:s=4})=>{const c=H(a)-r,l=G(a),p=(0,i.styleText)("dim","..."),u=Math.max(l-s,0),d=Math.max(Math.min(o,u),5);let m=0;e>=d-3&&(m=Math.max(Math.min(e-d+3,t.length-d),0));let f=d<t.length&&m>0,h=d<t.length&&m+d<t.length;const g=Math.min(m+d,t.length),v=[];let y=0;f&&y++,h&&y++;const b=m+(f?1:0),x=g-(h?1:0);for(let i=b;i<x;i++){const a=nt(n(t[i],i===e),c,{hard:!0,trim:!1}).split("\n");v.push(a),y+=a.length}if(y>u){let t=0,n=0,i=y;const a=e-b,o=(e,t)=>((e,t,n,i,a)=>{let o=t,r=0;for(let t=n;t<i&&(o-=e[t].length,r++,!(o<=a));t++);return{lineCount:o,removals:r}})(v,i,e,t,u);f?(({lineCount:i,removals:t}=o(0,a)),i>u&&({lineCount:i,removals:n}=o(a+1,v.length))):(({lineCount:i,removals:n}=o(a+1,v.length)),i>u&&({lineCount:i,removals:t}=o(0,a))),t>0&&(f=!0,v.splice(0,t)),n>0&&(h=!0,v.splice(v.length-n,n))}const w=[];f&&w.push(p);for(const e of v)for(const t of e)w.push(t);return h&&w.push(p),w};function at(e){return e.label??String(e.value??"")}function ot(e,t){if(!e)return!0;const n=(t.label??String(t.value??"")).toLowerCase(),i=(t.hint??"").toLowerCase(),a=String(t.value).toLowerCase(),o=e.toLowerCase();return n.includes(o)||i.includes(o)||a.includes(o)}const rt=e=>new X({options:e.options,initialValue:e.initialValue?[e.initialValue]:void 0,initialUserInput:e.initialUserInput,filter:e.filter??((e,t)=>ot(e,t)),signal:e.signal,input:e.input,output:e.output,validate:e.validate,render(){const t=e.withGuide??M.withGuide,n=t?[`${(0,i.styleText)("gray",fe)}`,`${Le(this.state)} ${e.message}`]:[`${Le(this.state)} ${e.message}`],a=this.userInput,o=this.options,r=e.placeholder,s=""===a&&void 0!==r,c=(e,t)=>{const n=at(e),a=e.hint&&e.value===this.focusedValue?(0,i.styleText)("dim",` (${e.hint})`):"";switch(t){case"active":return`${(0,i.styleText)("green",ye)} ${n}${a}`;case"inactive":return`${(0,i.styleText)("dim",be)} ${(0,i.styleText)("dim",n)}`;case"disabled":return`${(0,i.styleText)("gray",be)} ${(0,i.styleText)(["strikethrough","gray"],n)}`}};switch(this.state){case"submit":{const e=function(e,t){const n=[];for(const i of t)e.includes(i.value)&&n.push(i);return n}(this.selectedValues,o),a=e.length>0?` ${(0,i.styleText)("dim",e.map(at).join(", "))}`:"",r=t?(0,i.styleText)("gray",fe):"";return`${n.join("\n")}\n${r}${a}`}case"cancel":{const e=a?` ${(0,i.styleText)(["strikethrough","dim"],a)}`:"",o=t?(0,i.styleText)("gray",fe):"";return`${n.join("\n")}\n${o}${e}`}default:{const l="error"===this.state?"yellow":"cyan",p=t?`${(0,i.styleText)(l,fe)} `:"",u=t?(0,i.styleText)(l,he):"";let d="";if(this.isNavigating||s){const e=s?r:a;d=""!==e?` ${(0,i.styleText)("dim",e)}`:""}else d=` ${this.userInputWithCursor}`;const m=this.filteredOptions.length!==o.length?(0,i.styleText)("dim",` (${this.filteredOptions.length} match${1===this.filteredOptions.length?"":"es"})`):"",f=0===this.filteredOptions.length&&a?[`${p}${(0,i.styleText)("yellow","No matches found")}`]:[],h="error"===this.state?[`${p}${(0,i.styleText)("yellow",this.error)}`]:[];t&&n.push(`${p.trimEnd()}`),n.push(`${p}${(0,i.styleText)("dim","Search:")}${d}${m}`,...f,...h);const g=[`${(0,i.styleText)("dim","↑/↓")} to select`,`${(0,i.styleText)("dim","Enter:")} confirm`,`${(0,i.styleText)("dim","Type:")} to search`],v=[`${p}${g.join(" • ")}`,u],y=0===this.filteredOptions.length?[]:it({cursor:this.cursor,options:this.filteredOptions,columnPadding:t?3:0,rowPadding:n.length+v.length,style:(e,t)=>c(e,e.disabled?"disabled":t?"active":"inactive"),maxItems:e.maxItems,output:e.output});return[...n,...y.map(e=>`${p}${e}`),...v].join("\n")}}}}).prompt(),st=e=>{const t=new X({options:e.options,multiple:!0,filter:e.filter??((e,t)=>ot(e,t)),validate:()=>{if(e.required&&0===t.selectedValues.length)return"Please select at least one item"},initialValue:e.initialValues,signal:e.signal,input:e.input,output:e.output,render(){const t=`${(0,i.styleText)("gray",fe)}\n${Le(this.state)} ${e.message}\n`,n=this.userInput,a=e.placeholder,o=""===n&&void 0!==a,r=this.isNavigating||o?(0,i.styleText)("dim",o?a:n):this.userInputWithCursor,s=this.options,c=this.filteredOptions.length!==s.length?(0,i.styleText)("dim",` (${this.filteredOptions.length} match${1===this.filteredOptions.length?"":"es"})`):"";switch(this.state){case"submit":return`${t}${(0,i.styleText)("gray",fe)} ${(0,i.styleText)("dim",`${this.selectedValues.length} items selected`)}`;case"cancel":return`${t}${(0,i.styleText)("gray",fe)} ${(0,i.styleText)(["strikethrough","dim"],n)}`;default:{const a="error"===this.state?"yellow":"cyan",o=[`${(0,i.styleText)("dim","↑/↓")} to navigate`,`${(0,i.styleText)("dim",this.isNavigating?"Space/Tab:":"Tab:")} select`,`${(0,i.styleText)("dim","Enter:")} confirm`,`${(0,i.styleText)("dim","Type:")} to search`],s=0===this.filteredOptions.length&&n?[`${(0,i.styleText)(a,fe)} ${(0,i.styleText)("yellow","No matches found")}`]:[],l="error"===this.state?[`${(0,i.styleText)(a,fe)} ${(0,i.styleText)("yellow",this.error)}`]:[],p=[...`${t}${(0,i.styleText)(a,fe)}`.split("\n"),`${(0,i.styleText)(a,fe)} ${(0,i.styleText)("dim","Search:")} ${r}${c}`,...s,...l],u=[`${(0,i.styleText)(a,fe)} ${o.join(" • ")}`,(0,i.styleText)(a,he)],d=it({cursor:this.cursor,options:this.filteredOptions,style:(e,t)=>((e,t,n,a)=>{const o=n.includes(e.value),r=e.label??String(e.value??""),s=e.hint&&void 0!==a&&e.value===a?(0,i.styleText)("dim",` (${e.hint})`):"",c=o?(0,i.styleText)("green",we):(0,i.styleText)("dim",_e);return e.disabled?`${(0,i.styleText)("gray",_e)} ${(0,i.styleText)(["strikethrough","gray"],r)}`:t?`${c} ${r}${s}`:`${c} ${(0,i.styleText)("dim",r)}`})(e,t,this.selectedValues,this.focusedValue),maxItems:e.maxItems,output:e.output,rowPadding:p.length+u.length});return[...p,...d.map(e=>`${(0,i.styleText)(a,fe)} ${e}`),...u].join("\n")}}}});return t.prompt()},ct=[Oe,je,Ce,Ae],lt=[me,ge,he,ve];function pt(e,t,n,i){let a=n,o=n;return"center"===i?a=Math.floor((t-e)/2):"right"===i&&(a=t-e-n),o=t-a-e,[a,o]}const ut=e=>e,dt=(e="",t="",n)=>{const i=n?.output??process.stdout,a=H(i),o=n?.titlePadding??1,r=n?.contentPadding??2,s=void 0===n?.width||"auto"===n.width?1:Math.min(1,n.width),c=n?.withGuide??M.withGuide?`${fe} `:"",l=n?.formatBorder??ut,p=(n?.rounded?ct:lt).map(l),u=l(Ee),d=l(fe),m=Je(c),f=Je(t),h=a-m;let g=Math.floor(a*s)-m;if("auto"===n?.width){const t=e.split("\n");let n=f+2*o;for(const e of t){const t=Je(e)+2*r;t>n&&(n=t)}const i=n+2;i<g&&(g=i)}g%2!=0&&(g<h?g++:g--);const v=g-2,y=v-2*o,b=f>y?`${t.slice(0,y-3)}...`:t,[x,w]=pt(Je(b),v,o,n?.titleAlign),_=nt(e,v-2*r,{hard:!0,trim:!1});i.write(`${c}${p[0]}${u.repeat(x)}${b}${u.repeat(w)}${p[1]}\n`);const S=_.split("\n");for(const e of S){const[t,a]=pt(Je(e),v,r,n?.contentAlign);i.write(`${c}${d}${" ".repeat(t)}${e}${" ".repeat(a)}${d}\n`)}i.write(`${c}${p[2]}${u.repeat(v)}${p[3]}\n`)},mt=e=>{const t=e.active??"Yes",n=e.inactive??"No";return new Q({active:t,inactive:n,signal:e.signal,input:e.input,output:e.output,initialValue:e.initialValue??!0,render(){const a=e.withGuide??M.withGuide,o=`${a?`${(0,i.styleText)("gray",fe)}\n`:""}${Le(this.state)} ${e.message}\n`,r=this.value?t:n;switch(this.state){case"submit":return`${o}${a?`${(0,i.styleText)("gray",fe)} `:""}${(0,i.styleText)("dim",r)}`;case"cancel":return`${o}${a?`${(0,i.styleText)("gray",fe)} `:""}${(0,i.styleText)(["strikethrough","dim"],r)}${a?`\n${(0,i.styleText)("gray",fe)}`:""}`;default:{const r=a?`${(0,i.styleText)("cyan",fe)} `:"",s=a?(0,i.styleText)("cyan",he):"";return`${o}${r}${this.value?`${(0,i.styleText)("green",ye)} ${t}`:`${(0,i.styleText)("dim",be)} ${(0,i.styleText)("dim",t)}`}${e.vertical?a?`\n${(0,i.styleText)("cyan",fe)} `:"\n":` ${(0,i.styleText)("dim","/")} `}${this.value?`${(0,i.styleText)("dim",be)} ${(0,i.styleText)("dim",n)}`:`${(0,i.styleText)("green",ye)} ${n}`}\n${s}\n`}}}}).prompt()},ft=async(e,t)=>{const n={},i=Object.keys(e);for(const a of i){const i=e[a],o=await(i({results:n})?.catch(e=>{throw e}));"function"==typeof t?.onCancel&&W(o)?(n[a]="canceled",t.onCancel({results:n})):n[a]=o}return n},ht=e=>{const{selectableGroups:t=!0,groupSpacing:n=0}=e,a=(e,a,o=[])=>{const r=e.label??String(e.value),s="string"==typeof e.group,c=s&&(o[o.indexOf(e)+1]??{group:!0}),l=s&&c&&!0===c.group,p=s?t?`${l?he:fe} `:" ":"";let u="";if(n>0&&!s){const e=`\n${(0,i.styleText)("cyan",fe)}`;u=`${e.repeat(n-1)}${e} `}if("active"===a)return`${u}${(0,i.styleText)("dim",p)}${(0,i.styleText)("cyan",xe)} ${r}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`;if("group-active"===a)return`${u}${p}${(0,i.styleText)("cyan",xe)} ${(0,i.styleText)("dim",r)}`;if("group-active-selected"===a)return`${u}${p}${(0,i.styleText)("green",we)} ${(0,i.styleText)("dim",r)}`;if("selected"===a){const n=s||t?(0,i.styleText)("green",we):"";return`${u}${(0,i.styleText)("dim",p)}${n} ${(0,i.styleText)("dim",r)}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`}if("cancelled"===a)return`${(0,i.styleText)(["strikethrough","dim"],r)}`;if("active-selected"===a)return`${u}${(0,i.styleText)("dim",p)}${(0,i.styleText)("green",we)} ${r}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`;if("submitted"===a)return`${(0,i.styleText)("dim",r)}`;const d=s||t?(0,i.styleText)("dim",_e):"";return`${u}${(0,i.styleText)("dim",p)}${d} ${(0,i.styleText)("dim",r)}`},o=e.required??!0;return new Z({options:e.options,signal:e.signal,input:e.input,output:e.output,initialValues:e.initialValues,required:o,cursorAt:e.cursorAt,selectableGroups:t,validate(e){if(o&&(void 0===e||0===e.length))return`Please select at least one option.\n${(0,i.styleText)("reset",(0,i.styleText)("dim",`Press ${(0,i.styleText)(["gray","bgWhite","inverse"]," space ")} to select, ${(0,i.styleText)("gray",(0,i.styleText)(["bgWhite","inverse"]," enter "))} to submit`))}`},render(){const t=`${(0,i.styleText)("gray",fe)}\n${Le(this.state)} ${e.message}\n`,n=this.value??[];switch(this.state){case"submit":{const e=this.options.filter(({value:e})=>n.includes(e)).map(e=>a(e,"submitted")),o=0===e.length?"":` ${e.join((0,i.styleText)("dim",", "))}`;return`${t}${(0,i.styleText)("gray",fe)}${o}`}case"cancel":{const e=this.options.filter(({value:e})=>n.includes(e)).map(e=>a(e,"cancelled")).join((0,i.styleText)("dim",", "));return`${t}${(0,i.styleText)("gray",fe)} ${e.trim()?`${e}\n${(0,i.styleText)("gray",fe)}`:""}`}case"error":{const e=this.error.split("\n").map((e,t)=>0===t?`${(0,i.styleText)("yellow",he)} ${(0,i.styleText)("yellow",e)}`:` ${e}`).join("\n");return`${t}${(0,i.styleText)("yellow",fe)} ${this.options.map((e,t,i)=>{const o=n.includes(e.value)||!0===e.group&&this.isGroupSelected(`${e.value}`),r=t===this.cursor;return r||"string"!=typeof e.group||this.options[this.cursor].value!==e.group?a(e,r&&o?"active-selected":o?"selected":r?"active":"inactive",i):a(e,o?"group-active-selected":"group-active",i)}).join(`\n${(0,i.styleText)("yellow",fe)} `)}\n${e}\n`}default:{const e=this.options.map((e,t,i)=>{const o=n.includes(e.value)||!0===e.group&&this.isGroupSelected(`${e.value}`),r=t===this.cursor,s=!r&&"string"==typeof e.group&&this.options[this.cursor].value===e.group;let c="";return c=a(e,s?o?"group-active-selected":"group-active":r&&o?"active-selected":o?"selected":r?"active":"inactive",i),`${0===t||c.startsWith("\n")?"":" "}${c}`}).join(`\n${(0,i.styleText)("cyan",fe)}`),o=e.startsWith("\n")?"":" ";return`${t}${(0,i.styleText)("cyan",fe)}${o}${e}\n${(0,i.styleText)("cyan",he)}\n`}}}}).prompt()},gt={message:(e=[],{symbol:t=(0,i.styleText)("gray",fe),secondarySymbol:n=(0,i.styleText)("gray",fe),output:a=process.stdout,spacing:o=1,withGuide:r}={})=>{const s=[],c=r??M.withGuide,l=c?n:"",p=c?`${t} `:"",u=c?`${n} `:"";for(let e=0;e<o;e++)s.push(l);const d=Array.isArray(e)?e:e.split("\n");if(d.length>0){const[e,...i]=d;e.length>0?s.push(`${p}${e}`):s.push(c?t:"");for(const e of i)e.length>0?s.push(`${u}${e}`):s.push(c?n:"")}a.write(`${s.join("\n")}\n`)},info:(e,t)=>{gt.message(e,{...t,symbol:(0,i.styleText)("blue",Te)})},success:(e,t)=>{gt.message(e,{...t,symbol:(0,i.styleText)("green",$e)})},step:(e,t)=>{gt.message(e,{...t,symbol:(0,i.styleText)("green",de)})},warn:(e,t)=>{gt.message(e,{...t,symbol:(0,i.styleText)("yellow",Pe)})},warning:(e,t)=>{gt.warn(e,t)},error:(e,t)=>{gt.message(e,{...t,symbol:(0,i.styleText)("red",ke)})}},vt=(e="",t)=>{const n=t?.output??process.stdout,a=t?.withGuide??M.withGuide?`${(0,i.styleText)("gray",he)} `:"";n.write(`${a}${(0,i.styleText)("red",e)}\n\n`)},yt=(e="",t)=>{const n=t?.output??process.stdout,a=t?.withGuide??M.withGuide?`${(0,i.styleText)("gray",me)} `:"";n.write(`${a}${e}\n`)},bt=(e="",t)=>{const n=t?.output??process.stdout,a=t?.withGuide??M.withGuide?`${(0,i.styleText)("gray",fe)}\n${(0,i.styleText)("gray",he)} `:"";n.write(`${a}${e}\n\n`)},xt=(e,t)=>e.split("\n").map(e=>t(e)).join("\n"),wt=e=>{const t=(e,t)=>{const n=e.label??String(e.value);return"disabled"===t?`${(0,i.styleText)("gray",_e)} ${xt(n,e=>(0,i.styleText)(["strikethrough","gray"],e))}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint??"disabled"})`)}`:""}`:"active"===t?`${(0,i.styleText)("cyan",xe)} ${n}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`:"selected"===t?`${(0,i.styleText)("green",we)} ${xt(n,e=>(0,i.styleText)("dim",e))}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`:"cancelled"===t?`${xt(n,e=>(0,i.styleText)(["strikethrough","dim"],e))}`:"active-selected"===t?`${(0,i.styleText)("green",we)} ${n}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`:"submitted"===t?`${xt(n,e=>(0,i.styleText)("dim",e))}`:`${(0,i.styleText)("dim",_e)} ${xt(n,e=>(0,i.styleText)("dim",e))}`},n=e.required??!0;return new ee({options:e.options,signal:e.signal,input:e.input,output:e.output,initialValues:e.initialValues,required:n,cursorAt:e.cursorAt,validate(e){if(n&&(void 0===e||0===e.length))return`Please select at least one option.\n${(0,i.styleText)("reset",(0,i.styleText)("dim",`Press ${(0,i.styleText)(["gray","bgWhite","inverse"]," space ")} to select, ${(0,i.styleText)("gray",(0,i.styleText)("bgWhite",(0,i.styleText)("inverse"," enter ")))} to submit`))}`},render(){const n=J(e.output,e.message,`${Re(this.state)} `,`${Le(this.state)} `),a=`${(0,i.styleText)("gray",fe)}\n${n}\n`,o=this.value??[],r=(e,n)=>{if(e.disabled)return t(e,"disabled");const i=o.includes(e.value);return t(e,n&&i?"active-selected":i?"selected":n?"active":"inactive")};switch(this.state){case"submit":{const n=this.options.filter(({value:e})=>o.includes(e)).map(e=>t(e,"submitted")).join((0,i.styleText)("dim",", "))||(0,i.styleText)("dim","none");return`${a}${J(e.output,n,`${(0,i.styleText)("gray",fe)} `)}`}case"cancel":{const n=this.options.filter(({value:e})=>o.includes(e)).map(e=>t(e,"cancelled")).join((0,i.styleText)("dim",", "));return""===n.trim()?`${a}${(0,i.styleText)("gray",fe)}`:`${a}${J(e.output,n,`${(0,i.styleText)("gray",fe)} `)}\n${(0,i.styleText)("gray",fe)}`}case"error":{const t=`${(0,i.styleText)("yellow",fe)} `,n=this.error.split("\n").map((e,t)=>0===t?`${(0,i.styleText)("yellow",he)} ${(0,i.styleText)("yellow",e)}`:` ${e}`).join("\n"),o=a.split("\n").length,s=n.split("\n").length+1;return`${a}${t}${it({output:e.output,options:this.options,cursor:this.cursor,maxItems:e.maxItems,columnPadding:t.length,rowPadding:o+s,style:r}).join(`\n${t}`)}\n${n}\n`}default:{const t=`${(0,i.styleText)("cyan",fe)} `,n=a.split("\n").length;return`${a}${t}${it({output:e.output,options:this.options,cursor:this.cursor,maxItems:e.maxItems,columnPadding:t.length,rowPadding:n+2,style:r}).join(`\n${t}`)}\n${(0,i.styleText)("cyan",he)}\n`}}}}).prompt()},_t=e=>(0,i.styleText)("dim",e),St=(e,t,n)=>{const i={hard:!0,trim:!1},a=nt(e,t,i).split("\n"),o=a.reduce((e,t)=>Math.max(Je(t),e),0);return nt(e,t-(a.map(n).reduce((e,t)=>Math.max(Je(t),e),0)-o),i)},Et=(e="",t="",n)=>{const o=n?.output??a.default.stdout,r=n?.withGuide??M.withGuide,s=n?.format??_t,c=["",...St(e,H(o)-6,s).split("\n").map(s),""],l=Je(t),p=Math.max(c.reduce((e,t)=>{const n=Je(t);return n>e?n:e},0),l)+2,u=c.map(e=>`${(0,i.styleText)("gray",fe)} ${e}${" ".repeat(p-Je(e))}${(0,i.styleText)("gray",fe)}`).join("\n"),d=r?`${(0,i.styleText)("gray",fe)}\n`:"",m=r?Ne:Ce;o.write(`${d}${(0,i.styleText)("green",de)} ${(0,i.styleText)("reset",t)} ${(0,i.styleText)("gray",Ee.repeat(Math.max(p-l-1,1))+je)}\n${u}\n${(0,i.styleText)("gray",m+Ee.repeat(p+2)+Ae)}\n`)},jt=e=>new te({validate:e.validate,mask:e.mask??Se,signal:e.signal,input:e.input,output:e.output,render(){const t=e.withGuide??M.withGuide,n=`${t?`${(0,i.styleText)("gray",fe)}\n`:""}${Le(this.state)} ${e.message}\n`,a=this.userInputWithCursor,o=this.masked;switch(this.state){case"error":{const a=t?`${(0,i.styleText)("yellow",fe)} `:"",r=t?`${(0,i.styleText)("yellow",he)} `:"",s=o??"";return e.clearOnError&&this.clear(),`${n.trim()}\n${a}${s}\n${r}${(0,i.styleText)("yellow",this.error)}\n`}case"submit":return`${n}${t?`${(0,i.styleText)("gray",fe)} `:""}${o?(0,i.styleText)("dim",o):""}`;case"cancel":return`${n}${t?`${(0,i.styleText)("gray",fe)} `:""}${o?(0,i.styleText)(["strikethrough","dim"],o):""}${o&&t?`\n${(0,i.styleText)("gray",fe)}`:""}`;default:return`${n}${t?`${(0,i.styleText)("cyan",fe)} `:""}${a}\n${t?(0,i.styleText)("cyan",he):""}\n`}}}).prompt(),Nt=e=>{const t=e.validate;return rt({...e,initialUserInput:e.initialValue??e.root??process.cwd(),maxItems:5,validate(e){if(!Array.isArray(e)){if(!e)return"Please select a path";if(t)return t(e)}},options(){const t=this.userInput;if(""===t)return[];try{let n;return n=p(t)&&u(t).isDirectory()?t:m(t),d(n).map(e=>{const t=f(n,e);return{name:e,path:t,isDirectory:u(t).isDirectory()}}).filter(({path:n,isDirectory:i})=>n.startsWith(t)&&(e.directory||!i)).map(e=>({value:e.path}))}catch{return[]}}})},At=e=>(0,i.styleText)("magenta",e),Ct=({indicator:e="dots",onCancel:t,output:n=process.stdout,cancelMessage:s,errorMessage:p,frames:u=(oe?["◒","◐","◓","◑"]:["•","o","O","0"]),delay:d=(oe?80:120),signal:m,...f}={})=>{const v=re();let y,b,x,w=!1,_=!1,S="",E=performance.now();const j=H(n),N=f?.styleFrame??At,A=e=>{const n=e>1?p??M.messages.error:s??M.messages.cancel;_=1===e,w&&(L(n,e),_&&"function"==typeof t&&t())},C=()=>A(2),O=()=>A(1),T=()=>{if(void 0===x)return;v&&n.write("\n");const e=nt(x,j,{hard:!0,trim:!1}).split("\n");e.length>1&&n.write(h.cursor.up(e.length-1)),n.write(h.cursor.to(0)),n.write(h.erase.down())},$=e=>e.replace(/\.+$/,""),P=e=>{const t=(performance.now()-e)/1e3,n=Math.floor(t/60),i=Math.floor(t%60);return n>0?`[${n}m ${i}s]`:`[${i}s]`},k=f.withGuide??M.withGuide,L=(t="",a=0,o=!1)=>{if(!w)return;w=!1,clearInterval(b),T();const r=0===a?(0,i.styleText)("green",de):1===a?(0,i.styleText)("red",pe):(0,i.styleText)("red",ue);S=t??S,o||("timer"===e?n.write(`${r} ${S} ${P(E)}\n`):n.write(`${r} ${S}\n`)),process.removeListener("uncaughtExceptionMonitor",C),process.removeListener("unhandledRejection",C),process.removeListener("SIGINT",O),process.removeListener("SIGTERM",O),process.removeListener("exit",A),m&&m.removeEventListener("abort",O),y()};return{start:(t="")=>{w=!0,y=function({input:e=a.stdin,output:t=a.stdout,overwrite:n=!0,hideCursor:i=!0}={}){const s=r({input:e,output:t,prompt:"",tabSize:1});c(e,s),e instanceof g.ReadStream&&e.isTTY&&e.setRawMode(!0);const p=(a,{name:r,sequence:s})=>{if(U([String(a),r,s],"cancel"))return i&&t.write(h.cursor.show),void process.exit(0);n&&l(t,"return"===r?0:-1,"return"===r?-1:0,()=>{o(t,1,()=>{e.once("keypress",p)})})};return i&&t.write(h.cursor.hide),e.once("keypress",p),()=>{e.off("keypress",p),i&&t.write(h.cursor.show),e instanceof g.ReadStream&&e.isTTY&&!z&&e.setRawMode(!1),s.terminal=!1,s.close()}}({output:n}),S=$(t),E=performance.now(),k&&n.write(`${(0,i.styleText)("gray",fe)}\n`);let s=0,p=0;process.on("uncaughtExceptionMonitor",C),process.on("unhandledRejection",C),process.on("SIGINT",O),process.on("SIGTERM",O),process.on("exit",A),m&&m.addEventListener("abort",O),b=setInterval(()=>{if(v&&S===x)return;T(),x=S;const t=N(u[s]);let i;if(v)i=`${t} ${S}...`;else if("timer"===e)i=`${t} ${S} ${P(E)}`;else{const e=".".repeat(Math.floor(p)).slice(0,3);i=`${t} ${S}${e}`}const a=nt(i,j,{hard:!0,trim:!1});n.write(a),s=s+1<u.length?s+1:0,p=p<4?p+.125:0},d)},stop:(e="")=>L(e,0),message:(e="")=>{S=$(e??S)},cancel:(e="")=>L(e,1),error:(e="")=>L(e,2),clear:()=>L("",0,!0),get isCancelled(){return _}}},Ot={light:ce("─","-"),heavy:ce("━","="),block:ce("█","#")};function Tt({style:e="heavy",max:t=100,size:n=40,...a}={}){const o=Ct(a);let r=0,s="";const c=Math.max(1,t),l=Math.max(1,n),p=(t,n)=>{const a=Math.floor(r/c*l);return`${(e=>{switch(e){case"initial":case"active":default:return e=>(0,i.styleText)("magenta",e);case"error":case"cancel":return e=>(0,i.styleText)("red",e);case"submit":return e=>(0,i.styleText)("green",e)}})(t)(Ot[e].repeat(a))}${(0,i.styleText)("dim",Ot[e].repeat(l-a))} ${n}`},u=(e=1,t)=>{r=Math.min(c,e+r),o.message(p("active",t??s)),s=t??s};return{start:(e="")=>{s=e,o.start(p("initial",e))},stop:o.stop,cancel:o.cancel,error:o.error,clear:o.clear,advance:u,isCancelled:o.isCancelled,message:e=>u(0,e)}}const $t=(e,t)=>e.includes("\n")?e.split("\n").map(e=>t(e)).join("\n"):t(e),Pt=e=>{const t=(e,t)=>{const n=e.label??String(e.value);switch(t){case"disabled":return`${(0,i.styleText)("gray",be)} ${$t(n,e=>(0,i.styleText)("gray",e))}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint??"disabled"})`)}`:""}`;case"selected":return`${$t(n,e=>(0,i.styleText)("dim",e))}`;case"active":return`${(0,i.styleText)("green",ye)} ${n}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`;case"cancelled":return`${$t(n,e=>(0,i.styleText)(["strikethrough","dim"],e))}`;default:return`${(0,i.styleText)("dim",be)} ${$t(n,e=>(0,i.styleText)("dim",e))}`}};return new ne({options:e.options,signal:e.signal,input:e.input,output:e.output,initialValue:e.initialValue,render(){const n=e.withGuide??M.withGuide,a=`${Le(this.state)} `,o=`${Re(this.state)} `,r=J(e.output,e.message,o,a),s=`${n?`${(0,i.styleText)("gray",fe)}\n`:""}${r}\n`;switch(this.state){case"submit":{const a=n?`${(0,i.styleText)("gray",fe)} `:"";return`${s}${J(e.output,t(this.options[this.cursor],"selected"),a)}`}case"cancel":{const a=n?`${(0,i.styleText)("gray",fe)} `:"";return`${s}${J(e.output,t(this.options[this.cursor],"cancelled"),a)}${n?`\n${(0,i.styleText)("gray",fe)}`:""}`}default:{const a=n?`${(0,i.styleText)("cyan",fe)} `:"",o=n?(0,i.styleText)("cyan",he):"",r=s.split("\n").length,c=n?2:1;return`${s}${a}${it({output:e.output,cursor:this.cursor,options:this.options,maxItems:e.maxItems,columnPadding:a.length,rowPadding:r+c,style:(e,n)=>t(e,e.disabled?"disabled":n?"active":"inactive")}).join(`\n${a}`)}\n${o}\n`}}}}).prompt()},kt=e=>{const t=(e,t="inactive")=>{const n=e.label??String(e.value);return"selected"===t?`${(0,i.styleText)("dim",n)}`:"cancelled"===t?`${(0,i.styleText)(["strikethrough","dim"],n)}`:"active"===t?`${(0,i.styleText)(["bgCyan","gray"],` ${e.value} `)} ${n}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`:`${(0,i.styleText)(["gray","bgWhite","inverse"],` ${e.value} `)} ${n}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`};return new ie({options:e.options,signal:e.signal,input:e.input,output:e.output,initialValue:e.initialValue,caseSensitive:e.caseSensitive,render(){const n=e.withGuide??M.withGuide,a=`${n?`${(0,i.styleText)("gray",fe)}\n`:""}${Le(this.state)} ${e.message}\n`;switch(this.state){case"submit":{const o=n?`${(0,i.styleText)("gray",fe)} `:"",r=this.options.find(e=>e.value===this.value)??e.options[0];return`${a}${J(e.output,t(r,"selected"),o)}`}case"cancel":{const o=n?`${(0,i.styleText)("gray",fe)} `:"";return`${a}${J(e.output,t(this.options[0],"cancelled"),o)}${n?`\n${(0,i.styleText)("gray",fe)}`:""}`}default:{const o=n?`${(0,i.styleText)("cyan",fe)} `:"",r=n?(0,i.styleText)("cyan",he):"";return`${a}${this.options.map((n,i)=>J(e.output,t(n,i===this.cursor?"active":"inactive"),o)).join("\n")}\n${r}\n`}}}}).prompt()},Lt=`${(0,i.styleText)("gray",fe)} `,Rt={message:async(e,{symbol:t=(0,i.styleText)("gray",fe)}={})=>{process.stdout.write(`${(0,i.styleText)("gray",fe)}\n${t} `);let n=3;for await(let t of e){t=t.replace(/\n/g,`\n${Lt}`),t.includes("\n")&&(n=3+(0,i.stripVTControlCharacters)(t.slice(t.lastIndexOf("\n"))).length);const e=(0,i.stripVTControlCharacters)(t).length;n+e<process.stdout.columns?(n+=e,process.stdout.write(t)):(process.stdout.write(`\n${Lt}${t.trimStart()}`),n=3+(0,i.stripVTControlCharacters)(t.trimStart()).length)}process.stdout.write("\n")},info:e=>Rt.message(e,{symbol:(0,i.styleText)("blue",Te)}),success:e=>Rt.message(e,{symbol:(0,i.styleText)("green",$e)}),step:e=>Rt.message(e,{symbol:(0,i.styleText)("green",de)}),warn:e=>Rt.message(e,{symbol:(0,i.styleText)("yellow",Pe)}),warning:e=>Rt.warn(e),error:e=>Rt.message(e,{symbol:(0,i.styleText)("red",ke)})},Ft=async(e,t)=>{for(const n of e){if(!1===n.enabled)continue;const e=Ct(t);e.start(n.title);const i=await n.task(e.message);e.stop(i||n.title)}},Dt=e=>{const t=e.output??process.stdout,n=H(t),a=(0,i.styleText)("gray",fe),o=e.spacing??1,r=!0===e.retainLog,s=!re()&&se(t);t.write(`${a}\n`),t.write(`${(0,i.styleText)("green",de)} ${e.title}\n`);for(let e=0;e<o;e++)t.write(`${a}\n`);const c=[{value:"",full:""}];let l=!1;const p=e=>{if(0===c.length)return;let i=0;e&&(i+=o+2);for(const e of c){const{value:t,result:a}=e;let o=a?.message??t;if(0===o.length)continue;void 0===a&&void 0!==e.header&&""!==e.header&&(o+=`\n${e.header}`);const r=o.split("\n").reduce((e,t)=>""===t?e+1:e+Math.ceil((t.length+3)/n),0);i+=r}i>0&&(i+=1,t.write(h.erase.lines(i)))},u=(e,n,r)=>{const s=r?`${e.full}\n${e.value}`:e.value;void 0!==e.header&&""!==e.header&&gt.message(e.header.split("\n").map(e=>(0,i.styleText)("bold",e)),{output:t,secondarySymbol:a,symbol:a,spacing:0}),gt.message(s.split("\n").map(e=>(0,i.styleText)("dim",e)),{output:t,secondarySymbol:a,symbol:a,spacing:n??o})},d=()=>{for(const e of c){const{header:t,value:n,full:i}=e;(void 0===t||0===t.length)&&0===n.length||u(e,void 0,!0===r&&i.length>0)}},m=(t,n,i)=>{if(p(!1),(!0!==i?.raw||!l)&&""!==t.value&&(t.value+="\n"),t.value+=(e=>e.replace(/\x1b\[(?:\d+;)*\d*[ABCDEFGHfJKSTsu]|\x1b\[(s|u)/g,""))(n),l=!0===i?.raw,void 0!==e.limit){const n=t.value.split("\n"),i=n.length-e.limit;if(i>0){const e=n.splice(0,i);r&&(t.full+=(""===t.full?"":"\n")+e.join("\n"))}t.value=n.join("\n")}s&&f()},f=()=>{for(const e of c)e.result?"error"===e.result.status?gt.error(e.result.message,{output:t,secondarySymbol:a,spacing:0}):gt.success(e.result.message,{output:t,secondarySymbol:a,spacing:0}):""!==e.value&&u(e,0)},g=(e,t)=>{p(!1),e.result=t,s&&f()};return{message(e,t){m(c[0],e,t)},group(e){const t={header:e,value:"",full:""};return c.push(t),{message(e,n){m(t,e,n)},error(e){g(t,{status:"error",message:e})},success(e){g(t,{status:"success",message:e})}}},error(e,n){p(!0),gt.error(e,{output:t,secondarySymbol:a,spacing:1}),!1!==n?.showLog&&d(),c.splice(1,c.length-1),c[0].value="",c[0].full=""},success(e,n){p(!0),gt.success(e,{output:t,secondarySymbol:a,spacing:1}),!0===n?.showLog&&d(),c.splice(1,c.length-1),c[0].value="",c[0].full=""}}},It=e=>new ae({validate:e.validate,placeholder:e.placeholder,defaultValue:e.defaultValue,initialValue:e.initialValue,output:e.output,signal:e.signal,input:e.input,render(){const t=e?.withGuide??M.withGuide,n=`${t?`${(0,i.styleText)("gray",fe)}\n`:""}${Le(this.state)} ${e.message}\n`,a=e.placeholder?(0,i.styleText)("inverse",e.placeholder[0])+(0,i.styleText)("dim",e.placeholder.slice(1)):(0,i.styleText)(["inverse","hidden"],"_"),o=this.userInput?this.userInputWithCursor:a,r=this.value??"";switch(this.state){case"error":{const e=this.error?` ${(0,i.styleText)("yellow",this.error)}`:"",a=t?`${(0,i.styleText)("yellow",fe)} `:"",r=t?(0,i.styleText)("yellow",he):"";return`${n.trim()}\n${a}${o}\n${r}${e}\n`}case"submit":{const e=r?` ${(0,i.styleText)("dim",r)}`:"";return`${n}${t?(0,i.styleText)("gray",fe):""}${e}`}case"cancel":{const e=r?` ${(0,i.styleText)(["strikethrough","dim"],r)}`:"",a=t?(0,i.styleText)("gray",fe):"";return`${n}${a}${e}${r.trim()?`\n${a}`:""}`}default:return`${n}${t?`${(0,i.styleText)("cyan",fe)} `:""}${o}\n${t?(0,i.styleText)("cyan",he):""}\n`}}}).prompt()},6194(e,t,n){n.d(t,{Chalk:()=>C,backgroundColorNames:()=>l,backgroundColors:()=>l,chalkStderr:()=>I,colorNames:()=>p,colors:()=>p,default:()=>M,foregroundColorNames:()=>c,foregroundColors:()=>c,modifierNames:()=>s,modifiers:()=>s,supportsColor:()=>w,supportsColorStderr:()=>_}),n.r(t);const i=(e=0)=>t=>`[${t+e}m`,a=(e=0)=>t=>`[${38+e};5;${t}m`,o=(e=0)=>(t,n,i)=>`[${38+e};2;${t};${n};${i}m`,r={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]}},s=Object.keys(r.modifier),c=Object.keys(r.color),l=Object.keys(r.bgColor),p=[...c,...l],u=function(){const e=new Map;for(const[t,n]of Object.entries(r)){for(const[t,i]of Object.entries(n))r[t]={open:`[${i[0]}m`,close:`[${i[1]}m`},n[t]=r[t],e.set(i[0],i[1]);Object.defineProperty(r,t,{value:n,enumerable:!1})}return Object.defineProperty(r,"codes",{value:e,enumerable:!1}),r.color.close="",r.bgColor.close="",r.color.ansi=i(),r.color.ansi256=a(),r.color.ansi16m=o(),r.bgColor.ansi=i(10),r.bgColor.ansi256=a(10),r.bgColor.ansi16m=o(10),Object.defineProperties(r,{rgbToAnsi256:{value:(e,t,n)=>e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;3===n.length&&(n=[...n].map(e=>e+e).join(""));const i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},enumerable:!1},hexToAnsi256:{value:e=>r.rgbToAnsi256(...r.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let t,n,i;if(e>=232)t=(10*(e-232)+8)/255,n=t,i=t;else{const a=(e-=16)%36;t=Math.floor(e/36)/5,n=Math.floor(a/6)/5,i=a%6/5}const a=2*Math.max(t,n,i);if(0===a)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(t));return 2===a&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>r.ansi256ToAnsi(r.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>r.ansi256ToAnsi(r.hexToAnsi256(e)),enumerable:!1}}),r}();var d=n(7721),m=n(2607);function f(e,t=(globalThis.Deno?globalThis.Deno.args:d.default.argv)){const n=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(n+e),a=t.indexOf("--");return-1!==i&&(-1===a||i<a)}const{env:g}=d.default;let v;function y(e,t={}){return 0!==(n=function(e,{streamIsTTY:t,sniffFlags:n=!0}={}){const i=function(){if("FORCE_COLOR"in g)return"true"===g.FORCE_COLOR?1:"false"===g.FORCE_COLOR?0:0===g.FORCE_COLOR.length?1:Math.min(Number.parseInt(g.FORCE_COLOR,10),3)}();void 0!==i&&(v=i);const a=n?v:i;if(0===a)return 0;if(n){if(f("color=16m")||f("color=full")||f("color=truecolor"))return 3;if(f("color=256"))return 2}if("TF_BUILD"in g&&"AGENT_NAME"in g)return 1;if(e&&!t&&void 0===a)return 0;const o=a||0;if("dumb"===g.TERM)return o;if("win32"===d.default.platform){const e=h.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in g)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(e=>e in g)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(e=>e in g)||"codeship"===g.CI_NAME?1:o;if("TEAMCITY_VERSION"in g)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(g.TEAMCITY_VERSION)?1:0;if("truecolor"===g.COLORTERM)return 3;if("xterm-kitty"===g.TERM)return 3;if("xterm-ghostty"===g.TERM)return 3;if("wezterm"===g.TERM)return 3;if("TERM_PROGRAM"in g){const e=Number.parseInt((g.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(g.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(g.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(g.TERM)||"COLORTERM"in g?1:o}(e,{streamIsTTY:e&&e.isTTY,...t}))&&{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3};var n}f("no-color")||f("no-colors")||f("color=false")||f("color=never")?v=0:(f("color")||f("colors")||f("color=true")||f("color=always"))&&(v=1);const b={stdout:y({isTTY:m.default.isatty(1)}),stderr:y({isTTY:m.default.isatty(2)})};function x(e,t,n){let i=e.indexOf(t);if(-1===i)return e;const a=t.length;let o=0,r="";do{r+=e.slice(o,i)+t+n,o=i+a,i=e.indexOf(t,o)}while(-1!==i);return r+=e.slice(o),r}const{stdout:w,stderr:_}=b,S=Symbol("GENERATOR"),E=Symbol("STYLER"),j=Symbol("IS_EMPTY"),N=["ansi","ansi","ansi256","ansi16m"],A=Object.create(null);class C{constructor(e){return O(e)}}const O=e=>{const t=(...e)=>e.join(" ");return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=w?w.level:0;e.level=void 0===t.level?n:t.level})(t,e),Object.setPrototypeOf(t,T.prototype),t};function T(e){return O(e)}Object.setPrototypeOf(T.prototype,Function.prototype);for(const[e,t]of Object.entries(u))A[e]={get(){const n=R(this,L(t.open,t.close,this[E]),this[j]);return Object.defineProperty(this,e,{value:n}),n}};A.visible={get(){const e=R(this,this[E],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const $=(e,t,n,...i)=>"rgb"===e?"ansi16m"===t?u[n].ansi16m(...i):"ansi256"===t?u[n].ansi256(u.rgbToAnsi256(...i)):u[n].ansi(u.rgbToAnsi(...i)):"hex"===e?$("rgb",t,n,...u.hexToRgb(...i)):u[n][e](...i),P=["rgb","hex","ansi256"];for(const e of P)A[e]={get(){const{level:t}=this;return function(...n){const i=L($(e,N[t],"color",...n),u.color.close,this[E]);return R(this,i,this[j])}}},A["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const i=L($(e,N[t],"bgColor",...n),u.bgColor.close,this[E]);return R(this,i,this[j])}}};const k=Object.defineProperties(()=>{},{...A,level:{enumerable:!0,get(){return this[S].level},set(e){this[S].level=e}}}),L=(e,t,n)=>{let i,a;return void 0===n?(i=e,a=t):(i=n.openAll+e,a=t+n.closeAll),{open:e,close:t,openAll:i,closeAll:a,parent:n}},R=(e,t,n)=>{const i=(...e)=>F(i,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(i,k),i[S]=e,i[E]=t,i[j]=n,i},F=(e,t)=>{if(e.level<=0||!t)return e[j]?"":t;let n=e[E];if(void 0===n)return t;const{openAll:i,closeAll:a}=n;if(t.includes(""))for(;void 0!==n;)t=x(t,n.close,n.open),n=n.parent;const o=t.indexOf("\n");return-1!==o&&(t=function(e,t,n,i){let a=0,o="";do{const r="\r"===e[i-1];o+=e.slice(a,r?i-1:i)+t+(r?"\r\n":"\n")+n,a=i+1,i=e.indexOf("\n",a)}while(-1!==i);return o+=e.slice(a),o}(t,a,i,o)),i+t+a};Object.defineProperties(T.prototype,A);const D=T(),I=T({level:_?_.level:0}),M=D},9742(e,t,n){n.d(t,{default:()=>Se,oraPromise:()=>Ee,spinners:()=>P}),n.r(t);var i=n(7721),a=n(4472),o=n(6194);const r=(e,t,n,i)=>{if("length"===n||"prototype"===n)return;if("arguments"===n||"caller"===n)return;const a=Object.getOwnPropertyDescriptor(e,n),o=Object.getOwnPropertyDescriptor(t,n);!s(a,o)&&i||Object.defineProperty(e,n,o)},s=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},c=(e,t)=>`/* Wrapped ${e}*/\n${t}`,l=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),p=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");const u=new WeakMap,d=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,i=0;const a=e.displayName||e.name||"<anonymous>",o=function(...r){if(u.set(o,++i),1===i)n=e.apply(this,r),e=void 0;else if(!0===t.throw)throw new Error(`Function \`${a}\` can only be called once`);return n};return function(e,t,{ignoreNonConfigurable:n=!1}={}){const{name:i}=e;for(const i of Reflect.ownKeys(t))r(e,t,i,n);((e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)})(e,t),((e,t,n)=>{const i=""===n?"":`with ${n.trim()}() `,a=c.bind(null,i,t.toString());Object.defineProperty(a,"name",p);const{writable:o,enumerable:r,configurable:s}=l;Object.defineProperty(e,"toString",{value:a,writable:o,enumerable:r,configurable:s})})(e,t,i)}(o,e),u.set(o,i),o};d.callCount=e=>{if(!u.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return u.get(e)};const m=d,f=[];f.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&f.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&f.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const h=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,g=Symbol.for("signal-exit emitter"),v=globalThis,y=Object.defineProperty.bind(Object);class b{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(v[g])return v[g];y(v,g,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const n=this.listeners[e],i=n.indexOf(t);-1!==i&&(0===i&&1===n.length?n.length=0:n.splice(i,1))}emit(e,t,n){if(this.emitted[e])return!1;this.emitted[e]=!0;let i=!1;for(const a of this.listeners[e])i=!0===a(t,n)||i;return"exit"===e&&(i=this.emit("afterExit",t,n)||i),i}}class x{}const w=globalThis.process,{onExit:_,load:S,unload:E}=(j=h(w)?new class extends x{#r="win32"===w.platform?"SIGINT":"SIGHUP";#s=new b;#c;#l;#p;#u={};#d=!1;constructor(e){super(),this.#c=e,this.#u={};for(const t of f)this.#u[t]=()=>{const n=this.#c.listeners(t);let{count:i}=this.#s;const a=e;if("object"==typeof a.__signal_exit_emitter__&&"number"==typeof a.__signal_exit_emitter__.count&&(i+=a.__signal_exit_emitter__.count),n.length===i){this.unload();const n=this.#s.emit("exit",null,t),i="SIGHUP"===t?this.#r:t;n||e.kill(e.pid,i)}};this.#p=e.reallyExit,this.#l=e.emit}onExit(e,t){if(!h(this.#c))return()=>{};!1===this.#d&&this.load();const n=t?.alwaysLast?"afterExit":"exit";return this.#s.on(n,e),()=>{this.#s.removeListener(n,e),0===this.#s.listeners.exit.length&&0===this.#s.listeners.afterExit.length&&this.unload()}}load(){if(!this.#d){this.#d=!0,this.#s.count+=1;for(const e of f)try{const t=this.#u[e];t&&this.#c.on(e,t)}catch(e){}this.#c.emit=(e,...t)=>this.#m(e,...t),this.#c.reallyExit=e=>this.#f(e)}}unload(){this.#d&&(this.#d=!1,f.forEach(e=>{const t=this.#u[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#c.removeListener(e,t)}catch(e){}}),this.#c.emit=this.#l,this.#c.reallyExit=this.#p,this.#s.count-=1)}#f(e){return h(this.#c)?(this.#c.exitCode=e||0,this.#s.emit("exit",this.#c.exitCode,null),this.#p.call(this.#c,this.#c.exitCode)):0}#m(e,...t){const n=this.#l;if("exit"===e&&h(this.#c)){"number"==typeof t[0]&&(this.#c.exitCode=t[0]);const i=n.call(this.#c,e,...t);return this.#s.emit("exit",this.#c.exitCode,null),i}return n.call(this.#c,e,...t)}}(w):new class extends x{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>j.onExit(e,t),load:()=>j.load(),unload:()=>j.unload()});var j;const N=i.default.stderr.isTTY?i.default.stderr:i.default.stdout.isTTY?i.default.stdout:void 0,A=N?m(()=>{_(()=>{N.write("[?25h")},{alwaysLast:!0})}):()=>{};let C=!1;const O={show:(e=i.default.stderr)=>{e.isTTY&&(C=!1,e.write("[?25h"))},hide:(e=i.default.stderr)=>{e.isTTY&&(A(),C=!0,e.write("[?25l"))},toggle:(e,t)=>{void 0!==e&&(C=e),C?O.show(t):O.hide(t)}},T=O,$=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots13":{"interval":80,"frames":["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},"dots14":{"interval":80,"frames":["⠉⠉","⠈⠙","⠀⠹","⠀⢸","⠀⣰","⢀⣠","⣀⣀","⣄⡀","⣆⠀","⡇⠀","⠏⠀","⠋⠁"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"dotsCircle":{"interval":80,"frames":["⢎ ","⠎⠁","⠊⠑","⠈⠱"," ⡱","⢀⡰","⢄⡠","⢆⡀"]},"sand":{"interval":80,"frames":["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"rollingLine":{"interval":80,"frames":["/ "," - "," \\\\ "," |"," |"," \\\\ "," - ","/ "]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"binary":{"interval":80,"frames":["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","💗 "]},"clock":{"interval":100,"frames":["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},"fistBump":{"interval":80,"frames":["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},"soccerHeader":{"interval":80,"frames":[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},"mindblown":{"interval":160,"frames":["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},"speaker":{"interval":160,"frames":["🔈 ","🔉 ","🔊 ","🔉 "]},"orangePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},"bluePulse":{"interval":100,"frames":["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"orangeBluePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"timeTravel":{"interval":100,"frames":["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},"dwarfFortress":{"interval":80,"frames":[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]},"fish":{"interval":80,"frames":["~~~~~~~~~~~~~~~~~~~~","> ~~~~~~~~~~~~~~~~~~","º> ~~~~~~~~~~~~~~~~~","(º> ~~~~~~~~~~~~~~~~","((º> ~~~~~~~~~~~~~~~","<((º> ~~~~~~~~~~~~~~","><((º> ~~~~~~~~~~~~~"," ><((º> ~~~~~~~~~~~~","~ ><((º> ~~~~~~~~~~~","~~ <>((º> ~~~~~~~~~~","~~~ ><((º> ~~~~~~~~~","~~~~ <>((º> ~~~~~~~~","~~~~~ ><((º> ~~~~~~~","~~~~~~ <>((º> ~~~~~~","~~~~~~~ ><((º> ~~~~~","~~~~~~~~ <>((º> ~~~~","~~~~~~~~~ ><((º> ~~~","~~~~~~~~~~ <>((º> ~~","~~~~~~~~~~~ ><((º> ~","~~~~~~~~~~~~ <>((º> ","~~~~~~~~~~~~~ ><((º>","~~~~~~~~~~~~~~ <>((º","~~~~~~~~~~~~~~~ ><((","~~~~~~~~~~~~~~~~ <>(","~~~~~~~~~~~~~~~~~ ><","~~~~~~~~~~~~~~~~~~ <","~~~~~~~~~~~~~~~~~~~~"]}}'),P=$;Object.keys($);var k=n(2607);const L=k.default?.WriteStream?.prototype?.hasColors?.()??!1,R=(e,t)=>{if(!L)return e=>e;const n=`[${e}m`,i=`[${t}m`;return e=>{const a=e+"";let o=a.indexOf(i);if(-1===o)return n+a+i;let r=n,s=0;const c=(22===t?i:"")+n;for(;-1!==o;)r+=a.slice(s,o)+c,s=o+i.length,o=a.indexOf(i,s);return r+=a.slice(s)+i,r}},F=(R(0,0),R(1,22),R(2,22),R(3,23),R(4,24),R(53,55),R(7,27),R(8,28),R(9,29),R(30,39),R(31,39)),D=R(32,39),I=R(33,39),M=R(34,39);function B(){const{env:e}=i.default,{TERM:t,TERM_PROGRAM:n}=e;return"win32"!==i.default.platform?"linux"!==t:Boolean(e.WT_SESSION)||Boolean(e.TERMINUS_SUBLIME)||"{cmd::Cmder}"===e.ConEmuTask||"Terminus-Sublime"===n||"vscode"===n||"xterm-256color"===t||"alacritty"===t||"rxvt-unicode"===t||"rxvt-unicode-256color"===t||"JetBrains-JediTerm"===e.TERMINAL_EMULATOR}R(35,39),R(36,39),R(37,39),R(90,39),R(40,49),R(41,49),R(42,49),R(43,49),R(44,49),R(45,49),R(46,49),R(47,49),R(100,49),R(91,39),R(92,39),R(93,39),R(94,39),R(95,39),R(96,39),R(97,39),R(101,49),R(102,49),R(103,49),R(104,49),R(105,49),R(106,49),R(107,49);const U=B(),z=M(U?"ℹ":"i"),q=D(U?"✔":"√"),W=I(U?"⚠":"‼"),V=F(U?"✖":"×"),H=function({onlyFirst:e=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",e?void 0:"g")}(),G=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],J=[12288,12288,65281,65376,65504,65510],Y=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],K=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],X=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],Q=(e,t)=>{let n=0,i=Math.floor(e.length/2)-1;for(;n<=i;){const a=Math.floor((n+i)/2),o=2*a;if(t<e[o])i=a-1;else{if(!(t>e[o+1]))return!0;n=a+1}}return!1},Z=G[0],ee=G.at(-1),te=J[0],ne=J.at(-1),ie=(Y[0],Y.at(-1),K[0],K.at(-1),X[0]),ae=X.at(-1),[oe,re]=function(e){let t=e[0],n=e[1];for(let i=0;i<e.length;i+=2){const a=e[i],o=e[i+1];if(19968>=a&&19968<=o)return[a,o];o-a>n-t&&(t=a,n=o)}return[t,n]}(X);function se(e,{ambiguousAsWide:t=!1}={}){return function(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}(e),(e=>!(e<te||e>ne)&&Q(J,e))(e)||(e=>e>=oe&&e<=re||!(e<ie||e>ae)&&Q(X,e))(e)||t&&(e=>!(e<Z||e>ee)&&Q(G,e))(e)?2:1}const ce=new Intl.Segmenter,le=/^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Format}|\p{Mark}|\p{Surrogate})+$/v,pe=/^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}\p{Surrogate}]+/v,ue=/^\p{RGI_Emoji}$/v,de=/^[\d#*]\u20E3$/,me=/\p{Extended_Pictographic}/gu;function fe(e){if(e.length>50)return!1;if(de.test(e))return!0;if(e.includes("‍")){const t=e.match(me);return null!==t&&t.length>=2}return!1}function he(e){return e.replace(pe,"")}function ge(e){return le.test(e)}function ve(e,t){let n=0;if(e.length>1)for(const i of e.slice(1))i>="＀"&&i<="￯"&&(n+=se(i.codePointAt(0),t));return n}function ye(e,t={}){if("string"!=typeof e||0===e.length)return 0;const{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:i=!1}=t;let a=e;if(i||!a.includes("")&&!a.includes("›")||(a=function(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.includes("")||e.includes("›")?e.replace(H,""):e}(a)),0===a.length)return 0;if(/^[\u0020-\u007E]*$/.test(a))return a.length;let o=0;const r={ambiguousAsWide:!n};for(const{segment:e}of ce.segment(a))ge(e)||(ue.test(e)||fe(e)?o+=2:(o+=se(he(e).codePointAt(0),r),o+=ve(e,r)));return o}const be=new class{#h=0;#g;#v=!1;#y=!1;#b=e=>{e?.length&&3===("string"==typeof e?e.codePointAt(0):e[0])&&(i.default.listenerCount("SIGINT")>0?i.default.emit("SIGINT"):i.default.kill(i.default.pid,"SIGINT"))};start(){this.#h++,1===this.#h&&this.#x()}stop(){0!==this.#h&&0===--this.#h&&this.#w()}#x(){const{stdin:e}=i.default;"win32"!==i.default.platform&&e?.isTTY&&"function"==typeof e.setRawMode?(this.#g=e,this.#v=e.isPaused(),this.#y=Boolean(e.isRaw),e.setRawMode(!0),e.prependListener("data",this.#b),this.#v&&e.resume()):this.#g=void 0}#w(){if(!this.#g)return;const e=this.#g;e.off("data",this.#b),e.isTTY&&e.setRawMode?.(this.#y),this.#v&&e.pause(),this.#g=void 0,this.#v=!1,this.#y=!1}},xe=Object.freeze(be),we=new Map;class _e{#_=0;#S=-1;#E=0;#j;#N;#A;#C;#O=new Map;#T=!1;#$;#P;#k=!1;color;#L(e){this.#T=!0;try{return e()}finally{this.#T=!1}}#R(){this.isSpinning&&this.render()}#F(e,t){if(null==e)return"";if("string"==typeof e)return e;if(Buffer.isBuffer(e)||ArrayBuffer.isView(e)){const n="string"==typeof t&&t&&"buffer"!==t?t:"utf8";return Buffer.from(e).toString(n)}return String(e)}#D(e){if(!e)return!1;const t=e.at(-1);return"\n"===t||"\r"===t}#I(){this.#P||(this.#P=setTimeout(()=>{this.#P=void 0,this.isSpinning&&this.#R()},200),"function"==typeof this.#P?.unref&&this.#P.unref())}#M(){this.#P&&(clearTimeout(this.#P),this.#P=void 0)}#B(e,t,n,i){return this.#U(n," ")+e+("string"==typeof t?(e?" ":"")+t:"")+this.#z(i," ")}constructor(e){"string"==typeof e&&(e={text:e}),this.#j={color:"cyan",stream:i.default.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#j.color,this.#A=this.#j.stream,"boolean"!=typeof this.#j.isEnabled&&(this.#j.isEnabled=function({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#A})),"boolean"!=typeof this.#j.isSilent&&(this.#j.isSilent=!1);const t=this.#j.interval;this.spinner=this.#j.spinner,this.#j.interval=t,this.text=this.#j.text,this.prefixText=this.#j.prefixText,this.suffixText=this.#j.suffixText,this.indent=this.#j.indent}get indent(){return this.#j.indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#j.indent=e}get interval(){return this.#j.interval??this.#N.interval??100}get spinner(){return this.#N}set spinner(e){if(this.#S=-1,this.#j.interval=void 0,"object"==typeof e){if(!Array.isArray(e.frames)||0===e.frames.length||e.frames.some(e=>"string"!=typeof e))throw new Error("The given spinner must have a non-empty `frames` array of strings");if(void 0!==e.interval&&!(Number.isInteger(e.interval)&&e.interval>0))throw new Error("`spinner.interval` must be a positive integer if provided");this.#N=e}else if(B())if(void 0===e)this.#N=P.dots;else{if("default"===e||!P[e])throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this.#N=P[e]}else this.#N=P.line}get text(){return this.#j.text}set text(e=""){this.#j.text=e}get prefixText(){return this.#j.prefixText}set prefixText(e=""){this.#j.prefixText=e}get suffixText(){return this.#j.suffixText}set suffixText(e=""){this.#j.suffixText=e}get isSpinning(){return void 0!==this.#C}#q(e,t,n=!1){const i="function"==typeof e?e():e;return"string"==typeof i&&""!==i?n?t+i:i+t:""}#U(e=this.#j.prefixText,t=" "){return this.#q(e,t,!1)}#z(e=this.#j.suffixText,t=" "){return this.#q(e,t,!0)}#W(e,t){let n=0;for(const i of(0,a.stripVTControlCharacters)(e).split("\n"))n+=Math.max(1,Math.ceil(ye(i)/t));return n}get isEnabled(){return this.#j.isEnabled&&!this.#j.isSilent}set isEnabled(e){if("boolean"!=typeof e)throw new TypeError("The `isEnabled` option must be a boolean");this.#j.isEnabled=e}get isSilent(){return this.#j.isSilent}set isSilent(e){if("boolean"!=typeof e)throw new TypeError("The `isSilent` option must be a boolean");this.#j.isSilent=e}frame(){const e=Date.now();(-1===this.#S||e-this.#E>=this.interval)&&(this.#S=(this.#S+1)%this.#N.frames.length,this.#E=e);const{frames:t}=this.#N;let n=t[this.#S];return this.color&&(n=o.default[this.color](n)),this.#U(this.#j.prefixText," ")+n+("string"==typeof this.text?" "+this.text:"")+this.#z(this.#j.suffixText," ")}clear(){return this.isEnabled&&this.#A.isTTY?(this.#L(()=>{this.#A.cursorTo(0);for(let e=0;e<this.#_;e++)e>0&&this.#A.moveCursor(0,-1),this.#A.clearLine(1);this.#j.indent&&this.#A.cursorTo(this.#j.indent)}),this.#_=0,this):this}#V(e){if(!e||this.#O.has(e)||!e.isTTY||"function"!=typeof e.write)return;we.has(e)&&console.warn("[ora] Multiple concurrent spinners detected. This may cause visual corruption. Use one spinner at a time.");const t=e.write;this.#O.set(e,t),we.set(e,this),e.write=(n,i,a)=>this.#H(e,t,n,i,a)}#G(){if(!this.isEnabled||this.#O.size>0)return;const e=new Set([this.#A,i.default.stdout,i.default.stderr]);for(const t of e)this.#V(t)}#J(){for(const[e,t]of this.#O)e.write=t,we.get(e)===this&&we.delete(e);this.#O.clear()}#H(e,t,n,i,a){if("function"==typeof i&&(a=i,i=void 0),this.#T)return t.call(e,n,i,a);this.clear();const o=this.#F(n,i),r=this.#D(o),s=t.call(e,n,i,a);return r?this.#M():o.length>0&&this.#I(),this.isSpinning&&!this.#P&&this.render(),s}render(){if(!this.isEnabled||this.#$||this.#P)return this;const e=this.#A.isTTY;let t=!1;try{e&&(this.#L(()=>this.#A.write("[?2026h")),t=!0),this.clear();let n=this.frame();const i=this.#A.columns??80,a=this.#W(n,i),o=this.#A.rows;if(o&&o>1&&a>o){const e=n.split("\n"),t=o-1;n=[...e.slice(0,t),"... (content truncated to fit terminal)"].join("\n")}!1===this.#L(()=>this.#A.write(n))&&this.#A.isTTY&&(this.#$=()=>{this.#$=void 0,this.#R()},this.#A.once("drain",this.#$)),this.#_=this.#W(n,i)}finally{t&&this.#L(()=>this.#A.write("[?2026l"))}return this}start(e){if(e&&(this.text=e),this.isSilent)return this;if(!this.isEnabled){const e=this.text?"-":"",t=" ".repeat(this.#j.indent)+this.#B(e,this.text,this.#j.prefixText,this.#j.suffixText);return""!==t.trim()&&this.#L(()=>this.#A.write(t+"\n")),this}return this.isSpinning||(this.#j.hideCursor&&T.hide(this.#A),this.#j.discardStdin&&i.default.stdin.isTTY&&(xe.start(),this.#k=!0),this.#G(),this.render(),this.#C=setInterval(this.render.bind(this),this.interval)),this}stop(){return clearInterval(this.#C),this.#C=void 0,this.#S=-1,this.#E=0,this.#M(),this.#J(),this.#$&&(this.#A.removeListener("drain",this.#$),this.#$=void 0),this.isEnabled&&(this.clear(),this.#j.hideCursor&&T.show(this.#A)),this.#k&&(this.#k=!1,xe.stop()),this}succeed(e){return this.stopAndPersist({symbol:q,text:e})}fail(e){return this.stopAndPersist({symbol:V,text:e})}warn(e){return this.stopAndPersist({symbol:W,text:e})}info(e){return this.stopAndPersist({symbol:z,text:e})}stopAndPersist(e={}){if(this.isSilent)return this;const t=e.symbol??" ",n=e.text??this.text,i=e.prefixText??this.#j.prefixText,a=e.suffixText??this.#j.suffixText,o=this.#B(t,n,i,a)+"\n";return this.stop(),this.#L(()=>this.#A.write(o)),this}}function Se(e){return new _e(e)}async function Ee(e,t){const n="function"==typeof e,i="function"==typeof e.then;if(!n&&!i)throw new TypeError("Parameter `action` must be a Function or a Promise");const{successText:a,failText:o}="object"==typeof t?t:{successText:void 0,failText:void 0},r=Se(t).start();try{const t=n?e(r):e,i=await t;return r.succeed(void 0===a?void 0:"string"==typeof a?a:a(i)),i}catch(e){throw r.fail(void 0===o?void 0:"string"==typeof o?o:o(e)),e}}},1813(e){e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},8330(e){e.exports=JSON.parse('{"name":"@share-crm/sharedev-cli","version":"0.0.4-rc.12","private":false,"description":"sharedev command line tool","type":"module","main":"dist/sharedev.js","bin":{"sharedev":"./bin/cli.mjs"},"author":{"name":"sharecrm-npm"},"files":["dist","bin","README.md"],"scripts":{"build":"tsc --noEmit && webpack --config build/webpack/webpack.prod.cjs","build:bin":"bun build --compile --target=bun-darwin-x64 src/cli.ts --outfile scripts/sharedev-darwin-x64 && bun build --compile --target=bun-darwin-arm64 src/cli.ts --outfile scripts/sharedev-darwin-arm64 && bun build --compile --target=bun-windows-x64 src/cli.ts --outfile scripts/sharedev-windows-x64.exe","build:all":"npm run build && npm run build:bin","dev":"tsc --noEmit --watch & webpack --config build/webpack/webpack.dev.cjs --watch","dev2":"node src/cli.ts","typecheck":"tsc --noEmit","prettier":"prettier --write ./src/**/*.ts","build:debug":"tsc --noEmit && webpack --config build/webpack/webpack.debug.cjs"},"dependencies":{"@clack/prompts":"^1.1.0","@mariozechner/pi-coding-agent":"^0.62.0","axios":"~1.13.0","chalk":"^5.6.2","commander":"^14.0.1","fast-xml-parser":"^5.2.5","extract-zip":"^2.0.1","fs-extra":"^11.3.2","ora":"^9.3.0"},"devDependencies":{"@types/extract-zip":"^2.0.3","@types/fs-extra":"^11.0.4","@types/node":"^24.3.0","ts-loader":"^9.5.4","typescript":"^5.9.2","webpack":"^5.101.3","webpack-cli":"^6.0.1","webpack-merge":"^6.0.1"},"packageManager":"pnpm@10.17.0"}')}},v={};function y(e){var t=v[e];if(void 0!==t)return t.exports;var n=v[e]={exports:{}};return g[e].call(n.exports,n,n.exports,y),n.exports}y.d=(e,t)=>{for(var n in t)y.o(t,n)&&!y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},y.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var b={};(()=>{var e=b;Object.defineProperty(e,"__esModule",{value:!0});const t=y(2116),n=y(6592),i=y(810),a=y(3333),o=y(2088),r=y(5016),s=y(654);function c(e){const t=e.trim().replace(/^v/i,"").split("+")[0],[n="0.0.0",i]=t.split("-",2),a=n.split(".").map(e=>Number.parseInt(e,10)||0);for(;a.length<3;)a.push(0);return{core:a,prerelease:i?i.split(".").filter(Boolean):[]}}(async function(){const e={debug:process.argv.slice(2).includes("--debug")},l=await(0,r.readCliPackageMeta)(),p=l.version;await async function(e,t){try{const n=new AbortController,i=setTimeout(()=>n.abort(),1500),o=encodeURIComponent(e),r=await fetch(`https://registry.npmjs.org/${o}/latest`,{signal:n.signal});if(clearTimeout(i),!r.ok)return;const s=await r.json(),l="string"==typeof s.version?s.version.trim():"";if(!l)return;(function(e,t){const n=c(e),i=c(t);for(let e=0;e<3;e+=1)if(n.core[e]!==i.core[e])return n.core[e]>i.core[e]?1:-1;const a=n.prerelease,o=i.prerelease;if(0===a.length&&o.length>0)return 1;if(a.length>0&&0===o.length)return-1;const r=Math.max(a.length,o.length);for(let e=0;e<r;e+=1){const t=a[e],n=o[e];if(void 0===t)return-1;if(void 0===n)return 1;const i=Number(t),r=Number(n),s=Number.isFinite(i),c=Number.isFinite(r);if(s&&c&&i!==r)return i>r?1:-1;if(s!==c)return s?-1:1;if(t!==n)return t>n?1:-1}return 0})(l,t)>0&&a.loggerService.warn(`A newer version is available: ${t} -> ${l}. Run: npm i -g ${e}`)}catch{}}(l.name,p);const u=new t.Command;if(u.name("sharedev").description("sharedev command line tool").version(p,"-v, --version","output the current version").option("--debug","enable trace debug output for current command").showHelpAfterError(!0),(0,s.setRuntimeDebugEnabled)(Boolean(e.debug)),function(e){if(function(e){return e.slice(2).some(e=>"--help"===e||"-h"===e)}(e))return!0;if(function(e){return e.slice(2).some(e=>"--version"===e||"-v"===e)}(e))return!0;const t=function(e){const t=e.slice(2),n=[],i=new Set(["--ea","--domain","--certificate","--platform"]);for(let e=0;e<t.length;e+=1){const a=t[e];if(a.startsWith("-")){if(a.startsWith("--")){const[t]=a.split("=");i.has(t)&&!a.includes("=")&&(e+=1);continue}}else if(n.push(a),2===n.length)break}return n}(e);return"init"===t[0]||"config"===t[0]||"completion"===t[0]||"spec"===t[0]}(process.argv))return(0,n.registerNamespaces)(u,function(){const e=process.cwd();return{cwd:e,verbose:!1,settings:{certificate:"",domain:"https://help.invalid",settingsPath:"",settingsDir:e},workspaceRoot:e}}()),void await u.parseAsync(process.argv,{from:"node"});const d=await(0,i.createCliRuntimeContext)(e);o.requestService.configure(d.settings),(0,n.registerNamespaces)(u,d),await u.parseAsync(process.argv,{from:"node"})})().catch(e=>{const t=e instanceof Error?e.message:String(e);a.loggerService.error(t),process.exitCode=1})})();const x=b.__esModule;export{x as __esModule,b as default};
3
+ import*as e from"node:process";import*as t from"node:tty";import*as n from"node:util";import{createRequire as i}from"node:module";const o=i(import.meta.url);import{clearLine as a,createInterface as r,default as s,emitKeypressEvents as c,moveCursor as l}from"node:readline";import{existsSync as p,lstatSync as u,readdirSync as d}from"node:fs";import{dirname as m,join as f}from"node:path";import{default as h}from"node:os";var g={3870(e){const t=async function(){}.constructor;e.exports=()=>t},1722(e){const t=async function*(){}.constructor;e.exports=()=>t},1873(e,t,n){e.exports={parallel:n(8798),serial:n(2081),serialOrdered:n(28)}},4555(e){function t(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(t.bind(e)),e.jobs={}}},2313(e,t,n){var i=n(405);e.exports=function(e){var t=!1;return i(function(){t=!0}),function(n,o){t?e(n,o):i(function(){e(n,o)})}}},405(e){e.exports=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)}},8051(e,t,n){var i=n(2313),o=n(4555);e.exports=function(e,t,n,a){var r=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[r]=function(e,t,n,o){return 2==e.length?e(n,i(o)):e(n,t,i(o))}(t,r,e[r],function(e,t){r in n.jobs&&(delete n.jobs[r],e?o(n):n.results[r]=t,a(e,n.results))})}},9500(e){e.exports=function(e,t){var n=!Array.isArray(e),i={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&i.keyedList.sort(n?t:function(n,i){return t(e[n],e[i])}),i}},6276(e,t,n){var i=n(4555),o=n(2313);e.exports=function(e){Object.keys(this.jobs).length&&(this.index=this.size,i(this),o(e)(null,this.results))}},8798(e,t,n){var i=n(8051),o=n(9500),a=n(6276);e.exports=function(e,t,n){for(var r=o(e);r.index<(r.keyedList||e).length;)i(e,t,r,function(e,t){e?n(e,t):0!==Object.keys(r.jobs).length||n(null,r.results)}),r.index++;return a.bind(r,n)}},2081(e,t,n){var i=n(28);e.exports=function(e,t,n){return i(e,t,null,n)}},28(e,t,n){var i=n(8051),o=n(9500),a=n(6276);function r(e,t){return e<t?-1:e>t?1:0}e.exports=function(e,t,n,r){var s=o(e,n);return i(e,t,s,function n(o,a){o?r(o,a):(s.index++,s.index<(s.keyedList||e).length?i(e,t,s,n):r(null,s.results))}),a.bind(s,r)},e.exports.ascending=r,e.exports.descending=function(e,t){return-1*r(e,t)}},4025(e,t,n){var i=n(181).Buffer,o=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function a(e){if(i.isBuffer(e))return e;var t="function"==typeof i.alloc&&"function"==typeof i.from;if("number"==typeof e)return t?i.alloc(e):new i(e);if("string"==typeof e)return t?i.from(e):new i(e);throw new Error("input must be buffer, number, or string, received "+typeof e)}function r(e,t){e=a(e),i.isBuffer(t)&&(t=t.readUInt32BE(0));for(var n=-1^t,r=0;r<e.length;r++)n=o[255&(n^e[r])]^n>>>8;return-1^n}function s(){return e=r.apply(null,arguments),(t=a(4)).writeInt32BE(e,0),t;var e,t}"undefined"!=typeof Int32Array&&(o=new Int32Array(o)),s.signed=function(){return r.apply(null,arguments)},s.unsigned=function(){return r.apply(null,arguments)>>>0},e.exports=s},3144(e,t,n){var i=n(6743),o=n(1002),a=n(76),r=n(7119);e.exports=r||i.call(a,o)},1002(e){e.exports=Function.prototype.apply},76(e){e.exports=Function.prototype.call},3126(e,t,n){var i=n(6743),o=n(9675),a=n(76),r=n(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return r(i,a,e)}},7119(e){e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},801(e,t,n){var i=n(9023),o=n(2203).Stream,a=n(8069);function r(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=r,i.inherits(r,o),r.create=function(e){var t=new this;for(var n in e=e||{})t[n]=e[n];return t},r.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},r.prototype.append=function(e){if(r.isStreamLike(e)){if(!(e instanceof a)){var t=a.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},r.prototype.pipe=function(e,t){return o.prototype.pipe.call(this,e,t),this.resume(),e},r.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},r.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){r.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},r.prototype._pipeNext=function(e){if(this._currentStream=e,r.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},r.prototype._handleErrors=function(e){var t=this;e.on("error",function(e){t._emitError(e)})},r.prototype.write=function(e){this.emit("data",e)},r.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},r.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},r.prototype.end=function(){this._reset(),this.emit("end")},r.prototype.destroy=function(){this._reset(),this.emit("close")},r.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},r.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},r.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},r.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},7833(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(o=i))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(736)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},736(e,t,n){e.exports=function(e){function t(e){let n,o,a,r=null;function s(...e){if(!s.enabled)return;const i=s,o=Number(new Date),a=o-(n||o);i.diff=a,i.prev=n,i.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,o)=>{if("%%"===n)return"%";r++;const a=t.formatters[o];if("function"==typeof a){const t=e[r];n=a.call(i,t),e.splice(r,1),r--}return n}),t.formatArgs.call(i,e),(i.log||t.log).apply(i,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=i,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(o!==t.namespaces&&(o=t.namespaces,a=t.enabled(e)),a),set:e=>{r=e}}),"function"==typeof t.init&&t.init(s),s}function i(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function o(e,t){let n=0,i=0,o=-1,a=0;for(;n<e.length;)if(i<t.length&&(t[i]===e[n]||"*"===t[i]))"*"===t[i]?(o=i,a=n,i++):(n++,i++);else{if(-1===o)return!1;i=o+1,a++,n=a}for(;i<t.length&&"*"===t[i];)i++;return i===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(o(e,n))return!1;for(const n of t.names)if(o(e,n))return!0;return!1},t.humanize=n(6585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},5753(e,t,n){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=n(7833):e.exports=n(6033)},6033(e,t,n){const i=n(2018),o=n(9023);t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let i=0;i<n.length;i++)e.inspectOpts[n[i]]=t.inspectOpts[n[i]]},t.log=function(...e){return process.stderr.write(o.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(n){const{namespace:i,useColors:o}=this;if(o){const t=this.color,o="[3"+(t<8?t:"8;5;"+t),a=` ${o};1m${i} `;n[0]=a+n[0].split("\n").join("\n"+a),n.push(o+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+i+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):i.isatty(process.stderr.fd)},t.destroy=o.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=n(7687);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let i=process.env[t];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[n]=i,e},{}),e.exports=n(736)(t);const{formatters:a}=e.exports;a.o=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},a.O=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts)}},8069(e,t,n){var i=n(2203).Stream,o=n(9023);function a(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=a,o.inherits(a,i),a.create=function(e,t){var n=new this;for(var i in t=t||{})n[i]=t[i];n.source=e;var o=e.emit;return e.emit=function(){return n._handleEmit(arguments),o.apply(e,arguments)},e.on("error",function(){}),n.pauseStream&&e.pause(),n},Object.defineProperty(a.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),a.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},a.prototype.resume=function(){this._released||this.release(),this.source.resume()},a.prototype.pause=function(){this.source.pause()},a.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},a.prototype.pipe=function(){var e=i.prototype.pipe.apply(this,arguments);return this.resume(),e},a.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},a.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}},7176(e,t,n){var i,o=n(3126),a=n(5795);try{i=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var r=!!i&&a&&a(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=r&&"function"==typeof r.get?o([r.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},6611(e,t,n){var i=n(3519),o=function(){},a=global.Bare?queueMicrotask:process.nextTick.bind(process),r=function(e,t,n){if("function"==typeof t)return r(e,null,t);t||(t={}),n=i(n||o);var s=e._writableState,c=e._readableState,l=t.readable||!1!==t.readable&&e.readable,p=t.writable||!1!==t.writable&&e.writable,u=!1,d=function(){e.writable||m()},m=function(){p=!1,l||n.call(e)},f=function(){l=!1,p||n.call(e)},h=function(t){n.call(e,t?new Error("exited with error code: "+t):null)},g=function(t){n.call(e,t)},v=function(){a(y)},y=function(){if(!u)return(!l||c&&c.ended&&!c.destroyed)&&(!p||s&&s.ended&&!s.destroyed)?void 0:n.call(e,new Error("premature close"))},b=function(){e.req.on("finish",m)};return function(e){return e.setHeader&&"function"==typeof e.abort}(e)?(e.on("complete",m),e.on("abort",v),e.req?b():e.on("request",b)):p&&!s&&(e.on("end",d),e.on("close",d)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",h),e.on("end",f),e.on("finish",m),!1!==t.error&&e.on("error",g),e.on("close",v),function(){u=!0,e.removeListener("complete",m),e.removeListener("abort",v),e.removeListener("request",b),e.req&&e.req.removeListener("finish",m),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",m),e.removeListener("exit",h),e.removeListener("end",f),e.removeListener("error",g),e.removeListener("close",v)}};e.exports=r},655(e){var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},1237(e){e.exports=EvalError},9383(e){e.exports=Error},9290(e){e.exports=RangeError},9538(e){e.exports=ReferenceError},8068(e){e.exports=SyntaxError},9675(e){e.exports=TypeError},5345(e){e.exports=URIError},9612(e){e.exports=Object},9605(e,t,n){var i=n(453)("%Object.defineProperty%",!0),o=n(9092)(),a=n(9957),r=n(9675),s=o?Symbol.toStringTag:null;e.exports=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,o=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==o&&"boolean"!=typeof o)throw new r("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!s||!n&&a(e,s)||(i?i(e,s,{configurable:!o,enumerable:!1,value:t,writable:!1}):e[s]=t)}},3832(e,t,n){const i=n(5753)("extract-zip"),{createWriteStream:o,promises:a}=n(9896),r=n(4594),s=n(6928),{promisify:c}=n(9023),l=n(2203),p=n(4824),u=c(p.open),d=c(l.pipeline);class m{constructor(e,t){this.zipPath=e,this.opts=t}async extract(){return i("opening",this.zipPath,"with opts",this.opts),this.zipfile=await u(this.zipPath,{lazyEntries:!0}),this.canceled=!1,new Promise((e,t)=>{this.zipfile.on("error",e=>{this.canceled=!0,t(e)}),this.zipfile.readEntry(),this.zipfile.on("close",()=>{this.canceled||(i("zip extraction complete"),e())}),this.zipfile.on("entry",async e=>{if(this.canceled)return void i("skipping entry",e.fileName,{cancelled:this.canceled});if(i("zipfile entry",e.fileName),e.fileName.startsWith("__MACOSX/"))return void this.zipfile.readEntry();const n=s.dirname(s.join(this.opts.dir,e.fileName));try{await a.mkdir(n,{recursive:!0});const t=await a.realpath(n);if(s.relative(this.opts.dir,t).split(s.sep).includes(".."))throw new Error(`Out of bound path "${t}" found while processing file ${e.fileName}`);await this.extractEntry(e),i("finished processing",e.fileName),this.zipfile.readEntry()}catch(e){this.canceled=!0,this.zipfile.close(),t(e)}})})}async extractEntry(e){if(this.canceled)return void i("skipping entry extraction",e.fileName,{cancelled:this.canceled});this.opts.onEntry&&this.opts.onEntry(e,this.zipfile);const t=s.join(this.opts.dir,e.fileName),n=e.externalFileAttributes>>16&65535,l=40960==(61440&n);let p=16384==(61440&n);!p&&e.fileName.endsWith("/")&&(p=!0);const u=e.versionMadeBy>>8;p||(p=0===u&&16===e.externalFileAttributes),i("extracting entry",{filename:e.fileName,isDir:p,isSymlink:l});const m=511&this.getExtractedMode(n,p),f=p?t:s.dirname(t),h={recursive:!0};if(p&&(h.mode=m),i("mkdir",{dir:f,...h}),await a.mkdir(f,h),p)return;i("opening read stream",t);const g=await c(this.zipfile.openReadStream.bind(this.zipfile))(e);if(l){const e=await r(g);i("creating symlink",e,t),await a.symlink(e,t)}else await d(g,o(t,{mode:m}))}getExtractedMode(e,t){let n=e;return 0===n&&(t?(this.opts.defaultDirMode&&(n=parseInt(this.opts.defaultDirMode,10)),n||(n=493)):(this.opts.defaultFileMode&&(n=parseInt(this.opts.defaultFileMode,10)),n||(n=420))),n}}e.exports=async function(e,t){if(i("creating target directory",t.dir),!s.isAbsolute(t.dir))throw new Error("Target directory is expected to be absolute");return await a.mkdir(t.dir,{recursive:!0}),t.dir=await a.realpath(t.dir),new m(e,t).extract()}},3070(e,t,n){var i=n(9896),o=n(9023),a=n(2203),r=a.Readable,s=a.Writable,c=a.PassThrough,l=n(1436),p=n(4434).EventEmitter;function u(e,t){t=t||{},p.call(this),this.fd=e,this.pend=new l,this.pend.max=1,this.refCount=0,this.autoClose=!!t.autoClose}function d(e,t){t=t||{},r.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=t.end,this.pos=this.start,this.destroyed=!1}function m(e,t){t=t||{},s.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=null==t.end?1/0:+t.end,this.bytesWritten=0,this.pos=this.start,this.destroyed=!1,this.on("finish",this.destroy.bind(this))}function f(e,t){p.call(this),t=t||{},this.refCount=0,this.buffer=e,this.maxChunkSize=t.maxChunkSize||Number.MAX_SAFE_INTEGER}t.createFromBuffer=function(e,t){return new f(e,t)},t.createFromFd=function(e,t){return new u(e,t)},t.BufferSlicer=f,t.FdSlicer=u,o.inherits(u,p),u.prototype.read=function(e,t,n,o,a){var r=this;r.pend.go(function(s){i.read(r.fd,e,t,n,o,function(e,t,n){s(),a(e,t,n)})})},u.prototype.write=function(e,t,n,o,a){var r=this;r.pend.go(function(s){i.write(r.fd,e,t,n,o,function(e,t,n){s(),a(e,t,n)})})},u.prototype.createReadStream=function(e){return new d(this,e)},u.prototype.createWriteStream=function(e){return new m(this,e)},u.prototype.ref=function(){this.refCount+=1},u.prototype.unref=function(){var e=this;if(e.refCount-=1,!(e.refCount>0)){if(e.refCount<0)throw new Error("invalid unref");e.autoClose&&i.close(e.fd,function(t){t?e.emit("error",t):e.emit("close")})}},o.inherits(d,r),d.prototype._read=function(e){var t=this;if(!t.destroyed){var n=Math.min(t._readableState.highWaterMark,e);if(null!=t.endOffset&&(n=Math.min(n,t.endOffset-t.pos)),n<=0)return t.destroyed=!0,t.push(null),void t.context.unref();t.context.pend.go(function(e){if(t.destroyed)return e();var o=new Buffer(n);i.read(t.context.fd,o,0,n,t.pos,function(n,i){n?t.destroy(n):0===i?(t.destroyed=!0,t.push(null),t.context.unref()):(t.pos+=i,t.push(o.slice(0,i))),e()})})}},d.prototype.destroy=function(e){this.destroyed||(e=e||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",e),this.context.unref())},o.inherits(m,s),m.prototype._write=function(e,t,n){var o=this;if(!o.destroyed){if(o.pos+e.length>o.endOffset){var a=new Error("maximum file length exceeded");return a.code="ETOOBIG",o.destroy(),void n(a)}o.context.pend.go(function(t){if(o.destroyed)return t();i.write(o.context.fd,e,0,e.length,o.pos,function(e,i){e?(o.destroy(),t(),n(e)):(o.bytesWritten+=i,o.pos+=i,o.emit("progress"),t(),n())})})}},m.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())},o.inherits(f,p),f.prototype.read=function(e,t,n,i,o){var a=i+n,r=a-this.buffer.length,s=r>0?r:n;this.buffer.copy(e,t,i,a),setImmediate(function(){o(null,s)})},f.prototype.write=function(e,t,n,i,o){e.copy(this.buffer,i,t,t+n),setImmediate(function(){o(null,n,e)})},f.prototype.createReadStream=function(e){var t=new c(e=e||{});t.destroyed=!1,t.start=e.start||0,t.endOffset=e.end,t.pos=t.endOffset||this.buffer.length;for(var n=this.buffer.slice(t.start,t.pos),i=0;;){var o=i+this.maxChunkSize;if(o>=n.length){i<n.length&&t.write(n.slice(i,n.length));break}t.write(n.slice(i,o)),i=o}return t.end(),t.destroy=function(){t.destroyed=!0},t},f.prototype.createWriteStream=function(e){var t=this,n=new s(e=e||{});return n.start=e.start||0,n.endOffset=null==e.end?this.buffer.length:+e.end,n.bytesWritten=0,n.pos=n.start,n.destroyed=!1,n._write=function(e,i,o){if(!n.destroyed){var a=n.pos+e.length;if(a>n.endOffset){var r=new Error("maximum file length exceeded");return r.code="ETOOBIG",n.destroyed=!0,void o(r)}e.copy(t.buffer,n.pos,0,e.length),n.bytesWritten+=e.length,n.pos=a,n.emit("progress"),o()}},n.destroy=function(){n.destroyed=!0},n},f.prototype.ref=function(){this.refCount+=1},f.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")}},7507(e,t,n){var i;e.exports=function(){if(!i){try{i=n(5753)("follow-redirects")}catch(e){}"function"!=typeof i&&(i=function(){})}i.apply(null,arguments)}},3164(e,t,n){var i,o,a,r=n(7016),s=r.URL,c=n(8611),l=n(5692),p=n(2203).Writable,u=n(2613),d=n(7507);i="undefined"!=typeof process,o="undefined"!=typeof window&&"undefined"!=typeof document,a=P(Error.captureStackTrace),i||!o&&a||console.warn("The follow-redirects package should be excluded from browser builds.");var m=!1;try{u(new s(""))}catch(e){m="ERR_INVALID_URL"===e.code}var f=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],h=["abort","aborted","connect","error","socket","timeout"],g=Object.create(null);h.forEach(function(e){g[e]=function(t,n,i){this._redirectable.emit(e,t,n,i)}});var v=A("ERR_INVALID_URL","Invalid URL",TypeError),y=A("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),b=A("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",y),x=A("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),w=A("ERR_STREAM_WRITE_AFTER_END","write after end"),S=p.prototype.destroy||k;function C(e,t){p.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof y?e:new y({cause:e}))}},this._performRequest()}function _(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach(function(i){var o=i+":",a=n[o]=e[i],r=t[i]=Object.create(a);Object.defineProperties(r,{request:{value:function(e,i,a){return s&&e instanceof s?e=j(e):N(e)?e=j(E(e)):(a=i,i=T(e),e={protocol:o}),P(i)&&(a=i,i=null),(i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i)).nativeProtocols=n,N(i.host)||N(i.hostname)||(i.hostname="::1"),u.equal(i.protocol,o,"protocol mismatch"),d("options",i),new C(i,a)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var i=r.request(e,t,n);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})}),t}function k(){}function E(e){var t;if(m)t=new s(e);else if(!N((t=T(r.parse(e))).protocol))throw new v({input:e});return t}function T(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new v({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new v({input:e.href||e});return e}function j(e,t){var n=t||{};for(var i of f)n[i]=e[i];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function O(e,t){var n;for(var i in t)e.test(i)&&(n=t[i],delete t[i]);return null==n?void 0:String(n).trim()}function A(e,t,n){function i(n){P(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return i.prototype=new(n||Error),Object.defineProperties(i.prototype,{constructor:{value:i,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),i}function I(e,t){for(var n of h)e.removeListener(n,g[n]);e.on("error",k),e.destroy(t)}function N(e){return"string"==typeof e||e instanceof String}function P(e){return"function"==typeof e}C.prototype=Object.create(p.prototype),C.prototype.abort=function(){I(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},C.prototype.destroy=function(e){return I(this._currentRequest,e),S.call(this,e),this},C.prototype.write=function(e,t,n){if(this._ending)throw new w;if(!(N(e)||"object"==typeof(i=e)&&"length"in i))throw new TypeError("data should be a string, Buffer or Uint8Array");var i;P(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new x),this.abort()):n&&n()},C.prototype.end=function(e,t,n){if(P(e)?(n=e,e=t=null):P(t)&&(n=t,t=null),e){var i=this,o=this._currentRequest;this.write(e,t,function(){i._ended=!0,o.end(null,null,n)}),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},C.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},C.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},C.prototype.setTimeout=function(e,t){var n=this;function i(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function o(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit("timeout"),a()},e),i(t)}function a(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",a),n.removeListener("error",a),n.removeListener("response",a),n.removeListener("close",a),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",i),this.on("abort",a),this.on("error",a),this.on("response",a),this.on("close",a),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){C.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(C.prototype,e,{get:function(){return this._currentRequest[e]}})}),C.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},C.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o of(i._redirectable=this,h))i.on(o,g[o]);if(this._currentUrl=/^\//.test(this._options.path)?r.format(this._options):this._options.path,this._isRedirect){var a=0,s=this,c=this._requestBodyBuffers;!function e(t){if(i===s._currentRequest)if(t)s.emit("error",t);else if(a<c.length){var n=c[a++];i.finished||i.write(n.data,n.encoding,e)}else s._ended&&i.end()}()}},C.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,i=e.headers.location;if(!i||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(I(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new b;var o=this._options.beforeRedirect;o&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var a=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],O(/^content-/i,this._options.headers));var c,l,p=O(/^host$/i,this._options.headers),f=E(this._currentUrl),h=p||f.host,g=/^\w+:/.test(i)?this._currentUrl:r.format(Object.assign(f,{host:h})),v=(c=i,l=g,m?new s(c,l):E(r.resolve(l,c)));if(d("redirecting to",v.href),this._isRedirect=!0,j(v,this._options),(v.protocol!==f.protocol&&"https:"!==v.protocol||v.host!==h&&!function(e,t){u(N(e)&&N(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(v.host,h))&&O(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),P(o)){var y={headers:e.headers,statusCode:t},x={url:g,method:a,headers:n};o(this._options,y,x),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=_({http:c,https:l}),e.exports.wrap=_},737(e,t,n){var i=n(801),o=n(9023),a=n(6928),r=n(8611),s=n(5692),c=n(7016).parse,l=n(9896),p=n(2203).Stream,u=n(6982),d=n(6466),m=n(1873),f=n(9605),h=n(9957),g=n(1362);function v(e){if(!(this instanceof v))return new v(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],i.call(this),e=e||{})this[t]=e[t]}o.inherits(v,i),v.LINE_BREAK="\r\n",v.DEFAULT_CONTENT_TYPE="application/octet-stream",v.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var o=i.prototype.append.bind(this);if("number"!=typeof t&&null!=t||(t=String(t)),Array.isArray(t))this._error(new Error("Arrays are not supported."));else{var a=this._multiPartHeader(e,t,n),r=this._multiPartFooter();o(a),o(t),o(r),this._trackLength(a,t,n)}},v.prototype._trackLength=function(e,t,n){var i=0;null!=n.knownLength?i+=Number(n.knownLength):Buffer.isBuffer(t)?i=t.length:"string"==typeof t&&(i=Buffer.byteLength(t)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+v.LINE_BREAK.length,t&&(t.path||t.readable&&h(t,"httpVersion")||t instanceof p)&&(n.knownLength||this._valuesToMeasure.push(t))},v.prototype._lengthRetriever=function(e,t){h(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):l.stat(e.path,function(n,i){if(n)t(n);else{var o=i.size-(e.start?e.start:0);t(null,o)}}):h(e,"httpVersion")?t(null,Number(e.headers["content-length"])):h(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")},v.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var i,o=this._getContentDisposition(t,n),a=this._getContentType(t,n),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(o||[]),"Content-Type":[].concat(a||[])};for(var c in"object"==typeof n.header&&g(s,n.header),s)if(h(s,c)){if(null==(i=s[c]))continue;Array.isArray(i)||(i=[i]),i.length&&(r+=c+": "+i.join("; ")+v.LINE_BREAK)}return"--"+this.getBoundary()+v.LINE_BREAK+r+v.LINE_BREAK},v.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=a.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=a.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&h(e,"httpVersion")&&(n=a.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},v.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=d.lookup(e.name)),!n&&e&&e.path&&(n=d.lookup(e.path)),!n&&e&&e.readable&&h(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=d.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=v.DEFAULT_CONTENT_TYPE),n},v.prototype._multiPartFooter=function(){return function(e){var t=v.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},v.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+v.LINE_BREAK},v.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)h(e,t)&&(n[t.toLowerCase()]=e[t]);return n},v.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},v.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},v.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,i=this._streams.length;n<i;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(v.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},v.prototype._generateBoundary=function(){this._boundary="--------------------------"+u.randomBytes(12).toString("hex")},v.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},v.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},v.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?m.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,i){n?e(n):(i.forEach(function(e){t+=e}),e(null,t))}):process.nextTick(e.bind(this,null,t))},v.prototype.submit=function(e,t){var n,i,o={method:"post"};return"string"==typeof e?(e=c(e),i=g({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(i=g(e,o)).port||(i.port="https:"===i.protocol?443:80),i.headers=this.getHeaders(e.headers),n="https:"===i.protocol?s.request(i):r.request(i),this.getLength(function(e,i){if(e&&"Unknown stream"!==e)this._error(e);else if(i&&n.setHeader("Content-Length",i),this.pipe(n),t){var o,a=function(e,i){return n.removeListener("error",a),n.removeListener("response",o),t.call(this,e,i)};o=a.bind(this,null),n.on("error",a),n.on("response",o)}}.bind(this)),n},v.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},v.prototype.toString=function(){return"[object FormData]"},f(v.prototype,"FormData"),e.exports=v},1362(e){e.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}},8011(e,t,n){e.exports=n(7286)},6466(e,t,n){var i,o,a,r=n(8011),s=n(6928).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function p(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),n=t&&r[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!l.test(t[1]))&&"UTF-8"}t.charset=p,t.charsets={lookup:p},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var i=t.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),i=n&&t.extensions[n[1].toLowerCase()];return!(!i||!i.length)&&i[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=s("x."+e).toLowerCase().substr(1);return n&&t.types[n]||!1},t.types=Object.create(null),i=t.extensions,o=t.types,a=["nginx","apache",void 0,"iana"],Object.keys(r).forEach(function(e){var t=r[e],n=t.extensions;if(n&&n.length){i[e]=n;for(var s=0;s<n.length;s++){var c=n[s];if(o[c]){var l=a.indexOf(r[o[c]].source),p=a.indexOf(t.source);if("application/octet-stream"!==o[c]&&(l>p||l===p&&"application/"===o[c].substr(0,12)))continue}o[c]=e}}})},3876(e,t,n){const i=n(3735),o=n(6928),a=n(3798).mkdirsSync,r=n(7211).utimesMillisSync,s=n(6462);function c(e,t,n,a){const r=(a.dereference?i.statSync:i.lstatSync)(t);if(r.isDirectory())return function(e,t,n,o,a){return t?u(n,o,a):function(e,t,n,o){return i.mkdirSync(n),u(t,n,o),p(n,e)}(e.mode,n,o,a)}(r,e,t,n,a);if(r.isFile()||r.isCharacterDevice()||r.isBlockDevice())return function(e,t,n,o,a){return t?function(e,t,n,o){if(o.overwrite)return i.unlinkSync(n),l(e,t,n,o);if(o.errorOnExist)throw new Error(`'${n}' already exists`)}(e,n,o,a):l(e,n,o,a)}(r,e,t,n,a);if(r.isSymbolicLink())return function(e,t,n,a){let r=i.readlinkSync(t);if(a.dereference&&(r=o.resolve(process.cwd(),r)),e){let e;try{e=i.readlinkSync(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return i.symlinkSync(r,n);throw e}if(a.dereference&&(e=o.resolve(process.cwd(),e)),r!==e){if(s.isSrcSubdir(r,e))throw new Error(`Cannot copy '${r}' to a subdirectory of itself, '${e}'.`);if(s.isSrcSubdir(e,r))throw new Error(`Cannot overwrite '${e}' with '${r}'.`)}return function(e,t){return i.unlinkSync(t),i.symlinkSync(e,t)}(r,n)}return i.symlinkSync(r,n)}(e,t,n,a);if(r.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(r.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function l(e,t,n,o){return i.copyFileSync(t,n),o.preserveTimestamps&&function(e,t,n){(function(e){return!(128&e)})(e)&&function(e,t){p(e,128|t)}(n,e),function(e,t){const n=i.statSync(e);r(t,n.atime,n.mtime)}(t,n)}(e.mode,t,n),p(n,e.mode)}function p(e,t){return i.chmodSync(e,t)}function u(e,t,n){const o=i.opendirSync(e);try{let i;for(;null!==(i=o.readSync());)d(i.name,e,t,n)}finally{o.closeSync()}}function d(e,t,n,i){const a=o.join(t,e),r=o.join(n,e);if(i.filter&&!i.filter(a,r))return;const{destStat:l}=s.checkPathsSync(a,r,"copy",i);return c(l,a,r,i)}e.exports=function(e,t,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:r,destStat:l}=s.checkPathsSync(e,t,"copy",n);if(s.checkParentPathsSync(e,r,t,"copy"),n.filter&&!n.filter(e,t))return;const p=o.dirname(t);return i.existsSync(p)||a(p),c(l,e,t,n)}},4994(e,t,n){const i=n(8737),o=n(6928),{mkdirs:a}=n(3798),{pathExists:r}=n(9288),{utimesMillis:s}=n(7211),c=n(6462),{asyncIteratorConcurrentProcess:l}=n(6322);async function p(e,t,n){return!n.filter||n.filter(e,t)}async function u(e,t,n,a){const r=a.dereference?i.stat:i.lstat,s=await r(t);if(s.isDirectory())return async function(e,t,n,a,r){t||await i.mkdir(a),await l(await i.opendir(n),async e=>{const t=o.join(n,e.name),i=o.join(a,e.name);if(await p(t,i,r)){const{destStat:e}=await c.checkPaths(t,i,"copy",r);await u(e,t,i,r)}}),t||await i.chmod(a,e.mode)}(s,e,t,n,a);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return async function(e,t,n,o,a){if(!t)return d(e,n,o,a);if(a.overwrite)return await i.unlink(o),d(e,n,o,a);if(a.errorOnExist)throw new Error(`'${o}' already exists`)}(s,e,t,n,a);if(s.isSymbolicLink())return async function(e,t,n,a){let r=await i.readlink(t);if(a.dereference&&(r=o.resolve(process.cwd(),r)),!e)return i.symlink(r,n);let s=null;try{s=await i.readlink(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return i.symlink(r,n);throw e}if(a.dereference&&(s=o.resolve(process.cwd(),s)),r!==s){if(c.isSrcSubdir(r,s))throw new Error(`Cannot copy '${r}' to a subdirectory of itself, '${s}'.`);if(c.isSrcSubdir(s,r))throw new Error(`Cannot overwrite '${s}' with '${r}'.`)}return await i.unlink(n),i.symlink(r,n)}(e,t,n,a);if(s.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(s.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}async function d(e,t,n,o){if(await i.copyFile(t,n),o.preserveTimestamps){128&e.mode||await function(e,t){return i.chmod(e,128|t)}(n,e.mode);const o=await i.stat(t);await s(n,o.atime,o.mtime)}return i.chmod(n,e.mode)}e.exports=async function(e,t,n={}){"function"==typeof n&&(n={filter:n}),n.clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001");const{srcStat:i,destStat:s}=await c.checkPaths(e,t,"copy",n);if(await c.checkParentPaths(e,i,t,"copy"),!await p(e,t,n))return;const l=o.dirname(t);await r(l)||await a(l),await u(s,e,t,n)}},4423(e,t,n){const i=n(1236).fromPromise;e.exports={copy:i(n(4994)),copySync:n(3876)}},2591(e,t,n){const i=n(1236).fromPromise,o=n(8737),a=n(6928),r=n(3798),s=n(5422),c=i(async function(e){let t;try{t=await o.readdir(e)}catch{return r.mkdirs(e)}return Promise.all(t.map(t=>s.remove(a.join(e,t))))});function l(e){let t;try{t=o.readdirSync(e)}catch{return r.mkdirsSync(e)}t.forEach(t=>{t=a.join(e,t),s.removeSync(t)})}e.exports={emptyDirSync:l,emptydirSync:l,emptyDir:c,emptydir:c}},9616(e,t,n){const i=n(1236).fromPromise,o=n(6928),a=n(8737),r=n(3798);e.exports={createFile:i(async function(e){let t;try{t=await a.stat(e)}catch{}if(t&&t.isFile())return;const n=o.dirname(e);let i=null;try{i=await a.stat(n)}catch(t){if("ENOENT"===t.code)return await r.mkdirs(n),void await a.writeFile(e,"");throw t}i.isDirectory()?await a.writeFile(e,""):await a.readdir(n)}),createFileSync:function(e){let t;try{t=a.statSync(e)}catch{}if(t&&t.isFile())return;const n=o.dirname(e);try{a.statSync(n).isDirectory()||a.readdirSync(n)}catch(e){if(!e||"ENOENT"!==e.code)throw e;r.mkdirsSync(n)}a.writeFileSync(e,"")}}},6288(e,t,n){const{createFile:i,createFileSync:o}=n(9616),{createLink:a,createLinkSync:r}=n(1522),{createSymlink:s,createSymlinkSync:c}=n(5291);e.exports={createFile:i,createFileSync:o,ensureFile:i,ensureFileSync:o,createLink:a,createLinkSync:r,ensureLink:a,ensureLinkSync:r,createSymlink:s,createSymlinkSync:c,ensureSymlink:s,ensureSymlinkSync:c}},1522(e,t,n){const i=n(1236).fromPromise,o=n(6928),a=n(8737),r=n(3798),{pathExists:s}=n(9288),{areIdentical:c}=n(6462);e.exports={createLink:i(async function(e,t){let n,i;try{n=await a.lstat(t)}catch{}try{i=await a.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}if(n&&c(i,n))return;const l=o.dirname(t);await s(l)||await r.mkdirs(l),await a.link(e,t)}),createLinkSync:function(e,t){let n;try{n=a.lstatSync(t)}catch{}try{const t=a.lstatSync(e);if(n&&c(t,n))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const i=o.dirname(t);return a.existsSync(i)||r.mkdirsSync(i),a.linkSync(e,t)}}},3838(e,t,n){const i=n(6928),o=n(8737),{pathExists:a}=n(9288),r=n(1236).fromPromise;e.exports={symlinkPaths:r(async function(e,t){if(i.isAbsolute(e)){try{await o.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:e}}const n=i.dirname(t),r=i.join(n,e);if(await a(r))return{toCwd:r,toDst:e};try{await o.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:i.relative(n,e)}}),symlinkPathsSync:function(e,t){if(i.isAbsolute(e)){if(!o.existsSync(e))throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}const n=i.dirname(t),a=i.join(n,e);if(o.existsSync(a))return{toCwd:a,toDst:e};if(!o.existsSync(e))throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:i.relative(n,e)}}}},7064(e,t,n){const i=n(8737),o=n(1236).fromPromise;e.exports={symlinkType:o(async function(e,t){if(t)return t;let n;try{n=await i.lstat(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}),symlinkTypeSync:function(e,t){if(t)return t;let n;try{n=i.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}}},5291(e,t,n){const i=n(1236).fromPromise,o=n(6928),a=n(8737),{mkdirs:r,mkdirsSync:s}=n(3798),{symlinkPaths:c,symlinkPathsSync:l}=n(3838),{symlinkType:p,symlinkTypeSync:u}=n(7064),{pathExists:d}=n(9288),{areIdentical:m}=n(6462);e.exports={createSymlink:i(async function(e,t,n){let i;try{i=await a.lstat(t)}catch{}if(i&&i.isSymbolicLink()){let n;if(o.isAbsolute(e))n=await a.stat(e);else{const i=o.dirname(t),r=o.join(i,e);try{n=await a.stat(r)}catch{n=await a.stat(e)}}const i=await a.stat(t);if(m(n,i))return}const s=await c(e,t);e=s.toDst;const l=await p(s.toCwd,n),u=o.dirname(t);return await d(u)||await r(u),a.symlink(e,t,l)}),createSymlinkSync:function(e,t,n){let i;try{i=a.lstatSync(t)}catch{}if(i&&i.isSymbolicLink()){let n;if(o.isAbsolute(e))n=a.statSync(e);else{const i=o.dirname(t),r=o.join(i,e);try{n=a.statSync(r)}catch{n=a.statSync(e)}}const i=a.statSync(t);if(m(n,i))return}const r=l(e,t);e=r.toDst,n=u(r.toCwd,n);const c=o.dirname(t);return a.existsSync(c)||s(c),a.symlinkSync(e,t,n)}}},8737(e,t,n){const i=n(1236).fromCallback,o=n(3735),a=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter(e=>"function"==typeof o[e]);Object.assign(t,o),a.forEach(e=>{t[e]=i(o[e])}),t.exists=function(e,t){return"function"==typeof t?o.exists(e,t):new Promise(t=>o.exists(e,t))},t.read=function(e,t,n,i,a,r){return"function"==typeof r?o.read(e,t,n,i,a,r):new Promise((r,s)=>{o.read(e,t,n,i,a,(e,t,n)=>{if(e)return s(e);r({bytesRead:t,buffer:n})})})},t.write=function(e,t,...n){return"function"==typeof n[n.length-1]?o.write(e,t,...n):new Promise((i,a)=>{o.write(e,t,...n,(e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffer:n})})})},t.readv=function(e,t,...n){return"function"==typeof n[n.length-1]?o.readv(e,t,...n):new Promise((i,a)=>{o.readv(e,t,...n,(e,t,n)=>{if(e)return a(e);i({bytesRead:t,buffers:n})})})},t.writev=function(e,t,...n){return"function"==typeof n[n.length-1]?o.writev(e,t,...n):new Promise((i,a)=>{o.writev(e,t,...n,(e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffers:n})})})},"function"==typeof o.realpath.native?t.realpath.native=i(o.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")},1605(e,t,n){e.exports={...n(8737),...n(4423),...n(2591),...n(6288),...n(3376),...n(3798),...n(2455),...n(7024),...n(9288),...n(5422)}},3376(e,t,n){const i=n(1236).fromPromise,o=n(2934);o.outputJson=i(n(6426)),o.outputJsonSync=n(2188),o.outputJSON=o.outputJson,o.outputJSONSync=o.outputJsonSync,o.writeJSON=o.writeJson,o.writeJSONSync=o.writeJsonSync,o.readJSON=o.readJson,o.readJSONSync=o.readJsonSync,e.exports=o},2934(e,t,n){const i=n(2909);e.exports={readJson:i.readFile,readJsonSync:i.readFileSync,writeJson:i.writeFile,writeJsonSync:i.writeFileSync}},2188(e,t,n){const{stringify:i}=n(1144),{outputFileSync:o}=n(7024);e.exports=function(e,t,n){const a=i(t,n);o(e,a,n)}},6426(e,t,n){const{stringify:i}=n(1144),{outputFile:o}=n(7024);e.exports=async function(e,t,n={}){const a=i(t,n);await o(e,a,n)}},3798(e,t,n){const i=n(1236).fromPromise,{makeDir:o,makeDirSync:a}=n(8916),r=i(o);e.exports={mkdirs:r,mkdirsSync:a,mkdirp:r,mkdirpSync:a,ensureDir:r,ensureDirSync:a}},8916(e,t,n){const i=n(8737),{checkPath:o}=n(7111),a=e=>"number"==typeof e?e:{mode:511,...e}.mode;e.exports.makeDir=async(e,t)=>(o(e),i.mkdir(e,{mode:a(t),recursive:!0})),e.exports.makeDirSync=(e,t)=>(o(e),i.mkdirSync(e,{mode:a(t),recursive:!0}))},7111(e,t,n){const i=n(6928);e.exports.checkPath=function(e){if("win32"===process.platform&&/[<>:"|?*]/.test(e.replace(i.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}},2455(e,t,n){const i=n(1236).fromPromise;e.exports={move:i(n(3314)),moveSync:n(6244)}},6244(e,t,n){const i=n(3735),o=n(6928),a=n(4423).copySync,r=n(5422).removeSync,s=n(3798).mkdirpSync,c=n(6462);function l(e,t,n){try{i.renameSync(e,t)}catch(i){if("EXDEV"!==i.code)throw i;return function(e,t,n){return a(e,t,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),r(e)}(e,t,n)}}e.exports=function(e,t,n){const a=(n=n||{}).overwrite||n.clobber||!1,{srcStat:p,isChangingCase:u=!1}=c.checkPathsSync(e,t,"move",n);return c.checkParentPathsSync(e,p,t,"move"),function(e){const t=o.dirname(e);return o.parse(t).root===t}(t)||s(o.dirname(t)),function(e,t,n,o){if(o)return l(e,t,n);if(n)return r(t),l(e,t,n);if(i.existsSync(t))throw new Error("dest already exists.");return l(e,t,n)}(e,t,a,u)}},3314(e,t,n){const i=n(8737),o=n(6928),{copy:a}=n(4423),{remove:r}=n(5422),{mkdirp:s}=n(3798),{pathExists:c}=n(9288),l=n(6462);e.exports=async function(e,t,n={}){const p=n.overwrite||n.clobber||!1,{srcStat:u,isChangingCase:d=!1}=await l.checkPaths(e,t,"move",n);await l.checkParentPaths(e,u,t,"move");const m=o.dirname(t);return o.parse(m).root!==m&&await s(m),async function(e,t,n,o){if(!o)if(n)await r(t);else if(await c(t))throw new Error("dest already exists.");try{await i.rename(e,t)}catch(i){if("EXDEV"!==i.code)throw i;await async function(e,t,n){const i={overwrite:n,errorOnExist:!0,preserveTimestamps:!0};return await a(e,t,i),r(e)}(e,t,n)}}(e,t,p,d)}},7024(e,t,n){const i=n(1236).fromPromise,o=n(8737),a=n(6928),r=n(3798),s=n(9288).pathExists;e.exports={outputFile:i(async function(e,t,n="utf-8"){const i=a.dirname(e);return await s(i)||await r.mkdirs(i),o.writeFile(e,t,n)}),outputFileSync:function(e,...t){const n=a.dirname(e);o.existsSync(n)||r.mkdirsSync(n),o.writeFileSync(e,...t)}}},9288(e,t,n){const i=n(1236).fromPromise,o=n(8737);e.exports={pathExists:i(function(e){return o.access(e).then(()=>!0).catch(()=>!1)}),pathExistsSync:o.existsSync}},5422(e,t,n){const i=n(3735),o=n(1236).fromCallback;e.exports={remove:o(function(e,t){i.rm(e,{recursive:!0,force:!0},t)}),removeSync:function(e){i.rmSync(e,{recursive:!0,force:!0})}}},6322(e){e.exports={asyncIteratorConcurrentProcess:async function(e,t){const n=[];for await(const i of e)n.push(t(i).then(()=>null,e=>e??new Error("unknown error")));await Promise.all(n.map(e=>e.then(e=>{if(null!==e)throw e})))}}},6462(e,t,n){const i=n(8737),o=n(6928),a=n(1236).fromPromise;function r(e,t){return void 0!==t.ino&&void 0!==t.dev&&t.ino===e.ino&&t.dev===e.dev}function s(e,t){const n=o.resolve(e).split(o.sep).filter(e=>e),i=o.resolve(t).split(o.sep).filter(e=>e);return n.every((e,t)=>i[t]===e)}function c(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:a(async function(e,t,n,a){const{srcStat:l,destStat:p}=await function(e,t,n){const o=n.dereference?e=>i.stat(e,{bigint:!0}):e=>i.lstat(e,{bigint:!0});return Promise.all([o(e),o(t).catch(e=>{if("ENOENT"===e.code)return null;throw e})]).then(([e,t])=>({srcStat:e,destStat:t}))}(e,t,a);if(p){if(r(l,p)){const i=o.basename(e),a=o.basename(t);if("move"===n&&i!==a&&i.toLowerCase()===a.toLowerCase())return{srcStat:l,destStat:p,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(l.isDirectory()&&!p.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!l.isDirectory()&&p.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(l.isDirectory()&&s(e,t))throw new Error(c(e,t,n));return{srcStat:l,destStat:p}}),checkPathsSync:function(e,t,n,a){const{srcStat:l,destStat:p}=function(e,t,n){let o;const a=n.dereference?e=>i.statSync(e,{bigint:!0}):e=>i.lstatSync(e,{bigint:!0}),r=a(e);try{o=a(t)}catch(e){if("ENOENT"===e.code)return{srcStat:r,destStat:null};throw e}return{srcStat:r,destStat:o}}(e,t,a);if(p){if(r(l,p)){const i=o.basename(e),a=o.basename(t);if("move"===n&&i!==a&&i.toLowerCase()===a.toLowerCase())return{srcStat:l,destStat:p,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(l.isDirectory()&&!p.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!l.isDirectory()&&p.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(l.isDirectory()&&s(e,t))throw new Error(c(e,t,n));return{srcStat:l,destStat:p}},checkParentPaths:a(async function e(t,n,a,s){const l=o.resolve(o.dirname(t)),p=o.resolve(o.dirname(a));if(p===l||p===o.parse(p).root)return;let u;try{u=await i.stat(p,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(r(n,u))throw new Error(c(t,a,s));return e(t,n,p,s)}),checkParentPathsSync:function e(t,n,a,s){const l=o.resolve(o.dirname(t)),p=o.resolve(o.dirname(a));if(p===l||p===o.parse(p).root)return;let u;try{u=i.statSync(p,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(r(n,u))throw new Error(c(t,a,s));return e(t,n,p,s)},isSrcSubdir:s,areIdentical:r}},7211(e,t,n){const i=n(8737),o=n(1236).fromPromise;e.exports={utimesMillis:o(async function(e,t,n){const o=await i.open(e,"r+");let a=null;try{await i.futimes(o,t,n)}finally{try{await i.close(o)}catch(e){a=e}}if(a)throw a}),utimesMillisSync:function(e,t,n){const o=i.openSync(e,"r+");return i.futimesSync(o,t,n),i.closeSync(o)}}},9353(e){var t=Object.prototype.toString,n=Math.max,i=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var a,r=function(e){for(var t=[],n=1,i=0;n<e.length;n+=1,i+=1)t[i]=e[n];return t}(arguments),s=n(0,o.length-r.length),c=[],l=0;l<s;l++)c[l]="$"+l;if(a=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=o.apply(this,i(r,arguments));return Object(t)===t?t:this}return o.apply(e,i(r,arguments))}),o.prototype){var p=function(){};p.prototype=o.prototype,a.prototype=new p,p.prototype=null}return a}},6743(e,t,n){var i=n(9353);e.exports=Function.prototype.bind||i},4233(e){const t=function*(){}.constructor;e.exports=()=>t},453(e,t,n){var i,o=n(9612),a=n(9383),r=n(1237),s=n(9290),c=n(9538),l=n(8068),p=n(9675),u=n(5345),d=n(1514),m=n(8968),f=n(6188),h=n(8002),g=n(5880),v=n(414),y=n(3093),b=n(5795),x=n(655),w=function(){throw new p},S=b?function(){try{return w}catch(e){try{return b(arguments,"callee").get}catch(e){return w}}}():w,C=n(4039)(),_=n(3628),k=n(1064),E=n(8648),T=n(1002),j=n(76),O={},A="undefined"!=typeof Uint8Array&&_?_(Uint8Array):i,I={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":C&&_?_([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":r,"%Float16Array%":"undefined"==typeof Float16Array?i:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":Function,"%GeneratorFunction%":O,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&_?_(_([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&C&&_?_((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&C&&_?_((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&_?_(""[Symbol.iterator]()):i,"%Symbol%":C?Symbol:i,"%SyntaxError%":l,"%ThrowTypeError%":S,"%TypedArray%":A,"%TypeError%":p,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet,"%Function.prototype.call%":j,"%Function.prototype.apply%":T,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":k,"%Math.abs%":d,"%Math.floor%":m,"%Math.max%":f,"%Math.min%":h,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":y,"%Reflect.getPrototypeOf%":E};if(_)try{null.error}catch(e){var N=_(_(e));I["%Error.prototype%"]=N}var P=n(3870),R=n(4233),L=n(1722),$=function e(t){var n;if("%AsyncFunction%"===t)n=P()||void 0;else if("%GeneratorFunction%"===t)n=R()||void 0;else if("%AsyncGeneratorFunction%"===t)n=L()||void 0;else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&_&&(n=_(o.prototype))}return I[t]=n,n},D={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},F=n(6743),M=n(9957),B=F.call(j,Array.prototype.concat),q=F.call(T,Array.prototype.splice),z=F.call(j,String.prototype.replace),U=F.call(j,String.prototype.slice),W=F.call(j,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,G=function(e,t){var n,i=e;if(M(D,i)&&(i="%"+(n=D[i])[0]+"%"),M(I,i)){var o=I[i];if(o===O&&(o=$(i)),void 0===o&&!t)throw new p("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new p('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=U(e,0,1),n=U(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var i=[];return z(e,V,function(e,t,n,o){i[i.length]=n?z(o,H,"$1"):t||e}),i}(e),i=n.length>0?n[0]:"",o=G("%"+i+"%",t),a=o.name,r=o.value,s=!1,c=o.alias;c&&(i=c[0],q(n,B([0,1],c)));for(var u=1,d=!0;u<n.length;u+=1){var m=n[u],f=U(m,0,1),h=U(m,-1);if(('"'===f||"'"===f||"`"===f||'"'===h||"'"===h||"`"===h)&&f!==h)throw new l("property names with quotes must have matching quotes");if("constructor"!==m&&d||(s=!0),M(I,a="%"+(i+="."+m)+"%"))r=I[a];else if(null!=r){if(!(m in r)){if(!t)throw new p("base intrinsic for "+e+" exists, but the property is not available.");return}if(b&&u+1>=n.length){var g=b(r,m);r=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:r[m]}else d=M(r,m),r=r[m];d&&!s&&(I[a]=r)}}return r}},1064(e,t,n){var i=n(9612);e.exports=i.getPrototypeOf||null},8648(e){e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},3628(e,t,n){var i=n(8648),o=n(1064),a=n(7176);e.exports=i?function(e){return i(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:a?function(e){return a(e)}:null},5635(e,t,n){const{PassThrough:i}=n(2203);e.exports=e=>{e={...e};const{array:t}=e;let{encoding:n}=e;const o="buffer"===n;let a=!1;t?a=!(n||o):n=n||"utf8",o&&(n=null);const r=new i({objectMode:a});n&&r.setEncoding(n);let s=0;const c=[];return r.on("data",e=>{c.push(e),a?s=c.length:s+=e.length}),r.getBufferedValue=()=>t?c:o?Buffer.concat(c,s):c.join(""),r.getBufferedLength=()=>s,r}},4594(e,t,n){const{constants:i}=n(181),o=n(815),a=n(5635);class r extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function s(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t={maxBuffer:1/0,...t};const{maxBuffer:n}=t;let s;return await new Promise((c,l)=>{const p=e=>{e&&s.getBufferedLength()<=i.MAX_LENGTH&&(e.bufferedData=s.getBufferedValue()),l(e)};s=o(e,a(t),e=>{e?p(e):c()}),s.on("data",()=>{s.getBufferedLength()>n&&p(new r)})}),s.getBufferedValue()}e.exports=s,e.exports.default=s,e.exports.buffer=(e,t)=>s(e,{...t,encoding:"buffer"}),e.exports.array=(e,t)=>s(e,{...t,array:!0}),e.exports.MaxBufferError=r},6549(e){e.exports=Object.getOwnPropertyDescriptor},5795(e,t,n){var i=n(6549);if(i)try{i([],"length")}catch(e){i=null}e.exports=i},1283(e){e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var n={__proto__:t(e)};else n=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}),n};var t=Object.getPrototypeOf||function(e){return e.__proto__}},3735(e,t,n){var i,o,a=n(9896),r=n(9106),s=n(1995),c=n(1283),l=n(9023);function p(e,t){Object.defineProperty(e,i,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(i=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(i="___graceful-fs.queue",o="___graceful-fs.previous");var u,d=function(){};if(l.debuglog?d=l.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!a[i]){var m=global[i]||[];p(a,m),a.close=function(e){function t(t,n){return e.call(a,t,function(e){e||g(),"function"==typeof n&&n.apply(this,arguments)})}return Object.defineProperty(t,o,{value:e}),t}(a.close),a.closeSync=function(e){function t(t){e.apply(a,arguments),g()}return Object.defineProperty(t,o,{value:e}),t}(a.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){d(a[i]),n(2613).equal(a[i].length,0)})}function f(e){r(e),e.gracefulify=f,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,i){return"function"==typeof n&&(i=n,n=null),function e(n,i,o,a){return t(n,i,function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof o&&o.apply(this,arguments):h([e,[n,i,o],t,a||Date.now(),Date.now()])})}(e,n,i)};var n=e.writeFile;e.writeFile=function(e,t,i,o){return"function"==typeof i&&(o=i,i=null),function e(t,i,o,a,r){return n(t,i,o,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof a&&a.apply(this,arguments):h([e,[t,i,o,a],n,r||Date.now(),Date.now()])})}(e,t,i,o)};var i=e.appendFile;i&&(e.appendFile=function(e,t,n,o){return"function"==typeof n&&(o=n,n=null),function e(t,n,o,a,r){return i(t,n,o,function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof a&&a.apply(this,arguments):h([e,[t,n,o,a],i,r||Date.now(),Date.now()])})}(e,t,n,o)});var o=e.copyFile;o&&(e.copyFile=function(e,t,n,i){return"function"==typeof n&&(i=n,n=0),function e(t,n,i,a,r){return o(t,n,i,function(o){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof a&&a.apply(this,arguments):h([e,[t,n,i,a],o,r||Date.now(),Date.now()])})}(e,t,n,i)});var a=e.readdir;e.readdir=function(e,t,n){"function"==typeof t&&(n=t,t=null);var i=c.test(process.version)?function(e,t,n,i){return a(e,o(e,t,n,i))}:function(e,t,n,i){return a(e,t,o(e,t,n,i))};return i(e,t,n);function o(e,t,n,o){return function(a,r){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?(r&&r.sort&&r.sort(),"function"==typeof n&&n.call(this,a,r)):h([i,[e,t,n],a,o||Date.now(),Date.now()])}}};var c=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var l=s(e);g=l.ReadStream,v=l.WriteStream}var p=e.ReadStream;p&&(g.prototype=Object.create(p.prototype),g.prototype.open=function(){var e=this;b(e.path,e.flags,e.mode,function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())})});var u=e.WriteStream;u&&(v.prototype=Object.create(u.prototype),v.prototype.open=function(){var e=this;b(e.path,e.flags,e.mode,function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))})}),Object.defineProperty(e,"ReadStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return v},set:function(e){v=e},enumerable:!0,configurable:!0});var d=g;Object.defineProperty(e,"FileReadStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var m=v;function g(e,t){return this instanceof g?(p.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function v(e,t){return this instanceof v?(u.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var y=e.open;function b(e,t,n,i){return"function"==typeof n&&(i=n,n=null),function e(t,n,i,o,a){return y(t,n,i,function(r,s){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof o&&o.apply(this,arguments):h([e,[t,n,i,o],r,a||Date.now(),Date.now()])})}(e,t,n,i)}return e.open=b,e}function h(e){d("ENQUEUE",e[0].name,e[1]),a[i].push(e),v()}function g(){for(var e=Date.now(),t=0;t<a[i].length;++t)a[i][t].length>2&&(a[i][t][3]=e,a[i][t][4]=e);v()}function v(){if(clearTimeout(u),u=void 0,0!==a[i].length){var e=a[i].shift(),t=e[0],n=e[1],o=e[2],r=e[3],s=e[4];if(void 0===r)d("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-r>=6e4){d("TIMEOUT",t.name,n);var c=n.pop();"function"==typeof c&&c.call(null,o)}else{var l=Date.now()-s,p=Math.max(s-r,1);l>=Math.min(1.2*p,100)?(d("RETRY",t.name,n),t.apply(null,n.concat([r]))):a[i].push(e)}void 0===u&&(u=setTimeout(v,0))}}global[i]||p(global,a[i]),e.exports=f(c(a)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!a.__patched&&(e.exports=f(a),a.__patched=!0)},1995(e,t,n){var i=n(2203).Stream;e.exports=function(e){return{ReadStream:function t(n,o){if(!(this instanceof t))return new t(n,o);i.call(this);var a=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,o=o||{};for(var r=Object.keys(o),s=0,c=r.length;s<c;s++){var l=r[s];this[l]=o[l]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}null===this.fd?e.open(this.path,this.flags,this.mode,function(e,t){if(e)return a.emit("error",e),void(a.readable=!1);a.fd=t,a.emit("open",t),a._read()}):process.nextTick(function(){a._read()})},WriteStream:function t(n,o){if(!(this instanceof t))return new t(n,o);i.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var a=Object.keys(o),r=0,s=a.length;r<s;r++){var c=a[r];this[c]=o[c]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},9106(e,t,n){var i=n(9140),o=process.cwd,a=null,r=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return a||(a=o.call(process)),a};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var s=process.chdir;process.chdir=function(e){a=null,s.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s)}e.exports=function(e){function t(t){return t?function(n,i,o){return t.call(e,n,i,function(e){l(e)&&(e=null),o&&o.apply(this,arguments)})}:t}function n(t){return t?function(n,i){try{return t.call(e,n,i)}catch(e){if(!l(e))throw e}}:t}function o(t){return t?function(n,i,o,a){return t.call(e,n,i,o,function(e){l(e)&&(e=null),a&&a.apply(this,arguments)})}:t}function a(t){return t?function(n,i,o){try{return t.call(e,n,i,o)}catch(e){if(!l(e))throw e}}:t}function s(t){return t?function(n,i,o){function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),o&&o.apply(this,arguments)}return"function"==typeof i&&(o=i,i=null),i?t.call(e,n,i,a):t.call(e,n,a)}:t}function c(t){return t?function(n,i){var o=i?t.call(e,n,i):t.call(e,n);return o&&(o.uid<0&&(o.uid+=4294967296),o.gid<0&&(o.gid+=4294967296)),o}:t}function l(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var p;i.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,n,o){e.open(t,i.O_WRONLY|i.O_SYMLINK,n,function(t,i){t?o&&o(t):e.fchmod(i,n,function(t){e.close(i,function(e){o&&o(t||e)})})})},e.lchmodSync=function(t,n){var o,a=e.openSync(t,i.O_WRONLY|i.O_SYMLINK,n),r=!0;try{o=e.fchmodSync(a,n),r=!1}finally{if(r)try{e.closeSync(a)}catch(e){}else e.closeSync(a)}return o}}(e),e.lutimes||function(e){i.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,n,o,a){e.open(t,i.O_SYMLINK,function(t,i){t?a&&a(t):e.futimes(i,n,o,function(t){e.close(i,function(e){a&&a(t||e)})})})},e.lutimesSync=function(t,n,o){var a,r=e.openSync(t,i.O_SYMLINK),s=!0;try{a=e.futimesSync(r,n,o),s=!1}finally{if(s)try{e.closeSync(r)}catch(e){}else e.closeSync(r)}return a}):e.futimes&&(e.lutimes=function(e,t,n,i){i&&process.nextTick(i)},e.lutimesSync=function(){})}(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=n(e.chmodSync),e.fchmodSync=n(e.fchmodSync),e.lchmodSync=n(e.lchmodSync),e.stat=s(e.stat),e.fstat=s(e.fstat),e.lstat=s(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,n,i){i&&process.nextTick(i)},e.lchownSync=function(){}),"win32"===r&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function n(n,i,o){var a=Date.now(),r=0;t(n,i,function s(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&Date.now()-a<6e4)return setTimeout(function(){e.stat(i,function(e,a){e&&"ENOENT"===e.code?t(n,i,s):o(c)})},r),void(r<100&&(r+=10));o&&o(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.rename)),e.read="function"!=typeof e.read?e.read:function(t){function n(n,i,o,a,r,s){var c;if(s&&"function"==typeof s){var l=0;c=function(p,u,d){if(p&&"EAGAIN"===p.code&&l<10)return l++,t.call(e,n,i,o,a,r,c);s.apply(this,arguments)}}return t.call(e,n,i,o,a,r,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(p=e.readSync,function(t,n,i,o,a){for(var r=0;;)try{return p.call(e,t,n,i,o,a)}catch(e){if("EAGAIN"===e.code&&r<10){r++;continue}throw e}})}},5884(e){e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(n+e),o=t.indexOf("--");return-1!==i&&(-1===o||i<o)}},4039(e,t,n){var i="undefined"!=typeof Symbol&&Symbol,o=n(1333);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&o()}},1333(e){e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var i in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},9092(e,t,n){var i=n(1333);e.exports=function(){return i()&&!!Symbol.toStringTag}},9957(e,t,n){var i=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=n(6743);e.exports=a.call(i,o)},2909(e,t,n){let i;try{i=n(3735)}catch(e){i=n(9896)}const o=n(1236),{stringify:a,stripBom:r}=n(1144),s=o.fromPromise(async function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||i,a=!("throws"in t)||t.throws;let s,c=await o.fromCallback(n.readFile)(e,t);c=r(c);try{s=JSON.parse(c,t?t.reviver:null)}catch(t){if(a)throw t.message=`${e}: ${t.message}`,t;return null}return s}),c=o.fromPromise(async function(e,t,n={}){const r=n.fs||i,s=a(t,n);await o.fromCallback(r.writeFile)(e,s,n)});e.exports={readFile:s,readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||i,o=!("throws"in t)||t.throws;try{let i=n.readFileSync(e,t);return i=r(i),JSON.parse(i,t.reviver)}catch(t){if(o)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:c,writeFileSync:function(e,t,n={}){const o=n.fs||i,r=a(t,n);return o.writeFileSync(e,r,n)}}},1144(e){e.exports={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:i=null,spaces:o}={}){const a=n?t:"";return JSON.stringify(e,i,o).replace(/\n/g,t)+a},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},1514(e){e.exports=Math.abs},8968(e){e.exports=Math.floor},4459(e){e.exports=Number.isNaN||function(e){return e!=e}},6188(e){e.exports=Math.max},8002(e){e.exports=Math.min},5880(e){e.exports=Math.pow},414(e){e.exports=Math.round},3093(e,t,n){var i=n(4459);e.exports=function(e){return i(e)||0===e?e:e<0?-1:1}},6585(e){var t=1e3,n=60*t,i=60*n,o=24*i,a=7*o;function r(e,t,n,i){var o=t>=1.5*n;return Math.round(e/n)+" "+i+(o?"s":"")}e.exports=function(e,s){s=s||{};var c,l,p=typeof e;if("string"===p&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var s=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return s*a;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===p&&isFinite(e))return s.long?(c=e,(l=Math.abs(c))>=o?r(c,l,o,"day"):l>=i?r(c,l,i,"hour"):l>=n?r(c,l,n,"minute"):l>=t?r(c,l,t,"second"):c+" ms"):function(e){var a=Math.abs(e);return a>=o?Math.round(e/o)+"d":a>=i?Math.round(e/i)+"h":a>=n?Math.round(e/n)+"m":a>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},3519(e,t,n){var i=n(6587);function o(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function a(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=i(o),e.exports.strict=i(a),o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return a(this)},configurable:!0})})},1436(e){function t(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}function n(e){e.pending+=1;var t=!1;return function(o){if(t)throw new Error("callback called twice");if(t=!0,e.error=e.error||o,e.pending-=1,e.waiting.length>0&&e.pending<e.max)i(e,e.waiting.shift());else if(0===e.pending){var a=e.listeners;e.listeners=[],a.forEach(n)}};function n(t){t(e.error)}}function i(e,t){t(n(e))}e.exports=t,t.prototype.go=function(e){this.pending<this.max?i(this,e):this.waiting.push(e)},t.prototype.wait=function(e){0===this.pending?e(this.error):this.listeners.push(e)},t.prototype.hold=function(){return n(this)}},6504(e,t,n){var i=n(7016).parse,o={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},a=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function r(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}t.getProxyForUrl=function(e){var t="string"==typeof e?i(e):e||{},n=t.protocol,s=t.host,c=t.port;if("string"!=typeof s||!s||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(r("npm_config_no_proxy")||r("no_proxy")).toLowerCase();return!n||"*"!==n&&n.split(/[,\s]/).every(function(n){if(!n)return!0;var i=n.match(/^(.+):(\d+)$/),o=i?i[1]:n,r=i?parseInt(i[2]):0;return!(!r||r===t)||(/^[.*]/.test(o)?("*"===o.charAt(0)&&(o=o.slice(1)),!a.call(e,o)):e!==o)})}(s=s.replace(/:\d*$/,""),c=parseInt(c)||o[n]||0))return"";var l=r("npm_config_"+n+"_proxy")||r(n+"_proxy")||r("npm_config_proxy")||r("all_proxy");return l&&-1===l.indexOf("://")&&(l=n+"://"+l),l}},815(e,t,n){var i,o=n(3519),a=n(6611);try{i=n(9896)}catch(e){}var r=function(){},s="undefined"!=typeof process&&/^v?\.0/.test(process.version),c=function(e){return"function"==typeof e},l=function(e){e()},p=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),n=c(t[t.length-1]||r)&&t.pop()||r;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var u=t.map(function(p,d){var m=d<t.length-1;return function(e,t,n,l){l=o(l);var p=!1;e.on("close",function(){p=!0}),a(e,{readable:t,writable:n},function(e){if(e)return l(e);p=!0,l()});var u=!1;return function(t){if(!p&&!u)return u=!0,function(e){return!!s&&!!i&&(e instanceof(i.ReadStream||r)||e instanceof(i.WriteStream||r))&&c(e.close)}(e)?e.close(r):function(e){return e.setHeader&&c(e.abort)}(e)?e.abort():c(e.destroy)?e.destroy():void l(t||new Error("stream was destroyed"))}}(p,m,d>0,function(t){e||(e=t),t&&u.forEach(l),m||(u.forEach(l),n(e))})});return t.reduce(p)}},723(e){const t="[",n={to:(e,n)=>n?`${t}${n+1};${e+1}H`:`${t}${e+1}G`,move(e,n){let i="";return e<0?i+=`${t}${-e}D`:e>0&&(i+=`${t}${e}C`),n<0?i+=`${t}${-n}A`:n>0&&(i+=`${t}${n}B`),i},up:(e=1)=>`${t}${e}A`,down:(e=1)=>`${t}${e}B`,forward:(e=1)=>`${t}${e}C`,backward:(e=1)=>`${t}${e}D`,nextLine:(e=1)=>`${t}E`.repeat(e),prevLine:(e=1)=>`${t}F`.repeat(e),left:`${t}G`,hide:`${t}?25l`,show:`${t}?25h`,save:"7",restore:"8"},i={up:(e=1)=>`${t}S`.repeat(e),down:(e=1)=>`${t}T`.repeat(e)},o={screen:`${t}2J`,up:(e=1)=>`${t}1J`.repeat(e),down:(e=1)=>`${t}J`.repeat(e),line:`${t}2K`,lineEnd:`${t}K`,lineStart:`${t}1K`,lines(e){let t="";for(let i=0;i<e;i++)t+=this.line+(i<e-1?n.up():"");return e&&(t+=n.left),t}};e.exports={cursor:n,scroll:i,erase:o,beep:""}},7687(e,t,n){const i=n(857),o=n(2018),a=n(5884),{env:r}=process;let s;function c(e,t={}){return 0!==(n=function(e,{streamIsTTY:t,sniffFlags:n=!0}={}){const o=function(){if("FORCE_COLOR"in r)return"true"===r.FORCE_COLOR?1:"false"===r.FORCE_COLOR?0:0===r.FORCE_COLOR.length?1:Math.min(Number.parseInt(r.FORCE_COLOR,10),3)}();void 0!==o&&(s=o);const c=n?s:o;if(0===c)return 0;if(n){if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2}if(e&&!t&&void 0===c)return 0;const l=c||0;if("dumb"===r.TERM)return l;if("win32"===process.platform){const e=i.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(e=>e in r)||"codeship"===r.CI_NAME?1:l;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){const e=Number.parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:l}(e,{streamIsTTY:e&&e.isTTY,...t}))&&{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3};var n}a("no-color")||a("no-colors")||a("color=false")||a("color=never")?s=0:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(s=1),e.exports={supportsColor:c,stdout:c({isTTY:o.isatty(1)}),stderr:c({isTTY:o.isatty(2)})}},2787(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerAplNamespace=function(e,t){const n=e.command("apl").description("APL workspace commands");n.addHelpText("after",'\nExamples:\n $ sharedev apl list\n $ sharedev apl info AccountQuery --bind AccountObj\n $ sharedev apl pull AccountQuery\n $ sharedev apl pull --all\n $ sharedev apl diff AccountQuery --remote latest\n $ sharedev apl push AccountQuery -m "update query logic"\n'),n.command("list").description("List APL functions").action((0,i.createCommandAction)("apl","list",t,async({context:e})=>{await(0,o.aplListCommand)(e)})),n.command("info <apiName>").description("Show APL function details").option("--bind <bindingObjectApiName>","Provide binding object api name for bound functions").action((0,i.createCommandAction)("apl","info",t,async({args:e,options:t,context:n})=>{await(0,o.aplInfoCommand)(e[0],n,t)})),n.command("pull [apiName]").description("Pull APL source from remote").option("--all","Pull all APL functions").action((0,i.createCommandAction)("apl","pull",t,async({args:e,options:t,context:n})=>{await(0,o.aplPullCommand)(e[0],n,t)})),n.command("diff [apiName]").description("Compare local APL source with snapshot or remote version").option("-r, --remote <versionOrLatest>","Compare with remote version or latest").action((0,i.createCommandAction)("apl","diff",t,async({args:e,options:t,context:n})=>{await(0,o.aplDiffCommand)(e[0],n,t)})),n.command("push [apiName]").description("Push local APL source to remote with a required commit comment").requiredOption("-m, --remark <comment>","Required push comment submitted as remote commit_log; [apiName] targets one function, omit it to push all tracked local changes").option("--force","Force push only when remote version changed").action((0,i.createCommandAction)("apl","push",t,async({args:e,options:t,context:n})=>{await(0,o.aplPushCommand)(e[0],n,t)})),n.command("reset [apiName]").description("Reset local APL source to remote latest or a specific version").option("-r, --remote <versionOrLatest>","Reset to remote latest or a specific version").action((0,i.createCommandAction)("apl","reset",t,async({args:e,options:t,context:n})=>{await(0,o.aplResetCommand)(e[0],n,t)})),n.command("analyze [apiName]").description("Analyze local APL source against remote metadata").action((0,i.createCommandAction)("apl","analyze",t,async({args:e,context:t})=>{await(0,o.aplAnalyzeCommand)(e[0],t)})),n.command("compile [apiName]").description("Compile-check local APL source against remote metadata").action((0,i.createCommandAction)("apl","compile",t,async({args:e,context:t})=>{await(0,o.aplCompileCommand)(e[0],t)})),n.command("debug [apiName]").description("Debug local tracked APL source against remote metadata").option("--data-id <id>","Pass object data ID for bound-object debug runs").option("--params <name=value...>","Pass debug params once; separate entries by space or comma, e.g. --params a=1 b=2 or --params a=1,b=2").action((0,i.createCommandAction)("apl","debug",t,async({args:e,options:t,context:n})=>{await(0,o.aplDebugCommand)(e[0],n,t)})),n.command("create").description("Create a new APL function/class and write local groovy source").option("--apiname <apiName>","APL API name").option("--function-name <functionName>","APL display/function name").option("--type <type>","APL type: function | class","function").option("--namespace <namespace>","Namespace value").option("--package <packageName>","Package suffix without fx.custom.apl. prefix").option("--return-type <returnType>","Return type (required when --type function)").option("--bind <bindingObjectApiName>","Binding object API name, or NONE for unbound").option("--remark <remark>","Description (max 200 chars)").option("--template-id <templateId>","Code template id from remote template list").action((0,i.createCommandAction)("apl","create",t,async({options:e,context:t})=>{const n={...e,apiName:e.apiName??e.apiname};await(0,o.aplCreateCommand)(t,n)}))};const i=n(528),o=n(9739)},3689(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerApprovalNamespace=function(e,t){const n=e.command("approval").description("Approval commands (approval definition & runtime)"),r=n.command("def").description("Approval definition commands");r.command("list").description("List approval definitions").option("--pageSize <pageSize>","Page size").option("--pageNumber <pageNumber>","Page number").option("--orderBy <orderBy>","Order by").option("--asc <asc>","Sort ascending: true|false").option("--entityId <entityId>","Entity id").option("--workflowName <workflowName>","Workflow name").option("--status <status>","Status").option("--from <from>","From source").option("--linkApp <linkApp>","Link app").option("--triggerTypes <triggerTypes>","Trigger types").option("--subProcess <subProcess>","Sub process: true|false").option("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--supportPagingQuery <supportPagingQuery>","Support paging query: true|false").action((0,i.createCommandAction)("approval def","list",t,async({options:e,context:t})=>{await(0,o.approvalDefListCommand)(t,e)})),r.command("logs").description("Query approval definition logs by source workflow id").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--pageNumber <pageNumber>","Page number, default 1").option("--pageSize <pageSize>","Page size, default 1").option("--orderBy <orderBy>","Order by").option("--asc <asc>","Sort ascending: true|false").action((0,i.createCommandAction)("approval def","logs",t,async({options:e,context:t})=>{await(0,o.approvalDefLogsCommand)(t,e)})),r.command("detail").description("Query approval definition detail").option("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--workflowId <workflowId>","Workflow id").action((0,i.createCommandAction)("approval def","detail",t,async({options:e,context:t})=>{await(0,o.approvalDefDetailCommand)(t,e)})),r.command("deploy").description("Deploy approval definition").requiredOption("--workflow <workflow>","Workflow payload string").requiredOption("--rule <rule>","Rule payload string").requiredOption("--execution <execution>","Execution payload string").option("--updateHistory <updateHistory>","Update history: true|false").option("--updateType <updateType>","Update type").action((0,i.createCommandAction)("approval def","deploy",t,async({options:e,context:t})=>{await(0,o.approvalDefDeployCommand)(t,e)})),r.command("enable").description("Enable/disable approval definition").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--enable <enable>","Enable flag: true or false").action((0,i.createCommandAction)("approval def","enable",t,async({options:e,context:t})=>{await(0,o.approvalDefEnableCommand)(t,e)})),r.command("delete").description("Delete approval definitions by source workflow ids").requiredOption("--sourceWorkflowIds <sourceWorkflowIds>","Source workflow ids, comma separated, e.g. id1,id2").action((0,i.createCommandAction)("approval def","delete",t,async({options:e,context:t})=>{await(0,o.approvalDefDeleteCommand)(t,e)})),r.command("add-free-config").description("Add free approval config").requiredOption("--entityId <entityId>","Entity id").option("--triggerTypes <triggerTypes>","Trigger types").option("--dataLockType <dataLockType>","Data lock type").option("--completedLockType <completedLockType>","Completed lock type").option("--defaultDef <defaultDef>","Default definition").action((0,i.createCommandAction)("approval def","add-free-config",t,async({options:e,context:t})=>{await(0,o.approvalDefAddFreeConfigCommand)(t,e)})),r.command("get-approval-config-list").description("Get approval config list").option("--entityId <entityId>","Entity id").option("--flowType <flowType>","Flow type").option("--useGroupManager <useGroupManager>","Use group manager: true|false").action((0,i.createCommandAction)("approval def","get-approval-config-list",t,async({options:e,context:t})=>{await(0,o.approvalDefGetApprovalConfigListCommand)(t,e)})),r.command("candidate-editable-check").description("Check candidate editable").requiredOption("--entityId <entityId>","Entity id").requiredOption("--triggerTypes <triggerTypes>","Trigger types").action((0,i.createCommandAction)("approval def","candidate-editable-check",t,async({options:e,context:t})=>{await(0,o.approvalDefCandidateEditableCheckCommand)(t,e)})),r.command("delete-free-config").description("Delete free approval config").requiredOption("--id <id>","Config id").action((0,i.createCommandAction)("approval def","delete-free-config",t,async({options:e,context:t})=>{await(0,o.approvalDefDeleteFreeConfigCommand)(t,e)})),r.command("switch-flow-type").description("Switch approval flow type").requiredOption("--id <id>","Definition id").option("--entityId <entityId>","Entity id").requiredOption("--flowType <flowType>","Flow type").action((0,i.createCommandAction)("approval def","switch-flow-type",t,async({options:e,context:t})=>{await(0,o.approvalDefSwitchFlowTypeCommand)(t,e)})),r.command("update-free-config").description("Update free approval config").requiredOption("--id <id>","Config id").option("--entityId <entityId>","Entity id").option("--triggerTypes <triggerTypes>","Trigger types").option("--remind <remind>","Remind").option("--dataLockType <dataLockType>","Data lock type").option("--completedLockType <completedLockType>","Completed lock type").option("--defaultDef <defaultDef>","Default definition").action((0,i.createCommandAction)("approval def","update-free-config",t,async({options:e,context:t})=>{await(0,o.approvalDefUpdateFreeConfigCommand)(t,e)}));const s=n.command("runtime").description("Approval runtime operations");s.command("instance-cancel").description("cancel").requiredOption("--triggerType <triggerType>","triggerType").requiredOption("--cancelReason <cancelReason>","cancelReason").option("--entityId <entityId>","entityId").option("--objectId <objectId>","objectId").option("--instanceId <instanceId>","instanceId").option("--ignoreNoBlockValidate <ignoreNoBlockValidate>","ignoreNoBlockValidate").action((0,i.createCommandAction)("approval runtime","instance-cancel",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeInstanceCancelCommand)(t,e)})),s.command("instance-detail").description("getDetailByInstanceId").requiredOption("--instanceId <instanceId>","instanceId").action((0,i.createCommandAction)("approval runtime","instance-detail",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeInstanceDetailCommand)(t,e)})),s.command("instance-detail-change").description("getDetailChange").requiredOption("--instanceId <instanceId>","instanceId").requiredOption("--detailEntityId <detailEntityId>","detailEntityId").action((0,i.createCommandAction)("approval runtime","instance-detail-change",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeInstanceDetailChangeCommand)(t,e)})),s.command("instance-id-by-object").description("getInstanceIdByObjectId").requiredOption("--objectId <objectId>","objectId").requiredOption("--entityId <entityId>","entityId").action((0,i.createCommandAction)("approval runtime","instance-id-by-object",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeInstanceIdByObjectCommand)(t,e)})),s.command("preview-tasks").description("getPreviewTasks").requiredOption("--workflowId <workflowId>","workflowId").requiredOption("--activityId <activityId>","activityId").requiredOption("--objectId <objectId>","objectId").option("--applicantId <applicantId>","applicantId").action((0,i.createCommandAction)("approval runtime","preview-tasks",t,async({options:e,context:t})=>{await(0,a.approvalRuntimePreviewTasksCommand)(t,e)})),s.command("get-current-instance").description("progress").requiredOption("--entityId <entityId>","entityId").requiredOption("--dataId <dataId>","dataId").action((0,i.createCommandAction)("approval runtime","get-current-instance",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeGetCurrentInstanceCommand)(t,e)})),s.command("retry-task").description("retryTask").requiredOption("--instanceId <instanceId>","instanceId").action((0,i.createCommandAction)("approval runtime","retry-task",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeRetryTaskCommand)(t,e)})),s.command("task-add-extra-node").description("addExtraNode").requiredOption("--taskId <taskId>","taskId").requiredOption("--extraNodeAssignee <extraNodeAssignee>","extraNodeAssignee").requiredOption("--addNodeReason <addNodeReason>","addNodeReason").option("--sequence <sequence>","sequence").action((0,i.createCommandAction)("approval runtime","task-add-extra-node",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskAddExtraNodeCommand)(t,e)})),s.command("task-carbon-copy").description("carbonCopy").requiredOption("--taskId <taskId>","taskId").option("--type <type>","type").option("--instanceId <instanceId>","instanceId").option("--opinion <opinion>","opinion").option("--replyMessage <replyMessage>","replyMessage").action((0,i.createCommandAction)("approval runtime","task-carbon-copy",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskCarbonCopyCommand)(t,e)})),s.command("task-change-free-handler").description("changeFreeTaskHandler").requiredOption("--instanceId <instanceId>","instanceId").option("--modifyOpinion <modifyOpinion>","modifyOpinion").option("--freeApprovalDef <freeApprovalDef>","freeApprovalDef").action((0,i.createCommandAction)("approval runtime","task-change-free-handler",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskChangeFreeHandlerCommand)(t,e)})),s.command("task-change-handler").description("changeTaskHandler").requiredOption("--taskId <taskId>","taskId").requiredOption("--persons <persons>","persons").option("--modifyOpinion <modifyOpinion>","modifyOpinion").action((0,i.createCommandAction)("approval runtime","task-change-handler",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskChangeHandlerCommand)(t,e)})),s.command("task-complete").description("complete").requiredOption("--objectId <objectId>","objectId").requiredOption("--actionType <actionType>","actionType").requiredOption("--taskId <taskId>","taskId").option("--opinion <opinion>","opinion").option("--triggerType <triggerType>","triggerType").option("--entityId <entityId>","entityId").option("--moveToCurrentActivityWhenReject <moveToCurrentActivityWhenReject>","moveToCurrentActivityWhenReject").option("--afterTagInfo <afterTagInfo>","afterTagInfo").option("--replyMessage <replyMessage>","replyMessage").option("--ignoreNoBlockValidate <ignoreNoBlockValidate>","ignoreNoBlockValidate").option("--blockWithLayout <blockWithLayout>","blockWithLayout").action((0,i.createCommandAction)("approval runtime","task-complete",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskCompleteCommand)(t,e)})),s.command("task-delete-reply").description("deleteReply").option("--replyId <replyId>","replyId").option("--taskId <taskId>","taskId").option("--instanceId <instanceId>","instanceId").option("--feedId <feedId>","feedId").action((0,i.createCommandAction)("approval runtime","task-delete-reply",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskDeleteReplyCommand)(t,e)})),s.command("task-form-edit").description("edit").requiredOption("--taskId <taskId>","taskId").option("--details <details>","details").option("--objectData <objectData>","objectData").option("--originalData <originalData>","originalData").option("--originalDetails <originalDetails>","originalDetails").option("--optionInfo <optionInfo>","optionInfo").option("--actionType <actionType>","actionType").option("--notValidate <notValidate>","notValidate").action((0,i.createCommandAction)("approval runtime","task-form-edit",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskFormEditCommand)(t,e)})),s.command("feed-detail").description("feedDetail").option("--taskId <taskId>","taskId").option("--todoId <todoId>","todoId").option("--workflowInstanceId <workflowInstanceId>","workflowInstanceId").action((0,i.createCommandAction)("approval runtime","feed-detail",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeFeedDetailCommand)(t,e)})),s.command("task-buttons").description("getButtonByTaskId").option("--taskIds <taskIds>","taskIds").action((0,i.createCommandAction)("approval runtime","task-buttons",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskButtonsCommand)(t,e)})),s.command("can-refuse-tasks").description("getCanRefuseTasks").requiredOption("--instanceId <instanceId>","instanceId").option("--taskId <taskId>","taskId").action((0,i.createCommandAction)("approval runtime","can-refuse-tasks",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeCanRefuseTasksCommand)(t,e)})),s.command("task-extra-data").description("getTaskExtraData").requiredOption("--instanceId <instanceId>","instanceId").requiredOption("--taskId <taskId>","taskId").option("--buttonType <buttonType>","buttonType").action((0,i.createCommandAction)("approval runtime","task-extra-data",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskExtraDataCommand)(t,e)})),s.command("task-reanalysis").description("reanalysisTaskProcessor").requiredOption("--taskId <taskId>","taskId").action((0,i.createCommandAction)("approval runtime","task-reanalysis",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskReanalysisCommand)(t,e)})),s.command("task-reject").description("rejectToBeforeTask").requiredOption("--currentTaskId <currentTaskId>","currentTaskId").requiredOption("--rejectToTaskId <rejectToTaskId>","rejectToTaskId").option("--rejectOpinion <rejectOpinion>","rejectOpinion").option("--moveToCurrentActivityWhenReject <moveToCurrentActivityWhenReject>","moveToCurrentActivityWhenReject").option("--replyMessage <replyMessage>","replyMessage").option("--ignoreNoBlockValidate <ignoreNoBlockValidate>","ignoreNoBlockValidate").option("--data <data>","data").option("--removeVersion <removeVersion>","removeVersion").option("--originalData <originalData>","originalData").option("--optionInfo <optionInfo>","optionInfo").option("--entityId <entityId>","entityId").option("--objectId <objectId>","objectId").action((0,i.createCommandAction)("approval runtime","task-reject",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskRejectCommand)(t,e)})),s.command("task-remind").description("remind").requiredOption("--taskId <taskId>","taskId").requiredOption("--remindPersons <remindPersons>","remindPersons").option("--content <content>","content").action((0,i.createCommandAction)("approval runtime","task-remind",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskRemindCommand)(t,e)})),s.command("task-reply").description("reply").requiredOption("--replyMessage <replyMessage>","replyMessage").option("--instanceId <instanceId>","instanceId").option("--taskId <taskId>","taskId").option("--opinionId <opinionId>","opinionId").option("--replyType <replyType>","replyType").action((0,i.createCommandAction)("approval runtime","task-reply",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskReplyCommand)(t,e)})),s.command("task-retrieve").description("retrieve").requiredOption("--instanceId <instanceId>","instanceId").requiredOption("--currentTaskId <currentTaskId>","currentTaskId").requiredOption("--previousTaskId <previousTaskId>","previousTaskId").requiredOption("--retrieveOpinion <retrieveOpinion>","retrieveOpinion").option("--deletePreviousOpinion <deletePreviousOpinion>","deletePreviousOpinion").action((0,i.createCommandAction)("approval runtime","task-retrieve",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskRetrieveCommand)(t,e)})),s.command("task-retrieve-check").description("retrieveCheck").requiredOption("--instanceId <instanceId>","instanceId").requiredOption("--currentTaskId <currentTaskId>","currentTaskId").action((0,i.createCommandAction)("approval runtime","task-retrieve-check",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskRetrieveCheckCommand)(t,e)})),s.command("task-update-complete").description("updateAndComplete").requiredOption("--entityId <entityId>","entityId").requiredOption("--objectId <objectId>","objectId").requiredOption("--data <data>","data").requiredOption("--taskId <taskId>","taskId").requiredOption("--actionType <actionType>","actionType").option("--originalData <originalData>","originalData").option("--optionInfo <optionInfo>","optionInfo").option("--removeVersion <removeVersion>","removeVersion").option("--opinion <opinion>","opinion").option("--triggerType <triggerType>","triggerType").option("--moveToCurrentActivityWhenReject <moveToCurrentActivityWhenReject>","moveToCurrentActivityWhenReject").option("--afterTagInfo <afterTagInfo>","afterTagInfo").option("--replyMessage <replyMessage>","replyMessage").option("--ignoreNoBlockValidate <ignoreNoBlockValidate>","ignoreNoBlockValidate").option("--blockWithLayout <blockWithLayout>","blockWithLayout").action((0,i.createCommandAction)("approval runtime","task-update-complete",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskUpdateCompleteCommand)(t,e)})),s.command("task-default-form-edit").description("updateApprovalContent").requiredOption("--entityId <entityId>","entityId").requiredOption("--objectId <objectId>","objectId").requiredOption("--data <data>","data").requiredOption("--taskId <taskId>","taskId").option("--originalData <originalData>","originalData").option("--optionInfo <optionInfo>","optionInfo").option("--removeVersion <removeVersion>","removeVersion").action((0,i.createCommandAction)("approval runtime","task-default-form-edit",t,async({options:e,context:t})=>{await(0,a.approvalRuntimeTaskDefaultFormEditCommand)(t,e)}))};const i=n(528),o=n(5805),a=n(8215)},4781(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerBpmNamespace=function(e,t){const n=e.command("bpm").description("BPM commands (bpm definition & runtime)"),r=n.command("def").description("BPM definition commands");r.command("list").description("List bpm definitions").option("--page <page>","Page number").option("--pageSize <pageSize>","Page size").option("--name <name>","Definition name").option("--enable <enable>","Enable: true|false").option("--entityId <entityId>","Entity id").option("--supportPagingQuery <supportPagingQuery>","Support paging query: true|false").option("--from <from>","From source").option("--sourceWorkflowIds <sourceWorkflowIds>","Source workflow ids").action((0,i.createCommandAction)("bpm def","list",t,async({options:e,context:t})=>{await(0,o.bpmDefListCommand)(t,e)})),r.command("detail").description("Query bpm definition detail").option("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--workflowId <workflowId>","Workflow id").option("--workflowInstanceId <workflowInstanceId>","Workflow instance id").option("--businessType <businessType>","Business type").action((0,i.createCommandAction)("bpm def","detail",t,async({options:e,context:t})=>{await(0,o.bpmDefDetailCommand)(t,e)})),r.command("definition-by-id").description("Query bpm definition by workflow id").option("--workflowId <workflowId>","Workflow id").action((0,i.createCommandAction)("bpm def","definition-by-id",t,async({options:e,context:t})=>{await(0,o.bpmDefDefinitionByIdCommand)(t,e)})),r.command("logs").description("Query bpm definition logs by source workflow id").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--pageSize <pageSize>","Page size").option("--pageNumber <pageNumber>","Page number").action((0,i.createCommandAction)("bpm def","logs",t,async({options:e,context:t})=>{await(0,o.bpmDefLogsCommand)(t,e)})),r.command("enable").description("Enable/disable bpm definitions").requiredOption("--ids <ids>","Definition ids").option("--enabled <enabled>","Enable flag: true or false").action((0,i.createCommandAction)("bpm def","enable",t,async({options:e,context:t})=>{await(0,o.bpmDefEnableCommand)(t,e)})),r.command("deploy").description("Deploy bpm definition").requiredOption("--subType <subType>","Sub type (定义的可用范围)").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").requiredOption("--name <name>","Definition name").requiredOption("--inputs <inputs>","Inputs payload string").requiredOption("--outputs <outputs>","Outputs payload string").requiredOption("--customVariableTable <customVariableTable>","Custom variable table payload string").requiredOption("--variables <variables>","Variables payload string").option("--description <description>","Definition description").option("--extension <extension>","Extension payload string").option("--enable <enable>","Enable: true|false").option("--workflowId <workflowId>","Workflow id").option("--templateType <templateType>","Template type").option("--version <version>","Version").option("--published <published>","Published: true|false").option("--publication <publication>","Publication: true|false").option("--nameTranslateInfo <nameTranslateInfo>","Name translate info").option("--descTranslateInfo <descTranslateInfo>","Desc translate info").option("--identity <identity>","Identity").option("--rangeEmployeeIds <rangeEmployeeIds>","Range employee ids").option("--rangeCircleIds <rangeCircleIds>","Range circle ids").option("--rangeGroupIds <rangeGroupIds>","Range group ids").option("--rangeRoleIds <rangeRoleIds>","Range role ids").action((0,i.createCommandAction)("bpm def","deploy",t,async({options:e,context:t})=>{await(0,o.bpmDefCreateDefinitionCommand)(t,e)})),r.command("update").description("Update bpm definition").option("--id <id>","Definition id").option("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--name <name>","Definition name").option("--description <description>","Definition description").option("--entityId <entityId>","Entity id").option("--entityName <entityName>","Entity name").option("--type <type>","Type").option("--rule <rule>","Rule payload string").option("--workflow <workflow>","Workflow payload string").option("--enable <enable>","Enable: true|false").option("--scheduleTime <scheduleTime>","Schedule time").option("--triggerTypes <triggerTypes>","Trigger types").option("--modifier <modifier>","Modifier").option("--modifyTime <modifyTime>","Modify time").option("--creator <creator>","Creator").option("--createTime <createTime>","Create time").option("--removeHistoryJob <removeHistoryJob>","Remove history job: true|false").option("--triggerNames <triggerNames>","Trigger names").option("--controlStatus <controlStatus>","Control status").option("--linkApp <linkApp>","Link app").option("--linkAppName <linkAppName>","Link app name").option("--linkAppType <linkAppType>","Link app type").option("--linkAppEnable <linkAppEnable>","Link app enable: true|false").option("--errorNotifyRecipients <errorNotifyRecipients>","Error notify recipients").option("--timezone <timezone>","Timezone").option("--nameTranslateInfo <nameTranslateInfo>","Name translate info").option("--descTranslateInfo <descTranslateInfo>","Desc translate info").option("--rangeEmployeeIds <rangeEmployeeIds>","Range employee ids").option("--rangeCircleIds <rangeCircleIds>","Range circle ids").option("--rangeGroupIds <rangeGroupIds>","Range group ids").option("--rangeRoleIds <rangeRoleIds>","Range role ids").action((0,i.createCommandAction)("bpm def","update",t,async({options:e,context:t})=>{await(0,o.bpmDefUpdateDefinitionCommand)(t,e)})),r.command("get-app-actions").description("Get bpm app actions").option("--apiName <apiName>","Api name").option("--externalFlow <externalFlow>","External flow: true|false").option("--appId <appId>","App id").option("--appType <appType>","App type").action((0,i.createCommandAction)("bpm def","get-app-actions",t,async({options:e,context:t})=>{await(0,o.bpmDefAppActionsCommand)(t,e)})),r.command("delete").description("Delete bpm definition").option("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").action((0,i.createCommandAction)("bpm def","delete",t,async({options:e,context:t})=>{await(0,o.bpmDefDeleteDefinitionCommand)(t,e)}));const s=n.command("runtime").description("BPM runtime operations");s.command("instance-retry").description("afterActionRetry").requiredOption("--instanceId <instanceId>","instanceId").option("--rowNum <rowNum>","rowNum").option("--executeType <executeType>","executeType").action((0,i.createCommandAction)("bpm runtime","instance-retry",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeInstanceRetryCommand)(t,e)})),s.command("instance-cancel").description("cancelInstance").requiredOption("--id <id>","id").option("--reason <reason>","reason").option("--data <data>","data").option("--removeVersion <removeVersion>","removeVersion").option("--originalData <originalData>","originalData").option("--optionInfo <optionInfo>","optionInfo").action((0,i.createCommandAction)("bpm runtime","instance-cancel",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeInstanceCancelCommand)(t,e)})),s.command("get-instance-form").description("getInstanceForm").option("--workflowInstanceId <workflowInstanceId>","workflowInstanceId").option("--instanceFormType <instanceFormType>","instanceFormType").action((0,i.createCommandAction)("bpm runtime","get-instance-form",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeGetInstanceFormCommand)(t,e)})),s.command("get-instance-list").description("getInstanceListByObject").requiredOption("--objectId <objectId>","objectId").option("--pageSize <pageSize>","pageSize").option("--pageNumber <pageNumber>","pageNumber").option("--orderBy <orderBy>","orderBy").option("--asc <asc>","asc").option("--state <state>","state").action((0,i.createCommandAction)("bpm runtime","get-instance-list",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeGetInstanceListCommand)(t,e)})),s.command("get-instance-logs").description("getWorkflowInstanceLog").requiredOption("--workflowInstanceId <workflowInstanceId>","workflowInstanceId").action((0,i.createCommandAction)("bpm runtime","get-instance-logs",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeGetInstanceLogsCommand)(t,e)})),s.command("trigger").description("triggerInstance").requiredOption("--id <id>","id").requiredOption("--objectId <objectId>","objectId").action((0,i.createCommandAction)("bpm runtime","trigger",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeTriggerCommand)(t,e)})),s.command("task-after-action-retry").description("afterActionRetry").requiredOption("--taskId <taskId>","taskId").option("--rowNum <rowNum>","rowNum").option("--executeType <executeType>","executeType").action((0,i.createCommandAction)("bpm runtime","task-after-action-retry",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeTaskAfterActionRetryCommand)(t,e)})),s.command("task-change-handler").description("changeTaskHandler").requiredOption("--taskId <taskId>","taskId").requiredOption("--candidateIds <candidateIds>","candidateIds").option("--modifyOpinion <modifyOpinion>","modifyOpinion").action((0,i.createCommandAction)("bpm runtime","task-change-handler",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeTaskChangeHandlerCommand)(t,e)})),s.command("task-complete-create-relate-task").description("completeAndCreateTaskData").requiredOption("--taskId <taskId>","taskId").requiredOption("--activityId <activityId>","activityId").requiredOption("--activityInstanceId <activityInstanceId>","activityInstanceId").requiredOption("--data <data>","data").requiredOption("--executionType <executionType>","executionType").option("--opinion <opinion>","opinion").option("--objectId <objectId>","objectId").option("--nextTaskAssignee <nextTaskAssignee>","nextTaskAssignee").option("--addOrReplaceNextTaskAssignee <addOrReplaceNextTaskAssignee>","addOrReplaceNextTaskAssignee").option("--needGetNextTaskInfo <needGetNextTaskInfo>","needGetNextTaskInfo").option("--ignoreNoBlockValidate <ignoreNoBlockValidate>","ignoreNoBlockValidate").action((0,i.createCommandAction)("bpm runtime","task-complete-create-relate-task",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeTaskCompleteCreateRelateTaskCommand)(t,e)})),s.command("task-complete").description("completeTask").requiredOption("--objectId <objectId>","objectId").requiredOption("--actionType <actionType>","actionType").requiredOption("--taskId <taskId>","taskId").option("--opinion <opinion>","opinion").option("--triggerType <triggerType>","triggerType").option("--entityId <entityId>","entityId").option("--moveToCurrentActivityWhenReject <moveToCurrentActivityWhenReject>","moveToCurrentActivityWhenReject").option("--afterTagInfo <afterTagInfo>","afterTagInfo").option("--replyMessage <replyMessage>","replyMessage").option("--ignoreNoBlockValidate <ignoreNoBlockValidate>","ignoreNoBlockValidate").option("--blockWithLayout <blockWithLayout>","blockWithLayout").action((0,i.createCommandAction)("bpm runtime","task-complete",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeTaskCompleteCommand)(t,e)})),s.command("task-form-edit").description("edit").requiredOption("--taskId <taskId>","taskId").option("--details <details>","details").option("--objectData <objectData>","objectData").option("--optionInfo <optionInfo>","optionInfo").option("--notValidate <notValidate>","notValidate").option("--originalData <originalData>","originalData").option("--originalDetails <originalDetails>","originalDetails").action((0,i.createCommandAction)("bpm runtime","task-form-edit",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeTaskFormEditCommand)(t,e)})),s.command("task-buttons").description("getButtonByTaskId").option("--taskIds <taskIds>","taskIds").action((0,i.createCommandAction)("bpm runtime","task-buttons",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeTaskButtonsCommand)(t,e)})),s.command("get-task-info").description("getTaskInfo").option("--id <id>","id").option("--applyButtons <applyButtons>","applyButtons").option("--notGetData <notGetData>","notGetData").option("--includeTaskFeedDetailConfig <includeTaskFeedDetailConfig>","includeTaskFeedDetailConfig").action((0,i.createCommandAction)("bpm runtime","get-task-info",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeGetTaskInfoCommand)(t,e)})),s.command("get-task-list-by-lane").description("getTaskInfoByLaneId").requiredOption("--laneId <laneId>","laneId").requiredOption("--workflowId <workflowId>","workflowId").requiredOption("--instanceId <instanceId>","instanceId").option("--objectId <objectId>","objectId").option("--entityId <entityId>","entityId").option("--notGetDatas <notGetDatas>","notGetDatas").option("--applyButtons <applyButtons>","applyButtons").option("--page <page>","page").option("--pageSize <pageSize>","pageSize").action((0,i.createCommandAction)("bpm runtime","get-task-list-by-lane",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeGetTaskListByLaneCommand)(t,e)})),s.command("task-operate").description("operateTask").requiredOption("--taskId <taskId>","taskId").requiredOption("--type <type>","type").option("--opinion <opinion>","opinion").option("--tagInfo <tagInfo>","tagInfo").action((0,i.createCommandAction)("bpm runtime","task-operate",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeTaskOperateCommand)(t,e)})),s.command("task-refresh-handler").description("refreshHandlerByTaskId").requiredOption("--taskId <taskId>","taskId").action((0,i.createCommandAction)("bpm runtime","task-refresh-handler",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeTaskRefreshHandlerCommand)(t,e)})),s.command("task-remind").description("remind").requiredOption("--taskId <taskId>","taskId").option("--content <content>","content").option("--remindPersons <remindPersons>","remindPersons").action((0,i.createCommandAction)("bpm runtime","task-remind",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeTaskRemindCommand)(t,e)})),s.command("task-update-and-complete").description("updateDataAndCompleteTask").requiredOption("--taskId <taskId>","taskId").requiredOption("--entityId <entityId>","entityId").requiredOption("--objectId <objectId>","objectId").option("--data <data>","data").option("--nextTaskAssignee <nextTaskAssignee>","nextTaskAssignee").option("--addOrReplaceNextTaskAssignee <addOrReplaceNextTaskAssignee>","addOrReplaceNextTaskAssignee").option("--needGetNextTaskInfo <needGetNextTaskInfo>","needGetNextTaskInfo").option("--result <result>","result").option("--opinion <opinion>","opinion").option("--ignoreNoBlockValidate <ignoreNoBlockValidate>","ignoreNoBlockValidate").option("--removeVersion <removeVersion>","removeVersion").option("--originalData <originalData>","originalData").option("--optionInfo <optionInfo>","optionInfo").action((0,i.createCommandAction)("bpm runtime","task-update-and-complete",t,async({options:e,context:t})=>{await(0,a.bpmRuntimeTaskUpdateAndCompleteCommand)(t,e)}))};const i=n(528),o=n(8657),a=n(5365)},1012(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerCompletionCommand=function(e,t){e.command("completion").description("Generate shell completion script").option("--shell <shell>","Shell type: zsh | bash","zsh").option("--line <line>","Current input line (used internally by shell completion)").action(t=>{if(void 0!==t.line){const n=(0,i.getCompletions)(e,t.line);return void(n.length&&process.stdout.write(n.join("\n")+"\n"))}"bash"===t.shell?process.stdout.write((0,i.generateBashScript)()+"\n"):process.stdout.write((0,i.generateZshScript)()+"\n")})};const i=n(9473)},7800(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerConfigCommand=function(e,t){e.command("config").description("Update local .sharedev/settings.json values").option("-d, --domain <url>","Update enterprise domain URL").option("-c, --certificate <token>","Update enterprise certificate token").addHelpText("after","\nExamples:\n $ sharedev config --domain=https://www.fxiaoke.com\n $ sharedev config --certificate=your-token\n $ sharedev config --domain=https://www.fxiaoke.com --certificate=your-token\n").action(async(...e)=>{const n=e[e.length-1].opts();await(0,i.updateConfigCommand)(t.cwd,n)})};const i=n(7429)},2521(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerDevMetadataNamespace=function(e,t){const n=e.command("dev-metadata").description("Download development metadata");n.addHelpText("after","\nExamples:\n $ sharedev dev-metadata search Account\n $ sharedev dev-metadata info AccountObj\n $ sharedev dev-metadata download AccountObj\n $ sharedev dev-metadata download --all\n $ sharedev dev-metadata download --all --type package\n $ sharedev dev-metadata download --all --type custom\n $ sharedev dev-metadata namespace\n $ sharedev dev-metadata namespace --output ./tmp/dev-metadata\n"),n.command("search [query]").description("Search object metadata by api name or display name").action((0,i.createCommandAction)("dev-metadata","search",t,async({args:e,context:t})=>{await(0,o.objectSearchCommand)(e[0],t)})),n.command("info [apiName]").description("Show object metadata details").action((0,i.createCommandAction)("dev-metadata","info",t,async({args:e,context:t})=>{await(0,o.objectInfoCommand)(e[0],t)})),n.command("download [apiName]").description("Download object describe markdown files").option("--all","Download all object describe markdown files").option("--type <type>","Describe define type for --all: package/custom").option("--output <dir>","Output directory for object metadata files").action((0,i.createCommandAction)("dev-metadata","download",t,async({args:e,options:t,context:n})=>{await(0,o.objectDownloadCommand)(e[0],n,t)})),n.command("namespace").description("Download all namespaces from runtime metadata endpoint").option("--output <dir>","Output directory for namespace metadata file").action((0,i.createCommandAction)("dev-metadata","namespace",t,async({options:e,context:t})=>{await(0,o.namespaceDownloadCommand)(t,e)}))};const i=n(528),o=n(707)},9357(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerDocsNamespace=function(e,t){e.command("docs").description("Documentation workspace commands").command("download").description("Download APL and PWC documentation to local").action((0,i.createCommandAction)("docs","download",t,async({context:e})=>{await(0,o.docsDownloadCommand)(e)}))};const i=n(528),o=n(6347)},5014(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerFlowNamespace=function(e,t){const n=e.command("flow").description("Flow commands (flow definition & runtime)"),r=n.command("def").description("Flow definition commands");r.command("list").description("List flow definitions").option("--name <name>","Flow definition name").option("--enable <enable>","Enable flag: true|false").option("--subType <subType>","Sub type").option("--subTypes <subTypes>","Sub types").option("--pageNumber <pageNumber>","Page number").option("--pageSize <pageSize>","Page size").option("--supportPagingQuery <supportPagingQuery>","Support paging query: true|false").option("--filterPublished <filterPublished>","Filter published: true|false").action((0,i.createCommandAction)("flow def","list",t,async({options:e,context:t})=>{await(0,o.flowDefListCommand)(t,e)})),r.command("detail").description("Query flow definition detail").option("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--workflowId <workflowId>","Workflow id").action((0,i.createCommandAction)("flow def","detail",t,async({options:e,context:t})=>{await(0,o.flowDefDetailCommand)(t,e)})),r.command("enable").description("Enable/disable flow definition").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--enable <enable>","Enable: true|false").action((0,i.createCommandAction)("flow def","enable",t,async({options:e,context:t})=>{await(0,o.flowDefEnableCommand)(t,e)})),r.command("delete").description("Delete flow definition").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").action((0,i.createCommandAction)("flow def","delete",t,async({options:e,context:t})=>{await(0,o.flowDefDeleteCommand)(t,e)})),r.command("publish").description("Publish and activate flow definition").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").requiredOption("--workflowId <workflowId>","Workflow id").action((0,i.createCommandAction)("flow def","publish",t,async({options:e,context:t})=>{await(0,o.flowDefPublishCommand)(t,e)})),r.command("deploy").description("Deploy flow definition").requiredOption("--subType <subType>","Sub type (定义的可用范围)").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").requiredOption("--name <name>","Definition name").requiredOption("--inputs <inputs>","Inputs payload string").requiredOption("--outputs <outputs>","Outputs payload string").requiredOption("--customVariableTable <customVariableTable>","Custom variable table payload string").requiredOption("--variables <variables>","Variables payload string").option("--description <description>","Definition description").option("--extension <extension>","Extension payload string").option("--enable <enable>","Enable: true|false").option("--workflowId <workflowId>","Workflow id").option("--templateType <templateType>","Template type").option("--version <version>","Version").option("--published <published>","Published: true|false").option("--publication <publication>","Publication: true|false").option("--nameTranslateInfo <nameTranslateInfo>","Name translate info").option("--descTranslateInfo <descTranslateInfo>","Desc translate info").option("--identity <identity>","Identity").action((0,i.createCommandAction)("flow def","deploy",t,async({options:e,context:t})=>{await(0,o.flowDefDeployCommand)(t,e)})),r.command("conf").description("Get flow definition config").action((0,i.createCommandAction)("flow def","conf",t,async({context:e})=>{await(0,o.flowDefConfCommand)(e,{})})),r.command("update").description("Update flow definition").requiredOption("--subType <subType>","Sub type (定义的可用范围)").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").requiredOption("--name <name>","Definition name").requiredOption("--inputs <inputs>","Inputs payload string").requiredOption("--outputs <outputs>","Outputs payload string").requiredOption("--customVariableTable <customVariableTable>","Custom variable table payload string").requiredOption("--variables <variables>","Variables payload string").option("--description <description>","Definition description").option("--extension <extension>","Extension payload string").option("--enable <enable>","Enable: true|false").option("--workflowId <workflowId>","Workflow id").option("--templateType <templateType>","Template type").option("--version <version>","Version").option("--published <published>","Published: true|false").option("--publication <publication>","Publication: true|false").option("--nameTranslateInfo <nameTranslateInfo>","Name translate info").option("--descTranslateInfo <descTranslateInfo>","Desc translate info").option("--identity <identity>","Identity").action((0,i.createCommandAction)("flow def","update",t,async({options:e,context:t})=>{await(0,o.flowDefUpdateCommand)(t,e)})),r.command("save-as").description("Save flow definition as new").requiredOption("--subType <subType>","Sub type (定义的可用范围)").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").requiredOption("--name <name>","Definition name").requiredOption("--inputs <inputs>","Inputs payload string").requiredOption("--outputs <outputs>","Outputs payload string").requiredOption("--customVariableTable <customVariableTable>","Custom variable table payload string").requiredOption("--variables <variables>","Variables payload string").option("--description <description>","Definition description").option("--extension <extension>","Extension payload string").option("--enable <enable>","Enable: true|false").option("--workflowId <workflowId>","Workflow id").option("--templateType <templateType>","Template type").option("--version <version>","Version").option("--published <published>","Published: true|false").option("--publication <publication>","Publication: true|false").option("--nameTranslateInfo <nameTranslateInfo>","Name translate info").option("--descTranslateInfo <descTranslateInfo>","Desc translate info").option("--identity <identity>","Identity").action((0,i.createCommandAction)("flow def","save-as",t,async({options:e,context:t})=>{await(0,o.flowDefSaveAsCommand)(t,e)})),r.command("active").description("Activate flow definition").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").requiredOption("--workflowId <workflowId>","Workflow id").action((0,i.createCommandAction)("flow def","active",t,async({options:e,context:t})=>{await(0,o.flowDefActiveCommand)(t,e)})),r.command("basic-info").description("Update flow definition basic info").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--defaultName <defaultName>","Default name").option("--defaultDescription <defaultDescription>","Default description").option("--nameTranslateInfo <nameTranslateInfo>","Name translate info").option("--descTranslateInfo <descTranslateInfo>","Desc translate info").action((0,i.createCommandAction)("flow def","basic-info",t,async({options:e,context:t})=>{await(0,o.flowDefBasicInfoCommand)(t,e)})),r.command("expression-check").description("Check flow expression").option("--expression <expression>","Expression").option("--returnType <returnType>","Return type").option("--defaultToZero <defaultToZero>","Default to zero: true|false").option("--bindVariables <bindVariables>","Bind variables").action((0,i.createCommandAction)("flow def","expression-check",t,async({options:e,context:t})=>{await(0,o.flowDefExpressionCheckCommand)(t,e)})),r.command("expression-debug").description("Debug flow expression").option("--expression <expression>","Expression").option("--returnType <returnType>","Return type").option("--defaultToZero <defaultToZero>","Default to zero: true|false").option("--bindVariables <bindVariables>","Bind variables").option("--decimalPlaces <decimalPlaces>","Decimal places").option("--bindings <bindings>","Bindings").action((0,i.createCommandAction)("flow def","expression-debug",t,async({options:e,context:t})=>{await(0,o.flowDefExpressionDebugCommand)(t,e)})),r.command("get-history").description("Get flow definition history").requiredOption("--type <type>","History type").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--workflowId <workflowId>","Workflow id").option("--pageNumber <pageNumber>","Page number").option("--pageSize <pageSize>","Page size").action((0,i.createCommandAction)("flow def","get-history",t,async({options:e,context:t})=>{await(0,o.flowDefGetHistoryCommand)(t,e)}));const s=n.command("runtime").description("Flow runtime operations");s.command("opinion-delete").description("delete").requiredOption("--id <id>","id").action((0,i.createCommandAction)("flow runtime","opinion-delete",t,async({options:e,context:t})=>{await(0,a.flowRuntimeOpinionDeleteCommand)(t,e)})),s.command("opinion-edit").description("edit").requiredOption("--id <id>","id").option("--opinion <opinion>","opinion").option("--opinionType <opinionType>","opinionType").option("--multilang <multilang>","multilang").action((0,i.createCommandAction)("flow runtime","opinion-edit",t,async({options:e,context:t})=>{await(0,a.flowRuntimeOpinionEditCommand)(t,e)})),s.command("opinion-list").description("list").option("--type <type>","type").option("--sourceWorkflowId <sourceWorkflowId>","sourceWorkflowId").option("--activityId <activityId>","activityId").option("--opinionType <opinionType>","opinionType").option("--isInstance <isInstance>","isInstance").action((0,i.createCommandAction)("flow runtime","opinion-list",t,async({options:e,context:t})=>{await(0,a.flowRuntimeOpinionListCommand)(t,e)})),s.command("opinion-save").description("save").option("--type <type>","type").option("--opinion <opinion>","opinion").option("--opinionType <opinionType>","opinionType").option("--multilang <multilang>","multilang").action((0,i.createCommandAction)("flow runtime","opinion-save",t,async({options:e,context:t})=>{await(0,a.flowRuntimeOpinionSaveCommand)(t,e)})),s.command("opinion-priorities").description("setPriorities").requiredOption("--priorities <priorities>","priorities").action((0,i.createCommandAction)("flow runtime","opinion-priorities",t,async({options:e,context:t})=>{await(0,a.flowRuntimeOpinionPrioritiesCommand)(t,e)})),s.command("element-find").description("find").requiredOption("--apiName <apiName>","apiName").action((0,i.createCommandAction)("flow runtime","element-find",t,async({options:e,context:t})=>{await(0,a.flowRuntimeElementFindCommand)(t,e)})),s.command("element-suits").description("findSuits").option("--apiName <apiName>","apiName").option("--entityId <entityId>","entityId").option("--type <type>","type").action((0,i.createCommandAction)("flow runtime","element-suits",t,async({options:e,context:t})=>{await(0,a.flowRuntimeElementSuitsCommand)(t,e)})),s.command("task-delay").description("delayTaskReflushAndExecute").option("--operationType <operationType>","operationType").option("--taskId <taskId>","taskId").option("--type <type>","type").action((0,i.createCommandAction)("flow runtime","task-delay",t,async({options:e,context:t})=>{await(0,a.flowRuntimeTaskDelayCommand)(t,e)})),s.command("task-execute").description("executeFunction").option("--context <context>","context").option("--taskId <taskId>","taskId").option("--functionType <functionType>","functionType").action((0,i.createCommandAction)("flow runtime","task-execute",t,async({options:e,context:t})=>{await(0,a.flowRuntimeTaskExecuteCommand)(t,e)})),s.command("manage-count").description("flowManageCount").action((0,i.createCommandAction)("flow runtime","manage-count",t,async({context:e})=>{await(0,a.flowRuntimeManageCountCommand)(e,{})})),s.command("handler-change").description("changeHandler").requiredOption("--targetUserId <targetUserId>","targetUserId").option("--sourceUserId <sourceUserId>","sourceUserId").requiredOption("--typeList <typeList>","typeList").action((0,i.createCommandAction)("flow runtime","handler-change",t,async({options:e,context:t})=>{await(0,a.flowRuntimeHandlerChangeCommand)(t,e)})),s.command("link-list").description("list").option("--type <type>","type").option("--sourceWorkflowId <sourceWorkflowId>","sourceWorkflowId").option("--activityId <activityId>","activityId").option("--opinionType <opinionType>","opinionType").option("--isInstance <isInstance>","isInstance").action((0,i.createCommandAction)("flow runtime","link-list",t,async({options:e,context:t})=>{await(0,a.flowRuntimeLinkListCommand)(t,e)})),s.command("log-detail").description("detail").option("--type <type>","type").option("--bizType <bizType>","bizType").option("--id <id>","id").option("--matchId <matchId>","matchId").action((0,i.createCommandAction)("flow runtime","log-detail",t,async({options:e,context:t})=>{await(0,a.flowRuntimeLogDetailCommand)(t,e)})),s.command("instance-detail").description("getFlowInstanceDetail").option("--type <type>","type").option("--bizType <bizType>","bizType").option("--id <id>","id").option("--matchId <matchId>","matchId").action((0,i.createCommandAction)("flow runtime","instance-detail",t,async({options:e,context:t})=>{await(0,a.flowRuntimeInstanceDetailCommand)(t,e)})),s.command("instance-logs").description("getFlowInstanceLogs").option("--type <type>","type").option("--bizType <bizType>","bizType").option("--id <id>","id").option("--matchId <matchId>","matchId").action((0,i.createCommandAction)("flow runtime","instance-logs",t,async({options:e,context:t})=>{await(0,a.flowRuntimeInstanceLogsCommand)(t,e)})),s.command("handover-logs").description("handoverLogs").option("--type <type>","type").option("--bizType <bizType>","bizType").option("--id <id>","id").option("--matchId <matchId>","matchId").action((0,i.createCommandAction)("flow runtime","handover-logs",t,async({options:e,context:t})=>{await(0,a.flowRuntimeHandoverLogsCommand)(t,e)})),s.command("log-list").description("list").option("--type <type>","type").option("--sourceWorkflowId <sourceWorkflowId>","sourceWorkflowId").option("--activityId <activityId>","activityId").option("--opinionType <opinionType>","opinionType").option("--isInstance <isInstance>","isInstance").action((0,i.createCommandAction)("flow runtime","log-list",t,async({options:e,context:t})=>{await(0,a.flowRuntimeLogListCommand)(t,e)})),s.command("log-header").description("listHeader").requiredOption("--type <type>","type").requiredOption("--bizType <bizType>","bizType").action((0,i.createCommandAction)("flow runtime","log-header",t,async({options:e,context:t})=>{await(0,a.flowRuntimeLogHeaderCommand)(t,e)})),s.command("batch-process").description("batchProcessTasks").option("--context <context>","context").option("--operation <operation>","operation").option("--data <data>","data").action((0,i.createCommandAction)("flow runtime","batch-process",t,async({options:e,context:t})=>{await(0,a.flowRuntimeBatchProcessCommand)(t,e)})),s.command("batch-replace").description("batchReplaceCandidateIds").action((0,i.createCommandAction)("flow runtime","batch-replace",t,async({context:e})=>{await(0,a.flowRuntimeBatchReplaceCommand)(e,{})})),s.command("batch-buttons").description("getBatchOperationCustomButtons").option("--type <type>","type").option("--sessionKey <sessionKey>","sessionKey").option("--entityId <entityId>","entityId").requiredOption("--client <client>","client").action((0,i.createCommandAction)("flow runtime","batch-buttons",t,async({options:e,context:t})=>{await(0,a.flowRuntimeBatchButtonsCommand)(t,e)})),s.command("batch-result").description("getBatchOperationResult").option("--context <context>","context").option("--operation <operation>","operation").option("--requestId <requestId>","requestId").action((0,i.createCommandAction)("flow runtime","batch-result",t,async({options:e,context:t})=>{await(0,a.flowRuntimeBatchResultCommand)(t,e)})),s.command("one-instance-get-current-block-tasks").description("getCurrentBlockTasks").requiredOption("--workflowInstanceId <workflowInstanceId>","workflowInstanceId").action((0,i.createCommandAction)("flow runtime","one-instance-get-current-block-tasks",t,async({options:e,context:t})=>{await(0,a.flowRuntimeGetCurrentBlockTasksCommand)(t,e)})),s.command("one-instance-complete-task").description("completeTask").requiredOption("--taskId <taskId>","taskId").requiredOption("--inputs <inputs>","inputs").action((0,i.createCommandAction)("flow runtime","one-instance-complete-task",t,async({options:e,context:t})=>{await(0,a.flowRuntimeCompleteTaskCommand)(t,e)})),s.command("one-instance-debug").description("debug").requiredOption("--sourceWorkflowId <sourceWorkflowId>","sourceWorkflowId").option("--context <context>","context").option("--inputs <inputs>","inputs").option("--source <source>","source").option("--eventId <eventId>","eventId").option("--workflowId <workflowId>","workflowId").option("--batchTrigger <batchTrigger>","batchTrigger").option("--async <async>","async").option("--workflowInstanceId <workflowInstanceId>","workflowInstanceId").option("--identity <identity>","identity").option("--viaHttpShort <viaHttpShort>","viaHttpShort").action((0,i.createCommandAction)("flow runtime","one-instance-debug",t,async({options:e,context:t})=>{await(0,a.flowRuntimeDebugCommand)(t,e)}))};const i=n(528),o=n(5547),a=n(2325)},6592(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerNamespaces=function(e,t){(0,i.registerInitCommand)(e,t),(0,o.registerConfigCommand)(e,t),(0,a.registerAplNamespace)(e,t),(0,r.registerCompletionCommand)(e,t),(0,s.registerDocsNamespace)(e,t),(0,c.registerDevMetadataNamespace)(e,t),(0,l.registerPwcNamespace)(e,t),(0,p.registerSkillNamespace)(e,t),(0,u.registerSpecNamespace)(e,t),(0,d.registerObjectDevNamespace)(e,t),(0,m.registerTraceNamespace)(e,t),(0,f.registerOrgDevNamespace)(e,t),(0,h.registerApprovalNamespace)(e,t),(0,g.registerBpmNamespace)(e,t),(0,v.registerStageNamespace)(e,t),(0,y.registerFlowNamespace)(e,t),(0,b.registerWorkflowNamespace)(e,t)};const i=n(212),o=n(7800),a=n(2787),r=n(1012),s=n(9357),c=n(2521),l=n(1218),p=n(5825),u=n(8805),d=n(2903),m=n(9449),f=n(3188),h=n(3689),g=n(4781),v=n(1542),y=n(5014),b=n(6963)},212(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerInitCommand=function(e,t){const n=e.command("init").description("Initialize sharedev workspace and settings");n.addHelpText("after","\nExamples:\n $ sharedev init -e my-ea -d https://example.fxiaoke.com -c my-certificate\n $ sharedev init --yes -e my-ea -p my-project -d https://example.fxiaoke.com -c my-certificate --pull-all-apl --agent codex\n $ sharedev init --yes -e my-ea -d https://example.fxiaoke.com -c my-certificate --pull-all-pwc --remote-url=https://github.com/acme/repo.git --agent cursor --force\n"),n.option("-e, --ea <enterpriseEA>","Enterprise EA").option("-p, --project-name <projectName>","Project folder name (defaults to enterprise EA)").option("-d, --domain <url>","Enterprise domain URL").option("-c, --certificate <token>","Developer certificate token").option("--pull-all-apl","With --yes: pull all APL functions; without --yes: used as multiselect default").option("--pull-all-pwc","With --yes: pull all PWC resources; without --yes: used as multiselect default").option("--agent <agentName>","With --yes: required for spec initialization; without --yes: agent is selected interactively").option("--remote-url <url>","With --yes: bind git remote directly when provided; without --yes: used as default input").option("-f, --force","Overwrite existing .sharedev/settings.json and spec target files").option("-y, --yes","Run non-interactively with provided options").action(async(...e)=>{const n=e[e.length-1].opts();await(0,i.initProjectCommand)(t,n)})};const i=n(3421)},2903(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerObjectDevNamespace=function(e,t){const n=e.command("object-dev").description("Object development workspace commands");n.addHelpText("after",'\nExamples:\n $ sharedev object-dev object pull --all\n $ sharedev object-dev object pull --custom\n $ sharedev object-dev object pull --package\n $ sharedev object-dev object pull --apiName AccountObj\n $ sharedev object-dev object create --apiName AccountObj --data "{}"\n $ sharedev object-dev object update --apiName AccountObj --data "{}"\n $ sharedev object-dev object push --apiName AccountObj --layout\n $ sharedev object-dev field create --objectApiName AccountObj --apiName name --data "{}"\n $ sharedev object-dev field update --objectApiName AccountObj --apiName name --data "{}"\n $ sharedev object-dev field push --objectApiName AccountObj --fieldApiName name\n $ sharedev object-dev layout pull --objectApiNames AccountObj,LeadsObj\n $ sharedev object-dev layout pull --objectApiName AccountObj --type detail --namespace flow\n $ sharedev object-dev layout push --objectApiName AccountObj --layoutApiName AccountObj_layout__c --type detail\n $ sharedev object-dev layout-rule pull --objectApiName AccountObj --namespace flow\n $ sharedev object-dev layout-rule push --objectApiName AccountObj --layoutRuleApiName rule_ay__c\n $ sharedev object-dev validate-rule create --apiName rule_xxx__c --data "{"describe_api_name":"AccountObj"}"\n $ sharedev object-dev validate-rule pull --apiName AccountObj\n $ sharedev object-dev validate-rule push --objectApiName AccountObj --apiName rule_xxx__c\n');const a=n.command("object").description("Object describe operations");a.command("pull").description("Pull object describe metadata via shareCli execute").option("--all","Pull all object describe metadata").option("--custom","Pull custom object describe metadata only").option("--package","Pull package object describe metadata only").option("--apiName <apiName>","Pull one object describe by apiName").action((0,i.createCommandAction)("object-dev","object.pull",t,async({options:e,context:t})=>{await(0,o.objectDevObjectPullCommand)(e)})),a.command("create").description("Create local object metadata xml without remote API call").option("--apiName <apiName>","Object apiName to create").option("--data <json>","Object describe data (JSON string)").action((0,i.createCommandAction)("object-dev","object.create",t,async({options:e,context:t})=>{await(0,o.objectDevObjectCreateCommand)(e)})),a.command("update").description("Update local object metadata xml without remote API call").option("--apiName <apiName>","Object apiName to update").option("--data <json>","Object describe data (JSON string)").action((0,i.createCommandAction)("object-dev","object.update",t,async({options:e,context:t})=>{await(0,o.objectDevObjectUpdateCommand)(e)})),a.command("push").description("Push object describe metadata via shareCli execute").option("--apiName <apiName>","Object apiName to push").option("--layout","Include local layout metadata when pushing object").action((0,i.createCommandAction)("object-dev","object.push",t,async({options:e,context:t})=>{await(0,o.objectDevObjectPushCommand)(e)}));const r=n.command("field").description("Object field operations");r.command("create").description("Create local field metadata xml without remote API call").option("--objectApiName <apiName>","Target object apiName").option("--apiName <apiName>","Target field apiName to create").option("--fieldApiName <apiName>","Alias of --apiName").option("--data <json>","Field describe data (JSON string)").action((0,i.createCommandAction)("object-dev","field.create",t,async({options:e,context:t})=>{await(0,o.objectDevFieldCreateCommand)(e)})),r.command("update").description("Update local field metadata xml without remote API call").option("--objectApiName <apiName>","Target object apiName").option("--apiName <apiName>","Target field apiName to update").option("--fieldApiName <apiName>","Alias of --apiName").option("--data <json>","Field describe data (JSON string)").action((0,i.createCommandAction)("object-dev","field.update",t,async({options:e,context:t})=>{await(0,o.objectDevFieldUpdateCommand)(e)})),r.command("push").description("Push object fields via shareCli execute").option("--objectApiName <apiName>","Target object apiName").option("--fieldApiName <apiName>","Target field apiName").action((0,i.createCommandAction)("object-dev","field.push",t,async({options:e,context:t})=>{await(0,o.objectDevFieldPushCommand)(e)}));const s=n.command("layout").description("Object layout operations");s.command("pull").description("Pull object layouts via shareCli execute").option("--objectApiNames <apiNames>","Pull all layouts for object apiName list, comma separated").option("--objectApiName <apiName>","Pull one layout for the object apiName").option("--layoutApiName <layoutApiName>","Layout apiName for single layout pull").option("--type <layoutType>","Layout type: detail | edit | list_layout | list (default: detail)").option("--namespace <namespace>","Layout namespace, e.g. flow").action((0,i.createCommandAction)("object-dev","layout.pull",t,async({options:e,context:t})=>{await(0,o.objectDevLayoutPullCommand)(e)})),s.command("push").description("Push object layouts via shareCli execute").option("--objectApiName <apiName>","Target object apiName").option("--layoutApiName <layoutApiName>","Target layout apiName").option("--type <layoutType>","Layout type for push, e.g. detail | edit | list_layout | list").action((0,i.createCommandAction)("object-dev","layout.push",t,async({options:e,context:t})=>{await(0,o.objectDevLayoutPushCommand)(e)}));const c=n.command("layout-rule").description("Object layout-rule operations");c.command("pull").description("Pull object layout-rules via shareCli execute").option("--objectApiName <apiName>","Target object apiName").option("--namespace <namespace>","Namespace used by QueryLayoutRuleRelatedInfo, default: flow").action((0,i.createCommandAction)("object-dev","layout-rule.pull",t,async({options:e,context:t})=>{await(0,o.objectDevLayoutRulePullCommand)(e)})),c.command("push").description("Push object layout-rules via shareCli execute").option("--objectApiName <apiName>","Target object apiName").option("--layoutRuleApiName <apiName>","Target layout-rule apiName").action((0,i.createCommandAction)("object-dev","layout-rule.push",t,async({options:e,context:t})=>{await(0,o.objectDevLayoutRulePushCommand)(e)}));const l=n.command("validate-rule").description("Object validate-rule operations");l.command("create").description("Create local validate-rule metadata xml without remote API call").option("--apiName <apiName>","Validate-rule apiName to create").option("--data <json>","Validate-rule data (JSON string), must include describe_api_name or describeApiName").action((0,i.createCommandAction)("object-dev","validate-rule.create",t,async({options:e,context:t})=>{await(0,o.objectDevValidateRuleCreateCommand)(e)})),l.command("pull").description("Pull object validate-rules via shareCli execute").option("--apiName <apiName>","Target object apiName").action((0,i.createCommandAction)("object-dev","validate-rule.pull",t,async({options:e,context:t})=>{await(0,o.objectDevValidateRulePullCommand)(e)})),l.command("push").description("Push object validate-rule via shareCli execute").option("--objectApiName <apiName>","Target object apiName").option("--apiName <apiName>","Target validate-rule apiName").action((0,i.createCommandAction)("object-dev","validate-rule.push",t,async({options:e,context:t})=>{await(0,o.objectDevValidateRulePushCommand)(e)}))};const i=n(528),o=n(9355)},3188(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerOrgDevNamespace=function(e,t){const n=e.command("org-dev").description("Organization development commands");n.addHelpText("after","\nExamples:\n $ sharedev org-dev user query --name 张三\n $ sharedev org-dev department query --name 销售\n"),n.command("user").description("Org user commands").command("query").description("Query users by name keyword").requiredOption("--name <name>","User name keyword").action((0,i.createCommandAction)("org-dev","user.query",t,async({options:e,context:t})=>{await(0,o.orgDevUserQueryCommand)(t,e)})),n.command("department").description("Org department commands").command("query").description("Query departments by name keyword").requiredOption("--name <name>","Department name keyword").action((0,i.createCommandAction)("org-dev","department.query",t,async({options:e,context:t})=>{await(0,o.orgDevDepartmentQueryCommand)(t,e)}))};const i=n(528),o=n(8967)},1218(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerPwcNamespace=function(e,t){const n=e.command("pwc").description("PWC workspace commands");n.addHelpText("after","\nExamples:\n $ sharedev pwc pull --apiname MyComponent --type component\n $ sharedev pwc pull --apiname MyPlugin --type plugin\n $ sharedev pwc pull --all --type component\n $ sharedev pwc push --apiname MyComponent --type component\n $ sharedev pwc push --apiname MyPlugin --type plugin\n $ sharedev pwc deploy --apiname MyComponent --type component\n $ sharedev pwc create --type component --name Demo --apiname demo__c\n"),n.command("pull").description("Pull PWC source from remote").option("--apiname <apiName>","Pull one PWC resource by apiName").option("--all","Pull all PWC resources of the specified type").requiredOption("--type <type>","PWC type: component or plugin").action((0,i.createCommandAction)("pwc","pull",t,async({options:e,context:t})=>{await(0,o.pwcPullCommand)(e.apiname,e,t)})),n.command("deploy").description("Deploy local PWC source to remote (push + build + publish)").option("--apiname <apiName>","Deploy one PWC resource by apiName").option("--path <path>","Deploy one PWC resource by local path").requiredOption("--type <type>","PWC type: component or plugin").action((0,i.createCommandAction)("pwc","deploy",t,async({options:e,context:t})=>{const n=a("deploy",e.apiname,e.path);await(0,o.pwcDeployCommand)(n,e,t)})),n.command("create").description("Create a new PWC resource and pull it into local workspace").option("--type <type>","PWC type: component or plugin").option("--name <name>","PWC name").option("--apiname <apiName>","PWC API name").option("--description <description>","Description").option("--component-type <componentType>","Component type, e.g. vue/applet").option("--client-types <clientTypes>","Component client types, comma separated: web,app").option("--scope-page-types <scopePageTypes>","Component page types, comma separated").option("--client <client>","Plugin client: web or app").option("--plugin-type <pluginType>","Plugin type value").option("--limit-obj <limitObj>","Restrict objects: true or false").option("--scope-objects <scopeObjects>","Object api names, comma separated").action((0,i.createCommandAction)("pwc","create",t,async({options:e,context:t})=>{const n={...e,apiName:e.apiName??e.apiname};await(0,o.pwcCreateCommand)(n,t)})),["init","publish","dev"].forEach(e=>{n.command(`${e} [apiName]`).description(`Placeholder for pwc ${e}`).action((0,i.createCommandAction)("pwc",e,t,async()=>{await(0,o.pwcPlaceholderCommand)(e)}))}),n.command("push").description("Push local PWC source to remote (upload files and update metadata, no build)").option("--apiname <apiName>","Push one PWC resource by apiName").option("--path <path>","Push one PWC resource by local path").requiredOption("--type <type>","PWC type: component or plugin").action((0,i.createCommandAction)("pwc","push",t,async({options:e,context:t})=>{const n=a("push",e.apiname,e.path);await(0,o.pwcPushCommand)(n,e,t)}))};const i=n(528),o=n(7363);function a(e,t,n){const i=t?.trim(),o=n?.trim();if(i&&o)throw new Error(`Invalid arguments: use either --apiname or --path for pwc ${e}, not both.`);if(!i&&!o)throw new Error(`Invalid arguments: use sharedev pwc ${e} --apiname <apiName> --type <component|plugin> (or --path <path>).`);return o??i}},5825(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerSkillNamespace=function(e,t){const n=e.command("skill").description("Skill workspace commands");n.addHelpText("after","\nExamples:\n $ sharedev skill pull ExampleSkill\n $ sharedev skill push ExampleSkill\n"),["pull","push"].forEach(e=>{n.command(`${e} [apiName]`).description(`Placeholder for skill ${e}`).action((0,i.createCommandAction)("skill",e,t,async()=>{o.loggerService.warn(`sharedev skill ${e} is not implemented yet.`)}))})};const i=n(528),o=n(3333)},8805(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerSpecNamespace=function(e,t){e.command("spec").description("Specification workspace commands").command("init").description("Initialize agent spec template").action((0,i.createCommandAction)("spec","init",t,async({context:e})=>{await(0,o.specInitCommand)(e)}))};const i=n(528),o=n(3299)},1542(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerStageNamespace=function(e,t){const n=e.command("stage").description("Stage commands (stage definition & runtime)"),r=n.command("def").description("Stage definition commands");r.command("list").description("List stage definitions").option("--name <name>","Stage definition name").option("--enable <enable>","Enable flag: true|false").option("--entityId <entityId>","Entity id").option("--supportPagingQuery <supportPagingQuery>","Support paging query: true|false").option("--page <page>","Page number").option("--pageSize <pageSize>","Page size").option("--from <from>","From source").option("--sourceWorkflowIds <sourceWorkflowIds>","Source workflow ids").action((0,i.createCommandAction)("stage def","list",t,async({options:e,context:t})=>{await(0,o.stageDefListCommand)(t,e)})),r.command("detail").description("Query stage definition detail by source workflow id").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").action((0,i.createCommandAction)("stage def","detail",t,async({options:e,context:t})=>{await(0,o.stageDefDetailCommand)(t,e)})),r.command("deploy").description("Deploy stage definition").option("--name <name>","Stage definition name").option("--description <description>","Stage definition description").option("--entityId <entityId>","Entity id").option("--entityName <entityName>","Entity name").option("--type <type>","Stage definition type").option("--stageFieldApiName <stageFieldApiName>","Stage field api name").option("--activities <activities>","Activities payload string").option("--variables <variables>","Variables payload string").option("--transitions <transitions>","Transitions payload string").option("--rule <rule>","Rule payload string").option("--enable <enable>","Enable: true|false").option("--linkAppEnable <linkAppEnable>","Link app enable: true|false").option("--linkApp <linkApp>","Link app").option("--linkAppName <linkAppName>","Link app name").option("--linkAppType <linkAppType>","Link app type").option("--priority <priority>","Priority").option("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--id <id>","Definition id").option("--appId <appId>","App id").option("--createTime <createTime>","Create time").option("--modifyTime <modifyTime>","Modify time").option("--creator <creator>","Creator").option("--modifier <modifier>","Modifier").option("--delete <delete>","Delete flag: true|false").option("--applyJobId <applyJobId>","Apply job id").option("--applyStatus <applyStatus>","Apply status").option("--probabilityViewOnInstance <probabilityViewOnInstance>","Probability view on instance: true|false").option("--backTask <backTask>","Back task").option("--backFunctionRule <backFunctionRule>","Back function rule").option("--stageShowFunction <stageShowFunction>","Stage show function").option("--controlStatus <controlStatus>","Control status").option("--modifyRecord <modifyRecord>","Modify record").option("--nameTranslateInfo <nameTranslateInfo>","Name translate info").option("--descTranslateInfo <descTranslateInfo>","Desc translate info").option("--rangeEmployeeIds <rangeEmployeeIds>","Range employee ids").option("--rangeCircleIds <rangeCircleIds>","Range circle ids").option("--rangeGroupIds <rangeGroupIds>","Range group ids").option("--rangeRoleIds <rangeRoleIds>","Range role ids").action((0,i.createCommandAction)("stage def","deploy",t,async({options:e,context:t})=>{await(0,o.stageDefDeployCommand)(t,e)})),r.command("update").description("Update stage definition").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--name <name>","Stage definition name").option("--description <description>","Stage definition description").option("--entityId <entityId>","Entity id").option("--type <type>","Stage definition type").option("--stageFieldApiName <stageFieldApiName>","Stage field api name").option("--activities <activities>","Activities payload string").option("--variables <variables>","Variables payload string").option("--transitions <transitions>","Transitions payload string").option("--rule <rule>","Rule payload string").option("--enable <enable>","Enable: true|false").option("--priority <priority>","Priority").option("--linkAppEnable <linkAppEnable>","Link app enable: true|false").option("--linkApp <linkApp>","Link app").option("--id <id>","Definition id").option("--entityName <entityName>","Entity name").option("--appId <appId>","App id").option("--createTime <createTime>","Create time").option("--modifyTime <modifyTime>","Modify time").option("--creator <creator>","Creator").option("--modifier <modifier>","Modifier").option("--linkAppName <linkAppName>","Link app name").option("--linkAppType <linkAppType>","Link app type").option("--delete <delete>","Delete flag: true|false").option("--applyJobId <applyJobId>","Apply job id").option("--applyStatus <applyStatus>","Apply status").option("--probabilityViewOnInstance <probabilityViewOnInstance>","Probability view on instance: true|false").option("--backTask <backTask>","Back task").option("--backFunctionRule <backFunctionRule>","Back function rule").option("--stageShowFunction <stageShowFunction>","Stage show function").option("--controlStatus <controlStatus>","Control status").option("--modifyRecord <modifyRecord>","Modify record").option("--nameTranslateInfo <nameTranslateInfo>","Name translate info").option("--descTranslateInfo <descTranslateInfo>","Desc translate info").option("--rangeEmployeeIds <rangeEmployeeIds>","Range employee ids").option("--rangeCircleIds <rangeCircleIds>","Range circle ids").option("--rangeGroupIds <rangeGroupIds>","Range group ids").option("--rangeRoleIds <rangeRoleIds>","Range role ids").action((0,i.createCommandAction)("stage def","update",t,async({options:e,context:t})=>{await(0,o.stageDefUpdateCommand)(t,e)})),r.command("enable").description("Enable/disable stage definition").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").requiredOption("--enable <enable>","Enable: true|false").action((0,i.createCommandAction)("stage def","enable",t,async({options:e,context:t})=>{await(0,o.stageDefEnableCommand)(t,e)})),r.command("delete").description("Delete stage definition").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").action((0,i.createCommandAction)("stage def","delete",t,async({options:e,context:t})=>{await(0,o.stageDefDeleteCommand)(t,e)})),r.command("priorities").description("Update stage definition priorities").requiredOption("--priorities <priorities>","Priorities payload string").action((0,i.createCommandAction)("stage def","priorities",t,async({options:e,context:t})=>{await(0,o.stageDefPrioritiesCommand)(t,e)})),r.command("export-apply-data").description("Export apply data").requiredOption("--jobId <jobId>","Job id").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").requiredOption("--workflowId <workflowId>","Workflow id").requiredOption("--entityId <entityId>","Entity id").option("--applyAble <applyAble>","Apply able: true|false").action((0,i.createCommandAction)("stage def","export-apply-data",t,async({options:e,context:t})=>{await(0,o.stageDefExportApplyDataCommand)(t,e)})),r.command("query-apply-history").description("Query apply history").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").requiredOption("--jobId <jobId>","Job id").action((0,i.createCommandAction)("stage def","query-apply-history",t,async({options:e,context:t})=>{await(0,o.stageDefQueryApplyHistoryCommand)(t,e)}));const s=n.command("runtime").description("Stage runtime operations");s.command("back-validate").description("backToValidate").requiredOption("--workflowInstanceId <workflowInstanceId>","workflowInstanceId").requiredOption("--stageId <stageId>","stageId").action((0,i.createCommandAction)("stage runtime","back-validate",t,async({options:e,context:t})=>{await(0,a.stageRuntimeBackValidateCommand)(t,e)})),s.command("instance-info").description("getInstanceInfoByObjectId").requiredOption("--entityId <entityId>","entityId").requiredOption("--objectId <objectId>","objectId").action((0,i.createCommandAction)("stage runtime","instance-info",t,async({options:e,context:t})=>{await(0,a.stageRuntimeInstanceInfoCommand)(t,e)})),s.command("instance-cancel").description("cancel").requiredOption("--entityId <entityId>","entityId").requiredOption("--objectId <objectId>","objectId").option("--cancelReason <cancelReason>","cancelReason").action((0,i.createCommandAction)("stage runtime","instance-cancel",t,async({options:e,context:t})=>{await(0,a.stageRuntimeInstanceCancelCommand)(t,e)})),s.command("instance-reactive").description("reactive").requiredOption("--workflowInstanceId <workflowInstanceId>","workflowInstanceId").requiredOption("--activeStageId <activeStageId>","activeStageId").option("--taskData <taskData>","taskData").option("--ignoreSkipInNoBlockValidate <ignoreSkipInNoBlockValidate>","ignoreSkipInNoBlockValidate").option("--async <async>","async").action((0,i.createCommandAction)("stage runtime","instance-reactive",t,async({options:e,context:t})=>{await(0,a.stageRuntimeInstanceReactiveCommand)(t,e)})),s.command("reactive-validate").description("reactiveValidate").requiredOption("--workflowInstanceId <workflowInstanceId>","workflowInstanceId").action((0,i.createCommandAction)("stage runtime","reactive-validate",t,async({options:e,context:t})=>{await(0,a.stageRuntimeReactiveValidateCommand)(t,e)})),s.command("instance-trigger").description("trigger").requiredOption("--entityId <entityId>","entityId").requiredOption("--objectId <objectId>","objectId").option("--sourceWorkflowId <sourceWorkflowId>","sourceWorkflowId").action((0,i.createCommandAction)("stage runtime","instance-trigger",t,async({options:e,context:t})=>{await(0,a.stageRuntimeInstanceTriggerCommand)(t,e)})),s.command("move-to-terminal").description("moveToWithTerminal").requiredOption("--workflowInstanceId <workflowInstanceId>","workflowInstanceId").requiredOption("--stageId <stageId>","stageId").option("--comment <comment>","comment").option("--ignoreSkipInNoBlockValidate <ignoreSkipInNoBlockValidate>","ignoreSkipInNoBlockValidate").option("--async <async>","async").action((0,i.createCommandAction)("stage runtime","move-to-terminal",t,async({options:e,context:t})=>{await(0,a.stageRuntimeMoveToTerminalCommand)(t,e)})),s.command("query-move-to-result").description("queryMoveToResult").requiredOption("--jobId <jobId>","jobId").action((0,i.createCommandAction)("stage runtime","query-move-to-result",t,async({options:e,context:t})=>{await(0,a.stageRuntimeQueryMoveToResultCommand)(t,e)})),s.command("task-change-handler").description("changeTaskHandler").requiredOption("--taskId <taskId>","taskId").requiredOption("--candidateIds <candidateIds>","candidateIds").action((0,i.createCommandAction)("stage runtime","task-change-handler",t,async({options:e,context:t})=>{await(0,a.stageRuntimeTaskChangeHandlerCommand)(t,e)})),s.command("task-complete-back").description("completeBackToTask").option("--workflowInstanceId <workflowInstanceId>","workflowInstanceId").option("--stageId <stageId>","stageId").option("--noBlockValidate <noBlockValidate>","noBlockValidate").option("--async <async>","async").option("--data <data>","data").option("--flowLayoutEditData <flowLayoutEditData>","flowLayoutEditData").action((0,i.createCommandAction)("stage runtime","task-complete-back",t,async({options:e,context:t})=>{await(0,a.stageRuntimeTaskCompleteBackCommand)(t,e)})),s.command("task-complete").description("completeTask").requiredOption("--taskId <taskId>","taskId").option("--comment <comment>","comment").option("--data <data>","data").option("--ignoreNoBlockValidate <ignoreNoBlockValidate>","ignoreNoBlockValidate").action((0,i.createCommandAction)("stage runtime","task-complete",t,async({options:e,context:t})=>{await(0,a.stageRuntimeTaskCompleteCommand)(t,e)})),s.command("task-complete-pre").description("completeTerminalPreTask").requiredOption("--taskId <taskId>","taskId").option("--comment <comment>","comment").option("--data <data>","data").option("--flowLayoutEditData <flowLayoutEditData>","flowLayoutEditData").option("--async <async>","async").action((0,i.createCommandAction)("stage runtime","task-complete-pre",t,async({options:e,context:t})=>{await(0,a.stageRuntimeTaskCompletePreCommand)(t,e)})),s.command("task-disassociate").description("disassociate").requiredOption("--taskId <taskId>","taskId").requiredOption("--objectIds <objectIds>","objectIds").action((0,i.createCommandAction)("stage runtime","task-disassociate",t,async({options:e,context:t})=>{await(0,a.stageRuntimeTaskDisassociateCommand)(t,e)})),s.command("task-edit").description("edit").requiredOption("--taskId <taskId>","taskId").requiredOption("--objectData <objectData>","objectData").option("--details <details>","details").option("--optionInfo <optionInfo>","optionInfo").option("--notValidate <notValidate>","notValidate").option("--originalData <originalData>","originalData").option("--originalDetails <originalDetails>","originalDetails").option("--instanceId <instanceId>","instanceId").action((0,i.createCommandAction)("stage runtime","task-edit",t,async({options:e,context:t})=>{await(0,a.stageRuntimeTaskEditCommand)(t,e)})),s.command("task-by-id").description("getById").requiredOption("--taskId <taskId>","taskId").option("--activityId <activityId>","activityId").action((0,i.createCommandAction)("stage runtime","task-by-id",t,async({options:e,context:t})=>{await(0,a.stageRuntimeTaskByIdCommand)(t,e)})),s.command("task-info-by-stage").description("getTasksInfoByInstanceIdAndStageId").requiredOption("--workflowInstanceId <workflowInstanceId>","workflowInstanceId").requiredOption("--stageId <stageId>","stageId").action((0,i.createCommandAction)("stage runtime","task-info-by-stage",t,async({options:e,context:t})=>{await(0,a.stageRuntimeTaskInfoByStageCommand)(t,e)})),s.command("task-regenerate-stage").description("regenerateHandlerByStageTaskId").requiredOption("--stageTaskId <stageTaskId>","stageTaskId").option("--opinion <opinion>","opinion").action((0,i.createCommandAction)("stage runtime","task-regenerate-stage",t,async({options:e,context:t})=>{await(0,a.stageRuntimeTaskRegenerateStageCommand)(t,e)})),s.command("task-regenerate").description("regenerateHandlerByTaskId").requiredOption("--taskId <taskId>","taskId").action((0,i.createCommandAction)("stage runtime","task-regenerate",t,async({options:e,context:t})=>{await(0,a.stageRuntimeTaskRegenerateCommand)(t,e)})),s.command("task-update-complete").description("updateAndCompleteTask").requiredOption("--taskId <taskId>","taskId").requiredOption("--data <data>","data").option("--comment <comment>","comment").option("--ignoreNoBlockValidate <ignoreNoBlockValidate>","ignoreNoBlockValidate").action((0,i.createCommandAction)("stage runtime","task-update-complete",t,async({options:e,context:t})=>{await(0,a.stageRuntimeTaskUpdateCompleteCommand)(t,e)}))};const i=n(528),o=n(1161),a=n(8281)},9449(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerTraceNamespace=function(e,t){e.command("trace").description("Send a trace event").requiredOption("-m, --subModule <subModule>","Trace subModule name").option("--str1 <str1>","str1 field").option("--str2 <str2>","str2 field").option("--str3 <str3>","str3 field").action((0,i.createCommandAction)("trace","send",t,({options:e})=>{if(!e.subModule?.trim())throw new Error("--subModule is required.");(0,o.sendTrace)({subModule:e.subModule.trim(),str1:e.str1,str2:e.str2,str3:e.str3}),a.loggerService.debug(`Trace sent: subModule=${e.subModule}`)}))};const i=n(528),o=n(3632),a=n(3333)},6963(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerWorkflowNamespace=function(e,t){const n=e.command("workflow").description("Workflow commands").command("def").description("Workflow definition commands");n.command("list").description("List workflow definitions").option("--pageNumber <pageNumber>","Page number").option("--pageSize <pageSize>","Page size").option("--keyWord <keyWord>","Keyword").option("--entityId <entityId>","Entity id").option("--enable <enable>","Enable: true|false").option("--orderBy <orderBy>","Order by").option("--asc <asc>","Sort ascending: true|false").option("--from <from>","From source").option("--supportPagingQuery <supportPagingQuery>","Support paging query: true|false").action((0,i.createCommandAction)("workflow def","list",t,async({options:e,context:t})=>{await(0,o.workflowDefListCommand)(t,e)})),n.command("detail").description("Query workflow definition detail").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").action((0,i.createCommandAction)("workflow def","detail",t,async({options:e,context:t})=>{await(0,o.workflowDefDetailCommand)(t,e)})),n.command("enable").description("Enable/disable workflow definition").option("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--enabled <enabled>","Enable flag: true or false").action((0,i.createCommandAction)("workflow def","enable",t,async({options:e,context:t})=>{await(0,o.workflowDefEnableCommand)(t,e)})),n.command("delete").description("Delete workflow definition").option("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").action((0,i.createCommandAction)("workflow def","delete",t,async({options:e,context:t})=>{await(0,o.workflowDefDeleteDefinitionCommand)(t,e)})),n.command("create").description("Create workflow definition").requiredOption("--subType <subType>","Sub type (定义的可用范围)").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").requiredOption("--name <name>","Definition name").requiredOption("--inputs <inputs>","Inputs payload string").requiredOption("--outputs <outputs>","Outputs payload string").requiredOption("--customVariableTable <customVariableTable>","Custom variable table payload string").requiredOption("--variables <variables>","Variables payload string").option("--description <description>","Definition description").option("--extension <extension>","Extension payload string").option("--enable <enable>","Enable: true|false").option("--workflowId <workflowId>","Workflow id").option("--templateType <templateType>","Template type").option("--version <version>","Version").option("--published <published>","Published: true|false").option("--publication <publication>","Publication: true|false").option("--nameTranslateInfo <nameTranslateInfo>","Name translate info").option("--descTranslateInfo <descTranslateInfo>","Desc translate info").option("--identity <identity>","Identity").action((0,i.createCommandAction)("workflow def","create",t,async({options:e,context:t})=>{await(0,o.workflowDefCreateDefinitionCommand)(t,e)})),n.command("update").description("Update workflow definition").option("--id <id>","Definition id").option("--name <name>","Definition name").option("--description <description>","Definition description").option("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--entityId <entityId>","Entity id").option("--entityName <entityName>","Entity name").option("--type <type>","Type").option("--rule <rule>","Rule payload string").option("--workflow <workflow>","Workflow payload string").option("--enable <enable>","Enable: true|false").option("--scheduleTime <scheduleTime>","Schedule time").option("--triggerTypes <triggerTypes>","Trigger types").option("--modifier <modifier>","Modifier").option("--modifyTime <modifyTime>","Modify time").option("--creator <creator>","Creator").option("--createTime <createTime>","Create time").option("--removeHistoryJob <removeHistoryJob>","Remove history job: true|false").option("--triggerNames <triggerNames>","Trigger names").option("--controlStatus <controlStatus>","Control status").option("--linkApp <linkApp>","Link app").option("--linkAppName <linkAppName>","Link app name").option("--linkAppType <linkAppType>","Link app type").option("--linkAppEnable <linkAppEnable>","Link app enable: true|false").option("--errorNotifyRecipients <errorNotifyRecipients>","Error notify recipients").option("--timezone <timezone>","Timezone").option("--nameTranslateInfo <nameTranslateInfo>","Name translate info").option("--descTranslateInfo <descTranslateInfo>","Desc translate info").action((0,i.createCommandAction)("workflow def","update",t,async({options:e,context:t})=>{await(0,o.workflowDefUpdateDefinitionCommand)(t,e)})),n.command("definition-by-id").description("Query workflow definition by workflow id").option("--workflowId <workflowId>","Workflow id").action((0,i.createCommandAction)("workflow def","definition-by-id",t,async({options:e,context:t})=>{await(0,o.workflowDefDefinitionByIdCommand)(t,e)})),n.command("logs").description("Query workflow definition logs").requiredOption("--sourceWorkflowId <sourceWorkflowId>","Source workflow id").option("--pageNumber <pageNumber>","Page number").option("--pageSize <pageSize>","Page size").action((0,i.createCommandAction)("workflow def","logs",t,async({options:e,context:t})=>{await(0,o.workflowDefLogsCommand)(t,e)}))};const i=n(528),o=n(349)},528(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createResolvedCommandContext=a,t.createCommandAction=function(e,t,n,r){return async(...s)=>{const c=s[s.length-1],l=s.slice(0,-1).filter(e=>"string"==typeof e),p=function(e){const t=e[e.length-1];return t&&"object"==typeof t&&"opts"in t?t.opts()??{}:{}}(s),u=await a(e,t,l,p,n),d=`${e} ${t}`;(0,o.traceCommand)(d,l.join(" "));const m="apl"===e&&function(e){return"pull"===e||"push"===e||"reset"===e||"compile"===e}(t);m&&i.loggerService.startLoading(function(e){return{pull:"Running APL pull",push:"Running APL push",reset:"Running APL reset",compile:"Running APL compile",list:"Running APL list",analyze:"Running APL analyze",diff:"Running APL diff",debug:"Running APL debug"}[e]??`Running APL ${e}`}(t));try{await r({args:l,options:c.opts(),context:u})}catch(t){throw"apl"===e&&i.loggerService.stopLoading(),t}}};const i=n(3333),o=n(3632);async function a(e,t,n,i,o){const a="string"==typeof i.cwd?i.cwd:o.cwd;return{...o,cwd:a,namespace:e,commandName:t,args:n,workingDir:o.workspaceRoot}}},1415(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveEntryPath=c,t.resolveSettingsSearchDir=async function(e,t){const n=await c(e,t);return n?await(0,a.pathExists)(n)&&(await(0,a.statPath)(n)).isDirectory()?n:o.default.dirname(n):t},t.findSharedevPath=l,t.getProjectPath=async function(){const e=await l(process.cwd());if(e)return o.default.join(e,"../")},t.findSettings=p,t.validateSettings=u,t.loadSettings=async function(e){const t=await p(e);if(!t)throw new Error(".sharedev/settings.json was not found. Create it in the current directory or a parent directory.");const n=await(0,a.readJsonFile)(t),i={certificate:"string"==typeof n.certificate?n.certificate:"",domain:"string"==typeof n.domain?n.domain:"",settingsPath:t,settingsDir:o.default.dirname(t)};return u(i),i};const o=i(n(6760)),a=n(5409),r=n(5332),s=o.default.join(".sharedev");async function c(e,t){if(e)return(0,r.toAbsolutePath)(e,t)}async function l(e){let t=o.default.resolve(e);for(;;){const e=o.default.join(t,s);if(await(0,a.pathExists)(e))return e;const n=o.default.dirname(t);if(n===t)return;t=n}}async function p(e){const t=await l(e);if(t)return o.default.join(t,"settings.json")}function u(e){if(!e.certificate?.trim())throw new Error("Missing certificate in .sharedev/settings.json.");if(!e.domain?.trim())throw new Error("Missing domain in .sharedev/settings.json.");if(!function(e){try{return new URL(e),!0}catch{return!1}}(e.domain))throw new Error("The domain in .sharedev/settings.json is not a valid URL.");if(!e.settingsDir||!e.settingsPath)throw new Error("Incomplete settings path information.")}},810(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createCliRuntimeContext=async function(e){const t=process.cwd(),n=await(0,i.resolveSettingsSearchDir)(void 0,t),r=await(0,i.loadSettings)(n);return o.loggerService.debug(`settingsPath=${r.settingsPath}`),o.loggerService.debug(`domain=${r.domain}`),o.loggerService.debug(`certificate=${(0,a.maskCertificate)(r.certificate)}`),{cwd:t,verbose:!1,settings:r,workspaceRoot:r.settingsDir}};const i=n(1415),o=n(3333),a=n(5332)},654(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setRuntimeDebugEnabled=function(e){globalThis.__SHAREDEV_DEBUG_RUNTIME_ENABLED__=e},t.isRuntimeDebugEnabled=function(){return c()||!1},t.writeDebug=async function(e){try{const t=await async function(e){const t=(new Date).toISOString().replace(/[:.]/g,"-"),n=(e||"unknown-command").replace(/[^a-zA-Z0-9._-]/g,"_"),i=await async function(){const e=await(0,r.findSharedevPath)(process.cwd());return e?o.default.join(e,"debug"):o.default.join(process.cwd(),".sharedev","debug")}();return o.default.join(i,`debug-${t}-${n}.json`)}(e.command);await(0,s.writeJsonFile)(t,e),c()&&a.loggerService.info(`Debug record written to ${t}`)}catch(e){a.loggerService.debug(`Failed to write debug record: ${e.message}`)}};const o=i(n(6760)),a=n(3333),r=n(1415),s=n(5409);function c(){if("boolean"==typeof globalThis.__SHAREDEV_DEBUG_RUNTIME_ENABLED__)return globalThis.__SHAREDEV_DEBUG_RUNTIME_ENABLED__}},1889(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.download=async function(e,t,n={}){const a=n.concurrency??4,s=n.delayMs??0,c=[],l=[];let p=0,u=0,d=0,m=0;const f=i.loggerService.startDownload(e),h=Math.max(1,Math.min(a,t.length||1));return await Promise.all(new Array(h).fill(0).map(()=>(async()=>{for(;;){const e=m;if(m+=1,e>=t.length)return;const n=t[e],i=f.createProgress(n.fileName);i.update(0,1);const a=o(i);try{s>0&&await r(s);const e=await n.download(a);c.push(e),p+=1,i.update(1,1)}catch(e){u+=1;const t=e instanceof Error?e.message:String(e);l.push({fileName:n.fileName,message:t}),i.fail(t)}finally{d+=1}}})())),f.complete(),{succeeded:p,failed:u,failures:l,values:c}};const i=n(3333);function o(e){return{update:(t,n)=>{e.update(t,n)},downloadByUrl:async t=>async function(e,t){const n=await fetch(e);if(!n.ok)throw new Error(`Failed to download ${e}: ${n.status} ${n.statusText}`);if(!n.body)throw new Error(`Failed to download ${e}: empty response body.`);const i=n.body.getReader(),o=Number(n.headers.get("content-length")??0)||void 0;let r=0;const s=[];for(a(t,r,o);;){const{done:e,value:n}=await i.read();if(e)break;n&&(r+=n.byteLength,s.push(n),a(t,r,o))}return a(t,r,o),Buffer.concat(s.map(e=>Buffer.from(e)))}(t,(t,n)=>{e.update(t,n)})}}function a(e,t,n){e&&e(t,n)}function r(e){return new Promise(t=>setTimeout(t,e))}},3333(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.loggerService=void 0,t.withPrefix=s,t.prefix=function(e){return s(e,r)};const o=i(n(6194)),a=i(n(9742)),r="[sharedev]";function s(e,t){return"string"!=typeof e||e.startsWith(t)?e:`${t} ${e}`}class c{constructor(){this.verboseEnabled=!1,this.spinnerState={mode:"ora",textActive:!1},this.downloadProgressMap=new Map,this.downloadReporterSeq=0}createLoadingSpinner(e){return(0,a.default)({text:s(e,r),stream:process.stderr}).start()}formatLoadingMessage(e,t){const n=e??"",i=n.includes("\n"),o=t??(i?"Executeing":void 0);return o?`${o}\n${n}`:n}stopSpinnerSilent(){const e=this.spinnerState;e.spinner&&(e.spinner.stop(),e.spinner=void 0),e.textActive=!1}ensureSpinnerStoppedBeforeOutput(){(this.spinnerState.spinner||this.spinnerState.textActive)&&this.stopSpinnerSilent()}formatBytes(e){if(!Number.isFinite(e)||e<=0)return"0 B";const t=["B","KB","MB","GB"];let n=e,i=0;for(;n>=1024&&i<t.length-1;)n/=1024,i+=1;return`${n.toFixed(0===i?0:1)} ${t[i]}`}formatDownloadProgress(e,t){if((t??0)>0){const n=t,i=Math.max(0,Math.min(1,e/n)),o=Math.floor(100*i),a=Math.floor(i*c.DOWNLOAD_BAR_WIDTH);return`[${new Array(Math.max(0,a-1)).fill("=").join("")+">"}${new Array(c.DOWNLOAD_BAR_WIDTH-a).fill(" ").join("")}] ${o}% (${this.formatBytes(e)}/${this.formatBytes(n)})`}return`${this.formatBytes(e)} downloaded`}normalizeErrorMessage(e){return e.replace(/\s+/g," ").trim()}normalizeCell(e){return"string"==typeof e?e.replace(/[\r\n\t]+/g," ").trim():"number"==typeof e&&Number.isFinite(e)?String(e):null==e?"":String(e).replace(/[\r\n\t]+/g," ").trim()}isFullWidth(e){const t=e.codePointAt(0)??0;return t>=4352&&t<=4447||t>=11904&&t<=42191||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510}displayWidth(e){let t=0;for(const n of e)t+=this.isFullWidth(n)?2:1;return t}padVisual(e,t){const n=this.displayWidth(e);return n>=t?e:e+" ".repeat(t-n)}printTable(e,t){if(this.ensureSpinnerStoppedBeforeOutput(),!e.length)return;const n=e.map(e=>this.normalizeCell(e)),i=t.map(e=>n.map((t,n)=>this.normalizeCell(e[n]))),o=n.map((e,t)=>Math.max(e.length,...i.map(e=>this.displayWidth(e[t])))),a=[];a.push(n.map((e,t)=>this.padVisual(e,o[t])).join(" ")),a.push(o.map(e=>"-".repeat(e)).join(" "));for(const e of i)a.push(e.map((e,t)=>this.padVisual(e,o[t])).join(" "));process.stdout.write(`${a.join("\n")}\n`)}renderDownloadProgress(){if(0===this.downloadProgressMap.size)return void(this.downloadProgressTitle=void 0);const e=[...this.downloadProgressMap.values()].map(e=>e.errorMessage?`${e.taskName} ${o.default.red("[FAILED]")} ${o.default.red(this.normalizeErrorMessage(e.errorMessage))}`:`${e.taskName} ${this.formatDownloadProgress(e.downloadedBytes,e.totalBytes)}`);this.updateLoading(e.join("\n"),this.downloadProgressTitle)}createDownloadProgress(e,t=200){const n="number"==typeof t?{intervalMs:t}:t,i=n.intervalMs??200;n.title&&(this.downloadProgressTitle=n.title);const o=`${e}-${Date.now()}-${Math.random().toString(16).slice(2)}`;return this.downloadProgressMap.set(o,{taskName:e,downloadedBytes:0,totalBytes:void 0,lastEmittedAt:0,intervalMs:i}),{update:(e,t)=>{const n=this.downloadProgressMap.get(o);if(!n)return;const i=Date.now(),a=0===n.lastEmittedAt||i-n.lastEmittedAt>=n.intervalMs||(t??0)>0&&e>=t;n.downloadedBytes=e,n.totalBytes=t,n.errorMessage=void 0,a&&(n.lastEmittedAt=i,this.downloadProgressMap.set(o,n),this.renderDownloadProgress())},fail:e=>{const t=this.downloadProgressMap.get(o);t&&(t.errorMessage=e,t.lastEmittedAt=Date.now(),this.downloadProgressMap.set(o,t),this.renderDownloadProgress())},finish:()=>{this.downloadProgressMap.delete(o),this.renderDownloadProgress()}}}startDownload(e){const t=++this.downloadReporterSeq,n=new Map;return this.stopLoading(),this.activeDownloadReporterId=t,this.downloadProgressMap.clear(),this.downloadProgressTitle=e,{createProgress:(t,i=200)=>{const o="number"==typeof i?{intervalMs:i,title:e}:{...i,title:e},a=this.createDownloadProgress(t,o);return{update:a.update,fail:e=>{n.set(t,this.normalizeErrorMessage(e)),a.fail(e)},finish:a.finish}},complete:()=>{if(this.activeDownloadReporterId===t){if(this.stopLoading(),n.size>0){this.warn(`Download completed with ${n.size} failed item(s):`);for(const[e,t]of n.entries())this.warn(`${e}: ${t}`)}this.activeDownloadReporterId=void 0}}}}startLoading(e,t){const n=this.formatLoadingMessage(e,t),i=this.spinnerState.mode;if("off"!==i)return"text"===i?(this.ensureSpinnerStoppedBeforeOutput(),this.spinnerState.textActive=!0,void console.error(o.default.blue(s(n,r)))):void(this.spinnerState.spinner?(this.spinnerState.spinner.text=s(n,r),this.spinnerState.spinner.start()):this.spinnerState.spinner=this.createLoadingSpinner(n));this.ensureSpinnerStoppedBeforeOutput()}updateLoading(e,t){const n=this.formatLoadingMessage(e,t),i=this.spinnerState.mode;if("off"!==i)if("text"!==i)this.spinnerState.spinner?this.spinnerState.spinner.text=s(n,r):this.startLoading(e,t);else{if(!this.spinnerState.textActive)return;console.error(o.default.blue(s(n,r)))}}succeedLoading(e){const t=this.spinnerState.mode;this.downloadProgressMap.clear(),this.downloadProgressTitle=void 0,"off"!==t&&("text"!==t?this.spinnerState.spinner&&(e?this.spinnerState.spinner.succeed(o.default.green(s(e,r))):this.spinnerState.spinner.succeed(),this.spinnerState.spinner=void 0):this.stopSpinnerSilent())}failLoading(e){const t=this.spinnerState.mode;this.downloadProgressMap.clear(),this.downloadProgressTitle=void 0,"off"!==t&&("text"!==t?this.spinnerState.spinner&&(e?this.spinnerState.spinner.fail(o.default.red(s(e,r))):this.spinnerState.spinner.fail(),this.spinnerState.spinner=void 0):this.stopSpinnerSilent())}stopLoading(){this.downloadProgressMap.clear(),this.downloadProgressTitle=void 0,this.stopSpinnerSilent()}info(e){this.ensureSpinnerStoppedBeforeOutput(),console.log(o.default.blue(s(e,r)))}success(e){this.ensureSpinnerStoppedBeforeOutput(),console.log(o.default.green(s(e,r)))}warn(e){this.ensureSpinnerStoppedBeforeOutput(),console.warn(o.default.yellow(s(e,r)))}error(e){this.ensureSpinnerStoppedBeforeOutput(),console.error(o.default.red(s(e,r)))}debug(e){this.verboseEnabled&&(this.ensureSpinnerStoppedBeforeOutput(),console.log(o.default.gray(`[sharedev:debug] ${e}`)))}printJson(e){this.ensureSpinnerStoppedBeforeOutput(),console.log(JSON.stringify(e,null,2))}printRaw(e){this.ensureSpinnerStoppedBeforeOutput(),process.stdout.write(e)}}c.DOWNLOAD_BAR_WIDTH=20,t.loggerService=new c},2351(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getShareCliCommandPath=function(e,t){return[...n[e][t]]};const n={objectDev:{queryDescribeManageList:["object-dev","object","query-describe-manage-list"],queryDescribeListByApiName:["object-dev","object","query-describe-list-by-api-name"],createObjectDescribe:["object-dev","object","create-object-describe"],updateObjectDescribe:["object-dev","object","update-object-describe"],addDescribeCustomField:["object-dev","field","add-describe-custom-field"],updateCustomFieldDescribe:["object-dev","field","update-custom-field-describe"],queryLayoutByObjDescribeApiName:["object-dev","layout","query-layout-by-obj-describe-api-name"],createViewLayout:["object-dev","layout","create-view-layout"],updateViewLayout:["object-dev","layout","update-view-layout"],createDesignerLayout:["object-dev","layout","create-designer-layout"],updateDesignerLayout:["object-dev","layout","update-designer-layout"],queryLayoutRuleRelatedInfo:["object-dev","layout-rule","query-layout-rule-related-info"],queryLayoutRuleInfo:["object-dev","layout-rule","query-layout-rule-info"],createLayoutRule:["object-dev","layout-rule","create-layout-rule"],updateLayoutRule:["object-dev","layout-rule","update-layout-rule"],queryValidateRuleList:["object-dev","validate-rule","list"],createValidateRule:["object-dev","validate-rule","create"],updateValidateRule:["object-dev","validate-rule","update"]},orgDev:{userQuery:["QueryRecordIdByName"],departmentQuery:["QueryRecordIdByName"]},approvalDef:{list:["ApprovalDefList"],logs:["ApprovalDefLogs"],detail:["ApprovalDefDetail"],deploy:["ApprovalDefDeploy"],enable:["ApprovalDefEnable"],delete:["ApprovalDefDelete"],addFreeConfig:["ApprovalDefAddFreeConfig"],getApprovalConfigList:["ApprovalDefGetApprovalConfigList"],candidateEditableCheck:["ApprovalDefCandidateEditableCheck"],deleteFreeConfig:["ApprovalDefDeleteFreeConfig"],switchFlowType:["ApprovalDefSwitchFlowType"],updateFreeConfig:["ApprovalDefUpdateFreeConfig"]},bpmDef:{list:["BpmDefList"],detail:["BpmDefDetail"],definitionById:["BpmDefDefinitionById"],logs:["BpmDefLogs"],enable:["BpmDefEnable"],deploy:["BpmDefCreateDefinition"],update:["BpmDefUpdateDefinition"],appActions:["BpmDefAppActions"],delete:["BpmDefDeleteDefinition"]},stageDef:{list:["StageDefList"],detail:["StageDefDetail"],deploy:["StageDefDeploy"],update:["StageDefUpdate"],enable:["StageDefEnable"],delete:["StageDefDelete"],priorities:["StageDefPriorities"],exportApplyData:["StageDefExportApplyData"],queryApplyHistory:["StageDefQueryApplyHistory"]},flowDef:{list:["FlowDefList"],detail:["FlowDefDetail"],enable:["FlowDefEnable"],delete:["FlowDefDelete"],publish:["FlowDefPublish"],deploy:["FlowDefDeploy"],conf:["FlowDefConf"],update:["FlowDefUpdate"],saveAs:["FlowDefSaveAs"],active:["FlowDefActive"],basicInfo:["FlowDefBasicInfo"],expressionCheck:["FlowDefExpressionCheck"],expressionDebug:["FlowDefExpressionDebug"],getHistory:["FlowDefGetHistory"]},workflowDef:{list:["WorkflowDefList"],detail:["WorkflowDefDetail"],enable:["WorkflowDefEnable"],delete:["WorkflowDefDeleteDefinition"],create:["WorkflowDefCreateDefinition"],update:["WorkflowDefUpdateDefinition"],definitionById:["WorkflowDefDefinitionById"],logs:["WorkflowDefLogs"]},approvalRuntime:{cancel:["ApprovalInstanceCancel"],instanceDetail:["ApprovalInstanceDetail"],detailChange:["ApprovalInstanceDetailChange"],instanceIdByObject:["ApprovalInstanceIdByObject"],previewTasks:["ApprovalPreviewTasks"],getCurrentInstance:["ApprovalGetCurrentInstance"],retryTask:["ApprovalRetryTask"],addExtraNode:["ApprovalTaskAddExtraNode"],carbonCopy:["ApprovalTaskCarbonCopy"],changeFreeHandler:["ApprovalTaskChangeFreeHandler"],changeHandler:["ApprovalTaskChangeHandler"],complete:["ApprovalTaskComplete"],deleteReply:["ApprovalTaskDeleteReply"],edit:["ApprovalTaskFormEdit"],feedDetail:["ApprovalFeedDetail"],taskButtons:["ApprovalTaskButtons"],canRefuseTasks:["ApprovalCanRefuseTasks"],taskExtraData:["ApprovalTaskExtraData"],reanalysis:["ApprovalTaskReanalysis"],reject:["ApprovalTaskReject"],remind:["ApprovalTaskRemind"],reply:["ApprovalTaskReply"],retrieve:["ApprovalTaskRetrieve"],retrieveCheck:["ApprovalTaskRetrieveCheck"],updateComplete:["ApprovalTaskUpdateComplete"],defaultFormEdit:["ApprovalTaskDefaultFormEdit"]},bpmRuntime:{instanceRetry:["BpmInstanceRetry"],cancel:["BpmInstanceCancel"],getInstanceForm:["BpmGetInstanceForm"],getInstanceList:["BpmGetInstanceList"],getInstanceLogs:["BpmGetInstanceLogs"],trigger:["BpmTrigger"],taskAfterRetry:["BpmTaskAfterActionRetry"],changeHandler:["BpmTaskChangeHandler"],completeCreateRelateTask:["BpmTaskCompleteCreateRelateTask"],completeTask:["BpmTaskComplete"],edit:["BpmTaskFormEdit"],taskButtons:["BpmTaskButtons"],getTaskInfo:["BpmGetTaskInfo"],getTaskListByLane:["BpmGetTaskListByLane"],operateTask:["BpmTaskOperate"],refreshHandler:["BpmTaskRefreshHandler"],remind:["BpmTaskRemind"],updateAndComplete:["BpmTaskUpdateAndComplete"]},flowRuntime:{opinionDelete:["FlowOpinionDelete"],opinionEdit:["FlowOpinionEdit"],opinionList:["FlowOpinionList"],opinionSave:["FlowOpinionSave"],opinionPriorities:["FlowOpinionPriorities"],elementFind:["FlowElementFind"],elementSuits:["FlowElementSuits"],taskDelay:["FlowTaskDelay"],taskExecute:["FlowTaskExecute"],manageCount:["FlowManageCount"],handlerChange:["FlowHandlerChange"],linkList:["FlowLinkList"],logDetail:["FlowLogDetail"],instanceDetail:["FlowInstanceDetail"],instanceLogs:["FlowInstanceLogs"],handoverLogs:["FlowHandoverLogs"],logList:["FlowLogList"],logHeader:["FlowLogHeader"],batchProcess:["FlowBatchProcess"],batchReplace:["FlowBatchReplace"],batchButtons:["FlowBatchButtons"],batchResult:["FlowBatchResult"],getCurrentBlockTasks:["OneInstanceGetCurrentBlockTasks"],completeTask:["OneInstanceCompleteTask"],debug:["OneInstanceDebug"]},stageRuntime:{backValidate:["StageBackValidate"],instanceInfo:["StageInstanceInfo"],cancel:["StageInstanceCancel"],reactive:["StageInstanceReactive"],reactiveValidate:["StageReactiveValidate"],trigger:["StageInstanceTrigger"],moveToTerminal:["InstanceMoveToTerminal"],queryMoveToResult:["InstanceQueryMoveToResult"],changeHandler:["StageTaskChangeHandler"],completeBack:["StageTaskCompleteBack"],complete:["StageTaskComplete"],completePre:["StageTaskCompletePre"],disassociate:["StageTaskDisassociate"],edit:["StageTaskEdit"],taskById:["StageTaskById"],taskInfoByStage:["StageTaskInfoByStage"],regenerateStage:["StageTaskRegenerateStage"],regenerate:["StageTaskRegenerate"],updateComplete:["StageTaskUpdateComplete"]}}},8554(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.executeShareCliCommand=async function(e,t,n){(0,o.traceExecute)(e.join(" "));const a={commandPath:e,data:t??{},...n};return i.requestService.FHH({url:"/EM1HActionCentre/shareCli/execute",data:a})};const i=n(2088),o=n(3632)},2088(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.requestService=void 0;const o=i(n(9329)),a=n(3333),r=n(3632),s=n(654),c=n(5016),l=n(654);function p(e){return!e?.__sharedevNoDebug&&(0,l.isRuntimeDebugEnabled)()}function u(e){const t=e.data,n=t?.commandPath;if(Array.isArray(n)){const e=n.filter(e=>"string"==typeof e).join(" ");if(e)return e}return`${(e.method??"GET").toString().toUpperCase()} ${e.url??""}`.trim()}function d(e){const t=(e.baseURL??"").replace(/\/+$/,""),n=(e.url??"").toString();return t?/^https?:\/\//i.test(n)?n:`${t}${n.startsWith("/")?"":"/"}${n}`:n}async function m(){const{version:e}=await(0,c.readCliPackageMeta)();return e||"0.0.0"}t.requestService=new class{configure(e){this.settings=e,(0,r.setTraceHost)(e.domain),this.axiosInstance=o.default.create({baseURL:e.domain,timeout:3e4,headers:{Authorization:e.certificate}}),this.axiosInstance.interceptors.request.use(e=>{a.loggerService.debug(`request ${e.method?.toUpperCase()??"GET"} ${e.baseURL??""}${e.url??""}`);const t=e,n=`E-E.cli-sharedev-${Date.now()}-${Math.random().toString(36).slice(2,8)}`;return t.__sharedevTraceMeta={fullUrl:d(e),command:u(e),method:(e.method??"GET").toString().toUpperCase(),cliCommandRaw:process.argv.join(" "),noTrace:!!t.__sharedevNoTrace||!!t.__sharedevSkipInterceptor,requestSnapshot:{params:{...e.params,traceId:n},data:e.data,headers:e.headers}},t.__sharedevSkipInterceptor||(e.params={...e.params??{},traceId:n}),e}),this.axiosInstance.interceptors.response.use(async e=>{const t=e.data,n=t?.Result?.UserInfo;n&&(0,r.setTraceIdentity)(n.EnterpriseAccount,String(n.EmployeeID));const i=e.config,o=i.__sharedevTraceMeta;return o&&(o.noTrace||(0,r.traceService)(o.fullUrl),p(i)&&(0,s.writeDebug)({command:o.command,cliCommandRaw:o.cliCommandRaw,version:await m(),url:o.fullUrl,method:o.method,request:o.requestSnapshot,response:e.data,status:e.status,success:!0,timestamp:(new Date).toISOString()})),e},async e=>{const t=e.response?.status?`Request failed: ${e.response.status} ${e.response.statusText}`:e.message;a.loggerService.debug(t);const n=e.config,i=n?.__sharedevTraceMeta;return i&&(i.noTrace||(0,r.traceService)(i.fullUrl),p(n)&&(0,s.writeDebug)({command:i.command,cliCommandRaw:i.cliCommandRaw,version:await m(),url:i.fullUrl,method:i.method,request:i.requestSnapshot,response:e.response?.data??{message:e.message},status:e.response?.status,success:!1,timestamp:(new Date).toISOString()})),Promise.reject(e)})}get instance(){if(!this.axiosInstance||!this.settings)throw new Error("requestService is not initialized.");return this.axiosInstance}async request(e,t){const n=e,i=n.url??"";return n.url=i.replace(/EM\dH/,"EMDH"),n.__sharedevNoDebug=!!t?.noDebug,n.__sharedevSkipInterceptor=!!t?.skipInterceptor,n.__sharedevNoTrace=!!t?.noTrace,(await this.instance.request(n)).data}async get(e,t,n){return this.request({...t,method:"GET",url:e},n)}async post(e,t,n,i){return this.request({...n,method:"POST",url:e,data:t},i)}async FHH(e,t){const n=e.url?.startsWith("/FHH")?e.url:`/FHH${e.url??""}`,i=await this.request({...e,method:"POST",url:n},t);if(0!==i.Result.StatusCode)throw new Error(i.Result.FailureMessage||i.Error?.Message||"The server returned an error.");return i.Value??i}}},3632(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setTraceHost=function(e){try{u=new URL(e).host}catch{u=""}},t.setTraceIdentity=function(e,t){c||(c={ea:e,uid:t})},t.sendTrace=f,t.traceCommand=function(e,t){f({subModule:"cli-command",str1:e,str2:t})},t.traceService=function(e){f({subModule:"cli-service",str1:e})},t.traceExecute=function(e){f({subModule:"cli-execute",str1:e})},t.traceSkill=function(e){f({subModule:"skill",str1:e})};const o=i(n(8161)),a=n(3333),r=n(2088),s=n(5016);let c,l,p,u="";function d(){const e=o.default.platform();return"darwin"===e?"mac":"win32"===e?"windows":e}async function m(){if(p)return p;const e=await async function(){const e=(await(0,s.readCliPackageMeta)()).version;return"string"==typeof e&&e.trim()?e.trim():"0.0.0"}();return p=`sharedev-cli/${e} (${o.default.platform()}; ${o.default.arch()}; Node/${process.version})`,p}function f(e){(async function(){c||(l||(l=async function(){try{await r.requestService.FHH({url:"/EM1HFUNC/biz/query",data:{pageSize:1,pageNumber:1}},{noDebug:!0,noTrace:!0})}catch{a.loggerService.debug("Failed to fetch trace identity")}}()),await l)})().then(()=>async function(e){const t=c??{ea:"",uid:""},n={plat:"pc",os:d(),host:u,bw:"",osVersion:"",source:"",theme:"default",userAgent:await m(),customDatas:[{biz:"paasdev",eventId:`sharedev_${e.subModule}`,eventType:"ACTION",eventName:"pv",module:"sharedev",subModule:e.subModule,ea:t.ea,uid:t.uid,str1:e.str1??"",str2:e.str2??"",str3:e.str3??"",eventTime:Date.now()}]},i=`https://dcx.fxiaoke.com/web/log/get/1.gif?data=${encodeURIComponent(JSON.stringify(n))}`;try{await r.requestService.get(i,void 0,{noDebug:!0,skipInterceptor:!0,noTrace:!0})}catch{a.loggerService.debug("Trace send failed")}}(e)).catch(()=>{a.loggerService.debug("Trace send failed")})}},9739(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.aplListCommand=async function(e){o.loggerService.startLoading("Fetching APL function list");const t=(await(0,r.getFuncList)()).filter(e=>0===e.lang&&!e.is_control);o.loggerService.stopLoading(),o.loggerService.info(`Fetched ${t.length} APL functions.`),o.loggerService.printTable(["API Name","Function Name","Package Name","Version"],t.map(e=>[e.api_name,e.function_name,e.package_name,e.version]))},t.aplInfoCommand=async function(e,t,n={}){if(!e?.trim())throw new Error("Invalid arguments: use sharedev apl info <apiName>.");const i=e.trim(),a=n.bind?.trim()??"";o.loggerService.startLoading(`Fetching APL function details for ${i}`);try{const e=await(0,r.findFuncByApiName)(i,a);if(!e)throw new Error(`APL function not found: ${i}.`);o.loggerService.stopLoading(),o.loggerService.printRaw(function(e){return`${[l(e),p(e.parameters)].join("\n\n")}\n`}(e))}catch(e){throw o.loggerService.stopLoading(),e}},t.aplCreateCommand=async function(e,t={}){o.loggerService.startLoading("Preparing APL create");try{o.loggerService.updateLoading("Loading namespace and object metadata");const[n,a]=await Promise.all([(0,r.getAplNamespaceOptions)(),(0,r.getAplBindingObjectApiNames)()]),c=await async function(e,t,n,a){const r=process.stdin.isTTY&&process.stdout.isTTY,s=e.type?.trim().toLowerCase();let c="class"===s?"class":"function"!==s&&s?"":"function";if(!c&&r&&(c=await async function(){const e=await(0,i.select)({message:"Select APL type",options:[{value:"function",label:"APL Function"},{value:"class",label:"APL Class"}]});if((0,i.isCancel)(e))throw new Error("APL create cancelled.");return e}()),!c)throw new Error("Invalid --type value. Allowed values: function, class.");const l=t.filter(e=>!e.type||e.type===c);if(!l.length)throw new Error(`No namespace available for type ${c}.`);const p=await h(e.functionName,"--function-name","Enter APL function name",r,e=>e.length>40?"--function-name cannot exceed 40 characters.":void 0),u=await async function(e,t,n){const o=e?.trim()??"";if(o)return o;if(!n)throw new Error("Missing required option --namespace.");const a=await(0,i.select)({message:"Select namespace",options:t.map(e=>({value:e.value,label:`${e.label} (${e.value})`}))});if((0,i.isCancel)(a))throw new Error("APL create cancelled.");return a}(e.namespace,l,r),d=await h(e.package,"--package","Enter package name suffix (without fx.custom.apl.)",r,y),m=await h(e.apiName,"--apiname","Enter APL API name",r,e=>function(e,t){try{return void b(e,t)}catch(e){return e instanceof Error?e.message:String(e)}}(e,c)),f=await h(e.remark,"--remark","Enter APL description",r,e=>e.length>200?"--remark cannot exceed 200 characters.":void 0),v=x(l,u,c);if(!v)throw new Error(`Invalid namespace ${JSON.stringify(u)} for type ${c}.`);const S="class"===c?void 0:await async function(e,t,n,o){const a=e?.trim()??"";if(a)return a;if(!o)throw new Error("Missing --return-type for function type.");const r=w([...(t.returnTypes??[]).map(e=>e.value),...n.map(e=>e.value)]);if(!r.length)throw new Error("No return type options available for selected namespace. Please pass --return-type explicitly.");const s=await(0,i.select)({message:"Select return type",options:r.map(e=>({value:e,label:e}))});if((0,i.isCancel)(s))throw new Error("APL create cancelled.");return s}(e.returnType,v,n,r),C=await async function(e,t,n,a){const r=e?.trim()??"";if(r)return r;if(0===t.bindObject)return"NONE";if(!a)throw new Error("Missing required option --bind.");if(2===t.bindObject){const e=await(0,i.select)({message:"Select binding mode",options:[{value:"NONE",label:"Unbound (NONE)"},{value:"BOUND",label:"Bind object API name"}]});if((0,i.isCancel)(e))throw new Error("APL create cancelled.");if("NONE"===e)return"NONE"}for(;;){const e=await g("Enter binding object API name");if(e){if(!n.length||n.includes(e))return e;o.loggerService.warn(`Invalid --bind value ${JSON.stringify(e)}: object api name does not exist.`)}else o.loggerService.warn("Missing required option --bind.")}}(e.bind,v,a,r);return{apiName:m,functionName:p,type:c,namespace:u,packageName:d,returnType:S,bind:C,remark:f,templateId:e.templateId?.trim()||void 0}}(t,n.namespaces,n.returnTypes,a);v(c.packageName),b(c.apiName,c.type);const l=x(n.namespaces,c.namespace,c.type);if(!l)throw new Error(`Invalid --namespace value ${JSON.stringify(c.namespace)} for type ${c.type}. Use sharedev dev-metadata namespace to inspect available namespaces.`);!function(e,t,n){const i="NONE"===e;if(0===t.bindObject&&!i)throw new Error(`Namespace ${t.value} does not allow bound objects. Use --bind NONE.`);if(1===t.bindObject&&i)throw new Error(`Namespace ${t.value} requires a bound object. --bind NONE is not allowed.`);if(!i&&!n.includes(e))throw new Error(`Invalid --bind value ${JSON.stringify(e)}: object api name does not exist.`)}(c.bind,l,a);const p=function(e,t,n,i){if("class"===i)return;const o=w([...(t.returnTypes??[]).map(e=>e.value),...n.map(e=>e.value)]),a=e?.trim();if(!a)throw new Error("Missing --return-type for function type.");if(o.length&&!o.includes(a))throw new Error(`Invalid --return-type value ${JSON.stringify(a)}. Allowed values: ${o.join(", ")}`);return a}(c.returnType,l,n.returnTypes,c.type);o.loggerService.updateLoading("Generating template source");const u=await(0,r.createAplTemplate)({namespace:c.namespace,type:c.type,apiName:c.apiName,functionName:c.functionName,returnType:p,remark:c.remark,templateId:c.templateId}),d={api_name:c.apiName,binding_object_api_name:c.bind,function_name:c.functionName,package_name:`fx.custom.apl.${c.packageName}`,body:u,type:c.type,lang:0,remark:c.remark,return_type:p,status:"not_used",is_active:!0,name_space:c.namespace};o.loggerService.updateLoading("Creating APL function on remote");const m=await(0,r.createFuncSource)(d);o.loggerService.updateLoading("Writing local source file");const f=await(0,s.writeAplFunction)(e,m);await(0,s.writeAplSnapshot)(e,m),o.loggerService.stopLoading(),o.loggerService.success(`Created APL function ${m.api_name} successfully.`),o.loggerService.info(`Local groovy file: ${f}`)}catch(e){throw o.loggerService.stopLoading(),e}},t.aplPullCommand=async function(e,t,n={}){o.loggerService.startLoading("Preparing APL pull");const i=Boolean(n.all);if(i&&e)throw new Error("Invalid arguments: do not pass apiName when using --all.");if(!i&&!e)throw new Error("Invalid arguments: use sharedev apl pull <apiName> or sharedev apl pull --all.");if(i){o.loggerService.updateLoading("Fetching pullable APL functions");const e=(await(0,r.getFuncList)()).filter(e=>0===e.lang&&!e.is_control).map(e=>e.api_name).filter(Boolean);o.loggerService.updateLoading("Fetching APL function details");const n=await(0,r.findFuncByApiNames)(e),i=new Map(n.map(e=>[e.api_name,e])),a=e.filter(e=>!i.has(e));a.length&&(o.loggerService.warn(`${a.length} functions did not return details and will be skipped.`),o.loggerService.debug(`Missing detail apiNames: ${a.join(", ")}`));const c=e.map(e=>i.get(e)).filter(e=>Boolean(e));if(!c.length)throw new Error("No APL function details were returned. Nothing can be written.");return o.loggerService.updateLoading("Writing APL function files and snapshots"),await(0,s.writeAplFunctions)(t,c),await(0,s.writeAplSnapshot)(t,c),void o.loggerService.success(`Pulled APL functions: target=${e.length}, written=${c.length}, missing=${a.length}.`)}const a=await(0,r.findFuncByApiName)(e);o.loggerService.updateLoading(`Writing APL function ${e}`);const c=await(0,s.writeAplFunction)(t,a);await(0,s.writeAplSnapshot)(t,a),o.loggerService.success(`Pulled APL function ${e} to ${c}`)},t.aplDiffCommand=async function(e,t,n={}){const i=await(0,s.resolveAplTarget)(t,e);o.loggerService.startLoading(`Preparing APL diff for ${i.apiName}`);const c=i.snapshot;if(!c)throw new Error(`Missing snapshot record for APL function ${i.apiName}. Run sharedev apl pull ${i.apiName} first.`);let l=c.body,p=`snapshot@${c.version}`,u=c.version;if(n.remote)if("latest"===n.remote){const e=await(0,r.findFuncLatestByApiName)(i.apiName,c.bindingObjectApiName);l=e.body??"",p=`remote@latest(v${e.version})`,u=e.version}else{const e=Number(n.remote);if(!Number.isInteger(e)||e<=0)throw new Error("--remote only supports latest or a positive integer version.");const t=await(0,r.findFuncVersionByApiName)(i.apiName,e,c.bindingObjectApiName);l=t.func.body??"",u=t.actualVersion,p=t.fallbackToLatest?`remote@latest(v${t.actualVersion}) [requested v${e} not found]`:`remote@v${t.actualVersion}`}const d=(0,a.createLineDiff)(l,i.localBody,{oldFileName:`${i.apiName}.groovy`,newFileName:`${i.apiName}.groovy`,oldHeader:p,newHeader:"local",oldGitPath:`${i.apiName}.groovy`,newGitPath:`${i.apiName}.groovy`}),m=(0,a.summarizeDiff)(d);if(!m.changed)return o.loggerService.stopLoading(),void o.loggerService.success(`No changes for APL function ${i.apiName} (baseline: ${p}).`);o.loggerService.stopLoading(),o.loggerService.info(`APL diff ${i.apiName}: baseline=${p}, localVersion=${c.version}, compareVersion=${u}, +${m.additions} -${m.deletions}`),o.loggerService.printRaw((0,a.renderUnifiedDiff)(d))},t.aplPushCommand=async function(e,t,n={}){const i=n.remark?.trim();if(!i)throw new Error("Invalid arguments: apl push requires a non-empty --remark <comment>. This value will be submitted as the remote commit_log.");const a=e?[await(0,s.resolveAplTarget)(t,e)]:await(0,s.collectChangedAplTargets)(t);if(!a.length)return o.loggerService.stopLoading(),void o.loggerService.info("No local APL changes found to submit.");const c={success:0,skipped:0,conflict:0,failed:0};for(const e of a){const a=e.snapshot,l=e.metadata;if(a&&l)if(e.localBody!==a.body)try{o.loggerService.updateLoading(`Conflict check (1/4) ${e.apiName}`);const l=await(0,r.checkRemoteVersionConflict)(e.apiName,a.version,a.bindingObjectApiName);if(l.conflict&&!n.force){c.conflict+=1,o.loggerService.warn(`Skipped ${e.apiName}: remote version changed from v${a.version} to v${l.remote?.version??"unknown"}. Use --force to override.`);continue}const p=l.remote??await(0,r.findFuncLatestByApiName)(e.apiName,a.bindingObjectApiName),u=S(e,p,"push",i);o.loggerService.updateLoading(`analyze (2/4) ${e.apiName}`),await(0,r.analyzeFuncSource)(u),o.loggerService.updateLoading(`compile (3/4) ${e.apiName}`),await _(e,"push",{remoteBase:p,payload:u}),o.loggerService.updateLoading(`submit (4/4) ${e.apiName}`);const d=await(0,r.pushFuncSource)(u);await(0,s.writeAplSnapshot)(t,d),await(0,s.writeAplFunction)(t,d),c.success+=1,o.loggerService.success(`Submitted APL function ${e.apiName}. Latest version: v${d.version}.`)}catch(t){c.failed+=1;const n=t instanceof Error?t.message:String(t);o.loggerService.error(`Failed to submit ${e.apiName}: \n${n}`)}else c.skipped+=1,o.loggerService.info(`Skipped ${e.apiName}: no local changes.`);else c.failed+=1,o.loggerService.error(`Missing tracked metadata for APL function ${e.apiName}. Run pull again first.`)}o.loggerService.info(`APL push completed: success=${c.success}, skipped=${c.skipped}, conflict=${c.conflict}, failed=${c.failed}`)},t.aplResetCommand=async function(e,t,n={}){const i=await(0,s.resolveAplTarget)(t,e);o.loggerService.updateLoading(`Preparing to reset APL function ${i.apiName}`);const a=i.snapshot;if(!a)throw new Error(`Missing snapshot record for APL function ${i.apiName}. Run sharedev apl pull ${i.apiName} first.`);let c,l;if(n.remote&&"latest"!==n.remote){const e=Number(n.remote);if(!Number.isInteger(e)||e<=0)throw new Error("--remote only supports latest or a positive integer version.");c=await(0,r.findStrictFuncVersionByApiName)(i.apiName,e,a.bindingObjectApiName),l=`v${c.version}`}else c=await(0,r.findFuncLatestByApiName)(i.apiName,a.bindingObjectApiName),l=`latest(v${c.version})`;const p=await(0,s.writeAplFunction)(t,c);await(0,s.writeAplSnapshot)(t,c),o.loggerService.success(`Reset APL function ${i.apiName} to remote ${l}. Updated file: ${p}`)},t.aplAnalyzeCommand=async function(e,t){const n=await(0,s.resolveAplTarget)(t,e);o.loggerService.startLoading(`Analyzing APL function ${n.apiName}`);const i=S(n,await C(n),"analyze"),a=await(0,r.analyzeFuncSource)(i);o.loggerService.stopLoading(),o.loggerService.success(`APL function ${n.apiName} passed analysis.`),o.loggerService.printJson(a)},t.aplCompileCommand=async function(e,t){const n=await(0,s.resolveAplTarget)(t,e);o.loggerService.updateLoading(`Running compile check for APL function ${n.apiName}`),await _(n,"compile"),o.loggerService.success(`APL function ${n.apiName} passed compile check.`)},t.aplDebugCommand=async function(e,t,n={}){const i=await(0,s.resolveAplTarget)(t,e);o.loggerService.stopLoading();const a=S(i,await C(i),"debug"),c=function(e={}){const t=(i=e.params,(Array.isArray(i)?i:i?[i]:[]).flatMap(k).map(E)),n={};var i;for(const e of t)n[e.name]=e.value;return{dataId:e.dataId?.trim()||void 0,paramsByName:n}}(n),l=await async function(e,t){if(!e||"NONE"===e)return;const n=t?.trim();if(n)return n;return(await j(`Enter object data ID for ${e}: `)).trim()||void 0}(a.binding_object_api_name,c.dataId),p=await async function(e,t){if(!e.length)return[];const n=[];for(const i of e){const e=i.name?.trim(),o=i.type;if(!e||!o)throw new Error("APL debug parameters are missing name or type and cannot be collected in the terminal.");if("List"===o||"Map"===o)continue;const a=Object.prototype.hasOwnProperty.call(t,e)?T(i,o,t[e]):await O(i,o);n.push({name:e,type:o,value:a})}return n}(a.parameters??[],c.paramsByName);!function(e,t){const n=new Set(e.map(e=>e.name?.trim()).filter(e=>Boolean(e))),i=Object.keys(t).filter(e=>!n.has(e));i.length&&o.loggerService.warn(`Ignoring unknown APL debug CLI params: ${i.map(e=>JSON.stringify(e)).join(", ")}.`)}(a.parameters??[],c.paramsByName);const u={api_name:i.apiName,binding_object_api_name:a.binding_object_api_name,function:a,input_data:p,...l?{data_source:l}:{}};o.loggerService.startLoading(`Running APL debug for ${i.apiName}`);const d=await(0,r.debugFuncSource)(u);o.loggerService.stopLoading();const m=function(e,t){const n=t.logInfo;return t.success?`APL function ${e} debug run succeeded: ${n}`:`APL function ${e} debug run failed: ${n}`}(i.apiName,d);!1===d.success?o.loggerService.error(m):o.loggerService.success(m),o.loggerService.printRaw(function(e){const t=[];if(e.runResult){t.push("Run Result");try{t.push(JSON.stringify(e.runResult,null,2))}catch{t.push(e.runResult)}}return e.errorInfo&&t.push(e.errorInfo),t.push(""),t.join("\n")}(d))},t.aplPlaceholderCommand=async function(e){"debug"!==e?o.loggerService.warn(`sharedev apl ${e} is not implemented yet.`):o.loggerService.warn("sharedev apl debug is not implemented yet: the backend execution API and input contract are not confirmed.")};const i=n(118),o=n(3333),a=n(4444),r=n(6869),s=n(527),c=new Set(["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","if","implements","import","instanceof","int","interface","long","native","new","package","private","protected","public","return","short","static","strictfp","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"]);function l(e){return["APL Summary",`- API Name: ${m(e.api_name)}`,`- Function Name: ${m(e.function_name)}`,`- Package: ${m(e.package_name)}`,`- Version: ${m(e.version)}`,`- Type: ${m(e.type)}`,`- Lang: ${u(e.lang)}`,`- Binding Object: ${m(e.binding_object_api_name,"(none)")}`,`- Control: ${d(e.is_control)}`,`- Active: ${d(e.is_active,"(unknown)")}`,`- Status: ${m(e.status)}`,`- Return Type: ${m(e.return_type)}`,`- Name Space: ${m(e.name_space)}`,`- Application: ${m(e.application)}`,`- Last Modified By: ${m(e.last_modified_by)}`,`- Update Time: ${f(e.update_time)}`,`- Create Time: ${f(e.create_time)}`,`- Current: ${d(e.is_current,"(unknown)")}`,`- Commit Log: ${m(e.commit_log)}`,`- Remark: ${m(e.remark)}`].join("\n")}function p(e){if(!e?.length)return"Parameters\n- (none)";const t=["Parameters"];return e.forEach((e,n)=>{var i;t.push(`${n+1}. ${m(e.name)}`),t.push(` - Type: ${m(e.type)}`),t.push(` - Default: ${i=e.default_value,null==i||""===i?"-":"string"==typeof i?i:JSON.stringify(i)}`),t.push(` - Remark: ${m(e.remark)}`)}),t.join("\n")}function u(e){switch(e){case 0:return"Groovy";case 1:return"Java";case 2:return"Jar";case 3:return"UnitTest";default:return m(e)}}function d(e,t="-"){return null==e?t:String(e)}function m(e,t="-"){return"string"==typeof e?e.trim()||t:null==e?t:String(e)}function f(e){if(null==e)return"-";const t=new Date(e);return Number.isNaN(t.getTime())?String(e):`${e} (${t.toISOString()})`}async function h(e,t,n,i,a){const r=e?.trim()??"";if(r){const e=a?.(r);if(e)throw new Error(e);return r}if(!i)throw new Error(`Missing required option ${t}.`);for(;;){const e=await g(n);if(!e){o.loggerService.warn(`Missing required option ${t}.`);continue}const i=a?.(e);if(!i)return e;o.loggerService.warn(i)}}async function g(e,t){const n=await(0,i.text)({message:e,placeholder:t,initialValue:t});if((0,i.isCancel)(n))throw new Error("APL create cancelled.");return n.trim()}function v(e){if(e.length>64)throw new Error("--package cannot exceed 64 characters.");const t=e.split(".").filter(Boolean);if(!t.length)throw new Error("Invalid --package value.");if(!t.every(e=>/^[a-z][a-z0-9]*$/u.test(e)&&!c.has(e.toLowerCase())))throw new Error("Invalid --package value: each segment must match ^[a-z][a-z0-9]*$ and cannot be a Java keyword.")}function y(e){try{return void v(e)}catch(e){return e instanceof Error?e.message:String(e)}}function b(e,t){if(e.length>50)throw new Error("--apiname cannot exceed 50 characters.");if(!{class:/^[A-Z]{1}[a-zA-Z0-9]*__c$/u,function:/^[a-zA-Z](?!.*__.*__c$)\w*__c$/u}[t].test(e))throw new Error(`Invalid --apiname for type ${t}.`)}function x(e,t,n){return e.find(e=>e.value===t&&(!e.type||e.type===n))}function w(e){return Array.from(new Set(e.map(e=>e?.trim()).filter(e=>Boolean(e))))}function S(e,t,n,i){const o=e.snapshot,a=e.metadata;return{...t,api_name:e.apiName,binding_object_api_name:o.bindingObjectApiName,function_name:a.functionName,package_name:a.packageName,remark:a.remark,parameters:a.parameters,type:a.type??t.type,body:e.localBody,commit_log:"push"===n?i??"":`sharedev cli ${n} ${(new Date).toISOString()}`}}async function C(e){const t=e.snapshot,n=e.metadata;if(!t||!n)throw new Error(`Missing tracked metadata for APL function ${e.apiName}. Run sharedev apl pull ${e.apiName} first.`);return(0,r.findFuncLatestByApiName)(e.apiName,t.bindingObjectApiName)}async function _(e,t,n={}){const i=n.remoteBase??await C(e),o=n.payload??S(e,i,t);return await(0,r.compileCheckFuncSource)(o),o}function k(e){return e.split(/[\s,]+/).map(e=>e.trim()).filter(Boolean)}function E(e){const t=e.indexOf("=");if(t<=0)throw new Error(`Invalid --params value ${JSON.stringify(e)}. Use --params <name=value...>.`);const n=e.slice(0,t).trim(),i=e.slice(t+1);if(!n)throw new Error(`Invalid --params value ${JSON.stringify(e)}. Parameter name cannot be empty.`);return{name:n,value:i}}function T(e,t,n){return"Boolean"===t?P(e,n):N(e,t,n)}async function j(e,t){const n=await(0,i.text)({message:e,defaultValue:t,initialValue:t});if((0,i.isCancel)(n))throw new Error("APL debug input cancelled.");return n}async function O(e,t){return"Boolean"===t?async function(e){const t=await(0,i.select)({message:A(e,"Boolean"),options:[{value:"__default__",label:`Use default value (current: ${I(e,"Boolean")})`},{value:"true",label:"True"},{value:"false",label:"False"}]});if((0,i.isCancel)(t))throw new Error("APL debug input cancelled.");return P(e,t)}(e):N(e,t,await j(A(e,t),e.default_value))}function A(e,t){return`Enter parameter ${e.name?.trim()||"unknown"} (${t}), default ${I(e,t)}: `}function I(e,t){const n=e.default_value;if(null==n||""===n)return"null";if("String"===t)return JSON.stringify(String(n));if(null!=t&&R(t)){const e=Number(n);if(!Number.isNaN(e))return`${e} (${new Date(e).toISOString()})`}return String(n)}function N(e,t,n){const i=n.trim(),o=""===i?e.default_value:i;if(null==o||""===o)return null;if("String"===t)return o;if("BigDecimal"===t||R(t)){const n=Number(o);if(Number.isNaN(n)){const n="BigDecimal"===t?"a number":"a numeric timestamp";throw new Error(`Parameter ${e.name} for type ${t} must be ${n}.`)}return n}throw new Error(`Terminal input for parameter ${e.name} of type ${t} is not supported yet.`)}function P(e,t){const n="__default__"===t?e.default_value:t,i=null==n?n:String(n).trim().toLowerCase();if(null==i||""===i)return null;if("true"===i)return!0;if("false"===i)return!1;throw new Error(`Boolean default value for parameter ${e.name} must be true or false.`)}function R(e){return"Date"===e||"DateTime"===e||"Time"===e}},6869(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getFuncList=async function(){return(await o.requestService.FHH({url:"/EM1HFUNC/biz/query",data:{pageSize:3e3,pageNumber:1}})).function??[]},t.findFuncByApiNames=a,t.findFuncByApiName=r,t.findFuncLatestByApiName=s,t.findFuncHistoryVersions=c,t.findFuncVersionByApiName=async function(e,t,n=""){try{return{func:await l(e,t,n),actualVersion:t,fallbackToLatest:!1}}catch{const t=await s(e,n);return{func:t,actualVersion:t.version,fallbackToLatest:!0}}},t.findStrictFuncVersionByApiName=l,t.checkRemoteVersionConflict=async function(e,t,n=""){const i=await s(e,n);return i?{conflict:i.version!==t,remote:i}:{conflict:!1}},t.pushFuncSource=async function(e){return(await h(t=>o.requestService.FHH({url:"/FHH/EM1HFUNC/biz/update",data:{function:e,token:t}}))).function},t.analyzeFuncSource=async function(e){const t=await h(t=>o.requestService.FHH({url:"/EM1HFUNC/runtime/analyze",data:{token:t,function:e}}));if(!1===t.success){const e=t.violations?.map(e=>`line ${e.line}: ${e.message}`).join("\n")||t.logInfo||"APL analyze failed";throw new Error(`Pre-submit analysis failed: \n${e}`)}return t},t.compileCheckFuncSource=p,t.debugFuncSource=async function(e){return h(t=>o.requestService.FHH({url:"/EM1HFUNC/runtime/debug",data:{...e,token:t}}))},t.getAplNamespaceOptions=async function(){return function(e){const t=m(e)?e:{},n=m(t.data)?t.data:t,i=Array.isArray(n.namespaces)?n.namespaces:[],o=Array.isArray(n.return_type)?n.return_type:[];return{namespaces:i.map(e=>function(e){const t=m(e)?e:{},n=f(t.value)||f(t.namespace)||f(t.name_space)||f(t.name),i=f(t.name)||n,o=function(e){if("string"==typeof e){const t=e.trim().toLowerCase();if("function"===t||"class"===t)return t}return""}(t.type),a=function(e){const t=Number(e);return 0===t||1===t||2===t?t:1}(t.bind_object);return{label:i,value:n,type:o,bindObject:a,apiNamePrefix:f(t.apiNamePrefix)||f(t.api_name_prefix),returnTypes:(Array.isArray(t.return_type)?t.return_type:[]).map(e=>d(e)).filter(e=>Boolean(e))}}(e)).filter(e=>e.value),returnTypes:o.map(e=>d(e)).filter(e=>Boolean(e))}}(await o.requestService.FHH({url:"/EM1HFUNC/runtime/namespace",data:{}}))},t.getAplBindingObjectApiNames=async function(){const e=await o.requestService.FHH({url:"/EM1HNCRM/API/v1/object/describe/service/findDescribeManageList",data:u});return Array.from(new Set((e.objectDescribeList??[]).map(e=>e.api_name?.trim()).filter(e=>Boolean(e)))).sort((e,t)=>e.localeCompare(t))},t.createAplTemplate=async function(e){const t=e.templateId?{optionType:"use",templateId:e.templateId,funcApiName:e.apiName,functionName:e.functionName,description:e.remark}:{lang:0,nameSpace:e.namespace,namespace:e.namespace,type:e.type,funcApiName:e.apiName,returnObject:e.returnType,description:e.remark,functionName:e.functionName};return(await o.requestService.FHH({url:"/EM1HFUNC/biz/funcTemplate",data:t})).body??""},t.createFuncSource=async function(e){await p(e);const t=await h(t=>o.requestService.FHH({url:"/EM1HFUNC/biz/create",data:{function:e,token:t}}));if(!t.function)throw new Error("APL create failed: server did not return function payload.");return t.function};const i=n(7598),o=n(2088);async function a(e){return(await o.requestService.FHH({url:"/EM1HFUNC/biz/batchQuery",data:{apiNames:e}})).function}async function r(e,t=""){return t?(await o.requestService.FHH({url:"/EM1HFUNC/biz/find",data:{api_name:e,binding_object_api_name:t}})).function:(await a([e]))[0]}async function s(e,t=""){return r(e,t)}async function c(e,t){return(await o.requestService.FHH({url:"/EM1HFUNC/biz/queryVersions",single:!0,data:{api_name:e,binding_object_api_name:t}})).functions??[]}async function l(e,t,n=""){const i=(await c(e,n)).find(e=>e.version===t);if(!i)throw new Error(`Remote version v${t} does not exist for APL function ${e}.`);return(await o.requestService.FHH({url:"/EM1HFUNC/biz/findFunctionVersion",data:{id:i.id,api_name:e,binding_object_api_name:n}})).function}async function p(e){const t=await h(t=>o.requestService.FHH({url:"/EM1HFUNC/runtime/compileCheck",data:{token:t,function:e}}));if(!1===t.success)throw new Error(`Pre-submit compile check failed: ${t.compileError||"unknown compile error"}`)}const u={isIncludeFieldDescribe:!1,isIncludeSystemObj:!0,isIncludeUnActived:!0,packageName:"CRM",sourceInfo:"function",serviceContext:{}};function d(e){if("string"==typeof e){const t=e.trim();if(!t)return;return{label:t,value:t}}const t=m(e)?e:{},n=f(t.value)||f(t.type)||f(t.name);if(n)return{label:f(t.name)||n,value:n}}function m(e){return Boolean(e)&&"object"==typeof e}function f(e){return"string"==typeof e?e.trim():""}async function h(e,t={}){const n=t.token??`${Date.now()}-${(0,i.randomUUID)()}`,o=t.num??0,a=t.maxNum??10,r=await e(n);if(r.token&&o<a)return h(e,{token:n,num:o+1,maxNum:a});if(r.token&&o>=a)throw new Error("Server polling exceeded the maximum retry count.");return r}},527(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.readAplSnapshotMap=g,t.readAplVersionsMap=v,t.readAplMetadataMap=y,t.readAplTrackedRecord=b,t.resolveAplFileByApiName=x,t.resolveAplTarget=w,t.readAplLocalSource=S,t.collectChangedAplTargets=async function(e){const[t,n]=await Promise.all([g(e),y(e)]),i=Object.keys(t).filter(e=>Boolean(n[e])),o=[];for(const t of i){const n=await w(e,t);n.localBody!==(n.snapshot?.body??"")&&o.push(n)}return o},t.ensureAplWorkspace=C,t.writeAplFunction=_,t.writeAplFunctions=async function(e,t){const n=[];for(const i of t)n.push(await _(e,i));return n},t.writeAplSnapshot=async function(e,t){const n=s(e),i=Array.isArray(t)?t:[t];await(0,a.ensureDir)(n);const o=c(e),r=l(e),u=p(e),[h,g,v]=await Promise.all([d(o),d(r),d(u)]),y={...h},b={...g},x={...v};for(const e of i)y[e.api_name]=m(e),b[e.api_name]=e.version,x[e.api_name]=f(e);await Promise.all([(0,a.writeJsonFile)(o,y),(0,a.writeJsonFile)(r,b),(0,a.writeJsonFile)(u,x)])};const o=i(n(6760)),a=n(5409),r=o.default.join("fx","custom","apl","script");function s(e){return o.default.join(e.workspaceRoot,"snapshot")}function c(e){return o.default.join(s(e),"snapshot.json")}function l(e){return o.default.join(s(e),"versions.json")}function p(e){return o.default.join(s(e),"metadata.json")}function u(e,t){return o.default.join(function(e){return o.default.join(o.default.dirname(e.workspaceRoot),"package")}(e),function(e){return e.package_name?e.package_name.replace(/\./g,o.default.sep):r}(t),function(e){return`${e.api_name}.${e.type}.groovy`}(t))}async function d(e){return await(0,a.pathExists)(e)?(0,a.readJsonFile)(e):{}}function m(e){return{apiName:e.api_name,body:e.body??"",version:e.version,packageName:e.package_name,bindingObjectApiName:e.binding_object_api_name}}function f(e){return{apiName:e.api_name,functionName:e.function_name,remark:e.remark,parameters:e.parameters,packageName:e.package_name,bindingObjectApiName:e.binding_object_api_name,type:e.type}}function h(e,t){if(!t?.snapshot||!t.metadata||"number"!=typeof t.version)throw new Error(`APL function ${e} is not tracked by sharedev.`)}async function g(e){return d(c(e))}async function v(e){return d(l(e))}async function y(e){return d(p(e))}async function b(e,t){const[n,i,o]=await Promise.all([g(e),v(e),y(e)]),a=n[t],r=o[t],s=i[t];var c;if(a||r||"number"==typeof s)return{apiName:t,snapshot:a,metadata:r,version:s,filePath:u(e,{api_name:t,package_name:a?.packageName??r?.packageName??"",type:(c=r,c?.type??"function")})}}async function x(e,t){const n=await b(e,t);if(h(t,n),!await(0,a.pathExists)(n.filePath))throw new Error(`Local APL file not found: ${n.filePath}`);return n.filePath}async function w(e,t){const n=await x(e,t??""),i=function(e){const t=o.default.basename(e),n=/^(.*)\.(function|class)\.groovy$/u.exec(t);return n?{apiName:n[1],type:n[2]}:null}(n);if(!i)throw new Error(`Failed to parse APL function info from file name: ${n}`);const a=await b(e,i.apiName);return h(i.apiName,a),{...a,localBody:await S(n)}}async function S(e){return(0,a.readTextFile)(e)}async function C(e,t){await(0,a.ensureDir)(function(e,t){return o.default.dirname(u(e,t))}(e,t)),await(0,a.ensureDir)(s(e))}async function _(e,t){await C(e,t);const n=u(e,t);return await(0,a.writeTextFile)(n,t.body??""),n}},5805(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.approvalDefDeployCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalDef deploy");try{const e=await(0,a.executeApprovalDefShareCli)((0,o.getShareCliCommandPath)("approvalDef","deploy"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalDefDetailCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalDef detail");try{const e=await(0,a.executeApprovalDefShareCli)((0,o.getShareCliCommandPath)("approvalDef","detail"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalDefEnableCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalDef enable");try{const e=await(0,a.executeApprovalDefShareCli)((0,o.getShareCliCommandPath)("approvalDef","enable"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalDefDeleteCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalDef delete");try{const e=await(0,a.executeApprovalDefShareCli)((0,o.getShareCliCommandPath)("approvalDef","delete"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalDefLogsCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalDef logs");try{const e=await(0,a.executeApprovalDefShareCli)((0,o.getShareCliCommandPath)("approvalDef","logs"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalDefAddFreeConfigCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalDef add-free-config");try{const e=await(0,a.executeApprovalDefShareCli)((0,o.getShareCliCommandPath)("approvalDef","addFreeConfig"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalDefGetApprovalConfigListCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalDef get-approval-config-list");try{const e=await(0,a.executeApprovalDefShareCli)((0,o.getShareCliCommandPath)("approvalDef","getApprovalConfigList"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalDefCandidateEditableCheckCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalDef candidate-editable-check");try{const e=await(0,a.executeApprovalDefShareCli)((0,o.getShareCliCommandPath)("approvalDef","candidateEditableCheck"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalDefDeleteFreeConfigCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalDef delete-free-config");try{const e=await(0,a.executeApprovalDefShareCli)((0,o.getShareCliCommandPath)("approvalDef","deleteFreeConfig"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalDefListCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalDef list");try{const e=await(0,a.executeApprovalDefShareCli)((0,o.getShareCliCommandPath)("approvalDef","list"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalDefSwitchFlowTypeCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalDef switch-flow-type");try{const e=await(0,a.executeApprovalDefShareCli)((0,o.getShareCliCommandPath)("approvalDef","switchFlowType"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalDefUpdateFreeConfigCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalDef update-free-config");try{const e=await(0,a.executeApprovalDefShareCli)((0,o.getShareCliCommandPath)("approvalDef","updateFreeConfig"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}};const i=n(3333),o=n(2351),a=n(2056);function r(e){const t={};for(const[n,i]of Object.entries(e))null!=i&&""!==i&&(t[n]=i);return t}},2056(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.executeApprovalDefShareCli=async function(e,t,n){return(0,i.executeShareCliCommand)(e,t,n)};const i=n(8554)},8215(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.approvalRuntimeInstanceCancelCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime instance-cancel");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","cancel"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeInstanceDetailCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime instance-detail");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","instanceDetail"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeInstanceDetailChangeCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime instance-detail-change");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","detailChange"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeInstanceIdByObjectCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime instance-id-by-object");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","instanceIdByObject"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimePreviewTasksCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime preview-tasks");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","previewTasks"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeGetCurrentInstanceCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime get-current-instance");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","getCurrentInstance"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeRetryTaskCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime retry-task");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","retryTask"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskAddExtraNodeCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-add-extra-node");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","addExtraNode"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskCarbonCopyCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-carbon-copy");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","carbonCopy"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskChangeFreeHandlerCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-change-free-handler");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","changeFreeHandler"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskChangeHandlerCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-change-handler");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","changeHandler"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskCompleteCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-complete");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","complete"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskDeleteReplyCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-delete-reply");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","deleteReply"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskFormEditCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-form-edit");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","edit"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeFeedDetailCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime feed-detail");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","feedDetail"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskButtonsCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-buttons");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","taskButtons"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeCanRefuseTasksCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime can-refuse-tasks");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","canRefuseTasks"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskExtraDataCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-extra-data");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","taskExtraData"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskReanalysisCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-reanalysis");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","reanalysis"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskRejectCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-reject");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","reject"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskRemindCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-remind");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","remind"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskReplyCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-reply");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","reply"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskRetrieveCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-retrieve");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","retrieve"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskRetrieveCheckCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-retrieve-check");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","retrieveCheck"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskUpdateCompleteCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-update-complete");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","updateComplete"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.approvalRuntimeTaskDefaultFormEditCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing approvalRuntime task-default-form-edit");try{const e=await(0,a.executeApprovalRuntimeShareCli)((0,o.getShareCliCommandPath)("approvalRuntime","defaultFormEdit"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}};const i=n(3333),o=n(2351),a=n(9713);function r(e){const t={};for(const[n,i]of Object.entries(e))null!=i&&""!==i&&(t[n]=i);return t}},9713(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.executeApprovalRuntimeShareCli=async function(e,t,n){return(0,i.executeShareCliCommand)(e,t,n)};const i=n(8554)},8657(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bpmDefCreateDefinitionCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmDef create-definition");try{const e=await(0,a.executeBpmDefShareCli)((0,o.getShareCliCommandPath)("bpmDef","deploy"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmDefUpdateDefinitionCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmDef update-definition");try{const e=await(0,a.executeBpmDefShareCli)((0,o.getShareCliCommandPath)("bpmDef","update"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmDefDeleteDefinitionCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmDef delete-definition");try{const e=await(0,a.executeBpmDefShareCli)((0,o.getShareCliCommandPath)("bpmDef","delete"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmDefListCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmDef list");try{const e=await(0,a.executeBpmDefShareCli)((0,o.getShareCliCommandPath)("bpmDef","list"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmDefDetailCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmDef detail");try{const e=await(0,a.executeBpmDefShareCli)((0,o.getShareCliCommandPath)("bpmDef","detail"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmDefEnableCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmDef enable");try{const e=await(0,a.executeBpmDefShareCli)((0,o.getShareCliCommandPath)("bpmDef","enable"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmDefAppActionsCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmDef app-actions");try{const e=await(0,a.executeBpmDefShareCli)((0,o.getShareCliCommandPath)("bpmDef","appActions"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmDefDefinitionByIdCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmDef definition-by-id");try{const e=await(0,a.executeBpmDefShareCli)((0,o.getShareCliCommandPath)("bpmDef","definitionById"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmDefLogsCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmDef logs");try{const e=await(0,a.executeBpmDefShareCli)((0,o.getShareCliCommandPath)("bpmDef","logs"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}};const i=n(3333),o=n(2351),a=n(159);function r(e){const t={};for(const[n,i]of Object.entries(e))null!=i&&""!==i&&(t[n]=i);return t}},159(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.executeBpmDefShareCli=async function(e,t,n){return(0,i.executeShareCliCommand)(e,t,n)};const i=n(8554)},5365(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bpmRuntimeInstanceRetryCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime instance-retry");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","instanceRetry"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeInstanceCancelCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime instance-cancel");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","cancel"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeGetInstanceFormCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime get-instance-form");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","getInstanceForm"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeGetInstanceListCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime get-instance-list");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","getInstanceList"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeGetInstanceLogsCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime get-instance-logs");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","getInstanceLogs"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeTriggerCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime trigger");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","trigger"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeTaskAfterActionRetryCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime task-after-action-retry");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","taskAfterRetry"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeTaskChangeHandlerCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime task-change-handler");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","changeHandler"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeTaskCompleteCreateRelateTaskCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime task-complete-create-relate-task");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","completeCreateRelateTask"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeTaskCompleteCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime task-complete");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","completeTask"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeTaskFormEditCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime task-form-edit");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","edit"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeTaskButtonsCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime task-buttons");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","taskButtons"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeGetTaskInfoCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime get-task-info");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","getTaskInfo"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeGetTaskListByLaneCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime get-task-list-by-lane");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","getTaskListByLane"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeTaskOperateCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime task-operate");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","operateTask"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeTaskRefreshHandlerCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime task-refresh-handler");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","refreshHandler"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeTaskRemindCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime task-remind");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","remind"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.bpmRuntimeTaskUpdateAndCompleteCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing bpmRuntime task-update-and-complete");try{const e=await(0,a.executeBpmRuntimeShareCli)((0,o.getShareCliCommandPath)("bpmRuntime","updateAndComplete"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}};const i=n(3333),o=n(2351),a=n(5891);function r(e){const t={};for(const[n,i]of Object.entries(e))null!=i&&""!==i&&(t[n]=i);return t}},5891(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.executeBpmRuntimeShareCli=async function(e,t,n){return(0,i.executeShareCliCommand)(e,t,n)};const i=n(8554)},9473(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getCompletions=function(e,t){const n=function(e){return e.trim().split(/\s+/).filter(Boolean)}(t).slice(1);let i=e,o=0;for(;o<n.length-1;){const e=n[o],t=i.commands.find(t=>t.name()===e);if(!t)break;i=t,o+=1}const a=n[n.length-1]??"";return[...i.commands.map(e=>e.name()),...(r=i,r.options.flatMap(e=>{const t=[];return e.short&&t.push(e.short),e.long&&t.push(e.long),t}))].filter(e=>e.startsWith(a));var r},t.generateZshScript=function(){return'\n# sharedev zsh completion\n# Add to ~/.zshrc:\n# eval "$(sharedev completion --shell zsh)"\n\n_sharedev_completion() {\n local line="$BUFFER"\n local completions\n completions=$(sharedev completion --shell zsh --line "$line" 2>/dev/null)\n if [[ -n "$completions" ]]; then\n local -a items\n items=(${(f)completions})\n compadd -a items\n fi\n}\n\ncompdef _sharedev_completion sharedev\n'.trim()},t.generateBashScript=function(){return'\n# sharedev bash completion\n# Add to ~/.bashrc or ~/.bash_profile:\n# eval "$(sharedev completion --shell bash)"\n\n_sharedev_completion() {\n local line="${COMP_LINE}"\n local completions\n completions=$(sharedev completion --shell bash --line "$line" 2>/dev/null)\n COMPREPLY=($(compgen -W "$completions" -- "${COMP_WORDS[COMP_CWORD]}"))\n}\n\ncomplete -F _sharedev_completion sharedev\n'.trim()}},7429(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.updateConfigCommand=async function(e,t){let n=l(t.domain),i=l(t.certificate);const u=await(0,a.resolveSettingsSearchDir)(void 0,e),d=await(0,a.findSettings)(u);if(!d)throw new Error(".sharedev/settings.json was not found. Run sharedev init first.");const m=await(0,r.readJsonFile)(d),f={...m},h=l("string"==typeof m.domain?m.domain:void 0)??"";if(n||i||(n=await p("Enter enterprise domain",h||"https://www.fxiaoke.com",e=>{const t=(e??"").trim();return t?c(t)?void 0:"Invalid URL format. Example: https://www.fxiaoke.com.":"Domain is required."}),i=await p("Enter enterprise certificate","",e=>{if(!(e??"").trim())return"Certificate is required."})),n&&!c(n))throw new Error("Invalid domain URL. Use a full URL, e.g. https://www.fxiaoke.com.");if(!n&&!i)throw new Error("No updates provided. Use --domain and/or --certificate.");n&&(f.domain=n),i&&(f.certificate=i),await(0,r.writeJsonFile)(d,f),o.loggerService.success(`Configuration updated: ${d}`),n&&o.loggerService.info(`Domain: ${n}`),i&&o.loggerService.info(`Certificate: ${(0,s.maskCertificate)(i)}`)};const i=n(118),o=n(3333),a=n(1415),r=n(5409),s=n(5332);function c(e){try{return new URL(e),!0}catch{return!1}}function l(e){if("string"!=typeof e)return;const t=e.trim();return t.length>0?t:void 0}async function p(e,t,n){const o=await(0,i.text)({message:e,initialValue:t,validate:n});if((0,i.isCancel)(o))throw new Error("Configuration update cancelled.");return String(o).trim()}},707(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.objectSearchCommand=async function(e,t){o.loggerService.startLoading("Fetching object list");const n=await(0,a.getObjectDescribeList)(),i=(0,a.filterObjectDescribeList)(n,e);o.loggerService.stopLoading(),o.loggerService.info(`Object list fetched: fetched=${n.length}, matched=${i.length}`),o.loggerService.printJson(i.map(a.toObjectSearchSummary))},t.objectInfoCommand=async function(e,t){if(!e?.trim())throw new Error("Invalid arguments: use sharedev dev-metadata info <apiName>.");const n=e.trim();let r;o.loggerService.startLoading(`Fetching object details for ${n}`);try{r=await(0,a.getObjectDescribeByApiName)(n)}catch{o.loggerService.updateLoading(`Direct lookup failed for ${n}, searching candidates`);const e=(0,a.filterObjectDescribeList)(await(0,a.getObjectDescribeList)(),n);if(!e.length)throw o.loggerService.stopLoading(),new Error(`Object not found: ${n}.`);const t=await async function(e,t){if(1===t.length||(0,a.isExactObjectApiNameMatch)(t[0],e))return t[0].api_name;o.loggerService.stopLoading();const n=await(0,i.select)({message:`Direct lookup failed for ${e}. Select a candidate object:`,options:t.slice(0,20).map(e=>({value:e.api_name,label:e.api_name,hint:s(e)}))});if((0,i.isCancel)(n))throw o.loggerService.info("Object selection cancelled."),new Error("Object selection cancelled.");return o.loggerService.startLoading(`Fetching object details for ${n}`),n}(n,e);o.loggerService.updateLoading(`Fetching object details for ${t}`),r=await(0,a.getObjectDescribeByApiName)(t)}const d=(0,a.extractObjectDescribe)(r);o.loggerService.stopLoading(),o.loggerService.printRaw(function(e,t){const n=[c(e),l(e.fields??[])],i=function(e){return e?["Layout Summary",`- API Name: ${u(e.api_name)}`,`- Display Name: ${u(e.display_name)}`,`- Layout Type: ${u(e.layout_type)}`,`- Is Default: ${p(e.is_default)}`,`- Ref Object API Name: ${u(e.ref_object_api_name)}`].join("\n"):""}(t);return i&&n.push(i),`${n.filter(Boolean).join("\n\n")}\n`}(d,r.layout))},t.objectDownloadCommand=async function(e,t,n={}){const i=e?.trim(),s=Boolean(n.all);if(s&&i)throw new Error("Invalid arguments: use either sharedev dev-metadata download <apiName> or sharedev dev-metadata download --all.");if(!s&&!i)throw new Error("Invalid arguments: use sharedev dev-metadata download <apiName> or sharedev dev-metadata download --all.");if(!s&&n.type)throw new Error("Invalid arguments: --type can only be used together with --all.");const c=(0,r.resolveObjectDescribeOutputDir)(t,n.output);s?await async function(e,t,n){const i=n?[n]:["package","custom"],s=new Map;o.loggerService.startLoading("Fetching object list");for(const e of i){o.loggerService.updateLoading(`Fetching object list (type=${e})`);const t=await(0,a.getObjectDescribeList)({type:e});for(const e of t)s.has(e.api_name)||s.set(e.api_name,e)}const c=(0,a.filterObjectDescribeList)([...s.values()]),l=await(0,a.downloadObjectDescribeByApiNames)(c.map(e=>e.api_name),{title:"Downloading metadata...",summaryName:"Downloading object describe markdown files",concurrency:6,delayMs:120}),p=l.values.map(async e=>{await(0,r.writeObjectDescribeFile)(t,e.infoResult)});await Promise.all(p),await(0,r.writeObjectDescribeIndex)(t,c),o.loggerService.success(`Object describe download completed: total=${c.length}, succeeded=${l.succeeded}, failed=${l.failed}, output=${t}`)}(0,c,n.type):await async function(e,t){let n;o.loggerService.startLoading(`Fetching object details for ${e}`);try{n=await(0,a.getObjectDescribeByApiName)(e)}catch{throw o.loggerService.stopLoading(),new Error(`Object not found: ${e}.`)}const i=await(0,r.writeObjectDescribeFile)(t,n);o.loggerService.stopLoading(),o.loggerService.success(`Object describe markdown written: ${i}`)}(i,c)},t.namespaceDownloadCommand=async function(e,t={}){const n=(0,r.resolveNamespaceOutputDir)(e,t.output);o.loggerService.startLoading("Fetching runtime namespaces");const i=await(0,a.getRuntimeNamespaceList)(),s=await(0,r.writeNamespaceMetadataFile)(n,i.raw);o.loggerService.stopLoading(),o.loggerService.success(`Namespace metadata downloaded: count=${i.namespaces.length}, file=${s}`)};const i=n(118),o=n(3333),a=n(6973),r=n(9207);function s(e){const t=[e.display_name,e.display_name_r].filter(Boolean).join(" / "),n=e.package_name??e.package,i=e.description?.trim();return[t,n,i].filter(Boolean).join(" | ")}function c(e){return["Object Summary",`- API Name: ${e.api_name}`,`- Display Name: ${u(e.display_name)}`,`- Display Name R: ${u(e.display_name_r)}`,`- Package: ${u(e.package_name??e.package)}`,`- Version: ${u(e.version)}`,`- Release Version: ${u(e.release_version)}`,`- Define Type: ${u(e.define_type)}`,`- Udef: ${p(e.is_udef)}`,`- Active: ${p(e.is_active)}`,`- Store Table: ${u(e.store_table)}`,`- Description: ${u(e.description)}`].join("\n")}function l(e){if(!e.length)return"Fields\n- (none)";const t=["Fields"];return e.forEach((e,n)=>{t.push(function(e,t){const n=[`${t}. ${e.api_name}`,` - Label: ${u(e.label??e.display_name)}`,` - Type: ${u(e.type)}`,` - Define Type: ${u(e.define_type)}`,` - Required: ${p(e.is_required)}`,` - Active: ${p(e.is_active)}`,` - Index: ${p(e.is_index)}`,` - Default: ${i=e.default_value,null==i||""===i?"-":"string"==typeof i?i:JSON.stringify(i)}`,` - Description: ${u(e.description)}`];var i;if("select_one"===e.type||"record_type"===e.type){const t=function(e){return e.length?e.map(e=>`${e.label??e.display_name??e.api_name??u(e.value)}${null==e.value?"":` (${String(e.value)})`}`).join(", "):""}(e.options??[]);t&&n.push(` - Options: ${t}`)}return"object_reference"!==e.type&&"quote"!==e.type||(n.push(` - Target API Name: ${u(e.target_api_name)}`),n.push(` - Quote Field: ${u(e.quote_field)}`)),n.join("\n")}(e,n+1))}),t.join("\n")}function p(e){return null==e?"-":String(e)}function u(e){return"string"==typeof e?e.trim()||"-":null==e?"-":String(e)}},6973(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getObjectDescribeList=async function(e={}){return(await i.requestService.FHH({url:"/EM1HNCRM/API/v1/object/describe/service/findDescribeManageList",data:(t=e.type,{isIncludeFieldDescribe:!1,isIncludeSystemObj:!0,isIncludeUnActived:!0,packageName:"CRM",sourceInfo:"object_management",describeDefineType:t??null})})).objectDescribeList??[];var t},t.filterObjectDescribeList=function(e,t){const n=p(t);return n?e.filter(e=>function(e){return[e.api_name,e.display_name,e.display_name_r].map(u).filter(Boolean)}(e).some(e=>e.includes(n))).sort((e,t)=>c(e,t,n)):[...e].sort(c)},t.getObjectDescribeByApiName=a,t.downloadObjectDescribeByApiNames=async function(e,t){const n=e.map(e=>({fileName:`Downloading ${e}`,download:async()=>{const t=await a(e);return{apiName:e,infoResult:t}}}));return(0,o.download)(t.title,n,{summaryName:t.summaryName,concurrency:t.concurrency,delayMs:t.delayMs})},t.getRuntimeNamespaceList=async function(){const e=await i.requestService.FHH({url:"/EM1HFUNC/runtime/namespace",data:{}});return{namespaces:r(e),raw:e}},t.toObjectSearchSummary=function(e){return{apiName:e.api_name,displayName:e.display_name??"",displayNameR:e.display_name_r??"",packageName:e.package_name??e.package??"",isUdef:e.is_udef??!1,isActive:e.is_active??!1,version:e.version??"",description:e.description??""}},t.isExactObjectApiNameMatch=function(e,t){const n=p(t);return!!n&&u(e.api_name)===n},t.extractObjectDescribe=function(e){if(!e.objectDescribe)throw new Error("The server did not return objectDescribe.");return e.objectDescribe};const i=n(2088),o=n(1889);async function a(e){return i.requestService.FHH({url:"/EM1HNCRM/API/v1/object/describe/service/findDescribeByApiName",data:{describe_apiname:e,include_layout:!0,layout_type:"detail",get_label_direct:!0,include_describe_extra:!1,include_fields_extra:!1,check_cross_filter:!1}})}function r(e){if(Array.isArray(e))return s(e);if(e&&"object"==typeof e){const t=e,n=t.namespaceList??t.namespaces??t.list??t.data??t.value;if(Array.isArray(n))return s(n)}return[]}function s(e){const t=e.map(e=>{if("string"==typeof e)return e.trim();if(e&&"object"==typeof e){const t=e,n=t.namespace??t.name??t.apiName??t.value;return"string"==typeof n?n.trim():""}return""}).filter(Boolean);return Array.from(new Set(t)).sort((e,t)=>e.localeCompare(t))}function c(e,t,n){const i=l(e,n),o=l(t,n);return i!==o?i-o:e.api_name.localeCompare(t.api_name)}function l(e,t){if(!t)return 3;const n=u(e.api_name),i=u(e.display_name),o=u(e.display_name_r);return n===t?0:[n,i,o].some(e=>e.startsWith(t))?1:[n,i,o].some(e=>e.includes(t))?2:3}function p(e){return u(e)}function u(e){return"string"==typeof e?e.trim().toLowerCase():""}},9207(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveObjectDescribeOutputDir=function(e,t){return o.default.join(m(e,t),"objects")},t.resolveNamespaceOutputDir=function(e,t){return o.default.join(m(e,t),"namespaces")},t.writeObjectDescribeIndex=async function(e,t){await(0,a.ensureDir)(e);const n=o.default.join(e,"objects.md");return await(0,a.writeTextFile)(n,function(e){const t=["# Object Describe Index","",`Total objects: ${e.length}`,"","| API Name | Display Name | Package | Active | Version | Description |","| --- | --- | --- | --- | --- | --- |"];for(const n of e)t.push(`| ${p(n.api_name)} | ${l(n.display_name)} | ${l(n.package_name??n.package)} | ${l(s(n.is_active))} | ${l(n.version)} | ${l(n.description)} |`);return`${t.join("\n")}\n`}(t)),n},t.writeObjectDescribeFile=async function(e,t){await(0,a.ensureDir)(e);const n=o.default.join(e,`${t.objectDescribe.api_name}.md`);return await(0,a.writeTextFile)(n,function(e){const t=e.objectDescribe,n=[`# ${t.api_name}`,"",(a=t,["## Summary","","| Field | Value |","| --- | --- |",...[["API Name",a.api_name],["Display Name",a.display_name],["Display Name R",a.display_name_r],["Package",a.package_name??a.package],["Version",a.version],["Release Version",a.release_version],["Define Type",a.define_type],["Udef",s(a.is_udef)],["Active",s(a.is_active)],["Store Table",a.store_table],["Description",a.description]].map(([e,t])=>`| ${e} | ${l(t)} |`)].join("\n")),"",d(t.fields??[])],i=(o=e.layout)?["## Layout Summary","","| Field | Value |","| --- | --- |",`| API Name | ${l(o.api_name)} |`,`| Display Name | ${l(o.display_name)} |`,`| Layout Type | ${l(o.layout_type)} |`,`| Is Default | ${l(s(o.is_default))} |`,`| Ref Object API Name | ${l(o.ref_object_api_name)} |`].join("\n"):"";var o,a;return i&&n.push("",i),`${n.join("\n")}\n`}(t)),n},t.writeNamespaceMetadataFile=async function(e,t){await(0,a.ensureDir)(e);const n=o.default.join(e,"namespaces.json");return await(0,a.writeJsonFile)(n,t),n};const o=i(n(6760)),a=n(5409);function r(e){return"string"==typeof e?e.trim()||"-":null==e?"-":String(e)}function s(e){return null==e?"-":String(e)}function c(e){return null==e||""===e?"-":"string"==typeof e?e:JSON.stringify(e)}function l(e){return r(e).replace(/\r\n/g,"\n").replace(/\r/g,"\n").replace(/\|/g,"\\|").replace(/\n/g,"<br>")}function p(e){return`[${e}](./${e}.md)`}function u(e){const t=e.options??[];return t.length?l(t.map(e=>`${e.label??e.display_name??e.api_name??r(e.value)}${null==e.value?"":` (${String(e.value)})`}`).join(", ")):"-"}function d(e){const t=Array.isArray(e)?e:e?Object.values(e):[];if(!t.length)return["## Fields","","- (none)"].join("\n");const n=["## Fields","","| API Name | Label | Type | Define Type | Required | Active | Index | Default | Description | Target API Name | Quote Field | Options |","| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |"];for(const e of t)n.push(`| ${l(e.api_name)} | ${l(e.label??e.display_name)} | ${l(e.type)} | ${l(e.define_type)} | ${l(s(e.is_required))} | ${l(s(e.is_active))} | ${l(s(e.is_index))} | ${l(c(e.default_value))} | ${l(e.description)} | ${l(e.target_api_name)} | ${l(e.quote_field)} | ${u(e)} |`);return n.join("\n")}function m(e,t){return t?.trim()?o.default.resolve(e.workingDir??e.cwd,t.trim()):o.default.join(e.settings.settingsDir,"docs","dev-metadata")}},6347(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.docsDownloadCommand=async function(e){const t=a.default.join(e.settings.settingsDir,"docs"),n=await(0,o.text)({message:"[sharedev] Enter document output directory:",defaultValue:t,placeholder:"Please enter a directory.",initialValue:t,validate(e){if(!e?.trim())return"Directory cannot be empty."}});if((0,o.isCancel)(n)||!n)return void r.loggerService.info("Document download cancelled.");const i=a.default.resolve(e.cwd,n.trim());try{const e=await(0,s.downloadAndExtractDoc)(i);r.loggerService.success("Document download complete."),r.loggerService.info(`APL docs: ${e.aplPath}`),r.loggerService.info(`PWC docs: ${e.pwcPath}`)}catch(e){const t=e instanceof Error?e.message:String(e);throw r.loggerService.error(`Document download failed: ${t}`),e}};const o=n(118),a=i(n(6760)),r=n(3333),s=n(901)},901(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.downloadAndExtractDoc=async function(e,t={includeApl:!0,includePwc:!0}){const n=a.default.join(e,"apl"),i=a.default.join(e,"pwc"),p=l.filter(e=>"apl"===e.subDir?!1!==t.includeApl:"pwc"!==e.subDir||!1!==t.includePwc),u=p.map(t=>({fileName:`${t.name} Docs`,download:async n=>{const i=await async function(e,t,n,i){const r=e.split("/").pop()??"download.zip",c=a.default.join(n,`${t}-${r}`);await(0,s.ensureDir)(n);const l=await i(e);return await o.default.writeFile(c,l),c}(t.url,t.subDir,e,n.downloadByUrl);await(0,c.extractZipArchive)(i,a.default.join(e,t.subDir))}}));return await(0,r.download)("Downloading docs...",u,{concurrency:p.length||1}),{aplPath:n,pwcPath:i}};const o=i(n(1605)),a=i(n(6760)),r=n(1889),s=n(5409),c=n(5916),l=[{name:"APL",url:"https://developer.fxiaoke.com/apl_v2/docs.zip",subDir:"apl"},{name:"PWC",url:"https://developer.fxiaoke.com/pwc/docs.zip",subDir:"pwc"}]},5547(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.flowDefListCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowDef list");try{const e=await(0,a.executeFlowDefShareCli)((0,o.getShareCliCommandPath)("flowDef","list"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowDefDetailCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowDef detail");try{const e=await(0,a.executeFlowDefShareCli)((0,o.getShareCliCommandPath)("flowDef","detail"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowDefEnableCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowDef enable");try{const e=await(0,a.executeFlowDefShareCli)((0,o.getShareCliCommandPath)("flowDef","enable"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowDefDeleteCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowDef delete");try{const e=await(0,a.executeFlowDefShareCli)((0,o.getShareCliCommandPath)("flowDef","delete"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowDefPublishCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowDef publish");try{const e=await(0,a.executeFlowDefShareCli)((0,o.getShareCliCommandPath)("flowDef","publish"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowDefDeployCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowDef deploy");try{const e=await(0,a.executeFlowDefShareCli)((0,o.getShareCliCommandPath)("flowDef","deploy"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowDefConfCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowDef conf");try{const e=await(0,a.executeFlowDefShareCli)((0,o.getShareCliCommandPath)("flowDef","conf"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowDefUpdateCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowDef update");try{const e=await(0,a.executeFlowDefShareCli)((0,o.getShareCliCommandPath)("flowDef","update"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowDefSaveAsCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowDef save-as");try{const e=await(0,a.executeFlowDefShareCli)((0,o.getShareCliCommandPath)("flowDef","saveAs"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowDefActiveCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowDef active");try{const e=await(0,a.executeFlowDefShareCli)((0,o.getShareCliCommandPath)("flowDef","active"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowDefBasicInfoCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowDef basic-info");try{const e=await(0,a.executeFlowDefShareCli)((0,o.getShareCliCommandPath)("flowDef","basicInfo"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowDefExpressionCheckCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowDef expression-check");try{const e=await(0,a.executeFlowDefShareCli)((0,o.getShareCliCommandPath)("flowDef","expressionCheck"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowDefExpressionDebugCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowDef expression-debug");try{const e=await(0,a.executeFlowDefShareCli)((0,o.getShareCliCommandPath)("flowDef","expressionDebug"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowDefGetHistoryCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowDef get-history");try{const e=await(0,a.executeFlowDefShareCli)((0,o.getShareCliCommandPath)("flowDef","getHistory"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}};const i=n(3333),o=n(2351),a=n(6021);function r(e){const t={};for(const[n,i]of Object.entries(e))null!=i&&""!==i&&(t[n]=i);return t}},6021(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.executeFlowDefShareCli=async function(e,t,n){return(0,i.executeShareCliCommand)(e,t,n)};const i=n(8554)},2325(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.flowRuntimeOpinionDeleteCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime opinion-delete");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","opinionDelete"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeOpinionEditCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime opinion-edit");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","opinionEdit"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeOpinionListCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime opinion-list");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","opinionList"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeOpinionSaveCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime opinion-save");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","opinionSave"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeOpinionPrioritiesCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime opinion-priorities");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","opinionPriorities"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeElementFindCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime element-find");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","elementFind"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeElementSuitsCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime element-suits");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","elementSuits"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeTaskDelayCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime task-delay");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","taskDelay"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeTaskExecuteCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime task-execute");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","taskExecute"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeManageCountCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime manage-count");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","manageCount"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeHandlerChangeCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime handler-change");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","handlerChange"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeLinkListCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime link-list");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","linkList"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeLogDetailCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime log-detail");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","logDetail"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeInstanceDetailCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime instance-detail");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","instanceDetail"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeInstanceLogsCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime instance-logs");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","instanceLogs"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeHandoverLogsCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime handover-logs");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","handoverLogs"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeLogListCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime log-list");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","logList"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeLogHeaderCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime log-header");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","logHeader"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeBatchProcessCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime batch-process");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","batchProcess"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeBatchReplaceCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime batch-replace");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","batchReplace"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeBatchButtonsCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime batch-buttons");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","batchButtons"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeBatchResultCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime batch-result");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","batchResult"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeGetCurrentBlockTasksCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime one-instance-get-current-block-tasks");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","getCurrentBlockTasks"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeCompleteTaskCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime one-instance-complete-task");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","completeTask"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.flowRuntimeDebugCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing flowRuntime one-instance-debug");try{const e=await(0,a.executeFlowRuntimeShareCli)((0,o.getShareCliCommandPath)("flowRuntime","debug"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}};const i=n(3333),o=n(2351),a=n(8003);function r(e){const t={};for(const[n,i]of Object.entries(e))null!=i&&""!==i&&(t[n]=i);return t}},8003(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.executeFlowRuntimeShareCli=async function(e,t,n){return(0,i.executeShareCliCommand)(e,t,n)};const i=n(8554)},3421(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.initProjectCommand=async function(e,t){const n=t.cwd?a.default.resolve(t.cwd):e.cwd,i=await async function(e){const t=y(e);let n=e.ea?.trim()??"",i=e.domain?.trim()??"",o=e.certificate?.trim()??"";if(t&&(n||(n=await x("Enter enterprise EA")),i||(i=await x("Enter enterprise domain","https://www.fxiaoke.com")),o||(o=await x("Enter developer certificate"))),!n)throw new Error("Missing enterprise EA. Use --ea or provide it in interactive mode.");if(!i)throw new Error("Missing enterprise domain. Use --domain or provide it in interactive mode.");if(!function(e){try{return new URL(e),!0}catch{return!1}}(i))throw new Error("Invalid enterprise domain URL. Use a full URL, e.g. https://www.fxiaoke.com.");if(!o)throw new Error("Missing developer certificate. Use --certificate or provide it in interactive mode.");return{enterpriseEA:n,domain:i,certificate:o}}(t),C=await async function(e,t){const n=e.projectName?.trim();if(n)return n;if(!y(e))return t;const i=await x("Enter project name",t);if(!i)throw new Error("Project name cannot be empty.");return i}(t,i.enterpriseEA),_=await async function(e){if(e.yes)return{pullAllApl:!0===e.pullAllApl,pullAllPwc:!0===e.pullAllPwc};if(!y(e))throw new Error("Non-interactive mode requires --yes.");const t=[];!0===e.pullAllApl&&t.push("apl"),!0===e.pullAllPwc&&t.push("pwc");const n=await(0,r.multiselect)({message:"Select resources to pull after initialization",options:[{value:"apl",label:"Pull all APL functions"},{value:"pwc",label:"Pull all PWC resources"}],initialValues:t,required:!1});if((0,r.isCancel)(n))throw new Error("Initialization canceled.");const i=new Set(n??[]);return{pullAllApl:i.has("apl"),pullAllPwc:i.has("pwc")}}(t),k=_.pullAllApl||_.pullAllPwc?await async function(e){const t=e.agent?.trim();if(e.yes){if(!t)throw new Error("Missing --agent when using --yes.");return b(t),t}if(t)return b(t),t;if(!y(e))throw new Error("Non-interactive mode requires --yes.");const n=await(0,r.select)({message:"Select an agent platform",options:v.SUPPORTED_AGENTS.map(e=>({value:e.name,label:`${e.displayName} (${e.skillsDir})`}))});if((0,r.isCancel)(n))throw new Error("Initialization canceled.");return n}(t):"",E=a.default.join(n,C),T=a.default.join(E,".sharedev"),j=a.default.join(T,"settings.json");if(await(0,l.pathExists)(j)&&!t.force){if(!y(t))throw new Error(`${j} already exists. Use --force to overwrite.`);if(!await w(`${j} already exists. Overwrite it?`))return void s.loggerService.info("Initialization canceled.")}await(0,l.ensureDir)(E),await async function(e,t){if(!await async function(){return new Promise(e=>{(0,o.exec)("git --version",t=>{e(null===t)})})}())return void s.loggerService.info("Git is not available, skipping git initialization.");if(await async function(e){return new Promise(t=>{(0,o.exec)("git init",{cwd:e},(n,i,o)=>{n?s.loggerService.warn(`Failed to initialize git repository: ${o.trim()||n.message}`):s.loggerService.info(`Git repository initialized: ${e}`),t()})})}(e),await async function(e){const t=a.default.join(e,".gitignore");await(0,l.writeTextFile)(t,".sharedev\n"),s.loggerService.info(`.gitignore created: ${t}`)}(e),t.yes){const n=t.remoteUrl?.trim();return void(n&&await S(e,n))}if(!y(t))throw new Error("Non-interactive mode requires --yes.");if(!await w("Do you want to bind a remote git repository?"))return;const n=await async function(e){const t=await(0,r.text)({message:"Enter git remote repository URL:",placeholder:"https://github.com/example/repo.git",initialValue:e||void 0});if((0,r.isCancel)(t))throw new Error("Git remote binding canceled.");return t.trim()}(t.remoteUrl?.trim());n&&await S(e,n)}(E,t),await(0,l.writeJsonFile)(j,i),s.loggerService.success(`Initialization completed: ${j}`),s.loggerService.info(`Workspace folder created: ${E}`);const O=function(e,t,n,i,o){const a={certificate:o.certificate,domain:o.domain,settingsPath:i,settingsDir:n};return{cwd:t,verbose:e.verbose,settings:a,workspaceRoot:n}}(e,E,T,j,i);await async function(e,t,n,i){const o=[];(n.pullAllApl||n.pullAllPwc)&&o.push(async function(e,t){const n=a.default.join(e.settings.settingsDir,"docs"),i=await(0,u.downloadAndExtractDoc)(n,{includeApl:t.pullAllApl,includePwc:t.pullAllPwc});s.loggerService.success("Documentation download complete."),t.pullAllApl&&s.loggerService.info(`APL docs: ${i.aplPath}`),t.pullAllPwc&&s.loggerService.info(`PWC docs: ${i.pwcPath}`)}(e,n)),(n.pullAllApl||n.pullAllPwc)&&o.push(async function(e,t,n){await(0,g.runSpecInit)(e.cwd,{agentName:n,interactive:y(t),overwriteIfExists:!0===t.force,showLoading:!1})}(e,t,i)),(n.pullAllApl||n.pullAllPwc)&&(c.requestService.configure(e.settings),o.push(async function(e){const t=a.default.join(e.settings.settingsDir,"dev-metadata"),n=a.default.join(t,"objects"),i=a.default.join(t,"namespaces");s.loggerService.info("Downloading metadata...");const[o,r]=await Promise.all([(0,d.getObjectDescribeList)(),(0,d.getRuntimeNamespaceList)()]),c=(0,d.filterObjectDescribeList)(o);await(0,m.writeObjectDescribeIndex)(n,c);let l=0,p=0;for(const e of c)try{const t=await(0,d.getObjectDescribeByApiName)(e.api_name);await(0,m.writeObjectDescribeFile)(n,t),l+=1}catch{p+=1}await(0,m.writeNamespaceMetadataFile)(i,r.raw),s.loggerService.success(`Metadata download complete: objects=${l}${p?`, failed=${p}`:""}, namespaces=${r.namespaces.length}`)}(e))),n.pullAllApl&&o.push(async function(e){s.loggerService.info("Pulling all APL functions..."),await(0,p.aplPullCommand)(void 0,function(e){return{...e,namespace:"apl",commandName:"pull",args:["--all"],workingDir:e.cwd}}(e),{all:!0})}(e)),n.pullAllPwc&&o.push(async function(e){s.loggerService.info("Pulling all PWC components...");const t=(0,f.pwcPullCommand)(void 0,{all:!0,type:h.PWCType.Component},e);s.loggerService.info("Pulling all PWC plugins...");const n=(0,f.pwcPullCommand)(void 0,{all:!0,type:h.PWCType.Plugin},e);await Promise.all([t,n])}(e));const r=(await Promise.allSettled(o)).find(e=>"rejected"===e.status);if(r&&"rejected"===r.status)throw r.reason}(O,t,_,k)};const o=n(1421),a=i(n(6760)),r=n(118),s=n(3333),c=n(2088),l=n(5409),p=n(9739),u=n(901),d=n(6973),m=n(9207),f=n(7363),h=n(1851),g=n(3299),v=n(8102);function y(e){return process.stdin.isTTY&&process.stdout.isTTY&&!e.yes}function b(e){if(!v.SUPPORTED_AGENTS.some(t=>t.name===e))throw new Error(`Unsupported agent: ${e}.`)}async function x(e,t=""){return function(e){if((0,r.isCancel)(e))throw new Error("Initialization canceled.");return e.trim()}(await(0,r.text)({message:e,placeholder:t||void 0,initialValue:t||void 0}))||t}async function w(e,t=!1){const n=await(0,r.confirm)({message:e,initialValue:t});if((0,r.isCancel)(n))throw new Error("Initialization canceled.");return n}async function S(e,t){return new Promise(n=>{(0,o.exec)(`git remote add origin ${t}`,{cwd:e},(e,i,o)=>{e?s.loggerService.warn(`Failed to add git remote: ${o.trim()||e.message}`):s.loggerService.info(`Git remote added: origin -> ${t}`),n()})})}},5379(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.objectDevFieldCreateCommand=async function(e){const t=await(0,i.fieldCreateService)(e.objectApiName,e.fieldApiName,e.data);if(!t)throw new Error("Field metadata not created.");o.loggerService.success("Command completed: field create"),o.loggerService.info(`Field metadata created: ${t}`)},t.objectDevFieldUpdateCommand=async function(e){const t=await(0,i.fieldUpdateService)(e.objectApiName,e.apiName||e.fieldApiName,e.data);if(!t)throw new Error("Field metadata not updated.");o.loggerService.success("Command completed: field update"),o.loggerService.info(`Field metadata updated: ${t}`)},t.objectDevFieldPushCommand=async function(e){const t=await(0,i.fieldPushService)(e.objectApiName,e.fieldApiName);o.loggerService.success(`Push completed successfully: field (${t.objectApiName}.${t.apiName})`)};const i=n(285),o=n(3333)},9355(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.objectDevValidateRulePushCommand=t.objectDevValidateRulePullCommand=t.objectDevValidateRuleCreateCommand=t.objectDevLayoutRulePushCommand=t.objectDevLayoutRulePullCommand=t.objectDevLayoutPushCommand=t.objectDevLayoutPullCommand=t.objectDevFieldPushCommand=t.objectDevFieldUpdateCommand=t.objectDevFieldCreateCommand=t.objectDevObjectPushCommand=t.objectDevObjectUpdateCommand=t.objectDevObjectCreateCommand=t.objectDevObjectPullCommand=void 0;const i=n(1268);Object.defineProperty(t,"objectDevObjectPullCommand",{enumerable:!0,get:function(){return i.objectDevObjectPullCommand}});const o=n(1268);Object.defineProperty(t,"objectDevObjectCreateCommand",{enumerable:!0,get:function(){return o.objectDevObjectCreateCommand}}),Object.defineProperty(t,"objectDevObjectUpdateCommand",{enumerable:!0,get:function(){return o.objectDevObjectUpdateCommand}}),Object.defineProperty(t,"objectDevObjectPushCommand",{enumerable:!0,get:function(){return o.objectDevObjectPushCommand}});const a=n(5379);Object.defineProperty(t,"objectDevFieldCreateCommand",{enumerable:!0,get:function(){return a.objectDevFieldCreateCommand}}),Object.defineProperty(t,"objectDevFieldUpdateCommand",{enumerable:!0,get:function(){return a.objectDevFieldUpdateCommand}}),Object.defineProperty(t,"objectDevFieldPushCommand",{enumerable:!0,get:function(){return a.objectDevFieldPushCommand}});const r=n(2649);Object.defineProperty(t,"objectDevLayoutPullCommand",{enumerable:!0,get:function(){return r.objectDevLayoutPullCommand}}),Object.defineProperty(t,"objectDevLayoutPushCommand",{enumerable:!0,get:function(){return r.objectDevLayoutPushCommand}});const s=n(280);Object.defineProperty(t,"objectDevLayoutRulePullCommand",{enumerable:!0,get:function(){return s.objectDevLayoutRulePullCommand}}),Object.defineProperty(t,"objectDevLayoutRulePushCommand",{enumerable:!0,get:function(){return s.objectDevLayoutRulePushCommand}});const c=n(8240);Object.defineProperty(t,"objectDevValidateRuleCreateCommand",{enumerable:!0,get:function(){return c.objectDevValidateRuleCreateCommand}}),Object.defineProperty(t,"objectDevValidateRulePullCommand",{enumerable:!0,get:function(){return c.objectDevValidateRulePullCommand}}),Object.defineProperty(t,"objectDevValidateRulePushCommand",{enumerable:!0,get:function(){return c.objectDevValidateRulePushCommand}})},280(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.objectDevLayoutRulePullCommand=async function(e){const t=await(0,o.layoutRulePullService)(e.objectApiName,e.namespace);i.loggerService.success(`Layout-rule pull completed: found=${t.found}, written=${t.written}, skipped=${t.skipped}`)},t.objectDevLayoutRulePushCommand=async function(e){const t=await(0,o.layoutRulePushService)(e.objectApiName,e.layoutRuleApiName);i.loggerService.success(`Push completed successfully: layout-rule (${t.objectApiName}.${t.apiName})`)};const i=n(3333),o=n(285)},2649(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.objectDevLayoutPullCommand=async function(e){const t=function(e,t){const n=(e??"").split(",").map(e=>e.trim()).filter(Boolean),i=t?.trim();return i&&n.push(i),Array.from(new Set(n))}(e.objectApiNames,e.objectApiName),n=await(0,o.layoutPullService)(t,e.type,e.namespace,e.layoutApiName);i.loggerService.success(`Layout pull completed: found=${n.found}, written=${n.written}, skipped=${n.skipped}`)},t.objectDevLayoutPushCommand=async function(e){const t=await(0,o.layoutPushService)(e.objectApiName,e.layoutApiName,e.type);t.usedDefaultLayoutType&&i.loggerService.warn("Layout type is missing in layout metadata and --type was not provided. Fallback to default type: detail."),i.loggerService.success(`Push completed successfully: layout (${t.objectApiName}.${t.apiName})`)};const i=n(3333),o=n(285)},1268(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.objectDevObjectPullCommand=async function(e){const t=e.apiName?.trim()||void 0;if(e.custom&&e.package)throw new Error("Invalid arguments: use either --custom or --package, not both.");const n=!0===e.all&&!t,a=e.custom?"custom":e.package?"package":null,{found:r,written:s,skipped:c,errorMessages:l}=await(0,i.objectPullService)(n,a,t);l.length&&l.forEach(e=>o.loggerService.error(e)),o.loggerService.success(`Object pull completed: found=${r}, written=${s}, skipped=${c}`)},t.objectDevObjectCreateCommand=async function(e){const t=await(0,i.objectCreateService)(e.apiName,e.data);if(!t)throw new Error("Object metadata not created");o.loggerService.success("Command completed: object create"),o.loggerService.info(`Object metadata created: ${t}`)},t.objectDevObjectUpdateCommand=async function(e){const t=await(0,i.objectUpdateService)(e.apiName,e.data);if(!t)throw new Error("Object metadata not updated");o.loggerService.success("Command completed: object update"),o.loggerService.info(`Object metadata updated: ${t}`)},t.objectDevObjectPushCommand=async function(e){await(0,i.objectPushService)(e.apiName,e.layout),o.loggerService.success(`Push completed successfully: object (${e.apiName})`)};const i=n(285),o=n(3333)},8240(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.objectDevValidateRulePullCommand=async function(e){const t=await(0,o.validateRulePullService)(e.apiName);i.loggerService.success(`Validate-rule pull completed: found=${t.found}, written=${t.written}, skipped=${t.skipped}`)},t.objectDevValidateRuleCreateCommand=async function(e){const t=await(0,o.validateRuleCreateService)(e.apiName,e.data);i.loggerService.success("Command completed: validate-rule create"),i.loggerService.info(`Validate-rule metadata created: ${t}`)},t.objectDevValidateRulePushCommand=async function(e){const t=await(0,o.validateRulePushService)(e.objectApiName,e.apiName);i.loggerService.success(`Push completed successfully: validate-rule (${t.objectApiName}.${t.apiName})`)};const i=n(3333),o=n(285)},4431(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.XmlMetadataManager=void 0;const o=i(n(6760)),a=n(3024),r=n(5409),s=n(2706),c={Object:{defaultOpenTag:'<Object xmlns="http://sharecrm.com/metadata">'},ObjectField:{defaultOpenTag:'<ObjectField xmlns="http://sharecrm.com/metadata">'},ObjectLayout:{defaultOpenTag:'<ObjectLayout xmlns="http://sharecrm.com/metadata">'},ObjectLayoutRule:{defaultOpenTag:'<ObjectLayoutRule xmlns="http://sharecrm.com/metadata">'},ObjectValidateRule:{defaultOpenTag:'<ObjectValidateRule xmlns="http://sharecrm.com/metadata">'}};let l=null;class p{constructor(){this.headerPathMap={Object:"tenant-config/objects/{objectApiName}/{objectApiName}.object-meta.xml",ObjectField:"tenant-config/objects/{objectApiName}/fields/{apiName}.field-meta.xml",ObjectLayout:"tenant-config/objects/{objectApiName}/layouts/{apiName}.layout-meta.xml",ObjectLayoutRule:"tenant-config/objects/{objectApiName}/layout-rules/{apiName}.layout-rule-meta.xml",ObjectValidateRule:"tenant-config/objects/{objectApiName}/validate-rules/{apiName}.validate-rule-meta.xml"}}static getInstance(){return l||(l=new p),l}async writeXml(e,t,n,i={}){const a=c[e],s=i.filePath?o.default.resolve(i.filePath):m(this.headerPathMap,e,t,i.objectApiName);await(0,r.ensureDir)(o.default.dirname(s));const l=await this.readInternal(e,s),p=function(e,t){const n=`</${e}>`,i=['<?xml version="1.0" encoding="UTF-8"?>',t.openTag,`<content><![CDATA[${JSON.stringify(t.content??null)}]]></content>`];return void 0!==t.features&&i.push(`<features><![CDATA[${JSON.stringify(t.features)}]]></features>`),void 0!==t.extra&&i.push(`<extra><![CDATA[${JSON.stringify(t.extra)}]]></extra>`),i.push(`<status>${t.status}</status>`),i.push(n,""),i.join("\n")}(e,{content:n,status:i.status??l.status??"unchanged",features:void 0===i.features?l.features:i.features,extra:void 0===i.extra?l.extra:i.extra,openTag:l.openTag??a.defaultOpenTag});return await(0,r.writeTextFile)(s,p),s}async readXml(e,t,n={}){const i=m(this.headerPathMap,e,t,n.objectApiName),o=await this.readInternal(e,i),a=(s=n.fields,Array.isArray(s)?s.map(e=>e.trim()).filter(Boolean):[]),r={content:o.content,status:o.status,features:o.features,extra:o.extra};var s;if(0===a.length)return r;const c={};for(const e of a)"content"!==e?"status"!==e?"features"!==e?c.extra=r.extra:c.features=r.features:c.status=r.status:c.content=r.content;return c}async listLocalXmlApiName(e){const t=o.default.join(process.cwd(),"tenant-config","objects"),n=function(e){const t=e?.trim();return t||void 0}(e),i=n?[n]:await async function(e){try{return(await a.promises.readdir(e,{withFileTypes:!0})).filter(e=>e.isDirectory()).map(e=>e.name).sort((e,t)=>e.localeCompare(t))}catch{return[]}}(t),s={};for(const e of i){const n=o.default.join(t,e);await(0,r.pathExists)(n)&&(s[e]={object:await v(n,".object-meta.xml"),fields:await v(o.default.join(n,"fields"),".field-meta.xml"),layouts:await v(o.default.join(n,"layouts"),".layout-meta.xml"),layoutRules:await v(o.default.join(n,"layout-rules"),".layout-rule-meta.xml"),validateRules:await v(o.default.join(n,"validate-rules"),".validate-rule-meta.xml")})}return s}async readInternal(e,t){if(!await(0,r.pathExists)(t))return{content:null,status:"unchanged"};const n=await(0,r.readTextFile)(t),i=(0,s.parseMateXml)(n)[e];if(!i||"object"!=typeof i||Array.isArray(i))return{content:null,status:"unchanged",openTag:u(n,e)};const o=i;return{content:h(o.content,e,t,"content")??null,status:f(o.status,e,t),features:h(o.features,e,t,"features"),extra:h(o.extra,e,t,"extra"),openTag:u(n,e)}}}function u(e,t){return e.match(new RegExp(`<${t}\\b[^>]*>`,"i"))?.[0]}function d(e,t){const n=e?.trim();if(!n)throw new Error(`XmlMetadataManager writeXml requires ${t}.`);return n}function m(e,t,n,i){const a=e[t],r=d(n,"apiName"),s="Object"===t?r:d(i,"objectApiName"),c=a.replace(/\{objectApiName\}/g,s).replace(/\{apiName\}/g,r);return o.default.join(process.cwd(),...c.split("/"))}function f(e,t,n){if(null==e)return"unchanged";if("string"!=typeof e)throw new Error(`Invalid status type in ${t} xml: ${n}`);const i=e.trim().toLowerCase();if("new"===i||"modified"===i||"unchanged"===i)return i;throw new Error(`Invalid status value "${e}" in ${t} xml: ${n}`)}function h(e,t,n,i){if(null==e)return;if("string"!=typeof e)throw new Error(`Invalid ${i} type in ${t} xml: ${n}`);const o=e.trim();if(o)try{const e=JSON.parse(o);if(!g(e))throw new Error(`Invalid ${i} JSON value in ${t} xml: ${n}`);return e}catch(e){throw new Error(`Invalid ${i} JSON in ${t} xml: ${n}. ${e.message}`)}}function g(e){return null===e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e||(Array.isArray(e)?e.every(e=>g(e)):"object"==typeof e&&Object.values(e).every(e=>g(e)))}async function v(e,t){try{return(await a.promises.readdir(e,{withFileTypes:!0})).filter(e=>e.isFile()&&e.name.endsWith(t)).map(e=>e.name.slice(0,-t.length)).sort((e,t)=>e.localeCompare(t))}catch{return[]}}t.XmlMetadataManager=p},3163(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fieldCreateService=void 0;const o=i(n(9268)),a=new(n(4431).XmlMetadataManager);t.fieldCreateService=async(e,t,n)=>{const i=o.default.normalizeString(e),r=o.default.normalizeString(t);if(!i||!/^[A-Za-z][A-Za-z0-9_]*$/.test(i))throw new Error("Invalid arguments: objectApiName is required.");if(!r||!/^[A-Za-z][A-Za-z0-9_]*$/.test(r))throw new Error("Invalid arguments: fieldApiName is required.");const s=o.default.normalizeString(n);if(!s)throw new Error("Invalid arguments: data is required.");const c=JSON.parse(s);if(!c||"object"!=typeof c||Array.isArray(c))throw new Error("data must be a JSON object.");return await a.writeXml("ObjectField",r,c,{objectApiName:i,status:"new"})}},551(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fieldPushService=void 0;const o=i(n(9268)),a=n(2351),r=n(4431),s=n(9365),c=n(3176),l=n(3333),p=new r.XmlMetadataManager,u=o.default.isRecord;t.fieldPushService=async(e,t)=>{const n=o.default.normalizeString(e),i=o.default.normalizeString(t);if(!n||!/^[A-Za-z][A-Za-z0-9_]*$/.test(n))throw new Error("Invalid arguments: objectApiName is required.");if(!i||!/^[A-Za-z][A-Za-z0-9_]*$/.test(i))throw new Error("Invalid arguments: fieldApiName is required.");const r=await p.readXml("ObjectField",i,{objectApiName:n});if(!r.content||!u(r.content))throw new Error(`Invalid field content: ${n}.${i}`);const d="new"===r.status;if(!d){l.loggerService.startLoading(`field push pre-pull: ${n}.${i}`);try{await(0,s.objectPullService)(!1,null,n)}finally{l.loggerService.stopLoading()}}const m=await p.readXml("Object",n,{fields:["extra"]}),f=(()=>{if(!u(m.extra))return{fields:{}};const e=m.extra.fields;return u(e)?{fields:e}:{fields:{}}})();l.loggerService.startLoading(`field push request: ${n}.${i}`);const h=await(0,c.requestObjectDevExecute)(d?(0,a.getShareCliCommandPath)("objectDev","addDescribeCustomField"):(0,a.getShareCliCommandPath)("objectDev","updateCustomFieldDescribe"),{describeAPIName:n,field_describe:JSON.stringify(r.content),layout_list:"[]",group_fields:"[]",persistentDataCalc:"",describe_extra:f,fieldsExtra:[],i18nInfoList:[]});if(!h||"object"!=typeof h)throw l.loggerService.stopLoading(),new Error("field push failed: invalid response");const g=h;if(!0!==g.success||"OK"!==o.default.normalizeString(g.code))throw l.loggerService.stopLoading(),new Error(`field push failed: ${o.default.normalizeText(g.message)||"Unknown error"}`);l.loggerService.stopLoading();const v=await p.readXml("ObjectField",i,{objectApiName:n});await p.writeXml("ObjectField",i,v.content,{objectApiName:n,status:"unchanged",features:v.features,extra:v.extra}),l.loggerService.startLoading(`field push post-pull: ${n}.${i}`);try{await(0,s.objectPullService)(!1,null,n)}finally{l.loggerService.stopLoading()}return{objectApiName:n,apiName:i}}},214(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fieldUpdateService=void 0;const o=i(n(9268)),a=new(n(4431).XmlMetadataManager);t.fieldUpdateService=async(e,t,n)=>{const i=o.default.normalizeString(e),r=o.default.normalizeString(t);if(!i||!/^[A-Za-z][A-Za-z0-9_]*$/.test(i))throw new Error("Invalid arguments: objectApiName is required.");if(!r||!/^[A-Za-z][A-Za-z0-9_]*$/.test(r))throw new Error("Invalid arguments: fieldApiName is required.");const s=o.default.normalizeString(n);if(!s)throw new Error("Invalid arguments: data is required.");const c=JSON.parse(s);if(!c||"object"!=typeof c||Array.isArray(c))throw new Error("data must be a JSON object.");const l=await a.readXml("ObjectField",r,{objectApiName:i,fields:["content"]});if(null===l.content||void 0===l.content)throw new Error(`Field metadata not found: ${i}.${r}`);return await a.writeXml("ObjectField",r,c,{objectApiName:i,status:"modified"})}},285(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.extractObjectDevServiceResult=t.requestObjectDevExecute=t.validateRulePushService=t.validateRuleCreateService=t.validateRulePullService=t.layoutRulePushService=t.layoutRulePullService=t.layoutPushService=t.layoutPullService=t.fieldPushService=t.fieldUpdateService=t.fieldCreateService=t.objectPushService=t.objectUpdateService=t.objectCreateService=t.objectPullService=void 0;var i=n(9365);Object.defineProperty(t,"objectPullService",{enumerable:!0,get:function(){return i.objectPullService}});var o=n(6642);Object.defineProperty(t,"objectCreateService",{enumerable:!0,get:function(){return o.objectCreateService}});var a=n(7171);Object.defineProperty(t,"objectUpdateService",{enumerable:!0,get:function(){return a.objectUpdateService}});var r=n(9558);Object.defineProperty(t,"objectPushService",{enumerable:!0,get:function(){return r.objectPushService}});var s=n(3163);Object.defineProperty(t,"fieldCreateService",{enumerable:!0,get:function(){return s.fieldCreateService}});var c=n(214);Object.defineProperty(t,"fieldUpdateService",{enumerable:!0,get:function(){return c.fieldUpdateService}});var l=n(551);Object.defineProperty(t,"fieldPushService",{enumerable:!0,get:function(){return l.fieldPushService}});var p=n(6798);Object.defineProperty(t,"layoutPullService",{enumerable:!0,get:function(){return p.layoutPullService}});var u=n(5389);Object.defineProperty(t,"layoutPushService",{enumerable:!0,get:function(){return u.layoutPushService}});var d=n(4869);Object.defineProperty(t,"layoutRulePullService",{enumerable:!0,get:function(){return d.layoutRulePullService}});var m=n(2726);Object.defineProperty(t,"layoutRulePushService",{enumerable:!0,get:function(){return m.layoutRulePushService}});var f=n(5669);Object.defineProperty(t,"validateRulePullService",{enumerable:!0,get:function(){return f.validateRulePullService}});var h=n(2578);Object.defineProperty(t,"validateRuleCreateService",{enumerable:!0,get:function(){return h.validateRuleCreateService}});var g=n(950);Object.defineProperty(t,"validateRulePushService",{enumerable:!0,get:function(){return g.validateRulePushService}});var v=n(3176);Object.defineProperty(t,"requestObjectDevExecute",{enumerable:!0,get:function(){return v.requestObjectDevExecute}}),Object.defineProperty(t,"extractObjectDevServiceResult",{enumerable:!0,get:function(){return v.extractObjectDevServiceResult}})},4869(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.layoutRulePullService=void 0;const o=i(n(9268)),a=n(2351),r=n(4431),s=n(3176),c=n(7480),l=n(3333),p=new r.XmlMetadataManager,u=o.default.normalizeString,d=o.default.asString;t.layoutRulePullService=async(e,t)=>{const n=o.default.normalizeString(e);if(!n||!/^[A-Za-z][A-Za-z0-9_]*$/.test(n))throw new Error("Invalid arguments: objectApiName is required.");const i=u(t)??"flow";l.loggerService.startLoading(`layout-rule pull request: ${n}`);const r=await(0,s.requestObjectDevExecute)((0,a.getShareCliCommandPath)("objectDev","queryLayoutRuleRelatedInfo"),{describeApiName:n,sourceInfo:"object_management",namespaceList:[i],includeDescribe:!0,includeLayout:!0}),m=await(0,s.extractObjectDevServiceResult)(r,e=>{const t=(0,c.narrowObjectDevResponse)(e.data);if(!t)return[];const n=(0,c.narrowObjectDevResponse)(t.data);if(!n)return[];const i=(0,c.narrowObjectDevResponse)(n.layoutRuleList)||(0,c.narrowObjectDevResponse)(n.relatedInfoList)||(0,c.narrowObjectDevResponse)(n.layoutRules)||[],o=[];for(const e of i){const t=u(d(e.layoutRuleApiName)??d(e.api_name)??d(e.apiName));t&&o.push(t)}return o});if(!m.success)throw l.loggerService.stopLoading(),new Error(`layout-rule pull failed: ${m.errorMessage}`);const f=m.data||[];let h=0,g=0;const v=[];for(const e of f){const t=await(0,s.requestObjectDevExecute)((0,a.getShareCliCommandPath)("objectDev","queryLayoutRuleInfo"),{layoutRuleApiName:e}),i=await(0,s.extractObjectDevServiceResult)(t,e=>{const t=(0,c.narrowObjectDevResponse)(e.data);return t&&(0,c.narrowObjectDevResponse)(t.data)||{}});if(!i.success){v.push(`layout-rule detail pull failed: ${e}, ${i.errorMessage}`);continue}const o=i.data||{};"unchanged"===(await p.readXml("ObjectLayoutRule",e,{objectApiName:n,fields:["status"]})).status?(await p.writeXml("ObjectLayoutRule",e,o,{objectApiName:n,status:"unchanged"}),h+=1):g+=1}return l.loggerService.stopLoading(),{objectApiNames:[n],found:f.length,written:h,skipped:g,errorMessages:v}}},2726(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.layoutRulePushService=void 0;const o=i(n(9268)),a=n(2351),r=n(4431),s=n(9365),c=n(4869),l=n(3176),p=n(3333),u=new r.XmlMetadataManager,d=o.default.normalizeString,m=o.default.isRecord;t.layoutRulePushService=async(e,t)=>{const n=o.default.normalizeString(e),i=o.default.normalizeString(t);if(!n||!/^[A-Za-z][A-Za-z0-9_]*$/.test(n))throw new Error("Invalid arguments: objectApiName is required.");if(!i||!/^[A-Za-z][A-Za-z0-9_]*$/.test(i))throw new Error("Invalid arguments: layoutRuleApiName is required.");const r=await u.readXml("ObjectLayoutRule",i,{objectApiName:n});if(!r.content||!m(r.content))throw new Error(`Invalid layout-rule content: ${n}.${i}`);const f="new"===r.status;if(!f){p.loggerService.startLoading(`layout-rule push pre-pull: ${n}.${i}`);try{await(0,s.objectPullService)(!1,null,n),await(0,c.layoutRulePullService)(n)}finally{p.loggerService.stopLoading()}}p.loggerService.startLoading(`layout-rule push request: ${n}.${i}`);const h=await(0,l.requestObjectDevExecute)(f?(0,a.getShareCliCommandPath)("objectDev","createLayoutRule"):(0,a.getShareCliCommandPath)("objectDev","updateLayoutRule"),{json_data:JSON.stringify(r.content)});if(!0!==h.success||"OK"!==d(h.code))throw p.loggerService.stopLoading(),new Error(`layout-rule push failed: ${o.default.normalizeText(h.message)||"Unknown error"}`);p.loggerService.stopLoading();const g=await u.readXml("ObjectLayoutRule",i,{objectApiName:n});if(await u.writeXml("ObjectLayoutRule",i,g.content,{objectApiName:n,status:"unchanged",features:g.features,extra:g.extra}),!f){p.loggerService.startLoading(`layout-rule push post-pull: ${n}.${i}`);try{await(0,s.objectPullService)(!1,null,n),await(0,c.layoutRulePullService)(n)}finally{p.loggerService.stopLoading()}}return{objectApiName:n,apiName:i}}},6798(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.layoutPullService=void 0;const o=i(n(9268)),a=n(2351),r=n(4431),s=n(3176),c=n(7480),l=n(3333),p=new r.XmlMetadataManager,u=o.default.normalizeString,d=o.default.asString;t.layoutPullService=async(e,t,n,i)=>{const o=Array.from(new Set(e.map(e=>u(e)).filter(Boolean)));if(!o.length)throw new Error("Invalid arguments: use --objectApiName <apiName> or --objectApiNames <a,b>.");const r=u(t)??"detail",m=u(n),f=u(i),h=[];let g=0,v=0,y=0;l.loggerService.startLoading(`layout pull request: ${o.join(",")}`);for(const e of o){const t={objectDescribeApiName:e,layoutType:r,sourceInfo:"object_management"};m&&(t.namespace=m);const n=await(0,s.requestObjectDevExecute)((0,a.getShareCliCommandPath)("objectDev","queryLayoutByObjDescribeApiName"),t),i=await(0,s.extractObjectDevServiceResult)(n,e=>{const t=(0,c.narrowObjectDevResponse)(e.data);if(!t)return[];const n=(0,c.narrowObjectDevResponse)(t.data);return n&&((0,c.narrowObjectDevResponse)(n.layoutList)||(0,c.narrowObjectDevResponse)(n.layouts)||(0,c.narrowObjectDevResponse)(n.dataList))||[]});if(!i.success){h.push(`layout pull failed: ${i.errorMessage}`);continue}const o=i.data||[];for(const t of o){const n=u(d(t.api_name)??d(t.apiName));n&&(f&&n!==f||(g+=1,"unchanged"===(await p.readXml("ObjectLayout",n,{objectApiName:e,fields:["status"]})).status?(await p.writeXml("ObjectLayout",n,t,{objectApiName:e,status:"unchanged"}),v+=1):y+=1))}}return l.loggerService.stopLoading(),{objectApiNames:o,found:g,written:v,skipped:y,errorMessages:h}}},5389(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.layoutPushService=void 0;const o=i(n(9268)),a=n(2351),r=n(4431),s=n(9365),c=n(6798),l=n(3176),p=n(3333),u=new r.XmlMetadataManager,d=o.default.normalizeString,m=o.default.asString,f=o.default.isRecord;t.layoutPushService=async(e,t,n)=>{const i=o.default.normalizeString(e);if(!i||!/^[A-Za-z][A-Za-z0-9_]*$/.test(i))throw new Error("Invalid arguments: objectApiName is required.");const r=await u.listLocalXmlApiName(i),h=r[i]?.layouts?.[0],g=d(t)??h;if(!g)throw new Error("No layout metadata found. Use --layoutApiName <apiName>.");const v=await u.readXml("ObjectLayout",g,{objectApiName:i});if(!v.content||!f(v.content))throw new Error(`Invalid layout content: ${i}.${g}`);const y=v.content,b=d(m(y.layout_type)??m(y.layoutType)),x=d(n),w=b??x??"detail",S=!b&&!x,C=w.toLowerCase(),_="list"===C||"list_layout"===C,k="new"===v.status;if(!k){p.loggerService.startLoading(`layout push pre-pull: ${i}.${g}`);try{await(0,s.objectPullService)(!1,null,i),await(0,c.layoutPullService)([i],n,void 0,g)}finally{p.loggerService.stopLoading()}}const E=await u.readXml("Object",i);if(!E.content||!f(E.content))throw new Error(`Invalid object content: ${i}`);const T=E.content,j=_?{commandPath:k?(0,a.getShareCliCommandPath)("objectDev","createViewLayout"):(0,a.getShareCliCommandPath)("objectDev","updateViewLayout"),data:{layoutData:y,draftData:{},active:!0,describeExtra:{},persistentDataCalc:"",fieldsExtra:[],appId:"CRM"}}:{commandPath:k?(0,a.getShareCliCommandPath)("objectDev","createDesignerLayout"):(0,a.getShareCliCommandPath)("objectDev","updateDesignerLayout"),data:{apiName:i,layoutType:w,appId:"CRM",persistentDataCalc:"",layoutData:y,describeData:T,describeExtra:{},fieldsExtra:[],i18nInfoList:[]}};p.loggerService.startLoading(`layout push request: ${i}.${g}`);const O=await(0,l.requestObjectDevExecute)(j.commandPath,j.data);if(!0!==O.success||"OK"!==d(O.code))throw p.loggerService.stopLoading(),new Error(`layout push failed: ${o.default.normalizeText(O.message)||"Unknown error"}`);p.loggerService.stopLoading();const A=await u.readXml("ObjectLayout",g,{objectApiName:i});await u.writeXml("ObjectLayout",g,A.content,{objectApiName:i,status:"unchanged",features:A.features,extra:A.extra}),p.loggerService.startLoading(`layout push post-pull: ${i}.${g}`);try{await(0,s.objectPullService)(!1,null,i),await(0,c.layoutPullService)([i],n,void 0,g)}finally{p.loggerService.stopLoading()}return{objectApiName:i,apiName:g,layoutType:w,usedDefaultLayoutType:S}}},6642(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.objectCreateService=void 0;const o=i(n(9268)),a=new(n(4431).XmlMetadataManager);t.objectCreateService=async(e,t)=>{const n=o.default.normalizeString(e);if(!n||!/^[A-Za-z][A-Za-z0-9_]*$/.test(n))throw new Error("Invalid arguments: apiName is required.");const i=o.default.normalizeString(t);if(!i)throw new Error("Invalid arguments: data is required.");const r=JSON.parse(i);if(!r||"object"!=typeof r||Array.isArray(r))throw new Error("data must be a JSON object.");return await a.writeXml("Object",n,r,{status:"new"})}},9365(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.objectPullService=async function(e,t=null,n){const i=[],c=[];if(n)c.push(n);else if(e){a.loggerService.startLoading("Fetching object apiName list...");try{c.push(...await(async(e=null)=>await(0,l.requestObjectDevExecute)((0,r.getShareCliCommandPath)("objectDev","queryDescribeManageList"),{isIncludeFieldDescribe:!1,isIncludeSystemObj:!1,isIncludeUnActived:!0,packageName:"CRM",sourceInfo:"object_management",includeControlLevel:!0,describeDefineType:e}))(t).then(d))}finally{a.loggerService.stopLoading()}a.loggerService.info(`Fetched object apiName count: ${c.length}`)}a.loggerService.startLoading(`object pull request: ${n||"batch"}`);const m=await(0,l.requestObjectDevExecute)((0,r.getShareCliCommandPath)("objectDev","queryDescribeListByApiName"),{describe_apiname_list:c,excludeBigObject:!0,include_describe_extra:!0});a.loggerService.stopLoading();const f=await(0,l.extractObjectDevServiceResult)(m,e=>{const t=(0,p.narrowObjectDevResponse)(e.data);if(!t)throw new Error("Invalid response data");const n=(0,p.narrowObjectDevResponse)(t.data);if(!n)throw new Error("Invalid response data");return(0,p.narrowObjectDevResponse)(n.objectDescribeList)||[]}).then(e=>e.data||[]),h=await(0,l.extractObjectDevServiceResult)(m,e=>{const t=(0,p.narrowObjectDevResponse)(e.data);if(!t)throw new Error("Invalid response data");const n=(0,p.narrowObjectDevResponse)(t.data);if(!n)throw new Error("Invalid response data");return(0,p.narrowObjectDevResponse)(n.describeExtraMap)||{}}).then(e=>{const t=new Map;for(const[n,i]of Object.entries(e.data||{}))t.set(n,i);return t}),g=new Map;for(const e of f){const t=s.default.normalizeText(e.api_name);if(!t)continue;const n=(()=>{const t=[];for(const[n,i]of Object.entries(e.fields||{}))t.push({fieldApiName:n,fieldData:i});return t})();e.fields=null,g.set(t,{objectData:e,objectExtra:h.get(t),fields:n})}let v=0,y=0;a.loggerService.startLoading(`object pull write xml: ${g.size}`);for(const[e,t]of g){a.loggerService.info(`object pull write xml: ${e}`);const{objectData:n,objectExtra:r,fields:s}=t;for(const[t,n]of Object.entries(s))try{"unchanged"===(await u.readXml("ObjectField",t,{fields:["status"],objectApiName:e})).status&&await u.writeXml("ObjectField",t,n,{objectApiName:e,status:"unchanged"})}catch(n){i.push(`${e} field: ${t}: ${n}`)}try{const t=await u.readXml("Object",e,{fields:["status"]});if("unchanged"!==t.status&&!await(0,o.confirm)({message:`Local object metadata ${t.status}: ${e}, overwrite?`,initialValue:!1})){y+=1;continue}await u.writeXml("Object",e,n,{status:"unchanged",extra:r}),v+=1}catch(t){i.push(`${e}: ${t}`)}}return a.loggerService.stopLoading(),{objectApiNames:[...g.keys()],found:g.size,written:v,skipped:y,errorMessages:i}};const o=n(118),a=n(3333),r=n(2351),s=i(n(9268)),c=n(4431),l=n(3176),p=n(7480),u=new c.XmlMetadataManager,d=async e=>await(0,l.extractObjectDevServiceResult)(e,e=>{const t=(0,p.narrowObjectDevResponse)(e.data),n=(0,p.narrowObjectDevResponse)(t?.data);if(!n)throw new Error("Inside error: get objectDescribeList failed");const i=n.objectDescribeList;return i&&Array.isArray(i)?i.map(e=>(0,p.narrowObjectDevResponse)(e)?.api_name):[]}).then(e=>e?.data||[])},9558(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.objectPushService=void 0;const o=i(n(9268)),a=n(2351),r=n(4431),s=n(9365),c=n(3176),l=n(3333),p=new r.XmlMetadataManager,u=o.default.isRecord;t.objectPushService=async(e,t=!1)=>{const n=o.default.normalizeString(e);if(!n||!/^[A-Za-z][A-Za-z0-9_]*$/.test(n))throw new Error("Invalid arguments: apiName is required.");const i=await p.readXml("Object",n),r=await p.listLocalXmlApiName(n),d=r[n]?.layouts??[],m={};if(t)for(const e of d){const t=await p.readXml("ObjectLayout",e,{objectApiName:n,fields:["content"]});m[e]=t.content??null}const f="new"===i.status;if(!f){l.loggerService.startLoading(`object push pre-pull: ${n}`);try{await(0,s.objectPullService)(!0,null,n)}finally{l.loggerService.stopLoading()}}const h=await p.readXml("Object",n);if(!h.content||!u(h.content))throw new Error(`Invalid object content: ${n}`);const g=h.content,v=r[n]?.fields??[],y={};for(const e of v){const t=await p.readXml("ObjectField",e,{objectApiName:n,fields:["content"]});if(!t.content||!u(t.content))throw new Error(`Invalid field content: ${n}.${e}`);y[e]=t.content}g.fields=y;const b=u(h.extra)?h.extra:{};l.loggerService.startLoading(`object push request: ${n}`);const x=await(0,c.requestObjectDevExecute)(f?(0,a.getShareCliCommandPath)("objectDev","createObjectDescribe"):(0,a.getShareCliCommandPath)("objectDev","updateObjectDescribe"),{json_data:JSON.stringify(g),json_layout:t?JSON.stringify(m):null,include_layout:t,active:!0,json_list_layout:null,describe_extra:b,i18nInfoList:[]});if(!x||"object"!=typeof x)throw new Error("object push failed: invalid response");const w=x;if(!0!==w.success||"OK"!==o.default.normalizeString(w.code))throw l.loggerService.stopLoading(),new Error(`object push failed: ${o.default.normalizeText(w.message)||"Unknown error"}`);l.loggerService.stopLoading(),await p.writeXml("Object",n,h.content,{status:"unchanged",features:h.features,extra:h.extra}),l.loggerService.startLoading(`object push post-pull: ${n}`);try{await(0,s.objectPullService)(!0,null,n)}finally{l.loggerService.stopLoading()}return{objectApiName:n,apiName:n}}},7171(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.objectUpdateService=void 0;const o=i(n(9268)),a=new(n(4431).XmlMetadataManager);t.objectUpdateService=async(e,t)=>{const n=o.default.normalizeString(e);if(!n||!/^[A-Za-z][A-Za-z0-9_]*$/.test(n))throw new Error("Invalid arguments: apiName is required.");const i=o.default.normalizeString(t);if(!i)throw new Error("Invalid arguments: data is required.");const r=JSON.parse(i);if(!r||"object"!=typeof r||Array.isArray(r))throw new Error("data must be a JSON object.");const s=await a.readXml("Object",n,{fields:["content"]});if(null===s.content||void 0===s.content)throw new Error(`Object metadata not found: ${n}`);return await a.writeXml("Object",n,r,{status:"modified"})}},3176(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.requestObjectDevExecute=async function(e,t,n){const i=await(0,o.executeShareCliCommand)(e,t,n);if(!i||"object"!=typeof i)throw new Error("Response is not an object or is empty.");return i},t.extractObjectDevServiceResult=async function(e,t){if(!e||"object"!=typeof e)throw new Error("Response is not an object or is empty.");return!0===e.success||"OK"===e.code?{success:!0,errorMessage:"",data:await t(e)}:{success:!1,errorMessage:a.default.normalizeText(e.message)||"Unknown error.",data:void 0}};const o=n(8554),a=i(n(9268))},7480(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.narrowObjectDevResponse=function(e){if(e&&"object"==typeof e){if(o(e))return e;i.loggerService.warn("Invalid narrow value")}else i.loggerService.warn("Invalid narrow value")};const i=n(3333);function o(e){return!!function(e){return null===e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e}(e)||(Array.isArray(e)?e.every(e=>o(e)):!(!e||"object"!=typeof e)&&Object.values(e).every(e=>void 0===e||o(e)))}},2578(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateRuleCreateService=void 0;const o=i(n(9268)),a=new(n(4431).XmlMetadataManager),r=o.default.asString;t.validateRuleCreateService=async(e,t)=>{const n=o.default.normalizeString(e);if(!n||!/^[A-Za-z][A-Za-z0-9_]*$/.test(n))throw new Error("Invalid arguments: apiName is required.");const i=o.default.normalizeString(t);if(!i)throw new Error("Invalid arguments: data is required.");const s=JSON.parse(i);if(!s||"object"!=typeof s||Array.isArray(s))throw new Error("data must be a JSON object.");const c=o.default.normalizeString(r(s.describe_api_name)??r(s.describeApiName));if(!c||!/^[A-Za-z][A-Za-z0-9_]*$/.test(c))throw new Error("Invalid arguments: describe_api_name or describeApiName is required.");return await a.writeXml("ObjectValidateRule",n,s,{objectApiName:c,status:"new"})}},5669(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateRulePullService=void 0;const o=i(n(9268)),a=n(2351),r=n(4431),s=n(3176),c=n(7480),l=n(3333),p=new r.XmlMetadataManager,u=o.default.normalizeString,d=o.default.asString;t.validateRulePullService=async e=>{const t=o.default.normalizeString(e);if(!t||!/^[A-Za-z][A-Za-z0-9_]*$/.test(t))throw new Error("Invalid arguments: apiName is required.");l.loggerService.startLoading(`validate-rule pull request: ${t}`);const n=await(0,s.requestObjectDevExecute)((0,a.getShareCliCommandPath)("objectDev","queryValidateRuleList"),{describeApiName:t}),i=await(0,s.extractObjectDevServiceResult)(n,e=>{const t=(0,c.narrowObjectDevResponse)(e.data);if(!t)return[];const n=(0,c.narrowObjectDevResponse)(t.data);return n&&((0,c.narrowObjectDevResponse)(n.ruleList)||(0,c.narrowObjectDevResponse)(n.validateRuleList))||[]});if(!i.success)throw l.loggerService.stopLoading(),new Error(`validate-rule pull failed: ${i.errorMessage}`);const r=i.data||[];let m=0,f=0;for(const e of r){const n=u(d(e.api_name)??d(e.apiName)??d(e.rule_api_name));n&&("unchanged"===(await p.readXml("ObjectValidateRule",n,{objectApiName:t,fields:["status"]})).status?(await p.writeXml("ObjectValidateRule",n,e,{objectApiName:t,status:"unchanged"}),m+=1):f+=1)}return l.loggerService.stopLoading(),{objectApiNames:[t],found:r.length,written:m,skipped:f,errorMessages:[]}}},950(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateRulePushService=void 0;const o=i(n(9268)),a=n(2351),r=n(4431),s=n(9365),c=n(5669),l=n(3176),p=n(3333),u=new r.XmlMetadataManager,d=o.default.normalizeString,m=o.default.isRecord;t.validateRulePushService=async(e,t)=>{const n=o.default.normalizeString(e),i=o.default.normalizeString(t);if(!n||!/^[A-Za-z][A-Za-z0-9_]*$/.test(n))throw new Error("Invalid arguments: objectApiName is required.");if(!i||!/^[A-Za-z][A-Za-z0-9_]*$/.test(i))throw new Error("Invalid arguments: apiName is required.");const r=await u.readXml("ObjectValidateRule",i,{objectApiName:n});if(!r.content||!m(r.content))throw new Error(`Invalid validate-rule content: ${n}.${i}`);const f="new"===r.status;if(!f){p.loggerService.startLoading(`validate-rule push pre-pull: ${n}.${i}`);try{await(0,s.objectPullService)(!1,null,n),await(0,c.validateRulePullService)(n)}finally{p.loggerService.stopLoading()}}p.loggerService.startLoading(`validate-rule push request: ${n}.${i}`);const h=await(0,l.requestObjectDevExecute)(f?(0,a.getShareCliCommandPath)("objectDev","createValidateRule"):(0,a.getShareCliCommandPath)("objectDev","updateValidateRule"),{json_data:JSON.stringify(r.content)});if(!0!==h.success||"OK"!==d(h.code))throw p.loggerService.stopLoading(),new Error(`validate-rule push failed: ${o.default.normalizeText(h.message)||"Unknown error"}`);p.loggerService.stopLoading();const g=await u.readXml("ObjectValidateRule",i,{objectApiName:n});if(await u.writeXml("ObjectValidateRule",i,g.content,{objectApiName:n,status:"unchanged",features:g.features,extra:g.extra}),!f){p.loggerService.startLoading(`validate-rule push post-pull: ${n}.${i}`);try{await(0,s.objectPullService)(!1,null,n),await(0,c.validateRulePullService)(n)}finally{p.loggerService.stopLoading()}}return{objectApiName:n,apiName:i}}},8967(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.orgDevUserQueryCommand=async function(e,t){const n=s(t.name);if(!n)throw new Error("Invalid arguments: use --name <name>.");const c={apiNames:["PersonnelObj"],query:n};i.loggerService.startLoading(`Executing org-dev user query: ${n}`);try{const e=await(0,a.executeOrgDevShareCli)((0,o.getShareCliCommandPath)("orgDev","userQuery"),c);i.loggerService.stopLoading(),i.loggerService.success("Command completed: org-dev user query"),r(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.orgDevDepartmentQueryCommand=async function(e,t){const n=s(t.name);if(!n)throw new Error("Invalid arguments: use --name <name>.");const c={apiNames:["DepartmentObj"],query:n};i.loggerService.startLoading(`Executing org-dev department query: ${n}`);try{const e=await(0,a.executeOrgDevShareCli)((0,o.getShareCliCommandPath)("orgDev","departmentQuery"),c);i.loggerService.stopLoading(),i.loggerService.success("Command completed: org-dev department query"),r(e)}catch(e){throw i.loggerService.stopLoading(),e}};const i=n(3333),o=n(2351),a=n(4113);function r(e){const t=function(e){const t=[],n=new WeakSet,i=[e];for(;i.length;){const e=i.pop();if(!e||"object"!=typeof e)continue;if(n.has(e))continue;if(n.add(e),Array.isArray(e)){for(const t of e)i.push(t);continue}const o=e,a=o.name2IdPos;if(Array.isArray(a)){for(const e of a){if(!e||"object"!=typeof e||Array.isArray(e))continue;const n=e,i=c(n.name),o=c(n.id);i&&o&&t.push({name:i,id:o})}if(t.length>0)return t}for(const e of Object.values(o))e&&"object"==typeof e&&i.push(e)}return t}(e);if(!t.length)return void i.loggerService.warn("No name/id data found in response.");const n=["name","id"],o=Math.max(n[0].length,...t.map(e=>e.name.length)),a=Math.max(n[1].length,...t.map(e=>e.id.length)),r=[];r.push(`${n[0].padEnd(o," ")} ${n[1].padEnd(a," ")}`),r.push(`${"-".repeat(o)} ${"-".repeat(a)}`);for(const e of t)r.push(`${e.name.padEnd(o," ")} ${e.id.padEnd(a," ")}`);i.loggerService.printRaw(`${r.join("\n")}\n`)}function s(e){const t=e?.trim();return t||void 0}function c(e){if("string"==typeof e){return e.trim()||void 0}if("number"==typeof e&&Number.isFinite(e))return String(e)}},4113(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.executeOrgDevShareCli=async function(e,t,n){return(0,i.executeShareCliCommand)(e,t,n)};const i=n(8554)},7363(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.pwcPullCommand=async function(e,t,n){const i=Boolean(t.all),o=e?.trim();if(i&&o)throw new Error("Invalid arguments: do not pass apiName when using --all.");if(!i&&!o)throw new Error("Invalid arguments: use sharedev pwc pull --apiname <apiName> --type <component|plugin> or sharedev pwc pull --all --type <component|plugin>.");if(!t.type)throw new Error("pwc pull currently requires an explicit --type <component|plugin>.");if("component"!==t.type&&"plugin"!==t.type)throw new Error(`Invalid type: ${t.type}, accept 'component|plugin'.`);if(i){s.loggerService.startLoading(`Fetching PWC resources for type=${t.type}`);const e=await(0,c.fetchCodeByType)(t.type);if(!e.length)throw s.loggerService.stopLoading(),new Error(`No PWC resources found for type=${t.type}.`);const i={target:e.length,success:0,failed:0};s.loggerService.updateLoading(`Found ${e.length} PWC resources, pulling...`);for(const o of e)try{T(o,t.type);const e=await j(n,o);i.success+=1,s.loggerService.success(`Pulled PWC resource ${o.apiName} to ${e}`)}catch(e){i.failed+=1;const t=e instanceof Error?e.message:String(e);s.loggerService.error(`Failed to pull PWC resource ${o.apiName||"<unknown>"}: ${t}`)}return s.loggerService.stopLoading(),void s.loggerService.info(`PWC pull completed: target=${i.target}, success=${i.success}, failed=${i.failed}`)}s.loggerService.startLoading(`Fetching PWC resource ${o}`);const a=await(0,c.fetchCode)(t.type,o);if(!a.length)throw s.loggerService.stopLoading(),new Error(`PWC resource not found: ${o}`);const r=a[0];T(r,t.type);const l=await j(n,r);s.loggerService.stopLoading(),s.loggerService.success(`Pulled PWC resource ${o} to ${l}`)},t.pwcCreateCommand=async function(e,t){s.loggerService.startLoading("Preparing PWC create");try{s.loggerService.updateLoading("Loading metadata");const[n,i]=await Promise.all([(0,c.getPwcConfig)(),(0,c.getObjectApiNames)()]),u=await async function(e,t,n){const i=process.stdin.isTTY&&process.stdout.isTTY,o=await async function(e,t){if(e===l.PWCType.Component||e===l.PWCType.Plugin)return e;if(!t)throw new Error("Missing required option --type <component|plugin>.");const n=await(0,a.select)({message:"Select PWC resource type",options:[{value:l.PWCType.Component,label:"Component"},{value:l.PWCType.Plugin,label:"Plugin"}]});if((0,a.isCancel)(n))throw new Error("PWC create cancelled.");return n}(e.type,i);if(o===l.PWCType.Component){const o=Object.keys(t.components??{}),r=await async function(e,t,n){const i=e?.trim()??"";if(i)return i;const o=t.length?t:["vue","applet"];if(!n)throw new Error("Missing required option --component-type.");const r=await(0,a.select)({message:"Select component type",options:o.map(e=>({value:e,label:e}))});if((0,a.isCancel)(r))throw new Error("PWC create cancelled.");return r}(e.componentType,o,i),s=t.components?.[r]??[],c=await async function(e,t,n){const i=x(e);if(i.length)return i;if(!n)throw new Error("Missing required option --scope-page-types.");const o=t.map(e=>({value:e.value,label:e.label??e.value}));if(!o.length)return x(await w("Enter scope page types (comma separated)"));const r=await(0,a.multiselect)({message:"Select supported page designer types",options:o,required:!0});if((0,a.isCancel)(r))throw new Error("PWC create cancelled.");return r}(e.scopePageTypes,s,i),l=c.some(e=>s.find(t=>t.value===e)?.isShowLimitObj),p=await async function(e,t){const n=x(e).filter(e=>"web"===e||"app"===e);if(n.length)return Array.from(new Set(n));if(!t)return["web"];const i=await(0,a.multiselect)({message:"Select supported clients",options:[{value:"web",label:"web"},{value:"app",label:"app"}],initialValues:["web"],required:!0});if((0,a.isCancel)(i))throw new Error("PWC create cancelled.");return i.filter(e=>"web"===e||"app"===e)}(e.clientTypes,i),u=await g(e.name,"--name","Enter PWC name",i),d=await g(e.apiName,"--apiname","Enter PWC API name",i,y),m=await v(e.description,"Enter PWC description"),b=!!l&&await f(e.limitObj,i);return{kind:"component",apiName:d,name:u,description:m,componentType:r,clientTypes:p,scopePageTypes:c,limitObj:b,scopeObjects:b?await h(e.scopeObjects,n,i):["ALL"]}}const r=await async function(e,t){if("web"===e||"app"===e)return e;if(!t)return"web";const n=await(0,a.select)({message:"Select plugin client",options:[{value:"web",label:"web"},{value:"app",label:"app"}]});if((0,a.isCancel)(n))throw new Error("PWC create cancelled.");return n}(e.client,i),s=t.plugins?.[r]??[],c=await async function(e,t,n){const i=e?.trim()??"";if(i)return i;if(!n)throw new Error("Missing required option --plugin-type.");const o=t.map(e=>({value:e.value,label:e.label??e.value}));if(!o.length)return g(void 0,"--plugin-type","Enter plugin type",n);const r=await(0,a.select)({message:"Select plugin type",options:o});if((0,a.isCancel)(r))throw new Error("PWC create cancelled.");return r}(e.pluginType,s,i),p=s.find(e=>e.value===c)?.isShowLimitObj??!0,u=await g(e.name,"--name","Enter PWC name",i),d=await g(e.apiName,"--apiname","Enter PWC API name",i,y),m=await v(e.description,"Enter PWC description"),b=!!p&&await f(e.limitObj,i),S=b?await h(e.scopeObjects,n,i):["ALL"];return{kind:"plugin",apiName:d,name:u,description:m,client:r,pluginType:c,limitObj:b,scopeObjects:S}}(e,n,i);!function(e){const t=y(e);if(t)throw new Error(t)}(u.apiName),s.loggerService.updateLoading("Uploading initialization template files");const E=await async function(e){if("component"===e.kind){if("applet"===e.componentType){const t=k(e.apiName);return{fileTree:(await b(S(t))).map(e=>({fileName:e.fileName,filePath:e.filePath,fileSize:e.fileSize,path:e.path??""}))}}return{sourceFiles:(await b([{fileName:"index.vue",content:d}])).map(e=>({fileName:e.fileName,filePath:e.filePath,fileSize:e.fileSize})),images:[],buildTool:"web",entryFileName:"index.vue"}}if("app"===e.client){const t=k(e.apiName);return{fileTree:(await b(C(t))).map(e=>({fileName:e.fileName,filePath:e.filePath,fileSize:e.fileSize,path:e.path??""}))}}return{sourceFiles:(await b([{fileName:"index.js",content:"export default class CustomPlugin { apply() { return []; } }\n"}])).map(e=>({fileName:e.fileName,filePath:e.filePath,fileSize:e.fileSize})),images:[],buildTool:"web",entryFileName:"index.js"}}(u);s.loggerService.updateLoading("Creating remote PWC resource"),"component"===u.kind?await(0,c.createComponentSource)({name:u.name,apiName:u.apiName,description:u.description,type:u.componentType,clientTypes:u.clientTypes,scopePageTypes:u.scopePageTypes,limitObj:u.limitObj,scopeObjects:u.scopeObjects,...E}):await(0,c.createPluginSource)({name:u.name,apiName:u.apiName,description:u.description,client:u.client,type:u.pluginType,limitObj:u.limitObj,scopeObjects:u.scopeObjects,...E}),s.loggerService.updateLoading("Downloading created resource to local workspace");const T="component"===u.kind?l.PWCType.Component:l.PWCType.Plugin,A=await async function(e,t){for(let n=1;n<=8;n+=1){const n=await(0,c.fetchCode)(e,t);if(n.length)return n[0];await O(500)}throw new Error(`Created PWC resource not found from remote: ${t}`)}(T,u.apiName),I=await j(t,A);await async function(e,t,n){const i=(0,p.resolvePwcComponentRoot)(e,t,n),a=o.default.join(i,"source"),s=t===l.PWCType.Component?"index.vue":"index.js",c=o.default.join(a,s);await(0,r.pathExists)(c)||await(0,r.writeTextFile)(c,t===l.PWCType.Component?d:m)}(t,T,u.apiName),await async function(e,t,n,i){const a=(0,p.resolvePwcComponentRoot)(e,n,i),r=k(i);"component"!==t.kind||"applet"!==t.componentType?"plugin"===t.kind&&"app"===t.client&&await _(a,{dirs:["fileTree/components","fileTree/components/"+r,"fileTree/plugins","fileTree/images"],files:C(r).map(e=>({relativePath:o.default.join("fileTree",e.path??"",e.fileName),content:e.content}))}):await _(a,{dirs:["fileTree/components","fileTree/components/"+r,"fileTree/images"],files:S(r).map(e=>({relativePath:o.default.join("fileTree",e.path??"",e.fileName),content:e.content}))})}(t,u,T,u.apiName),s.loggerService.stopLoading(),s.loggerService.success(`Created PWC ${u.kind} ${u.apiName} successfully.`),s.loggerService.info(`Local workspace: ${I}`)}catch(e){throw s.loggerService.stopLoading(),e}},t.pwcDeployCommand=async function(e,t,n){if(!e)throw new Error("Invalid arguments: use sharedev pwc deploy --apiname <apiName> --type <component|plugin> (or --path <path>).");if(!t.type)throw new Error("pwc deploy currently requires an explicit --type <component|plugin>.");s.loggerService.startLoading(`Preparing for ${e}`);try{const i=E(e,t.type,n);s.loggerService.updateLoading(`Preparing local files for ${i.apiName}`);const o=await(0,p.readLocalPwcUploadBundle)(n,i.type,i.apiName);s.loggerService.updateLoading(`Uploading ${o.uploadFiles.length} files`);const a=await(0,c.uploadFileList)(o.uploadFiles.map(e=>({fileName:e.fileName,base64String:e.base64String}))),r=[],u=[],d=[];for(let e=0;e<o.uploadFiles.length;e+=1){const t=o.uploadFiles[e],n=a[e],i={fileName:n.fileName,filePath:n.nPath,nPath:n.nPath,fileSize:t.fileSize};o.sourceIndex.has(t.filePath)?r.push(i):o.staticIndex.has(t.filePath)?u.push(i):o.fileTreeIndex.has(t.filePath)&&d.push({...i,path:(0,p.resolveFileTreeRelativePath)(o.fileTreeBaseDir,t.filePath)})}s.loggerService.updateLoading("Updating remote source metadata"),await(0,c.updateCodeSource)(i.type,i.apiName,{entryFileName:o.entryFileName,pluginType:o.pluginType,sourceFiles:r,images:u,fileTree:d}),s.loggerService.updateLoading("Starting remote build");const m=await(0,c.buildCode)(i.type,i.apiName,o.client);if(!m.buildId)throw new Error("Deploy failed: server did not return buildId.");await async function(e,t){const n=t===l.PWCType.Plugin?"Plugin":"Component";for(let t=1;t<=180;t+=1){const i=await(0,c.getBuildResult)(e,n);if(2===i.status)return;if(3===i.status)throw new Error(`Deploy build failed: buildId=${e}`);s.loggerService.updateLoading(`Waiting for build result... ${t}/180 (buildId=${e})`),await O(1e3)}throw new Error(`Deploy timed out after 180s: buildId=${e}`)}(m.buildId,i.type),s.loggerService.stopLoading(),s.loggerService.success(`Deployed PWC resource ${i.apiName}: files=${o.uploadFiles.length}, source=${r.length}, static=${u.length}, fileTree=${d.length}`)}catch(e){throw s.loggerService.stopLoading(),e}},t.pwcPushCommand=async function(e,t,n){if(!e)throw new Error("Invalid arguments: use sharedev pwc push --apiname <apiName> --type <component|plugin> (or --path <path>).");if(!t.type)throw new Error("pwc push requires an explicit --type <component|plugin>.");s.loggerService.startLoading(`Preparing for ${e}`);try{const i=E(e,t.type,n);s.loggerService.updateLoading(`Preparing local files for ${i.apiName}`);const o=await(0,p.readLocalPwcUploadBundle)(n,i.type,i.apiName);s.loggerService.updateLoading(`Uploading ${o.uploadFiles.length} files`);const a=await(0,c.uploadFileList)(o.uploadFiles.map(e=>({fileName:e.fileName,base64String:e.base64String}))),r=[],l=[],u=[];for(let e=0;e<o.uploadFiles.length;e+=1){const t=o.uploadFiles[e],n=a[e],i={fileName:n.fileName,filePath:n.nPath,nPath:n.nPath,fileSize:t.fileSize};o.sourceIndex.has(t.filePath)?r.push(i):o.staticIndex.has(t.filePath)?l.push(i):o.fileTreeIndex.has(t.filePath)&&u.push({...i,path:(0,p.resolveFileTreeRelativePath)(o.fileTreeBaseDir,t.filePath)})}s.loggerService.updateLoading("Updating remote source metadata"),await(0,c.updateCodeSource)(i.type,i.apiName,{entryFileName:o.entryFileName,pluginType:o.pluginType,sourceFiles:r,images:l,fileTree:u}),s.loggerService.stopLoading(),s.loggerService.success(`Pushed PWC resource ${i.apiName}: files=${o.uploadFiles.length}, source=${r.length}, static=${l.length}, fileTree=${u.length}`)}catch(e){throw s.loggerService.stopLoading(),e}},t.pwcPlaceholderCommand=async function(e){s.loggerService.warn(`sharedev pwc ${e} is not implemented yet.`)};const o=i(n(6760)),a=n(118),r=n(5409),s=n(3333),c=n(2317),l=n(1851),p=n(3047),u=/^[a-zA-Z](?!.*__.*__c$)\w{0,46}__c$/u,d='<template>\n <div>\n\n </div>\n</template>\n\n<script>\nexport default {\n\n}\n<\/script>\n\n<style lang="less" scoped>\n\n</style>\n',m="export default class CustomPlugin {\n apply() {\n return [];\n }\n}\n";async function f(e,t){const n=function(e){if(!e?.trim())return;const t=e.trim().toLowerCase();if("true"===t||"1"===t||"yes"===t)return!0;if("false"===t||"0"===t||"no"===t)return!1;throw new Error("Invalid --limit-obj value. Use true or false.")}(e);if(null!=n)return n;if(!t)return!1;const i=await(0,a.select)({message:"Restrict adaptation objects?",options:[{value:"false",label:"No"},{value:"true",label:"Yes"}]});if((0,a.isCancel)(i))throw new Error("PWC create cancelled.");return"true"===i}async function h(e,t,n){const i=x(e);if(i.length)return i;if(!n)throw new Error("Missing required option --scope-objects.");if(!t.length){const e=x(await w("Enter scope objects (comma separated)"));if(!e.length)throw new Error("scopeObjects cannot be empty when limitObj=true.");return e}const o=await(0,a.multiselect)({message:"Select adaptation objects",options:t.map(e=>({value:e,label:e})),required:!0});if((0,a.isCancel)(o))throw new Error("PWC create cancelled.");return o}async function g(e,t,n,i,o){const a=e?.trim()??"";if(a){const e=o?.(a);if(e)throw new Error(e);return a}if(!i)throw new Error(`Missing required option ${t}.`);for(;;){const e=await w(n);if(!e){s.loggerService.warn(`Missing required option ${t}.`);continue}const i=o?.(e);if(!i)return e;s.loggerService.warn(i)}}async function v(e,t){return null!=e?e.trim():process.stdin.isTTY&&process.stdout.isTTY?w(t,""):""}function y(e){if(!u.test(e))return"Invalid --apiname value. Required format: ^[a-zA-Z](?!.*__.*__c$)\\w{0,46}__c$"}async function b(e){const t=await(0,c.uploadFileList)(e.map(e=>({fileName:e.fileName,base64String:Buffer.from(e.content,"utf8").toString("base64")})));return e.map((e,n)=>({fileName:t[n].fileName,filePath:t[n].nPath,fileSize:Buffer.byteLength(e.content,"utf8"),path:e.path}))}function x(e){return e?.trim()?e.split(",").map(e=>e.trim()).filter(Boolean):[]}async function w(e,t){const n=await(0,a.text)({message:e,initialValue:t,placeholder:t});if((0,a.isCancel)(n))throw new Error("PWC create cancelled.");return n.trim()}function S(e){return[{fileName:"app.json",content:JSON.stringify({pages:[],sitemapLocation:"sitemap.json"},null,2)},{fileName:"config.json",content:JSON.stringify({components:{root:"components/"+e+"/index"},main:""},null,2)},{fileName:"project.config.json",content:JSON.stringify({miniprogramAvaId:"fsdemo-lego",avaFrameVer:"770.0.4",description:"project config",packOptions:{ignore:[]},setting:{urlCheck:!0,scopeDataCheck:!1,coverView:!0,es6:!0,postcss:!0,compileHotReLoad:!1,preloadBackgroundData:!1,minified:!0,autoAudits:!1,newFeature:!1,uglifyFileName:!1,uploadWithSourceMap:!0,useIsolateContext:!0,nodeModules:!1,enhance:!1,useCompilerModule:!0,userConfirmedUseCompilerModuleSwitch:!1,useMultiFrameRuntime:!0,useApiHook:!0,useApiHostProcess:!0,showShadowRootInWxmlPanel:!0,packNpmManually:!1,packNpmRelationList:[],minifyWXSS:!0},compileType:"miniprogram",libVersion:"2.15.0",appid:"wxb7ca92fe07ce5c66",projectname:"legodemo"},null,2)},{fileName:"sitemap.json",content:JSON.stringify({rules:[{action:"allow",page:"*"}]},null,2)},{fileName:"index.js",path:"components/"+e,content:["Component({"," methods: {",""," },"," lifetimes: {"," attached() {",' console.log("attached");'," }"," }","});",""].join("\n")},{fileName:"index.json",path:"components/"+e,content:JSON.stringify({component:!0,usingComponents:{}},null,2)},{fileName:"index.wxml",path:"components/"+e,content:'<view class="container">\n <view>This is a lego component</view>\n</view>\n'},{fileName:"index.wxss",path:"components/"+e,content:".container{\n width:100%;\n height:100%;\n background:#00ff00;\n}\n"}]}function C(e){return[{fileName:"config.json",content:JSON.stringify({components:{cmpt1:"components/"+e+"/index"},main:"plugins/index.js"},null,2)},{fileName:"index.js",path:"plugins",content:"// plugin entry file\n// initialize your plugin instance here\n"},{fileName:"index.js",path:"components/"+e,content:["Component({"," methods: {"," _testMethod() {"," wx.showToast({",' title: "component clicked",',' icon: "none"'," });"," }"," },"," lifetimes: {"," attached() {"," }"," }","});",""].join("\n")},{fileName:"index.json",path:"components/"+e,content:JSON.stringify({component:!0,usingComponents:{}},null,2)},{fileName:"index.wxml",path:"components/"+e,content:'<view class="container" bind:tap="_testMethod">plugin custom component</view>\n'},{fileName:"index.wxss",path:"components/"+e,content:".container{\n display: flex;\n flex-direction: row;\n padding: 32rpx;\n font-size: 32rpx;\n word-break: break-all;\n}\n"}]}async function _(e,t){for(const n of t.dirs)await(0,r.ensureDir)(o.default.join(e,n));for(const n of t.files){const t=o.default.join(e,n.relativePath);await(0,r.pathExists)(t)||await(0,r.writeTextFile)(t,n.content)}}function k(e){return e.replace(/__c$/u,"").trim().replace(/[^a-zA-Z0-9_-]/g,"")||"component"}function E(e,t,n){const i=e.trim(),a=(0,p.parsePwcApiNameAndTypeFromPath)(i);if(a){if(a.type!==t)throw new Error(`The path type (${a.type}) does not match --type ${t}.`);return{apiName:a.apiName,type:t}}if(i.includes("/")||i.includes("\\")){const e=o.default.resolve(n.cwd,i),a=(0,p.parsePwcApiNameAndTypeFromPath)(e);if(a){if(a.type!==t)throw new Error(`The path type (${a.type}) does not match --type ${t}.`);return{apiName:a.apiName,type:t}}}return{apiName:i,type:t}}function T(e,t){if(e.type!==l.PWCType.Component&&e.type!==l.PWCType.Plugin)throw new Error(`The server returned an unsupported PWC resource type: ${String(e.type)}`);if(e.type!==t)throw new Error(`Requested PWC resource type ${t}, but the server returned ${e.type}. Write operation aborted.`)}async function j(e,t){const n=await(0,c.hydratePwcComponent)(t);return(0,p.writePwcComponent)(e,n)}async function O(e){await new Promise(t=>{setTimeout(t,e)})}},2317(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fetchCode=async function(e,t){return(await i.requestService.FHH({url:"/EM2HCompBuild/VscodeExtension/downloadCode",data:{type:e,apiName:t}})).components??[]},t.fetchCodeByType=async function(e){return(await i.requestService.FHH({url:"/EM2HCompBuild/VscodeExtension/downloadCode",data:{type:e}})).components??[]},t.downloadFile=o,t.uploadFile=a,t.uploadFileList=async function(e){return Promise.all(e.map(e=>a(e.fileName,e.base64String)))},t.updateCodeSource=async function(e,t,n){return"plugin"===e?async function(e,t){const n=await async function(e){return i.requestService.FHH({url:"/EM1HCompBuild/Plugin/findByApiName",data:{apiName:e}})}(e);return async function(e){return i.requestService.FHH({url:"/EM1HCompBuild/Plugin/updatePlugin",data:e})}({...n,fileTree:t.fileTree||[],sourceFiles:t.sourceFiles||[],images:t.images||[],type:t.pluginType})}(t,n):async function(e,t){const n=await async function(e){return i.requestService.FHH({url:"/EM1HCompBuild/Component/getComponentByApiName",data:{apiName:e}})}(e);return async function(e){return i.requestService.FHH({url:"/EM1HCompBuild/Component/updateComponent",data:e})}({...n,entryFileName:t.entryFileName||"",fileTree:t.fileTree||[],sourceFiles:t.sourceFiles||[],images:t.images||[]})}(t,n)},t.buildCode=async function(e,t,n="web"){return"component"===e?i.requestService.FHH({url:"/EM9HCompBuild/Component/AsynBuildComponent",data:{apiName:t}}):i.requestService.FHH({url:"/EM9HCompBuild/Plugin/buildPlugin",data:{apiName:t,client:n}})},t.getBuildResult=async function(e,t){return i.requestService.FHH({url:`/EM1HCompBuild/${t}/getBuildResult`,data:{buildId:e}})},t.hydratePwcComponent=async function(e){return{...e,sourceFiles:await r(e.sourceFiles,"sourceFiles",e.apiName),images:await r(e.images,"images",e.apiName),fileTree:await r(e.fileTree,"fileTree",e.apiName)}},t.getPwcConfig=async function(){return(await i.requestService.FHH({url:"/EM1HCompBuild/Component/getConfig",data:{}})).config??{}},t.getObjectApiNames=async function(){const e=await i.requestService.FHH({url:"/EM1HNCRM/API/v1/object/describe/service/findDescribeManageList",data:{isIncludeFieldDescribe:!1,isIncludeSystemObj:!0,isIncludeUnActived:!0,packageName:"CRM",sourceInfo:"function",serviceContext:{}}});return Array.from(new Set((e.objectDescribeList??[]).map(e=>e.api_name?.trim()).filter(e=>Boolean(e)))).sort((e,t)=>e.localeCompare(t))},t.createComponentSource=async function(e){await i.requestService.FHH({url:"/EM1HCompBuild/Component/createComponent",data:e})},t.createPluginSource=async function(e){await i.requestService.FHH({url:"/EM1HCompBuild/Plugin/createPlugin",data:e})};const i=n(2088);async function o(e){const t=await i.requestService.FHH({url:"/EM2HCompBuild/VscodeExtension/downloadFile",data:{nPath:e}});return Buffer.from(t.base64String??"","base64")}async function a(e,t){return{fileName:e,nPath:(await i.requestService.FHH({url:"/EM2HCompBuild/VscodeExtension/uploadFile",data:{fileName:e,base64String:t}})).nPath}}async function r(e,t,n){return e?.length?Promise.all(e.map(e=>async function(e,t,n){const i=e.nPath||e.filePath;if(!i)throw new Error(`Cannot download ${t} file ${e.fileName||"<unknown>"} for PWC resource ${n}: missing nPath/filePath.`);try{const t=await o(i);return{fileName:e.fileName,path:e.path,content:t}}catch(o){const a=o instanceof Error?o.message:String(o);throw new Error(`Failed to download ${t} file ${e.fileName||"<unknown>"} for PWC resource ${n} (${i}): ${a}`)}}(e,t,n))):[]}},1851(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PWCType=void 0,function(e){e.Component="component",e.Plugin="plugin"}(n||(t.PWCType=n={}))},3047(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolvePwcComponentRoot=l,t.parsePwcApiNameAndTypeFromPath=function(e){const t=e.replace(/\\/g,"/").match(/(?:^|\/)pwc\/(components|plugins)\/([^/]+)/);if(t)return{type:"components"===t[1]?s.PWCType.Component:s.PWCType.Plugin,apiName:t[2]}},t.readLocalPwcUploadBundle=async function(e,t,i){const c=l(e,t,i);if(!await(0,r.pathExists)(c))throw new Error(`Local PWC resource directory not found: ${c}`);const u=o.default.join(c,"source"),d=o.default.join(c,"static"),m=o.default.join(c,"fileTree"),f=o.default.join(c,"mateXml.xml"),h=await p(u),g=await p(d),v=await p(m),y=[...h,...g,...v];if(!y.length)throw new Error(`No local files found to upload for ${i}.`);const{readFile:b}=await Promise.resolve().then(n.bind(n,9031)),x=[];for(const e of y){const t=await b(e),n=await(0,r.statPath)(e);x.push({filePath:e,fileName:o.default.basename(e),base64String:t.toString("base64"),fileSize:n.size})}let w="",S="web",C="";if(await(0,r.pathExists)(f)){const e=function(e,t){const n=(new a.XMLParser).parse(t),i=e===s.PWCType.Component?n.ComponentBundle:n.PluginBundle,o=i?.entryFileName,r=i?.client,c=i?.type;return{entryFileName:"string"==typeof o?o:"",client:(l=r,"app"===("string"==typeof l?l.trim().toLowerCase():"")?"app":"web"),pluginType:"string"==typeof c?c:"edit_plugin"};var l}(t,await(0,r.readTextFile)(f));w=e.entryFileName,S=e.client,C=e.pluginType}return{entryFileName:w,client:S,uploadFiles:x,pluginType:C,sourceIndex:new Set(h),staticIndex:new Set(g),fileTreeIndex:new Set(v),fileTreeBaseDir:m}},t.resolveFileTreeRelativePath=function(e,t){return function(e,t){const n=o.default.relative(e,o.default.dirname(t));return n&&"."!==n?n.split(o.default.sep).join("/"):""}(e,t)},t.writePwcComponent=async function(e,t){const n=l(e,t.type,t.apiName),i=o.default.join(n,"source"),a=o.default.join(n,"static"),s=o.default.join(n,"fileTree");return await(0,r.ensureDir)(n),await(0,r.ensureDir)(i),await(0,r.ensureDir)(a),await(0,r.ensureDir)(s),t.mateXml&&await(0,r.writeTextFile)(o.default.join(n,"mateXml.xml"),t.mateXml),await c(i,t.sourceFiles),await c(a,t.images),await async function(e,t){if(t?.length)for(const n of t){const t=o.default.join(e,n.path??"",n.fileName);await(0,r.writeBinaryFile)(t,n.content)}}(s,t.fileTree),await(0,r.writeJsonFile)(o.default.join(n,".sharedev-meta.json"),{name:t.name,apiName:t.apiName,type:t.PWCType,updateTime:t.updateTime}),n};const o=i(n(6760)),a=n(4603),r=n(5409),s=n(1851);async function c(e,t){if(t?.length)for(const n of t){const t=o.default.join(e,n.fileName);await(0,r.writeBinaryFile)(t,n.content)}}function l(e,t,n){return o.default.join(function(e){return o.default.dirname(e.workspaceRoot)}(e),function(e){switch(e){case s.PWCType.Component:return o.default.join("pwc","components");case s.PWCType.Plugin:return o.default.join("pwc","plugins");default:throw new Error(`Cannot resolve the workspace directory for PWC resource type ${String(e)}.`)}}(t),n)}async function p(e){if(!await(0,r.pathExists)(e))return[];const t=await Promise.resolve().then(n.bind(n,9031)),i=await t.readdir(e,{withFileTypes:!0}),a=[];for(const t of i){const n=o.default.join(e,t.name);t.isDirectory()?a.push(...await p(n)):t.isFile()&&a.push(n)}return a.sort((e,t)=>e.localeCompare(t))}},3299(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.specInitCommand=async function(e){await f(e.cwd,{interactive:!0})},t.runSpecInit=f;const o=i(n(8161)),a=i(n(6760)),r=i(n(1455)),s=n(118),c=n(1415),l=n(3333),p=n(5409),u=n(5916),d=n(8102),m=n(9565);async function f(e,t={}){const n=!1!==t.interactive,i=!1!==t.showLoading;i&&l.loggerService.startLoading("Checking spec template version...");const f=await(0,m.fetchSpecManifest)(),h=`${d.SPEC_DOWNLOAD_BASE_URL}/${f.archive}`;if(!t.skipVersionCheck){const t=await async function(e){const t=await(0,c.findSharedevPath)(e);if(!t)return;const n=a.default.join(t,"settings.json");if(await(0,p.pathExists)(n))try{const e=await(0,p.readJsonFile)(n);return"string"==typeof e.specVersion?e.specVersion:void 0}catch{return}}(e);if(t&&t===f.version)return i&&l.loggerService.stopLoading(),void l.loggerService.info(`Spec template is already up-to-date (version: ${f.version}).`)}i&&l.loggerService.stopLoading();const g=await async function(e,t){const n=e?.trim();if(n){const e=d.SUPPORTED_AGENTS.find(e=>e.name===n);if(!e)throw new Error(`Unsupported agent: ${n}.`);return e}if(!t)throw new Error("Missing agent name. Provide --agent when running non-interactively.");return async function(){const e=await(0,s.select)({message:"Select an agent platform",options:d.SUPPORTED_AGENTS.map(e=>({value:e.name,label:`${e.displayName} (${e.skillsDir})`}))});if((0,s.isCancel)(e))throw new Error("Spec initialization canceled.");const t=d.SUPPORTED_AGENTS.find(t=>t.name===e);if(!t)throw new Error("Failed to resolve selected platform.");return t}()}(t.agentName,n),v=a.default.join(e,g.skillsDir);await(0,p.ensureDir)(v);const y=await async function(e,t,n){if(!(await r.default.readdir(e).catch(()=>[])).length)return!0;if(n)return!0;if(!t)throw new Error(`Directory ${e} already contains files. Use interactive mode or enable overwrite.`);const i=await(0,s.confirm)({message:`Directory ${e} already contains files. Continue and overwrite duplicate names?`,initialValue:!1});if((0,s.isCancel)(i))throw new Error("Spec initialization canceled.");return i}(v,n,!0===t.overwriteIfExists);if(!y)return void l.loggerService.info("Spec initialization canceled.");const b=a.default.join(o.default.tmpdir(),`sharedev-spec-${Date.now()}.zip`);try{const t=await(0,m.downloadSpecTemplateArchive)(h,i);await(0,p.writeBinaryFile)(b,t),i?l.loggerService.updateLoading(`Extracting archive to: ${v}`):l.loggerService.info(`Extracting spec template to: ${v}`),await(0,u.extractZipArchive)(b,v),await async function(e){const t=a.default.join(e,"__MACOSX");await(0,p.pathExists)(t)&&await(0,p.removePath)(t);const n=await r.default.readdir(e,{withFileTypes:!0}),i=n.filter(e=>e.isDirectory()),o=n.filter(e=>!e.isDirectory());if(1!==i.length||0!==o.length)return;const s=a.default.join(e,i[0].name),c=await r.default.readdir(s);for(const t of c)await r.default.rename(a.default.join(s,t),a.default.join(e,t));await r.default.rmdir(s)}(v),await async function(e,t){const n=await(0,c.findSharedevPath)(e)??a.default.join(e,".sharedev"),i=a.default.join(n,"settings.json");await(0,p.ensureDir)(n);let o={};if(await(0,p.pathExists)(i))try{o=await(0,p.readJsonFile)(i)}catch{o={}}o.specVersion=t,await(0,p.writeJsonFile)(i,o)}(e,f.version),i&&l.loggerService.stopLoading(),l.loggerService.success(`Spec initialization completed (version: ${f.version}).`),l.loggerService.info(`Platform: ${g.displayName} (${g.name})`),l.loggerService.info(`Directory: ${g.skillsDir}`),l.loggerService.info(`Absolute path: ${v}`)}catch(e){throw i&&l.loggerService.stopLoading(),e}finally{await(0,p.pathExists)(b)&&await(0,p.removePath)(b)}}},8102(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_AGENTS=t.SPEC_DOWNLOAD_BASE_URL=t.SPEC_MANIFEST_URL=void 0,t.SPEC_MANIFEST_URL="https://developer.fxiaoke.com/sharedev/sharecrm-skills-kit.json",t.SPEC_DOWNLOAD_BASE_URL="https://developer.fxiaoke.com/sharedev",t.SUPPORTED_AGENTS=[{name:"claude-code",displayName:"Claude Code",skillsDir:".claude"},{name:"codex",displayName:"Codex",skillsDir:".codex"},{name:"cursor",displayName:"Cursor",skillsDir:".cursor"},{name:"trae",displayName:"Trae",skillsDir:".trae"},{name:"trae-cn",displayName:"Trae CN",skillsDir:".trae"}]},9565(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fetchSpecManifest=async function(){const e=await fetch(a.SPEC_MANIFEST_URL);if(!e.ok)throw new Error(`Failed to fetch spec manifest: ${e.status} ${e.statusText}`);const t=await e.json();if(!t.version||!t.archive)throw new Error("Invalid spec manifest: missing version or archive field.");return t},t.downloadSpecTemplateArchive=async function(e,t){return t||o.loggerService.info(`Downloading spec template archive: ${e}`),(await(0,i.download)("Downloading spec template...",[{fileName:"Spec template archive",download:async t=>t.downloadByUrl(e)}],{summaryName:"Downloading template archive",concurrency:1})).values[0]};const i=n(1889),o=n(3333),a=n(8102)},1161(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.stageDefDeployCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageDef deploy");try{const e=await(0,a.executeStageDefShareCli)((0,o.getShareCliCommandPath)("stageDef","deploy"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageDefUpdateCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageDef update");try{const e=await(0,a.executeStageDefShareCli)((0,o.getShareCliCommandPath)("stageDef","update"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageDefEnableCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageDef enable");try{const e=await(0,a.executeStageDefShareCli)((0,o.getShareCliCommandPath)("stageDef","enable"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageDefDeleteCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageDef delete");try{const e=await(0,a.executeStageDefShareCli)((0,o.getShareCliCommandPath)("stageDef","delete"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageDefDetailCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageDef detail");try{const e=await(0,a.executeStageDefShareCli)((0,o.getShareCliCommandPath)("stageDef","detail"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageDefPrioritiesCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageDef priorities");try{const e=await(0,a.executeStageDefShareCli)((0,o.getShareCliCommandPath)("stageDef","priorities"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageDefListCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageDef list");try{const e=await(0,a.executeStageDefShareCli)((0,o.getShareCliCommandPath)("stageDef","list"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageDefExportApplyDataCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageDef export-apply-data");try{const e=await(0,a.executeStageDefShareCli)((0,o.getShareCliCommandPath)("stageDef","exportApplyData"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageDefQueryApplyHistoryCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageDef query-apply-history");try{const e=await(0,a.executeStageDefShareCli)((0,o.getShareCliCommandPath)("stageDef","queryApplyHistory"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}};const i=n(3333),o=n(2351),a=n(6999);function r(e){const t={};for(const[n,i]of Object.entries(e))null!=i&&""!==i&&(t[n]=i);return t}},6999(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.executeStageDefShareCli=async function(e,t,n){return(0,i.executeShareCliCommand)(e,t,n)};const i=n(8554)},8281(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.stageRuntimeBackValidateCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime back-validate");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","backValidate"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeInstanceInfoCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime instance-info");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","instanceInfo"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeInstanceCancelCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime instance-cancel");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","cancel"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeInstanceReactiveCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime instance-reactive");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","reactive"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeReactiveValidateCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime reactive-validate");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","reactiveValidate"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeInstanceTriggerCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime instance-trigger");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","trigger"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeMoveToTerminalCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime move-to-terminal");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","moveToTerminal"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeQueryMoveToResultCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime query-move-to-result");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","queryMoveToResult"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeTaskChangeHandlerCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime task-change-handler");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","changeHandler"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeTaskCompleteBackCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime task-complete-back");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","completeBack"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeTaskCompleteCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime task-complete");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","complete"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeTaskCompletePreCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime task-complete-pre");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","completePre"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeTaskDisassociateCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime task-disassociate");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","disassociate"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeTaskEditCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime task-edit");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","edit"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeTaskByIdCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime task-by-id");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","taskById"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeTaskInfoByStageCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime task-info-by-stage");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","taskInfoByStage"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeTaskRegenerateStageCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime task-regenerate-stage");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","regenerateStage"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeTaskRegenerateCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime task-regenerate");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","regenerate"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.stageRuntimeTaskUpdateCompleteCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing stageRuntime task-update-complete");try{const e=await(0,a.executeStageRuntimeShareCli)((0,o.getShareCliCommandPath)("stageRuntime","updateComplete"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}};const i=n(3333),o=n(2351),a=n(7287);function r(e){const t={};for(const[n,i]of Object.entries(e))null!=i&&""!==i&&(t[n]=i);return t}},7287(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.executeStageRuntimeShareCli=async function(e,t,n){return(0,i.executeShareCliCommand)(e,t,n)};const i=n(8554)},349(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.workflowDefCreateDefinitionCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing workflowDef create-definition");try{const e=await(0,a.executeWorkflowDefShareCli)((0,o.getShareCliCommandPath)("workflowDef","create"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.workflowDefUpdateDefinitionCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing workflowDef update-definition");try{const e=await(0,a.executeWorkflowDefShareCli)((0,o.getShareCliCommandPath)("workflowDef","update"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.workflowDefEnableCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing workflowDef enable");try{const e=await(0,a.executeWorkflowDefShareCli)((0,o.getShareCliCommandPath)("workflowDef","enable"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.workflowDefDeleteDefinitionCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing workflowDef delete-definition");try{const e=await(0,a.executeWorkflowDefShareCli)((0,o.getShareCliCommandPath)("workflowDef","delete"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.workflowDefDetailCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing workflowDef detail");try{const e=await(0,a.executeWorkflowDefShareCli)((0,o.getShareCliCommandPath)("workflowDef","detail"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.workflowDefListCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing workflowDef list");try{const e=await(0,a.executeWorkflowDefShareCli)((0,o.getShareCliCommandPath)("workflowDef","list"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.workflowDefDefinitionByIdCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing workflowDef definition-by-id");try{const e=await(0,a.executeWorkflowDefShareCli)((0,o.getShareCliCommandPath)("workflowDef","definitionById"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}},t.workflowDefLogsCommand=async function(e,t){const n=r(t);i.loggerService.startLoading("Executing workflowDef logs");try{const e=await(0,a.executeWorkflowDefShareCli)((0,o.getShareCliCommandPath)("workflowDef","logs"),n);i.loggerService.stopLoading(),i.loggerService.printJson(e)}catch(e){throw i.loggerService.stopLoading(),e}};const i=n(3333),o=n(2351),a=n(7547);function r(e){const t={};for(const[n,i]of Object.entries(e))null!=i&&""!==i&&(t[n]=i);return t}},7547(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.executeWorkflowDefShareCli=async function(e,t,n){return(0,i.executeShareCliCommand)(e,t,n)};const i=n(8554)},4444(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createLineDiff=function(e,t,n){const i=function(e,t){if(e.join("\n")===t.join("\n"))return[];const n=function(e,t){const n=Array.from({length:e.length+1},()=>Array(t.length+1).fill(0));for(let i=e.length-1;i>=0;i-=1)for(let o=t.length-1;o>=0;o-=1)e[i]===t[o]?n[i][o]=n[i+1][o+1]+1:n[i][o]=Math.max(n[i+1][o],n[i][o+1]);return n}(e,t),i=function(e,t,n){const i=[];let o=0,a=0;for(;o<e.length&&a<t.length;)e[o]===t[a]?(i.push({type:"context",content:e[o]}),o+=1,a+=1):n[o+1][a]>=n[o][a+1]?(i.push({type:"delete",content:e[o]}),o+=1):(i.push({type:"add",content:t[a]}),a+=1);for(;o<e.length;)i.push({type:"delete",content:e[o]}),o+=1;for(;a<t.length;)i.push({type:"add",content:t[a]}),a+=1;return i}(e,t,n);return function(e){const t=[];let n=1,i=1;for(const o of e)"context"===o.type?(t.push({...o,oldLineNumber:n,newLineNumber:i}),n+=1,i+=1):"delete"===o.type?(t.push({...o,oldLineNumber:n}),n+=1):(t.push({...o,newLineNumber:i}),i+=1);return t}(i)}(a(e),a(t));return{oldFileName:n.oldFileName,newFileName:n.newFileName,oldHeader:n.oldHeader,newHeader:n.newHeader,oldGitPath:f(n.oldGitPath??n.oldFileName),newGitPath:f(n.newGitPath??n.newFileName),hunks:r(i,3)}},t.summarizeDiff=function(e){let t=0,n=0;for(const i of e.hunks)for(const e of i.rows)"add"===e.type?t+=1:"delete"===e.type&&(n+=1);return{additions:t,deletions:n,changed:t>0||n>0}},t.renderUnifiedDiff=function(e){const t=e.hunks.flatMap(e=>e.rows),n=p(t,"oldLineNumber"),i=p(t,"newLineNumber"),a=[o.default.bold(`Update(${e.newFileName})`),o.default.dim(` --- a/${e.oldGitPath}${m(e.oldHeader)}`),o.default.dim(` +++ b/${e.newGitPath}${m(e.newHeader)}`)];for(const t of e.hunks)a.push(c(t)),a.push(l(t.rows,n,i));return a.join("\n")};const o=i(n(6194));function a(e){return e.replace(/\r\n/g,"\n").split("\n")}function r(e,t){if(!e.length)return[];const n=[];for(let t=0;t<e.length;t+=1)"context"!==e[t].type&&n.push(t);return n.length?function(e){if(!e.length)return[];const t=[e[0]];for(let n=1;n<e.length;n+=1){const i=e[n],o=t[t.length-1];i.start<=o.end+1?o.end=Math.max(o.end,i.end):t.push({...i})}return t}(n.map(n=>({start:Math.max(0,n-t),end:Math.min(e.length-1,n+t)}))).map(t=>function(e){const t=e.filter(e=>"add"!==e.type),n=e.filter(e=>"delete"!==e.type),i=t[0]?.oldLineNumber??s(e,"old"),o=n[0]?.newLineNumber??s(e,"new");return{oldStart:i,oldLines:t.length,newStart:o,newLines:n.length,rows:e}}(e.slice(t.start,t.end+1))):[]}function s(e,t){const n="old"===t?"oldLineNumber":"newLineNumber",i=e.find(e=>void 0!==e[n])?.[n];return i??0}function c(e){return o.default.cyan(`@@ -${d(e.oldStart,e.oldLines)} +${d(e.newStart,e.newLines)} @@`)}function l(e,t,n){return e.map(e=>function(e,t,n){const i=u(e.oldLineNumber,t),a=u(e.newLineNumber,n),r=" ".repeat(Math.max(t,n));return"context"===e.type?o.default.dim(` ${i} ${a} │ ${e.content}`):"delete"===e.type?`${o.default.bgRed.white(`- ${i}`)} ${o.default.dim(r)} │ ${o.default.red(e.content)}`:`${o.default.bgGreen.black(`+ ${a}`)} ${o.default.dim(r)} │ ${o.default.green(e.content)}`}(e,t,n)).join("\n")}function p(e,t){const n=e.reduce((e,n)=>Math.max(e,n[t]??0),0);return String(Math.max(1,n)).length}function u(e,t){return void 0===e?"".padStart(t," "):String(e).padStart(t," ")}function d(e,t){return 0===t?`${e},0`:1===t?String(e):`${e},${t}`}function m(e){return e?`\t${e}`:""}function f(e){return e.replace(/\\/g,"/")}},5409(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ensureDir=async function(e){await o.default.ensureDir(e)},t.readJsonFile=async function(e){return o.default.readJson(e)},t.writeJsonFile=async function(e,t){await o.default.ensureDir(a.default.dirname(e)),await o.default.writeJson(e,t,{spaces:2})},t.writeTextFile=async function(e,t){await o.default.ensureDir(a.default.dirname(e)),await o.default.writeFile(e,t,"utf8")},t.writeBinaryFile=async function(e,t){await o.default.ensureDir(a.default.dirname(e)),await o.default.writeFile(e,t)},t.readTextFile=async function(e){return o.default.readFile(e,"utf8")},t.pathExists=async function(e){return o.default.pathExists(e)},t.statPath=async function(e){return o.default.stat(e)},t.removePath=async function(e){await o.default.remove(e)};const o=i(n(1605)),a=i(n(6760))},9268(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n={normalizeString:e=>e?.trim()||void 0,asString:e=>"string"==typeof e?e:void 0,isRecord:e=>!!e&&"object"==typeof e&&!Array.isArray(e),jsonStringToBoolean:e=>{return"true"===(t=e.trim().toLowerCase())||"false"!==t&&void 0;var t},normalizeText:e=>"string"==typeof e?e.replace(/[\r\n\t]+/g," ").trim():"boolean"==typeof e||"number"==typeof e&&Number.isFinite(e)?String(e):"",normalizeDateTime:e=>{const t="number"==typeof e?e:"string"==typeof e?Number(e.trim()):Number.NaN;if(!Number.isFinite(t))return"";const n=new Date(t);return Number.isNaN(n.getTime())?"":`${n.getFullYear()}-${String(n.getMonth()+1).padStart(2,"0")}-${String(n.getDate()).padStart(2,"0")} ${String(n.getHours()).padStart(2,"0")}:${String(n.getMinutes()).padStart(2,"0")}`}};t.default=n},5332(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePath=a,t.toAbsolutePath=function(e,t){return o.default.isAbsolute(e)?a(e):a(o.default.resolve(t,e))},t.getFileNameWithoutExt=function(e){return o.default.basename(e,o.default.extname(e))},t.maskCertificate=function(e){return e?e.length<=8?`${e.slice(0,2)}***`:`${e.slice(0,4)}***${e.slice(-4)}`:""};const o=i(n(6760));function a(e){return o.default.normalize(e)}},5016(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.readCliPackageMeta=async function(){try{const e=a.default,t="string"==typeof e.name&&e.name.trim()?e.name.trim():"@share-crm/sharedev-cli",n=Boolean(!1);return{name:t,version:("string"==typeof e.version&&e.version.trim()?e.version.trim():"0.0.0")+(n?"-debug":"")}}catch{return o.loggerService.error("Failed to read package.json"),{name:"@share-crm/sharedev-cli",version:"0.0.0"}}};const o=n(3333),a=i(n(8330))},2706(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.parseMateXml=o,t.resolveEntryFileNameFromMateXml=function(e){const t=o(e),n=Object.values(t)[0];if(!n||"object"!=typeof n)return;const i=n.entryFileName;return"string"==typeof i?i:void 0};const i=new(n(4603).XMLParser)({ignoreAttributes:!1,attributeNamePrefix:"",processEntities:!1});function o(e){return i.parse(e)}},5916(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extractZipArchive=async function(e,t){try{if("win32"===process.platform)return void await s("powershell",["-NoProfile","-Command",`Expand-Archive -LiteralPath '${r(e)}' -DestinationPath '${r(t)}' -Force`]);await s("unzip",["-o",e,"-d",t])}catch(n){try{await(0,a.default)(e,{dir:t})}catch(e){const t=n instanceof Error?n.message:String(n),i=e instanceof Error?e.message:String(e);throw new Error(`Failed to extract zip archive. commandError=${t}; fallbackError=${i}`)}}};const o=n(1421),a=i(n(3832));function r(e){return e.replace(/'/g,"''")}async function s(e,t){await new Promise((n,i)=>{const a=(0,o.spawn)(e,t,{stdio:"ignore"});a.on("error",i),a.on("close",o=>{0!==o?i(new Error(`Command failed: ${e} ${t.join(" ")} (exit=${o??-1})`)):n()})})}},1236(e,t){t.fromCallback=function(e){return Object.defineProperty(function(...t){if("function"!=typeof t[t.length-1])return new Promise((n,i)=>{t.push((e,t)=>null!=e?i(e):n(t)),e.apply(this,t)});e.apply(this,t)},"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty(function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);t.pop(),e.apply(this,t).then(e=>n(null,e),n)},"name",{value:e.name})}},6587(e){e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){i[e]=t[e]}),i;function i(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var i=t.apply(this,e),o=e[e.length-1];return"function"==typeof i&&i!==o&&Object.keys(o).forEach(function(e){i[e]=o[e]}),i}}},4824(e,t,n){var i,o=n(9896),a=n(3106),r=n(3070),s=n(4025),c=n(9023),l=n(4434).EventEmitter,p=n(2203).Transform,u=n(2203).PassThrough,d=n(2203).Writable;function m(e,t,n){"function"==typeof t&&(n=t,t=null),null==t&&(t={}),null==t.autoClose&&(t.autoClose=!1),null==t.lazyEntries&&(t.lazyEntries=!1),null==t.decodeStrings&&(t.decodeStrings=!0),null==t.validateEntrySizes&&(t.validateEntrySizes=!0),null==t.strictFileNames&&(t.strictFileNames=!1),null==n&&(n=T),o.fstat(e,function(i,o){if(i)return n(i);f(r.createFromFd(e,{autoClose:!0}),o.size,t,n)})}function f(e,t,n,o){"function"==typeof n&&(o=n,n=null),null==n&&(n={}),null==n.autoClose&&(n.autoClose=!0),null==n.lazyEntries&&(n.lazyEntries=!1),null==n.decodeStrings&&(n.decodeStrings=!0);var a=!!n.decodeStrings;if(null==n.validateEntrySizes&&(n.validateEntrySizes=!0),null==n.strictFileNames&&(n.strictFileNames=!1),null==o&&(o=T),"number"!=typeof t)throw new Error("expected totalSize parameter to be a number");if(t>Number.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");e.ref();var r=Math.min(65557,t),s=i(r),c=t-s.length;w(e,s,0,r,c,function(l){if(l)return o(l);for(var p=r-22;p>=0;p-=1)if(101010256===s.readUInt32LE(p)){var u=s.slice(p),d=u.readUInt16LE(4);if(0!==d)return o(new Error("multi-disk zip files are not supported: found disk number: "+d));var m=u.readUInt16LE(10),f=u.readUInt32LE(16),g=u.readUInt16LE(20),v=u.length-22;if(g!==v)return o(new Error("invalid comment length. expected: "+v+". found: "+g));var y=a?k(u,22,u.length,!1):u.slice(22);if(65535!==m&&4294967295!==f)return o(null,new h(e,f,t,m,y,n.autoClose,n.lazyEntries,a,n.validateEntrySizes,n.strictFileNames));var b=i(20),x=c+p-b.length;return void w(e,b,0,b.length,x,function(r){if(r)return o(r);if(117853008!==b.readUInt32LE(0))return o(new Error("invalid zip64 end of central directory locator signature"));var s=E(b,8),c=i(56);w(e,c,0,c.length,s,function(i){return i?o(i):101075792!==c.readUInt32LE(0)?o(new Error("invalid zip64 end of central directory record signature")):(m=E(c,32),f=E(c,48),o(null,new h(e,f,t,m,y,n.autoClose,n.lazyEntries,a,n.validateEntrySizes,n.strictFileNames)))})})}o(new Error("end of central directory record signature not found"))})}function h(e,t,n,i,o,a,r,s,c,p){var u=this;l.call(u),u.reader=e,u.reader.on("error",function(e){v(u,e)}),u.reader.once("close",function(){u.emit("close")}),u.readEntryCursor=t,u.fileSize=n,u.entryCount=i,u.comment=o,u.entriesRead=0,u.autoClose=!!a,u.lazyEntries=!!r,u.decodeStrings=!!s,u.validateEntrySizes=!!c,u.strictFileNames=!!p,u.isOpen=!0,u.emittedError=!1,u.lazyEntries||u._readEntry()}function g(e,t){e.autoClose&&e.close(),v(e,t)}function v(e,t){e.emittedError||(e.emittedError=!0,e.emit("error",t))}function y(){}function b(e,t){return new Date(1980+(e>>9&127),(e>>5&15)-1,31&e,t>>11&31,t>>5&63,2*(31&t),0)}function x(e){return-1!==e.indexOf("\\")?"invalid characters in fileName: "+e:/^[a-zA-Z]:/.test(e)||/^\//.test(e)?"absolute path: "+e:-1!==e.split("/").indexOf("..")?"invalid relative path: "+e:null}function w(e,t,n,o,a,r){if(0===o)return setImmediate(function(){r(null,i(0))});e.read(t,n,o,a,function(e,t){return e?r(e):t<o?r(new Error("unexpected EOF")):void r()})}function S(e){p.call(this),this.actualByteCount=0,this.expectedByteCount=e}function C(){l.call(this),this.refCount=0}function _(e){u.call(this),this.context=e,this.context.ref(),this.unreffedYet=!1}function k(e,t,n,i){if(i)return e.toString("utf8",t,n);for(var o="",a=t;a<n;a++)o+="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "[e[a]];return o}function E(e,t){var n=e.readUInt32LE(t);return 4294967296*e.readUInt32LE(t+4)+n}function T(e){if(e)throw e}t.open=function(e,t,n){"function"==typeof t&&(n=t,t=null),null==t&&(t={}),null==t.autoClose&&(t.autoClose=!0),null==t.lazyEntries&&(t.lazyEntries=!1),null==t.decodeStrings&&(t.decodeStrings=!0),null==t.validateEntrySizes&&(t.validateEntrySizes=!0),null==t.strictFileNames&&(t.strictFileNames=!1),null==n&&(n=T),o.open(e,"r",function(e,i){if(e)return n(e);m(i,t,function(e,t){e&&o.close(i,T),n(e,t)})})},t.fromFd=m,t.fromBuffer=function(e,t,n){"function"==typeof t&&(n=t,t=null),null==t&&(t={}),t.autoClose=!1,null==t.lazyEntries&&(t.lazyEntries=!1),null==t.decodeStrings&&(t.decodeStrings=!0),null==t.validateEntrySizes&&(t.validateEntrySizes=!0),null==t.strictFileNames&&(t.strictFileNames=!1),f(r.createFromBuffer(e,{maxChunkSize:65536}),e.length,t,n)},t.fromRandomAccessReader=f,t.dosDateTimeToDate=b,t.validateFileName=x,t.ZipFile=h,t.Entry=y,t.RandomAccessReader=C,c.inherits(h,l),h.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.reader.unref())},h.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()},h.prototype._readEntry=function(){var e=this;if(e.entryCount!==e.entriesRead){if(!e.emittedError){var t=i(46);w(e.reader,t,0,t.length,e.readEntryCursor,function(n){if(n)return g(e,n);if(!e.emittedError){var o=new y,a=t.readUInt32LE(0);if(33639248!==a)return g(e,new Error("invalid central directory file header signature: 0x"+a.toString(16)));if(o.versionMadeBy=t.readUInt16LE(4),o.versionNeededToExtract=t.readUInt16LE(6),o.generalPurposeBitFlag=t.readUInt16LE(8),o.compressionMethod=t.readUInt16LE(10),o.lastModFileTime=t.readUInt16LE(12),o.lastModFileDate=t.readUInt16LE(14),o.crc32=t.readUInt32LE(16),o.compressedSize=t.readUInt32LE(20),o.uncompressedSize=t.readUInt32LE(24),o.fileNameLength=t.readUInt16LE(28),o.extraFieldLength=t.readUInt16LE(30),o.fileCommentLength=t.readUInt16LE(32),o.internalFileAttributes=t.readUInt16LE(36),o.externalFileAttributes=t.readUInt32LE(38),o.relativeOffsetOfLocalHeader=t.readUInt32LE(42),64&o.generalPurposeBitFlag)return g(e,new Error("strong encryption is not supported"));e.readEntryCursor+=46,t=i(o.fileNameLength+o.extraFieldLength+o.fileCommentLength),w(e.reader,t,0,t.length,e.readEntryCursor,function(n){if(n)return g(e,n);if(!e.emittedError){var a=!!(2048&o.generalPurposeBitFlag);o.fileName=e.decodeStrings?k(t,0,o.fileNameLength,a):t.slice(0,o.fileNameLength);var r=o.fileNameLength+o.extraFieldLength,c=t.slice(o.fileNameLength,r);o.extraFields=[];for(var l=0;l<c.length-3;){var p=c.readUInt16LE(l+0),u=c.readUInt16LE(l+2),d=l+4,m=d+u;if(m>c.length)return g(e,new Error("extra field length exceeds extra field buffer size"));var f=i(u);c.copy(f,0,d,m),o.extraFields.push({id:p,data:f}),l=m}if(o.fileComment=e.decodeStrings?k(t,r,r+o.fileCommentLength,a):t.slice(r,r+o.fileCommentLength),o.comment=o.fileComment,e.readEntryCursor+=t.length,e.entriesRead+=1,4294967295===o.uncompressedSize||4294967295===o.compressedSize||4294967295===o.relativeOffsetOfLocalHeader){var h=null;for(l=0;l<o.extraFields.length;l++)if(1===(y=o.extraFields[l]).id){h=y.data;break}if(null==h)return g(e,new Error("expected zip64 extended information extra field"));var v=0;if(4294967295===o.uncompressedSize){if(v+8>h.length)return g(e,new Error("zip64 extended information extra field does not include uncompressed size"));o.uncompressedSize=E(h,v),v+=8}if(4294967295===o.compressedSize){if(v+8>h.length)return g(e,new Error("zip64 extended information extra field does not include compressed size"));o.compressedSize=E(h,v),v+=8}if(4294967295===o.relativeOffsetOfLocalHeader){if(v+8>h.length)return g(e,new Error("zip64 extended information extra field does not include relative header offset"));o.relativeOffsetOfLocalHeader=E(h,v),v+=8}}if(e.decodeStrings)for(l=0;l<o.extraFields.length;l++){var y;if(28789===(y=o.extraFields[l]).id){if(y.data.length<6)continue;if(1!==y.data.readUInt8(0))continue;var b=y.data.readUInt32LE(1);if(s.unsigned(t.slice(0,o.fileNameLength))!==b)continue;o.fileName=k(y.data,5,y.data.length,!0);break}}if(e.validateEntrySizes&&0===o.compressionMethod){var w=o.uncompressedSize;if(o.isEncrypted()&&(w+=12),o.compressedSize!==w){var S="compressed/uncompressed size mismatch for stored file: "+o.compressedSize+" != "+o.uncompressedSize;return g(e,new Error(S))}}if(e.decodeStrings){e.strictFileNames||(o.fileName=o.fileName.replace(/\\/g,"/"));var C=x(o.fileName,e.validateFileNameOptions);if(null!=C)return g(e,new Error(C))}e.emit("entry",o),e.lazyEntries||e._readEntry()}})}})}}else setImmediate(function(){e.autoClose&&e.close(),e.emittedError||e.emit("end")})},h.prototype.openReadStream=function(e,t,n){var o=this,r=0,s=e.compressedSize;if(null==n)n=t,t={};else{if(null!=t.decrypt){if(!e.isEncrypted())throw new Error("options.decrypt can only be specified for encrypted entries");if(!1!==t.decrypt)throw new Error("invalid options.decrypt value: "+t.decrypt);if(e.isCompressed()&&!1!==t.decompress)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}if(null!=t.decompress){if(!e.isCompressed())throw new Error("options.decompress can only be specified for compressed entries");if(!1!==t.decompress&&!0!==t.decompress)throw new Error("invalid options.decompress value: "+t.decompress)}if(null!=t.start||null!=t.end){if(e.isCompressed()&&!1!==t.decompress)throw new Error("start/end range not allowed for compressed entry without options.decompress === false");if(e.isEncrypted()&&!1!==t.decrypt)throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}if(null!=t.start){if((r=t.start)<0)throw new Error("options.start < 0");if(r>e.compressedSize)throw new Error("options.start > entry.compressedSize")}if(null!=t.end){if((s=t.end)<0)throw new Error("options.end < 0");if(s>e.compressedSize)throw new Error("options.end > entry.compressedSize");if(s<r)throw new Error("options.end < options.start")}}if(!o.isOpen)return n(new Error("closed"));if(e.isEncrypted()&&!1!==t.decrypt)return n(new Error("entry is encrypted, and options.decrypt !== false"));o.reader.ref();var c=i(30);w(o.reader,c,0,c.length,e.relativeOffsetOfLocalHeader,function(i){try{if(i)return n(i);var l=c.readUInt32LE(0);if(67324752!==l)return n(new Error("invalid local file header signature: 0x"+l.toString(16)));var p,u=c.readUInt16LE(26),d=c.readUInt16LE(28),m=e.relativeOffsetOfLocalHeader+c.length+u+d;if(0===e.compressionMethod)p=!1;else{if(8!==e.compressionMethod)return n(new Error("unsupported compression method: "+e.compressionMethod));p=null==t.decompress||t.decompress}var f=m,h=f+e.compressedSize;if(0!==e.compressedSize&&h>o.fileSize)return n(new Error("file data overflows file bounds: "+f+" + "+e.compressedSize+" > "+o.fileSize));var g=o.reader.createReadStream({start:f+r,end:f+s}),v=g;if(p){var y=!1,b=a.createInflateRaw();g.on("error",function(e){setImmediate(function(){y||b.emit("error",e)})}),g.pipe(b),o.validateEntrySizes?(v=new S(e.uncompressedSize),b.on("error",function(e){setImmediate(function(){y||v.emit("error",e)})}),b.pipe(v)):v=b,v.destroy=function(){y=!0,b!==v&&b.unpipe(v),g.unpipe(b),g.destroy()}}n(null,v)}finally{o.reader.unref()}})},y.prototype.getLastModDate=function(){return b(this.lastModFileDate,this.lastModFileTime)},y.prototype.isEncrypted=function(){return!!(1&this.generalPurposeBitFlag)},y.prototype.isCompressed=function(){return 8===this.compressionMethod},c.inherits(S,p),S.prototype._transform=function(e,t,n){if(this.actualByteCount+=e.length,this.actualByteCount>this.expectedByteCount){var i="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return n(new Error(i))}n(null,e)},S.prototype._flush=function(e){if(this.actualByteCount<this.expectedByteCount){var t="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return e(new Error(t))}e()},c.inherits(C,l),C.prototype.ref=function(){this.refCount+=1},C.prototype.unref=function(){var e=this;if(e.refCount-=1,!(e.refCount>0)){if(e.refCount<0)throw new Error("invalid unref");e.close(function(t){if(t)return e.emit("error",t);e.emit("close")})}},C.prototype.createReadStream=function(e){var t=e.start,n=e.end;if(t===n){var i=new u;return setImmediate(function(){i.end()}),i}var o=this._readStreamForRange(t,n),a=!1,r=new _(this);o.on("error",function(e){setImmediate(function(){a||r.emit("error",e)})}),r.destroy=function(){o.unpipe(r),r.unref(),o.destroy()};var s=new S(n-t);return r.on("error",function(e){setImmediate(function(){a||s.emit("error",e)})}),s.destroy=function(){a=!0,r.unpipe(s),r.destroy()},o.pipe(r).pipe(s)},C.prototype._readStreamForRange=function(e,t){throw new Error("not implemented")},C.prototype.read=function(e,t,n,i,o){var a=this.createReadStream({start:i,end:i+n}),r=new d,s=0;r._write=function(n,i,o){n.copy(e,t+s,0,n.length),s+=n.length,o()},r.on("finish",o),a.on("error",function(e){o(e)}),a.pipe(r)},C.prototype.close=function(e){setImmediate(e)},c.inherits(_,u),_.prototype._flush=function(e){this.unref(),e()},_.prototype.unref=function(e){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())},i="function"==typeof Buffer.allocUnsafe?function(e){return Buffer.allocUnsafe(e)}:function(e){return new Buffer(e)}},9031(e){e.exports=import("node:fs/promises")},7721(t,n,i){var o,a;t.exports=(o={default:()=>e.default,stdin:()=>e.stdin,stdout:()=>e.stdout},a={},i.d(a,o),a)},2607(e,n,i){var o,a;e.exports=(o={ReadStream:()=>t.ReadStream,default:()=>t.default},a={},i.d(a,o),a)},4472(e,t,i){var o,a;e.exports=(o={stripVTControlCharacters:()=>n.stripVTControlCharacters,styleText:()=>n.styleText},a={},i.d(a,o),a)},2613(e){e.exports=o("assert")},181(e){e.exports=o("buffer")},9140(e){e.exports=o("constants")},6982(e){e.exports=o("crypto")},4434(e){e.exports=o("events")},9896(e){e.exports=o("fs")},8611(e){e.exports=o("http")},5675(e){e.exports=o("http2")},5692(e){e.exports=o("https")},1421(e){e.exports=o("node:child_process")},7598(e){e.exports=o("node:crypto")},8474(e){e.exports=o("node:events")},3024(e){e.exports=o("node:fs")},1455(e){e.exports=o("node:fs/promises")},8161(e){e.exports=o("node:os")},6760(e){e.exports=o("node:path")},1708(e){e.exports=o("node:process")},857(e){e.exports=o("os")},6928(e){e.exports=o("path")},2203(e){e.exports=o("stream")},2018(e){e.exports=o("tty")},7016(e){e.exports=o("url")},9023(e){e.exports=o("util")},3106(e){e.exports=o("zlib")},9329(e,t,n){const i=n(737),o=n(6982),a=n(7016),r=n(6504),s=n(8611),c=n(5692),l=n(5675),p=n(9023),u=n(3164),d=n(3106),m=n(2203),f=n(4434);function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const g=h(i),v=h(o),y=h(a),b=h(r),x=h(s),w=h(c),S=h(l),C=h(p),_=h(u),k=h(d),E=h(m);function T(e,t){return function(){return e.apply(t,arguments)}}const{toString:j}=Object.prototype,{getPrototypeOf:O}=Object,{iterator:A,toStringTag:I}=Symbol,N=(P=Object.create(null),e=>{const t=j.call(e);return P[t]||(P[t]=t.slice(8,-1).toLowerCase())});var P;const R=e=>(e=e.toLowerCase(),t=>N(t)===e),L=e=>t=>typeof t===e,{isArray:$}=Array,D=L("undefined");function F(e){return null!==e&&!D(e)&&null!==e.constructor&&!D(e.constructor)&&q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const M=R("ArrayBuffer"),B=L("string"),q=L("function"),z=L("number"),U=e=>null!==e&&"object"==typeof e,W=e=>{if("object"!==N(e))return!1;const t=O(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||I in e||A in e)},V=R("Date"),H=R("File"),G=R("Blob"),J=R("FileList"),X="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Y=void 0!==X.FormData?X.FormData:void 0,K=R("URLSearchParams"),[Z,Q,ee,te]=["ReadableStream","Request","Response","Headers"].map(R);function ne(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,o;if("object"!=typeof e&&(e=[e]),$(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{if(F(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let r;for(i=0;i<a;i++)r=o[i],t.call(null,e[r],r,e)}}function ie(e,t){if(F(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i,o=n.length;for(;o-- >0;)if(i=n[o],t===i.toLowerCase())return i;return null}const oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ae=e=>!D(e)&&e!==oe,re=(se="undefined"!=typeof Uint8Array&&O(Uint8Array),e=>se&&e instanceof se);var se;const ce=R("HTMLFormElement"),le=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),pe=R("RegExp"),ue=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};ne(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(i[o]=a||n)}),Object.defineProperties(e,i)},de=R("AsyncFunction"),me=(fe="function"==typeof setImmediate,he=q(oe.postMessage),fe?setImmediate:he?(ge=`axios@${Math.random()}`,ve=[],oe.addEventListener("message",({source:e,data:t})=>{e===oe&&t===ge&&ve.length&&ve.shift()()},!1),e=>{ve.push(e),oe.postMessage(ge,"*")}):e=>setTimeout(e));var fe,he,ge,ve;const ye="undefined"!=typeof queueMicrotask?queueMicrotask.bind(oe):"undefined"!=typeof process&&process.nextTick||me,be={isArray:$,isArrayBuffer:M,isBuffer:F,isFormData:e=>{let t;return e&&(Y&&e instanceof Y||q(e.append)&&("formdata"===(t=N(e))||"object"===t&&q(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&M(e.buffer),t},isString:B,isNumber:z,isBoolean:e=>!0===e||!1===e,isObject:U,isPlainObject:W,isEmptyObject:e=>{if(!U(e)||F(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Z,isRequest:Q,isResponse:ee,isHeaders:te,isUndefined:D,isDate:V,isFile:H,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:G,isRegExp:pe,isFunction:q,isStream:e=>U(e)&&q(e.pipe),isURLSearchParams:K,isTypedArray:re,isFileList:J,forEach:ne,merge:function e(){const{caseless:t,skipUndefined:n}=ae(this)&&this||{},i={},o=(o,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;const r=t&&ie(i,a)||a;W(i[r])&&W(o)?i[r]=e(i[r],o):W(o)?i[r]=e({},o):$(o)?i[r]=o.slice():n&&D(o)||(i[r]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ne(arguments[e],o);return i},extend:(e,t,n,{allOwnKeys:i}={})=>(ne(t,(t,i)=>{n&&q(t)?Object.defineProperty(e,i,{value:T(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let o,a,r;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)r=o[a],i&&!i(r,e,t)||s[r]||(t[r]=e[r],s[r]=!0);e=!1!==n&&O(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:N,kindOfTest:R,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if($(e))return e;let t=e.length;if(!z(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[A]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:ce,hasOwnProperty:le,hasOwnProp:le,reduceDescriptors:ue,freezeMethods:e=>{ue(e,(t,n)=>{if(q(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];q(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach(e=>{n[e]=!0})};return $(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ie,global:oe,isContextDefined:ae,isSpecCompliantForm:function(e){return!!(e&&q(e.append)&&"FormData"===e[I]&&e[A])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(U(e)){if(t.indexOf(e)>=0)return;if(F(e))return e;if(!("toJSON"in e)){t[i]=e;const o=$(e)?[]:{};return ne(e,(e,t)=>{const a=n(e,i+1);!D(a)&&(o[t]=a)}),t[i]=void 0,o}}return e};return n(e,0)},isAsyncFn:de,isThenable:e=>e&&(U(e)||q(e))&&q(e.then)&&q(e.catch),setImmediate:me,asap:ye,isIterable:e=>null!=e&&q(e[A])};class xe extends Error{static from(e,t,n,i,o,a){const r=new xe(e.message,t||e.code,n,i,o);return r.cause=e,r.name=e.name,null!=e.status&&null==r.status&&(r.status=e.status),a&&Object.assign(r,a),r}constructor(e,t,n,i,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:be.toJSONObject(this.config),code:this.code,status:this.status}}}xe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",xe.ERR_BAD_OPTION="ERR_BAD_OPTION",xe.ECONNABORTED="ECONNABORTED",xe.ETIMEDOUT="ETIMEDOUT",xe.ERR_NETWORK="ERR_NETWORK",xe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",xe.ERR_DEPRECATED="ERR_DEPRECATED",xe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",xe.ERR_BAD_REQUEST="ERR_BAD_REQUEST",xe.ERR_CANCELED="ERR_CANCELED",xe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",xe.ERR_INVALID_URL="ERR_INVALID_URL";const we=xe;function Se(e){return be.isPlainObject(e)||be.isArray(e)}function Ce(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function _e(e,t,n){return e?e.concat(t).map(function(e,t){return e=Ce(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ke=be.toFlatObject(be,{},null,function(e){return/^is[A-Z]/.test(e)});function Ee(e,t,n){if(!be.isObject(e))throw new TypeError("target must be an object");t=t||new(g.default||FormData);const i=(n=be.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!be.isUndefined(t[e])})).metaTokens,o=n.visitor||l,a=n.dots,r=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&be.isSpecCompliantForm(t);if(!be.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(be.isDate(e))return e.toISOString();if(be.isBoolean(e))return e.toString();if(!s&&be.isBlob(e))throw new we("Blob is not supported. Use a Buffer instead.");return be.isArrayBuffer(e)||be.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let s=e;if(be.isReactNative(t)&&be.isReactNativeBlob(e))return t.append(_e(o,n,a),c(e)),!1;if(e&&!o&&"object"==typeof e)if(be.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(be.isArray(e)&&function(e){return be.isArray(e)&&!e.some(Se)}(e)||(be.isFileList(e)||be.endsWith(n,"[]"))&&(s=be.toArray(e)))return n=Ce(n),s.forEach(function(e,i){!be.isUndefined(e)&&null!==e&&t.append(!0===r?_e([n],i,a):null===r?n:n+"[]",c(e))}),!1;return!!Se(e)||(t.append(_e(o,n,a),c(e)),!1)}const p=[],u=Object.assign(ke,{defaultVisitor:l,convertValue:c,isVisitable:Se});if(!be.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!be.isUndefined(n)){if(-1!==p.indexOf(n))throw Error("Circular reference detected in "+i.join("."));p.push(n),be.forEach(n,function(n,a){!0===(!(be.isUndefined(n)||null===n)&&o.call(t,n,be.isString(a)?a.trim():a,i,u))&&e(n,i?i.concat(a):[a])}),p.pop()}}(e),t}function Te(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function je(e,t){this._pairs=[],e&&Ee(e,this,t)}const Oe=je.prototype;function Ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ie(e,t,n){if(!t)return e;const i=n&&n.encode||Ae,o=be.isFunction(n)?{serialize:n}:n,a=o&&o.serialize;let r;if(r=a?a(t,o):be.isURLSearchParams(t)?t.toString():new je(t,o).toString(i),r){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}Oe.append=function(e,t){this._pairs.push([e,t])},Oe.toString=function(e){const t=e?function(t){return e.call(this,t,Te)}:Te;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Ne=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){be.forEach(this.handlers,function(t){null!==t&&e(t)})}},Pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Re=y.default.URLSearchParams,Le="abcdefghijklmnopqrstuvwxyz",$e="0123456789",De={DIGIT:$e,ALPHA:Le,ALPHA_DIGIT:Le+Le.toUpperCase()+$e},Fe={isNode:!0,classes:{URLSearchParams:Re,FormData:g.default,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:De,generateString:(e=16,t=De.ALPHA_DIGIT)=>{let n="";const{length:i}=t,o=new Uint32Array(e);v.default.randomFillSync(o);for(let a=0;a<e;a++)n+=t[o[a]%i];return n},protocols:["http","https","file","data"]},Me="undefined"!=typeof window&&"undefined"!=typeof document,Be="object"==typeof navigator&&navigator||void 0,qe=Me&&(!Be||["ReactNative","NativeScript","NS"].indexOf(Be.product)<0),ze="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ue=Me&&window.location.href||"http://localhost",We={...Object.freeze({__proto__:null,hasBrowserEnv:Me,hasStandardBrowserWebWorkerEnv:ze,hasStandardBrowserEnv:qe,navigator:Be,origin:Ue}),...Fe};function Ve(e){function t(e,n,i,o){let a=e[o++];if("__proto__"===a)return!0;const r=Number.isFinite(+a),s=o>=e.length;return a=!a&&be.isArray(i)?i.length:a,s?(be.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!r):(i[a]&&be.isObject(i[a])||(i[a]=[]),t(e,n,i[a],o)&&be.isArray(i[a])&&(i[a]=function(e){const t={},n=Object.keys(e);let i;const o=n.length;let a;for(i=0;i<o;i++)a=n[i],t[a]=e[a];return t}(i[a])),!r)}if(be.isFormData(e)&&be.isFunction(e.entries)){const n={};return be.forEachEntry(e,(e,i)=>{t(function(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),i,n,0)}),n}return null}const He={transitional:Pe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=be.isObject(e);if(o&&be.isHTMLForm(e)&&(e=new FormData(e)),be.isFormData(e))return i?JSON.stringify(Ve(e)):e;if(be.isArrayBuffer(e)||be.isBuffer(e)||be.isStream(e)||be.isFile(e)||be.isBlob(e)||be.isReadableStream(e))return e;if(be.isArrayBufferView(e))return e.buffer;if(be.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ee(e,new We.classes.URLSearchParams,{visitor:function(e,t,n,i){return We.isNode&&be.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=be.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ee(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e){if(be.isString(e))try{return(0,JSON.parse)(e),be.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||He.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(be.isResponse(e)||be.isReadableStream(e))return e;if(e&&be.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw we.from(e,we.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};be.forEach(["delete","get","head","post","put","patch"],e=>{He.headers[e]={}});const Ge=He,Je=be.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xe=Symbol("internals");function Ye(e){return e&&String(e).trim().toLowerCase()}function Ke(e){return!1===e||null==e?e:be.isArray(e)?e.map(Ke):String(e)}function Ze(e,t,n,i,o){return be.isFunction(i)?i.call(this,t,n):(o&&(t=n),be.isString(t)?be.isString(i)?-1!==t.indexOf(i):be.isRegExp(i)?i.test(t):void 0:void 0)}class Qe{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function o(e,t,n){const o=Ye(t);if(!o)throw new Error("header name must be a non-empty string");const a=be.findKey(i,o);(!a||void 0===i[a]||!0===n||void 0===n&&!1!==i[a])&&(i[a||t]=Ke(e))}const a=(e,t)=>be.forEach(e,(e,n)=>o(e,n,t));if(be.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(be.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,i,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),i=e.substring(o+1).trim(),!n||t[n]&&Je[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t})(e),t);else if(be.isObject(e)&&be.isIterable(e)){let n,i,o={};for(const t of e){if(!be.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[i=t[0]]=(n=o[i])?be.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ye(e)){const n=be.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(be.isFunction(t))return t.call(this,e,n);if(be.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ye(e)){const n=be.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ze(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function o(e){if(e=Ye(e)){const o=be.findKey(n,e);!o||t&&!Ze(0,n[o],o,t)||(delete n[o],i=!0)}}return be.isArray(e)?e.forEach(o):o(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const o=t[n];e&&!Ze(0,this[o],o,e,!0)||(delete this[o],i=!0)}return i}normalize(e){const t=this,n={};return be.forEach(this,(i,o)=>{const a=be.findKey(n,o);if(a)return t[a]=Ke(i),void delete t[o];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();r!==o&&delete t[o],t[r]=Ke(i),n[r]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return be.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&be.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Xe]=this[Xe]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=Ye(e);t[i]||(function(e,t){const n=be.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(e,n,o){return this[i].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[i]=!0)}return be.isArray(e)?e.forEach(i):i(e),this}}Qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),be.reduceDescriptors(Qe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),be.freezeMethods(Qe);const et=Qe;function tt(e,t){const n=this||Ge,i=t||n,o=et.from(i.headers);let a=i.data;return be.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function nt(e){return!(!e||!e.__CANCEL__)}const it=class extends we{constructor(e,t,n){super(null==e?"canceled":e,we.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function ot(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new we("Request failed with status code "+n.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function at(e,t,n){let i=!function(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(i||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const rt="1.13.6";function st(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const ct=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/,lt=Symbol("internals");class pt extends E.default.Transform{constructor(e){super({readableHighWaterMark:(e=be.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!be.isUndefined(t[e]))).chunkSize});const t=this[lt]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",e=>{"progress"===e&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){const t=this[lt];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const i=this[lt],o=i.maxRate,a=this.readableHighWaterMark,r=i.timeWindow,s=o/(1e3/r),c=!1!==i.minChunkSize?Math.max(i.minChunkSize,.01*s):0,l=(e,t)=>{const n=Buffer.byteLength(e);i.bytesSeen+=n,i.bytes+=n,i.isCaptured&&this.emit("progress",i.bytesSeen),this.push(e)?process.nextTick(t):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(t)}},p=(e,t)=>{const n=Buffer.byteLength(e);let p,u=null,d=a,m=0;if(o){const e=Date.now();(!i.ts||(m=e-i.ts)>=r)&&(i.ts=e,p=s-i.bytes,i.bytes=p<0?-p:0,m=0),p=s-i.bytes}if(o){if(p<=0)return setTimeout(()=>{t(null,e)},r-m);p<d&&(d=p)}d&&n>d&&n-d>c&&(u=e.subarray(d),e=e.subarray(0,d)),l(e,u?()=>{process.nextTick(t,null,u)}:t)};p(e,function e(t,i){if(t)return n(t);i?p(i,e):n(null)})}}const ut=pt,{asyncIterator:dt}=Symbol,mt=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[dt]?yield*e[dt]():yield e},ft=We.ALPHABET.ALPHA_DIGIT+"-_",ht="function"==typeof TextEncoder?new TextEncoder:new C.default.TextEncoder,gt="\r\n",vt=ht.encode(gt);class yt{constructor(e,t){const{escapeName:n}=this.constructor,i=be.isString(t);let o=`Content-Disposition: form-data; name="${n(e)}"${!i&&t.name?`; filename="${n(t.name)}"`:""}${gt}`;i?t=ht.encode(String(t).replace(/\r?\n|\r\n?/g,gt)):o+=`Content-Type: ${t.type||"application/octet-stream"}${gt}`,this.headers=ht.encode(o+gt),this.contentLength=i?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;be.isTypedArray(e)?yield e:yield*mt(e),yield vt}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e]))}}class bt extends E.default.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}}const xt=bt,wt=(e,t)=>be.isAsyncFn(e)?function(...n){const i=n.pop();e.apply(this,n).then(e=>{try{t?i(null,...t(e)):i(null,e)}catch(e){i(e)}},i)}:e,St=(e,t,n=3)=>{let i=0;const o=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o,a=0,r=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=i[r];o||(o=c),n[a]=s,i[a]=c;let p=r,u=0;for(;p!==a;)u+=n[p++],p%=e;if(a=(a+1)%e,a===r&&(r=(r+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*u/d):void 0}}(50,250);return function(n,a){let r,s,c=0,l=1e3/a;const p=(n,a=Date.now())=>{c=a,r=null,s&&(clearTimeout(s),s=null),(n=>{const a=n.loaded,r=n.lengthComputable?n.total:void 0,s=a-i,c=o(s);i=a,e({loaded:a,total:r,progress:r?a/r:void 0,bytes:s,rate:c||void 0,estimated:c&&r&&a<=r?(r-a)/c:void 0,event:n,lengthComputable:null!=r,[t?"download":"upload"]:!0})})(...n)};return[(...e)=>{const t=Date.now(),n=t-c;n>=l?p(e,t):(r=e,s||(s=setTimeout(()=>{s=null,p(r)},l-n)))},()=>r&&p(r)]}(0,n)},Ct=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},_t=e=>(...t)=>be.asap(()=>e(...t)),kt={flush:k.default.constants.Z_SYNC_FLUSH,finishFlush:k.default.constants.Z_SYNC_FLUSH},Et={flush:k.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:k.default.constants.BROTLI_OPERATION_FLUSH},Tt=be.isFunction(k.default.createBrotliDecompress),{http:jt,https:Ot}=_.default,At=/https:?/,It=We.protocols.map(e=>e+":"),Nt=(e,[t,n])=>(e.on("end",n).on("error",n),t),Pt=new class{constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign({sessionTimeout:1e3},t);let n=this.sessions[e];if(n){let e=n.length;for(let i=0;i<e;i++){const[e,o]=n[i];if(!e.destroyed&&!e.closed&&C.default.isDeepStrictEqual(o,t))return e}}const i=S.default.connect(e,t);let o;const a=()=>{if(o)return;o=!0;let t=n,a=t.length,r=a;for(;r--;)if(t[r][0]===i)return void(1===a?delete this.sessions[e]:t.splice(r,1))},r=i.request,{sessionTimeout:s}=t;if(null!=s){let e,t=0;i.request=function(){const n=r.apply(this,arguments);return t++,e&&(clearTimeout(e),e=null),n.once("close",()=>{--t||(e=setTimeout(()=>{e=null,a()},s))}),n}}i.once("close",a);let c=[i,t];return n?n.push(c):n=this.sessions[e]=[c],i}};function Rt(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Lt(e,t,n){let i=t;if(!i&&!1!==i){const e=b.default.getProxyForUrl(n);e&&(i=new URL(e))}if(i){if(i.username&&(i.auth=(i.username||"")+":"+(i.password||"")),i.auth){if(Boolean(i.auth.username||i.auth.password))i.auth=(i.auth.username||"")+":"+(i.auth.password||"");else if("object"==typeof i.auth)throw new we("Invalid proxy authorization",we.ERR_BAD_OPTION,{proxy:i});const t=Buffer.from(i.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=i.hostname||i.host;e.hostname=t,e.host=t,e.port=i.port,e.path=n,i.protocol&&(e.protocol=i.protocol.includes(":")?i.protocol:`${i.protocol}:`)}e.beforeRedirects.proxy=function(e){Lt(e,t,e.href)}}const $t="undefined"!=typeof process&&"process"===be.kindOf(process),Dt=(e,t)=>(({address:e,family:t})=>{if(!be.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(be.isObject(e)?e:{address:e,family:t}),Ft={request(e,t){const n=e.protocol+"//"+e.hostname+":"+(e.port||("https:"===e.protocol?443:80)),{http2Options:i,headers:o}=e,a=Pt.getSession(n,i),{HTTP2_HEADER_SCHEME:r,HTTP2_HEADER_METHOD:s,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=S.default.constants,p={[r]:e.protocol.replace(":",""),[s]:e.method,[c]:e.path};be.forEach(o,(e,t)=>{":"!==t.charAt(0)&&(p[t]=e)});const u=a.request(p);return u.once("response",e=>{const n=u,i=(e=Object.assign({},e))[l];delete e[l],n.headers=e,n.statusCode=+i,t(n)}),u}},Mt=$t&&function(e){return t=async function(t,n,i){let{data:o,lookup:a,family:r,httpVersion:s=1,http2Options:c}=e;const{responseType:l,responseEncoding:p}=e,u=e.method.toUpperCase();let d,h,g=!1;if(s=+s,Number.isNaN(s))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(1!==s&&2!==s)throw TypeError(`Unsupported protocol version '${s}'`);const v=2===s;if(a){const e=wt(a,e=>be.isArray(e)?e:[e]);a=(t,n,i)=>{e(t,n,(e,t,o)=>{if(e)return i(e);const a=be.isArray(t)?t.map(e=>Dt(e)):[Dt(t,o)];n.all?i(e,a):i(e,a[0].address,a[0].family)})}}const y=new f.EventEmitter;function b(t){try{y.emit("abort",!t||t.type?new it(null,e,h):t)}catch(e){console.warn("emit error",e)}}y.once("abort",n);const S=()=>{e.cancelToken&&e.cancelToken.unsubscribe(b),e.signal&&e.signal.removeEventListener("abort",b),y.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(b),e.signal&&(e.signal.aborted?b():e.signal.addEventListener("abort",b))),i((e,t)=>{if(d=!0,t)return g=!0,void S();const{data:n}=e;if(n instanceof E.default.Readable||n instanceof E.default.Duplex){const e=E.default.finished(n,()=>{e(),S()})}else S()});const _=at(e.baseURL,e.url,e.allowAbsoluteUrls),T=new URL(_,We.hasBrowserEnv?We.origin:void 0),j=T.protocol||It[0];if("data:"===j){if(e.maxContentLength>-1){const t=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),i=e.slice(t+1);if(/;base64/i.test(n)){let e=i.length;const t=i.length;for(let n=0;n<t;n++)if(37===i.charCodeAt(n)&&n+2<t){const t=i.charCodeAt(n+1),o=i.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,n+=2)}let n=0,o=t-1;const a=e=>e>=2&&37===i.charCodeAt(e-2)&&51===i.charCodeAt(e-1)&&(68===i.charCodeAt(e)||100===i.charCodeAt(e));o>=0&&(61===i.charCodeAt(o)?(n++,o--):a(o)&&(n++,o-=3)),1===n&&o>=0&&(61===i.charCodeAt(o)||a(o))&&n++;const r=3*Math.floor(e/4)-(n||0);return r>0?r:0}return Buffer.byteLength(i,"utf8")}(String(e.url||_||""));if(t>e.maxContentLength)return n(new we("maxContentLength size of "+e.maxContentLength+" exceeded",we.ERR_BAD_RESPONSE,e))}let i;if("GET"!==u)return ot(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{i=function(e,t,n){const i=n&&n.Blob||We.classes.Blob,o=st(e);if(void 0===t&&i&&(t=!0),"data"===o){e=o.length?e.slice(o.length+1):e;const n=ct.exec(e);if(!n)throw new we("Invalid URL",we.ERR_INVALID_URL);const a=n[1],r=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),r?"base64":"utf8");if(t){if(!i)throw new we("Blob is not supported",we.ERR_NOT_SUPPORT);return new i([c],{type:a})}return c}throw new we("Unsupported protocol "+o,we.ERR_NOT_SUPPORT)}(e.url,"blob"===l,{Blob:e.env&&e.env.Blob})}catch(t){throw we.from(t,we.ERR_BAD_REQUEST,e)}return"text"===l?(i=i.toString(p),p&&"utf8"!==p||(i=be.stripBOM(i))):"stream"===l&&(i=E.default.Readable.from(i)),ot(t,n,{data:i,status:200,statusText:"OK",headers:new et,config:e})}if(-1===It.indexOf(j))return n(new we("Unsupported protocol "+j,we.ERR_BAD_REQUEST,e));const O=et.from(e.headers).normalize();O.set("User-Agent","axios/"+rt,!1);const{onUploadProgress:A,onDownloadProgress:I}=e,N=e.maxRate;let P,R;if(be.isSpecCompliantForm(o)){const e=O.getContentType(/boundary=([-_\w\d]{10,70})/i);o=((e,t,n)=>{const{tag:i="form-data-boundary",size:o=25,boundary:a=i+"-"+We.generateString(o,ft)}=n||{};if(!be.isFormData(e))throw TypeError("FormData instance required");if(a.length<1||a.length>70)throw Error("boundary must be 10-70 characters long");const r=ht.encode("--"+a+gt),s=ht.encode("--"+a+"--"+gt);let c=s.byteLength;const l=Array.from(e.entries()).map(([e,t])=>{const n=new yt(e,t);return c+=n.size,n});c+=r.byteLength*l.length,c=be.toFiniteNumber(c);const p={"Content-Type":`multipart/form-data; boundary=${a}`};return Number.isFinite(c)&&(p["Content-Length"]=c),t&&t(p),m.Readable.from(async function*(){for(const e of l)yield r,yield*e.encode();yield s}())})(o,e=>{O.set(e)},{tag:`axios-${rt}-boundary`,boundary:e&&e[1]||void 0})}else if(be.isFormData(o)&&be.isFunction(o.getHeaders)){if(O.set(o.getHeaders()),!O.hasContentLength())try{const e=await C.default.promisify(o.getLength).call(o);Number.isFinite(e)&&e>=0&&O.setContentLength(e)}catch(e){}}else if(be.isBlob(o)||be.isFile(o))o.size&&O.setContentType(o.type||"application/octet-stream"),O.setContentLength(o.size||0),o=E.default.Readable.from(mt(o));else if(o&&!be.isStream(o)){if(Buffer.isBuffer(o));else if(be.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else{if(!be.isString(o))return n(new we("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",we.ERR_BAD_REQUEST,e));o=Buffer.from(o,"utf-8")}if(O.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return n(new we("Request body larger than maxBodyLength limit",we.ERR_BAD_REQUEST,e))}const L=be.toFiniteNumber(O.getContentLength());let $,D;be.isArray(N)?(P=N[0],R=N[1]):P=R=N,o&&(A||P)&&(be.isStream(o)||(o=E.default.Readable.from(o,{objectMode:!1})),o=E.default.pipeline([o,new ut({maxRate:be.toFiniteNumber(P)})],be.noop),A&&o.on("progress",Nt(o,Ct(L,St(_t(A),!1,3))))),e.auth&&($=(e.auth.username||"")+":"+(e.auth.password||"")),!$&&T.username&&($=T.username+":"+T.password),$&&O.delete("authorization");try{D=Ie(T.pathname+T.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const i=new Error(t.message);return i.config=e,i.url=e.url,i.exists=!0,n(i)}O.set("Accept-Encoding","gzip, compress, deflate"+(Tt?", br":""),!1);const F={path:D,method:u,headers:O.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:$,protocol:j,family:r,beforeRedirect:Rt,beforeRedirects:{},http2Options:c};let M;!be.isUndefined(a)&&(F.lookup=a),e.socketPath?F.socketPath=e.socketPath:(F.hostname=T.hostname.startsWith("[")?T.hostname.slice(1,-1):T.hostname,F.port=T.port,Lt(F,e.proxy,j+"//"+T.hostname+(T.port?":"+T.port:"")+F.path));const B=At.test(F.protocol);if(F.agent=B?e.httpsAgent:e.httpAgent,v?M=Ft:e.transport?M=e.transport:0===e.maxRedirects?M=B?w.default:x.default:(e.maxRedirects&&(F.maxRedirects=e.maxRedirects),e.beforeRedirect&&(F.beforeRedirects.config=e.beforeRedirect),M=B?Ot:jt),e.maxBodyLength>-1?F.maxBodyLength=e.maxBodyLength:F.maxBodyLength=1/0,e.insecureHTTPParser&&(F.insecureHTTPParser=e.insecureHTTPParser),h=M.request(F,function(i){if(h.destroyed)return;const o=[i],a=be.toFiniteNumber(i.headers["content-length"]);if(I||R){const e=new ut({maxRate:be.toFiniteNumber(R)});I&&e.on("progress",Nt(e,Ct(a,St(_t(I),!0,3)))),o.push(e)}let r=i;const s=i.req||h;if(!1!==e.decompress&&i.headers["content-encoding"])switch("HEAD"!==u&&204!==i.statusCode||delete i.headers["content-encoding"],(i.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":o.push(k.default.createUnzip(kt)),delete i.headers["content-encoding"];break;case"deflate":o.push(new xt),o.push(k.default.createUnzip(kt)),delete i.headers["content-encoding"];break;case"br":Tt&&(o.push(k.default.createBrotliDecompress(Et)),delete i.headers["content-encoding"])}r=o.length>1?E.default.pipeline(o,be.noop):o[0];const c={status:i.statusCode,statusText:i.statusMessage,headers:new et(i.headers),config:e,request:s};if("stream"===l)c.data=r,ot(t,n,c);else{const i=[];let o=0;r.on("data",function(t){i.push(t),o+=t.length,e.maxContentLength>-1&&o>e.maxContentLength&&(g=!0,r.destroy(),b(new we("maxContentLength size of "+e.maxContentLength+" exceeded",we.ERR_BAD_RESPONSE,e,s)))}),r.on("aborted",function(){if(g)return;const t=new we("stream has been aborted",we.ERR_BAD_RESPONSE,e,s);r.destroy(t),n(t)}),r.on("error",function(t){h.destroyed||n(we.from(t,null,e,s))}),r.on("end",function(){try{let e=1===i.length?i[0]:Buffer.concat(i);"arraybuffer"!==l&&(e=e.toString(p),p&&"utf8"!==p||(e=be.stripBOM(e))),c.data=e}catch(t){return n(we.from(t,null,e,c.request,c))}ot(t,n,c)})}y.once("abort",e=>{r.destroyed||(r.emit("error",e),r.destroy())})}),y.once("abort",e=>{h.close?h.close():h.destroy(e)}),h.on("error",function(t){n(we.from(t,null,e,h))}),h.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void b(new we("error trying to parse `config.timeout` to int",we.ERR_BAD_OPTION_VALUE,e,h));h.setTimeout(t,function(){if(d)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||Pe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),b(new we(t,n.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,h))})}else h.setTimeout(0);if(be.isStream(o)){let t=!1,n=!1;o.on("end",()=>{t=!0}),o.once("error",e=>{n=!0,h.destroy(e)}),o.on("close",()=>{t||n||b(new it("Request stream has been aborted",e,h))}),o.pipe(h)}else o&&h.write(o),h.end()},new Promise((e,n)=>{let i,o;const a=(e,t)=>{o||(o=!0,i&&i(e,t))},r=e=>{a(e,!0),n(e)};t(t=>{a(t),e(t)},r,e=>i=e).catch(r)});var t},Bt=We.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,We.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(We.origin),We.navigator&&/(msie|trident)/i.test(We.navigator.userAgent)):()=>!0,qt=We.hasStandardBrowserEnv?{write(e,t,n,i,o,a,r){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];be.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),be.isString(i)&&s.push(`path=${i}`),be.isString(o)&&s.push(`domain=${o}`),!0===a&&s.push("secure"),be.isString(r)&&s.push(`SameSite=${r}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},zt=e=>e instanceof et?{...e}:e;function Ut(e,t){t=t||{};const n={};function i(e,t,n,i){return be.isPlainObject(e)&&be.isPlainObject(t)?be.merge.call({caseless:i},e,t):be.isPlainObject(t)?be.merge({},t):be.isArray(t)?t.slice():t}function o(e,t,n,o){return be.isUndefined(t)?be.isUndefined(e)?void 0:i(void 0,e,0,o):i(e,t,0,o)}function a(e,t){if(!be.isUndefined(t))return i(void 0,t)}function r(e,t){return be.isUndefined(t)?be.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,o,a){return a in t?i(n,o):a in e?i(void 0,n):void 0}const c={url:a,method:a,data:a,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(e,t,n)=>o(zt(e),zt(t),0,!0)};return be.forEach(Object.keys({...e,...t}),function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=be.hasOwnProp(c,i)?c[i]:o,r=a(e[i],t[i],i);be.isUndefined(r)&&a!==s||(n[i]=r)}),n}const Wt=e=>{const t=Ut({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:r,auth:s}=t;if(t.headers=r=et.from(r),t.url=Ie(at(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),be.isFormData(n))if(We.hasStandardBrowserEnv||We.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(be.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&r.set(e,n)})}if(We.hasStandardBrowserEnv&&(i&&be.isFunction(i)&&(i=i(t)),i||!1!==i&&Bt(t.url))){const e=o&&a&&qt.read(a);e&&r.set(o,e)}return t},Vt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const i=Wt(e);let o=i.data;const a=et.from(i.headers).normalize();let r,s,c,l,p,{responseType:u,onUploadProgress:d,onDownloadProgress:m}=i;function f(){l&&l(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(r),i.signal&&i.signal.removeEventListener("abort",r)}let h=new XMLHttpRequest;function g(){if(!h)return;const i=et.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());ot(function(e){t(e),f()},function(e){n(e),f()},{data:u&&"text"!==u&&"json"!==u?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:i,config:e,request:h}),h=null}h.open(i.method.toUpperCase(),i.url,!0),h.timeout=i.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new we("Request aborted",we.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const i=t&&t.message?t.message:"Network Error",o=new we(i,we.ERR_NETWORK,e,h);o.event=t||null,n(o),h=null},h.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const o=i.transitional||Pe;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new we(t,o.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,h)),h=null},void 0===o&&a.setContentType(null),"setRequestHeader"in h&&be.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),be.isUndefined(i.withCredentials)||(h.withCredentials=!!i.withCredentials),u&&"json"!==u&&(h.responseType=i.responseType),m&&([c,p]=St(m,!0),h.addEventListener("progress",c)),d&&h.upload&&([s,l]=St(d),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",l)),(i.cancelToken||i.signal)&&(r=t=>{h&&(n(!t||t.type?new it(null,e,h):t),h.abort(),h=null)},i.cancelToken&&i.cancelToken.subscribe(r),i.signal&&(i.signal.aborted?r():i.signal.addEventListener("abort",r)));const v=st(i.url);v&&-1===We.protocols.indexOf(v)?n(new we("Unsupported protocol "+v+":",we.ERR_BAD_REQUEST,e)):h.send(o||null)})},Ht=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,i=new AbortController;const o=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;i.abort(t instanceof we?t:new it(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new we(`timeout of ${t}ms exceeded`,we.ETIMEDOUT))},t);const r=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=i;return s.unsubscribe=()=>be.asap(r),s}},Gt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let i,o=0;for(;o<n;)i=o+t,yield e.slice(o,i),o=i},Jt=(e,t,n,i)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Gt(n,t)}(e,t);let a,r=0,s=e=>{a||(a=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await o.next();if(t)return s(),void e.close();let a=i.byteLength;if(n){let e=r+=a;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:Xt}=be,Yt=(({Request:e,Response:t})=>({Request:e,Response:t}))(be.global),{ReadableStream:Kt,TextEncoder:Zt}=be.global,Qt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},en=e=>{e=be.merge.call({skipUndefined:!0},Yt,e);const{fetch:t,Request:n,Response:i}=e,o=t?Xt(t):"function"==typeof fetch,a=Xt(n),r=Xt(i);if(!o)return!1;const s=o&&Xt(Kt),c=o&&("function"==typeof Zt?(l=new Zt,e=>l.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var l;const p=a&&s&&Qt(()=>{let e=!1;const t=new n(We.origin,{body:new Kt,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=r&&s&&Qt(()=>be.isReadableStream(new i("").body)),d={stream:u&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new we(`Response type '${e}' is not supported`,we.ERR_NOT_SUPPORT,n)})});return async e=>{let{url:o,method:r,data:s,signal:l,cancelToken:m,timeout:f,onDownloadProgress:h,onUploadProgress:g,responseType:v,headers:y,withCredentials:b="same-origin",fetchOptions:x}=Wt(e),w=t||fetch;v=v?(v+"").toLowerCase():"text";let S=Ht([l,m&&m.toAbortSignal()],f),C=null;const _=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let k;try{if(g&&p&&"get"!==r&&"head"!==r&&0!==(k=await(async(e,t)=>{const i=be.toFiniteNumber(e.getContentLength());return null==i?(async e=>{if(null==e)return 0;if(be.isBlob(e))return e.size;if(be.isSpecCompliantForm(e)){const t=new n(We.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return be.isArrayBufferView(e)||be.isArrayBuffer(e)?e.byteLength:(be.isURLSearchParams(e)&&(e+=""),be.isString(e)?(await c(e)).byteLength:void 0)})(t):i})(y,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(be.isFormData(s)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,n]=Ct(k,St(_t(g)));s=Jt(t.body,65536,e,n)}}be.isString(b)||(b=b?"include":"omit");const t=a&&"credentials"in n.prototype,l={...x,signal:S,method:r.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};C=a&&new n(o,l);let m=await(a?w(C,x):w(o,l));const f=u&&("stream"===v||"response"===v);if(u&&(h||f&&_)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=m[t]});const t=be.toFiniteNumber(m.headers.get("content-length")),[n,o]=h&&Ct(t,St(_t(h),!0))||[];m=new i(Jt(m.body,65536,n,()=>{o&&o(),_&&_()}),e)}v=v||"text";let E=await d[be.findKey(d,v)||"text"](m,e);return!f&&_&&_(),await new Promise((t,n)=>{ot(t,n,{data:E,headers:et.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:C})})}catch(t){if(_&&_(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new we("Network Error",we.ERR_NETWORK,e,C,t&&t.response),{cause:t.cause||t});throw we.from(t,t&&t.code,e,C,t&&t.response)}}},tn=new Map,nn=e=>{let t=e&&e.env||{};const{fetch:n,Request:i,Response:o}=t,a=[i,o,n];let r,s,c=a.length,l=tn;for(;c--;)r=a[c],s=l.get(r),void 0===s&&l.set(r,s=c?new Map:en(t)),l=s;return s};nn();const on={http:Mt,xhr:Vt,fetch:{get:nn}};be.forEach(on,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const an=e=>`- ${e}`,rn=e=>be.isFunction(e)||null===e||!1===e,sn=function(e,t){e=be.isArray(e)?e:[e];const{length:n}=e;let i,o;const a={};for(let r=0;r<n;r++){let n;if(i=e[r],o=i,!rn(i)&&(o=on[(n=String(i)).toLowerCase()],void 0===o))throw new we(`Unknown adapter '${n}'`);if(o&&(be.isFunction(o)||(o=o.get(t))))break;a[n||"#"+r]=o}if(!o){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(an).join("\n"):" "+an(e[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o};function cn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new it(null,e)}function ln(e){return cn(e),e.headers=et.from(e.headers),e.data=tt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sn(e.adapter||Ge.adapter,e)(e).then(function(t){return cn(e),t.data=tt.call(e,e.transformResponse,t),t.headers=et.from(t.headers),t},function(t){return nt(t)||(cn(e),t&&t.response&&(t.response.data=tt.call(e,e.transformResponse,t.response),t.response.headers=et.from(t.response.headers))),Promise.reject(t)})}const pn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const un={};pn.transitional=function(e,t,n){function i(e,t){return"[Axios v"+rt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new we(i(o," has been removed"+(t?" in "+t:"")),we.ERR_DEPRECATED);return t&&!un[o]&&(un[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},pn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const dn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const a=i[o],r=t[a];if(r){const t=e[a],n=void 0===t||r(t,a,e);if(!0!==n)throw new we("option "+a+" must be "+n,we.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new we("Unknown option "+a,we.ERR_BAD_OPTION)}},validators:pn},mn=dn.validators;class fn{constructor(e){this.defaults=e||{},this.interceptors={request:new Ne,response:new Ne}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ut(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:o}=t;void 0!==n&&dn.assertOptions(n,{silentJSONParsing:mn.transitional(mn.boolean),forcedJSONParsing:mn.transitional(mn.boolean),clarifyTimeoutError:mn.transitional(mn.boolean),legacyInterceptorReqResOrdering:mn.transitional(mn.boolean)},!1),null!=i&&(be.isFunction(i)?t.paramsSerializer={serialize:i}:dn.assertOptions(i,{encode:mn.function,serialize:mn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),dn.assertOptions(t,{baseUrl:mn.spelling("baseURL"),withXsrfToken:mn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&be.merge(o.common,o[t.method]);o&&be.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=et.concat(a,o);const r=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||Pe;n&&n.legacyInterceptorReqResOrdering?r.unshift(e.fulfilled,e.rejected):r.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let p,u=0;if(!s){const e=[ln.bind(this),void 0];for(e.unshift(...r),e.push(...c),p=e.length,l=Promise.resolve(t);u<p;)l=l.then(e[u++],e[u++]);return l}p=r.length;let d=t;for(;u<p;){const e=r[u++],t=r[u++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=ln.call(this,d)}catch(e){return Promise.reject(e)}for(u=0,p=c.length;u<p;)l=l.then(c[u++],c[u++]);return l}getUri(e){return Ie(at((e=Ut(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}be.forEach(["delete","get","head","options"],function(e){fn.prototype[e]=function(t,n){return this.request(Ut(n||{},{method:e,url:t,data:(n||{}).data}))}}),be.forEach(["post","put","patch"],function(e){function t(t){return function(n,i,o){return this.request(Ut(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}fn.prototype[e]=t(),fn.prototype[e+"Form"]=t(!0)});const hn=fn;class gn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,i,o){n.reason||(n.reason=new it(e,i,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new gn(function(t){e=t}),cancel:e}}}const vn=gn,yn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(yn).forEach(([e,t])=>{yn[t]=e});const bn=yn,xn=function e(t){const n=new hn(t),i=T(hn.prototype.request,n);return be.extend(i,hn.prototype,n,{allOwnKeys:!0}),be.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(Ut(t,n))},i}(Ge);xn.Axios=hn,xn.CanceledError=it,xn.CancelToken=vn,xn.isCancel=nt,xn.VERSION=rt,xn.toFormData=Ee,xn.AxiosError=we,xn.Cancel=xn.CanceledError,xn.all=function(e){return Promise.all(e)},xn.spread=function(e){return function(t){return e.apply(null,t)}},xn.isAxiosError=function(e){return be.isObject(e)&&!0===e.isAxiosError},xn.mergeConfig=Ut,xn.AxiosHeaders=et,xn.formToJSON=e=>Ve(be.isHTMLForm(e)?new FormData(e):e),xn.getAdapter=sn,xn.HttpStatusCode=bn,xn.default=xn,e.exports=xn},2116(e,t,n){const{Argument:i}=n(9297),{Command:o}=n(3749),{CommanderError:a,InvalidArgumentError:r}=n(3666),{Help:s}=n(3693),{Option:c}=n(5019);t.program=new o,t.createCommand=e=>new o(e),t.createOption=(e,t)=>new c(e,t),t.createArgument=(e,t)=>new i(e,t),t.Command=o,t.Option=c,t.Argument=i,t.Help=s,t.CommanderError=a,t.InvalidArgumentError=r,t.InvalidOptionArgumentError=r},9297(e,t,n){const{InvalidArgumentError:i}=n(3666);t.Argument=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?(t.push(e),t):[e]}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new i(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(e,t):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}},t.humanReadableArgName=function(e){const t=e.name()+(!0===e.variadic?"...":"");return e.required?"<"+t+">":"["+t+"]"}},3749(e,t,n){const i=n(8474).EventEmitter,o=n(1421),a=n(6760),r=n(3024),s=n(1708),{Argument:c,humanReadableArgName:l}=n(9297),{CommanderError:p}=n(3666),{Help:u,stripColor:d}=n(3693),{Option:m,DualOptions:f}=n(5019),{suggestSimilar:h}=n(7369);class g extends i{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:e=>s.stdout.write(e),writeErr:e=>s.stderr.write(e),outputError:(e,t)=>t(e),getOutHelpWidth:()=>s.stdout.isTTY?s.stdout.columns:void 0,getErrHelpWidth:()=>s.stderr.isTTY?s.stderr.columns:void 0,getOutHasColors:()=>y()??(s.stdout.isTTY&&s.stdout.hasColors?.()),getErrHasColors:()=>y()??(s.stderr.isTTY&&s.stderr.hasColors?.()),stripColor:e=>d(e)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){const e=[];for(let t=this;t;t=t.parent)e.push(t);return e}command(e,t,n){let i=t,o=n;"object"==typeof i&&null!==i&&(o=i,i=null),o=o||{};const[,a,r]=e.match(/([^ ]+) *(.*)/),s=this.createCommand(a);return i&&(s.description(i),s._executableHandler=!0),o.isDefault&&(this._defaultCommandName=s._name),s._hidden=!(!o.noHelp&&!o.hidden),s._executableFile=o.executableFile||null,r&&s.arguments(r),this._registerCommand(s),s.parent=this,s.copyInheritedSettings(this),i?this:s}createCommand(e){return new g(e)}createHelp(){return Object.assign(new u,this.configureHelp())}configureHelp(e){return void 0===e?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return void 0===e?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...e},this)}showHelpAfterError(e=!0){return"string"!=typeof e&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw new Error("Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()");return(t=t||{}).isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,t){return new c(e,t)}argument(e,t,n,i){const o=this.createArgument(e,t);return"function"==typeof n?o.default(i).argParser(n):o.default(n),this.addArgument(o),this}arguments(e){return e.trim().split(/ +/).forEach(e=>{this.argument(e)}),this}addArgument(e){const t=this.registeredArguments.slice(-1)[0];if(t?.variadic)throw new Error(`only the last argument can be variadic '${t.name()}'`);if(e.required&&void 0!==e.defaultValue&&void 0===e.parseArg)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,t){if("boolean"==typeof e)return this._addImplicitHelpCommand=e,e&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;const n=e??"help [command]",[,i,o]=n.match(/([^ ]+) *(.*)/),a=t??"display help for command",r=this.createCommand(i);return r.helpOption(!1),o&&r.arguments(o),a&&r.description(a),this._addImplicitHelpCommand=!0,this._helpCommand=r,(e||t)&&this._initCommandGroup(r),this}addHelpCommand(e,t){return"object"!=typeof e?(this.helpCommand(e,t),this):(this._addImplicitHelpCommand=!0,this._helpCommand=e,this._initCommandGroup(e),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(void 0===this._helpCommand&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,t){const n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.\nExpecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return this._exitCallback=e||(e=>{if("commander.executeSubCommandAsync"!==e.code)throw e}),this}_exit(e,t,n){this._exitCallback&&this._exitCallback(new p(e,t,n)),s.exit(e)}action(e){return this._actionHandler=t=>{const n=this.registeredArguments.length,i=t.slice(0,n);return this._storeOptionsAsProperties?i[n]=this:i[n]=this.opts(),i.push(this),e.apply(this,i)},this}createOption(e,t){return new m(e,t)}_callParseArg(e,t,n,i){try{return e.parseArg(t,n)}catch(e){if("commander.invalidArgument"===e.code){const t=`${i} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}}_registerOption(e){const t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){const n=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${n}'\n- already used by option '${t.flags}'`)}this._initOptionGroup(e),this.options.push(e)}_registerCommand(e){const t=e=>[e.name()].concat(e.aliases()),n=t(e).find(e=>this._findCommand(e));if(n){const i=t(this._findCommand(n)).join("|"),o=t(e).join("|");throw new Error(`cannot add command '${o}' as already have command '${i}'`)}this._initCommandGroup(e),this.commands.push(e)}addOption(e){this._registerOption(e);const t=e.name(),n=e.attributeName();if(e.negate){const t=e.long.replace(/^--no-/,"--");this._findOption(t)||this.setOptionValueWithSource(n,void 0===e.defaultValue||e.defaultValue,"default")}else void 0!==e.defaultValue&&this.setOptionValueWithSource(n,e.defaultValue,"default");const i=(t,i,o)=>{null==t&&void 0!==e.presetArg&&(t=e.presetArg);const a=this.getOptionValue(n);null!==t&&e.parseArg?t=this._callParseArg(e,t,a,i):null!==t&&e.variadic&&(t=e._collectValue(t,a)),null==t&&(t=!e.negate&&(!(!e.isBoolean()&&!e.optional)||"")),this.setOptionValueWithSource(n,t,o)};return this.on("option:"+t,t=>{const n=`error: option '${e.flags}' argument '${t}' is invalid.`;i(t,n,"cli")}),e.envVar&&this.on("optionEnv:"+t,t=>{const n=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;i(t,n,"env")}),this}_optionEx(e,t,n,i,o){if("object"==typeof t&&t instanceof m)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");const a=this.createOption(t,n);if(a.makeOptionMandatory(!!e.mandatory),"function"==typeof i)a.default(o).argParser(i);else if(i instanceof RegExp){const e=i;i=(t,n)=>{const i=e.exec(t);return i?i[0]:n},a.default(o).argParser(i)}else a.default(i);return this.addOption(a)}option(e,t,n,i){return this._optionEx({},e,t,n,i)}requiredOption(e,t,n,i){return this._optionEx({mandatory:!0},e,t,n,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,void 0)}setOptionValueWithSource(e,t,n){return this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;return this._getCommandAndAncestors().forEach(n=>{void 0!==n.getOptionValueSource(e)&&(t=n.getOptionValueSource(e))}),t}_prepareUserArgs(e,t){if(void 0!==e&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");if(t=t||{},void 0===e&&void 0===t.from){s.versions?.electron&&(t.from="electron");const e=s.execArgv??[];(e.includes("-e")||e.includes("--eval")||e.includes("-p")||e.includes("--print"))&&(t.from="eval")}let n;switch(void 0===e&&(e=s.argv),this.rawArgs=e.slice(),t.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":s.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;case"eval":n=e.slice(1);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,t){this._prepareForParse();const n=this._prepareUserArgs(e,t);return this._parseCommand([],n),this}async parseAsync(e,t){this._prepareForParse();const n=this._prepareUserArgs(e,t);return await this._parseCommand([],n),this}_prepareForParse(){null===this._savedState?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error("Can not call parse again when storeOptionsAsProperties is true.\n- either make a new Command for each call to parse, or stop storing options as properties");this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(e,t,n){if(!r.existsSync(e))throw new Error(`'${e}' does not exist\n - if '${n}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${t?`searched for local subcommand relative to directory '${t}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory"}`)}_executeSubCommand(e,t){t=t.slice();let n=!1;const i=[".js",".ts",".tsx",".mjs",".cjs"];function c(e,t){const n=a.resolve(e,t);if(r.existsSync(n))return n;if(i.includes(a.extname(t)))return;const o=i.find(e=>r.existsSync(`${n}${e}`));return o?`${n}${o}`:void 0}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let l,u=e._executableFile||`${this._name}-${e._name}`,d=this._executableDir||"";if(this._scriptPath){let e;try{e=r.realpathSync(this._scriptPath)}catch{e=this._scriptPath}d=a.resolve(a.dirname(e),d)}if(d){let t=c(d,u);if(!t&&!e._executableFile&&this._scriptPath){const n=a.basename(this._scriptPath,a.extname(this._scriptPath));n!==this._name&&(t=c(d,`${n}-${e._name}`))}u=t||u}n=i.includes(a.extname(u)),"win32"!==s.platform?n?(t.unshift(u),t=v(s.execArgv).concat(t),l=o.spawn(s.argv[0],t,{stdio:"inherit"})):l=o.spawn(u,t,{stdio:"inherit"}):(this._checkForMissingExecutable(u,d,e._name),t.unshift(u),t=v(s.execArgv).concat(t),l=o.spawn(s.execPath,t,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(e=>{s.on(e,()=>{!1===l.killed&&null===l.exitCode&&l.kill(e)})});const m=this._exitCallback;l.on("close",e=>{e=e??1,m?m(new p(e,"commander.executeSubCommandAsync","(close)")):s.exit(e)}),l.on("error",t=>{if("ENOENT"===t.code)this._checkForMissingExecutable(u,d,e._name);else if("EACCES"===t.code)throw new Error(`'${u}' not executable`);if(m){const e=new p(1,"commander.executeSubCommandAsync","(error)");e.nestedError=t,m(e)}else s.exit(1)}),this.runningCommand=l}_dispatchSubcommand(e,t,n){const i=this._findCommand(e);let o;return i||this.help({error:!0}),i._prepareForParse(),o=this._chainOrCallSubCommandHook(o,i,"preSubcommand"),o=this._chainOrCall(o,()=>{if(!i._executableHandler)return i._parseCommand(t,n);this._executeSubCommand(i,t.concat(n))}),o}_dispatchHelpCommand(e){e||this.help();const t=this._findCommand(e);return t&&!t._executableHandler&&t.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,t)=>{e.required&&null==this.args[t]&&this.missingArgument(e.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic||this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){const e=(e,t,n)=>{let i=t;if(null!==t&&e.parseArg){const o=`error: command-argument value '${t}' is invalid for argument '${e.name()}'.`;i=this._callParseArg(e,t,n,o)}return i};this._checkNumberOfArguments();const t=[];this.registeredArguments.forEach((n,i)=>{let o=n.defaultValue;n.variadic?i<this.args.length?(o=this.args.slice(i),n.parseArg&&(o=o.reduce((t,i)=>e(n,i,t),n.defaultValue))):void 0===o&&(o=[]):i<this.args.length&&(o=this.args[i],n.parseArg&&(o=e(n,o,n.defaultValue))),t[i]=o}),this.processedArgs=t}_chainOrCall(e,t){return e?.then&&"function"==typeof e.then?e.then(()=>t()):t()}_chainOrCallHooks(e,t){let n=e;const i=[];return this._getCommandAndAncestors().reverse().filter(e=>void 0!==e._lifeCycleHooks[t]).forEach(e=>{e._lifeCycleHooks[t].forEach(t=>{i.push({hookedCommand:e,callback:t})})}),"postAction"===t&&i.reverse(),i.forEach(e=>{n=this._chainOrCall(n,()=>e.callback(e.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,t,n){let i=e;return void 0!==this._lifeCycleHooks[n]&&this._lifeCycleHooks[n].forEach(e=>{i=this._chainOrCall(i,()=>e(this,t))}),i}_parseCommand(e,t){const n=this.parseOptions(t);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),t=n.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),t);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(t),this._dispatchSubcommand(this._defaultCommandName,e,t);!this.commands.length||0!==this.args.length||this._actionHandler||this._defaultCommandName||this.help({error:!0}),this._outputHelpIfRequested(n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();const i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},o=`command:${this.name()}`;if(this._actionHandler){let n;return i(),this._processArguments(),n=this._chainOrCallHooks(n,"preAction"),n=this._chainOrCall(n,()=>this._actionHandler(this.processedArgs)),this.parent&&(n=this._chainOrCall(n,()=>{this.parent.emit(o,e,t)})),n=this._chainOrCallHooks(n,"postAction"),n}if(this.parent?.listenerCount(o))i(),this._processArguments(),this.parent.emit(o,e,t);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,t);this.listenerCount("command:*")?this.emit("command:*",e,t):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(t=>t._name===e||t._aliases.includes(e))}_findOption(e){return this.options.find(t=>t.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(t=>{t.mandatory&&void 0===e.getOptionValue(t.attributeName())&&e.missingMandatoryOptionValue(t)})})}_checkForConflictingLocalOptions(){const e=this.options.filter(e=>{const t=e.attributeName();return void 0!==this.getOptionValue(t)&&"default"!==this.getOptionValueSource(t)});e.filter(e=>e.conflictsWith.length>0).forEach(t=>{const n=e.find(e=>t.conflictsWith.includes(e.attributeName()));n&&this._conflictingOption(t,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){const t=[],n=[];let i=t;function o(e){return e.length>1&&"-"===e[0]}const a=e=>!!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(e)&&!this._getCommandAndAncestors().some(e=>e.options.map(e=>e.short).some(e=>/^-\d$/.test(e)));let r=null,s=null,c=0;for(;c<e.length||s;){const l=s??e[c++];if(s=null,"--"===l){i===n&&i.push(l),i.push(...e.slice(c));break}if(!r||o(l)&&!a(l)){if(r=null,o(l)){const t=this._findOption(l);if(t){if(t.required){const n=e[c++];void 0===n&&this.optionMissingArgument(t),this.emit(`option:${t.name()}`,n)}else if(t.optional){let n=null;c<e.length&&(!o(e[c])||a(e[c]))&&(n=e[c++]),this.emit(`option:${t.name()}`,n)}else this.emit(`option:${t.name()}`);r=t.variadic?t:null;continue}}if(l.length>2&&"-"===l[0]&&"-"!==l[1]){const e=this._findOption(`-${l[1]}`);if(e){e.required||e.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${e.name()}`,l.slice(2)):(this.emit(`option:${e.name()}`),s=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){const e=l.indexOf("="),t=this._findOption(l.slice(0,e));if(t&&(t.required||t.optional)){this.emit(`option:${t.name()}`,l.slice(e+1));continue}}if(i!==t||!o(l)||0===this.commands.length&&a(l)||(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&0===t.length&&0===n.length){if(this._findCommand(l)){t.push(l),n.push(...e.slice(c));break}if(this._getHelpCommand()&&l===this._getHelpCommand().name()){t.push(l,...e.slice(c));break}if(this._defaultCommandName){n.push(l,...e.slice(c));break}}if(this._passThroughOptions){i.push(l,...e.slice(c));break}i.push(l)}else this.emit(`option:${r.name()}`,l)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){const e={},t=this.options.length;for(let n=0;n<t;n++){const t=this.options[n].attributeName();e[t]=t===this._versionOptionName?this._version:this[t]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,t)=>Object.assign(e,t.opts()),{})}error(e,t){this._outputConfiguration.outputError(`${e}\n`,this._outputConfiguration.writeErr),"string"==typeof this._showHelpAfterError?this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`):this._showHelpAfterError&&(this._outputConfiguration.writeErr("\n"),this.outputHelp({error:!0}));const n=t||{},i=n.exitCode||1,o=n.code||"commander.error";this._exit(i,o,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in s.env){const t=e.attributeName();(void 0===this.getOptionValue(t)||["default","config","env"].includes(this.getOptionValueSource(t)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,s.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){const e=new f(this.options),t=e=>void 0!==this.getOptionValue(e)&&!["default","implied"].includes(this.getOptionValueSource(e));this.options.filter(n=>void 0!==n.implied&&t(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(e=>{Object.keys(e.implied).filter(e=>!t(e)).forEach(t=>{this.setOptionValueWithSource(t,e.implied[t],"implied")})})}missingArgument(e){const t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){const t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){const t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){const n=e=>{const t=e.attributeName(),n=this.getOptionValue(t),i=this.options.find(e=>e.negate&&t===e.attributeName()),o=this.options.find(e=>!e.negate&&t===e.attributeName());return i&&(void 0===i.presetArg&&!1===n||void 0!==i.presetArg&&n===i.presetArg)?i:o||e},i=e=>{const t=n(e),i=t.attributeName();return"env"===this.getOptionValueSource(i)?`environment variable '${t.envVar}'`:`option '${t.flags}'`},o=`error: ${i(e)} cannot be used with ${i(t)}`;this.error(o,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let n=[],i=this;do{const e=i.createHelp().visibleOptions(i).filter(e=>e.long).map(e=>e.long);n=n.concat(e),i=i.parent}while(i&&!i._enablePositionalOptions);t=h(e,n)}const n=`error: unknown option '${e}'${t}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;const t=this.registeredArguments.length,n=1===t?"":"s",i=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${t} argument${n} but got ${e.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){const e=this.args[0];let t="";if(this._showSuggestionAfterError){const n=[];this.createHelp().visibleCommands(this).forEach(e=>{n.push(e.name()),e.alias()&&n.push(e.alias())}),t=h(e,n)}const n=`error: unknown command '${e}'${t}`;this.error(n,{code:"commander.unknownCommand"})}version(e,t,n){if(void 0===e)return this._version;this._version=e,t=t||"-V, --version",n=n||"output the version number";const i=this.createOption(t,n);return this._versionOptionName=i.attributeName(),this._registerOption(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}\n`),this._exit(0,"commander.version",e)}),this}description(e,t){return void 0===e&&void 0===t?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return void 0===e?this._summary:(this._summary=e,this)}alias(e){if(void 0===e)return this._aliases[0];let t=this;if(0!==this.commands.length&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");const n=this.parent?._findCommand(e);if(n){const t=[n.name()].concat(n.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${t}'`)}return t._aliases.push(e),this}aliases(e){return void 0===e?this._aliases:(e.forEach(e=>this.alias(e)),this)}usage(e){if(void 0===e){if(this._usage)return this._usage;const e=this.registeredArguments.map(e=>l(e));return[].concat(this.options.length||null!==this._helpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?e:[]).join(" ")}return this._usage=e,this}name(e){return void 0===e?this._name:(this._name=e,this)}helpGroup(e){return void 0===e?this._helpGroupHeading??"":(this._helpGroupHeading=e,this)}commandsGroup(e){return void 0===e?this._defaultCommandGroup??"":(this._defaultCommandGroup=e,this)}optionsGroup(e){return void 0===e?this._defaultOptionGroup??"":(this._defaultOptionGroup=e,this)}_initOptionGroup(e){this._defaultOptionGroup&&!e.helpGroupHeading&&e.helpGroup(this._defaultOptionGroup)}_initCommandGroup(e){this._defaultCommandGroup&&!e.helpGroup()&&e.helpGroup(this._defaultCommandGroup)}nameFromFilename(e){return this._name=a.basename(e,a.extname(e)),this}executableDir(e){return void 0===e?this._executableDir:(this._executableDir=e,this)}helpInformation(e){const t=this.createHelp(),n=this._getOutputContext(e);t.prepareContext({error:n.error,helpWidth:n.helpWidth,outputHasColors:n.hasColors});const i=t.formatHelp(this,t);return n.hasColors?i:this._outputConfiguration.stripColor(i)}_getOutputContext(e){const t=!!(e=e||{}).error;let n,i,o;return t?(n=e=>this._outputConfiguration.writeErr(e),i=this._outputConfiguration.getErrHasColors(),o=this._outputConfiguration.getErrHelpWidth()):(n=e=>this._outputConfiguration.writeOut(e),i=this._outputConfiguration.getOutHasColors(),o=this._outputConfiguration.getOutHelpWidth()),{error:t,write:e=>(i||(e=this._outputConfiguration.stripColor(e)),n(e)),hasColors:i,helpWidth:o}}outputHelp(e){let t;"function"==typeof e&&(t=e,e=void 0);const n=this._getOutputContext(e),i={error:n.error,write:n.write,command:this};this._getCommandAndAncestors().reverse().forEach(e=>e.emit("beforeAllHelp",i)),this.emit("beforeHelp",i);let o=this.helpInformation({error:n.error});if(t&&(o=t(o),"string"!=typeof o&&!Buffer.isBuffer(o)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(o),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",i),this._getCommandAndAncestors().forEach(e=>e.emit("afterAllHelp",i))}helpOption(e,t){return"boolean"==typeof e?(e?(null===this._helpOption&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(e??"-h, --help",t??"display help for command"),(e||t)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return void 0===this._helpOption&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this._initOptionGroup(e),this}help(e){this.outputHelp(e);let t=Number(s.exitCode??0);0===t&&e&&"function"!=typeof e&&e.error&&(t=1),this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){const n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${n.join("', '")}'`);const i=`${e}Help`;return this.on(i,e=>{let n;n="function"==typeof t?t({error:e.error,command:e.command}):t,n&&e.write(`${n}\n`)}),this}_outputHelpIfRequested(e){const t=this._getHelpOption();t&&e.find(e=>t.is(e))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}}function v(e){return e.map(e=>{if(!e.startsWith("--inspect"))return e;let t,n,i="127.0.0.1",o="9229";return null!==(n=e.match(/^(--inspect(-brk)?)$/))?t=n[1]:null!==(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))?(t=n[1],/^\d+$/.test(n[3])?o=n[3]:i=n[3]):null!==(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))&&(t=n[1],i=n[3],o=n[4]),t&&"0"!==o?`${t}=${i}:${parseInt(o)+1}`:e})}function y(){return!s.env.NO_COLOR&&"0"!==s.env.FORCE_COLOR&&"false"!==s.env.FORCE_COLOR&&(!(!s.env.FORCE_COLOR&&void 0===s.env.CLICOLOR_FORCE)||void 0)}t.Command=g,t.useColor=y},3666(e,t){class n extends Error{constructor(e,t,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}}t.CommanderError=n,t.InvalidArgumentError=class extends n{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}},3693(e,t,n){const{humanReadableArgName:i}=n(9297);function o(e){return e.replace(/\x1b\[\d*(;\d*)*m/g,"")}t.Help=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){const t=e.commands.filter(e=>!e._hidden),n=e._getHelpCommand();return n&&!n._hidden&&t.push(n),this.sortSubcommands&&t.sort((e,t)=>e.name().localeCompare(t.name())),t}compareOptions(e,t){const n=e=>e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"");return n(e).localeCompare(n(t))}visibleOptions(e){const t=e.options.filter(e=>!e.hidden),n=e._getHelpOption();if(n&&!n.hidden){const i=n.short&&e._findOption(n.short),o=n.long&&e._findOption(n.long);i||o?n.long&&!o?t.push(e.createOption(n.long,n.description)):n.short&&!i&&t.push(e.createOption(n.short,n.description)):t.push(n)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];const t=[];for(let n=e.parent;n;n=n.parent){const e=n.options.filter(e=>!e.hidden);t.push(...e)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(t=>{t.description=t.description||e._argsDescription[t.name()]||""}),e.registeredArguments.find(e=>e.description)?e.registeredArguments:[]}subcommandTerm(e){const t=e.registeredArguments.map(e=>i(e)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleSubcommandTerm(t.subcommandTerm(n)))),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleArgumentTerm(t.argumentTerm(n)))),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+"|"+e._aliases[0]);let n="";for(let t=e.parent;t;t=t.parent)n=t.name()+" "+n;return n+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){const t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(", ")}`),void 0!==e.defaultValue&&(e.required||e.optional||e.isBoolean()&&"boolean"==typeof e.defaultValue)&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),void 0!==e.presetArg&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),void 0!==e.envVar&&t.push(`env: ${e.envVar}`),t.length>0){const n=`(${t.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}argumentDescription(e){const t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(", ")}`),void 0!==e.defaultValue&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){const n=`(${t.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatItemList(e,t,n){return 0===t.length?[]:[n.styleTitle(e),...t,""]}groupItems(e,t,n){const i=new Map;return e.forEach(e=>{const t=n(e);i.has(t)||i.set(t,[])}),t.forEach(e=>{const t=n(e);i.has(t)||i.set(t,[]),i.get(t).push(e)}),i}formatHelp(e,t){const n=t.padWidth(e,t),i=t.helpWidth??80;function o(e,i){return t.formatItem(e,n,i,t)}let a=[`${t.styleTitle("Usage:")} ${t.styleUsage(t.commandUsage(e))}`,""];const r=t.commandDescription(e);r.length>0&&(a=a.concat([t.boxWrap(t.styleCommandDescription(r),i),""]));const s=t.visibleArguments(e).map(e=>o(t.styleArgumentTerm(t.argumentTerm(e)),t.styleArgumentDescription(t.argumentDescription(e))));if(a=a.concat(this.formatItemList("Arguments:",s,t)),this.groupItems(e.options,t.visibleOptions(e),e=>e.helpGroupHeading??"Options:").forEach((e,n)=>{const i=e.map(e=>o(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e))));a=a.concat(this.formatItemList(n,i,t))}),t.showGlobalOptions){const n=t.visibleGlobalOptions(e).map(e=>o(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e))));a=a.concat(this.formatItemList("Global Options:",n,t))}return this.groupItems(e.commands,t.visibleCommands(e),e=>e.helpGroup()||"Commands:").forEach((e,n)=>{const i=e.map(e=>o(t.styleSubcommandTerm(t.subcommandTerm(e)),t.styleSubcommandDescription(t.subcommandDescription(e))));a=a.concat(this.formatItemList(n,i,t))}),a.join("\n")}displayWidth(e){return o(e).length}styleTitle(e){return e}styleUsage(e){return e.split(" ").map(e=>"[options]"===e?this.styleOptionText(e):"[command]"===e?this.styleSubcommandText(e):"["===e[0]||"<"===e[0]?this.styleArgumentText(e):this.styleCommandText(e)).join(" ")}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(" ").map(e=>"[options]"===e?this.styleOptionText(e):"["===e[0]||"<"===e[0]?this.styleArgumentText(e):this.styleSubcommandText(e)).join(" ")}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,t,n,i){const o=" ".repeat(2);if(!n)return o+e;const a=e.padEnd(t+e.length-i.displayWidth(e)),r=(this.helpWidth??80)-t-2-2;let s;return s=r<this.minWidthToWrap||i.preformatted(n)?n:i.boxWrap(n,r).replace(/\n/g,"\n"+" ".repeat(t+2)),o+a+" ".repeat(2)+s.replace(/\n/g,`\n${o}`)}boxWrap(e,t){if(t<this.minWidthToWrap)return e;const n=e.split(/\r\n|\n/),i=/[\s]*[^\s]+/g,o=[];return n.forEach(e=>{const n=e.match(i);if(null===n)return void o.push("");let a=[n.shift()],r=this.displayWidth(a[0]);n.forEach(e=>{const n=this.displayWidth(e);if(r+n<=t)return a.push(e),void(r+=n);o.push(a.join(""));const i=e.trimStart();a=[i],r=this.displayWidth(i)}),o.push(a.join(""))}),o.join("\n")}},t.stripColor=o},5019(e,t,n){const{InvalidArgumentError:i}=n(3666);function o(e){return e.split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}t.Option=class{constructor(e,t){this.flags=e,this.description=t||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;const n=function(e){let t,n;const i=/^-[^-]$/,o=/^--[^-]/,a=e.split(/[ |,]+/).concat("guard");if(i.test(a[0])&&(t=a.shift()),o.test(a[0])&&(n=a.shift()),!t&&i.test(a[0])&&(t=a.shift()),!t&&o.test(a[0])&&(t=n,n=a.shift()),a[0].startsWith("-")){const t=a[0],n=`option creation failed due to '${t}' in option flags '${e}'`;if(/^-[^-][^-]/.test(t))throw new Error(`${n}\n- a short flag is a single dash and a single character\n - either use a single dash and a single character (for a short flag)\n - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(i.test(t))throw new Error(`${n}\n- too many short flags`);if(o.test(t))throw new Error(`${n}\n- too many long flags`);throw new Error(`${n}\n- unrecognised flag format`)}if(void 0===t&&void 0===n)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:n}}(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let t=e;return"string"==typeof e&&(t={[e]:!0}),this.implied=Object.assign(this.implied||{},t),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_collectValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?(t.push(e),t):[e]}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new i(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(e,t):e},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?o(this.name().replace(/^no-/,"")):o(this.name())}helpGroup(e){return this.helpGroupHeading=e,this}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},t.DualOptions=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(e=>{e.negate?this.negativeOptions.set(e.attributeName(),e):this.positiveOptions.set(e.attributeName(),e)}),this.negativeOptions.forEach((e,t)=>{this.positiveOptions.has(t)&&this.dualOptions.add(t)})}valueFromOption(e,t){const n=t.attributeName();if(!this.dualOptions.has(n))return!0;const i=this.negativeOptions.get(n).presetArg,o=void 0!==i&&i;return t.negate===(o===e)}}},7369(e,t){t.suggestSimilar=function(e,t){if(!t||0===t.length)return"";t=Array.from(new Set(t));const n=e.startsWith("--");n&&(e=e.slice(2),t=t.map(e=>e.slice(2)));let i=[],o=3;return t.forEach(t=>{if(t.length<=1)return;const n=function(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);const n=[];for(let t=0;t<=e.length;t++)n[t]=[t];for(let e=0;e<=t.length;e++)n[0][e]=e;for(let i=1;i<=t.length;i++)for(let o=1;o<=e.length;o++){let a=1;a=e[o-1]===t[i-1]?0:1,n[o][i]=Math.min(n[o-1][i]+1,n[o][i-1]+1,n[o-1][i-1]+a),o>1&&i>1&&e[o-1]===t[i-2]&&e[o-2]===t[i-1]&&(n[o][i]=Math.min(n[o][i],n[o-2][i-2]+1))}return n[e.length][t.length]}(e,t),a=Math.max(e.length,t.length);(a-n)/a>.4&&(n<o?(o=n,i=[t]):n===o&&i.push(t))}),i.sort((e,t)=>e.localeCompare(t)),n&&(i=i.map(e=>`--${e}`)),i.length>1?`\n(Did you mean one of ${i.join(", ")}?)`:1===i.length?`\n(Did you mean ${i[0]}?)`:""}},4603(e){(()=>{var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{XMLBuilder:()=>Ie,XMLParser:()=>ge,XMLValidator:()=>Ne});const i=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",o=new RegExp("^["+i+"]["+i+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function a(e,t){const n=[];let i=t.exec(e);for(;i;){const o=[];o.startIndex=t.lastIndex-i[0].length;const a=i.length;for(let e=0;e<a;e++)o.push(i[e]);n.push(o),i=t.exec(e)}return n}const r=function(e){return!(null==o.exec(e))},s=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],c=["__proto__","constructor","prototype"],l={allowBooleanAttributes:!1,unpairedTags:[]};function p(e,t){t=Object.assign({},l,t);const n=[];let i=!1,o=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let a=0;a<e.length;a++)if("<"===e[a]&&"?"===e[a+1]){if(a+=2,a=d(e,a),a.err)return a}else{if("<"!==e[a]){if(u(e[a]))continue;return x("InvalidChar","char '"+e[a]+"' is not expected.",C(e,a))}{let r=a;if(a++,"!"===e[a]){a=m(e,a);continue}{let s=!1;"/"===e[a]&&(s=!0,a++);let c="";for(;a<e.length&&">"!==e[a]&&" "!==e[a]&&"\t"!==e[a]&&"\n"!==e[a]&&"\r"!==e[a];a++)c+=e[a];if(c=c.trim(),"/"===c[c.length-1]&&(c=c.substring(0,c.length-1),a--),!S(c)){let t;return t=0===c.trim().length?"Invalid space after '<'.":"Tag '"+c+"' is an invalid name.",x("InvalidTag",t,C(e,a))}const l=g(e,a);if(!1===l)return x("InvalidAttr","Attributes for '"+c+"' have open quote.",C(e,a));let p=l.value;if(a=l.index,"/"===p[p.length-1]){const n=a-p.length;p=p.substring(0,p.length-1);const o=y(p,t);if(!0!==o)return x(o.err.code,o.err.msg,C(e,n+o.err.line));i=!0}else if(s){if(!l.tagClosed)return x("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",C(e,a));if(p.trim().length>0)return x("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",C(e,r));if(0===n.length)return x("InvalidTag","Closing tag '"+c+"' has not been opened.",C(e,r));{const t=n.pop();if(c!==t.tagName){let n=C(e,t.tagStartPos);return x("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+c+"'.",C(e,r))}0==n.length&&(o=!0)}}else{const s=y(p,t);if(!0!==s)return x(s.err.code,s.err.msg,C(e,a-p.length+s.err.line));if(!0===o)return x("InvalidXml","Multiple possible root nodes found.",C(e,a));-1!==t.unpairedTags.indexOf(c)||n.push({tagName:c,tagStartPos:r}),i=!0}for(a++;a<e.length;a++)if("<"===e[a]){if("!"===e[a+1]){a++,a=m(e,a);continue}if("?"!==e[a+1])break;if(a=d(e,++a),a.err)return a}else if("&"===e[a]){const t=b(e,a);if(-1==t)return x("InvalidChar","char '&' is not expected.",C(e,a));a=t}else if(!0===o&&!u(e[a]))return x("InvalidXml","Extra text at the end",C(e,a));"<"===e[a]&&a--}}}return i?1==n.length?x("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",C(e,n[0].tagStartPos)):!(n.length>0)||x("InvalidXml","Invalid '"+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):x("InvalidXml","Start tag expected.",1)}function u(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function d(e,t){const n=t;for(;t<e.length;t++)if("?"==e[t]||" "==e[t]){const i=e.substr(n,t-n);if(t>5&&"xml"===i)return x("InvalidXml","XML declaration allowed only at the start of the document.",C(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}continue}return t}function m(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}const f='"',h="'";function g(e,t){let n="",i="",o=!1;for(;t<e.length;t++){if(e[t]===f||e[t]===h)""===i?i=e[t]:i!==e[t]||(i="");else if(">"===e[t]&&""===i){o=!0;break}n+=e[t]}return""===i&&{value:n,index:t,tagClosed:o}}const v=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function y(e,t){const n=a(e,v),i={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return x("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",_(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return x("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",_(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return x("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",_(n[e]));const o=n[e][2];if(!w(o))return x("InvalidAttr","Attribute '"+o+"' is an invalid name.",_(n[e]));if(Object.prototype.hasOwnProperty.call(i,o))return x("InvalidAttr","Attribute '"+o+"' is repeated.",_(n[e]));i[o]=1}return!0}function b(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function x(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function w(e){return r(e)}function S(e){return r(e)}function C(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function _(e){return e.startIndex+e[1].length}const k=e=>s.includes(e)?"__"+e:e,E={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:k};function T(e,t){if("string"!=typeof e)return;const n=e.toLowerCase();if(s.some(e=>n===e.toLowerCase()))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);if(c.some(e=>n===e.toLowerCase()))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function j(e){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:"object"==typeof e&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??100),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}:j(!0)}const O=function(e){const t=Object.assign({},E,e),n=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(const{value:e,name:t}of n)e&&T(e,t);return null===t.onDangerousProperty&&(t.onDangerousProperty=k),t.processEntities=j(t.processEntities),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e)),t};let A;A="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class I{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][A]={startIndex:t})}static getMetaDataSymbol(){return A}}class N{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){const n=Object.create(null);let i=0;if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let o=1,a=!1,r=!1,s="";for(;t<e.length;t++)if("<"!==e[t]||r)if(">"===e[t]){if(r?"-"===e[t-1]&&"-"===e[t-2]&&(r=!1,o--):o--,0===o)break}else"["===e[t]?a=!0:s+=e[t];else{if(a&&R(e,"!ENTITY",t)){let o,a;if(t+=7,[o,a,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),-1===a.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&i>=this.options.maxEntityCount)throw new Error(`Entity count (${i+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);const e=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n[o]={regx:RegExp(`&${e};`,"g"),val:a},i++}}else if(a&&R(e,"!ELEMENT",t)){t+=8;const{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&R(e,"!ATTLIST",t))t+=8;else if(a&&R(e,"!NOTATION",t)){t+=9;const{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else{if(!R(e,"!--",t))throw new Error("Invalid DOCTYPE");r=!0}o++,s=""}if(0!==o)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}readEntityExp(e,t){const n=t=P(e,t);for(;t<e.length&&!/\s/.test(e[t])&&'"'!==e[t]&&"'"!==e[t];)t++;let i=e.substring(n,t);if(L(i),t=P(e,t),!this.suppressValidationErr){if("SYSTEM"===e.substring(t,t+6).toUpperCase())throw new Error("External entities are not supported");if("%"===e[t])throw new Error("Parameter entities are not supported")}let o="";if([t,o]=this.readIdentifierVal(e,t,"entity"),!1!==this.options.enabled&&null!=this.options.maxEntitySize&&o.length>this.options.maxEntitySize)throw new Error(`Entity "${i}" size (${o.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[i,o,--t]}readNotationExp(e,t){const n=t=P(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);!this.suppressValidationErr&&L(i),t=P(e,t);const o=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==o&&"PUBLIC"!==o)throw new Error(`Expected SYSTEM or PUBLIC, found "${o}"`);t+=o.length,t=P(e,t);let a=null,r=null;if("PUBLIC"===o)[t,a]=this.readIdentifierVal(e,t,"publicIdentifier"),'"'!==e[t=P(e,t)]&&"'"!==e[t]||([t,r]=this.readIdentifierVal(e,t,"systemIdentifier"));else if("SYSTEM"===o&&([t,r]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!r))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:i,publicIdentifier:a,systemIdentifier:r,index:--t}}readIdentifierVal(e,t,n){let i="";const o=e[t];if('"'!==o&&"'"!==o)throw new Error(`Expected quoted string, found "${o}"`);const a=++t;for(;t<e.length&&e[t]!==o;)t++;if(i=e.substring(a,t),e[t]!==o)throw new Error(`Unterminated ${n} value`);return[++t,i]}readElementExp(e,t){const n=t=P(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);if(!this.suppressValidationErr&&!r(i))throw new Error(`Invalid element name: "${i}"`);let o="";if("E"===e[t=P(e,t)]&&R(e,"MPTY",t))t+=4;else if("A"===e[t]&&R(e,"NY",t))t+=2;else if("("===e[t]){const n=++t;for(;t<e.length&&")"!==e[t];)t++;if(o=e.substring(n,t),")"!==e[t])throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:i,contentModel:o.trim(),index:t}}readAttlistExp(e,t){let n=t=P(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);for(L(i),n=t=P(e,t);t<e.length&&!/\s/.test(e[t]);)t++;let o=e.substring(n,t);if(!L(o))throw new Error(`Invalid attribute name: "${o}"`);t=P(e,t);let a="";if("NOTATION"===e.substring(t,t+8).toUpperCase()){if(a="NOTATION","("!==e[t=P(e,t+=8)])throw new Error(`Expected '(', found "${e[t]}"`);t++;let n=[];for(;t<e.length&&")"!==e[t];){const i=t;for(;t<e.length&&"|"!==e[t]&&")"!==e[t];)t++;let o=e.substring(i,t);if(o=o.trim(),!L(o))throw new Error(`Invalid notation name: "${o}"`);n.push(o),"|"===e[t]&&(t++,t=P(e,t))}if(")"!==e[t])throw new Error("Unterminated list of notations");t++,a+=" ("+n.join("|")+")"}else{const n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;a+=e.substring(n,t);const i=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!i.includes(a.toUpperCase()))throw new Error(`Invalid attribute type: "${a}"`)}t=P(e,t);let r="";return"#REQUIRED"===e.substring(t,t+8).toUpperCase()?(r="#REQUIRED",t+=8):"#IMPLIED"===e.substring(t,t+7).toUpperCase()?(r="#IMPLIED",t+=7):[t,r]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:i,attributeName:o,attributeType:a,defaultValue:r,index:t}}}const P=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function R(e,t,n){for(let i=0;i<t.length;i++)if(t[i]!==e[n+i+1])return!1;return!0}function L(e){if(r(e))return e;throw new Error(`Invalid entity name ${e}`)}const $=/^[-+]?0x[a-fA-F0-9]+$/,D=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,F={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"},M=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/,B=new Set(["push","pop","reset","updateCurrent","restore"]);class q{constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[]}push(e,t=null,n=null){this.path.length>0&&(this.path[this.path.length-1].values=void 0);const i=this.path.length;this.siblingStacks[i]||(this.siblingStacks[i]=new Map);const o=this.siblingStacks[i],a=n?`${n}:${e}`:e,r=o.get(a)||0;let s=0;for(const e of o.values())s+=e;o.set(a,r+1);const c={tag:e,position:s,counter:r};null!=n&&(c.namespace=n),null!=t&&(c.values=t),this.path.push(c)}pop(){if(0===this.path.length)return;const e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){const t=this.path[this.path.length-1];null!=e&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(0===this.path.length)return;const t=this.path[this.path.length-1];return t.values?.[e]}hasAttr(e){if(0===this.path.length)return!1;const t=this.path[this.path.length-1];return void 0!==t.values&&e in t.values}getPosition(){return 0===this.path.length?-1:this.path[this.path.length-1].position??0}getCounter(){return 0===this.path.length?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){const n=e||this.separator;return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this.path=[],this.siblingStacks=[]}matches(e){const t=e.segments;return 0!==t.length&&(e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t))}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t<e.length;t++){const n=e[t],i=this.path[t],o=t===this.path.length-1;if(!this._matchSegment(n,i,o))return!1}return!0}_matchWithDeepWildcard(e){let t=this.path.length-1,n=e.length-1;for(;n>=0&&t>=0;){const i=e[n];if("deep-wildcard"===i.type){if(n--,n<0)return!0;const i=e[n];let o=!1;for(let e=t;e>=0;e--){const a=e===this.path.length-1;if(this._matchSegment(i,this.path[e],a)){t=e-1,n--,o=!0;break}}if(!o)return!1}else{const e=t===this.path.length-1;if(!this._matchSegment(i,this.path[t],e))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if("*"!==e.tag&&e.tag!==t.tag)return!1;if(void 0!==e.namespace&&"*"!==e.namespace&&e.namespace!==t.namespace)return!1;if(void 0!==e.attrName){if(!n)return!1;if(!t.values||!(e.attrName in t.values))return!1;if(void 0!==e.attrValue){const n=t.values[e.attrName];if(String(n)!==String(e.attrValue))return!1}}if(void 0!==e.position){if(!n)return!1;const i=t.counter??0;if("first"===e.position&&0!==i)return!1;if("odd"===e.position&&i%2!=1)return!1;if("even"===e.position&&i%2!=0)return!1;if("nth"===e.position&&i!==e.positionValue)return!1}return!0}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return new Proxy(this,{get(e,t,n){if(B.has(t))return()=>{throw new TypeError(`Cannot call '${t}' on a read-only Matcher. Obtain a writable instance to mutate state.`)};const i=Reflect.get(e,t,n);return"path"===t||"siblingStacks"===t?Object.freeze(Array.isArray(i)?i.map(e=>e instanceof Map?Object.freeze(new Map(e)):Object.freeze({...e})):i):"function"==typeof i?i.bind(e):i},set(e,t){throw new TypeError(`Cannot set property '${String(t)}' on a read-only Matcher.`)},deleteProperty(e,t){throw new TypeError(`Cannot delete property '${String(t)}' from a read-only Matcher.`)}})}}class z{constructor(e,t={}){this.pattern=e,this.separator=t.separator||".",this.segments=this._parse(e),this._hasDeepWildcard=this.segments.some(e=>"deep-wildcard"===e.type),this._hasAttributeCondition=this.segments.some(e=>void 0!==e.attrName),this._hasPositionSelector=this.segments.some(e=>void 0!==e.position)}_parse(e){const t=[];let n=0,i="";for(;n<e.length;)e[n]===this.separator?n+1<e.length&&e[n+1]===this.separator?(i.trim()&&(t.push(this._parseSegment(i.trim())),i=""),t.push({type:"deep-wildcard"}),n+=2):(i.trim()&&t.push(this._parseSegment(i.trim())),i="",n++):(i+=e[n],n++);return i.trim()&&t.push(this._parseSegment(i.trim())),t}_parseSegment(e){const t={type:"tag"};let n=null,i=e;const o=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(o&&(i=o[1]+o[3],o[2])){const e=o[2].slice(1,-1);e&&(n=e)}let a,r,s=i;if(i.includes("::")){const t=i.indexOf("::");if(a=i.substring(0,t).trim(),s=i.substring(t+2).trim(),!a)throw new Error(`Invalid namespace in pattern: ${e}`)}let c=null;if(s.includes(":")){const e=s.lastIndexOf(":"),t=s.substring(0,e).trim(),n=s.substring(e+1).trim();["first","last","odd","even"].includes(n)||/^nth\(\d+\)$/.test(n)?(r=t,c=n):r=s}else r=s;if(!r)throw new Error(`Invalid segment pattern: ${e}`);if(t.tag=r,a&&(t.namespace=a),n)if(n.includes("=")){const e=n.indexOf("=");t.attrName=n.substring(0,e).trim(),t.attrValue=n.substring(e+1).trim()}else t.attrName=n.trim();if(c){const e=c.match(/^nth\((\d+)\)$/);e?(t.position="nth",t.positionValue=parseInt(e[1],10)):t.position=c}return t}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}function U(e,t){if(!e)return{};const n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};const i={};for(const e in n)e.startsWith(t.attributeNamePrefix)?i[e.substring(t.attributeNamePrefix.length)]=n[e]:i[e]=n[e];return i}function W(e){if(!e||"string"!=typeof e)return;const t=e.indexOf(":");if(-1!==t&&t>0){const n=e.substring(0,t);if("xmlns"!==n)return n}}class V{constructor(e){var t;if(this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>re(t,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>re(t,16,"&#x")}},this.addExternalEntities=H,this.parseXml=K,this.parseTextData=G,this.resolveNameSpace=J,this.buildAttributesMap=Y,this.isItStopNode=te,this.replaceEntitiesValue=Q,this.readStopNodeData=oe,this.saveTextToParentTag=ee,this.addChild=Z,this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const n of t){if("string"==typeof n&&e===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0,this.matcher=new q,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodeExpressions=[];for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];"string"==typeof t?this.stopNodeExpressions.push(new z(t)):t instanceof z&&this.stopNodeExpressions.push(t)}}}}function H(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const i=t[n],o=i.replace(/[.\-+*:]/g,"\\.");this.lastEntities[i]={regex:new RegExp("&"+o+";","g"),val:e[i]}}}function G(e,t,n,i,o,a,r){if(void 0!==e&&(this.options.trimValues&&!i&&(e=e.trim()),e.length>0)){r||(e=this.replaceEntitiesValue(e,t,n));const i=this.options.jPath?n.toString():n,s=this.options.tagValueProcessor(t,e,i,o,a);return null==s?e:typeof s!=typeof e||s!==e?s:this.options.trimValues||e.trim()===e?ae(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function J(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const X=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function Y(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const i=a(e,X),o=i.length,r={},s={};for(let e=0;e<o;e++){const t=this.resolveNameSpace(i[e][1]),o=i[e][4];if(t.length&&void 0!==o){let e=o;this.options.trimValues&&(e=e.trim()),e=this.replaceEntitiesValue(e,n,this.readonlyMatcher),s[t]=e}}Object.keys(s).length>0&&"object"==typeof t&&t.updateCurrent&&t.updateCurrent(s);for(let e=0;e<o;e++){const o=this.resolveNameSpace(i[e][1]),a=this.options.jPath?t.toString():this.readonlyMatcher;if(this.ignoreAttributesFn(o,a))continue;let s=i[e][4],c=this.options.attributeNamePrefix+o;if(o.length)if(this.options.transformAttributeName&&(c=this.options.transformAttributeName(c)),c=ce(c,this.options),void 0!==s){this.options.trimValues&&(s=s.trim()),s=this.replaceEntitiesValue(s,n,this.readonlyMatcher);const e=this.options.jPath?t.toString():this.readonlyMatcher,i=this.options.attributeValueProcessor(o,s,e);r[c]=null==i?s:typeof i!=typeof s||i!==s?i:ae(s,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(r[c]=!0)}if(!Object.keys(r).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=r,e}return r}}const K=function(e){e=e.replace(/\r\n?/g,"\n");const t=new I("!xml");let n=t,i="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;const o=new N(this.options.processEntities);for(let a=0;a<e.length;a++)if("<"===e[a])if("/"===e[a+1]){const t=ne(e,">",a,"Closing Tag is not closed.");let o=e.substring(a+2,t).trim();if(this.options.removeNSPrefix){const e=o.indexOf(":");-1!==e&&(o=o.substr(e+1))}o=se(this.options.transformTagName,o,"",this.options).tagName,n&&(i=this.saveTextToParentTag(i,n,this.readonlyMatcher));const r=this.matcher.getCurrentTag();if(o&&-1!==this.options.unpairedTags.indexOf(o))throw new Error(`Unpaired tag can not be used as closing tag: </${o}>`);r&&-1!==this.options.unpairedTags.indexOf(r)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),i="",a=t}else if("?"===e[a+1]){let t=ie(e,a,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,n,this.readonlyMatcher),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new I(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName)),this.addChild(n,e,this.readonlyMatcher,a)}a=t.closeIndex+1}else if("!--"===e.substr(a+1,3)){const t=ne(e,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){const o=e.substring(a+4,t-2);i=this.saveTextToParentTag(i,n,this.readonlyMatcher),n.add(this.options.commentPropName,[{[this.options.textNodeName]:o}])}a=t}else if("!D"===e.substr(a+1,2)){const t=o.readDocType(e,a);this.docTypeEntities=t.entities,a=t.i}else if("!["===e.substr(a+1,2)){const t=ne(e,"]]>",a,"CDATA is not closed.")-2,o=e.substring(a+9,t);i=this.saveTextToParentTag(i,n,this.readonlyMatcher);let r=this.parseTextData(o,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);null==r&&(r=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:o}]):n.add(this.options.textNodeName,r),a=t+2}else{let o=ie(e,a,this.options.removeNSPrefix);if(!o){const t=e.substring(Math.max(0,a-50),Math.min(e.length,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${t}"`)}let r=o.tagName;const s=o.rawTagName;let c=o.tagExp,l=o.attrExpPresent,p=o.closeIndex;if(({tagName:r,tagExp:c}=se(this.options.transformTagName,r,c,this.options)),this.options.strictReservedNames&&(r===this.options.commentPropName||r===this.options.cdataPropName||r===this.options.textNodeName||r===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${r}`);n&&i&&"!xml"!==n.tagname&&(i=this.saveTextToParentTag(i,n,this.readonlyMatcher,!1));const u=n;u&&-1!==this.options.unpairedTags.indexOf(u.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let d=!1;c.length>0&&c.lastIndexOf("/")===c.length-1&&(d=!0,"/"===r[r.length-1]?(r=r.substr(0,r.length-1),c=r):c=c.substr(0,c.length-1),l=r!==c);let m,f=null,h={};m=W(s),r!==t.tagname&&this.matcher.push(r,{},m),r!==c&&l&&(f=this.buildAttributesMap(c,this.matcher,r),f&&(h=U(f,this.options))),r!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));const g=a;if(this.isCurrentNodeStopNode){let t="";if(d)a=o.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(r))a=o.closeIndex;else{const n=this.readStopNodeData(e,s,p+1);if(!n)throw new Error(`Unexpected end of ${s}`);a=n.i,t=n.tagContent}const i=new I(r);f&&(i[":@"]=f),i.add(this.options.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,i,this.readonlyMatcher,g)}else{if(d){({tagName:r,tagExp:c}=se(this.options.transformTagName,r,c,this.options));const e=new I(r);f&&(e[":@"]=f),this.addChild(n,e,this.readonlyMatcher,g),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(-1!==this.options.unpairedTags.indexOf(r)){const e=new I(r);f&&(e[":@"]=f),this.addChild(n,e,this.readonlyMatcher,g),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=o.closeIndex;continue}{const e=new I(r);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(n),f&&(e[":@"]=f),this.addChild(n,e,this.readonlyMatcher,g),n=e}}i="",a=p}}else i+=e[a];return t.child};function Z(e,t,n,i){this.options.captureMetaData||(i=void 0);const o=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,o,t[":@"]);!1===a||("string"==typeof a?(t.tagname=a,e.addChild(t,i)):e.addChild(t,i))}function Q(e,t,n){const i=this.options.processEntities;if(!i||!i.enabled)return e;if(i.allowedTags){const o=this.options.jPath?n.toString():n;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(t):i.allowedTags(t,o)))return e}if(i.tagFilter){const o=this.options.jPath?n.toString():n;if(!i.tagFilter(t,o))return e}for(const t of Object.keys(this.docTypeEntities)){const n=this.docTypeEntities[t],o=e.match(n.regx);if(o){if(this.entityExpansionCount+=o.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${i.maxTotalExpansions}`);const t=e.length;if(e=e.replace(n.regx,n.val),i.maxExpandedLength&&(this.currentExpandedLength+=e.length-t,this.currentExpandedLength>i.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${i.maxExpandedLength}`)}}for(const t of Object.keys(this.lastEntities)){const n=this.lastEntities[t],o=e.match(n.regex);if(o&&(this.entityExpansionCount+=o.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${i.maxTotalExpansions}`);e=e.replace(n.regex,n.val)}if(-1===e.indexOf("&"))return e;if(this.options.htmlEntities)for(const t of Object.keys(this.htmlEntities)){const n=this.htmlEntities[t],o=e.match(n.regex);if(o&&(this.entityExpansionCount+=o.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${i.maxTotalExpansions}`);e=e.replace(n.regex,n.val)}return e.replace(this.ampEntity.regex,this.ampEntity.val)}function ee(e,t,n,i){return e&&(void 0===i&&(i=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,i))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function te(e,t){if(!e||0===e.length)return!1;for(let n=0;n<e.length;n++)if(t.matches(e[n]))return!0;return!1}function ne(e,t,n,i){const o=e.indexOf(t,n);if(-1===o)throw new Error(i);return o+t.length-1}function ie(e,t,n,i=">"){const o=function(e,t,n=">"){let i,o="";for(let a=t;a<e.length;a++){let t=e[a];if(i)t===i&&(i="");else if('"'===t||"'"===t)i=t;else if(t===n[0]){if(!n[1])return{data:o,index:a};if(e[a+1]===n[1])return{data:o,index:a}}else"\t"===t&&(t=" ");o+=t}}(e,t+1,i);if(!o)return;let a=o.data;const r=o.index,s=a.search(/\s/);let c=a,l=!0;-1!==s&&(c=a.substring(0,s),a=a.substring(s+1).trimStart());const p=c;if(n){const e=c.indexOf(":");-1!==e&&(c=c.substr(e+1),l=c!==o.data.substr(e+1))}return{tagName:c,tagExp:a,closeIndex:r,attrExpPresent:l,rawTagName:p}}function oe(e,t,n){const i=n;let o=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const a=ne(e,">",n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(o--,0===o))return{tagContent:e.substring(i,n),i:a};n=a}else if("?"===e[n+1])n=ne(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=ne(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=ne(e,"]]>",n,"StopNode is not closed.")-2;else{const i=ie(e,n,">");i&&((i&&i.tagName)===t&&"/"!==i.tagExp[i.tagExp.length-1]&&o++,n=i.closeIndex)}}function ae(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},F,t),!e||"string"!=typeof e)return e;let n=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(n))return e;if("0"===e)return 0;if(t.hex&&$.test(n))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(n);if(isFinite(n)){if(n.includes("e")||n.includes("E"))return function(e,t,n){if(!n.eNotation)return e;const i=t.match(M);if(i){let o=i[1]||"";const a=-1===i[3].indexOf("e")?"E":"e",r=i[2],s=o?e[r.length+1]===a:e[r.length]===a;return r.length>1&&s?e:(1!==r.length||!i[3].startsWith(`.${a}`)&&i[3][0]!==a)&&r.length>0?n.leadingZeros&&!s?(t=(i[1]||"")+i[3],Number(t)):e:Number(t)}return e}(e,n,t);{const o=D.exec(n);if(o){const a=o[1]||"",r=o[2];let s=(i=o[3])&&-1!==i.indexOf(".")?("."===(i=i.replace(/0+$/,""))?i="0":"."===i[0]?i="0"+i:"."===i[i.length-1]&&(i=i.substring(0,i.length-1)),i):i;const c=a?"."===e[r.length+1]:"."===e[r.length];if(!t.leadingZeros&&(r.length>1||1===r.length&&!c))return e;{const i=Number(n),o=String(i);if(0===i)return i;if(-1!==o.search(/[eE]/))return t.eNotation?i:e;if(-1!==n.indexOf("."))return"0"===o||o===s||o===`${a}${s}`?i:e;let c=r?s:n;return r?c===o||a+c===o?i:e:c===o||c===a+o?i:e}}return e}}var i;return function(e,t,n){const i=t===1/0;switch(n.infinity.toLowerCase()){case"null":return null;case"infinity":return t;case"string":return i?"Infinity":"-Infinity";default:return e}}(e,Number(n),t)}(e,n)}return void 0!==e?e:""}function re(e,t,n){const i=Number.parseInt(e,t);return i>=0&&i<=1114111?String.fromCodePoint(i):n+e+";"}function se(e,t,n,i){if(e){const i=e(t);n===t&&(n=i),t=i}return{tagName:t=ce(t,i),tagExp:n}}function ce(e,t){if(c.includes(e))throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return s.includes(e)?t.onDangerousProperty(e):e}const le=I.getMetaDataSymbol();function pe(e,t){if(!e||"object"!=typeof e)return{};if(!t)return e;const n={};for(const i in e)i.startsWith(t)?n[i.substring(t.length)]=e[i]:n[i]=e[i];return n}function ue(e,t,n,i){return de(e,t,n,i)}function de(e,t,n,i){let o;const a={};for(let r=0;r<e.length;r++){const s=e[r],c=me(s);if(void 0!==c&&c!==t.textNodeName){const e=pe(s[":@"]||{},t.attributeNamePrefix);n.push(c,e)}if(c===t.textNodeName)void 0===o?o=s[c]:o+=""+s[c];else{if(void 0===c)continue;if(s[c]){let e=de(s[c],t,n,i);const o=he(e,t);if(s[":@"]?fe(e,s[":@"],i,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==s[le]&&"object"==typeof e&&null!==e&&(e[le]=s[le]),void 0!==a[c]&&Object.prototype.hasOwnProperty.call(a,c))Array.isArray(a[c])||(a[c]=[a[c]]),a[c].push(e);else{const n=t.jPath?i.toString():i;t.isArray(c,n,o)?a[c]=[e]:a[c]=e}void 0!==c&&c!==t.textNodeName&&n.pop()}}}return"string"==typeof o?o.length>0&&(a[t.textNodeName]=o):void 0!==o&&(a[t.textNodeName]=o),a}function me(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function fe(e,t,n,i){if(t){const o=Object.keys(t),a=o.length;for(let r=0;r<a;r++){const a=o[r],s=a.startsWith(i.attributeNamePrefix)?a.substring(i.attributeNamePrefix.length):a,c=i.jPath?n.toString()+"."+s:n;i.isArray(a,c,!0,!0)?e[a]=[t[a]]:e[a]=t[a]}}}function he(e,t){const{textNodeName:n}=t,i=Object.keys(e).length;return 0===i||!(1!==i||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}class ge{constructor(e){this.externalEntities={},this.options=O(e)}parse(e,t){if("string"!=typeof e&&e.toString)e=e.toString();else if("string"!=typeof e)throw new Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});const n=p(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new V(this.options);n.addExternalEntities(this.externalEntities);const i=n.parseXml(e);return this.options.preserveOrder||void 0===i?i:ue(i,this.options,n.matcher,n.readonlyMatcher)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return I.getMetaDataSymbol()}}function ve(e,t){let n="";t.format&&t.indentBy.length>0&&(n="\n");const i=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;e<t.stopNodes.length;e++){const n=t.stopNodes[e];"string"==typeof n?i.push(new z(n)):n instanceof z&&i.push(n)}return ye(e,t,n,new q,i)}function ye(e,t,n,i,o){let a="",r=!1;if(t.maxNestedTags&&i.getDepth()>t.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(e)){if(null!=e){let n=e.toString();return n=ke(n,t),n}return""}for(let s=0;s<e.length;s++){const c=e[s],l=Se(c);if(void 0===l)continue;const p=be(c[":@"],t);i.push(l,p);const u=_e(i,o);if(l===t.textNodeName){let e=c[l];u||(e=t.tagValueProcessor(l,e),e=ke(e,t)),r&&(a+=n),a+=e,r=!1,i.pop();continue}if(l===t.cdataPropName){r&&(a+=n),a+=`<![CDATA[${c[l][0][t.textNodeName]}]]>`,r=!1,i.pop();continue}if(l===t.commentPropName){a+=n+`\x3c!--${c[l][0][t.textNodeName]}--\x3e`,r=!0,i.pop();continue}if("?"===l[0]){const e=Ce(c[":@"],t,u),o="?xml"===l?"":n;let s=c[l][0][t.textNodeName];s=0!==s.length?" "+s:"",a+=o+`<${l}${s}${e}?>`,r=!0,i.pop();continue}let d=n;""!==d&&(d+=t.indentBy);const m=n+`<${l}${Ce(c[":@"],t,u)}`;let f;f=u?xe(c[l],t):ye(c[l],t,d,i,o),-1!==t.unpairedTags.indexOf(l)?t.suppressUnpairedNode?a+=m+">":a+=m+"/>":f&&0!==f.length||!t.suppressEmptyNode?f&&f.endsWith(">")?a+=m+`>${f}${n}</${l}>`:(a+=m+">",f&&""!==n&&(f.includes("/>")||f.includes("</"))?a+=n+t.indentBy+f+n:a+=f,a+=`</${l}>`):a+=m+"/>",r=!0,i.pop()}return a}function be(e,t){if(!e||t.ignoreAttributes)return null;const n={};let i=!1;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o.startsWith(t.attributeNamePrefix)?o.substr(t.attributeNamePrefix.length):o]=e[o],i=!0);return i?n:null}function xe(e,t){if(!Array.isArray(e))return null!=e?e.toString():"";let n="";for(let i=0;i<e.length;i++){const o=e[i],a=Se(o);if(a===t.textNodeName)n+=o[a];else if(a===t.cdataPropName)n+=o[a][0][t.textNodeName];else if(a===t.commentPropName)n+=o[a][0][t.textNodeName];else{if(a&&"?"===a[0])continue;if(a){const e=we(o[":@"],t),i=xe(o[a],t);i&&0!==i.length?n+=`<${a}${e}>${i}</${a}>`:n+=`<${a}${e}/>`}}}return n}function we(e,t){let n="";if(e&&!t.ignoreAttributes)for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let o=e[i];!0===o&&t.suppressBooleanAttributes?n+=` ${i.substr(t.attributeNamePrefix.length)}`:n+=` ${i.substr(t.attributeNamePrefix.length)}="${o}"`}return n}function Se(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const i=t[n];if(Object.prototype.hasOwnProperty.call(e,i)&&":@"!==i)return i}}function Ce(e,t,n){let i="";if(e&&!t.ignoreAttributes)for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;let a;n?a=e[o]:(a=t.attributeValueProcessor(o,e[o]),a=ke(a,t)),!0===a&&t.suppressBooleanAttributes?i+=` ${o.substr(t.attributeNamePrefix.length)}`:i+=` ${o.substr(t.attributeNamePrefix.length)}="${a}"`}return i}function _e(e,t){if(!t||0===t.length)return!1;for(let n=0;n<t.length;n++)if(e.matches(t[n]))return!0;return!1}function ke(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const i=t.entities[n];e=e.replace(i.regex,i.val)}return e}const Ee={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function Te(e){if(this.options=Object.assign({},Ee,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];"string"==typeof t?this.stopNodeExpressions.push(new z(t)):t instanceof z&&this.stopNodeExpressions.push(t)}var t;!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const n of t){if("string"==typeof n&&e===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Ae),this.processTextOrObjNode=je,this.options.format?(this.indentate=Oe,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function je(e,t,n,i){const o=this.extractAttributes(e);if(i.push(t,o),this.checkStopNode(i)){const o=this.buildRawContent(e),a=this.buildAttributesForStopNode(e);return i.pop(),this.buildObjectNode(o,t,a,n)}const a=this.j2x(e,n+1,i);return i.pop(),void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,a.attrStr,n,i):this.buildObjectNode(a.val,t,a.attrStr,n)}function Oe(e){return this.options.indentBy.repeat(e)}function Ae(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}Te.prototype.build=function(e){if(this.options.preserveOrder)return ve(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});const t=new q;return this.j2x(e,0,t).val}},Te.prototype.j2x=function(e,t,n){let i="",o="";if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");const a=this.options.jPath?n.toString():n,r=this.checkStopNode(n);for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s))if(void 0===e[s])this.isAttribute(s)&&(o+="");else if(null===e[s])this.isAttribute(s)||s===this.options.cdataPropName?o+="":"?"===s[0]?o+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:o+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if(e[s]instanceof Date)o+=this.buildTextValNode(e[s],s,"",t,n);else if("object"!=typeof e[s]){const c=this.isAttribute(s);if(c&&!this.ignoreAttributesFn(c,a))i+=this.buildAttrPairStr(c,""+e[s],r);else if(!c)if(s===this.options.textNodeName){let t=this.options.tagValueProcessor(s,""+e[s]);o+=this.replaceEntitiesValue(t)}else{n.push(s);const i=this.checkStopNode(n);if(n.pop(),i){const n=""+e[s];o+=""===n?this.indentate(t)+"<"+s+this.closeTag(s)+this.tagEndChar:this.indentate(t)+"<"+s+">"+n+"</"+s+this.tagEndChar}else o+=this.buildTextValNode(e[s],s,"",t,n)}}else if(Array.isArray(e[s])){const i=e[s].length;let a="",r="";for(let c=0;c<i;c++){const i=e[s][c];if(void 0===i);else if(null===i)"?"===s[0]?o+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:o+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if("object"==typeof i)if(this.options.oneListGroup){n.push(s);const e=this.j2x(i,t+1,n);n.pop(),a+=e.val,this.options.attributesGroupName&&i.hasOwnProperty(this.options.attributesGroupName)&&(r+=e.attrStr)}else a+=this.processTextOrObjNode(i,s,t,n);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(s,i);e=this.replaceEntitiesValue(e),a+=e}else{n.push(s);const e=this.checkStopNode(n);if(n.pop(),e){const e=""+i;a+=""===e?this.indentate(t)+"<"+s+this.closeTag(s)+this.tagEndChar:this.indentate(t)+"<"+s+">"+e+"</"+s+this.tagEndChar}else a+=this.buildTextValNode(i,s,"",t,n)}}this.options.oneListGroup&&(a=this.buildObjectNode(a,s,r,t)),o+=a}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName){const t=Object.keys(e[s]),n=t.length;for(let o=0;o<n;o++)i+=this.buildAttrPairStr(t[o],""+e[s][t[o]],r)}else o+=this.processTextOrObjNode(e[s],s,t,n);return{attrStr:i,val:o}},Te.prototype.buildAttrPairStr=function(e,t,n){return n||(t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t)),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},Te.prototype.extractAttributes=function(e){if(!e||"object"!=typeof e)return null;const t={};let n=!1;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const i=e[this.options.attributesGroupName];for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e]=i[e],n=!0)}else for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const o=this.isAttribute(i);o&&(t[o]=e[i],n=!0)}return n?t:null},Te.prototype.buildRawContent=function(e){if("string"==typeof e)return e;if("object"!=typeof e||null===e)return String(e);if(void 0!==e[this.options.textNodeName])return e[this.options.textNodeName];let t="";for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(this.isAttribute(n))continue;if(this.options.attributesGroupName&&n===this.options.attributesGroupName)continue;const i=e[n];if(n===this.options.textNodeName)t+=i;else if(Array.isArray(i)){for(let e of i)if("string"==typeof e||"number"==typeof e)t+=`<${n}>${e}</${n}>`;else if("object"==typeof e&&null!==e){const i=this.buildRawContent(e),o=this.buildAttributesForStopNode(e);t+=""===i?`<${n}${o}/>`:`<${n}${o}>${i}</${n}>`}}else if("object"==typeof i&&null!==i){const e=this.buildRawContent(i),o=this.buildAttributesForStopNode(i);t+=""===e?`<${n}${o}/>`:`<${n}${o}>${e}</${n}>`}else t+=`<${n}>${i}</${n}>`}return t},Te.prototype.buildAttributesForStopNode=function(e){if(!e||"object"!=typeof e)return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const i=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,o=n[e];!0===o&&this.options.suppressBooleanAttributes?t+=" "+i:t+=" "+i+'="'+o+'"'}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const i=this.isAttribute(n);if(i){const o=e[n];!0===o&&this.options.suppressBooleanAttributes?t+=" "+i:t+=" "+i+'="'+o+'"'}}return t},Te.prototype.buildObjectNode=function(e,t,n,i){if(""===e)return"?"===t[0]?this.indentate(i)+"<"+t+n+"?"+this.tagEndChar:this.indentate(i)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let o="</"+t+this.tagEndChar,a="";return"?"===t[0]&&(a="?",o=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===a.length?this.indentate(i)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(i)+"<"+t+n+a+this.tagEndChar+e+this.indentate(i)+o:this.indentate(i)+"<"+t+n+a+">"+e+o}},Te.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},Te.prototype.checkStopNode=function(e){if(!this.stopNodeExpressions||0===this.stopNodeExpressions.length)return!1;for(let t=0;t<this.stopNodeExpressions.length;t++)if(e.matches(this.stopNodeExpressions[t]))return!0;return!1},Te.prototype.buildTextValNode=function(e,t,n,i,o){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(i)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(i)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(i)+"<"+t+n+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(t,e);return o=this.replaceEntitiesValue(o),""===o?this.indentate(i)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(i)+"<"+t+n+">"+o+"</"+t+this.tagEndChar}},Te.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e};const Ie=Te,Ne={validate:p};e.exports=n})()},118(e,t,n){n.d(t,{S_BAR:()=>_e,S_BAR_END:()=>ke,S_BAR_END_RIGHT:()=>Te,S_BAR_H:()=>Re,S_BAR_START:()=>Ce,S_BAR_START_RIGHT:()=>Ee,S_CHECKBOX_ACTIVE:()=>Ae,S_CHECKBOX_INACTIVE:()=>Ne,S_CHECKBOX_SELECTED:()=>Ie,S_CONNECT_LEFT:()=>$e,S_CORNER_BOTTOM_LEFT:()=>Fe,S_CORNER_BOTTOM_RIGHT:()=>De,S_CORNER_TOP_LEFT:()=>Me,S_CORNER_TOP_RIGHT:()=>Le,S_ERROR:()=>Ue,S_INFO:()=>Be,S_PASSWORD_MASK:()=>Pe,S_RADIO_ACTIVE:()=>je,S_RADIO_INACTIVE:()=>Oe,S_STEP_ACTIVE:()=>be,S_STEP_CANCEL:()=>xe,S_STEP_ERROR:()=>we,S_STEP_SUBMIT:()=>Se,S_SUCCESS:()=>qe,S_WARN:()=>ze,autocomplete:()=>Xe,autocompleteMultiselect:()=>Ye,box:()=>tt,cancel:()=>ct,confirm:()=>nt,date:()=>it,group:()=>at,groupMultiselect:()=>rt,intro:()=>lt,isCI:()=>ge,isCancel:()=>H,isTTY:()=>ve,limitOptions:()=>He,log:()=>st,multiselect:()=>dt,note:()=>ht,outro:()=>pt,password:()=>gt,path:()=>vt,progress:()=>wt,select:()=>Ct,selectKey:()=>_t,settings:()=>q,spinner:()=>bt,stream:()=>Et,symbol:()=>We,symbolBar:()=>Ve,taskLog:()=>jt,tasks:()=>Tt,text:()=>Ot,unicode:()=>he,unicodeOr:()=>ye,updateSettings:()=>z}),n.r(t);var i=n(4472),o=n(7721);const h=e=>161===e||164===e||167===e||168===e||170===e||173===e||174===e||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||198===e||208===e||215===e||216===e||e>=222&&e<=225||230===e||e>=232&&e<=234||236===e||237===e||240===e||242===e||243===e||e>=247&&e<=250||252===e||254===e||257===e||273===e||275===e||283===e||294===e||295===e||299===e||e>=305&&e<=307||312===e||e>=319&&e<=322||324===e||e>=328&&e<=331||333===e||338===e||339===e||358===e||359===e||363===e||462===e||464===e||466===e||468===e||470===e||472===e||474===e||476===e||593===e||609===e||708===e||711===e||e>=713&&e<=715||717===e||720===e||e>=728&&e<=731||733===e||735===e||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||1025===e||e>=1040&&e<=1103||1105===e||8208===e||e>=8211&&e<=8214||8216===e||8217===e||8220===e||8221===e||e>=8224&&e<=8226||e>=8228&&e<=8231||8240===e||8242===e||8243===e||8245===e||8251===e||8254===e||8308===e||8319===e||e>=8321&&e<=8324||8364===e||8451===e||8453===e||8457===e||8467===e||8470===e||8481===e||8482===e||8486===e||8491===e||8531===e||8532===e||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||8585===e||e>=8592&&e<=8601||8632===e||8633===e||8658===e||8660===e||8679===e||8704===e||8706===e||8707===e||8711===e||8712===e||8715===e||8719===e||8721===e||8725===e||8730===e||e>=8733&&e<=8736||8739===e||8741===e||e>=8743&&e<=8748||8750===e||e>=8756&&e<=8759||8764===e||8765===e||8776===e||8780===e||8786===e||8800===e||8801===e||e>=8804&&e<=8807||8810===e||8811===e||8814===e||8815===e||8834===e||8835===e||8838===e||8839===e||8853===e||8857===e||8869===e||8895===e||8978===e||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||9632===e||9633===e||e>=9635&&e<=9641||9650===e||9651===e||9654===e||9655===e||9660===e||9661===e||9664===e||9665===e||e>=9670&&e<=9672||9675===e||e>=9678&&e<=9681||e>=9698&&e<=9701||9711===e||9733===e||9734===e||9737===e||9742===e||9743===e||9756===e||9758===e||9792===e||9794===e||9824===e||9825===e||e>=9827&&e<=9829||e>=9831&&e<=9834||9836===e||9837===e||9839===e||9886===e||9887===e||9919===e||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||9955===e||9960===e||9961===e||e>=9963&&e<=9969||9972===e||e>=9974&&e<=9977||9979===e||9980===e||9982===e||9983===e||10045===e||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||65533===e||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||127375===e||127376===e||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109,g=e=>12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510,v=e=>e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9800&&e<=9811||9855===e||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141,y=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y,b=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,x=/\t{1,1000}/y,w=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/uy,S=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,C=/\p{M}+/gu,_={limit:1/0,ellipsis:""},k=(e,t={},n={})=>{const i=t.limit??1/0,o=t.ellipsis??"",a=t?.ellipsisWidth??(o?k(o,_,n).width:0),r=n.ansiWidth??0,s=n.controlWidth??0,c=n.tabWidth??8,l=n.ambiguousWidth??1,p=n.emojiWidth??2,u=n.fullWidthWidth??2,d=n.regularWidth??1,m=n.wideWidth??2;let f=0,E=0,T=e.length,j=0,O=!1,A=T,I=Math.max(0,i-a),N=0,P=0,R=0,L=0;e:for(;;){if(P>N||E>=T&&E>f){const t=e.slice(N,P)||e.slice(f,E);j=0;for(const e of t.replaceAll(C,"")){const t=e.codePointAt(0)||0;if(L=g(t)?u:v(t)?m:l!==d&&h(t)?l:d,R+L>I&&(A=Math.min(A,Math.max(N,f)+j)),R+L>i){O=!0;break e}j+=e.length,R+=L}N=P=0}if(E>=T)break;if(S.lastIndex=E,S.test(e)){if(j=S.lastIndex-E,L=j*d,R+L>I&&(A=Math.min(A,E+Math.floor((I-R)/d))),R+L>i){O=!0;break}R+=L,N=f,P=E,E=f=S.lastIndex}else if(y.lastIndex=E,y.test(e)){if(R+r>I&&(A=Math.min(A,E)),R+r>i){O=!0;break}R+=r,N=f,P=E,E=f=y.lastIndex}else if(b.lastIndex=E,b.test(e)){if(j=b.lastIndex-E,L=j*s,R+L>I&&(A=Math.min(A,E+Math.floor((I-R)/s))),R+L>i){O=!0;break}R+=L,N=f,P=E,E=f=b.lastIndex}else if(x.lastIndex=E,x.test(e)){if(j=x.lastIndex-E,L=j*c,R+L>I&&(A=Math.min(A,E+Math.floor((I-R)/c))),R+L>i){O=!0;break}R+=L,N=f,P=E,E=f=x.lastIndex}else if(w.lastIndex=E,w.test(e)){if(R+p>I&&(A=Math.min(A,E)),R+p>i){O=!0;break}R+=p,N=f,P=E,E=f=w.lastIndex}else E+=1}return{width:O?I:R,index:O?A:T,truncated:O,ellipsed:O&&i>=a}},E=k,T={limit:1/0,ellipsis:"",ellipsisWidth:0},j=(e,t={})=>E(e,T,t).width,O="",A="]8;;",I=new RegExp(`(?:\\[(?<code>\\d+)m|\\${A}(?<uri>.*))`,"y"),N=e=>e>=30&&e<=37||e>=90&&e<=97?39:e>=40&&e<=47||e>=100&&e<=107?49:1===e||2===e?22:3===e?23:4===e?24:7===e?27:8===e?28:9===e?29:0===e?0:void 0,P=e=>`${O}[${e}m`,R=e=>`${O}${A}${e}`,L=(e,t,n)=>{const i=t[Symbol.iterator]();let o=!1,a=!1,r=e.at(-1),s=void 0===r?0:j(r),c=i.next(),l=i.next(),p=0;for(;!c.done;){const r=c.value,u=j(r);s+u<=n?e[e.length-1]+=r:(e.push(r),s=0),r!==O&&"›"!==r||(o=!0,a=t.startsWith(A,p+1)),o?a?""===r&&(o=!1,a=!1):"m"===r&&(o=!1):(s+=u,s!==n||l.done||(e.push(""),s=0)),c=l,l=i.next(),p+=r.length}r=e.at(-1),!s&&void 0!==r&&r.length&&e.length>1&&(e[e.length-2]+=e.pop())},$=/\r?\n/;function D(e,t,n){return String(e).normalize().split($).map(e=>((e,t,n={})=>{if(!1!==n.trim&&""===e.trim())return"";let i,o,a="";const r=e.split(" ");let s=[""],c=0;for(let e=0;e<r.length;e++){const i=r[e];if(!1!==n.trim){const e=s.at(-1)??"",t=e.trimStart();e.length!==t.length&&(s[s.length-1]=t,c=j(t))}0!==e&&(c>=t&&(!1===n.wordWrap||!1===n.trim)&&(s.push(""),c=0),(c||!1===n.trim)&&(s[s.length-1]+=" ",c++));const o=j(i);if(n.hard&&o>t){const e=t-c,n=1+Math.floor((o-e-1)/t);Math.floor((o-1)/t)<n&&s.push(""),L(s,i,t),c=j(s.at(-1)??"");continue}if(c+o>t&&c&&o){if(!1===n.wordWrap&&c<t){L(s,i,t),c=j(s.at(-1)??"");continue}s.push(""),c=0}c+o>t&&!1===n.wordWrap?(L(s,i,t),c=j(s.at(-1)??"")):(s[s.length-1]+=i,c+=o)}!1!==n.trim&&(s=s.map(e=>(e=>{const t=e.split(" ");let n=t.length;for(;n&&!j(t[n-1]);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")})(e)));const l=s.join("\n");let p=!1;for(let e=0;e<l.length;e++){const t=l[e];if(a+=t,!p){if(p=t>="\ud800"&&t<="\udbff",t===O||"›"===t){I.lastIndex=e+1;const t=I.exec(l),n=t?.groups;if(void 0!==n?.code){const e=Number.parseFloat(n.code);i=39===e?void 0:e}else void 0!==n?.uri&&(o=0===n.uri.length?void 0:n.uri)}if("\n"===l[e+1]){o&&(a+=R(""));const e=i?N(i):void 0;i&&e&&(a+=P(e))}else"\n"===t&&(i&&N(i)&&(a+=P(i)),o&&(a+=R(o)))}}return a})(e,t,n)).join("\n")}var F=n(723),M=n(2607);function B(e,t,n){if(!n.some(e=>!e.disabled))return e;const i=e+t,o=Math.max(n.length-1,0),a=i<0?o:i>o?0:i;return n[a].disabled?B(a,t<0?-1:1,n):a}const q={actions:new Set(["up","down","left","right","space","enter","cancel"]),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]]),messages:{cancel:"Canceled",error:"Something went wrong"},withGuide:!0,date:{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],messages:{required:"Please enter a valid date",invalidMonth:"There are only 12 months in a year",invalidDay:(e,t)=>`There are only ${e} days in ${t}`,afterMin:e=>`Date must be on or after ${e.toISOString().slice(0,10)}`,beforeMax:e=>`Date must be on or before ${e.toISOString().slice(0,10)}`}}};function z(e){if(void 0!==e.aliases){const t=e.aliases;for(const e in t){if(!Object.hasOwn(t,e))continue;const n=t[e];q.actions.has(n)&&(q.aliases.has(e)||q.aliases.set(e,n))}}if(void 0!==e.messages){const t=e.messages;void 0!==t.cancel&&(q.messages.cancel=t.cancel),void 0!==t.error&&(q.messages.error=t.error)}if(void 0!==e.withGuide&&(q.withGuide=!1!==e.withGuide),void 0!==e.date){const t=e.date;void 0!==t.monthNames&&(q.date.monthNames=[...t.monthNames]),void 0!==t.messages&&(void 0!==t.messages.required&&(q.date.messages.required=t.messages.required),void 0!==t.messages.invalidMonth&&(q.date.messages.invalidMonth=t.messages.invalidMonth),void 0!==t.messages.invalidDay&&(q.date.messages.invalidDay=t.messages.invalidDay),void 0!==t.messages.afterMin&&(q.date.messages.afterMin=t.messages.afterMin),void 0!==t.messages.beforeMax&&(q.date.messages.beforeMax=t.messages.beforeMax))}}function U(e,t){if("string"==typeof e)return q.aliases.get(e)===t;for(const n of e)if(void 0!==n&&U(n,t))return!0;return!1}const W=globalThis.process.platform.startsWith("win"),V=Symbol("clack:cancel");function H(e){return e===V}function G(e,t){const n=e;n.isTTY&&n.setRawMode(t)}const J=e=>"columns"in e&&"number"==typeof e.columns?e.columns:80,X=e=>"rows"in e&&"number"==typeof e.rows?e.rows:20;function Y(e,t,n,i=n){return D(t,J(e??o.stdout)-n.length,{hard:!0,trim:!1}).split("\n").map((e,t)=>`${0===t?i:n}${e}`).join("\n")}let K=class{input;output;_abortSignal;rl;opts;_render;_track=!1;_prevFrame="";_subscribers=new Map;_cursor=0;state="initial";error="";value;userInput="";constructor(e,t=!0){const{input:n=o.stdin,output:i=o.stdout,render:a,signal:r,...s}=e;this.opts=s,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=a.bind(this),this._track=t,this._abortSignal=r,this.input=n,this.output=i}unsubscribe(){this._subscribers.clear()}setSubscriber(e,t){const n=this._subscribers.get(e)??[];n.push(t),this._subscribers.set(e,n)}on(e,t){this.setSubscriber(e,{cb:t})}once(e,t){this.setSubscriber(e,{cb:t,once:!0})}emit(e,...t){const n=this._subscribers.get(e)??[],i=[];for(const e of n)e.cb(...t),e.once&&i.push(()=>n.splice(n.indexOf(e),1));for(const e of i)e()}prompt(){return new Promise(e=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),e(V);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}this.rl=s.createInterface({input:this.input,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),this.rl.prompt(),void 0!==this.opts.initialUserInput&&this._setUserInput(this.opts.initialUserInput,!0),this.input.on("keypress",this.onKeypress),G(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(F.cursor.show),this.output.off("resize",this.render),G(this.input,!1),e(this.value)}),this.once("cancel",()=>{this.output.write(F.cursor.show),this.output.off("resize",this.render),G(this.input,!1),e(V)})})}_isActionKey(e,t){return"\t"===e}_setValue(e){this.value=e,this.emit("value",this.value)}_setUserInput(e,t){this.userInput=e??"",this.emit("userInput",this.userInput),t&&this._track&&this.rl&&(this.rl.write(this.userInput),this._cursor=this.rl.cursor)}_clearUserInput(){this.rl?.write(null,{ctrl:!0,name:"u"}),this._setUserInput("")}onKeypress(e,t){if(this._track&&"return"!==t.name&&(t.name&&this._isActionKey(e,t)&&this.rl?.write(null,{ctrl:!0,name:"h"}),this._cursor=this.rl?.cursor??0,this._setUserInput(this.rl?.line)),"error"===this.state&&(this.state="active"),t?.name&&(!this._track&&q.aliases.has(t.name)&&this.emit("cursor",q.aliases.get(t.name)),q.actions.has(t.name)&&this.emit("cursor",t.name)),e&&("y"===e.toLowerCase()||"n"===e.toLowerCase())&&this.emit("confirm","y"===e.toLowerCase()),this.emit("key",e?.toLowerCase(),t),"return"===t?.name){if(this.opts.validate){const e=this.opts.validate(this.value);e&&(this.error=e instanceof Error?e.message:e,this.state="error",this.rl?.write(this.userInput))}"error"!==this.state&&(this.state="submit")}U([e,t?.name,t?.sequence],"cancel")&&(this.state="cancel"),("submit"===this.state||"cancel"===this.state)&&this.emit("finalize"),this.render(),("submit"===this.state||"cancel"===this.state)&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write("\n"),G(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){const e=D(this._prevFrame,process.stdout.columns,{hard:!0,trim:!1}).split("\n").length-1;this.output.write(F.cursor.move(-999,-1*e))}render(){const e=D(this._render(this)??"",process.stdout.columns,{hard:!0,trim:!1});if(e!==this._prevFrame){if("initial"===this.state)this.output.write(F.cursor.hide);else{const t=function(e,t){if(e===t)return;const n=e.split("\n"),i=t.split("\n"),o=Math.max(n.length,i.length),a=[];for(let e=0;e<o;e++)n[e]!==i[e]&&a.push(e);return{lines:a,numLinesBefore:n.length,numLinesAfter:i.length,numLines:o}}(this._prevFrame,e),n=X(this.output);if(this.restoreCursor(),t){const i=Math.max(0,t.numLinesAfter-n),o=Math.max(0,t.numLinesBefore-n);let a=t.lines.find(e=>e>=i);if(void 0===a)return void(this._prevFrame=e);if(1===t.lines.length){this.output.write(F.cursor.move(0,a-o)),this.output.write(F.erase.lines(1));const t=e.split("\n");return this.output.write(t[a]),this._prevFrame=e,void this.output.write(F.cursor.move(0,t.length-a-1))}if(t.lines.length>1){if(i<o)a=i;else{const e=a-o;e>0&&this.output.write(F.cursor.move(0,e))}this.output.write(F.erase.down());const t=e.split("\n").slice(a);return this.output.write(t.join("\n")),void(this._prevFrame=e)}}this.output.write(F.erase.down())}this.output.write(e),"initial"===this.state&&(this.state="active"),this._prevFrame=e}}};function Z(e,t){return(t.label??String(t.value)).toLowerCase().includes(e.toLowerCase())}let Q=class extends K{filteredOptions;multiple;isNavigating=!1;selectedValues=[];focusedValue;#e=0;#t="";#n;#i;#o;get cursor(){return this.#e}get userInputWithCursor(){if(!this.userInput)return(0,i.styleText)(["inverse","hidden"],"_");if(this._cursor>=this.userInput.length)return`${this.userInput}█`;const e=this.userInput.slice(0,this._cursor),[t,...n]=this.userInput.slice(this._cursor);return`${e}${(0,i.styleText)("inverse",t)}${n.join("")}`}get options(){return"function"==typeof this.#i?this.#i():this.#i}constructor(e){super(e),this.#i=e.options,this.#o=e.placeholder;const t=this.options;let n;if(this.filteredOptions=[...t],this.multiple=!0===e.multiple,this.#n="function"==typeof e.options?e.filter:e.filter??Z,e.initialValue&&Array.isArray(e.initialValue)?n=this.multiple?e.initialValue:e.initialValue.slice(0,1):!this.multiple&&this.options.length>0&&(n=[this.options[0].value]),n)for(const e of n){const n=t.findIndex(t=>t.value===e);-1!==n&&(this.toggleSelected(e),this.#e=n)}this.focusedValue=this.options[this.#e]?.value,this.on("key",(e,t)=>this.#a(e,t)),this.on("userInput",e=>this.#r(e))}_isActionKey(e,t){return"\t"===e||this.multiple&&this.isNavigating&&"space"===t.name&&void 0!==e&&""!==e}#a(e,t){const n="up"===t.name,i="down"===t.name,o="return"===t.name,a=""===this.userInput||"\t"===this.userInput,r=this.#o,s=this.options,c=void 0!==r&&""!==r&&s.some(e=>!e.disabled&&(!this.#n||this.#n(r,e)));if("tab"===t.name&&a&&c)return"\t"===this.userInput&&this._clearUserInput(),this._setUserInput(r,!0),void(this.isNavigating=!1);n||i?(this.#e=B(this.#e,n?-1:1,this.filteredOptions),this.focusedValue=this.filteredOptions[this.#e]?.value,this.multiple||(this.selectedValues=[this.focusedValue]),this.isNavigating=!0):o?this.value=function(e,t){if(t)return e?t:t[0]}(this.multiple,this.selectedValues):this.multiple?void 0!==this.focusedValue&&("tab"===t.name||this.isNavigating&&"space"===t.name)?this.toggleSelected(this.focusedValue):this.isNavigating=!1:(this.focusedValue&&(this.selectedValues=[this.focusedValue]),this.isNavigating=!1)}deselectAll(){this.selectedValues=[]}toggleSelected(e){0!==this.filteredOptions.length&&(this.multiple?this.selectedValues.includes(e)?this.selectedValues=this.selectedValues.filter(t=>t!==e):this.selectedValues=[...this.selectedValues,e]:this.selectedValues=[e])}#r(e){if(e!==this.#t){this.#t=e;const t=this.options;e&&this.#n?this.filteredOptions=t.filter(t=>this.#n?.(e,t)):this.filteredOptions=[...t];const n=function(e,t){if(void 0===e||0===t.length)return 0;const n=t.findIndex(t=>t.value===e);return-1!==n?n:0}(this.focusedValue,this.filteredOptions);this.#e=B(n,0,this.filteredOptions);const i=this.filteredOptions[this.#e];i&&!i.disabled?this.focusedValue=i.value:this.focusedValue=void 0,this.multiple||(void 0!==this.focusedValue?this.toggleSelected(this.focusedValue):this.deselectAll())}}};class ee extends K{get cursor(){return this.value?0:1}get _value(){return 0===this.cursor}constructor(e){super(e,!1),this.value=!!e.initialValue,this.on("userInput",()=>{this.value=this._value}),this.on("confirm",e=>{this.output.write(F.cursor.move(0,-1)),this.value=e,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}const te={Y:{type:"year",len:4},M:{type:"month",len:2},D:{type:"day",len:2}};function ne(e){return[...e].map(e=>te[e])}function ie(e){return Number.parseInt((e||"0").replace(/_/g,"0"),10)||0}function oe(e){return{year:ie(e.year),month:ie(e.month),day:ie(e.day)}}function ae(e,t){return new Date(e||2001,t||1,0).getDate()}function re(e){const{year:t,month:n,day:i}=oe(e);if(!t||t<0||t>9999||!n||n<1||n>12||!i||i<1)return;const o=new Date(Date.UTC(t,n-1,i));return o.getUTCFullYear()===t&&o.getUTCMonth()===n-1&&o.getUTCDate()===i?{year:t,month:n,day:i}:void 0}function se(e){const t=re(e);return t?new Date(Date.UTC(t.year,t.month-1,t.day)):void 0}class ce extends K{#e;#t;#n;#i;#o;#a={segmentIndex:0,positionInSegment:0};#r=!0;#s=null;inlineError="";get segmentCursor(){return{...this.#a}}get segmentValues(){return{...this.#n}}get segments(){return this.#e}get separator(){return this.#t}get formattedValue(){return this.#c(this.#n)}#c(e){return this.#e.map(t=>e[t.type]).join(this.#t)}#l(){this._setUserInput(this.#c(this.#n)),this._setValue(se(this.#n)??void 0)}constructor(e){const t=e.format?{segments:ne(e.format),separator:e.separator??"/"}:function(e){const t=new Intl.DateTimeFormat(e,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,0,15)),n=[];let i="/";for(const e of t)"literal"===e.type?i=e.value.trim()||e.value:("year"===e.type||"month"===e.type||"day"===e.type)&&n.push({type:e.type,len:"year"===e.type?4:2});return{segments:n,separator:i}}(e.locale),n=e.separator??t.separator,i=e.format?ne(e.format):t.segments,o=e.initialValue??e.defaultValue,a=o?{year:String(o.getUTCFullYear()).padStart(4,"0"),month:String(o.getUTCMonth()+1).padStart(2,"0"),day:String(o.getUTCDate()).padStart(2,"0")}:{year:"____",month:"__",day:"__"},r=i.map(e=>a[e.type]).join(n);super({...e,initialUserInput:r},!1),this.#e=i,this.#t=n,this.#n=a,this.#i=e.minDate,this.#o=e.maxDate,this.#l(),this.on("cursor",e=>this.#p(e)),this.on("key",(e,t)=>this.#u(e,t)),this.on("finalize",()=>this.#d(e))}#m(){const e=Math.max(0,Math.min(this.#a.segmentIndex,this.#e.length-1)),t=this.#e[e];if(t)return this.#a.positionInSegment=Math.max(0,Math.min(this.#a.positionInSegment,t.len-1)),{segment:t,index:e}}#f(e){this.inlineError="",this.#s=null;const t=this.#m();t&&(this.#a.segmentIndex=Math.max(0,Math.min(this.#e.length-1,t.index+e)),this.#a.positionInSegment=0,this.#r=!0)}#h(e){const t=this.#m();if(!t)return;const{segment:n}=t,i=this.#n[n.type],o=!i||""===i.replace(/_/g,""),a=Number.parseInt((i||"0").replace(/_/g,"0"),10)||0,r=function(e,t,n,i){const o=n?{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate()}:null,a=i?{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate()}:null;return"year"===e?{min:o?.year??1,max:a?.year??9999}:"month"===e?{min:o&&t.year===o.year?o.month:1,max:a&&t.year===a.year?a.month:12}:{min:o&&t.year===o.year&&t.month===o.month?o.day:1,max:a&&t.year===a.year&&t.month===a.month?a.day:ae(t.year,t.month)}}(n.type,oe(this.#n),this.#i,this.#o);let s;s=o?1===e?r.min:r.max:Math.max(Math.min(r.max,a+e),r.min),this.#n={...this.#n,[n.type]:s.toString().padStart(n.len,"0")},this.#r=!0,this.#s=null,this.#l()}#p(e){if(e)switch(e){case"right":return this.#f(1);case"left":return this.#f(-1);case"up":return this.#h(1);case"down":return this.#h(-1)}}#u(e,t){if("backspace"===t?.name||""===t?.sequence||"\b"===t?.sequence||""===e||"\b"===e){this.inlineError="";const e=this.#m();if(!e)return;return this.#n[e.segment.type].replace(/_/g,"")?(this.#n[e.segment.type]="_".repeat(e.segment.len),this.#r=!0,this.#a.positionInSegment=0,void this.#l()):void this.#f(-1)}if("tab"===t?.name){this.inlineError="";const e=this.#m();if(!e)return;const n=t.shift?-1:1,i=e.index+n;return void(i>=0&&i<this.#e.length&&(this.#a.segmentIndex=i,this.#a.positionInSegment=0,this.#r=!0))}if(e&&/^[0-9]$/.test(e)){const t=this.#m();if(!t)return;const{segment:n}=t,i=!this.#n[n.type].replace(/_/g,"");if(this.#r&&null!==this.#s&&!i){const i=this.#s+e,o={...this.#n,[n.type]:i},a=this.#g(o,n);return a?(this.inlineError=a,this.#s=null,void(this.#r=!1)):(this.inlineError="",this.#n[n.type]=i,this.#s=null,this.#r=!1,this.#l(),void(t.index<this.#e.length-1&&(this.#a.segmentIndex=t.index+1,this.#a.positionInSegment=0,this.#r=!0)))}this.#r&&!i&&(this.#n[n.type]="_".repeat(n.len),this.#a.positionInSegment=0),this.#r=!1,this.#s=null;const o=this.#n[n.type],a=o.indexOf("_"),r=a>=0?a:Math.min(this.#a.positionInSegment,n.len-1);if(r<0||r>=n.len)return;let s=o.slice(0,r)+e+o.slice(r+1),c=!1;if(0!==r||"__"!==o||"month"!==n.type&&"day"!==n.type||(s=`0${e}`,c=Number.parseInt(e,10)<=("month"===n.type?1:2)),"year"===n.type&&(s=(o.replace(/_/g,"")+e).padStart(n.len,"_")),!s.includes("_")){const e={...this.#n,[n.type]:s},t=this.#g(e,n);if(t)return void(this.inlineError=t)}this.inlineError="",this.#n[n.type]=s;const l=s.includes("_")?void 0:re(this.#n);if(l){const{year:e,month:t}=l,n=ae(e,t);this.#n={year:String(Math.max(0,Math.min(9999,e))).padStart(4,"0"),month:String(Math.max(1,Math.min(12,t))).padStart(2,"0"),day:String(Math.max(1,Math.min(n,l.day))).padStart(2,"0")}}this.#l();const p=s.indexOf("_");c?(this.#r=!0,this.#s=e):p>=0?this.#a.positionInSegment=p:a>=0&&t.index<this.#e.length-1?(this.#a.segmentIndex=t.index+1,this.#a.positionInSegment=0,this.#r=!0):this.#a.positionInSegment=Math.min(r+1,n.len-1)}}#g(e,t){const{month:n,day:i}=oe(e);return"month"===t.type&&(n<0||n>12)?q.date.messages.invalidMonth:"day"===t.type&&(i<0||i>31)?q.date.messages.invalidDay(31,"any month"):void 0}#d(e){const{year:t,month:n,day:i}=oe(this.#n);if(t&&n&&i){const e=ae(t,n);this.#n={...this.#n,day:String(Math.min(i,e)).padStart(2,"0")}}this.value=se(this.#n)??e.defaultValue??void 0}}class le extends K{options;cursor=0;#e;getGroupItems(e){return this.options.filter(t=>t.group===e)}isGroupSelected(e){const t=this.getGroupItems(e),n=this.value;return void 0!==n&&t.every(e=>n.includes(e.value))}toggleValue(){const e=this.options[this.cursor];if(void 0===this.value&&(this.value=[]),!0===e.group){const t=e.value,n=this.getGroupItems(t);this.isGroupSelected(t)?this.value=this.value.filter(e=>-1===n.findIndex(t=>t.value===e)):this.value=[...this.value,...n.map(e=>e.value)],this.value=Array.from(new Set(this.value))}else{const t=this.value.includes(e.value);this.value=t?this.value.filter(t=>t!==e.value):[...this.value,e.value]}}constructor(e){super(e,!1);const{options:t}=e;this.#e=!1!==e.selectableGroups,this.options=Object.entries(t).flatMap(([e,t])=>[{value:e,group:!0,label:e},...t.map(t=>({...t,group:e}))]),this.value=[...e.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:t})=>t===e.cursorAt),this.#e?0:1),this.on("cursor",e=>{switch(e){case"left":case"up":{this.cursor=0===this.cursor?this.options.length-1:this.cursor-1;const e=!0===this.options[this.cursor]?.group;!this.#e&&e&&(this.cursor=0===this.cursor?this.options.length-1:this.cursor-1);break}case"down":case"right":{this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;const e=!0===this.options[this.cursor]?.group;!this.#e&&e&&(this.cursor=this.cursor===this.options.length-1?0:this.cursor+1);break}case"space":this.toggleValue()}})}}let pe=class extends K{options;cursor=0;get _value(){return this.options[this.cursor].value}get _enabledOptions(){return this.options.filter(e=>!0!==e.disabled)}toggleAll(){const e=this._enabledOptions,t=void 0!==this.value&&this.value.length===e.length;this.value=t?[]:e.map(e=>e.value)}toggleInvert(){const e=this.value;if(!e)return;const t=this._enabledOptions.filter(t=>!e.includes(t.value));this.value=t.map(e=>e.value)}toggleValue(){void 0===this.value&&(this.value=[]);const e=this.value.includes(this._value);this.value=e?this.value.filter(e=>e!==this._value):[...this.value,this._value]}constructor(e){super(e,!1),this.options=e.options,this.value=[...e.initialValues??[]];const t=Math.max(this.options.findIndex(({value:t})=>t===e.cursorAt),0);this.cursor=this.options[t].disabled?B(t,1,this.options):t,this.on("key",e=>{"a"===e&&this.toggleAll(),"i"===e&&this.toggleInvert()}),this.on("cursor",e=>{switch(e){case"left":case"up":this.cursor=B(this.cursor,-1,this.options);break;case"down":case"right":this.cursor=B(this.cursor,1,this.options);break;case"space":this.toggleValue()}})}};class ue extends K{_mask="•";get cursor(){return this._cursor}get masked(){return this.userInput.replaceAll(/./g,this._mask)}get userInputWithCursor(){if("submit"===this.state||"cancel"===this.state)return this.masked;const e=this.userInput;if(this.cursor>=e.length)return`${this.masked}${(0,i.styleText)(["inverse","hidden"],"_")}`;const t=this.masked,n=t.slice(0,this.cursor),o=t.slice(this.cursor);return`${n}${(0,i.styleText)("inverse",o[0])}${o.slice(1)}`}clear(){this._clearUserInput()}constructor({mask:e,...t}){super(t),this._mask=e??"•",this.on("userInput",e=>{this._setValue(e)})}}class de extends K{options;cursor=0;get _selectedValue(){return this.options[this.cursor]}changeValue(){this.value=this._selectedValue.value}constructor(e){super(e,!1),this.options=e.options;const t=this.options.findIndex(({value:t})=>t===e.initialValue),n=-1===t?0:t;this.cursor=this.options[n].disabled?B(n,1,this.options):n,this.changeValue(),this.on("cursor",e=>{switch(e){case"left":case"up":this.cursor=B(this.cursor,-1,this.options);break;case"down":case"right":this.cursor=B(this.cursor,1,this.options)}this.changeValue()})}}class me extends K{options;cursor=0;constructor(e){super(e,!1),this.options=e.options;const t=!0===e.caseSensitive,n=this.options.map(({value:[e]})=>t?e:e?.toLowerCase());this.cursor=Math.max(n.indexOf(e.initialValue),0),this.on("key",(e,i)=>{if(!e)return;const o=t&&i.shift?e.toUpperCase():e;if(!n.includes(o))return;const a=this.options.find(({value:[n]})=>t?n===o:n?.toLowerCase()===e);a&&(this.value=a.value,this.state="submit",this.emit("submit"))})}}class fe extends K{get userInputWithCursor(){if("submit"===this.state)return this.userInput;const e=this.userInput;if(this.cursor>=e.length)return`${this.userInput}█`;const t=e.slice(0,this.cursor),[n,...o]=e.slice(this.cursor);return`${t}${(0,i.styleText)("inverse",n)}${o.join("")}`}get cursor(){return this._cursor}constructor(e){super({...e,initialUserInput:e.initialUserInput??e.initialValue}),this.on("userInput",e=>{this._setValue(e)}),this.on("finalize",()=>{this.value||(this.value=e.defaultValue),void 0===this.value&&(this.value="")})}}const he="win32"!==o.default.platform?"linux"!==o.default.env.TERM:!!o.default.env.CI||!!o.default.env.WT_SESSION||!!o.default.env.TERMINUS_SUBLIME||"{cmd::Cmder}"===o.default.env.ConEmuTask||"Terminus-Sublime"===o.default.env.TERM_PROGRAM||"vscode"===o.default.env.TERM_PROGRAM||"xterm-256color"===o.default.env.TERM||"alacritty"===o.default.env.TERM||"JetBrains-JediTerm"===o.default.env.TERMINAL_EMULATOR,ge=()=>"true"===process.env.CI,ve=e=>!0===e.isTTY,ye=(e,t)=>he?e:t,be=ye("◆","*"),xe=ye("■","x"),we=ye("▲","x"),Se=ye("◇","o"),Ce=ye("┌","T"),_e=ye("│","|"),ke=ye("└","—"),Ee=ye("┐","T"),Te=ye("┘","—"),je=ye("●",">"),Oe=ye("○"," "),Ae=ye("◻","[•]"),Ie=ye("◼","[+]"),Ne=ye("◻","[ ]"),Pe=ye("▪","•"),Re=ye("─","-"),Le=ye("╮","+"),$e=ye("├","+"),De=ye("╯","+"),Fe=ye("╰","+"),Me=ye("╭","+"),Be=ye("●","•"),qe=ye("◆","*"),ze=ye("▲","!"),Ue=ye("■","x"),We=e=>{switch(e){case"initial":case"active":return(0,i.styleText)("cyan",be);case"cancel":return(0,i.styleText)("red",xe);case"error":return(0,i.styleText)("yellow",we);case"submit":return(0,i.styleText)("green",Se)}},Ve=e=>{switch(e){case"initial":case"active":return(0,i.styleText)("cyan",_e);case"cancel":return(0,i.styleText)("red",_e);case"error":return(0,i.styleText)("yellow",_e);case"submit":return(0,i.styleText)("green",_e)}},He=({cursor:e,options:t,style:n,output:o=process.stdout,maxItems:a=Number.POSITIVE_INFINITY,columnPadding:r=0,rowPadding:s=4})=>{const c=J(o)-r,l=X(o),p=(0,i.styleText)("dim","..."),u=Math.max(l-s,0),d=Math.max(Math.min(a,u),5);let m=0;e>=d-3&&(m=Math.max(Math.min(e-d+3,t.length-d),0));let f=d<t.length&&m>0,h=d<t.length&&m+d<t.length;const g=Math.min(m+d,t.length),v=[];let y=0;f&&y++,h&&y++;const b=m+(f?1:0),x=g-(h?1:0);for(let i=b;i<x;i++){const o=D(n(t[i],i===e),c,{hard:!0,trim:!1}).split("\n");v.push(o),y+=o.length}if(y>u){let t=0,n=0,i=y;const o=e-b,a=(e,t)=>((e,t,n,i,o)=>{let a=t,r=0;for(let t=n;t<i&&(a-=e[t].length,r++,!(a<=o));t++);return{lineCount:a,removals:r}})(v,i,e,t,u);f?(({lineCount:i,removals:t}=a(0,o)),i>u&&({lineCount:i,removals:n}=a(o+1,v.length))):(({lineCount:i,removals:n}=a(o+1,v.length)),i>u&&({lineCount:i,removals:t}=a(0,o))),t>0&&(f=!0,v.splice(0,t)),n>0&&(h=!0,v.splice(v.length-n,n))}const w=[];f&&w.push(p);for(const e of v)for(const t of e)w.push(t);return h&&w.push(p),w};function Ge(e){return e.label??String(e.value??"")}function Je(e,t){if(!e)return!0;const n=(t.label??String(t.value??"")).toLowerCase(),i=(t.hint??"").toLowerCase(),o=String(t.value).toLowerCase(),a=e.toLowerCase();return n.includes(a)||i.includes(a)||o.includes(a)}const Xe=e=>new Q({options:e.options,initialValue:e.initialValue?[e.initialValue]:void 0,initialUserInput:e.initialUserInput,placeholder:e.placeholder,filter:e.filter??((e,t)=>Je(e,t)),signal:e.signal,input:e.input,output:e.output,validate:e.validate,render(){const t=e.withGuide??q.withGuide,n=t?[`${(0,i.styleText)("gray",_e)}`,`${We(this.state)} ${e.message}`]:[`${We(this.state)} ${e.message}`],o=this.userInput,a=this.options,r=e.placeholder,s=""===o&&void 0!==r,c=(e,t)=>{const n=Ge(e),o=e.hint&&e.value===this.focusedValue?(0,i.styleText)("dim",` (${e.hint})`):"";switch(t){case"active":return`${(0,i.styleText)("green",je)} ${n}${o}`;case"inactive":return`${(0,i.styleText)("dim",Oe)} ${(0,i.styleText)("dim",n)}`;case"disabled":return`${(0,i.styleText)("gray",Oe)} ${(0,i.styleText)(["strikethrough","gray"],n)}`}};switch(this.state){case"submit":{const e=function(e,t){const n=[];for(const i of t)e.includes(i.value)&&n.push(i);return n}(this.selectedValues,a),o=e.length>0?` ${(0,i.styleText)("dim",e.map(Ge).join(", "))}`:"",r=t?(0,i.styleText)("gray",_e):"";return`${n.join("\n")}\n${r}${o}`}case"cancel":{const e=o?` ${(0,i.styleText)(["strikethrough","dim"],o)}`:"",a=t?(0,i.styleText)("gray",_e):"";return`${n.join("\n")}\n${a}${e}`}default:{const l="error"===this.state?"yellow":"cyan",p=t?`${(0,i.styleText)(l,_e)} `:"",u=t?(0,i.styleText)(l,ke):"";let d="";if(this.isNavigating||s){const e=s?r:o;d=""!==e?` ${(0,i.styleText)("dim",e)}`:""}else d=` ${this.userInputWithCursor}`;const m=this.filteredOptions.length!==a.length?(0,i.styleText)("dim",` (${this.filteredOptions.length} match${1===this.filteredOptions.length?"":"es"})`):"",f=0===this.filteredOptions.length&&o?[`${p}${(0,i.styleText)("yellow","No matches found")}`]:[],h="error"===this.state?[`${p}${(0,i.styleText)("yellow",this.error)}`]:[];t&&n.push(`${p.trimEnd()}`),n.push(`${p}${(0,i.styleText)("dim","Search:")}${d}${m}`,...f,...h);const g=[`${(0,i.styleText)("dim","↑/↓")} to select`,`${(0,i.styleText)("dim","Enter:")} confirm`,`${(0,i.styleText)("dim","Type:")} to search`],v=[`${p}${g.join(" • ")}`,u],y=0===this.filteredOptions.length?[]:He({cursor:this.cursor,options:this.filteredOptions,columnPadding:t?3:0,rowPadding:n.length+v.length,style:(e,t)=>c(e,e.disabled?"disabled":t?"active":"inactive"),maxItems:e.maxItems,output:e.output});return[...n,...y.map(e=>`${p}${e}`),...v].join("\n")}}}}).prompt(),Ye=e=>{const t=new Q({options:e.options,multiple:!0,placeholder:e.placeholder,filter:e.filter??((e,t)=>Je(e,t)),validate:()=>{if(e.required&&0===t.selectedValues.length)return"Please select at least one item"},initialValue:e.initialValues,signal:e.signal,input:e.input,output:e.output,render(){const t=e.withGuide??q.withGuide,n=`${t?`${(0,i.styleText)("gray",_e)}\n`:""}${We(this.state)} ${e.message}\n`,o=this.userInput,a=e.placeholder,r=""===o&&void 0!==a,s=this.isNavigating||r?(0,i.styleText)("dim",r?a:o):this.userInputWithCursor,c=this.options,l=this.filteredOptions.length!==c.length?(0,i.styleText)("dim",` (${this.filteredOptions.length} match${1===this.filteredOptions.length?"":"es"})`):"";switch(this.state){case"submit":return`${n}${t?`${(0,i.styleText)("gray",_e)} `:""}${(0,i.styleText)("dim",`${this.selectedValues.length} items selected`)}`;case"cancel":return`${n}${t?`${(0,i.styleText)("gray",_e)} `:""}${(0,i.styleText)(["strikethrough","dim"],o)}`;default:{const a="error"===this.state?"yellow":"cyan",r=t?`${(0,i.styleText)(a,_e)} `:"",c=t?(0,i.styleText)(a,ke):"",p=[`${(0,i.styleText)("dim","↑/↓")} to navigate`,`${(0,i.styleText)("dim",this.isNavigating?"Space/Tab:":"Tab:")} select`,`${(0,i.styleText)("dim","Enter:")} confirm`,`${(0,i.styleText)("dim","Type:")} to search`],u=0===this.filteredOptions.length&&o?[`${r}${(0,i.styleText)("yellow","No matches found")}`]:[],d="error"===this.state?[`${r}${(0,i.styleText)("yellow",this.error)}`]:[],m=[...`${n}${t?(0,i.styleText)(a,_e):""}`.split("\n"),`${r}${(0,i.styleText)("dim","Search:")} ${s}${l}`,...u,...d],f=[`${r}${p.join(" • ")}`,c],h=He({cursor:this.cursor,options:this.filteredOptions,style:(e,t)=>((e,t,n,o)=>{const a=n.includes(e.value),r=e.label??String(e.value??""),s=e.hint&&void 0!==o&&e.value===o?(0,i.styleText)("dim",` (${e.hint})`):"",c=a?(0,i.styleText)("green",Ie):(0,i.styleText)("dim",Ne);return e.disabled?`${(0,i.styleText)("gray",Ne)} ${(0,i.styleText)(["strikethrough","gray"],r)}`:t?`${c} ${r}${s}`:`${c} ${(0,i.styleText)("dim",r)}`})(e,t,this.selectedValues,this.focusedValue),maxItems:e.maxItems,output:e.output,rowPadding:m.length+f.length});return[...m,...h.map(e=>`${r}${e}`),...f].join("\n")}}}});return t.prompt()},Ke=[Me,Le,Fe,De],Ze=[Ce,Ee,ke,Te];function Qe(e,t,n,i){let o=n,a=n;return"center"===i?o=Math.floor((t-e)/2):"right"===i&&(o=t-e-n),a=t-o-e,[o,a]}const et=e=>e,tt=(e="",t="",n)=>{const i=n?.output??process.stdout,o=J(i),a=n?.titlePadding??1,r=n?.contentPadding??2,s=void 0===n?.width||"auto"===n.width?1:Math.min(1,n.width),c=n?.withGuide??q.withGuide?`${_e} `:"",l=n?.formatBorder??et,p=(n?.rounded?Ke:Ze).map(l),u=l(Re),d=l(_e),m=j(c),f=j(t),h=o-m;let g=Math.floor(o*s)-m;if("auto"===n?.width){const t=e.split("\n");let n=f+2*a;for(const e of t){const t=j(e)+2*r;t>n&&(n=t)}const i=n+2;i<g&&(g=i)}g%2!=0&&(g<h?g++:g--);const v=g-2,y=v-2*a,b=f>y?`${t.slice(0,y-3)}...`:t,[x,w]=Qe(j(b),v,a,n?.titleAlign),S=D(e,v-2*r,{hard:!0,trim:!1});i.write(`${c}${p[0]}${u.repeat(x)}${b}${u.repeat(w)}${p[1]}\n`);const C=S.split("\n");for(const e of C){const[t,o]=Qe(j(e),v,r,n?.contentAlign);i.write(`${c}${d}${" ".repeat(t)}${e}${" ".repeat(o)}${d}\n`)}i.write(`${c}${p[2]}${u.repeat(v)}${p[3]}\n`)},nt=e=>{const t=e.active??"Yes",n=e.inactive??"No";return new ee({active:t,inactive:n,signal:e.signal,input:e.input,output:e.output,initialValue:e.initialValue??!0,render(){const o=e.withGuide??q.withGuide,a=`${We(this.state)} `,r=o?`${(0,i.styleText)("gray",_e)} `:"",s=Y(e.output,e.message,r,a),c=`${o?`${(0,i.styleText)("gray",_e)}\n`:""}${s}\n`,l=this.value?t:n;switch(this.state){case"submit":return`${c}${o?`${(0,i.styleText)("gray",_e)} `:""}${(0,i.styleText)("dim",l)}`;case"cancel":return`${c}${o?`${(0,i.styleText)("gray",_e)} `:""}${(0,i.styleText)(["strikethrough","dim"],l)}${o?`\n${(0,i.styleText)("gray",_e)}`:""}`;default:{const a=o?`${(0,i.styleText)("cyan",_e)} `:"",r=o?(0,i.styleText)("cyan",ke):"";return`${c}${a}${this.value?`${(0,i.styleText)("green",je)} ${t}`:`${(0,i.styleText)("dim",Oe)} ${(0,i.styleText)("dim",t)}`}${e.vertical?o?`\n${(0,i.styleText)("cyan",_e)} `:"\n":` ${(0,i.styleText)("dim","/")} `}${this.value?`${(0,i.styleText)("dim",Oe)} ${(0,i.styleText)("dim",n)}`:`${(0,i.styleText)("green",je)} ${n}`}\n${r}\n`}}}}).prompt()},it=e=>{const t=e.validate;return new ce({...e,validate(n){if(void 0===n)return void 0!==e.defaultValue?void 0:t?t(n):q.date.messages.required;const i=e=>e.toISOString().slice(0,10);return e.minDate&&i(n)<i(e.minDate)?q.date.messages.afterMin(e.minDate):e.maxDate&&i(n)>i(e.maxDate)?q.date.messages.beforeMax(e.maxDate):t?t(n):void 0},render(){const t=!1!==(e?.withGuide??q.withGuide),n=`${t?`${(0,i.styleText)("gray",_e)}\n`:""}${We(this.state)} ${e.message}\n`,o=function(e,t){const n=e.segmentValues,o=e.segmentCursor;if("submit"===t||"cancel"===t)return e.formattedValue;const a=(0,i.styleText)("gray",e.separator);return e.segments.map((e,a)=>{const r=a===o.segmentIndex&&!["submit","cancel"].includes(t),s=ot[e.type];return function(e,t){const n=!e||""===e.replace(/_/g,"");return t.isActive?(0,i.styleText)("inverse",n?t.label:e.replace(/_/g," ")):n?(0,i.styleText)("dim",t.label):e.replace(/_/g,(0,i.styleText)("dim"," "))}(n[e.type],{isActive:r,label:s})}).join(a)}(this,"initial"!==this.state?this.state:"active"),a=this.value instanceof Date?this.formattedValue:"";switch(this.state){case"error":{const e=this.error?` ${(0,i.styleText)("yellow",this.error)}`:"",a=t?`${(0,i.styleText)("yellow",_e)} `:"",r=t?(0,i.styleText)("yellow",ke):"";return`${n.trim()}\n${a}${o}\n${r}${e}\n`}case"submit":{const e=a?` ${(0,i.styleText)("dim",a)}`:"";return`${n}${t?(0,i.styleText)("gray",_e):""}${e}`}case"cancel":{const e=a?` ${(0,i.styleText)(["strikethrough","dim"],a)}`:"",o=t?(0,i.styleText)("gray",_e):"";return`${n}${o}${e}${a.trim()?`\n${o}`:""}`}default:{const e=t?`${(0,i.styleText)("cyan",_e)} `:"",a=t?(0,i.styleText)("cyan",ke):"",r=t?`${(0,i.styleText)("cyan",_e)} `:"";return`${n}${e}${o}${this.inlineError?`\n${r}${(0,i.styleText)("yellow",this.inlineError)}`:""}\n${a}\n`}}}}).prompt()},ot={year:"yyyy",month:"mm",day:"dd"},at=async(e,t)=>{const n={},i=Object.keys(e);for(const o of i){const i=e[o],a=await(i({results:n})?.catch(e=>{throw e}));"function"==typeof t?.onCancel&&H(a)?(n[o]="canceled",t.onCancel({results:n})):n[o]=a}return n},rt=e=>{const{selectableGroups:t=!0,groupSpacing:n=0}=e,o=(e,o,a=[])=>{const r=e.label??String(e.value),s="string"==typeof e.group,c=s&&(a[a.indexOf(e)+1]??{group:!0}),l=s&&c&&!0===c.group,p=s?t?`${l?ke:_e} `:" ":"";let u="";if(n>0&&!s){const e=`\n${(0,i.styleText)("cyan",_e)}`;u=`${e.repeat(n-1)}${e} `}if("active"===o)return`${u}${(0,i.styleText)("dim",p)}${(0,i.styleText)("cyan",Ae)} ${r}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`;if("group-active"===o)return`${u}${p}${(0,i.styleText)("cyan",Ae)} ${(0,i.styleText)("dim",r)}`;if("group-active-selected"===o)return`${u}${p}${(0,i.styleText)("green",Ie)} ${(0,i.styleText)("dim",r)}`;if("selected"===o){const n=s||t?(0,i.styleText)("green",Ie):"";return`${u}${(0,i.styleText)("dim",p)}${n} ${(0,i.styleText)("dim",r)}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`}if("cancelled"===o)return`${(0,i.styleText)(["strikethrough","dim"],r)}`;if("active-selected"===o)return`${u}${(0,i.styleText)("dim",p)}${(0,i.styleText)("green",Ie)} ${r}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`;if("submitted"===o)return`${(0,i.styleText)("dim",r)}`;const d=s||t?(0,i.styleText)("dim",Ne):"";return`${u}${(0,i.styleText)("dim",p)}${d} ${(0,i.styleText)("dim",r)}`},a=e.required??!0;return new le({options:e.options,signal:e.signal,input:e.input,output:e.output,initialValues:e.initialValues,required:a,cursorAt:e.cursorAt,selectableGroups:t,validate(e){if(a&&(void 0===e||0===e.length))return`Please select at least one option.\n${(0,i.styleText)("reset",(0,i.styleText)("dim",`Press ${(0,i.styleText)(["gray","bgWhite","inverse"]," space ")} to select, ${(0,i.styleText)("gray",(0,i.styleText)(["bgWhite","inverse"]," enter "))} to submit`))}`},render(){const t=e.withGuide??q.withGuide,n=`${t?`${(0,i.styleText)("gray",_e)}\n`:""}${We(this.state)} ${e.message}\n`,a=this.value??[];switch(this.state){case"submit":{const e=this.options.filter(({value:e})=>a.includes(e)).map(e=>o(e,"submitted")),r=0===e.length?"":` ${e.join((0,i.styleText)("dim",", "))}`;return`${n}${t?(0,i.styleText)("gray",_e):""}${r}`}case"cancel":{const e=this.options.filter(({value:e})=>a.includes(e)).map(e=>o(e,"cancelled")).join((0,i.styleText)("dim",", "));return`${n}${t?`${(0,i.styleText)("gray",_e)} `:""}${e.trim()?`${e}${t?`\n${(0,i.styleText)("gray",_e)}`:""}`:""}`}case"error":{const e=this.error.split("\n").map((e,n)=>0===n?`${t?`${(0,i.styleText)("yellow",ke)} `:""}${(0,i.styleText)("yellow",e)}`:` ${e}`).join("\n");return`${n}${t?`${(0,i.styleText)("yellow",_e)} `:""}${this.options.map((e,t,n)=>{const i=a.includes(e.value)||!0===e.group&&this.isGroupSelected(`${e.value}`),r=t===this.cursor;return r||"string"!=typeof e.group||this.options[this.cursor].value!==e.group?o(e,r&&i?"active-selected":i?"selected":r?"active":"inactive",n):o(e,i?"group-active-selected":"group-active",n)}).join("\n"+(t?`${(0,i.styleText)("yellow",_e)} `:""))}\n${e}\n`}default:{const e=this.options.map((e,t,n)=>{const i=a.includes(e.value)||!0===e.group&&this.isGroupSelected(`${e.value}`),r=t===this.cursor,s=!r&&"string"==typeof e.group&&this.options[this.cursor].value===e.group;let c="";return c=o(e,s?i?"group-active-selected":"group-active":r&&i?"active-selected":i?"selected":r?"active":"inactive",n),`${0===t||c.startsWith("\n")?"":" "}${c}`}).join(`\n${t?(0,i.styleText)("cyan",_e):""}`),r=e.startsWith("\n")?"":" ";return`${n}${t?(0,i.styleText)("cyan",_e):""}${r}${e}\n${t?(0,i.styleText)("cyan",ke):""}\n`}}}}).prompt()},st={message:(e=[],{symbol:t=(0,i.styleText)("gray",_e),secondarySymbol:n=(0,i.styleText)("gray",_e),output:o=process.stdout,spacing:a=1,withGuide:r}={})=>{const s=[],c=r??q.withGuide,l=c?n:"",p=c?`${t} `:"",u=c?`${n} `:"";for(let e=0;e<a;e++)s.push(l);const d=Array.isArray(e)?e:e.split("\n");if(d.length>0){const[e,...i]=d;e.length>0?s.push(`${p}${e}`):s.push(c?t:"");for(const e of i)e.length>0?s.push(`${u}${e}`):s.push(c?n:"")}o.write(`${s.join("\n")}\n`)},info:(e,t)=>{st.message(e,{...t,symbol:(0,i.styleText)("blue",Be)})},success:(e,t)=>{st.message(e,{...t,symbol:(0,i.styleText)("green",qe)})},step:(e,t)=>{st.message(e,{...t,symbol:(0,i.styleText)("green",Se)})},warn:(e,t)=>{st.message(e,{...t,symbol:(0,i.styleText)("yellow",ze)})},warning:(e,t)=>{st.warn(e,t)},error:(e,t)=>{st.message(e,{...t,symbol:(0,i.styleText)("red",Ue)})}},ct=(e="",t)=>{const n=t?.output??process.stdout,o=t?.withGuide??q.withGuide?`${(0,i.styleText)("gray",ke)} `:"";n.write(`${o}${(0,i.styleText)("red",e)}\n\n`)},lt=(e="",t)=>{const n=t?.output??process.stdout,o=t?.withGuide??q.withGuide?`${(0,i.styleText)("gray",Ce)} `:"";n.write(`${o}${e}\n`)},pt=(e="",t)=>{const n=t?.output??process.stdout,o=t?.withGuide??q.withGuide?`${(0,i.styleText)("gray",_e)}\n${(0,i.styleText)("gray",ke)} `:"";n.write(`${o}${e}\n\n`)},ut=(e,t)=>e.split("\n").map(e=>t(e)).join("\n"),dt=e=>{const t=(e,t)=>{const n=e.label??String(e.value);return"disabled"===t?`${(0,i.styleText)("gray",Ne)} ${ut(n,e=>(0,i.styleText)(["strikethrough","gray"],e))}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint??"disabled"})`)}`:""}`:"active"===t?`${(0,i.styleText)("cyan",Ae)} ${n}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`:"selected"===t?`${(0,i.styleText)("green",Ie)} ${ut(n,e=>(0,i.styleText)("dim",e))}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`:"cancelled"===t?`${ut(n,e=>(0,i.styleText)(["strikethrough","dim"],e))}`:"active-selected"===t?`${(0,i.styleText)("green",Ie)} ${n}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`:"submitted"===t?`${ut(n,e=>(0,i.styleText)("dim",e))}`:`${(0,i.styleText)("dim",Ne)} ${ut(n,e=>(0,i.styleText)("dim",e))}`},n=e.required??!0;return new pe({options:e.options,signal:e.signal,input:e.input,output:e.output,initialValues:e.initialValues,required:n,cursorAt:e.cursorAt,validate(e){if(n&&(void 0===e||0===e.length))return`Please select at least one option.\n${(0,i.styleText)("reset",(0,i.styleText)("dim",`Press ${(0,i.styleText)(["gray","bgWhite","inverse"]," space ")} to select, ${(0,i.styleText)("gray",(0,i.styleText)("bgWhite",(0,i.styleText)("inverse"," enter ")))} to submit`))}`},render(){const n=e.withGuide??q.withGuide,o=Y(e.output,e.message,n?`${Ve(this.state)} `:"",`${We(this.state)} `),a=`${n?`${(0,i.styleText)("gray",_e)}\n`:""}${o}\n`,r=this.value??[],s=(e,n)=>{if(e.disabled)return t(e,"disabled");const i=r.includes(e.value);return t(e,n&&i?"active-selected":i?"selected":n?"active":"inactive")};switch(this.state){case"submit":{const o=this.options.filter(({value:e})=>r.includes(e)).map(e=>t(e,"submitted")).join((0,i.styleText)("dim",", "))||(0,i.styleText)("dim","none");return`${a}${Y(e.output,o,n?`${(0,i.styleText)("gray",_e)} `:"")}`}case"cancel":{const o=this.options.filter(({value:e})=>r.includes(e)).map(e=>t(e,"cancelled")).join((0,i.styleText)("dim",", "));return""===o.trim()?`${a}${(0,i.styleText)("gray",_e)}`:`${a}${Y(e.output,o,n?`${(0,i.styleText)("gray",_e)} `:"")}${n?`\n${(0,i.styleText)("gray",_e)}`:""}`}case"error":{const t=n?`${(0,i.styleText)("yellow",_e)} `:"",o=this.error.split("\n").map((e,t)=>0===t?`${n?`${(0,i.styleText)("yellow",ke)} `:""}${(0,i.styleText)("yellow",e)}`:` ${e}`).join("\n"),r=a.split("\n").length,c=o.split("\n").length+1;return`${a}${t}${He({output:e.output,options:this.options,cursor:this.cursor,maxItems:e.maxItems,columnPadding:t.length,rowPadding:r+c,style:s}).join(`\n${t}`)}\n${o}\n`}default:{const t=n?`${(0,i.styleText)("cyan",_e)} `:"",o=a.split("\n").length,r=n?2:1;return`${a}${t}${He({output:e.output,options:this.options,cursor:this.cursor,maxItems:e.maxItems,columnPadding:t.length,rowPadding:o+r,style:s}).join(`\n${t}`)}\n${n?(0,i.styleText)("cyan",ke):""}\n`}}}}).prompt()},mt=e=>(0,i.styleText)("dim",e),ft=(e,t,n)=>{const i={hard:!0,trim:!1},o=D(e,t,i).split("\n"),a=o.reduce((e,t)=>Math.max(j(t),e),0);return D(e,t-(o.map(n).reduce((e,t)=>Math.max(j(t),e),0)-a),i)},ht=(e="",t="",n)=>{const a=n?.output??o.default.stdout,r=n?.withGuide??q.withGuide,s=n?.format??mt,c=["",...ft(e,J(a)-6,s).split("\n").map(s),""],l=j(t),p=Math.max(c.reduce((e,t)=>{const n=j(t);return n>e?n:e},0),l)+2,u=c.map(e=>`${(0,i.styleText)("gray",_e)} ${e}${" ".repeat(p-j(e))}${(0,i.styleText)("gray",_e)}`).join("\n"),d=r?`${(0,i.styleText)("gray",_e)}\n`:"",m=r?$e:Fe;a.write(`${d}${(0,i.styleText)("green",Se)} ${(0,i.styleText)("reset",t)} ${(0,i.styleText)("gray",Re.repeat(Math.max(p-l-1,1))+Le)}\n${u}\n${(0,i.styleText)("gray",m+Re.repeat(p+2)+De)}\n`)},gt=e=>new ue({validate:e.validate,mask:e.mask??Pe,signal:e.signal,input:e.input,output:e.output,render(){const t=e.withGuide??q.withGuide,n=`${t?`${(0,i.styleText)("gray",_e)}\n`:""}${We(this.state)} ${e.message}\n`,o=this.userInputWithCursor,a=this.masked;switch(this.state){case"error":{const o=t?`${(0,i.styleText)("yellow",_e)} `:"",r=t?`${(0,i.styleText)("yellow",ke)} `:"",s=a??"";return e.clearOnError&&this.clear(),`${n.trim()}\n${o}${s}\n${r}${(0,i.styleText)("yellow",this.error)}\n`}case"submit":return`${n}${t?`${(0,i.styleText)("gray",_e)} `:""}${a?(0,i.styleText)("dim",a):""}`;case"cancel":return`${n}${t?`${(0,i.styleText)("gray",_e)} `:""}${a?(0,i.styleText)(["strikethrough","dim"],a):""}${a&&t?`\n${(0,i.styleText)("gray",_e)}`:""}`;default:return`${n}${t?`${(0,i.styleText)("cyan",_e)} `:""}${o}\n${t?(0,i.styleText)("cyan",ke):""}\n`}}}).prompt(),vt=e=>{const t=e.validate;return Xe({...e,initialUserInput:e.initialValue??e.root??process.cwd(),maxItems:5,validate(e){if(!Array.isArray(e)){if(!e)return"Please select a path";if(t)return t(e)}},options(){const t=this.userInput;if(""===t)return[];try{let n;n=p(t)?!u(t).isDirectory()||e.directory&&!t.endsWith("/")?m(t):t:m(t);const i=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;return d(n).map(e=>{const t=f(n,e);return{name:e,path:t,isDirectory:u(t).isDirectory()}}).filter(({path:t,isDirectory:n})=>t.startsWith(i)&&(n||!e.directory)).map(e=>({value:e.path}))}catch{return[]}}})},yt=e=>(0,i.styleText)("magenta",e),bt=({indicator:e="dots",onCancel:t,output:n=process.stdout,cancelMessage:s,errorMessage:p,frames:u=(he?["◒","◐","◓","◑"]:["•","o","O","0"]),delay:d=(he?80:120),signal:m,...f}={})=>{const h=ge();let g,v,y,b=!1,x=!1,w="",S=performance.now();const C=J(n),_=f?.styleFrame??yt,k=e=>{const n=e>1?p??q.messages.error:s??q.messages.cancel;x=1===e,b&&(N(n,e),x&&"function"==typeof t&&t())},E=()=>k(2),T=()=>k(1),j=()=>{if(void 0===y)return;h&&n.write("\n");const e=D(y,C,{hard:!0,trim:!1}).split("\n");e.length>1&&n.write(F.cursor.up(e.length-1)),n.write(F.cursor.to(0)),n.write(F.erase.down())},O=e=>e.replace(/\.+$/,""),A=e=>{const t=(performance.now()-e)/1e3,n=Math.floor(t/60),i=Math.floor(t%60);return n>0?`[${n}m ${i}s]`:`[${i}s]`},I=f.withGuide??q.withGuide,N=(t="",o=0,a=!1)=>{if(!b)return;b=!1,clearInterval(v),j();const r=0===o?(0,i.styleText)("green",Se):1===o?(0,i.styleText)("red",xe):(0,i.styleText)("red",we);w=t??w,a||("timer"===e?n.write(`${r} ${w} ${A(S)}\n`):n.write(`${r} ${w}\n`)),process.removeListener("uncaughtExceptionMonitor",E),process.removeListener("unhandledRejection",E),process.removeListener("SIGINT",T),process.removeListener("SIGTERM",T),process.removeListener("exit",k),m&&m.removeEventListener("abort",T),g()};return{start:(t="")=>{b=!0,g=function({input:e=o.stdin,output:t=o.stdout,overwrite:n=!0,hideCursor:i=!0}={}){const s=r({input:e,output:t,prompt:"",tabSize:1});c(e,s),e instanceof M.ReadStream&&e.isTTY&&e.setRawMode(!0);const p=(o,{name:r,sequence:s})=>{if(U([String(o),r,s],"cancel"))return i&&t.write(F.cursor.show),void process.exit(0);n&&l(t,"return"===r?0:-1,"return"===r?-1:0,()=>{a(t,1,()=>{e.once("keypress",p)})})};return i&&t.write(F.cursor.hide),e.once("keypress",p),()=>{e.off("keypress",p),i&&t.write(F.cursor.show),e instanceof M.ReadStream&&e.isTTY&&!W&&e.setRawMode(!1),s.terminal=!1,s.close()}}({output:n}),w=O(t),S=performance.now(),I&&n.write(`${(0,i.styleText)("gray",_e)}\n`);let s=0,p=0;process.on("uncaughtExceptionMonitor",E),process.on("unhandledRejection",E),process.on("SIGINT",T),process.on("SIGTERM",T),process.on("exit",k),m&&m.addEventListener("abort",T),v=setInterval(()=>{if(h&&w===y)return;j(),y=w;const t=_(u[s]);let i;if(h)i=`${t} ${w}...`;else if("timer"===e)i=`${t} ${w} ${A(S)}`;else{const e=".".repeat(Math.floor(p)).slice(0,3);i=`${t} ${w}${e}`}const o=D(i,C,{hard:!0,trim:!1});n.write(o),s=s+1<u.length?s+1:0,p=p<4?p+.125:0},d)},stop:(e="")=>N(e,0),message:(e="")=>{w=O(e??w)},cancel:(e="")=>N(e,1),error:(e="")=>N(e,2),clear:()=>N("",0,!0),get isCancelled(){return x}}},xt={light:ye("─","-"),heavy:ye("━","="),block:ye("█","#")};function wt({style:e="heavy",max:t=100,size:n=40,...o}={}){const a=bt(o);let r=0,s="";const c=Math.max(1,t),l=Math.max(1,n),p=(t,n)=>{const o=Math.floor(r/c*l);return`${(e=>{switch(e){case"initial":case"active":default:return e=>(0,i.styleText)("magenta",e);case"error":case"cancel":return e=>(0,i.styleText)("red",e);case"submit":return e=>(0,i.styleText)("green",e)}})(t)(xt[e].repeat(o))}${(0,i.styleText)("dim",xt[e].repeat(l-o))} ${n}`},u=(e=1,t)=>{r=Math.min(c,e+r),a.message(p("active",t??s)),s=t??s};return{start:(e="")=>{s=e,a.start(p("initial",e))},stop:a.stop,cancel:a.cancel,error:a.error,clear:a.clear,advance:u,isCancelled:a.isCancelled,message:e=>u(0,e)}}const St=(e,t)=>e.includes("\n")?e.split("\n").map(e=>t(e)).join("\n"):t(e),Ct=e=>{const t=(e,t)=>{const n=e.label??String(e.value);switch(t){case"disabled":return`${(0,i.styleText)("gray",Oe)} ${St(n,e=>(0,i.styleText)("gray",e))}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint??"disabled"})`)}`:""}`;case"selected":return`${St(n,e=>(0,i.styleText)("dim",e))}`;case"active":return`${(0,i.styleText)("green",je)} ${n}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`;case"cancelled":return`${St(n,e=>(0,i.styleText)(["strikethrough","dim"],e))}`;default:return`${(0,i.styleText)("dim",Oe)} ${St(n,e=>(0,i.styleText)("dim",e))}`}};return new de({options:e.options,signal:e.signal,input:e.input,output:e.output,initialValue:e.initialValue,render(){const n=e.withGuide??q.withGuide,o=`${We(this.state)} `,a=`${Ve(this.state)} `,r=Y(e.output,e.message,a,o),s=`${n?`${(0,i.styleText)("gray",_e)}\n`:""}${r}\n`;switch(this.state){case"submit":{const o=n?`${(0,i.styleText)("gray",_e)} `:"";return`${s}${Y(e.output,t(this.options[this.cursor],"selected"),o)}`}case"cancel":{const o=n?`${(0,i.styleText)("gray",_e)} `:"";return`${s}${Y(e.output,t(this.options[this.cursor],"cancelled"),o)}${n?`\n${(0,i.styleText)("gray",_e)}`:""}`}default:{const o=n?`${(0,i.styleText)("cyan",_e)} `:"",a=n?(0,i.styleText)("cyan",ke):"",r=s.split("\n").length,c=n?2:1;return`${s}${o}${He({output:e.output,cursor:this.cursor,options:this.options,maxItems:e.maxItems,columnPadding:o.length,rowPadding:r+c,style:(e,n)=>t(e,e.disabled?"disabled":n?"active":"inactive")}).join(`\n${o}`)}\n${a}\n`}}}}).prompt()},_t=e=>{const t=(e,t="inactive")=>{const n=e.label??String(e.value);return"selected"===t?`${(0,i.styleText)("dim",n)}`:"cancelled"===t?`${(0,i.styleText)(["strikethrough","dim"],n)}`:"active"===t?`${(0,i.styleText)(["bgCyan","gray"],` ${e.value} `)} ${n}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`:`${(0,i.styleText)(["gray","bgWhite","inverse"],` ${e.value} `)} ${n}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`};return new me({options:e.options,signal:e.signal,input:e.input,output:e.output,initialValue:e.initialValue,caseSensitive:e.caseSensitive,render(){const n=e.withGuide??q.withGuide,o=`${n?`${(0,i.styleText)("gray",_e)}\n`:""}${We(this.state)} ${e.message}\n`;switch(this.state){case"submit":{const a=n?`${(0,i.styleText)("gray",_e)} `:"",r=this.options.find(e=>e.value===this.value)??e.options[0];return`${o}${Y(e.output,t(r,"selected"),a)}`}case"cancel":{const a=n?`${(0,i.styleText)("gray",_e)} `:"";return`${o}${Y(e.output,t(this.options[0],"cancelled"),a)}${n?`\n${(0,i.styleText)("gray",_e)}`:""}`}default:{const a=n?`${(0,i.styleText)("cyan",_e)} `:"",r=n?(0,i.styleText)("cyan",ke):"";return`${o}${this.options.map((n,i)=>Y(e.output,t(n,i===this.cursor?"active":"inactive"),a)).join("\n")}\n${r}\n`}}}}).prompt()},kt=`${(0,i.styleText)("gray",_e)} `,Et={message:async(e,{symbol:t=(0,i.styleText)("gray",_e)}={})=>{process.stdout.write(`${(0,i.styleText)("gray",_e)}\n${t} `);let n=3;for await(let t of e){t=t.replace(/\n/g,`\n${kt}`),t.includes("\n")&&(n=3+(0,i.stripVTControlCharacters)(t.slice(t.lastIndexOf("\n"))).length);const e=(0,i.stripVTControlCharacters)(t).length;n+e<process.stdout.columns?(n+=e,process.stdout.write(t)):(process.stdout.write(`\n${kt}${t.trimStart()}`),n=3+(0,i.stripVTControlCharacters)(t.trimStart()).length)}process.stdout.write("\n")},info:e=>Et.message(e,{symbol:(0,i.styleText)("blue",Be)}),success:e=>Et.message(e,{symbol:(0,i.styleText)("green",qe)}),step:e=>Et.message(e,{symbol:(0,i.styleText)("green",Se)}),warn:e=>Et.message(e,{symbol:(0,i.styleText)("yellow",ze)}),warning:e=>Et.warn(e),error:e=>Et.message(e,{symbol:(0,i.styleText)("red",Ue)})},Tt=async(e,t)=>{for(const n of e){if(!1===n.enabled)continue;const e=bt(t);e.start(n.title);const i=await n.task(e.message);e.stop(i||n.title)}},jt=e=>{const t=e.output??process.stdout,n=J(t),o=(0,i.styleText)("gray",_e),a=e.spacing??1,r=!0===e.retainLog,s=!ge()&&ve(t);t.write(`${o}\n`),t.write(`${(0,i.styleText)("green",Se)} ${e.title}\n`);for(let e=0;e<a;e++)t.write(`${o}\n`);const c=[{value:"",full:""}];let l=!1;const p=e=>{if(0===c.length)return;let i=0;e&&(i+=a+2);for(const e of c){const{value:t,result:o}=e;let a=o?.message??t;if(0===a.length)continue;void 0===o&&void 0!==e.header&&""!==e.header&&(a+=`\n${e.header}`);i+=a.split("\n").reduce((e,t)=>""===t?e+1:e+Math.ceil((t.length+3)/n),0)}i>0&&(i+=1,t.write(F.erase.lines(i)))},u=(e,n,r)=>{const s=r?`${e.full}\n${e.value}`:e.value;void 0!==e.header&&""!==e.header&&st.message(e.header.split("\n").map(e=>(0,i.styleText)("bold",e)),{output:t,secondarySymbol:o,symbol:o,spacing:0}),st.message(s.split("\n").map(e=>(0,i.styleText)("dim",e)),{output:t,secondarySymbol:o,symbol:o,spacing:n??a})},d=()=>{for(const e of c){const{header:t,value:n,full:i}=e;(void 0===t||0===t.length)&&0===n.length||u(e,void 0,!0===r&&i.length>0)}},m=(t,n,i)=>{if(p(!1),(!0!==i?.raw||!l)&&""!==t.value&&(t.value+="\n"),t.value+=(e=>e.replace(/\x1b\[(?:\d+;)*\d*[ABCDEFGHfJKSTsu]|\x1b\[(s|u)/g,""))(n),l=!0===i?.raw,void 0!==e.limit){const n=t.value.split("\n"),i=n.length-e.limit;if(i>0){const e=n.splice(0,i);r&&(t.full+=(""===t.full?"":"\n")+e.join("\n"))}t.value=n.join("\n")}s&&f()},f=()=>{for(const e of c)e.result?"error"===e.result.status?st.error(e.result.message,{output:t,secondarySymbol:o,spacing:0}):st.success(e.result.message,{output:t,secondarySymbol:o,spacing:0}):""!==e.value&&u(e,0)},h=(e,t)=>{p(!1),e.result=t,s&&f()};return{message(e,t){m(c[0],e,t)},group(e){const t={header:e,value:"",full:""};return c.push(t),{message(e,n){m(t,e,n)},error(e){h(t,{status:"error",message:e})},success(e){h(t,{status:"success",message:e})}}},error(e,n){p(!0),st.error(e,{output:t,secondarySymbol:o,spacing:1}),!1!==n?.showLog&&d(),c.splice(1,c.length-1),c[0].value="",c[0].full=""},success(e,n){p(!0),st.success(e,{output:t,secondarySymbol:o,spacing:1}),!0===n?.showLog&&d(),c.splice(1,c.length-1),c[0].value="",c[0].full=""}}},Ot=e=>new fe({validate:e.validate,placeholder:e.placeholder,defaultValue:e.defaultValue,initialValue:e.initialValue,output:e.output,signal:e.signal,input:e.input,render(){const t=e?.withGuide??q.withGuide,n=`${t?`${(0,i.styleText)("gray",_e)}\n`:""}${We(this.state)} ${e.message}\n`,o=e.placeholder?(0,i.styleText)("inverse",e.placeholder[0])+(0,i.styleText)("dim",e.placeholder.slice(1)):(0,i.styleText)(["inverse","hidden"],"_"),a=this.userInput?this.userInputWithCursor:o,r=this.value??"";switch(this.state){case"error":{const e=this.error?` ${(0,i.styleText)("yellow",this.error)}`:"",o=t?`${(0,i.styleText)("yellow",_e)} `:"",r=t?(0,i.styleText)("yellow",ke):"";return`${n.trim()}\n${o}${a}\n${r}${e}\n`}case"submit":{const e=r?` ${(0,i.styleText)("dim",r)}`:"";return`${n}${t?(0,i.styleText)("gray",_e):""}${e}`}case"cancel":{const e=r?` ${(0,i.styleText)(["strikethrough","dim"],r)}`:"",o=t?(0,i.styleText)("gray",_e):"";return`${n}${o}${e}${r.trim()?`\n${o}`:""}`}default:return`${n}${t?`${(0,i.styleText)("cyan",_e)} `:""}${a}\n${t?(0,i.styleText)("cyan",ke):""}\n`}}}).prompt()},6194(e,t,n){n.d(t,{Chalk:()=>j,backgroundColorNames:()=>l,backgroundColors:()=>l,chalkStderr:()=>F,colorNames:()=>p,colors:()=>p,default:()=>M,foregroundColorNames:()=>c,foregroundColors:()=>c,modifierNames:()=>s,modifiers:()=>s,supportsColor:()=>w,supportsColorStderr:()=>S}),n.r(t);const i=(e=0)=>t=>`[${t+e}m`,o=(e=0)=>t=>`[${38+e};5;${t}m`,a=(e=0)=>(t,n,i)=>`[${38+e};2;${t};${n};${i}m`,r={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]}},s=Object.keys(r.modifier),c=Object.keys(r.color),l=Object.keys(r.bgColor),p=[...c,...l],u=function(){const e=new Map;for(const[t,n]of Object.entries(r)){for(const[t,i]of Object.entries(n))r[t]={open:`[${i[0]}m`,close:`[${i[1]}m`},n[t]=r[t],e.set(i[0],i[1]);Object.defineProperty(r,t,{value:n,enumerable:!1})}return Object.defineProperty(r,"codes",{value:e,enumerable:!1}),r.color.close="",r.bgColor.close="",r.color.ansi=i(),r.color.ansi256=o(),r.color.ansi16m=a(),r.bgColor.ansi=i(10),r.bgColor.ansi256=o(10),r.bgColor.ansi16m=a(10),Object.defineProperties(r,{rgbToAnsi256:{value:(e,t,n)=>e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;3===n.length&&(n=[...n].map(e=>e+e).join(""));const i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},enumerable:!1},hexToAnsi256:{value:e=>r.rgbToAnsi256(...r.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let t,n,i;if(e>=232)t=(10*(e-232)+8)/255,n=t,i=t;else{const o=(e-=16)%36;t=Math.floor(e/36)/5,n=Math.floor(o/6)/5,i=o%6/5}const o=2*Math.max(t,n,i);if(0===o)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(t));return 2===o&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>r.ansi256ToAnsi(r.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>r.ansi256ToAnsi(r.hexToAnsi256(e)),enumerable:!1}}),r}();var d=n(7721),m=n(2607);function f(e,t=(globalThis.Deno?globalThis.Deno.args:d.default.argv)){const n=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(n+e),o=t.indexOf("--");return-1!==i&&(-1===o||i<o)}const{env:g}=d.default;let v;function y(e,t={}){return 0!==(n=function(e,{streamIsTTY:t,sniffFlags:n=!0}={}){const i=function(){if("FORCE_COLOR"in g)return"true"===g.FORCE_COLOR?1:"false"===g.FORCE_COLOR?0:0===g.FORCE_COLOR.length?1:Math.min(Number.parseInt(g.FORCE_COLOR,10),3)}();void 0!==i&&(v=i);const o=n?v:i;if(0===o)return 0;if(n){if(f("color=16m")||f("color=full")||f("color=truecolor"))return 3;if(f("color=256"))return 2}if("TF_BUILD"in g&&"AGENT_NAME"in g)return 1;if(e&&!t&&void 0===o)return 0;const a=o||0;if("dumb"===g.TERM)return a;if("win32"===d.default.platform){const e=h.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in g)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(e=>e in g)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(e=>e in g)||"codeship"===g.CI_NAME?1:a;if("TEAMCITY_VERSION"in g)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(g.TEAMCITY_VERSION)?1:0;if("truecolor"===g.COLORTERM)return 3;if("xterm-kitty"===g.TERM)return 3;if("xterm-ghostty"===g.TERM)return 3;if("wezterm"===g.TERM)return 3;if("TERM_PROGRAM"in g){const e=Number.parseInt((g.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(g.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(g.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(g.TERM)||"COLORTERM"in g?1:a}(e,{streamIsTTY:e&&e.isTTY,...t}))&&{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3};var n}f("no-color")||f("no-colors")||f("color=false")||f("color=never")?v=0:(f("color")||f("colors")||f("color=true")||f("color=always"))&&(v=1);const b={stdout:y({isTTY:m.default.isatty(1)}),stderr:y({isTTY:m.default.isatty(2)})};function x(e,t,n){let i=e.indexOf(t);if(-1===i)return e;const o=t.length;let a=0,r="";do{r+=e.slice(a,i)+t+n,a=i+o,i=e.indexOf(t,a)}while(-1!==i);return r+=e.slice(a),r}const{stdout:w,stderr:S}=b,C=Symbol("GENERATOR"),_=Symbol("STYLER"),k=Symbol("IS_EMPTY"),E=["ansi","ansi","ansi256","ansi16m"],T=Object.create(null);class j{constructor(e){return O(e)}}const O=e=>{const t=(...e)=>e.join(" ");return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=w?w.level:0;e.level=void 0===t.level?n:t.level})(t,e),Object.setPrototypeOf(t,A.prototype),t};function A(e){return O(e)}Object.setPrototypeOf(A.prototype,Function.prototype);for(const[e,t]of Object.entries(u))T[e]={get(){const n=L(this,R(t.open,t.close,this[_]),this[k]);return Object.defineProperty(this,e,{value:n}),n}};T.visible={get(){const e=L(this,this[_],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const I=(e,t,n,...i)=>"rgb"===e?"ansi16m"===t?u[n].ansi16m(...i):"ansi256"===t?u[n].ansi256(u.rgbToAnsi256(...i)):u[n].ansi(u.rgbToAnsi(...i)):"hex"===e?I("rgb",t,n,...u.hexToRgb(...i)):u[n][e](...i),N=["rgb","hex","ansi256"];for(const e of N)T[e]={get(){const{level:t}=this;return function(...n){const i=R(I(e,E[t],"color",...n),u.color.close,this[_]);return L(this,i,this[k])}}},T["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const i=R(I(e,E[t],"bgColor",...n),u.bgColor.close,this[_]);return L(this,i,this[k])}}};const P=Object.defineProperties(()=>{},{...T,level:{enumerable:!0,get(){return this[C].level},set(e){this[C].level=e}}}),R=(e,t,n)=>{let i,o;return void 0===n?(i=e,o=t):(i=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:i,closeAll:o,parent:n}},L=(e,t,n)=>{const i=(...e)=>$(i,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(i,P),i[C]=e,i[_]=t,i[k]=n,i},$=(e,t)=>{if(e.level<=0||!t)return e[k]?"":t;let n=e[_];if(void 0===n)return t;const{openAll:i,closeAll:o}=n;if(t.includes(""))for(;void 0!==n;)t=x(t,n.close,n.open),n=n.parent;const a=t.indexOf("\n");return-1!==a&&(t=function(e,t,n,i){let o=0,a="";do{const r="\r"===e[i-1];a+=e.slice(o,r?i-1:i)+t+(r?"\r\n":"\n")+n,o=i+1,i=e.indexOf("\n",o)}while(-1!==i);return a+=e.slice(o),a}(t,o,i,a)),i+t+o};Object.defineProperties(A.prototype,T);const D=A(),F=A({level:S?S.level:0}),M=D},9742(e,t,n){n.d(t,{default:()=>Ce,oraPromise:()=>_e,spinners:()=>N}),n.r(t);var i=n(7721),o=n(4472),a=n(6194);const r=(e,t,n,i)=>{if("length"===n||"prototype"===n)return;if("arguments"===n||"caller"===n)return;const o=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(t,n);!s(o,a)&&i||Object.defineProperty(e,n,a)},s=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},c=(e,t)=>`/* Wrapped ${e}*/\n${t}`,l=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),p=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");const u=new WeakMap,d=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,i=0;const o=e.displayName||e.name||"<anonymous>",a=function(...r){if(u.set(a,++i),1===i)n=e.apply(this,r),e=void 0;else if(!0===t.throw)throw new Error(`Function \`${o}\` can only be called once`);return n};return function(e,t,{ignoreNonConfigurable:n=!1}={}){const{name:i}=e;for(const i of Reflect.ownKeys(t))r(e,t,i,n);((e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)})(e,t),((e,t,n)=>{const i=""===n?"":`with ${n.trim()}() `,o=c.bind(null,i,t.toString());Object.defineProperty(o,"name",p);const{writable:a,enumerable:r,configurable:s}=l;Object.defineProperty(e,"toString",{value:o,writable:a,enumerable:r,configurable:s})})(e,t,i)}(a,e),u.set(a,i),a};d.callCount=e=>{if(!u.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return u.get(e)};const m=d,f=[];f.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&f.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&f.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const h=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,g=Symbol.for("signal-exit emitter"),v=globalThis,y=Object.defineProperty.bind(Object);class b{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(v[g])return v[g];y(v,g,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const n=this.listeners[e],i=n.indexOf(t);-1!==i&&(0===i&&1===n.length?n.length=0:n.splice(i,1))}emit(e,t,n){if(this.emitted[e])return!1;this.emitted[e]=!0;let i=!1;for(const o of this.listeners[e])i=!0===o(t,n)||i;return"exit"===e&&(i=this.emit("afterExit",t,n)||i),i}}class x{}const w=globalThis.process,{onExit:S,load:C,unload:_}=(k=h(w)?new class extends x{#v="win32"===w.platform?"SIGINT":"SIGHUP";#y=new b;#b;#x;#w;#S={};#C=!1;constructor(e){super(),this.#b=e,this.#S={};for(const t of f)this.#S[t]=()=>{const n=this.#b.listeners(t);let{count:i}=this.#y;const o=e;if("object"==typeof o.__signal_exit_emitter__&&"number"==typeof o.__signal_exit_emitter__.count&&(i+=o.__signal_exit_emitter__.count),n.length===i){this.unload();const n=this.#y.emit("exit",null,t),i="SIGHUP"===t?this.#v:t;n||e.kill(e.pid,i)}};this.#w=e.reallyExit,this.#x=e.emit}onExit(e,t){if(!h(this.#b))return()=>{};!1===this.#C&&this.load();const n=t?.alwaysLast?"afterExit":"exit";return this.#y.on(n,e),()=>{this.#y.removeListener(n,e),0===this.#y.listeners.exit.length&&0===this.#y.listeners.afterExit.length&&this.unload()}}load(){if(!this.#C){this.#C=!0,this.#y.count+=1;for(const e of f)try{const t=this.#S[e];t&&this.#b.on(e,t)}catch(e){}this.#b.emit=(e,...t)=>this.#_(e,...t),this.#b.reallyExit=e=>this.#k(e)}}unload(){this.#C&&(this.#C=!1,f.forEach(e=>{const t=this.#S[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#b.removeListener(e,t)}catch(e){}}),this.#b.emit=this.#x,this.#b.reallyExit=this.#w,this.#y.count-=1)}#k(e){return h(this.#b)?(this.#b.exitCode=e||0,this.#y.emit("exit",this.#b.exitCode,null),this.#w.call(this.#b,this.#b.exitCode)):0}#_(e,...t){const n=this.#x;if("exit"===e&&h(this.#b)){"number"==typeof t[0]&&(this.#b.exitCode=t[0]);const i=n.call(this.#b,e,...t);return this.#y.emit("exit",this.#b.exitCode,null),i}return n.call(this.#b,e,...t)}}(w):new class extends x{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>k.onExit(e,t),load:()=>k.load(),unload:()=>k.unload()});var k;const E=i.default.stderr.isTTY?i.default.stderr:i.default.stdout.isTTY?i.default.stdout:void 0,T=E?m(()=>{S(()=>{E.write("[?25h")},{alwaysLast:!0})}):()=>{};let j=!1;const O={show:(e=i.default.stderr)=>{e.isTTY&&(j=!1,e.write("[?25h"))},hide:(e=i.default.stderr)=>{e.isTTY&&(T(),j=!0,e.write("[?25l"))},toggle:(e,t)=>{void 0!==e&&(j=e),j?O.show(t):O.hide(t)}},A=O,I=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots13":{"interval":80,"frames":["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},"dots14":{"interval":80,"frames":["⠉⠉","⠈⠙","⠀⠹","⠀⢸","⠀⣰","⢀⣠","⣀⣀","⣄⡀","⣆⠀","⡇⠀","⠏⠀","⠋⠁"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"dotsCircle":{"interval":80,"frames":["⢎ ","⠎⠁","⠊⠑","⠈⠱"," ⡱","⢀⡰","⢄⡠","⢆⡀"]},"sand":{"interval":80,"frames":["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"rollingLine":{"interval":80,"frames":["/ "," - "," \\\\ "," |"," |"," \\\\ "," - ","/ "]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"binary":{"interval":80,"frames":["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","💗 "]},"clock":{"interval":100,"frames":["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},"fistBump":{"interval":80,"frames":["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},"soccerHeader":{"interval":80,"frames":[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},"mindblown":{"interval":160,"frames":["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},"speaker":{"interval":160,"frames":["🔈 ","🔉 ","🔊 ","🔉 "]},"orangePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},"bluePulse":{"interval":100,"frames":["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"orangeBluePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"timeTravel":{"interval":100,"frames":["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},"dwarfFortress":{"interval":80,"frames":[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]},"fish":{"interval":80,"frames":["~~~~~~~~~~~~~~~~~~~~","> ~~~~~~~~~~~~~~~~~~","º> ~~~~~~~~~~~~~~~~~","(º> ~~~~~~~~~~~~~~~~","((º> ~~~~~~~~~~~~~~~","<((º> ~~~~~~~~~~~~~~","><((º> ~~~~~~~~~~~~~"," ><((º> ~~~~~~~~~~~~","~ ><((º> ~~~~~~~~~~~","~~ <>((º> ~~~~~~~~~~","~~~ ><((º> ~~~~~~~~~","~~~~ <>((º> ~~~~~~~~","~~~~~ ><((º> ~~~~~~~","~~~~~~ <>((º> ~~~~~~","~~~~~~~ ><((º> ~~~~~","~~~~~~~~ <>((º> ~~~~","~~~~~~~~~ ><((º> ~~~","~~~~~~~~~~ <>((º> ~~","~~~~~~~~~~~ ><((º> ~","~~~~~~~~~~~~ <>((º> ","~~~~~~~~~~~~~ ><((º>","~~~~~~~~~~~~~~ <>((º","~~~~~~~~~~~~~~~ ><((","~~~~~~~~~~~~~~~~ <>(","~~~~~~~~~~~~~~~~~ ><","~~~~~~~~~~~~~~~~~~ <","~~~~~~~~~~~~~~~~~~~~"]}}'),N=I;Object.keys(I);var P=n(2607);const R=P.default?.WriteStream?.prototype?.hasColors?.()??!1,L=(e,t)=>{if(!R)return e=>e;const n=`[${e}m`,i=`[${t}m`;return e=>{const o=e+"";let a=o.indexOf(i);if(-1===a)return n+o+i;let r=n,s=0;const c=(22===t?i:"")+n;for(;-1!==a;)r+=o.slice(s,a)+c,s=a+i.length,a=o.indexOf(i,s);return r+=o.slice(s)+i,r}},$=(L(0,0),L(1,22),L(2,22),L(3,23),L(4,24),L(53,55),L(7,27),L(8,28),L(9,29),L(30,39),L(31,39)),D=L(32,39),F=L(33,39),M=L(34,39);function B(){const{env:e}=i.default,{TERM:t,TERM_PROGRAM:n}=e;return"win32"!==i.default.platform?"linux"!==t:Boolean(e.WT_SESSION)||Boolean(e.TERMINUS_SUBLIME)||"{cmd::Cmder}"===e.ConEmuTask||"Terminus-Sublime"===n||"vscode"===n||"xterm-256color"===t||"alacritty"===t||"rxvt-unicode"===t||"rxvt-unicode-256color"===t||"JetBrains-JediTerm"===e.TERMINAL_EMULATOR}L(35,39),L(36,39),L(37,39),L(90,39),L(40,49),L(41,49),L(42,49),L(43,49),L(44,49),L(45,49),L(46,49),L(47,49),L(100,49),L(91,39),L(92,39),L(93,39),L(94,39),L(95,39),L(96,39),L(97,39),L(101,49),L(102,49),L(103,49),L(104,49),L(105,49),L(106,49),L(107,49);const q=B(),z=M(q?"ℹ":"i"),U=D(q?"✔":"√"),W=F(q?"⚠":"‼"),V=$(q?"✖":"×"),H=function({onlyFirst:e=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",e?void 0:"g")}(),G=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],J=[12288,12288,65281,65376,65504,65510],X=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],Y=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],K=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],Z=(e,t)=>{let n=0,i=Math.floor(e.length/2)-1;for(;n<=i;){const o=Math.floor((n+i)/2),a=2*o;if(t<e[a])i=o-1;else{if(!(t>e[a+1]))return!0;n=o+1}}return!1},Q=G[0],ee=G.at(-1),te=J[0],ne=J.at(-1),ie=(X[0],X.at(-1),Y[0],Y.at(-1),K[0]),oe=K.at(-1),[ae,re]=function(e){let t=e[0],n=e[1];for(let i=0;i<e.length;i+=2){const o=e[i],a=e[i+1];if(19968>=o&&19968<=a)return[o,a];a-o>n-t&&(t=o,n=a)}return[t,n]}(K);function se(e,{ambiguousAsWide:t=!1}={}){return function(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}(e),(e=>!(e<te||e>ne)&&Z(J,e))(e)||(e=>e>=ae&&e<=re||!(e<ie||e>oe)&&Z(K,e))(e)||t&&(e=>!(e<Q||e>ee)&&Z(G,e))(e)?2:1}const ce=new Intl.Segmenter,le=/^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Format}|\p{Mark}|\p{Surrogate})+$/v,pe=/^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}\p{Surrogate}]+/v,ue=/^\p{RGI_Emoji}$/v,de=/^[\d#*]\u20E3$/,me=/\p{Extended_Pictographic}/gu;function fe(e){if(e.length>50)return!1;if(de.test(e))return!0;if(e.includes("‍")){const t=e.match(me);return null!==t&&t.length>=2}return!1}function he(e){return e.replace(pe,"")}function ge(e){return le.test(e)}function ve(e,t){let n=0;if(e.length>1)for(const i of e.slice(1))i>="＀"&&i<="￯"&&(n+=se(i.codePointAt(0),t));return n}function ye(e,t={}){if("string"!=typeof e||0===e.length)return 0;const{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:i=!1}=t;let o=e;if(i||!o.includes("")&&!o.includes("›")||(o=function(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.includes("")||e.includes("›")?e.replace(H,""):e}(o)),0===o.length)return 0;if(/^[\u0020-\u007E]*$/.test(o))return o.length;let a=0;const r={ambiguousAsWide:!n};for(const{segment:e}of ce.segment(o))ge(e)||(ue.test(e)||fe(e)?a+=2:(a+=se(he(e).codePointAt(0),r),a+=ve(e,r)));return a}const be=new class{#E=0;#T;#j=!1;#O=!1;#A=e=>{e?.length&&3===("string"==typeof e?e.codePointAt(0):e[0])&&(i.default.listenerCount("SIGINT")>0?i.default.emit("SIGINT"):i.default.kill(i.default.pid,"SIGINT"))};start(){this.#E++,1===this.#E&&this.#I()}stop(){0!==this.#E&&0===--this.#E&&this.#N()}#I(){const{stdin:e}=i.default;"win32"!==i.default.platform&&e?.isTTY&&"function"==typeof e.setRawMode?(this.#T=e,this.#j=e.isPaused(),this.#O=Boolean(e.isRaw),e.setRawMode(!0),e.prependListener("data",this.#A),this.#j&&e.resume()):this.#T=void 0}#N(){if(!this.#T)return;const e=this.#T;e.off("data",this.#A),e.isTTY&&e.setRawMode?.(this.#O),this.#j&&e.pause(),this.#T=void 0,this.#j=!1,this.#O=!1}},xe=Object.freeze(be),we=new Map;class Se{#P=0;#R=-1;#L=0;#$;#D;#F;#M;#B=new Map;#q=!1;#z;#U;#W=!1;color;#V(e){this.#q=!0;try{return e()}finally{this.#q=!1}}#H(){this.isSpinning&&this.render()}#G(e,t){if(null==e)return"";if("string"==typeof e)return e;if(Buffer.isBuffer(e)||ArrayBuffer.isView(e)){const n="string"==typeof t&&t&&"buffer"!==t?t:"utf8";return Buffer.from(e).toString(n)}return String(e)}#J(e){if(!e)return!1;const t=e.at(-1);return"\n"===t||"\r"===t}#X(){this.#U||(this.#U=setTimeout(()=>{this.#U=void 0,this.isSpinning&&this.#H()},200),"function"==typeof this.#U?.unref&&this.#U.unref())}#Y(){this.#U&&(clearTimeout(this.#U),this.#U=void 0)}#K(e,t,n,i){return this.#Z(n," ")+e+("string"==typeof t?(e?" ":"")+t:"")+this.#Q(i," ")}constructor(e){"string"==typeof e&&(e={text:e}),this.#$={color:"cyan",stream:i.default.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#$.color,this.#F=this.#$.stream,"boolean"!=typeof this.#$.isEnabled&&(this.#$.isEnabled=function({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#F})),"boolean"!=typeof this.#$.isSilent&&(this.#$.isSilent=!1);const t=this.#$.interval;this.spinner=this.#$.spinner,this.#$.interval=t,this.text=this.#$.text,this.prefixText=this.#$.prefixText,this.suffixText=this.#$.suffixText,this.indent=this.#$.indent}get indent(){return this.#$.indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#$.indent=e}get interval(){return this.#$.interval??this.#D.interval??100}get spinner(){return this.#D}set spinner(e){if(this.#R=-1,this.#$.interval=void 0,"object"==typeof e){if(!Array.isArray(e.frames)||0===e.frames.length||e.frames.some(e=>"string"!=typeof e))throw new Error("The given spinner must have a non-empty `frames` array of strings");if(void 0!==e.interval&&!(Number.isInteger(e.interval)&&e.interval>0))throw new Error("`spinner.interval` must be a positive integer if provided");this.#D=e}else if(B())if(void 0===e)this.#D=N.dots;else{if("default"===e||!N[e])throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this.#D=N[e]}else this.#D=N.line}get text(){return this.#$.text}set text(e=""){this.#$.text=e}get prefixText(){return this.#$.prefixText}set prefixText(e=""){this.#$.prefixText=e}get suffixText(){return this.#$.suffixText}set suffixText(e=""){this.#$.suffixText=e}get isSpinning(){return void 0!==this.#M}#ee(e,t,n=!1){const i="function"==typeof e?e():e;return"string"==typeof i&&""!==i?n?t+i:i+t:""}#Z(e=this.#$.prefixText,t=" "){return this.#ee(e,t,!1)}#Q(e=this.#$.suffixText,t=" "){return this.#ee(e,t,!0)}#te(e,t){let n=0;for(const i of(0,o.stripVTControlCharacters)(e).split("\n"))n+=Math.max(1,Math.ceil(ye(i)/t));return n}get isEnabled(){return this.#$.isEnabled&&!this.#$.isSilent}set isEnabled(e){if("boolean"!=typeof e)throw new TypeError("The `isEnabled` option must be a boolean");this.#$.isEnabled=e}get isSilent(){return this.#$.isSilent}set isSilent(e){if("boolean"!=typeof e)throw new TypeError("The `isSilent` option must be a boolean");this.#$.isSilent=e}frame(){const e=Date.now();(-1===this.#R||e-this.#L>=this.interval)&&(this.#R=(this.#R+1)%this.#D.frames.length,this.#L=e);const{frames:t}=this.#D;let n=t[this.#R];return this.color&&(n=a.default[this.color](n)),this.#Z(this.#$.prefixText," ")+n+("string"==typeof this.text?" "+this.text:"")+this.#Q(this.#$.suffixText," ")}clear(){return this.isEnabled&&this.#F.isTTY?(this.#V(()=>{this.#F.cursorTo(0);for(let e=0;e<this.#P;e++)e>0&&this.#F.moveCursor(0,-1),this.#F.clearLine(1);this.#$.indent&&this.#F.cursorTo(this.#$.indent)}),this.#P=0,this):this}#ne(e){if(!e||this.#B.has(e)||!e.isTTY||"function"!=typeof e.write)return;we.has(e)&&console.warn("[ora] Multiple concurrent spinners detected. This may cause visual corruption. Use one spinner at a time.");const t=e.write;this.#B.set(e,t),we.set(e,this),e.write=(n,i,o)=>this.#ie(e,t,n,i,o)}#oe(){if(!this.isEnabled||this.#B.size>0)return;const e=new Set([this.#F,i.default.stdout,i.default.stderr]);for(const t of e)this.#ne(t)}#ae(){for(const[e,t]of this.#B)e.write=t,we.get(e)===this&&we.delete(e);this.#B.clear()}#ie(e,t,n,i,o){if("function"==typeof i&&(o=i,i=void 0),this.#q)return t.call(e,n,i,o);this.clear();const a=this.#G(n,i),r=this.#J(a),s=t.call(e,n,i,o);return r?this.#Y():a.length>0&&this.#X(),this.isSpinning&&!this.#U&&this.render(),s}render(){if(!this.isEnabled||this.#z||this.#U)return this;const e=this.#F.isTTY;let t=!1;try{e&&(this.#V(()=>this.#F.write("[?2026h")),t=!0),this.clear();let n=this.frame();const i=this.#F.columns??80,o=this.#te(n,i),a=this.#F.rows;if(a&&a>1&&o>a){const e=n.split("\n"),t=a-1;n=[...e.slice(0,t),"... (content truncated to fit terminal)"].join("\n")}!1===this.#V(()=>this.#F.write(n))&&this.#F.isTTY&&(this.#z=()=>{this.#z=void 0,this.#H()},this.#F.once("drain",this.#z)),this.#P=this.#te(n,i)}finally{t&&this.#V(()=>this.#F.write("[?2026l"))}return this}start(e){if(e&&(this.text=e),this.isSilent)return this;if(!this.isEnabled){const e=this.text?"-":"",t=" ".repeat(this.#$.indent)+this.#K(e,this.text,this.#$.prefixText,this.#$.suffixText);return""!==t.trim()&&this.#V(()=>this.#F.write(t+"\n")),this}return this.isSpinning||(this.#$.hideCursor&&A.hide(this.#F),this.#$.discardStdin&&i.default.stdin.isTTY&&(xe.start(),this.#W=!0),this.#oe(),this.render(),this.#M=setInterval(this.render.bind(this),this.interval)),this}stop(){return clearInterval(this.#M),this.#M=void 0,this.#R=-1,this.#L=0,this.#Y(),this.#ae(),this.#z&&(this.#F.removeListener("drain",this.#z),this.#z=void 0),this.isEnabled&&(this.clear(),this.#$.hideCursor&&A.show(this.#F)),this.#W&&(this.#W=!1,xe.stop()),this}succeed(e){return this.stopAndPersist({symbol:U,text:e})}fail(e){return this.stopAndPersist({symbol:V,text:e})}warn(e){return this.stopAndPersist({symbol:W,text:e})}info(e){return this.stopAndPersist({symbol:z,text:e})}stopAndPersist(e={}){if(this.isSilent)return this;const t=e.symbol??" ",n=e.text??this.text,i=e.prefixText??this.#$.prefixText,o=e.suffixText??this.#$.suffixText,a=this.#K(t,n,i,o)+"\n";return this.stop(),this.#V(()=>this.#F.write(a)),this}}function Ce(e){return new Se(e)}async function _e(e,t){const n="function"==typeof e,i="function"==typeof e.then;if(!n&&!i)throw new TypeError("Parameter `action` must be a Function or a Promise");const{successText:o,failText:a}="object"==typeof t?t:{successText:void 0,failText:void 0},r=Ce(t).start();try{const t=n?e(r):e,i=await t;return r.succeed(void 0===o?void 0:"string"==typeof o?o:o(i)),i}catch(e){throw r.fail(void 0===a?void 0:"string"==typeof a?a:a(e)),e}}},7286(e){e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},8330(e){e.exports=JSON.parse('{"name":"@share-crm/sharedev-cli","version":"0.0.4-rc.14","private":false,"description":"sharedev command line tool","type":"module","main":"dist/sharedev.js","bin":{"sharedev":"./bin/cli.mjs"},"author":{"name":"sharecrm-npm"},"files":["dist","bin","README.md"],"scripts":{"build":"tsc --noEmit && webpack --config build/webpack/webpack.prod.cjs","build:bin":"bun build --compile --target=bun-darwin-x64 src/cli.ts --outfile scripts/sharedev-darwin-x64 && bun build --compile --target=bun-darwin-arm64 src/cli.ts --outfile scripts/sharedev-darwin-arm64 && bun build --compile --target=bun-windows-x64 src/cli.ts --outfile scripts/sharedev-windows-x64.exe","build:all":"npm run build && npm run build:bin","dev":"tsc --noEmit --watch & webpack --config build/webpack/webpack.dev.cjs --watch","dev2":"node src/cli.ts","typecheck":"tsc --noEmit","prettier":"prettier --write ./src/**/*.ts","build:debug":"tsc --noEmit && webpack --config build/webpack/webpack.debug.cjs"},"dependencies":{"@clack/prompts":"^1.1.0","@mariozechner/pi-coding-agent":"^0.62.0","axios":"~1.13.0","chalk":"^5.6.2","commander":"^14.0.1","extract-zip":"^2.0.1","fast-xml-parser":"^5.2.5","fs-extra":"^11.3.2","lodash-es":"^4.18.1","ora":"^9.3.0"},"devDependencies":{"@types/extract-zip":"^2.0.3","@types/fs-extra":"^11.0.4","@types/lodash-es":"^4.17.12","@types/node":"^24.3.0","ts-loader":"^9.5.4","typescript":"^5.9.2","webpack":"^5.101.3","webpack-cli":"^6.0.1","webpack-merge":"^6.0.1"},"packageManager":"pnpm@10.17.0"}')}},v={};function y(e){var t=v[e];if(void 0!==t)return t.exports;var n=v[e]={exports:{}};return g[e].call(n.exports,n,n.exports,y),n.exports}y.d=(e,t)=>{for(var n in t)y.o(t,n)&&!y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},y.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var b={};(()=>{var e=b;Object.defineProperty(e,"__esModule",{value:!0});const t=y(2116),n=y(6592),i=y(810),o=y(3333),a=y(2088),r=y(5016),s=y(654);function c(e){const t=e.trim().replace(/^v/i,"").split("+")[0],[n="0.0.0",i]=t.split("-",2),o=n.split(".").map(e=>Number.parseInt(e,10)||0);for(;o.length<3;)o.push(0);return{core:o,prerelease:i?i.split(".").filter(Boolean):[]}}(async function(){const e={debug:process.argv.slice(2).includes("--debug")},l=await(0,r.readCliPackageMeta)(),p=l.version;await async function(e,t){try{const n=new AbortController,i=setTimeout(()=>n.abort(),1500),a=encodeURIComponent(e),r=await fetch(`https://registry.npmjs.org/${a}/latest`,{signal:n.signal});if(clearTimeout(i),!r.ok)return;const s=await r.json(),l="string"==typeof s.version?s.version.trim():"";if(!l)return;(function(e,t){const n=c(e),i=c(t);for(let e=0;e<3;e+=1)if(n.core[e]!==i.core[e])return n.core[e]>i.core[e]?1:-1;const o=n.prerelease,a=i.prerelease;if(0===o.length&&a.length>0)return 1;if(o.length>0&&0===a.length)return-1;const r=Math.max(o.length,a.length);for(let e=0;e<r;e+=1){const t=o[e],n=a[e];if(void 0===t)return-1;if(void 0===n)return 1;const i=Number(t),r=Number(n),s=Number.isFinite(i),c=Number.isFinite(r);if(s&&c&&i!==r)return i>r?1:-1;if(s!==c)return s?-1:1;if(t!==n)return t>n?1:-1}return 0})(l,t)>0&&o.loggerService.warn(`A newer version is available: ${t} -> ${l}. Run: npm i -g ${e}`)}catch{}}(l.name,p);const u=new t.Command;if(u.name("sharedev").description("sharedev command line tool").version(p,"-v, --version","output the current version").option("--debug","enable trace debug output for current command").showHelpAfterError(!0),(0,s.setRuntimeDebugEnabled)(Boolean(e.debug)),function(e){if(function(e){return e.slice(2).some(e=>"--help"===e||"-h"===e)}(e))return!0;if(function(e){return e.slice(2).some(e=>"--version"===e||"-v"===e)}(e))return!0;const t=function(e){const t=e.slice(2),n=[],i=new Set(["--ea","--domain","--certificate","--platform"]);for(let e=0;e<t.length;e+=1){const o=t[e];if(o.startsWith("-")){if(o.startsWith("--")){const[t]=o.split("=");i.has(t)&&!o.includes("=")&&(e+=1);continue}}else if(n.push(o),2===n.length)break}return n}(e);return"init"===t[0]||"config"===t[0]||"completion"===t[0]||"spec"===t[0]}(process.argv))return(0,n.registerNamespaces)(u,function(){const e=process.cwd();return{cwd:e,verbose:!1,settings:{certificate:"",domain:"https://help.invalid",settingsPath:"",settingsDir:e},workspaceRoot:e}}()),void await u.parseAsync(process.argv,{from:"node"});const d=await(0,i.createCliRuntimeContext)(e);a.requestService.configure(d.settings),(0,n.registerNamespaces)(u,d),await u.parseAsync(process.argv,{from:"node"})})().catch(e=>{const t=e instanceof Error?e.message:String(e);o.loggerService.error(t),process.exitCode=1})})();const x=b.__esModule;export{x as __esModule,b as default};